From: Philippe E. <ph...@us...> - 2002-04-20 23:28:48
|
Update of /cvsroot/oprofile/oprofile/dae In directory usw-pr-cvs1:/tmp/cvs-serv16148/dae Modified Files: Tag: branch-db-1 opd_proc.c Log Message: partial fix for OPD_KERNEL_OFFSET things that's partial because strictly speaking OPD_KERNEL_OFFSET is no longer required (?) But setting it to zero for test purpose get weirds errors in oprofpp_util.cpp:sym_offset() for module and vmlinux --> "less than zeo offset". John can you get a look at that, I'm missing something when I assume that OPD_KERNEL_OFFSET == 0 should work ? Phil Index: opd_proc.c =================================================================== RCS file: /cvsroot/oprofile/oprofile/dae/opd_proc.c,v retrieving revision 1.109.2.2 retrieving revision 1.109.2.3 diff -u -d -r1.109.2.2 -r1.109.2.3 --- opd_proc.c 20 Apr 2002 01:25:59 -0000 1.109.2.2 +++ opd_proc.c 20 Apr 2002 23:28:46 -0000 1.109.2.3 @@ -421,7 +421,11 @@ } } - db_insert(&sample_file->tree, offset, count); + /* FIXME: this is no longer required ? */ + if (image->kernel) + offset += OPD_KERNEL_OFFSET; + + db_insert(&sample_file->tree, offset, opd_get_count(count)); } |