OSDN Git Service

perf: Capture branch privilege information
authorAnshuman Khandual <anshuman.khandual@arm.com>
Wed, 24 Aug 2022 04:48:17 +0000 (10:18 +0530)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 29 Aug 2022 07:42:42 +0000 (09:42 +0200)
commit5402d25aa5710d240040f73fb13d7d5c303ef071
treecb99d6c083c1052b71a2fd3ae668b5e9286db6a7
parentb190bc4ac9e6d9763b61654c5a0c085ff77d7a09
perf: Capture branch privilege information

Platforms like arm64 could capture privilege level information for all the
branch records. Hence this adds a new element in the struct branch_entry to
record the privilege level information, which could be requested through a
new event.attr.branch_sample_type based flag PERF_SAMPLE_BRANCH_PRIV_SAVE.
This flag helps user choose whether privilege information is captured.

Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: James Clark <james.clark@arm.com>
Link: https://lkml.kernel.org/r/20220824044822.70230-4-anshuman.khandual@arm.com
include/uapi/linux/perf_event.h