Lines Matching +full:- +full:100
1 // SPDX-License-Identifier: GPL-2.0
12 #include "util/parse-events.h"
54 struct perf_sample sample = { .period = 100, }; in add_hist_entries()
103 root_in = &hists->entries_collapsed; in del_hist_entries()
105 root_in = hists->entries_in; in del_hist_entries()
107 root_out = &hists->entries; in del_hist_entries()
109 while (!RB_EMPTY_ROOT(&root_out->rb_root)) { in del_hist_entries()
114 rb_erase_cached(&he->rb_node_in, root_in); in del_hist_entries()
131 #define COMM(he) (thread__comm_str(he->thread))
132 #define DSO(he) (dso__short_name(map__dso(he->ms.map)))
133 #define SYM(he) (he->ms.sym->name)
134 #define CPU(he) (he->cpu)
135 #define PID(he) (thread__tid(he->thread))
149 setup_sorting(/*evlist=*/NULL, machine->env); in test1()
178 root = &hists->entries; in test1()
183 !strcmp(SYM(he), "main") && he->stat.period == 200); in test1()
189 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); in test1()
195 !strcmp(SYM(he), "main") && he->stat.period == 100); in test1()
201 !strcmp(SYM(he), "xmalloc") && he->stat.period == 100); in test1()
207 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); in test1()
213 !strcmp(SYM(he), "schedule") && he->stat.period == 100); in test1()
219 !strcmp(SYM(he), "free") && he->stat.period == 100); in test1()
225 !strcmp(SYM(he), "malloc") && he->stat.period == 100); in test1()
231 !strcmp(SYM(he), "cmd_record") && he->stat.period == 100); in test1()
251 setup_sorting(/*evlist=*/NULL, machine->env); in test2()
258 * 30.00% 1 perf : 100 in test2()
259 * 10.00% 0 perf : 100 in test2()
260 * 10.00% 2 perf : 100 in test2()
278 root = &hists->entries; in test2()
282 CPU(he) == 1 && PID(he) == 100 && he->stat.period == 300); in test2()
287 CPU(he) == 0 && PID(he) == 100 && he->stat.period == 100); in test2()
307 setup_sorting(/*evlist=*/NULL, machine->env); in test3()
332 root = &hists->entries; in test3()
337 he->stat.period == 200); in test3()
343 he->stat.period == 100); in test3()
349 he->stat.period == 300); in test3()
355 he->stat.period == 200); in test3()
361 he->stat.period == 200); in test3()
381 setup_sorting(/*evlist=*/NULL, machine->env); in test4()
410 root = &hists->entries; in test4()
415 !strcmp(COMM(he), "perf") && he->stat.period == 100); in test4()
421 !strcmp(COMM(he), "perf") && he->stat.period == 100); in test4()
427 !strcmp(COMM(he), "bash") && he->stat.period == 100); in test4()
433 !strcmp(COMM(he), "perf") && he->stat.period == 200); in test4()
439 !strcmp(COMM(he), "perf") && he->stat.period == 100); in test4()
445 !strcmp(COMM(he), "bash") && he->stat.period == 100); in test4()
451 !strcmp(COMM(he), "perf") && he->stat.period == 100); in test4()
457 !strcmp(COMM(he), "perf") && he->stat.period == 100); in test4()
463 !strcmp(COMM(he), "bash") && he->stat.period == 100); in test4()
483 setup_sorting(/*evlist=*/NULL, machine->env); in test5()
490 * 0 perf: 100 perf [kernel] [k] schedule in test5()
495 * 1 perf: 100 perf libc [.] malloc in test5()
496 * 2 perf: 100 perf libc [.] free in test5()
497 * 1 perf: 100 perf perf [.] cmd_record in test5()
498 * 1 perf: 100 perf perf [.] main in test5()
513 root = &hists->entries; in test5()
518 CPU(he) == 0 && PID(he) == 100 && in test5()
520 !strcmp(SYM(he), "schedule") && he->stat.period == 100); in test5()
527 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); in test5()
534 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); in test5()
541 !strcmp(SYM(he), "xmalloc") && he->stat.period == 100); in test5()
548 !strcmp(SYM(he), "main") && he->stat.period == 100); in test5()
553 CPU(he) == 1 && PID(he) == 100 && in test5()
555 !strcmp(SYM(he), "malloc") && he->stat.period == 100); in test5()
560 CPU(he) == 2 && PID(he) == 100 && in test5()
562 !strcmp(SYM(he), "free") && he->stat.period == 100); in test5()
567 CPU(he) == 1 && PID(he) == 100 && in test5()
569 !strcmp(SYM(he), "cmd_record") && he->stat.period == 100); in test5()
574 CPU(he) == 1 && PID(he) == 100 && in test5()
576 !strcmp(SYM(he), "main") && he->stat.period == 100); in test5()
583 !strcmp(SYM(he), "main") && he->stat.period == 100); in test5()
609 err = parse_event(evlist, "cpu-clock"); in test__hists_output()