Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1638289
| From | Jiri Olsa <jolsa@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] perf, tools, script: Allow adding and removing fields |
| Date | 2017-05-09 19:10 +0200 |
| Message-ID | <tFgO5-4HS-1@gated-at.bofh.it> (permalink) |
| References | <tFesV-2Ya-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, May 09, 2017 at 07:36:37AM -0700, Andi Kleen wrote:
SNIP
> + } else {
> + if (change == REMOVE)
> + output[j].fields &= ~all_output_options[i].field;
> + else
> + output[j].fields |= all_output_options[i].field;
> + }
> }
> } else {
> if (output[type].invalid_fields & all_output_options[i].field) {
> @@ -1826,10 +1852,15 @@ static int parse_output_fields(const struct option *opt __maybe_unused,
> "Events will not be displayed.\n", event_type(type));
> }
> }
> + goto out;
>
> +out_badmix:
> + fprintf(stderr, "Cannot mix +-field with overridden fields\n");
> + rc = -EINVAL;
> out:
> free(str);
> return rc;
> +
> }
extra new line, but I guess Arnaldo could remove that ;-)
Acked-by: Jiri Olsa <jolsa@kernel.org>
thanks,
jirka
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] perf, tools, script: Allow adding and removing fields Andi Kleen <andi@firstfloor.org> - 2017-05-09 16:40 +0200 Re: [PATCH] perf, tools, script: Allow adding and removing fields Jiri Olsa <jolsa@redhat.com> - 2017-05-09 19:10 +0200
csiph-web