~ [ source navigation ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/tools/perf/tests/attr/

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Name Size Last modified (GMT) Description
Back Parent directory 2024-11-11 14:31:23
File README 3853 bytes 2024-11-11 14:31:23
File base-record 572 bytes 2024-11-11 14:31:23
File base-record-spe 510 bytes 2024-11-11 14:31:23
File base-stat 559 bytes 2024-11-11 14:31:23
File system-wide-dummy 859 bytes 2024-11-11 14:31:23
File test-record-C0 419 bytes 2024-11-11 14:31:23
File test-record-basic 105 bytes 2024-11-11 14:31:23
File test-record-branch-any 146 bytes 2024-11-11 14:31:23
File test-record-branch-filter-any 150 bytes 2024-11-11 14:31:23
File test-record-branch-filter-any_call 156 bytes 2024-11-11 14:31:23
File test-record-branch-filter-any_ret 155 bytes 2024-11-11 14:31:23
File test-record-branch-filter-hv 149 bytes 2024-11-11 14:31:23
File test-record-branch-filter-ind_call 156 bytes 2024-11-11 14:31:23
File test-record-branch-filter-k 148 bytes 2024-11-11 14:31:23
File test-record-branch-filter-u 148 bytes 2024-11-11 14:31:23
File test-record-count 151 bytes 2024-11-11 14:31:23
File test-record-data 271 bytes 2024-11-11 14:31:23
File test-record-dummy-C0 818 bytes 2024-11-11 14:31:23
File test-record-freq 130 bytes 2024-11-11 14:31:23
File test-record-graph-default 194 bytes 2024-11-11 14:31:23
File test-record-graph-default-aarch64 171 bytes 2024-11-11 14:31:23
File test-record-graph-dwarf 280 bytes 2024-11-11 14:31:23
File test-record-graph-fp 193 bytes 2024-11-11 14:31:23
File test-record-graph-fp-aarch64 184 bytes 2024-11-11 14:31:23
File test-record-group-sampling 566 bytes 2024-11-11 14:31:23
File test-record-group1 321 bytes 2024-11-11 14:31:23
File test-record-group2 439 bytes 2024-11-11 14:31:23
File test-record-no-buffering 164 bytes 2024-11-11 14:31:23
File test-record-no-inherit 134 bytes 2024-11-11 14:31:23
File test-record-no-samples 124 bytes 2024-11-11 14:31:23
File test-record-period 140 bytes 2024-11-11 14:31:23
File test-record-pfm-period 188 bytes 2024-11-11 14:31:23
File test-record-raw 125 bytes 2024-11-11 14:31:23
File test-record-spe-period 217 bytes 2024-11-11 14:31:23
File test-record-spe-period-term 220 bytes 2024-11-11 14:31:23
File test-record-spe-physical-address 291 bytes 2024-11-11 14:31:23
File test-record-user-regs-no-sve-aarch64 311 bytes 2024-11-11 14:31:23
File test-record-user-regs-old-sve-aarch64 307 bytes 2024-11-11 14:31:23
File test-record-user-regs-sve-aarch64 367 bytes 2024-11-11 14:31:23
File test-stat-C0 194 bytes 2024-11-11 14:31:23
File test-stat-basic 107 bytes 2024-11-11 14:31:23
File test-stat-default 2742 bytes 2024-11-11 14:31:23
File test-stat-detailed-1 3666 bytes 2024-11-11 14:31:23
File test-stat-detailed-2 5041 bytes 2024-11-11 14:31:23
File test-stat-detailed-3 5502 bytes 2024-11-11 14:31:23
File test-stat-group1 240 bytes 2024-11-11 14:31:23
File test-stat-no-inherit 120 bytes 2024-11-11 14:31:23

  1 The struct perf_event_attr test (attr tests) support
  2 ====================================================
  3 This testing support is embedded into perf directly and is governed
  4 by the PERF_TEST_ATTR environment variable and hook inside the
  5 sys_perf_event_open function.
  6 
  7 The general idea is to store 'struct perf_event_attr' details for
  8 each event created within single perf command. Each event details
  9 are stored into separate text file. Once perf command is finished
 10 these files are checked for values we expect for command.
 11 
 12 The attr tests consist of following parts:
 13 
 14 tests/attr.c
 15 ------------
 16 This is the sys_perf_event_open hook implementation. The hook
 17 is triggered when the PERF_TEST_ATTR environment variable is
 18 defined. It must contain name of existing directory with access
 19 and write permissions.
 20 
 21 For each sys_perf_event_open call event details are stored in
 22 separate file. Besides 'struct perf_event_attr' values we also
 23 store 'fd' and 'group_fd' values to allow checking for groups.
 24 
 25 tests/attr.py
 26 -------------
 27 This is the python script that does all the hard work. It reads
 28 the test definition, executes it and checks results.
 29 
 30 tests/attr/
 31 -----------
 32 Directory containing all attr test definitions.
 33 Following tests are defined (with perf commands):
 34 
 35   perf record kill                              (test-record-basic)
 36   perf record -b kill                           (test-record-branch-any)
 37   perf record -j any kill                       (test-record-branch-filter-any)
 38   perf record -j any_call kill                  (test-record-branch-filter-any_call)
 39   perf record -j any_ret kill                   (test-record-branch-filter-any_ret)
 40   perf record -j hv kill                        (test-record-branch-filter-hv)
 41   perf record -j ind_call kill                  (test-record-branch-filter-ind_call)
 42   perf record -j k kill                         (test-record-branch-filter-k)
 43   perf record -j u kill                         (test-record-branch-filter-u)
 44   perf record -c 123 kill                       (test-record-count)
 45   perf record -d kill                           (test-record-data)
 46   perf record -F 100 kill                       (test-record-freq)
 47   perf record -g kill                           (test-record-graph-default)
 48   perf record -g kill                           (test-record-graph-default-aarch64)
 49   perf record --call-graph dwarf kill           (test-record-graph-dwarf)
 50   perf record --call-graph fp kill              (test-record-graph-fp)
 51   perf record --call-graph fp kill              (test-record-graph-fp-aarch64)
 52   perf record -e '{cycles,instructions}' kill   (test-record-group1)
 53   perf record -e '{cycles/period=1/,instructions/period=2/}:S' kill (test-record-group2)
 54   perf record -D kill                           (test-record-no-delay)
 55   perf record -i kill                           (test-record-no-inherit)
 56   perf record -n kill                           (test-record-no-samples)
 57   perf record -c 100 -P kill                    (test-record-period)
 58   perf record -c 1 --pfm-events=cycles:period=2 (test-record-pfm-period)
 59   perf record -R kill                           (test-record-raw)
 60   perf record -c 2 -e arm_spe_0// -- kill       (test-record-spe-period)
 61   perf record -e arm_spe_0/period=3/ -- kill    (test-record-spe-period-term)
 62   perf record -e arm_spe_0/pa_enable=1/ -- kill (test-record-spe-physical-address)
 63   perf stat -e cycles kill                      (test-stat-basic)
 64   perf stat kill                                (test-stat-default)
 65   perf stat -d kill                             (test-stat-detailed-1)
 66   perf stat -dd kill                            (test-stat-detailed-2)
 67   perf stat -ddd kill                           (test-stat-detailed-3)
 68   perf stat -e '{cycles,instructions}' kill     (test-stat-group1)
 69   perf stat -i -e cycles kill                   (test-stat-no-inherit)

~ [ source navigation ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php