--- /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/rmmod-sep.orig 2023-03-24 09:00:20.159044476 +0900 +++ /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/rmmod-sep 2023-03-24 08:59:59.591043397 +0900 @@ -1,5 +1,5 @@ #!/bin/sh - +export LANG=en_US.UTF-8 # # File: rmmod-sep # --- /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/build-driver.orig 2023-03-24 08:30:54.289041702 +0900 +++ /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/build-driver 2023-03-24 08:56:58.064033872 +0900 @@ -1,5 +1,5 @@ #!/bin/sh - +export LANG=en_US.UTF-8 # # File: build-driver # @@ -674,7 +674,7 @@ else kernel_major=$(echo ${kernel_version} | cut -d. -f1) kernel_minor=$(echo ${kernel_version} | cut -d. -f2) - kernel_patch=$(echo ${kernel_version} | cut -d. -f3) + kernel_patch=$(echo ${kernel_version} | cut -d. -f3-) fi # if not using kernel 2.6.x or later, then exit with error --- /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/src/sw_trace_notifier_provider.c.orig 2023-03-23 09:25:15.310115633 +0900 +++ /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/src/sw_trace_notifier_provider.c 2023-03-24 08:55:33.055029412 +0900 @@ -2334,6 +2334,7 @@ return -EIO; } } +#ifdef CONFIG_HOTPLUG_CPU /* for RedHawk */ /* * Add the cpu hot plug notifier. */ @@ -2345,6 +2346,7 @@ return -EIO; } } +#endif return PW_SUCCESS; } --- /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/insmod-sep.orig 2023-03-29 09:48:41.694035532 +0900 +++ /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/insmod-sep 2023-03-29 10:07:54.150096001 +0900 @@ -1,5 +1,5 @@ #!/bin/sh - +export LANG=en_US.UTF-8 # # File: insmod-sep # @@ -750,9 +750,13 @@ signed="True" fi done - - - +# for RedHawk +uname -r|grep -q debug;DEBUG_KERNEL=$? +if [ $DEBUG_KERNEL -eq 1 ] +then + echo "Failed to detect Debug Kernel." + exit 1; +fi # try to load the PAX driver if it was not already loaded print_section_header "Loading PAX driver" (${SEP_SHELL} ${SCRIPT_DIR}/pax/insmod-pax -g $DRIVER_GROUP -p $DRIVER_PERMS $INSMOD_ADDITIONAL_OPTIONS)