X-Git-Url: https://git.lttng.org/?p=lttngtop.git;a=blobdiff_plain;f=src%2Fcommon.h;fp=src%2Fcommon.h;h=59a7a7f93ed9ff6562a247a2c3f1f3ceeec8282e;hp=06bb219a29578cb3f36f4e048082347c7f979632;hb=da4353bbbb28c19bd28447018edb94845ae71673;hpb=241ba90a54b0a70b306c63d2844b0f01afc6bc42 diff --git a/src/common.h b/src/common.h index 06bb219..59a7a7f 100644 --- a/src/common.h +++ b/src/common.h @@ -30,6 +30,7 @@ sem_t goodtodisplay, goodtoupdate, timer, pause_sem, end_trace_sem, bootstrap; GPtrArray *copies; /* struct lttngtop */ GHashTable *global_perf_liszt; +GHashTable *global_filter_list; char *opt_tid; char *opt_hostname; @@ -37,6 +38,8 @@ char *opt_kprobes; GHashTable *tid_list; GHashTable *hostname_list; +int toggle_filter; + extern int quit; struct lttngtop *data; @@ -81,7 +84,10 @@ enum bt_cb_ret handle_statedump_process_state(struct bt_ctf_event *call_data, struct tm format_timestamp(uint64_t timestamp); +int *lookup_filter_tid_list(int tid); int *lookup_tid_list(int tid); char *lookup_hostname_list(const char *hostname); +void add_filter_tid_list(int tid, struct processtop *newproc); +void remove_filter_tid_list(int tid); #endif /* _COMMON_H */