machine.c 441 B

123456789101112131415161718
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include <inttypes.h>
  3. #include <stdio.h>
  4. #include <string.h>
  5. #include "debug.h"
  6. #include "symbol.h"
  7. #include "callchain.h"
  8. #include "perf_regs.h"
  9. #include "record.h"
  10. #include "util/perf_regs.h"
  11. void arch__add_leaf_frame_record_opts(struct record_opts *opts)
  12. {
  13. const struct sample_reg *sample_reg_masks = arch__sample_reg_masks();
  14. opts->sample_user_regs |= sample_reg_masks[PERF_REG_ARM64_LR].mask;
  15. }