Changeset 638927a in mainline for uspace/app/ps/ps.c


Ignore:
Timestamp:
2010-04-09T11:18:08Z (14 years ago)
Author:
Stanislav Kozina <stanislav.kozina@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e43cdac
Parents:
faf38b2
Message:

top echoes also thread state overview
write_barrier() after computing percentages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/ps/ps.c

    rfaf38b2 r638927a  
    9797static void list_threads(task_id_t taskid)
    9898{
    99         int thread_count = THREAD_COUNT;
     99        size_t thread_count = THREAD_COUNT;
    100100        thread_info_t *threads = malloc(thread_count * sizeof(thread_info_t));
    101         int result = get_task_threads(threads, sizeof(thread_info_t) * thread_count);
     101        size_t result = get_task_threads(threads, sizeof(thread_info_t) * thread_count);
    102102
    103103        while (result > thread_count) {
     
    112112        }
    113113
    114         int i;
     114        size_t i;
    115115        printf("    ID    State  CPU   Prio    [k]uCycles    [k]kcycles   Cycle fault\n");
    116116        for (i = 0; i < result; ++i) {
Note: See TracChangeset for help on using the changeset viewer.