Lines Matching full:filters

79 static struct lock_filter filters;  variable
1086 for (i = 0; i < filters.nr_syms; i++) { in report_lock_contention_begin_event()
1088 filters.syms[i], in report_lock_contention_begin_event()
1092 filters.syms[i]); in report_lock_contention_begin_event()
1096 addrs = realloc(filters.addrs, in report_lock_contention_begin_event()
1097 (filters.nr_addrs + 1) * sizeof(*addrs)); in report_lock_contention_begin_event()
1103 addrs[filters.nr_addrs++] = map__unmap_ip(kmap, sym->start); in report_lock_contention_begin_event()
1104 filters.addrs = addrs; in report_lock_contention_begin_event()
1135 if (filters.nr_types) { in report_lock_contention_begin_event()
1138 for (i = 0; i < filters.nr_types; i++) { in report_lock_contention_begin_event()
1139 if (flags == filters.types[i]) { in report_lock_contention_begin_event()
1149 if (filters.nr_addrs) { in report_lock_contention_begin_event()
1152 for (i = 0; i < filters.nr_addrs; i++) { in report_lock_contention_begin_event()
1153 if (addr == filters.addrs[i]) { in report_lock_contention_begin_event()
1635 zfree(&filters.types); in lock_filter_finish()
1636 filters.nr_types = 0; in lock_filter_finish()
1638 zfree(&filters.addrs); in lock_filter_finish()
1639 filters.nr_addrs = 0; in lock_filter_finish()
1641 for (int i = 0; i < filters.nr_syms; i++) in lock_filter_finish()
1642 free(filters.syms[i]); in lock_filter_finish()
1644 zfree(&filters.syms); in lock_filter_finish()
1645 filters.nr_syms = 0; in lock_filter_finish()
1647 zfree(&filters.cgrps); in lock_filter_finish()
1648 filters.nr_cgrps = 0; in lock_filter_finish()
2082 .filters = &filters, in __cmd_contention()
2340 tmp = realloc(filters.types, (filters.nr_types + 1) * sizeof(*filters.types)); in add_lock_type()
2344 tmp[filters.nr_types++] = flags; in add_lock_type()
2345 filters.types = tmp; in add_lock_type()
2382 tmp = realloc(filters.addrs, (filters.nr_addrs + 1) * sizeof(*filters.addrs)); in add_lock_addr()
2388 tmp[filters.nr_addrs++] = addr; in add_lock_addr()
2389 filters.addrs = tmp; in add_lock_addr()
2403 tmp = realloc(filters.syms, (filters.nr_syms + 1) * sizeof(*filters.syms)); in add_lock_sym()
2410 tmp[filters.nr_syms++] = sym; in add_lock_sym()
2411 filters.syms = tmp; in add_lock_sym()
2515 tmp = realloc(filters.cgrps, (filters.nr_cgrps + 1) * sizeof(*filters.cgrps)); in add_lock_cgroup()
2521 tmp[filters.nr_cgrps++] = cgrp->id; in add_lock_cgroup()
2522 filters.cgrps = tmp; in add_lock_cgroup()