Checking Whether a Program Calls the KAE
Question
My program calls the APIs provided by OpenSSL and is bound to the KAE. The program can run properly. How do I know that the program uses the KAE instead of the original software library in the system?
Answer
When the program is running, you can query the number of hardware device queues to check whether the program has called the KAE. You can run the cat /sys/class/uacce/hisi_xxx/attrs/available_instances command to view the number of queues corresponding to a driver module. By default, the number of queues is 256.
Figure 1 Viewing the number of queues of each driver module


Figure 2 Viewing the number of queues of a driver module (for example, hisi_hpre)


Figure 3 Viewing the number of queues of one device of a driver module (for example, hisi_hpre-2)


After the KAE is installed, the driver device IDs on each machine may vary. The preceding are for reference only.
Parent topic: Software