Changeset 4667b5c in mainline for uspace/srv/taskman/main.c


Ignore:
Timestamp:
2019-08-07T11:10:46Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
bb57a00
Parents:
130ba46
git-author:
Michal Koutný <xm.koutny+hos@…> (2015-11-13 01:56:10)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-07 11:10:46)
Message:

taskman: Add method to dump events of already running tasks

It's crafted for early startup of sysman.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/taskman/main.c

    r130ba46 r4667b5c  
    5454#include "taskman.h"
    5555
    56 //#define DPRINTF(...) printf(__VA_ARGS__)
    57 #define DPRINTF(...) /* empty */
    5856
    5957typedef struct {
     
    199197}
    200198
     199static void taskman_ctl_dump_events(ipc_callid_t iid, ipc_call_t *icall)
     200{
     201        DPRINTF("%s:%i from %llu\n", __func__, __LINE__, icall->in_task_id);
     202
     203        dump_events(icall->in_task_id, iid);
     204}
     205
    201206static void task_exit_event(ipc_callid_t iid, ipc_call_t *icall, void *arg)
    202207{
     
    257262        case TASKMAN_EVENT_CALLBACK:
    258263                taskman_ctl_ev_callback(iid, icall);
     264                break;
     265        case TASKMAN_DUMP_EVENTS:
     266                taskman_ctl_dump_events(iid, icall);
    259267                break;
    260268        default:
     
    340348        /* Initialization */
    341349        prodcons_initialize(&sess_queue);
    342         int rc = task_init();
     350        int rc = tasks_init();
    343351        if (rc != EOK) {
    344352                return rc;
Note: See TracChangeset for help on using the changeset viewer.