1. 24 7月, 2009 3 次提交
    • X
      tracing/ksym_tracer: support quick clear for ksym_trace_filter -- v2 · 75e33751
      Xiao Guangrong 提交于
      It's rather boring to clear symbol one by one in ksym_trace_filter
      file, so, this patch will let ksym_trace_filter file support quickly
      clear all break points. We can write "0" to this file and it will clear
      all symbols
      
      for example:
       # cat ksym_trace_filter
       ksym_filter_head:rw-
       global_trace:rw-
       # echo 0 > ksym_trace_filter
       # cat ksym_trace_filter
       #
      
      Changelog v1->v2:
      Add other ways to clear all breakpoints by writing NULL or "*:---"
      to ksym_trace_filter file base on K.Prasad's suggestion
      Signed-off-by: NXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
      LKML-Reference: <4A67E092.3080202@cn.fujitsu.com>
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      75e33751
    • X
      tracing/ksym_tracer: fix write operation of ksym_trace_filter · 8e068542
      Xiao Guangrong 提交于
      This patch fix 2 bugs:
      - fix the return value of ksym_trace_filter_write() when we want to
        clear symbol in ksym_trace_filter file
        for example:
        # echo global_trace:rw- > /debug/tracing/ksym_trace_filter
        # echo global_trace:--- > /debug/tracing/ksym_trace_filter
        -bash: echo: write error: Invalid argument
        # cat /debug/tracing/ksym_trace_filter
        #
        We want to clear 'global_trace' in ksym_trace_filter, it complain
        with "Invalid argument", but the operation is successful
      
      - the "r--" access types is not allowed, but ksym_trace_filter file think
        it OK
        for example:
        # echo ksym_tracer_mutex:r-- > ksym_trace_filter
        -bash: echo: write error: Resource temporarily unavailable
        # dmesg
        ksym_tracer request failed. Try again later!!
      
        The error occur at register_kernel_hw_breakpoint(), but It's should
        at access types parser
      Signed-off-by: NXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
      LKML-Reference: <4A66863D.5090802@cn.fujitsu.com>
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      8e068542
    • X
      tracing/ksym_tracer: fix the output of ksym tracer · d857ace1
      Xiao Guangrong 提交于
      Fix the output format of ksym tracer, make it properly aligned
      
      Befor patch:
      # tracer: ksym_tracer
      #
      #       TASK-PID      CPU#      Symbol         Type    Function
      #          |           |          |              |         |
      bash            1378  1   ksym_tracer_mutex     W  mutex_lock+0x11/0x27
      bash            1378  1   ksym_filter_head      W  process_new_ksym_entry+0xd2/0x10c
      bash            1378  1   ksym_tracer_mutex     W  mutex_unlock+0x12/0x1b
      cat             1429  0   ksym_tracer_mutex     W  mutex_lock+0x11/0x27
      
      After patch:
      # tracer: ksym_tracer
      #
      #       TASK-PID   CPU#      Symbol                    Type    Function
      #          |        |          |                        |         |
              cat-1423  [000] ksym_tracer_mutex               RW mutex_lock+0x11/0x27
              cat-1423  [000] ksym_filter_head                RW ksym_trace_filter_read+0x6e/0x10d
              cat-1423  [000] ksym_tracer_mutex               RW mutex_unlock+0x12/0x1b
              cat-1423  [000] ksym_tracer_mutex               RW mutex_lock+0x11/0x27
              cat-1423  [000] ksym_filter_head                RW ksym_trace_filter_read+0x6e/0x10d
              cat-1423  [000] ksym_tracer_mutex               RW mutex_unlock+0x12/0x1b
      Signed-off-by: NXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
      LKML-Reference: <4A6685BB.2090809@cn.fujitsu.com>
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      d857ace1
  2. 10 7月, 2009 8 次提交
  3. 01 7月, 2009 1 次提交
  4. 18 6月, 2009 1 次提交
    • J
      x86: hw_breakpoint.c arch_check_va_in_kernelspace and hw_breakpoint_handler should be static · 4555835b
      Jaswinder Singh Rajput 提交于
      arch_check_va_in_kernelspace() and hw_breakpoint_handler() is used only by same file so it should be static.
      
      Also fixed non-ANSI function declaration of function 'arch_uninstall_thread_hw_breakpoint'
      
      Fixed following sparse warnings :
        arch/x86/kernel/hw_breakpoint.c:124:42: warning: non-ANSI function declaration of function 'arch_uninstall_thread_hw_breakpoint'
        arch/x86/kernel/hw_breakpoint.c:169:5: warning: symbol 'arch_check_va_in_kernelspace' was not declared. Should it be static?
        arch/x86/kernel/hw_breakpoint.c:313:15: warning: symbol 'hw_breakpoint_handler' was not declared. Should it be static?
      Signed-off-by: NJaswinder Singh Rajput <jaswinderrajput@gmail.com>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: "K.Prasad" <prasad@linux.vnet.ibm.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      LKML-Reference: <1245230059.2662.4.camel@ht.satnam>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      4555835b
  5. 17 6月, 2009 27 次提交