pstack.h

来自「Sun Solaris 10 中的 DTrace 组件的源代码。请参看: htt」· C头文件 代码 · 共 45 行

H
45
字号
/* * Copyright 2005 Sun Microsystems, Inc.  All rights reserved. * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only. * See the file usr/src/LICENSING.NOTICE in this distribution or * http://www.opensolaris.org/license/ for details. */#ifndef	_PSTACK_H#define	_PSTACK_H#pragma ident	"@(#)Pstack.h	1.1	04/09/28 SMI"#ifdef	__cplusplusextern "C" {#endif/* * Support functions for ISA-dependent Pstack_iter(). */int stack_loop(prgreg_t fp, prgreg_t **prevfpp, int *nfpp, uint_t *pfpsizep);typedef struct {	struct ps_prochandle *uc_proc;	/* libproc handle */	uintptr_t *uc_addrs;		/* array of stack addresses */	uint_t uc_nelems;		/* number of valid elements */	uint_t uc_size;			/* actual size of array */	uint_t uc_cached;		/* is cached in the ps_prochandle */} uclist_t;int load_uclist(uclist_t *ucl, const lwpstatus_t *psp);int sort_uclist(const void *lhp, const void *rhp);void init_uclist(uclist_t *ucl, struct ps_prochandle *P);void free_uclist(uclist_t *ucl);int find_uclink(uclist_t *ucl, uintptr_t addr);#ifdef	__cplusplus}#endif#endif	/* _PSTACK_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?