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()
2308 struct perf_cpu_context *cpuctx, in __perf_remove_from_context()
2382 __perf_remove_from_context(event, this_cpu_ptr(&perf_cpu_context), in perf_remove_from_context()
2396 struct perf_cpu_context *cpuctx, in __perf_event_disable()
2625 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in task_ctx_sched_out()
2636 static void perf_event_sched_in(struct perf_cpu_context *cpuctx, in perf_event_sched_in()
2667 static void ctx_resched(struct perf_cpu_context *cpuctx, in ctx_resched()
2709 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_pmu_resched()
2727 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in __perf_install_in_context()
2903 struct perf_cpu_context *cpuctx, in __perf_event_enable()
3246 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in ctx_sched_out()
3578 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in __perf_pmu_sched_task()
3600 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_pmu_sched_task()
3696 struct perf_cpu_context *cpuctx = NULL; in visit_groups_merge()
3707 cpuctx = this_cpu_ptr(&perf_cpu_context); in visit_groups_merge()
3869 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in ctx_sched_in()
3912 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_event_context_sched_in()
4236 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_rotate_context()
4295 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_event_task_tick()
4337 struct perf_cpu_context *cpuctx; in perf_event_enable_on_exec()
4349 cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_event_enable_on_exec()
4451 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in __perf_event_read()
4737 struct perf_cpu_context *cpuctx; in find_get_context()
4747 cpuctx = per_cpu_ptr(&perf_cpu_context, event->cpu); in find_get_context()
5729 struct perf_cpu_context *cpuctx, in __perf_event_period()
8062 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in __perf_pmu_output_stop()
12528 struct perf_cpu_context *cpuctx = per_cpu_ptr(&perf_cpu_context, event->cpu); in SYSCALL_DEFINE5()
12817 struct perf_cpu_context *cpuctx = in perf_event_create_kernel_counter()
12818 container_of(ctx, struct perf_cpu_context, ctx); in perf_event_create_kernel_counter()
12921 src_ctx = &per_cpu_ptr(&perf_cpu_context, src_cpu)->ctx; in perf_pmu_migrate_context()
12922 dst_ctx = &per_cpu_ptr(&perf_cpu_context, dst_cpu)->ctx; in perf_pmu_migrate_context()
13551 struct perf_cpu_context *cpuctx; in perf_event_init_all_cpus()
13565 cpuctx = per_cpu_ptr(&perf_cpu_context, cpu); in perf_event_init_all_cpus()
13593 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in __perf_event_exit_context()
13606 struct perf_cpu_context *cpuctx; in perf_event_exit_cpu_context()
13611 cpuctx = per_cpu_ptr(&perf_cpu_context, cpu); in perf_event_exit_cpu_context()
13629 struct perf_cpu_context *cpuctx; in perf_event_init_cpu()
13636 cpuctx = per_cpu_ptr(&perf_cpu_context, cpu); in perf_event_init_cpu()