christos
f0d7eb24ef
use the pico objects if we are making a PIC profiled library.
2019-01-06 18:14:10 +00:00
mrg
4146fd94aa
copy the i386 workaround for amd64.
2018-02-05 22:12:37 +00:00
mrg
8fdd01b3ee
fixes for GCC 6:
...
- -Wstrict-prototypes is not available for C++, so don't try to
ignore it for C++.
- remove many _DIAGASSERT() checks against not NULL for functions
with arguments with nonnull attributes. in two cases, leave
code behind that should set defaults to "(null)".
- use -Wno-error=frame-address for i386 mcount, as it seems valid
to assume the caller will have a frame.fair
2018-02-04 01:13:45 +00:00
christos
9a513d9643
make more descriptors that we open as close-on-exec
2014-09-18 13:58:20 +00:00
joerg
ff474c241d
Use --no-warn only with GCC on MIPS.
2014-09-17 11:37:28 +00:00
christos
c5e820cae4
PR/45989: Martin Husemann: lint invocation does include -w only on i386
...
- turn lint -w for all the platforms after fixing the lint warnings.
- add _DIAGASSERTS() for casts that would assign values to types that
would not fit.
- change types, add casts
- change into ansii prototypes
- turn on _DIAGNOSTIC for libc (during current, to be eliminated for release
builds)
approved by core@
2012-03-13 21:13:30 +00:00
matt
5ae5f9ae2e
Instead of testing for all mips variants, just use MACHINE_CPU.
2011-01-23 06:27:32 +00:00
wiz
e97508602c
Fix fdleak in #ifdef DEBUG. Found by cppcheck.
2011-01-05 00:03:52 +00:00
christos
4fc887422c
- KNF
...
- fix hertz()
- fix error and warning messages
2010-03-01 19:52:38 +00:00
wiz
7bd4f0a241
Close log file handle after using it. Found by cppcheck.
2010-01-17 23:09:02 +00:00
mrg
1a9afd2643
don't warn about mcount on mips64* as well.
...
XXX: someone really should fix mips profile.h's MCOUNT!
2009-12-17 06:54:51 +00:00
joerg
746b955e9e
Fix markup.
2009-04-11 15:33:27 +00:00
lukem
71d48e7c9e
sign-compare fixes
2009-02-12 04:57:46 +00:00
lukem
a703e9a7ca
Disable assembler warnings on mipseb and mipsel for mcount.c
...
Workaround for PR#39192
2008-07-29 14:20:12 +00:00
christos
ce2c90c7c1
fix incomplete initializers
2006-10-15 16:14:46 +00:00
christos
cc20633139
don't include <sys/param.h> twice.
2006-10-04 21:23:56 +00:00
dogcow
7f1fcf02d3
use rownddown/rowndup in sys/param.h instead of their now-deleted UC equivs
...
formerly in sys/gmon.h.
2006-10-04 20:22:14 +00:00
mrg
e221bc9fb9
in _m_gmon_destructor(0 when traversing the list, add (void *) to the cast
...
chain.
2006-05-11 17:19:15 +00:00
christos
a0f3f04724
fix debugging printf formats.
2006-01-24 17:33:44 +00:00
christos
374485f427
fix compilation with -DDEBUG
2006-01-24 17:30:51 +00:00
christos
e5548b402a
Use reach-over sources from common/lib/libc
2005-12-20 19:31:47 +00:00
christos
03256c6e55
WARNS=4
2005-11-29 03:11:58 +00:00
jmc
ff69cd3f50
The __used__ change doesn't work on 2.95/vax. Put an #ifdef back in for vax and
...
reverted it to __unused__ as it was before
2005-05-06 19:32:30 +00:00
christos
950f51e55c
Remove unused, -- just used is enough. From uwe.
2005-04-24 18:18:52 +00:00
christos
d066f8aee0
Add a __used__ attribute next to the __unused__ attribute, because we don't
...
want the optimizer to get rid of the whole code erroneously (which happens
with -O6 on sparc64).
2005-04-24 18:15:52 +00:00
thorpej
1e627ed78e
Make gmon / mcount work properly for threaded applications by keeping
...
thread-specific gmonparam structures and then merging them before dumping
the profile buffers.
Written by Nathan J. Williams, contributed by Wasabi Systems, Inc.
2004-05-10 22:16:42 +00:00
agc
eb7c1594f1
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-08-07 16:42:00 +00:00
dsl
61a8612dd3
Use snprintf instead of hand crafted string copy and numeric conversion.
...
Avoids problems if/when the pid is greater than 999999.
(approved by christos)
2003-04-06 18:05:52 +00:00
thorpej
045cceecae
Fix signed/unsigned comparison warnings.
2002-11-11 17:13:59 +00:00
wiz
e1cc25117e
New sentence, new line. Correct punctuation. Use more markup.
2002-10-01 17:01:40 +00:00
christos
a82db51f4d
disable profiling set{u,g}id binaries.
2002-04-26 16:39:52 +00:00
briggs
9c006e1248
We reference a monstartup(3), so let's actually make a link for it.
2002-01-02 04:52:55 +00:00
wiz
3e3b82275d
Remove some boring whitespace, sort sections.
2001-09-16 02:29:00 +00:00
cgd
6b25d77513
convert from __progname to getprogname()
2001-02-19 22:22:16 +00:00
christos
d9ce410183
fix nested extern
...
fix sbrk casts
2000-12-20 20:55:23 +00:00
erh
a5c46ce842
Document the PROFDIR environment variable.
2000-10-24 19:31:59 +00:00
thorpej
9c5afcb2f0
Move the Alpha _mcount() into a .S file so that it can be
...
pre-processed, like other Alpha assembly files.
2000-09-05 16:28:30 +00:00
garbled
38c96853cf
Last of the .Os cleanups. .Os is defined in the tmac.doc-common file,
...
so we shouldn't override it with versions in the manpages. Wheee!
1999-03-22 19:44:33 +00:00
kleink
6348b7d5b5
* On architectures using ELF, and conditionally on those in transition, rename
...
_ASM_LABEL(cerror) and _ASM_LABEL(curbrk) to _C_LABEL(__cerror) and
_C_LABEL(__curbrk) (or their respective architecture-specific equivalents) to
avoid possible name clashes with identifiers used in user applications.
* Do the same for minbrk on all architectures to avoid a GCC-specific (and
on ELF architectures effectively useless) symbol reference renaming in MI code.
1999-01-14 22:48:18 +00:00
christos
2c89343c25
delint
1998-11-13 15:46:52 +00:00
perry
a843f0f8a5
bzero->memset, bcopy->memcpy, bcmp->memcmp
1998-08-10 02:43:08 +00:00
kleink
1045d16494
Prefer STDERR_FILENO over 2.
1998-07-04 20:22:05 +00:00
cgd
ef8dc9789a
don't actually compile any code if building in a _STANDALONE environment
...
(e.g. libkern for boot blocks), since profiling support doesn't make
sense there.
1998-03-26 23:52:38 +00:00
perry
312aca536f
add LIBRARY section to man page
1998-02-05 18:45:17 +00:00
perry
4146d58604
remove obsolete register declarations
1998-02-03 18:23:37 +00:00
christos
47cb5f1603
Fix RCSID's
...
Add unused attribute to _mcount, since it might be called from assembly.
1997-07-13 19:53:56 +00:00
christos
1c7406f68c
Fix RCSID's
...
Use warn instead of perror()
Use "namespace.h"
Add missing prototypes
1997-07-13 19:53:06 +00:00
mrg
f542cc77da
be safe with buffers. KNF.
1997-04-22 11:17:58 +00:00
mrg
9cd5492c02
- convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
...
- some KNF.
1997-01-23 14:01:45 +00:00
cgd
362c499969
prototype mcount (or, whatever function is declared by _MCOUNT_DECL;
...
typically mcount()) before it is defined or used.
1997-01-03 07:40:41 +00:00