On Fri, 21 Jun 2013, Toralf Förster wrote:

> Wasn't aware of this message before - and got it now when running
> trinity within a 32 bit user-mode-linux.
> 
> Is that directory helpful for trinity ?

It is used when coming up with possible events for the perf_event_open() 
syscall.

It's not fatal if the directory doesn't exist.  

I should probably remove the error message (or make it only show up at 
high verbosity levels?).

A patch that removes the message is included below.

diff --git a/syscalls/perf_event_open.c b/syscalls/perf_event_open.c
index cf10134..ef8cb4f 100644
--- a/syscalls/perf_event_open.c
+++ b/syscalls/perf_event_open.c
@@ -223,9 +223,6 @@ static int init_pmus(void) {
 
        dir=opendir("/sys/bus/event_source/devices");
        if (dir==NULL) {
-               fprintf(stderr,"Unable to opendir "
-                       "/sys/bus/event_source/devices : %s\n",
-                       strerror(errno));
                return -1;
        }
 

Reply via email to