perf-counter: Lower log level when no perf counter.
authorFlavio Leitner <fbl@redhat.com>
Tue, 14 Apr 2015 15:14:21 +0000 (12:14 -0300)
committerBen Pfaff <blp@nicira.com>
Tue, 14 Apr 2015 20:24:10 +0000 (13:24 -0700)
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>
lib/perf-counter.c

index e2eaefc..e72ff29 100644 (file)
@@ -76,7 +76,7 @@ perf_event_setup(void)
 
     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);