aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorMark Rutland <[email protected]>2020-10-26 13:49:29 +0000
committerMarc Zyngier <[email protected]>2020-10-30 08:52:51 +0000
commite9a33caec90e05673e2f7fb7c80f172031964d25 (patch)
tree15b1e3213bad6e4fcf24fa2a64b130f182ad8a67 /tools/perf/util/trace-event-scripting.c
parent91a2c34b7d6fadc9c5d9433c620ea4c32ee7cae8 (diff)
KVM: arm64: Factor out is_{vhe,nvhe}_hyp_code()
Currently has_vhe() detects whether it is being compiled for VHE/NVHE hyp code based on preprocessor definitions, and uses this knowledge to avoid redundant runtime checks. There are other cases where we'd like to use this knowledge, so let's factor the preprocessor checks out into separate helpers. There should be no functional change as a result of this patch. Signed-off-by: Mark Rutland <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Acked-by: Will Deacon <[email protected]> Cc: David Brazdil <[email protected]> Cc: Marc Zyngier <[email protected]> Cc: Will Deacon <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions