Re: [PATCH V4 05/16] perf, core: pmu specific data for perf task context

2014-07-02 Thread Peter Zijlstra
On Mon, Jun 30, 2014 at 04:50:42PM +0800, Yan, Zheng wrote: > @@ -3068,6 +3077,14 @@ alloc_perf_context(struct pmu *pmu, struct task_struct > *task) > if (!ctx) > return NULL; > > + if (task && pmu->task_ctx_size > 0) { > + ctx->task_ctx_data = kzalloc(pmu->t

[PATCH V4 05/16] perf, core: pmu specific data for perf task context

2014-06-30 Thread Yan, Zheng
Introduce a new field to 'struct pmu' to specify the size of PMU specific data. If the size is not zero, also allocate memory for the PMU specific data when allocating perf task context. The PMU specific data are initialized to zeros. Later patches will use PMU specific data to save LBR stack. Sig

[PATCH v4 05/16] perf, core: pmu specific data for perf task context

2014-03-16 Thread Yan, Zheng
Introduce a new field to 'struct pmu' to specify the size of PMU specific data. If the size is not zero, also allocate memory for the PMU specific data when allocating perf task context. The PMU specific data are initialized to zeros. Later patches will use PMU specific data to save LBR stack. Sig