From: Maynard J. <may...@us...> - 2007-10-18 21:07:48
|
Update of /cvsroot/oprofile/oprofile/opjitconv In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv25678/opjitconv Modified Files: Tag: JIT_SUPPORT opjitconv.c Log Message: Fix issues with incomplete jit dumpfiles Index: opjitconv.c =================================================================== RCS file: /cvsroot/oprofile/oprofile/opjitconv/Attic/opjitconv.c,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -p -d -r1.1.2.1 -r1.1.2.2 --- opjitconv.c 4 Oct 2007 21:21:23 -0000 1.1.2.1 +++ opjitconv.c 18 Oct 2007 21:07:36 -0000 1.1.2.2 @@ -943,6 +943,16 @@ int main(int argc, char ** argv) { create_arrays(); resolve_overlaps(); disambiguate_symbol_names(); + if (!entry_count) { + fprintf(stderr, "No records found in JIT dumpfile %s\n", + dumpfile); + fprintf(stderr, "OProfile may have been stopped before " + "JIT dump was complete.\n"); + fprintf(stderr, "Run OProfile again, but wait until profiling " + "agent completes before stopping.\n"); + return 1; + } + open_elf(elffile); partition_sections(); fill_sections(); |