Some arches don't support perf counter and an error message
breaks many tests from the testsuite. Since the software still
runs without it, just inform that perf counters are not available
with using INFO level instead.
Signed-off-by: Flavio Leitner <fbl@redhat.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
[blp@nicira.com removed unneeded \n from log message]
Signed-off-by: Ben Pfaff <blp@nicira.com>
fd__ = perf_event_open(&pe, 0, -1, -1, 0);
if (fd__ == -1) {
- VLOG_ERR("Peformance counter is not available on this platform.\n");
+ VLOG_INFO("Peformance counter is not available on this platform.");
} else {
ioctl(fd__, PERF_EVENT_IOC_RESET, 0);
ioctl(fd__, PERF_EVENT_IOC_ENABLE, 0);