+ proc-export-statistics-for-softirq-to-proc-update.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     proc-export-statistics-for-softirq-to-proc
has been added to the -mm tree.  Its filename is
     proc-export-statistics-for-softirq-to-proc-update.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: proc-export-statistics-for-softirq-to-proc
From: Keika Kobayashi <kobayashi.kk@xxxxxxxxxxxxxx>

Sorry for my late response....
I replaced to softirq_to_name[] which is already in kernel/softirq.c.

Regarding /proc/softirq,
Ingo pointed out the difference from /proc/interrupts style.
# Thank you!
So, I inserted colon between softirq name and its statistics.

Here is update patch.

Cc: Hiroshi Shimamoto <h-shimamoto@xxxxxxxxxxxxx>
Cc: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxx>
Cc: Eric Dumazet <dada1@xxxxxxxxxxxxx>
Cc: Alexey Dobriyan <adobriyan@xxxxxxxxx>
Cc: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 fs/proc/softirqs.c |   15 +--------------
 fs/proc/stat.c     |    4 +---
 2 files changed, 2 insertions(+), 17 deletions(-)

diff -puN fs/proc/softirqs.c~proc-export-statistics-for-softirq-to-proc-update fs/proc/softirqs.c
--- a/fs/proc/softirqs.c~proc-export-statistics-for-softirq-to-proc-update
+++ a/fs/proc/softirqs.c
@@ -3,19 +3,6 @@
 #include <linux/proc_fs.h>
 #include <linux/seq_file.h>
 
-static const char *desc_array[] = {
-	"HI",
-	"TIMER",
-	"NET_TX",
-	"NET_RX",
-	"BLOCK",
-	"TASKLET",
-	"SCHED",
-#ifdef CONFIG_HIGH_RES_TIMERS
-	"HRTIMER",
-#endif
-	"RCU"};
-
 /*
  * /proc/softirqs  ... display the number of softirqs
  */
@@ -29,7 +16,7 @@ static int show_softirqs(struct seq_file
 	seq_printf(p, "\n");
 
 	for (i = 0; i < NR_SOFTIRQS; i++) {
-		seq_printf(p, "%-9s", desc_array[i]);
+		seq_printf(p, "%8s:", softirq_to_name[i]);
 		for_each_possible_cpu(j)
 			seq_printf(p, " %10u", kstat_softirqs_cpu(i, j));
 		seq_printf(p, "\n");
diff -puN fs/proc/stat.c~proc-export-statistics-for-softirq-to-proc-update fs/proc/stat.c
--- a/fs/proc/stat.c~proc-export-statistics-for-softirq-to-proc-update
+++ a/fs/proc/stat.c
@@ -62,7 +62,6 @@ static int show_stat(struct seq_file *p,
 			per_softirq_sums[j] += softirq_stat;
 			sum_softirq += softirq_stat;
 		}
-
 	}
 	sum += arch_irq_stat();
 
@@ -127,9 +126,8 @@ static int show_stat(struct seq_file *p,
 
 	seq_printf(p, "softirq %llu", (unsigned long long)sum_softirq);
 
-	for (i = 0; i < NR_SOFTIRQS; i++) {
+	for (i = 0; i < NR_SOFTIRQS; i++)
 		seq_printf(p, " %u", per_softirq_sums[i]);
-	}
 	seq_printf(p, "\n");
 
 	return 0;
_

Patches currently in -mm which might be from kobayashi.kk@xxxxxxxxxxxxxx are

softirq-introduce-statistics-for-softirq.patch
proc-export-statistics-for-softirq-to-proc.patch
proc-export-statistics-for-softirq-to-proc-update.patch
proc-update-document-for-proc-softirqs-and-proc-stat.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux