/third_party/mesa3d/src/mapi/ |
H A D | stub.c | 36 #include "stub.h" 65 const struct mapi_stub *stub = (const struct mapi_stub *) elem; in stub_compare() local 68 stub_name = &public_string_pool[(size_t) stub->name]; in stub_compare() 74 * Return the public stub with the given name. 84 * Add a dynamic stub. 89 struct mapi_stub *stub; in stub_add_dynamic() local 97 stub = &dynamic_stubs[idx]; in stub_add_dynamic() 100 stub->addr = entry_generate( in stub_add_dynamic() 102 if (!stub->addr) in stub_add_dynamic() 105 stub in stub_add_dynamic() 122 struct mapi_stub *stub = NULL; stub_find_dynamic() local 162 const struct mapi_stub *stub = stub_find_by_slot() local 170 stub_fix_dynamic(struct mapi_stub *stub, const struct mapi_stub *alias) stub_fix_dynamic() argument 190 stub_get_name(const struct mapi_stub *stub) stub_get_name() argument 207 stub_get_slot(const struct mapi_stub *stub) stub_get_slot() argument 216 stub_get_addr(const struct mapi_stub *stub) stub_get_addr() argument [all...] |
H A D | mapi_glapi.c | 34 #include "stub.h" 78 * Fill-in the dispatch stub for the named function. 81 * a dispatch stub may be created created for the function. A pointer to this 125 const struct mapi_stub *stub; in _glapi_add_dispatch() local 132 stub = stub_find_public(funcName); in _glapi_add_dispatch() 133 if (!stub) in _glapi_add_dispatch() 134 stub = stub_find_dynamic(funcName, 0); in _glapi_add_dispatch() 136 slot = (stub) ? stub_get_slot(stub) : -1; in _glapi_add_dispatch() 140 /* use the first existing stub a in _glapi_add_dispatch() 151 struct mapi_stub *stub; _glapi_add_dispatch() local 180 const struct mapi_stub *stub; _glapi_get_stub() local 207 const struct mapi_stub *stub = _glapi_get_stub(funcName, 0); _glapi_get_proc_offset() local 219 const struct mapi_stub *stub = _glapi_get_stub(funcName, 1); _glapi_get_proc_address() local 230 const struct mapi_stub *stub = stub_find_by_slot(offset); _glapi_get_proc_name() local [all...] |
H A D | stub.h | 48 stub_fix_dynamic(struct mapi_stub *stub, const struct mapi_stub *alias); 51 stub_get_name(const struct mapi_stub *stub); 54 stub_get_slot(const struct mapi_stub *stub); 57 stub_get_addr(const struct mapi_stub *stub);
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_fence.c | 18 struct stub_fence *stub = container_of(fence, typeof(*stub), chain); in stub_notify() local 22 dma_fence_signal(&stub->dma); in stub_notify() 26 dma_fence_put(&stub->dma); in stub_notify() 45 struct stub_fence *stub = container_of(fence, typeof(*stub), dma); in stub_release() local 47 i915_sw_fence_fini(&stub->chain); in stub_release() 49 BUILD_BUG_ON(offsetof(typeof(*stub), dma)); in stub_release() 50 dma_fence_free(&stub->dma); in stub_release() 62 struct stub_fence *stub; in i915_gem_object_lock_fence() local 92 struct stub_fence *stub = container_of(fence, typeof(*stub), dma); i915_gem_object_unlock_fence() local [all...] |
/third_party/node/test/parallel/ |
H A D | test-dns-lookup-promises.js | 8 // Stub `getaddrinfo` to proxy its call dynamic stub. This has to be done before 9 // we load the `dns` module to guarantee that the `dns` module uses the stub. 36 stub: getaddrinfoPositive(['::1']), 41 stub: getaddrinfoPositive(['127.0.0.1']), 46 stub: getaddrinfoPositive(['127.0.0.1'], { family: 4 }), 51 stub: getaddrinfoPositive(['some-address']), 56 stub: getaddrinfoPositive(['some-address2']), 60 ].forEach(async ({ stub, factory, expectation }) => { 61 getaddrinfoStub = stub; 79 stub [all...] |
/third_party/node/deps/v8/tools/clusterfuzz/js_fuzzer/test/ |
H A D | test_corpus.js | 20 sandbox.stub(exceptions, 'getSoftSkipped').callsFake(() => { 34 sandbox.stub(Math, 'random').callsFake(() => 0.9); 44 sandbox.stub(Math, 'random').callsFake(() => 0.9); 52 sandbox.stub(Math, 'random').callsFake(() => 0.9); 60 sandbox.stub(Math, 'random').callsFake(() => 0.9); 69 sandbox.stub(exceptions, 'getGeneratedSoftSkipped').callsFake( 81 sandbox.stub(Math, 'random').callsFake(() => 0); 91 sandbox.stub(Math, 'random').callsFake(() => 0); 92 sandbox.stub(exceptions, 'getSoftSkipped').callsFake( 97 sandbox.stub(exception [all...] |
H A D | test_try_catch.js | 40 sandbox.stub(random, 'choose').callsFake(() => { return false; }); 41 sandbox.stub(random, 'random').callsFake(() => { return 0.7; }); 47 sandbox.stub(random, 'choose').callsFake(() => { return false; }); 48 sandbox.stub(random, 'random').callsFake(() => { return 0.04; }); 60 sandbox.stub(random, 'choose').callsFake(() => { return false; }); 61 sandbox.stub(random, 'random').callsFake(() => { return 0.01; }); 74 sandbox.stub(random, 'choose').callsFake(() => { return true; }); 75 sandbox.stub(random, 'uniform').callsFake(() => { return 0.9; }); 76 sandbox.stub(random, 'random').callsFake(() => { return 0.8; });
|
H A D | test_mutate_expressions.js | 41 sandbox.stub(random, 'randInt').callsFake((a, b) => b); 43 sandbox.stub(random, 'random').callsFake(() => 0.8); 52 sandbox.stub(random, 'shuffle').callsFake(a => a); 54 sandbox.stub(random, 'choose').callsFake(a => a === 1); 61 sandbox.stub(random, 'shuffle').callsFake(a => [a[1], a[0]]); 63 sandbox.stub(random, 'choose').callsFake(() => true);
|
H A D | test_mutate_variable_or_object.js | 38 sandbox.stub(random, 'choose').callsFake(() => { return true; }); 40 sandbox.stub(random, 'randInt').callsFake(() => { return 123; }); 42 sandbox.stub(common, 'randomValue').callsFake( 66 sandbox.stub(random, 'random').callsFake(
|
H A D | test_mutate_function_calls.js | 39 sandbox.stub(random, 'random').callsFake(() => { return 0.3; }); 46 sandbox.stub(random, 'random').callsFake(() => { return 0.5; }); 55 sandbox.stub(random, 'random').callsFake(() => { return 0.7; }); 64 sandbox.stub(random, 'random').callsFake(() => { return 0.8; });
|
H A D | test_differential_fuzz.js | 62 sandbox.stub(random, 'single').callsFake(a => a[0]); 91 sandbox.stub(random, 'choose').callsFake((p) => p >= chooseOrigFlagsProb); 99 sandbox.stub(process, 'env').value(env); 102 sandbox.stub(sourceHelpers, 'loadResource').callsFake(() => {
|
/kernel/linux/linux-5.10/mm/ |
H A D | reclaim_acct.c | 32 enum reclaimacct_stubs stub, const struct shrinker *shrinker) in __reclaimacct_end() 36 start = ra->start[stub]; in __reclaimacct_end() 43 ra->delay[stub] += delay; in __reclaimacct_end() 44 ra->count[stub]++; in __reclaimacct_end() 45 ra->freed[stub] += freed; in __reclaimacct_end() 49 pr_warn_ratelimited("%s timeout:%llu\n", stub_name[stub], delay); in __reclaimacct_end() 67 void reclaimacct_substage_start(enum reclaimacct_stubs stub) in reclaimacct_substage_start() argument 72 current->reclaim_acct->start[stub] = ktime_get_ns(); in reclaimacct_substage_start() 75 void reclaimacct_substage_end(enum reclaimacct_stubs stub, unsigned long freed, in reclaimacct_substage_end() argument 81 __reclaimacct_end(current->reclaim_acct, freed, stub, shrinke in reclaimacct_substage_end() 31 __reclaimacct_end(struct reclaim_acct *ra, u64 freed, enum reclaimacct_stubs stub, const struct shrinker *shrinker) __reclaimacct_end() argument [all...] |
/kernel/linux/linux-6.6/drivers/firmware/efi/libstub/ |
H A D | Makefile | 3 # The stub may be linked into the kernel proper or into a separate boot binary, 47 # stub code never touches, so let's turn off struct randomization for the stub 70 lib-y := efi-stub-helper.o gop.o secureboot.o tpm.o \ 75 # include the stub's libfdt dependencies from lib/ when needed 85 lib-$(CONFIG_EFI_GENERIC_STUB) += efi-stub.o string.o intrinsics.o systable.o \ 86 screen_info.o efi-stub-entry.o 88 lib-$(CONFIG_ARM) += arm32-stub.o 89 lib-$(CONFIG_ARM64) += kaslr.o arm64.o arm64-stub.o smbios.o 90 lib-$(CONFIG_X86) += x86-stub [all...] |
/kernel/linux/linux-5.10/drivers/firmware/efi/libstub/ |
H A D | Makefile | 3 # The stub may be linked into the kernel proper or into a separate boot binary, 44 # stub code never touches, so let's turn off struct randomization for the stub 64 lib-y := efi-stub-helper.o gop.o secureboot.o tpm.o \ 69 # include the stub's libfdt dependencies from lib/ when needed 79 lib-$(CONFIG_EFI_GENERIC_STUB) += efi-stub.o string.o 81 lib-$(CONFIG_ARM) += arm32-stub.o 82 lib-$(CONFIG_ARM64) += arm64-stub.o 83 lib-$(CONFIG_X86) += x86-stub.o 84 lib-$(CONFIG_RISCV) += riscv-stub [all...] |
/kernel/linux/linux-5.10/arch/parisc/kernel/ |
H A D | module.c | 13 * - PLT stub handling 16 * fail to reach their PLT stub if we only create one big stub array for 18 * Instead we now insert individual PLT stub entries directly in front of 20 * This reduces the distance between the PCREL location and the stub entry 104 Elf32_Word insns[2]; /* each stub entry has two insns */ 112 Elf64_Word insns[4]; /* each stub entry has four insns */ 424 struct stub_entry *stub; in get_stub() local 436 /* get address of stub entry */ in get_stub() 437 stub in get_stub() [all...] |
/kernel/linux/linux-6.6/arch/parisc/kernel/ |
H A D | module.c | 13 * - PLT stub handling 16 * fail to reach their PLT stub if we only create one big stub array for 18 * Instead we now insert individual PLT stub entries directly in front of 20 * This reduces the distance between the PCREL location and the stub entry 85 Elf32_Word insns[2]; /* each stub entry has two insns */ 93 Elf64_Word insns[4]; /* each stub entry has four insns */ 407 struct stub_entry *stub; in get_stub() local 419 /* get address of stub entry */ in get_stub() 420 stub in get_stub() [all...] |
/third_party/ltp/include/lapi/ |
H A D | rt_sigaction.h | 202 unsigned long stub = 0; in ltp_rt_sigaction() local 204 stub = ((unsigned long) &__rt_sig_stub) - 8; in ltp_rt_sigaction() 207 stub = ((unsigned long) &__rt_sig_stub) - 8; in ltp_rt_sigaction() 209 stub = ((unsigned long) &__sig_stub) - 8; in ltp_rt_sigaction() 217 stub, sigsetsize); in ltp_rt_sigaction()
|
/third_party/protobuf/python/google/protobuf/internal/ |
H A D | service_reflection_test.py | 126 stub = unittest_pb2.TestService_Stub(channel) 132 stub.GetDescriptor()) 135 stub.Foo(rpc_controller, request, MyCallback) 140 self.assertEqual(stub.GetDescriptor().methods[0], channel.method)
|
/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/ |
H A D | service_reflection_test.py | 117 stub = unittest_pb2.TestService_Stub(channel) 123 stub.GetDescriptor()) 126 stub.Foo(rpc_controller, request, MyCallback) 132 self.assertEqual(stub.GetDescriptor().methods[0], channel.method)
|
/third_party/protobuf/python/google/protobuf/ |
H A D | service_reflection.py | 31 """Contains metaclasses used to create protocol service and service stub 101 it creates the service stub classes. 107 """Creates a message service stub class. 122 # when a service stub is subclassed. 248 """Constructs a protocol service stub class using a service descriptor. 250 Given a service descriptor, this class constructs a suitable stub class. 251 A stub is just a type-safe wrapper around an RpcChannel which emulates a 254 One service stub builder instance constructs exactly one class. It means all 255 instances of that class share the same service stub builder. 259 """Initializes an instance of the service stub clas [all...] |
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
H A D | ServiceTest.java | 120 TestService stub = TestService.newStub(mockChannel); in testStub() 136 stub.foo(mockController, fooRequest, fooCallback); in testStub() 137 stub.bar(mockController, barRequest, barCallback); in testStub() 147 TestService.BlockingInterface stub = in testBlockingStub() 165 assertSame(fooResponse, stub.foo(mockController, fooRequest)); in testBlockingStub() 166 assertSame(barResponse, stub.bar(mockController, barRequest)); in testBlockingStub()
|
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
H A D | ServiceTest.java | 118 TestService stub = TestService.newStub(mockChannel); in testStub() 134 stub.foo(mockController, fooRequest, fooCallback); in testStub() 135 stub.bar(mockController, barRequest, barCallback); in testStub() 144 TestService.BlockingInterface stub = TestService.newBlockingStub(mockChannel); in testBlockingStub() 165 assertSame(fooResponse, stub.foo(mockController, fooRequest)); in testBlockingStub() 166 assertSame(barResponse, stub.bar(mockController, barRequest)); in testBlockingStub()
|
/third_party/protobuf/src/google/protobuf/ |
H A D | map_field_test.cc | 257 MapFieldBaseStub* stub = in Expect() local 262 RepeatedPtrField<Message>* repeated_field = stub->InternalRepeatedField(); in Expect() 266 EXPECT_FALSE(stub->IsMapClean()); in Expect() 267 EXPECT_TRUE(stub->IsRepeatedClean()); in Expect() 270 EXPECT_TRUE(stub->IsMapClean()); in Expect() 271 EXPECT_FALSE(stub->IsRepeatedClean()); in Expect() 274 EXPECT_TRUE(stub->IsMapClean()); in Expect() 275 EXPECT_TRUE(stub->IsRepeatedClean()); in Expect()
|
/kernel/linux/linux-5.10/arch/um/kernel/skas/ |
H A D | clone.c | 13 #include <stub-data.h> 14 #include <sysdep/stub.h>
|
/kernel/linux/linux-6.6/arch/um/kernel/skas/ |
H A D | clone.c | 13 #include <stub-data.h> 14 #include <sysdep/stub.h>
|