continue adding --ebpf option to the python tools/ scripts

Several python tools allow their eBPF code to be printed to
stdout for debugging.  There are other projects that would
like to share these program definitions however, instead of
duplicating code.  We previously agreed on an --ebpf option
and we now continue adding it to more tools.

Signed-off-by: Nathan Scott <nathans@redhat.com>
diff --git a/tools/solisten.py b/tools/solisten.py
index 31f4637..57f27ce 100755
--- a/tools/solisten.py
+++ b/tools/solisten.py
@@ -42,6 +42,8 @@
     help="trace this PID only")
 parser.add_argument("-n", "--netns", default=0, type=int,
     help="trace this Network Namespace only")
+parser.add_argument("--ebpf", action="store_true",
+    help=argparse.SUPPRESS)
 
 
 # BPF Program
@@ -190,6 +192,10 @@
     bpf_text = bpf_text.replace("##FILTER_PID##", pid_filter)
     bpf_text = bpf_text.replace("##FILTER_NETNS##", netns_filter)
 
+    if args.ebpf:
+        print(bpf_text)
+        exit()
+
     # Initialize BPF
     b = BPF(text=bpf_text)
     b["listen_evt"].open_perf_buffer(event_printer(args.show_netns))