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

Usage of filter breaks "on_interval" for chisels #1602

Open
scrwr opened this issue Mar 15, 2020 · 2 comments
Open

Usage of filter breaks "on_interval" for chisels #1602

scrwr opened this issue Mar 15, 2020 · 2 comments

Comments

@scrwr
Copy link

scrwr commented Mar 15, 2020

Once you add a filter, chisels "on_interval" is triggered with weird timings.

The following minimal chisel shows the effect.

description = "Test chisel with interval"
short_description = "Test chisel"
category = "misc"

args = {}

function on_capture_start()
	chisel.set_interval_ns(500000000)
	return true
end

function on_interval(ts_s, ts_ns, delta)
  print("delta:" .. delta)
  return true
end

Called without filter:

# sudo sysdig -c intervaltest
delta:0
delta:510949747
delta:483104217
delta:500873072
delta:500560051

Called with filter:

# sudo sysdig -c intervaltest "proc.name=systemd"
delta:0
delta:486482802
delta:-2541701
delta:2541701
delta:501229162
delta:508373385
delta:-12144248
delta:12144248
delta:488501703
delta:500266345
delta:-912296
delta:912296

sysdig --version

sysdig version 0.26.4

uname -a

Linux hostname 5.3.0-40-generic #32-Ubuntu SMP Fri Jan 31 20:24:34 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Feb 22, 2023
@scrwr
Copy link
Author

scrwr commented Feb 26, 2023

Checked recently, the issue is still existing.

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

No branches or pull requests

2 participants