and default macros.
Wang Nan (2):
perf llvm: Allow dump llvm output object file using llvm.dump-obj
perf record: Add --dry-run option to check cmdline options
tools/perf/Documentation/perf-record.txt | 7 ++
tools/perf/builtin-record.c | 7 ++
tools/perf/util/llvm-utils.c
and default macros.
Wang Nan (2):
perf llvm: Allow dump llvm output object file using llvm.dump-obj
perf record: Add --dry-run option to check cmdline options
tools/perf/Documentation/perf-record.txt | 7 ++
tools/perf/builtin-record.c | 7 ++
tools/perf/util/llvm-utils.c
, enable_on_exec: 1, task: 1,
sample_id_all: 1, exclude_guest: 1, mmap2: 1, comm_exec: 1, write_backward: 1
# Tip: use 'perf evlist --trace-fields' to show fields for tracepoint events
Signed-off-by: Wang Nan <wangn...@huawei.com>
Signed-off-by: He Kuang <heku...@huawei.com>
Cc: Arnaldo
Improve test backward-ring-buffer, trace both enter and exit event of
prctl() syscall, utilize auxiliary evlist to mmap enter and exit event
into separated mmaps.
Signed-off-by: Wang Nan <wangn...@huawei.com>
Cc: Arnaldo Carvalho de Melo <a...@redhat.com>
Cc: Jiri Olsa <jo...
, enable_on_exec: 1, task: 1,
sample_id_all: 1, exclude_guest: 1, mmap2: 1, comm_exec: 1, write_backward: 1
# Tip: use 'perf evlist --trace-fields' to show fields for tracepoint events
Signed-off-by: Wang Nan
Signed-off-by: He Kuang
Cc: Arnaldo Carvalho de Melo
Cc: Jiri Olsa
Cc: Masami
Improve test backward-ring-buffer, trace both enter and exit event of
prctl() syscall, utilize auxiliary evlist to mmap enter and exit event
into separated mmaps.
Signed-off-by: Wang Nan
Cc: Arnaldo Carvalho de Melo
Cc: Jiri Olsa
Cc: Masami Hiramatsu
Cc: Namhyung Kim
Cc: Zefan Li
Cc: He
rec->evlist or
rec->overwrite_evlist.
Signed-off-by: Wang Nan <wangn...@huawei.com>
Cc: He Kuang <heku...@huawei.com>
Cc: Arnaldo Carvalho de Melo <a...@redhat.com>
Cc: Jiri Olsa <jo...@kernel.org>
Cc: Masami Hiramatsu <mhira...@kernel.org>
Cc: Namhyung Kim &
is added to 'struct perf_evlist' and points to
the evlist itself for normal evlists.
Signed-off-by: Wang Nan <wangn...@huawei.com>
Cc: He Kuang <heku...@huawei.com>
Cc: Jiri Olsa <jo...@kernel.org>
Cc: Masami Hiramatsu <mhira...@kernel.org>
Cc: Namhyung Kim <nam
rec->evlist or
rec->overwrite_evlist.
Signed-off-by: Wang Nan
Cc: He Kuang
Cc: Arnaldo Carvalho de Melo
Cc: Jiri Olsa
Cc: Masami Hiramatsu
Cc: Namhyung Kim
Cc: Zefan Li
Cc: pi3or...@163.com
---
tools/perf/builtin-record.c | 140
1 file cha
is added to 'struct perf_evlist' and points to
the evlist itself for normal evlists.
Signed-off-by: Wang Nan
Cc: He Kuang
Cc: Jiri Olsa
Cc: Masami Hiramatsu
Cc: Namhyung Kim
Cc: Zefan Li
Cc: pi3or...@163.com
Link:
http://lkml.kernel.org/r/1464056944-166978-2-git-send-email-wangn...@huawei.c
When see POLLERR or POLLHUP, unmap ring buffer from both the main
evlist and overwrite evlist.
Signed-off-by: Wang Nan <wangn...@huawei.com>
Cc: He Kuang <heku...@huawei.com>
Cc: Arnaldo Carvalho de Melo <a...@redhat.com>
Cc: Jiri Olsa <jo...@kernel.org>
Cc: Masami Hirama
When see POLLERR or POLLHUP, unmap ring buffer from both the main
evlist and overwrite evlist.
Signed-off-by: Wang Nan
Cc: He Kuang
Cc: Arnaldo Carvalho de Melo
Cc: Jiri Olsa
Cc: Masami Hiramatsu
Cc: Namhyung Kim
Cc: Zefan Li
Cc: pi3or...@163.com
---
tools/perf/builtin-record.c | 30
-off-by: Wang Nan <wangn...@huawei.com>
Signed-off-by: He Kuang <heku...@huawei.com>
Cc: Arnaldo Carvalho de Melo <a...@redhat.com>
Cc: Jiri Olsa <jo...@kernel.org>
Cc: Masami Hiramatsu <mhira...@kernel.org>
Cc: Namhyung Kim <namhy...@kernel.org>
Cc: Zefan Li &
uffers
(3): Resume ring buffers for recording
We can't avoid this complexity. Because we deliberately drop records from
overwritable ring buffer, we can't detect remaining data by checking head
and old pointers. Therefore, DATA_PENDING state is mandatory.
Signed-off-by: Wang Nan <wangn...@h
e filter pollfd related code.
v6 -> v7: Rebase to newest perf/core.
Wang Nan (8):
perf evlist: Introduce aux evlist
perf tests: Add testcase for auxiliary evlist
perf record: Introduce rec->overwrite_evlist for overwritable events
perf record: Toggle overwrite ring buffer for reading
:
# ~/perf record -m 1 -e raw_syscalls:*/overwrite/ -a
Reading from overwrite event is not supported by this kernel
Error:
The raw_syscalls:sys_enter event is not supported.
Signed-off-by: Wang Nan <wangn...@huawei.com>
Cc: He Kuang <heku...@huawei.com>
Cc: Arnaldo Carv
-off-by: Wang Nan
Signed-off-by: He Kuang
Cc: Arnaldo Carvalho de Melo
Cc: Jiri Olsa
Cc: Masami Hiramatsu
Cc: Namhyung Kim
Cc: Zefan Li
Cc: pi3or...@163.com
---
tools/perf/util/session.c | 22 +++---
1 file changed, 19 insertions(+), 3 deletions(-)
diff --git a/tools/perf
uffers
(3): Resume ring buffers for recording
We can't avoid this complexity. Because we deliberately drop records from
overwritable ring buffer, we can't detect remaining data by checking head
and old pointers. Therefore, DATA_PENDING state is mandatory.
Signed-off-by: Wang Nan
Signed-off-by: He
e filter pollfd related code.
v6 -> v7: Rebase to newest perf/core.
Wang Nan (8):
perf evlist: Introduce aux evlist
perf tests: Add testcase for auxiliary evlist
perf record: Introduce rec->overwrite_evlist for overwritable events
perf record: Toggle overwrite ring buffer for reading
:
# ~/perf record -m 1 -e raw_syscalls:*/overwrite/ -a
Reading from overwrite event is not supported by this kernel
Error:
The raw_syscalls:sys_enter event is not supported.
Signed-off-by: Wang Nan
Cc: He Kuang
Cc: Arnaldo Carvalho de Melo
Cc: Jiri Olsa
Cc: Masami Hiramatsu
Cc: Namhyung Kim
Commit-ID: c58c49ac630979a285d574b3f72a528209515fb3
Gitweb: http://git.kernel.org/tip/c58c49ac630979a285d574b3f72a528209515fb3
Author: Wang Nan <wangn...@huawei.com>
AuthorDate: Tue, 7 Jun 2016 03:54:38 +
Committer: Arnaldo Carvalho de Melo <a...@redhat.com>
CommitDate
Commit-ID: c58c49ac630979a285d574b3f72a528209515fb3
Gitweb: http://git.kernel.org/tip/c58c49ac630979a285d574b3f72a528209515fb3
Author: Wang Nan
AuthorDate: Tue, 7 Jun 2016 03:54:38 +
Committer: Arnaldo Carvalho de Melo
CommitDate: Tue, 7 Jun 2016 10:49:41 -0300
perf tools: Fix
Commit-ID: 946ae1d41d4b0c77b9f63b4a0393d8a1283a7f9d
Gitweb: http://git.kernel.org/tip/946ae1d41d4b0c77b9f63b4a0393d8a1283a7f9d
Author: Wang Nan <wangn...@huawei.com>
AuthorDate: Tue, 31 May 2016 13:06:15 +
Committer: Arnaldo Carvalho de Melo <a...@redhat.com>
CommitDate
Commit-ID: 946ae1d41d4b0c77b9f63b4a0393d8a1283a7f9d
Gitweb: http://git.kernel.org/tip/946ae1d41d4b0c77b9f63b4a0393d8a1283a7f9d
Author: Wang Nan
AuthorDate: Tue, 31 May 2016 13:06:15 +
Committer: Arnaldo Carvalho de Melo
CommitDate: Fri, 3 Jun 2016 14:53:46 -0300
perf evlist: Fix
/w00229757/perf[0x435415]
=== Memory map:
This patch simplify build_id_cache__kallsyms_path(), don't even consider
allocate string buffer, so never free anything. The caller of it should
management memory allocation.
Signed-off-by: Wang Nan <wangn...@huawei.com>
Cc: Masami Hir
/w00229757/perf[0x435415]
=== Memory map:
This patch simplify build_id_cache__kallsyms_path(), don't even consider
allocate string buffer, so never free anything. The caller of it should
management memory allocation.
Signed-off-by: Wang Nan
Cc: Masami Hiramatsu
Cc: Arnaldo Carvalho
Commit-ID: e10e4ef63b54912feffb1dc48ff7d03d931b1647
Gitweb: http://git.kernel.org/tip/e10e4ef63b54912feffb1dc48ff7d03d931b1647
Author: Wang Nan <wangn...@huawei.com>
AuthorDate: Wed, 25 May 2016 13:44:49 +
Committer: Arnaldo Carvalho de Melo <a...@redhat.com>
CommitDate:
Commit-ID: e10e4ef63b54912feffb1dc48ff7d03d931b1647
Gitweb: http://git.kernel.org/tip/e10e4ef63b54912feffb1dc48ff7d03d931b1647
Author: Wang Nan
AuthorDate: Wed, 25 May 2016 13:44:49 +
Committer: Arnaldo Carvalho de Melo
CommitDate: Mon, 30 May 2016 12:41:45 -0300
perf evlist
Commit-ID: 258e4bfcbdaa6d128c391e6e25f03d54dee4f226
Gitweb: http://git.kernel.org/tip/258e4bfcbdaa6d128c391e6e25f03d54dee4f226
Author: Wang Nan <wangn...@huawei.com>
AuthorDate: Wed, 25 May 2016 13:44:57 +
Committer: Arnaldo Carvalho de Melo <a...@redhat.com>
CommitDate:
Commit-ID: c45628b0a3f90c4ffeca5f72f227008ceedc21c5
Gitweb: http://git.kernel.org/tip/c45628b0a3f90c4ffeca5f72f227008ceedc21c5
Author: Wang Nan <wangn...@huawei.com>
AuthorDate: Tue, 24 May 2016 02:28:59 +
Committer: Arnaldo Carvalho de Melo <a...@redhat.com>
CommitDate:
Commit-ID: 258e4bfcbdaa6d128c391e6e25f03d54dee4f226
Gitweb: http://git.kernel.org/tip/258e4bfcbdaa6d128c391e6e25f03d54dee4f226
Author: Wang Nan
AuthorDate: Wed, 25 May 2016 13:44:57 +
Committer: Arnaldo Carvalho de Melo
CommitDate: Mon, 30 May 2016 12:41:46 -0300
tools: Pass arg
Commit-ID: c45628b0a3f90c4ffeca5f72f227008ceedc21c5
Gitweb: http://git.kernel.org/tip/c45628b0a3f90c4ffeca5f72f227008ceedc21c5
Author: Wang Nan
AuthorDate: Tue, 24 May 2016 02:28:59 +
Committer: Arnaldo Carvalho de Melo
CommitDate: Mon, 30 May 2016 12:41:44 -0300
perf record
Commit-ID: f3058a1c1932aa1b027856945163144bda6366df
Gitweb: http://git.kernel.org/tip/f3058a1c1932aa1b027856945163144bda6366df
Author: Wang Nan <wangn...@huawei.com>
AuthorDate: Tue, 24 May 2016 02:28:59 +
Committer: Arnaldo Carvalho de Melo <a...@redhat.com>
CommitDate:
Commit-ID: 5a5ddeb6e3559675070df6b39ba32a4dd1ab4dd5
Gitweb: http://git.kernel.org/tip/5a5ddeb6e3559675070df6b39ba32a4dd1ab4dd5
Author: Wang Nan <wangn...@huawei.com>
AuthorDate: Wed, 25 May 2016 13:44:50 +
Committer: Arnaldo Carvalho de Melo <a...@redhat.com>
CommitDate:
Commit-ID: f3058a1c1932aa1b027856945163144bda6366df
Gitweb: http://git.kernel.org/tip/f3058a1c1932aa1b027856945163144bda6366df
Author: Wang Nan
AuthorDate: Tue, 24 May 2016 02:28:59 +
Committer: Arnaldo Carvalho de Melo
CommitDate: Mon, 30 May 2016 12:41:45 -0300
perf evlist
Commit-ID: 5a5ddeb6e3559675070df6b39ba32a4dd1ab4dd5
Gitweb: http://git.kernel.org/tip/5a5ddeb6e3559675070df6b39ba32a4dd1ab4dd5
Author: Wang Nan
AuthorDate: Wed, 25 May 2016 13:44:50 +
Committer: Arnaldo Carvalho de Melo
CommitDate: Mon, 30 May 2016 12:41:45 -0300
perf evlist
If zalloc fail, setting evlist->mmap[i].fd is unsafe.
perf_evlist__alloc_mmap() should fail right after zalloc() fail.
Signed-off-by: Wang Nan <wangn...@huawei.com>
Cc: Arnaldo Carvalho de Melo <a...@redhat.com>
Cc: He Kuang <heku...@huawei.com>
Cc: Jiri Olsa <jo..
If zalloc fail, setting evlist->mmap[i].fd is unsafe.
perf_evlist__alloc_mmap() should fail right after zalloc() fail.
Signed-off-by: Wang Nan
Cc: Arnaldo Carvalho de Melo
Cc: He Kuang
Cc: Jiri Olsa
Cc: Masami Hiramatsu
Cc: Namhyung Kim
Cc: Zefan Li
Cc: pi3or...@163.com
---
tools/p
Commit-ID: 5ea5888b2fbf5b230da62b2a21c8247bebb6c9cf
Gitweb: http://git.kernel.org/tip/5ea5888b2fbf5b230da62b2a21c8247bebb6c9cf
Author: Wang Nan <wangn...@huawei.com>
AuthorDate: Fri, 27 May 2016 11:35:51 +
Committer: Arnaldo Carvalho de Melo <a...@redhat.com>
CommitDate:
Commit-ID: 5ea5888b2fbf5b230da62b2a21c8247bebb6c9cf
Gitweb: http://git.kernel.org/tip/5ea5888b2fbf5b230da62b2a21c8247bebb6c9cf
Author: Wang Nan
AuthorDate: Fri, 27 May 2016 11:35:51 +
Committer: Arnaldo Carvalho de Melo
CommitDate: Fri, 27 May 2016 12:08:40 -0300
perf ctf: Convert
Commit-ID: 3dc6c1d54ff4cc9ce7e8513c286c970304cde20b
Gitweb: http://git.kernel.org/tip/3dc6c1d54ff4cc9ce7e8513c286c970304cde20b
Author: Wang Nan <wangn...@huawei.com>
AuthorDate: Tue, 24 May 2016 09:21:28 +
Committer: Arnaldo Carvalho de Melo <a...@redhat.com>
CommitDate:
Commit-ID: 3dc6c1d54ff4cc9ce7e8513c286c970304cde20b
Gitweb: http://git.kernel.org/tip/3dc6c1d54ff4cc9ce7e8513c286c970304cde20b
Author: Wang Nan
AuthorDate: Tue, 24 May 2016 09:21:28 +
Committer: Arnaldo Carvalho de Melo
CommitDate: Fri, 27 May 2016 09:41:39 -0300
perf record: Fix
Commit-ID: 38272dc4f1b17437871b786d567e1242d0904f5a
Gitweb: http://git.kernel.org/tip/38272dc4f1b17437871b786d567e1242d0904f5a
Author: Wang Nan <wangn...@huawei.com>
AuthorDate: Tue, 24 May 2016 09:21:27 +
Committer: Arnaldo Carvalho de Melo <a...@redhat.com>
CommitDate:
Commit-ID: 38272dc4f1b17437871b786d567e1242d0904f5a
Gitweb: http://git.kernel.org/tip/38272dc4f1b17437871b786d567e1242d0904f5a
Author: Wang Nan
AuthorDate: Tue, 24 May 2016 09:21:27 +
Committer: Arnaldo Carvalho de Melo
CommitDate: Fri, 27 May 2016 09:41:23 -0300
perf symbols
87\xba\xe7\xba\xbf", pid = 1057,
prio = 120, success = 1, target_cpu = 4 }
..
Signed-off-by: Wang Nan <wangn...@huawei.com>
Cc: Arnaldo Carvalho de Melo <a...@redhat.com>
Cc: Jiri Olsa <jo...@kernel.org>
---
v1 -> v2: Alloc buffer only when a unprintable char is observe
87\xba\xe7\xba\xbf", pid = 1057,
prio = 120, success = 1, target_cpu = 4 }
..
Signed-off-by: Wang Nan
Cc: Arnaldo Carvalho de Melo
Cc: Jiri Olsa
---
v1 -> v2: Alloc buffer only when a unprintable char is observed:
most of the time string is printable.
Jiri, can I
When see POLLERR or POLLHUP, unmap ring buffer from both the main
evlist and overwrite evlist.
Signed-off-by: Wang Nan <wangn...@huawei.com>
Cc: He Kuang <heku...@huawei.com>
Cc: Arnaldo Carvalho de Melo <a...@redhat.com>
Cc: Jiri Olsa <jo...@kernel.org>
Cc: Masami Hir
When see POLLERR or POLLHUP, unmap ring buffer from both the main
evlist and overwrite evlist.
Signed-off-by: Wang Nan
Cc: He Kuang
Cc: Arnaldo Carvalho de Melo
Cc: Jiri Olsa
Cc: Masami Hiramatsu
Cc: Namhyung Kim
Cc: Zefan Li
Cc: pi3or...@163.com
---
tools/perf/builtin-record.c | 30
n base is not NULL.
Signed-off-by: Wang Nan <wangn...@huawei.com>
Cc: He Kuang <heku...@huawei.com>
Cc: Arnaldo Carvalho de Melo <a...@redhat.com>
Cc: Jiri Olsa <jo...@kernel.org>
Cc: Masami Hiramatsu <masami.hiramatsu...@hitachi.com>
Cc: Namhyung Kim <namhy...@kerne
n base is not NULL.
Signed-off-by: Wang Nan
Cc: He Kuang
Cc: Arnaldo Carvalho de Melo
Cc: Jiri Olsa
Cc: Masami Hiramatsu
Cc: Namhyung Kim
Cc: Zefan Li
Cc: pi3or...@163.com
---
tools/perf/util/evlist.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tools/perf/util/evli
rec->evlist or
rec->overwrite_evlist.
Signed-off-by: Wang Nan <wangn...@huawei.com>
Cc: He Kuang <heku...@huawei.com>
Cc: Arnaldo Carvalho de Melo <a...@redhat.com>
Cc: Jiri Olsa <jo...@kernel.org>
Cc: Masami Hiramatsu <masami.hiramatsu...@hitachi.com>
Cc: Namhyung
rec->evlist or
rec->overwrite_evlist.
Signed-off-by: Wang Nan
Cc: He Kuang
Cc: Arnaldo Carvalho de Melo
Cc: Jiri Olsa
Cc: Masami Hiramatsu
Cc: Namhyung Kim
Cc: Zefan Li
Cc: pi3or...@163.com
---
tools/perf/builtin-record.c | 140
1 file cha
'.
Signed-off-by: Wang Nan <wangn...@huawei.com>
Cc: He Kuang <heku...@huawei.com>
Cc: Arnaldo Carvalho de Melo <a...@redhat.com>
Cc: Jiri Olsa <jo...@kernel.org>
Cc: Masami Hiramatsu <masami.hiramatsu...@hitachi.com>
Cc: Namhyung Kim <namhy...@kernel.org>
Cc: Zef
:
# ~/perf record -m 1 -e raw_syscalls:*/overwrite/ -a
Reading from overwrite event is not supported by this kernel
Error:
The raw_syscalls:sys_enter event is not supported.
Signed-off-by: Wang Nan <wangn...@huawei.com>
Cc: He Kuang <heku...@huawei.com>
Cc: Arnaldo Carv
-off-by: Wang Nan <wangn...@huawei.com>
Signed-off-by: He Kuang <heku...@huawei.com>
Cc: Arnaldo Carvalho de Melo <a...@redhat.com>
Cc: Jiri Olsa <jo...@kernel.org>
Cc: Masami Hiramatsu <masami.hiramatsu...@hitachi.com>
Cc: Namhyung Kim <namhy...@kernel.org>
'.
Signed-off-by: Wang Nan
Cc: He Kuang
Cc: Arnaldo Carvalho de Melo
Cc: Jiri Olsa
Cc: Masami Hiramatsu
Cc: Namhyung Kim
Cc: Zefan Li
Cc: pi3or...@163.com
---
tools/lib/api/fd/array.c | 5 +++--
tools/lib/api/fd/array.h | 3 ++-
tools/perf/tests/fdarray.c | 8
tools/perf/util
:
# ~/perf record -m 1 -e raw_syscalls:*/overwrite/ -a
Reading from overwrite event is not supported by this kernel
Error:
The raw_syscalls:sys_enter event is not supported.
Signed-off-by: Wang Nan
Cc: He Kuang
Cc: Arnaldo Carvalho de Melo
Cc: Jiri Olsa
Cc: Masami Hiramatsu
Cc: Namhyung Kim
-off-by: Wang Nan
Signed-off-by: He Kuang
Cc: Arnaldo Carvalho de Melo
Cc: Jiri Olsa
Cc: Masami Hiramatsu
Cc: Namhyung Kim
Cc: Zefan Li
Cc: pi3or...@163.com
---
tools/perf/util/session.c | 22 +++---
1 file changed, 19 insertions(+), 3 deletions(-)
diff --git a/tools/perf
uffers
(3): Resume ring buffers for recording
We can't avoid this complexity. Because we deliberately drop records from
overwritable ring buffer, we can't detect remaining data by checking head
and old pointers. Therefore, DATA_PENDING state is mandatory.
Signed-off-by: Wang Nan <wangn...@h
uffers
(3): Resume ring buffers for recording
We can't avoid this complexity. Because we deliberately drop records from
overwritable ring buffer, we can't detect remaining data by checking head
and old pointers. Therefore, DATA_PENDING state is mandatory.
Signed-off-by: Wang Nan
Signed-off-by: He
, enable_on_exec: 1, task: 1,
sample_id_all: 1, exclude_guest: 1, mmap2: 1, comm_exec: 1, write_backward: 1
# Tip: use 'perf evlist --trace-fields' to show fields for tracepoint events
Signed-off-by: Wang Nan <wangn...@huawei.com>
Signed-off-by: He Kuang <heku...@huawei.com>
Cc: Arnaldo
, enable_on_exec: 1, task: 1,
sample_id_all: 1, exclude_guest: 1, mmap2: 1, comm_exec: 1, write_backward: 1
# Tip: use 'perf evlist --trace-fields' to show fields for tracepoint events
Signed-off-by: Wang Nan
Signed-off-by: He Kuang
Cc: Arnaldo Carvalho de Melo
Cc: Jiri Olsa
Cc: Masami
Improve test backward-ring-buffer, trace both enter and exit event of
prctl() syscall, utilize auxiliary evlist to mmap enter and exit event
into separated mmaps.
Signed-off-by: Wang Nan <wangn...@huawei.com>
Cc: Arnaldo Carvalho de Melo <a...@redhat.com>
Cc: Jiri Olsa <jo...
Improve test backward-ring-buffer, trace both enter and exit event of
prctl() syscall, utilize auxiliary evlist to mmap enter and exit event
into separated mmaps.
Signed-off-by: Wang Nan
Cc: Arnaldo Carvalho de Melo
Cc: Jiri Olsa
Cc: Masami Hiramatsu
Cc: Namhyung Kim
Cc: Zefan Li
Cc: He
e filter pollfd related code.
Wang Nan (10):
perf tools: Check 'base' pointer before checking refcnt when put a
mmap
perf tools: Choose correct reading direction according to
evlist->backward
perf tests: Add testcase for auxiliary evlist
perf record: Introduce rec->overwrite_ev
e filter pollfd related code.
Wang Nan (10):
perf tools: Check 'base' pointer before checking refcnt when put a
mmap
perf tools: Choose correct reading direction according to
evlist->backward
perf tests: Add testcase for auxiliary evlist
perf record: Introduce rec->overwrite_ev
Now we have evlist->backward to indicate the mmap direction. Make
perf_evlist__mmap_read() choose right direction automatically.
Signed-off-by: Wang Nan <wangn...@huawei.com>
Cc: Arnaldo Carvalho de Melo <a...@redhat.com>
Cc: Jiri Olsa <jo...@kernel.org>
Cc: Masami Hiramatsu
Now we have evlist->backward to indicate the mmap direction. Make
perf_evlist__mmap_read() choose right direction automatically.
Signed-off-by: Wang Nan
Cc: Arnaldo Carvalho de Melo
Cc: Jiri Olsa
Cc: Masami Hiramatsu
Cc: Namhyung Kim
Cc: Zefan Li
Cc: He Kuang
---
tools/perf/util/evlis
87\xba\xe7\xba\xbf", pid = 1057,
prio = 120, success = 1, target_cpu = 4 }
..
Signed-off-by: Wang Nan <wangn...@huawei.com>
Cc: Arnaldo Carvalho de Melo <a...@redhat.com>
Cc: Jiri Olsa <jo...@kernel.org>
---
tools/perf/util/data-convert-bt.c | 31 +--
87\xba\xe7\xba\xbf", pid = 1057,
prio = 120, success = 1, target_cpu = 4 }
..
Signed-off-by: Wang Nan
Cc: Arnaldo Carvalho de Melo
Cc: Jiri Olsa
---
tools/perf/util/data-convert-bt.c | 31 +--
1 file changed, 29 insertions(+), 2 deletions(-)
diff --git a/tools/pe
-off-by: Wang Nan <wangn...@huawei.com>
Signed-off-by: He Kuang <heku...@huawei.com>
Cc: Arnaldo Carvalho de Melo <a...@redhat.com>
Cc: Jiri Olsa <jo...@kernel.org>
Cc: Masami Hiramatsu <masami.hiramatsu...@hitachi.com>
Cc: Namhyung Kim <namhy...@kernel.org>
Now we have evlist->backward to indicate the mmap direction. Make
perf_evlist__mmap_read() choose right direction automatically.
Signed-off-by: Wang Nan <wangn...@huawei.com>
Cc: Arnaldo Carvalho de Melo <a...@redhat.com>
Cc: Jiri Olsa <jo...@kernel.org>
Cc: Masami Hiramatsu
-off-by: Wang Nan
Signed-off-by: He Kuang
Cc: Arnaldo Carvalho de Melo
Cc: Jiri Olsa
Cc: Masami Hiramatsu
Cc: Namhyung Kim
Cc: Zefan Li
Cc: pi3or...@163.com
---
tools/perf/util/session.c | 22 +++---
1 file changed, 19 insertions(+), 3 deletions(-)
diff --git a/tools/perf
Now we have evlist->backward to indicate the mmap direction. Make
perf_evlist__mmap_read() choose right direction automatically.
Signed-off-by: Wang Nan
Cc: Arnaldo Carvalho de Melo
Cc: Jiri Olsa
Cc: Masami Hiramatsu
Cc: Namhyung Kim
Cc: Zefan Li
Cc: He Kuang
---
tools/perf/util/evlis
e.
v3 -> v4: Update commit message to describe auxiliary evlist more clearly.
v4 -> v5: Reorder commits, ensure '--overwrite' works right after perf
support the option.
Add test cases for auxiliary evlist.
Avoid bug if main evlist is empty.
Wang Nan (8):
perf
uffers
(3): Resume ring buffers for recording
We can't avoid this complexity. Because we deliberately drop records from
overwritable ring buffer, we can't detect remaining data by checking head
and old pointers. Therefore, DATA_PENDING state is mandatory.
Signed-off-by: Wang Nan <wangn...@h
e.
v3 -> v4: Update commit message to describe auxiliary evlist more clearly.
v4 -> v5: Reorder commits, ensure '--overwrite' works right after perf
support the option.
Add test cases for auxiliary evlist.
Avoid bug if main evlist is empty.
Wang Nan (8):
perf
uffers
(3): Resume ring buffers for recording
We can't avoid this complexity. Because we deliberately drop records from
overwritable ring buffer, we can't detect remaining data by checking head
and old pointers. Therefore, DATA_PENDING state is mandatory.
Signed-off-by: Wang Nan
Signed-off-by: He
n base is not NULL.
Signed-off-by: Wang Nan <wangn...@huawei.com>
Cc: He Kuang <heku...@huawei.com>
Cc: Arnaldo Carvalho de Melo <a...@redhat.com>
Cc: Jiri Olsa <jo...@kernel.org>
Cc: Masami Hiramatsu <masami.hiramatsu...@hitachi.com>
Cc: Namhyung Kim <namhy...@kerne
, enable_on_exec: 1, task: 1,
sample_id_all: 1, exclude_guest: 1, mmap2: 1, comm_exec: 1, write_backward: 1
# Tip: use 'perf evlist --trace-fields' to show fields for tracepoint events
Signed-off-by: Wang Nan <wangn...@huawei.com>
Signed-off-by: He Kuang <heku...@huawei.com>
Cc: Arnaldo
n base is not NULL.
Signed-off-by: Wang Nan
Cc: He Kuang
Cc: Arnaldo Carvalho de Melo
Cc: Jiri Olsa
Cc: Masami Hiramatsu
Cc: Namhyung Kim
Cc: Zefan Li
Cc: pi3or...@163.com
---
tools/perf/util/evlist.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tools/perf/util/evli
, enable_on_exec: 1, task: 1,
sample_id_all: 1, exclude_guest: 1, mmap2: 1, comm_exec: 1, write_backward: 1
# Tip: use 'perf evlist --trace-fields' to show fields for tracepoint events
Signed-off-by: Wang Nan
Signed-off-by: He Kuang
Cc: Arnaldo Carvalho de Melo
Cc: Jiri Olsa
Cc: Masami
rec->evlist or
rec->overwrite_evlist.
Signed-off-by: Wang Nan <wangn...@huawei.com>
Cc: He Kuang <heku...@huawei.com>
Cc: Arnaldo Carvalho de Melo <a...@redhat.com>
Cc: Jiri Olsa <jo...@kernel.org>
Cc: Masami Hiramatsu <masami.hiramatsu...@hitachi.com>
Cc: Namhyung
Improve test backward-ring-buffer, trace both enter and exit event of
prctl() syscall, utilize auxiliary evlist to mmap enter and exit event
into separated mmaps.
Signed-off-by: Wang Nan <wangn...@huawei.com>
Cc: Arnaldo Carvalho de Melo <a...@redhat.com>
Cc: Jiri Olsa <jo...
:
# ~/perf record -m 1 -e raw_syscalls:*/overwrite/ -a
Reading from overwrite event is not supported by this kernel
Error:
The raw_syscalls:sys_enter event is not supported.
Signed-off-by: Wang Nan <wangn...@huawei.com>
Cc: He Kuang <heku...@huawei.com>
Cc: Arnaldo Carv
rec->evlist or
rec->overwrite_evlist.
Signed-off-by: Wang Nan
Cc: He Kuang
Cc: Arnaldo Carvalho de Melo
Cc: Jiri Olsa
Cc: Masami Hiramatsu
Cc: Namhyung Kim
Cc: Zefan Li
Cc: pi3or...@163.com
---
tools/perf/builtin-record.c | 138
1 file cha
Improve test backward-ring-buffer, trace both enter and exit event of
prctl() syscall, utilize auxiliary evlist to mmap enter and exit event
into separated mmaps.
Signed-off-by: Wang Nan
Cc: Arnaldo Carvalho de Melo
Cc: Jiri Olsa
Cc: Masami Hiramatsu
Cc: Namhyung Kim
Cc: Zefan Li
Cc: He
:
# ~/perf record -m 1 -e raw_syscalls:*/overwrite/ -a
Reading from overwrite event is not supported by this kernel
Error:
The raw_syscalls:sys_enter event is not supported.
Signed-off-by: Wang Nan
Cc: He Kuang
Cc: Arnaldo Carvalho de Melo
Cc: Jiri Olsa
Cc: Masami Hiramatsu
Cc: Namhyung Kim
)
This patch skips perf_event__synthesize_kernel_mmap() when kptr is not
available.
Signed-off-by: Wang Nan <wangn...@huawei.com>
Cc: Arnaldo Carvalho de Melo <a...@redhat.com>
Cc: Zefan Li <lize...@huawei.com>
Cc: pi3or...@163.com
---
tools/perf/util/event.c | 2 ++
1 file cha
)
This patch skips perf_event__synthesize_kernel_mmap() when kptr is not
available.
Signed-off-by: Wang Nan
Cc: Arnaldo Carvalho de Melo
Cc: Zefan Li
Cc: pi3or...@163.com
---
tools/perf/util/event.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/perf/util/event.c b/tools/perf/util
If kptr_restrict is set to 2, even root is not allowed to see pointers.
This patch checks kptr_restrict even if euid == 0. For root, report
error if kptr_restrict is 2.
Signed-off-by: Wang Nan <wangn...@huawei.com>
Cc: Arnaldo Carvalho de Melo <a...@redhat.com>
Cc: Zefan Li <liz
If kptr_restrict is set to 2, even root is not allowed to see pointers.
This patch checks kptr_restrict even if euid == 0. For root, report
error if kptr_restrict is 2.
Signed-off-by: Wang Nan
Cc: Arnaldo Carvalho de Melo
Cc: Zefan Li
Cc: pi3or...@163.com
---
tools/perf/util/symbol.c | 16
Commit-ID: 3a62a7b8200a177ad96161e4f2678514e6ee301e
Gitweb: http://git.kernel.org/tip/3a62a7b8200a177ad96161e4f2678514e6ee301e
Author: Wang Nan <wangn...@huawei.com>
AuthorDate: Mon, 23 May 2016 07:13:41 +
Committer: Arnaldo Carvalho de Melo <a...@redhat.com>
CommitDate:
Commit-ID: 3a62a7b8200a177ad96161e4f2678514e6ee301e
Gitweb: http://git.kernel.org/tip/3a62a7b8200a177ad96161e4f2678514e6ee301e
Author: Wang Nan
AuthorDate: Mon, 23 May 2016 07:13:41 +
Committer: Arnaldo Carvalho de Melo
CommitDate: Mon, 23 May 2016 18:22:48 -0300
perf record: Read
Commit-ID: 09fa4f401296f555afb6f2f4282717644d94722e
Gitweb: http://git.kernel.org/tip/09fa4f401296f555afb6f2f4282717644d94722e
Author: Wang Nan <wangn...@huawei.com>
AuthorDate: Mon, 23 May 2016 07:13:40 +
Committer: Arnaldo Carvalho de Melo <a...@redhat.com>
CommitDate:
Commit-ID: 65aea2338765da1a58cc26eeb84d72308492ecb5
Gitweb: http://git.kernel.org/tip/65aea2338765da1a58cc26eeb84d72308492ecb5
Author: Wang Nan <wangn...@huawei.com>
AuthorDate: Mon, 23 May 2016 07:13:38 +
Committer: Arnaldo Carvalho de Melo <a...@redhat.com>
CommitDate:
Commit-ID: 2d11c65071d489e20b3a811167507939dd8c2eac
Gitweb: http://git.kernel.org/tip/2d11c65071d489e20b3a811167507939dd8c2eac
Author: Wang Nan <wangn...@huawei.com>
AuthorDate: Mon, 23 May 2016 07:13:39 +
Committer: Arnaldo Carvalho de Melo <a...@redhat.com>
CommitDate:
Commit-ID: 09fa4f401296f555afb6f2f4282717644d94722e
Gitweb: http://git.kernel.org/tip/09fa4f401296f555afb6f2f4282717644d94722e
Author: Wang Nan
AuthorDate: Mon, 23 May 2016 07:13:40 +
Committer: Arnaldo Carvalho de Melo
CommitDate: Mon, 23 May 2016 18:22:47 -0300
perf record
Commit-ID: 65aea2338765da1a58cc26eeb84d72308492ecb5
Gitweb: http://git.kernel.org/tip/65aea2338765da1a58cc26eeb84d72308492ecb5
Author: Wang Nan
AuthorDate: Mon, 23 May 2016 07:13:38 +
Committer: Arnaldo Carvalho de Melo
CommitDate: Mon, 23 May 2016 18:22:00 -0300
perf evlist: Add
Commit-ID: 2d11c65071d489e20b3a811167507939dd8c2eac
Gitweb: http://git.kernel.org/tip/2d11c65071d489e20b3a811167507939dd8c2eac
Author: Wang Nan
AuthorDate: Mon, 23 May 2016 07:13:39 +
Committer: Arnaldo Carvalho de Melo
CommitDate: Mon, 23 May 2016 18:22:46 -0300
perf record
801 - 900 of 5282 matches
Mail list logo