2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright 2015 Joyent, Inc.
15 .Dt PADDR_TO_CTF 3PROC
27 .Fa "struct ps_prochandle *P"
32 .Fa "struct ps_prochandle *P"
34 .Fa "const char *name"
38 .Fa "struct ps_prochandle *P"
39 .Fa "const char *name"
47 functions lookup CTF (Compact C Type Format) data, for use with
49 from the process represented by the handle
51 In all cases, the CTF sections of both the running executable and its
52 shared libraries are searched.
54 The CTF container returned is valid as long as the process handle
57 That is, until a call to
60 Further, consumers must not close the CTF container.
64 function attempts to find the CTF section, if any, that exists for the
67 Note, not all addresses correspond to memory regions that have CTF
69 For example, if a user creates a region of anonymous memory through the
71 function, then it will not have any corresponding CTF information.
75 function looks up the object named
77 and returns the corresponding CTF section, if any exists.
78 Two special values may be used for name.
81 refers to the executable object itself and the macro
82 .Dv PR_OBJ_LDSO refers to the object ld.so.1 .
86 function is similar to
88 It allows the passing of a link-map identifier,
90 which constricts the search of the object named with
95 indicates that every link-map should be searched, which is equivalent
100 Upon successful completion, the
105 functions return a pointer to the corresponding CTF container.
106 Otherwise, if none exists then
109 .Sh INTERFACE STABILITY