Skip to content

Commit f7bf59b

Browse files
Merge pull request #2 from Asphaltt/fix/stack
Reduce unnecessary stack consuming
2 parents c369096 + 42ee12b commit f7bf59b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ Projects that use elibpcap:
55
- [eCapture](https://github.com/gojue/ecapture)
66
- [ptcpdump](https://github.com/mozillazg/ptcpdump)
77
- [skbdist](https://github.com/Asphaltt/skbdist)
8+
- [bpfsnoop](https://github.com/bpfsnoop/bpfsnoop)

compile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const (
2727
type StackOffset int
2828

2929
const (
30-
BpfReadKernelOffset StackOffset = -8*(iota+1) - 80
30+
BpfReadKernelOffset StackOffset = -8 * (iota + 1)
3131
R1Offset
3232
R2Offset
3333
R3Offset

0 commit comments

Comments
 (0)