tools/perf/arch/x86/tests/bp-modify.c
204
TEST_ASSERT_VAL("modify test 1 failed\n", !bp_modify1());
tools/perf/arch/x86/tests/bp-modify.c
205
TEST_ASSERT_VAL("modify test 2 failed\n", !bp_modify2());
tools/perf/arch/x86/tests/hybrid.c
100
TEST_ASSERT_VAL("wrong exclude_kernel", !evsel->core.attr.exclude_kernel);
tools/perf/arch/x86/tests/hybrid.c
103
TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
tools/perf/arch/x86/tests/hybrid.c
104
TEST_ASSERT_VAL("wrong hybrid type", test_hybrid_type(evsel, PERF_TYPE_RAW));
tools/perf/arch/x86/tests/hybrid.c
105
TEST_ASSERT_VAL("wrong config", test_config(evsel, PERF_COUNT_HW_BRANCH_INSTRUCTIONS));
tools/perf/arch/x86/tests/hybrid.c
106
TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader));
tools/perf/arch/x86/tests/hybrid.c
107
TEST_ASSERT_VAL("wrong exclude_user", !evsel->core.attr.exclude_user);
tools/perf/arch/x86/tests/hybrid.c
108
TEST_ASSERT_VAL("wrong exclude_kernel", evsel->core.attr.exclude_kernel);
tools/perf/arch/x86/tests/hybrid.c
119
TEST_ASSERT_VAL("missing pmu", pmu);
tools/perf/arch/x86/tests/hybrid.c
120
TEST_ASSERT_VAL("unexpected pmu", !strncmp(pmu->name, "cpu_", 4));
tools/perf/arch/x86/tests/hybrid.c
121
TEST_ASSERT_VAL("wrong config", test_perf_config(evsel, 0x1a));
tools/perf/arch/x86/tests/hybrid.c
130
TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
tools/perf/arch/x86/tests/hybrid.c
131
TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type);
tools/perf/arch/x86/tests/hybrid.c
132
TEST_ASSERT_VAL("wrong config", test_config(evsel, 0x1a));
tools/perf/arch/x86/tests/hybrid.c
140
TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
tools/perf/arch/x86/tests/hybrid.c
141
TEST_ASSERT_VAL("wrong type", PERF_TYPE_HW_CACHE == evsel->core.attr.type);
tools/perf/arch/x86/tests/hybrid.c
142
TEST_ASSERT_VAL("wrong config", 0x2 == (evsel->core.attr.config & 0xffffffff));
tools/perf/arch/x86/tests/hybrid.c
151
TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
tools/perf/arch/x86/tests/hybrid.c
152
TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type);
tools/perf/arch/x86/tests/hybrid.c
153
TEST_ASSERT_VAL("wrong config", 10 == evsel->core.attr.config);
tools/perf/arch/x86/tests/hybrid.c
154
TEST_ASSERT_VAL("wrong config1", 1 == evsel->core.attr.config1);
tools/perf/arch/x86/tests/hybrid.c
155
TEST_ASSERT_VAL("wrong config2", 3 == evsel->core.attr.config2);
tools/perf/arch/x86/tests/hybrid.c
156
TEST_ASSERT_VAL("wrong config3", 0 == evsel->core.attr.config3);
tools/perf/arch/x86/tests/hybrid.c
161
TEST_ASSERT_VAL("wrong period", 0 == evsel->core.attr.sample_period);
tools/perf/arch/x86/tests/hybrid.c
171
TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
tools/perf/arch/x86/tests/hybrid.c
172
TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
tools/perf/arch/x86/tests/hybrid.c
173
TEST_ASSERT_VAL("wrong hybrid type", test_hybrid_type(evsel, PERF_TYPE_RAW));
tools/perf/arch/x86/tests/hybrid.c
174
TEST_ASSERT_VAL("wrong config", test_config(evsel, PERF_COUNT_HW_CPU_CYCLES));
tools/perf/arch/x86/tests/hybrid.c
175
TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader));
tools/perf/arch/x86/tests/hybrid.c
178
TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type);
tools/perf/arch/x86/tests/hybrid.c
179
TEST_ASSERT_VAL("wrong config", evsel->core.attr.config == 0x3c);
tools/perf/arch/x86/tests/hybrid.c
180
TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader));
tools/perf/arch/x86/tests/hybrid.c
29
TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries);
tools/perf/arch/x86/tests/hybrid.c
30
TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
tools/perf/arch/x86/tests/hybrid.c
31
TEST_ASSERT_VAL("wrong hybrid type", test_hybrid_type(evsel, PERF_TYPE_RAW));
tools/perf/arch/x86/tests/hybrid.c
32
TEST_ASSERT_VAL("wrong config", test_config(evsel, PERF_COUNT_HW_CPU_CYCLES));
tools/perf/arch/x86/tests/hybrid.c
41
TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
tools/perf/arch/x86/tests/hybrid.c
42
TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
tools/perf/arch/x86/tests/hybrid.c
43
TEST_ASSERT_VAL("wrong hybrid type", test_hybrid_type(evsel, PERF_TYPE_RAW));
tools/perf/arch/x86/tests/hybrid.c
44
TEST_ASSERT_VAL("wrong config", test_config(evsel, PERF_COUNT_HW_CPU_CYCLES));
tools/perf/arch/x86/tests/hybrid.c
45
TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader));
tools/perf/arch/x86/tests/hybrid.c
48
TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
tools/perf/arch/x86/tests/hybrid.c
49
TEST_ASSERT_VAL("wrong hybrid type", test_hybrid_type(evsel, PERF_TYPE_RAW));
tools/perf/arch/x86/tests/hybrid.c
50
TEST_ASSERT_VAL("wrong config", test_config(evsel, PERF_COUNT_HW_BRANCH_INSTRUCTIONS));
tools/perf/arch/x86/tests/hybrid.c
51
TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader));
tools/perf/arch/x86/tests/hybrid.c
60
TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
tools/perf/arch/x86/tests/hybrid.c
61
TEST_ASSERT_VAL("wrong type", PERF_TYPE_SOFTWARE == evsel->core.attr.type);
tools/perf/arch/x86/tests/hybrid.c
62
TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader));
tools/perf/arch/x86/tests/hybrid.c
65
TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
tools/perf/arch/x86/tests/hybrid.c
66
TEST_ASSERT_VAL("wrong hybrid type", test_hybrid_type(evsel, PERF_TYPE_RAW));
tools/perf/arch/x86/tests/hybrid.c
67
TEST_ASSERT_VAL("wrong config", test_config(evsel, PERF_COUNT_HW_CPU_CYCLES));
tools/perf/arch/x86/tests/hybrid.c
68
TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader));
tools/perf/arch/x86/tests/hybrid.c
77
TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
tools/perf/arch/x86/tests/hybrid.c
78
TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
tools/perf/arch/x86/tests/hybrid.c
79
TEST_ASSERT_VAL("wrong hybrid type", test_hybrid_type(evsel, PERF_TYPE_RAW));
tools/perf/arch/x86/tests/hybrid.c
80
TEST_ASSERT_VAL("wrong config", test_config(evsel, PERF_COUNT_HW_CPU_CYCLES));
tools/perf/arch/x86/tests/hybrid.c
81
TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader));
tools/perf/arch/x86/tests/hybrid.c
84
TEST_ASSERT_VAL("wrong type", PERF_TYPE_SOFTWARE == evsel->core.attr.type);
tools/perf/arch/x86/tests/hybrid.c
85
TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader));
tools/perf/arch/x86/tests/hybrid.c
94
TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries);
tools/perf/arch/x86/tests/hybrid.c
95
TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type);
tools/perf/arch/x86/tests/hybrid.c
96
TEST_ASSERT_VAL("wrong hybrid type", test_hybrid_type(evsel, PERF_TYPE_RAW));
tools/perf/arch/x86/tests/hybrid.c
97
TEST_ASSERT_VAL("wrong config", test_config(evsel, PERF_COUNT_HW_CPU_CYCLES));
tools/perf/arch/x86/tests/hybrid.c
98
TEST_ASSERT_VAL("wrong leader", evsel__has_leader(evsel, leader));
tools/perf/arch/x86/tests/hybrid.c
99
TEST_ASSERT_VAL("wrong exclude_user", evsel->core.attr.exclude_user);
tools/perf/tests/bitmap.c
46
TEST_ASSERT_VAL("failed to convert map", test_bitmap("1"));
tools/perf/tests/bitmap.c
47
TEST_ASSERT_VAL("failed to convert map", test_bitmap("1,5"));
tools/perf/tests/bitmap.c
48
TEST_ASSERT_VAL("failed to convert map", test_bitmap("1,3,5,7,9,11,13,15,17,19,21-40"));
tools/perf/tests/bitmap.c
49
TEST_ASSERT_VAL("failed to convert map", test_bitmap("2-5"));
tools/perf/tests/bitmap.c
50
TEST_ASSERT_VAL("failed to convert map", test_bitmap("1,3-6,8-10,24,35-37"));
tools/perf/tests/bitmap.c
51
TEST_ASSERT_VAL("failed to convert map", test_bitmap("1,3-6,8-10,24,35-37"));
tools/perf/tests/bitmap.c
52
TEST_ASSERT_VAL("failed to convert map", test_bitmap("1-10,12-20,22-30,32-40"));
tools/perf/tests/bp_account.c
105
TEST_ASSERT_VAL("failed to create max wp\n", fd_wp != -1);
tools/perf/tests/bp_account.c
89
TEST_ASSERT_VAL("failed to create wp\n", fd[i] != -1);
tools/perf/tests/bp_account.c
99
TEST_ASSERT_VAL("failed to modify wp\n", ret == 0);
tools/perf/tests/cpumap.c
110
TEST_ASSERT_VAL("failed to synthesize map",
tools/perf/tests/cpumap.c
118
TEST_ASSERT_VAL("failed to synthesize map",
tools/perf/tests/cpumap.c
126
TEST_ASSERT_VAL("failed to synthesize map",
tools/perf/tests/cpumap.c
149
TEST_ASSERT_VAL("failed to convert map", cpu_map_print("1"));
tools/perf/tests/cpumap.c
150
TEST_ASSERT_VAL("failed to convert map", cpu_map_print("1,5"));
tools/perf/tests/cpumap.c
151
TEST_ASSERT_VAL("failed to convert map", cpu_map_print("1,3,5,7,9,11,13,15,17,19,21-40"));
tools/perf/tests/cpumap.c
152
TEST_ASSERT_VAL("failed to convert map", cpu_map_print("2-5"));
tools/perf/tests/cpumap.c
153
TEST_ASSERT_VAL("failed to convert map", cpu_map_print("1,3-6,8-10,24,35-37"));
tools/perf/tests/cpumap.c
154
TEST_ASSERT_VAL("failed to convert map", cpu_map_print("1,3-6,8-10,24,35-37"));
tools/perf/tests/cpumap.c
155
TEST_ASSERT_VAL("failed to convert map", cpu_map_print("1-10,12-20,22-30,32-40"));
tools/perf/tests/cpumap.c
166
TEST_ASSERT_VAL("failed to merge map: bad nr", perf_cpu_map__nr(a) == nr);
tools/perf/tests/cpumap.c
168
TEST_ASSERT_VAL("failed to merge map: bad result", !strcmp(buf, expected));
tools/perf/tests/cpumap.c
176
TEST_ASSERT_VAL("unexpected refcnt: bad result",
tools/perf/tests/cpumap.c
216
TEST_ASSERT_VAL("failed to intersect map: bad result", !strcmp(buf, expected));
tools/perf/tests/cpumap.c
259
TEST_ASSERT_VAL("equal", perf_cpu_map__equal(*maps[i], *maps[i]));
tools/perf/tests/cpumap.c
26
TEST_ASSERT_VAL("wrong type", data->type == PERF_CPU_MAP__MASK);
tools/perf/tests/cpumap.c
264
TEST_ASSERT_VAL("not equal", !perf_cpu_map__equal(*maps[i], *maps[j]));
tools/perf/tests/cpumap.c
270
TEST_ASSERT_VAL("pair", perf_cpu_map__equal(pair, two));
tools/perf/tests/cpumap.c
273
TEST_ASSERT_VAL("one", perf_cpu_map__equal(one, tmp));
tools/perf/tests/cpumap.c
30
TEST_ASSERT_VAL("wrong long_size", long_size == 4 || long_size == 8);
tools/perf/tests/cpumap.c
32
TEST_ASSERT_VAL("wrong nr", data->mask32_data.nr == 1);
tools/perf/tests/cpumap.c
34
TEST_ASSERT_VAL("wrong cpu", perf_record_cpu_map_data__test_bit(0, data));
tools/perf/tests/cpumap.c
35
TEST_ASSERT_VAL("wrong cpu", !perf_record_cpu_map_data__test_bit(1, data));
tools/perf/tests/cpumap.c
37
TEST_ASSERT_VAL("wrong cpu", perf_record_cpu_map_data__test_bit(i, data));
tools/perf/tests/cpumap.c
40
TEST_ASSERT_VAL("wrong nr", perf_cpu_map__nr(map) == 20);
tools/perf/tests/cpumap.c
42
TEST_ASSERT_VAL("wrong cpu", perf_cpu_map__cpu(map, 0).cpu == 0);
tools/perf/tests/cpumap.c
44
TEST_ASSERT_VAL("wrong cpu", perf_cpu_map__cpu(map, i - 1).cpu == i);
tools/perf/tests/cpumap.c
61
TEST_ASSERT_VAL("wrong type", data->type == PERF_CPU_MAP__CPUS);
tools/perf/tests/cpumap.c
63
TEST_ASSERT_VAL("wrong nr", data->cpus_data.nr == 2);
tools/perf/tests/cpumap.c
64
TEST_ASSERT_VAL("wrong cpu", data->cpus_data.cpu[0] == 1);
tools/perf/tests/cpumap.c
65
TEST_ASSERT_VAL("wrong cpu", data->cpus_data.cpu[1] == 256);
tools/perf/tests/cpumap.c
68
TEST_ASSERT_VAL("wrong nr", perf_cpu_map__nr(map) == 2);
tools/perf/tests/cpumap.c
69
TEST_ASSERT_VAL("wrong cpu", perf_cpu_map__cpu(map, 0).cpu == 1);
tools/perf/tests/cpumap.c
70
TEST_ASSERT_VAL("wrong cpu", perf_cpu_map__cpu(map, 1).cpu == 256);
tools/perf/tests/cpumap.c
71
TEST_ASSERT_VAL("wrong refcnt", refcount_read(perf_cpu_map__refcnt(map)) == 1);
tools/perf/tests/cpumap.c
87
TEST_ASSERT_VAL("wrong type", data->type == PERF_CPU_MAP__RANGE_CPUS);
tools/perf/tests/cpumap.c
89
TEST_ASSERT_VAL("wrong any_cpu", data->range_cpu_data.any_cpu == 0);
tools/perf/tests/cpumap.c
90
TEST_ASSERT_VAL("wrong start_cpu", data->range_cpu_data.start_cpu == 1);
tools/perf/tests/cpumap.c
91
TEST_ASSERT_VAL("wrong end_cpu", data->range_cpu_data.end_cpu == 256);
tools/perf/tests/cpumap.c
94
TEST_ASSERT_VAL("wrong nr", perf_cpu_map__nr(map) == 256);
tools/perf/tests/cpumap.c
95
TEST_ASSERT_VAL("wrong cpu", perf_cpu_map__cpu(map, 0).cpu == 1);
tools/perf/tests/cpumap.c
96
TEST_ASSERT_VAL("wrong cpu", perf_cpu_map__max(map).cpu == 256);
tools/perf/tests/cpumap.c
97
TEST_ASSERT_VAL("wrong refcnt", refcount_read(perf_cpu_map__refcnt(map)) == 1);
tools/perf/tests/dso-data.c
135
TEST_ASSERT_VAL("No test file", file);
tools/perf/tests/dso-data.c
141
TEST_ASSERT_VAL("Failed to add dso", !dsos__add(&machine.dsos, dso));
tools/perf/tests/dso-data.c
142
TEST_ASSERT_VAL("Failed to access to dso",
tools/perf/tests/dso-data.c
155
TEST_ASSERT_VAL("Wrong size", size == data->size);
tools/perf/tests/dso-data.c
156
TEST_ASSERT_VAL("Wrong data", !memcmp(buf, data->data, 10));
tools/perf/tests/dso-data.c
166
TEST_ASSERT_VAL("ENOMEM\n", buf);
tools/perf/tests/dso-data.c
174
TEST_ASSERT_VAL("Wrong size",
tools/perf/tests/dso-data.c
178
TEST_ASSERT_VAL("Wrong data",
tools/perf/tests/dso-data.c
202
TEST_ASSERT_VAL("failed to open fd directory", dir);
tools/perf/tests/dso-data.c
226
TEST_ASSERT_VAL("failed to get dso file", file);
tools/perf/tests/dso-data.c
228
TEST_ASSERT_VAL("failed to get dso", dso);
tools/perf/tests/dso-data.c
229
TEST_ASSERT_VAL("failed to add dso", !dsos__add(dsos, dso));
tools/perf/tests/dso-data.c
262
TEST_ASSERT_VAL("failed to set file limit", !set_fd_limit(limit));
tools/perf/tests/dso-data.c
266
TEST_ASSERT_VAL("failed to create dsos\n",
tools/perf/tests/dso-data.c
277
TEST_ASSERT_VAL("failed to get fd", fd > 0);
tools/perf/tests/dso-data.c
285
TEST_ASSERT_VAL("failed to read dso", n == BUFSIZE);
tools/perf/tests/dso-data.c
290
TEST_ASSERT_VAL("dsos[0] is not open", dso__data(machine.dsos.dsos[0])->fd != -1);
tools/perf/tests/dso-data.c
294
TEST_ASSERT_VAL("failed to get fd", fd > 0);
tools/perf/tests/dso-data.c
297
TEST_ASSERT_VAL("failed to close dsos[0]", dso__data(machine.dsos.dsos[0])->fd == -1);
tools/perf/tests/dso-data.c
305
TEST_ASSERT_VAL("failed leaking files", nr == nr_end);
tools/perf/tests/dso-data.c
344
TEST_ASSERT_VAL("failed to set file limit",
tools/perf/tests/dso-data.c
347
TEST_ASSERT_VAL("failed to create dsos\n",
tools/perf/tests/dso-data.c
352
TEST_ASSERT_VAL("failed to get fd", fd > 0);
tools/perf/tests/dso-data.c
356
TEST_ASSERT_VAL("failed to get fd", fd > 0);
tools/perf/tests/dso-data.c
363
TEST_ASSERT_VAL("failed to open extra fd", fd_extra > 0);
tools/perf/tests/dso-data.c
367
TEST_ASSERT_VAL("failed to get fd", fd > 0);
tools/perf/tests/dso-data.c
373
TEST_ASSERT_VAL("failed to close dso_0", dso__data(dso_0)->fd == -1);
tools/perf/tests/dso-data.c
377
TEST_ASSERT_VAL("failed to get fd", fd > 0);
tools/perf/tests/dso-data.c
383
TEST_ASSERT_VAL("failed to close dso_1", dso__data(dso_1)->fd == -1);
tools/perf/tests/dso-data.c
392
TEST_ASSERT_VAL("failed leaking files", nr == nr_end);
tools/perf/tests/event-times.c
193
TEST_ASSERT_VAL("failed to attach", !err);
tools/perf/tests/event-times.c
197
TEST_ASSERT_VAL("failed to detach", !detach(evlist));
tools/perf/tests/event_update.c
103
TEST_ASSERT_VAL("failed to synthesize attr update scale",
tools/perf/tests/event_update.c
109
TEST_ASSERT_VAL("failed to synthesize attr update name",
tools/perf/tests/event_update.c
115
TEST_ASSERT_VAL("failed to synthesize attr update cpus",
tools/perf/tests/event_update.c
22
TEST_ASSERT_VAL("wrong id", ev->id == 123);
tools/perf/tests/event_update.c
23
TEST_ASSERT_VAL("wrong id", ev->type == PERF_EVENT_UPDATE__UNIT);
tools/perf/tests/event_update.c
24
TEST_ASSERT_VAL("wrong unit", !strcmp(ev->unit, "KRAVA"));
tools/perf/tests/event_update.c
35
TEST_ASSERT_VAL("wrong id", ev->id == 123);
tools/perf/tests/event_update.c
36
TEST_ASSERT_VAL("wrong id", ev->type == PERF_EVENT_UPDATE__SCALE);
tools/perf/tests/event_update.c
37
TEST_ASSERT_VAL("wrong scale", ev->scale.scale == 0.123);
tools/perf/tests/event_update.c
54
TEST_ASSERT_VAL("wrong id", ev->id == 123);
tools/perf/tests/event_update.c
55
TEST_ASSERT_VAL("wrong id", ev->type == PERF_EVENT_UPDATE__NAME);
tools/perf/tests/event_update.c
56
TEST_ASSERT_VAL("wrong name", !strcmp(ev->name, tmp->name));
tools/perf/tests/event_update.c
70
TEST_ASSERT_VAL("wrong id", ev->id == 123);
tools/perf/tests/event_update.c
71
TEST_ASSERT_VAL("wrong type", ev->type == PERF_EVENT_UPDATE__CPUS);
tools/perf/tests/event_update.c
72
TEST_ASSERT_VAL("wrong cpus", perf_cpu_map__nr(map) == 3);
tools/perf/tests/event_update.c
73
TEST_ASSERT_VAL("wrong cpus", perf_cpu_map__cpu(map, 0).cpu == 1);
tools/perf/tests/event_update.c
74
TEST_ASSERT_VAL("wrong cpus", perf_cpu_map__cpu(map, 1).cpu == 2);
tools/perf/tests/event_update.c
75
TEST_ASSERT_VAL("wrong cpus", perf_cpu_map__cpu(map, 2).cpu == 3);
tools/perf/tests/event_update.c
86
TEST_ASSERT_VAL("failed to get evlist", evlist);
tools/perf/tests/event_update.c
90
TEST_ASSERT_VAL("failed to allocate ids",
tools/perf/tests/event_update.c
98
TEST_ASSERT_VAL("failed to synthesize attr update unit",
tools/perf/tests/expand-cgroup.c
104
TEST_ASSERT_VAL("failed to get evlist", evlist);
tools/perf/tests/expand-cgroup.c
121
TEST_ASSERT_VAL("failed to get evlist", evlist);
tools/perf/tests/expand-cgroup.c
150
TEST_ASSERT_VAL("failed to get evlist", evlist);
tools/perf/tests/expand-cgroup.c
177
TEST_ASSERT_VAL("failed to get evlist", evlist);
tools/perf/tests/expand-cgroup.c
28
TEST_ASSERT_VAL("evlist is empty", !evlist__empty(evlist));
tools/perf/tests/expr.c
126
TEST_ASSERT_VAL("division by zero", ret == 0);
tools/perf/tests/expr.c
127
TEST_ASSERT_VAL("division by zero", isnan(val));
tools/perf/tests/expr.c
131
TEST_ASSERT_VAL("missing operand", ret == -1);
tools/perf/tests/expr.c
134
TEST_ASSERT_VAL("find ids",
tools/perf/tests/expr.c
137
TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 3);
tools/perf/tests/expr.c
138
TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "BAR", &val_ptr));
tools/perf/tests/expr.c
139
TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "BAZ", &val_ptr));
tools/perf/tests/expr.c
140
TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "BOZO", &val_ptr));
tools/perf/tests/expr.c
144
TEST_ASSERT_VAL("find ids",
tools/perf/tests/expr.c
147
TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 2);
tools/perf/tests/expr.c
148
TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "EVENT1,param=3@", &val_ptr));
tools/perf/tests/expr.c
149
TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "EVENT2,param=3@", &val_ptr));
tools/perf/tests/expr.c
152
TEST_ASSERT_VAL("find ids",
tools/perf/tests/expr.c
155
TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 2);
tools/perf/tests/expr.c
156
TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "dash-event1", &val_ptr));
tools/perf/tests/expr.c
157
TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "dash-event2", &val_ptr));
tools/perf/tests/expr.c
166
TEST_ASSERT_VAL("find ids",
tools/perf/tests/expr.c
169
TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 1);
tools/perf/tests/expr.c
170
TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids,
tools/perf/tests/expr.c
175
TEST_ASSERT_VAL("find ids",
tools/perf/tests/expr.c
178
TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 1);
tools/perf/tests/expr.c
179
TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids,
tools/perf/tests/expr.c
186
TEST_ASSERT_VAL("find ids",
tools/perf/tests/expr.c
189
TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 0);
tools/perf/tests/expr.c
193
TEST_ASSERT_VAL("find ids",
tools/perf/tests/expr.c
195
TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 0);
tools/perf/tests/expr.c
197
TEST_ASSERT_VAL("find ids",
tools/perf/tests/expr.c
199
TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 0);
tools/perf/tests/expr.c
201
TEST_ASSERT_VAL("find ids",
tools/perf/tests/expr.c
203
TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 1);
tools/perf/tests/expr.c
204
TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "EVENT1", &val_ptr));
tools/perf/tests/expr.c
206
TEST_ASSERT_VAL("find ids",
tools/perf/tests/expr.c
208
TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 1);
tools/perf/tests/expr.c
209
TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "EVENT1", &val_ptr));
tools/perf/tests/expr.c
213
TEST_ASSERT_VAL("find ids",
tools/perf/tests/expr.c
215
TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 0);
tools/perf/tests/expr.c
217
TEST_ASSERT_VAL("find ids",
tools/perf/tests/expr.c
219
TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 0);
tools/perf/tests/expr.c
22
TEST_ASSERT_VAL("ids__new", ids1);
tools/perf/tests/expr.c
221
TEST_ASSERT_VAL("find ids",
tools/perf/tests/expr.c
223
TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 1);
tools/perf/tests/expr.c
224
TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "EVENT1", &val_ptr));
tools/perf/tests/expr.c
226
TEST_ASSERT_VAL("find ids",
tools/perf/tests/expr.c
228
TEST_ASSERT_VAL("find ids", hashmap__size(ctx->ids) == 1);
tools/perf/tests/expr.c
229
TEST_ASSERT_VAL("find ids", hashmap__find(ctx->ids, "EVENT1", &val_ptr));
tools/perf/tests/expr.c
233
TEST_ASSERT_VAL("#num_cpus_online",
tools/perf/tests/expr.c
235
TEST_ASSERT_VAL("#num_cpus", expr__parse(&num_cpus, ctx, "#num_cpus") == 0);
tools/perf/tests/expr.c
236
TEST_ASSERT_VAL("#num_cpus >= #num_cpus_online", num_cpus >= num_cpus_online);
tools/perf/tests/expr.c
237
TEST_ASSERT_VAL("#num_cores", expr__parse(&num_cores, ctx, "#num_cores") == 0);
tools/perf/tests/expr.c
238
TEST_ASSERT_VAL("#num_cpus >= #num_cores", num_cpus >= num_cores);
tools/perf/tests/expr.c
239
TEST_ASSERT_VAL("#num_dies", expr__parse(&num_dies, ctx, "#num_dies") == 0);
tools/perf/tests/expr.c
24
TEST_ASSERT_VAL("ids__new", ids2);
tools/perf/tests/expr.c
240
TEST_ASSERT_VAL("#num_cores >= #num_dies", num_cores >= num_dies);
tools/perf/tests/expr.c
241
TEST_ASSERT_VAL("#num_packages", expr__parse(&num_packages, ctx, "#num_packages") == 0);
tools/perf/tests/expr.c
244
TEST_ASSERT_VAL("#num_dies >= #num_packages", num_dies >= num_packages);
tools/perf/tests/expr.c
251
TEST_ASSERT_VAL("#system_tsc_freq > 0", val > 0);
tools/perf/tests/expr.c
253
TEST_ASSERT_VAL("#system_tsc_freq == 0", fpclassify(val) == FP_ZERO);
tools/perf/tests/expr.c
256
TEST_ASSERT_VAL("#system_tsc_freq unsupported", 0);
tools/perf/tests/expr.c
264
TEST_ASSERT_VAL("source count",
tools/perf/tests/expr.c
267
TEST_ASSERT_VAL("source count", hashmap__size(ctx->ids) == 1);
tools/perf/tests/expr.c
268
TEST_ASSERT_VAL("source count", hashmap__find(ctx->ids, "EVENT1", &val_ptr));
tools/perf/tests/expr.c
31
TEST_ASSERT_VAL("ids__new", ids2);
tools/perf/tests/expr.c
41
TEST_ASSERT_VAL("ids__new", ids2);
tools/perf/tests/expr.c
49
TEST_ASSERT_VAL("ids__new", ids2);
tools/perf/tests/expr.c
66
TEST_ASSERT_VAL("parse test failed", 0);
tools/perf/tests/expr.c
67
TEST_ASSERT_VAL("unexpected value", val == val2);
tools/perf/tests/expr.c
83
TEST_ASSERT_VAL("get_cpuid", cpuid);
tools/perf/tests/expr.c
88
TEST_ASSERT_VAL("expr__ctx_new", ctx);
tools/perf/tests/hists_cumulate.c
221
TEST_ASSERT_VAL("Incorrect number of hist entry",
tools/perf/tests/hists_cumulate.c
223
TEST_ASSERT_VAL(buf, he->stat.period == expected[i].self &&
tools/perf/tests/hists_cumulate.c
229
TEST_ASSERT_VAL(buf, he->stat_acc->period == expected[i].children);
tools/perf/tests/hists_cumulate.c
237
TEST_ASSERT_VAL("callchains expected", !RB_EMPTY_ROOT(root));
tools/perf/tests/hists_cumulate.c
244
TEST_ASSERT_VAL("Incorrect number of callchain entry",
tools/perf/tests/hists_cumulate.c
246
TEST_ASSERT_VAL(buf,
tools/perf/tests/hists_cumulate.c
252
TEST_ASSERT_VAL("Incorrect number of callchain entry",
tools/perf/tests/hists_cumulate.c
255
TEST_ASSERT_VAL("Incorrect number of hist entry",
tools/perf/tests/hists_cumulate.c
257
TEST_ASSERT_VAL("Incorrect number of callchain entry",
tools/perf/tests/hists_cumulate.c
720
TEST_ASSERT_VAL("No memory", evlist);
tools/perf/tests/hists_filter.c
124
TEST_ASSERT_VAL("No memory", evlist);
tools/perf/tests/hists_filter.c
164
TEST_ASSERT_VAL("Invalid nr samples",
tools/perf/tests/hists_filter.c
166
TEST_ASSERT_VAL("Invalid nr hist entries",
tools/perf/tests/hists_filter.c
168
TEST_ASSERT_VAL("Invalid total period",
tools/perf/tests/hists_filter.c
170
TEST_ASSERT_VAL("Unmatched nr samples",
tools/perf/tests/hists_filter.c
173
TEST_ASSERT_VAL("Unmatched nr hist entries",
tools/perf/tests/hists_filter.c
175
TEST_ASSERT_VAL("Unmatched total period",
tools/perf/tests/hists_filter.c
189
TEST_ASSERT_VAL("Invalid nr samples",
tools/perf/tests/hists_filter.c
191
TEST_ASSERT_VAL("Invalid nr hist entries",
tools/perf/tests/hists_filter.c
193
TEST_ASSERT_VAL("Invalid total period",
tools/perf/tests/hists_filter.c
197
TEST_ASSERT_VAL("Unmatched nr samples for thread filter",
tools/perf/tests/hists_filter.c
199
TEST_ASSERT_VAL("Unmatched nr hist entries for thread filter",
tools/perf/tests/hists_filter.c
201
TEST_ASSERT_VAL("Unmatched total period for thread filter",
tools/perf/tests/hists_filter.c
218
TEST_ASSERT_VAL("Invalid nr samples",
tools/perf/tests/hists_filter.c
220
TEST_ASSERT_VAL("Invalid nr hist entries",
tools/perf/tests/hists_filter.c
222
TEST_ASSERT_VAL("Invalid total period",
tools/perf/tests/hists_filter.c
226
TEST_ASSERT_VAL("Unmatched nr samples for dso filter",
tools/perf/tests/hists_filter.c
228
TEST_ASSERT_VAL("Unmatched nr hist entries for dso filter",
tools/perf/tests/hists_filter.c
230
TEST_ASSERT_VAL("Unmatched total period for dso filter",
tools/perf/tests/hists_filter.c
253
TEST_ASSERT_VAL("Invalid nr samples",
tools/perf/tests/hists_filter.c
255
TEST_ASSERT_VAL("Invalid nr hist entries",
tools/perf/tests/hists_filter.c
257
TEST_ASSERT_VAL("Invalid total period",
tools/perf/tests/hists_filter.c
261
TEST_ASSERT_VAL("Unmatched nr samples for symbol filter",
tools/perf/tests/hists_filter.c
263
TEST_ASSERT_VAL("Unmatched nr hist entries for symbol filter",
tools/perf/tests/hists_filter.c
265
TEST_ASSERT_VAL("Unmatched total period for symbol filter",
tools/perf/tests/hists_filter.c
282
TEST_ASSERT_VAL("Invalid nr samples",
tools/perf/tests/hists_filter.c
284
TEST_ASSERT_VAL("Invalid nr hist entries",
tools/perf/tests/hists_filter.c
286
TEST_ASSERT_VAL("Invalid total period",
tools/perf/tests/hists_filter.c
290
TEST_ASSERT_VAL("Unmatched nr samples for socket filter",
tools/perf/tests/hists_filter.c
292
TEST_ASSERT_VAL("Unmatched nr hist entries for socket filter",
tools/perf/tests/hists_filter.c
294
TEST_ASSERT_VAL("Unmatched total period for socket filter",
tools/perf/tests/hists_filter.c
313
TEST_ASSERT_VAL("Invalid nr samples",
tools/perf/tests/hists_filter.c
315
TEST_ASSERT_VAL("Invalid nr hist entries",
tools/perf/tests/hists_filter.c
317
TEST_ASSERT_VAL("Invalid total period",
tools/perf/tests/hists_filter.c
321
TEST_ASSERT_VAL("Unmatched nr samples for all filter",
tools/perf/tests/hists_filter.c
323
TEST_ASSERT_VAL("Unmatched nr hist entries for all filter",
tools/perf/tests/hists_filter.c
325
TEST_ASSERT_VAL("Unmatched total period for all filter",
tools/perf/tests/hists_output.c
181
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
187
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
193
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
199
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
205
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
211
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
217
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
223
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
229
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
281
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
286
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
335
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
341
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
347
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
353
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
359
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
413
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
419
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
425
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
431
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
437
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
443
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
449
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
455
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
461
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
517
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
524
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
531
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
538
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
545
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
552
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
559
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
566
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
573
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
580
TEST_ASSERT_VAL("Invalid hist entry",
tools/perf/tests/hists_output.c
607
TEST_ASSERT_VAL("No memory", evlist);
tools/perf/tests/kmod-path.c
17
TEST_ASSERT_VAL("kmod_path__parse",
tools/perf/tests/kmod-path.c
23
TEST_ASSERT_VAL("wrong kmod", m.kmod == kmod);
tools/perf/tests/kmod-path.c
24
TEST_ASSERT_VAL("wrong comp", m.comp == comp);
tools/perf/tests/kmod-path.c
27
TEST_ASSERT_VAL("wrong name", m.name && !strcmp(name, m.name));
tools/perf/tests/kmod-path.c
29
TEST_ASSERT_VAL("wrong name", !m.name);
tools/perf/tests/kmod-path.c
37
TEST_ASSERT_VAL("is_kernel_module",
tools/perf/tests/kmod-path.c
45
TEST_ASSERT_VAL("failed", !test(path, an, k, c, n))
tools/perf/tests/kmod-path.c
48
TEST_ASSERT_VAL("failed", !test_is_kernel_module(path, c, e))
tools/perf/tests/maps.c
105
TEST_ASSERT_VAL("failed to create maps", maps);
tools/perf/tests/maps.c
111
TEST_ASSERT_VAL("failed to create map", map);
tools/perf/tests/maps.c
115
TEST_ASSERT_VAL("failed to insert map", maps__insert(maps, map) == 0);
tools/perf/tests/maps.c
120
TEST_ASSERT_VAL("failed to create map", map_kcore1);
tools/perf/tests/maps.c
123
TEST_ASSERT_VAL("failed to create map", map_kcore2);
tools/perf/tests/maps.c
126
TEST_ASSERT_VAL("failed to create map", map_kcore3);
tools/perf/tests/maps.c
141
TEST_ASSERT_VAL("failed to merge map", !ret);
tools/perf/tests/maps.c
144
TEST_ASSERT_VAL("merge check failed", !ret);
tools/perf/tests/maps.c
147
TEST_ASSERT_VAL("failed to merge map", !ret);
tools/perf/tests/maps.c
150
TEST_ASSERT_VAL("merge check failed", !ret);
tools/perf/tests/maps.c
153
TEST_ASSERT_VAL("failed to merge map", !ret);
tools/perf/tests/maps.c
156
TEST_ASSERT_VAL("merge check failed", !ret);
tools/perf/tests/maps.c
194
TEST_ASSERT_VAL("failed to create maps", maps);
tools/perf/tests/maps.c
199
TEST_ASSERT_VAL("failed to create map", map);
tools/perf/tests/maps.c
202
TEST_ASSERT_VAL("failed to insert map", maps__insert(maps, map) == 0);
tools/perf/tests/maps.c
208
TEST_ASSERT_VAL("failed to create split map", map_split);
tools/perf/tests/maps.c
213
TEST_ASSERT_VAL("failed to fixup and insert split map", !ret);
tools/perf/tests/maps.c
217
TEST_ASSERT_VAL("split check failed", !ret);
tools/perf/tests/maps.c
221
TEST_ASSERT_VAL("failed to create eclipse map", map_eclipse);
tools/perf/tests/maps.c
226
TEST_ASSERT_VAL("failed to fixup and insert eclipse map", !ret);
tools/perf/tests/maps.c
230
TEST_ASSERT_VAL("eclipse check failed", !ret);
tools/perf/tests/mem.c
19
TEST_ASSERT_VAL("Memory allocation failed", mi);
tools/perf/tests/mem.c
25
TEST_ASSERT_VAL(failure, !strcmp(string, out));
tools/perf/tests/mem2node.c
22
#define T TEST_ASSERT_VAL
tools/perf/tests/mmap-thread-lookup.c
170
TEST_ASSERT_VAL("failed to create threads", !threads_create());
tools/perf/tests/mmap-thread-lookup.c
181
TEST_ASSERT_VAL("failed to destroy threads", !threads_destroy());
tools/perf/tests/mmap-thread-lookup.c
182
TEST_ASSERT_VAL("failed to synthesize maps", !err);
tools/perf/tests/mmap-thread-lookup.c
236
TEST_ASSERT_VAL("failed with synthesizing all",
tools/perf/tests/mmap-thread-lookup.c
240
TEST_ASSERT_VAL("failed with synthesizing process",
tools/perf/tests/parse-events.c
177
TEST_ASSERT_VAL("Raw PMU not matched", raw_type_match);
tools/perf/tests/parse-events.c
1801
TEST_ASSERT_VAL("wrong number of entries", 2 * perf_pmus__num_core_pmus() == evlist->core.nr_entries);
tools/perf/tests/parse-events.c
1808
TEST_ASSERT_VAL("wrong config2", 0 == evsel->core.attr.config2);
tools/perf/tests/parse-events.c
1809
TEST_ASSERT_VAL("wrong leader", evsel__is_group_leader(evsel));
tools/perf/tests/parse-events.c
1810
TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 2);
tools/perf/tests/parse-events.c
1811
TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 0);
tools/perf/tests/parse-events.c
1816
TEST_ASSERT_VAL("wrong config2", 0 == evsel->core.attr.config2);
tools/perf/tests/parse-events.c
1817
TEST_ASSERT_VAL("wrong leader", !evsel__is_group_leader(evsel));
tools/perf/tests/parse-events.c
1818
TEST_ASSERT_VAL("wrong core.nr_members", evsel->core.nr_members == 0);
tools/perf/tests/parse-events.c
1819
TEST_ASSERT_VAL("wrong group_idx", evsel__group_idx(evsel) == 1);
tools/perf/tests/parse-events.c
1828
TEST_ASSERT_VAL("wrong period", 0 == evsel->core.attr.sample_period);
tools/perf/tests/parse-events.c
1913
TEST_ASSERT_VAL("Can't open events dir", events_dir);
tools/perf/tests/parse-events.c
1928
TEST_ASSERT_VAL("Can't get sys path", sys_path);
tools/perf/tests/parse-events.c
1931
TEST_ASSERT_VAL("Can't open sys dir", sys_dir);
tools/perf/tests/parse-events.c
1953
TEST_ASSERT_VAL("wrong events count",
tools/perf/tests/parse-events.c
820
TEST_ASSERT_VAL("wrong type term",
tools/perf/tests/parse-events.c
822
TEST_ASSERT_VAL("wrong type val",
tools/perf/tests/parse-events.c
824
TEST_ASSERT_VAL("wrong val", term->val.num == 10);
tools/perf/tests/parse-events.c
825
TEST_ASSERT_VAL("wrong config", !strcmp(term->config, "config"));
tools/perf/tests/parse-events.c
829
TEST_ASSERT_VAL("wrong type term",
tools/perf/tests/parse-events.c
831
TEST_ASSERT_VAL("wrong type val",
tools/perf/tests/parse-events.c
833
TEST_ASSERT_VAL("wrong val", term->val.num == 1);
tools/perf/tests/parse-events.c
834
TEST_ASSERT_VAL("wrong config", !strcmp(term->config, "config1"));
tools/perf/tests/parse-events.c
838
TEST_ASSERT_VAL("wrong type term",
tools/perf/tests/parse-events.c
840
TEST_ASSERT_VAL("wrong type val",
tools/perf/tests/parse-events.c
842
TEST_ASSERT_VAL("wrong val", term->val.num == 3);
tools/perf/tests/parse-events.c
843
TEST_ASSERT_VAL("wrong config", !strcmp(term->config, "config2"));
tools/perf/tests/parse-events.c
847
TEST_ASSERT_VAL("wrong type term",
tools/perf/tests/parse-events.c
849
TEST_ASSERT_VAL("wrong type val",
tools/perf/tests/parse-events.c
851
TEST_ASSERT_VAL("wrong val", term->val.num == 4);
tools/perf/tests/parse-events.c
852
TEST_ASSERT_VAL("wrong config", !strcmp(term->config, "config3"));
tools/perf/tests/parse-events.c
856
TEST_ASSERT_VAL("wrong type term",
tools/perf/tests/parse-events.c
858
TEST_ASSERT_VAL("wrong type val",
tools/perf/tests/parse-events.c
860
TEST_ASSERT_VAL("wrong val", term->val.num == 5);
tools/perf/tests/parse-events.c
861
TEST_ASSERT_VAL("wrong config", !strcmp(term->config, "config4"));
tools/perf/tests/parse-events.c
865
TEST_ASSERT_VAL("wrong type term",
tools/perf/tests/parse-events.c
867
TEST_ASSERT_VAL("wrong type val",
tools/perf/tests/parse-events.c
869
TEST_ASSERT_VAL("wrong val", term->val.num == 1);
tools/perf/tests/parse-events.c
870
TEST_ASSERT_VAL("wrong config", !strcmp(term->config, "umask"));
tools/perf/tests/parse-events.c
880
TEST_ASSERT_VAL("wrong type term",
tools/perf/tests/parse-events.c
882
TEST_ASSERT_VAL("wrong type val",
tools/perf/tests/parse-events.c
884
TEST_ASSERT_VAL("wrong val", !strcmp(term->val.str, "read"));
tools/perf/tests/parse-events.c
885
TEST_ASSERT_VAL("wrong config", !strcmp(term->config, "raw"));
tools/perf/tests/parse-events.c
894
TEST_ASSERT_VAL("wrong type term",
tools/perf/tests/parse-events.c
896
TEST_ASSERT_VAL("wrong type val",
tools/perf/tests/parse-events.c
898
TEST_ASSERT_VAL("wrong val", !strcmp(term->val.str, "r0xead"));
tools/perf/tests/parse-events.c
899
TEST_ASSERT_VAL("wrong config", !strcmp(term->config, "raw"));
tools/perf/tests/parse-metric.c
141
TEST_ASSERT_VAL("failed to compute metric",
tools/perf/tests/parse-metric.c
144
TEST_ASSERT_VAL("IPC failed, wrong ratio",
tools/perf/tests/parse-metric.c
160
TEST_ASSERT_VAL("failed to compute metric",
tools/perf/tests/parse-metric.c
163
TEST_ASSERT_VAL("Frontend_Bound_SMT failed, wrong ratio",
tools/perf/tests/parse-metric.c
178
TEST_ASSERT_VAL("failed to compute metric",
tools/perf/tests/parse-metric.c
181
TEST_ASSERT_VAL("cache_miss_cycles failed, wrong ratio",
tools/perf/tests/parse-metric.c
221
TEST_ASSERT_VAL("failed to compute metric",
tools/perf/tests/parse-metric.c
224
TEST_ASSERT_VAL("DCache_L2_Hits failed, wrong ratio",
tools/perf/tests/parse-metric.c
227
TEST_ASSERT_VAL("failed to compute metric",
tools/perf/tests/parse-metric.c
230
TEST_ASSERT_VAL("DCache_L2_Misses failed, wrong ratio",
tools/perf/tests/parse-metric.c
244
TEST_ASSERT_VAL("failed to find recursion",
tools/perf/tests/parse-metric.c
247
TEST_ASSERT_VAL("failed to find recursion",
tools/perf/tests/parse-metric.c
261
TEST_ASSERT_VAL("failed to compute metric",
tools/perf/tests/parse-metric.c
263
TEST_ASSERT_VAL("L1D_Cache_Fill_BW, wrong ratio",
tools/perf/tests/parse-metric.c
280
TEST_ASSERT_VAL("failed to find recursion",
tools/perf/tests/parse-metric.c
285
TEST_ASSERT_VAL("group IPC failed, wrong ratio",
tools/perf/tests/parse-metric.c
288
TEST_ASSERT_VAL("group cache_miss_cycles failed, wrong ratio",
tools/perf/tests/parse-metric.c
295
TEST_ASSERT_VAL("IPC failed", test_ipc() == 0);
tools/perf/tests/parse-metric.c
296
TEST_ASSERT_VAL("frontend failed", test_frontend() == 0);
tools/perf/tests/parse-metric.c
297
TEST_ASSERT_VAL("DCache_L2 failed", test_dcache_l2() == 0);
tools/perf/tests/parse-metric.c
298
TEST_ASSERT_VAL("recursion fail failed", test_recursion_fail() == 0);
tools/perf/tests/parse-metric.c
299
TEST_ASSERT_VAL("Memory bandwidth", test_memory_bandwidth() == 0);
tools/perf/tests/parse-metric.c
300
TEST_ASSERT_VAL("cache_miss_cycles failed", test_cache_miss_cycles() == 0);
tools/perf/tests/parse-metric.c
301
TEST_ASSERT_VAL("test metric group", test_metric_group() == 0);
tools/perf/tests/pe-file-parsing.c
41
TEST_ASSERT_VAL("Failed to read build_id",
tools/perf/tests/pe-file-parsing.c
43
TEST_ASSERT_VAL("Wrong build_id", !memcmp(bid.data, expect_build_id,
tools/perf/tests/pe-file-parsing.c
47
TEST_ASSERT_VAL("Failed to read debuglink", ret == 0);
tools/perf/tests/pe-file-parsing.c
48
TEST_ASSERT_VAL("Wrong debuglink",
tools/perf/tests/pe-file-parsing.c
53
TEST_ASSERT_VAL("Failed to read debug file build_id",
tools/perf/tests/pe-file-parsing.c
55
TEST_ASSERT_VAL("Wrong build_id", !memcmp(bid.data, expect_build_id,
tools/perf/tests/pe-file-parsing.c
59
TEST_ASSERT_VAL("Failed to get dso", dso);
tools/perf/tests/pe-file-parsing.c
62
TEST_ASSERT_VAL("Failed to load symbols", ret == 0);
tools/perf/tests/pe-file-parsing.c
66
TEST_ASSERT_VAL("Failed to find main", sym);
tools/perf/tests/pmu.c
503
TEST_ASSERT_VAL("cpu", pmu_name_len_no_suffix("cpu") == strlen("cpu"));
tools/perf/tests/pmu.c
504
TEST_ASSERT_VAL("i915", pmu_name_len_no_suffix("i915") == strlen("i915"));
tools/perf/tests/pmu.c
505
TEST_ASSERT_VAL("cpum_cf", pmu_name_len_no_suffix("cpum_cf") == strlen("cpum_cf"));
tools/perf/tests/pmu.c
507
TEST_ASSERT_VAL("Strips uncore_cha suffix",
tools/perf/tests/pmu.c
512
TEST_ASSERT_VAL("Strips mrvl_ddr_pmu suffix",
tools/perf/tests/pmu.c
524
TEST_ASSERT_VAL("i915", pmu_name_cmp("cpu", "i915") < 0);
tools/perf/tests/pmu.c
525
TEST_ASSERT_VAL("i915", pmu_name_cmp("i915", "cpu") > 0);
tools/perf/tests/pmu.c
526
TEST_ASSERT_VAL("cpum_cf", pmu_name_cmp("cpum_cf", "cpum_ce") > 0);
tools/perf/tests/pmu.c
527
TEST_ASSERT_VAL("cpum_cf", pmu_name_cmp("cpum_cf", "cpum_d0") < 0);
tools/perf/tests/pmu.c
529
TEST_ASSERT_VAL("uncore_cha suffixes ordered lt",
tools/perf/tests/pmu.c
531
TEST_ASSERT_VAL("uncore_cha suffixes ordered gt",
tools/perf/tests/pmu.c
535
TEST_ASSERT_VAL("mrvl_ddr_pmu suffixes ordered lt",
tools/perf/tests/pmu.c
537
TEST_ASSERT_VAL("mrvl_ddr_pmu suffixes ordered gt",
tools/perf/tests/sigtrap.c
208
TEST_ASSERT_VAL("unexpected si_addr", ctx.first_siginfo.si_addr == &ctx.iterate_on);
tools/perf/tests/stat.c
105
TEST_ASSERT_VAL("wrong time", stat_round->time == 0xdeadbeef);
tools/perf/tests/stat.c
106
TEST_ASSERT_VAL("wrong type", stat_round->type == PERF_STAT_ROUND_TYPE__INTERVAL);
tools/perf/tests/stat.c
112
TEST_ASSERT_VAL("failed to synthesize stat_config",
tools/perf/tests/stat.c
35
TEST_ASSERT_VAL("wrong nr", config->nr == PERF_STAT_CONFIG_TERM__MAX);
tools/perf/tests/stat.c
36
TEST_ASSERT_VAL("wrong aggr_mode", HAS(AGGR_MODE, AGGR_CORE));
tools/perf/tests/stat.c
37
TEST_ASSERT_VAL("wrong scale", HAS(SCALE, 1));
tools/perf/tests/stat.c
38
TEST_ASSERT_VAL("wrong interval", HAS(INTERVAL, 1));
tools/perf/tests/stat.c
44
TEST_ASSERT_VAL("wrong aggr_mode", test_stat_config.aggr_mode == AGGR_CORE);
tools/perf/tests/stat.c
45
TEST_ASSERT_VAL("wrong scale", test_stat_config.scale == 1);
tools/perf/tests/stat.c
46
TEST_ASSERT_VAL("wrong interval", test_stat_config.interval == 1);
tools/perf/tests/stat.c
59
TEST_ASSERT_VAL("failed to synthesize stat_config",
tools/perf/tests/stat.c
74
TEST_ASSERT_VAL("wrong cpu", st->cpu == 1);
tools/perf/tests/stat.c
75
TEST_ASSERT_VAL("wrong thread", st->thread == 2);
tools/perf/tests/stat.c
76
TEST_ASSERT_VAL("wrong id", st->id == 3);
tools/perf/tests/stat.c
77
TEST_ASSERT_VAL("wrong val", st->val == 100);
tools/perf/tests/stat.c
78
TEST_ASSERT_VAL("wrong run", st->ena == 200);
tools/perf/tests/stat.c
79
TEST_ASSERT_VAL("wrong ena", st->run == 300);
tools/perf/tests/stat.c
91
TEST_ASSERT_VAL("failed to synthesize stat_config",
tools/perf/tests/subcmd-help.c
107
TEST_ASSERT_VAL("invalid original size", cmds1.cnt == 1);
tools/perf/tests/subcmd-help.c
108
TEST_ASSERT_VAL("invalid original size", cmds2.cnt == 1);
tools/perf/tests/subcmd-help.c
112
TEST_ASSERT_VAL("invalid excluded size", cmds1.cnt == 1);
tools/perf/tests/subcmd-help.c
113
TEST_ASSERT_VAL("invalid excluded size", cmds2.cnt == 1);
tools/perf/tests/subcmd-help.c
115
TEST_ASSERT_VAL("cannot find cmd", is_in_cmdlist(&cmds1, "read-vdso32") == 1);
tools/perf/tests/subcmd-help.c
116
TEST_ASSERT_VAL("wrong cmd", is_in_cmdlist(&cmds1, "archive") == 0);
tools/perf/tests/subcmd-help.c
15
TEST_ASSERT_VAL("cannot find cmd", is_in_cmdlist(&cmds, "aaa") == 1);
tools/perf/tests/subcmd-help.c
16
TEST_ASSERT_VAL("wrong cmd", is_in_cmdlist(&cmds, "bar") == 0);
tools/perf/tests/subcmd-help.c
17
TEST_ASSERT_VAL("case sensitive", is_in_cmdlist(&cmds, "XYZ") == 0);
tools/perf/tests/subcmd-help.c
33
TEST_ASSERT_VAL("invalid original size", cmds.cnt == 3);
tools/perf/tests/subcmd-help.c
36
TEST_ASSERT_VAL("invalid final size", cmds.cnt == 2);
tools/perf/tests/subcmd-help.c
38
TEST_ASSERT_VAL("cannot find cmd", is_in_cmdlist(&cmds, "aaa") == 1);
tools/perf/tests/subcmd-help.c
39
TEST_ASSERT_VAL("cannot find cmd", is_in_cmdlist(&cmds, "bbb") == 1);
tools/perf/tests/subcmd-help.c
40
TEST_ASSERT_VAL("wrong cmd", is_in_cmdlist(&cmds, "ccc") == 0);
tools/perf/tests/subcmd-help.c
67
TEST_ASSERT_VAL("invalid original size", cmds1.cnt == 10);
tools/perf/tests/subcmd-help.c
68
TEST_ASSERT_VAL("invalid original size", cmds2.cnt == 3);
tools/perf/tests/subcmd-help.c
73
TEST_ASSERT_VAL("invalid excluded size", cmds1.cnt == 7);
tools/perf/tests/subcmd-help.c
74
TEST_ASSERT_VAL("invalid excluded size", cmds2.cnt == 3);
tools/perf/tests/subcmd-help.c
77
TEST_ASSERT_VAL("cannot find cmd", is_in_cmdlist(&cmds1, "aaa") == 1);
tools/perf/tests/subcmd-help.c
78
TEST_ASSERT_VAL("wrong cmd", is_in_cmdlist(&cmds1, "bbb") == 0);
tools/perf/tests/subcmd-help.c
79
TEST_ASSERT_VAL("cannot find cmd", is_in_cmdlist(&cmds1, "ccc") == 1);
tools/perf/tests/subcmd-help.c
80
TEST_ASSERT_VAL("cannot find cmd", is_in_cmdlist(&cmds1, "ddd") == 1);
tools/perf/tests/subcmd-help.c
81
TEST_ASSERT_VAL("wrong cmd", is_in_cmdlist(&cmds1, "eee") == 0);
tools/perf/tests/subcmd-help.c
82
TEST_ASSERT_VAL("cannot find cmd", is_in_cmdlist(&cmds1, "fff") == 1);
tools/perf/tests/subcmd-help.c
83
TEST_ASSERT_VAL("cannot find cmd", is_in_cmdlist(&cmds1, "ggg") == 1);
tools/perf/tests/subcmd-help.c
84
TEST_ASSERT_VAL("cannot find cmd", is_in_cmdlist(&cmds1, "hhh") == 1);
tools/perf/tests/subcmd-help.c
85
TEST_ASSERT_VAL("cannot find cmd", is_in_cmdlist(&cmds1, "iii") == 1);
tools/perf/tests/subcmd-help.c
86
TEST_ASSERT_VAL("wrong cmd", is_in_cmdlist(&cmds1, "jjj") == 0);
tools/perf/tests/subcmd-help.c
89
TEST_ASSERT_VAL("cannot find cmd", is_in_cmdlist(&cmds2, "bbb") == 1);
tools/perf/tests/subcmd-help.c
90
TEST_ASSERT_VAL("cannot find cmd", is_in_cmdlist(&cmds2, "eee") == 1);
tools/perf/tests/subcmd-help.c
91
TEST_ASSERT_VAL("cannot find cmd", is_in_cmdlist(&cmds2, "jjj") == 1);
tools/perf/tests/thread-map.c
103
TEST_ASSERT_VAL("failed to synthesize map",
tools/perf/tests/thread-map.c
115
TEST_ASSERT_VAL("failed to allocate map string",
tools/perf/tests/thread-map.c
121
TEST_ASSERT_VAL("failed to allocate thread_map",
tools/perf/tests/thread-map.c
127
TEST_ASSERT_VAL("failed to remove thread",
tools/perf/tests/thread-map.c
130
TEST_ASSERT_VAL("thread_map count != 1", threads->nr == 1);
tools/perf/tests/thread-map.c
135
TEST_ASSERT_VAL("failed to remove thread",
tools/perf/tests/thread-map.c
138
TEST_ASSERT_VAL("thread_map count != 0", threads->nr == 0);
tools/perf/tests/thread-map.c
143
TEST_ASSERT_VAL("failed to not remove thread",
tools/perf/tests/thread-map.c
27
TEST_ASSERT_VAL("failed to set process name",
tools/perf/tests/thread-map.c
32
TEST_ASSERT_VAL("failed to alloc map", map);
tools/perf/tests/thread-map.c
36
TEST_ASSERT_VAL("wrong nr", map->nr == 1);
tools/perf/tests/thread-map.c
37
TEST_ASSERT_VAL("wrong pid",
tools/perf/tests/thread-map.c
39
TEST_ASSERT_VAL("wrong comm",
tools/perf/tests/thread-map.c
42
TEST_ASSERT_VAL("wrong refcnt",
tools/perf/tests/thread-map.c
48
TEST_ASSERT_VAL("failed to alloc map", map);
tools/perf/tests/thread-map.c
52
TEST_ASSERT_VAL("wrong nr", map->nr == 1);
tools/perf/tests/thread-map.c
53
TEST_ASSERT_VAL("wrong pid", perf_thread_map__pid(map, 0) == -1);
tools/perf/tests/thread-map.c
54
TEST_ASSERT_VAL("wrong comm",
tools/perf/tests/thread-map.c
57
TEST_ASSERT_VAL("wrong refcnt",
tools/perf/tests/thread-map.c
71
TEST_ASSERT_VAL("wrong nr", map->nr == 1);
tools/perf/tests/thread-map.c
72
TEST_ASSERT_VAL("wrong pid", map->entries[0].pid == (u64) getpid());
tools/perf/tests/thread-map.c
73
TEST_ASSERT_VAL("wrong comm", !strcmp(map->entries[0].comm, NAME));
tools/perf/tests/thread-map.c
76
TEST_ASSERT_VAL("failed to alloc map", threads);
tools/perf/tests/thread-map.c
78
TEST_ASSERT_VAL("wrong nr", threads->nr == 1);
tools/perf/tests/thread-map.c
79
TEST_ASSERT_VAL("wrong pid",
tools/perf/tests/thread-map.c
81
TEST_ASSERT_VAL("wrong comm",
tools/perf/tests/thread-map.c
84
TEST_ASSERT_VAL("wrong refcnt",
tools/perf/tests/thread-map.c
94
TEST_ASSERT_VAL("failed to set process name",
tools/perf/tests/thread-map.c
99
TEST_ASSERT_VAL("failed to alloc map", threads);
tools/perf/tests/thread-maps-share.c
42
TEST_ASSERT_VAL("failed to create threads",
tools/perf/tests/thread-maps-share.c
49
TEST_ASSERT_VAL("maps don't match", maps__equal(maps, thread__maps(t1)));
tools/perf/tests/thread-maps-share.c
50
TEST_ASSERT_VAL("maps don't match", maps__equal(maps, thread__maps(t2)));
tools/perf/tests/thread-maps-share.c
51
TEST_ASSERT_VAL("maps don't match", maps__equal(maps, thread__maps(t3)));
tools/perf/tests/thread-maps-share.c
59
TEST_ASSERT_VAL("failed to find other leader", other_leader);
tools/perf/tests/thread-maps-share.c
76
TEST_ASSERT_VAL("maps don't match", maps__equal(other_maps, thread__maps(other_leader)));
tools/perf/tests/topology.c
115
TEST_ASSERT_VAL("Session header CPU map not set", env->cpu);
tools/perf/tests/topology.c
129
TEST_ASSERT_VAL("Cpu map - CPU ID doesn't match",
tools/perf/tests/topology.c
132
TEST_ASSERT_VAL("Cpu map - Core ID doesn't match",
tools/perf/tests/topology.c
134
TEST_ASSERT_VAL("Cpu map - Socket ID doesn't match",
tools/perf/tests/topology.c
137
TEST_ASSERT_VAL("Cpu map - Die ID doesn't match",
tools/perf/tests/topology.c
139
TEST_ASSERT_VAL("Cpu map - Node ID is set", id.node == -1);
tools/perf/tests/topology.c
140
TEST_ASSERT_VAL("Cpu map - Thread IDX is set", id.thread_idx == -1);
tools/perf/tests/topology.c
146
TEST_ASSERT_VAL("Core map - Core ID doesn't match",
tools/perf/tests/topology.c
149
TEST_ASSERT_VAL("Core map - Socket ID doesn't match",
tools/perf/tests/topology.c
152
TEST_ASSERT_VAL("Core map - Die ID doesn't match",
tools/perf/tests/topology.c
154
TEST_ASSERT_VAL("Core map - Node ID is set", id.node == -1);
tools/perf/tests/topology.c
155
TEST_ASSERT_VAL("Core map - Thread IDX is set", id.thread_idx == -1);
tools/perf/tests/topology.c
161
TEST_ASSERT_VAL("Die map - Socket ID doesn't match",
tools/perf/tests/topology.c
164
TEST_ASSERT_VAL("Die map - Die ID doesn't match",
tools/perf/tests/topology.c
167
TEST_ASSERT_VAL("Die map - Node ID is set", id.node == -1);
tools/perf/tests/topology.c
168
TEST_ASSERT_VAL("Die map - Core is set", id.core == -1);
tools/perf/tests/topology.c
169
TEST_ASSERT_VAL("Die map - CPU is set", id.cpu.cpu == -1);
tools/perf/tests/topology.c
170
TEST_ASSERT_VAL("Die map - Thread IDX is set", id.thread_idx == -1);
tools/perf/tests/topology.c
176
TEST_ASSERT_VAL("Socket map - Socket ID doesn't match",
tools/perf/tests/topology.c
179
TEST_ASSERT_VAL("Socket map - Node ID is set", id.node == -1);
tools/perf/tests/topology.c
180
TEST_ASSERT_VAL("Socket map - Die ID is set", id.die == -1);
tools/perf/tests/topology.c
181
TEST_ASSERT_VAL("Socket map - Core is set", id.core == -1);
tools/perf/tests/topology.c
182
TEST_ASSERT_VAL("Socket map - CPU is set", id.cpu.cpu == -1);
tools/perf/tests/topology.c
183
TEST_ASSERT_VAL("Socket map - Thread IDX is set", id.thread_idx == -1);
tools/perf/tests/topology.c
189
TEST_ASSERT_VAL("Node map - Node ID doesn't match",
tools/perf/tests/topology.c
191
TEST_ASSERT_VAL("Node map - Socket is set", id.socket == -1);
tools/perf/tests/topology.c
192
TEST_ASSERT_VAL("Node map - Die ID is set", id.die == -1);
tools/perf/tests/topology.c
193
TEST_ASSERT_VAL("Node map - Core is set", id.core == -1);
tools/perf/tests/topology.c
194
TEST_ASSERT_VAL("Node map - CPU is set", id.cpu.cpu == -1);
tools/perf/tests/topology.c
195
TEST_ASSERT_VAL("Node map - Thread IDX is set", id.thread_idx == -1);
tools/perf/tests/topology.c
208
TEST_ASSERT_VAL("can't get templ file", !get_temp(path));
tools/perf/tests/topology.c
42
TEST_ASSERT_VAL("can't get session", !IS_ERR(session));
tools/perf/tests/topology.c
45
TEST_ASSERT_VAL("can't get evlist", session->evlist);
tools/perf/tests/topology.c
54
TEST_ASSERT_VAL("failed to write header",
tools/perf/tests/topology.c
76
TEST_ASSERT_VAL("can't get session", !IS_ERR(session));
tools/perf/tests/util.c
72
TEST_ASSERT_VAL("inconsistent BLAKE2s hashes",
tools/perf/tests/util.c
84
TEST_ASSERT_VAL("wrong BLAKE2s hashes",
tools/perf/tests/util.c
91
TEST_ASSERT_VAL("empty string", test_strreplace(' ', "", "123", ""));
tools/perf/tests/util.c
92
TEST_ASSERT_VAL("no match", test_strreplace('5', "123", "4", "123"));
tools/perf/tests/util.c
93
TEST_ASSERT_VAL("replace 1", test_strreplace('3', "123", "4", "124"));
tools/perf/tests/util.c
94
TEST_ASSERT_VAL("replace 2", test_strreplace('a', "abcabc", "ef", "efbcefbc"));
tools/perf/tests/util.c
95
TEST_ASSERT_VAL("replace long", test_strreplace('a', "abcabc", "longlong",
tools/perf/tests/wp.c
20
TEST_ASSERT_VAL(text, count == val); \