1. 05 Feb, 2018 1 commit
  2. 13 Mar, 2017 1 commit
  3. 30 May, 2016 1 commit
  4. 17 Aug, 2015 1 commit
  5. 17 Jun, 2015 1 commit
  6. 20 Mar, 2015 1 commit
  7. 02 Mar, 2015 1 commit
  8. 19 Nov, 2014 1 commit
  9. 17 Sep, 2014 1 commit
    • Adrian Hunter's avatar
      perf tools: Add perf-with-kcore script · c501e90b
      Adrian Hunter authored
      Decoding an Intel PT trace of the kernel requires an accurate kernel
      object image.  This is provided by making a copy of kcore.  However the
      copy needs to be made under the same conditions as the original
      recording, and then it needs to be associated with the perf.data file.
      The perf-with-kcore script does that.
      The script also checks the permissions on the buildid cache and can be
      used to fix them.  That is needed for distributions where root does not
      have a home directory and consequently writes to the same buildid cache
      as the user, resulting in cached files that the user does not have
      access to.
      $ ./perf-with-kcore
      Usage: perf-with-kcore <perf sub-command> <perf.data directory> [<sub-command options> [ -- <workload>]]
             <perf sub-command> can be record, script, report or inject
         or: perf-with-kcore fix_buildid_cache_permissions
      $ ./perf-with-kcore record pt_uname -e intel_pt// -- uname
      Using /home/ahunter/bin/perf
      perf version 3.15.rc3.g4549ba
      /home/ahunter/bin/perf record -o pt_uname/perf.data -e intel_pt//  -- uname
      [ perf record: Woken up 3 times to write data ]
      [ perf record: Captured and wrote 0.023 MB pt_uname/perf.data ]
      Copying kcore
      [sudo] password for ahunter:
      $ tools/perf/perf-with-kcore.sh script pt_uname | head
      Using /home/ahunter/bin/perf
      perf version 3.15.rc3.g4549ba
      /home/ahunter/bin/perf script -i pt_uname/perf.data --kallsyms=pt_uname/kcore_dir/kallsyms
               swapper     0 [002] 161533.969666: sched:sched_switch: swapper/2:0 [120] R ==> perf:11316 [120]
                :11315 11315 [003] 161533.969704: sched:sched_switch: perf:11315 [120] S ==> swapper/3:0 [120]
                :11316 11316 [002] 161533.969783: sched:sched_switch: perf:11316 [120] R ==> migration/2:33 [0]
                   :33    33 [002] 161533.969791: sched:sched_switch: migration/2:33 [0] S ==> swapper/2:0 [120]
               swapper     0 [003] 161533.969792: sched:sched_switch: swapper/3:0 [120] R ==> perf:11316 [120]
                :11316 11316 [003] 161533.970062: branches:                 0 [unknown] ([unknown]) => ffffffff810532fa native_write_msr_safe ([kernel.kallsyms])
                :11316 11316 [003] 161533.970062: branches:  ffffffff810532fd native_write_msr_safe ([kernel.kallsyms]) => ffffffff81035b31 pt_config_start ([kernel.kallsyms])
      Signed-off-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Namhyung Kim <namhyung@gmail.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Link: http://lkml.kernel.org/r/1406786474-9306-30-git-send-email-adrian.hunter@intel.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
  10. 11 Oct, 2013 1 commit
  11. 07 Sep, 2012 1 commit
  12. 14 Apr, 2012 1 commit
  13. 11 Apr, 2012 1 commit
  14. 18 Feb, 2011 1 commit
    • Michael Witten's avatar
      perf tools: Makefile: Remove various and sundry cruft · a3d1ee10
      Michael Witten authored
      This commit squashes several commits that remove:
       unnecessary uname calls
       `sh -c'
          They have no effect, and the `fixup-builtins' and `check-builtins.sh'
          scripts don't even exist.
          It's currently never anything but unset, and it's apparently
          only meaningful when Microsoft Windows is the operating system
          (according to the source for git).
       unused SHELL_PATH_SQ portions
       unused test for V=2
       useless exports
          Only when `V' is undefined (that is, only when the value of `V'
          is empty) is `export V' performed, which just has the effect of
          placing the empty-valued variable `V' in the environment.
          The only other script to make use of `V' is `Documentation/Makefile',
          which only checks whether `V' is undefined (that is, whether the value
          of `V' is empty); hence, the `export V' has no effect whatsoever.
          Similarly, `export QUIET_GEN' is useless because it will only have
          a non-empty value when `V' has an empty-value, and when `V' has
          an empty-value, `QUIET_GEN' is always explicitly set in every
          script in which it is used.
          `DESTDIR' is only ever defined by the user via the environment
          or the command line, both of which are automatically exported
          to sub-make processes. Furthermore, no non-make sub-scripts
          make use of `DESTDIR' as an environment variable.
          No other scripts use `perfexec_instdir'.
       unused QUIET_SUBDIR{0,1}
       TAR and RPMBUILD
       Maintainer's dist rules and commands
       distclean target
       Test suite coverage testing
       `configure' target
       @@PERF_VERSION@@ substitution
          Without the sed command, all of the rule's commands can be reduced
          to a single line that copies a file and sets the permissions properly
          in the process.
       `make test' echo line
       double-colon rules
          The use of double-colon rules seems misguided or vestigial git.
       Essentially hard-coded $(SCRIPTS) expansion
      Signed-off-by: default avatarMichael Witten <mfwitten@gmail.com>
      LKML-Reference: <new-submission>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
  15. 17 Jun, 2010 1 commit
  16. 29 Jan, 2010 1 commit
  17. 27 Jan, 2010 1 commit
  18. 24 Nov, 2009 1 commit
  19. 24 Sep, 2009 1 commit
  20. 06 Jun, 2009 1 commit
  21. 02 Jun, 2009 1 commit
  22. 20 Apr, 2009 1 commit