cregit-Linux how code gets into the kernel

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

// SPDX-License-Identifier: GPL-2.0
/*
 *  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_PERF

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%120.00%
Don Zickus418.18%120.00%
Steven Rostedt418.18%120.00%
Aaron Tomlin29.09%120.00%
Russell King14.55%120.00%
Total22100.00%5100.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 Zickus9559.01%735.00%
Chris Metcalf1710.56%15.00%
Steven Rostedt169.94%15.00%
Russell King106.21%15.00%
Masami Hiramatsu42.48%15.00%
Ingo Molnar31.86%15.00%
Mandeep Singh Baines31.86%15.00%
Jean Delvare31.86%15.00%
Michel Lespinasse31.86%15.00%
Aaron Tomlin21.24%15.00%
Rakib Mullick21.24%15.00%
Nicholas Piggin10.62%15.00%
Greg Kroah-Hartman10.62%15.00%
Paul Gortmaker10.62%15.00%
Total161100.00%20100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.