Remove ebpf debug messages (#9754)
Remove messages used to develop plugin.
thiagoftsm committed
Aug 19, 2020 at 17:28 UTC
b9fa9d01e9f39370b7f7b4b423277e954d3a02d8
1 file changed
-3
collectors/ebpf.plugin/ebpf_socket.c
-3
@@ -1158,7 +1158,6 @@ static void hash_accumulator(netdata_socket_t *values, netdata_socket_idx_t *key
1158
int i;
1159
uint8_t protocol = values[0].protocol;
1160
uint64_t ct = values[0].ct;
1161
- error("KILLME_FIRST %u (%u)", protocol, ntohs(key->sport));
1161
for (i = 1; i < end; i++) {
1162
netdata_socket_t *w = &values[i];
1163
@@ -1177,7 +1176,6 @@ static void hash_accumulator(netdata_socket_t *values, netdata_socket_idx_t *key
1176
*removesock += (int)w->removeme;
1177
}
1178
1180
- error("KILLME_LAST %u (%u)", protocol, ntohs(key->sport));
1179
values[0].recv_packets += precv;
1180
values[0].sent_packets += psent;
1181
values[0].recv_bytes += brecv;
@@ -1223,7 +1221,6 @@ static void read_socket_hash_table(int fd, int family, int network_connection)
1221
// values for specific processor unless it is used to store data. As result of this behavior one the next socket
1222
// can have values from the previous one.
1223
memset(values, 0, length);
1226
- error("KILLME_READ %u %u %u %u (%u)", values[0].protocol, values[1].protocol, values[2].protocol, values[3].protocol, ntohs(key.sport));
1224
test = bpf_map_lookup_elem(fd, &key, values);
1225
if (test < 0) {
1226
key = next_key;