From: Raphael Gault
commit aa1005d15d2aee10e5b93a25db076c47e05c4efa upstream
Add documentation to describe the access to the pmu hardware counters from
userspace.
Signed-off-by: Raphael Gault
Signed-off-by: Rob Herring
Link: https://lore.kernel.org/r/20211208201124.310740-6-r...@kernel.org
Si
From: Rob Herring
commit 83a7a4d643d33a8b74a42229346b7ed7139fcef9 upstream
Arm PMUs can support direct userspace access of counters which allows for
low overhead (i.e. no syscall) self-monitoring of tasks. The same feature
exists on x86 called 'rdpmc'. Unlike x86, userspace access will only be
e
From: Rob Herring
commit e2012600810c9ded81f6f63a8d04781be3c300ad upstream
Like x86, some users may want to disable userspace PMU counter
altogether. Add a sysctl 'perf_user_access' file to control userspace
counter access. The default is '0' which is disabled. Writing '1'
enables access.
Note
From: Rob Herring
commit 82ff0c022d19c2ad69a472692bb7ee01ac07a40b upstream
On arm64, user space counter access will be controlled differently
compared to x86. On x86, access in the strictest mode is enabled for all
tasks in an MM when any event is mmap'ed. For arm64, access is
explicitly request
From: Rob Herring
commit 369461ce8fb6c8156206c7110d7da48e9fbc41bb upstream
In preparation to enable user counter access on arm64 and to move some
of the user access handling to perf core, create a common event flag for
user counter access and convert x86 to use it.
Since the architecture specif
From: Rob Herring
commit 818869489ba3c4a4ed1360e22b2f66be488ea9f5 upstream
xyarray__entry() is missing any bounds checking yet often the x and y
parameters come from external callers. Add bounds checks and an
unchecked __xyarray__entry().
Committer notes:
Make the 'x' and 'y' arguments to the
From: Rob Herring
commit 47d01e7bb9591077a59a1ecec11c6ce570de upstream
x86 and arm64 can both support direct access of event counters in
userspace. The access sequence is less than trivial and currently exists
in perf test code (tools/perf/arch/x86/tests/rdpmc.c) with copies in
projects such
From: Rob Herring
commit 2fc83c2cd77703cfcfc1ffaa092614fb1f837292 upstream
Add an initial math64.h similar to linux/math64.h with functions
mul_u64_u64_div64() and mul_u64_u32_shr(). This isn't a direct copy of
include/linux/math64.h as that doesn't define mul_u64_u64_div64().
Implementation wa
From: Arnaldo Carvalho de Melo
commit 3535a6967c0d590381c16d6676c6fdfa60f4d733 upstream
Before:
# perf record -a cycles,instructions,cache-misses
Workload failed: No such file or directory
#
After:
# perf record -a cycles,instructions,cache-misses
Failed to collect 'cycles' for the
From: Rob Herring
commit d3003d9e686890a1e9f0cc7c08aa02ef2953b1f0 upstream
Add __T_VERBOSE() so tests can add verbose output. The verbose output is
enabled with the '-v' command line option. Running 'make tests V=1' will
enable the '-v' option when running the tests.
It'll be used in the next p
From: Rob Herring
commit 6cd70754f262e593febc06a02d7ea637c927ea42 upstream
In order to support usersapce access, an event must be mmapped. While
there's already mmap support for evlist, the usecase is a bit different
than the self monitoring with userspace access. So let's add new
perf_evsel__mm
From: Yang Jihong
commit 5676dba708bbb1fc94a9d3b2e9c114db9e4c6699 upstream
In hist__find_annotations(), since different 'struct hist_entry' entries
may point to same symbol, we free notes->src to signal already processed
this symbol in stdio mode; when annotate, entry will skipped if
notes->src
From: Arnaldo Carvalho de Melo
commit 9865ea8ab31f2e56be59125099ee251ce573f293 upstream
Add a 'scnprintf' method to obtain the list of evsels in a evlist as a
string, excluding the "dummy" event used for things like receiving
metadata events (PERF_RECORD_FORK, MMAP, etc) when synthesizing
preexi
Hi Bruce,
Please help to merge this patchset into linux-yocto repo.
repo:
linux-yocto
branch:
v5.10/standard/base
Thanks,
Adrian
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#12028):
https://lists.yoctoproject.or
14 matches
Mail list logo