Home
last modified time | relevance | path

Searched refs:format (Results 1 – 25 of 61) sorted by relevance

123

/spdk/test/iscsi_tgt/rpc_config/
H A Drpc_config.py65 cmd = "{} {}".format(self.rpc_py, name)
67 cmd += " {}".format(arg)
82 "log_get_flags returned {}, expected false".format(jsonvalue))
87 "log_get_flags returned {}, expected true".format(jsonvalue))
92 "log_get_flags returned {}, expected false".format(jsonvalue))
102 "iscsi_get_connections returned {}, expected empty".format(jsonvalue))
105 rpc.iscsi_create_portal_group(portal_tag, "{}:{}".format(rpc_param['target_ip'], str(rpc_param['port'])))
112 check_output('iscsiadm -m discovery -t st -p {}'.format(rpc_param['target_ip']), shell=True)
118 "target node name value is {}, expected {}".format(jsonvalues[0]['target_node_name'], rpc_param['target_name']))
120 "initiator address values is {}, expected {}".format(jsonvalue
[all...]
/spdk/lib/ftl/utils/
H A Dftl_log.h12 #define FTL_LOG_COMMON(type, dev, format, ...) \ argument
13 spdk_log(SPDK_LOG_##type, __FILE__, __LINE__, __func__, "[FTL][%s] "format, \
16 #define FTL_ERRLOG(dev, format, ...) \ argument
17 FTL_LOG_COMMON(ERROR, dev, format, ## __VA_ARGS__)
19 #define FTL_WARNLOG(dev, format, ...) \ argument
20 FTL_LOG_COMMON(WARN, dev, format, ## __VA_ARGS__)
22 #define FTL_NOTICELOG(dev, format, ...) \ argument
23 FTL_LOG_COMMON(NOTICE, dev, format, ## __VA_ARGS__)
25 #define FTL_INFOLOG(dev, format, ...) \ argument
26 FTL_LOG_COMMON(INFO, dev, format, ## __VA_ARGS__)
[all …]
/spdk/scripts/
H A Diostat.py128 "{:.2%}".format((cpu_info[0] - last_cpu_info[0]) / jiffies),
129 "{:.2%}".format((cpu_info[1] - last_cpu_info[1]) / jiffies),
130 "{:.2%}".format(((cpu_info[2] + cpu_info[5] + cpu_info[6]) -
132 "{:.2%}".format((cpu_info[4] - last_cpu_info[4]) / jiffies),
133 "{:.2%}".format((cpu_info[7] - last_cpu_info[7]) / jiffies),
134 "{:.2%}".format((cpu_info[3] - last_cpu_info[3]) / jiffies),
138 "{:.2%}".format(cpu_info[0] / jiffies),
139 "{:.2%}".format(cpu_info[1] / jiffies),
140 "{:.2%}".format((cpu_info[2] + cpu_info[5]
142 "{:.2%}".format(cpu_info[4] / jiffies),
[all …]
H A Dgenconfig.py37 defs["SPDK_{0}".format(var)] = 1
39 defs["SPDK_{0}".format(var)] = 0
42 defs["SPDK_{0}".format(var)] = strval
48 print("#undef {0}".format(key))
50 print("#define {0} {1}".format(key, value))
H A Ddpdk_mem_info.py51 .format(B_to_MiB(self.size), len(self.heaps)))
52 … print("{} heaps totaling size {}".format(len(self.heaps), B_to_MiB(self.get_total_heap_size())))
56 …print("{} mempools totaling size {}".format(len(self.mempools), B_to_MiB(self.get_total_mempool_si…
60 …print("{} memzones totaling size {}".format(len(self.memzones), B_to_MiB(self.get_total_memzone_si…
71 … print("heap id {} is invalid. please see the summary for valid heaps.\n".format(heap_id))
79 … print("mempool name {} is invalid. please see the summary for valid mempools.\n".format(name))
87 … print("memzone name {} is invalid. please see the summary for valid memzone.\n".format(name))
122 …print("{}element at address: {} with size: {:>15}".format(header, hex(self.addr), B_to_MiB(self.si…
149 …print("{}list of {} elements. size: {}".format(header, list_type, B_to_MiB(self.get_element_size(l…
151 x.print_summary("{} ".format(header))
[all …]
H A Dbackport.sh47 git -C "$SPDK_DIR" show -s --format="%H" "$from^..HEAD" | tac > "$TMP_DIR/ordered_commits"
66 git show -s --format="%B" "$hash" > $SPDK_DIR/msg
145 ssh -p 29418 $GERRIT_USER@review.spdk.io gerrit query --format json \
151 ssh -p 29418 $GERRIT_USER@review.spdk.io gerrit query --format json \
H A Dspdk-gpt.py25 def readb(block, offset, length, format="Q"): argument
30 return struct.unpack(format, data)[0]
H A Dlspci9 lspci -F <($scriptdir/rpc.py framework_get_pci_devices --format-lspci) "$@"
/spdk/test/blobfs/rocksdb/
H A Dpostprocess.py40 print("Thread: {:s}".format(thread))
45 print("{:8.4f} {:20s}".format(float(value) * 100 / total_samples, key.module))
48 print("{:8.4f} Total".format(thread_pct))
54 …print(("{:8.4f} {:20s} {:s}".format(float(value) * 100 / total_samples, key.module, key.funct…
61 print("{:8.4f} {:s}".format(float(value) * 100 / total_samples, key))
68 print("Wall time elapsed: {:s}".format(fields[2].split("e")[0]))
69 print("CPU utilization: {:s}".format(fields[3].split('C')[0]))
72 print("User: {:8.2f} ({:5.2f}%)".format(user, user * 100 / (user + system)))
73 print("System: {:8.2f} ({:5.2f}%)".format(system, system * 100 / (user + system)))
/spdk/lib/log/
H A Dlog.c144 const char *format, ...) in spdk_vlog()
148 va_start(ap, format); in spdk_vlog()
149 spdk_vlog(level, file, line, func, format, ap); in spdk_vlog()
177 const char *format, va_list ap) in spdk_vlog()
186 g_log_opts.log(level, file, line, func, format, ap); in spdk_vlog()
202 rc = vsnprintf(_buf, sizeof(_buf), format, ap); in spdk_vflog()
207 rc = vasprintf(&ext_buf, format, ap_copy); in spdk_vflog()
238 const char *format, va_list ap) in fdump()
243 vsnprintf(buf, sizeof(buf), format, ap); in fdump()
258 const char *format, in fdump()
103 spdk_log(enum spdk_log_level level,const char * file,const int line,const char * func,const char * format,...) spdk_log() argument
136 spdk_vlog(enum spdk_log_level level,const char * file,const int line,const char * func,const char * format,va_list ap) spdk_vlog() argument
194 spdk_vflog(FILE * fp,const char * file,const int line,const char * func,const char * format,va_list ap) spdk_vflog() argument
214 spdk_flog(FILE * fp,const char * file,const int line,const char * func,const char * format,...) spdk_flog() argument
[all...]
/spdk/include/spdk/
H A Dstring.h33 char *spdk_sprintf_alloc(const char *format, ...) __attribute__((format(printf, 1, 2)));
46 char *spdk_vsprintf_alloc(const char *format, va_list args);
64 char *spdk_sprintf_append_realloc(char *buffer, const char *format, ...);
82 char *spdk_vsprintf_append_realloc(char *buffer, const char *format, va_list args);
/spdk/lib/util/
H A Dstring.c12 spdk_vsprintf_append_realloc(char *buffer, const char *format, va_list args) in spdk_vsprintf_append_realloc() argument
25 new_size = vsnprintf(NULL, 0, format, args_copy); in spdk_vsprintf_append_realloc()
38 vsnprintf(new_buffer + orig_size, new_size - orig_size, format, args); in spdk_vsprintf_append_realloc()
44 spdk_sprintf_append_realloc(char *buffer, const char *format, ...) in spdk_sprintf_append_realloc() argument
49 va_start(args, format); in spdk_sprintf_append_realloc()
50 ret = spdk_vsprintf_append_realloc(buffer, format, args); in spdk_sprintf_append_realloc()
57 spdk_vsprintf_alloc(const char *format, va_list args) in spdk_vsprintf_alloc() argument
59 return spdk_vsprintf_append_realloc(NULL, format, args); in spdk_vsprintf_alloc()
63 spdk_sprintf_alloc(const char *format, ...) in spdk_sprintf_alloc() argument
68 va_start(args, format); in spdk_sprintf_alloc()
[all …]
/spdk/test/vhost/windows/
H A Dwindows_scsi_compliance.py61 print("ERROR: While opening log file: {log_file}".format(log_file=log))
67 print("ERROR: No results found in file {log_file}!".format(log_file=log))
101 <table bgcolor=\"#ffffff\" border=\"1px solid black;>\"""".format(ver=suite_ver)
112 html += "<th>{disk}</th>".format(disk=disk)
117 html += "<tr><td>{f_name}</td>".format(f_name=test)
128 … html += "<a href={file}>{result}</a>".format(result=result, file=os.path.join("./", disk, test))
/spdk/test/nvme/cuse/
H A Dspdk_smartctl_cuse.sh51 DIFF_SMART_JSON=$(diff --changed-group-format='%<' --unchanged-group-format='' <(echo "$KERNEL_SMAR…
/spdk/test/app/fuzz/iscsi_fuzz/
H A DREADME.md23 Commands are dumped as named objects in json format which can then be supplied back to the
26 At the end of each test run, a summary is printed in the following format:
/spdk/scripts/perf/nvme/
H A Drun_fio_test.py45 …print("Running Test: IO Size={} QD={} Mix={} CPU Mask={}".format(io_size_bytes, qd, rw_mix, cpu_ma…
56 …print("Finished Test: IO Size={} QD={} Mix={} CPU Mask={}".format(io_size_bytes, qd, rw_mix, cpu_m…
140 print("System does not have {} NVMe SSDs.".format(num_ssds))
/spdk/test/app/fuzz/nvme_fuzz/
H A DREADME.md22 Commands are dumped as named objects in json format which can then be supplied back to the
26 it is completed in the JSON format specified above.
27 At the end of each test run, a summary is printed for each namespace in the following format:
/spdk/python/spdk/rpc/
H A Dhelpers.py14 print("{} is deprecated, use {} instead.".format(old_name, f.__name__), file=sys.stderr)
/spdk/
H A Dautorun_post.py34 f.write(table_row.format('Total number of tests', total_tests_number))
35 f.write(table_row.format('Tests executed', executed_tests))
36 f.write(table_row.format('Number of test executions', tests_executions))
/spdk/scripts/perf/nvmf/
H A Dcommon.py95 return {measurement_name: "{0:.3f}".format(avg_util)}
171 logging.info([float("{0:.3f}".format(x)) for x in stats])
184 fh.write(",".join([job_name, *["{0:.3f}".format(x) for x in init_results]]) + "\n")
203 aggregate_results[h] = "{0:.3f}".format(_)
/spdk/scripts/bpf/
H A Dtrace.py400 object_id = '{}{}'.format(self._objects[tpoint.object_type], pe.object_index)
405 object_id, ts = '{:x}'.format(entry.object_id), None
410 owner_id = '{}{:02}'.format(self._owners[tpoint.owner_type], entry.owner_id)
415 related = '{}{}'.format(self._objects[pe.related_type], pe.related_index)
451 args.append('{}({})'.format(name, ', '.join(f'{n}={v}' for n, v in annot.items())))
453 args.append('{}: {}'.format(name, self._argfmt.get(arg.argtype,
472 print(('{:3} {:16.3f} {:3} {:24} {:12}'.format(
/spdk/test/unit/lib/log/log.c/
H A Dlog_ut.c78 const char *format, va_list args) in log_deprecations() argument
94 msg = spdk_vsprintf_alloc(format, args); in log_deprecations()
209 const char *format, va_list args) in main()
/spdk/python/spdk/sma/volume/
H A Dcrypto_bdev.py48 log.info('Creating crypto bdev: {} on volume: {}'.format(
62 log.info('Deleting crypto bdev: {} from volume: {}'.format(
/spdk/test/nvme/aer/
H A Daer.c32 #define AER_PRINTF(format, ...) printf("%s" format, g_parent_process ? "" : "[Child] ", \ argument
34 #define AER_FPRINTF(f, format, ...) fprintf(f, "%s" format, g_parent_process ? \ argument
/spdk/doc/
H A Dbdevperf.md14 bdevperf also supports a configuration file format similar
20 bdevperf's config file format is similar to FIO.

123