Re: [PATCH 22/25] perf tools: Add perf_evlist__del()

2015-09-28 Thread Arnaldo Carvalho de Melo
Em Mon, Sep 28, 2015 at 10:33:32AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Fri, Sep 25, 2015 at 04:15:53PM +0300, Adrian Hunter escreveu: > > Add a counterpart to perf_evlist__add() that does the opposite > > and deletes the evsel. > > > > This will be used by perf inject to remove unwanted

Re: [PATCH 22/25] perf tools: Add perf_evlist__del()

2015-09-28 Thread Arnaldo Carvalho de Melo
Em Fri, Sep 25, 2015 at 04:15:53PM +0300, Adrian Hunter escreveu: > Add a counterpart to perf_evlist__add() that does the opposite > and deletes the evsel. > > This will be used by perf inject to remove unwanted evsels I think perf_evsel__remove() is better, as __del() looks like a shortcut for _