Contributors: 17
Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
Jiri Olsa |
128 |
26.67% |
4 |
17.39% |
German Gomez |
97 |
20.21% |
2 |
8.70% |
Kan Liang |
93 |
19.38% |
1 |
4.35% |
Leo Yan |
82 |
17.08% |
2 |
8.70% |
Stéphane Eranian |
32 |
6.67% |
2 |
8.70% |
Ravi Bangoria |
13 |
2.71% |
1 |
4.35% |
Alexis Berlemont |
9 |
1.88% |
1 |
4.35% |
Andi Kleen |
8 |
1.67% |
1 |
4.35% |
Huacai Chen |
5 |
1.04% |
1 |
4.35% |
Sukadev Bhattiprolu |
3 |
0.62% |
1 |
4.35% |
Ingo Molnar |
2 |
0.42% |
1 |
4.35% |
Irina Tirdea |
2 |
0.42% |
1 |
4.35% |
Namhyung Kim |
2 |
0.42% |
1 |
4.35% |
Alexey Budankov |
1 |
0.21% |
1 |
4.35% |
Arnaldo Carvalho de Melo |
1 |
0.21% |
1 |
4.35% |
Borislav Petkov |
1 |
0.21% |
1 |
4.35% |
Greg Kroah-Hartman |
1 |
0.21% |
1 |
4.35% |
Total |
480 |
|
23 |
|
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __PERF_REGS_H
#define __PERF_REGS_H
#include <linux/types.h>
#include <linux/compiler.h>
struct regs_dump;
struct sample_reg {
const char *name;
uint64_t mask;
};
#define SMPL_REG_MASK(b) (1ULL << (b))
#define SMPL_REG(n, b) { .name = #n, .mask = SMPL_REG_MASK(b) }
#define SMPL_REG2_MASK(b) (3ULL << (b))
#define SMPL_REG2(n, b) { .name = #n, .mask = SMPL_REG2_MASK(b) }
#define SMPL_REG_END { .name = NULL }
enum {
SDT_ARG_VALID = 0,
SDT_ARG_SKIP,
};
int arch_sdt_arg_parse_op(char *old_op, char **new_op);
uint64_t arch__intr_reg_mask(void);
uint64_t arch__user_reg_mask(void);
#ifdef HAVE_PERF_REGS_SUPPORT
extern const struct sample_reg sample_reg_masks[];
const char *perf_reg_name(int id, const char *arch);
int perf_reg_value(u64 *valp, struct regs_dump *regs, int id);
uint64_t perf_arch_reg_ip(const char *arch);
uint64_t perf_arch_reg_sp(const char *arch);
const char *__perf_reg_name_arm64(int id);
uint64_t __perf_reg_ip_arm64(void);
uint64_t __perf_reg_sp_arm64(void);
const char *__perf_reg_name_arm(int id);
uint64_t __perf_reg_ip_arm(void);
uint64_t __perf_reg_sp_arm(void);
const char *__perf_reg_name_csky(int id);
uint64_t __perf_reg_ip_csky(void);
uint64_t __perf_reg_sp_csky(void);
const char *__perf_reg_name_loongarch(int id);
uint64_t __perf_reg_ip_loongarch(void);
uint64_t __perf_reg_sp_loongarch(void);
const char *__perf_reg_name_mips(int id);
uint64_t __perf_reg_ip_mips(void);
uint64_t __perf_reg_sp_mips(void);
const char *__perf_reg_name_powerpc(int id);
uint64_t __perf_reg_ip_powerpc(void);
uint64_t __perf_reg_sp_powerpc(void);
const char *__perf_reg_name_riscv(int id);
uint64_t __perf_reg_ip_riscv(void);
uint64_t __perf_reg_sp_riscv(void);
const char *__perf_reg_name_s390(int id);
uint64_t __perf_reg_ip_s390(void);
uint64_t __perf_reg_sp_s390(void);
const char *__perf_reg_name_x86(int id);
uint64_t __perf_reg_ip_x86(void);
uint64_t __perf_reg_sp_x86(void);
static inline uint64_t DWARF_MINIMAL_REGS(const char *arch)
{
return (1ULL << perf_arch_reg_ip(arch)) | (1ULL << perf_arch_reg_sp(arch));
}
#else
static inline uint64_t DWARF_MINIMAL_REGS(const char *arch __maybe_unused)
{
return 0;
}
static inline const char *perf_reg_name(int id __maybe_unused, const char *arch __maybe_unused)
{
return "unknown";
}
static inline int perf_reg_value(u64 *valp __maybe_unused,
struct regs_dump *regs __maybe_unused,
int id __maybe_unused)
{
return 0;
}
static inline uint64_t perf_arch_reg_ip(const char *arch __maybe_unused)
{
return 0;
}
static inline uint64_t perf_arch_reg_sp(const char *arch __maybe_unused)
{
return 0;
}
#endif /* HAVE_PERF_REGS_SUPPORT */
#endif /* __PERF_REGS_H */