Skip to content

Commit

Permalink
Fix verifier error
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias committed Feb 14, 2025
1 parent 596e91d commit fb11ecc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,9 @@ int uprobe_server_handleStream2_Returns(struct pt_regs *ctx) {
SEC("uprobe/http2Server_operateHeader")
int uprobe_http2Server_operateHeader(struct pt_regs *ctx)
{
void *frame_ptr = is_new_frame_pos ? get_argument(ctx, 4) : get_argument(ctx, 2);
void *arg4 = get_argument(ctx, 4);
void *arg2 = get_argument(ctx, 2);
void *frame_ptr = is_new_frame_pos ? arg4 : arg2;
struct go_slice header_fields = {};
bpf_probe_read(&header_fields, sizeof(header_fields), (void *)(frame_ptr + frame_fields_pos));
char key[W3C_KEY_LENGTH] = "traceparent";
Expand Down

0 comments on commit fb11ecc

Please sign in to comment.