Lines Matching defs:ctx_cache
5371 alloc_perf_ctx_data(struct kmem_cache *ctx_cache, bool global, gfp_t gfp_flags)
5379 cd->data = kmem_cache_zalloc(ctx_cache, gfp_flags);
5386 cd->ctx_cache = ctx_cache;
5394 kmem_cache_free(cd->ctx_cache, cd->data);
5412 attach_task_ctx_data(struct task_struct *task, struct kmem_cache *ctx_cache,
5417 cd = alloc_perf_ctx_data(ctx_cache, global, gfp_flags);
5465 attach_global_ctx_data(struct kmem_cache *ctx_cache)
5494 if (!attach_task_ctx_data(p, ctx_cache, true, GFP_NOWAIT))
5506 ret = attach_task_ctx_data(p, ctx_cache, true, GFP_KERNEL);
5519 struct kmem_cache *ctx_cache = event->pmu->task_ctx_cache;
5522 if (!ctx_cache)
5526 return attach_task_ctx_data(task, ctx_cache, false, GFP_KERNEL);
5528 ret = attach_global_ctx_data(ctx_cache);
9204 struct kmem_cache *ctx_cache = NULL;
9213 ctx_cache = cd->ctx_cache;
9216 if (!ctx_cache)
9240 attach_task_ctx_data(child, ctx_cache, true, GFP_KERNEL);