[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trying to get Idle Task ID



Hi all,

I?m trying to get the total amount of time used by any task (in
microseconds) as an unsigned long value that I can insert in a telemetry
packet. 

For this purpose, my code is based on "rtems_cpu_usage_report_with_plugin",
and, AFAICT, it works correctly.

The function receives the task ID, loops through the Objects Information
Table, identifies the correct task and gets the amount of time.

The problem is that I cannot get the Idle task ID. I tried
"rtems_task_ident(rtems_build_name('I', 'D', 'L', 'E'))", but I receive an
"RTEMS_INVALID_NAME" error. I tried with "idle" and "Idle", with no results.
I also tried a constant from the CPU Usage chapter in the RTEMS C Users
Manual, "0x0401001", and got the same error.