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
895aefda
Commit
895aefda
authored
Oct 29, 2018
by
yonghong-song
Committed by
GitHub
Oct 29, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2019 from iovisor/yhs_dev
correct certain tracepoint types in tp frontend action
parents
f3fc87aa
1589a4f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
src/cc/export/helpers.h
src/cc/export/helpers.h
+4
-4
src/cc/frontends/clang/tp_frontend_action.cc
src/cc/frontends/clang/tp_frontend_action.cc
+4
-2
No files found.
src/cc/export/helpers.h
View file @
895aefda
...
...
@@ -427,13 +427,13 @@ static struct bpf_sock *(*bpf_sk_lookup_udp)(void *ctx,
(void *) BPF_FUNC_sk_lookup_udp;
static int (*bpf_sk_release)(struct bpf_sock *sk) =
(void *) BPF_FUNC_sk_release;
static int
bpf_map_push_elem(struct bpf_map
*map, const void *value, u64 flags) =
static int
(*bpf_map_push_elem)(void
*map, const void *value, u64 flags) =
(void *) BPF_FUNC_map_push_elem;
static int
bpf_map_pop_elem(struct bpf_map
*map, void *value) =
static int
(*bpf_map_pop_elem)(void
*map, void *value) =
(void *) BPF_FUNC_map_pop_elem;
static int
bpf_map_peek_elem(struct bpf_map
*map, void *value) =
static int
(*bpf_map_peek_elem)(void
*map, void *value) =
(void *) BPF_FUNC_map_peek_elem;
static int
bpf_msg_push_data(struct sk_buff
*skb, u32 start, u32 len, u64 flags) =
static int
(*bpf_msg_push_data)(void
*skb, u32 start, u32 len, u64 flags) =
(void *) BPF_FUNC_msg_push_data;
/* llvm builtin functions that eBPF C program may use to
...
...
src/cc/frontends/clang/tp_frontend_action.cc
View file @
895aefda
...
...
@@ -121,11 +121,13 @@ static inline field_kind_t _get_field_kind(string const& line,
}
else
if
(
size
==
8
)
{
if
(
field_type
==
"char"
||
field_type
==
"short"
||
field_type
==
"int"
||
field_type
==
"int8_t"
||
field_type
==
"int16_t"
||
field_type
==
"int32_t"
)
field_type
==
"int32_t"
||
field_type
==
"pid_t"
)
field_type
=
"s64"
;
if
(
field_type
==
"unsigned char"
||
field_type
==
"unsigned short"
||
field_type
==
"unsigned int"
||
field_type
==
"uint8_t"
||
field_type
==
"uint16_t"
||
field_type
==
"uint32_t"
)
field_type
==
"uint16_t"
||
field_type
==
"uint32_t"
||
field_type
==
"unsigned"
||
field_type
==
"u32"
||
field_type
==
"uid_t"
||
field_type
==
"gid_t"
)
field_type
=
"u64"
;
}
...
...
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