Lines Matching refs:perf_cpu_context
178 static void perf_ctx_lock(struct perf_cpu_context *cpuctx, in perf_ctx_lock()
201 static void perf_ctx_unlock(struct perf_cpu_context *cpuctx, in perf_ctx_unlock()
216 static DEFINE_PER_CPU(struct perf_cpu_context, perf_cpu_context);
221 return this_cpu_ptr(&perf_cpu_context)->task_ctx; in perf_cpu_task_ctx()
243 typedef void (*event_f)(struct perf_event *, struct perf_cpu_context *,
257 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in event_function()
302 struct perf_cpu_context *cpuctx; in event_function_call()
331 cpuctx = this_cpu_ptr(&perf_cpu_context); in event_function_call()
358 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in event_function_local()
754 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_cgroup_match()
815 static inline void update_cgrp_time_from_cpuctx(struct perf_cpu_context *cpuctx, bool final) in update_cgrp_time_from_cpuctx()
855 perf_cgroup_set_timestamp(struct perf_cpu_context *cpuctx) in perf_cgroup_set_timestamp()
885 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_cgroup_switch()
925 struct perf_cpu_context *cpuctx; in perf_cgroup_ensure_storage()
937 cpuctx = per_cpu_ptr(&perf_cpu_context, cpu); in perf_cgroup_ensure_storage()
1006 struct perf_cpu_context *cpuctx; in perf_cgroup_event_enable()
1017 cpuctx = container_of(ctx, struct perf_cpu_context, ctx); in perf_cgroup_event_enable()
1028 struct perf_cpu_context *cpuctx; in perf_cgroup_event_disable()
1039 cpuctx = container_of(ctx, struct perf_cpu_context, ctx); in perf_cgroup_event_disable()
1067 static inline void update_cgrp_time_from_cpuctx(struct perf_cpu_context *cpuctx, in update_cgrp_time_from_cpuctx()
1080 perf_cgroup_set_timestamp(struct perf_cpu_context *cpuctx) in perf_cgroup_set_timestamp()
2369 __ctx_time_update(struct perf_cpu_context *cpuctx, struct perf_event_context *ctx, bool final) in __ctx_time_update()
2380 ctx_time_update(struct perf_cpu_context *cpuctx, struct perf_event_context *ctx) in ctx_time_update()
2389 ctx_time_freeze(struct perf_cpu_context *cpuctx, struct perf_event_context *ctx) in ctx_time_freeze()
2419 struct perf_cpu_context *cpuctx, in __perf_remove_from_context()
2490 __perf_remove_from_context(event, this_cpu_ptr(&perf_cpu_context), in perf_remove_from_context()
2504 struct perf_cpu_context *cpuctx, in __perf_event_disable()
2731 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in task_ctx_sched_out()
2742 static void perf_event_sched_in(struct perf_cpu_context *cpuctx, in perf_event_sched_in()
2769 static void ctx_resched(struct perf_cpu_context *cpuctx, in ctx_resched()
2820 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_pmu_resched()
2838 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in __perf_install_in_context()
3015 struct perf_cpu_context *cpuctx, in __perf_event_enable()
3362 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in ctx_sched_out()
3707 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in __perf_pmu_sched_task()
3729 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_pmu_sched_task()
3826 struct perf_cpu_context *cpuctx = NULL; in visit_groups_merge()
3837 cpuctx = this_cpu_ptr(&perf_cpu_context); in visit_groups_merge()
3976 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in ctx_sched_in()
4027 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_event_context_sched_in()
4371 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_rotate_context()
4430 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_event_task_tick()
4472 struct perf_cpu_context *cpuctx; in perf_event_enable_on_exec()
4484 cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_event_enable_on_exec()
4595 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in __perf_event_read()
4887 struct perf_cpu_context *cpuctx; in find_get_context()
4897 cpuctx = per_cpu_ptr(&perf_cpu_context, event->cpu); in find_get_context()
5923 struct perf_cpu_context *cpuctx, in __perf_event_period()
8279 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in __perf_pmu_output_stop()
12834 struct perf_cpu_context *cpuctx = per_cpu_ptr(&perf_cpu_context, event->cpu); in SYSCALL_DEFINE5()
13123 struct perf_cpu_context *cpuctx = in perf_event_create_kernel_counter()
13124 container_of(ctx, struct perf_cpu_context, ctx); in perf_event_create_kernel_counter()
13239 src_ctx = &per_cpu_ptr(&perf_cpu_context, src_cpu)->ctx; in perf_pmu_migrate_context()
13240 dst_ctx = &per_cpu_ptr(&perf_cpu_context, dst_cpu)->ctx; in perf_pmu_migrate_context()
13879 struct perf_cpu_context *cpuctx; in perf_event_init_all_cpus()
13899 cpuctx = per_cpu_ptr(&perf_cpu_context, cpu); in perf_event_init_all_cpus()
13927 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in __perf_event_exit_context()
13974 struct perf_cpu_context *cpuctx; in perf_event_exit_cpu_context()
13984 cpuctx = per_cpu_ptr(&perf_cpu_context, cpu); in perf_event_exit_cpu_context()
14037 struct perf_cpu_context *cpuctx; in perf_event_init_cpu()
14044 cpuctx = per_cpu_ptr(&perf_cpu_context, cpu); in perf_event_init_cpu()