Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set stack as function of max call depth #608

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

Alan-Jowett
Copy link
Collaborator

This pull request includes changes to the vm/inc/ubpf.h file to update the configuration of the uBPF VM. The most important changes involve setting a default maximum number of nested calls and adjusting the default stack size accordingly.

Configuration updates:

  • Added a new definition for UBPF_MAX_CALL_DEPTH with a default value of 8 if not already defined.
  • Adjusted the default stack size (UBPF_EBPF_STACK_SIZE) to be calculated based on UBPF_MAX_CALL_DEPTH.
  • Removed an older definition for UBPF_MAX_CALL_DEPTH that set the value to 10.

@Alan-Jowett Alan-Jowett merged commit 7ab98e5 into iovisor:main Nov 13, 2024
41 checks passed
@Alan-Jowett Alan-Jowett deleted the reduce_stack_size branch November 13, 2024 21:28
@coveralls
Copy link

Coverage Status

coverage: 79.201%. remained the same
when pulling e594cf2 on Alan-Jowett:reduce_stack_size
into 94f7a43 on iovisor:main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants