1. 28 11月, 2011 15 次提交
  2. 08 11月, 2011 1 次提交
  3. 03 11月, 2011 1 次提交
    • A
      perf top: Fix live annotation in the --stdio interface · f9e3d4b1
      Arnaldo Carvalho de Melo 提交于
      In the old --stdio interface the annotation is done just after one
      selects a symbol, while in --tui, now the default when the required libs
      are installed, we annotate all symbols with samples so that when
      annotation is asked we see what happened recently on that symbol.
      
      To achieve that the --stdio variant checks if the hist_entry being
      processed is the one selected by the user via the 's' hotkey. What
      happens now that we share the hist_entry abstractions with 'perf report'
      is that for minimizing locking contention multiple rb_trees are used,
      one for collecting the samples and other to browse/show them after
      resorting it by number of samples and decay them, which is done
      periodically.
      
      So the simple test in record_precise_ip doesn't work as we move
      hist_entries between those rb_trees. To fix it just check that the
      underlying struct symbol associated with those hist_entries is the same.
      Reported-by: NMike Galbraith <efault@gmx.de>
      Tested-by: NMike Galbraith <efault@gmx.de>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Mike Galbraith <efault@gmx.de>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Link: http://lkml.kernel.org/n/tip-bcfnraqkux88fox9ba9767ds@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      f9e3d4b1
  4. 02 11月, 2011 3 次提交
  5. 28 10月, 2011 2 次提交
  6. 27 10月, 2011 1 次提交
  7. 26 10月, 2011 11 次提交
  8. 22 10月, 2011 2 次提交
  9. 21 10月, 2011 3 次提交
  10. 20 10月, 2011 1 次提交
    • J
      perf tools: Fix tracing info recording · 29208e57
      Jiri Olsa 提交于
      Fixing the way the tracing information is stored within record command.
      The current implementation is causing issues for pipe output.
      
      Following commands fail currently:
      	perf script syscall-counts ls
      	perf record -e syscalls:sys_exit_read ls | ./perf report -i -
      
      The tracing information is part of the perf data file. It contains
      several files from within the tracing debugfs and procs directories.
      
      Beside some static header files, for each tracing event the format
      file is added. The /proc/kallsyms file is also added.
      
      The tracing data are stored with preceeding size. This is causing some
      dificulties for pipe output, since there's no way to tell debugfs/proc
      file size before reading it. So, for pipe output, all the debugfs files
      were read twice. Once to get the overall size and once to store the
      content itself. This can cause problem in case any of these file
      changed, within the storage time.
      
      To fix this behaviour and ensure the integrity of the tracing data, we:
          - read debugfs/proc file into the temp file
          - get temp file size and dump it to the pipe
          - dump the temp file contents to the pipe
      
      Cc: Eric Dumazet <eric.dumazet@gmail.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Neil Horman <nhorman@tuxdriver.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Link: http://lkml.kernel.org/r/20111020135943.GD2092@jolsa.brq.redhat.comSigned-off-by: NJiri Olsa <jolsa@redhat.com>
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      29208e57