Changeset 95319bd in mainline


Ignore:
Timestamp:
2010-04-15T12:40:38Z (15 years ago)
Author:
Stanislav Kozina <stanislav.kozina@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
88dea9d
Parents:
bdfd3c97
Message:

Added dummy_load utility.
It just does some dummy load - either in uspace or in system.

Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • boot/Makefile.common

    rbdfd3c97 r95319bd  
    7373        $(USPACEDIR)/app/ps/ps \
    7474        $(USPACEDIR)/app/top/top \
    75         $(USPACEDIR)/app/uptime/uptime
     75        $(USPACEDIR)/app/uptime/uptime \
     76        $(USPACEDIR)/app/dummy_load/dummy_load
    7677
    7778COMPONENTS = \
  • kernel/generic/src/ipc/ipc.c

    rbdfd3c97 r95319bd  
    219219        bool do_lock = ((!selflocked) || callerbox != (&TASK->answerbox));
    220220
     221        /* Count sent answer */
    221222        spinlock_lock(&TASK->lock);
    222223        TASK->ipc_info.answer_sent++;
     
    280281static void _ipc_call(phone_t *phone, answerbox_t *box, call_t *call)
    281282{
     283        /* Count sent ipc call */
    282284        spinlock_lock(&TASK->lock);
    283285        TASK->ipc_info.call_sent++;
     
    384386int ipc_forward(call_t *call, phone_t *newphone, answerbox_t *oldbox, int mode)
    385387{
     388        /* Count forwarded calls */
    386389        spinlock_lock(&TASK->lock);
    387390        TASK->ipc_info.forwarded++;
     
    429432        if (!list_empty(&box->irq_notifs)) {
    430433
     434                /* Count recieved IRQ notification */
    431435                spinlock_lock(&TASK->lock);
    432436                TASK->ipc_info.irq_notif_recieved++;
     
    442446                interrupts_restore(ipl);
    443447        } else if (!list_empty(&box->answers)) {
     448                /* Count recieved answer */
    444449                spinlock_lock(&TASK->lock);
    445450                TASK->ipc_info.answer_recieved++;
     
    451456                atomic_dec(&request->data.phone->active_calls);
    452457        } else if (!list_empty(&box->calls)) {
    453 
     458                /* Count recieved call */
    454459                spinlock_lock(&TASK->lock);
    455460                TASK->ipc_info.call_recieved++;
  • uspace/Makefile

    rbdfd3c97 r95319bd  
    4848        app/top \
    4949        app/uptime \
     50        app/dummy_load \
    5051        srv/clip \
    5152        srv/devmap \
Note: See TracChangeset for help on using the changeset viewer.