Re: [PATCH v3 1/5] selftests/x86: Simplify the code to get vdso base address in sgx

2021-02-01 Thread Tianjia Zhang
Hi, On 1/26/21 2:12 AM, Jarkko Sakkinen wrote: What the short summary is saying now, is that this commit would make the existing code to use vDSO base address. It's already doing that. You could instead just "Use getauxval() to simplify the code". Also, I'd prefer to properly use upper and low

Re: [PATCH v3 1/5] selftests/x86: Simplify the code to get vdso base address in sgx

2021-01-25 Thread Jarkko Sakkinen
What the short summary is saying now, is that this commit would make the existing code to use vDSO base address. It's already doing that. You could instead just "Use getauxval() to simplify the code". Also, I'd prefer to properly use upper and lower case letter, e.g. vDSO instead of vdso. Reply

[PATCH v3 1/5] selftests/x86: Simplify the code to get vdso base address in sgx

2021-01-23 Thread Tianjia Zhang
This patch uses the library function `getauxval(AT_SYSINFO_EHDR)` instead of the custom function `vdso_get_base_addr` to obtain the base address of vDSO, which will simplify the code implementation. Signed-off-by: Tianjia Zhang --- tools/testing/selftests/sgx/main.c | 24