Lines Matching refs:value

17 static void print_stats_schema_value(Monitor *mon, StatsSchemaValue *value)  in print_stats_schema_value()  argument
20 monitor_printf(mon, " %s (%s%s", value->name, StatsType_str(value->type), in print_stats_schema_value()
21 value->has_unit || value->exponent ? ", " : ""); in print_stats_schema_value()
23 if (value->has_unit) { in print_stats_schema_value()
24 if (value->unit == STATS_UNIT_SECONDS) { in print_stats_schema_value()
26 } else if (value->unit == STATS_UNIT_BYTES) { in print_stats_schema_value()
31 if (unit && value->base == 10 && in print_stats_schema_value()
32 value->exponent >= -18 && value->exponent <= 18 && in print_stats_schema_value()
33 value->exponent % 3 == 0) { in print_stats_schema_value()
34 monitor_puts(mon, si_prefix(value->exponent)); in print_stats_schema_value()
35 } else if (unit && value->base == 2 && in print_stats_schema_value()
36 value->exponent >= 0 && value->exponent <= 60 && in print_stats_schema_value()
37 value->exponent % 10 == 0) { in print_stats_schema_value()
39 monitor_puts(mon, iec_binary_prefix(value->exponent)); in print_stats_schema_value()
40 } else if (value->exponent) { in print_stats_schema_value()
43 value->base, value->exponent, in print_stats_schema_value()
44 value->has_unit ? " " : ""); in print_stats_schema_value()
48 if (value->has_unit) { in print_stats_schema_value()
49 monitor_puts(mon, unit ? unit : StatsUnit_str(value->unit)); in print_stats_schema_value()
53 if (value->type == STATS_TYPE_LINEAR_HISTOGRAM && value->has_bucket_size) { in print_stats_schema_value()
54 monitor_printf(mon, ", bucket size=%d", value->bucket_size); in print_stats_schema_value()
66 if (node->value->provider == provider && in find_schema_value_list()
67 node->value->target == target) { in find_schema_value_list()
68 return node->value->stats; in find_schema_value_list()
99 Stats *stats = stats_list->value; in print_stats_results()
100 StatsValue *stats_value = stats->value; in print_stats_results()
101 StatsSchemaValue *schema_value = schema_value_list->value; in print_stats_results()
111 schema_value = schema_value_list->value; in print_stats_results()
128 monitor_printf(mon, "[%d]=%" PRId64 " ", i, list->value); in print_stats_results()
243 print_stats_results(mon, target, provider_str == NULL, entry->value, schema); in hmp_info_stats()