Yang Jihong
ecd4960d90
perf ftrace: Make system wide the default target for latency subcommand
...
If no target is specified for 'latency' subcommand, the execution fails
because - 1 (invalid value) is written to set_ftrace_pid tracefs file.
Make system wide the default target, which is the same as the default
behavior of 'trace' subcommand.
Before the fix:
# perf ftrace latency -T schedule
failed to set ftrace pid
After the fix:
# perf ftrace latency -T schedule
^C# DURATION | COUNT | GRAPH |
0 - 1 us | 0 | |
1 - 2 us | 0 | |
2 - 4 us | 0 | |
4 - 8 us | 2828 | #### |
8 - 16 us | 23953 | ######################################## |
16 - 32 us | 408 | |
32 - 64 us | 318 | |
64 - 128 us | 4 | |
128 - 256 us | 3 | |
256 - 512 us | 0 | |
512 - 1024 us | 1 | |
1 - 2 ms | 4 | |
2 - 4 ms | 0 | |
4 - 8 ms | 0 | |
8 - 16 ms | 0 | |
16 - 32 ms | 0 | |
32 - 64 ms | 0 | |
64 - 128 ms | 0 | |
128 - 256 ms | 4 | |
256 - 512 ms | 2 | |
512 - 1024 ms | 0 | |
1 - ... s | 0 | |
Fixes: 53be50282269b46c ("perf ftrace: Add 'latency' subcommand")
Signed-off-by: Yang Jihong <yangjihong1@huawei.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20230324032702.109964-1-yangjihong1@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2023-04-04 09:39:55 -03:00
..
2022-11-18 13:55:09 -08:00
2023-04-04 09:39:55 -03:00
2023-02-22 08:27:35 +09:00
2023-02-16 15:32:45 -08:00
2023-03-14 08:29:46 -03:00
2023-01-18 17:12:59 -08:00
2023-01-27 14:05:46 +01:00
2023-01-21 17:52:26 +00:00
2023-03-10 08:18:46 -08:00
2022-11-09 12:26:52 -05:00
2023-03-15 11:08:35 -03:00
2023-01-03 20:47:04 -08:00
2023-02-02 22:33:24 -08:00
2023-03-08 23:28:21 -08:00
2023-03-02 09:45:34 -08:00
2023-04-04 09:39:55 -03:00
2023-02-21 17:32:50 -08:00
2023-02-25 22:12:18 +08:00
2023-04-04 09:39:55 -03:00
2023-02-23 10:20:49 -08:00
2022-11-09 12:37:56 +01:00
2023-01-31 19:21:12 -05:00
2023-02-20 19:26:59 -05:00