Home
last modified time | relevance | path

Searched refs:scale (Results 1 – 25 of 27) sorted by relevance

12

/tools/iio/
Diio_generic_buffer.c95 printf("%05f ", ((float)val + info->offset) * info->scale); in print1byte()
97 printf("%05f ", ((float)input + info->offset) * info->scale); in print1byte()
118 printf("%05f ", ((float)val + info->offset) * info->scale); in print2byte()
120 printf("%05f ", ((float)input + info->offset) * info->scale); in print2byte()
141 printf("%05f ", ((float)val + info->offset) * info->scale); in print4byte()
143 printf("%05f ", ((float)input + info->offset) * info->scale); in print4byte()
165 if (info->scale == 1.0f && info->offset == 0.0f) in print8byte()
169 ((float)val + info->offset) * info->scale); in print8byte()
171 printf("%05f ", ((float)input + info->offset) * info->scale); in print8byte()
Diio_utils.h41 float scale; member
Diio_utils.c421 current->scale = 1.0; in build_channel_array()
474 ret = iioutils_get_param_float(&current->scale, in build_channel_array()
/tools/perf/util/
Dpmu.h61 double scale; member
77 double scale; member
133 int perf_pmu__convert_scale(const char *scale, char **end, double *sval);
Dpmu.c110 int perf_pmu__convert_scale(const char *scale, char **end, double *sval) in perf_pmu__convert_scale() argument
138 *sval = strtod(scale, end); in perf_pmu__convert_scale()
151 char scale[128]; in perf_pmu__parse_scale() local
164 sret = read(fd, scale, sizeof(scale)-1); in perf_pmu__parse_scale()
168 if (scale[sret - 1] == '\n') in perf_pmu__parse_scale()
169 scale[sret - 1] = '\0'; in perf_pmu__parse_scale()
171 scale[sret] = '\0'; in perf_pmu__parse_scale()
173 ret = perf_pmu__convert_scale(scale, NULL, &alias->scale); in perf_pmu__parse_scale()
274 old->scale = newalias->scale; in perf_pmu_update_alias()
345 alias->scale = 1.0; in __perf_pmu__new_alias()
[all …]
Dstat-shadow.c239 count *= counter->scale; in perf_stat__update_shadow_stats()
817 double scale; in prepare_metric() local
829 scale = 1e-9; in prepare_metric()
837 scale = 1.0; in prepare_metric()
858 expr__add_id_val(pctx, n, avg_stats(stats)*scale); in prepare_metric()
884 double ratio, scale; in generic_metric() local
899 &unit, &scale) >= 0) { in generic_metric()
900 ratio *= scale; in generic_metric()
1114 avg / (ratio * evsel->scale)); in perf_stat__print_shadow_stats()
Devsel.h68 double scale; member
193 bool scale, s8 *pscaled);
339 int __evsel__read_on_cpu(struct evsel *evsel, int cpu, int thread, bool scale);
Dstat-display.c358 double sc = evsel->scale; in abs_printout()
589 alias->scale == counter->scale && in collect_all_aliases()
698 uval = val * counter->scale; in print_counter_aggrdata()
772 uval = val * counter->scale; in sort_aggr_thread()
869 uval = cd.avg * counter->scale; in print_counter_aggr()
912 uval = val * counter->scale; in print_counter()
950 uval = val * counter->scale; in print_no_aggr_metric()
Dstat.c382 perf_counts_values__scale(count, config->scale, NULL); in process_counter_values()
452 perf_counts_values__scale(aggr, config->scale, &counter->counts->scaled); in perf_stat_process_counter()
525 ret += fprintf(fp, "... scale %d\n", sc.scale); in perf_event__fprintf_stat_config()
Dstat.h116 bool scale; member
Devsel.c245 evsel->scale = 1.0; in evsel__init()
286 evsel->scale = 1e-6; in evsel__new_idx()
421 evsel->scale = orig->scale; in evsel__clone()
1470 bool scale, s8 *pscaled) in perf_counts_values__scale() argument
1474 if (scale) { in perf_counts_values__scale()
1582 int __evsel__read_on_cpu(struct evsel *evsel, int cpu, int thread, bool scale) in __evsel__read_on_cpu() argument
1585 size_t nv = scale ? 3 : 1; in __evsel__read_on_cpu()
1597 perf_counts_values__scale(&count, scale, NULL); in __evsel__read_on_cpu()
Dsynthetic-events.c1349 ADD(SCALE, config->scale) in perf_event__synthesize_stat_config()
1857 ev_data->scale = evsel->scale; in perf_event__synthesize_event_update_scale()
1933 return evsel->scale != 1; in has_scale()
Devent.c137 CASE(SCALE, scale) in perf_event__read_stat_config()
Dheader.c4173 ret += fprintf(fp, "... scale: %f\n", ev_scale->scale); in perf_event__fprintf_event_update()
4267 evsel->scale = ev_scale->scale; in perf_event__process_event_update()
/tools/testing/selftests/kvm/lib/
Dtest_util.c26 char *scale; in parse_size() local
31 base = strtoull(size, &scale, 0); in parse_size()
35 switch (tolower(*scale)) { in parse_size()
53 TEST_ASSERT(false, "Unknown size letter %c", *scale); in parse_size()
/tools/perf/tests/
Dstat.c45 TEST_ASSERT_VAL("wrong scale", stat_config.scale == 1); in process_stat_config_event()
54 .scale = 1, in test__synthesize_stat_config()
Devent_update.c40 TEST_ASSERT_VAL("wrong scale", ev_data->scale == 0.123); in process_event_scale()
107 evsel->scale = 0.123; in test__event_update()
/tools/testing/selftests/zram/
Dzram01.sh55 echo "zram compression ratio: $(echo "scale=2; $v / 100 " | bc):1: OK"
/tools/testing/selftests/drivers/net/mlxsw/spectrum/
Ddevlink_lib_spectrum.sh89 scale)
/tools/testing/selftests/bpf/progs/
Dbpf_cubic.c361 __u32 scale = beta_scale; in bictcp_update() local
365 delta = (cwnd * scale) >> 3; in bictcp_update()
/tools/lib/perf/include/perf/
Devent.h189 double scale; member
/tools/perf/scripts/python/
Dexported-sql-viewer.py2080 def __init__(self, scale, subrange, region_attributes, dp): argument
2081 self.scale = scale
2089 return int(round((x - self.subrange.x.lo) * self.scale.x, self.pdp.x))
2092 return int(round((y - self.subrange.y.lo) * self.scale.y, self.pdp.y))
2095 return round((round(px, 0) / self.scale.x), self.dp.x) + self.subrange.x.lo
2098 return round((round(py, 0) / self.scale.y), self.dp.y) + self.subrange.y.lo
2116 def ToPDP(self, dp, scale): argument
2124 x = math.log10((10 ** dp) * scale)
2133 x = self.ToPDP(self.dp.x, self.scale.x)
2134 y = self.ToPDP(self.dp.y, self.scale.y)
[all …]
/tools/perf/Documentation/
Dperf-stat.txt124 --no-scale::
125 Don't scale/normalize counter values
/tools/perf/
Dbuiltin-stat.c214 .scale = true,
1180 OPT_BOOLEAN(0, "scale", &stat_config.scale,
/tools/memory-model/Documentation/
Dsimple.txt63 for early-boot operation. The reason RCU is able to scale despite

12