X-Git-Url: https://git.lttng.org/?p=lttngtop.git;a=blobdiff_plain;f=src%2Fcommon.h;h=e21ece4ff014d42f17a479acba05d6726b022da8;hp=3b93c63db239f2275c07cd7a0716203feaab1912;hb=09e7f98e84338afb3f6959a19df84ec4b4c1c012;hpb=54761a45d53fe4b891dd60f17cbec0d3f85ab28d diff --git a/src/common.h b/src/common.h index 3b93c63..e21ece4 100644 --- a/src/common.h +++ b/src/common.h @@ -41,6 +41,8 @@ char *opt_exec_name; char **opt_exec_argv; char **opt_exec_env; int opt_exec_pid; +char *opt_output; +FILE *output; GHashTable *tid_filter_list; int remote_live; @@ -51,7 +53,7 @@ extern int quit; struct lttngtop *data; -struct processtop *find_process_tid(struct lttngtop *ctx, int pid, char *comm); +struct processtop *find_process_tid(struct lttngtop *ctx, int pid, const char *comm); struct processtop* add_proc(struct lttngtop *ctx, int pid, char *comm, unsigned long timestamp, char *hostname); struct processtop* update_proc(struct processtop* proc, int pid, int tid,