From: Philippe E. <ph...@us...> - 2002-09-04 22:51:04
|
Update of /cvsroot/oprofile/oprofile/dae In directory usw-pr-cvs1:/tmp/cvs-serv15925/dae Modified Files: opd_proc.c oprofiled.c Log Message: make the daemon/module interface 64 bits architecture safe Patch from Will regards, Phil Index: opd_proc.c =================================================================== RCS file: /cvsroot/oprofile/oprofile/dae/opd_proc.c,v retrieving revision 1.129 retrieving revision 1.130 diff -u -d -r1.129 -r1.130 --- opd_proc.c 16 Aug 2002 17:43:44 -0000 1.129 +++ opd_proc.c 4 Sep 2002 22:51:01 -0000 1.130 @@ -301,7 +301,7 @@ opd_stats[OPD_SAMPLES]++; opd_stats[OPD_SAMPLE_COUNTS] += sample->count; - verbprintf("DO_PUT_SAMPLE: c%d, EIP 0x%.8x, pid %.6d, count %.6d\n", + verbprintf("DO_PUT_SAMPLE: c%d, EIP 0x%.8lx, pid %.6d, count %.6d\n", sample->counter, sample->eip, sample->pid, sample->count); if (opd_eip_is_kernel(sample->eip)) { @@ -361,7 +361,8 @@ out: /* couldn't locate it */ - verbprintf("Couldn't find map for pid %.6d, EIP 0x%.8x.\n", sample->pid, sample->eip); + verbprintf("Couldn't find map for pid %.6d, EIP 0x%.8lx.\n", + sample->pid, sample->eip); opd_stats[OPD_LOST_MAP_PROCESS]++; return; } @@ -382,7 +383,7 @@ struct opd_proc * old; struct opd_proc * proc; - verbprintf("DO_FORK: from %d to %d\n", note->pid, note->addr); + verbprintf("DO_FORK: from %d to %ld\n", note->pid, note->addr); old = opd_get_proc(note->pid); Index: oprofiled.c =================================================================== RCS file: /cvsroot/oprofile/oprofile/dae/oprofiled.c,v retrieving revision 1.94 retrieving revision 1.95 diff -u -d -r1.94 -r1.95 --- oprofiled.c 16 Aug 2002 17:43:44 -0000 1.94 +++ oprofiled.c 4 Sep 2002 22:51:01 -0000 1.95 @@ -611,7 +611,7 @@ verbprintf("Read buffer of %d entries.\n", opd_buf->count); for (i = 0; i < opd_buf->count; i++) { - verbprintf("%.6u: EIP: 0x%.8x pid: %.6d count: %.6d\n", + verbprintf("%.6u: EIP: 0x%.8lx pid: %.6d count: %.6d\n", i, buffer[i].eip, buffer[i].pid, buffer[i].count); /* FIXME : we can try to remove cast by using in module pid_t |