Lines Matching refs:ctx_cache
5161 alloc_perf_ctx_data(struct kmem_cache *ctx_cache, bool global) in alloc_perf_ctx_data() argument
5169 cd->data = kmem_cache_zalloc(ctx_cache, GFP_KERNEL); in alloc_perf_ctx_data()
5176 cd->ctx_cache = ctx_cache; in alloc_perf_ctx_data()
5184 kmem_cache_free(cd->ctx_cache, cd->data); in free_perf_ctx_data()
5202 attach_task_ctx_data(struct task_struct *task, struct kmem_cache *ctx_cache, in attach_task_ctx_data() argument
5207 cd = alloc_perf_ctx_data(ctx_cache, global); in attach_task_ctx_data()
5244 attach_global_ctx_data(struct kmem_cache *ctx_cache) in attach_global_ctx_data() argument
5277 ret = attach_task_ctx_data(p, ctx_cache, true); in attach_global_ctx_data()
5290 struct kmem_cache *ctx_cache = event->pmu->task_ctx_cache; in attach_perf_ctx_data() local
5293 if (!ctx_cache) in attach_perf_ctx_data()
5297 return attach_task_ctx_data(task, ctx_cache, false); in attach_perf_ctx_data()
5299 ret = attach_global_ctx_data(ctx_cache); in attach_perf_ctx_data()
8754 struct kmem_cache *ctx_cache = NULL; in perf_event_alloc_task_data() local
8763 ctx_cache = cd->ctx_cache; in perf_event_alloc_task_data()
8766 if (!ctx_cache) in perf_event_alloc_task_data()
8790 attach_task_ctx_data(child, ctx_cache, true); in perf_event_alloc_task_data()