[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <aab6e549-38b3-b18a-003c-9d1d96d7617c@linux.vnet.ibm.com>
Date: Tue, 20 Aug 2019 14:09:04 +0530
From: Mamatha Inamdar <mamatha4@...ux.vnet.ibm.com>
To: Jiri Olsa <jolsa@...hat.com>
Cc: linux-kernel@...r.kernel.org, peterz@...radead.org,
mingo@...hat.com, alexander.shishkin@...ux.intel.com,
namhyung@...nel.org, kstewart@...uxfoundation.org,
gregkh@...uxfoundation.org, jeremie.galarneau@...icios.com,
shawn@....icu, tstoyanov@...are.com, tglx@...utronix.de,
alexey.budankov@...ux.intel.com, adrian.hunter@...el.com,
songliubraving@...com, ravi.bangoria@...ux.ibm.com
Subject: Re: [PATCH]Perf: Return error code for perf_session__new function on
failure
Hi Jiri Olsa,
Thanks for reviewing the patch..
working on your comments, will post new version ASAP.
On 15/08/19 6:21 PM, Jiri Olsa wrote:
> On Wed, Aug 14, 2019 at 03:02:18PM +0530, Mamatha Inamdar wrote:
>
> SNIP
>
>> symbol_conf.pid_list_str = strdup(trace->opts.target.pid);
>> diff --git a/tools/perf/util/data-convert-bt.c b/tools/perf/util/data-convert-bt.c
>> index ddbcd59..dbc6dc2 100644
>> --- a/tools/perf/util/data-convert-bt.c
>> +++ b/tools/perf/util/data-convert-bt.c
>> @@ -1619,8 +1619,10 @@ int bt_convert__perf2ctf(const char *input, const char *path,
>> err = -1;
>> /* perf.data session */
>> session = perf_session__new(&data, 0, &c.tool);
>> - if (!session)
>> + if (IS_ERR(session)) {
>> + err = PTR_ERR(session);
>> goto free_writer;
>> + }
>>
>> if (c.queue_size) {
>> ordered_events__set_alloc_size(&session->ordered_events,
> I'm getting:
>
> CC util/data-convert-bt.o
> util/data-convert-bt.c: In function ‘bt_convert__perf2ctf’:
> util/data-convert-bt.c:1622:6: error: implicit declaration of function ‘IS_ERR’; did you mean ‘SIG_ERR’? [-Werror=implicit-function-declaration]
> 1622 | if (IS_ERR(session)) {
> | ^~~~~~
> | SIG_ERR
> util/data-convert-bt.c:1622:6: error: nested extern declaration of ‘IS_ERR’ [-Werror=nested-externs]
> util/data-convert-bt.c:1623:9: error: implicit declaration of function ‘PTR_ERR’ [-Werror=implicit-function-declaration]
> 1623 | err = PTR_ERR(session);
>
>
> jirka
>
Powered by blists - more mailing lists