process list filtering
[lttngtop.git] / src / common.c
index 7a9925e60febc3a8664068a25c83aa9289c0aa0e..ae19f1366e08e3a464b75d67c6693c56d3289193 100644 (file)
@@ -164,7 +164,7 @@ struct processtop* add_proc(struct lttngtop *ctx, int tid, char *comm,
 {
        struct processtop *newproc;
 
-       if (opt_pid && tid != opt_pid)
+       if (opt_tid && !lookup_tid_list(tid))
                return NULL;
 
        /* if the PID already exists, we just rename the process */
@@ -618,3 +618,8 @@ struct tm format_timestamp(uint64_t timestamp)
 
        return tm;
 }
+
+int *lookup_tid_list(int tid)
+{
+       return g_hash_table_lookup(tid_list, (gpointer) &tid);
+}
This page took 0.022851 seconds and 4 git commands to generate.