Skip to content

Commit e62e43c

Browse files
committed
tests: runtime: Increase software:cpu probe value
Seems like 1 clock cycle is too much for the kernel to handle - we get softlockups: ``` [ RUN ] probe.probe_builtin_scratch_buf [ 788.058977] watchdog: BUG: soft lockup - CPU#0 stuck for 26s! [swapper/0:0] [ 788.061316] Modules linked in: xfs nf_tables nfnetlink kvm [ 788.063176] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.12.0 #1 [ 788.065341] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 788.069123] RIP: 0010:handle_softirqs+0x7a/0x2c0 [ 788.070694] Code: 00 01 00 00 bd 0a 00 00 00 44 89 64 24 14 45 89 f7 89 6c 24 10 40 88 7c 24 04 31 c0 65 66 89 05 74 a5 f9 46 fb bb ff ff ff ff <48> c7 c0 c0 60 40 ba 41 0f bc df 83 c3 01 49 89 c2 74 75 8d 43 ff [ 788.076737] RSP: 0018:ffff93e700003f98 EFLAGS: 00000246 [ 788.078449] RAX: 0000000000000000 RBX: 00000000ffffffff RCX: 00000000000006e0 [ 788.080828] RDX: 00000000000001b3 RSI: ffffffffba40a940 RDI: 0000000000000000 [ 788.083187] RBP: 000000000000000a R08: 000000b1cd070240 R09: 7fffffffffffffff [ 788.085542] R10: 000000b1ccf7c000 R11: 0000000000005936 R12: 0000000004200002 [ 788.087975] R13: 0000000000000000 R14: 0000000000000002 R15: 0000000000000002 [ 788.090347] FS: 0000000000000000(0000) GS:ffff9183bbc00000(0000) knlGS:0000000000000000 [ 788.093023] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 788.094954] CR2: 00007fa0843f7b8c CR3: 000000010029e003 CR4: 0000000000370ef0 ``` My uneducated guess is the high frequency is triggering some kind of race condition that's exacerbated by slow nested-virtualization VMs. I reported this to Song but he could not reproduce the issue. So let's just bump to 100,000 clock cycles to avoid bringing down CI.
1 parent 04c87f6 commit e62e43c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/runtime/probe

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -440,16 +440,16 @@ PROG interval:ms:1 { print(probe); exit();}
440440
EXPECT interval:ms:1
441441

442442
NAME software
443-
PROG software:cpu-clock:1 { print("hit"); exit();}
443+
PROG software:cpu-clock:100000 { print("hit"); exit();}
444444
EXPECT hit
445445

446446
NAME software_probe_builtin
447-
PROG software:cpu-clock:1 { print(probe); exit();}
448-
EXPECT software:cpu-clock:1
447+
PROG software:cpu-clock:100000 { print(probe); exit();}
448+
EXPECT software:cpu-clock:100000
449449

450450
NAME software_alias_probe_builtin
451-
PROG software:cpu:1 { print(probe); exit();}
452-
EXPECT software:cpu:1
451+
PROG software:cpu:100000 { print(probe); exit();}
452+
EXPECT software:cpu:100000
453453

454454
NAME hardware
455455
REQUIRES ls /sys/devices/cpu/events/cache-misses
@@ -466,8 +466,8 @@ RUN {{BPFTRACE}} -e 'uprobe:testprogs/uprobe_test:uprobeFunction* { if (strconta
466466
EXPECT uprobe:testprogs/uprobe_test:uprobeFunction2
467467

468468
NAME probe_builtin_scratch_buf
469-
PROG config = { on_stack_limit = 0 } software:cpu:1 { print(probe); exit(); }
470-
EXPECT software:cpu:1
469+
PROG config = { on_stack_limit = 0 } software:cpu:100000 { print(probe); exit(); }
470+
EXPECT software:cpu:100000
471471

472472
NAME BEGIN
473473
PROG BEGIN { printf("Hello\n"); exit();}

0 commit comments

Comments
 (0)