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()
1002 struct perf_cpu_context *cpuctx; in perf_cgroup_event_enable()
1013 cpuctx = container_of(ctx, struct perf_cpu_context, ctx); in perf_cgroup_event_enable()
1024 struct perf_cpu_context *cpuctx; in perf_cgroup_event_disable()
1035 cpuctx = container_of(ctx, struct perf_cpu_context, ctx); in perf_cgroup_event_disable()
1063 static inline void update_cgrp_time_from_cpuctx(struct perf_cpu_context *cpuctx, in update_cgrp_time_from_cpuctx()
1076 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()
2420 struct perf_cpu_context *cpuctx, in __perf_remove_from_context()
2495 __perf_remove_from_context(event, this_cpu_ptr(&perf_cpu_context), in perf_remove_from_context()
2509 struct perf_cpu_context *cpuctx, in __perf_event_disable()
2736 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in task_ctx_sched_out()
2747 static void perf_event_sched_in(struct perf_cpu_context *cpuctx, in perf_event_sched_in()
2774 static void ctx_resched(struct perf_cpu_context *cpuctx, in ctx_resched()
2825 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in perf_pmu_resched()
2843 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in __perf_install_in_context()
3020 struct perf_cpu_context *cpuctx, in __perf_event_enable()
3367 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in ctx_sched_out()
3714 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in __perf_pmu_sched_task()
3736 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()
5929 struct perf_cpu_context *cpuctx, in __perf_event_period()
8375 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in __perf_pmu_output_stop()
12958 struct perf_cpu_context *cpuctx = per_cpu_ptr(&perf_cpu_context, event->cpu); in SYSCALL_DEFINE5()
13244 struct perf_cpu_context *cpuctx = in perf_event_create_kernel_counter()
13245 container_of(ctx, struct perf_cpu_context, ctx); in perf_event_create_kernel_counter()
13360 src_ctx = &per_cpu_ptr(&perf_cpu_context, src_cpu)->ctx; in perf_pmu_migrate_context()
13361 dst_ctx = &per_cpu_ptr(&perf_cpu_context, dst_cpu)->ctx; in perf_pmu_migrate_context()
13993 struct perf_cpu_context *cpuctx; in perf_event_init_all_cpus()
14013 cpuctx = per_cpu_ptr(&perf_cpu_context, cpu); in perf_event_init_all_cpus()
14041 struct perf_cpu_context *cpuctx = this_cpu_ptr(&perf_cpu_context); in __perf_event_exit_context()
14088 struct perf_cpu_context *cpuctx; in perf_event_exit_cpu_context()
14098 cpuctx = per_cpu_ptr(&perf_cpu_context, cpu); in perf_event_exit_cpu_context()
14151 struct perf_cpu_context *cpuctx; in perf_event_init_cpu()
14158 cpuctx = per_cpu_ptr(&perf_cpu_context, cpu); in perf_event_init_cpu()