From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Tikhomirov Subject: [PATCH 1/1] posix-timers: Show clock ID in proc file Date: Fri, 17 May 2013 02:12:03 +0400 Message-ID: <1368742323-46949-2-git-send-email-snorcht@gmail.com> References: <1368742323-46949-1-git-send-email-snorcht@gmail.com> Return-path: In-Reply-To: <1368742323-46949-1-git-send-email-snorcht-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Thomas Gleixner Cc: Ingo Molnar , Michael Kerrisk , Matthew Helsley , linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Linux Kernel Mailing List , Pavel Emelyanov , Pavel Tikhomirov List-Id: linux-api@vger.kernel.org Expand information about posix-timers in /proc//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: ". Signed-off-by: Pavel Tikhomirov --- fs/proc/base.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/proc/base.c b/fs/proc/base.c index 2dad4a9..8a38eef 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -2079,6 +2079,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; } -- 1.7.9.5