From: Maynard J. <may...@us...> - 2009-05-13 16:12:17
|
Update of /cvsroot/oprofile/oprofile/pp In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv21081/pp Modified Files: oparchive.cpp Log Message: Fixes for oparchive session-dir as reported in bugs 2646389 and 2646376 Index: oparchive.cpp =================================================================== RCS file: /cvsroot/oprofile/oprofile/pp/oparchive.cpp,v retrieving revision 1.18 retrieving revision 1.19 diff -u -p -d -r1.18 -r1.19 --- oparchive.cpp 3 Jul 2008 17:12:06 -0000 1.18 +++ oparchive.cpp 13 May 2009 16:12:08 -0000 1.19 @@ -163,13 +163,13 @@ int oparchive(options::spec const & spec copy_one_file(image_ok, sample_name, sample_archive_file); } - /* copy over the /var/lib/oprofile/abi file if it exists */ - string abi_name = "/var/lib/oprofile/abi"; + /* copy over the <session-dir>/abi file if it exists */ + string abi_name = string(op_session_dir) + "/abi"; copy_one_file(image_ok, archive_path + abi_name, options::outdirectory + abi_name); - /* copy over the /var/lib/oprofile/oprofiled.log file */ - string log_name = "/var/lib/oprofile/oprofiled.log"; + /* copy over the <session-dir>/samples/oprofiled.log file */ + string log_name = string(op_samples_dir) + "/oprofiled.log"; copy_one_file(image_ok, archive_path + log_name, options::outdirectory + log_name); |