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
73e2f2d7
Commit
73e2f2d7
authored
Nov 09, 2017
by
Teng Qin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move BCC debug options to an installed header file
parent
94d15bc8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
17 deletions
+19
-17
src/cc/bpf_module.h
src/cc/bpf_module.h
+15
-0
src/cc/common.h
src/cc/common.h
+0
-14
src/cc/frontends/clang/b_frontend_action.cc
src/cc/frontends/clang/b_frontend_action.cc
+2
-1
src/cc/frontends/clang/loader.cc
src/cc/frontends/clang/loader.cc
+1
-1
src/python/bcc/__init__.py
src/python/bcc/__init__.py
+1
-1
No files found.
src/cc/bpf_module.h
View file @
73e2f2d7
...
...
@@ -33,6 +33,21 @@ class Type;
}
namespace
ebpf
{
// Options to enable different debug logging.
enum
{
// Debug output compiled LLVM IR.
DEBUG_LLVM_IR
=
0x1
,
// Debug output loaded BPF bytecode and register state on branches.
DEBUG_BPF
=
0x2
,
// Debug output pre-processor result.
DEBUG_PREPROCESSOR
=
0x4
,
// Debug output ASM instructions embedded with source.
DEBUG_SOURCE
=
0x8
,
// Debug output register state on all instructions in addition to DEBUG_BPF.
DEBUG_BPF_REGISTER_STATE
=
0x10
,
};
class
TableDesc
;
class
TableStorage
;
class
BLoader
;
...
...
src/cc/common.h
View file @
73e2f2d7
...
...
@@ -23,20 +23,6 @@
namespace
ebpf
{
// debug flags
enum
{
// Debug output compiled LLVM IR.
DEBUG_LLVM_IR
=
0x1
,
// Debug output loaded BPF bytecode and register state on branches.
DEBUG_BPF
=
0x2
,
// Debug output pre-processor result.
DEBUG_PREPROCESSOR
=
0x4
,
// Debug output ASM instructions embedded with source.
DEBUG_SOURCE
=
0x8
,
// Debug output register state on all instructions in addition to DEBUG_BPF.
DEBUG_BPF_REGISTER_STATE
=
0x16
,
};
template
<
class
T
,
class
...
Args
>
typename
std
::
enable_if
<!
std
::
is_array
<
T
>::
value
,
std
::
unique_ptr
<
T
>>::
type
make_unique
(
Args
&&
...
args
)
{
...
...
src/cc/frontends/clang/b_frontend_action.cc
View file @
73e2f2d7
...
...
@@ -26,8 +26,9 @@
#include <clang/Rewrite/Core/Rewriter.h>
#include "b_frontend_action.h"
#include "
loader
.h"
#include "
bpf_module
.h"
#include "common.h"
#include "loader.h"
#include "table_storage.h"
#include "libbpf.h"
...
...
src/cc/frontends/clang/loader.cc
View file @
73e2f2d7
...
...
@@ -49,8 +49,8 @@
#include <llvm/IR/Module.h>
#include "common.h"
#include "bcc_exception.h"
#include "bpf_module.h"
#include "exported_files.h"
#include "kbuild_helper.h"
#include "b_frontend_action.h"
...
...
src/python/bcc/__init__.py
View file @
73e2f2d7
...
...
@@ -50,7 +50,7 @@ DEBUG_PREPROCESSOR = 0x4
# Debug output ASM instructions embedded with source.
DEBUG_SOURCE
=
0x8
#Debug output register state on all instructions in addition to DEBUG_BPF.
DEBUG_BPF_REGISTER_STATE
=
0x1
6
DEBUG_BPF_REGISTER_STATE
=
0x1
0
class
SymbolCache
(
object
):
def
__init__
(
self
,
pid
):
...
...
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