Changeset dec16a2 in mainline for kernel/generic/include/sysinfo/abi.h


Ignore:
Timestamp:
2010-04-18T16:52:47Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5c45ca8
Parents:
e535eeb
Message:
  • sysinfo items "system.tasks" and "system.threads" now return complete statistics of all tasks and threads (statistics of individual tasks and threads can be still acquited from "system.tasks.#" and "system.threads.#")
  • update user space functions accordingly
  • cleanup top — it is fully functional again
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/sysinfo/abi.h

    re535eeb rdec16a2  
    9999 */
    100100typedef struct {
     101        task_id_t task_id;            /**< Task ID */
    101102        char name[TASK_NAME_BUFLEN];  /**< Task name (in kernel) */
    102103        size_t virtmem;               /**< Size of VAS (bytes) */
     
    111112 */
    112113typedef struct {
    113         task_id_t task_id;
    114         state_t state;
    115         int priority;
    116         uint64_t ucycles;
    117         uint64_t kcycles;
    118         bool on_cpu;
    119         unsigned int cpu;
     114        thread_id_t thread_id;  /**< Thread ID */
     115        task_id_t task_id;      /**< Associated task ID */
     116        state_t state;          /**< Thread state */
     117        int priority;           /**< Thread priority */
     118        uint64_t ucycles;       /**< Number of CPU cycles in user space */
     119        uint64_t kcycles;       /**< Number of CPU cycles in kernel */
     120        bool on_cpu;            /**< Associated with a CPU */
     121        unsigned int cpu;       /**< Associated CPU ID (if on_cpu is true) */
    120122} stats_thread_t;
    121123
Note: See TracChangeset for help on using the changeset viewer.