You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering is there any ongoing plan to support struct net_device as the available argument selector option? Then I may leverage net_dev_xmit tracepoint to filter the traffic by devices name(net_device->name) at ebpf level.
It will kind of achieve the similar capability of what tcpdump -i provides.
Describe the feature you would like
With such feature, we may further be able to achieve the similar functionality of tcpdump filtering by devices.
Describe your proposed solution
I find that we already have argTypeSkb and argTypeSock for filtering.
So I am thinking about if we can add argTypeDev, MsgGenericKprobeDev, MsgGenericKprobeArgDev for struct net_device.
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
sfc-gh-gshe
changed the title
Add a new type argTypeDev to support device-based filter
Add a new type argTypeDev to support device-based tracing filter
Feb 29, 2024
or if you do want to use a tracepoint, then you could use a tracepoint policy like this instead (based on a recent addition, again use latest CI image):
Is there an existing issue for this?
Is your feature request related to a problem?
Yes.
I was wondering is there any ongoing plan to support
struct net_device
as the available argument selector option? Then I may leverage net_dev_xmit tracepoint to filter the traffic by devices name(net_device->name
) at ebpf level.It will kind of achieve the similar capability of what
tcpdump -i
provides.Describe the feature you would like
With such feature, we may further be able to achieve the similar functionality of tcpdump filtering by devices.
Describe your proposed solution
I find that we already have argTypeSkb and argTypeSock for filtering.
So I am thinking about if we can add argTypeDev, MsgGenericKprobeDev, MsgGenericKprobeArgDev for
struct net_device
.Code of Conduct
The text was updated successfully, but these errors were encountered: