-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for built-in variable stackdepth
Add space to the "mem" BPF map where we can write a stack of maximum depth. (This approach should be replaced eventually with a more general mechanism for using scratch space.) Since precompiled BPF code needs to verify the use of the new buffer, we we make its offset and size available to get_bvar() via STKOFF and STKSIZ. For DIF_VAR_STACKDEPTH, add code to write the stack and return its length. Fix test/unittest/stackdepth/tst.value.d: *) Use a probe that has a kernel stack. *) Change the postprocessing to check properly whether a line is empty. *) Remove xfail. Consolidate stackdepth tests with other built-in-variable tests: *) stackdepth/tst.default.d was already simply a subset of variables/bvar/tst.stackdepth.d and so can be deleted. *) stackdepth/tst.value.* is moved to variables/bvar/tst.stackdepth2.* Signed-off-by: Eugene Loh <eugene.loh@oracle.com> Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
- Loading branch information
Showing
9 changed files
with
37 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.