1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
/**
* Copyright (C) Mellanox Technologies Ltd. 2001-2021. ALL RIGHTS RESERVED.
*
* See file LICENSE for terms.
*/
/**
* Information about an address in the code.
*/
typedef struct ucs_debug_address_info ucs_debug_address_info_t;
typedef struct backtrace *backtrace_h;
typedef struct backtrace_line *backtrace_line_h;
extern const char *ucs_state_detail_level_names;
extern const char *ucs_signal_names;
/**
* Initialize UCS debugging subsystem.
*/
void ;
/**
* Cleanup UCS debugging subsystem.
*/
void ;
/**
* Disable signal handling in UCS for all signals
* that was set in ucs_global_opts.error_signals.
* Previous signal handlers are set.
*/
void ;
/**
* Get information about an address in the code of the current program.
* @param address Address to look up.
* @param info Filled with information about the given address. Source file
* and line number are filled only if the binary file was compiled
* with debug information, and UCS was configured with detailed
* backtrace enabled.
* @return UCS_ERR_NO_ELEM if the address is not found, UCS_OK otherwise.
*/
ucs_status_t ;
/**
* Create a backtrace from the calling location.
*
* @param bckt Backtrace object.
* @param strip How many frames to strip.
*/
ucs_status_t ;
/**
* Destroy a backtrace and free all memory.
*
* @param bckt Backtrace object.
*/
void ;
/**
* Walk to the next backtrace line information.
*
* @param bckt Backtrace object.
* @param line Filled with backtrace frame info.
*
* NOTE: the line remains valid as long as the backtrace object is not destroyed.
*/
int ;
/**
* Print backtrace line to string buffer.
*
* @param buffer Target buffer to print to.
* @param maxlen Size of target buffer.
* @param frame_num Frame number
* @param line Backtrace line to print
*/
void ;
/**
* Print backtrace to an output stream.
*
* @param stream Stream to print to.
* @param strip How many frames to strip.
*/
void ;
/**
* Called when UCS detects a fatal error and provides means to debug the current
* state of UCS.
*/
void ;
/**
* @return Name of a symbol which begins in the given address, or NULL if
* not found.
*/
const char *;