1. 05 Mar, 2009 2 commits
    • 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 8 commits