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

vtsspp error at file vcs/perfrun1/launcher/src/plugin_manager_impl.hpp

JayJ
Novice
2,772 Views

Hello everyone, I have been trying to follow this post: https://software.intel.com/content/www/us/en/develop/documentation/vtune-cookbook/top/configuration-recipes/profiling-performance-anomalies.html#profiling-performance-anomalies_BUILD, and I successfully compiled the program after preparing for analysis as shown below:

JayJ_0-1631887321314.png

Next, I have been trying to run the vtune anomaly-detection function (I am posting a command-line screenshot here, but I also tried on VTune-GUI as explained in the above post, following step-by-step)

JayJ_1-1631887414085.png

I tried my best to see if I could fix this problem, so I took a look at performance logs and tried to understand what this "Internal Error" meant. After digging through, I found this from the performance log, which gave me a lot of clearer reasons:

JayJ_4-1631887843905.png

ERROR Log says the following:

<ERROR> perfrun.launcher <> - vtsspp can not perform an operation and will be disabled., at file: vcs/perfrun1/launcher/src/plugin_manager_impl.hpp:434

 

Which made me believe that maybe my vtsspp driver wasn't probably loaded or installed. Therefore, I went ahead and rebuild the vtsspp driver and then loaded it.

JayJ_3-1631887593795.png

After doing this, I still get the same error. I'm sort of out of the idea (maybe I need to try to fix warnings too?); I have also checked the requirements. My CPU is Intel Core i5-10400F which is a Comet Lake that is later than Skylake.

I also tried uninstalling and reinstalling Intel VTune, still to no avail (and repeating the above procedures). I am sort of out of ideas, maybe I could try this on a different computer (if I can find one), but I was hoping I can get this fixed since I don't have another desktop.

 

I would appreciate any kind of suggestions/tips.
Thank you

Labels (1)
0 Kudos
1 Solution
Alexey_B_Intel2
Employee
2,404 Views

Hi @JayJ ,

Attached simple patch adds missed IPT support for your CPU. This should help.

To apply the patch, go to VTune installation directory:

cd /opt/<vtune_install_dir>

Unzip and apply the patch:

gunzip ipt-cml.patch.gz

patch -p1 < ipt-cml.patch

Then SEPDK drivers should be rebuild and reloaded:

cd sepdk/src/

./build-driver -ni

./insmod-sep -r -g <your_group>

 

Thanks,
Alexey

View solution in original post

0 Kudos
11 Replies
AlekhyaV_Intel
Moderator
2,736 Views

Hi,

 

Thank you for posting in Intel Communities. We will work on this issue internally and get back to you with an update. Meanwhile we would like you to provide some information to us so that we can debug your issue further:

1) The reproducer i.e. the sample application you're running the analysis on.

2) Your OS details along with version.

3) List of drivers installed along with your VTune Profiler

4) Self checker logs

 

Regards,

Alekhya

 

0 Kudos
JayJ
Novice
2,711 Views

Hello, thank you for the reply. Here is my best attempt at answering your questions; please let me know if anything is incorrect or not appropriately posted; if you give me the input to obtain the results, I can use them and get you more accurate results.

 

1) The reproducer:

#include <stdio.h>
#include <stdlib.h>
#include "ittnotify.h"
#define MAX_LENGTH 8

struct target { int assign, total; } *vuln;

int counter = MAX_LENGTH;
int maximum = MAX_LENGTH;
int *size, *type;

void perf_fun() {
    while (counter--) {           
        if (*size == 10) {        
            *size = 1;             
        } else {
            vuln->assign = *size;  
        }
        printf("Hello World %d\n", vuln->total);
    }
}

int main(int argc, char **argv)
{
    int value = atoi(argv[1]);
    size = malloc(sizeof(int));
    size = &value;
    type = malloc(sizeof(int));
    type = &value;

    vuln = malloc(sizeof(struct target));
    __itt_pt_region region = __itt_pt_region_create("region of interest");
    for (int i = 0; i < counter; i++)
    {       
        __itt_mark_pt_region_begin(region);
       perf_fun();         
        __itt_mark_pt_region_end(region);
    }
}

command to compile the above program:

icc toy.c -I/opt/intel/oneapi/vtune/latest/sdk/include /opt/intel/oneapi/vtune/latest/sdk/lib64/libittnotify.a -lpthread -o toy

 

2) OS details:

  Operating System: Ubuntu 20.04.3 LTS
            Kernel: Linux 5.11.0-34-generic
      Architecture: x86-64

 

3) List of drivers installed:

Here is what I got after installing the drivers via the command.

sudo ./insmod-sep -r -g jay

Summary: PAX, SOCPERF, SEP, VTSSPP, SOCWATCH drivers have been installed

JayJ_0-1632331169511.png

 

4) Self checker log

So this one, I'm not too sure what I need to post here, but I have attached a log file that might be helpful. If it is incorrect, please let me know, and I will reupload it.

 

 

0 Kudos
AlekhyaV_Intel
Moderator
2,669 Views

Hi,

 

Thank you for sharing all the information with us. We would suggest you to run the analysis after loading all the drivers and check if your issue is resolved or not. Also the log you've shared is not a self-checker log. So we have provided the steps below to get the self checker log.

1) In Vtune installed directory(path: /intel/oneapi/vtune/latest/bin64), run the below command:

 

sh vtune-self-checker.sh

 

2) VTune Profiler Self Check Utility starts and the log location will be given in the end of the analysis(Log location: /tmp/vtune-tmp-administrator/self-checker-2021.09.28_20.01.48/log.txt)

 

Please follow the below steps and send us thr self-checker log.

 

Regards,

Alekhya

 

0 Kudos
JayJ
Novice
2,599 Views

Hello,

 

Thank you for your response and direction.

 

Here is the step that I took to run the self-checker:

steps.png

I made sure drivers are loaded, and then run the `vtune self-checker.sh`.

I have attached the log that was generated after running the checker.

final.png

One additional thing that I did (after running the self-checker) was to modify this text file /proc/sys/kernel/perf_event_paranoid and change the value from 4 -> 0 as suggested from the self-checker.

 

Sincerely,

Jay

0 Kudos
AlekhyaV_Intel
Moderator
2,557 Views

Hi


Thank you sharing all the logs we requested. We have checked your self checker logs but couldn't find any issue in it. To investigate your issue further, we'd like to have your dmesg logs. dmesg logs are generated when we run the dmesg command. It is called as a driver message which is used to examine the kernel ring buffer and print the message buffer of kernel. The output of this command contains the messages produced by the device drivers. By going through the logs, we can find out where the problem occurred.


First we'd like you to run the anomaly detection analysis and after it fails, run the below command:

      dmesg > dmesg.log


With the above command, all the contents(dmesg log) are saved in dmesg.log file. Please share it with us, We'll check the file and get back to you with an update.


Regards,

Alekhya


0 Kudos
AlekhyaV_Intel
Moderator
2,499 Views

Hi,


Could you please give us an update regarding this issue?


Regards,

Alekhya


0 Kudos
JayJ
Novice
2,469 Views

Sorry for the late reply, 

 

Here is the step I took:

steps.png

 

And I have attached the dmesg.log. I hope this is helpful,

 

Kind regards,
Jay

0 Kudos
AlekhyaV_Intel
Moderator
2,426 Views

Hi,


Thank you for sharing your logs with us. We'll work on this internally and will get back to you with an update.


Regards,

Alekhya


0 Kudos
Alexey_B_Intel2
Employee
2,405 Views

Hi @JayJ ,

Attached simple patch adds missed IPT support for your CPU. This should help.

To apply the patch, go to VTune installation directory:

cd /opt/<vtune_install_dir>

Unzip and apply the patch:

gunzip ipt-cml.patch.gz

patch -p1 < ipt-cml.patch

Then SEPDK drivers should be rebuild and reloaded:

cd sepdk/src/

./build-driver -ni

./insmod-sep -r -g <your_group>

 

Thanks,
Alexey

0 Kudos
JayJ
Novice
2,323 Views

Dear @Alexey_B_Intel2 ,

 

Your patch fixed the problem as shown below:

JayJ_0-1635006292311.png

 

Thank you for your help @AlekhyaV_Intel and @Alexey_B_Intel2 

 

Kind regards,

 

0 Kudos
Vinutha_SV
Moderator
2,239 Views

Thanks for the confirmation. We shall stop monitoring this thread.


0 Kudos
Reply