perfmonctl(2) System Calls Manual perfmonctl(2) perfmonctl - IA-64 #include #include long perfmonctl(int fd, int cmd, void arg[.narg], int narg); Note: There is no glibc wrapper for this system call; see HISTORY. perfmonctl() IA-64 PMU ( , perfomance monitoring unit). PMU PMD ( , performance monitoring data) PMC ( , performance monitoring control), . 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() returns zero when the operation is successful. On error, -1 is returned and errno is set to indicate the error. Linux on IA-64. Added in Linux 2.4; removed in Linux 5.10. This system call was broken for many years, and ultimately removed in Linux 5.10. glibc does not provide a wrapper for this system call; on kernels where it exists, call it using syscall(2). . gprof(1) perfmon2 Alexey, Azamat Hackimov , kogamatranslator49 , Kogan, Max Is , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . perfmonctl(2)