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] |
Hi With this patch profiling works again on the ia64. Jes 2000-11-14 Jes Sorensen <jes@linuxcare.com> * NEWS: Update compile instructions for Linux/ia64. * sysdeps/ia64/_mcount.S: Call __mcount instead of __mcount_internal. * sysdeps/ia64/Makefile: Compile _mcount.S in subdir gmon as _mcount is required by profiled binaries. * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: Moved to... * sysdeps/ia64/machine-gmon.h diff -urN --exclude=CVS --exclude=manual --exclude=*~ --exclude=*.orig --exclude=*.rej --exclude=core --exclude=*.mo --exclude=testdata /home/jes/cygnus/libc-2.2/NEWS libc-2.2/NEWS --- /home/jes/cygnus/libc-2.2/NEWS Sun Nov 5 18:41:07 2000 +++ libc-2.2/NEWS Tue Nov 14 14:10:17 2000 @@ -104,7 +104,8 @@ least the following versions of the GNU tools (the : * The Cygnus toolchain snapshot for the ia64 as of August 4 - including the provided set of patches. + including the provided set of patches. It is however recommend + you use the October 24 toolchain snapshot or a more recent version. OR alternatively you can try the following (the Cygnus toolchain is the recommended solution): @@ -117,11 +118,11 @@ ================================================= The library requires Linux kernel version 2.4.0-test4-000728 or -later to funtion properly. Besides that it currently does not have -support for debug and profiling libraries. Hence the following options +later to funtion properly. Besides that it support for debug libraries +is currently untested. Hence the following options are required for configuring the library: - --disable-debug --disable-profile --enable-kernel=2.4.0 + --disable-debug --enable-kernel=2.4.0 It is also important that you make sure the library picks up the appropriate kernel header files, if you do not have recent enough @@ -132,7 +133,6 @@ the library: --disable-debug - --disable-profile --disable-cvs --enable-kernel=2.4.0 --host=ia64-linux @@ -144,7 +144,7 @@ Good luck Jes Sorensen <jes@linuxcare.com>, -August 28th, 2000 +November 14th, 2000 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Version 2.1.3 diff -urN --exclude=CVS --exclude=manual --exclude=*~ --exclude=*.orig --exclude=*.rej --exclude=core --exclude=*.mo --exclude=testdata /home/jes/cygnus/libc-2.2/sysdeps/ia64/Makefile libc-2.2/sysdeps/ia64/Makefile --- /home/jes/cygnus/libc-2.2/sysdeps/ia64/Makefile Tue Sep 26 15:01:28 2000 +++ libc-2.2/sysdeps/ia64/Makefile Tue Nov 14 13:12:02 2000 @@ -1,6 +1,10 @@ # The ia64 `long double' is a distinct type we support. long-double-fcts = yes +ifeq ($(subdir),gmon) +sysdep_routines += _mcount +endif + ifeq ($(subdir), csu) CPPFLAGS-start.S = -D__ASSEMBLY__ endif diff -urN --exclude=CVS --exclude=manual --exclude=*~ --exclude=*.orig --exclude=*.rej --exclude=core --exclude=*.mo --exclude=testdata /home/jes/cygnus/libc-2.2/sysdeps/ia64/_mcount.S libc-2.2/sysdeps/ia64/_mcount.S --- /home/jes/cygnus/libc-2.2/sysdeps/ia64/_mcount.S Mon Jul 31 23:14:43 2000 +++ libc-2.2/sysdeps/ia64/_mcount.S Tue Nov 14 13:21:01 2000 @@ -60,7 +60,7 @@ mov loc3 = r15 // gcc uses r15 to pass the static link to nested functions mov out0 = in2 mov out1 = rp - br.call.sptk.few rp = __mcount_internal + br.call.sptk.few rp = __mcount ;; .here: { diff -urN --exclude=CVS --exclude=manual --exclude=*~ --exclude=*.orig --exclude=*.rej --exclude=core --exclude=*.mo --exclude=testdata /home/jes/cygnus/libc-2.2/sysdeps/ia64/machine-gmon.h libc-2.2/sysdeps/ia64/machine-gmon.h --- /home/jes/cygnus/libc-2.2/sysdeps/ia64/machine-gmon.h Wed Dec 31 19:00:00 1969 +++ libc-2.2/sysdeps/ia64/machine-gmon.h Wed Jun 21 09:46:14 2000 @@ -0,0 +1,26 @@ +/* Machine-specific calling sequence for `mcount' profiling function. IA-64. + Copyright (C) 1995, 1996, 1997, 2000 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + +#define _MCOUNT_DECL(from, self) \ + void __mcount (u_long from, u_long self) + +/* Call __mcount with our the return PC for our caller, and the return + PC our caller will return to. Empty since we use an assembly stub + instead. */ +#define MCOUNT diff -urN --exclude=CVS --exclude=manual --exclude=*~ --exclude=*.orig --exclude=*.rej --exclude=core --exclude=*.mo --exclude=testdata /home/jes/cygnus/libc-2.2/sysdeps/unix/sysv/linux/ia64/machine-gmon.h libc-2.2/sysdeps/unix/sysv/linux/ia64/machine-gmon.h --- /home/jes/cygnus/libc-2.2/sysdeps/unix/sysv/linux/ia64/machine-gmon.h Wed Jun 21 00:18:38 2000 +++ libc-2.2/sysdeps/unix/sysv/linux/ia64/machine-gmon.h Wed Dec 31 19:00:00 1969 @@ -1,26 +0,0 @@ -/* Machine-specific calling sequence for `mcount' profiling function. IA-64. - Copyright (C) 1995, 1996, 1997, 2000 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public License as - published by the Free Software Foundation; either version 2 of the - License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public - License along with the GNU C Library; see the file COPYING.LIB. If not, - write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ - -#define _MCOUNT_DECL(from, self) \ - void __mcount (u_long from, u_long self) - -/* Call __mcount with our the return PC for our caller, and the return - PC our caller will return to. Empty since we use an assembly stub - instead. */ -#define MCOUNT
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |