File bcc-python3.patch of Package bcc

diff -rup bcc-0.4.0.orig/docs/reference_guide.md bcc-0.4.0/docs/reference_guide.md
--- bcc-0.4.0.orig/docs/reference_guide.md	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/docs/reference_guide.md	2017-11-24 11:23:07.878238251 +0100
@@ -802,7 +802,7 @@ Other examples:
 
 ```Python
 b.attach_uprobe(name="c", sym="getaddrinfo", fn_name="do_entry")
-b.attach_uprobe(name="/usr/bin/python", sym="main", fn_name="do_main")
+b.attach_uprobe(name="/usr/bin/python3", sym="main", fn_name="do_main")
 ```
 
 You can call attach_uprobe() more than once, and attach your BPF function to multiple user-level functions.
@@ -831,7 +831,7 @@ Other examples:
 
 ```Python
 b.attach_uprobe(name="c", sym="getaddrinfo", fn_name="do_entry")
-b.attach_uprobe(name="/usr/bin/python", sym="main", fn_name="do_main")
+b.attach_uprobe(name="/usr/bin/python3", sym="main", fn_name="do_main")
 ```
 
 You can call attach_uretprobe() more than once, and attach your BPF function to multiple user-level functions.
diff -rup bcc-0.4.0.orig/examples/networking/dns_matching/dns_matching.py bcc-0.4.0/examples/networking/dns_matching/dns_matching.py
--- bcc-0.4.0.orig/examples/networking/dns_matching/dns_matching.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/examples/networking/dns_matching/dns_matching.py	2017-11-24 11:23:07.878238251 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 
 from __future__ import print_function
 from bcc import BPF
diff -rup bcc-0.4.0.orig/examples/networking/http_filter/http-parse-complete.py bcc-0.4.0/examples/networking/http_filter/http-parse-complete.py
--- bcc-0.4.0.orig/examples/networking/http_filter/http-parse-complete.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/examples/networking/http_filter/http-parse-complete.py	2017-11-24 11:23:07.878238251 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 #Bertrone Matteo - Polytechnic of Turin
 #November 2015
diff -rup bcc-0.4.0.orig/examples/networking/http_filter/http-parse-simple.py bcc-0.4.0/examples/networking/http_filter/http-parse-simple.py
--- bcc-0.4.0.orig/examples/networking/http_filter/http-parse-simple.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/examples/networking/http_filter/http-parse-simple.py	2017-11-24 11:23:07.882238260 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 #Bertrone Matteo - Polytechnic of Turin
 #November 2015
diff -rup bcc-0.4.0.orig/examples/networking/simple_tc.py bcc-0.4.0/examples/networking/simple_tc.py
--- bcc-0.4.0.orig/examples/networking/simple_tc.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/examples/networking/simple_tc.py	2017-11-24 11:23:07.882238260 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # Copyright (c) PLUMgrid, Inc.
 # Licensed under the Apache License, Version 2.0 (the "License")
 
diff -rup bcc-0.4.0.orig/examples/tracing/bitehist.py bcc-0.4.0/examples/tracing/bitehist.py
--- bcc-0.4.0.orig/examples/tracing/bitehist.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/examples/tracing/bitehist.py	2017-11-24 11:23:07.882238260 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # bitehist.py	Block I/O size histogram.
 #		For Linux, uses BCC, eBPF. Embedded C.
diff -rup bcc-0.4.0.orig/examples/tracing/disksnoop.py bcc-0.4.0/examples/tracing/disksnoop.py
--- bcc-0.4.0.orig/examples/tracing/disksnoop.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/examples/tracing/disksnoop.py	2017-11-24 11:23:07.886238268 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # disksnoop.py	Trace block device I/O: basic version of iosnoop.
 #		For Linux, uses BCC, eBPF. Embedded C.
diff -rup bcc-0.4.0.orig/examples/tracing/mallocstacks.py bcc-0.4.0/examples/tracing/mallocstacks.py
--- bcc-0.4.0.orig/examples/tracing/mallocstacks.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/examples/tracing/mallocstacks.py	2017-11-24 11:23:07.886238268 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # mallocstacks  Trace malloc() calls in a process and print the full
 #               stack trace for all callsites.
diff -rup bcc-0.4.0.orig/examples/tracing/mysqld_query.py bcc-0.4.0/examples/tracing/mysqld_query.py
--- bcc-0.4.0.orig/examples/tracing/mysqld_query.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/examples/tracing/mysqld_query.py	2017-11-24 11:23:07.886238268 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # mysqld_query    Trace MySQL server queries. Example of USDT tracing.
 #                 For Linux, uses BCC, BPF. Embedded C.
diff -rup bcc-0.4.0.orig/examples/tracing/nodejs_http_server.py bcc-0.4.0/examples/tracing/nodejs_http_server.py
--- bcc-0.4.0.orig/examples/tracing/nodejs_http_server.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/examples/tracing/nodejs_http_server.py	2017-11-24 11:23:07.890238277 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # nodejs_http_server    Basic example of node.js USDT tracing.
 #                       For Linux, uses BCC, BPF. Embedded C.
diff -rup bcc-0.4.0.orig/examples/tracing/stacksnoop.py bcc-0.4.0/examples/tracing/stacksnoop.py
--- bcc-0.4.0.orig/examples/tracing/stacksnoop.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/examples/tracing/stacksnoop.py	2017-11-24 11:23:07.890238277 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # stacksnoop    Trace a kernel function and print all kernel stack traces.
 #               For Linux, uses BCC, eBPF, and currently x86_64 only. Inline C.
diff -rup bcc-0.4.0.orig/examples/tracing/strlen_count.py bcc-0.4.0/examples/tracing/strlen_count.py
--- bcc-0.4.0.orig/examples/tracing/strlen_count.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/examples/tracing/strlen_count.py	2017-11-24 11:23:07.894238285 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # strlen_count  Trace strlen() and print a frequency count of strings.
 #               For Linux, uses BCC, eBPF. Embedded C.
diff -rup bcc-0.4.0.orig/examples/tracing/strlen_hist.py bcc-0.4.0/examples/tracing/strlen_hist.py
--- bcc-0.4.0.orig/examples/tracing/strlen_hist.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/examples/tracing/strlen_hist.py	2017-11-24 11:23:07.894238285 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 
 #
 # strlen_hist.py   Histogram of system-wide strlen return values
diff -rup bcc-0.4.0.orig/examples/tracing/strlen_snoop.py bcc-0.4.0/examples/tracing/strlen_snoop.py
--- bcc-0.4.0.orig/examples/tracing/strlen_snoop.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/examples/tracing/strlen_snoop.py	2017-11-24 11:23:07.894238285 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # strlen_snoop  Trace strlen() library function for a given PID.
 #               For Linux, uses BCC, eBPF. Embedded C.
diff -rup bcc-0.4.0.orig/examples/tracing/sync_timing.py bcc-0.4.0/examples/tracing/sync_timing.py
--- bcc-0.4.0.orig/examples/tracing/sync_timing.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/examples/tracing/sync_timing.py	2017-11-24 11:23:07.898238294 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # sync_timing.py    Trace time between syncs.
 #                   For Linux, uses BCC, eBPF. Embedded C.
diff -rup bcc-0.4.0.orig/examples/tracing/task_switch.py bcc-0.4.0/examples/tracing/task_switch.py
--- bcc-0.4.0.orig/examples/tracing/task_switch.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/examples/tracing/task_switch.py	2017-11-24 11:23:07.898238294 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # Copyright (c) PLUMgrid, Inc.
 # Licensed under the Apache License, Version 2.0 (the "License")
 
diff -rup bcc-0.4.0.orig/examples/tracing/tcpv4connect.py bcc-0.4.0/examples/tracing/tcpv4connect.py
--- bcc-0.4.0.orig/examples/tracing/tcpv4connect.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/examples/tracing/tcpv4connect.py	2017-11-24 11:23:07.898238294 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # tcpv4connect	Trace TCP IPv4 connect()s.
 #		For Linux, uses BCC, eBPF. Embedded C.
diff -rup bcc-0.4.0.orig/examples/tracing/urandomread-explicit.py bcc-0.4.0/examples/tracing/urandomread-explicit.py
--- bcc-0.4.0.orig/examples/tracing/urandomread-explicit.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/examples/tracing/urandomread-explicit.py	2017-11-24 11:23:07.902238303 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # urandomread-explicit  Example of instrumenting a kernel tracepoint.
 #                       For Linux, uses BCC, BPF. Embedded C.
diff -rup bcc-0.4.0.orig/examples/tracing/urandomread.py bcc-0.4.0/examples/tracing/urandomread.py
--- bcc-0.4.0.orig/examples/tracing/urandomread.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/examples/tracing/urandomread.py	2017-11-24 11:23:07.902238303 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # urandomread  Example of instrumenting a kernel tracepoint.
 #              For Linux, uses BCC, BPF. Embedded C.
diff -rup bcc-0.4.0.orig/examples/tracing/vfsreadlat.py bcc-0.4.0/examples/tracing/vfsreadlat.py
--- bcc-0.4.0.orig/examples/tracing/vfsreadlat.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/examples/tracing/vfsreadlat.py	2017-11-24 11:23:07.906238311 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # vfsreadlat.py		VFS read latency distribution.
 #			For Linux, uses BCC, eBPF. See .c file.
diff -rup bcc-0.4.0.orig/snapcraft/wrapper bcc-0.4.0/snapcraft/wrapper
--- bcc-0.4.0.orig/snapcraft/wrapper	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/snapcraft/wrapper	2017-11-24 11:23:07.906238311 +0100
@@ -7,7 +7,7 @@
 cmd="$1"
 if [ `id -u` = 0 ] ; then
 	shift
-	stdbuf -oL $SNAP/usr/bin/python "$SNAP/usr/share/bcc/tools/$cmd" $@
+	stdbuf -oL $SNAP/usr/bin/python3 "$SNAP/usr/share/bcc/tools/$cmd" $@
 else
 	echo "Need to run $cmd as root (use sudo $@)"
 	exit 1
diff -rup bcc-0.4.0.orig/src/python/bcc/__init__.py bcc-0.4.0/src/python/bcc/__init__.py
--- bcc-0.4.0.orig/src/python/bcc/__init__.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/src/python/bcc/__init__.py	2017-11-24 11:23:07.910238321 +0100
@@ -811,7 +811,7 @@ class BPF(object):
         version of the library used by the process.
 
         Example: BPF(text).attach_uprobe("c", "malloc")
-                 BPF(text).attach_uprobe("/usr/bin/python", "main")
+                 BPF(text).attach_uprobe("/usr/bin/python3", "main")
         """
 
         name = str(name)
diff -rup bcc-0.4.0.orig/tests/lua/test_uprobes.lua bcc-0.4.0/tests/lua/test_uprobes.lua
--- bcc-0.4.0.orig/tests/lua/test_uprobes.lua	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tests/lua/test_uprobes.lua	2017-11-24 11:23:07.910238321 +0100
@@ -54,10 +54,10 @@ int count(struct pt_regs *ctx) {
 }]]
 
   local b = BPF:new{text=text}
-  b:attach_uprobe{name="/usr/bin/python", sym="main", fn_name="count"}
-  b:attach_uprobe{name="/usr/bin/python", sym="main", fn_name="count", retprobe=true}
+  b:attach_uprobe{name="/usr/bin/python3", sym="main", fn_name="count"}
+  b:attach_uprobe{name="/usr/bin/python3", sym="main", fn_name="count", retprobe=true}
 
-  os.spawn("/usr/bin/python -V")
+  os.spawn("/usr/bin/python3 -V")
 
   local stats = b:get_table("stats")
   assert_true(tonumber(stats:get(0)) >= 2)
diff -rup bcc-0.4.0.orig/tests/python/test_stackid.py bcc-0.4.0/tests/python/test_stackid.py
--- bcc-0.4.0.orig/tests/python/test_stackid.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tests/python/test_stackid.py	2017-11-24 11:23:07.910238321 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # Copyright (c) PLUMgrid, Inc.
 # Licensed under the Apache License, Version 2.0 (the "License")
 
diff -rup bcc-0.4.0.orig/tests/python/test_uprobes.py bcc-0.4.0/tests/python/test_uprobes.py
--- bcc-0.4.0.orig/tests/python/test_uprobes.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tests/python/test_uprobes.py	2017-11-24 11:23:07.914238329 +0100
@@ -56,13 +56,13 @@ int count(struct pt_regs *ctx) {
     return 0;
 }"""
         b = bcc.BPF(text=text)
-        b.attach_uprobe(name="/usr/bin/python", sym="main", fn_name="count")
-        b.attach_uretprobe(name="/usr/bin/python", sym="main", fn_name="count")
-        with os.popen("/usr/bin/python -V") as f:
+        b.attach_uprobe(name="/usr/bin/python3", sym="main", fn_name="count")
+        b.attach_uretprobe(name="/usr/bin/python3", sym="main", fn_name="count")
+        with os.popen("/usr/bin/python3 -V") as f:
             pass
         self.assertGreater(b["stats"][ctypes.c_int(0)].value, 0)
-        b.detach_uretprobe(name="/usr/bin/python", sym="main")
-        b.detach_uprobe(name="/usr/bin/python", sym="main")
+        b.detach_uretprobe(name="/usr/bin/python3", sym="main")
+        b.detach_uprobe(name="/usr/bin/python3", sym="main")
 
     def test_mount_namespace(self):
         text = """
diff -rup bcc-0.4.0.orig/tests/python/test_usdt.py bcc-0.4.0/tests/python/test_usdt.py
--- bcc-0.4.0.orig/tests/python/test_usdt.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tests/python/test_usdt.py	2017-11-24 11:23:07.914238329 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # USAGE: test_usdt.py
 #
diff -rup bcc-0.4.0.orig/tests/python/test_usdt2.py bcc-0.4.0/tests/python/test_usdt2.py
--- bcc-0.4.0.orig/tests/python/test_usdt2.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tests/python/test_usdt2.py	2017-11-24 11:23:07.914238329 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # USAGE: test_usdt2.py
 #
diff -rup bcc-0.4.0.orig/tests/python/test_utils.py bcc-0.4.0/tests/python/test_utils.py
--- bcc-0.4.0.orig/tests/python/test_utils.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tests/python/test_utils.py	2017-11-24 11:23:07.918238339 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # Copyright (c) Catalysts GmbH
 # Licensed under the Apache License, Version 2.0 (the "License")
 
diff -rup bcc-0.4.0.orig/tools/bashreadline.py bcc-0.4.0/tools/bashreadline.py
--- bcc-0.4.0.orig/tools/bashreadline.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/bashreadline.py	2017-11-24 11:23:07.918238339 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # bashreadline  Print entered bash commands from all running shells.
 #               For Linux, uses BCC, eBPF. Embedded C.
diff -rup bcc-0.4.0.orig/tools/biolatency.py bcc-0.4.0/tools/biolatency.py
--- bcc-0.4.0.orig/tools/biolatency.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/biolatency.py	2017-11-24 11:23:07.922238347 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # biolatency    Summarize block device I/O latency as a histogram.
diff -rup bcc-0.4.0.orig/tools/biosnoop.py bcc-0.4.0/tools/biosnoop.py
--- bcc-0.4.0.orig/tools/biosnoop.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/biosnoop.py	2017-11-24 11:23:07.922238347 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # biosnoop  Trace block device I/O and print details including issuing PID.
diff -rup bcc-0.4.0.orig/tools/biotop.py bcc-0.4.0/tools/biotop.py
--- bcc-0.4.0.orig/tools/biotop.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/biotop.py	2017-11-24 11:23:07.922238347 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # biotop  block device (disk) I/O by process.
diff -rup bcc-0.4.0.orig/tools/bitesize.py bcc-0.4.0/tools/bitesize.py
--- bcc-0.4.0.orig/tools/bitesize.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/bitesize.py	2017-11-24 11:23:07.926238356 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # bitehist.py   Block I/O size histogram.
 #               For Linux, uses BCC, eBPF. See .c file.
diff -rup bcc-0.4.0.orig/tools/bpflist.py bcc-0.4.0/tools/bpflist.py
--- bcc-0.4.0.orig/tools/bpflist.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/bpflist.py	2017-11-24 11:23:07.926238356 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # bpflist   Display processes currently using BPF programs and maps,
 #           pinned BPF programs and maps, and enabled probes.
diff -rup bcc-0.4.0.orig/tools/btrfsdist.py bcc-0.4.0/tools/btrfsdist.py
--- bcc-0.4.0.orig/tools/btrfsdist.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/btrfsdist.py	2017-11-24 11:23:07.926238356 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # btrfsdist  Summarize btrfs operation latency.
diff -rup bcc-0.4.0.orig/tools/btrfsslower.py bcc-0.4.0/tools/btrfsslower.py
--- bcc-0.4.0.orig/tools/btrfsslower.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/btrfsslower.py	2017-11-24 11:23:07.930238365 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # btrfsslower  Trace slow btrfs operations.
diff -rup bcc-0.4.0.orig/tools/cachestat.py bcc-0.4.0/tools/cachestat.py
--- bcc-0.4.0.orig/tools/cachestat.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/cachestat.py	2017-11-24 11:23:07.930238365 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # cachestat     Count cache kernel function calls.
 #               For Linux, uses BCC, eBPF. See .c file.
diff -rup bcc-0.4.0.orig/tools/capable.py bcc-0.4.0/tools/capable.py
--- bcc-0.4.0.orig/tools/capable.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/capable.py	2017-11-24 11:23:07.934238374 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # capable   Trace security capabilitiy checks (cap_capable()).
diff -rup bcc-0.4.0.orig/tools/cpudist.py bcc-0.4.0/tools/cpudist.py
--- bcc-0.4.0.orig/tools/cpudist.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/cpudist.py	2017-11-24 11:23:07.934238374 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # cpudist   Summarize on- and off-CPU time per task as a histogram.
diff -rup bcc-0.4.0.orig/tools/cpuunclaimed.py bcc-0.4.0/tools/cpuunclaimed.py
--- bcc-0.4.0.orig/tools/cpuunclaimed.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/cpuunclaimed.py	2017-11-24 11:23:07.934238374 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # cpuunclaimed   Sample CPU run queues and calculate unclaimed idle CPU.
diff -rup bcc-0.4.0.orig/tools/dbslower.py bcc-0.4.0/tools/dbslower.py
--- bcc-0.4.0.orig/tools/dbslower.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/dbslower.py	2017-11-24 11:23:07.938238383 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # dbslower      Trace MySQL and PostgreSQL queries slower than a threshold.
 #
diff -rup bcc-0.4.0.orig/tools/dbstat.py bcc-0.4.0/tools/dbstat.py
--- bcc-0.4.0.orig/tools/dbstat.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/dbstat.py	2017-11-24 11:23:07.938238383 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # dbstat        Display a histogram of MySQL and PostgreSQL query latencies.
 #
diff -rup bcc-0.4.0.orig/tools/dcsnoop.py bcc-0.4.0/tools/dcsnoop.py
--- bcc-0.4.0.orig/tools/dcsnoop.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/dcsnoop.py	2017-11-24 11:23:07.942238391 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # dcsnoop   Trace directory entry cache (dcache) lookups.
diff -rup bcc-0.4.0.orig/tools/dcstat.py bcc-0.4.0/tools/dcstat.py
--- bcc-0.4.0.orig/tools/dcstat.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/dcstat.py	2017-11-24 11:23:07.942238391 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # dcstat   Directory entry cache (dcache) stats.
diff -rup bcc-0.4.0.orig/tools/execsnoop.py bcc-0.4.0/tools/execsnoop.py
--- bcc-0.4.0.orig/tools/execsnoop.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/execsnoop.py	2017-11-24 11:23:07.942238391 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # execsnoop Trace new processes via exec() syscalls.
diff -rup bcc-0.4.0.orig/tools/ext4dist.py bcc-0.4.0/tools/ext4dist.py
--- bcc-0.4.0.orig/tools/ext4dist.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/ext4dist.py	2017-11-24 11:23:07.946238401 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # ext4dist  Summarize ext4 operation latency.
diff -rup bcc-0.4.0.orig/tools/ext4slower.py bcc-0.4.0/tools/ext4slower.py
--- bcc-0.4.0.orig/tools/ext4slower.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/ext4slower.py	2017-11-24 11:23:07.946238401 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # ext4slower  Trace slow ext4 operations.
diff -rup bcc-0.4.0.orig/tools/filelife.py bcc-0.4.0/tools/filelife.py
--- bcc-0.4.0.orig/tools/filelife.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/filelife.py	2017-11-24 11:23:07.950238409 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # filelife    Trace the lifespan of short-lived files.
diff -rup bcc-0.4.0.orig/tools/fileslower.py bcc-0.4.0/tools/fileslower.py
--- bcc-0.4.0.orig/tools/fileslower.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/fileslower.py	2017-11-24 11:23:07.950238409 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # fileslower  Trace slow synchronous file reads and writes.
diff -rup bcc-0.4.0.orig/tools/filetop.py bcc-0.4.0/tools/filetop.py
--- bcc-0.4.0.orig/tools/filetop.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/filetop.py	2017-11-24 11:23:07.950238409 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # filetop  file reads and writes by process.
diff -rup bcc-0.4.0.orig/tools/funccount.py bcc-0.4.0/tools/funccount.py
--- bcc-0.4.0.orig/tools/funccount.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/funccount.py	2017-11-24 11:23:07.954238418 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # funccount Count functions, tracepoints, and USDT probes.
diff -rup bcc-0.4.0.orig/tools/funclatency.py bcc-0.4.0/tools/funclatency.py
--- bcc-0.4.0.orig/tools/funclatency.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/funclatency.py	2017-11-24 11:23:07.954238418 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # funclatency   Time functions and print latency as a histogram.
diff -rup bcc-0.4.0.orig/tools/funcslower.py bcc-0.4.0/tools/funcslower.py
--- bcc-0.4.0.orig/tools/funcslower.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/funcslower.py	2017-11-24 11:23:07.958238427 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # funcslower  Trace slow kernel or user function calls.
diff -rup bcc-0.4.0.orig/tools/gethostlatency.py bcc-0.4.0/tools/gethostlatency.py
--- bcc-0.4.0.orig/tools/gethostlatency.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/gethostlatency.py	2017-11-24 11:23:07.958238427 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # gethostlatency  Show latency for getaddrinfo/gethostbyname[2] calls.
 #                 For Linux, uses BCC, eBPF. Embedded C.
diff -rup bcc-0.4.0.orig/tools/hardirqs.py bcc-0.4.0/tools/hardirqs.py
--- bcc-0.4.0.orig/tools/hardirqs.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/hardirqs.py	2017-11-24 11:23:07.958238427 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # hardirqs  Summarize hard IRQ (interrupt) event time.
diff -rup bcc-0.4.0.orig/tools/killsnoop.py bcc-0.4.0/tools/killsnoop.py
--- bcc-0.4.0.orig/tools/killsnoop.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/killsnoop.py	2017-11-24 11:23:07.962238436 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # killsnoop Trace signals issued by the kill() syscall.
diff -rup bcc-0.4.0.orig/tools/lib/ucalls.py bcc-0.4.0/tools/lib/ucalls.py
--- bcc-0.4.0.orig/tools/lib/ucalls.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/lib/ucalls.py	2017-11-24 11:23:07.962238436 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # ucalls  Summarize method calls in high-level languages and/or system calls.
diff -rup bcc-0.4.0.orig/tools/lib/uflow.py bcc-0.4.0/tools/lib/uflow.py
--- bcc-0.4.0.orig/tools/lib/uflow.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/lib/uflow.py	2017-11-24 11:23:07.966238445 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # uflow  Trace method execution flow in high-level languages.
diff -rup bcc-0.4.0.orig/tools/lib/ugc.py bcc-0.4.0/tools/lib/ugc.py
--- bcc-0.4.0.orig/tools/lib/ugc.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/lib/ugc.py	2017-11-24 11:23:07.966238445 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # ugc  Summarize garbage collection events in high-level languages.
diff -rup bcc-0.4.0.orig/tools/lib/uobjnew.py bcc-0.4.0/tools/lib/uobjnew.py
--- bcc-0.4.0.orig/tools/lib/uobjnew.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/lib/uobjnew.py	2017-11-24 11:23:07.966238445 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # uobjnew  Summarize object allocations in high-level languages.
diff -rup bcc-0.4.0.orig/tools/lib/ustat.py bcc-0.4.0/tools/lib/ustat.py
--- bcc-0.4.0.orig/tools/lib/ustat.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/lib/ustat.py	2017-11-24 11:23:07.970238453 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # ustat  Activity stats from high-level languages, including exceptions,
diff -rup bcc-0.4.0.orig/tools/lib/uthreads.py bcc-0.4.0/tools/lib/uthreads.py
--- bcc-0.4.0.orig/tools/lib/uthreads.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/lib/uthreads.py	2017-11-24 11:23:07.970238453 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # uthreads  Trace thread creation/destruction events in high-level languages.
diff -rup bcc-0.4.0.orig/tools/llcstat.py bcc-0.4.0/tools/llcstat.py
--- bcc-0.4.0.orig/tools/llcstat.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/llcstat.py	2017-11-24 11:23:07.974238463 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # llcstat.py Summarize cache references and cache misses by PID.
 #            Cache reference and cache miss are corresponding events defined in
diff -rup bcc-0.4.0.orig/tools/mdflush.py bcc-0.4.0/tools/mdflush.py
--- bcc-0.4.0.orig/tools/mdflush.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/mdflush.py	2017-11-24 11:23:07.974238463 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # mdflush  Trace md flush events.
diff -rup bcc-0.4.0.orig/tools/mysqld_qslower.py bcc-0.4.0/tools/mysqld_qslower.py
--- bcc-0.4.0.orig/tools/mysqld_qslower.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/mysqld_qslower.py	2017-11-24 11:23:07.974238463 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # mysqld_qslower    MySQL server queries slower than a threshold.
 #                   For Linux, uses BCC, BPF. Embedded C.
diff -rup bcc-0.4.0.orig/tools/nfsdist.py bcc-0.4.0/tools/nfsdist.py
--- bcc-0.4.0.orig/tools/nfsdist.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/nfsdist.py	2017-11-24 11:23:07.978238471 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # nfsdist   Summarize NFS operation latency
diff -rup bcc-0.4.0.orig/tools/nfsslower.py bcc-0.4.0/tools/nfsslower.py
--- bcc-0.4.0.orig/tools/nfsslower.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/nfsslower.py	2017-11-24 11:23:07.978238471 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # nfsslower     Trace slow NFS operations
diff -rup bcc-0.4.0.orig/tools/offcputime.py bcc-0.4.0/tools/offcputime.py
--- bcc-0.4.0.orig/tools/offcputime.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/offcputime.py	2017-11-24 11:23:07.982238480 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # offcputime    Summarize off-CPU time by stack trace
 #               For Linux, uses BCC, eBPF.
diff -rup bcc-0.4.0.orig/tools/offwaketime.py bcc-0.4.0/tools/offwaketime.py
--- bcc-0.4.0.orig/tools/offwaketime.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/offwaketime.py	2017-11-24 11:23:07.982238480 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # offwaketime   Summarize blocked time by kernel off-CPU stack + waker stack
 #               For Linux, uses BCC, eBPF.
diff -rup bcc-0.4.0.orig/tools/old/bashreadline.py bcc-0.4.0/tools/old/bashreadline.py
--- bcc-0.4.0.orig/tools/old/bashreadline.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/old/bashreadline.py	2017-11-24 11:23:07.982238480 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # bashreadline  Print entered bash commands from all running shells.
 #               For Linux, uses BCC, eBPF. Embedded C.
diff -rup bcc-0.4.0.orig/tools/old/biosnoop.py bcc-0.4.0/tools/old/biosnoop.py
--- bcc-0.4.0.orig/tools/old/biosnoop.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/old/biosnoop.py	2017-11-24 11:23:07.986238489 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # biosnoop  Trace block device I/O and print details including issuing PID.
diff -rup bcc-0.4.0.orig/tools/old/filelife.py bcc-0.4.0/tools/old/filelife.py
--- bcc-0.4.0.orig/tools/old/filelife.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/old/filelife.py	2017-11-24 11:23:07.986238489 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # filelife    Trace the lifespan of short-lived files.
diff -rup bcc-0.4.0.orig/tools/old/gethostlatency.py bcc-0.4.0/tools/old/gethostlatency.py
--- bcc-0.4.0.orig/tools/old/gethostlatency.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/old/gethostlatency.py	2017-11-24 11:23:07.986238489 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # gethostlatency  Show latency for getaddrinfo/gethostbyname[2] calls.
 #                 For Linux, uses BCC, eBPF. Embedded C.
diff -rup bcc-0.4.0.orig/tools/old/killsnoop.py bcc-0.4.0/tools/old/killsnoop.py
--- bcc-0.4.0.orig/tools/old/killsnoop.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/old/killsnoop.py	2017-11-24 11:23:07.990238498 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # killsnoop Trace signals issued by the kill() syscall.
diff -rup bcc-0.4.0.orig/tools/old/offcputime.py bcc-0.4.0/tools/old/offcputime.py
--- bcc-0.4.0.orig/tools/old/offcputime.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/old/offcputime.py	2017-11-24 11:23:07.990238498 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # offcputime    Summarize off-CPU time by kernel stack trace
 #               For Linux, uses BCC, eBPF.
diff -rup bcc-0.4.0.orig/tools/old/offwaketime.py bcc-0.4.0/tools/old/offwaketime.py
--- bcc-0.4.0.orig/tools/old/offwaketime.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/old/offwaketime.py	2017-11-24 11:23:07.994238507 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # offwaketime   Summarize blocked time by kernel off-CPU stack + waker stack
 #               For Linux, uses BCC, eBPF.
diff -rup bcc-0.4.0.orig/tools/old/opensnoop.py bcc-0.4.0/tools/old/opensnoop.py
--- bcc-0.4.0.orig/tools/old/opensnoop.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/old/opensnoop.py	2017-11-24 11:23:07.994238507 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # opensnoop Trace open() syscalls.
diff -rup bcc-0.4.0.orig/tools/old/profile.py bcc-0.4.0/tools/old/profile.py
--- bcc-0.4.0.orig/tools/old/profile.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/old/profile.py	2017-11-24 11:23:07.998238515 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # profile  Profile CPU usage by sampling stack traces at a timed interval.
diff -rup bcc-0.4.0.orig/tools/old/softirqs.py bcc-0.4.0/tools/old/softirqs.py
--- bcc-0.4.0.orig/tools/old/softirqs.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/old/softirqs.py	2017-11-24 11:23:07.998238515 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # softirqs  Summarize soft IRQ (interrupt) event time.
diff -rup bcc-0.4.0.orig/tools/old/stackcount.py bcc-0.4.0/tools/old/stackcount.py
--- bcc-0.4.0.orig/tools/old/stackcount.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/old/stackcount.py	2017-11-24 11:23:07.998238515 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # stackcount    Count kernel function calls and their stack traces.
 #               For Linux, uses BCC, eBPF.
diff -rup bcc-0.4.0.orig/tools/old/stacksnoop.py bcc-0.4.0/tools/old/stacksnoop.py
--- bcc-0.4.0.orig/tools/old/stacksnoop.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/old/stacksnoop.py	2017-11-24 11:23:08.002238525 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # stacksnoop    Trace a kernel function and print all kernel stack traces.
 #               For Linux, uses BCC, eBPF, and currently x86_64 only. Inline C.
diff -rup bcc-0.4.0.orig/tools/old/statsnoop.py bcc-0.4.0/tools/old/statsnoop.py
--- bcc-0.4.0.orig/tools/old/statsnoop.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/old/statsnoop.py	2017-11-24 11:23:08.002238525 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # statsnoop Trace stat() syscalls.
diff -rup bcc-0.4.0.orig/tools/old/syncsnoop.py bcc-0.4.0/tools/old/syncsnoop.py
--- bcc-0.4.0.orig/tools/old/syncsnoop.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/old/syncsnoop.py	2017-11-24 11:23:08.002238525 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # syncsnoop Trace sync() syscall.
diff -rup bcc-0.4.0.orig/tools/old/tcpaccept.py bcc-0.4.0/tools/old/tcpaccept.py
--- bcc-0.4.0.orig/tools/old/tcpaccept.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/old/tcpaccept.py	2017-11-24 11:23:08.006238533 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # tcpaccept Trace TCP accept()s.
diff -rup bcc-0.4.0.orig/tools/old/tcpconnect.py bcc-0.4.0/tools/old/tcpconnect.py
--- bcc-0.4.0.orig/tools/old/tcpconnect.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/old/tcpconnect.py	2017-11-24 11:23:08.006238533 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # tcpconnect    Trace TCP connect()s.
diff -rup bcc-0.4.0.orig/tools/opensnoop.py bcc-0.4.0/tools/opensnoop.py
--- bcc-0.4.0.orig/tools/opensnoop.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/opensnoop.py	2017-11-24 11:23:08.010238542 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # opensnoop Trace open() syscalls.
diff -rup bcc-0.4.0.orig/tools/pidpersec.py bcc-0.4.0/tools/pidpersec.py
--- bcc-0.4.0.orig/tools/pidpersec.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/pidpersec.py	2017-11-24 11:23:08.010238542 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # pidpersec Count new processes (via fork).
diff -rup bcc-0.4.0.orig/tools/profile.py bcc-0.4.0/tools/profile.py
--- bcc-0.4.0.orig/tools/profile.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/profile.py	2017-11-24 11:23:08.010238542 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # profile  Profile CPU usage by sampling stack traces at a timed interval.
diff -rup bcc-0.4.0.orig/tools/runqlat.py bcc-0.4.0/tools/runqlat.py
--- bcc-0.4.0.orig/tools/runqlat.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/runqlat.py	2017-11-24 11:23:08.014238551 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # runqlat   Run queue (scheduler) latency as a histogram.
diff -rup bcc-0.4.0.orig/tools/runqlen.py bcc-0.4.0/tools/runqlen.py
--- bcc-0.4.0.orig/tools/runqlen.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/runqlen.py	2017-11-24 11:23:08.014238551 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # runqlen    Summarize scheduler run queue length as a histogram.
diff -rup bcc-0.4.0.orig/tools/slabratetop.py bcc-0.4.0/tools/slabratetop.py
--- bcc-0.4.0.orig/tools/slabratetop.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/slabratetop.py	2017-11-24 11:23:08.018238560 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # slabratetop  Summarize kmem_cache_alloc() calls.
diff -rup bcc-0.4.0.orig/tools/softirqs.py bcc-0.4.0/tools/softirqs.py
--- bcc-0.4.0.orig/tools/softirqs.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/softirqs.py	2017-11-24 11:23:08.018238560 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # softirqs  Summarize soft IRQ (interrupt) event time.
diff -rup bcc-0.4.0.orig/tools/sslsniff.py bcc-0.4.0/tools/sslsniff.py
--- bcc-0.4.0.orig/tools/sslsniff.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/sslsniff.py	2017-11-24 11:23:08.022238569 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # sslsniff  Captures data on read/recv or write/send functions of OpenSSL and
 #           GnuTLS
diff -rup bcc-0.4.0.orig/tools/statsnoop.py bcc-0.4.0/tools/statsnoop.py
--- bcc-0.4.0.orig/tools/statsnoop.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/statsnoop.py	2017-11-24 11:23:08.022238569 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # statsnoop Trace stat() syscalls.
diff -rup bcc-0.4.0.orig/tools/syncsnoop.py bcc-0.4.0/tools/syncsnoop.py
--- bcc-0.4.0.orig/tools/syncsnoop.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/syncsnoop.py	2017-11-24 11:23:08.022238569 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # syncsnoop Trace sync() syscall.
diff -rup bcc-0.4.0.orig/tools/tcpaccept.py bcc-0.4.0/tools/tcpaccept.py
--- bcc-0.4.0.orig/tools/tcpaccept.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/tcpaccept.py	2017-11-24 11:23:08.026238578 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # tcpaccept Trace TCP accept()s.
diff -rup bcc-0.4.0.orig/tools/tcpconnect.py bcc-0.4.0/tools/tcpconnect.py
--- bcc-0.4.0.orig/tools/tcpconnect.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/tcpconnect.py	2017-11-24 11:23:08.026238578 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # tcpconnect    Trace TCP connect()s.
diff -rup bcc-0.4.0.orig/tools/tcpconnlat.py bcc-0.4.0/tools/tcpconnlat.py
--- bcc-0.4.0.orig/tools/tcpconnlat.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/tcpconnlat.py	2017-11-24 11:23:08.030238586 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # tcpconnlat    Trace TCP active connection latency (connect).
diff -rup bcc-0.4.0.orig/tools/tcplife.py bcc-0.4.0/tools/tcplife.py
--- bcc-0.4.0.orig/tools/tcplife.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/tcplife.py	2017-11-24 11:23:08.030238586 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # tcplife   Trace the lifespan of TCP sessions and summarize.
diff -rup bcc-0.4.0.orig/tools/tcpretrans.py bcc-0.4.0/tools/tcpretrans.py
--- bcc-0.4.0.orig/tools/tcpretrans.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/tcpretrans.py	2017-11-24 11:23:08.030238586 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # tcpretrans    Trace TCP retransmits and TLPs.
diff -rup bcc-0.4.0.orig/tools/tcptop.py bcc-0.4.0/tools/tcptop.py
--- bcc-0.4.0.orig/tools/tcptop.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/tcptop.py	2017-11-24 11:23:08.034238595 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # tcptop    Summarize TCP send/recv throughput by host.
diff -rup bcc-0.4.0.orig/tools/tcptracer.py bcc-0.4.0/tools/tcptracer.py
--- bcc-0.4.0.orig/tools/tcptracer.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/tcptracer.py	2017-11-24 11:23:08.034238595 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # tcpv4tracer   Trace TCP connections.
 #               For Linux, uses BCC, eBPF. Embedded C.
diff -rup bcc-0.4.0.orig/tools/ttysnoop.py bcc-0.4.0/tools/ttysnoop.py
--- bcc-0.4.0.orig/tools/ttysnoop.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/ttysnoop.py	2017-11-24 11:23:08.038238604 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # ttysnoop   Watch live output from a tty or pts device.
diff -rup bcc-0.4.0.orig/tools/vfscount.py bcc-0.4.0/tools/vfscount.py
--- bcc-0.4.0.orig/tools/vfscount.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/vfscount.py	2017-11-24 11:23:08.038238604 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # vfscount  Count VFS calls ("vfs_*").
diff -rup bcc-0.4.0.orig/tools/vfsstat.py bcc-0.4.0/tools/vfsstat.py
--- bcc-0.4.0.orig/tools/vfsstat.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/vfsstat.py	2017-11-24 11:23:08.038238604 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # vfsstat   Count some VFS calls.
diff -rup bcc-0.4.0.orig/tools/wakeuptime.py bcc-0.4.0/tools/wakeuptime.py
--- bcc-0.4.0.orig/tools/wakeuptime.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/wakeuptime.py	2017-11-24 11:23:08.042238613 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # wakeuptime    Summarize sleep to wakeup time by waker kernel stack
 #               For Linux, uses BCC, eBPF.
diff -rup bcc-0.4.0.orig/tools/xfsdist.py bcc-0.4.0/tools/xfsdist.py
--- bcc-0.4.0.orig/tools/xfsdist.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/xfsdist.py	2017-11-24 11:23:08.042238613 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # xfsdist  Summarize XFS operation latency.
diff -rup bcc-0.4.0.orig/tools/xfsslower.py bcc-0.4.0/tools/xfsslower.py
--- bcc-0.4.0.orig/tools/xfsslower.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/xfsslower.py	2017-11-24 11:23:08.042238613 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # xfsslower  Trace slow XFS operations.
diff -rup bcc-0.4.0.orig/tools/zfsdist.py bcc-0.4.0/tools/zfsdist.py
--- bcc-0.4.0.orig/tools/zfsdist.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/zfsdist.py	2017-11-24 11:23:08.046238622 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # zfsdist  Summarize ZFS operation latency.
diff -rup bcc-0.4.0.orig/tools/zfsslower.py bcc-0.4.0/tools/zfsslower.py
--- bcc-0.4.0.orig/tools/zfsslower.py	2017-10-20 19:42:33.000000000 +0200
+++ bcc-0.4.0/tools/zfsslower.py	2017-11-24 11:23:08.046238622 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # @lint-avoid-python-3-compatibility-imports
 #
 # zfsslower  Trace slow ZFS operations.
openSUSE Build Service is sponsored by