lockstat.c (192853) | lockstat.c (233409) |
---|---|
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: head/sys/cddl/dev/lockstat/lockstat.c 192853 2009-05-26 20:28:22Z sson $ | 23 * $FreeBSD: head/sys/cddl/dev/lockstat/lockstat.c 233409 2012-03-24 05:14:37Z gonzo $ |
24 * 25 */ 26 27/* 28 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 29 * Use is subject to license terms. 30 */ 31 --- 8 unchanged lines hidden (view full) --- 40#include <sys/lock.h> 41#include <sys/linker.h> 42#include <sys/module.h> 43#include <sys/mutex.h> 44 45#include <sys/dtrace.h> 46#include <sys/lockstat.h> 47 | 24 * 25 */ 26 27/* 28 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 29 * Use is subject to license terms. 30 */ 31 --- 8 unchanged lines hidden (view full) --- 40#include <sys/lock.h> 41#include <sys/linker.h> 42#include <sys/module.h> 43#include <sys/mutex.h> 44 45#include <sys/dtrace.h> 46#include <sys/lockstat.h> 47 |
48#if defined(__i386__) || defined(__amd64__) | 48#if defined(__i386__) || defined(__amd64__) || defined(__mips__) |
49#define LOCKSTAT_AFRAMES 1 50#else 51#error "architecture not supported" 52#endif 53 54static d_open_t lockstat_open; 55static void lockstat_provide(void *, dtrace_probedesc_t *); 56static void lockstat_destroy(void *, dtrace_id_t, void *); --- 271 unchanged lines hidden --- | 49#define LOCKSTAT_AFRAMES 1 50#else 51#error "architecture not supported" 52#endif 53 54static d_open_t lockstat_open; 55static void lockstat_provide(void *, dtrace_probedesc_t *); 56static void lockstat_destroy(void *, dtrace_id_t, void *); --- 271 unchanged lines hidden --- |