/tools/testing/selftests/bpf/prog_tests/ |
D | global_data_init.c | 8 __u8 *buff = NULL, *newval = NULL; in test_global_data_init() local 24 newval = malloc(sz); in test_global_data_init() 25 if (CHECK_FAIL(!newval)) in test_global_data_init() 28 memset(newval, 0, sz); in test_global_data_init() 30 err = bpf_map__set_initial_value(map, newval, sz - 1); in test_global_data_init() 34 err = bpf_map__set_initial_value(map, newval, sz); in test_global_data_init() 49 if (CHECK(!buff || err || memcmp(buff, newval, sz), in test_global_data_init() 54 memset(newval, 1, sz); in test_global_data_init() 56 err = bpf_map__set_initial_value(map, newval, sz); in test_global_data_init() 60 free(newval); in test_global_data_init()
|
D | tc_redirect.c | 71 static int write_file(const char *path, const char *newval) in write_file() argument 78 if (fwrite(newval, strlen(newval), 1, f) != 1) { in write_file()
|
/tools/testing/selftests/futex/include/ |
D | atomic.h | 36 atomic_cmpxchg(atomic_t *addr, int oldval, int newval) in atomic_cmpxchg() argument 38 return __sync_val_compare_and_swap(&addr->val, oldval, newval); in atomic_cmpxchg() 73 atomic_set(atomic_t *addr, int newval) in atomic_set() argument 75 addr->val = newval; in atomic_set() 76 return newval; in atomic_set()
|
D | futextest.h | 219 futex_cmpxchg(futex_t *uaddr, u_int32_t oldval, u_int32_t newval) in futex_cmpxchg() argument 221 return __sync_val_compare_and_swap(uaddr, oldval, newval); in futex_cmpxchg() 256 futex_set(futex_t *uaddr, u_int32_t newval) in futex_set() argument 258 *uaddr = newval; in futex_set() 259 return newval; in futex_set()
|
/tools/include/asm-generic/ |
D | atomic-gcc.h | 64 #define cmpxchg(ptr, oldval, newval) \ argument 65 __sync_val_compare_and_swap(ptr, oldval, newval) 67 static inline int atomic_cmpxchg(atomic_t *v, int oldval, int newval) in atomic_cmpxchg() argument 69 return cmpxchg(&(v)->counter, oldval, newval); in atomic_cmpxchg()
|
/tools/testing/selftests/bpf/ |
D | test_sysctl.c | 36 const char *newval; member 120 .newval = "(none)", /* same as default, should fail anyway */ 143 .newval = "(none)", /* same as default, should fail anyway */ 639 .newval = "600", /* same as default, should fail anyway */ 709 .newval = "606", 759 .newval = "3000000 4000000 6000000", 798 .newval = "606", 867 .newval = "606", 1379 .newval = "123 456 789", 1530 if (!test->newval) { in access_sysctl() [all …]
|
/tools/testing/selftests/rseq/ |
D | basic_percpu_ops_test.c | 141 intptr_t *targetptr, newval, expect; in this_cpu_list_push() local 147 newval = (intptr_t)node; in this_cpu_list_push() 150 ret = rseq_cmpeqv_storev(targetptr, expect, newval, cpu); in this_cpu_list_push()
|
D | param_test.c | 520 intptr_t *targetptr, newval, expect; in this_cpu_list_push() local 526 newval = (intptr_t)node; in this_cpu_list_push() 529 ret = rseq_cmpeqv_storev(targetptr, expect, newval, cpu); in this_cpu_list_push() 733 intptr_t *targetptr, newval; in this_cpu_buffer_pop() local 745 newval = offset - 1; in this_cpu_buffer_pop() 749 (intptr_t)head, newval, cpu); in this_cpu_buffer_pop()
|
/tools/perf/pmu-events/ |
D | jevents.c | 226 static void cut_comma(char *map, jsmntok_t *newval) in cut_comma() argument 231 for (i = newval->start; i < newval->end; i++) { in cut_comma() 233 newval->end = i; in cut_comma() 241 jsmntok_t newval = *val; in match_field() local 245 cut_comma(map, &newval); in match_field() 246 addfield(map, event, ",", f->kernel, &newval); in match_field() 254 jsmntok_t newval = *val; in lookup_msr() local 258 cut_comma(map, &newval); in lookup_msr() 260 if (json_streq(map, &newval, msrmap[i].num)) in lookup_msr()
|
/tools/memory-model/Documentation/ |
D | access-marking.txt | 254 void update_foo(int newval) 257 foo = newval; 258 do_something(newval); 328 void update_foo(int newval) 331 WRITE_ONCE(foo, newval); 333 do_something(newval); 449 int update_foo(int newval) 453 ret = xchg(&foo, newval); 454 do_something(newval); 493 int update_foo(int newval) [all …]
|
/tools/perf/util/ |
D | pmu.c | 324 char newval[256]; in __perf_pmu__new_alias() local 365 memset(newval, 0, sizeof(newval)); in __perf_pmu__new_alias() 369 ret += scnprintf(newval + ret, sizeof(newval) - ret, in __perf_pmu__new_alias() 372 ret += scnprintf(newval + ret, sizeof(newval) - ret, in __perf_pmu__new_alias() 375 ret += scnprintf(newval + ret, sizeof(newval) - ret, in __perf_pmu__new_alias() 402 alias->str = strdup(newval); in __perf_pmu__new_alias()
|
/tools/kvm/kvm_stat/ |
D | kvm_stat | 950 newval = new.get(key, 0) 951 newdelta = newval - oldval 952 self.values[key] = EventStat(newval, newdelta)
|