mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 03:07:29 +02:00
Merge pull request #5931 from douzzer/20221226-minor-fixes
20221226-minor-fixes
This commit is contained in:
@ -1,9 +1,14 @@
|
|||||||
echo "Running with \"${@}\"..."
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "Running with \"${*}\"..."
|
||||||
|
|
||||||
# Assume we're in wolfssl/Docker
|
# Assume we're in wolfssl/Docker
|
||||||
WOLFSSL_DIR=$(builtin cd ${BASH_SOURCE%/*}/..; pwd)
|
WOLFSSL_DIR=$(builtin cd ${BASH_SOURCE%/*}/..; pwd)
|
||||||
|
|
||||||
docker build -t wolfssl --build-arg UID=$(id -u) --build-arg GID=$(id -g) ${WOLFSSL_DIR}/Docker && \
|
docker build -t wolfssl --build-arg UID=$(id -u) --build-arg GID=$(id -g) "${WOLFSSL_DIR}/Docker" && \
|
||||||
docker run -it -v ${WOLFSSL_DIR}:/tmp/wolfssl -w /tmp/wolfssl wolfssl /bin/bash -c "./autogen.sh && ./configure $(echo ${@}) && make && ./testsuite/testsuite.test" && \
|
docker run -it -v "${WOLFSSL_DIR}:/tmp/wolfssl" -w /tmp/wolfssl wolfssl /bin/bash -c "./autogen.sh && ./configure ${*@Q} && make && ./testsuite/testsuite.test" && \
|
||||||
docker run -it -v ${WOLFSSL_DIR}:/tmp/wolfssl -w /tmp/wolfssl wolfssl /bin/bash
|
docker run -it -v "${WOLFSSL_DIR}:/tmp/wolfssl" -w /tmp/wolfssl wolfssl /bin/bash
|
||||||
echo "Exited with error code $?"
|
|
||||||
|
exitval=$?
|
||||||
|
echo "Exited with error code $exitval"
|
||||||
|
exit $exitval
|
||||||
|
@ -322,7 +322,11 @@
|
|||||||
*/
|
*/
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
typeof(cpu_number) *cpu_number;
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 2, 0)
|
||||||
|
typeof(cpu_number) *cpu_number;
|
||||||
|
#else
|
||||||
|
typeof(pcpu_hot) *pcpu_hot;
|
||||||
|
#endif
|
||||||
typeof(nr_cpu_ids) *nr_cpu_ids;
|
typeof(nr_cpu_ids) *nr_cpu_ids;
|
||||||
|
|
||||||
#endif /* WOLFSSL_LINUXKM_SIMD_X86 */
|
#endif /* WOLFSSL_LINUXKM_SIMD_X86 */
|
||||||
@ -459,7 +463,11 @@
|
|||||||
*/
|
*/
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#define cpu_number (*(wolfssl_linuxkm_get_pie_redirect_table()->cpu_number))
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 2, 0)
|
||||||
|
#define cpu_number (*(wolfssl_linuxkm_get_pie_redirect_table()->cpu_number))
|
||||||
|
#else
|
||||||
|
#define pcpu_hot (*(wolfssl_linuxkm_get_pie_redirect_table()->pcpu_hot))
|
||||||
|
#endif
|
||||||
#define nr_cpu_ids (*(wolfssl_linuxkm_get_pie_redirect_table()->nr_cpu_ids))
|
#define nr_cpu_ids (*(wolfssl_linuxkm_get_pie_redirect_table()->nr_cpu_ids))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -445,7 +445,11 @@ static int set_up_wolfssl_linuxkm_pie_redirect_table(void) {
|
|||||||
*/
|
*/
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
wolfssl_linuxkm_pie_redirect_table.cpu_number = &cpu_number;
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 2, 0)
|
||||||
|
wolfssl_linuxkm_pie_redirect_table.cpu_number = &cpu_number;
|
||||||
|
#else
|
||||||
|
wolfssl_linuxkm_pie_redirect_table.pcpu_hot = &pcpu_hot;
|
||||||
|
#endif
|
||||||
wolfssl_linuxkm_pie_redirect_table.nr_cpu_ids = &nr_cpu_ids;
|
wolfssl_linuxkm_pie_redirect_table.nr_cpu_ids = &nr_cpu_ids;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1888,14 +1888,12 @@ static void bench_stats_sym_finish(const char* desc, int useDeviceID,
|
|||||||
|
|
||||||
#ifdef GENERATE_MACHINE_PARSEABLE_REPORT
|
#ifdef GENERATE_MACHINE_PARSEABLE_REPORT
|
||||||
#ifdef WOLFSSL_ESPIDF
|
#ifdef WOLFSSL_ESPIDF
|
||||||
unsigned long bytes_processed = (unsigned long)blocks;
|
unsigned long bytes_processed =
|
||||||
|
(unsigned long)count * (unsigned long)countSz;
|
||||||
#else
|
#else
|
||||||
word64 bytes_processed = (word64)blocks;
|
word64 bytes_processed = (word64)count * (word64)countSz;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef GENERATE_MACHINE_PARSEABLE_REPORT
|
|
||||||
/* note this codepath brings in all the fields from the non-CSV case. */
|
/* note this codepath brings in all the fields from the non-CSV case. */
|
||||||
#ifdef WOLFSSL_ESPIDF
|
#ifdef WOLFSSL_ESPIDF
|
||||||
#ifdef HAVE_GET_CYCLES
|
#ifdef HAVE_GET_CYCLES
|
||||||
|
Reference in New Issue
Block a user