diff options
| -rw-r--r-- | tools/perf/Documentation/perf-top.txt | 5 | ||||
| -rw-r--r-- | tools/perf/builtin-top.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tools/perf/Documentation/perf-top.txt b/tools/perf/Documentation/perf-top.txt index 114fda12aa49..d4be6061fe1c 100644 --- a/tools/perf/Documentation/perf-top.txt +++ b/tools/perf/Documentation/perf-top.txt | |||
| @@ -242,6 +242,11 @@ Default is to monitor all CPUS. | |||
| 242 | --hierarchy:: | 242 | --hierarchy:: |
| 243 | Enable hierarchy output. | 243 | Enable hierarchy output. |
| 244 | 244 | ||
| 245 | --overwrite:: | ||
| 246 | This is the default, but for investigating problems with it or any other strange | ||
| 247 | behaviour like lots of unknown samples, we may want to disable this mode by using | ||
| 248 | --no-overwrite. | ||
| 249 | |||
| 245 | --force:: | 250 | --force:: |
| 246 | Don't do ownership validation. | 251 | Don't do ownership validation. |
| 247 | 252 | ||
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index d21d8751e749..214fad747b04 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c | |||
| @@ -1372,6 +1372,8 @@ int cmd_top(int argc, const char **argv) | |||
| 1372 | "Show raw trace event output (do not use print fmt or plugins)"), | 1372 | "Show raw trace event output (do not use print fmt or plugins)"), |
| 1373 | OPT_BOOLEAN(0, "hierarchy", &symbol_conf.report_hierarchy, | 1373 | OPT_BOOLEAN(0, "hierarchy", &symbol_conf.report_hierarchy, |
| 1374 | "Show entries in a hierarchy"), | 1374 | "Show entries in a hierarchy"), |
| 1375 | OPT_BOOLEAN(0, "overwrite", &top.record_opts.overwrite, | ||
| 1376 | "Use a backward ring buffer, default: yes"), | ||
| 1375 | OPT_BOOLEAN(0, "force", &symbol_conf.force, "don't complain, do it"), | 1377 | OPT_BOOLEAN(0, "force", &symbol_conf.force, "don't complain, do it"), |
| 1376 | OPT_UINTEGER(0, "num-thread-synthesize", &top.nr_threads_synthesize, | 1378 | OPT_UINTEGER(0, "num-thread-synthesize", &top.nr_threads_synthesize, |
| 1377 | "number of thread to run event synthesize"), | 1379 | "number of thread to run event synthesize"), |
