/tools/include/linux/ |
A D | unaligned.h | 17 static inline u16 get_unaligned_le16(const void *p) in get_unaligned_le16() 22 static inline u32 get_unaligned_le32(const void *p) in get_unaligned_le32() 27 static inline u64 get_unaligned_le64(const void *p) in get_unaligned_le64() 47 static inline u16 get_unaligned_be16(const void *p) in get_unaligned_be16() 52 static inline u32 get_unaligned_be32(const void *p) in get_unaligned_be32() 57 static inline u64 get_unaligned_be64(const void *p) in get_unaligned_be64() 77 static inline u32 __get_unaligned_be24(const u8 *p) in __get_unaligned_be24() 82 static inline u32 get_unaligned_be24(const void *p) in get_unaligned_be24() 87 static inline u32 __get_unaligned_le24(const u8 *p) in __get_unaligned_le24() 92 static inline u32 get_unaligned_le24(const void *p) in get_unaligned_le24() [all …]
|
/tools/include/tools/ |
A D | be_byteshift.h | 7 static inline uint16_t __get_unaligned_be16(const uint8_t *p) in __get_unaligned_be16() 12 static inline uint32_t __get_unaligned_be32(const uint8_t *p) in __get_unaligned_be32() 17 static inline uint64_t __get_unaligned_be64(const uint8_t *p) in __get_unaligned_be64() 23 static inline void __put_unaligned_be16(uint16_t val, uint8_t *p) in __put_unaligned_be16() 29 static inline void __put_unaligned_be32(uint32_t val, uint8_t *p) in __put_unaligned_be32() 41 static inline uint16_t get_unaligned_be16(const void *p) in get_unaligned_be16() 46 static inline uint32_t get_unaligned_be32(const void *p) in get_unaligned_be32() 51 static inline uint64_t get_unaligned_be64(const void *p) in get_unaligned_be64() 56 static inline void put_unaligned_be16(uint16_t val, void *p) in put_unaligned_be16() 61 static inline void put_unaligned_be32(uint32_t val, void *p) in put_unaligned_be32() [all …]
|
A D | le_byteshift.h | 7 static inline uint16_t __get_unaligned_le16(const uint8_t *p) in __get_unaligned_le16() 12 static inline uint32_t __get_unaligned_le32(const uint8_t *p) in __get_unaligned_le32() 17 static inline uint64_t __get_unaligned_le64(const uint8_t *p) in __get_unaligned_le64() 23 static inline void __put_unaligned_le16(uint16_t val, uint8_t *p) in __put_unaligned_le16() 29 static inline void __put_unaligned_le32(uint32_t val, uint8_t *p) in __put_unaligned_le32() 41 static inline uint16_t get_unaligned_le16(const void *p) in get_unaligned_le16() 46 static inline uint32_t get_unaligned_le32(const void *p) in get_unaligned_le32() 51 static inline uint64_t get_unaligned_le64(const void *p) in get_unaligned_le64() 56 static inline void put_unaligned_le16(uint16_t val, void *p) in put_unaligned_le16() 61 static inline void put_unaligned_le32(uint32_t val, void *p) in put_unaligned_le32() [all …]
|
/tools/testing/selftests/bpf/ |
A D | bpf_atomic.h | 47 #define cmpxchg(p, old, new) __sync_val_compare_and_swap((p), old, new) argument 49 #define try_cmpxchg(p, pold, new) \ argument 58 #define try_cmpxchg_relaxed(p, pold, new) try_cmpxchg(p, pold, new) argument 60 #define try_cmpxchg_acquire(p, pold, new) try_cmpxchg(p, pold, new) argument 87 #define smp_load_acquire(p) \ argument 96 #define smp_store_release(p, val) \ argument 126 #define atomic_read(p) READ_ONCE((p)->counter) argument 128 #define atomic_cond_read_relaxed_label(p, cond_expr, label) \ argument 131 #define atomic_cond_read_acquire_label(p, cond_expr, label) \ argument 134 #define atomic_try_cmpxchg_relaxed(p, pold, new) \ argument [all …]
|
/tools/testing/selftests/bpf/progs/ |
A D | mem_rdonly_untrusted.c | 44 char *p; in ldx_is_ok_bad_addr() local 58 int v, *p; in ldx_is_ok_good_addr() local 69 int *p, i, s; in offset_not_tracked() local 85 int v, *p; in stx_not_ok() local 98 int v, *p; in atomic_not_ok() local 111 long v, *p; in atomic_rmw_not_ok() local 124 int *p; in kfunc_param_not_ok() local 136 char *p; in helper_param_not_ok() local 160 u64 *p; in mixed_mem_type() local 175 static u64 combine(void *p) in combine() [all …]
|
A D | percpu_alloc_fail.c | 13 char *p; member 42 struct val_t __percpu_kptr *p; in BPF_PROG() local 67 struct val_t __percpu_kptr *p; in BPF_PROG() local 90 struct val_t __percpu_kptr *p, *p1; in BPF_PROG() local 116 struct val_t __percpu_kptr *p; in BPF_PROG() local 130 struct val_t *p; in BPF_PROG() local 144 struct val_with_ptr_t __percpu_kptr *p; in BPF_PROG() local 158 struct val_with_rb_root_t __percpu_kptr *p; in BPF_PROG() local 172 struct val_600b_t __percpu_kptr *p; in BPF_PROG() local
|
A D | cb_refs.c | 20 void *p = *(void **)ctx; in cb1() local 29 struct prog_test_ref_kfunc *p; in underflow_prog() local 52 struct prog_test_ref_kfunc *p; in leak_prog() local 75 void *p; in cb3() local 88 struct prog_test_ref_kfunc *p; in nested_cb() local 103 struct prog_test_ref_kfunc *p; in non_cb_transfer_ref() local
|
A D | kfunc_call_fail.c | 43 int *p = NULL; in kfunc_call_test_get_mem_fail_rdonly() local 64 int *p = NULL; in kfunc_call_test_get_mem_fail_use_after_free() local 90 int *p = NULL; in kfunc_call_test_get_mem_fail_oob() local 113 int *p = NULL; in kfunc_call_test_get_mem_fail_not_const() local 134 int *p = NULL; in kfunc_call_test_mem_acquire_fail() local
|
A D | percpu_alloc_array.c | 28 struct val_t __percpu_kptr *p; in BPF_PROG() local 51 struct val_t __percpu_kptr *p; in BPF_PROG() local 80 struct val_t __percpu_kptr *p; in BPF_PROG() local 112 struct val_t __percpu_kptr *p; in BPF_PROG() local 132 struct val_t __percpu_kptr *p, *p1; in BPF_PROG() local
|
/tools/testing/selftests/mm/ |
A D | khugepaged.c | 260 void *p; in alloc_mapping() local 370 void *p; in file_setup_area() local 440 void *p; in shmem_setup_area() local 617 char *p; in alloc_at_fault() local 643 void *p; in collapse_full() local 657 void *p; in collapse_empty() local 666 void *p; in collapse_single_pte_entry() local 679 void *p; in collapse_max_ptes_none() local 713 void *p; in collapse_swapin_single_pte() local 740 void *p; in collapse_max_ptes_swap() local [all …]
|
/tools/testing/selftests/sched_ext/ |
A D | maximal.bpf.c | 17 s32 BPF_STRUCT_OPS(maximal_select_cpu, struct task_struct *p, s32 prev_cpu, in BPF_STRUCT_OPS() 23 void BPF_STRUCT_OPS(maximal_enqueue, struct task_struct *p, u64 enq_flags) in BPF_STRUCT_OPS() 28 void BPF_STRUCT_OPS(maximal_dequeue, struct task_struct *p, u64 deq_flags) in BPF_STRUCT_OPS() 39 void BPF_STRUCT_OPS(maximal_running, struct task_struct *p) in BPF_STRUCT_OPS() 63 void BPF_STRUCT_OPS(maximal_set_cpumask, struct task_struct *p, in BPF_STRUCT_OPS() 84 s32 BPF_STRUCT_OPS(maximal_init_task, struct task_struct *p, in BPF_STRUCT_OPS() 90 void BPF_STRUCT_OPS(maximal_enable, struct task_struct *p) in BPF_STRUCT_OPS() 93 void BPF_STRUCT_OPS(maximal_exit_task, struct task_struct *p, in BPF_STRUCT_OPS() 97 void BPF_STRUCT_OPS(maximal_disable, struct task_struct *p) in BPF_STRUCT_OPS() 109 s32 BPF_STRUCT_OPS(maximal_cgroup_prep_move, struct task_struct *p, in BPF_STRUCT_OPS() [all …]
|
A D | select_cpu_vtime.bpf.c | 28 static inline u64 task_vtime(const struct task_struct *p) in task_vtime() 38 s32 BPF_STRUCT_OPS(select_cpu_vtime_select_cpu, struct task_struct *p, in BPF_STRUCT_OPS() 54 void BPF_STRUCT_OPS(select_cpu_vtime_dispatch, s32 cpu, struct task_struct *p) in BPF_STRUCT_OPS() 60 void BPF_STRUCT_OPS(select_cpu_vtime_running, struct task_struct *p) in BPF_STRUCT_OPS() 66 void BPF_STRUCT_OPS(select_cpu_vtime_stopping, struct task_struct *p, in BPF_STRUCT_OPS() 72 void BPF_STRUCT_OPS(select_cpu_vtime_enable, struct task_struct *p) in BPF_STRUCT_OPS()
|
A D | exit.bpf.c | 20 s32 BPF_STRUCT_OPS(exit_select_cpu, struct task_struct *p, in BPF_STRUCT_OPS() 31 void BPF_STRUCT_OPS(exit_enqueue, struct task_struct *p, u64 enq_flags) in BPF_STRUCT_OPS() 39 void BPF_STRUCT_OPS(exit_dispatch, s32 cpu, struct task_struct *p) in BPF_STRUCT_OPS() 47 void BPF_STRUCT_OPS(exit_enable, struct task_struct *p) in BPF_STRUCT_OPS() 53 s32 BPF_STRUCT_OPS(exit_init_task, struct task_struct *p, in BPF_STRUCT_OPS()
|
A D | init_enable_count.bpf.c | 18 s32 BPF_STRUCT_OPS_SLEEPABLE(cnt_init_task, struct task_struct *p, in BPF_STRUCT_OPS_SLEEPABLE() 31 void BPF_STRUCT_OPS(cnt_exit_task, struct task_struct *p) in BPF_STRUCT_OPS() 36 void BPF_STRUCT_OPS(cnt_enable, struct task_struct *p) in BPF_STRUCT_OPS() 41 void BPF_STRUCT_OPS(cnt_disable, struct task_struct *p) in BPF_STRUCT_OPS()
|
A D | allowed_cpus.bpf.c | 18 validate_idle_cpu(const struct task_struct *p, const struct cpumask *allowed, s32 cpu) in validate_idle_cpu() 30 struct task_struct *p, s32 prev_cpu, u64 wake_flags) in BPF_STRUCT_OPS() 55 void BPF_STRUCT_OPS(allowed_cpus_enqueue, struct task_struct *p, u64 enq_flags) in BPF_STRUCT_OPS() 121 struct task_struct *p; in select_cpu_from_user() local
|
/tools/include/linux/unaligned/ |
A D | packed_struct.h | 11 static inline u16 __get_unaligned_cpu16(const void *p) in __get_unaligned_cpu16() 17 static inline u32 __get_unaligned_cpu32(const void *p) in __get_unaligned_cpu32() 23 static inline u64 __get_unaligned_cpu64(const void *p) in __get_unaligned_cpu64() 29 static inline void __put_unaligned_cpu16(u16 val, void *p) in __put_unaligned_cpu16() 35 static inline void __put_unaligned_cpu32(u32 val, void *p) in __put_unaligned_cpu32() 41 static inline void __put_unaligned_cpu64(u64 val, void *p) in __put_unaligned_cpu64()
|
/tools/virtio/linux/ |
A D | kernel.h | 43 #define virt_to_phys(p) ((unsigned long)p) argument 46 #define page_to_phys(p) ((dma_addr_t)(unsigned long)(p)) argument 47 #define virt_to_page(p) ((struct page *)((unsigned long)p & PAGE_MASK)) argument 49 #define offset_in_page(p) (((unsigned long)p) % PAGE_SIZE) argument 69 void *p = kmalloc(s, gfp); in kzalloc() local 80 static inline void kfree(void *p) in kfree() 87 static inline void free_pages_exact(void *p, size_t s) in free_pages_exact() 92 static inline void *krealloc(void *p, size_t s, gfp_t gfp) in krealloc() 100 void *p; in __get_free_page() local 118 static inline void *krealloc_array(void *p, size_t new_n, size_t new_size, gfp_t gfp) in krealloc_array()
|
/tools/include/asm-generic/bitops/ |
A D | non-atomic.h | 20 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in ___set_bit() local 29 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in ___clear_bit() local 47 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in ___change_bit() local 65 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in ___test_and_set_bit() local 85 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in ___test_and_clear_bit() local 97 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in ___test_and_change_bit() local
|
/tools/sched_ext/include/scx/ |
A D | compat.bpf.h | 19 #define __COMPAT_scx_bpf_task_cgroup(p) \ argument 42 #define scx_bpf_dsq_insert(p, dsq_id, slice, enq_flags) \ argument 47 #define scx_bpf_dsq_insert_vtime(p, dsq_id, slice, vtime, enq_flags) \ argument 71 #define __COMPAT_scx_bpf_dsq_move(it__iter, p, dsq_id, enq_flags) \ argument 78 #define __COMPAT_scx_bpf_dsq_move_vtime(it__iter, p, dsq_id, enq_flags) \ argument 85 #define scx_bpf_dispatch(p, dsq_id, slice, enq_flags) \ argument 88 #define scx_bpf_dispatch_vtime(p, dsq_id, slice, vtime, enq_flags) \ argument 102 #define scx_bpf_dispatch_from_dsq(it__iter, p, dsq_id, enq_flags) ({ \ argument 107 #define scx_bpf_dispatch_vtime_from_dsq(it__iter, p, dsq_id, enq_flags) ({ \ argument 118 #define __COMPAT_scx_bpf_dispatch_from_dsq(it__iter, p, dsq_id, enq_flags) ({ \ argument [all …]
|
/tools/testing/shared/linux/ |
A D | rcupdate.h | 7 #define rcu_dereference_raw(p) rcu_dereference(p) argument 8 #define rcu_dereference_protected(p, cond) rcu_dereference(p) argument 9 #define rcu_dereference_check(p, cond) rcu_dereference(p) argument 10 #define RCU_INIT_POINTER(p, v) do { (p) = (v); } while (0) argument
|
/tools/testing/selftests/powerpc/pmu/ebb/ |
A D | trace.c | 38 static bool trace_check_bounds(struct trace_buffer *tb, void *p) in trace_check_bounds() 43 static bool trace_check_alloc(struct trace_buffer *tb, void *p) in trace_check_alloc() 64 void *p, *newtail; in trace_alloc() local 90 u64 *p; in trace_log_reg() local 107 u64 *p; in trace_log_counter() local 123 char *p; in trace_log_string() local 202 u64 *p, *reg, *value; in trace_print_reg() local 273 void *p; in trace_buffer_print() local
|
/tools/sched_ext/ |
A D | scx_simple.bpf.c | 55 s32 BPF_STRUCT_OPS(simple_select_cpu, struct task_struct *p, s32 prev_cpu, u64 wake_flags) in BPF_STRUCT_OPS() 69 void BPF_STRUCT_OPS(simple_enqueue, struct task_struct *p, u64 enq_flags) in BPF_STRUCT_OPS() 95 void BPF_STRUCT_OPS(simple_running, struct task_struct *p) in BPF_STRUCT_OPS() 110 void BPF_STRUCT_OPS(simple_stopping, struct task_struct *p, bool runnable) in BPF_STRUCT_OPS() 127 void BPF_STRUCT_OPS(simple_enable, struct task_struct *p) in BPF_STRUCT_OPS()
|
A D | scx_qmap.bpf.c | 149 static struct task_ctx *lookup_task_ctx(struct task_struct *p) in lookup_task_ctx() 160 s32 BPF_STRUCT_OPS(qmap_select_cpu, struct task_struct *p, in BPF_STRUCT_OPS() 194 void BPF_STRUCT_OPS(qmap_enqueue, struct task_struct *p, u64 enq_flags) in BPF_STRUCT_OPS() 287 static void update_core_sched_head_seq(struct task_struct *p) in update_core_sched_head_seq() 308 struct task_struct *p; in dispatch_highpri() local 367 struct task_struct *p; in BPF_STRUCT_OPS() local 468 void BPF_STRUCT_OPS(qmap_tick, struct task_struct *p) in BPF_STRUCT_OPS() 495 static s64 task_qdist(struct task_struct *p) in task_qdist() 550 s32 BPF_STRUCT_OPS(qmap_init_task, struct task_struct *p, in BPF_STRUCT_OPS() 646 char buf[128] = "", *p; in print_cpus() local [all …]
|
/tools/lib/thermal/ |
A D | commands.c | 352 static int thermal_genl_tz_id_encode(struct nl_msg *msg, struct cmd_param *p) in thermal_genl_tz_id_encode() 360 static int thermal_genl_threshold_encode(struct nl_msg *msg, struct cmd_param *p) in thermal_genl_threshold_encode() 418 struct cmd_param p = { .tz_id = tz->id }; in thermal_cmd_get_trip() local 426 struct cmd_param p = { .tz_id = tz->id }; in thermal_cmd_get_governor() local 434 struct cmd_param p = { .tz_id = tz->id }; in thermal_cmd_get_temp() local 443 struct cmd_param p = { .tz_id = tz->id }; in thermal_cmd_threshold_get() local 454 struct cmd_param p = { .tz_id = tz->id, .temp = temperature, .direction = direction }; in thermal_cmd_threshold_add() local 465 struct cmd_param p = { .tz_id = tz->id, .temp = temperature, .direction = direction }; in thermal_cmd_threshold_delete() local 474 struct cmd_param p = { .tz_id = tz->id }; in thermal_cmd_threshold_flush() local
|
/tools/lib/bpf/ |
A D | bpf_helpers.h | 235 #define ___bpf_fill0(arr, p, x) do {} while (0) argument 236 #define ___bpf_fill1(arr, p, x) arr[p] = x argument 237 #define ___bpf_fill2(arr, p, x, args...) arr[p] = x; ___bpf_fill1(arr, p + 1, args) argument 238 #define ___bpf_fill3(arr, p, x, args...) arr[p] = x; ___bpf_fill2(arr, p + 1, args) argument 239 #define ___bpf_fill4(arr, p, x, args...) arr[p] = x; ___bpf_fill3(arr, p + 1, args) argument 240 #define ___bpf_fill5(arr, p, x, args...) arr[p] = x; ___bpf_fill4(arr, p + 1, args) argument 241 #define ___bpf_fill6(arr, p, x, args...) arr[p] = x; ___bpf_fill5(arr, p + 1, args) argument 242 #define ___bpf_fill7(arr, p, x, args...) arr[p] = x; ___bpf_fill6(arr, p + 1, args) argument 243 #define ___bpf_fill8(arr, p, x, args...) arr[p] = x; ___bpf_fill7(arr, p + 1, args) argument 244 #define ___bpf_fill9(arr, p, x, args...) arr[p] = x; ___bpf_fill8(arr, p + 1, args) argument [all …]
|