cregit-Linux how code gets into the kernel

Release 4.10 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 richterrobert richter853.33%150.00%
john levonjohn levon746.67%150.00%
Total15100.00%2100.00%


static void op_nmi_exit(void) { }

Contributors

PersonTokensPropCommitsCommitProp
john levonjohn levon457.14%250.00%
robert richterrobert richter228.57%125.00%
david gibsondavid 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 levonjohn levon1043.48%125.00%
greg banksgreg banks626.09%125.00%
robert richterrobert richter417.39%125.00%
akinobu mitaakinobu mita313.04%125.00%
Total23100.00%4100.00%


void oprofile_arch_exit(void) { op_nmi_exit(); }

Contributors

PersonTokensPropCommitsCommitProp
john levonjohn levon990.00%150.00%
david gibsondavid gibson110.00%150.00%
Total10100.00%2100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
john levonjohn levon4744.76%333.33%
robert richterrobert richter2725.71%111.11%
greg banksgreg banks2120.00%111.11%
akinobu mitaakinobu mita32.86%111.11%
david gibsondavid gibson32.86%111.11%
andrew mortonandrew morton32.86%111.11%
paolo ciarrocchipaolo 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.