Home
last modified time | relevance | path

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

1234

/xen/tools/helpers/
A Dinit-xenstore-domain.c142 snprintf(cmdline, 512, "--event %d --internal-db", rv); in build()
332 snprintf(full_path, 100, "%s/%s", dir, node); in do_xs_write_dir_node()
429 snprintf(buf, 16, "%d", domid); in main()
433 snprintf(buf, 16, "%d", memory * 1024); in main()
436 snprintf(buf, 16, "%d", maxmem * 1024); in main()
439 snprintf(fe_path, 64, "/local/domain/%d/console", domid); in main()
440 snprintf(buf, 16, "%d", domid); in main()
444 snprintf(buf, 16, "%d", XenbusStateInitialising); in main()
453 snprintf(buf, 16, "%d", console_evtchn); in main()
455 snprintf(buf, 16, "%ld", console_mfn); in main()
[all …]
/xen/tools/xenstore/
A Dxs_lib.c46 if (snprintf(buf, sizeof(buf), "%s/socket", in xs_daemon_path()
55 snprintf(buf, sizeof(buf), "%s/tdb", xs_daemon_rootdir()); in xs_daemon_tdb()
70 if (snprintf(buf, sizeof(buf), "%s_ro", s) >= PATH_MAX) in xs_daemon_socket_ro()
172 snprintf(buffer+1, buf_len-1, "%i", (int)perm->id); in xs_perm_to_string()
A Dxs.c624 snprintf(offstr, sizeof(offstr), "%u", off); in xs_directory_part()
1096 snprintf(domid_str, sizeof(domid_str), "%u", domid); in xs_introduce_domain()
1097 snprintf(mfn_str, sizeof(mfn_str), "%lu", mfn); in xs_introduce_domain()
1098 snprintf(eventchn_str, sizeof(eventchn_str), "%u", eventchn); in xs_introduce_domain()
1118 snprintf(domid_str, sizeof(domid_str), "%u", domid); in xs_set_target()
1119 snprintf(target_str, sizeof(target_str), "%u", target); in xs_set_target()
1136 snprintf(domid_str, sizeof(domid_str), "%u", domid); in single_with_domid()
1156 snprintf(domid_str, sizeof(domid_str), "%u", domid); in xs_get_domain_path()
A Dxenstored_posix.c44 len = snprintf(buf, sizeof(buf), "%ld\n", (long)getpid()); in write_pidfile()
/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()
A Dxenperf.c181 snprintf(hypercall_name, sizeof(hypercall_name), "[%d]", j); 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()
/xen/tools/xenpmd/
A Dxenpmd.c115 ret = snprintf(file_name, sizeof(file_name), BATTERY_INFO_FILE_PATH, in get_next_battery_file()
118 ret = snprintf(file_name, sizeof(file_name), BATTERY_STATE_FILE_PATH, in get_next_battery_file()
346 snprintf(temp_val, 9, "%02x%02x%02x%02x", (unsigned int)val & 0xff, in write_ulong_lsb_first()
364 snprintf(val, 3, "%02x", len); in write_battery_info_to_xenstore()
375 snprintf(string_info, 256, "%02x%s%02x%s%02x%s%02x%s", in write_battery_info_to_xenstore()
431 snprintf(val, 3, "%02x", 16); in write_battery_status_to_xenstore()
/xen/tools/xenstat/libxenstat/src/
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.c149 snprintf(path, sizeof(path),"/local/domain/0/backend/qdisk/%i", domid); in lookup_xenstore_devid()
166 snprintf(path, sizeof(path),"/local/domain/0/backend/qdisk/%i/%i/params", domid, devid); in lookup_xenstore_devid()
178 snprintf(path, sizeof(path),"/local/domain/0/backend/qdisk/%i/%i/sector-size", domid, devid); in lookup_xenstore_devid()
395 snprintf(path, sizeof(path),"/local/domain/0/backend/qdisk/%i", domain); in read_attributes_qdisk_dom()
402 snprintf(path, sizeof(path), XEN_RUN_DIR "/qmp-libxenstat-%i", domain); in read_attributes_qdisk_dom()
A Dxenstat_linux.c254 snprintf(nodename_path, 48, "/sys/class/net/%s/device/nodename", iface); in get_iface_domid_network()
314 snprintf(devNoBridge, sizeof(devNoBridge), "p%s", devBridge); in xenstat_collect_networks()
400 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()
432 snprintf(path, strlen(dom_path) + strlen("/serial/0/tty") + 5, "%s/serial/%d/tty", dom_path, num); in main()
441 snprintf(path, strlen(dom_path) + strlen("/console/tty") + 1, "%s/console/tty", dom_path); in main()
443snprintf(path, strlen(dom_path) + strlen("/device/console/%d/tty") + 5, "%s/device/console/%d/tty"… in main()
446 snprintf(path, strlen(dom_path) + strlen("/vuart/0/tty") + 1, in main()
/xen/tools/libvchan/
A Dinit.c274 snprintf(ref, sizeof ref, "%d", ring_ref); in init_xs_srv()
275 snprintf(buf, sizeof buf, "%s/ring-ref", xs_base); in init_xs_srv()
281 snprintf(ref, sizeof ref, "%d", ctrl->event_port); in init_xs_srv()
282 snprintf(buf, sizeof buf, "%s/event-channel", xs_base); in init_xs_srv()
418 snprintf(buf, sizeof buf, "%s/ring-ref", xs_path); in libxenvchan_client_init()
426 snprintf(buf, sizeof buf, "%s/event-channel", xs_path); in libxenvchan_client_init()
/xen/tools/flask/utils/
A Dlabel-pci.c60 snprintf(buf, sizeof(buf), "/sys/bus/pci/devices/%04x:%02x:%02x.%d/resource", in main()
102 snprintf(buf, sizeof(buf), "/sys/bus/pci/devices/%04x:%02x:%02x.%d/irq", in main()
/xen/tools/xenbackendd/
A Dxenbackendd.c267 snprintf(buf, sizeof(buf), "%s/state", vec[XS_WATCH_PATH]); in main()
276 snprintf(buf, sizeof(buf), "%s/hotplug-status", in main()
296 snprintf(buf, sizeof(buf), "%s/script", 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/xen/drivers/char/
A Dconsole.c175 snprintf(val, LOGLVL_VAL_SZ, "%s/%s", lvl2opt[lower], lvl2opt[upper]); in xenlog_update_val()
846 snprintf(tstr, sizeof(tstr), "[%04u-%02u-%02u %02u:%02u:%02u] ", in printk_start_of_line()
853 snprintf(tstr, sizeof(tstr), in printk_start_of_line()
866 snprintf(tstr, sizeof(tstr), "[%5"PRIu64".%06"PRIu64"] ", in printk_start_of_line()
872 snprintf(tstr, sizeof(tstr), "[%016"PRIx64"] ", get_cycles()); in printk_start_of_line()
948 snprintf(prefix, sizeof(prefix), "(d%d) ", d->domain_id); in guest_printk()
1204 snprintf(lost_str, sizeof(lost_str), "%d", lost); in __printk_ratelimit()
/xen/tools/console/daemon/
A Dutils.c93 len = snprintf(buf, sizeof(buf), "%ld\n", (long)getpid()); in daemonize()
/xen/tools/libxc/
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()
A Dxc_suspend.c40 snprintf(buf, SUSPEND_FILE_BUFLEN, SUSPEND_LOCK_FILE, domid); in get_suspend_file()
/xen/tools/libxl/
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/xen/arch/arm/efi/
A Defi-boot.h449 prop_len += snprintf(buf + prop_len, in efi_arch_handle_cmdline()
456 prop_len += snprintf(buf + prop_len, in efi_arch_handle_cmdline()
472 prop_len += snprintf(buf + prop_len, in efi_arch_handle_cmdline()
/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 load_plugins()
/xen/tools/python/xen/lowlevel/xs/
A Dxs.c446 snprintf(token_str, sizeof(token_str), "%li", (unsigned long)token); in xspy_watch()
563 snprintf(token_str, sizeof(token_str), "%li", (unsigned long)token); in xspy_unwatch()
598 snprintf(thstr, sizeof(thstr), "%lX", (unsigned long)th); in xspy_transaction_start()

Completed in 35 milliseconds

1234