Bug 25465 - nettrace: Add kernel packet tracing support
Summary: nettrace: Add kernel packet tracing support
Status: NEW
Alias: None
Product: ANCK 6.6 Dev
Classification: ANCK
Component: net (show other bugs) net
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: XuanZhuo
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-09-23 20:28 UTC by wangyaxin
Modified: 2025-09-24 09:35 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wangyaxin 2025-09-23 20:28:19 UTC
Nettrace is a new kernel module for network packet capture and tracking.
It can capture packets from common protocol stacks and various points within
the kernel, detect abnormal packets, and print kernel and user-mode stacks
at tracepoints. It is designed to be scalable and to have minimal impact
on system performance.

What can this do?
=================
1) Packet Capture in kernel network stack

 * Capable of capturing packets at various layers of the kernel network stack,
   such as the link layer (L2), IP layer (L3), UDP/TCP modules (L4), and socket
   layer.

 * Enables network troubleshooting by tracing the path of packets through the
   protocol stack.

2) support saved as pcap file like tcpdump

 * Supports capturing network packets at multiple points in the kernel and saving
   them in PCAP format.

3) insmod nettrace.ko without any parameter, which will print more
   detailed usage in kernel dmesg.
Comment 1 小龙 admin 2025-09-23 20:42:13 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/5819
Comment 2 小龙 admin 2025-09-24 09:35:31 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/5820