cregit-Linux how code gets into the kernel

Release 4.11 arch/x86/kernel/apic/hw_nmi.c

/*
 *  HW NMI watchdog support
 *
 *  started by Don Zickus, Copyright (C) 2010 Red Hat, Inc.
 *
 *  Arch specific calls to support NMI watchdog
 *
 *  Bits copied from original nmi.c file
 *
 */
#include <asm/apic.h>
#include <asm/nmi.h>

#include <linux/cpumask.h>
#include <linux/kdebug.h>
#include <linux/notifier.h>
#include <linux/kprobes.h>
#include <linux/nmi.h>
#include <linux/init.h>
#include <linux/delay.h>

#ifdef CONFIG_HARDLOCKUP_DETECTOR

u64 hw_nmi_get_sample_period(int watchdog_thresh) { return (u64)(cpu_khz) * 1000 * watchdog_thresh; }

Contributors

PersonTokensPropCommitsCommitProp
Don Zickus1785.00%266.67%
Mandeep Singh Baines315.00%133.33%
Total20100.00%3100.00%

#endif #ifdef arch_trigger_cpumask_backtrace
static void nmi_raise_cpu_backtrace(cpumask_t *mask) { apic->send_IPI_mask(mask, NMI_VECTOR); }

Contributors

PersonTokensPropCommitsCommitProp
Steven Rostedt1263.16%150.00%
Russell King736.84%150.00%
Total19100.00%2100.00%


void arch_trigger_cpumask_backtrace(const cpumask_t *mask, bool exclude_self) { nmi_trigger_cpumask_backtrace(mask, exclude_self, nmi_raise_cpu_backtrace); }

Contributors

PersonTokensPropCommitsCommitProp
Chris Metcalf1150.00%116.67%
Don Zickus418.18%116.67%
Steven Rostedt313.64%116.67%
Aaron Tomlin29.09%116.67%
Dongdong Deng14.55%116.67%
Russell King14.55%116.67%
Total22100.00%6100.00%


static int nmi_cpu_backtrace_handler(unsigned int cmd, struct pt_regs *regs) { if (nmi_cpu_backtrace(regs)) return NMI_HANDLED; return NMI_DONE; }

Contributors

PersonTokensPropCommitsCommitProp
Don Zickus2589.29%250.00%
Russell King27.14%125.00%
Chris Metcalf13.57%125.00%
Total28100.00%4100.00%

NOKPROBE_SYMBOL(nmi_cpu_backtrace_handler);
static int __init register_nmi_cpu_backtrace_handler(void) { register_nmi_handler(NMI_LOCAL, nmi_cpu_backtrace_handler, 0, "arch_bt"); return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Don Zickus2191.30%266.67%
Chris Metcalf28.70%133.33%
Total23100.00%3100.00%

early_initcall(register_nmi_cpu_backtrace_handler); #endif

Overall Contributors

PersonTokensPropCommitsCommitProp
Don Zickus9660.00%736.84%
Chris Metcalf1710.62%15.26%
Steven Rostedt159.38%15.26%
Russell King106.25%15.26%
Masami Hiramatsu42.50%15.26%
Ingo Molnar31.88%15.26%
Mandeep Singh Baines31.88%15.26%
Michel Lespinasse31.88%15.26%
Jean Delvare31.88%15.26%
Aaron Tomlin21.25%15.26%
Rakib Mullick21.25%15.26%
Dongdong Deng10.62%15.26%
Paul Gortmaker10.62%15.26%
Total160100.00%19100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.