* Unable to opendir /sys/bus/event_source/devices : No such file or directory
@ 2013-06-21 20:11 Toralf Förster
2013-06-21 20:39 ` Vince Weaver
0 siblings, 1 reply; 3+ messages in thread
From: Toralf Förster @ 2013-06-21 20:11 UTC (permalink / raw)
To: trinity
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 ?
--
MfG/Sincerely
Toralf Förster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Unable to opendir /sys/bus/event_source/devices : No such file or directory
2013-06-21 20:11 Unable to opendir /sys/bus/event_source/devices : No such file or directory Toralf Förster
@ 2013-06-21 20:39 ` Vince Weaver
2013-06-21 21:00 ` Toralf Förster
0 siblings, 1 reply; 3+ messages in thread
From: Vince Weaver @ 2013-06-21 20:39 UTC (permalink / raw)
To: Toralf Förster; +Cc: trinity
[-- Attachment #1: Type: TEXT/PLAIN, Size: 894 bytes --]
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;
}
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: Unable to opendir /sys/bus/event_source/devices : No such file or directory
2013-06-21 20:39 ` Vince Weaver
@ 2013-06-21 21:00 ` Toralf Förster
0 siblings, 0 replies; 3+ messages in thread
From: Toralf Förster @ 2013-06-21 21:00 UTC (permalink / raw)
To: Vince Weaver; +Cc: trinity
On 06/21/2013 10:39 PM, Vince Weaver wrote:
> I should probably remove the error message (or make it only show up at
> high verbosity levels?).
less verbose at least, otherwise it is just irritating
> A patch that removes the message is included below.
thx
--
MfG/Sincerely
Toralf Förster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-06-21 21:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-21 20:11 Unable to opendir /sys/bus/event_source/devices : No such file or directory Toralf Förster
2013-06-21 20:39 ` Vince Weaver
2013-06-21 21:00 ` Toralf Förster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox