Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755949Ab3EQQLt (ORCPT ); Fri, 17 May 2013 12:11:49 -0400 Received: from mailhub.sw.ru ([195.214.232.25]:1581 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753800Ab3EQQLs (ORCPT ); Fri, 17 May 2013 12:11:48 -0400 Message-ID: <5196567B.4080905@parallels.com> Date: Fri, 17 May 2013 20:10:35 +0400 From: Pavel Emelyanov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 MIME-Version: 1.0 To: Thomas Gleixner CC: Pavel Tikhomirov , Ingo Molnar , Michael Kerrisk , Matthew Helsley , linux-api@vger.kernel.org, Linux Kernel Mailing List Subject: Re: [PATCH 1/1] posix-timers: Show clock ID in proc file References: <1368742323-46949-1-git-send-email-snorcht@gmail.com> <1368742323-46949-2-git-send-email-snorcht@gmail.com> In-Reply-To: <1368742323-46949-2-git-send-email-snorcht@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1091 Lines: 34 On 05/17/2013 02:12 AM, Pavel Tikhomirov wrote: > 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 Acked-by: Pavel Emelyanov > --- > 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; > } > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/