* [Xenomai-help] MSW and CSW meanings
@ 2006-04-17 14:23 Rodrigo Rosenfeld Rosas
2006-04-17 18:10 ` Philippe Gerum
0 siblings, 1 reply; 3+ messages in thread
From: Rodrigo Rosenfeld Rosas @ 2006-04-17 14:23 UTC (permalink / raw)
To: xenomai
Please, what do MSW and CSW mean on /proc/xenomai/stats?
Sorry if it is documented somewhere but I didn't find it on docs...
Rodrigo.
_______________________________________________________
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora!
http://br.acesso.yahoo.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] MSW and CSW meanings
2006-04-17 14:23 [Xenomai-help] MSW and CSW meanings Rodrigo Rosenfeld Rosas
@ 2006-04-17 18:10 ` Philippe Gerum
[not found] ` <200605021948.38480.lbocseg@domain.hid>
0 siblings, 1 reply; 3+ messages in thread
From: Philippe Gerum @ 2006-04-17 18:10 UTC (permalink / raw)
To: Rodrigo Rosenfeld Rosas; +Cc: xenomai
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.
>
>
> _______________________________________________________
> Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora!
> http://br.acesso.yahoo.com
>
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
>
--
Philippe.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Xenomai-core] Re: [Xenomai-help] [PATCH] MSW and CSW meanings
[not found] ` <200605021948.38480.lbocseg@domain.hid>
@ 2006-05-03 12:46 ` Philippe Gerum
0 siblings, 0 replies; 3+ messages in thread
From: Philippe Gerum @ 2006-05-03 12:46 UTC (permalink / raw)
To: Rodrigo Rosenfeld Rosas; +Cc: xenomai
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-05-03 12:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-17 14:23 [Xenomai-help] MSW and CSW meanings Rodrigo Rosenfeld Rosas
2006-04-17 18:10 ` Philippe Gerum
[not found] ` <200605021948.38480.lbocseg@domain.hid>
2006-05-03 12:46 ` [Xenomai-core] Re: [Xenomai-help] [PATCH] " Philippe Gerum
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.