On Wed, Oct 30, 2024 at 1:58 PM Martin KaFai Lau <martin.lau@xxxxxxxxx> wrote: > > On 10/28/24 4:05 AM, Jason Xing wrote: > > From: Jason Xing <kernelxing@xxxxxxxxxxx> > > > > Only check if we pass those three key points after we enable the > > bpf extension for so_timestamping. During each point, we can choose > > whether to print the current timestamp. > > The bpf prog usually does more than just print. The bpf prog aggregates data > first before sending all raw data to the user space. > > The selftests will be more useful for the reviewer and the future user if it can > at least show how it can calculate the tx delay between [sendmsg, SCHED], > [SCHED, SND], [SND, ACK]. Got it, I will dig into how to implement it and then post a new version. Before this, I only used the bpf program to print timestamps to one file without using those advanced functions (like aggregating data) in bpf. Let me try :) If you know some good examples of this, please show me :) Thanks in advance. Thanks, Jason