]> git.baikalelectronics.ru Git - kernel.git/commit
perf parse-regs: Split parse_regs
authorKan Liang <kan.liang@linux.intel.com>
Tue, 14 May 2019 20:19:32 +0000 (13:19 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 15 May 2019 19:36:49 +0000 (16:36 -0300)
commit0624f062ec4d5ba941dc61d9c69a8b8133ea6a60
treed51a46fb776c3d2bfbecdad20f1d1c640d846adc
parentca4c1f147b2b6ffe9a2a836ce11b07877373c75b
perf parse-regs: Split parse_regs

The available registers for --int-regs and --user-regs may be different,
e.g. XMM registers.

Split parse_regs into two dedicated functions for --int-regs and
--user-regs respectively.

Modify the warning message. "--user-regs=?" should be applied to show
the available registers for --user-regs.

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Tested-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/1557865174-56264-1-git-send-email-kan.liang@linux.intel.com
[ Changed docs as suggested by Ravi and agreed by Kan ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Documentation/perf-record.txt
tools/perf/builtin-record.c
tools/perf/util/parse-regs-options.c
tools/perf/util/parse-regs-options.h