Release 4.11 fs/proc/softirqs.c
#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
Person | Tokens | Prop | Commits | CommitProp |
Keika Kobayashi | 95 | 93.14% | 1 | 33.33% |
Alexey Dobriyan | 5 | 4.90% | 1 | 33.33% |
Davidlohr Bueso A | 2 | 1.96% | 1 | 33.33% |
Total | 102 | 100.00% | 3 | 100.00% |
static int softirqs_open(struct inode *inode, struct file *file)
{
return single_open(file, show_softirqs, NULL);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Keika Kobayashi | 26 | 100.00% | 1 | 100.00% |
Total | 26 | 100.00% | 1 | 100.00% |
static const struct file_operations proc_softirqs_operations = {
.open = softirqs_open,
.read = seq_read,
.llseek = seq_lseek,
.release = single_release,
};
static int __init proc_softirqs_init(void)
{
proc_create("softirqs", 0, NULL, &proc_softirqs_operations);
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Keika Kobayashi | 24 | 100.00% | 1 | 100.00% |
Total | 24 | 100.00% | 1 | 100.00% |
fs_initcall(proc_softirqs_init);
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Keika Kobayashi | 190 | 95.96% | 1 | 25.00% |
Alexey Dobriyan | 5 | 2.53% | 1 | 25.00% |
Davidlohr Bueso A | 2 | 1.01% | 1 | 25.00% |
Paul Gortmaker | 1 | 0.51% | 1 | 25.00% |
Total | 198 | 100.00% | 4 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.