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
dcf1675a
Commit
dcf1675a
authored
Jan 17, 2017
by
Sasha Goldshtein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trace, argdist: Fix code formatting nits
parent
b630092f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
tools/argdist.py
tools/argdist.py
+1
-1
tools/trace.py
tools/trace.py
+2
-2
No files found.
tools/argdist.py
View file @
dcf1675a
...
@@ -258,7 +258,7 @@ static inline bool %s(char const *ignored, char const *str) {
...
@@ -258,7 +258,7 @@ static inline bool %s(char const *ignored, char const *str) {
char needle[] = %s;
char needle[] = %s;
char haystack[sizeof(needle)];
char haystack[sizeof(needle)];
bpf_probe_read(&haystack, sizeof(haystack), (void *)str);
bpf_probe_read(&haystack, sizeof(haystack), (void *)str);
for (int i = 0; i < sizeof(needle)
-
1; ++i) {
for (int i = 0; i < sizeof(needle)
-
1; ++i) {
if (needle[i] != haystack[i]) {
if (needle[i] != haystack[i]) {
return false;
return false;
}
}
...
...
tools/trace.py
View file @
dcf1675a
...
@@ -221,7 +221,7 @@ static inline bool %s(char const *ignored, uintptr_t str) {
...
@@ -221,7 +221,7 @@ static inline bool %s(char const *ignored, uintptr_t str) {
char needle[] = %s;
char needle[] = %s;
char haystack[sizeof(needle)];
char haystack[sizeof(needle)];
bpf_probe_read(&haystack, sizeof(haystack), (void *)str);
bpf_probe_read(&haystack, sizeof(haystack), (void *)str);
for (int i = 0; i < sizeof(needle)
-
1; ++i) {
for (int i = 0; i < sizeof(needle)
-
1; ++i) {
if (needle[i] != haystack[i]) {
if (needle[i] != haystack[i]) {
return false;
return false;
}
}
...
@@ -362,7 +362,7 @@ BPF_PERF_OUTPUT(%s);
...
@@ -362,7 +362,7 @@ BPF_PERF_OUTPUT(%s);
continue
continue
arg_index
=
int
(
arg
.
replace
(
"arg"
,
""
))
arg_index
=
int
(
arg
.
replace
(
"arg"
,
""
))
arg_ctype
=
self
.
usdt
.
get_probe_arg_ctype
(
arg_ctype
=
self
.
usdt
.
get_probe_arg_ctype
(
self
.
usdt_name
,
arg_index
-
1
)
self
.
usdt_name
,
arg_index
-
1
)
if
not
arg_ctype
:
if
not
arg_ctype
:
self
.
_bail
(
"Unable to determine type of {} "
self
.
_bail
(
"Unable to determine type of {} "
"in the filter"
.
format
(
arg
))
"in the filter"
.
format
(
arg
))
...
...
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