This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: status?


>>>>> "Ulrich" == Ulrich Drepper <drepper@redhat.com> writes:

Ulrich> Hi, could you please give me some status for the
Ulrich> architectures?  I have one more problem to look at tomorrow
Ulrich> and then all I plan to do before the next pre-release is done.
Ulrich> Unless I get some problem reports now that is.

ia64 is actually doing quite well, there are a few issues with the
floating point code and possibly with the threads but other than that
I don't think we have a lot of outstanding issues. Someone needs to
look at the Intel math library as well.

Could you apply the attached one please.

Jes

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.


diff -urN --exclude=*.mo --exclude=manual --exclude=CVS --exclude=*~ --exclude=*.rej /home/jes/cygnus/libc-2.2/sysdeps/unix/sysv/linux/ia64/profil-counter.h libc-2.2/sysdeps/unix/sysv/linux/ia64/profil-counter.h
--- /home/jes/cygnus/libc-2.2/sysdeps/unix/sysv/linux/ia64/profil-counter.h	Wed Jun 21 00:19:40 2000
+++ libc-2.2/sysdeps/unix/sysv/linux/ia64/profil-counter.h	Wed Oct 25 15:34:28 2000
@@ -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));
 }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]