Lines Matching refs:dwfl
117 inline void failure (Dwfl *dwfl, int errnum, const char *msg)
119 if (dwfl != NULL)
120 dwfl_end (dwfl);
127 inline error_t fail (Dwfl *dwfl, int errnum, const char *msg)
129 failure (dwfl, errnum, msg);
141 Dwfl *dwfl = state->hook;
142 if (dwfl == NULL)
144 dwfl = INTUSE(dwfl_begin) (&offline_callbacks);
145 if (dwfl == NULL)
146 return fail (dwfl, -1, arg);
147 state->hook = dwfl;
151 dwfl->offline_next_address = 0;
153 if (dwfl->callbacks == &offline_callbacks)
155 if (INTUSE(dwfl_report_offline) (dwfl, "", arg, -1) == NULL)
156 return fail (dwfl, -1, arg);
157 state->hook = dwfl;
172 Dwfl *dwfl = INTUSE(dwfl_begin) (&proc_callbacks);
173 int result = INTUSE(dwfl_linux_proc_report) (dwfl, atoi (arg));
175 return fail (dwfl, result, arg);
176 state->hook = dwfl;
194 Dwfl *dwfl = INTUSE(dwfl_begin) (&proc_callbacks);
195 int result = INTUSE(dwfl_linux_proc_maps_report) (dwfl, f);
198 return fail (dwfl, result, arg);
199 state->hook = dwfl;
207 Dwfl *dwfl = state->hook;
208 if (dwfl == NULL)
209 state->hook = dwfl = INTUSE(dwfl_begin) (&offline_callbacks);
211 else if (dwfl->callbacks != &offline_callbacks)
228 int result = INTUSE(dwfl_core_file_report) (dwfl, core);
233 return fail (dwfl, result, arg);
250 Dwfl *dwfl = INTUSE(dwfl_begin) (&kernel_callbacks);
251 int result = INTUSE(dwfl_linux_kernel_report_kernel) (dwfl);
253 return fail (dwfl, result, _("cannot load kernel symbols"));
254 result = INTUSE(dwfl_linux_kernel_report_modules) (dwfl);
257 failure (dwfl, result, _("cannot find kernel modules"));
258 state->hook = dwfl;
267 Dwfl *dwfl = INTUSE(dwfl_begin) (&offline_callbacks);
268 int result = INTUSE(dwfl_linux_kernel_report_offline) (dwfl, arg,
271 return fail (dwfl, result, _("cannot find kernel or modules"));
272 state->hook = dwfl;
280 Dwfl *dwfl = state->hook;
282 if (dwfl == NULL)
286 dwfl = INTUSE(dwfl_begin) (&offline_callbacks);
287 if (INTUSE(dwfl_report_offline) (dwfl, "", arg, -1) == NULL)
288 return fail (dwfl, -1, arg);
289 state->hook = dwfl;
293 if we got here. Tie up the Dwfl and return it to the caller of
296 int result = INTUSE(dwfl_report_end) (dwfl, NULL, NULL);
311 *(Dwfl **) state->input = state->hook;