diff options
author | Wang Nan <wangnan0@huawei.com> | 2016-05-20 16:38:23 +0000 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-05-20 14:54:23 -0300 |
commit | b90dc17a5d14a881f9bb3b58edb3d71075d58afb (patch) | |
tree | e621aa3d42c009475f758375b76d4ef755520bd6 /tools/perf/util/evsel.h | |
parent | 408cf677073a5d1a7343bc6430a7297ba7b280d4 (diff) | |
download | linux-stable-b90dc17a5d14a881f9bb3b58edb3d71075d58afb.tar.gz linux-stable-b90dc17a5d14a881f9bb3b58edb3d71075d58afb.tar.bz2 linux-stable-b90dc17a5d14a881f9bb3b58edb3d71075d58afb.zip |
perf evsel: Add overwrite attribute and check write_backward
Add 'overwrite' attribute to evsel to mark whether this event is
overwritable. The following commits will support syntax like:
# perf record -e cycles/overwrite/ ...
An overwritable evsel requires kernel support for the
perf_event_attr.write_backward ring buffer feature.
Add it to perf_missing_feature.
Signed-off-by: Wang Nan <wangnan0@huawei.com>
Cc: He Kuang <hekuang@huawei.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Zefan Li <lizefan@huawei.com>
Cc: pi3orama@163.com
Link: http://lkml.kernel.org/r/1463762315-155689-2-git-send-email-wangnan0@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/evsel.h')
-rw-r--r-- | tools/perf/util/evsel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/evsel.h b/tools/perf/util/evsel.h index 8a644fef452c..c1f10159804c 100644 --- a/tools/perf/util/evsel.h +++ b/tools/perf/util/evsel.h @@ -112,6 +112,7 @@ struct perf_evsel { bool tracking; bool per_pkg; bool precise_max; + bool overwrite; /* parse modifier helper */ int exclude_GH; int nr_members; |