From: Dario Faggioli <raistlin@linux.it>
To: George Dunlap <George.Dunlap@eu.citrix.com>
Cc: xen-devel <xen-devel@lists.xensource.com>,
Keir Fraser <keir@xen.org>,
George Dunlap <george.dunlap@citrix.com>
Subject: Re: [PATCH 2 of 3] xen: tracing: introduce per-scheduler trace event IDs
Date: Wed, 05 Dec 2012 12:57:13 +0100 [thread overview]
Message-ID: <1354708633.21632.24.camel@Abyss> (raw)
In-Reply-To: <CAFLBxZaor6aBA6AzAGrGhVBCG+UMS+6G_Q0SKQCgw-hmWuDLxA@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1665 bytes --]
On Tue, 2012-12-04 at 18:53 +0000, George Dunlap wrote:
>
> +/*
> + * Credit2 tracing events ("only" 512 available!). Check
> + * include/public/trace.h for more details.
> + */
> +#define TRC_CSCHED2_EVENT(_e) ((TRC_SCHED_CLASS|
> TRC_MASK_CSCHED2) + _e)
>
> I think I would make this generic, and put it in trace.h
>
Sounds good. Will do.
> -- maybe something like this? (Haven't run this through a compiler)
>
> #define TRC_SCHED_CLASS_EVT(_c, _e) \
>
> ((TRC_SCHED_CLASS|(TRC_SCHED_##_c<<TRC_SCHED_MASK_SHIFT))+(_e&TRC_SCHED_CLASS_MASK))
>
I'll try it and resend.
> +#define TRC_SCHED_ID_BITS 3
> +#define TRC_SCHED_MASK_SHIFT (TRC_SUBCLS_SHIFT -
> TRC_SCHED_ID_BITS)
> +
> +#define TRC_MASK_CSCHED (0 << TRC_SCHED_MASK_SHIFT)
> +#define TRC_MASK_CSCHED2 (1 << TRC_SCHED_MASK_SHIFT)
> +#define TRC_MASK_SEDF (2 << TRC_SCHED_MASK_SHIFT)
> +#define TRC_MASK_ARINC653 (3 << TRC_SCHED_MASK_SHIFT)
>
> I don't think "mask" is right here -- these aren't masks, they're
> numerical values. :-) If we use something like the #define above,
> then we can do:
>
> #define TRC_SCHED_CSCHED 0
> #define TRC_SCHED_CSCHED2
> /*...*/
>
I agree, bad name. (re "mask"). :-)
Thanks and Regards,
Dario
--
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://retis.sssup.it/people/faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2012-12-05 11:57 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-03 16:34 [PATCH 0 of 3] xen: sched_credit: fix tickling and add some tracing Dario Faggioli
2012-12-03 16:34 ` [PATCH 1 of 3] xen: sched_credit, improve tickling of idle CPUs Dario Faggioli
2012-12-03 17:12 ` Ian Campbell
2012-12-03 18:26 ` Dario Faggioli
2012-12-05 12:16 ` George Dunlap
2012-12-03 16:34 ` [PATCH 2 of 3] xen: tracing: introduce per-scheduler trace event IDs Dario Faggioli
2012-12-04 18:53 ` George Dunlap
2012-12-04 18:55 ` George Dunlap
2012-12-05 11:57 ` Dario Faggioli [this message]
2012-12-03 16:35 ` [PATCH 3 of 3] xen: sched_credit: add some tracing Dario Faggioli
2012-12-04 19:10 ` George Dunlap
2012-12-05 11:54 ` Dario Faggioli
2012-12-05 11:51 ` George Dunlap
2012-12-05 12:01 ` Ian Campbell
2012-12-05 12:15 ` Dario Faggioli
2012-12-05 12:20 ` Ian Campbell
2012-12-05 12:25 ` George Dunlap
2012-12-05 12:38 ` Mats Petersson
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=1354708633.21632.24.camel@Abyss \
--to=raistlin@linux.it \
--cc=George.Dunlap@eu.citrix.com \
--cc=george.dunlap@citrix.com \
--cc=keir@xen.org \
--cc=xen-devel@lists.xensource.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).