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

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

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

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

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

2015-09-25 Thread Adrian Hunter
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. Signed-off-by: Adrian Hunter --- tools/perf/util/evlist.c | 8 tools/perf/util/evlist.h | 1 + 2 files changed, 9 insertions(+) diff --git

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

2015-09-25 Thread Adrian Hunter
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. Signed-off-by: Adrian Hunter --- tools/perf/util/evlist.c | 8 tools/perf/util/evlist.h | 1 + 2 files changed, 9