[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 2 of 3] xen: tracing: introduce per-scheduler trace event IDs
On Mon, Dec 3, 2012 at 4:34 PM, Dario Faggioli <raistlin@xxxxxxxx> wrote: So that it becomes possible to create specific scheduling event
I think I would make this generic, and put it in trace.h -- 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)) Then these would look like: #define TRC_CSCHED2_TICK TRC_SCHED_CLASS_EVT(CSCHED2,1) + 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 /*...*/ -George _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |