process list filtering
[lttngtop.git] / src / common.c
index cde69a0b0a0eab09521aeb30f1d74e3513093864..4860b7aef76d406d1f8f44f97ae3fcdea9c0c133 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.021873 seconds and 4 git commands to generate.