diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/perf/Documentation/perf-diff.txt | 6 | ||||
| -rw-r--r-- | tools/perf/builtin-diff.c | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/tools/perf/Documentation/perf-diff.txt b/tools/perf/Documentation/perf-diff.txt index 8c2c229faf50..da7809b15cc9 100644 --- a/tools/perf/Documentation/perf-diff.txt +++ b/tools/perf/Documentation/perf-diff.txt | |||
| @@ -168,6 +168,12 @@ OPTIONS | |||
| 168 | CPUs are specified with -: 0-2. Default is to report samples on all | 168 | CPUs are specified with -: 0-2. Default is to report samples on all |
| 169 | CPUs. | 169 | CPUs. |
| 170 | 170 | ||
| 171 | --pid=:: | ||
| 172 | Only diff samples for given process ID (comma separated list). | ||
| 173 | |||
| 174 | --tid=:: | ||
| 175 | Only diff samples for given thread ID (comma separated list). | ||
| 176 | |||
| 171 | COMPARISON | 177 | COMPARISON |
| 172 | ---------- | 178 | ---------- |
| 173 | The comparison is governed by the baseline file. The baseline perf.data | 179 | The comparison is governed by the baseline file. The baseline perf.data |
diff --git a/tools/perf/builtin-diff.c b/tools/perf/builtin-diff.c index dfe6c7606f5a..6e7920793729 100644 --- a/tools/perf/builtin-diff.c +++ b/tools/perf/builtin-diff.c | |||
| @@ -985,6 +985,10 @@ static const struct option options[] = { | |||
| 985 | OPT_STRING(0, "time", &pdiff.time_str, "str", | 985 | OPT_STRING(0, "time", &pdiff.time_str, "str", |
| 986 | "Time span (time percent or absolute timestamp)"), | 986 | "Time span (time percent or absolute timestamp)"), |
| 987 | OPT_STRING(0, "cpu", &cpu_list, "cpu", "list of cpus to profile"), | 987 | OPT_STRING(0, "cpu", &cpu_list, "cpu", "list of cpus to profile"), |
| 988 | OPT_STRING(0, "pid", &symbol_conf.pid_list_str, "pid[,pid...]", | ||
| 989 | "only consider symbols in these pids"), | ||
| 990 | OPT_STRING(0, "tid", &symbol_conf.tid_list_str, "tid[,tid...]", | ||
| 991 | "only consider symbols in these tids"), | ||
| 988 | OPT_END() | 992 | OPT_END() |
| 989 | }; | 993 | }; |
| 990 | 994 | ||
