1. 28 9月, 2015 1 次提交
  2. 26 9月, 2015 3 次提交
  3. 21 7月, 2015 3 次提交
  4. 14 5月, 2015 3 次提交
  5. 13 5月, 2015 1 次提交
  6. 16 4月, 2015 1 次提交
  7. 08 4月, 2015 3 次提交
  8. 14 2月, 2015 1 次提交
  9. 10 2月, 2015 1 次提交
  10. 04 2月, 2015 5 次提交
    • S
      tracing: Have mkdir and rmdir be part of tracefs · eae47358
      Steven Rostedt (Red Hat) 提交于
      The tracing "instances" directory can create sub tracing buffers
      with mkdir, and remove them with rmdir. As a mkdir will also create
      all the files and directories that control the sub buffer the inode
      mutexes need to be released before this is done, to avoid deadlocks.
      It is better to let the tracing system unlock the inode mutexes before
      calling the functions that create the files within the new directory
      (or deletes the files from the one being destroyed).
      
      Now that tracing has been converted over to tracefs, the tracefs file
      system can be modified to accommodate this feature. It still releases
      the locks, but the filesystem itself can take care of the ugly
      business and let the user just do what it needs.
      
      The tracing system now attaches a descriptor to the directory dentry
      that can have userspace create or remove sub directories. If this
      descriptor does not exist for a dentry, then that dentry can not be
      used to create other directories. This descriptor holds a mkdir and
      rmdir method that only takes a character string as an argument.
      
      The tracefs file system will first make a copy of the dentry name
      before releasing the locks. Then it will pass the copied name to the
      methods. It is up to the tracing system that supplied the methods to
      handle races with duplicate names and such as all the inode mutexes
      would be released when the functions are called.
      
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      eae47358
    • S
      tracing: Automatically mount tracefs on debugfs/tracing · f76180bc
      Steven Rostedt (Red Hat) 提交于
      As tools currently rely on the tracing directory in debugfs, we can not
      just created a tracefs infrastructure and expect sysadmins to mount
      the new tracefs to have their old tools work.
      
      Instead, the debugfs tracing directory is still created and the tracefs
      file system is mounted there when the debugfs filesystem is mounted.
      
      No longer does the tracing infrastructure update the debugfs file system,
      but instead interacts with the tracefs file system. But now, it still
      appears to the user like nothing changed, except you also have the feature
      of mounting just the tracing system without needing all of debugfs!
      
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      f76180bc
    • S
      tracing: Convert the tracing facility over to use tracefs · 8434dc93
      Steven Rostedt (Red Hat) 提交于
      debugfs was fine for the tracing facility as a quick way to get
      an interface. Now that tracing has matured, it should separate itself
      from debugfs such that it can be mounted separately without needing
      to mount all of debugfs with it. That is, users resist using tracing
      because it requires mounting debugfs. Having tracing have its own file
      system lets users get the features of tracing without needing to bring
      in the rest of the kernel's debug infrastructure.
      
      Another reason for tracefs is that debubfs does not support mkdir.
      Currently, to create instances, one does a mkdir in the tracing/instance
      directory. This is implemented via a hack that forces debugfs to do
      something it is not intended on doing. By converting over to tracefs, this
      hack can be removed and mkdir can be properly implemented. This patch does
      not address this yet, but it lays the ground work for that to be done.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      8434dc93
    • S
      tracing: Create cmdline tracer options on tracing fs init · 09d23a1d
      Steven Rostedt (Red Hat) 提交于
      The options for cmdline tracers are not created if the debugfs system
      is not ready yet. If tracing has started before debugfs is up, then the
      option files for the tracer are not created. Create them when creating
      the tracing directory if the current tracer requires option files.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      09d23a1d
    • S
      tracing: Only create tracer options files if directory exists · 0f67f04f
      Steven Rostedt (Red Hat) 提交于
      Do not bother creating tracer options if no tracing directory
      exists. If a tracer is enabled via the command line, and is
      started before the tracing directory is created, then it wont have
      its tracer specific options created.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      0f67f04f
  11. 02 2月, 2015 2 次提交
  12. 28 1月, 2015 1 次提交
  13. 23 1月, 2015 1 次提交
  14. 15 1月, 2015 1 次提交
  15. 23 12月, 2014 2 次提交
    • S
      tracing: Remove taking of trace_types_lock in pipe files · d716ff71
      Steven Rostedt (Red Hat) 提交于
      Taking the global mutex "trace_types_lock" in the trace_pipe files
      causes a bottle neck as most the pipe files can be read per cpu
      and there's no reason to serialize them.
      
      The current_trace variable was given a ref count and it can not
      change when the ref count is not zero. Opening the trace_pipe
      files will up the ref count (and decremented on close), so that
      the lock no longer needs to be taken when accessing the
      current_trace variable.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      d716ff71
    • S
      tracing: Add ref count to tracer for when they are being read by pipe · cf6ab6d9
      Steven Rostedt (Red Hat) 提交于
      When one of the trace pipe files are being read (by either the trace_pipe
      or trace_pipe_raw), do not allow the current_trace to change. By adding
      a ref count that is incremented when the pipe files are opened, will
      prevent the current_trace from being changed.
      
      This will allow for the removal of the global trace_types_lock from
      reading the pipe buffers (which is currently a bottle neck).
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      cf6ab6d9
  16. 15 12月, 2014 2 次提交
  17. 04 12月, 2014 1 次提交
  18. 20 11月, 2014 6 次提交
  19. 14 11月, 2014 2 次提交