Lines Matching refs:g_stats
84 static ctfdump_stat_t g_stats; variable
180 len = snprintf(NULL, 0, " [%lu] %ld", g_stats.cs_ndata, id); in ctfdump_objects_cb()
182 g_stats.cs_ndata, id, MAX(15 - len, 0), "", name, symidx); in ctfdump_objects_cb()
183 g_stats.cs_ndata++; in ctfdump_objects_cb()
225 " [%lu] %s (%lu) returns: %ld args: (", g_stats.cs_nfuncs, name, in ctfdump_functions_cb()
235 g_stats.cs_nfuncs++; in ctfdump_functions_cb()
236 g_stats.cs_nfuncargs += ctc->ctc_argc; in ctfdump_functions_cb()
237 g_stats.cs_nfuncmax = MAX(ctc->ctc_argc, g_stats.cs_nfuncmax); in ctfdump_functions_cb()
315 g_stats.cs_nstrings++; in ctfdump_strings_cb()
316 g_stats.cs_strsz += len; in ctfdump_strings_cb()
317 g_stats.cs_strmax = MAX(g_stats.cs_strmax, len); in ctfdump_strings_cb()
354 ctfdump_stat_int("total number of data objects", g_stats.cs_ndata); in ctfdump_stats()
356 ctfdump_stat_int("total number of functions", g_stats.cs_nfuncs); in ctfdump_stats()
358 g_stats.cs_nfuncargs); in ctfdump_stats()
359 ctfdump_stat_int("maximum argument list length", g_stats.cs_nfuncmax); in ctfdump_stats()
360 if (g_stats.cs_nfuncs != 0) in ctfdump_stats()
362 (float)g_stats.cs_nfuncargs / (float)g_stats.cs_nfuncs); in ctfdump_stats()
367 sum += g_stats.cs_ntypes[i]; in ctfdump_stats()
370 g_stats.cs_ntypes[CTF_K_INTEGER]); in ctfdump_stats()
372 g_stats.cs_ntypes[CTF_K_FLOAT]); in ctfdump_stats()
374 g_stats.cs_ntypes[CTF_K_POINTER]); in ctfdump_stats()
376 g_stats.cs_ntypes[CTF_K_ARRAY]); in ctfdump_stats()
378 g_stats.cs_ntypes[CTF_K_FUNCTION]); in ctfdump_stats()
380 g_stats.cs_ntypes[CTF_K_STRUCT]); in ctfdump_stats()
382 g_stats.cs_ntypes[CTF_K_UNION]); in ctfdump_stats()
384 g_stats.cs_ntypes[CTF_K_ENUM]); in ctfdump_stats()
386 g_stats.cs_ntypes[CTF_K_FORWARD]); in ctfdump_stats()
388 g_stats.cs_ntypes[CTF_K_TYPEDEF]); in ctfdump_stats()
390 g_stats.cs_ntypes[CTF_K_VOLATILE]); in ctfdump_stats()
392 g_stats.cs_ntypes[CTF_K_CONST]); in ctfdump_stats()
394 g_stats.cs_ntypes[CTF_K_RESTRICT]); in ctfdump_stats()
396 g_stats.cs_ntypes[CTF_K_UNKNOWN]); in ctfdump_stats()
399 ctfdump_stat_int("total number of struct members", g_stats.cs_nsmembs); in ctfdump_stats()
400 ctfdump_stat_int("maximum number of struct members", g_stats.cs_nsmax); in ctfdump_stats()
401 ctfdump_stat_int("total size of all structs", g_stats.cs_structsz); in ctfdump_stats()
402 ctfdump_stat_int("maximum size of a struct", g_stats.cs_sszmax); in ctfdump_stats()
403 if (g_stats.cs_ntypes[CTF_K_STRUCT] != 0) { in ctfdump_stats()
405 (float)g_stats.cs_nsmembs / in ctfdump_stats()
406 (float)g_stats.cs_ntypes[CTF_K_STRUCT]); in ctfdump_stats()
408 (float)g_stats.cs_structsz / in ctfdump_stats()
409 (float)g_stats.cs_ntypes[CTF_K_STRUCT]); in ctfdump_stats()
412 ctfdump_stat_int("total number of union members", g_stats.cs_numembs); in ctfdump_stats()
413 ctfdump_stat_int("maximum number of union members", g_stats.cs_numax); in ctfdump_stats()
414 ctfdump_stat_int("total size of all unions", g_stats.cs_unionsz); in ctfdump_stats()
415 ctfdump_stat_int("maximum size of a union", g_stats.cs_uszmax); in ctfdump_stats()
416 if (g_stats.cs_ntypes[CTF_K_UNION] != 0) { in ctfdump_stats()
418 (float)g_stats.cs_numembs / in ctfdump_stats()
419 (float)g_stats.cs_ntypes[CTF_K_UNION]); in ctfdump_stats()
421 (float)g_stats.cs_unionsz / in ctfdump_stats()
422 (float)g_stats.cs_ntypes[CTF_K_UNION]); in ctfdump_stats()
426 ctfdump_stat_int("total number of enum members", g_stats.cs_nemembs); in ctfdump_stats()
427 ctfdump_stat_int("maximum number of enum members", g_stats.cs_nemax); in ctfdump_stats()
428 if (g_stats.cs_ntypes[CTF_K_ENUM] != 0) { in ctfdump_stats()
430 (float)g_stats.cs_nemembs / in ctfdump_stats()
431 (float)g_stats.cs_ntypes[CTF_K_ENUM]); in ctfdump_stats()
435 ctfdump_stat_int("total number of strings", g_stats.cs_nstrings); in ctfdump_stats()
436 ctfdump_stat_int("bytes of string data", g_stats.cs_strsz); in ctfdump_stats()
437 ctfdump_stat_int("maximum string length", g_stats.cs_strmax); in ctfdump_stats()
438 if (g_stats.cs_nstrings != 0) in ctfdump_stats()
440 (float)g_stats.cs_strsz / (float)g_stats.cs_nstrings); in ctfdump_stats()
526 g_stats.cs_ntypes[kind]++; in ctfdump_types_cb()
604 g_stats.cs_nsmembs += count; in ctfdump_types_cb()
605 g_stats.cs_nsmax = MAX(count, g_stats.cs_nsmax); in ctfdump_types_cb()
606 g_stats.cs_structsz += size; in ctfdump_types_cb()
607 g_stats.cs_sszmax = MAX(size, g_stats.cs_sszmax); in ctfdump_types_cb()
609 g_stats.cs_numembs += count; in ctfdump_types_cb()
610 g_stats.cs_numax = MAX(count, g_stats.cs_numax); in ctfdump_types_cb()
611 g_stats.cs_unionsz += size; in ctfdump_types_cb()
612 g_stats.cs_uszmax = MAX(count, g_stats.cs_uszmax); in ctfdump_types_cb()
621 g_stats.cs_nemembs += count; in ctfdump_types_cb()
622 g_stats.cs_nemax = MAX(g_stats.cs_nemax, count); in ctfdump_types_cb()