uti: futex call function in mcctrl

Previously, futex code of McKerenl was called by mccontrol,
but there ware some problems with this method.
(Mainly, location of McKernel image on memory)

Call futex code in mcctrl instead of the one in McKernel image,
giving the following benefits:
1. Not relying on shared kernel virtual address space with Linux any more
2. The cpu id store / retrieve is not needed and resulting in the code

Change-Id: Ic40929b64a655b270c435859fa287fedb713ee5c
refe: #1428
This commit is contained in:
Ken Sato
2020-09-18 14:42:26 +09:00
committed by Masamichi Takagi
parent 35296c8210
commit a9973e913d
62 changed files with 4320 additions and 1116 deletions

36
test/uti/CT36.sh Executable file
View File

@@ -0,0 +1,36 @@
#!/usr/bin/bash
mck_dir=/work/gg10/e29005/project/os/install
nloop=800
exe=CT26
mck=1
mcexec="${mck_dir}/bin/mcexec"
sudo ${mck_dir}/sbin/mcstop+release.sh
sudo ${mck_dir}/sbin/mcreboot.sh -c 1,2,3 -m 512M
ulimit -c unlimited
for((count=0;count<nloop;count++)); do
if [ $mck -eq 1 ]; then
export MCKERNEL_LD_PRELOAD=./preloadlib.so
# $mcexec --enable-uti ./$exe
# $mcexec gdb -batch -ex "run" -ex "bt" ./$exe
$mcexec ./$exe
else
export LD_PRELOAD=./preloadlib.so
./$exe
fi
rc=$?
if [ $rc -ne 0 ]; then
echo mcexec returned $rc
exit
fi
echo =====
echo $count
echo =====
done