Messages in this thread | | | Date | Fri, 12 Aug 2011 21:51:54 +0200 | From | Robert Richter <> | Subject | Re: [PATCH 3/7] perf, x86: Implement IBS event configuration |
| |
On 02.08.11 07:35:33, Peter Zijlstra wrote: > On Thu, 2011-07-28 at 15:46 +0200, Robert Richter wrote: > > +static struct perf_ibs perf_ibs_fetch = { > > + .pmu = { > > + .event_init = perf_ibs_init, > > + .add = perf_ibs_add, > > + .del = perf_ibs_del, > > + }, > > + .msr = MSR_AMD64_IBSFETCHCTL, > > + .config_mask = IBS_FETCH_CONFIG_MASK, > > + .cnt_mask = IBS_FETCH_MAX_CNT, > > + .enable_mask = IBS_FETCH_ENABLE, > > +}; > > + > > +static struct perf_ibs perf_ibs_op = { > > + .pmu = { > > + .event_init = perf_ibs_init, > > + .add = perf_ibs_add, > > + .del = perf_ibs_del, > > + }, > > + .msr = MSR_AMD64_IBSOPCTL, > > + .config_mask = IBS_OP_CONFIG_MASK, > > + .cnt_mask = IBS_OP_MAX_CNT, > > + .enable_mask = IBS_OP_ENABLE, > > }; > > > > It it intentional that you map the IBS things to the hw task_context ?
I didn't get you here.
-Robert
-- Advanced Micro Devices, Inc. Operating System Research Center
| |