Commit dcf1675a authored by Sasha Goldshtein's avatar Sasha Goldshtein

trace, argdist: Fix code formatting nits

parent b630092f
...@@ -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;
} }
......
...@@ -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))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment