Skip to content

Commit 15ef029

Browse files
SnorchKAGA-KOKO
authored andcommitted
posix-timers: Show clock ID in proc file
Expand information about posix-timers in /proc/<pid>/timers by adding info about clock, with which the timer was created. I.e. in the forth line of timer info after "notify:" line go "ClockID: <clock_id>". Signed-off-by: Pavel Tikhomirov <[email protected]> Cc: Michael Kerrisk <[email protected]> Cc: Matthew Helsley <[email protected]> Cc: Pavel Emelyanov <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]>
1 parent 2938d27 commit 15ef029

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/proc/base.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2118,6 +2118,7 @@ static int show_timer(struct seq_file *m, void *v)
21182118
nstr[notify & ~SIGEV_THREAD_ID],
21192119
(notify & SIGEV_THREAD_ID) ? "tid" : "pid",
21202120
pid_nr_ns(timer->it_pid, tp->ns));
2121+
seq_printf(m, "ClockID: %d\n", timer->it_clock);
21212122

21222123
return 0;
21232124
}

0 commit comments

Comments
 (0)