|
|
@@ -306,6 +306,7 @@ handleStream(struct pt_regs *ctx, void *stream_ptr, struct go_iface *go_context)
|
|
|
// This is only compatible with versions < 1.69.0 of the Server.
|
|
|
SEC("uprobe/server_handleStream")
|
|
|
int uprobe_server_handleStream(struct pt_regs *ctx) {
|
|
|
+ return 0;
|
|
|
// bpf_printk("enter the uprobe_server_handleStream");
|
|
|
u64 stream_pos = 4;
|
|
|
void *stream_ptr = get_argument(ctx, stream_pos);
|
|
|
@@ -329,6 +330,7 @@ int uprobe_server_handleStream(struct pt_regs *ctx) {
|
|
|
// UPROBE_RETURN(server_handleStream, struct grpc_request_t, grpc_events)
|
|
|
SEC("uprobe/server_handleStream")
|
|
|
int uprobe_server_handleStream_Returns(struct pt_regs *ctx) {
|
|
|
+ return 0;
|
|
|
// bpf_printk("enter the uprobe_server_handleStream return");
|
|
|
void *key = (void *)GOROUTINE(ctx);
|
|
|
__u64 id = bpf_get_current_pid_tgid();
|
|
|
@@ -440,7 +442,7 @@ int uprobe_server_handleStream_Returns(struct pt_regs *ctx) {
|
|
|
// This is only compatible with versions > 1.69.0 of the Server.
|
|
|
SEC("uprobe/server_handleStream2")
|
|
|
int uprobe_server_handleStream2(struct pt_regs *ctx) {
|
|
|
-
|
|
|
+ return 0;
|
|
|
__u32 tgid = (__u32)(bpf_get_current_pid_tgid() >> 32);
|
|
|
struct ebpf_proc_info *info =
|
|
|
bpf_map_lookup_elem(&proc_info_map, &tgid);
|
|
|
@@ -490,6 +492,7 @@ int uprobe_server_handleStream2(struct pt_regs *ctx) {
|
|
|
// This is only compatible with versions > 1.69.0 of the Server.
|
|
|
SEC("uprobe/server_handleStream2")
|
|
|
int uprobe_server_handleStream2_Returns(struct pt_regs *ctx) {
|
|
|
+ return 0;
|
|
|
u64 server_stream_pos = 4;
|
|
|
void *server_stream_ptr = get_argument(ctx, server_stream_pos);
|
|
|
void *key = NULL;
|
|
|
@@ -617,6 +620,7 @@ lookup:
|
|
|
// func (t *http2Server) operateHeaders(ctx context.Context, frame *http2.MetaHeadersFrame, handle func(*Stream)) error
|
|
|
SEC("uprobe/http2Server_operateHeader")
|
|
|
int uprobe_http2Server_operateHeader(struct pt_regs *ctx) {
|
|
|
+ return 0;
|
|
|
// bpf_printk("enter the uprobe_http2Server_operateHeader");
|
|
|
__u32 tgid = (__u32)(bpf_get_current_pid_tgid() >> 32);
|
|
|
struct ebpf_proc_info *info =
|