mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 21:24:08 +08:00
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 <snorcht@gmail.com> Cc: Michael Kerrisk <mtk.manpages@gmail.com> Cc: Matthew Helsley <matt.helsley@gmail.com> Cc: Pavel Emelyanov <xemul@parallels.com> Link: http://lkml.kernel.org/r/1368742323-46949-2-git-send-email-snorcht@gmail.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
2938d2757f
commit
15ef0298de
@ -2118,6 +2118,7 @@ static int show_timer(struct seq_file *m, void *v)
|
||||
nstr[notify & ~SIGEV_THREAD_ID],
|
||||
(notify & SIGEV_THREAD_ID) ? "tid" : "pid",
|
||||
pid_nr_ns(timer->it_pid, tp->ns));
|
||||
seq_printf(m, "ClockID: %d\n", timer->it_clock);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user