Home
last modified time | relevance | path

Searched refs:bitmap (Results 1 – 23 of 23) sorted by relevance

/tools/lib/
Dbitmap.c8 unsigned int __bitmap_weight(const unsigned long *bitmap, int bits) in __bitmap_weight() argument
13 w += hweight_long(bitmap[k]); in __bitmap_weight()
16 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits)); in __bitmap_weight()
31 size_t bitmap_scnprintf(unsigned long *bitmap, unsigned int nbits, in bitmap_scnprintf() argument
39 rbot = cur = find_first_bit(bitmap, nbits); in bitmap_scnprintf()
42 cur = find_next_bit(bitmap, nbits, cur + 1); in bitmap_scnprintf()
/tools/testing/selftests/iommu/
Diommufd_utils.h306 __u64 *bitmap, __u32 flags) in _test_cmd_get_dirty_bitmap() argument
315 .data = (uintptr_t)bitmap, in _test_cmd_get_dirty_bitmap()
326 bitmap, flags) \
328 page_size, bitmap, flags))
332 __u64 *bitmap, __u64 *dirty) in _test_cmd_mock_domain_set_dirty() argument
342 .uptr = (uintptr_t)bitmap, in _test_cmd_mock_domain_set_dirty()
356 bitmap, nr) \ argument
359 page_size, bitmap, nr))
363 size_t pte_page_size, __u64 *bitmap, in _test_mock_dirty_bitmaps() argument
373 memset(bitmap, 0, bitmap_size); in _test_mock_dirty_bitmaps()
[all …]
Diommufd.c1739 void *bitmap; in FIXTURE() local
1801 rc = posix_memalign(&self->bitmap, PAGE_SIZE, size + PAGE_SIZE); in FIXTURE_SETUP()
1803 assert(self->bitmap); in FIXTURE_SETUP()
1804 assert((uintptr_t)self->bitmap % PAGE_SIZE == 0); in FIXTURE_SETUP()
1822 free(self->bitmap); in FIXTURE_TEARDOWN()
1959 self->bitmap, self->bitmap_size, 0, _metadata); in TEST_F()
1964 self->bitmap + MOCK_PAGE_SIZE, in TEST_F()
1970 self->bitmap + 0xff1, self->bitmap_size, 0, in TEST_F()
1996 self->bitmap, self->bitmap_size, in TEST_F()
2003 self->bitmap + MOCK_PAGE_SIZE, in TEST_F()
[all …]
/tools/perf/util/
Dcpumap.c43 int i, unsigned long *bitmap) in perf_record_cpu_map_data__read_one_mask() argument
47 bitmap[0] = data->mask32_data.mask[i]; in perf_record_cpu_map_data__read_one_mask()
49 bitmap[0] = data->mask64_data.mask[i]; in perf_record_cpu_map_data__read_one_mask()
52 bitmap[0] = data->mask32_data.mask[i]; in perf_record_cpu_map_data__read_one_mask()
53 bitmap[1] = 0; in perf_record_cpu_map_data__read_one_mask()
56 bitmap[0] = (unsigned long)(data->mask64_data.mask[i] >> 32); in perf_record_cpu_map_data__read_one_mask()
57 bitmap[1] = (unsigned long)data->mask64_data.mask[i]; in perf_record_cpu_map_data__read_one_mask()
59 bitmap[0] = (unsigned long)data->mask64_data.mask[i]; in perf_record_cpu_map_data__read_one_mask()
60 bitmap[1] = (unsigned long)(data->mask64_data.mask[i] >> 32); in perf_record_cpu_map_data__read_one_mask()
658 unsigned char *bitmap; in cpu_map__snprint_mask() local
[all …]
Dkwork.h93 DECLARE_BITMAP(bitmap, NR_ATOM_PER_PAGE);
DBuild42 perf-util-y += bitmap.o
366 $(OUTPUT)util/bitmap.o: ../lib/bitmap.c FORCE
/tools/testing/selftests/kvm/x86_64/
Duserspace_msr_exit_test.c26 .bitmap = (uint8_t*)&deny_bits,
33 .bitmap = (uint8_t*)&deny_bits,
40 .bitmap = (uint8_t*)&deny_bits,
52 .bitmap = (uint8_t*)&deny_bits,
64 .bitmap = (uint8_t*)&deny_bits,
80 static void deny_msr(uint8_t *bitmap, u32 msr) in deny_msr() argument
84 bitmap[idx / 8] &= ~(1 << (idx % 8)); in deny_msr()
107 .bitmap = bitmap_00000000,
112 .bitmap = bitmap_00000000_write,
117 .bitmap = bitmap_40000000,
[all …]
Dpmu_event_filter_test.c746 uint32_t action, uint32_t bitmap) in test_with_fixed_counter_filter() argument
750 .fixed_counter_bitmap = bitmap, in test_with_fixed_counter_filter()
759 uint32_t bitmap) in test_set_gp_and_fixed_event_filter() argument
764 f.fixed_counter_bitmap = bitmap; in test_set_gp_and_fixed_event_filter()
774 uint32_t bitmap; in __test_fixed_counter_bitmap() local
777 TEST_ASSERT(nr_fixed_counters < sizeof(bitmap) * 8, in __test_fixed_counter_bitmap()
788 bitmap = BIT(i); in __test_fixed_counter_bitmap()
790 bitmap); in __test_fixed_counter_bitmap()
791 TEST_ASSERT_EQ(!!count, !!(bitmap & BIT(idx))); in __test_fixed_counter_bitmap()
794 bitmap); in __test_fixed_counter_bitmap()
[all …]
/tools/include/linux/
Dbitmap.h15 unsigned int __bitmap_weight(const unsigned long *bitmap, int bits);
95 static inline void bitmap_free(unsigned long *bitmap) in bitmap_free() argument
97 free(bitmap); in bitmap_free()
107 size_t bitmap_scnprintf(unsigned long *bitmap, unsigned int nbits,
Dfind.h6 #error tools: only <linux/bitmap.h> can be included directly
/tools/testing/selftests/kvm/
Ddirty_log_test.c229 void *bitmap, uint32_t num_pages, in dirty_log_collect_dirty_pages() argument
232 kvm_vm_get_dirty_log(vcpu->vm, slot, bitmap); in dirty_log_collect_dirty_pages()
236 void *bitmap, uint32_t num_pages, in clear_log_collect_dirty_pages() argument
239 kvm_vm_get_dirty_log(vcpu->vm, slot, bitmap); in clear_log_collect_dirty_pages()
240 kvm_vm_clear_dirty_log(vcpu->vm, slot, bitmap, 0, num_pages); in clear_log_collect_dirty_pages()
313 int slot, void *bitmap, in dirty_ring_collect_one() argument
328 __set_bit_le(cur->offset, bitmap); in dirty_ring_collect_one()
352 void *bitmap, uint32_t num_pages, in dirty_ring_collect_dirty_pages() argument
371 slot, bitmap, num_pages, in dirty_ring_collect_dirty_pages()
426 void *bitmap, uint32_t num_pages,
[all …]
/tools/testing/selftests/lib/
DMakefile7 TEST_PROGS := printf.sh bitmap.sh prime_numbers.sh scanf.sh
/tools/testing/selftests/net/
Dtoeplitz.c471 unsigned long bitmap; in parse_rps_bitmap() local
474 bitmap = strtoul(arg, NULL, 0); in parse_rps_bitmap()
476 if (bitmap & ~(RPS_MAX_CPUS - 1)) in parse_rps_bitmap()
478 bitmap, RPS_MAX_CPUS - 1); in parse_rps_bitmap()
481 if (bitmap & 1UL << i) in parse_rps_bitmap()
/tools/testing/radix-tree/
Didr-test.c479 DECLARE_BITMAP(bitmap, 2048); in ida_check_random()
484 memset(bitmap, 0, sizeof(bitmap)); in ida_check_random()
488 if (test_bit(bit, bitmap)) { in ida_check_random()
489 __clear_bit(bit, bitmap); in ida_check_random()
492 __set_bit(bit, bitmap); in ida_check_random()
/tools/perf/
DMANIFEST20 tools/lib/bitmap.c
Dbuiltin-kwork.c247 if (!bitmap_full(page->bitmap, NR_ATOM_PER_PAGE)) { in atom_new()
248 i = find_first_zero_bit(page->bitmap, NR_ATOM_PER_PAGE); in atom_new()
269 __set_bit(i, page->bitmap); in atom_new()
283 ((struct kwork_atom_page *)atom->page_addr)->bitmap); in atom_free()
/tools/testing/shared/
Dshared.mk7 LIBS := slab.o find_bit.o bitmap.o hweight.o vsprintf.o
/tools/testing/selftests/bpf/
Dxskxceiver.c1242 unsigned long *bitmap) in all_packets_received() argument
1247 __set_bit(sock_num, bitmap); in all_packets_received()
1252 __set_bit(sock_num, bitmap); in all_packets_received()
1253 if (bitmap_full(bitmap, test->nb_sockets)) in all_packets_received()
1263 DECLARE_BITMAP(bitmap, test->nb_sockets); in receive_pkts()
1277 if ((all_packets_received(test, xsk, sock_num, bitmap))) in receive_pkts()
1447 bool all_packets_sent(struct test_spec *test, unsigned long *bitmap) in all_packets_sent() argument
1449 return bitmap_full(bitmap, test->nb_sockets); in all_packets_sent()
1455 DECLARE_BITMAP(bitmap, test->nb_sockets); in send_pkts()
1458 while (!(all_packets_sent(test, bitmap))) { in send_pkts()
[all …]
/tools/perf/Documentation/
Dperf.data-file-format.txt65 The bits are the flags bits in a 256 bit bitmap starting with
307 u64 size; // size of bitmap
308 struct bitmap {
309 /* size of bitmap again */
311 /* bitmap of memory indexes that belongs to node */
/tools/perf/tests/
DBuild50 perf-test-y += bitmap.o
/tools/arch/x86/include/uapi/asm/
Dkvm.h216 __u8 *bitmap; /* a 1 bit allows the operations in flags, 0 denies */ member
/tools/arch/x86/kcpuid/
Dcpuid.csv322 …a, 0, ecx, 31:0, pmu_fcounters_bitmap , Fixed-function PMU counters support bitmap
394 … 0x10, 2:1, ebx, 31:0, cat_units_bitmap , L3/L2_CAT bitmap of allocation units
555 …cx, 19:16, lbr_events_gpc_bmp , LBR PMU-events logging support; bitmap for first 4 GP (ge…
602 … 0x23, 1, eax, 31:0, pmu_gp_counters_bitmap , General-purpose PMU counters bitmap
603 0x23, 1, ebx, 31:0, pmu_f_counters_bitmap , Fixed PMU counters bitmap
/tools/include/uapi/linux/
Dkvm.h1048 __u64 bitmap; member