Home
last modified time | relevance | path

Searched refs:logger (Results 1 – 25 of 51) sorted by relevance

123

/xen/tools/libs/toollog/
A Dxtl_core.c41 void xtl_logv(struct xentoollog_logger *logger, in xtl_logv() argument
49 logger->vmessage(logger,level,errnoval,context,format,al); in xtl_logv()
53 void xtl_log(struct xentoollog_logger *logger, in xtl_log() argument
61 xtl_logv(logger,level,errnoval,context,format,al); in xtl_log()
65 void xtl_progress(struct xentoollog_logger *logger, in xtl_progress() argument
70 if (!logger->progress) return; in xtl_progress()
77 logger->progress(logger, context, doing_what, percent, done, total); in xtl_progress()
80 void xtl_logger_destroy(struct xentoollog_logger *logger) { in xtl_logger_destroy() argument
81 if (!logger) return; in xtl_logger_destroy()
82 logger->destroy(logger); in xtl_logger_destroy()
/xen/tools/libs/toollog/include/
A Dxentoollog.h46 void (*vmessage)(struct xentoollog_logger *logger,
53 void (*progress)(struct xentoollog_logger *logger,
60 void (*destroy)(struct xentoollog_logger *logger);
86 void xtl_logger_destroy(struct xentoollog_logger *logger /* 0 is ok */);
91 void xtl_logv(struct xentoollog_logger *logger,
98 void xtl_log(struct xentoollog_logger *logger,
105 void xtl_progress(struct xentoollog_logger *logger,
/xen/tools/libs/evtchn/
A Dcore.c31 xenevtchn_handle *xenevtchn_open(xentoollog_logger *logger, unsigned open_flags) in xenevtchn_open() argument
39 xce->logger = logger; in xenevtchn_open()
45 if (!xce->logger) { in xenevtchn_open()
46 xce->logger = xce->logger_tofree = in xenevtchn_open()
49 if (!xce->logger) goto err; in xenevtchn_open()
/xen/tools/libs/gnttab/
A Dgntshr_core.c25 xengntshr_handle *xengntshr_open(xentoollog_logger *logger, unsigned open_flags) in xengntshr_open() argument
33 xgs->logger = logger; in xengntshr_open()
36 if (!xgs->logger) { in xengntshr_open()
37 xgs->logger = xgs->logger_tofree = in xengntshr_open()
40 if (!xgs->logger) goto err; in xengntshr_open()
A Dgnttab_core.c31 xengnttab_handle *xengnttab_open(xentoollog_logger *logger, unsigned open_flags) in xengnttab_open() argument
39 xgt->logger = logger; in xengnttab_open()
45 if (!xgt->logger) { in xengnttab_open()
46 xgt->logger = xgt->logger_tofree = in xengnttab_open()
49 if (!xgt->logger) goto err; in xengnttab_open()
A Dlinux.c80 GTERROR(xgt->logger, "ioctl SET_MAX_GRANTS failed"); in osdep_gnttab_set_max_grants()
111 GTERROR(xgt->logger, "mmap of map failed"); in osdep_gnttab_grant_map()
125 GTERROR(xgt->logger, "ioctl MAP_GRANT_REF failed"); in osdep_gnttab_grant_map()
166 GTERROR(xgt->logger, "ioctl SET_UNMAP_NOTIFY failed"); in osdep_gnttab_grant_map()
178 GTERROR(xgt->logger, "mmap failed"); in osdep_gnttab_grant_map()
341 GTERROR(xgt->logger, "ioctl DMABUF_EXP_FROM_REFS failed"); in osdep_gnttab_dmabuf_exp_from_refs()
402 GTERROR(xgt->logger, "ioctl DMABUF_IMP_TO_REFS failed"); in osdep_gnttab_dmabuf_imp_to_refs()
422 GTERROR(xgt->logger, "ioctl DMABUF_IMP_RELEASE failed"); in osdep_gnttab_dmabuf_imp_release()
465 GSERROR(xgs->logger, "ioctl failed"); in osdep_gntshr_share_pages()
474 GSERROR(xgs->logger, "mmap failed"); in osdep_gntshr_share_pages()
[all …]
A Dfreebsd.c89 GTERROR(xgt->logger, "anon mmap of map failed"); in osdep_gnttab_grant_map()
104 GTERROR(xgt->logger, "ioctl MAP_GRANT_REF failed"); in osdep_gnttab_grant_map()
131 GTERROR(xgt->logger, "ioctl SET_UNMAP_NOTIFY failed"); in osdep_gnttab_grant_map()
142 GTERROR(xgt->logger, "mmap failed"); in osdep_gnttab_grant_map()
253 GSERROR(xgs->logger, "ioctl failed"); in osdep_gntshr_share_pages()
263 GSERROR(xgs->logger, "mmap failed"); in osdep_gntshr_share_pages()
283 GSERROR(xgs->logger, "ioctl SET_UNMAP_NOTIFY failed"); in osdep_gntshr_share_pages()
/xen/tools/helpers/
A Dinit-dom-json.c13 xentoollog_logger_stdiostream *logger; in gen_stub_json_config() local
19 logger = xtl_createlogger_stdiostream(stderr, XTL_ERROR, 0); in gen_stub_json_config()
20 if (!logger) in gen_stub_json_config()
24 (xentoollog_logger *)logger)) { in gen_stub_json_config()
62 xtl_logger_destroy((xentoollog_logger *)logger); in gen_stub_json_config()
A Dxen-init-dom0.c18 xentoollog_logger_stdiostream *logger; in clear_domid_history() local
21 logger = xtl_createlogger_stdiostream(stderr, XTL_ERROR, 0); in clear_domid_history()
22 if (!logger) in clear_domid_history()
26 (xentoollog_logger *)logger)) { in clear_domid_history()
37 xtl_logger_destroy((xentoollog_logger *)logger); in clear_domid_history()
/xen/tools/libs/call/
A Dcore.c34 xencall_handle *xencall_open(xentoollog_logger *logger, unsigned open_flags) in xencall_open() argument
56 xcall->logger = logger; in xencall_open()
59 if (!xcall->logger) { in xencall_open()
60 xcall->logger = xcall->logger_tofree = in xencall_open()
63 if (!xcall->logger) goto err; in xencall_open()
A Dprivate.h21 xentoollog_logger *logger, *logger_tofree; member
63 #define PERROR(_f...) xtl_log(xcall->logger, XTL_ERROR, errno, "xencall", _f)
/xen/tools/libs/foreignmemory/
A Dcore.c34 xenforeignmemory_handle *xenforeignmemory_open(xentoollog_logger *logger, in xenforeignmemory_open() argument
43 fmem->logger = logger; in xenforeignmemory_open()
49 if (!fmem->logger) { in xenforeignmemory_open()
50 fmem->logger = fmem->logger_tofree = in xenforeignmemory_open()
53 if (!fmem->logger) goto err; in xenforeignmemory_open()
/xen/tools/ocaml/libs/xentoollog/
A Dxentoollog_stubs.c82 static void stub_xtl_ocaml_vmessage(struct xentoollog_logger *logger, in stub_xtl_ocaml_vmessage() argument
92 struct caml_xtl *xtl = (struct caml_xtl*)logger; in stub_xtl_ocaml_vmessage()
114 static void stub_xtl_ocaml_progress(struct xentoollog_logger *logger, in stub_xtl_ocaml_progress() argument
122 struct caml_xtl *xtl = (struct caml_xtl*)logger; in stub_xtl_ocaml_progress()
140 static void xtl_destroy(struct xentoollog_logger *logger) in xtl_destroy() argument
142 struct caml_xtl *xtl = (struct caml_xtl*)logger; in xtl_destroy()
/xen/tools/libxc/
A Dxc_gnttab_compat.c11 xc_gnttab *xc_gnttab_open(xentoollog_logger *logger, in xc_gnttab_open() argument
14 return xengnttab_open(logger, open_flags); in xc_gnttab_open()
72 xc_gntshr *xc_gntshr_open(xentoollog_logger *logger, in xc_gntshr_open() argument
75 return xengntshr_open(logger, open_flags); in xc_gntshr_open()
A Dxc_evtchn_compat.c11 xc_evtchn *xc_evtchn_open(xentoollog_logger *logger, in xc_evtchn_open() argument
14 return xenevtchn_open(logger, open_flags); in xc_evtchn_open()
/xen/tools/libxl/
A Dlibxl_save_helper.c86 static xentoollog_logger logger = { variable
102 xtl_logv(&logger,XTL_ERROR,errnoval,program,fmt,al); in fail()
221 xtl_log(&logger,XTL_DEBUG,0,program,"starting %s",op); in startup()
223 xch = xc_interface_open(&logger,&logger,0); in startup()
229 xtl_log(&logger,XTL_DEBUG,errnoval,program,"complete r=%d",retval); in complete()
/xen/tools/tests/depriv/
A Ddepriv-fd-checker.c90 static xentoollog_logger *logger; variable
146 xch = xc_interface_open(logger,0,0); in open_privcmd()
174 xgs = xengntshr_open(logger,0); in setup_gntdev()
181 xgt = xengnttab_open(logger,0); in open_gntdev()
227 xce_recip = xenevtchn_open(logger, 0); in setup_evtchn()
231 xce = xenevtchn_open(logger, 0); in open_evtchn()
390 logger = (xentoollog_logger*)xtl_createlogger_stdiostream in main()
/xen/tools/libvchan/
A Dinit.c217 struct xentoollog_logger *logger) in init_evt_srv() argument
221 ctrl->event = xenevtchn_open(logger, 0); in init_evt_srv()
309 struct libxenvchan *libxenvchan_server_init(struct xentoollog_logger *logger, in libxenvchan_server_init() argument
343 ctrl->gntshr = xengntshr_open(logger, 0); in libxenvchan_server_init()
349 if (init_evt_srv(ctrl, domain, logger)) in libxenvchan_server_init()
363 struct xentoollog_logger *logger) in init_evt_cli() argument
367 ctrl->event = xenevtchn_open(logger, 0); in init_evt_cli()
393 struct libxenvchan *libxenvchan_client_init(struct xentoollog_logger *logger, in libxenvchan_client_init() argument
435 ctrl->gnttab = xengnttab_open(logger, 0); in libxenvchan_client_init()
440 if (init_evt_cli(ctrl, domain, logger)) in libxenvchan_client_init()
A Dlibxenvchan.h100 struct libxenvchan *libxenvchan_server_init(struct xentoollog_logger *logger,
113 struct libxenvchan *libxenvchan_client_init(struct xentoollog_logger *logger,
/xen/tools/ocaml/test/
A Dsend_debug_keys.ml9 let logger = Xtl.create_stdio_logger () in
10 let ctx = Xenlight.ctx_alloc logger in
A Ddmesg.ml4 let logger = Xtl.create_stdio_logger ~level:Xentoollog.Debug () in
5 let ctx = Xenlight.ctx_alloc logger in
/xen/tools/ocaml/xenstored/
A Dlogging.ml54 type logger = type
162 let xenstored_logger = ref (None: logger option)
169 let set_xenstored_logger logger =
170 xenstored_logger := Some logger;
178 let logger =
182 set_xenstored_logger logger
201 (* Access logger *)
281 let logger =
285 access_logger := Some logger
292 (fun logger ->
[all …]
/xen/tools/xl/
A Dxl.c36 xentoollog_logger_stdiostream *logger; variable
330 if (libxl_ctx_alloc(&ctx, LIBXL_VERSION, 0, (xentoollog_logger*)logger)) { in xl_ctx_alloc()
350 if (logger) { in xl_ctx_free()
351 xtl_logger_destroy((xentoollog_logger*)logger); in xl_ctx_free()
352 logger = NULL; in xl_ctx_free()
397 logger = xtl_createlogger_stdiostream(stderr, minmsglevel, in main()
399 if (!logger) exit(EXIT_FAILURE); in main()
/xen/tools/libs/devicemodel/
A Dprivate.h13 xentoollog_logger *logger, *logger_tofree; member
39 xtl_log(dmod->logger, XTL_ERROR, errno, "xendevicemodel", _f)
/xen/tools/libs/hypfs/
A Dcore.c40 xentoollog_logger *logger, *logger_tofree; member
45 xenhypfs_handle *xenhypfs_open(xentoollog_logger *logger, in xenhypfs_open() argument
54 fshdl->logger = logger; in xenhypfs_open()
57 if (!fshdl->logger) { in xenhypfs_open()
58 fshdl->logger = fshdl->logger_tofree = in xenhypfs_open()
61 if (!fshdl->logger) in xenhypfs_open()
65 fshdl->xcall = xencall_open(fshdl->logger, 0); in xenhypfs_open()

Completed in 21 milliseconds

123