Deleted Added
full compact
subr_prof.c (132266) subr_prof.c (143063)
1/*-
2 * Copyright (c) 1982, 1986, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 16 unchanged lines hidden (view full) ---

25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)subr_prof.c 8.3 (Berkeley) 9/23/93
30 */
31
32#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1982, 1986, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 16 unchanged lines hidden (view full) ---

25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)subr_prof.c 8.3 (Berkeley) 9/23/93
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/kern/subr_prof.c 132266 2004-07-16 21:04:55Z jhb $");
33__FBSDID("$FreeBSD: head/sys/kern/subr_prof.c 143063 2005-03-02 21:33:29Z joerg $");
34
35#include <sys/param.h>
36#include <sys/systm.h>
37#include <sys/sysproto.h>
38#include <sys/kernel.h>
39#include <sys/lock.h>
40#include <sys/mutex.h>
41#include <sys/proc.h>

--- 496 unchanged lines hidden (view full) ---

538 stop = 0;
539 }
540 }
541 if (stop)
542 stopprofclock(p);
543 PROC_UNLOCK(p);
544}
545
34
35#include <sys/param.h>
36#include <sys/systm.h>
37#include <sys/sysproto.h>
38#include <sys/kernel.h>
39#include <sys/lock.h>
40#include <sys/mutex.h>
41#include <sys/proc.h>

--- 496 unchanged lines hidden (view full) ---

538 stop = 0;
539 }
540 }
541 if (stop)
542 stopprofclock(p);
543 PROC_UNLOCK(p);
544}
545
546#if (defined(__amd64__) || defined(__i386__)) && __GNUC__ >= 2 && \
547 !defined(__INTEL_COMPILER)
546#if (defined(__amd64__) || defined(__i386__)) && \
547 defined(__GNUCLIKE_CTOR_SECTION_HANDLING)
548/*
549 * Support for "--test-coverage --profile-arcs" in GCC.
550 *
551 * We need to call all the functions in the .ctor section, in order
552 * to get all the counter-arrays strung into a list.
553 *
554 * XXX: the .ctors call __bb_init_func which is located in over in
555 * XXX: i386/i386/support.s for historical reasons. There is probably

--- 36 unchanged lines hidden ---
548/*
549 * Support for "--test-coverage --profile-arcs" in GCC.
550 *
551 * We need to call all the functions in the .ctor section, in order
552 * to get all the counter-arrays strung into a list.
553 *
554 * XXX: the .ctors call __bb_init_func which is located in over in
555 * XXX: i386/i386/support.s for historical reasons. There is probably

--- 36 unchanged lines hidden ---