> The is_alive function can be used by perf-top, perf-stat and perf-record
> to know that its target has died so it can stop monitoring.
Sorry that's to complicated and overengineered for me.
My simple patch works for me at least. It's not solving world hunger,
but it wasn't intended to do that.
On 9/13/12 9:58 AM, Andi Kleen wrote:
From: Andi Kleen
When counting a process with perf stat -p check if the process died
and exit collection if yes.
v2: Add more checks, handle non -p again. Handle /proc not there.
v3: Handle multi pid case. Fix non /proc error path
Signed-off-by: Andi Kleen
From: Andi Kleen
When counting a process with perf stat -p check if the process died
and exit collection if yes.
v2: Add more checks, handle non -p again. Handle /proc not there.
v3: Handle multi pid case. Fix non /proc error path
Signed-off-by: Andi Kleen
---
tools/perf/builtin-stat.c | 14
3 matches
Mail list logo