Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1262802
| From | "Wangnan (F)" <wangnan0@huawei.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 3/4] bpf tools: Improve libbpf error reporting |
| Date | 2015-11-05 02:50 +0100 |
| Message-ID | <qrhQB-8ni-5@gated-at.bofh.it> (permalink) |
| References | <qqVZM-2HI-1@gated-at.bofh.it> <qqVZM-2HI-9@gated-at.bofh.it> <qrepI-6lw-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 2015/11/5 6:01, Arnaldo Carvalho de Melo wrote:
> Em Wed, Nov 04, 2015 at 02:25:58AM +0000, Wang Nan escreveu:
>> In this patch, a series libbpf specific error numbers and
>> libbpf_strerror() are created to help reporting error to caller.
>> Functions are updated to pass correct error number through macro
>> CHECK_ERR().
>>
>> All users of bpf_object__open{_buffer}() and bpf_program__title()
>> in perf are modified accordingly.
> So, before I get:
>
> [root@zoo ~]# perf record -e /tmp/foo.o sleep 1
> event syntax error: '/tmp/foo.o'
> \___ Invalid argument: Are you root and runing a CONFIG_BPF_SYSCALL kernel?
>
> (add -v to see detail)
> Run 'perf list' for a list of valid events
>
> Usage: perf record [<options>] [<command>]
> or: perf record [<options>] -- <command> [<options>]
>
> -e, --event <event> event selector. use 'perf list' to list available events
>
>
> And now:
>
> [root@zoo ~]# perf record -e /tmp/foo.o sleep 1
> event syntax error: '/tmp/foo.o'
> \___ Unknown error 4006
>
> (add -v to see detail)
> Run 'perf list' for a list of valid events
>
> Usage: perf record [<options>] [<command>]
> or: perf record [<options>] -- <command> [<options>]
>
> -e, --event <event> event selector. use 'perf list' to list available events
> [root@zoo ~]#
>
> Can you please fix this? The relevant strerror() routine should know about the
> errors it handles and produce an informative message.
>
> - Arnaldo
>
An libbpf related patches are losted because yesterday I didn't know
your head.
Today I'd like to merge my two patchsets and send them to you together.
Thank you.
--
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 v2 0/4] perf bpf: Improve error code delivering and output Wang Nan <wangnan0@huawei.com> - 2015-11-04 03:30 +0100
[PATCH v2 1/4] perf test: Keep test result clean if '-v' not set Wang Nan <wangnan0@huawei.com> - 2015-11-04 03:30 +0100
[PATCH v2 2/4] perf tools: Mute libbpf when '-v' not set Wang Nan <wangnan0@huawei.com> - 2015-11-04 03:30 +0100
[PATCH v2 4/4] perf tools: Improve BPF related error messages output Wang Nan <wangnan0@huawei.com> - 2015-11-04 03:30 +0100
[PATCH v2 3/4] bpf tools: Improve libbpf error reporting Wang Nan <wangnan0@huawei.com> - 2015-11-04 03:30 +0100
Re: [PATCH v2 3/4] bpf tools: Improve libbpf error reporting Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-11-04 23:10 +0100
Re: [PATCH v2 3/4] bpf tools: Improve libbpf error reporting "Wangnan (F)" <wangnan0@huawei.com> - 2015-11-05 02:50 +0100
Re: [PATCH v2 3/4] bpf tools: Improve libbpf error reporting "Wangnan (F)" <wangnan0@huawei.com> - 2015-11-05 03:10 +0100
csiph-web