Skip to content

Commit 5eead2a

Browse files
brycekahlepaulcacheux
authored andcommitted
attempt at fixing older kernels
1 parent 36cbfc4 commit 5eead2a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/ebpf/c/lock_contention.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ SEC("tp_btf/contention_begin")
476476
int tracepoint__contention_begin(u64 *ctx)
477477
{
478478
struct tstamp_data *pelem;
479-
struct lock_range range;
479+
struct lock_range range = {};
480480

481481
if (!can_record(ctx, &range))
482482
return 0;

pkg/ebpf/lockcontention.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const (
4040
ioctlCollectLocksCmd = 0x70c13
4141

4242
// maximum lock ranges to track
43-
maxTrackedRanges = 2048
43+
maxTrackedRanges = 1024
4444

4545
// batch size when updating per cpu map storing lock ranges
4646
// this value is the chunks in which we add the ranges to the per-cpu map

0 commit comments

Comments
 (0)