-
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.
uapi headers: include <sys/dtrace_types> as needed
This is needed for _LITTLE_ENDIAN and _BIG_ENDIAN. Add a new internals test to identify this class of failure: add a tag 'uninstalled' which is disabled in the installed tree to prevent it from being executed as part of the installed testsuite (since it is not particularly useful outside the installed set, and making it work in both places would be complicated and annoying). Signed-off-by: Nick Alcock <nick.alcock@oracle.com> Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
- Loading branch information
1 parent
0811eb4
commit b81f4b1
Showing
4 changed files
with
34 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
# | ||
# Oracle Linux DTrace. | ||
# Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved. | ||
# Licensed under the Universal Permissive License v 1.0 as shown at | ||
# http://oss.oracle.com/licenses/upl. | ||
# | ||
# @@tags: uninstalled | ||
|
||
set -e | ||
|
||
dtrace=$1 | ||
CC=/usr/bin/gcc | ||
OLDDIRNAME=`pwd` | ||
CFLAGS="-I${PWD}/include" | ||
|
||
DIRNAME="$tmpdir/usdt-entryreturn.$$.$RANDOM" | ||
mkdir -p $DIRNAME | ||
cd $DIRNAME | ||
|
||
for header in ${OLDDIRNAME}/include/dtrace/*.h; do | ||
grep -q _ENDIAN $header || continue | ||
cat > test.c <<EOF | ||
#include "$header" | ||
#if !defined(_BIG_ENDIAN) && !defined(_LITTLE_ENDIAN) | ||
#error $header: needs to include <sys/dtrace_types.h> | ||
#endif | ||
EOF | ||
$CC -c $CFLAGS -o /dev/null test.c | ||
done |