1POSIX_TRACE_ATTR_DESTROY(3P)POSIX Programmer's ManuaPlOSIX_TRACE_ATTR_DESTROY(3P)
2
3
4
6 This manual page is part of the POSIX Programmer's Manual. The Linux
7 implementation of this interface may differ (consult the corresponding
8 Linux manual page for details of Linux behavior), or the interface may
9 not be implemented on Linux.
10
12 posix_trace_attr_destroy, posix_trace_attr_init — destroy and initial‐
13 ize the trace stream attributes object (TRACING)
14
16 #include <trace.h>
17
18 int posix_trace_attr_destroy(trace_attr_t *attr);
19 int posix_trace_attr_init(trace_attr_t *attr);
20
22 The posix_trace_attr_destroy() function shall destroy an initialized
23 trace attributes object. A destroyed attr attributes object can be
24 reinitialized using posix_trace_attr_init(); the results of otherwise
25 referencing the object after it has been destroyed are undefined.
26
27 The posix_trace_attr_init() function shall initialize a trace
28 attributes object attr with the default value for all of the individual
29 attributes used by a given implementation. The read-only generation-
30 version and clock-resolution attributes of the newly initialized trace
31 attributes object shall be set to their appropriate values (see Section
32 2.11.1.2, posix_trace_status_info Structure).
33
34 Results are undefined if posix_trace_attr_init() is called specifying
35 an already initialized attr attributes object.
36
37 Implementations may add extensions to the trace attributes object
38 structure as permitted in the Base Definitions volume of POSIX.1‐2017,
39 Chapter 2, Conformance.
40
41 The resulting attributes object (possibly modified by setting individ‐
42 ual attributes values), when used by posix_trace_create(), defines the
43 attributes of the trace stream created. A single attributes object can
44 be used in multiple calls to posix_trace_create(). After one or more
45 trace streams have been created using an attributes object, any func‐
46 tion affecting that attributes object, including destruction, shall not
47 affect any trace stream previously created. An initialized attributes
48 object also serves to receive the attributes of an existing trace
49 stream or trace log when calling the posix_trace_get_attr() function.
50
52 Upon successful completion, these functions shall return a value of
53 zero. Otherwise, they shall return the corresponding error number.
54
56 The posix_trace_attr_destroy() function may fail if:
57
58 EINVAL The value of attr is invalid.
59
60 The posix_trace_attr_init() function shall fail if:
61
62 ENOMEM Insufficient memory exists to initialize the trace attributes
63 object.
64
65 The following sections are informative.
66
68 None.
69
71 None.
72
74 None.
75
77 The posix_trace_attr_destroy() and posix_trace_attr_init() functions
78 may be removed in a future version.
79
81 posix_trace_create(), posix_trace_get_attr(), uname()
82
83 The Base Definitions volume of POSIX.1‐2017, <trace.h>
84
86 Portions of this text are reprinted and reproduced in electronic form
87 from IEEE Std 1003.1-2017, Standard for Information Technology -- Por‐
88 table Operating System Interface (POSIX), The Open Group Base Specifi‐
89 cations Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of
90 Electrical and Electronics Engineers, Inc and The Open Group. In the
91 event of any discrepancy between this version and the original IEEE and
92 The Open Group Standard, the original IEEE and The Open Group Standard
93 is the referee document. The original Standard can be obtained online
94 at http://www.opengroup.org/unix/online.html .
95
96 Any typographical or formatting errors that appear in this page are
97 most likely to have been introduced during the conversion of the source
98 files to man page format. To report such errors, see https://www.ker‐
99 nel.org/doc/man-pages/reporting_bugs.html .
100
101
102
103IEEE/The Open Group 2017 POSIX_TRACE_ATTR_DESTROY(3P)