Deleted Added
full compact
lockstat.c (256281) lockstat.c (285759)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

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

15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 *
21 * Portions Copyright (c) 2008-2009 Stacey Son <sson@FreeBSD.org>
22 *
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

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

15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 *
21 * Portions Copyright (c) 2008-2009 Stacey Son <sson@FreeBSD.org>
22 *
23 * $FreeBSD: stable/10/sys/cddl/dev/lockstat/lockstat.c 242723 2012-11-07 23:45:09Z jhibbits $
23 * $FreeBSD: stable/10/sys/cddl/dev/lockstat/lockstat.c 285759 2015-07-21 17:16:37Z markj $
24 *
25 */
26
27/*
28 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
29 * Use is subject to license terms.
30 */
31

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

156/*ARGSUSED*/
157static void
158lockstat_enable(void *arg, dtrace_id_t id, void *parg)
159{
160 lockstat_probe_t *probe = parg;
161
162 ASSERT(!lockstat_probemap[probe->lsp_probe]);
163
24 *
25 */
26
27/*
28 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
29 * Use is subject to license terms.
30 */
31

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

156/*ARGSUSED*/
157static void
158lockstat_enable(void *arg, dtrace_id_t id, void *parg)
159{
160 lockstat_probe_t *probe = parg;
161
162 ASSERT(!lockstat_probemap[probe->lsp_probe]);
163
164 lockstat_enabled++;
165
164 lockstat_probemap[probe->lsp_probe] = id;
165#ifdef DOODAD
166 membar_producer();
167#endif
168
169 lockstat_probe_func = dtrace_probe;
170#ifdef DOODAD
171 membar_producer();

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

179static void
180lockstat_disable(void *arg, dtrace_id_t id, void *parg)
181{
182 lockstat_probe_t *probe = parg;
183 int i;
184
185 ASSERT(lockstat_probemap[probe->lsp_probe]);
186
166 lockstat_probemap[probe->lsp_probe] = id;
167#ifdef DOODAD
168 membar_producer();
169#endif
170
171 lockstat_probe_func = dtrace_probe;
172#ifdef DOODAD
173 membar_producer();

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

181static void
182lockstat_disable(void *arg, dtrace_id_t id, void *parg)
183{
184 lockstat_probe_t *probe = parg;
185 int i;
186
187 ASSERT(lockstat_probemap[probe->lsp_probe]);
188
189 lockstat_enabled--;
190
187 lockstat_probemap[probe->lsp_probe] = 0;
188#ifdef DOODAD
189 lockstat_hot_patch();
190 membar_producer();
191#endif
192
193 /*
194 * See if we have any probes left enabled.

--- 134 unchanged lines hidden ---
191 lockstat_probemap[probe->lsp_probe] = 0;
192#ifdef DOODAD
193 lockstat_hot_patch();
194 membar_producer();
195#endif
196
197 /*
198 * See if we have any probes left enabled.

--- 134 unchanged lines hidden ---