Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
5024 Discussions

Building sepdk on Linux kernel 6.1 fails.

Daniel_H
New Contributor I
1,097 Views

Hi,

 

I'd just like to report that building sepdk driver on Linux kernel 6.1 does fail.

On LTS 5.15 it works perfectly.

 

Here is the output of the failing build attempt:

sudo ./build-driver -ni
[sudo] password for root:  
C compiler version: 12.2.1
Make version: 4.4
Kernel version: 6.1.9-arch1-1

Cleaning workspaces ...  
Done

Building socperf driver ...  
Done

Building sep driver ...  
/home/intel/oneapi_2023_0_0/vtune/2023.0.0/sepdk/src/linuxos.c: In function ‘linuxos_Enum_Modules_For_Process’:
/home/intel/oneapi_2023_0_0/vtune/2023.0.0/sepdk/src/linuxos.c:537:23: error: ‘struct mm_struct’ has no member named ‘mmap’
 537 |         for (mmap = mm->mmap; mmap; mmap = mmap->vm_next) {
     |                       ^~
/home/intel/oneapi_2023_0_0/vtune/2023.0.0/sepdk/src/linuxos.c:537:48: error: ‘struct vm_area_struct’ has no member named ‘vm_next’
 537 |         for (mmap = mm->mmap; mmap; mmap = mmap->vm_next) {
     |                                                ^~
make[2]: *** [scripts/Makefile.build:250: /home/intel/oneapi_2023_0_0/vtune/2023.0.0/sepdk/src/linuxos.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:2005: /home/intel/oneapi_2023_0_0/vtune/2023.0.0/sepdk/src] Error 2
make: *** [Makefile:215: default] Error 2

Failed to build the drivers

 

0 Kudos
1 Solution
Rahila_T_Intel
Moderator
1,076 Views

Hi,

 

Thanks for posting in intel communities.

 

Please be informed that Driverless Perf based collections on ADL is supported by Linux kernel since 5.15.5. Thats why you are facing issue when trying to building sepdk driver on Linux kernel 6.1, which is beyond 5.15.

 

Rahila_T_Intel_0-1675758074427.png

 

Please refer the below link

https://www.intel.com/content/www/us/en/developer/articles/system-requirements/vtune-profiler-system-requirements.html

 

If this resolves your issue, make sure to accept this as a solution. This would help others with similar issue.

 

Thanks

 

 

 

 

View solution in original post

0 Kudos
3 Replies
Rahila_T_Intel
Moderator
1,077 Views

Hi,

 

Thanks for posting in intel communities.

 

Please be informed that Driverless Perf based collections on ADL is supported by Linux kernel since 5.15.5. Thats why you are facing issue when trying to building sepdk driver on Linux kernel 6.1, which is beyond 5.15.

 

Rahila_T_Intel_0-1675758074427.png

 

Please refer the below link

https://www.intel.com/content/www/us/en/developer/articles/system-requirements/vtune-profiler-system-requirements.html

 

If this resolves your issue, make sure to accept this as a solution. This would help others with similar issue.

 

Thanks

 

 

 

 

0 Kudos
Daniel_H
New Contributor I
1,064 Views

Thanks for your answer.

Indeed it works. It was quite a long time I didn't use vtune & co, and I was still trained to build and launch the driver.

Sorry for the nuisance.

Daniel

0 Kudos
Rahila_T_Intel
Moderator
1,061 Views

Hi,


Glad to know that your issue is resolved.

Thanks for accepting our solution.  If you need further assistance, please post a new question as this thread will no longer be monitored by Intel.


Thanks


0 Kudos
Reply