Home
last modified time | relevance | path

Searched refs:orig (Results 1 – 22 of 22) sorted by relevance

/tools/testing/selftests/bpf/progs/
Dconnect_force_port6.c33 struct svc_addr *orig; in connect6() local
45 orig = bpf_sk_storage_get(&service_mapping, ctx->sk, 0, in connect6()
47 if (!orig) in connect6()
50 orig->addr[0] = ctx->user_ip6[0]; in connect6()
51 orig->addr[1] = ctx->user_ip6[1]; in connect6()
52 orig->addr[2] = ctx->user_ip6[2]; in connect6()
53 orig->addr[3] = ctx->user_ip6[3]; in connect6()
54 orig->port = ctx->user_port; in connect6()
85 struct svc_addr *orig; in getpeername6() local
92 orig = bpf_sk_storage_get(&service_mapping, ctx->sk, 0, 0); in getpeername6()
[all …]
Dconnect_force_port4.c34 struct svc_addr *orig; in connect4() local
46 orig = bpf_sk_storage_get(&service_mapping, ctx->sk, 0, in connect4()
48 if (!orig) in connect4()
51 orig->addr = ctx->user_ip4; in connect4()
52 orig->port = ctx->user_port; in connect4()
77 struct svc_addr *orig; in getpeername4() local
84 orig = bpf_sk_storage_get(&service_mapping, ctx->sk, 0, 0); in getpeername4()
85 if (orig) { in getpeername4()
86 ctx->user_ip4 = orig->addr; in getpeername4()
87 ctx->user_port = orig->port; in getpeername4()
/tools/lib/perf/
Dcpumap.c297 struct perf_cpu_map *perf_cpu_map__merge(struct perf_cpu_map *orig, in perf_cpu_map__merge() argument
305 if (!orig && !other) in perf_cpu_map__merge()
307 if (!orig) { in perf_cpu_map__merge()
312 return orig; in perf_cpu_map__merge()
313 if (orig->nr == other->nr && in perf_cpu_map__merge()
314 !memcmp(orig->map, other->map, orig->nr * sizeof(int))) in perf_cpu_map__merge()
315 return orig; in perf_cpu_map__merge()
317 tmp_len = orig->nr + other->nr; in perf_cpu_map__merge()
324 while (i < orig->nr && j < other->nr) { in perf_cpu_map__merge()
325 if (orig->map[i] <= other->map[j]) { in perf_cpu_map__merge()
[all …]
/tools/testing/selftests/powerpc/security/
Dmitigation-patching.sh10 local orig
14 orig=$(cat "$mitigation")
27 echo "$orig" > "$mitigation"
/tools/objtool/
Dspecial.c23 unsigned char size, orig, new; member
34 .orig = ALT_ORIG_OFFSET,
44 .orig = JUMP_ORIG_OFFSET,
51 .orig = EX_ORIG_OFFSET,
96 orig_reloc = find_reloc_by_dest(elf, sec, offset + entry->orig); in get_alt_entry()
98 WARN_FUNC("can't find orig reloc", sec, offset + entry->orig); in get_alt_entry()
/tools/testing/selftests/bpf/prog_tests/
Dprobe_user.c10 struct sockaddr curr, orig, tmp; in test_probe_user() local
43 memcpy(&orig, &curr, sizeof(curr)); in test_probe_user()
58 if (CHECK(memcmp(&tmp, &orig, sizeof(orig)), "check_kprobe_res", in test_probe_user()
/tools/testing/selftests/net/forwarding/
Ddevlink_lib.sh167 local -a orig=(${DEVLINK_ORIG[$key]})
169 if [[ -z $orig ]]; then
172 devlink sb port pool set $port pool $pool th $orig
205 local -a orig=(${DEVLINK_ORIG[$key]})
207 if [[ -z ${orig[0]} ]]; then
211 size ${orig[0]} thtype ${orig[1]}
252 local -a orig=(${DEVLINK_ORIG[$key]})
254 if [[ -z ${orig[0]} ]]; then
258 pool ${orig[0]} th ${orig[1]}
/tools/perf/tests/
Dbpf-script-test-prologue.c31 unsigned long offset, unsigned long orig) in bpf_func__null_lseek() argument
41 if (orig == SEEK_CUR) in bpf_func__null_lseek()
/tools/testing/selftests/kvm/x86_64/
Dset_sregs_test.c27 static void test_cr4_feature_bit(struct kvm_vm *vm, struct kvm_sregs *orig, in test_cr4_feature_bit() argument
34 if (orig->cr4 & feature_bit) in test_cr4_feature_bit()
37 memcpy(&sregs, orig, sizeof(sregs)); in test_cr4_feature_bit()
45 TEST_ASSERT(!memcmp(&sregs, orig, sizeof(sregs)), "KVM modified sregs"); in test_cr4_feature_bit()
/tools/perf/util/
Devsel.c370 struct evsel *evsel__clone(struct evsel *orig) in evsel__clone() argument
374 BUG_ON(orig->core.fd); in evsel__clone()
375 BUG_ON(orig->counts); in evsel__clone()
376 BUG_ON(orig->priv); in evsel__clone()
377 BUG_ON(orig->per_pkg_mask); in evsel__clone()
380 if (orig->bpf_obj) in evsel__clone()
383 evsel = evsel__new(&orig->core.attr); in evsel__clone()
387 evsel->core.cpus = perf_cpu_map__get(orig->core.cpus); in evsel__clone()
388 evsel->core.own_cpus = perf_cpu_map__get(orig->core.own_cpus); in evsel__clone()
389 evsel->core.threads = perf_thread_map__get(orig->core.threads); in evsel__clone()
[all …]
Devsel.h212 struct evsel *evsel__clone(struct evsel *orig);
Dmetricgroup.c1040 struct metric *orig = *m; in add_metric() local
1057 for (j = 0; j < count && !ret; j++, *m = orig) in add_metric()
/tools/testing/selftests/tc-testing/
DTdcResults.py82 orig = self.find_result(result_data.test_id)
83 if orig != None:
84 idx = self._testsuite.index(orig)
/tools/lib/lockdep/
Dpreload.c21 void *orig; /* Original pthread lock, used for lookups */ member
112 if (lock < l->orig) in __get_lock_node()
114 else if (lock > l->orig) in __get_lock_node()
192 l->orig = lock; in __get_lock()
/tools/lib/perf/include/perf/
Dcpumap.h16 LIBPERF_API struct perf_cpu_map *perf_cpu_map__merge(struct perf_cpu_map *orig,
/tools/testing/ktest/examples/
Dsnowball.conf37 START_MIN_CONFIG = ${THIS_DIR}/config.orig
/tools/testing/selftests/sysctl/
Dsysctl.sh314 orig="$(cat $TARGET)"
318 if [ $? = 0 ] || [ "$(cat $TARGET)" != "$orig" ]; then
/tools/testing/selftests/bpf/
Dxdpxceiver.c607 u64 addr = desc->addr, orig; in receive_pkts() local
609 orig = xsk_umem__extract_addr(addr); in receive_pkts()
614 *xsk_ring_prod__fill_addr(&xsk->umem->fq, idx_fq++) = orig; in receive_pkts()
/tools/lib/perf/Documentation/
Dlibperf.txt44 struct perf_cpu_map *perf_cpu_map__merge(struct perf_cpu_map *orig,
/tools/perf/
Dbuiltin-c2c.c2482 static char *fill_line(const char *orig, int len) in fill_line() argument
2484 int i, j, olen = strlen(orig); in fill_line()
2498 strcpy(buf + i, orig); in fill_line()
/tools/testing/selftests/seccomp/
Dseccomp_bpf.c1920 ARCH_REGS orig, regs; in __change_syscall() local
1929 orig = regs; in __change_syscall()
1938 if (memcmp(&orig, &regs, sizeof(orig)) != 0) in __change_syscall()
/tools/testing/ktest/
Dktest.pl3694 my $orig = $arch;
3699 doprint "No idea what arch dir $orig is for\n";