File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 11
11
SYM_FUNC_START(arch_bpf_timed_may_goto)
12
12
ANNOTATE_NOENDBR
13
13
14
+ /*
15
+ * r10 passes us stack depth, load the pointer to count and timestamp
16
+ * into r10 by adding it to BPF frame pointer.
17
+ */
18
+ leaq (%rbp , %r10 , 1 ), %r10
19
+
20
+ /* Setup frame. */
21
+ pushq %rbp
22
+ movq %rsp , %rbp
23
+
14
24
/* Save r0-r5. */
15
25
pushq %rax
16
26
pushq %rdi
@@ -20,10 +30,10 @@ SYM_FUNC_START(arch_bpf_timed_may_goto)
20
30
pushq %r8
21
31
22
32
/*
23
- * r10 passes us stack depth, load the pointer to count and timestamp as
24
- * first argument to the call below .
33
+ * r10 has the pointer to count and timestamp, pass it as first
34
+ * argument.
25
35
*/
26
- leaq ( %rbp , % r10, 1 ) , %rdi
36
+ movq % r10 , %rdi
27
37
28
38
/* Emit call depth accounting for call below. */
29
39
CALL_DEPTH_ACCOUNT
@@ -40,5 +50,6 @@ SYM_FUNC_START(arch_bpf_timed_may_goto)
40
50
popq %rdi
41
51
popq %rax
42
52
53
+ leave
43
54
RET
44
55
SYM_FUNC_END(arch_bpf_timed_may_goto)
You can’t perform that action at this time.
0 commit comments