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 264434 2014-04-14 00:22:42Z markj $ |
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 void *td_dtrace_sscr; /* Saved scratch space location. */ |
88} kdtrace_thread_t; 89 90/* 91 * Definitions to reference fields in the FreeBSD DTrace structures defined 92 * above using the names of fields in similar structures in Solaris. Note 93 * that the separation on FreeBSD is a licensing constraint designed to 94 * keep the GENERIC kernel BSD licensed. 95 */ --- 8 unchanged lines hidden (view full) --- 104#define t_dtrace_ret td_dtrace->td_dtrace_ret 105#define t_dtrace_ast td_dtrace->td_dtrace_ast 106#define t_dtrace_reg td_dtrace->td_dtrace_reg 107#define t_dtrace_pc td_dtrace->td_dtrace_pc 108#define t_dtrace_npc td_dtrace->td_dtrace_npc 109#define t_dtrace_scrpc td_dtrace->td_dtrace_scrpc 110#define t_dtrace_astpc td_dtrace->td_dtrace_astpc 111#define t_dtrace_regv td_dtrace->td_dtrace_regv |
112#define t_dtrace_sscr td_dtrace->td_dtrace_sscr |
113#define p_dtrace_helpers p_dtrace->p_dtrace_helpers 114#define p_dtrace_count p_dtrace->p_dtrace_count 115#define p_dtrace_probes p_dtrace->p_dtrace_probes 116#define p_model p_dtrace->p_dtrace_model |
117 |
118#define DATAMODEL_NATIVE 0 119#ifdef __amd64__ 120#define DATAMODEL_LP64 0 121#define DATAMODEL_ILP32 1 122#else 123#define DATAMODEL_LP64 1 124#define DATAMODEL_ILP32 0 125#endif --- 42 unchanged lines hidden --- |