diff options
| author | Shailabh Nagar <[email protected]> | 2006-07-14 00:24:46 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2006-07-14 21:53:57 -0700 |
| commit | c8924363da07aec213e5d359f23eeae1fff91951 (patch) | |
| tree | bef390d55719cf3f4b0d02c7efe03dd9ebc7321a /scripts/patch-kernel | |
| parent | 9e06d3f9f6b14f6e3120923ed215032726246c98 (diff) | |
[PATCH] per-task delay accounting: avoid send without listeners
Don't send taskstats (per-pid or per-tgid) on thread exit when no one is
listening for such data.
Currently the taskstats interface allocates a structure, fills it in and
calls netlink to send out per-pid and per-tgid stats regardless of whether
a userspace listener for the data exists (netlink layer would check for
that and avoid the multicast).
As a result of this patch, the check for the no-listener case is performed
early, avoiding the redundant allocation and filling up of the taskstats
structures.
Signed-off-by: Balbir Singh <[email protected]>
Signed-off-by: Shailabh Nagar <[email protected]>
Cc: Jay Lan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions