| /tools/include/nolibc/sys/ |
| A D | timerfd.h | 59 const struct itimerspec *new_value, struct itimerspec *old_value) in sys_timerfd_settime() argument 62 return my_syscall4(__NR_timerfd_settime, fd, flags, new_value, old_value); in sys_timerfd_settime() 70 if (old_value) { in sys_timerfd_settime() 71 __nolibc_timespec_kernel_to_user(&kold_value.it_interval, &old_value->it_interval); in sys_timerfd_settime() 72 __nolibc_timespec_kernel_to_user(&kold_value.it_value, &old_value->it_value); in sys_timerfd_settime() 76 return __nolibc_enosys(__func__, fd, flags, new_value, old_value); in sys_timerfd_settime() 82 const struct itimerspec *new_value, struct itimerspec *old_value) in timerfd_settime() argument 84 return __sysret(sys_timerfd_settime(fd, flags, new_value, old_value)); in timerfd_settime()
|
| /tools/perf/util/ |
| A D | hashmap.h | 131 long *old_key, long *old_value); 133 #define hashmap__insert(map, key, value, strategy, old_key, old_value) \ argument 136 hashmap_cast_ptr(old_value)) 141 #define hashmap__set(map, key, value, old_key, old_value) \ argument 142 hashmap__insert((map), (key), (value), HASHMAP_SET, (old_key), (old_value)) 144 #define hashmap__update(map, key, value, old_key, old_value) \ argument 145 hashmap__insert((map), (key), (value), HASHMAP_UPDATE, (old_key), (old_value)) 150 bool hashmap_delete(struct hashmap *map, long key, long *old_key, long *old_value); 152 #define hashmap__delete(map, key, old_key, old_value) \ argument 155 hashmap_cast_ptr(old_value))
|
| A D | hashmap.c | 156 long *old_key, long *old_value) in hashmap_insert() argument 164 if (old_value) in hashmap_insert() 165 *old_value = 0; in hashmap_insert() 172 if (old_value) in hashmap_insert() 173 *old_value = entry->value; in hashmap_insert() 221 long *old_key, long *old_value) in hashmap_delete() argument 232 if (old_value) in hashmap_delete() 233 *old_value = entry->value; in hashmap_delete()
|
| A D | threads.c | 145 struct thread *old_value; in threads__remove_all_threads() local 147 hashmap__delete(&table->shard, cur->key, /*old_key=*/NULL, &old_value); in threads__remove_all_threads() 148 thread__put(old_value); in threads__remove_all_threads() 157 struct thread *old_value; in threads__remove() local 163 hashmap__delete(&table->shard, thread__tid(thread), /*old_key=*/NULL, &old_value); in threads__remove() 164 thread__put(old_value); in threads__remove()
|
| /tools/lib/bpf/ |
| A D | hashmap.h | 131 long *old_key, long *old_value); 133 #define hashmap__insert(map, key, value, strategy, old_key, old_value) \ argument 136 hashmap_cast_ptr(old_value)) 141 #define hashmap__set(map, key, value, old_key, old_value) \ argument 142 hashmap__insert((map), (key), (value), HASHMAP_SET, (old_key), (old_value)) 144 #define hashmap__update(map, key, value, old_key, old_value) \ argument 145 hashmap__insert((map), (key), (value), HASHMAP_UPDATE, (old_key), (old_value)) 150 bool hashmap_delete(struct hashmap *map, long key, long *old_key, long *old_value); 152 #define hashmap__delete(map, key, old_key, old_value) \ argument 155 hashmap_cast_ptr(old_value))
|
| A D | hashmap.c | 156 long *old_key, long *old_value) in hashmap_insert() argument 164 if (old_value) in hashmap_insert() 165 *old_value = 0; in hashmap_insert() 172 if (old_value) in hashmap_insert() 173 *old_value = entry->value; in hashmap_insert() 221 long *old_key, long *old_value) in hashmap_delete() argument 232 if (old_value) in hashmap_delete() 233 *old_value = entry->value; in hashmap_delete()
|
| /tools/include/nolibc/ |
| A D | time.h | 222 const struct itimerspec *new_value, struct itimerspec *old_value) in sys_timer_settime() argument 225 return my_syscall4(__NR_timer_settime, timerid, flags, new_value, old_value); in sys_timer_settime() 233 if (old_value) { in sys_timer_settime() 234 __nolibc_timespec_kernel_to_user(&kold_value.it_interval, &old_value->it_interval); in sys_timer_settime() 235 __nolibc_timespec_kernel_to_user(&kold_value.it_value, &old_value->it_value); in sys_timer_settime() 239 return __nolibc_enosys(__func__, timerid, flags, new_value, old_value); in sys_timer_settime() 245 const struct itimerspec *new_value, struct itimerspec *old_value) in timer_settime() argument 247 return __sysret(sys_timer_settime(timerid, flags, new_value, old_value)); in timer_settime()
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | hashmap.c | 262 const char *key, *value, *old_key, *old_value; in test_hashmap_ptr_iface() local 279 err = hashmap__insert(map, "a", "apple", HASHMAP_SET, &old_key, &old_value); in test_hashmap_ptr_iface() 283 CHECK_STR("hashmap__update", old_value, "apricot"); in test_hashmap_ptr_iface() 289 err = hashmap__set(map, "b", "breadfruit", &old_key, &old_value); in test_hashmap_ptr_iface() 293 CHECK_STR("hashmap__set", old_value, "banana"); in test_hashmap_ptr_iface() 295 err = hashmap__update(map, "b", "blueberry", &old_key, &old_value); in test_hashmap_ptr_iface() 299 CHECK_STR("hashmap__update", old_value, "breadfruit"); in test_hashmap_ptr_iface() 305 if (CHECK(!hashmap__delete(map, "c", &old_key, &old_value), in test_hashmap_ptr_iface() 309 CHECK_STR("hashmap__delete", old_value, "cherry"); in test_hashmap_ptr_iface()
|
| /tools/testing/selftests/kvm/s390/ |
| A D | memop.c | 51 uint8_t old_value[16]; member 89 memcpy(desc->old_value, desc->old, desc->size); in ksmo_from_desc() 184 int diff = memcmp(desc->old_value, desc->old, desc->size); in memop_ioctl()
|