Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1198920
| From | Arnaldo Carvalho de Melo <arnaldo.melo@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs |
| Date | 2015-08-03 17:10 +0200 |
| Message-ID | <pTpxf-6Ex-5@gated-at.bofh.it> (permalink) |
| References | (5 earlier) <pOEdA-7g6-5@gated-at.bofh.it> <pOU8G-4Q4-9@gated-at.bofh.it> <pSkzF-1wQ-21@gated-at.bofh.it> <pSpfZ-8li-47@gated-at.bofh.it> <pTdPr-6bY-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Em Mon, Aug 03, 2015 at 10:37:59AM +0800, Wangnan (F) escreveu:
> On 2015/8/1 4:31, Arnaldo Carvalho de Melo wrote:
> >Somehow it is not calling what the changeset says it would call when passing
> >"-e foo.o", investigating...
> Have you tried
> /root/bin/perf record -e ./foo.o sleep 1
> The key is './'.
Nope, trying it now I get:
[root@felicio ~]# perf record -e ./foo.o sleep 1
libbpf: failed to open ./foo.o: No such file or directory
bpf: failed to load ./foo.o
invalid or unsupported event: './foo.o'
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@felicio ~]#
Way too much verbosity, I think this should be just:
[root@felicio ~]# perf record -e ./foo.o sleep 1
perf: Failed to open ./foo.o: No such file or directory
I.e. Avoid messages coming directly from a library, as you don't know
what kind of UI tools using such library will use, it maybe GTK, for
instance, and then sending stuff to stderr or stdout is inappropriate.
> I have reproduced the problem. Haven't noticed that because I always use './' name.
Right, right now this is required, it should not be.
> Will look into it.
Thanks, I will try checkint the other patches, taking this current
limitation into account, so that I can comment on them.
- Arnaldo
--
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
perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs Arnaldo Carvalho de Melo <arnaldo.melo@gmail.com> - 2015-07-31 17:40 +0200
Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs "Wangnan (F)" <wangnan0@huawei.com> - 2015-08-03 04:40 +0200
Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs Arnaldo Carvalho de Melo <arnaldo.melo@gmail.com> - 2015-08-03 17:10 +0200
Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-08-03 17:20 +0200
Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs pi3orama <pi3orama@163.com> - 2015-08-03 18:00 +0200
Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-08-03 18:20 +0200
Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-08-03 21:50 +0200
Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs "Wangnan (F)" <wangnan0@huawei.com> - 2015-08-04 07:30 +0200
Re: perf eBPF patch ordering. was: Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs "Wangnan (F)" <wangnan0@huawei.com> - 2015-08-04 12:50 +0200
csiph-web