Release 4.14 tools/perf/util/perf_regs.c
// SPDX-License-Identifier: GPL-2.0
#include <errno.h>
#include "perf_regs.h"
#include "event.h"
const struct sample_reg __weak sample_reg_masks[] = {
SMPL_REG_END
};
int __weak arch_sdt_arg_parse_op(char *old_op __maybe_unused,
char **new_op __maybe_unused)
{
return SDT_ARG_SKIP;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Alexis Berlemont | 15 | 75.00% | 1 | 50.00% |
Ravi Bangoria | 5 | 25.00% | 1 | 50.00% |
Total | 20 | 100.00% | 2 | 100.00% |
#ifdef HAVE_PERF_REGS_SUPPORT
int perf_reg_value(u64 *valp, struct regs_dump *regs, int id)
{
int i, idx = 0;
u64 mask = regs->mask;
if (regs->cache_mask & (1ULL << id))
goto out;
if (!(mask & (1ULL << id)))
return -EINVAL;
for (i = 0; i < id; i++) {
if (mask & (1ULL << i))
idx++;
}
regs->cache_mask |= (1ULL << id);
regs->cache_regs[id] = regs->regs[idx];
out:
*valp = regs->cache_regs[id];
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jiri Olsa | 126 | 96.92% | 2 | 66.67% |
Naveen N. Rao | 4 | 3.08% | 1 | 33.33% |
Total | 130 | 100.00% | 3 | 100.00% |
#endif
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jiri Olsa | 135 | 76.70% | 2 | 25.00% |
Alexis Berlemont | 15 | 8.52% | 1 | 12.50% |
Stéphane Eranian | 11 | 6.25% | 1 | 12.50% |
Ravi Bangoria | 5 | 2.84% | 1 | 12.50% |
Sukadev Bhattiprolu | 5 | 2.84% | 1 | 12.50% |
Naveen N. Rao | 4 | 2.27% | 1 | 12.50% |
Greg Kroah-Hartman | 1 | 0.57% | 1 | 12.50% |
Total | 176 | 100.00% | 8 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.