Lines Matching refs:pfm_context_t

133 #define CTX_USES_DBREGS(ctx)	(((pfm_context_t *)(ctx))->ctx_fl_using_dbreg==1)
337 } pfm_context_t; typedef
345 #define PFM_GET_CTX(t) ((pfm_context_t *)(t)->thread.pfm_context)
388 typedef int (*pfm_reg_check_t)(struct task_struct *task, pfm_context_t *ctx, unsigned int cnum, uns…
469 int (*cmd_func)(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs);
573 static int pfm_context_unload(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs);
596 pfm_protect_ctx_ctxsw(pfm_context_t *x) in pfm_protect_ctx_ctxsw()
603 pfm_unprotect_ctx_ctxsw(pfm_context_t *x, unsigned long f) in pfm_unprotect_ctx_ctxsw()
638 DEFINE_PER_CPU(pfm_context_t *, pmu_ctx);
654 static int pfm_write_ibr_dbr(int mode, pfm_context_t *ctx, void *arg, int count, struct pt_regs *re…
670 static int pfm_end_notify_user(pfm_context_t *ctx);
758 pfm_read_soft_counter(pfm_context_t *ctx, int i) in pfm_read_soft_counter()
767 pfm_write_soft_counter(pfm_context_t *ctx, int i, unsigned long val) in pfm_write_soft_counter()
780 pfm_get_new_msg(pfm_context_t *ctx) in pfm_get_new_msg()
798 pfm_get_next_msg(pfm_context_t *ctx) in pfm_get_next_msg()
822 pfm_reset_msgq(pfm_context_t *ctx) in pfm_reset_msgq()
866 static pfm_context_t *
869 pfm_context_t *ctx; in pfm_context_alloc()
875 ctx = kzalloc(sizeof(pfm_context_t), GFP_KERNEL); in pfm_context_alloc()
923 pfm_context_free(pfm_context_t *ctx) in pfm_context_free()
934 pfm_context_t *ctx = PFM_GET_CTX(task); in pfm_mask_monitoring()
1008 pfm_context_t *ctx = PFM_GET_CTX(task); in pfm_restore_monitoring()
1134 pfm_copy_pmds(struct task_struct *task, pfm_context_t *ctx) in pfm_copy_pmds()
1170 pfm_copy_pmcs(struct task_struct *task, pfm_context_t *ctx) in pfm_copy_pmcs()
1406 pfm_unreserve_session(pfm_context_t *ctx, int is_syswide, unsigned int cpu) in pfm_unreserve_session()
1498 pfm_free_smpl_buffer(pfm_context_t *ctx)
1567 pfm_context_t *ctx; in pfm_read()
1668 pfm_context_t *ctx; in pfm_poll()
1711 pfm_do_fasync(int fd, struct file *filp, pfm_context_t *ctx, int on) in pfm_do_fasync()
1729 pfm_context_t *ctx; in pfm_fasync()
1769 pfm_context_t *ctx = (pfm_context_t *)info; in pfm_syswide_force_stop()
1815 pfm_syswide_cleanup_other_cpu(pfm_context_t *ctx) in pfm_syswide_cleanup_other_cpu()
1832 pfm_context_t *ctx; in pfm_flush()
1971 pfm_context_t *ctx; in pfm_close()
2208 pfm_alloc_file(pfm_context_t *ctx) in pfm_alloc_file()
2275 pfm_smpl_buffer_alloc(struct task_struct *task, struct file *filp, pfm_context_t *ctx, unsigned lon… in pfm_smpl_buffer_alloc()
2455 pfm_setup_buffer_fmt(struct task_struct *task, struct file *filp, pfm_context_t *ctx, unsigned int … in pfm_setup_buffer_fmt()
2510 pfm_reset_pmu_state(pfm_context_t *ctx) in pfm_reset_pmu_state()
2596 pfm_task_incompatible(pfm_context_t *ctx, struct task_struct *task) in pfm_task_incompatible()
2642 pfm_get_task(pfm_context_t *ctx, pid_t pid, struct task_struct **task) in pfm_get_task()
2676 pfm_context_create(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) in pfm_context_create()
2773 pfm_reset_regs_masked(pfm_context_t *ctx, unsigned long *ovfl_regs, int is_long_reset) in pfm_reset_regs_masked()
2809 pfm_reset_regs(pfm_context_t *ctx, unsigned long *ovfl_regs, int is_long_reset) in pfm_reset_regs()
2860 pfm_write_pmcs(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) in pfm_write_pmcs()
3100 pfm_write_pmds(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) in pfm_write_pmds()
3296 pfm_read_pmds(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) in pfm_read_pmds()
3429 pfm_context_t *ctx; in pfm_mod_write_pmcs()
3450 pfm_context_t *ctx; in pfm_mod_read_pmds()
3475 pfm_context_t *ctx = task->thread.pfm_context; in pfm_use_debug_registers()
3549 pfm_restart(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) in pfm_restart()
3702 pfm_debug(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) in pfm_debug()
3721 pfm_write_ibr_dbr(int mode, pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) in pfm_write_ibr_dbr()
3916 pfm_write_ibrs(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) in pfm_write_ibrs()
3922 pfm_write_dbrs(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) in pfm_write_dbrs()
3930 pfm_context_t *ctx; in pfm_mod_write_ibrs()
3951 pfm_context_t *ctx; in pfm_mod_write_dbrs()
3971 pfm_get_features(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) in pfm_get_features()
3980 pfm_stop(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) in pfm_stop()
4069 pfm_start(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) in pfm_start()
4150 pfm_get_pmc_reset(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) in pfm_get_pmc_reset()
4177 pfm_check_task_exist(pfm_context_t *ctx) in pfm_check_task_exist()
4199 pfm_context_load(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) in pfm_context_load()
4203 struct pfm_context_t *old; in pfm_context_load()
4319 old = ia64_cmpxchg(acq, &thread->pfm_context, NULL, ctx, sizeof(pfm_context_t *)); in pfm_context_load()
4453 static void pfm_flush_pmds(struct task_struct *, pfm_context_t *ctx);
4456 pfm_context_unload(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) in pfm_context_unload()
4591 pfm_context_t *ctx; in pfm_exit_thread()
4697 pfm_check_task_state(pfm_context_t *ctx, int cmd, unsigned long flags) in pfm_check_task_state()
4804 pfm_context_t *ctx = NULL; in sys_perfmonctl()
4810 int (*func)(pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs); in sys_perfmonctl()
4951 pfm_resume_after_ovfl(pfm_context_t *ctx, unsigned long ovfl_regs, struct pt_regs *regs) in pfm_resume_after_ovfl()
4997 pfm_context_force_terminate(pfm_context_t *ctx, struct pt_regs *regs) in pfm_context_force_terminate()
5020 static int pfm_ovfl_notify_user(pfm_context_t *ctx, unsigned long ovfl_pmds);
5034 pfm_context_t *ctx; in pfm_handle_work()
5134 pfm_notify_user(pfm_context_t *ctx, pfm_msg_t *msg) in pfm_notify_user()
5155 pfm_ovfl_notify_user(pfm_context_t *ctx, unsigned long ovfl_pmds) in pfm_ovfl_notify_user()
5186 pfm_end_notify_user(pfm_context_t *ctx) in pfm_end_notify_user()
5214 static void pfm_overflow_handler(struct task_struct *task, pfm_context_t *ctx, in pfm_overflow_handler()
5499 pfm_context_t *ctx; in pfm_do_interrupt_handler()
5834 pfm_force_cleanup(pfm_context_t *ctx, struct pt_regs *regs) in pfm_force_cleanup()
5865 pfm_context_t *ctx; in pfm_save_regs()
5954 pfm_context_t *ctx; in pfm_save_regs()
5985 pfm_context_t *ctx; in pfm_lazy_save_regs()
6047 pfm_context_t *ctx; in pfm_load_regs()
6210 pfm_context_t *ctx; in pfm_load_regs()
6324 pfm_flush_pmds(struct task_struct *task, pfm_context_t *ctx) in pfm_flush_pmds()
6743 pfm_context_t *ctx; in dump_pmu_state()