1. 06 10月, 2015 1 次提交
  2. 29 9月, 2015 1 次提交
    • J
      tools lib api fs: Store tracing mountpoint for better error message · dc240c5d
      Jiri Olsa 提交于
      Storing the actual tracing path mountpoint to display correct
      error message hint ('Hint:' line). The error hint rediscovers
      mountpoints, but it could be different from what we actually
      used in tracing path.
      
      Before we'd display debugfs mount even though tracefs was used:
        $ perf record -e sched:sched_krava ls
        event syntax error: 'sched:sched_krava'
                             \___ can't access trace events
      
        Error:  No permissions to read /sys/kernel/debug/tracing/events/sched/sched_krava
        Hint:   Try 'sudo mount -o remount,mode=755 /sys/kernel/debug'
        ...
      
      After this change, correct mountpoint is displayed:
        $ perf record -e sched:sched_krava ls
        event syntax error: 'sched:sched_krava'
                             \___ can't access trace events
      
        Error:  No permissions to read /sys/kernel/debug/tracing/events/sched/sched_krava
        Hint:   Try 'sudo mount -o remount,mode=755 /sys/kernel/debug/tracing'
        ...
      Signed-off-by: NJiri Olsa <jolsa@kernel.org>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Matt Fleming <matt@codeblueprint.co.uk>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Raphael Beamonte <raphael.beamonte@gmail.com>
      Link: http://lkml.kernel.org/r/1442674027-19427-1-git-send-email-jolsa@kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      dc240c5d
  3. 14 9月, 2015 4 次提交
  4. 04 9月, 2015 8 次提交
  5. 06 7月, 2015 1 次提交
    • A
      tools lib api debugfs: Check for tracefs when reporting errors · ab85785a
      Arnaldo Carvalho de Melo 提交于
      Now that we have two mountpoints, one for debugfs and another, for
      tracefs, we end up needing to check permissions for both, so, on
      a system with default config we were always asking the user to
      check the permission of the debugfs mountpoint, even when it was
      already sufficient. Fix it.
      
      E.g.:
      
        $ trace -e nanosleep usleep 1
        Error: No permissions to read /sys/kernel/debug/tracing/events/raw_syscalls/sys_(enter|exit)
        Hint:  Try 'sudo mount -o remount,mode=755 /sys/kernel/debug'
      
        $ sudo mount -o remount,mode=755 /sys/kernel/debug
        $ trace -e nanosleep usleep 1
        Error: No permissions to read /sys/kernel/debug/tracing/events/raw_syscalls/sys_(enter|exit)
        Hint:  Try 'sudo mount -o remount,mode=755 /sys/kernel/debug/tracing'
      
        $ sudo mount -o remount,mode=755 /sys/kernel/debug/tracing
        $ trace -e nanosleep usleep 1
           0.326 ( 0.061 ms): usleep/11961 nanosleep(rqtp: 0x7ffef1081c50) = 0
        $
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Borislav Petkov <bp@suse.de>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Link: http://lkml.kernel.org/n/tip-0viljeuhc7q84ic8kobsna43@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      ab85785a
  6. 13 2月, 2015 2 次提交
  7. 07 2月, 2015 5 次提交
  8. 23 1月, 2015 2 次提交
  9. 22 1月, 2015 2 次提交
  10. 17 1月, 2015 1 次提交
  11. 12 12月, 2014 2 次提交
  12. 04 6月, 2014 1 次提交
  13. 30 4月, 2014 1 次提交
  14. 18 2月, 2014 1 次提交
    • B
      perf tools: Move fs.* to lib/api/fs/ · cd0cfad7
      Borislav Petkov 提交于
      Move to generic library and kill magic.h as it is needed only in fs.h.
      Signed-off-by: NBorislav Petkov <bp@suse.de>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Andi Kleen <ak@linux.intel.com>
      Cc: Arjan van de Ven <arjan@linux.intel.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mike Galbraith <efault@gmx.de>
      Cc: Namhyung Kim <namhyung@gmail.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Pekka Enberg <penberg@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Robert Richter <rric@kernel.org>
      Cc: Stanislav Fomichev <stfomichev@yandex-team.ru>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Link: http://lkml.kernel.org/r/1386605664-24041-3-git-send-email-bp@alien8.deSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      cd0cfad7
  15. 17 12月, 2013 1 次提交
    • B
      tools/: Convert to new topic libraries · 553873e1
      Borislav Petkov 提交于
      Move debugfs.* to api/fs/. We have a common tools/lib/api/ place where
      the Makefile lives and then we place the headers in subdirs.
      
      For example, all the fs-related stuff goes to tools/lib/api/fs/ from
      which we get libapikfs.a (acme got almost the naming he wanted :-)) and
      we link it into the tools which need it - in this case perf and
      tools/vm/page-types.
      
      acme:
      
      "Looking at the implementation, I think some tools can even link
      directly to the .o files, avoiding the .a file altogether.
      
      But that is just an optimization/finer granularity tools/lib/
      cherrypicking that toolers can make use of."
      
      Fixup documentation cleaning target while at it.
      Signed-off-by: NBorislav Petkov <bp@suse.de>
      Acked-by: NIngo Molnar <mingo@kernel.org>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Andi Kleen <ak@linux.intel.com>
      Cc: Arjan van de Ven <arjan@linux.intel.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mike Galbraith <efault@gmx.de>
      Cc: Namhyung Kim <namhyung@gmail.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Pekka Enberg <penberg@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Robert Richter <rric@kernel.org>
      Cc: Stanislav Fomichev <stfomichev@yandex-team.ru>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Link: http://lkml.kernel.org/r/1386605664-24041-2-git-send-email-bp@alien8.deSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      553873e1