]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
perf/UAPI: Clearly mark __PERF_SAMPLE_CALLCHAIN_EARLY as internal use
authorPeter Zijlstra <peterz@infradead.org>
Wed, 29 Aug 2018 12:13:13 +0000 (14:13 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 10 Sep 2018 08:03:02 +0000 (10:03 +0200)
Vince noted that commit:

  6cbc304f2f36 ("perf/x86/intel: Fix unwind errors from PEBS entries (mk-II)")

'leaked' __PERF_SAMPLE_CALLCHAIN_EARLY into the UAPI namespace. And
while sys_perf_event_open() will error out if you try to use it, it is
exposed.

Clearly mark it for internal use only to avoid any confusion.

Requested-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/uapi/linux/perf_event.h

index eeb787b1c53c72771c8d684154b7a87dc029a45b..f35eb72739c09e3ad0bd22e279fa4a33119c15f6 100644 (file)
@@ -144,7 +144,7 @@ enum perf_event_sample_format {
 
        PERF_SAMPLE_MAX = 1U << 20,             /* non-ABI */
 
-       __PERF_SAMPLE_CALLCHAIN_EARLY           = 1ULL << 63,
+       __PERF_SAMPLE_CALLCHAIN_EARLY           = 1ULL << 63, /* non-ABI; internal use */
 };
 
 /*