aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2021-04-02 09:40:20 +0000
committerArnaldo Carvalho de Melo <[email protected]>2021-05-10 12:00:59 +0000
commite8c1167606c63fd8f9934d0b6ce80281463a4945 (patch)
treefa4a006bb836b08a46478a16532b58deb21c5f87 /tools/perf/scripts/python/mem-phys-addr.py
parenttools arch x86: Sync the msr-index.h copy with the kernel sources (diff)
downloadkernel-e8c1167606c63fd8f9934d0b6ce80281463a4945.tar.gz
kernel-e8c1167606c63fd8f9934d0b6ce80281463a4945.zip
perf record: Disallow -c and -F option at the same time
It's confusing which one is effective when the both options are given. The current code happens to use -c in this case but users might not be aware of it. We can change it to complain about that instead of relying on the implicit priority. Before: $ perf record -c 111111 -F 99 true [ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 0.031 MB perf.data (8 samples) ] $ perf evlist -F cycles: sample_period=111111 $ After: $ perf record -c 111111 -F 99 true cannot set frequency and period at the same time $ So this change can break existing usages, but I think it's rare to have both options and it'd be better changing them. Suggested-by: Alexey Alexandrov <[email protected]> Signed-off-by: Namhyung Kim <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions