Lines Matching refs:ctx_fd
92 int ctx_fd; member
100 static void perfmon_start_child(int ctx_fd) in perfmon_start_child() argument
102 if (perfmonctl(ctx_fd, PFM_START, 0, 0) == -1) { in perfmon_start_child()
108 static void perfmon_stop_child(int ctx_fd) in perfmon_stop_child() argument
110 if (perfmonctl(ctx_fd, PFM_STOP, 0, 0) == -1) { in perfmon_stop_child()
220 self->ctx_fd = ctx.ctx_fd; in create_context()
267 err = perfmonctl(self->ctx_fd, PFM_WRITE_PMCS, pc, i); in write_pmu()
273 err = perfmonctl(self->ctx_fd, PFM_WRITE_PMDS, pd, i); in write_pmu()
289 err = perfmonctl(self->ctx_fd, PFM_LOAD_CONTEXT, &load_args, 1); in load_context()
364 perfmon_start_child(self->ctx_fd); in run_child()
369 perfmon_stop_child(self->ctx_fd); in run_child()
490 perfmon_start_child(xen_ctx->ctx_fd); in perfmon_start()
511 perfmon_stop_child(xen_ctx->ctx_fd); in perfmon_stop()