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
439a9f30
Commit
439a9f30
authored
Jul 03, 2015
by
Brenden Blanco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP: rpm packaging
Signed-off-by:
Brenden Blanco
<
bblanco@plumgrid.com
>
parent
3c8c6de4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
CMakeLists.txt
CMakeLists.txt
+2
-0
scripts/bpf_demo.ks.erb
scripts/bpf_demo.ks.erb
+5
-1
src/CMakeLists.txt
src/CMakeLists.txt
+2
-0
No files found.
CMakeLists.txt
View file @
439a9f30
...
...
@@ -13,6 +13,7 @@ if(LIB64)
set
(
LIBSUFFIX 64
)
endif
()
if
(
NOT PYTHON_ONLY
)
find_package
(
BISON
)
find_package
(
FLEX
)
find_package
(
LLVM REQUIRED CONFIG
)
...
...
@@ -42,6 +43,7 @@ ENDFOREACH()
set
(
CMAKE_C_FLAGS
"-Wall"
)
set
(
CMAKE_CXX_FLAGS
"-std=c++11 -Wall"
)
endif
()
add_subdirectory
(
scripts
)
add_subdirectory
(
src
)
...
...
scripts/bpf_demo.ks.erb
View file @
439a9f30
...
...
@@ -108,15 +108,19 @@ chmod +x /usr/local/bin/bpf-llvm-setup
cat > /usr/local/bin/bcc-setup
<
<'
DELIM__
'
#
!/
bin
/
bash
set
-e
-x
git
clone
https:
//
github
.
com
/
svinota
/
pyroute2
.
git
(
cd
pyroute2
;
make
install
)
numcpu=
$(grep
-c
^
processor
/
proc
/
cpuinfo
)
git
clone
https:
//
github
.
com
/
iovisor
/
bcc
.
git
mkdir
bcc
/
build
/
cd
bcc
/
build
/
git
checkout
bblanco_dev
export
PATH=
/opt/local/llvm/bin:$PATH
cmake
..
-DCMAKE_INSTALL_PREFIX=
/usr
make
-j
$
numcpu
make
test
DELIM__
chmod
+
x
/
usr
/
local
/
bin
/
bcc-setup
...
...
src/CMakeLists.txt
View file @
439a9f30
...
...
@@ -7,5 +7,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti")
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
)
include_directories
(
${
CMAKE_CURRENT_BINARY_DIR
}
)
if
(
NOT PYTHON_ONLY
)
add_subdirectory
(
cc
)
endif
()
add_subdirectory
(
python
)
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