Lines Matching refs:perf_cpu_context

193 static void perf_ctx_lock(struct perf_cpu_context *cpuctx,  in perf_ctx_lock()
216 static void perf_ctx_unlock(struct perf_cpu_context *cpuctx, in perf_ctx_unlock()
225 struct perf_cpu_context *cpuctx;
233 class_perf_ctx_lock_constructor(struct perf_cpu_context *cpuctx, in class_perf_ctx_lock_constructor()
244 static DEFINE_PER_CPU(struct perf_cpu_context, perf_cpu_context);
249 return this_cpu_ptr(&perf_cpu_context)->task_ctx; in perf_cpu_task_ctx()
271 typedef void (*event_f)(struct perf_event *, struct perf_cpu_context *,
285 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in event_function()
330 struct perf_cpu_context *cpuctx; in event_function_call()
359 cpuctx = this_cpu_ptr(&perf_cpu_context); in event_function_call()
386 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in event_function_local()
905 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_cgroup_match()
971 static inline void update_cgrp_time_from_cpuctx(struct perf_cpu_context *cpuctx, bool final) in update_cgrp_time_from_cpuctx()
1011 perf_cgroup_set_timestamp(struct perf_cpu_context *cpuctx, bool guest) in perf_cgroup_set_timestamp()
1045 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_cgroup_switch()
1089 struct perf_cpu_context *cpuctx; in perf_cgroup_ensure_storage()
1101 cpuctx = per_cpu_ptr(&perf_cpu_context, cpu); in perf_cgroup_ensure_storage()
1166 struct perf_cpu_context *cpuctx; in perf_cgroup_event_enable()
1177 cpuctx = container_of(ctx, struct perf_cpu_context, ctx); in perf_cgroup_event_enable()
1188 struct perf_cpu_context *cpuctx; in perf_cgroup_event_disable()
1199 cpuctx = container_of(ctx, struct perf_cpu_context, ctx); in perf_cgroup_event_disable()
1227 static inline void update_cgrp_time_from_cpuctx(struct perf_cpu_context *cpuctx, in update_cgrp_time_from_cpuctx()
1240 perf_cgroup_set_timestamp(struct perf_cpu_context *cpuctx, bool guest) in perf_cgroup_set_timestamp()
2518 __ctx_time_update(struct perf_cpu_context *cpuctx, struct perf_event_context *ctx, in __ctx_time_update()
2532 ctx_time_update(struct perf_cpu_context *cpuctx, struct perf_event_context *ctx) in ctx_time_update()
2541 ctx_time_freeze(struct perf_cpu_context *cpuctx, struct perf_event_context *ctx) in ctx_time_freeze()
2573 struct perf_cpu_context *cpuctx, in __perf_remove_from_context()
2653 __perf_remove_from_context(event, this_cpu_ptr(&perf_cpu_context), in perf_remove_from_context()
2676 struct perf_cpu_context *cpuctx, in __perf_event_disable()
2947 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in task_ctx_sched_out()
2958 static void perf_event_sched_in(struct perf_cpu_context *cpuctx, in perf_event_sched_in()
2986 static void ctx_resched(struct perf_cpu_context *cpuctx, in ctx_resched()
3037 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_pmu_resched()
3055 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in __perf_install_in_context()
3232 struct perf_cpu_context *cpuctx, in __perf_event_enable()
3578 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in ctx_sched_out()
3897 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in __perf_pmu_sched_task()
3919 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_pmu_sched_task()
4009 struct perf_cpu_context *cpuctx = NULL; in visit_groups_merge()
4020 cpuctx = this_cpu_ptr(&perf_cpu_context); in visit_groups_merge()
4182 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in ctx_sched_in()
4249 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_event_context_sched_in()
4589 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_rotate_context()
4648 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_event_task_tick()
4690 struct perf_cpu_context *cpuctx; in perf_event_enable_on_exec()
4702 cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_event_enable_on_exec()
4815 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in __perf_event_read()
5097 struct perf_cpu_context *cpuctx; in find_get_context()
5107 cpuctx = per_cpu_ptr(&perf_cpu_context, event->cpu); in find_get_context()
6417 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_load_guest_context()
6443 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_put_guest_context()
6506 struct perf_cpu_context *cpuctx, in __perf_event_period()
9048 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in __perf_pmu_output_stop()
13992 struct perf_cpu_context *cpuctx = per_cpu_ptr(&perf_cpu_context, event->cpu); in SYSCALL_DEFINE5()
14283 struct perf_cpu_context *cpuctx = in perf_event_create_kernel_counter()
14284 container_of(ctx, struct perf_cpu_context, ctx); in perf_event_create_kernel_counter()
14399 src_ctx = &per_cpu_ptr(&perf_cpu_context, src_cpu)->ctx; in perf_pmu_migrate_context()
14400 dst_ctx = &per_cpu_ptr(&perf_cpu_context, dst_cpu)->ctx; in perf_pmu_migrate_context()
15029 struct perf_cpu_context *cpuctx; in perf_event_init_all_cpus()
15049 cpuctx = per_cpu_ptr(&perf_cpu_context, cpu); in perf_event_init_all_cpus()
15077 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in __perf_event_exit_context()
15124 struct perf_cpu_context *cpuctx; in perf_event_exit_cpu_context()
15134 cpuctx = per_cpu_ptr(&perf_cpu_context, cpu); in perf_event_exit_cpu_context()
15188 struct perf_cpu_context *cpuctx; in perf_event_init_cpu()
15195 cpuctx = per_cpu_ptr(&perf_cpu_context, cpu); in perf_event_init_cpu()