[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YHBbVMNSCsu/bbii@krava>
Date: Fri, 9 Apr 2021 15:49:08 +0200
From: Jiri Olsa <jolsa@...hat.com>
To: Jin Yao <yao.jin@...ux.intel.com>
Cc: acme@...nel.org, jolsa@...nel.org, peterz@...radead.org,
mingo@...hat.com, alexander.shishkin@...ux.intel.com,
Linux-kernel@...r.kernel.org, ak@...ux.intel.com,
kan.liang@...el.com, yao.jin@...el.com
Subject: Re: [PATCH v3 10/27] perf parse-events: Create two hybrid raw events
On Mon, Mar 29, 2021 at 03:00:29PM +0800, Jin Yao wrote:
SNIP
> + name, config_terms, pmu);
> + if (ret)
> + return ret;
> + }
> +
> + return 0;
> +}
> +
> int parse_events__add_numeric_hybrid(struct parse_events_state *parse_state,
> struct list_head *list,
> struct perf_event_attr *attr,
> @@ -91,6 +126,9 @@ int parse_events__add_numeric_hybrid(struct parse_events_state *parse_state,
> if (attr->type != PERF_TYPE_RAW) {
> return add_hw_hybrid(parse_state, list, attr, name,
> config_terms);
> + } else {
> + return add_raw_hybrid(parse_state, list, attr, name,
> + config_terms);
> }
>
> return -1;
no need for the return -1
jirka
> --
> 2.17.1
>
Powered by blists - more mailing lists