On Fri, Sep 02, 2016 at 07:25:31PM +0530, Hari Bathini wrote:
Yep.I'm thinking this value is mostly the same for tasks, just like COMM andI think so, too. Namespaces aren't changed that often for tasks...
MMAP. Could we therefore not emit (sideband) events whenever a taskYou mean, something like PERF_RECORD_NAMESPACE that
changes namespace and get the same information but with tons less data?
emits events on fork, clone, setns..?
The only complication is initial state, on record start you'd have toThat also gives the possibility of recording all namespaces, not justTrue. If we record all namespaces, container identifier interpretation
the one.
can be left to the userspace to decide, which is much more flexible...
trawl /proc and generate 'fake' namespace records for all (relevant)
tasks.
We do the same with MMAP records, we parse /proc/$pid/maps for that.
Is this namespace stuff available in /proc somewhere?