• Home
  • Raw
  • Download

Lines Matching refs:dwfl

117   inline void failure (Dwfl *dwfl, int errnum, const char *msg)  in parse_opt()
119 if (dwfl != NULL) in parse_opt()
120 dwfl_end (dwfl); in parse_opt()
127 inline error_t fail (Dwfl *dwfl, int errnum, const char *msg) in parse_opt()
129 failure (dwfl, errnum, msg); in parse_opt()
141 Dwfl *dwfl = state->hook; in parse_opt() local
142 if (dwfl == NULL) in parse_opt()
144 dwfl = INTUSE(dwfl_begin) (&offline_callbacks); in parse_opt()
145 if (dwfl == NULL) in parse_opt()
146 return fail (dwfl, -1, arg); in parse_opt()
147 state->hook = dwfl; in parse_opt()
151 dwfl->offline_next_address = 0; in parse_opt()
153 if (dwfl->callbacks == &offline_callbacks) in parse_opt()
155 if (INTUSE(dwfl_report_offline) (dwfl, "", arg, -1) == NULL) in parse_opt()
156 return fail (dwfl, -1, arg); in parse_opt()
157 state->hook = dwfl; in parse_opt()
172 Dwfl *dwfl = INTUSE(dwfl_begin) (&proc_callbacks); in parse_opt() local
173 int result = INTUSE(dwfl_linux_proc_report) (dwfl, atoi (arg)); in parse_opt()
175 return fail (dwfl, result, arg); in parse_opt()
176 state->hook = dwfl; in parse_opt()
194 Dwfl *dwfl = INTUSE(dwfl_begin) (&proc_callbacks); in parse_opt() local
195 int result = INTUSE(dwfl_linux_proc_maps_report) (dwfl, f); in parse_opt()
198 return fail (dwfl, result, arg); in parse_opt()
199 state->hook = dwfl; in parse_opt()
207 Dwfl *dwfl = state->hook; in parse_opt() local
208 if (dwfl == NULL) in parse_opt()
209 state->hook = dwfl = INTUSE(dwfl_begin) (&offline_callbacks); in parse_opt()
211 else if (dwfl->callbacks != &offline_callbacks) in parse_opt()
229 int result = INTUSE(dwfl_core_file_report) (dwfl, core, in parse_opt()
235 return fail (dwfl, result, arg); in parse_opt()
252 Dwfl *dwfl = INTUSE(dwfl_begin) (&kernel_callbacks); in parse_opt() local
253 int result = INTUSE(dwfl_linux_kernel_report_kernel) (dwfl); in parse_opt()
255 return fail (dwfl, result, _("cannot load kernel symbols")); in parse_opt()
256 result = INTUSE(dwfl_linux_kernel_report_modules) (dwfl); in parse_opt()
259 failure (dwfl, result, _("cannot find kernel modules")); in parse_opt()
260 state->hook = dwfl; in parse_opt()
269 Dwfl *dwfl = INTUSE(dwfl_begin) (&offline_callbacks); in parse_opt() local
270 int result = INTUSE(dwfl_linux_kernel_report_offline) (dwfl, arg, in parse_opt()
273 return fail (dwfl, result, _("cannot find kernel or modules")); in parse_opt()
274 state->hook = dwfl; in parse_opt()
282 Dwfl *dwfl = state->hook; in parse_opt() local
284 if (dwfl == NULL) in parse_opt()
288 dwfl = INTUSE(dwfl_begin) (&offline_callbacks); in parse_opt()
289 if (INTUSE(dwfl_report_offline) (dwfl, "", arg, -1) == NULL) in parse_opt()
290 return fail (dwfl, -1, arg); in parse_opt()
291 state->hook = dwfl; in parse_opt()
298 int result = INTUSE(dwfl_report_end) (dwfl, NULL, NULL); in parse_opt()