Home
last modified time | relevance | path

Searched refs:nr_bits (Results 1 – 10 of 10) sorted by relevance

/tools/bpf/bpftool/
A Dbtf_dumper.c351 static void btf_dumper_bitfield(__u32 nr_bits, __u8 bit_offset, in btf_dumper_bitfield() argument
360 bits_to_copy = bit_offset + nr_bits; in btf_dumper_bitfield()
371 right_shift_bits = 128 - nr_bits; in btf_dumper_bitfield()
382 int nr_bits = BTF_INT_BITS(int_type); in btf_dumper_int_bits() local
391 btf_dumper_bitfield(nr_bits, bit_offset, data, jw, in btf_dumper_int_bits()
400 __u32 nr_bits; in btf_dumper_int() local
403 nr_bits = BTF_INT_BITS(*int_type); in btf_dumper_int()
406 BITS_PER_BYTE_MASKED(nr_bits)) { in btf_dumper_int()
412 if (nr_bits == 128) { in btf_dumper_int()
/tools/testing/selftests/bpf/
A Dtest_btf.h15 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ argument
16 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits))
/tools/testing/selftests/kvm/include/x86/
A Dprocessor.h743 uint32_t nr_bits; in this_pmu_has() local
746 nr_bits = this_cpu_property(X86_PROPERTY_PMU_EBX_BIT_VECTOR_LENGTH); in this_pmu_has()
747 return nr_bits > feature.f.bit && !this_cpu_has(feature.f); in this_pmu_has()
751 nr_bits = this_cpu_property(X86_PROPERTY_PMU_NR_FIXED_COUNTERS); in this_pmu_has()
752 return nr_bits > feature.f.bit || this_cpu_has(feature.f); in this_pmu_has()
983 uint32_t nr_bits; in kvm_pmu_has() local
986 nr_bits = kvm_cpu_property(X86_PROPERTY_PMU_EBX_BIT_VECTOR_LENGTH); in kvm_pmu_has()
987 return nr_bits > feature.f.bit && !kvm_cpu_has(feature.f); in kvm_pmu_has()
991 nr_bits = kvm_cpu_property(X86_PROPERTY_PMU_NR_FIXED_COUNTERS); in kvm_pmu_has()
992 return nr_bits > feature.f.bit || kvm_cpu_has(feature.f); in kvm_pmu_has()
/tools/bpf/bpftool/Documentation/
A Dbpftool-btf.rst105 [3] INT 'long long unsigned int' size=8 bits_offset=0 nr_bits=64 encoding=(none)
160 [3] INT 'int' size=4 bits_offset=0 nr_bits=32 encoding=SIGNED
169 [6] INT 'unsigned int' size=4 bits_offset=0 nr_bits=32 encoding=(none)
170 [7] INT 'char' size=1 bits_offset=0 nr_bits=8 encoding=SIGNED
172 [9] INT '__ARRAY_SIZE_TYPE__' size=4 bits_offset=0 nr_bits=32 encoding=(none)
A Dbpftool-gen.rst412 [1] INT 'long unsigned int' size=8 bits_offset=0 nr_bits=64 encoding=(none)
418 [7] INT 'char' size=1 bits_offset=0 nr_bits=8 encoding=(none)
420 [9] INT 'unsigned int' size=4 bits_offset=0 nr_bits=32 encoding=(none)
452 [5] INT 'long unsigned int' size=8 bits_offset=0 nr_bits=64 encoding=(none)
455 [8] INT 'int' size=4 bits_offset=0 nr_bits=32 encoding=SIGNED
/tools/testing/selftests/bpf/progs/
A Dsyscall.c31 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ argument
32 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits))
A Dverifier_bits_iter.c14 u32 nr_bits) __ksym __weak;
/tools/lib/bpf/
A Dlibbpf_internal.h80 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ argument
81 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits))
/tools/perf/util/intel-pt-decoder/
A Dintel-pt-decoder.c1552 int nr_bits; in intel_pt_eptw_lookahead_cb() local
1586 nr_bits = data->bit_countdown; in intel_pt_eptw_lookahead_cb()
1587 if (nr_bits > pkt_info->packet.count) in intel_pt_eptw_lookahead_cb()
1588 nr_bits = pkt_info->packet.count; in intel_pt_eptw_lookahead_cb()
1589 data->payload <<= nr_bits; in intel_pt_eptw_lookahead_cb()
1590 data->payload |= pkt_info->packet.payload >> (64 - nr_bits); in intel_pt_eptw_lookahead_cb()
1591 data->bit_countdown -= nr_bits; in intel_pt_eptw_lookahead_cb()
/tools/perf/
A Dbuiltin-record.c3065 static int record__mmap_cpu_mask_alloc(struct mmap_cpu_mask *mask, int nr_bits) in record__mmap_cpu_mask_alloc() argument
3067 mask->nbits = nr_bits; in record__mmap_cpu_mask_alloc()
3081 static int record__thread_mask_alloc(struct thread_mask *mask, int nr_bits) in record__thread_mask_alloc() argument
3085 ret = record__mmap_cpu_mask_alloc(&mask->maps, nr_bits); in record__thread_mask_alloc()
3091 ret = record__mmap_cpu_mask_alloc(&mask->affinity, nr_bits); in record__thread_mask_alloc()
3704 static int record__alloc_thread_masks(struct record *rec, int nr_threads, int nr_bits) in record__alloc_thread_masks() argument
3715 ret = record__thread_mask_alloc(&rec->thread_masks[t], nr_bits); in record__alloc_thread_masks()

Completed in 28 milliseconds