Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
a5e2ee5d
Commit
a5e2ee5d
authored
May 31, 2017
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpf: Take advantage of stack_depth tracking in sparc64 JIT
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
551f40c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
arch/sparc/net/bpf_jit_comp_64.c
arch/sparc/net/bpf_jit_comp_64.c
+7
-2
No files found.
arch/sparc/net/bpf_jit_comp_64.c
View file @
a5e2ee5d
...
@@ -802,8 +802,13 @@ static void build_prologue(struct jit_ctx *ctx)
...
@@ -802,8 +802,13 @@ static void build_prologue(struct jit_ctx *ctx)
{
{
s32
stack_needed
=
BASE_STACKFRAME
;
s32
stack_needed
=
BASE_STACKFRAME
;
if
(
ctx
->
saw_frame_pointer
||
ctx
->
saw_tail_call
)
if
(
ctx
->
saw_frame_pointer
||
ctx
->
saw_tail_call
)
{
stack_needed
+=
MAX_BPF_STACK
;
struct
bpf_prog
*
prog
=
ctx
->
prog
;
u32
stack_depth
;
stack_depth
=
prog
->
aux
->
stack_depth
;
stack_needed
+=
round_up
(
stack_depth
,
16
);
}
if
(
ctx
->
saw_tail_call
)
if
(
ctx
->
saw_tail_call
)
stack_needed
+=
8
;
stack_needed
+=
8
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment