Make libustctl list only online pids v3
authorNils Carlson <nils.carlson@ericsson.com>
Mon, 16 May 2011 13:57:15 +0000 (15:57 +0200)
committerNils Carlson <nils.carlson@ericsson.com>
Tue, 17 May 2011 08:40:59 +0000 (10:40 +0200)
commit0f79e1ef1d4f31a91476f5a84e367f2c49ce4723
tree5c0f8e5545a013c48e0a6746a3113e3e043a3c35
parent317117239797a3609c1ec817a59bb3e70c9c1cba
Make libustctl list only online pids v3

Changes since v2:
Botox.

Changes since v1:
Cosmetic surgery at a european cost

Previously libustctl would list all pids. This patch changes this
so only online pids are listed. This is done by appending on each
socket name the mtime from the proc/<pid> directory. This way a
socket can be checked to see if the appended mtime matches the
mtime of the proc dir for the current pid, thus allowing us to
distinguish between old and new socket files.

Signed-off-by: Nils Carlson <nils.carlson@ericsson.com>
Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
libust/tracectl.c
libustcomm/ustcomm.c
libustcomm/ustcomm.h
libustctl/libustctl.c
This page took 0.029739 seconds and 4 git commands to generate.