Changeset be06914 in mainline for kernel/generic/src


Ignore:
Timestamp:
2010-06-11T12:41:35Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b3b7e14a
Parents:
48dcc69
Message:

nicer top printouts
fix typos (recieved → received)

Location:
kernel/generic/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ipc/ipc.c

    r48dcc69 rbe06914  
    442442        irq_spinlock_lock(&box->lock, true);
    443443        if (!list_empty(&box->irq_notifs)) {
    444                 /* Count recieved IRQ notification */
     444                /* Count received IRQ notification */
    445445                irq_cnt++;
    446446               
     
    452452                irq_spinlock_unlock(&box->irq_lock, false);
    453453        } else if (!list_empty(&box->answers)) {
    454                 /* Count recieved answer */
     454                /* Count received answer */
    455455                answer_cnt++;
    456456               
     
    460460                atomic_dec(&request->data.phone->active_calls);
    461461        } else if (!list_empty(&box->calls)) {
    462                 /* Count recieved call */
     462                /* Count received call */
    463463                call_cnt++;
    464464               
     
    477477        irq_spinlock_pass(&box->lock, &TASK->lock);
    478478       
    479         TASK->ipc_info.irq_notif_recieved += irq_cnt;
    480         TASK->ipc_info.answer_recieved += answer_cnt;
    481         TASK->ipc_info.call_recieved += call_cnt;
     479        TASK->ipc_info.irq_notif_received += irq_cnt;
     480        TASK->ipc_info.answer_received += answer_cnt;
     481        TASK->ipc_info.call_received += call_cnt;
    482482       
    483483        irq_spinlock_unlock(&TASK->lock, true);
  • kernel/generic/src/proc/task.c

    r48dcc69 rbe06914  
    197197       
    198198        task->ipc_info.call_sent = 0;
    199         task->ipc_info.call_recieved = 0;
     199        task->ipc_info.call_received = 0;
    200200        task->ipc_info.answer_sent = 0;
    201         task->ipc_info.answer_recieved = 0;
    202         task->ipc_info.irq_notif_recieved = 0;
     201        task->ipc_info.answer_received = 0;
     202        task->ipc_info.irq_notif_received = 0;
    203203        task->ipc_info.forwarded = 0;
    204204       
     
    478478#ifdef __32_BITS__
    479479        if (*additional)
    480                 printf("%-8" PRIu64 " %9ld %7ld", task->taskid,
     480                printf("%-8" PRIu64 " %9lu %7lu", task->taskid,
    481481                    atomic_get(&task->refcount), atomic_get(&task->active_calls));
    482482        else
     
    489489#ifdef __64_BITS__
    490490        if (*additional)
    491                 printf("%-8" PRIu64 " %9" PRIu64 "%c %9" PRIu64 "%c %9ld %7ld",
     491                printf("%-8" PRIu64 " %9" PRIu64 "%c %9" PRIu64 "%c %9lu %7lu",
    492492                    task->taskid, ucycles, usuffix, kcycles, ksuffix,
    493493                    atomic_get(&task->refcount), atomic_get(&task->active_calls));
     
    530530#ifdef __64_BITS__
    531531        if (additional)
    532                 printf("[taskid] [ucycles ] [kcycles ] [threads] [calls]"
     532                printf("[id    ] [ucycles ] [kcycles ] [threads] [calls]"
    533533                    " [callee\n");
    534534        else
    535                 printf("[taskid] [name        ] [ctx] [address         ]"
     535                printf("[id    ] [name        ] [ctx] [address         ]"
    536536                    " [as              ]\n");
    537537#endif
Note: See TracChangeset for help on using the changeset viewer.