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
d38d3f19
Commit
d38d3f19
authored
Jan 26, 2016
by
4ast
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #319 from iovisor/cmake_fixes
Updates to use cmake GLOB and libbcc.so.0 in python init
parents
f50ca1fa
5bd0eb21
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
19 additions
and
23 deletions
+19
-23
examples/tracing/CMakeLists.txt
examples/tracing/CMakeLists.txt
+6
-6
examples/tracing/bitehist_example.txt
examples/tracing/bitehist_example.txt
+1
-1
examples/tracing/tcpv4connect.py
examples/tracing/tcpv4connect.py
+0
-0
examples/tracing/tcpv4connect_example.txt
examples/tracing/tcpv4connect_example.txt
+2
-2
man/man8/CMakeLists.txt
man/man8/CMakeLists.txt
+1
-3
src/python/bcc/__init__.py
src/python/bcc/__init__.py
+1
-1
tools/CMakeLists.txt
tools/CMakeLists.txt
+8
-10
tools/biolatency.py
tools/biolatency.py
+0
-0
tools/biosnoop.py
tools/biosnoop.py
+0
-0
tools/funccount.py
tools/funccount.py
+0
-0
tools/funclatency.py
tools/funclatency.py
+0
-0
tools/hardirqs.py
tools/hardirqs.py
+0
-0
tools/killsnoop.py
tools/killsnoop.py
+0
-0
tools/offcputime.py
tools/offcputime.py
+0
-0
tools/opensnoop.py
tools/opensnoop.py
+0
-0
tools/pidpersec.py
tools/pidpersec.py
+0
-0
tools/softirqs.py
tools/softirqs.py
+0
-0
tools/stackcount.py
tools/stackcount.py
+0
-0
tools/stacksnoop.py
tools/stacksnoop.py
+0
-0
tools/syncsnoop.py
tools/syncsnoop.py
+0
-0
tools/tcpaccept.py
tools/tcpaccept.py
+0
-0
tools/tcpconnect.py
tools/tcpconnect.py
+0
-0
tools/vfscount.py
tools/vfscount.py
+0
-0
tools/vfsstat.py
tools/vfsstat.py
+0
-0
No files found.
examples/tracing/CMakeLists.txt
View file @
d38d3f19
set
(
EXAMPLE_FILES bitehist.c bitehist_example.txt disksnoop.c
disksnoop_example.txt task_switch.c tcpv4connect tcpv4connect_example.txt
vfsreadlat.c vfsreadlat_example
.txt
)
set
(
EXAMPLE_PROGRAMS bitehist.py disksnoop.py task_switch.py trace_fields.py vfsreadlat.py
)
install
(
FILES
${
EXAMPLE
_FILES
}
DESTINATION share/bcc/examples/tracing
)
install
(
PROGRAMS
${
EXAMPLE_PROGRAM
S
}
DESTINATION share/bcc/examples/tracing
)
file
(
GLOB C_FILES *.c
)
file
(
GLOB PY_FILES *.py
)
file
(
GLOB TXT_FILES *
.txt
)
install
(
PROGRAMS
${
PY_FILES
}
DESTINATION share/bcc/examples/tracing
)
install
(
FILES
${
C
_FILES
}
DESTINATION share/bcc/examples/tracing
)
install
(
FILES
${
TXT_FILE
S
}
DESTINATION share/bcc/examples/tracing
)
examples/tracing/bitehist_example.txt
View file @
d38d3f19
...
...
@@ -3,7 +3,7 @@ Demonstrations of bitehist.py, the Linux eBPF/bcc version.
This prints a power-of-2 histogram to show the block I/O size distribution.
A summary is printed after Ctrl-C is hit.
# ./bitehist.py
# ./bitehist.py
Tracing... Hit Ctrl-C to end.
^C
kbytes : count distribution
...
...
examples/tracing/tcpv4connect
→
examples/tracing/tcpv4connect
.py
View file @
d38d3f19
File moved
examples/tracing/tcpv4connect_example.txt
View file @
d38d3f19
Demonstrations of tcpv4connect, the Linux eBPF/bcc version.
Demonstrations of tcpv4connect
.py
, the Linux eBPF/bcc version.
This example traces the kernel function performing active TCP IPv4 connections
(eg, via a connect() syscall; accept() are passive connections). Some example
output (IP addresses changed to protect the innocent):
# ./tcpv4connect
# ./tcpv4connect
.py
PID COMM SADDR DADDR DPORT
1479 telnet 127.0.0.1 127.0.0.1 23
1469 curl 10.201.219.236 54.245.105.25 80
...
...
man/man8/CMakeLists.txt
View file @
d38d3f19
set
(
FILES biolatency.8 biosnoop.8 funccount.8 funclatency.8 hardirqs.8
killsnoop.8 opensnoop.8 pidpersec.8 softirqs.8 syncsnoop.8 tcpaccept.8
tcpconnect.8 vfscount.8 vfsstat.8
)
file
(
GLOB FILES *.8
)
install
(
FILES
${
FILES
}
DESTINATION share/bcc/man/man8
)
src/python/bcc/__init__.py
View file @
d38d3f19
...
...
@@ -24,7 +24,7 @@ from subprocess import Popen, PIPE
import
sys
basestring
=
(
unicode
if
sys
.
version_info
[
0
]
<
3
else
str
)
lib
=
ct
.
CDLL
(
"libbcc.so"
)
lib
=
ct
.
CDLL
(
"libbcc.so
.0
"
)
# keep in sync with bpf_common.h
lib
.
bpf_module_create_b
.
restype
=
ct
.
c_void_p
...
...
tools/CMakeLists.txt
View file @
d38d3f19
set
(
PROGRAMS biolatency biosnoop funccount funclatency hardirqs killsnoop
opensnoop pidpersec softirqs syncsnoop tcpaccept tcpconnect vfscount vfsstat
)
set
(
C_FILES pidpersec.c vfscount.c vfsstat.c
)
set
(
EXAMPLE_FILES biolatency_example.txt funclatency_example.txt
killsnoop_example.txt pidpersec_example.txt syncsnoop_example.txt
tcpconnect_example.txt vfsstat_example.txt biosnoop_example.txt
funccount_example.txt hardirqs_example.txt opensnoop_example.txt
softirqs_example.txt tcpaccept_example.txt vfscount_example.txt
)
install
(
PROGRAMS
${
PROGRAMS
}
DESTINATION share/bcc/tools
)
file
(
GLOB C_FILES *.c
)
file
(
GLOB PY_FILES *.py
)
file
(
GLOB TXT_FILES *.txt
)
foreach
(
FIL
${
PY_FILES
}
)
get_filename_component
(
FIL_WE
${
FIL
}
NAME_WE
)
install
(
PROGRAMS
${
FIL
}
DESTINATION share/bcc/tools RENAME
${
FIL_WE
}
)
endforeach
()
install
(
FILES
${
C_FILES
}
DESTINATION share/bcc/tools
)
install
(
FILES
${
EXAMPLE
_FILES
}
DESTINATION share/bcc/tools/doc
)
install
(
FILES
${
TXT
_FILES
}
DESTINATION share/bcc/tools/doc
)
tools/biolatency
→
tools/biolatency
.py
View file @
d38d3f19
File moved
tools/biosnoop
→
tools/biosnoop
.py
View file @
d38d3f19
File moved
tools/funccount
→
tools/funccount
.py
View file @
d38d3f19
File moved
tools/funclatency
→
tools/funclatency
.py
View file @
d38d3f19
File moved
tools/hardirqs
→
tools/hardirqs
.py
View file @
d38d3f19
File moved
tools/killsnoop
→
tools/killsnoop
.py
View file @
d38d3f19
File moved
tools/offcputime
→
tools/offcputime
.py
View file @
d38d3f19
File moved
tools/opensnoop
→
tools/opensnoop
.py
View file @
d38d3f19
File moved
tools/pidpersec
→
tools/pidpersec
.py
View file @
d38d3f19
File moved
tools/softirqs
→
tools/softirqs
.py
View file @
d38d3f19
File moved
tools/stackcount
→
tools/stackcount
.py
View file @
d38d3f19
File moved
tools/stacksnoop
→
tools/stacksnoop
.py
View file @
d38d3f19
File moved
tools/syncsnoop
→
tools/syncsnoop
.py
View file @
d38d3f19
File moved
tools/tcpaccept
→
tools/tcpaccept
.py
View file @
d38d3f19
File moved
tools/tcpconnect
→
tools/tcpconnect
.py
View file @
d38d3f19
File moved
tools/vfscount
→
tools/vfscount
.py
View file @
d38d3f19
File moved
tools/vfsstat
→
tools/vfsstat
.py
View file @
d38d3f19
File moved
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