lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Tue, 10 Mar 2020 08:15:39 -0300 From: Arnaldo Carvalho de Melo <acme@...nel.org> To: Ingo Molnar <mingo@...nel.org>, Thomas Gleixner <tglx@...utronix.de> Cc: Jiri Olsa <jolsa@...nel.org>, Namhyung Kim <namhyung@...nel.org>, Clark Williams <williams@...hat.com>, linux-kernel@...r.kernel.org, linux-perf-users@...r.kernel.org, Arnaldo Carvalho de Melo <acme@...hat.com>, Kan Liang <kan.liang@...ux.intel.com>, Adrian Hunter <adrian.hunter@...el.com>, Alexey Budankov <alexey.budankov@...ux.intel.com>, Andi Kleen <ak@...ux.intel.com>, Mathieu Poirier <mathieu.poirier@...aro.org>, Michael Ellerman <mpe@...erman.id.au>, Pavel Gerasimov <pavel.gerasimov@...el.com>, Peter Zijlstra <peterz@...radead.org>, Ravi Bangoria <ravi.bangoria@...ux.ibm.com>, Stephane Eranian <eranian@...gle.com>, Vitaly Slobodskoy <vitaly.slobodskoy@...el.com> Subject: [PATCH 07/19] tools headers UAPI: Update tools's copy of linux/perf_event.h From: Arnaldo Carvalho de Melo <acme@...hat.com> To get the changes in: bbfd5e4fab63 ("perf/core: Add new branch sample type for HW index of raw branch records") This silences this perf tools build warning: Warning: Kernel ABI header at 'tools/include/uapi/linux/perf_event.h' differs from latest version at 'include/uapi/linux/perf_event.h' diff -u tools/include/uapi/linux/perf_event.h include/uapi/linux/perf_event.h This update is a prerequisite to adding support for the HW index of raw branch records. Acked-by: Kan Liang <kan.liang@...ux.intel.com> Cc: Adrian Hunter <adrian.hunter@...el.com> Cc: Alexey Budankov <alexey.budankov@...ux.intel.com> Cc: Andi Kleen <ak@...ux.intel.com> Cc: Jiri Olsa <jolsa@...nel.org> Cc: Mathieu Poirier <mathieu.poirier@...aro.org> Cc: Michael Ellerman <mpe@...erman.id.au> Cc: Namhyung Kim <namhyung@...nel.org> Cc: Pavel Gerasimov <pavel.gerasimov@...el.com> Cc: Peter Zijlstra (Intel) <peterz@...radead.org> Cc: Ravi Bangoria <ravi.bangoria@...ux.ibm.com> Cc: Stephane Eranian <eranian@...gle.com> Cc: Vitaly Slobodskoy <vitaly.slobodskoy@...el.com> Link: http://lore.kernel.org/lkml/20200304134902.GB12612@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com> --- tools/include/uapi/linux/perf_event.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/include/uapi/linux/perf_event.h b/tools/include/uapi/linux/perf_event.h index 377d794d3105..397cfd65b3fe 100644 --- a/tools/include/uapi/linux/perf_event.h +++ b/tools/include/uapi/linux/perf_event.h @@ -181,6 +181,8 @@ enum perf_branch_sample_type_shift { PERF_SAMPLE_BRANCH_TYPE_SAVE_SHIFT = 16, /* save branch type */ + PERF_SAMPLE_BRANCH_HW_INDEX_SHIFT = 17, /* save low level index of raw branch records */ + PERF_SAMPLE_BRANCH_MAX_SHIFT /* non-ABI */ }; @@ -208,6 +210,8 @@ enum perf_branch_sample_type { PERF_SAMPLE_BRANCH_TYPE_SAVE = 1U << PERF_SAMPLE_BRANCH_TYPE_SAVE_SHIFT, + PERF_SAMPLE_BRANCH_HW_INDEX = 1U << PERF_SAMPLE_BRANCH_HW_INDEX_SHIFT, + PERF_SAMPLE_BRANCH_MAX = 1U << PERF_SAMPLE_BRANCH_MAX_SHIFT, }; @@ -853,7 +857,9 @@ enum perf_event_type { * char data[size];}&& PERF_SAMPLE_RAW * * { u64 nr; - * { u64 from, to, flags } lbr[nr];} && PERF_SAMPLE_BRANCH_STACK + * { u64 hw_idx; } && PERF_SAMPLE_BRANCH_HW_INDEX + * { u64 from, to, flags } lbr[nr]; + * } && PERF_SAMPLE_BRANCH_STACK * * { u64 abi; # enum perf_sample_regs_abi * u64 regs[weight(mask)]; } && PERF_SAMPLE_REGS_USER -- 2.21.1
Powered by blists - more mailing lists