cregit-Linux how code gets into the kernel

Release 4.10 tools/perf/util/perf_regs.h

Directory: tools/perf/util
#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_REG_END { .name = NULL }

extern const struct sample_reg sample_reg_masks[];

#ifdef HAVE_PERF_REGS_SUPPORT
#include <perf_regs.h>

int perf_reg_value(u64 *valp, struct regs_dump *regs, int id);

#else

#define PERF_REGS_MASK	0

#define PERF_REGS_MAX	0


static inline const char *perf_reg_name(int id __maybe_unused) { return NULL; }

Contributors

PersonTokensPropCommitsCommitProp
jiri olsajiri olsa1593.75%150.00%
irina tirdeairina tirdea16.25%150.00%
Total16100.00%2100.00%


static inline int perf_reg_value(u64 *valp __maybe_unused, struct regs_dump *regs __maybe_unused, int id __maybe_unused) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
jiri olsajiri olsa25100.00%1100.00%
Total25100.00%1100.00%

#endif /* HAVE_PERF_REGS_SUPPORT */ #endif /* __PERF_REGS_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
jiri olsajiri olsa8566.93%330.00%
stephane eranianstephane eranian3325.98%220.00%
sukadev bhattiprolusukadev bhattiprolu32.36%110.00%
namhyung kimnamhyung kim21.57%110.00%
ingo molnaringo molnar21.57%110.00%
borislav petkovborislav petkov10.79%110.00%
irina tirdeairina tirdea10.79%110.00%
Total127100.00%10100.00%
Directory: tools/perf/util
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.