Rate This Document
Findability
Accuracy
Completeness
Readability

Failed to Run a Microarchitecture Analysis Due to Insufficient Permissions

Symptom

A microarchitecture analysis task fails and the error message is as follows: "Insufficient execute permissions on the kunpeng-prof file. Check whether permissions on the kunpeng-prof file and related configuration files are correct."

Possible Cause

  1. The devkit user does not have the permission to execute the tool.
  2. The configuration file is incorrect.

Troubleshooting Procedure

INSTALL_PATH is the tool installation directory.

  1. Check the permissions of the devkit user.

    Check whether the devkit user has the execute permission on the INSTALL_PATH/DevKit/devkitplugins/sys_perf/ktune/lib/kunpeng-prof directory. If no, grant the permission to the user.

  2. Check the configurations in the /etc/sudoers.d/devkit_sys_perf_sudoers file.

    Check whether the file contains the following configurations. If not, add them to the file.

    1
    2
    devkit ALL=(root) NOPASSWD:/path/to/setcap cap_sys_ptrace+ep INSTALL_PATH/DevKit/devkitplugins/sys_perf/ktune/lib/kunpeng-prof
    devkit ALL=(root) NOPASSWD:/path/to/setcap -r INSTALL_PATH/DevKit/devkitplugins/sys_perf/ktune/lib/kunpeng-prof
    

    /path/to/setcap is the absolute path of the system tool setcap on the server.