Commit cc01a9cd authored by Alexey Ivanov's avatar Alexey Ivanov

tools/examples: hardcode #!/usr/bin/python shebang

parent aaca976c
#!/usr/bin/env python #!/usr/bin/python
# Copyright (c) PLUMgrid, Inc. # Copyright (c) PLUMgrid, Inc.
# Licensed under the Apache License, Version 2.0 (the "License") # Licensed under the Apache License, Version 2.0 (the "License")
......
#!/usr/bin/env python #!/usr/bin/python
# Copyright (c) PLUMgrid, Inc. # Copyright (c) PLUMgrid, Inc.
# Licensed under the Apache License, Version 2.0 (the "License") # Licensed under the Apache License, Version 2.0 (the "License")
......
#!/usr/bin/env python #!/usr/bin/python
# Copyright (c) PLUMgrid, Inc. # Copyright (c) PLUMgrid, Inc.
# Licensed under the Apache License, Version 2.0 (the "License") # Licensed under the Apache License, Version 2.0 (the "License")
......
#!/usr/bin/env python #!/usr/bin/python
# Copyright (c) PLUMgrid, Inc. # Copyright (c) PLUMgrid, Inc.
# Licensed under the Apache License, Version 2.0 (the "License") # Licensed under the Apache License, Version 2.0 (the "License")
......
#!/usr/bin/env python #!/usr/bin/python
from __future__ import print_function from __future__ import print_function
from bcc import BPF from bcc import BPF
......
#!/usr/bin/env python #!/usr/bin/python
# #
#Bertrone Matteo - Polytechnic of Turin #Bertrone Matteo - Polytechnic of Turin
#November 2015 #November 2015
......
#!/usr/bin/env python #!/usr/bin/python
# #
#Bertrone Matteo - Polytechnic of Turin #Bertrone Matteo - Polytechnic of Turin
#November 2015 #November 2015
......
#!/usr/bin/env python #!/usr/bin/python
# Copyright (c) PLUMgrid, Inc. # Copyright (c) PLUMgrid, Inc.
# Licensed under the Apache License, Version 2.0 (the "License") # Licensed under the Apache License, Version 2.0 (the "License")
......
#!/usr/bin/env python #!/usr/bin/python
# Copyright (c) PLUMgrid, Inc. # Copyright (c) PLUMgrid, Inc.
# Licensed under the Apache License, Version 2.0 (the "License") # Licensed under the Apache License, Version 2.0 (the "License")
......
#!/usr/bin/env python #!/usr/bin/python
# #
# tc_perf_event.py Output skb and meta data through perf event # tc_perf_event.py Output skb and meta data through perf event
# #
......
#!/usr/bin/env python #!/usr/bin/python
# Copyright (c) PLUMgrid, Inc. # Copyright (c) PLUMgrid, Inc.
# Licensed under the Apache License, Version 2.0 (the "License") # Licensed under the Apache License, Version 2.0 (the "License")
......
#!/usr/bin/env python #!/usr/bin/python
# Copyright (c) PLUMgrid, Inc. # Copyright (c) PLUMgrid, Inc.
# Licensed under the Apache License, Version 2.0 (the "License") # Licensed under the Apache License, Version 2.0 (the "License")
......
#!/usr/bin/env python #!/usr/bin/python
from __future__ import print_function from __future__ import print_function
from bcc import BPF from bcc import BPF
......
#!/usr/bin/env python #!/usr/bin/python
# Copyright (c) PLUMgrid, Inc. # Copyright (c) PLUMgrid, Inc.
# Licensed under the Apache License, Version 2.0 (the "License") # Licensed under the Apache License, Version 2.0 (the "License")
......
#!/usr/bin/env python #!/usr/bin/python
# #
# xdp_drop_count.py Drop incoming packets on XDP layer and count for which # xdp_drop_count.py Drop incoming packets on XDP layer and count for which
# protocol type # protocol type
......
#!/usr/bin/env python #!/usr/bin/python
# #
# xdp_macswap_count.py Swap Source and Destination MAC addresses on # xdp_macswap_count.py Swap Source and Destination MAC addresses on
# incoming packets and transmit packets back on # incoming packets and transmit packets back on
......
#!/usr/bin/env python #!/usr/bin/python
# #
# xdp_redirect_cpu.py Redirect the incoming packet to the specific CPU # xdp_redirect_cpu.py Redirect the incoming packet to the specific CPU
# #
......
#!/usr/bin/env python #!/usr/bin/python
# #
# xdp_redirect_map.py Redirect the incoming packet to another interface # xdp_redirect_map.py Redirect the incoming packet to another interface
# with the helper: bpf_redirect_map() # with the helper: bpf_redirect_map()
......
#!/usr/bin/env python #!/usr/bin/python
# #
# bitehist.py Block I/O size histogram. # bitehist.py Block I/O size histogram.
# For Linux, uses BCC, eBPF. Embedded C. # For Linux, uses BCC, eBPF. Embedded C.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# disksnoop.py Trace block device I/O: basic version of iosnoop. # disksnoop.py Trace block device I/O: basic version of iosnoop.
# For Linux, uses BCC, eBPF. Embedded C. # For Linux, uses BCC, eBPF. Embedded C.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# This is a Hello World example that formats output as fields. # This is a Hello World example that formats output as fields.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# This is a Hello World example that uses BPF_PERF_OUTPUT. # This is a Hello World example that uses BPF_PERF_OUTPUT.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# kvm_hypercall.py # kvm_hypercall.py
# #
......
#!/usr/bin/env python #!/usr/bin/python
# #
# mallocstacks Trace malloc() calls in a process and print the full # mallocstacks Trace malloc() calls in a process and print the full
# stack trace for all callsites. # stack trace for all callsites.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# mysqld_query Trace MySQL server queries. Example of USDT tracing. # mysqld_query Trace MySQL server queries. Example of USDT tracing.
# For Linux, uses BCC, BPF. Embedded C. # For Linux, uses BCC, BPF. Embedded C.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# nodejs_http_server Basic example of node.js USDT tracing. # nodejs_http_server Basic example of node.js USDT tracing.
# For Linux, uses BCC, BPF. Embedded C. # For Linux, uses BCC, BPF. Embedded C.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# stacksnoop Trace a kernel function and print all kernel stack traces. # stacksnoop Trace a kernel function and print all kernel stack traces.
# For Linux, uses BCC, eBPF, and currently x86_64 only. Inline C. # For Linux, uses BCC, eBPF, and currently x86_64 only. Inline C.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# strlen_count Trace strlen() and print a frequency count of strings. # strlen_count Trace strlen() and print a frequency count of strings.
# For Linux, uses BCC, eBPF. Embedded C. # For Linux, uses BCC, eBPF. Embedded C.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# strlen_hist.py Histogram of system-wide strlen return values # strlen_hist.py Histogram of system-wide strlen return values
......
#!/usr/bin/env python #!/usr/bin/python
# #
# strlen_snoop Trace strlen() library function for a given PID. # strlen_snoop Trace strlen() library function for a given PID.
# For Linux, uses BCC, eBPF. Embedded C. # For Linux, uses BCC, eBPF. Embedded C.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# sync_timing.py Trace time between syncs. # sync_timing.py Trace time between syncs.
# For Linux, uses BCC, eBPF. Embedded C. # For Linux, uses BCC, eBPF. Embedded C.
......
#!/usr/bin/env python #!/usr/bin/python
# Copyright (c) PLUMgrid, Inc. # Copyright (c) PLUMgrid, Inc.
# Licensed under the Apache License, Version 2.0 (the "License") # Licensed under the Apache License, Version 2.0 (the "License")
......
#!/usr/bin/env python #!/usr/bin/python
# #
# tcpv4connect Trace TCP IPv4 connect()s. # tcpv4connect Trace TCP IPv4 connect()s.
# For Linux, uses BCC, eBPF. Embedded C. # For Linux, uses BCC, eBPF. Embedded C.
......
#!/usr/bin/env python #!/usr/bin/python
# Copyright (c) PLUMgrid, Inc. # Copyright (c) PLUMgrid, Inc.
# Licensed under the Apache License, Version 2.0 (the "License") # Licensed under the Apache License, Version 2.0 (the "License")
......
#!/usr/bin/env python #!/usr/bin/python
# Copyright (c) PLUMgrid, Inc. # Copyright (c) PLUMgrid, Inc.
# Licensed under the Apache License, Version 2.0 (the "License") # Licensed under the Apache License, Version 2.0 (the "License")
......
#!/usr/bin/env python #!/usr/bin/python
# #
# urandomread-explicit Example of instrumenting a kernel tracepoint. # urandomread-explicit Example of instrumenting a kernel tracepoint.
# For Linux, uses BCC, BPF. Embedded C. # For Linux, uses BCC, BPF. Embedded C.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# urandomread Example of instrumenting a kernel tracepoint. # urandomread Example of instrumenting a kernel tracepoint.
# For Linux, uses BCC, BPF. Embedded C. # For Linux, uses BCC, BPF. Embedded C.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# vfsreadlat.py VFS read latency distribution. # vfsreadlat.py VFS read latency distribution.
# For Linux, uses BCC, eBPF. See .c file. # For Linux, uses BCC, eBPF. See .c file.
......
#!/usr/bin/env python #!/usr/bin/python
import argparse import argparse
from time import sleep, strftime from time import sleep, strftime
from sys import argv from sys import argv
......
#!/usr/bin/env python #!/usr/bin/python
import argparse import argparse
from time import sleep, strftime from time import sleep, strftime
from sys import argv from sys import argv
......
#!/usr/bin/env python #!/usr/bin/python
import argparse import argparse
from time import sleep from time import sleep
from sys import argv from sys import argv
......
#!/usr/bin/env python #!/usr/bin/python
# #
# argdist Trace a function and display a distribution of its # argdist Trace a function and display a distribution of its
# parameter values as a histogram or frequency count. # parameter values as a histogram or frequency count.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# bashreadline Print entered bash commands from all running shells. # bashreadline Print entered bash commands from all running shells.
# For Linux, uses BCC, eBPF. Embedded C. # For Linux, uses BCC, eBPF. Embedded C.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# biolatency Summarize block device I/O latency as a histogram. # biolatency Summarize block device I/O latency as a histogram.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# biosnoop Trace block device I/O and print details including issuing PID. # biosnoop Trace block device I/O and print details including issuing PID.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# biotop block device (disk) I/O by process. # biotop block device (disk) I/O by process.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# bitehist.py Block I/O size histogram. # bitehist.py Block I/O size histogram.
# For Linux, uses BCC, eBPF. See .c file. # For Linux, uses BCC, eBPF. See .c file.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# bpflist Display processes currently using BPF programs and maps, # bpflist Display processes currently using BPF programs and maps,
# pinned BPF programs and maps, and enabled probes. # pinned BPF programs and maps, and enabled probes.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# btrfsdist Summarize btrfs operation latency. # btrfsdist Summarize btrfs operation latency.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# btrfsslower Trace slow btrfs operations. # btrfsslower Trace slow btrfs operations.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# cachestat Count cache kernel function calls. # cachestat Count cache kernel function calls.
# For Linux, uses BCC, eBPF. See .c file. # For Linux, uses BCC, eBPF. See .c file.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# cachetop Count cache kernel function calls per processes # cachetop Count cache kernel function calls per processes
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# capable Trace security capabilitiy checks (cap_capable()). # capable Trace security capabilitiy checks (cap_capable()).
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# cpudist Summarize on- and off-CPU time per task as a histogram. # cpudist Summarize on- and off-CPU time per task as a histogram.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# cpuunclaimed Sample CPU run queues and calculate unclaimed idle CPU. # cpuunclaimed Sample CPU run queues and calculate unclaimed idle CPU.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# criticalstat Trace long critical sections (IRQs or preemption disabled) # criticalstat Trace long critical sections (IRQs or preemption disabled)
......
#!/usr/bin/env python #!/usr/bin/python
# #
# dbslower Trace MySQL and PostgreSQL queries slower than a threshold. # dbslower Trace MySQL and PostgreSQL queries slower than a threshold.
# #
......
#!/usr/bin/env python #!/usr/bin/python
# #
# dbstat Display a histogram of MySQL and PostgreSQL query latencies. # dbstat Display a histogram of MySQL and PostgreSQL query latencies.
# #
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# dcsnoop Trace directory entry cache (dcache) lookups. # dcsnoop Trace directory entry cache (dcache) lookups.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# dcstat Directory entry cache (dcache) stats. # dcstat Directory entry cache (dcache) stats.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# deadlock_detector Detects potential deadlocks (lock order inversions) # deadlock_detector Detects potential deadlocks (lock order inversions)
# on a running process. For Linux, uses BCC, eBPF. # on a running process. For Linux, uses BCC, eBPF.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# execsnoop Trace new processes via exec() syscalls. # execsnoop Trace new processes via exec() syscalls.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# ext4dist Summarize ext4 operation latency. # ext4dist Summarize ext4 operation latency.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# ext4slower Trace slow ext4 operations. # ext4slower Trace slow ext4 operations.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# filelife Trace the lifespan of short-lived files. # filelife Trace the lifespan of short-lived files.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# fileslower Trace slow synchronous file reads and writes. # fileslower Trace slow synchronous file reads and writes.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# filetop file reads and writes by process. # filetop file reads and writes by process.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# funccount Count functions, tracepoints, and USDT probes. # funccount Count functions, tracepoints, and USDT probes.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# funclatency Time functions and print latency as a histogram. # funclatency Time functions and print latency as a histogram.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# funcslower Trace slow kernel or user function calls. # funcslower Trace slow kernel or user function calls.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# gethostlatency Show latency for getaddrinfo/gethostbyname[2] calls. # gethostlatency Show latency for getaddrinfo/gethostbyname[2] calls.
# For Linux, uses BCC, eBPF. Embedded C. # For Linux, uses BCC, eBPF. Embedded C.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# hardirqs Summarize hard IRQ (interrupt) event time. # hardirqs Summarize hard IRQ (interrupt) event time.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# This script generates a BPF program with structure inspired by trace.py. The # This script generates a BPF program with structure inspired by trace.py. The
# generated program operates on PID-indexed stacks. Generally speaking, # generated program operates on PID-indexed stacks. Generally speaking,
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# killsnoop Trace signals issued by the kill() syscall. # killsnoop Trace signals issued by the kill() syscall.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# ucalls Summarize method calls in high-level languages and/or system calls. # ucalls Summarize method calls in high-level languages and/or system calls.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# uflow Trace method execution flow in high-level languages. # uflow Trace method execution flow in high-level languages.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# ugc Summarize garbage collection events in high-level languages. # ugc Summarize garbage collection events in high-level languages.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# uobjnew Summarize object allocations in high-level languages. # uobjnew Summarize object allocations in high-level languages.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# ustat Activity stats from high-level languages, including exceptions, # ustat Activity stats from high-level languages, including exceptions,
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# uthreads Trace thread creation/destruction events in high-level languages. # uthreads Trace thread creation/destruction events in high-level languages.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# llcstat.py Summarize cache references and cache misses by PID. # llcstat.py Summarize cache references and cache misses by PID.
# Cache reference and cache miss are corresponding events defined in # Cache reference and cache miss are corresponding events defined in
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# mdflush Trace md flush events. # mdflush Trace md flush events.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# memleak Trace and display outstanding allocations to detect # memleak Trace and display outstanding allocations to detect
# memory leaks in user-mode processes and the kernel. # memory leaks in user-mode processes and the kernel.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# mountsnoop Trace mount() and umount syscalls. # mountsnoop Trace mount() and umount syscalls.
# For Linux, uses BCC, eBPF. Embedded C. # For Linux, uses BCC, eBPF. Embedded C.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# mysqld_qslower MySQL server queries slower than a threshold. # mysqld_qslower MySQL server queries slower than a threshold.
# For Linux, uses BCC, BPF. Embedded C. # For Linux, uses BCC, BPF. Embedded C.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# nfsdist Summarize NFS operation latency # nfsdist Summarize NFS operation latency
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# nfsslower Trace slow NFS operations # nfsslower Trace slow NFS operations
......
#!/usr/bin/env python #!/usr/bin/python
# #
# offcputime Summarize off-CPU time by stack trace # offcputime Summarize off-CPU time by stack trace
# For Linux, uses BCC, eBPF. # For Linux, uses BCC, eBPF.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# offwaketime Summarize blocked time by kernel off-CPU stack + waker stack # offwaketime Summarize blocked time by kernel off-CPU stack + waker stack
# For Linux, uses BCC, eBPF. # For Linux, uses BCC, eBPF.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# bashreadline Print entered bash commands from all running shells. # bashreadline Print entered bash commands from all running shells.
# For Linux, uses BCC, eBPF. Embedded C. # For Linux, uses BCC, eBPF. Embedded C.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# biosnoop Trace block device I/O and print details including issuing PID. # biosnoop Trace block device I/O and print details including issuing PID.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# filelife Trace the lifespan of short-lived files. # filelife Trace the lifespan of short-lived files.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# gethostlatency Show latency for getaddrinfo/gethostbyname[2] calls. # gethostlatency Show latency for getaddrinfo/gethostbyname[2] calls.
# For Linux, uses BCC, eBPF. Embedded C. # For Linux, uses BCC, eBPF. Embedded C.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# killsnoop Trace signals issued by the kill() syscall. # killsnoop Trace signals issued by the kill() syscall.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# memleak Trace and display outstanding allocations to detect # memleak Trace and display outstanding allocations to detect
# memory leaks in user-mode processes and the kernel. # memory leaks in user-mode processes and the kernel.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# offcputime Summarize off-CPU time by kernel stack trace # offcputime Summarize off-CPU time by kernel stack trace
# For Linux, uses BCC, eBPF. # For Linux, uses BCC, eBPF.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# offwaketime Summarize blocked time by kernel off-CPU stack + waker stack # offwaketime Summarize blocked time by kernel off-CPU stack + waker stack
# For Linux, uses BCC, eBPF. # For Linux, uses BCC, eBPF.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# oomkill Trace oom_kill_process(). For Linux, uses BCC, eBPF. # oomkill Trace oom_kill_process(). For Linux, uses BCC, eBPF.
# #
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# opensnoop Trace open() syscalls. # opensnoop Trace open() syscalls.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# profile Profile CPU usage by sampling stack traces at a timed interval. # profile Profile CPU usage by sampling stack traces at a timed interval.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# softirqs Summarize soft IRQ (interrupt) event time. # softirqs Summarize soft IRQ (interrupt) event time.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# stackcount Count kernel function calls and their stack traces. # stackcount Count kernel function calls and their stack traces.
# For Linux, uses BCC, eBPF. # For Linux, uses BCC, eBPF.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# stacksnoop Trace a kernel function and print all kernel stack traces. # stacksnoop Trace a kernel function and print all kernel stack traces.
# For Linux, uses BCC, eBPF, and currently x86_64 only. Inline C. # For Linux, uses BCC, eBPF, and currently x86_64 only. Inline C.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# statsnoop Trace stat() syscalls. # statsnoop Trace stat() syscalls.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# syncsnoop Trace sync() syscall. # syncsnoop Trace sync() syscall.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# tcpaccept Trace TCP accept()s. # tcpaccept Trace TCP accept()s.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# tcpconnect Trace TCP connect()s. # tcpconnect Trace TCP connect()s.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# wakeuptime Summarize sleep to wakeup time by waker kernel stack # wakeuptime Summarize sleep to wakeup time by waker kernel stack
# For Linux, uses BCC, eBPF. # For Linux, uses BCC, eBPF.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# oomkill Trace oom_kill_process(). For Linux, uses BCC, eBPF. # oomkill Trace oom_kill_process(). For Linux, uses BCC, eBPF.
# #
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# opensnoop Trace open() syscalls. # opensnoop Trace open() syscalls.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# pidpersec Count new processes (via fork). # pidpersec Count new processes (via fork).
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# profile Profile CPU usage by sampling stack traces at a timed interval. # profile Profile CPU usage by sampling stack traces at a timed interval.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# runqlat Run queue (scheduler) latency as a histogram. # runqlat Run queue (scheduler) latency as a histogram.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# runqlen Summarize scheduler run queue length as a histogram. # runqlen Summarize scheduler run queue length as a histogram.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# runqslower Trace long process scheduling delays. # runqslower Trace long process scheduling delays.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# shmsnoop Trace shm*() syscalls. # shmsnoop Trace shm*() syscalls.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# slabratetop Summarize kmem_cache_alloc() calls. # slabratetop Summarize kmem_cache_alloc() calls.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# sofdsnoop traces file descriptors passed via socket # sofdsnoop traces file descriptors passed via socket
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# softirqs Summarize soft IRQ (interrupt) event time. # softirqs Summarize soft IRQ (interrupt) event time.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# solisten Trace TCP listen events # solisten Trace TCP listen events
# For Linux, uses BCC, eBPF. Embedded C. # For Linux, uses BCC, eBPF. Embedded C.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# sslsniff Captures data on read/recv or write/send functions of OpenSSL, # sslsniff Captures data on read/recv or write/send functions of OpenSSL,
# GnuTLS and NSS # GnuTLS and NSS
......
#!/usr/bin/env python #!/usr/bin/python
# #
# stackcount Count events and their stack traces. # stackcount Count events and their stack traces.
# For Linux, uses BCC, eBPF. # For Linux, uses BCC, eBPF.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# statsnoop Trace stat() syscalls. # statsnoop Trace stat() syscalls.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# syncsnoop Trace sync() syscall. # syncsnoop Trace sync() syscall.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# syscount Summarize syscall counts and latencies. # syscount Summarize syscall counts and latencies.
# #
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# tcpaccept Trace TCP accept()s. # tcpaccept Trace TCP accept()s.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# tcpconnect Trace TCP connect()s. # tcpconnect Trace TCP connect()s.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# tcpconnlat Trace TCP active connection latency (connect). # tcpconnlat Trace TCP active connection latency (connect).
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# tcpdrop Trace TCP kernel-dropped packets/segments. # tcpdrop Trace TCP kernel-dropped packets/segments.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# tcplife Trace the lifespan of TCP sessions and summarize. # tcplife Trace the lifespan of TCP sessions and summarize.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# tcpretrans Trace or count TCP retransmits and TLPs. # tcpretrans Trace or count TCP retransmits and TLPs.
......
#!/usr/bin/env python #!/usr/bin/python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# tcpsubnet Summarize TCP bytes sent to different subnets. # tcpsubnet Summarize TCP bytes sent to different subnets.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# tcptop Summarize TCP send/recv throughput by host. # tcptop Summarize TCP send/recv throughput by host.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# tcpv4tracer Trace TCP connections. # tcpv4tracer Trace TCP connections.
# For Linux, uses BCC, eBPF. Embedded C. # For Linux, uses BCC, eBPF. Embedded C.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# tplist Display kernel tracepoints or USDT probes and their formats. # tplist Display kernel tracepoints or USDT probes and their formats.
# #
......
#!/usr/bin/env python #!/usr/bin/python
# #
# trace Trace a function and print a trace message based on its # trace Trace a function and print a trace message based on its
# parameters, with an optional filter. # parameters, with an optional filter.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# ttysnoop Watch live output from a tty or pts device. # ttysnoop Watch live output from a tty or pts device.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# vfscount Count VFS calls ("vfs_*"). # vfscount Count VFS calls ("vfs_*").
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# vfsstat Count some VFS calls. # vfsstat Count some VFS calls.
......
#!/usr/bin/env python #!/usr/bin/python
# #
# wakeuptime Summarize sleep to wakeup time by waker kernel stack # wakeuptime Summarize sleep to wakeup time by waker kernel stack
# For Linux, uses BCC, eBPF. # For Linux, uses BCC, eBPF.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# xfsdist Summarize XFS operation latency. # xfsdist Summarize XFS operation latency.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# xfsslower Trace slow XFS operations. # xfsslower Trace slow XFS operations.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# zfsdist Summarize ZFS operation latency. # zfsdist Summarize ZFS operation latency.
......
#!/usr/bin/env python #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports # @lint-avoid-python-3-compatibility-imports
# #
# zfsslower Trace slow ZFS operations. # zfsslower Trace slow ZFS operations.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment