Skip to content

Commit

Permalink
Refactor to have only one Go tracer
Browse files Browse the repository at this point in the history
  • Loading branch information
marctc committed Sep 9, 2024
1 parent ecc9dc1 commit 5d139e5
Show file tree
Hide file tree
Showing 395 changed files with 29,587 additions and 12,214 deletions.
File renamed without changes.
14 changes: 14 additions & 0 deletions bpf/go_kafka_def.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific la

#define KAFKA_API_FETCH 0
#define KAFKA_API_PRODUCE 1
#define KAFKA_API_KEY_POS 5
4 changes: 1 addition & 3 deletions bpf/go_kafka_go.c → bpf/go_kafka_go.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
#include "bpf_dbg.h"
#include "go_common.h"
#include "ringbuf.h"

#define KAFKA_API_FETCH 1
#define KAFKA_API_PRODUCE 0
#include "go_kafka_def.h"

volatile const u64 kafka_go_writer_topic_pos;
volatile const u64 kafka_go_protocol_conn_pos;
Expand Down
Loading

0 comments on commit 5d139e5

Please sign in to comment.