Contributors: 16
| Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
| Jiri Olsa |
84 |
40.58% |
3 |
15.79% |
| Jianlin Lv |
28 |
13.53% |
1 |
5.26% |
| Stéphane Eranian |
26 |
12.56% |
2 |
10.53% |
| Ravi Bangoria |
13 |
6.28% |
1 |
5.26% |
| Kan Liang |
12 |
5.80% |
1 |
5.26% |
| Andi Kleen |
9 |
4.35% |
1 |
5.26% |
| Alexis Berlemont |
9 |
4.35% |
1 |
5.26% |
| Alexey Budankov |
8 |
3.86% |
1 |
5.26% |
| Ian Rogers |
7 |
3.38% |
1 |
5.26% |
| Sukadev Bhattiprolu |
3 |
1.45% |
1 |
5.26% |
| Namhyung Kim |
2 |
0.97% |
1 |
5.26% |
| Ingo Molnar |
2 |
0.97% |
1 |
5.26% |
| Arnaldo Carvalho de Melo |
1 |
0.48% |
1 |
5.26% |
| Greg Kroah-Hartman |
1 |
0.48% |
1 |
5.26% |
| Borislav Petkov |
1 |
0.48% |
1 |
5.26% |
| Irina Tirdea |
1 |
0.48% |
1 |
5.26% |
| Total |
207 |
|
19 |
|
/* 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(n, b) { .name = #n, .mask = 1ULL << (b) }
#define SMPL_REG2(n, b) { .name = #n, .mask = 3ULL << (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[];
#include <perf_regs.h>
#define DWARF_MINIMAL_REGS ((1ULL << PERF_REG_IP) | (1ULL << PERF_REG_SP))
int perf_reg_value(u64 *valp, struct regs_dump *regs, int id);
static inline const char *perf_reg_name(int id)
{
const char *reg_name = __perf_reg_name(id);
return reg_name ?: "unknown";
}
#else
#define PERF_REGS_MASK 0
#define PERF_REGS_MAX 0
#define DWARF_MINIMAL_REGS PERF_REGS_MASK
static inline const char *perf_reg_name(int id __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;
}
#endif /* HAVE_PERF_REGS_SUPPORT */
#endif /* __PERF_REGS_H */