1. 05 Mar, 2009 4 commits
    • Steven Rostedt's avatar
      tracing: add latency output format option · c032ef64
      Steven Rostedt authored
      With the removal of the latency_trace file, we lost the ability
      to see some of the finer details in a trace. Like the state of
      interrupts enabled, the preempt count, need resched, and if we
      are in an interrupt handler, softirq handler or not.
      
      This patch simply creates an option to bring back the old format.
      This also removes the warning about an unused variable that held
      the latency_trace file operations.
      Signed-off-by: default avatarSteven Rostedt <srostedt@redhat.com>
      c032ef64
    • Steven Rostedt's avatar
      tracing: fix seq read from trace files · e74da523
      Steven Rostedt authored
      The buffer used by trace_seq was updated incorrectly. Instead
      of consuming what was actually read, it consumed the rest of the
      buffer on reads.
      Signed-off-by: default avatarSteven Rostedt <srostedt@redhat.com>
      e74da523
    • Steven Rostedt's avatar
      tracing: do not return EFAULT if read copied anything · 2dc5d12b
      Steven Rostedt authored
      Impact: fix trace read to conform to standards
      
      Andrew Morton, Theodore Tso and H. Peter Anvin brought to my attention
      that a userspace read should not return -EFAULT if it succeeded in
      copying anything. It should only return -EFAULT if it failed to copy
      at all.
      
      This patch modifies the check of copy_from_user and updates the return
      code appropriately.
      
      I also used H. Peter Anvin's short cut rule to just test ret == count.
      Signed-off-by: default avatarSteven Rostedt <srostedt@redhat.com>
      2dc5d12b
    • Steven Rostedt's avatar
      ring-buffer: fix timestamp in partial ring_buffer_page_read · 4f3640f8
      Steven Rostedt authored
      If a partial ring_buffer_page_read happens, then some of the
      incremental timestamps may be lost. This patch writes the
      recent timestamp into the page that is passed back to the caller.
      
      A partial ring_buffer_page_read is where the full page would not
      be written back to the user, and instead, just part of the page
      is copied to the user. A full page would be a page swap with the
      ring buffer and the timestamps would be correct.
      Signed-off-by: default avatarSteven Rostedt <srostedt@redhat.com>
      4f3640f8
  2. 04 Mar, 2009 16 commits
  3. 03 Mar, 2009 14 commits
  4. 02 Mar, 2009 6 commits