Home
last modified time | relevance | path

Searched refs:bit (Results 1 – 25 of 49) sorted by relevance

12

/tools/include/linux/
Dbitops.h36 #define for_each_set_bit(bit, addr, size) \ argument
37 for ((bit) = find_first_bit((addr), (size)); \
38 (bit) < (size); \
39 (bit) = find_next_bit((addr), (size), (bit) + 1))
41 #define for_each_clear_bit(bit, addr, size) \ argument
42 for ((bit) = find_first_zero_bit((addr), (size)); \
43 (bit) < (size); \
44 (bit) = find_next_zero_bit((addr), (size), (bit) + 1))
47 #define for_each_set_bit_from(bit, addr, size) \ argument
48 for ((bit) = find_next_bit((addr), (size), (bit)); \
[all …]
/tools/perf/bench/
Dfind-bit-bench.c62 unsigned int bit, i, j; in do_for_each_set_bit() local
79 for_each_set_bit(bit, to_test, num_bits) in do_for_each_set_bit()
80 workload(bit); in do_for_each_set_bit()
91 for (bit = 0; bit < num_bits; bit++) { in do_for_each_set_bit()
92 if (asm_test_bit(bit, to_test)) in do_for_each_set_bit()
93 workload(bit); in do_for_each_set_bit()
DBuild14 perf-y += find-bit-bench.o
/tools/perf/util/
Dmem2node.c67 u64 bit; in mem2node__init() local
71 for (bit = 0; bit < n->size; bit++) { in mem2node__init()
74 if (!test_bit(bit, n->set)) in mem2node__init()
77 start = bit * bsize; in mem2node__init()
Devsel.h272 void __evsel__set_sample_bit(struct evsel *evsel, enum perf_event_sample_format bit);
273 void __evsel__reset_sample_bit(struct evsel *evsel, enum perf_event_sample_format bit);
275 #define evsel__set_sample_bit(evsel, bit) \ argument
276 __evsel__set_sample_bit(evsel, PERF_SAMPLE_##bit)
278 #define evsel__reset_sample_bit(evsel, bit) \ argument
279 __evsel__reset_sample_bit(evsel, PERF_SAMPLE_##bit)
Dperf_event_attr_fprintf.c11 int bit; member
21 if (value & bits[i].bit) { in __p_bits()
Devsel.c190 enum perf_event_sample_format bit) in __evsel__set_sample_bit() argument
192 if (!(evsel->core.attr.sample_type & bit)) { in __evsel__set_sample_bit()
193 evsel->core.attr.sample_type |= bit; in __evsel__set_sample_bit()
200 enum perf_event_sample_format bit) in __evsel__reset_sample_bit() argument
202 if (evsel->core.attr.sample_type & bit) { in __evsel__reset_sample_bit()
203 evsel->core.attr.sample_type &= ~bit; in __evsel__reset_sample_bit()
/tools/testing/selftests/vm/
Dpkey-helpers.h155 int bit = pkey * 2; in __pkey_access_allow() local
158 pkey_reg &= (1<<bit); in __pkey_access_allow()
160 pkey_reg |= (1<<bit); in __pkey_access_allow()
169 int bit = pkey * 2 + 1; in __pkey_write_allow() local
172 pkey_reg &= (1<<bit); in __pkey_write_allow()
174 pkey_reg |= (1<<bit); in __pkey_write_allow()
/tools/testing/selftests/x86/
Dtest_syscall_vdso.c229 int bit; in print_flags() local
233 bit = 21; in print_flags()
237 if (bitstr[(r >> bit) & 1][0]) in print_flags()
238 fputs(bitstr[(r >> bit) & 1], stdout); in print_flags()
240 bit--; in print_flags()
241 } while (bit >= 0); in print_flags()
Dfsgsbase.c32 # error This test is 64-bit only
/tools/perf/trace/beauty/
Dpkey_alloc.c24 unsigned long bit = 1UL << (i - 1); in strarray__scnprintf_flags() local
26 if (!(flags & bit)) in strarray__scnprintf_flags()
35 printed += scnprintf(bf + printed, size - printed, "0x%#", bit); in strarray__scnprintf_flags()
/tools/perf/arch/arm64/util/
Darm-spe.c42 u64 user_bits = 0, bit; in arm_spe_set_timestamp() local
50 bit = perf_pmu__format_bits(&arm_spe_pmu->format, "ts_enable"); in arm_spe_set_timestamp()
53 if (bit & user_bits) in arm_spe_set_timestamp()
56 evsel->core.attr.config |= bit; in arm_spe_set_timestamp()
/tools/testing/selftests/kvm/x86_64/
Dxapic_ipi_test.c269 unsigned long bit; in do_migrations() local
290 for (i = 0, bit = 1; i < sizeof(nodemask) * 8; i++, bit <<= 1) { in do_migrations()
291 if (nodemask & bit) { in do_migrations()
292 nodemasks[nodes] = nodemask & bit; in do_migrations()
/tools/testing/selftests/net/
Dtoeplitz.c107 int i, bit, ret = 0; in toeplitz() local
114 for (bit = 7; bit >= 0; bit--) { in toeplitz()
115 if (four_tuple[i] & (1 << bit)) in toeplitz()
119 key32 |= !!(key[0] & (1 << bit)); in toeplitz()
/tools/testing/radix-tree/
Didr-test.c486 int bit = i & 2047; in ida_check_random() local
487 if (test_bit(bit, bitmap)) { in ida_check_random()
488 __clear_bit(bit, bitmap); in ida_check_random()
489 ida_free(&ida, bit); in ida_check_random()
491 __set_bit(bit, bitmap); in ida_check_random()
492 IDA_BUG_ON(&ida, ida_alloc_min(&ida, bit, GFP_KERNEL) in ida_check_random()
493 != bit); in ida_check_random()
/tools/perf/
Ddesign.txt15 provides "virtual" 64-bit counters, regardless of the width of the
72 is divided into 3 bit-fields:
74 raw_type: 1 bit (most significant bit) 0x8000_0000_0000_0000
162 * in increasing order of bit value, after the counter value.
195 The 'disabled' bit specifies whether the counter starts out disabled
199 The 'inherit' bit, if set, specifies that this counter should count
205 The 'pinned' bit, if set, specifies that the counter should always be
213 The 'exclusive' bit, if set, specifies that when this counter's group
234 The 'comm' bit allows tracking of process comm data on process creation.
/tools/arch/x86/kcpuid/
Dcpuid.csv22 1, 0, ECX, 2, dtes64, DS area uses 64-bit layout
30 …ache could be set to either adaptive mode or shared mode (check IA32_MISC_ENABLE bit 24 definition)
46 1, 0, ECX, 27, osxsave, OS has set CR4.OSXSAVE bit to enable XSETBV/XGETBV/XCR0
48 1, 0, ECX, 29, f16c, 16-bit floating-point conversion instruction supported
196 …, ECX, 21:17, mawau, The value of MAWAU used by the BNDLDX and BNDSTX instructions in 64-bit mode
219 0xA, 0, EAX, 31:24, pmu_ebx_bits, Length of EBX bit vector to enumerate PMU events
347 0x80000001, 0, ECX, 0, lahf_lm, LAHF/SAHF available in 64-bit mode
397 0x8000001F, 0, EBX, 5:0, c-bit, Page table bit number used to enable memory encryption
/tools/bpf/
Dbpf_exp.l44 %option 8bit
/tools/testing/selftests/resctrl/
DREADME51 -n no_of_bits: run cache tests using specified no of bits in cache bit mask
/tools/perf/Documentation/
Dtopdown.txt165 The value reported by read_metrics() contains four 8 bit fields
281 Since the individual metrics are only 8bit they lose precision for
283 fraction bit shrinks. So the counters need to be reset regularly.
325 The upper half is also divided into four 8-bit fields for the new level 2
Dperf-probe.txt209 Bitfield is another special type, which takes 3 parameters, bit-width, bit-offset, and container-si…
211 b<bit-width>@<bit-offset>/<container-size>
Djitdump-specification.txt49 …* bit 0: JITDUMP_FLAGS_ARCH_TIMESTAMP : set if the jitdump file is using an architecture-specific …
89 …ntify each jitted function. The index can be a monotonically increasing 64-bit value. Each time a …
Dperf.data-file-format.txt33 magic value is 64bit byte swapped compared the file is in non-native
47 section if the feature bit is set in the perf_header flags bitset. The
65 The bits are the flags bits in a 256 bit bitmap starting with
/tools/lib/traceevent/Documentation/
Dlibtraceevent-host_endian.txt33 parser context. This API is a bit faster than _tep_is_bigendian()_, as it
/tools/testing/selftests/rcutorture/doc/
Drcu-test-image.txt40 # Empirical evidence says this image will work for 64-bit, but...

12