Lines Matching refs:perf_cpu_context
145 static inline struct perf_cpu_context *
151 static void perf_ctx_lock(struct perf_cpu_context *cpuctx, in perf_ctx_lock()
159 static void perf_ctx_unlock(struct perf_cpu_context *cpuctx, in perf_ctx_unlock()
193 typedef void (*event_f)(struct perf_event *, struct perf_cpu_context *,
207 struct perf_cpu_context *cpuctx = __get_cpu_context(ctx); in event_function()
304 struct perf_cpu_context *cpuctx = __get_cpu_context(ctx); in event_function_local()
434 static bool perf_rotate_context(struct perf_cpu_context *cpuctx);
559 static void cpu_ctx_sched_out(struct perf_cpu_context *cpuctx,
562 static void cpu_ctx_sched_in(struct perf_cpu_context *cpuctx,
674 struct perf_cpu_context *cpuctx = __get_cpu_context(ctx); in perf_cgroup_match()
726 static inline void update_cgrp_time_from_cpuctx(struct perf_cpu_context *cpuctx) in update_cgrp_time_from_cpuctx()
796 struct perf_cpu_context *cpuctx; in perf_cgroup_switch()
946 struct perf_cpu_context *cpuctx; in list_update_cgroup_event()
1007 static inline void update_cgrp_time_from_cpuctx(struct perf_cpu_context *cpuctx) in update_cgrp_time_from_cpuctx()
1067 struct perf_cpu_context *cpuctx; in perf_mux_hrtimer_handler()
1072 cpuctx = container_of(hr, struct perf_cpu_context, hrtimer); in perf_mux_hrtimer_handler()
1085 static void __perf_mux_hrtimer_init(struct perf_cpu_context *cpuctx, int cpu) in __perf_mux_hrtimer_init()
1110 static int perf_mux_hrtimer_restart(struct perf_cpu_context *cpuctx) in perf_mux_hrtimer_restart()
1904 struct perf_cpu_context *cpuctx,
1910 struct perf_cpu_context *cpuctx = __get_cpu_context(ctx); in perf_put_aux_event()
2074 struct perf_cpu_context *cpuctx, in event_sched_out()
2117 struct perf_cpu_context *cpuctx, in group_sched_out()
2151 struct perf_cpu_context *cpuctx, in __perf_remove_from_context()
2217 struct perf_cpu_context *cpuctx, in __perf_event_disable()
2332 struct perf_cpu_context *cpuctx, in event_sched_in()
2392 struct perf_cpu_context *cpuctx, in group_sched_in()
2447 struct perf_cpu_context *cpuctx, in group_can_go_on()
2482 struct perf_cpu_context *cpuctx,
2486 struct perf_cpu_context *cpuctx,
2490 static void task_ctx_sched_out(struct perf_cpu_context *cpuctx, in task_ctx_sched_out()
2503 static void perf_event_sched_in(struct perf_cpu_context *cpuctx, in perf_event_sched_in()
2530 static void ctx_resched(struct perf_cpu_context *cpuctx, in ctx_resched()
2568 struct perf_cpu_context *cpuctx = this_cpu_ptr(pmu->pmu_cpu_context); in perf_pmu_resched()
2586 struct perf_cpu_context *cpuctx = __get_cpu_context(ctx); in __perf_install_in_context()
2742 struct perf_cpu_context *cpuctx, in __perf_event_enable()
2996 struct perf_cpu_context *cpuctx, in ctx_sched_out()
3172 struct perf_cpu_context *cpuctx; in perf_event_context_sched_out()
3243 struct perf_cpu_context *cpuctx = this_cpu_ptr(pmu->pmu_cpu_context); in perf_sched_cb_dec()
3254 struct perf_cpu_context *cpuctx = this_cpu_ptr(pmu->pmu_cpu_context); in perf_sched_cb_inc()
3274 struct perf_cpu_context *cpuctx; in perf_pmu_sched_task()
3339 static void cpu_ctx_sched_out(struct perf_cpu_context *cpuctx, in cpu_ctx_sched_out()
3378 struct perf_cpu_context *cpuctx;
3432 struct perf_cpu_context *cpuctx) in ctx_pinned_sched_in()
3447 struct perf_cpu_context *cpuctx) in ctx_flexible_sched_in()
3462 struct perf_cpu_context *cpuctx, in ctx_sched_in()
3503 static void cpu_ctx_sched_in(struct perf_cpu_context *cpuctx, in cpu_ctx_sched_in()
3515 struct perf_cpu_context *cpuctx; in perf_event_context_sched_in()
3801 static bool perf_rotate_context(struct perf_cpu_context *cpuctx) in perf_rotate_context()
3888 struct perf_cpu_context *cpuctx; in perf_event_enable_on_exec()
3955 struct perf_cpu_context *cpuctx = __get_cpu_context(ctx); in __perf_event_read()
4224 struct perf_cpu_context *cpuctx; in find_get_context()
5068 struct perf_cpu_context *cpuctx, in __perf_event_period()
6953 struct perf_cpu_context *cpuctx = this_cpu_ptr(pmu->pmu_cpu_context); in __perf_pmu_output_stop()
9866 static struct perf_cpu_context __percpu *find_pmu_context(int ctxn) in find_pmu_context()
9955 struct perf_cpu_context *cpuctx; in perf_event_mux_interval_ms_store()
10086 pmu->pmu_cpu_context = alloc_percpu(struct perf_cpu_context); in perf_pmu_register()
10091 struct perf_cpu_context *cpuctx; in perf_pmu_register()
11178 struct perf_cpu_context *cpuctx = in SYSCALL_DEFINE5()
11179 container_of(ctx, struct perf_cpu_context, ctx); in SYSCALL_DEFINE5()
11374 struct perf_cpu_context *cpuctx = in perf_event_create_kernel_counter()
11375 container_of(ctx, struct perf_cpu_context, ctx); in perf_event_create_kernel_counter()
12125 struct perf_cpu_context *cpuctx = __get_cpu_context(ctx); in __perf_event_exit_context()
12137 struct perf_cpu_context *cpuctx; in perf_event_exit_cpu_context()
12162 struct perf_cpu_context *cpuctx; in perf_event_init_cpu()