-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor http2_grpc to leverage tail calls
- Loading branch information
1 parent
85b6cdd
commit 380fbc1
Showing
31 changed files
with
1,254 additions
and
761 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#ifndef K_TRACER_TAILCALL_H | ||
#define K_TRACER_TAILCALL_H | ||
|
||
#include "vmlinux.h" | ||
#include "bpf_helpers.h" | ||
|
||
struct bpf_map_def SEC("maps") jump_table = { | ||
.type = BPF_MAP_TYPE_PROG_ARRAY, | ||
.key_size = sizeof(__u32), | ||
.value_size = sizeof(__u32), | ||
.max_entries = 8, | ||
}; | ||
|
||
enum { | ||
k_tail_protocol_http = 0, | ||
k_tail_protocol_http2 = 1, | ||
k_tail_protocol_tcp = 2, | ||
k_tail_protocol_http2_grpc_frames = 3, | ||
k_tail_protocol_http2_grpc_handle_start_frame = 4, | ||
k_tail_protocol_http2_grpc_handle_end_frame = 5, | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.