summaryrefslogtreecommitdiff
path: root/internal/flags
diff options
context:
space:
mode:
Diffstat (limited to 'internal/flags')
-rw-r--r--internal/flags/sampling.go1
-rw-r--r--internal/flags/sampling_test.go2
2 files changed, 2 insertions, 1 deletions
diff --git a/internal/flags/sampling.go b/internal/flags/sampling.go
index 2f63ada..0f0af2a 100644
--- a/internal/flags/sampling.go
+++ b/internal/flags/sampling.go
@@ -14,6 +14,7 @@ var defaultAggregateOnlySyscalls = []string{
"futex_wake",
"futex_requeue",
"futex_waitv",
+ "clock_gettime",
}
func cloneFamilySamplingRates(in map[types.SyscallFamily]uint32) map[types.SyscallFamily]uint32 {
diff --git a/internal/flags/sampling_test.go b/internal/flags/sampling_test.go
index 82a43ec..c43c2fc 100644
--- a/internal/flags/sampling_test.go
+++ b/internal/flags/sampling_test.go
@@ -82,7 +82,7 @@ func TestDefaultSamplingRatesIncludeFutexAggregateOnly(t *testing.T) {
if err != nil {
t.Fatalf("parse returned error: %v", err)
}
- for _, syscall := range []string{"futex", "futex_wait", "futex_wake", "futex_requeue", "futex_waitv"} {
+ for _, syscall := range []string{"futex", "futex_wait", "futex_wake", "futex_requeue", "futex_waitv", "clock_gettime"} {
rate, ok := cfg.SyscallSamplingRates[syscall]
if !ok {
t.Fatalf("expected default sampling entry for %s", syscall)