Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1301358
| From | Jiri Olsa <jolsa@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/5] perf tools: Add all matching dynamic sort keys for field name |
| Date | 2016-01-05 10:30 +0100 |
| Message-ID | <qNw6d-5k-3@gated-at.bofh.it> (permalink) |
| References | <qNqat-4fJ-3@gated-at.bofh.it> <qNqat-4fJ-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Jan 05, 2016 at 12:03:44PM +0900, Namhyung Kim wrote:
SNIP
> static int add_dynamic_entry(struct perf_evlist *evlist, const char *tok)
> {
> char *str, *event_name, *field_name, *opt_name;
> @@ -1995,7 +2017,12 @@ static int add_dynamic_entry(struct perf_evlist *evlist, const char *tok)
> }
>
> if (!strcmp(field_name, "trace_fields")) {
> - ret = add_all_dynamic_fields(evlist ,raw_trace);
> + ret = add_all_dynamic_fields(evlist, raw_trace);
> + goto out;
> + }
> +
> + if (event_name == NULL) {
> + ret = add_all_matching_fields(evlist, field_name, raw_trace);
> goto out;
should this be handled within find_evsel function:
/* case 1 */
if (event_name == NULL) {
if (evlist->nr_entries != 1) {
looks like it'd be dead code otherwise
thanks,
jirka
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 2/5] perf tools: Add all matching dynamic sort keys for field name Namhyung Kim <namhyung@kernel.org> - 2016-01-05 04:10 +0100
Re: [PATCH 2/5] perf tools: Add all matching dynamic sort keys for field name Jiri Olsa <jolsa@redhat.com> - 2016-01-05 10:30 +0100
Re: [PATCH 2/5] perf tools: Add all matching dynamic sort keys for field name Namhyung Kim <namhyung@kernel.org> - 2016-01-05 11:50 +0100
csiph-web