From: Anton B. <an...@sa...> - 2003-06-15 07:38:41
|
Hi, We were always truncating the return value of pop_buffer_value to 32bit which meant is_escape_code failed for 64bit kernel/32bit userspace. Another thing I noticed is the event and unit_mask for the timer target seems to be missing. Anton Index: daemon/opd_image.c =================================================================== RCS file: /cvsroot/oprofile/oprofile/daemon/opd_image.c,v retrieving revision 1.54 diff -u -r1.54 opd_image.c --- daemon/opd_image.c 14 Jun 2003 16:29:00 -0000 1.54 +++ daemon/opd_image.c 15 Jun 2003 07:29:47 -0000 @@ -613,10 +613,10 @@ printf("Reading sample buffer.\n"); while (trans.remaining) { - code = pop_buffer_value(&trans); + uint64_t tmp = pop_buffer_value(&trans); - if (!is_escape_code(code)) { - opd_put_sample(&trans, code); + if (!is_escape_code(tmp)) { + opd_put_sample(&trans, tmp); continue; } |