perfmonctl(2) System Calls Manual perfmonctl(2) perfmonctl - IA-64 #include #include long perfmonctl(int narg; int fd, int cmd, void arg[narg], int narg); : glibc HISTORY. perfmonctl() IA-64 (PMU). PMU PMD ( ) PMC ( ) . perfmonctl() cmd arg. narg. fd perfmon . cmd : PFM_CREATE_CONTEXT perfmonctl(int fd, PFM_CREATE_CONTEXT, pfarg_context_t *ctxt, 1); . fd . perfmon ctxt ctxt->ctx_fd. perfmonctl() ( pfm_msg_t) read(2). select(2) poll(2) epoll(7). close(2) . PFM_WRITE_PMCS perfmonctl(int fd, PFM_WRITE_PMCS, pfarg_reg_t *pmcs, n); PMC. PFM_WRITE_PMDS perfmonctl(int fd, PFM_WRITE_PMDS, pfarg_reg_t *pmds, n); PMD. PFM_READ_PMDS perfmonctl(int fd, PFM_READ_PMDS, pfarg_reg_t *pmds, n); PMD. PFM_START perfmonctl(int fd, PFM_START, NULL, 0); . PFM_STOP perfmonctl(int fd, PFM_STOP, NULL, 0); . PFM_LOAD_CONTEXT perfmonctl(int fd, PFM_LOAD_CONTEXT, pfarg_load_t *largs, 1); . PFM_UNLOAD_CONTEXT perfmonctl(int fd, PFM_UNLOAD_CONTEXT, NULL, 0); . PFM_RESTART perfmonctl(int fd, PFM_RESTART, NULL, 0); . PFM_GET_FEATURES perfmonctl(int fd, PFM_GET_FEATURES, pfarg_features_t *arg, 1); PFM_DEBUG perfmonctl(int fd, PFM_DEBUG, val, 0); val . PFM_GET_PMC_RESET_VAL perfmonctl(int fd, PFM_GET_PMC_RESET_VAL, pfarg_reg_t *req, n); PMC . perfmonctl() . -1 errno . IA-64. 2.4. 5.10. 5.10. glibc syscall(2). gprof(1) perfmon2 3 . . : . 6.18 22 2026 perfmonctl(2)