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
--- 4 unchanged lines hidden (view full) ---
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
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 * $FreeBSD: head/sys/cddl/dev/dtrace/dtrace_cddl.h 211610 2010-08-22 11:04:43Z rpaulo $
22 *
23 */
24
25#ifndef _DTRACE_CDDL_H_
26#define _DTRACE_CDDL_H_
27
28#include <sys/proc.h>
29
--- 49 unchanged lines hidden (view full) ---
79 /* DTrace per-thread scratch location. */
80 uintptr_t td_dtrace_astpc;
81 /* DTrace return sequence location. */
82#ifdef __amd64__
83 uintptr_t td_dtrace_regv;
84#endif
85 u_int64_t td_hrtime; /* Last time on cpu. */
86 int td_errno; /* Syscall return value. */
87} kdtrace_thread_t;
88
89/*
90 * Definitions to reference fields in the FreeBSD DTrace structures defined
91 * above using the names of fields in similar structures in Solaris. Note
92 * that the separation on FreeBSD is a licensing constraint designed to
93 * keep the GENERIC kernel BSD licensed.
94 */
--- 8 unchanged lines hidden (view full) ---
103#define t_dtrace_ret td_dtrace->td_dtrace_ret
104#define t_dtrace_ast td_dtrace->td_dtrace_ast
105#define t_dtrace_reg td_dtrace->td_dtrace_reg
106#define t_dtrace_pc td_dtrace->td_dtrace_pc
107#define t_dtrace_npc td_dtrace->td_dtrace_npc
108#define t_dtrace_scrpc td_dtrace->td_dtrace_scrpc
109#define t_dtrace_astpc td_dtrace->td_dtrace_astpc
110#define t_dtrace_regv td_dtrace->td_dtrace_regv
111#define p_dtrace_helpers p_dtrace->p_dtrace_helpers
112#define p_dtrace_count p_dtrace->p_dtrace_count
113#define p_dtrace_probes p_dtrace->p_dtrace_probes
114#define p_model p_dtrace->p_dtrace_model
115#define DATAMODEL_NATIVE 0
116#ifdef __amd64__
117#define DATAMODEL_LP64 0
118#define DATAMODEL_ILP32 1
119#else
120#define DATAMODEL_LP64 1
121#define DATAMODEL_ILP32 0
122#endif
--- 42 unchanged lines hidden ---
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
--- 4 unchanged lines hidden (view full) ---
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
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 * $FreeBSD: head/sys/cddl/dev/dtrace/dtrace_cddl.h 211610 2010-08-22 11:04:43Z rpaulo $
22 *
23 */
24
25#ifndef _DTRACE_CDDL_H_
26#define _DTRACE_CDDL_H_
27
28#include <sys/proc.h>
29
--- 49 unchanged lines hidden (view full) ---
79 /* DTrace per-thread scratch location. */
80 uintptr_t td_dtrace_astpc;
81 /* DTrace return sequence location. */
82#ifdef __amd64__
83 uintptr_t td_dtrace_regv;
84#endif
85 u_int64_t td_hrtime; /* Last time on cpu. */
86 int td_errno; /* Syscall return value. */
87} kdtrace_thread_t;
88
89/*
90 * Definitions to reference fields in the FreeBSD DTrace structures defined
91 * above using the names of fields in similar structures in Solaris. Note
92 * that the separation on FreeBSD is a licensing constraint designed to
93 * keep the GENERIC kernel BSD licensed.
94 */
--- 8 unchanged lines hidden (view full) ---
103#define t_dtrace_ret td_dtrace->td_dtrace_ret
104#define t_dtrace_ast td_dtrace->td_dtrace_ast
105#define t_dtrace_reg td_dtrace->td_dtrace_reg
106#define t_dtrace_pc td_dtrace->td_dtrace_pc
107#define t_dtrace_npc td_dtrace->td_dtrace_npc
108#define t_dtrace_scrpc td_dtrace->td_dtrace_scrpc
109#define t_dtrace_astpc td_dtrace->td_dtrace_astpc
110#define t_dtrace_regv td_dtrace->td_dtrace_regv
111#define p_dtrace_helpers p_dtrace->p_dtrace_helpers
112#define p_dtrace_count p_dtrace->p_dtrace_count
113#define p_dtrace_probes p_dtrace->p_dtrace_probes
114#define p_model p_dtrace->p_dtrace_model
115#define DATAMODEL_NATIVE 0
116#ifdef __amd64__
117#define DATAMODEL_LP64 0
118#define DATAMODEL_ILP32 1
119#else
120#define DATAMODEL_LP64 1
121#define DATAMODEL_ILP32 0
122#endif
--- 42 unchanged lines hidden ---