• Home
  • Raw
  • Download

Lines Matching full:perf

3 Perf events and tool security
13 generated by Perf tool user mode utility (Perf) [3]_ , [4]_ . The risk
15 units (PMU) [2]_ and Perf collect and expose for performance analysis.
21 its topology, used kernel and Perf versions, performance monitoring
22 setup including experiment time, events configuration, Perf command
102 Privileged Perf users groups
107 dedicated groups of privileged Perf users who are permitted to execute
109 steps can be taken to create such groups of privileged Perf users.
111 1. Create perf_users group of privileged Perf users, assign perf_users
112 group to Perf tool executable and limit access to the executable for
119 -rwxr-xr-x 2 root root 11M Oct 19 15:12 perf
120 # chgrp perf_users perf
122 -rwxr-xr-x 2 root perf_users 11M Oct 19 15:12 perf
123 # chmod o-rwx perf
125 -rwxr-x--- 2 root perf_users 11M Oct 19 15:12 perf
127 2. Assign the required capabilities to the Perf tool executable file and
133 # setcap "cap_perfmon,cap_sys_ptrace,cap_syslog=ep" perf
134 # setcap -v "cap_perfmon,cap_sys_ptrace,cap_syslog=ep" perf
135 perf: OK
136 # getcap perf
137 perf = cap_sys_ptrace,cap_syslog,cap_perfmon+ep
144 # setcap "38,cap_ipc_lock,cap_sys_ptrace,cap_syslog=ep" perf
147 'perf top', alternatively use 'perf top -m N', to reduce the memory that
148 it uses for the perf ring buffer, see the memory allocation section below.
156 # perf top -e cycles
158 To get kernel and user samples with a perf binary with just CAP_PERFMON.
162 configured Perf tool executable that, when executes, passes perf_events
165 In case Perf tool executable can't be assigned required capabilities (e.g.
184 # ls -alh /usr/local/bin/perf.shell
185 -rwxr-xr-x. 1 root root 83 Oct 13 23:57 /usr/local/bin/perf.shell
186 # cat /usr/local/bin/perf.shell
194 %perf_users ALL=/usr/local/bin/perf.shell
204 $ sudo perf.shell
271 configuring Perf collection for a long list of events on a large server
274 modifying content of the limits.conf file [12]_ . Ordinarily, a Perf
275 sampling session (perf record) requires an amount of open perf_event
296 monitoring processes, for example, using the --mmap-pages Perf record
302 for processes with the CAP_IPC_LOCK capability. Thus, perf_events/Perf
304 perf_events/Perf performance monitoring purpose by providing the Perf
313 .. [4] `<https://perf.wiki.kernel.org/index.php/Main_Page>`_