-
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.
uregs: Support for older kernels (without BPF pt_regs helper functions)
Signed-off-by: Eugene Loh <eugene.loh@oracle.com> Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
- Loading branch information
Showing
11 changed files
with
128 additions
and
125 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
19 changes: 0 additions & 19 deletions
19
test/unittest/arrays/err.D_UNKNOWN.uregs_badkernelversion.d
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
test/unittest/arrays/err.D_UNKNOWN.uregs_badkernelversion.x
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,4 @@ | ||
#!/usr/bin/bash | ||
|
||
read MAJOR MINOR <<< `uname -r | grep -Eo '^[0-9]+\.[0-9]+' | tr '.' ' '` | ||
if [ $MAJOR -lt 5 ]; then | ||
exit 2 | ||
fi | ||
if [ $MAJOR -eq 5 -a $MINOR -lt 15 ]; then | ||
exit 2 | ||
fi | ||
[ `uname -m` = "aarch64" ] && exit 0 | ||
exit 2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,4 @@ | ||
#!/usr/bin/bash | ||
|
||
read MAJOR MINOR <<< `uname -r | grep -Eo '^[0-9]+\.[0-9]+' | tr '.' ' '` | ||
if [ $MAJOR -lt 5 ]; then | ||
exit 2 | ||
fi | ||
if [ $MAJOR -eq 5 -a $MINOR -lt 15 ]; then | ||
exit 2 | ||
fi | ||
[ `uname -m` = "x86_64" ] && exit 0 | ||
exit 2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,4 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
|
||
[ `uname -m` != "aarch64" ] && exit 2 | ||
|
||
read MAJOR MINOR <<< `uname -r | grep -Eo '^[0-9]+\.[0-9]+' | tr '.' ' '` | ||
if [ $MAJOR -gt 5 ]; then | ||
exit 0 | ||
fi | ||
if [ $MAJOR -eq 5 -a $MINOR -ge 15 ]; then | ||
exit 0 | ||
fi | ||
echo "uregs[]: pt_regs[] lookup not implemented on older kernels" | ||
exit 1 | ||
[ `uname -m` = "aarch64" ] && exit 0 | ||
exit 2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,4 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
|
||
[ `uname -m` != "x86_64" ] && exit 2 | ||
|
||
read MAJOR MINOR <<< `uname -r | grep -Eo '^[0-9]+\.[0-9]+' | tr '.' ' '` | ||
if [ $MAJOR -gt 5 ]; then | ||
exit 0 | ||
fi | ||
if [ $MAJOR -eq 5 -a $MINOR -ge 15 ]; then | ||
exit 0 | ||
fi | ||
echo "uregs[]: pt_regs[] lookup not implemented on older kernels" | ||
exit 1 | ||
[ `uname -m` = "x86_64" ] && exit 0 | ||
exit 2 |
This file was deleted.
Oops, something went wrong.