posix-timers: Show sigevent info in proc file
authorPavel Emelyanov <xemul@parallels.com>
Mon, 11 Mar 2013 09:13:08 +0000 (13:13 +0400)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 17 Apr 2013 18:51:01 +0000 (20:51 +0200)
commit57b8015e07a70301e9ec9f324db1a8b73b5a1e2b
treefb2b5bae45c3c9f437b57379a8fa1279e220d6d0
parent48f6a7a511ef8823fdff39afee0320092d43a8a0
posix-timers: Show sigevent info in proc file

Previous patch added proc file to list posix timers created by task.
Expand the information provided in this file by adding info about
notification method, with which timers were created. I.e. after
the "ID:" line there go

1. "signal:" line, that shows signal number and sigval bits;
2. "notify:" line, that shows the timer notification method.

Thus the timer entry would looke like this:

ID: 123
signal: 14/0000000000b005d0
notify: signal/pid.732

This information is enough to understand how timer_create() was called
for each particular timer.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Michael Kerrisk <mtk.manpages@gmail.com>
Cc: Matthew Helsley <matt.helsley@gmail.com>
Link: http://lkml.kernel.org/r/513DA024.80404@parallels.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
fs/proc/base.c