include/shared/lk: adjust param_idx for callbacks

If BENCH_ALL_CPU() is used with parameters, the trusty_bench_get_param_name_cb will be called with param_idx values that exceed the number of parameters in the benchmark.

Bug: 330059594
Test: dc_adb shell trusty-ut-ctrl "com.android.trusty.syscall.msg.bench"
Change-Id: Ifde1fa883bd0d52361950ed4d75985889ff79375
4 files changed