Menu

#177 oparchive looks for daemon log in the wrong place

closed-fixed
None
5
2009-07-31
2009-02-27
Jim Blandy
No

oparchive assumes that the daemon log is named /var/lib/oprofile/oprofiled.log, but it's actually named /var/lib/oprofile/samples/oprofiled.log:

$ sudo opcontrol --start
Using default event: CPU_CLK_UNHALTED:100000:0:1:1
Using 2.6+ OProfile kernel interface.
Using log file /var/lib/oprofile/samples/oprofiled.log
Daemon started.
Profiler running.
$

This results in an error message:

$ oparchive -o foon
can't copy from /var/lib/oprofile/oprofiled.log to foon/var/lib/oprofile/oprofiled.log cause: No such file or directory
$

even though the log is there, in the samples subdirectory:

$ ls /var/lib/oprofile/samples/
current oprofiled.log
$

Discussion

  • Jim Blandy

    Jim Blandy - 2009-03-19

    In the current sources, oparchive still looks for oprofiled.log in /var/lib/oprofile, even when passed a --session-dir argument.

     
  • Maynard Johnson

    Maynard Johnson - 2009-05-07
    • assigned_to: nobody --> maynardj
     
  • Maynard Johnson

    Maynard Johnson - 2009-05-07

    A fix for this bug was posted to the oprofile-list on May 7, with subject heading:
    [PATCH] Fixes for oparchive session-dir as reported in bugs 2646389 and 2646376

     
  • Maynard Johnson

    Maynard Johnson - 2009-05-13

    A fix for this was committed to CVS today.

     
  • Maynard Johnson

    Maynard Johnson - 2009-05-13
    • status: open --> open-fixed
     
  • Maynard Johnson

    Maynard Johnson - 2009-07-31
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB