ihk_os_setperfevent: Return number of registered events

In addition to that, mcctrl_perf_set is modified so that it updates
usrdata->perf_event_num with number of registered events.

Change-Id: I3f343176f55b06d3baab0b0fe34e240f39706cf6
Fujitsu: POSTK_DEBUG_TEMP_FIX_80
This commit is contained in:
Shiratori, Takehiro
2018-10-16 17:15:43 +09:00
committed by Masamichi Takagi
parent 24a3b236a0
commit fd8bed670e
4 changed files with 54 additions and 12 deletions

View File

@ -277,6 +277,7 @@ enum perf_ctrl_type {
struct perf_ctrl_desc {
enum perf_ctrl_type ctrl_type;
int err;
union {
/* for SET, GET */
struct {