Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
2000-10-25  David Mosberger  <davidm@hpl.hp.com>

	* sysdeps/unix/sysv/linux/ia64/profil-counter.h: Multiply slot
	number by four to use bins of width 4 to get accurate
	instruction-level profiling.
  • Loading branch information
Ulrich Drepper committed Oct 25, 2000
1 parent fb9c497 commit 6a39d02
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2000-10-25 David Mosberger <davidm@hpl.hp.com>

* sysdeps/unix/sysv/linux/ia64/profil-counter.h: Multiply slot
number by four to use bins of width 4 to get accurate
instruction-level profiling.

2000-10-25 Andreas Jaeger <aj@suse.de>

* sysdeps/generic/dl-cache.h (CACHEMAGIC_VERSION_NEW): Correct string.
Expand Down
7 changes: 6 additions & 1 deletion sysdeps/unix/sysv/linux/ia64/profil-counter.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,10 @@
static void
profil_counter (int signr, int code, struct sigcontext *scp)
{
profil_count ((void *) scp->sc_ip);
unsigned long ip = scp->sc_ip & ~0X3ULL, slot = scp->sc_ip & 0x3ull;

/* Note: Linux/ia64 encodes the slot number in bits 0 and 1. We
want to multiply the slot number by four so we can use bins of
width 4 to get accurate instruction-level profiling. */
profil_count ((void *) (ip + 4*slot));
}

0 comments on commit 6a39d02

Please sign in to comment.