From: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
To: Jiri Olsa <jolsa@redhat.com>
Cc: linux-kernel@vger.kernel.org, peterz@infradead.org,
mingo@redhat.com, alexander.shishkin@linux.intel.com,
namhyung@kernel.org, kstewart@linuxfoundation.org,
gregkh@linuxfoundation.org, jeremie.galarneau@efficios.com,
shawn@git.icu, tstoyanov@vmware.com, tglx@linutronix.de,
alexey.budankov@linux.intel.com, adrian.hunter@intel.com,
songliubraving@fb.com, ravi.bangoria@linux.ibm.com
Subject: Re: [PATCH]Perf: Return error code for perf_session__new function on failure
Date: Tue, 20 Aug 2019 14:09:04 +0530 [thread overview]
Message-ID: <aab6e549-38b3-b18a-003c-9d1d96d7617c@linux.vnet.ibm.com> (raw)
In-Reply-To: <20190815125116.GG30356@krava>
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
>
prev parent reply other threads:[~2019-08-20 8:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-14 9:32 Mamatha Inamdar
2019-08-15 12:51 ` Jiri Olsa
2019-08-15 12:51 ` Jiri Olsa
2019-08-15 12:51 ` Jiri Olsa
2019-08-20 8:39 ` Mamatha Inamdar [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aab6e549-38b3-b18a-003c-9d1d96d7617c@linux.vnet.ibm.com \
--to=mamatha4@linux.vnet.ibm.com \
--cc=adrian.hunter@intel.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=alexey.budankov@linux.intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=jeremie.galarneau@efficios.com \
--cc=jolsa@redhat.com \
--cc=kstewart@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=peterz@infradead.org \
--cc=ravi.bangoria@linux.ibm.com \
--cc=shawn@git.icu \
--cc=songliubraving@fb.com \
--cc=tglx@linutronix.de \
--cc=tstoyanov@vmware.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®