#227 opreport uses oprofile_data even when passed an archive spec

closed-invalid
nobody
None
5
2012-12-21
2012-11-16
Maynard Johnson
No

By default (as of 0.9.8), opreport will first look for a samples directory in <cur-dir>/oprofile_data. However, if the user passes an archive specification, it should honor that spec and ignore any <cur-dir>/oprofile_data dirctory it finds, but it is not ignoring it.

Discussion

    • status: open --> closed-invalid
     
  • This was a user error on my part. As of oprofilie 0.9.8, when oparchive is run, it prints the following message:

    Example: The pathnames below are, of course, variable:
    ------------------------------------------------
    Using /home/maynard/test-stuff/tmp/oprofile_data/samples/ for session-dir
    NOTE: The sample data in this archive is located at /home/maynard/test-stuff/tmp/oprofile_data
    instead of the standard location of /var/lib/oprofile. Hence, when using opreport
    and other post-processing tools on this archive, you must pass the following option:
    --session-dir=/home/maynard/test-stuff/tmp/oprofile_data
    -------------------------------

    Evidently, when I opened this bug, I had run 'opreport archive:<archive-spec>' without specifying the --session-dir as directed by the message.

    Closing bug.