Rodrigo Rosenfeld Rosas wrote:
Hi Philippe,

How about this patch? Or something like, if you prefer...


I really think that we should keep the /proc output as terse as
possible, but properly documenting the corresponding information in the
same move (which is not the case yet), so that we don't embed excessive
"dead" data into the kernel, but rather have a some accurate
documentation about it.

Best Regards,

Rodrigo.

____________________________________________________________
Em Segunda 17 Abril 2006 15:10, Philippe Gerum escreveu:


Rodrigo Rosenfeld Rosas wrote:

Please, what do MSW and CSW mean on /proc/xenomai/stats?

MSW = Mode switches: primary->secondary/secondary->primary (actually,
I'm going to only leave the first one)

CSW = Context switches (operated by Xenomai for real-time threads,
kernel + user-space).


Sorry if it is documented somewhere but I didn't find it on docs...

Rodrigo.


------------------------------------------------------------------------

Index: ksrc/nucleus/module.c
===================================================================
--- ksrc/nucleus/module.c       (revisão 1024)
+++ ksrc/nucleus/module.c       (cópia de trabalho)
@@ -252,8 +252,8 @@
        pid_t pid;
        xnflags_t status;
        const char *name;
-       unsigned long ssw;
-       unsigned long csw;
+       unsigned long ssw; /* mode switch: 
primary->secondary/secondary->primary */
+       unsigned long csw; /* context switches */
        unsigned long pf;
    } stat_info[1];
};
@@ -293,8 +293,13 @@
static int stat_seq_show(struct seq_file *seq, void *v)
{
    if (v == SEQ_START_TOKEN)
-       seq_printf(seq,"%-3s  %-6s %-10s %-10s %-4s  %-8s  %s\n",
-                  "CPU","PID","MSW","CSW","PF","STAT","NAME");
+       {
+               seq_printf(seq, "MSW - Mode Switches 
(primary->secondary/secondary->primary)\n"
+                               "CSW - Context switches (operated by Xenomai for 
real-time threads, kernel + user-space)\n"
+                               "PF  - Page faults\n");
+               seq_printf(seq,"%-3s  %-6s %-10s %-10s %-4s  %-8s  %s\n",
+                          "CPU","PID","MSW","CSW","PF","STAT","NAME");
+       }
    else
        {
        struct stat_seq_info *p = (struct stat_seq_info *)v;


--

Philippe.


_______________________________________________
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core

Reply via email to