projects
/
lttngtop.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
process list filtering
[lttngtop.git]
/
src
/
common.c
diff --git
a/src/common.c
b/src/common.c
index cde69a0b0a0eab09521aeb30f1d74e3513093864..4860b7aef76d406d1f8f44f97ae3fcdea9c0c133 100644
(file)
--- a/
src/common.c
+++ b/
src/common.c
@@
-164,7
+164,7
@@
struct processtop* add_proc(struct lttngtop *ctx, int tid, char *comm,
{
struct processtop *newproc;
{
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 */
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;
}
return tm;
}
+
+int *lookup_tid_list(int tid)
+{
+ return g_hash_table_lookup(tid_list, (gpointer) &tid);
+}
This page took
0.022236 seconds
and
4
git commands to generate.