1. 10 Aug, 2021 5 commits
    • John Garry's avatar
      perf jevents: Relocate test events to cpu folder · 35267cea
      John Garry authored
      In future to add support for sys events, relocate the core and uncore
      events to a cpu folder.
      Signed-off-by: default avatarJohn Garry <john.garry@huawei.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jin Yao <yao.jin@linux.intel.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: linuxarm@huawei.com
      Link: https //lore.kernel.org/r/1627566986-30605-3-git-send-email-john.garry@huawei.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      35267cea
    • John Garry's avatar
      perf test: Factor out pmu-events event comparison · 19ac3df3
      John Garry authored
      Factor out event comparison which will be used in multiple places.
      
      Also test "pmu" and "compat" fields.
      Signed-off-by: default avatarJohn Garry <john.garry@huawei.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jin Yao <yao.jin@linux.intel.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: linuxarm@huawei.com
      Link: https //lore.kernel.org/r/1627566986-30605-2-git-send-email-john.garry@huawei.com
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      19ac3df3
    • John Garry's avatar
      perf jevents: Make build dependency on test JSONs · 517db3b5
      John Garry authored
      Currently all JSONs and the mapfile for an arch are dependencies for
      building pmu-events.c
      
      The test JSONs are missing as a dependency, so add them.
      Signed-off-by: default avatarJohn Garry <john.garry@huawei.com>
      Reported-by: default avatarArnaldo Carvalho de Melo <acme@kernel.org>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jin Yao <yao.jin@linux.intel.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: linuxarm@huawei.com
      Link: http://lore.kernel.org/lkml/90094733-741c-50e5-ac7d-f5640b5f0bdd@huawei.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      517db3b5
    • Riccardo Mancini's avatar
      perf bench: Add benchmark for evlist open/close operations · 4241eabf
      Riccardo Mancini authored
      This new benchmark finds the total time that is taken to open, mmap,
      enable, disable, munmap, close an evlist (time taken for new,
      create_maps, config, delete is not counted in).
      
      The evlist can be configured as in perf-record using the
      -a,-C,-e,-u,--per-thread,-t,-p options.
      
      The events can be duplicated in the evlist to quickly test performance
      with many events using the -n options.
      
      Furthermore, also the number of iterations used to calculate the
      statistics is customizable.
      
      Examples:
      - Open one dummy event system-wide:
      
        $ sudo ./perf bench internals evlist-open-close
          Number of cpus:       4
          Number of threads:    1
          Number of events:     1 (4 fds)
          Number of iterations: 100
          Average open-close took: 613.870 usec (+- 32.852 usec)
      
      - Open the group '{cs,cycles}' on CPU 0
      
        $ sudo ./perf bench internals evlist-open-close -e '{cs,cycles}' -C 0
          Number of cpus:       1
          Number of threads:    1
          Number of events:     2 (2 fds)
          Number of iterations: 100
          Average open-close took: 8503.220 usec (+- 252.652 usec)
      
      - Open 10 'cycles' events for user 0, calculate average over 100 runs
      
        $ sudo ./perf bench internals evlist-open-close -e cycles -n 10 -u 0 -i 100
          Number of cpus:       4
          Number of threads:    328
          Number of events:     10 (13120 fds)
          Number of iterations: 100
          Average open-close took: 180043.140 usec (+- 2295.889 usec)
      
      Committer notes:
      
      Replaced a deprecated bzero() call with designated initialized zeroing.
      
      Added some missing evlist allocation checks, one noted by Riccardo on
      the mailing list.
      
      Minor cosmetic changes (sent in private).
      Signed-off-by: default avatarRiccardo Mancini <rickyman7@gmail.com>
      Tested-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: http://lore.kernel.org/lkml/20210809201101.277594-1-rickyman7@gmail.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      4241eabf
    • Alyssa Ross's avatar
      perf docs: Fix accidental em-dashes · f2c24eba
      Alyssa Ross authored
      " -- " is an em dash (—) in asciidoc, so all these examples that were
      supposed to be producing a literal two dashes were being misrendered.
      Signed-off-by: default avatarAlyssa Ross <hi@alyssa.is>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: http://lore.kernel.org/lkml/20210809153226.332545-1-hi@alyssa.isSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      f2c24eba
  2. 09 Aug, 2021 15 commits
  3. 03 Aug, 2021 5 commits
  4. 02 Aug, 2021 15 commits