/linux/tools/testing/selftests/ring-buffer/ |
H A D | map_test.c | 24 static int __tracefs_write(const char *path, const char *value) in __tracefs_write() argument 32 ret = write(fd, value, strlen(value)); in __tracefs_write() 39 static int __tracefs_write_int(const char *path, int value) in __tracefs_write_int() argument 44 if (asprintf(&str, "%d", value) < 0) in __tracefs_write_int() 54 #define tracefs_write_int(path, value) \ argument 55 ASSERT_EQ(__tracefs_write_int((path), (value)), 0) 57 #define tracefs_write(path, value) \ argument 58 ASSERT_EQ(__tracefs_write((path), (value)), 0)
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | map_kptr.c | 15 __type(value, struct map_value); 22 __type(value, struct map_value); 29 __type(value, struct map_value); 36 __type(value, struct map_value); 43 __type(value, struct map_value); 51 __type(value, struct map_value); 59 __type(value, struct map_value); 66 __type(value, struct map_value); 74 __type(value, struct map_value); 81 __type(value, struct map_value); [all …]
|
/linux/tools/lib/bpf/ |
H A D | bpf.c | 387 int bpf_map_update_elem(int fd, const void *key, const void *value, in bpf_map_update_elem() argument 397 attr.value = ptr_to_u64(value); in bpf_map_update_elem() 404 int bpf_map_lookup_elem(int fd, const void *key, void *value) in bpf_map_lookup_elem() argument 413 attr.value = ptr_to_u64(value); in bpf_map_lookup_elem() 419 int bpf_map_lookup_elem_flags(int fd, const void *key, void *value, __u64 flags) in bpf_map_lookup_elem_flags() argument 428 attr.value = ptr_to_u64(value); in bpf_map_lookup_elem_flags() 435 int bpf_map_lookup_and_delete_elem(int fd, const void *key, void *value) in bpf_map_lookup_and_delete_elem() argument 444 attr.value = ptr_to_u64(value); in bpf_map_lookup_and_delete_elem() 450 int bpf_map_lookup_and_delete_elem_flags(int fd, const void *key, void *value, __u64 flags) in bpf_map_lookup_and_delete_elem_flags() argument 459 attr.value = ptr_to_u64(value); in bpf_map_lookup_and_delete_elem_flags()
|
/linux/scripts/ |
H A D | unifdef.c | 178 static const char *value[MAXSYMS]; /* -Dsym=value */ variable 684 if (value[cursym] == NULL) in parseline() 873 *valp = (value[sym] != NULL); in eval_unary() 888 } else if (value[sym] == NULL) { in eval_unary() 892 *valp = strtol(value[sym], &ep, 0); in eval_unary() 893 if (*ep != '\0' || ep == value[sym]) in eval_unary() 1143 value[symind] ? value[symind] : ""); in findsym() 1170 value[symind] = val+1; in addsym() 1173 value[symind] = "1"; in addsym() 1179 value[symind] = NULL; in addsym() [all …]
|
H A D | Makefile.build | 142 cmd_cc_ll_c = $(CC) $(c_flags) -emit-llvm -S -fno-discard-value-names -o $@ $<
|
/linux/samples/hid/ |
H A D | Makefile | 238 -D__KERNEL__ -D__BPF_TRACING__ -Wno-unused-value -Wno-pointer-sign \
|
/linux/samples/bpf/ |
H A D | Makefile | 403 -D__KERNEL__ -D__BPF_TRACING__ -Wno-unused-value -Wno-pointer-sign \
|
/linux/net/tipc/ |
H A D | socket.c | 3145 u32 value = 0; in tipc_setsockopt() local 3159 if (ol < sizeof(value)) in tipc_setsockopt() 3161 if (copy_from_sockptr(&value, ov, sizeof(u32))) in tipc_setsockopt() 3179 res = tsk_set_importance(sk, value); in tipc_setsockopt() 3183 tsk_set_unreliable(tsk, value); in tipc_setsockopt() 3188 tsk_set_unreturnable(tsk, value); in tipc_setsockopt() 3191 tipc_sk(sk)->conn_timeout = value; in tipc_setsockopt() 3208 tsk->nodelay = !!value; in tipc_setsockopt() 3240 u32 value; in tipc_getsockopt() local 3255 value = tsk_importance(tsk); in tipc_getsockopt() [all …]
|
/linux/net/ |
H A D | socket.c | 372 const char *suffix, void *value, size_t size) in sockfs_xattr_get() argument 374 if (value) { in sockfs_xattr_get() 377 memcpy(value, dentry->d_name.name, dentry->d_name.len + 1); in sockfs_xattr_get() 394 const char *suffix, const void *value, in sockfs_security_xattr_set() argument
|
/linux/net/atm/ |
H A D | svc.c | 463 int value, error = 0; in svc_setsockopt() local 483 if (copy_from_sockptr(&value, optval, sizeof(int))) { in svc_setsockopt() 487 if (value == 1) in svc_setsockopt() 489 else if (value == 0) in svc_setsockopt()
|
/linux/kernel/trace/ |
H A D | ftrace.c | 6618 unsigned long *value, char *type, in ftrace_get_trampoline_kallsym() argument 6627 *value = op->trampoline; in ftrace_get_trampoline_kallsym() 7024 int ftrace_mod_get_kallsym(unsigned int symnum, unsigned long *value, in ftrace_mod_get_kallsym() argument 7046 *value = mod_func->ip; in ftrace_mod_get_kallsym() 7057 ret = ftrace_get_trampoline_kallsym(symnum, value, type, name, in ftrace_mod_get_kallsym() 7072 int ftrace_mod_get_kallsym(unsigned int symnum, unsigned long *value, in ftrace_mod_get_kallsym() argument 7079 ret = ftrace_get_trampoline_kallsym(symnum, value, type, name, in ftrace_mod_get_kallsym()
|
H A D | Kconfig | 230 the return value. This is done by setting the current return 239 Support recording and printing the function return value when 327 kernel executes, and keeping a maximum stack depth value and 486 then computes a wakeup latency value as the difference between 773 set a different return value. This is used for error injection. 841 generated by registering a value and bit with the kernel 931 how to convert the string to its value. 934 to convert an enum/sizeof into its value. If this macro is used, then
|
/linux/kernel/sched/ |
H A D | core.c | 1431 unsigned int value, bool user_defined) in uclamp_se_set() argument 1433 uc_se->value = value; in uclamp_se_set() 1434 uc_se->bucket_id = uclamp_bucket_id(value); in uclamp_se_set() 1479 return bucket[bucket_id].value; in uclamp_rq_max_value() 1519 unsigned int tg_min, tg_max, value; in uclamp_tg_restrict() local 1530 tg_min = task_group(p)->uclamp[UCLAMP_MIN].value; in uclamp_tg_restrict() 1531 tg_max = task_group(p)->uclamp[UCLAMP_MAX].value; in uclamp_tg_restrict() 1532 value = uc_req.value; in uclamp_tg_restrict() 1533 value = clamp(value, tg_min, tg_max); in uclamp_tg_restrict() 1534 uclamp_se_set(&uc_req, value, false); in uclamp_tg_restrict() [all …]
|
/linux/kernel/ |
H A D | kprobes.c | 315 unsigned long *value, char *type, char *sym) in kprobe_cache_get_kallsym() argument 326 *value = (unsigned long)kip->insns; in kprobe_cache_get_kallsym() 2497 int __weak arch_kprobe_get_kallsym(unsigned int *symnum, unsigned long *value, in arch_kprobe_get_kallsym() argument 2503 int kprobe_get_kallsym(unsigned int symnum, unsigned long *value, char *type, in kprobe_get_kallsym() argument 2507 if (!kprobe_cache_get_kallsym(&kprobe_insn_slots, &symnum, value, type, sym)) in kprobe_get_kallsym() 2510 if (!kprobe_cache_get_kallsym(&kprobe_optinsn_slots, &symnum, value, type, sym)) in kprobe_get_kallsym() 2514 if (!arch_kprobe_get_kallsym(&symnum, value, type, sym)) in kprobe_get_kallsym()
|
H A D | kallsyms.c | 612 unsigned long value; member 624 &iter->value, &iter->type, in get_ksymbol_mod() 643 &iter->value, &iter->type, in get_ksymbol_ftrace_mod() 661 &iter->value, &iter->type, in get_ksymbol_bpf() 681 &iter->value, &iter->type, in get_ksymbol_kprobe() 691 iter->value = kallsyms_sym_address(iter->pos); in get_ksymbol_core() 775 void *value; in s_show() local 782 value = iter->show_value ? (void *)iter->value : NULL; in s_show() 793 seq_printf(m, "%px %c %s\t[%s]\n", value, in s_show() 796 seq_printf(m, "%px %c %s\n", value, in s_show()
|
H A D | acct.c | 333 static comp_t encode_comp_t(u64 value) in encode_comp_t() argument 338 while (value > MAXFRACT) { in encode_comp_t() 339 rnd = value & (1 << (EXPSIZE - 1)); /* Round up? */ in encode_comp_t() 340 value >>= EXPSIZE; /* Base 8 exponent == 3 bit shift. */ in encode_comp_t() 347 if (rnd && (++value > MAXFRACT)) { in encode_comp_t() 348 value >>= EXPSIZE; in encode_comp_t() 358 exp += value; /* and add on the mantissa. */ in encode_comp_t() 377 static comp2_t encode_comp2_t(u64 value) in encode_comp2_t() argument 381 exp = (value > (MAXFRACT2>>1)); in encode_comp2_t() 383 while (value > MAXFRACT2) { in encode_comp2_t() [all …]
|
/linux/kernel/bpf/ |
H A D | syscall.c | 159 void *key, void *value, __u64 flags) in bpf_map_update_value() argument 165 return bpf_map_offload_update_elem(map, key, value, flags); in bpf_map_update_value() 169 return map->ops->map_update_elem(map, key, value, flags); in bpf_map_update_value() 172 return sock_map_update_elem_sys(map, key, value, flags); in bpf_map_update_value() 174 return bpf_fd_array_map_update_elem(map, map_file, key, value, in bpf_map_update_value() 181 err = bpf_percpu_hash_update(map, key, value, flags); in bpf_map_update_value() 183 err = bpf_percpu_array_update(map, key, value, flags); in bpf_map_update_value() 185 err = bpf_percpu_cgroup_storage_update(map, key, value, in bpf_map_update_value() 188 err = bpf_fd_array_map_update_elem(map, map_file, key, value, in bpf_map_update_value() 191 err = bpf_fd_htab_map_update_elem(map, map_file, key, value, in bpf_map_update_value() [all …]
|
/linux/include/rdma/ |
H A D | restrack.h | 149 int rdma_nl_put_driver_u32(struct sk_buff *msg, const char *name, u32 value); 151 u32 value); 152 int rdma_nl_put_driver_u64(struct sk_buff *msg, const char *name, u64 value); 154 u64 value); 158 u64 value);
|
/linux/include/linux/power/ |
H A D | bq27xxx_battery.h | 44 int (*write)(struct bq27xxx_device_info *di, u8 reg, int value, bool single);
|
/linux/include/linux/ |
H A D | kprobes.h | 332 unsigned long *value, char *type, char *sym); 442 int kprobe_get_kallsym(unsigned int symnum, unsigned long *value, char *type, 445 int arch_kprobe_get_kallsym(unsigned int *symnum, unsigned long *value, 518 static inline int kprobe_get_kallsym(unsigned int symnum, unsigned long *value, in kprobe_get_kallsym() argument
|
H A D | ftrace.h | 102 int ftrace_mod_get_kallsym(unsigned int symnum, unsigned long *value, 106 static inline int ftrace_mod_get_kallsym(unsigned int symnum, unsigned long *value, in ftrace_mod_get_kallsym() argument
|
/linux/fs/ext4/ |
H A D | xattr.c | 82 static __le32 ext4_xattr_hash_entry(char *name, size_t name_len, __le32 *value, 84 static __le32 ext4_xattr_hash_entry_signed(char *name, size_t name_len, __le32 *value, 261 void *value; in check_xattrs() local 273 value = value_start + offs; in check_xattrs() 274 if (value < (void *)e + sizeof(u32) || in check_xattrs() 275 size > end - value || in check_xattrs() 276 EXT4_XATTR_SIZE(size) > end - value) { in check_xattrs() 1517 ext4_xattr_inode_cache_find(struct inode *inode, const void *value, in ext4_xattr_inode_cache_find() argument 1551 !memcmp(value, ea_data, value_len)) { in ext4_xattr_inode_cache_find() 1569 struct inode *inode, const void *value, size_t value_len) in ext4_xattr_inode_lookup_create() argument [all …]
|
H A D | super.c | 2460 char *value = strchr(key, '='); in parse_options() local 2465 if (value) { in parse_options() 2466 if (value == key) in parse_options() 2469 *value++ = 0; in parse_options() 2470 v_len = strlen(value); in parse_options() 2471 param.string = kmemdup_nul(value, v_len, in parse_options()
|
H A D | namei.c | 294 static void dx_set_block(struct dx_entry *entry, ext4_lblk_t value); 296 static void dx_set_hash(struct dx_entry *entry, unsigned value); 299 static void dx_set_count(struct dx_entry *entries, unsigned value); 300 static void dx_set_limit(struct dx_entry *entries, unsigned value); 573 static inline void dx_set_block(struct dx_entry *entry, ext4_lblk_t value) in dx_set_block() argument 575 entry->block = cpu_to_le32(value); in dx_set_block() 583 static inline void dx_set_hash(struct dx_entry *entry, unsigned value) in dx_set_hash() argument 585 entry->hash = cpu_to_le32(value); in dx_set_hash() 598 static inline void dx_set_count(struct dx_entry *entries, unsigned value) in dx_set_count() argument 600 ((struct dx_countlimit *) entries)->count = cpu_to_le16(value); in dx_set_count() [all …]
|
/linux/drivers/virt/ |
H A D | vmgenid.c | 75 phys_addr = (obj->package.elements[0].integer.value << 0) | in vmgenid_add_acpi() 76 (obj->package.elements[1].integer.value << 32); in vmgenid_add_acpi()
|