diff options
author | Andi Kleen <ak@linux.intel.com> | 2010-10-06 22:02:58 +0000 |
---|---|---|
committer | Andi Kleen <ak@gcc.gnu.org> | 2010-10-06 22:02:58 +0000 |
commit | 6e9bd0f8983779325b34a9645c2634dafd14d3c9 (patch) | |
tree | 4b6b55c80051aa7deeeb8de1d0979f488e306b4c /libiberty/config.in | |
parent | 826d817faeaa2549589553b276e4c71f83ce6dd7 (diff) | |
download | gcc-6e9bd0f8983779325b34a9645c2634dafd14d3c9.zip gcc-6e9bd0f8983779325b34a9645c2634dafd14d3c9.tar.gz gcc-6e9bd0f8983779325b34a9645c2634dafd14d3c9.tar.bz2 |
[PATCH] Report LTO phase in lto1 process name v2
On larger parallel WHOPR builds I find it useful to see in top which
phase a given lto1 is in.
Set the process name to lto1-wpa, lto1-ltrans, lto1-lto depending
on the current mode.
This is currently only implemented for Linux and only
using the "comm" process name, which is reported in top.
v2: Moved function to libiberty, renamed setproctitle to match
BSD. In theory it should pick up BSD's libc function for this
on a BSD system, but I haven't tested this.
gcc/lto/
2010-10-06 Andi Kleen <ak@linux.intel.com>
* lto.c (lto_process_name): Add.
(lto_main): Call lto_process_name.
include/
2010-10-06 Andi Kleen <ak@linux.intel.com>
* libiberty.h (setproctitle): Add prototype.
libiberty/
2010-10-06 Andi Kleen <ak@linux.intel.com>
* Makefile.in (CFILES): Add setproctitle.
(CONFIGURED_OFILES): Add setproctitle.
(setproctitle): Add rule.
* config.in: Regenerate.
* configure: Regenerate.
* configure.ac: Add checks for prctl PR_SET_NAME and setproctitle.
* setproctitle.c: Add file.
* functions.texi: Regenerate.
From-SVN: r165066
Diffstat (limited to 'libiberty/config.in')
-rw-r--r-- | libiberty/config.in | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libiberty/config.in b/libiberty/config.in index 1931648..02d93da 100644 --- a/libiberty/config.in +++ b/libiberty/config.in @@ -44,8 +44,8 @@ don't. */ #undef HAVE_DECL_ASPRINTF -/* Define to 1 if you have the declaration of `basename', and to 0 if you - don't. */ +/* Define to 1 if you have the declaration of `basename(char *)', and to 0 if + you don't. */ #undef HAVE_DECL_BASENAME /* Define to 1 if you have the declaration of `calloc', and to 0 if you don't. @@ -154,9 +154,6 @@ /* Define to 1 if you have the <memory.h> header file. */ #undef HAVE_MEMORY_H -/* Define to 1 if you have the `mempcpy' function. */ -#undef HAVE_MEMPCPY - /* Define to 1 if you have the `memset' function. */ #undef HAVE_MEMSET @@ -169,6 +166,9 @@ /* Define to 1 if you have the `on_exit' function. */ #undef HAVE_ON_EXIT +/* Define if you have prctl PR_SET_NAME */ +#undef HAVE_PRCTL_SET_NAME + /* Define to 1 if you have the `psignal' function. */ #undef HAVE_PSIGNAL @@ -199,6 +199,9 @@ /* Define to 1 if you have the `setenv' function. */ #undef HAVE_SETENV +/* Define to 1 if you have the `setproctitle' function. */ +#undef HAVE_SETPROCTITLE + /* Define to 1 if you have the `sigsetmask' function. */ #undef HAVE_SIGSETMASK @@ -358,9 +361,6 @@ /* Define to 1 if you have the `vprintf' function. */ #undef HAVE_VPRINTF -/* Define to 1 if you have the `vsnprintf' function. */ -#undef HAVE_VSNPRINTF - /* Define to 1 if you have the `vsprintf' function. */ #undef HAVE_VSPRINTF |