* perf test failing for "sample parsing"
@ 2013-10-22 18:35 Arnaldo Carvalho de Melo
2013-10-23 8:40 ` Andi Kleen
0 siblings, 1 reply; 2+ messages in thread
From: Arnaldo Carvalho de Melo @ 2013-10-22 18:35 UTC (permalink / raw)
To: Andi Kleen
Cc: Adrian Hunter, Jiri Olsa, David Ahern, Namhyung Kim,
Linux Kernel Mailing List
Andi,
I should've caught this when processing those patches, but
please consider running 'perf test' before and after your future patch
kits :-)
[root@sandy ~]# perf test 22
22: Test sample parsing : FAILED!
[root@sandy ~]# perf test -v 22
22: Test sample parsing :
--- start ---
sample format has changed - test needs updating
---- end ----
Test sample parsing: FAILED!
[root@sandy ~]#
So I bisected it down to:
commit fdfbbd07e91f8fe387140776f3fd94605f0c89e5
Author: Andi Kleen <ak@linux.intel.com>
Date: Fri Sep 20 07:40:39 2013 -0700
perf: Add generic transaction flags
Add a generic qualifier for transaction events, as a new sample
type that returns a flag word. This is particularly useful
for qualifying aborts: to distinguish aborts which happen
due to asynchronous events (like conflicts caused by another
CPU) versus instructions that lead to an abort.
extern void perf_output_sample(struct perf_output_handle *handle,
diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h
index 009a655..da48837 100644
--- a/include/uapi/linux/perf_event.h
+++ b/include/uapi/linux/perf_event.h
@@ -136,8 +136,9 @@ enum perf_event_sample_format {
PERF_SAMPLE_WEIGHT = 1U << 14,
PERF_SAMPLE_DATA_SRC = 1U << 15,
PERF_SAMPLE_IDENTIFIER = 1U << 16,
+ PERF_SAMPLE_TRANSACTION = 1U << 17,
- PERF_SAMPLE_MAX = 1U << 17, /* non-ABI */
+ PERF_SAMPLE_MAX = 1U << 18, /* non-ABI */
--------------------------------------------------------------------------------------
So I looked at tools/perf/tests/builtin-test.c for the "Test sample parsing"
string and found the test__sample_parsing function, and fixed it there,
patches sent to my perf/core branch.
This one was harmless, but there were problems that were caught
by running 'perf test' while writing patchkits,
Thanks,
- Arnaldo
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: perf test failing for "sample parsing"
2013-10-22 18:35 perf test failing for "sample parsing" Arnaldo Carvalho de Melo
@ 2013-10-23 8:40 ` Andi Kleen
0 siblings, 0 replies; 2+ messages in thread
From: Andi Kleen @ 2013-10-23 8:40 UTC (permalink / raw)
To: Arnaldo Carvalho de Melo
Cc: Andi Kleen, Adrian Hunter, Jiri Olsa, David Ahern, Namhyung Kim,
Linux Kernel Mailing List
> This one was harmless, but there were problems that were caught
> by running 'perf test' while writing patchkits,
Thanks for fixing. I'll run it in the future.
-Andi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-10-23 8:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-22 18:35 perf test failing for "sample parsing" Arnaldo Carvalho de Melo
2013-10-23 8:40 ` Andi Kleen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).