sysdig icon indicating copy to clipboard operation
sysdig copied to clipboard

Usage of filter breaks "on_interval" for chisels

Open scrwr opened this issue 5 years ago • 2 comments

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

scrwr avatar Mar 15 '20 10:03 scrwr

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[bot] avatar Feb 22 '23 08:02 github-actions[bot]

Checked recently, the issue is still existing.

scrwr avatar Feb 26 '23 14:02 scrwr