]> sourceware.org Git - systemtap.git/commitdiff
lib/systemtap.exp: rename hw_breakpoint_p to hwbkpt_probes_p
authorJonathan Lebon <jlebon@redhat.com>
Wed, 11 Jun 2014 17:28:51 +0000 (13:28 -0400)
committerJonathan Lebon <jlebon@redhat.com>
Wed, 11 Jun 2014 18:07:13 +0000 (14:07 -0400)
To be more consistent with the other procs in lib/systemtap.exp which
check whether certain types of probes are supported, rename
hw_breakpoint_p to hwbkpt_probes_p.

testsuite/lib/systemtap.exp
testsuite/systemtap.base/listing_mode.exp

index 433cc7fd9052a27c5a51d962ecb04acc11ad5862..286893893a110e93e43cd875c9d2c7aa8275ff21 100644 (file)
@@ -99,6 +99,11 @@ proc perf_probes_p {} {
     return [grep_kallsyms perf_event_create_kernel_counter]
 }
 
+proc hwbkpt_probes_p {} {
+   global have_hw_breakpoint_p
+   return $have_hw_breakpoint_p
+}
+
 proc dyninst_p {} {
     global systemtap_dyninst_p
     return $systemtap_dyninst_p
@@ -114,11 +119,6 @@ proc java_p {} {
     return $systemtap_java_p
 }
 
-proc hw_breakpoint_p {} {
-   global have_hw_breakpoint_p
-   return $have_hw_breakpoint_p
-}
-
 proc get_runtime_list {} {
     # Always return the default runtime.
     set runtime_list [list ""]
index a78c554e093b4c4ba1318a308f60cf319992c48b..9174a57f77b407fd7da8890af22b9c1692b17be1 100644 (file)
@@ -253,7 +253,7 @@ proc report_untested_probes {} {
          kernel.data(string).rw -
          kernel.data(string).write
          {
-            if {![hw_breakpoint_p]} {
+            if {![hwbkpt_probes_p]} {
                setup_kfail HW_BKPT *-*-*
             }
          }
@@ -438,7 +438,7 @@ testing_probe {java(string).class(string).method(string).return}
 
 stap_list {java("JavaProc").class("MyClass").method("MyMethod").return}
 
-if {[hw_breakpoint_p]} {
+if {[hwbkpt_probes_p]} {
 
    testing_probe {kernel.data(number).length(number).rw}
 
This page took 0.034424 seconds and 5 git commands to generate.