Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bpftrace
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
bpftrace
Commits
35b49f6b
Commit
35b49f6b
authored
Nov 11, 2017
by
Alastair Robertson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass new log_level parameter into bpf_prog_load
parent
7ea240dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/attached_probe.cpp
src/attached_probe.cpp
+2
-1
No files found.
src/attached_probe.cpp
View file @
35b49f6b
...
...
@@ -158,12 +158,13 @@ void AttachedProbe::load_prog()
int
prog_len
=
std
::
get
<
1
>
(
func_
);
const
char
*
license
=
"GPL"
;
unsigned
kern_version
=
kernel_version
();
int
log_level
=
0
;
char
*
log_buf
=
nullptr
;
unsigned
log_buf_size
=
0
;
progfd_
=
bpf_prog_load
(
progtype
(
probe_
.
type
),
probe_
.
name
.
c_str
(),
reinterpret_cast
<
struct
bpf_insn
*>
(
insns
),
prog_len
,
license
,
kern_version
,
log_buf
,
log_buf_size
);
license
,
kern_version
,
log_
level
,
log_
buf
,
log_buf_size
);
if
(
progfd_
<
0
)
throw
std
::
runtime_error
(
"Error loading program: "
+
probe_
.
name
);
...
...
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