Re: [PATCH 38/41] perf session: Add perf_session__deliver_synth_event()

2014-07-15 Thread Adrian Hunter
On 15/07/2014 6:17 p.m., Arnaldo Carvalho de Melo wrote: Em Mon, Jul 14, 2014 at 01:03:02PM +0300, Adrian Hunter escreveu: Add a function to deliver synthesized events from within a session. Why not put this in perf_session_deliver_event (and fix its naming, renaming it to perf_session__delive

Re: [PATCH 38/41] perf session: Add perf_session__deliver_synth_event()

2014-07-15 Thread Arnaldo Carvalho de Melo
Em Mon, Jul 14, 2014 at 01:03:02PM +0300, Adrian Hunter escreveu: > Add a function to deliver synthesized events from > within a session. Why not put this in perf_session_deliver_event (and fix its naming, renaming it to perf_session__deliver_event)? The way you did makes me wonder why you want t

[PATCH 38/41] perf session: Add perf_session__deliver_synth_event()

2014-07-14 Thread Adrian Hunter
Add a function to deliver synthesized events from within a session. Signed-off-by: Adrian Hunter --- tools/perf/util/session.c | 14 ++ tools/perf/util/session.h | 5 + 2 files changed, 19 insertions(+) diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index 70