1. 20 10月, 2018 2 次提交
  2. 17 8月, 2018 1 次提交
  3. 11 8月, 2018 1 次提交
  4. 04 7月, 2018 1 次提交
  5. 29 5月, 2018 1 次提交
  6. 27 4月, 2018 3 次提交
    • T
      tracing: Add field modifier parsing hist error for hist triggers · dcf23457
      Tom Zanussi 提交于
      If the user specifies an invalid field modifier for a hist trigger,
      the current code correctly flags that as an error, but doesn't tell
      the user what happened.
      
      Fix this by invoking hist_err() with an appropriate message when
      invalid modifiers are specified.
      
      Before:
      
        # echo 'hist:keys=pid:ts0=common_timestamp.junkusecs' >> /sys/kernel/debug/tracing/events/sched/sched_wakeup/trigger
        -su: echo: write error: Invalid argument
        # cat /sys/kernel/debug/tracing/events/sched/sched_wakeup/hist
      
      After:
      
        # echo 'hist:keys=pid:ts0=common_timestamp.junkusecs' >> /sys/kernel/debug/tracing/events/sched/sched_wakeup/trigger
        -su: echo: write error: Invalid argument
        # cat /sys/kernel/debug/tracing/events/sched/sched_wakeup/hist
        ERROR: Invalid field modifier: junkusecs
          Last command: keys=pid:ts0=common_timestamp.junkusecs
      
      Link: http://lkml.kernel.org/r/b043c59fa79acd06a5f14a1d44dee9e5a3cd1248.1524790601.git.tom.zanussi@linux.intel.comSigned-off-by: NTom Zanussi <tom.zanussi@linux.intel.com>
      Signed-off-by: NSteven Rostedt (VMware) <rostedt@goodmis.org>
      dcf23457
    • T
      tracing: Add field parsing hist error for hist triggers · 5ec432d7
      Tom Zanussi 提交于
      If the user specifies a nonexistent field for a hist trigger, the
      current code correctly flags that as an error, but doesn't tell the
      user what happened.
      
      Fix this by invoking hist_err() with an appropriate message when
      nonexistent fields are specified.
      
      Before:
      
        # echo 'hist:keys=pid:ts0=common_timestamp.usecs' >> /sys/kernel/debug/tracing/events/sched/sched_switch/trigger
        -su: echo: write error: Invalid argument
        # cat /sys/kernel/debug/tracing/events/sched/sched_switch/hist
      
      After:
      
        # echo 'hist:keys=pid:ts0=common_timestamp.usecs' >> /sys/kernel/debug/tracing/events/sched/sched_switch/trigger
        -su: echo: write error: Invalid argument
        # cat /sys/kernel/debug/tracing/events/sched/sched_switch/hist
        ERROR: Couldn't find field: pid
          Last command: keys=pid:ts0=common_timestamp.usecs
      
      Link: http://lkml.kernel.org/r/fdc8746969d16906120f162b99dd71c741e0b62c.1524790601.git.tom.zanussi@linux.intel.comSigned-off-by: NTom Zanussi <tom.zanussi@linux.intel.com>
      Reported-by: NMasami Hiramatsu <mhiramat@kernel.org>
      Signed-off-by: NSteven Rostedt (VMware) <rostedt@goodmis.org>
      5ec432d7
    • T
      tracing: Restore proper field flag printing when displaying triggers · 608940da
      Tom Zanussi 提交于
      The flag-printing code used when displaying hist triggers somehow got
      dropped during refactoring of the inter-event patchset.  This restores
      it.
      
      Below are a couple examples - in the first case, .usecs wasn't being
      displayed properly for common_timestamps and the second illustrates
      the same for other flags such as .execname.
      
      Before:
      
        # echo 'hist:key=common_pid.execname:val=count:sort=count' > /sys/kernel/debug/tracing/events/syscalls/sys_enter_read/trigger
        # cat /sys/kernel/debug/tracing/events/syscalls/sys_enter_read/trigger
        hist:keys=common_pid:vals=hitcount,count:sort=count:size=2048 [active]
      
        # echo 'hist:keys=pid:ts0=common_timestamp.usecs if comm=="cyclictest"' >> /sys/kernel/debug/tracing/events/sched/sched_wakeup/trigger
        # cat /sys/kernel/debug/tracing/events/sched/sched_wakeup/trigger
        hist:keys=pid:vals=hitcount:ts0=common_timestamp:sort=hitcount:size=2048:clock=global if comm=="cyclictest" [active]
      
      After:
      
        # echo 'hist:key=common_pid.execname:val=count:sort=count' > /sys/kernel/debug/tracing/events/syscalls/sys_enter_read/trigger
        # cat /sys/kernel/debug/tracing/events/syscalls/sys_enter_read/trigger
        hist:keys=common_pid.execname:vals=hitcount,count:sort=count:size=2048 [active]
      
        # echo 'hist:keys=pid:ts0=common_timestamp.usecs if comm=="cyclictest"' >> /sys/kernel/debug/tracing/events/sched/sched_wakeup/trigger
        # cat /sys/kernel/debug/tracing/events/sched/sched_wakeup/trigger
        hist:keys=pid:vals=hitcount:ts0=common_timestamp.usecs:sort=hitcount:size=2048:clock=global if comm=="cyclictest" [active]
      
      Link: http://lkml.kernel.org/r/492bab42ff21806600af98a8ea901af10efbee0c.1524790601.git.tom.zanussi@linux.intel.comSigned-off-by: NTom Zanussi <tom.zanussi@linux.intel.com>
      Signed-off-by: NSteven Rostedt (VMware) <rostedt@goodmis.org>
      608940da
  7. 06 4月, 2018 5 次提交
  8. 23 3月, 2018 1 次提交
  9. 11 3月, 2018 25 次提交