diff options
author | Andi Kleen <ak@linux.intel.com> | 2019-02-24 07:37:12 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-05 22:34:30 +0200 |
commit | 9a27e9ef2338f5dfdb039a3ce8aa3b4c11c7caca (patch) | |
tree | c8dc83d98502fbe2e4f3c3864e8a828f2c451347 /tools/objtool/arch/x86 | |
parent | 565e4ecefeae67d0b1575dd6016b161deda00db5 (diff) | |
download | blackbird-obmc-linux-9a27e9ef2338f5dfdb039a3ce8aa3b4c11c7caca.tar.gz blackbird-obmc-linux-9a27e9ef2338f5dfdb039a3ce8aa3b4c11c7caca.zip |
perf script: Handle missing fields with -F +..
[ Upstream commit 4b6ac811bce46c83811b83cdf87b41251596b9fc ]
When using -F + syntax to add a field the existing defaults are
currently all marked user_set. This can cause errors when some field is
missing in the perf.data
This patch tracks the actually user set fields separately, so that we don't
error out in this case.
Before:
% perf record true
% perf script -F +metric
Samples for 'cycles:ppp' event do not have CPU attribute set. Cannot print 'cpu' field.
%
After:
5 perf record true
% perf script -F +metric
perf 28936 278636.237688: 1 cycles:ppp: ffffffff8117da99 perf_event_exec+0x59 (/lib/modules/4.20.0-odilo/build/vmlinux)
...
%
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/20190224153722.27020-2-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/objtool/arch/x86')
0 files changed, 0 insertions, 0 deletions