mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
cpacfstats: Add size setting to perf event
The newer perf_event_open syscall needs a struct perf_event_attr with the size field set correctly. Older versions did not even provide this field. However, this field is now set to the correct size value. Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com> Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
This commit is contained in:
committed by
Michael Holzheu
parent
6b8b336cf0
commit
93d91679c3
@@ -97,6 +97,7 @@ int perf_init(void)
|
||||
memset(&pfm_event, 0, sizeof(pfm_event));
|
||||
pfm_arg.attr = &pfm_event;
|
||||
pfm_arg.size = sizeof(pfm_arg);
|
||||
pfm_event.size = sizeof(pfm_event);
|
||||
|
||||
/* search for the counter's corresponding pfm name */
|
||||
for (i = ALL_COUNTER-1; i >= 0; i--)
|
||||
|
||||
Reference in New Issue
Block a user