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
aacef040
Commit
aacef040
authored
Jul 27, 2015
by
4ast
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #91 from iovisor/bcc_export
Include bcc headers in /usr/include
parents
8a9747c9
62af2db2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
src/cc/CMakeLists.txt
src/cc/CMakeLists.txt
+1
-0
src/cc/bpf_common.h
src/cc/bpf_common.h
+7
-1
src/libbpf.h
src/libbpf.h
+6
-1
No files found.
src/cc/CMakeLists.txt
View file @
aacef040
...
...
@@ -44,3 +44,4 @@ target_link_libraries(bpfprog ${clang_libs} ${llvm_libs} LLVMBPFCodeGen)
install
(
TARGETS bpfprog LIBRARY DESTINATION lib
${
LIBSUFFIX
}
)
install
(
DIRECTORY export/ DESTINATION share/bcc/include/bcc
FILES_MATCHING PATTERN
"*.h"
)
install
(
FILES bpf_common.h ../libbpf.h DESTINATION include/bcc
)
src/cc/bpf_common.h
View file @
aacef040
...
...
@@ -13,15 +13,19 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#ifndef BPF_COMMON_H
#define BPF_COMMON_H
#include <stdint.h>
#include <stdlib.h>
#ifdef __cplusplus
extern
"C"
{
#endif
void
*
bpf_module_create
(
const
char
*
filename
,
const
char
*
proto_filename
,
unsigned
flags
);
void
*
bpf_module_create_from_string
(
const
char
*
text
,
unsigned
flags
);
void
bpf_module_destroy
(
void
*
program
);
char
*
bpf_module_license
(
void
*
program
);
unsigned
bpf_module_kern_version
(
void
*
program
);
...
...
@@ -34,3 +38,5 @@ const char * bpf_table_leaf_desc(void *program, const char *table_name);
#ifdef __cplusplus
}
#endif
#endif
src/libbpf.h
View file @
aacef040
...
...
@@ -15,7 +15,10 @@
*/
/* eBPF mini library */
#pragma once
#ifndef LIBBPF_H
#define LIBBPF_H
#include <linux/bpf.h>
#ifdef __cplusplus
extern
"C"
{
...
...
@@ -210,3 +213,5 @@ extern char bpf_log_buf[LOG_BUF_SIZE];
#ifdef __cplusplus
}
#endif
#endif
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