Lines Matching refs:sz
243 int perf_mem__tlb_scnprintf(char *out, size_t sz, struct mem_info *mem_info) in perf_mem__tlb_scnprintf() argument
249 sz -= 1; /* -1 for null termination */ in perf_mem__tlb_scnprintf()
268 l += scnprintf(out + l, sz - l, tlb_access[i]); in perf_mem__tlb_scnprintf()
271 l += scnprintf(out, sz - l, "N/A"); in perf_mem__tlb_scnprintf()
273 l += scnprintf(out + l, sz - l, " hit"); in perf_mem__tlb_scnprintf()
275 l += scnprintf(out + l, sz - l, " miss"); in perf_mem__tlb_scnprintf()
320 static int perf_mem__op_scnprintf(char *out, size_t sz, struct mem_info *mem_info) in perf_mem__op_scnprintf() argument
329 l = scnprintf(out, sz, "N/A"); in perf_mem__op_scnprintf()
331 l = scnprintf(out, sz, "LOAD"); in perf_mem__op_scnprintf()
333 l = scnprintf(out, sz, "STORE"); in perf_mem__op_scnprintf()
335 l = scnprintf(out, sz, "PFETCH"); in perf_mem__op_scnprintf()
337 l = scnprintf(out, sz, "EXEC"); in perf_mem__op_scnprintf()
339 l = scnprintf(out, sz, "No"); in perf_mem__op_scnprintf()
344 int perf_mem__lvl_scnprintf(char *out, size_t sz, struct mem_info *mem_info) in perf_mem__lvl_scnprintf() argument
354 sz -= 1; /* -1 for null termination */ in perf_mem__lvl_scnprintf()
373 l += scnprintf(out + l, sz - l, "%s ", mem_hops[mem_info->data_src.mem_hops]); in perf_mem__lvl_scnprintf()
382 l += scnprintf(out + l, sz - l, mem_lvl[i]); in perf_mem__lvl_scnprintf()
393 l += scnprintf(out + l, sz - l, mem_lvlnum[lvl]); in perf_mem__lvl_scnprintf()
395 l += scnprintf(out + l, sz - l, "L%d", lvl); in perf_mem__lvl_scnprintf()
399 l += scnprintf(out + l, sz - l, "N/A"); in perf_mem__lvl_scnprintf()
401 l += scnprintf(out + l, sz - l, " hit"); in perf_mem__lvl_scnprintf()
403 l += scnprintf(out + l, sz - l, " miss"); in perf_mem__lvl_scnprintf()
421 int perf_mem__snp_scnprintf(char *out, size_t sz, struct mem_info *mem_info) in perf_mem__snp_scnprintf() argument
426 sz -= 1; /* -1 for null termination */ in perf_mem__snp_scnprintf()
439 l += scnprintf(out + l, sz - l, snoop_access[i]); in perf_mem__snp_scnprintf()
454 l += scnprintf(out + l, sz - l, snoopx_access[i]); in perf_mem__snp_scnprintf()
458 l += scnprintf(out, sz - l, "N/A"); in perf_mem__snp_scnprintf()
463 int perf_mem__lck_scnprintf(char *out, size_t sz, struct mem_info *mem_info) in perf_mem__lck_scnprintf() argument
472 l = scnprintf(out, sz, "N/A"); in perf_mem__lck_scnprintf()
474 l = scnprintf(out, sz, "Yes"); in perf_mem__lck_scnprintf()
476 l = scnprintf(out, sz, "No"); in perf_mem__lck_scnprintf()
481 int perf_mem__blk_scnprintf(char *out, size_t sz, struct mem_info *mem_info) in perf_mem__blk_scnprintf() argument
486 sz -= 1; /* -1 for null termination */ in perf_mem__blk_scnprintf()
493 l += scnprintf(out + l, sz - l, " N/A"); in perf_mem__blk_scnprintf()
497 l += scnprintf(out + l, sz - l, " Data"); in perf_mem__blk_scnprintf()
499 l += scnprintf(out + l, sz - l, " Addr"); in perf_mem__blk_scnprintf()
504 int perf_script__meminfo_scnprintf(char *out, size_t sz, struct mem_info *mem_info) in perf_script__meminfo_scnprintf() argument
508 i += scnprintf(out, sz, "|OP "); in perf_script__meminfo_scnprintf()
509 i += perf_mem__op_scnprintf(out + i, sz - i, mem_info); in perf_script__meminfo_scnprintf()
510 i += scnprintf(out + i, sz - i, "|LVL "); in perf_script__meminfo_scnprintf()
511 i += perf_mem__lvl_scnprintf(out + i, sz, mem_info); in perf_script__meminfo_scnprintf()
512 i += scnprintf(out + i, sz - i, "|SNP "); in perf_script__meminfo_scnprintf()
513 i += perf_mem__snp_scnprintf(out + i, sz - i, mem_info); in perf_script__meminfo_scnprintf()
514 i += scnprintf(out + i, sz - i, "|TLB "); in perf_script__meminfo_scnprintf()
515 i += perf_mem__tlb_scnprintf(out + i, sz - i, mem_info); in perf_script__meminfo_scnprintf()
516 i += scnprintf(out + i, sz - i, "|LCK "); in perf_script__meminfo_scnprintf()
517 i += perf_mem__lck_scnprintf(out + i, sz - i, mem_info); in perf_script__meminfo_scnprintf()
518 i += scnprintf(out + i, sz - i, "|BLK "); in perf_script__meminfo_scnprintf()
519 i += perf_mem__blk_scnprintf(out + i, sz - i, mem_info); in perf_script__meminfo_scnprintf()