Kim Phillips
8788d36950
perf list: Allow plurals for metric, metricgroup
...
Enhance usability by allowing the same plurality used in the output
title, for the command line parameter.
BEFORE, perf deceitfully acts as if there are no metrics to be had:
$ perf list metrics
List of pre-defined events (to be used in -e):
Metric Groups:
$
But singular 'metric' shows a list of metrics:
$ perf list metric
List of pre-defined events (to be used in -e):
Metrics:
IPC
[Instructions Per Cycle (per logical thread)]
UPI
[Uops Per Instruction]
AFTER, when asking for 'metrics', we actually see the metrics get listed:
$ perf list metrics
List of pre-defined events (to be used in -e):
Metrics:
IPC
[Instructions Per Cycle (per logical thread)]
UPI
[Uops Per Instruction]
Fixes: 71b0acce78 ("perf list: Add metric groups to perf list")
Signed-off-by: Kim Phillips <kim.phillips@amd.com>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: Janakarajan Natarajan <janakarajan.natarajan@amd.com>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Luke Mujica <lukemujica@google.com>
Cc: Martin Liška <mliska@suse.cz>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20190919204306.12598-4-kim.phillips@amd.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2019-09-25 09:51:42 -03:00
..
arch
perf/core improvements and fixes:
2019-09-20 18:16:42 +02:00
bench
perf env: Remove needless cpumap.h header
2019-09-20 09:19:21 -03:00
Documentation
perf report: Add --switch-on/--switch-off events
2019-08-16 12:14:33 -03:00
examples /bpf
perf augmented_raw_syscalls: Reduce perf_event_output() boilerplate
2019-08-26 11:58:29 -03:00
include /bpf
perf include bpf: Add bpf_tail_call() prototype
2019-07-29 18:34:40 -03:00
jvmti
perf jvmti: Link against tools/lib/string.o to have weak strlcpy()
2019-09-20 09:18:45 -03:00
lib
libperf: Adopt perf_cpu_map__max() function
2019-09-10 14:33:32 +01:00
pmu-events
perf vendor events: Minor fixes to the README
2019-09-25 09:51:42 -03:00
python
scripts
perf tools: Remove perf.h from source files not needing it
2019-08-29 17:38:32 -03:00
tests
perf session: Return error code for perf_session__new() function on failure
2019-09-20 15:58:11 -03:00
trace
perf trace beauty ioctl: Fix off-by-one error in cmd->string table
2019-08-26 11:58:29 -03:00
ui
perf tools: Move event synthesizing routines to separate header
2019-09-20 09:19:22 -03:00
util
perf record: Fix priv level with branch sampling for paranoid=2
2019-09-23 11:15:46 -03:00
.gitignore
perf: Update .gitignore file
2019-08-31 22:27:52 -03:00
Build
builtin-annotate.c
perf session: Return error code for perf_session__new() function on failure
2019-09-20 15:58:11 -03:00
builtin-bench.c
perf tools: Remove perf.h from source files not needing it
2019-08-29 17:38:32 -03:00
builtin-buildid-cache.c
perf session: Return error code for perf_session__new() function on failure
2019-09-20 15:58:11 -03:00
builtin-buildid-list.c
perf session: Return error code for perf_session__new() function on failure
2019-09-20 15:58:11 -03:00
builtin-c2c.c
perf session: Return error code for perf_session__new() function on failure
2019-09-20 15:58:11 -03:00
builtin-config.c
perf tools: Remove util.h from where it is not needed
2019-09-20 09:19:20 -03:00
builtin-data.c
perf debug: Remove needless include directives from debug.h
2019-08-31 19:10:19 -03:00
builtin-diff.c
perf session: Return error code for perf_session__new() function on failure
2019-09-20 15:58:11 -03:00
builtin-evlist.c
perf session: Return error code for perf_session__new() function on failure
2019-09-20 15:58:11 -03:00
builtin-ftrace.c
perf auxtrace: Uninline functions that touch perf_session
2019-08-31 22:24:10 -03:00
builtin-help.c
perf debug: Remove needless include directives from debug.h
2019-08-31 19:10:19 -03:00
builtin-inject.c
perf session: Return error code for perf_session__new() function on failure
2019-09-20 15:58:11 -03:00
builtin-kallsyms.c
perf dsos: Move the dsos struct and its methods to separate source files
2019-08-31 22:24:10 -03:00
builtin-kmem.c
perf session: Return error code for perf_session__new() function on failure
2019-09-20 15:58:11 -03:00
builtin-kvm.c
perf session: Return error code for perf_session__new() function on failure
2019-09-20 15:58:11 -03:00
builtin-list.c
perf list: Allow plurals for metric, metricgroup
2019-09-25 09:51:42 -03:00
builtin-lock.c
perf session: Return error code for perf_session__new() function on failure
2019-09-20 15:58:11 -03:00
builtin-mem.c
perf session: Return error code for perf_session__new() function on failure
2019-09-20 15:58:11 -03:00
builtin-probe.c
perf probe: No need for symbol.h, symbol_conf is enough
2019-08-31 22:24:10 -03:00
builtin-record.c
perf record: Move restricted maps check to after a possible fallback to not collect kernel samples
2019-09-23 11:15:46 -03:00
builtin-report.c
perf session: Return error code for perf_session__new() function on failure
2019-09-20 15:58:11 -03:00
builtin-sched.c
perf session: Return error code for perf_session__new() function on failure
2019-09-20 15:58:11 -03:00
builtin-script.c
perf session: Return error code for perf_session__new() function on failure
2019-09-20 15:58:11 -03:00
builtin-stat.c
perf session: Return error code for perf_session__new() function on failure
2019-09-20 15:58:11 -03:00
builtin-timechart.c
perf session: Return error code for perf_session__new() function on failure
2019-09-20 15:58:11 -03:00
builtin-top.c
perf session: Return error code for perf_session__new() function on failure
2019-09-20 15:58:11 -03:00
builtin-trace.c
perf session: Return error code for perf_session__new() function on failure
2019-09-20 15:58:11 -03:00
builtin-version.c
perf symbols: Move mem_info and branch_info out of symbol.h
2019-08-31 22:27:48 -03:00
builtin.h
perf tools: Remove needless util.h include from builtin.h
2019-08-28 17:19:34 -03:00
check-headers.sh
perf build: Ignore intentional differences for the x86 insn decoder
2019-08-31 22:27:52 -03:00
command-list.txt
CREDITS
design.txt
Makefile
Makefile.config
Merge branch 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2019-09-16 17:06:21 -07:00
Makefile.perf
perf python: Add missing python/perf.so dependency for libperf
2019-09-10 14:33:32 +01:00
MANIFEST
tools lib: Adopt zalloc()/zfree() from tools/perf
2019-07-09 10:13:26 -03:00
perf-archive.sh
perf-completion.sh
perf-read-vdso.c
perf-sys.h
perf tools: Move everything related to sys_perf_event_open() to perf-sys.h
2019-08-29 17:38:32 -03:00
perf-with-kcore.sh
perf.c
perf tools: Remove util.h from where it is not needed
2019-09-20 09:19:20 -03:00
perf.h
perf time-utils: Adopt rdclock() from perf.h
2019-08-29 17:38:32 -03:00