Home
last modified time | relevance | path

Searched refs:snprintf (Results 1 – 25 of 78) sorted by relevance

1234

/xen/tools/helpers/
A Dinit-dom0less.c59 rc = snprintf(full_path, STR_MAX_LENGTH, in do_xs_write_dom()
74 rc = snprintf(full_path, STR_MAX_LENGTH, in do_xs_write_libxl()
87 rc = snprintf(full_path, STR_MAX_LENGTH, in do_xs_write_vm()
123 rc = snprintf(start_time_str, STR_MAX_LENGTH, "%jd.%02d", in create_xenstore()
129 rc = snprintf(id_str, STR_MAX_LENGTH, "%u", domid); in create_xenstore()
132 rc = snprintf(dom_name_str, STR_MAX_LENGTH, "dom0less-%u", domid); in create_xenstore()
138 rc = snprintf(vm_val_str, STR_MAX_LENGTH, in create_xenstore()
142 rc = snprintf(max_memkb_str, STR_MAX_LENGTH, "%"PRIu64, info->max_memkb); in create_xenstore()
148 rc = snprintf(ring_ref_str, STR_MAX_LENGTH, "%lld", in create_xenstore()
152 rc = snprintf(xenstore_port_str, STR_MAX_LENGTH, "%u", xenstore_port); in create_xenstore()
[all …]
A Dinit-xenstore-domain.c246 snprintf(cmdline, 512, "--event %d %s", rv, param); in build()
248 snprintf(cmdline, 512, "--event %d", rv); in build()
426 snprintf(full_path, 64, "/local/domain/%d/%s", domid, path); in do_xs_write_dom()
536 snprintf(buf, 16, "%d", domid); in main()
540 snprintf(buf, 16, "%d", memory * 1024); in main()
543 snprintf(buf, 16, "%d", maxmem * 1024); in main()
565 rv = snprintf(buf, 16, "domid:%d\n", domid); in main()
/xen/tools/misc/
A Dxen-lowmemd.c76 snprintf(data, BUFSZ, "%llu", dom0_target); in handle_low_mem()
80 snprintf(error, BUFSZ,"Failed to write target %.24s to xenstore", data); in handle_low_mem()
133 snprintf(data, BUFSZ, "Wrong port, got %d expected %d", port, virq_port); in main()
/xen/xen/common/
A Ddebugtrace.c102 snprintf(buf, sizeof(buf), "cpu %u", cpu); in debugtrace_dump_worker()
212 snprintf(cntbuf, sizeof(cntbuf), "wrap: %lu->%lu\n", in debugtrace_printk()
222 snprintf(cntbuf, sizeof(cntbuf), "%u ", count); in debugtrace_printk()
227 snprintf(cntbuf, sizeof(cntbuf), "%u-%u ", last_count, ++count); in debugtrace_printk()
A Dhypfs.c379 e_namelen = snprintf(name, sizeof(name), template->e.name, id); in hypfs_read_dyndir_id_entry()
452 snprintf(dyndata->name, sizeof(dyndata->name), template->e.name, id); in hypfs_gen_dyndir_id_entry()
467 return DIRENTRY_SIZE(snprintf(NULL, 0, template->name, id)); in hypfs_dynid_entry_size()
/xen/tools/9pfsd/
A Dxen-9pfsd.c128 snprintf(p->path, sizeof(p->path), "/local/domain/%u/device/9pfs/%u/%s", in construct_frontend_path()
135 snprintf(p->path, sizeof(p->path), "backend/xen_9pfs/%u/%u/%s", in construct_backend_path()
226 snprintf(str, sizeof(str), "%u", val); in write_backend_node_uint()
236 snprintf(val, sizeof(val), "%u", state); in write_backend_state()
269 snprintf(token, sizeof(token), "%u/%u", device->domid, device->devid); in free_device()
298 snprintf(token, sizeof(token), "%u/%u", domid, devid); in new_device()
446 snprintf(node, sizeof(node), "event-channel-%u", ring_idx); in connect_device()
455 snprintf(node, sizeof(node), "ring-ref%u", ring_idx); in connect_device()
597 snprintf(dom_path, sizeof(dom_path), "backend/xen_9pfs/%lu", domid); in scan_backend()
/xen/tools/include/xen-tools/
A Dxenstore-common.h27 if ( snprintf(buf, sizeof(buf), "%s/socket", xenstore_daemon_rundir()) >= in xenstore_daemon_path()
110 snprintf(buffer + 1, buf_len - 1, "%i", (int)perm->id); in xenstore_perm_to_string()
/xen/tools/libs/stat/
A Dxenstat_solaris.c220 snprintf(path, sizeof(path), "/local/domain/%d/device/vif", dom->id); in collect_dom_networks()
236 snprintf(path, sizeof(path), in collect_dom_networks()
244 snprintf(path, sizeof(path), "%s/nic", tmp); in collect_dom_networks()
327 snprintf(path, sizeof(path), "/local/domain/%d/device/vbd", dom->id); in collect_dom_vbds()
344 snprintf(path, sizeof(path), in collect_dom_vbds()
352 snprintf(path, sizeof(path), "%s/instance", tmp); in collect_dom_vbds()
A Dxenstat_qmp.c148 snprintf(path, sizeof(path),"/local/domain/0/backend/qdisk/%i", domid); in lookup_xenstore_devid()
165 snprintf(path, sizeof(path),"/local/domain/0/backend/qdisk/%i/%i/params", domid, devid); in lookup_xenstore_devid()
177 snprintf(path, sizeof(path),"/local/domain/0/backend/qdisk/%i/%i/sector-size", domid, devid); in lookup_xenstore_devid()
394 snprintf(path, sizeof(path),"/local/domain/0/backend/qdisk/%i", domain); in read_attributes_qdisk_dom()
401 snprintf(path, sizeof(path), XEN_RUN_DIR "/qmp-libxenstat-%i", domain); in read_attributes_qdisk_dom()
A Dxenstat_linux.c253 snprintf(nodename_path, 48, "/sys/class/net/%s/device/nodename", iface); in get_iface_domid_network()
313 snprintf(devNoBridge, sizeof(devNoBridge), "p%s", devBridge); in xenstat_collect_networks()
431 snprintf(file_name, sizeof(file_name), "%s/%s/%s", in read_attributes_vbd()
/xen/tools/console/client/
A Dmain.c286 snprintf(lockfile, sizeof lockfile, "%s%d", XEN_LOCK_DIR "/xenconsole.", domid); in console_lock()
443 snprintf(path, strlen(dom_path) + strlen("/serial/0/tty") + 5, "%s/serial/%d/tty", dom_path, num); in main()
452 snprintf(path, strlen(dom_path) + strlen("/console/tty") + 1, "%s/console/tty", dom_path); in main()
454snprintf(path, strlen(dom_path) + strlen("/device/console/%d/tty") + 5, "%s/device/console/%d/tty"… in main()
457 snprintf(path, strlen(dom_path) + strlen("/vuart/0/tty") + 1, in main()
/xen/tools/libs/vchan/
A Dinit.c278 snprintf(ref, sizeof ref, "%d", ring_ref); in init_xs_srv()
279 snprintf(buf, sizeof buf, "%s/ring-ref", xs_base); in init_xs_srv()
285 snprintf(ref, sizeof ref, "%d", ctrl->event_port); in init_xs_srv()
286 snprintf(buf, sizeof buf, "%s/event-channel", xs_base); in init_xs_srv()
436 snprintf(buf, sizeof buf, "%s/ring-ref", xs_path); in libxenvchan_client_init()
444 snprintf(buf, sizeof buf, "%s/event-channel", xs_path); in libxenvchan_client_init()
/xen/tools/flask/utils/
A Dlabel-pci.c67 snprintf(buf, sizeof(buf), "/sys/bus/pci/devices/%04x:%02x:%02x.%d/resource", in main()
109 snprintf(buf, sizeof(buf), "/sys/bus/pci/devices/%04x:%02x:%02x.%d/irq", in main()
/xen/stubdom/
A Dnewlib-chk.patch37 snprintf.c \
58 lib_a-snprintf.$(OBJEXT) lib_a-sprintf.$(OBJEXT) \
77 - sniprintf.lo snprintf.lo sprintf.lo sscanf.lo stdio.lo \
78 + sniprintf.lo snprintf.lo sprintf.lo sprintf_chk.lo sscanf.lo stdio.lo \
92 snprintf.c \
/xen/tools/xenpmd/
A Dxenpmd.c347 snprintf(temp_val, 9, "%02x%02x%02x%02x", (unsigned int)val & 0xff, in write_ulong_lsb_first()
365 snprintf(val, 3, "%02x", len); in write_battery_info_to_xenstore()
376 snprintf(string_info, 256, "%02x%s%02x%s%02x%s%02x%s", in write_battery_info_to_xenstore()
432 snprintf(val, 3, "%02x", 16); in write_battery_status_to_xenstore()
/xen/xen/drivers/char/
A Dconsole.c175 snprintf(val, LOGLVL_VAL_SZ, "%s/%s", lvl2opt[lower], lvl2opt[upper]); in xenlog_update_val()
875 snprintf(tstr, sizeof(tstr), "[%04u-%02u-%02u %02u:%02u:%02u] ", in printk_start_of_line()
882 snprintf(tstr, sizeof(tstr), in printk_start_of_line()
895 snprintf(tstr, sizeof(tstr), "[%5"PRIu64".%06"PRIu64"] ", in printk_start_of_line()
901 snprintf(tstr, sizeof(tstr), "[%016"PRIx64"] ", get_cycles()); in printk_start_of_line()
977 snprintf(prefix, sizeof(prefix), "(d%d) ", d->domain_id); in guest_printk()
1231 snprintf(lost_str, sizeof(lost_str), "%d", lost); in __printk_ratelimit()
/xen/tools/libs/store/
A Dxs.c706 snprintf(offstr, sizeof(offstr), "%u", off); in xs_directory_part()
1183 snprintf(domid_str, sizeof(domid_str), "%u", domid); in xs_introduce_domain()
1184 snprintf(mfn_str, sizeof(mfn_str), "%lu", mfn); in xs_introduce_domain()
1185 snprintf(eventchn_str, sizeof(eventchn_str), "%u", eventchn); in xs_introduce_domain()
1205 snprintf(domid_str, sizeof(domid_str), "%u", domid); in xs_set_target()
1206 snprintf(target_str, sizeof(target_str), "%u", target); in xs_set_target()
1223 snprintf(domid_str, sizeof(domid_str), "%u", domid); in single_with_domid()
1243 snprintf(domid_str, sizeof(domid_str), "%u", domid); in xs_get_domain_path()
/xen/tools/console/daemon/
A Dutils.c93 len = snprintf(buf, sizeof(buf), "%ld\n", (long)getpid()); in daemonize()
/xen/tools/libs/light/
A Dlibxl_vsnd.c320 len += snprintf(NULL, 0, "%u,", sample_rates[i]); in libxl__rates_to_str_vsnd()
327 len += snprintf(NULL, 0, "%u", sample_rates[i]); in libxl__rates_to_str_vsnd()
350 len += snprintf(NULL, 0, "%s,", in libxl__formats_to_str_vsnd()
359 len += snprintf(NULL, 0, "%s", in libxl__formats_to_str_vsnd()
/xen/tools/libs/ctrl/
A Dxc_flask.c368 snprintf(buf, size, in xc_flask_avc_hashstats()
382 n = snprintf(buf, size, "lookups hits misses allocations reclaims frees\n"); in xc_flask_avc_cachestats()
395 n = snprintf(buf, size, "%u %u %u %u %u %u\n", in xc_flask_avc_cachestats()
/xen/xen/arch/arm/efi/
A Defi-boot.h478 prop_len += snprintf(buf + prop_len, in efi_arch_handle_cmdline()
491 prop_len += snprintf(buf + prop_len, EFI_PAGE_SIZE - prop_len, in efi_arch_handle_cmdline()
508 prop_len += snprintf(buf + prop_len, in efi_arch_handle_cmdline()
736 snprintf(mod_string, sizeof(mod_string), "module@%"PRIx64, file->addr); in handle_module_node()
/xen/tools/libfsimage/ext2fs-lib/
A Dext2fs-lib.c38 snprintf(opts, 29, "offset=%" PRId64, offset); in ext2lib_mount()
/xen/tools/libfsimage/common/
A Dfsimage_plugin.c159 (void) snprintf(tmp, name_max, "%s/%s/fsimage.so", fsdir, in fsi_init()
/xen/tools/libs/guest/
A Dxg_suspend.c40 snprintf(buf, SUSPEND_FILE_BUFLEN, SUSPEND_LOCK_FILE, domid); in get_suspend_file()
/xen/xen/include/xen/
A Dlib.h108 extern int snprintf(char * buf, size_t size, const char * fmt, ...)

Completed in 3030 milliseconds

1234