From: Philippe Gerum <rpm@xenomai.org>
To: Rodrigo Rosenfeld Rosas <lbocseg@domain.hid>
Cc: xenomai@xenomai.org
Subject: [Xenomai-core] Re: [Xenomai-help] [PATCH] MSW and CSW meanings
Date: Wed, 03 May 2006 14:46:35 +0200 [thread overview]
Message-ID: <4458A62B.1040409@domain.hid> (raw)
In-Reply-To: <200605021948.38480.lbocseg@domain.hid>
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.
prev parent reply other threads:[~2006-05-03 12:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Philippe Gerum [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4458A62B.1040409@domain.hid \
--to=rpm@xenomai.org \
--cc=lbocseg@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.