From 4cd2c4e818a1438bf63d1ca05a6cf134f39bc06b Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 22 Feb 2026 22:31:35 +0200 Subject: Add copy_file_range support and tracepoint attach tests --- integrationtests/copy_file_range_test.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 integrationtests/copy_file_range_test.go (limited to 'integrationtests/copy_file_range_test.go') diff --git a/integrationtests/copy_file_range_test.go b/integrationtests/copy_file_range_test.go new file mode 100644 index 0000000..d87c5af --- /dev/null +++ b/integrationtests/copy_file_range_test.go @@ -0,0 +1,25 @@ +package integrationtests + +import "testing" + +func TestCopyFileRangeBasic(t *testing.T) { + runScenario(t, "copy-file-range-basic", []ExpectedEvent{ + { + PathContains: "copyrangesrc.txt", + Tracepoint: "enter_copy_file_range", + Comm: "ioworkload", + MinCount: 1, + }, + }) +} + +func TestCopyFileRangeBadDstFd(t *testing.T) { + runScenario(t, "copy-file-range-bad-dst-fd", []ExpectedEvent{ + { + PathContains: "copyrangeebadfsrc.txt", + Tracepoint: "enter_copy_file_range", + Comm: "ioworkload", + MinCount: 1, + }, + }) +} -- cgit v1.2.3