Release 4.10 tools/perf/util/perf_regs.c
#include <errno.h>
#include "perf_regs.h"
#include "event.h"
const struct sample_reg __weak sample_reg_masks[] = {
SMPL_REG_END
};
#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 | jiri olsa | 126 | 96.92% | 2 | 66.67% |
naveen n. rao | 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 | jiri olsa | 135 | 87.10% | 2 | 40.00% |
stephane eranian | stephane eranian | 11 | 7.10% | 1 | 20.00% |
sukadev bhattiprolu | sukadev bhattiprolu | 5 | 3.23% | 1 | 20.00% |
naveen n. rao | naveen n. rao | 4 | 2.58% | 1 | 20.00% |
| Total | 155 | 100.00% | 5 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.