cregit-Linux how code gets into the kernel

Release 4.14 tools/perf/util/perf_regs.h

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

extern const struct sample_reg sample_reg_masks[];

enum {
	
SDT_ARG_VALID = 0,
	
SDT_ARG_SKIP,
};

int arch_sdt_arg_parse_op(char *old_op, char **new_op);

#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 Olsa1593.75%150.00%
Irina 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 Olsa25100.00%1100.00%
Total25100.00%1100.00%

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

Overall Contributors

PersonTokensPropCommitsCommitProp
Jiri Olsa8556.67%323.08%
Stéphane Eranian3322.00%215.38%
Ravi Bangoria138.67%17.69%
Alexis Berlemont96.00%17.69%
Sukadev Bhattiprolu32.00%17.69%
Ingo Molnar21.33%17.69%
Namhyung Kim21.33%17.69%
Borislav Petkov10.67%17.69%
Irina Tirdea10.67%17.69%
Greg Kroah-Hartman10.67%17.69%
Total150100.00%13100.00%
Directory: tools/perf/util
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.