xref: /linux/tools/perf/arch/arm64/util/machine.c (revision bf4afc53b77aeaa48b5409da5c8da6bb4eff7f43)
1 // SPDX-License-Identifier: GPL-2.0
2 
3 #include "callchain.h" // prototype of arch__add_leaf_frame_record_opts
4 #include "perf_regs.h"
5 #include "record.h"
6 
7 #define SMPL_REG_MASK(b) (1ULL << (b))
8 
9 void arch__add_leaf_frame_record_opts(struct record_opts *opts)
10 {
11 	opts->sample_user_regs |= SMPL_REG_MASK(PERF_REG_ARM64_LR);
12 }
13