cregit-Linux how code gets into the kernel

Release 4.18 fs/proc/softirqs.c

Directory: fs/proc
// SPDX-License-Identifier: GPL-2.0
#include <linux/init.h>
#include <linux/kernel_stat.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>

/*
 * /proc/softirqs  ... display the number of softirqs
 */

static int show_softirqs(struct seq_file *p, void *v) { int i, j; seq_puts(p, " "); for_each_possible_cpu(i) seq_printf(p, "CPU%-8d", i); seq_putc(p, '\n'); for (i = 0; i < NR_SOFTIRQS; i++) { seq_printf(p, "%12s:", softirq_to_name[i]); for_each_possible_cpu(j) seq_printf(p, " %10u", kstat_softirqs_cpu(i, j)); seq_putc(p, '\n'); } return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Keika Kobayashi9593.14%133.33%
Alexey Dobriyan54.90%133.33%
Davidlohr Bueso A21.96%133.33%
Total102100.00%3100.00%


static int __init proc_softirqs_init(void) { proc_create_single("softirqs", 0, NULL, show_softirqs); return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Keika Kobayashi2191.30%150.00%
Christoph Hellwig28.70%150.00%
Total23100.00%2100.00%

fs_initcall(proc_softirqs_init);

Overall Contributors

PersonTokensPropCommitsCommitProp
Keika Kobayashi13392.36%116.67%
Alexey Dobriyan53.47%116.67%
Davidlohr Bueso A21.39%116.67%
Christoph Hellwig21.39%116.67%
Greg Kroah-Hartman10.69%116.67%
Paul Gortmaker10.69%116.67%
Total144100.00%6100.00%
Directory: fs/proc
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.