computing-offload/qtfs/test/scmright_test
Yikun Jiang a68570b5d9 Add computing offloading code
1. Add computing offloading code
2. Add script.md
3. Add virsh_demo.xml

Change-Id: Id9ef883e2f0eb727eb5448b9d1c47767f46b1021
Signed-off-by: Yikun Jiang <yikunkero@gmail.com>
2023-10-23 19:29:57 +08:00
..
client.c Add computing offloading code 2023-10-23 19:29:57 +08:00
makefile Add computing offloading code 2023-10-23 19:29:57 +08:00
README.md Add computing offloading code 2023-10-23 19:29:57 +08:00
scm_rights.c Add computing offloading code 2023-10-23 19:29:57 +08:00
server.c Add computing offloading code 2023-10-23 19:29:57 +08:00
uds.h Add computing offloading code 2023-10-23 19:29:57 +08:00

编译:

make clean
make

测试步骤:

  1. 在server上运行
cd /home
tar xzvf scmright_test.tar.gz
cd scmright_test
make clean;make
LD_LIBRARY_PATH=. ./server scm.sock
  1. 在client上运行
cd /home
tar xzvf scmright_test.tar.gz
cd scmright_test
make clean;make
LD_PRELOAD=/usr/lib64/libudsproxy.so LD_LIBRARY_PATH=. ./client scm.sock test.log
or
LD_PRELOAD=/usr/lib64/libudsproxy.so LD_LIBRARY_PATH=. ./client scm.sock
  1. 往client端发送消息进行测试
Input message to send:1234
Input message to send:abcd
Input message to send:quit
input quit will exit client and server
  1. 确认server是否接收到消息或确认test.log是否写入
cat test.log | grep 1234