Projects
OpenHPC4:4.2:Factory
likwid-gnu15
_service:extract_file:likwid-5.5.1-ppc64le-perf...
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:extract_file:likwid-5.5.1-ppc64le-perfevent.patch of Package likwid-gnu15
diff --git a/src/includes/perfmon_perfevent.h b/src/includes/perfmon_perfevent.h index 98ad2ef6..3d2567ac 100644 --- a/src/includes/perfmon_perfevent.h +++ b/src/includes/perfmon_perfevent.h @@ -292,6 +292,10 @@ int parse_event_config(char* base, char* option, int* num_formats, struct perf_e bdestroy(src); fclose(fp); } + else + { + err = -ENOENT; + } bdestroy(path); } else @@ -813,14 +817,14 @@ int perf_uncore_setup(struct perf_event_attr *attr, RegisterType type, PerfmonEv /* free(formats);*/ /* }*/ #ifdef _ARCH_PPC - if (ret == 0 && reg == INVALID) + if (ret == -ENOENT) { num_formats = 0; formats = NULL; ret = parse_event_config(bdata(perf_folder), perfEventOptionNames[EVENT_OPTION_UNCORE_CONFIG], &num_formats, &formats); if (ret == 0) { - for (int i = 0; i < num_formats && umask != 0x0; i++) + for (int i = 0; i < num_formats && eventConfig != 0x0; i++) { switch(formats[i].reg) {
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.