/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_FASTTRAP_H
#define _SYS_FASTTRAP_H
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/fasttrap_isa.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef enum fasttrap_probe_type {
DTFTP_NONE = 0,
typedef struct fasttrap_probe_spec {
typedef struct fasttrap_instr_query {
/*
* To support the fasttrap provider from very early in a process's life,
* the run-time linker, ld.so.1, has a program header of type PT_SUNWDTRACE
* which points to a data object which must be PT_SUNWDTRACE_SIZE bytes.
* This structure mimics the fasttrap provider section of the ulwp_t structure.
* When the fasttrap provider is changed to require new or different
* instructions, the data object in ld.so.1 and the thread initializers in libc
* (libc_init() and _thrp_create()) need to be updated to include the new
* instructions, and PT_SUNWDTRACE needs to be changed to a new unique number
* (while the old value gets assigned something like PT_SUNWDTRACE_1). Since the
* linker must be backward compatible with old Solaris releases, it must have
* program headers for each of the PT_SUNWDTRACE versions. The kernel's
* elfexec() function only has to look for the latest version of the
* PT_SUNWDTRACE program header.
*/
#ifdef __cplusplus
}
#endif
#endif /* _SYS_FASTTRAP_H */