Will, Does this pass if we instead say:
- write(pr[1], "c", 1); - read(pw[0], &c, 1); + (void)write(pr[1], "c", 1); + (void)read(pw[0], &c, 1); On Fri, May 2, 2008 at 7:10 PM, William Cohen <[EMAIL PROTECTED]> wrote: > > stephane eranian wrote: > > > Hello, > > > > I have released the perfmon2 kernel patch for kernel v2.6.25. There is > > no major features. However, there were a major restructuring of the code > > to make it more readable, isolate features per module. The header files > > have also been restructured to separate user vs. kernel, and generic only > > vs. shared with arch. The restructuring of the interrupt handler yielded > > a nice 15% latency improvement on single counter sampling runs on X86. > > This new structure will make it easier to extract features and merge them > > with the mainline kernel. > > > > In the time frame of 2.6.26, I will push a few bits and pieces to LKML > > for final review and integration. > > > > Here are some of the kernel changes: > > - Cell updates (Carl Love, Takashi Yamamoto) > > - new perfmon_debug boot option to enable debug (Robert Richter) > > - several bugs fixes on Itanium, MIPS and generic hrtimer management > > - Power locking updates (Corey Ashford) > > > > There is also a new release for libpfm, now at version 3.4. > > The changes include: > > - AMD Phenom (a.k.a. Barcelona) IBS support (Robert Richter) > > - Python bindings and examples (Arun Sharma) > > - environment variable support to enable debugging > > - auto-detection of syscall base number for 2.6.24 and 2.6.25 > > - new multi-threaded self-sampling example (Mark W. Krentel) > > - man pages cleanups (Steve Kaufmann) > > > > Special thanks to Arun (Google). The Python bindings are a nice addition > > to libpfm especially for prototyping and writing testsuites. > > > > Finally, a new major version of pfmon, now at pfmon-3.4. > > Among the many changes: > > - added support for dmalloc (Andrzej Nowak) > > - updated support for Cell processor (Takashi Yamamoto) > > - possibility to terminate pfmon cleanly with SIGTERM > > - --follow-fork and derivatives fixed on Itanium and other platforms > > - tracking of dlopen now works on mixed ABI environments > > - lots of bugs fixes > > > > As usual all files and more detailed changelogs can be downloaded from our > > website at: > > > > http://perfmon.sourceforge.net > > > > Enjoy, > > > > Hi Stephane, > > I rebuilt the new version of libpfm and pfmon on Fedora to see if there > were any problems compiling. There was a minor issue with unused results for > read() and write(); the rpmbuild fails on any warnings including the unused > results. I used the attached patch for libpfm to fix that. > > Information about the resulting RPM builds is available for Fedora rawhide > at: > > pfmon: http://koji.fedoraproject.org/koji/buildinfo?buildID=47902 > libpfm: http://koji.fedoraproject.org/koji/buildinfo?buildID=47899 > > -Will > > diff -up libpfm-3.4/examples/self_pipe.c.unused > libpfm-3.4/examples/self_pipe.c > --- libpfm-3.4/examples/self_pipe.c.unused 2008-05-02 > 09:49:25.000000000 -0400 > +++ libpfm-3.4/examples/self_pipe.c 2008-05-02 09:49:40.000000000 -0400 > @@ -125,6 +125,7 @@ main(int argc, char **argv) > size_t len; > char *name; > char c = '0'; > + int nbytes; > > /* > * pass options to library (optional) > @@ -312,8 +313,8 @@ main(int argc, char **argv) > * ping pong loop > */ > while(!quit) { > - write(pr[1], "c", 1); > - read(pw[0], &c, 1); > + nbytes = write(pr[1], "c", 1); > + nbytes = read(pw[0], &c, 1); > } > > if (pfm_stop(ctx_fd)) > > ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ perfmon2-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/perfmon2-devel
