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
33 operations. Consumers must explicitly
35 on this symbol and provide their own definition, if desired. There is no
36 requirement for such an interposition to be done. When called,
38 will be the process handle that the additional diagnostics are being
39 generated for and the diagnostics will be provided in a
42 .Sh INTERFACE STABILITY
45 While the interposing interface is
47 the provided diagnostics are
49 and may change at any time.
51 Callers should presume that this function may be called from multiple
52 threads and always in a context in which taking locks is fine. Callers
53 should not expect to be called from a signal handler.