1. 19 Jun, 2014 3 commits
  2. 13 Jun, 2014 1 commit
  3. 12 Jun, 2014 16 commits
  4. 10 Jun, 2014 2 commits
  5. 09 Jun, 2014 15 commits
  6. 07 Jun, 2014 3 commits
    • Steven Rostedt (Red Hat)'s avatar
      tools lib traceevent: Added support for __get_bitmask() macro · 473a778a
      Steven Rostedt (Red Hat) authored
      Coming in v3.16, trace events will be able to save bitmasks in raw
      format in the ring buffer and output it with the __get_bitmask() macro.
      
      In order for userspace tools to parse this, it must be able to handle
      the __get_bitmask() call and be able to convert the data that's in
      the ring buffer into a nice bitmask format. The output is similar to
      what the kernel uses to print bitmasks, with a comma separator every
      4 bytes (8 characters).
      
      This allows for cpumasks to also be saved efficiently.
      
      The first user is the thermal:thermal_power_limit event which has the
      following output:
      
       thermal_power_limit:  cpus=0000000f freq=1900000 cdev_state=0 power=5252
      
      Link: http://lkml.kernel.org/r/20140506132238.22e136d1@gandalf.local.homeSuggested-by: default avatarJavi Merino <javi.merino@arm.com>
      Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
      Acked-by: default avatarNamhyung Kim <namhyung@kernel.org>
      Tested-by: default avatarJavi Merino <javi.merino@arm.com>
      Link: http://lkml.kernel.org/r/20140603032224.229186537@goodmis.orgSigned-off-by: default avatarJiri Olsa <jolsa@kernel.org>
      473a778a
    • Steven Rostedt (Red Hat)'s avatar
      tools lib traceevent: Add options to function plugin · 49440828
      Steven Rostedt (Red Hat) authored
      Add the options "parent" and "indent" to the function plugin.
      
      When parent is set, the output looks like this:
      
      function:             fsnotify_modify <-- vfs_write
      function:             zone_statistics <-- get_page_from_freelist
      function:                __inc_zone_state <-- zone_statistics
      function:                inotify_inode_queue_event <-- fsnotify_modify
      function:                fsnotify_parent <-- fsnotify_modify
      function:                __inc_zone_state <-- zone_statistics
      function:                   __fsnotify_parent <-- fsnotify_parent
      function:                   inotify_dentry_parent_queue_event <-- fsnotify_parent
      function:             add_to_page_cache_lru <-- do_read_cache_page
      
      When it's not set, it looks like:
      
      function:             fsnotify_modify
      function:             zone_statistics
      function:                __inc_zone_state
      function:                inotify_inode_queue_event
      function:                fsnotify_parent
      function:                __inc_zone_state
      function:                   __fsnotify_parent
      function:                   inotify_dentry_parent_queue_event
      function:             add_to_page_cache_lru
      
      When the otpion "indent" is not set, it looks like this:
      
      function:             fsnotify_modify <-- vfs_write
      function:             zone_statistics <-- get_page_from_freelist
      function:             __inc_zone_state <-- zone_statistics
      function:             inotify_inode_queue_event <-- fsnotify_modify
      function:             fsnotify_parent <-- fsnotify_modify
      function:             __inc_zone_state <-- zone_statistics
      function:             __fsnotify_parent <-- fsnotify_parent
      function:             inotify_dentry_parent_queue_event <-- fsnotify_parent
      function:             add_to_page_cache_lru <-- do_read_cache_page
      Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
      Acked-by: default avatarNamhyung Kim <namhyung@kernel.org>
      Link: http://lkml.kernel.org/r/20140603032224.056940410@goodmis.orgSigned-off-by: default avatarJiri Olsa <jolsa@kernel.org>
      49440828
    • Steven Rostedt's avatar
      tools lib traceevent: Add options to plugins · 5827f2fa
      Steven Rostedt authored
      The traceevent plugins allows developers to have their events print out
      information that is more advanced than what can be achieved by the
      trace event format files.
      
      As these plugins are used on the userspace side of the tracing tools, it
      is only logical that the tools should be able to produce different types
      of output for the events. The types of events still need to be defined by
      the plugins thus we need a way to pass information from the tool to the
      plugin to specify what type of information to be shown.
      
      Not only does the information need to be passed by the tool to plugin, but
      the plugin also requires a way to notify the tool of what options it can
      provide.
      
      This builds the plugin option infrastructure that is taken from trace-cmd
      that is used to allow plugins to produce different output based on the
      options specified by the tool.
      Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
      Acked-by: default avatarNamhyung Kim <namhyung@kernel.org>
      Link: http://lkml.kernel.org/r/20140603184154.0a4c031c@gandalf.local.homeSigned-off-by: default avatarJiri Olsa <jolsa@kernel.org>
      5827f2fa