Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bcc
Commits
cc01a9cd
Commit
cc01a9cd
authored
Jan 16, 2019
by
Alexey Ivanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools/examples: hardcode #!/usr/bin/python shebang
parent
aaca976c
Changes
145
Show whitespace changes
Inline
Side-by-side
Showing
145 changed files
with
145 additions
and
145 deletions
+145
-145
examples/hello_world.py
examples/hello_world.py
+1
-1
examples/networking/distributed_bridge/main.py
examples/networking/distributed_bridge/main.py
+1
-1
examples/networking/distributed_bridge/tunnel.py
examples/networking/distributed_bridge/tunnel.py
+1
-1
examples/networking/distributed_bridge/tunnel_mesh.py
examples/networking/distributed_bridge/tunnel_mesh.py
+1
-1
examples/networking/dns_matching/dns_matching.py
examples/networking/dns_matching/dns_matching.py
+1
-1
examples/networking/http_filter/http-parse-complete.py
examples/networking/http_filter/http-parse-complete.py
+1
-1
examples/networking/http_filter/http-parse-simple.py
examples/networking/http_filter/http-parse-simple.py
+1
-1
examples/networking/neighbor_sharing/tc_neighbor_sharing.py
examples/networking/neighbor_sharing/tc_neighbor_sharing.py
+1
-1
examples/networking/simple_tc.py
examples/networking/simple_tc.py
+1
-1
examples/networking/tc_perf_event.py
examples/networking/tc_perf_event.py
+1
-1
examples/networking/tunnel_monitor/main.py
examples/networking/tunnel_monitor/main.py
+1
-1
examples/networking/tunnel_monitor/monitor.py
examples/networking/tunnel_monitor/monitor.py
+1
-1
examples/networking/vlan_filter/data-plane-tracing.py
examples/networking/vlan_filter/data-plane-tracing.py
+1
-1
examples/networking/vlan_learning/vlan_learning.py
examples/networking/vlan_learning/vlan_learning.py
+1
-1
examples/networking/xdp/xdp_drop_count.py
examples/networking/xdp/xdp_drop_count.py
+1
-1
examples/networking/xdp/xdp_macswap_count.py
examples/networking/xdp/xdp_macswap_count.py
+1
-1
examples/networking/xdp/xdp_redirect_cpu.py
examples/networking/xdp/xdp_redirect_cpu.py
+1
-1
examples/networking/xdp/xdp_redirect_map.py
examples/networking/xdp/xdp_redirect_map.py
+1
-1
examples/tracing/bitehist.py
examples/tracing/bitehist.py
+1
-1
examples/tracing/disksnoop.py
examples/tracing/disksnoop.py
+1
-1
examples/tracing/hello_fields.py
examples/tracing/hello_fields.py
+1
-1
examples/tracing/hello_perf_output.py
examples/tracing/hello_perf_output.py
+1
-1
examples/tracing/kvm_hypercall.py
examples/tracing/kvm_hypercall.py
+1
-1
examples/tracing/mallocstacks.py
examples/tracing/mallocstacks.py
+1
-1
examples/tracing/mysqld_query.py
examples/tracing/mysqld_query.py
+1
-1
examples/tracing/nodejs_http_server.py
examples/tracing/nodejs_http_server.py
+1
-1
examples/tracing/stacksnoop.py
examples/tracing/stacksnoop.py
+1
-1
examples/tracing/strlen_count.py
examples/tracing/strlen_count.py
+1
-1
examples/tracing/strlen_hist.py
examples/tracing/strlen_hist.py
+1
-1
examples/tracing/strlen_snoop.py
examples/tracing/strlen_snoop.py
+1
-1
examples/tracing/sync_timing.py
examples/tracing/sync_timing.py
+1
-1
examples/tracing/task_switch.py
examples/tracing/task_switch.py
+1
-1
examples/tracing/tcpv4connect.py
examples/tracing/tcpv4connect.py
+1
-1
examples/tracing/trace_fields.py
examples/tracing/trace_fields.py
+1
-1
examples/tracing/trace_perf_output.py
examples/tracing/trace_perf_output.py
+1
-1
examples/tracing/urandomread-explicit.py
examples/tracing/urandomread-explicit.py
+1
-1
examples/tracing/urandomread.py
examples/tracing/urandomread.py
+1
-1
examples/tracing/vfsreadlat.py
examples/tracing/vfsreadlat.py
+1
-1
examples/usdt_sample/scripts/lat_avg.py
examples/usdt_sample/scripts/lat_avg.py
+1
-1
examples/usdt_sample/scripts/lat_dist.py
examples/usdt_sample/scripts/lat_dist.py
+1
-1
examples/usdt_sample/scripts/latency.py
examples/usdt_sample/scripts/latency.py
+1
-1
tools/argdist.py
tools/argdist.py
+1
-1
tools/bashreadline.py
tools/bashreadline.py
+1
-1
tools/biolatency.py
tools/biolatency.py
+1
-1
tools/biosnoop.py
tools/biosnoop.py
+1
-1
tools/biotop.py
tools/biotop.py
+1
-1
tools/bitesize.py
tools/bitesize.py
+1
-1
tools/bpflist.py
tools/bpflist.py
+1
-1
tools/btrfsdist.py
tools/btrfsdist.py
+1
-1
tools/btrfsslower.py
tools/btrfsslower.py
+1
-1
tools/cachestat.py
tools/cachestat.py
+1
-1
tools/cachetop.py
tools/cachetop.py
+1
-1
tools/capable.py
tools/capable.py
+1
-1
tools/cpudist.py
tools/cpudist.py
+1
-1
tools/cpuunclaimed.py
tools/cpuunclaimed.py
+1
-1
tools/criticalstat.py
tools/criticalstat.py
+1
-1
tools/dbslower.py
tools/dbslower.py
+1
-1
tools/dbstat.py
tools/dbstat.py
+1
-1
tools/dcsnoop.py
tools/dcsnoop.py
+1
-1
tools/dcstat.py
tools/dcstat.py
+1
-1
tools/deadlock_detector.py
tools/deadlock_detector.py
+1
-1
tools/execsnoop.py
tools/execsnoop.py
+1
-1
tools/ext4dist.py
tools/ext4dist.py
+1
-1
tools/ext4slower.py
tools/ext4slower.py
+1
-1
tools/filelife.py
tools/filelife.py
+1
-1
tools/fileslower.py
tools/fileslower.py
+1
-1
tools/filetop.py
tools/filetop.py
+1
-1
tools/funccount.py
tools/funccount.py
+1
-1
tools/funclatency.py
tools/funclatency.py
+1
-1
tools/funcslower.py
tools/funcslower.py
+1
-1
tools/gethostlatency.py
tools/gethostlatency.py
+1
-1
tools/hardirqs.py
tools/hardirqs.py
+1
-1
tools/inject.py
tools/inject.py
+1
-1
tools/killsnoop.py
tools/killsnoop.py
+1
-1
tools/lib/ucalls.py
tools/lib/ucalls.py
+1
-1
tools/lib/uflow.py
tools/lib/uflow.py
+1
-1
tools/lib/ugc.py
tools/lib/ugc.py
+1
-1
tools/lib/uobjnew.py
tools/lib/uobjnew.py
+1
-1
tools/lib/ustat.py
tools/lib/ustat.py
+1
-1
tools/lib/uthreads.py
tools/lib/uthreads.py
+1
-1
tools/llcstat.py
tools/llcstat.py
+1
-1
tools/mdflush.py
tools/mdflush.py
+1
-1
tools/memleak.py
tools/memleak.py
+1
-1
tools/mountsnoop.py
tools/mountsnoop.py
+1
-1
tools/mysqld_qslower.py
tools/mysqld_qslower.py
+1
-1
tools/nfsdist.py
tools/nfsdist.py
+1
-1
tools/nfsslower.py
tools/nfsslower.py
+1
-1
tools/offcputime.py
tools/offcputime.py
+1
-1
tools/offwaketime.py
tools/offwaketime.py
+1
-1
tools/old/bashreadline.py
tools/old/bashreadline.py
+1
-1
tools/old/biosnoop.py
tools/old/biosnoop.py
+1
-1
tools/old/filelife.py
tools/old/filelife.py
+1
-1
tools/old/gethostlatency.py
tools/old/gethostlatency.py
+1
-1
tools/old/killsnoop.py
tools/old/killsnoop.py
+1
-1
tools/old/memleak.py
tools/old/memleak.py
+1
-1
tools/old/offcputime.py
tools/old/offcputime.py
+1
-1
tools/old/offwaketime.py
tools/old/offwaketime.py
+1
-1
tools/old/oomkill.py
tools/old/oomkill.py
+1
-1
tools/old/opensnoop.py
tools/old/opensnoop.py
+1
-1
tools/old/profile.py
tools/old/profile.py
+1
-1
tools/old/softirqs.py
tools/old/softirqs.py
+1
-1
tools/old/stackcount.py
tools/old/stackcount.py
+1
-1
tools/old/stacksnoop.py
tools/old/stacksnoop.py
+1
-1
tools/old/statsnoop.py
tools/old/statsnoop.py
+1
-1
tools/old/syncsnoop.py
tools/old/syncsnoop.py
+1
-1
tools/old/tcpaccept.py
tools/old/tcpaccept.py
+1
-1
tools/old/tcpconnect.py
tools/old/tcpconnect.py
+1
-1
tools/old/wakeuptime.py
tools/old/wakeuptime.py
+1
-1
tools/oomkill.py
tools/oomkill.py
+1
-1
tools/opensnoop.py
tools/opensnoop.py
+1
-1
tools/pidpersec.py
tools/pidpersec.py
+1
-1
tools/profile.py
tools/profile.py
+1
-1
tools/runqlat.py
tools/runqlat.py
+1
-1
tools/runqlen.py
tools/runqlen.py
+1
-1
tools/runqslower.py
tools/runqslower.py
+1
-1
tools/shmsnoop.py
tools/shmsnoop.py
+1
-1
tools/slabratetop.py
tools/slabratetop.py
+1
-1
tools/sofdsnoop.py
tools/sofdsnoop.py
+1
-1
tools/softirqs.py
tools/softirqs.py
+1
-1
tools/solisten.py
tools/solisten.py
+1
-1
tools/sslsniff.py
tools/sslsniff.py
+1
-1
tools/stackcount.py
tools/stackcount.py
+1
-1
tools/statsnoop.py
tools/statsnoop.py
+1
-1
tools/syncsnoop.py
tools/syncsnoop.py
+1
-1
tools/syscount.py
tools/syscount.py
+1
-1
tools/tcpaccept.py
tools/tcpaccept.py
+1
-1
tools/tcpconnect.py
tools/tcpconnect.py
+1
-1
tools/tcpconnlat.py
tools/tcpconnlat.py
+1
-1
tools/tcpdrop.py
tools/tcpdrop.py
+1
-1
tools/tcplife.py
tools/tcplife.py
+1
-1
tools/tcpretrans.py
tools/tcpretrans.py
+1
-1
tools/tcpstates.py
tools/tcpstates.py
+1
-1
tools/tcpsubnet.py
tools/tcpsubnet.py
+1
-1
tools/tcptop.py
tools/tcptop.py
+1
-1
tools/tcptracer.py
tools/tcptracer.py
+1
-1
tools/tplist.py
tools/tplist.py
+1
-1
tools/trace.py
tools/trace.py
+1
-1
tools/ttysnoop.py
tools/ttysnoop.py
+1
-1
tools/vfscount.py
tools/vfscount.py
+1
-1
tools/vfsstat.py
tools/vfsstat.py
+1
-1
tools/wakeuptime.py
tools/wakeuptime.py
+1
-1
tools/xfsdist.py
tools/xfsdist.py
+1
-1
tools/xfsslower.py
tools/xfsslower.py
+1
-1
tools/zfsdist.py
tools/zfsdist.py
+1
-1
tools/zfsslower.py
tools/zfsslower.py
+1
-1
No files found.
examples/hello_world.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# Copyright (c) PLUMgrid, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
...
...
examples/networking/distributed_bridge/main.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# Copyright (c) PLUMgrid, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
...
...
examples/networking/distributed_bridge/tunnel.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# Copyright (c) PLUMgrid, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
...
...
examples/networking/distributed_bridge/tunnel_mesh.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# Copyright (c) PLUMgrid, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
...
...
examples/networking/dns_matching/dns_matching.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
from
__future__
import
print_function
from
bcc
import
BPF
...
...
examples/networking/http_filter/http-parse-complete.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
#Bertrone Matteo - Polytechnic of Turin
#November 2015
...
...
examples/networking/http_filter/http-parse-simple.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
#Bertrone Matteo - Polytechnic of Turin
#November 2015
...
...
examples/networking/neighbor_sharing/tc_neighbor_sharing.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# Copyright (c) PLUMgrid, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
...
...
examples/networking/simple_tc.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# Copyright (c) PLUMgrid, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
...
...
examples/networking/tc_perf_event.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# tc_perf_event.py Output skb and meta data through perf event
#
...
...
examples/networking/tunnel_monitor/main.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# Copyright (c) PLUMgrid, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
...
...
examples/networking/tunnel_monitor/monitor.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# Copyright (c) PLUMgrid, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
...
...
examples/networking/vlan_filter/data-plane-tracing.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
from
__future__
import
print_function
from
bcc
import
BPF
...
...
examples/networking/vlan_learning/vlan_learning.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# Copyright (c) PLUMgrid, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
...
...
examples/networking/xdp/xdp_drop_count.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# xdp_drop_count.py Drop incoming packets on XDP layer and count for which
# protocol type
...
...
examples/networking/xdp/xdp_macswap_count.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# xdp_macswap_count.py Swap Source and Destination MAC addresses on
# incoming packets and transmit packets back on
...
...
examples/networking/xdp/xdp_redirect_cpu.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# xdp_redirect_cpu.py Redirect the incoming packet to the specific CPU
#
...
...
examples/networking/xdp/xdp_redirect_map.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# xdp_redirect_map.py Redirect the incoming packet to another interface
# with the helper: bpf_redirect_map()
...
...
examples/tracing/bitehist.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# bitehist.py Block I/O size histogram.
# For Linux, uses BCC, eBPF. Embedded C.
...
...
examples/tracing/disksnoop.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# disksnoop.py Trace block device I/O: basic version of iosnoop.
# For Linux, uses BCC, eBPF. Embedded C.
...
...
examples/tracing/hello_fields.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# This is a Hello World example that formats output as fields.
...
...
examples/tracing/hello_perf_output.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# This is a Hello World example that uses BPF_PERF_OUTPUT.
...
...
examples/tracing/kvm_hypercall.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# kvm_hypercall.py
#
...
...
examples/tracing/mallocstacks.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# mallocstacks Trace malloc() calls in a process and print the full
# stack trace for all callsites.
...
...
examples/tracing/mysqld_query.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# mysqld_query Trace MySQL server queries. Example of USDT tracing.
# For Linux, uses BCC, BPF. Embedded C.
...
...
examples/tracing/nodejs_http_server.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# nodejs_http_server Basic example of node.js USDT tracing.
# For Linux, uses BCC, BPF. Embedded C.
...
...
examples/tracing/stacksnoop.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# stacksnoop Trace a kernel function and print all kernel stack traces.
# For Linux, uses BCC, eBPF, and currently x86_64 only. Inline C.
...
...
examples/tracing/strlen_count.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# strlen_count Trace strlen() and print a frequency count of strings.
# For Linux, uses BCC, eBPF. Embedded C.
...
...
examples/tracing/strlen_hist.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# strlen_hist.py Histogram of system-wide strlen return values
...
...
examples/tracing/strlen_snoop.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# strlen_snoop Trace strlen() library function for a given PID.
# For Linux, uses BCC, eBPF. Embedded C.
...
...
examples/tracing/sync_timing.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# sync_timing.py Trace time between syncs.
# For Linux, uses BCC, eBPF. Embedded C.
...
...
examples/tracing/task_switch.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# Copyright (c) PLUMgrid, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
...
...
examples/tracing/tcpv4connect.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# tcpv4connect Trace TCP IPv4 connect()s.
# For Linux, uses BCC, eBPF. Embedded C.
...
...
examples/tracing/trace_fields.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# Copyright (c) PLUMgrid, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
...
...
examples/tracing/trace_perf_output.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# Copyright (c) PLUMgrid, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
...
...
examples/tracing/urandomread-explicit.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# urandomread-explicit Example of instrumenting a kernel tracepoint.
# For Linux, uses BCC, BPF. Embedded C.
...
...
examples/tracing/urandomread.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# urandomread Example of instrumenting a kernel tracepoint.
# For Linux, uses BCC, BPF. Embedded C.
...
...
examples/tracing/vfsreadlat.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# vfsreadlat.py VFS read latency distribution.
# For Linux, uses BCC, eBPF. See .c file.
...
...
examples/usdt_sample/scripts/lat_avg.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
import
argparse
from
time
import
sleep
,
strftime
from
sys
import
argv
...
...
examples/usdt_sample/scripts/lat_dist.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
import
argparse
from
time
import
sleep
,
strftime
from
sys
import
argv
...
...
examples/usdt_sample/scripts/latency.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
import
argparse
from
time
import
sleep
from
sys
import
argv
...
...
tools/argdist.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# argdist Trace a function and display a distribution of its
# parameter values as a histogram or frequency count.
...
...
tools/bashreadline.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# bashreadline Print entered bash commands from all running shells.
# For Linux, uses BCC, eBPF. Embedded C.
...
...
tools/biolatency.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# biolatency Summarize block device I/O latency as a histogram.
...
...
tools/biosnoop.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# biosnoop Trace block device I/O and print details including issuing PID.
...
...
tools/biotop.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# biotop block device (disk) I/O by process.
...
...
tools/bitesize.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# bitehist.py Block I/O size histogram.
# For Linux, uses BCC, eBPF. See .c file.
...
...
tools/bpflist.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# bpflist Display processes currently using BPF programs and maps,
# pinned BPF programs and maps, and enabled probes.
...
...
tools/btrfsdist.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# btrfsdist Summarize btrfs operation latency.
...
...
tools/btrfsslower.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# btrfsslower Trace slow btrfs operations.
...
...
tools/cachestat.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# cachestat Count cache kernel function calls.
# For Linux, uses BCC, eBPF. See .c file.
...
...
tools/cachetop.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# cachetop Count cache kernel function calls per processes
...
...
tools/capable.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# capable Trace security capabilitiy checks (cap_capable()).
...
...
tools/cpudist.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# cpudist Summarize on- and off-CPU time per task as a histogram.
...
...
tools/cpuunclaimed.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# cpuunclaimed Sample CPU run queues and calculate unclaimed idle CPU.
...
...
tools/criticalstat.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# criticalstat Trace long critical sections (IRQs or preemption disabled)
...
...
tools/dbslower.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# dbslower Trace MySQL and PostgreSQL queries slower than a threshold.
#
...
...
tools/dbstat.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# dbstat Display a histogram of MySQL and PostgreSQL query latencies.
#
...
...
tools/dcsnoop.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# dcsnoop Trace directory entry cache (dcache) lookups.
...
...
tools/dcstat.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# dcstat Directory entry cache (dcache) stats.
...
...
tools/deadlock_detector.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# deadlock_detector Detects potential deadlocks (lock order inversions)
# on a running process. For Linux, uses BCC, eBPF.
...
...
tools/execsnoop.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# execsnoop Trace new processes via exec() syscalls.
...
...
tools/ext4dist.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# ext4dist Summarize ext4 operation latency.
...
...
tools/ext4slower.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# ext4slower Trace slow ext4 operations.
...
...
tools/filelife.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# filelife Trace the lifespan of short-lived files.
...
...
tools/fileslower.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# fileslower Trace slow synchronous file reads and writes.
...
...
tools/filetop.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# filetop file reads and writes by process.
...
...
tools/funccount.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# funccount Count functions, tracepoints, and USDT probes.
...
...
tools/funclatency.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# funclatency Time functions and print latency as a histogram.
...
...
tools/funcslower.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# funcslower Trace slow kernel or user function calls.
...
...
tools/gethostlatency.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# gethostlatency Show latency for getaddrinfo/gethostbyname[2] calls.
# For Linux, uses BCC, eBPF. Embedded C.
...
...
tools/hardirqs.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# hardirqs Summarize hard IRQ (interrupt) event time.
...
...
tools/inject.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# This script generates a BPF program with structure inspired by trace.py. The
# generated program operates on PID-indexed stacks. Generally speaking,
...
...
tools/killsnoop.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# killsnoop Trace signals issued by the kill() syscall.
...
...
tools/lib/ucalls.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# ucalls Summarize method calls in high-level languages and/or system calls.
...
...
tools/lib/uflow.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# uflow Trace method execution flow in high-level languages.
...
...
tools/lib/ugc.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# ugc Summarize garbage collection events in high-level languages.
...
...
tools/lib/uobjnew.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# uobjnew Summarize object allocations in high-level languages.
...
...
tools/lib/ustat.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# ustat Activity stats from high-level languages, including exceptions,
...
...
tools/lib/uthreads.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# uthreads Trace thread creation/destruction events in high-level languages.
...
...
tools/llcstat.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# llcstat.py Summarize cache references and cache misses by PID.
# Cache reference and cache miss are corresponding events defined in
...
...
tools/mdflush.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# mdflush Trace md flush events.
...
...
tools/memleak.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# memleak Trace and display outstanding allocations to detect
# memory leaks in user-mode processes and the kernel.
...
...
tools/mountsnoop.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# mountsnoop Trace mount() and umount syscalls.
# For Linux, uses BCC, eBPF. Embedded C.
...
...
tools/mysqld_qslower.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# mysqld_qslower MySQL server queries slower than a threshold.
# For Linux, uses BCC, BPF. Embedded C.
...
...
tools/nfsdist.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# nfsdist Summarize NFS operation latency
...
...
tools/nfsslower.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# nfsslower Trace slow NFS operations
...
...
tools/offcputime.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# offcputime Summarize off-CPU time by stack trace
# For Linux, uses BCC, eBPF.
...
...
tools/offwaketime.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# offwaketime Summarize blocked time by kernel off-CPU stack + waker stack
# For Linux, uses BCC, eBPF.
...
...
tools/old/bashreadline.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# bashreadline Print entered bash commands from all running shells.
# For Linux, uses BCC, eBPF. Embedded C.
...
...
tools/old/biosnoop.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# biosnoop Trace block device I/O and print details including issuing PID.
...
...
tools/old/filelife.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# filelife Trace the lifespan of short-lived files.
...
...
tools/old/gethostlatency.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# gethostlatency Show latency for getaddrinfo/gethostbyname[2] calls.
# For Linux, uses BCC, eBPF. Embedded C.
...
...
tools/old/killsnoop.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# killsnoop Trace signals issued by the kill() syscall.
...
...
tools/old/memleak.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# memleak Trace and display outstanding allocations to detect
# memory leaks in user-mode processes and the kernel.
...
...
tools/old/offcputime.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# offcputime Summarize off-CPU time by kernel stack trace
# For Linux, uses BCC, eBPF.
...
...
tools/old/offwaketime.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# offwaketime Summarize blocked time by kernel off-CPU stack + waker stack
# For Linux, uses BCC, eBPF.
...
...
tools/old/oomkill.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# oomkill Trace oom_kill_process(). For Linux, uses BCC, eBPF.
#
...
...
tools/old/opensnoop.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# opensnoop Trace open() syscalls.
...
...
tools/old/profile.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# profile Profile CPU usage by sampling stack traces at a timed interval.
...
...
tools/old/softirqs.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# softirqs Summarize soft IRQ (interrupt) event time.
...
...
tools/old/stackcount.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# stackcount Count kernel function calls and their stack traces.
# For Linux, uses BCC, eBPF.
...
...
tools/old/stacksnoop.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# stacksnoop Trace a kernel function and print all kernel stack traces.
# For Linux, uses BCC, eBPF, and currently x86_64 only. Inline C.
...
...
tools/old/statsnoop.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# statsnoop Trace stat() syscalls.
...
...
tools/old/syncsnoop.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# syncsnoop Trace sync() syscall.
...
...
tools/old/tcpaccept.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# tcpaccept Trace TCP accept()s.
...
...
tools/old/tcpconnect.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# tcpconnect Trace TCP connect()s.
...
...
tools/old/wakeuptime.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# wakeuptime Summarize sleep to wakeup time by waker kernel stack
# For Linux, uses BCC, eBPF.
...
...
tools/oomkill.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# oomkill Trace oom_kill_process(). For Linux, uses BCC, eBPF.
#
...
...
tools/opensnoop.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# opensnoop Trace open() syscalls.
...
...
tools/pidpersec.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# pidpersec Count new processes (via fork).
...
...
tools/profile.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# profile Profile CPU usage by sampling stack traces at a timed interval.
...
...
tools/runqlat.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# runqlat Run queue (scheduler) latency as a histogram.
...
...
tools/runqlen.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# runqlen Summarize scheduler run queue length as a histogram.
...
...
tools/runqslower.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# runqslower Trace long process scheduling delays.
...
...
tools/shmsnoop.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# shmsnoop Trace shm*() syscalls.
...
...
tools/slabratetop.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# slabratetop Summarize kmem_cache_alloc() calls.
...
...
tools/sofdsnoop.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# sofdsnoop traces file descriptors passed via socket
...
...
tools/softirqs.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# softirqs Summarize soft IRQ (interrupt) event time.
...
...
tools/solisten.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# solisten Trace TCP listen events
# For Linux, uses BCC, eBPF. Embedded C.
...
...
tools/sslsniff.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# sslsniff Captures data on read/recv or write/send functions of OpenSSL,
# GnuTLS and NSS
...
...
tools/stackcount.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# stackcount Count events and their stack traces.
# For Linux, uses BCC, eBPF.
...
...
tools/statsnoop.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# statsnoop Trace stat() syscalls.
...
...
tools/syncsnoop.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# syncsnoop Trace sync() syscall.
...
...
tools/syscount.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# syscount Summarize syscall counts and latencies.
#
...
...
tools/tcpaccept.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# tcpaccept Trace TCP accept()s.
...
...
tools/tcpconnect.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# tcpconnect Trace TCP connect()s.
...
...
tools/tcpconnlat.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# tcpconnlat Trace TCP active connection latency (connect).
...
...
tools/tcpdrop.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# tcpdrop Trace TCP kernel-dropped packets/segments.
...
...
tools/tcplife.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# tcplife Trace the lifespan of TCP sessions and summarize.
...
...
tools/tcpretrans.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# tcpretrans Trace or count TCP retransmits and TLPs.
...
...
tools/tcpstates.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# -*- coding: utf-8 -*-
# @lint-avoid-python-3-compatibility-imports
#
...
...
tools/tcpsubnet.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# tcpsubnet Summarize TCP bytes sent to different subnets.
...
...
tools/tcptop.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# tcptop Summarize TCP send/recv throughput by host.
...
...
tools/tcptracer.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# tcpv4tracer Trace TCP connections.
# For Linux, uses BCC, eBPF. Embedded C.
...
...
tools/tplist.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# tplist Display kernel tracepoints or USDT probes and their formats.
#
...
...
tools/trace.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# trace Trace a function and print a trace message based on its
# parameters, with an optional filter.
...
...
tools/ttysnoop.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# ttysnoop Watch live output from a tty or pts device.
...
...
tools/vfscount.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# vfscount Count VFS calls ("vfs_*").
...
...
tools/vfsstat.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# vfsstat Count some VFS calls.
...
...
tools/wakeuptime.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
#
# wakeuptime Summarize sleep to wakeup time by waker kernel stack
# For Linux, uses BCC, eBPF.
...
...
tools/xfsdist.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# xfsdist Summarize XFS operation latency.
...
...
tools/xfsslower.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# xfsslower Trace slow XFS operations.
...
...
tools/zfsdist.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# zfsdist Summarize ZFS operation latency.
...
...
tools/zfsslower.py
View file @
cc01a9cd
#!/usr/bin/
env
python
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# zfsslower Trace slow ZFS operations.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment