oprofile pp tools should print messages about lost samples

When operf completes running, it collects statistics about
lost samples, records them in the operf.log, and prints
a warning message if the number of lost samples exceeds
a pre-defined percentage (.01%) of the total number of
samples.  However, when opreport or any of the other oprofile
post-processing tools are run, the statistics are not
readily available (only in the operf.log), so there is no
warning about lost samples. This patch persists those
statistics to files in the <session-dir>/samples/current/stats
dir, allowing the pp tools to access them later.  These
stats files are also copied by oparchive, so even archived
profile data will have the statistics available.

Signed-off-by: Maynard Johnson <maynardj@us.ibm.com>
Fix opjitconv error message for bfd_set_arch_mach failure

When converting a JIT dump file to ELF, if we get a failure
calling the BFD function 'bfd_set_arch_mach', we were incorrectly
displaying the message:
   bfd_set_format: No error

This corrects the error message to say "bfd_set_arch_mach: No error".

Signed-off-by: Maynard Johnson <maynardj@us.ibm.com>
Catch and handle error from op_jit_convert function

In opjitconv.c:process_jit_dumpfile, we were not detecting a failure
from op_jit_convert, which (when a failure actually does occur there)
results in a very mysterious failure message from copy_elffile().
This patches rectifies that situation.

Signed-off-by: Maynard Johnson <maynardj@us.ibm.com>
Merge branch 'oprofile'