diff --git a/mx_proc.c b/mx_proc.c index 67ecb2e2..809a6d55 100644 --- a/mx_proc.c +++ b/mx_proc.c @@ -99,23 +99,6 @@ int mx_proc_pid_stat(struct mx_proc_pid_stat **pps, pid_t pid) return 0; } -int mx_proc_pid_task_tid_stat(struct mx_proc_pid_stat **pps, pid_t pid, pid_t tid) -{ - struct mx_proc_pid_stat *pstat; - int res; - - pstat = *pps; - if (!pstat) - pstat = mx_calloc_forever(1, sizeof(*pstat)); - - res = mx_proc_pid_stat_read(pstat, "/proc/%d/task/%d/stat", pid, tid); - if (res < 0) - return res; - - *pps = pstat; - return 0; -} - int mx_proc_pid_stat_read(struct mx_proc_pid_stat *pps, char *fmt, ...) { _mx_cleanup_free_ char *fname = NULL; diff --git a/mx_proc.h b/mx_proc.h index 7e4cede6..6ae184a8 100644 --- a/mx_proc.h +++ b/mx_proc.h @@ -74,7 +74,6 @@ struct mx_proc_pid_stat { int mx_proc_pid_stat_read(struct mx_proc_pid_stat *pps, char *fmt, ...); int mx_proc_pid_stat(struct mx_proc_pid_stat **pps, pid_t pid); -int mx_proc_pid_task_tid_stat(struct mx_proc_pid_stat **pps, pid_t pid, pid_t tid); void mx_proc_pid_stat_free_content(struct mx_proc_pid_stat *pps);