forked from xujianming2017/bcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates to use cmake GLOB and libbcc.so.0 in python init
In order not to miss some files in the tools and examples source directories, use cmake file(GLOB) to collect relevant files. To ease the implementation, move all tools to be .py suffixed in the source, but sans-suffix in the installation (same as before) In addition, to prevent future API breakage confusion (though of course that may still happen), use CDLL("libbcc.so.0") in the bcc __init__.py. Fixes: iovisor#317 Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
- Loading branch information
Brenden Blanco
committed
Jan 27, 2016
1 parent
f50ca1f
commit 5bd0eb2
Showing
24 changed files
with
19 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
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_PROGRAMS} 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_FILES} DESTINATION share/bcc/examples/tracing) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
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) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.