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 PERROR_PRINTF 3PROC
19 .Nd interposable function for additional diagnostics
23 .Fa "struct ps_prochandle *P"
24 .Fa "const char *format"
30 function allows for consumers of the
32 library to obtain additional diagnostic information during various
34 Consumers must explicitly
36 on this symbol and provide their own definition, if desired.
37 There is no requirement for such an interposition to be done.
40 will be the process handle that the additional diagnostics are being
41 generated for and the diagnostics will be provided in a
44 .Sh INTERFACE STABILITY
47 While the interposing interface is
49 the provided diagnostics are
51 and may change at any time.
53 Callers should presume that this function may be called from multiple
54 threads and always in a context in which taking locks is fine.
55 Callers should not expect to be called from a signal handler.