Lines Matching refs:perf_cpu_context
158 static void perf_ctx_lock(struct perf_cpu_context *cpuctx, in perf_ctx_lock()
166 static void perf_ctx_unlock(struct perf_cpu_context *cpuctx, in perf_ctx_unlock()
181 static DEFINE_PER_CPU(struct perf_cpu_context, perf_cpu_context);
186 return this_cpu_ptr(&perf_cpu_context)->task_ctx; in perf_cpu_task_ctx()
208 typedef void (*event_f)(struct perf_event *, struct perf_cpu_context *,
222 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in event_function()
319 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in event_function_local()
711 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_cgroup_match()
772 static inline void update_cgrp_time_from_cpuctx(struct perf_cpu_context *cpuctx, bool final) in update_cgrp_time_from_cpuctx()
812 perf_cgroup_set_timestamp(struct perf_cpu_context *cpuctx) in perf_cgroup_set_timestamp()
842 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_cgroup_switch()
882 struct perf_cpu_context *cpuctx; in perf_cgroup_ensure_storage()
894 cpuctx = per_cpu_ptr(&perf_cpu_context, cpu); in perf_cgroup_ensure_storage()
963 struct perf_cpu_context *cpuctx; in perf_cgroup_event_enable()
972 cpuctx = container_of(ctx, struct perf_cpu_context, ctx); in perf_cgroup_event_enable()
983 struct perf_cpu_context *cpuctx; in perf_cgroup_event_disable()
992 cpuctx = container_of(ctx, struct perf_cpu_context, ctx); in perf_cgroup_event_disable()
1020 static inline void update_cgrp_time_from_cpuctx(struct perf_cpu_context *cpuctx, in update_cgrp_time_from_cpuctx()
1033 perf_cgroup_set_timestamp(struct perf_cpu_context *cpuctx) in perf_cgroup_set_timestamp()
2306 struct perf_cpu_context *cpuctx, in __perf_remove_from_context()
2380 __perf_remove_from_context(event, this_cpu_ptr(&perf_cpu_context), in perf_remove_from_context()
2394 struct perf_cpu_context *cpuctx, in __perf_event_disable()
2623 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in task_ctx_sched_out()
2634 static void perf_event_sched_in(struct perf_cpu_context *cpuctx, in perf_event_sched_in()
2665 static void ctx_resched(struct perf_cpu_context *cpuctx, in ctx_resched()
2707 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_pmu_resched()
2725 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in __perf_install_in_context()
2901 struct perf_cpu_context *cpuctx, in __perf_event_enable()
3244 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in ctx_sched_out()
3576 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in __perf_pmu_sched_task()
3598 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_pmu_sched_task()
3694 struct perf_cpu_context *cpuctx = NULL; in visit_groups_merge()
3705 cpuctx = this_cpu_ptr(&perf_cpu_context); in visit_groups_merge()
3867 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in ctx_sched_in()
3910 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_event_context_sched_in()
4234 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_rotate_context()
4293 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_event_task_tick()
4335 struct perf_cpu_context *cpuctx; in perf_event_enable_on_exec()
4347 cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_event_enable_on_exec()
4449 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in __perf_event_read()
4735 struct perf_cpu_context *cpuctx; in find_get_context()
4745 cpuctx = per_cpu_ptr(&perf_cpu_context, event->cpu); in find_get_context()
5703 struct perf_cpu_context *cpuctx, in __perf_event_period()
8032 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in __perf_pmu_output_stop()
12491 struct perf_cpu_context *cpuctx = per_cpu_ptr(&perf_cpu_context, event->cpu); in SYSCALL_DEFINE5()
12780 struct perf_cpu_context *cpuctx = in perf_event_create_kernel_counter()
12781 container_of(ctx, struct perf_cpu_context, ctx); in perf_event_create_kernel_counter()
12884 src_ctx = &per_cpu_ptr(&perf_cpu_context, src_cpu)->ctx; in perf_pmu_migrate_context()
12885 dst_ctx = &per_cpu_ptr(&perf_cpu_context, dst_cpu)->ctx; in perf_pmu_migrate_context()
13510 struct perf_cpu_context *cpuctx; in perf_event_init_all_cpus()
13524 cpuctx = per_cpu_ptr(&perf_cpu_context, cpu); in perf_event_init_all_cpus()
13552 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in __perf_event_exit_context()
13565 struct perf_cpu_context *cpuctx; in perf_event_exit_cpu_context()
13570 cpuctx = per_cpu_ptr(&perf_cpu_context, cpu); in perf_event_exit_cpu_context()
13588 struct perf_cpu_context *cpuctx; in perf_event_init_cpu()
13595 cpuctx = per_cpu_ptr(&perf_cpu_context, cpu); in perf_event_init_cpu()