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
b83ccf35
Commit
b83ccf35
authored
Mar 29, 2016
by
Jean-Tiare Le Bigot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move endian flags to kbuild_helper
parent
354ee0c0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
src/cc/frontends/clang/kbuild_helper.cc
src/cc/frontends/clang/kbuild_helper.cc
+3
-0
src/python/bcc/__init__.py
src/python/bcc/__init__.py
+0
-6
No files found.
src/cc/frontends/clang/kbuild_helper.cc
View file @
b83ccf35
...
...
@@ -82,6 +82,9 @@ int KBuildHelper::get_flags(const char *uname_machine, vector<string> *cflags) {
cflags
->
push_back
(
"-include"
);
cflags
->
push_back
(
"./include/linux/kconfig.h"
);
cflags
->
push_back
(
"-D__KERNEL__"
);
cflags
->
push_back
(
"-D__HAVE_BUILTIN_BSWAP16__"
);
cflags
->
push_back
(
"-D__HAVE_BUILTIN_BSWAP32__"
);
cflags
->
push_back
(
"-D__HAVE_BUILTIN_BSWAP64__"
);
cflags
->
push_back
(
"-Wno-unused-value"
);
cflags
->
push_back
(
"-Wno-pointer-sign"
);
...
...
src/python/bcc/__init__.py
View file @
b83ccf35
...
...
@@ -40,11 +40,6 @@ ksyms = []
ksym_names
=
{}
ksym_loaded
=
0
_kprobe_limit
=
1000
BASE_CFLAGS
=
[
'-D__HAVE_BUILTIN_BSWAP16__'
,
'-D__HAVE_BUILTIN_BSWAP32__'
,
'-D__HAVE_BUILTIN_BSWAP64__'
,
]
@
atexit
.
register
def
cleanup_kprobes
():
...
...
@@ -146,7 +141,6 @@ class BPF(object):
self
.
debug
=
debug
self
.
funcs
=
{}
self
.
tables
=
{}
cflags
=
BASE_CFLAGS
+
cflags
cflags_array
=
(
ct
.
c_char_p
*
len
(
cflags
))()
for
i
,
s
in
enumerate
(
cflags
):
cflags_array
[
i
]
=
s
.
encode
(
"ascii"
)
if
text
:
...
...
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