cregit-Linux how code gets into the kernel

Release 4.14 arch/x86/oprofile/init.c

/**
 * @file init.c
 *
 * @remark Copyright 2002 OProfile authors
 * @remark Read the file COPYING
 *
 * @author John Levon <levon@movementarian.org>
 */

#include <linux/oprofile.h>
#include <linux/init.h>
#include <linux/errno.h>

/*
 * We support CPUs that have performance counters like the Pentium Pro
 * with the NMI mode driver.
 */

#ifdef CONFIG_X86_LOCAL_APIC
extern int op_nmi_init(struct oprofile_operations *ops);
extern void op_nmi_exit(void);
#else

static int op_nmi_init(struct oprofile_operations *ops) { return -ENODEV; }

Contributors

PersonTokensPropCommitsCommitProp
Robert Richter853.33%150.00%
John Levon746.67%150.00%
Total15100.00%2100.00%


static void op_nmi_exit(void) { }

Contributors

PersonTokensPropCommitsCommitProp
John Levon457.14%250.00%
Robert Richter228.57%125.00%
David Gibson114.29%125.00%
Total7100.00%4100.00%

#endif extern void x86_backtrace(struct pt_regs * const regs, unsigned int depth);
int __init oprofile_arch_init(struct oprofile_operations *ops) { ops->backtrace = x86_backtrace; return op_nmi_init(ops); }

Contributors

PersonTokensPropCommitsCommitProp
John Levon1043.48%125.00%
Greg Banks626.09%125.00%
Robert Richter417.39%125.00%
Akinobu Mita313.04%125.00%
Total23100.00%4100.00%


void oprofile_arch_exit(void) { op_nmi_exit(); }

Contributors

PersonTokensPropCommitsCommitProp
John Levon990.00%150.00%
David Gibson110.00%150.00%
Total10100.00%2100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
John Levon4744.76%333.33%
Robert Richter2725.71%111.11%
Greg Banks2120.00%111.11%
Andrew Morton32.86%111.11%
David Gibson32.86%111.11%
Akinobu Mita32.86%111.11%
Paolo Ciarrocchi10.95%111.11%
Total105100.00%9100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.