Deleted Added
full compact
uipc_mbuf.c (207475) uipc_mbuf.c (209390)
1/*-
2 * Copyright (c) 1982, 1986, 1988, 1991, 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 * @(#)uipc_mbuf.c 8.2 (Berkeley) 1/4/94
30 */
31
32#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1982, 1986, 1988, 1991, 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 * @(#)uipc_mbuf.c 8.2 (Berkeley) 1/4/94
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/kern/uipc_mbuf.c 207475 2010-05-01 18:34:50Z zec $");
33__FBSDID("$FreeBSD: head/sys/kern/uipc_mbuf.c 209390 2010-06-21 09:55:56Z ed $");
34
35#include "opt_param.h"
36#include "opt_mbuf_stress_test.h"
37#include "opt_mbuf_profiling.h"
38
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/kernel.h>

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

2022 mbprof.wasted[fls(wasted)]++;
2023}
2024
2025static void
2026mbprof_textify(void)
2027{
2028 int offset;
2029 char *c;
34
35#include "opt_param.h"
36#include "opt_mbuf_stress_test.h"
37#include "opt_mbuf_profiling.h"
38
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/kernel.h>

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

2022 mbprof.wasted[fls(wasted)]++;
2023}
2024
2025static void
2026mbprof_textify(void)
2027{
2028 int offset;
2029 char *c;
2030 u_int64_t *p;
2030 uint64_t *p;
2031
2032
2033 p = &mbprof.wasted[0];
2034 c = mbprofbuf;
2035 offset = snprintf(c, MP_MAXLINE + 10,
2036 "wasted:\n"
2037 "%ju %ju %ju %ju %ju %ju %ju %ju "
2038 "%ju %ju %ju %ju %ju %ju %ju %ju\n",

--- 82 unchanged lines hidden ---
2031
2032
2033 p = &mbprof.wasted[0];
2034 c = mbprofbuf;
2035 offset = snprintf(c, MP_MAXLINE + 10,
2036 "wasted:\n"
2037 "%ju %ju %ju %ju %ju %ju %ju %ju "
2038 "%ju %ju %ju %ju %ju %ju %ju %ju\n",

--- 82 unchanged lines hidden ---