summary refs log tree commit diff stats
path: root/scripts/tracetool/format/simpletrace_stap.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/tracetool/format/simpletrace_stap.py')
-rw-r--r--scripts/tracetool/format/simpletrace_stap.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/tracetool/format/simpletrace_stap.py b/scripts/tracetool/format/simpletrace_stap.py
index 72971133bf..c7bde97a85 100644
--- a/scripts/tracetool/format/simpletrace_stap.py
+++ b/scripts/tracetool/format/simpletrace_stap.py
@@ -1,4 +1,4 @@
-# -*- coding: utf-8 -*-
+# SPDX-License-Identifier: GPL-2.0-or-later
 
 """
 Generate .stp file that outputs simpletrace binary traces (DTrace with SystemTAP only).
@@ -17,8 +17,6 @@ from tracetool.backend.dtrace import probeprefix
 from tracetool.backend.simple import is_string
 from tracetool.format.stap import stap_escape
 
-def global_var_name(name):
-    return probeprefix().replace(".", "_") + "_" + name
 
 def generate(events, backend, group):
     out('/* This file is autogenerated by tracetool, do not edit. */',