X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Fcontrolflow%2Fprocesslist.h;h=c832246530c48eab681c388180f25cd67ed67d4b;hb=c9ae5e4b6905d2ae6e4e46b981322de8e5386c65;hp=687ac407e7e58c2d111e679854161aa91bdb9d51;hpb=7c0125e0d749f61688a140b2dbb76cc37ad57beb;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.h b/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.h index 687ac407..c8322465 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.h +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.h @@ -88,7 +88,6 @@ typedef struct _HashedProcessData { LttTime next_good_time; /* precalculate the next time where the next pixel is.*/ - // FIXME : add info on last event ? } HashedProcessData; @@ -133,13 +132,18 @@ void processlist_clear(ProcessList *process_list); /* CPU num is only used for PID 0 */ int processlist_add(ProcessList *process_list, Drawing_t * drawing, guint pid, guint cpu, guint ppid, - LttTime *birth, guint trace_num, const gchar *name, guint *height, + LttTime *birth, guint trace_num, GQuark name, guint *height, ProcessInfo **process_info, HashedProcessData **hashed_process_data); // out : success (0) and height int processlist_remove(ProcessList *process_list, guint pid, guint cpu, LttTime *birth, guint trace_num); +/* Set the name of a process */ +void processlist_set_name(ProcessList *process_list, + GQuark name, + HashedProcessData *hashed_process_data); + /* Synchronize the list at the left and the drawing */ void update_index_to_pixmap(ProcessList *process_list); @@ -184,7 +188,7 @@ static inline HashedProcessData *processlist_get_process_data( if(pid == 0) process_info.cpu = cpu; else - process_info.cpu = 0; + process_info.cpu = ANY_CPU; process_info.birth = *birth; process_info.trace_num = trace_num;