Re: [PATCH 6/7] perf tool: protect empty evlists

2017-04-11 Thread David Carrillo-Cisneros
I did my best to fix those issues in perf inject and perf report, but yeah, other commands may have issues. On Tue, Apr 11, 2017 at 11:12 AM, Arnaldo Carvalho de Melo wrote: > Em Mon, Apr 10, 2017 at 01:14:31PM -0700, David Carrillo-Cisneros escreveu: >> A common pattern in in pipe-mode bugs is a

Re: [PATCH 6/7] perf tool: protect empty evlists

2017-04-11 Thread Arnaldo Carvalho de Melo
Em Mon, Apr 10, 2017 at 01:14:31PM -0700, David Carrillo-Cisneros escreveu: > A common pattern in in pipe-mode bugs is accessing an empty evlist. > Return NULL to make it easier to catch this problems. This one is far reaching, we need to take care handling all places using these functions, albeit

[PATCH 6/7] perf tool: protect empty evlists

2017-04-10 Thread David Carrillo-Cisneros
A common pattern in in pipe-mode bugs is accessing an empty evlist. Return NULL to make it easier to catch this problems. Signed-off-by: David Carrillo-Cisneros --- tools/perf/util/evlist.h | 4 1 file changed, 4 insertions(+) diff --git a/tools/perf/util/evlist.h b/tools/perf/util/evlist.