Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1570623 > unrolled thread
| Started by | Taeung Song <treeze.taeung@gmail.com> |
|---|---|
| First post | 2017-01-31 12:40 +0100 |
| Last post | 2017-02-01 09:10 +0100 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v2 4/4] perf tools: Increase index if perf_evsel__new_idx() succeeded Taeung Song <treeze.taeung@gmail.com> - 2017-01-31 12:40 +0100
Re: [PATCH v2 4/4] perf tools: Increase index if perf_evsel__new_idx() succeeded Arnaldo Carvalho de Melo <acme@kernel.org> - 2017-01-31 14:30 +0100
Re: [PATCH v2 4/4] perf tools: Increase index if perf_evsel__new_idx() succeeded Taeung Song <treeze.taeung@gmail.com> - 2017-02-01 09:10 +0100
| From | Taeung Song <treeze.taeung@gmail.com> |
|---|---|
| Date | 2017-01-31 12:40 +0100 |
| Subject | [PATCH v2 4/4] perf tools: Increase index if perf_evsel__new_idx() succeeded |
| Message-ID | <t5EX0-8E-15@gated-at.bofh.it> |
Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Taeung Song <treeze.taeung@gmail.com> --- tools/perf/util/parse-events.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index 87a3e5a..ac47c12 100644 --- a/tools/perf/util/parse-events.c +++ b/tools/perf/util/parse-events.c @@ -311,10 +311,11 @@ __add_event(struct list_head *list, int *idx, event_attr_init(attr); - evsel = perf_evsel__new_idx(attr, (*idx)++); + evsel = perf_evsel__new_idx(attr, *idx); if (!evsel) return NULL; + (*idx)++; evsel->cpus = cpu_map__get(cpus); evsel->own_cpus = cpu_map__get(cpus); -- 2.7.4
[toc] | [next] | [standalone]
| From | Arnaldo Carvalho de Melo <acme@kernel.org> |
|---|---|
| Date | 2017-01-31 14:30 +0100 |
| Subject | Re: [PATCH v2 4/4] perf tools: Increase index if perf_evsel__new_idx() succeeded |
| Message-ID | <t5GFs-1cI-25@gated-at.bofh.it> |
| In reply to | #1570623 |
Em Tue, Jan 31, 2017 at 08:38:31PM +0900, Taeung Song escreveu: > Cc: Jiri Olsa <jolsa@kernel.org> > Cc: Namhyung Kim <namhyung@kernel.org> > Signed-off-by: Taeung Song <treeze.taeung@gmail.com> The title of this patch is misleading, ambiguous. It leads one to have doubt if we were not incrementing that index before and now we are, after successfully calling perf_evsel__new_idx(). It should have been: "perf tools: Only increase index if perf_evsel__new_idx() succeeds" - Arnaldo > --- > tools/perf/util/parse-events.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c > index 87a3e5a..ac47c12 100644 > --- a/tools/perf/util/parse-events.c > +++ b/tools/perf/util/parse-events.c > @@ -311,10 +311,11 @@ __add_event(struct list_head *list, int *idx, > > event_attr_init(attr); > > - evsel = perf_evsel__new_idx(attr, (*idx)++); > + evsel = perf_evsel__new_idx(attr, *idx); > if (!evsel) > return NULL; > > + (*idx)++; > evsel->cpus = cpu_map__get(cpus); > evsel->own_cpus = cpu_map__get(cpus); > > -- > 2.7.4
[toc] | [prev] | [next] | [standalone]
| From | Taeung Song <treeze.taeung@gmail.com> |
|---|---|
| Date | 2017-02-01 09:10 +0100 |
| Subject | Re: [PATCH v2 4/4] perf tools: Increase index if perf_evsel__new_idx() succeeded |
| Message-ID | <t5Y9k-3lP-21@gated-at.bofh.it> |
| In reply to | #1570742 |
On 01/31/2017 10:25 PM, Arnaldo Carvalho de Melo wrote: > Em Tue, Jan 31, 2017 at 08:38:31PM +0900, Taeung Song escreveu: >> Cc: Jiri Olsa <jolsa@kernel.org> >> Cc: Namhyung Kim <namhyung@kernel.org> >> Signed-off-by: Taeung Song <treeze.taeung@gmail.com> > > The title of this patch is misleading, ambiguous. It leads one to have > doubt if we were not incrementing that index before and now we are, > after successfully calling perf_evsel__new_idx(). > > It should have been: > > "perf tools: Only increase index if perf_evsel__new_idx() succeeds" > Understood! I'll change the title! Thanks, Taeung
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web