Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timing in eBPF #5

Open
lnx1288 opened this issue Feb 26, 2019 · 1 comment
Open

Timing in eBPF #5

lnx1288 opened this issue Feb 26, 2019 · 1 comment

Comments

@lnx1288
Copy link

lnx1288 commented Feb 26, 2019

Hi,
I'm playing around with eBPF and I was wondering if there is any way to implement a timer (note: I'm forced to use C to code my eBPF program). I'm collecting traffic stats and after a given interval timeouts I need to process the stats collected so far. I know I can use packet timestamps for this purpose, but in my scenario the traffic is not stable and even zero at regular intervals.
Thanks in advance!

@lnx1288 lnx1288 changed the title Timer in eBPF Timing in eBPF Feb 26, 2019
@purplewall1206
Copy link

bpf_timer_init/set_callback/start may satisfy your requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants