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
dcf2344e
Commit
dcf2344e
authored
May 03, 2017
by
4ast
Committed by
GitHub
May 03, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1151 from goldshtn/usdt-workaround
cc: Work around verifier error when reading USDT probe arguments
parents
879bff25
2070a2ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/cc/usdt.cc
src/cc/usdt.cc
+2
-2
No files found.
src/cc/usdt.cc
View file @
dcf2344e
...
...
@@ -152,10 +152,10 @@ bool Probe::usdt_getarg(std::ostream &stream) {
for
(
size_t
arg_n
=
0
;
arg_n
<
arg_count
;
++
arg_n
)
{
std
::
string
ctype
=
largest_arg_type
(
arg_n
);
std
::
string
cptr
=
tfm
::
format
(
"*((%s *)dest)"
,
ctype
);
std
::
string
cptr
=
tfm
::
format
(
"*((
volatile
%s *)dest)"
,
ctype
);
tfm
::
format
(
stream
,
"static inline int _bpf_readarg_%s_%d("
"static
__always_
inline int _bpf_readarg_%s_%d("
"struct pt_regs *ctx, void *dest, size_t len) {
\n
"
" if (len != sizeof(%s)) return -1;
\n
"
,
attached_to_
.
value
(),
arg_n
+
1
,
ctype
);
...
...
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