linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] posix timers: Extend kernel API to report more info about timers (v3)
@ 2013-03-11  9:11 Pavel Emelyanov
  2013-03-11  9:12 ` [PATCH 1/3] posix timers: Allocate timer id per process (v2) Pavel Emelyanov
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Pavel Emelyanov @ 2013-03-11  9:11 UTC (permalink / raw)
  To: Thomas Gleixner
  Cc: Ingo Molnar, Peter Zijlstra, Michael Kerrisk, Matthew Helsley,
	linux-api, Linux Kernel Mailing List

Hi.

Currently kernel doesn't provide any API for getting information about
what timers are currently created by process and in which state they 
are. Also, the way timer IDs are generated makes it impossible to create
a timer with any desired ID. Both facilities are very very tempting by
the checkpoint-restore project.

That said, this series fixes posix timers API in this way:

1. it makes timers IDs generation per-signal_struct to allow for
   recreation of a timer with desired ID;
2. it adds per-task proc file where all timers created by it are
   listed.

This v3 series is ported on v3.9-rc2 and patches' changelogs are fixed
according to Thomas' feedback to contain info why the change is required.

Thanks,
Pavel

^ permalink raw reply	[flat|nested] 10+ messages in thread
* [PATCH 0/3] posix timers: Extend kernel API to report more info about timers (v2)
@ 2013-02-21 18:21 Pavel Emelyanov
  2013-02-21 18:22 ` [PATCH 3/3] posix-timers: Show sigevent info in proc file Pavel Emelyanov
  0 siblings, 1 reply; 10+ messages in thread
From: Pavel Emelyanov @ 2013-02-21 18:21 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, Peter Zijlstra, Michael Kerrisk,
	Matthew Helsley, linux-api, Linux Kernel Mailing List

Hi.

Here's another approach to address the problems with insufficient API 
of posix timers.

Currently kernel doesn't provide any API for getting information about
what timers are currently created by process and in which state they 
are. Initially the proposal was to add a couple of system calls that 
would list timers owned by a task and provide info about sigevent 
configuration of particular timer.

Matthew pointed out, that fixing the API in _that_ way should better be
left to POSIX people :) and we'd better go with new /proc files. So
here's how the /proc file can look like to provide info about timers
(patches 2 and 3).

And, yet again, I'd like to fix the way timer IDs are generated by
replacing global IDR with hashtable and making IDs generation 
per-signal_struct (patch 1). A note: mentioned by Matthew important
patches about timers IDR are "don't feed negative ID into idr_xxx
engine". Since I remove the whole IDR stuff from timers, I do
conflict with them, but this is easy to fix :)

Thanks,
Pavel

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-04-17 19:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-11  9:11 [PATCH 0/3] posix timers: Extend kernel API to report more info about timers (v3) Pavel Emelyanov
2013-03-11  9:12 ` [PATCH 1/3] posix timers: Allocate timer id per process (v2) Pavel Emelyanov
2013-04-17 19:53   ` [tip:timers/core] posix timers: Allocate timer id per process (v2 ) tip-bot for Pavel Emelyanov
2013-03-11  9:12 ` [PATCH 2/3] posix-timers: Introduce /proc/<pid>/timers file Pavel Emelyanov
2013-04-17 19:54   ` [tip:timers/core] posix-timers: Introduce /proc/PID/timers file tip-bot for Pavel Emelyanov
2013-03-11  9:13 ` [PATCH 3/3] posix-timers: Show sigevent info in proc file Pavel Emelyanov
2013-04-17 19:56   ` [tip:timers/core] " tip-bot for Pavel Emelyanov
2013-03-25 13:32 ` [PATCH 0/3] posix timers: Extend kernel API to report more info about timers (v3) Pavel Emelyanov
2013-04-11 11:56   ` Pavel Emelyanov
  -- strict thread matches above, loose matches on Subject: below --
2013-02-21 18:21 [PATCH 0/3] posix timers: Extend kernel API to report more info about timers (v2) Pavel Emelyanov
2013-02-21 18:22 ` [PATCH 3/3] posix-timers: Show sigevent info in proc file Pavel Emelyanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).