Re: [PATCH] perf tools: Enable pre-event inherit setting by config terms

2015-10-23 Thread Arnaldo Carvalho de Melo
Em Fri, Oct 23, 2015 at 09:23:22AM +, Wang Nan escreveu: > This patch allows perf record setting event's attr.inherit bit by > config terms like: > > # perf record -e cycles/no-inherit/ ... I understand that the 'perf record' option is called --no-inherit, but can we support both 'inherit' a

[PATCH] perf tools: Enable pre-event inherit setting by config terms

2015-10-23 Thread Wang Nan
This patch allows perf record setting event's attr.inherit bit by config terms like: # perf record -e cycles/no-inherit/ ... So user can control inherit bit for each event separately. In following example, a.out fork()s in main then do some complex CPU intensive computations in both of its chil