Commit 01bd8ef
perf stat: Introduce ':b' modifier
Introduce 'b' modifier to event parser, which means use BPF program to
manage this event. This is the same as --bpf-counters option, but only
applies to this event. For example,
perf stat -e cycles:b,cs # use bpf for cycles, but not cs
perf stat -e cycles,cs --bpf-counters # use bpf for both cycles and cs
Suggested-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Song Liu <song@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/r/20210425214333.1090950-5-song@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>1 parent 112cb56 commit 01bd8ef
File tree
4 files changed
+10
-3
lines changed- tools/perf/util
4 files changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
790 | 790 | | |
791 | 791 | | |
792 | 792 | | |
793 | | - | |
| 793 | + | |
794 | 794 | | |
795 | 795 | | |
796 | 796 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1804 | 1804 | | |
1805 | 1805 | | |
1806 | 1806 | | |
| 1807 | + | |
1807 | 1808 | | |
1808 | 1809 | | |
1809 | 1810 | | |
| |||
1824 | 1825 | | |
1825 | 1826 | | |
1826 | 1827 | | |
| 1828 | + | |
1827 | 1829 | | |
1828 | 1830 | | |
1829 | 1831 | | |
| |||
1867 | 1869 | | |
1868 | 1870 | | |
1869 | 1871 | | |
| 1872 | + | |
| 1873 | + | |
1870 | 1874 | | |
1871 | 1875 | | |
1872 | 1876 | | |
| |||
1898 | 1902 | | |
1899 | 1903 | | |
1900 | 1904 | | |
| 1905 | + | |
1901 | 1906 | | |
1902 | 1907 | | |
1903 | 1908 | | |
| |||
1912 | 1917 | | |
1913 | 1918 | | |
1914 | 1919 | | |
1915 | | - | |
| 1920 | + | |
1916 | 1921 | | |
1917 | 1922 | | |
1918 | 1923 | | |
| |||
1953 | 1958 | | |
1954 | 1959 | | |
1955 | 1960 | | |
| 1961 | + | |
1956 | 1962 | | |
1957 | 1963 | | |
1958 | 1964 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| |||
0 commit comments