[PATCH v14 6/8] perf tools: Enable overwrite settings

2016-07-06 Thread Wang Nan
, 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

[PATCH v14 1/8] perf tools: Drop redundant evsel->overwrite indicator

2016-07-06 Thread Wang Nan
Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Wang Nan Cc: He Kuang Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Zefan Li Cc: Nilay Vaish Cc: pi3or...@163.com --- tools/perf/tests/backward-ring-buffer.c | 1 + tools/perf/util/evlist.c| 4 ++-- tools/perf/

[PATCH v14 5/8] perf record: Read from overwritable ring buffer

2016-07-06 Thread Wang Nan
ould stop. Signed-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>

[PATCH v14 5/8] perf record: Read from overwritable ring buffer

2016-07-06 Thread Wang Nan
ould stop. Signed-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: Nilay Vaish Cc: pi3or...@163.com --- tools/perf/builtin-record.c | 158 +++- 1 file cha

[PATCH v14 8/8] perf tools: Add --tail-synthesize option

2016-07-06 Thread Wang Nan
this problem we need to continously output non-sample events. To satisify the requirement of daemonization, we need to merge them periodically. It is possible but requires much more code and cycles. Automatically select --tail-synthesize when --overwrite is provided. Signed-off-by: Wang Nan <wa

[PATCH v14 3/8] perf tests: Add testcase for auxiliary evlist

2016-07-06 Thread Wang Nan
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...

[PATCH v14 4/8] perf record: Introduce rec->overwrite_evlist for overwritable events

2016-07-06 Thread Wang Nan
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 &

[PATCH v14 8/8] perf tools: Add --tail-synthesize option

2016-07-06 Thread Wang Nan
this problem we need to continously output non-sample events. To satisify the requirement of daemonization, we need to merge them periodically. It is possible but requires much more code and cycles. Automatically select --tail-synthesize when --overwrite is provided. Signed-off-by: Wang Nan Cc: He Kuang

[PATCH v14 3/8] perf tests: Add testcase for auxiliary evlist

2016-07-06 Thread Wang Nan
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: Nilay

[PATCH v14 4/8] perf record: Introduce rec->overwrite_evlist for overwritable events

2016-07-06 Thread Wang Nan
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: Nilay Vaish Cc: pi3or...@163.com --- tools/perf/builtin-record.c | 59 ++--

[PATCH v14 0/8] perf tools: Support overwritable ring buffer

2016-07-06 Thread Wang Nan
commit message, add OVERWRITE_EVT_NOTREADY state, stop the state machine if overwrite_evlist is not generated. Arnaldo Carvalho de Melo (1): perf tools: Drop redundant evsel->overwrite indicator Wang Nan (7): perf evlist: Introduce aux evlist perf tests: Add

[PATCH v14 2/8] perf evlist: Introduce aux evlist

2016-07-06 Thread Wang Nan
, so when recording, if an event is terminated, unmap mmaps, from parent and children. 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 <namhy...@kernel.o

[PATCH v14 7/8] perf tools: Don't warn about out of order event if write_backward is used

2016-07-06 Thread Wang Nan
-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

[PATCH v14 0/8] perf tools: Support overwritable ring buffer

2016-07-06 Thread Wang Nan
commit message, add OVERWRITE_EVT_NOTREADY state, stop the state machine if overwrite_evlist is not generated. Arnaldo Carvalho de Melo (1): perf tools: Drop redundant evsel->overwrite indicator Wang Nan (7): perf evlist: Introduce aux evlist perf tests: Add

[PATCH v14 2/8] perf evlist: Introduce aux evlist

2016-07-06 Thread Wang Nan
, so when recording, if an event is terminated, unmap mmaps, from parent and children. Signed-off-by: Wang Nan Cc: He Kuang Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Zefan Li Cc: Nilay Vaish Cc: pi3or...@163.com --- tools/perf/util/evli

[PATCH v14 7/8] perf tools: Don't warn about out of order event if write_backward is used

2016-07-06 Thread Wang Nan
-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: Nilay Vaish Cc: pi3or...@163.com --- tools/perf/util/session.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff

[tip:perf/core] tools lib bpf: Add license header

2016-07-05 Thread tip-bot for Wang Nan
Commit-ID: 203d1cacaddfc1e320f1e2625502fd1e0de465bd Gitweb: http://git.kernel.org/tip/203d1cacaddfc1e320f1e2625502fd1e0de465bd Author: Wang Nan <wangn...@huawei.com> AuthorDate: Mon, 4 Jul 2016 11:02:42 + Committer: Arnaldo Carvalho de Melo <a...@redhat.com> CommitDate

[tip:perf/core] tools lib bpf: Add license header

2016-07-05 Thread tip-bot for Wang Nan
Commit-ID: 203d1cacaddfc1e320f1e2625502fd1e0de465bd Gitweb: http://git.kernel.org/tip/203d1cacaddfc1e320f1e2625502fd1e0de465bd Author: Wang Nan AuthorDate: Mon, 4 Jul 2016 11:02:42 + Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 4 Jul 2016 20:27:25 -0300 tools lib bpf: Add

[PATCH] tools lib bpf: Add license header

2016-07-04 Thread Wang Nan
Adding a missing license descriptopn header to files in libbpf, make it LGPL-2.1. Signed-off-by: Wang Nan <wangn...@huawei.com> Cc: Arnaldo Carvalho de Melo <a...@redhat.com> Cc: Alexei Starovoitov <a...@kernel.org> --- tools/lib/bpf/bpf.c| 13 + tools/lib

[PATCH] tools lib bpf: Add license header

2016-07-04 Thread Wang Nan
Adding a missing license descriptopn header to files in libbpf, make it LGPL-2.1. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov --- tools/lib/bpf/bpf.c| 13 + tools/lib/bpf/bpf.h| 13 + tools/lib/bpf/libbpf.c | 13

[PATCH v13 2/8] perf evlist: Introduce aux evlist

2016-07-04 Thread Wang Nan
, so when recording, if an event is terminated, unmap mmaps, from parent and children. 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 <namhy...@kernel.o

[PATCH v13 2/8] perf evlist: Introduce aux evlist

2016-07-04 Thread Wang Nan
, so when recording, if an event is terminated, unmap mmaps, from parent and children. Signed-off-by: Wang Nan Cc: He Kuang Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Zefan Li Cc: Nilay Vaish Cc: pi3or...@163.com --- tools/perf/util/evli

[PATCH v13 7/8] perf tools: Don't warn about out of order event if write_backward is used

2016-07-04 Thread Wang Nan
-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

[PATCH v13 7/8] perf tools: Don't warn about out of order event if write_backward is used

2016-07-04 Thread Wang Nan
-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: Nilay Vaish Cc: pi3or...@163.com --- tools/perf/util/session.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff

[PATCH v13 8/8] perf tools: Add --tail-synthesize option

2016-07-04 Thread Wang Nan
this problem we need to continously output non-sample events. To satisify the requirement of daemonization, we need to merge them periodically. It is possible but requires much more code and cycles. Automatically select --tail-synthesize when --overwrite is provided. Signed-off-by: Wang Nan <wa

[PATCH v13 6/8] perf tools: Enable overwrite settings

2016-07-04 Thread Wang Nan
, 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

[PATCH v13 4/8] perf record: Introduce rec->overwrite_evlist for overwritable events

2016-07-04 Thread Wang Nan
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 &

[PATCH v13 0/8] perf tools: Support overwritable ring buffer

2016-07-04 Thread Wang Nan
rf evlist: Rename for_each() macros to for_each_entry()"). v11 -> v12: Improve 'perf test backward': skip this test on old kernel, resolve conflicts. v12 -> v13: Drop evsel->overwrite, use evsel->attr.write_backward instead. Arnaldo Carvalho de Melo (1): perf tools: Drop redund

[PATCH v13 8/8] perf tools: Add --tail-synthesize option

2016-07-04 Thread Wang Nan
this problem we need to continously output non-sample events. To satisify the requirement of daemonization, we need to merge them periodically. It is possible but requires much more code and cycles. Automatically select --tail-synthesize when --overwrite is provided. Signed-off-by: Wang Nan Cc: He Kuang

[PATCH v13 6/8] perf tools: Enable overwrite settings

2016-07-04 Thread Wang Nan
, 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

[PATCH v13 4/8] perf record: Introduce rec->overwrite_evlist for overwritable events

2016-07-04 Thread Wang Nan
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: Nilay Vaish Cc: pi3or...@163.com --- tools/perf/builtin-record.c | 59 ++--

[PATCH v13 0/8] perf tools: Support overwritable ring buffer

2016-07-04 Thread Wang Nan
rf evlist: Rename for_each() macros to for_each_entry()"). v11 -> v12: Improve 'perf test backward': skip this test on old kernel, resolve conflicts. v12 -> v13: Drop evsel->overwrite, use evsel->attr.write_backward instead. Arnaldo Carvalho de Melo (1): perf tools: Drop redund

[PATCH v13 5/8] perf record: Read from overwritable ring buffer

2016-07-04 Thread Wang Nan
r when DATA_PENDING state is observed. Signed-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 Ki

[PATCH v13 5/8] perf record: Read from overwritable ring buffer

2016-07-04 Thread Wang Nan
r when DATA_PENDING state is observed. Signed-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: Nilay Vaish Cc: pi3or...@163.com --- tools/perf/builtin-record.c

[PATCH v13 1/8] perf tools: Drop redundant evsel->overwrite indicator

2016-07-04 Thread Wang Nan
e_backward instead. Signed-off-by: Arnaldo Carvalho de Melo <a...@redhat.com> 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 <namhy...@kernel.org

[PATCH v13 3/8] perf tests: Add testcase for auxiliary evlist

2016-07-04 Thread Wang Nan
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...

[PATCH v13 1/8] perf tools: Drop redundant evsel->overwrite indicator

2016-07-04 Thread Wang Nan
Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Wang Nan Cc: He Kuang Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Zefan Li Cc: Nilay Vaish Cc: pi3or...@163.com --- tools/perf/tests/backward-ring-buffer.c | 1 + tools/perf/util/evlist.c| 4 ++-- tools/perf/

[PATCH v13 3/8] perf tests: Add testcase for auxiliary evlist

2016-07-04 Thread Wang Nan
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: Nilay

[PATCH v12 2/8] perf evlist: Introduce aux evlist

2016-06-30 Thread Wang Nan
, so when recording, if an event is terminated, unmap mmaps, from parent and children. 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 <namhy...@kernel.o

[PATCH v12 7/8] perf tools: Don't warn about out of order event if write_backward is used

2016-06-30 Thread Wang Nan
-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

[PATCH v12 2/8] perf evlist: Introduce aux evlist

2016-06-30 Thread Wang Nan
, so when recording, if an event is terminated, unmap mmaps, from parent and children. Signed-off-by: Wang Nan Cc: He Kuang Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Zefan Li Cc: Nilay Vaish Cc: pi3or...@163.com --- tools/perf/util/evli

[PATCH v12 7/8] perf tools: Don't warn about out of order event if write_backward is used

2016-06-30 Thread Wang Nan
-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: Nilay Vaish Cc: pi3or...@163.com --- tools/perf/util/session.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff

[PATCH v12 3/8] perf tests: Add testcase for auxiliary evlist

2016-06-30 Thread Wang Nan
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...

[PATCH v12 6/8] perf tools: Enable overwrite settings

2016-06-30 Thread Wang Nan
, 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

[PATCH v12 8/8] perf tools: Add --tail-synthesize option

2016-06-30 Thread Wang Nan
this problem we need to continously output non-sample events. To satisify the requirement of daemonization, we need to merge them periodically. It is possible but requires much more code and cycles. Automatically select --tail-synthesize when --overwrite is provided. Signed-off-by: Wang Nan <wa

[PATCH v12 3/8] perf tests: Add testcase for auxiliary evlist

2016-06-30 Thread Wang Nan
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: Nilay

[PATCH v12 6/8] perf tools: Enable overwrite settings

2016-06-30 Thread Wang Nan
, 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

[PATCH v12 8/8] perf tools: Add --tail-synthesize option

2016-06-30 Thread Wang Nan
this problem we need to continously output non-sample events. To satisify the requirement of daemonization, we need to merge them periodically. It is possible but requires much more code and cycles. Automatically select --tail-synthesize when --overwrite is provided. Signed-off-by: Wang Nan Cc: He Kuang

[PATCH v12 1/8] perf tests: Skip backward ring buffer on old kernel

2016-06-30 Thread Wang Nan
-- end Test backward reading from ring buffer: FAILED! [root@jouet ~]# Reason: when kernel doesn't support 'attr.backward', perf_evsel__open() will trim this bit and try again, unless evsel->overwrite is true. Set evsel->overwrite in this test. Signed-off-by: Wang Nan <wangn...@huawei.

[PATCH v12 4/8] perf record: Introduce rec->overwrite_evlist for overwritable events

2016-06-30 Thread Wang Nan
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 &

[PATCH v12 5/8] perf record: Read from overwritable ring buffer

2016-06-30 Thread Wang Nan
r when DATA_PENDING state is observed. Signed-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 Ki

[PATCH v12 1/8] perf tests: Skip backward ring buffer on old kernel

2016-06-30 Thread Wang Nan
reading from ring buffer: FAILED! [root@jouet ~]# Reason: when kernel doesn't support 'attr.backward', perf_evsel__open() will trim this bit and try again, unless evsel->overwrite is true. Set evsel->overwrite in this test. Signed-off-by: Wang Nan Signed-off-by: Arnaldo Carvalho d

[PATCH v12 4/8] perf record: Introduce rec->overwrite_evlist for overwritable events

2016-06-30 Thread Wang Nan
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: Nilay Vaish Cc: pi3or...@163.com --- tools/perf/builtin-record.c | 59 ++--

[PATCH v12 5/8] perf record: Read from overwritable ring buffer

2016-06-30 Thread Wang Nan
r when DATA_PENDING state is observed. Signed-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: Nilay Vaish Cc: pi3or...@163.com --- tools/perf/builtin-record.c

[PATCH v12 0/8] perf tools: Support overwritable ring buffer

2016-06-30 Thread Wang Nan
rf evlist: Rename for_each() macros to for_each_entry()"). v11 -> v12: Improve 'perf test backward': skip this test on old kernel, resolve conflicts. Arnaldo Carvalho de Melo (1): perf tests: Skip backward ring buffer on old kernel Wang Nan (7): perf evlist: Introduce aux evlist pe

[PATCH v12 0/8] perf tools: Support overwritable ring buffer

2016-06-30 Thread Wang Nan
rf evlist: Rename for_each() macros to for_each_entry()"). v11 -> v12: Improve 'perf test backward': skip this test on old kernel, resolve conflicts. Arnaldo Carvalho de Melo (1): perf tests: Skip backward ring buffer on old kernel Wang Nan (7): perf evlist: Introduce aux evlist pe

[tip:perf/core] perf data ctf: Generate fork and exit events to CTF output

2016-06-29 Thread tip-bot for Wang Nan
Commit-ID: ebccba3fe0a02f622f80e6be0e8ecb1a9a3ed983 Gitweb: http://git.kernel.org/tip/ebccba3fe0a02f622f80e6be0e8ecb1a9a3ed983 Author: Wang Nan <wangn...@huawei.com> AuthorDate: Fri, 24 Jun 2016 11:22:12 + Committer: Arnaldo Carvalho de Melo <a...@redhat.com> CommitDate:

[tip:perf/core] perf data ctf: Generate fork and exit events to CTF output

2016-06-29 Thread tip-bot for Wang Nan
Commit-ID: ebccba3fe0a02f622f80e6be0e8ecb1a9a3ed983 Gitweb: http://git.kernel.org/tip/ebccba3fe0a02f622f80e6be0e8ecb1a9a3ed983 Author: Wang Nan AuthorDate: Fri, 24 Jun 2016 11:22:12 + Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 28 Jun 2016 10:54:58 -0300 perf data ctf

[tip:perf/core] perf data ctf: Add '--all' option for 'perf data convert'

2016-06-29 Thread tip-bot for Wang Nan
Commit-ID: 9e1a7ea19f9f8e3e40c5ad1a5cc3615c1746ae7b Gitweb: http://git.kernel.org/tip/9e1a7ea19f9f8e3e40c5ad1a5cc3615c1746ae7b Author: Wang Nan <wangn...@huawei.com> AuthorDate: Fri, 24 Jun 2016 11:22:11 + Committer: Arnaldo Carvalho de Melo <a...@redhat.com> CommitDate:

[tip:perf/core] perf data ctf: Add '--all' option for 'perf data convert'

2016-06-29 Thread tip-bot for Wang Nan
Commit-ID: 9e1a7ea19f9f8e3e40c5ad1a5cc3615c1746ae7b Gitweb: http://git.kernel.org/tip/9e1a7ea19f9f8e3e40c5ad1a5cc3615c1746ae7b Author: Wang Nan AuthorDate: Fri, 24 Jun 2016 11:22:11 + Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 28 Jun 2016 10:54:57 -0300 perf data ctf

[tip:perf/core] perf data ctf: Add 'all' option

2016-06-29 Thread tip-bot for Wang Nan
Commit-ID: f02a6489d1e181c6c2731e80ff37024a130c326a Gitweb: http://git.kernel.org/tip/f02a6489d1e181c6c2731e80ff37024a130c326a Author: Wang Nan <wangn...@huawei.com> AuthorDate: Fri, 24 Jun 2016 11:22:08 + Committer: Arnaldo Carvalho de Melo <a...@redhat.com> CommitDate:

[tip:perf/core] perf data ctf: Add 'all' option

2016-06-29 Thread tip-bot for Wang Nan
Commit-ID: f02a6489d1e181c6c2731e80ff37024a130c326a Gitweb: http://git.kernel.org/tip/f02a6489d1e181c6c2731e80ff37024a130c326a Author: Wang Nan AuthorDate: Fri, 24 Jun 2016 11:22:08 + Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 28 Jun 2016 10:54:56 -0300 perf data ctf

[tip:perf/core] perf data ctf: Prepare collect non-sample events

2016-06-29 Thread tip-bot for Wang Nan
Commit-ID: 8ee4c46c5ec2481dd18098c5604f791ff911d427 Gitweb: http://git.kernel.org/tip/8ee4c46c5ec2481dd18098c5604f791ff911d427 Author: Wang Nan <wangn...@huawei.com> AuthorDate: Fri, 24 Jun 2016 11:22:09 + Committer: Arnaldo Carvalho de Melo <a...@redhat.com> CommitDate:

[tip:perf/core] perf data ctf: Generate comm event to CTF output

2016-06-29 Thread tip-bot for Wang Nan
Commit-ID: f5a08ceda55bee91f879d2ac19edeb4a8916d04f Gitweb: http://git.kernel.org/tip/f5a08ceda55bee91f879d2ac19edeb4a8916d04f Author: Wang Nan <wangn...@huawei.com> AuthorDate: Fri, 24 Jun 2016 11:22:10 + Committer: Arnaldo Carvalho de Melo <a...@redhat.com> CommitDate:

[tip:perf/core] perf data ctf: Prepare collect non-sample events

2016-06-29 Thread tip-bot for Wang Nan
Commit-ID: 8ee4c46c5ec2481dd18098c5604f791ff911d427 Gitweb: http://git.kernel.org/tip/8ee4c46c5ec2481dd18098c5604f791ff911d427 Author: Wang Nan AuthorDate: Fri, 24 Jun 2016 11:22:09 + Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 28 Jun 2016 10:54:56 -0300 perf data ctf

[tip:perf/core] perf data ctf: Generate comm event to CTF output

2016-06-29 Thread tip-bot for Wang Nan
Commit-ID: f5a08ceda55bee91f879d2ac19edeb4a8916d04f Gitweb: http://git.kernel.org/tip/f5a08ceda55bee91f879d2ac19edeb4a8916d04f Author: Wang Nan AuthorDate: Fri, 24 Jun 2016 11:22:10 + Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 28 Jun 2016 10:54:57 -0300 perf data ctf

[tip:perf/core] perf data ctf: Pass convert options through opts structure

2016-06-29 Thread tip-bot for Wang Nan
Commit-ID: 3275f68e50290acd04612c6af41173fe83fdf4b0 Gitweb: http://git.kernel.org/tip/3275f68e50290acd04612c6af41173fe83fdf4b0 Author: Wang Nan <wangn...@huawei.com> AuthorDate: Fri, 24 Jun 2016 11:22:07 + Committer: Arnaldo Carvalho de Melo <a...@redhat.com> CommitDate:

[tip:perf/core] perf data ctf: Pass convert options through opts structure

2016-06-29 Thread tip-bot for Wang Nan
Commit-ID: 3275f68e50290acd04612c6af41173fe83fdf4b0 Gitweb: http://git.kernel.org/tip/3275f68e50290acd04612c6af41173fe83fdf4b0 Author: Wang Nan AuthorDate: Fri, 24 Jun 2016 11:22:07 + Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 28 Jun 2016 10:54:55 -0300 perf data ctf

[tip:perf/core] perf data ctf: Add value_set_string() helper

2016-06-29 Thread tip-bot for Wang Nan
Commit-ID: 069ee5c488d161f539bb897b1bc64b83f9773221 Gitweb: http://git.kernel.org/tip/069ee5c488d161f539bb897b1bc64b83f9773221 Author: Wang Nan <wangn...@huawei.com> AuthorDate: Fri, 24 Jun 2016 11:22:06 + Committer: Arnaldo Carvalho de Melo <a...@redhat.com> CommitDate:

[tip:perf/core] perf data ctf: Add value_set_string() helper

2016-06-29 Thread tip-bot for Wang Nan
Commit-ID: 069ee5c488d161f539bb897b1bc64b83f9773221 Gitweb: http://git.kernel.org/tip/069ee5c488d161f539bb897b1bc64b83f9773221 Author: Wang Nan AuthorDate: Fri, 24 Jun 2016 11:22:06 + Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 28 Jun 2016 10:54:55 -0300 perf data ctf

[tip:perf/core] perf record: Prepare picking perf_event_mmap_page from multiple evlists

2016-06-29 Thread tip-bot for Wang Nan
Commit-ID: ee667f947c926eda1b8d6eccd0894bfbed75b6e3 Gitweb: http://git.kernel.org/tip/ee667f947c926eda1b8d6eccd0894bfbed75b6e3 Author: Wang Nan <wangn...@huawei.com> AuthorDate: Mon, 27 Jun 2016 10:24:05 + Committer: Arnaldo Carvalho de Melo <a...@redhat.com> CommitDate:

[tip:perf/core] perf record: Prepare picking perf_event_mmap_page from multiple evlists

2016-06-29 Thread tip-bot for Wang Nan
Commit-ID: ee667f947c926eda1b8d6eccd0894bfbed75b6e3 Gitweb: http://git.kernel.org/tip/ee667f947c926eda1b8d6eccd0894bfbed75b6e3 Author: Wang Nan AuthorDate: Mon, 27 Jun 2016 10:24:05 + Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 28 Jun 2016 10:54:54 -0300 perf record

[tip:perf/core] perf record: Prepare reading from multiple evlists in record__mmap_read_all()

2016-06-29 Thread tip-bot for Wang Nan
Commit-ID: cb21686b7d37776cfd34793f08d6466ce9091a7d Gitweb: http://git.kernel.org/tip/cb21686b7d37776cfd34793f08d6466ce9091a7d Author: Wang Nan <wangn...@huawei.com> AuthorDate: Mon, 27 Jun 2016 10:24:04 + Committer: Arnaldo Carvalho de Melo <a...@redhat.com> CommitDate:

[tip:perf/core] perf record: Prepare reading from multiple evlists in record__mmap_read_all()

2016-06-29 Thread tip-bot for Wang Nan
Commit-ID: cb21686b7d37776cfd34793f08d6466ce9091a7d Gitweb: http://git.kernel.org/tip/cb21686b7d37776cfd34793f08d6466ce9091a7d Author: Wang Nan AuthorDate: Mon, 27 Jun 2016 10:24:04 + Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 28 Jun 2016 10:54:53 -0300 perf record

[tip:perf/core] perf record: Move mmap setup block to separate function

2016-06-29 Thread tip-bot for Wang Nan
Commit-ID: cda57a8c74aa326cbb1a1e2f7d30f8c76983e70c Gitweb: http://git.kernel.org/tip/cda57a8c74aa326cbb1a1e2f7d30f8c76983e70c Author: Wang Nan <wangn...@huawei.com> AuthorDate: Mon, 27 Jun 2016 10:24:03 + Committer: Arnaldo Carvalho de Melo <a...@redhat.com> CommitDate:

[tip:perf/core] perf record: Move mmap setup block to separate function

2016-06-29 Thread tip-bot for Wang Nan
Commit-ID: cda57a8c74aa326cbb1a1e2f7d30f8c76983e70c Gitweb: http://git.kernel.org/tip/cda57a8c74aa326cbb1a1e2f7d30f8c76983e70c Author: Wang Nan AuthorDate: Mon, 27 Jun 2016 10:24:03 + Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 28 Jun 2016 10:54:53 -0300 perf record: Move

[tip:perf/core] perf build: Add libbabeltrace to build-test

2016-06-29 Thread tip-bot for Wang Nan
Commit-ID: f5ce45736b5036e73e7ffa800a1137ad778d186e Gitweb: http://git.kernel.org/tip/f5ce45736b5036e73e7ffa800a1137ad778d186e Author: Wang Nan <wangn...@huawei.com> AuthorDate: Sat, 25 Jun 2016 01:41:58 + Committer: Arnaldo Carvalho de Melo <a...@redhat.com> CommitDate:

[tip:perf/core] perf build: Add libbabeltrace to build-test

2016-06-29 Thread tip-bot for Wang Nan
Commit-ID: f5ce45736b5036e73e7ffa800a1137ad778d186e Gitweb: http://git.kernel.org/tip/f5ce45736b5036e73e7ffa800a1137ad778d186e Author: Wang Nan AuthorDate: Sat, 25 Jun 2016 01:41:58 + Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 28 Jun 2016 10:54:52 -0300 perf build: Add

[PATCH v11 01/10] perf record: Prepare mmap multiple evlists

2016-06-27 Thread Wang Nan
. 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 <mhira...@kernel.org> Cc: Namhyung Kim <namhy...@kernel.org> Cc: Zefan Li <lize...@huawei.com> Cc: He Kuang <heku.

[PATCH v11 04/10] perf evlist: Introduce aux evlist

2016-06-27 Thread Wang Nan
, so when recording, if an event is terminated, unmap mmaps, from parent and children. 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 <namhy...@kernel.o

[PATCH v11 01/10] perf record: Prepare mmap multiple evlists

2016-06-27 Thread Wang Nan
. 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 Cc: Nilay Vaish --- tools/perf/builtin-record.c | 56 + 1 file changed, 36 insertions(+), 20 deletions(-) diff --git

[PATCH v11 04/10] perf evlist: Introduce aux evlist

2016-06-27 Thread Wang Nan
, so when recording, if an event is terminated, unmap mmaps, from parent and children. Signed-off-by: Wang Nan Cc: He Kuang Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Zefan Li Cc: Nilay Vaish Cc: pi3or...@163.com --- tools/perf/util/evli

[PATCH v11 02/10] perf record: Prepare reading from multiple evlists in record__mmap_read_all()

2016-06-27 Thread Wang Nan
() will be improved to read from multiple evlists. 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 &

[PATCH v11 02/10] perf record: Prepare reading from multiple evlists in record__mmap_read_all()

2016-06-27 Thread Wang Nan
() will be improved to read from multiple evlists. 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: Nilay Vaish Cc: pi3or...@163.com --- tools/perf/builtin-record.c | 34 -- 1

[PATCH v11 05/10] perf tests: Add testcase for auxiliary evlist

2016-06-27 Thread Wang Nan
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...

[PATCH v11 09/10] perf tools: Don't warn about out of order event if write_backward is used

2016-06-27 Thread Wang Nan
-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

[PATCH v11 07/10] perf record: Read from overwritable ring buffer

2016-06-27 Thread Wang Nan
r when DATA_PENDING state is observed. Signed-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 Ki

[PATCH v11 05/10] perf tests: Add testcase for auxiliary evlist

2016-06-27 Thread Wang Nan
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: Nilay

[PATCH v11 09/10] perf tools: Don't warn about out of order event if write_backward is used

2016-06-27 Thread Wang Nan
-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: Nilay Vaish Cc: pi3or...@163.com --- tools/perf/util/session.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff

[PATCH v11 07/10] perf record: Read from overwritable ring buffer

2016-06-27 Thread Wang Nan
r when DATA_PENDING state is observed. Signed-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: Nilay Vaish Cc: pi3or...@163.com --- tools/perf/builtin-record.c

[PATCH v11 10/10] perf tools: Add --tail-synthesize option

2016-06-27 Thread Wang Nan
this problem we need to continously output non-sample events. To satisify the requirement of daemonization, we need to merge them periodically. It is possible but requires much more code and cycles. Automatically select --tail-synthesize when --overwrite is provided. Signed-off-by: Wang Nan <wa

[PATCH v11 08/10] perf tools: Enable overwrite settings

2016-06-27 Thread Wang Nan
, 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

[PATCH v11 10/10] perf tools: Add --tail-synthesize option

2016-06-27 Thread Wang Nan
this problem we need to continously output non-sample events. To satisify the requirement of daemonization, we need to merge them periodically. It is possible but requires much more code and cycles. Automatically select --tail-synthesize when --overwrite is provided. Signed-off-by: Wang Nan Cc: He Kuang

[PATCH v11 08/10] perf tools: Enable overwrite settings

2016-06-27 Thread Wang Nan
, 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

[PATCH v11 00/10] perf tools: Support overwritable ring buffer

2016-06-27 Thread Wang Nan
rf evlist: Rename for_each() macros to for_each_entry()"). Wang Nan (10): perf record: Prepare mmap multiple evlists perf record: Prepare reading from multiple evlists in record__mmap_read_all() perf record: Prepare picking perf_event_mmap_page from multiple evlists perf evlist: Introdu

[PATCH v11 00/10] perf tools: Support overwritable ring buffer

2016-06-27 Thread Wang Nan
rf evlist: Rename for_each() macros to for_each_entry()"). Wang Nan (10): perf record: Prepare mmap multiple evlists perf record: Prepare reading from multiple evlists in record__mmap_read_all() perf record: Prepare picking perf_event_mmap_page from multiple evlists perf evlist: Introdu

[PATCH v11 06/10] perf record: Introduce rec->overwrite_evlist for overwritable events

2016-06-27 Thread Wang Nan
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 &

[PATCH v11 03/10] perf record: Prepare picking perf_event_mmap_page from multiple evlists

2016-06-27 Thread Wang Nan
Following commits introduce new evlists to record. This patch adjusts record__pick_pc() and introduces perf_evlist__pick_pc() to read control page from one specific evlist. record__pick_pc() will be improved to search control page from multiple evlists. Signed-off-by: Wang Nan <wa

[PATCH v11 06/10] perf record: Introduce rec->overwrite_evlist for overwritable events

2016-06-27 Thread Wang Nan
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: Nilay Vaish Cc: pi3or...@163.com --- tools/perf/builtin-record.c | 59 ++--

[PATCH v11 03/10] perf record: Prepare picking perf_event_mmap_page from multiple evlists

2016-06-27 Thread Wang Nan
Following commits introduce new evlists to record. This patch adjusts record__pick_pc() and introduces perf_evlist__pick_pc() to read control page from one specific evlist. record__pick_pc() will be improved to search control page from multiple evlists. Signed-off-by: Wang Nan Cc: He Kuang Cc

<    2   3   4   5   6   7   8   9   10   11   >