1. 23 9月, 2009 1 次提交
    • S
      proc connector: add event for process becoming session leader · 02b51df1
      Scott James Remnant 提交于
      The act of a process becoming a session leader is a useful signal to a
      supervising init daemon such as Upstart.
      
      While a daemon will normally do this as part of the process of becoming a
      daemon, it is rare for its children to do so.  When the children do, it is
      nearly always a sign that the child should be considered detached from the
      parent and not supervised along with it.
      
      The poster-child example is OpenSSH; the per-login children call setsid()
      so that they may control the pty connected to them.  If the primary daemon
      dies or is restarted, we do not want to consider the per-login children
      and want to respawn the primary daemon without killing the children.
      
      This patch adds a new PROC_SID_EVENT and associated structure to the
      proc_event event_data union, it arranges for this to be emitted when the
      special PIDTYPE_SID pid is set.
      
      [akpm@linux-foundation.org: coding-style fixes]
      Signed-off-by: NScott James Remnant <scott@ubuntu.com>
      Acked-by: NMatt Helsley <matthltc@us.ibm.com>
      Cc: Oleg Nesterov <oleg@tv-sign.ru>
      Cc: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
      Acked-by: N"David S. Miller" <davem@davemloft.net>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      02b51df1
  2. 27 3月, 2009 1 次提交
    • A
      make exported headers use strict posix types · 85efde6f
      Arnd Bergmann 提交于
      A number of standard posix types are used in exported headers, which
      is not allowed if __STRICT_KERNEL_NAMES is defined. In order to
      get rid of the non-__STRICT_KERNEL_NAMES part and to make sane headers
      the default, we have to change them all to safe types.
      
      There are also still some leftovers in reiserfs_fs.h, elfcore.h
      and coda.h, but these files have not compiled in user space for
      a long time.
      
      This leaves out the various integer types ({u_,u,}int{8,16,32,64}_t),
      which we take care of separately.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
      Cc: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
      Cc: netdev@vger.kernel.org
      Cc: linux-ppp@vger.kernel.org
      Cc: Jaroslav Kysela <perex@perex.cz>
      Cc: Takashi Iwai <tiwai@suse.de>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Signed-off-by: NH. Peter Anvin <hpa@linux.intel.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      85efde6f
  3. 01 8月, 2006 1 次提交
    • C
      [PATCH] Process Events: Fix biarch compatibility issue. use __u64 timestamp · 822cfbff
      Chandra Seetharaman 提交于
      Events sent by Process Events Connector from a 64-bit kernel are not binary
      compatible with a 32-bit userspace program because the "timestamp" field
      (struct timespec) is not arch independent.  This affects the fields that
      follow "timestamp" as they will be be off by 8 bytes.
      
      This is a problem for 32-bit userspace programs running with 64-bit kernels
      on ppc64, s390, x86-64..  any "biarch" system.
      
      Matt had submitted a different solution to lkml as an RFC earlier.  We have
      since switched to a solution recommended by Evgeniy Polyakov.
      
      This patch fixes the problem by changing the timestamp to be a __u64, which
      stores the number of nanoseconds.
      
      Tested on a x86_64 system with both 32 bit application and 64 bit
      application and on a i386 system.
      Signed-off-by: NChandra Seetharaman <sekharan@us.ibm.com>
      Signed-off-by: NMatt Helsley <matthltc@us.ibm.com>
      Cc: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
      Cc: Guillaume Thouvenin <guillaume.thouvenin@bull.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      822cfbff
  4. 23 6月, 2006 2 次提交
  5. 13 12月, 2005 1 次提交
    • M
      [PATCH] Add timestamp field to process events · 5650b736
      Matt Helsley 提交于
      This adds a timestamp field to the events sent via the process event
      connector.  The timestamp allows listeners to accurately account the
      duration(s) between a process' events and offers strong means with which
      to determine the order of events with respect to a given task while also
      avoiding the addition of per-task data.
      
      This alters the size and layout of the event structure and hence would
      break compatibility if process events connector as it stands in 2.6.15-rc2
      were released as a mainline kernel.
      Signed-off-by: NMatt Helsley <matthltc@us.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      5650b736
  6. 30 11月, 2005 1 次提交
  7. 07 11月, 2005 1 次提交