bytedance / bytedance/netcap

修改DPDK的APP设置探针后,netcap的usdt模式抓包不可用

Open
#22 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
699
Forks
90
PR merge metrics
No merged PRs in 30d

Description

1、DPDK程序内部插桩点代码样例
#include

void
dpdk_simple_forward(struct rte_mbuf *mbuf, unsigned portid)
{
...
//在收包后报文转发流程设置DTRACE_PROBE1插桩点
DTRACE_PROBE1(dpdk_app, eth_packet_input, mbuf);
...
}

2、使用netcap 设置usdt模式并制定probe为:eth_packet_input
./netcap mbuf -f usdt:eth_packet_input@1 --pid `pidof dpdk_app_test`

3、期望可以捕获到报文,但是无法捕获,另外go的bcc模块如何使能usdt中的探针呢,对应netcap相关源码是哪部分

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.