Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Linux/fs/proc/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 840 B image not shown  

Quelle  softirqs.c   Sprache: C

 
// 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>
#include "internal.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_put_decimal_ull_width(p, " ", kstat_softirqs_cpu(i, j), 10);
  seq_putc(p, '\n');
 }
 return 0;
}

static int __init proc_softirqs_init(void)
{
 struct proc_dir_entry *pde;

 pde = proc_create_single("softirqs", 0, NULL, show_softirqs);
 pde_make_permanent(pde);
 return 0;
}
fs_initcall(proc_softirqs_init);

Messung V0.5
C=94 H=94 G=93

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.