Home
last modified time | relevance | path

Searched refs:mutator (Results 1 – 25 of 46) sorted by relevance

12

/external/grpc-grpc/src/core/lib/iomgr/
Dsocket_mutator.cc29 void grpc_socket_mutator_init(grpc_socket_mutator* mutator, in grpc_socket_mutator_init() argument
31 mutator->vtable = vtable; in grpc_socket_mutator_init()
32 gpr_ref_init(&mutator->refcount, 1); in grpc_socket_mutator_init()
35 grpc_socket_mutator* grpc_socket_mutator_ref(grpc_socket_mutator* mutator) { in grpc_socket_mutator_ref() argument
36 gpr_ref(&mutator->refcount); in grpc_socket_mutator_ref()
37 return mutator; in grpc_socket_mutator_ref()
40 bool grpc_socket_mutator_mutate_fd(grpc_socket_mutator* mutator, int fd) { in grpc_socket_mutator_mutate_fd() argument
41 return mutator->vtable->mutate_fd(fd, mutator); in grpc_socket_mutator_mutate_fd()
58 void grpc_socket_mutator_unref(grpc_socket_mutator* mutator) { in grpc_socket_mutator_unref() argument
59 if (gpr_unref(&mutator->refcount)) { in grpc_socket_mutator_unref()
[all …]
Dsocket_mutator.h32 bool (*mutate_fd)(int fd, grpc_socket_mutator* mutator);
36 void (*destroy)(grpc_socket_mutator* mutator);
46 void grpc_socket_mutator_init(grpc_socket_mutator* mutator,
50 grpc_arg grpc_socket_mutator_to_arg(grpc_socket_mutator* mutator);
53 bool grpc_socket_mutator_mutate_fd(grpc_socket_mutator* mutator, int fd);
58 grpc_socket_mutator* grpc_socket_mutator_ref(grpc_socket_mutator* mutator);
59 void grpc_socket_mutator_unref(grpc_socket_mutator* mutator);
Dsocket_utils_common_posix.cc316 grpc_error* grpc_set_socket_with_mutator(int fd, grpc_socket_mutator* mutator) { in grpc_set_socket_with_mutator() argument
317 GPR_ASSERT(mutator); in grpc_set_socket_with_mutator()
318 if (!grpc_socket_mutator_mutate_fd(mutator, fd)) { in grpc_set_socket_with_mutator()
Dtcp_server_utils_posix_common.cc180 grpc_socket_mutator* mutator = static_cast<grpc_socket_mutator*>( in grpc_tcp_server_prepare_socket() local
182 err = grpc_set_socket_with_mutator(fd, mutator); in grpc_tcp_server_prepare_socket()
Dsocket_utils_posix.h92 grpc_error* grpc_set_socket_with_mutator(int fd, grpc_socket_mutator* mutator);
Dtcp_client_posix.cc89 grpc_socket_mutator* mutator = static_cast<grpc_socket_mutator*>( in prepare_socket() local
91 err = grpc_set_socket_with_mutator(fd, mutator); in prepare_socket()
/external/grpc-grpc/test/core/iomgr/
Dsocket_utils_test.cc43 static bool mutate_fd(int fd, grpc_socket_mutator* mutator) { in mutate_fd() argument
47 reinterpret_cast<struct test_socket_mutator*>(mutator); in mutate_fd()
62 static void destroy_test_mutator(grpc_socket_mutator* mutator) { in destroy_test_mutator() argument
64 reinterpret_cast<struct test_socket_mutator*>(mutator); in destroy_test_mutator()
105 struct test_socket_mutator mutator; in main() local
106 grpc_socket_mutator_init(&mutator.base, &mutator_vtable); in main()
108 mutator.option_value = IPTOS_LOWDELAY; in main()
111 grpc_set_socket_with_mutator(sock, (grpc_socket_mutator*)&mutator))); in main()
113 mutator.option_value = IPTOS_THROUGHPUT; in main()
116 grpc_set_socket_with_mutator(sock, (grpc_socket_mutator*)&mutator))); in main()
[all …]
/external/libprotobuf-mutator/src/
Dmutator_test.cc313 ReducedTestMutator mutator; in Mutate() local
317 mutator.Mutate(message.get(), 1000); in Mutate()
419 TestMutator mutator(true); in TEST_P() local
420 mutator.Mutate(m1_.get(), 1000); in TEST_P()
474 TestMutator mutator(false); in TEST_P() local
482 mutator.NoDeDupCrossOver(*m2_, message.get()); in TEST_P()
515 TestMutator mutator(false); in TYPED_TEST() local
519 mutator.NoDeDupCrossOver(m2, &message); in TYPED_TEST()
542 TestMutator mutator(false); in TYPED_TEST() local
546 mutator.NoDeDupCrossOver(m2, &message); in TYPED_TEST()
[all …]
DCMakeLists.txt17 add_library(protobuf-mutator
19 mutator.cc
22 target_link_libraries(protobuf-mutator
24 set_property(TARGET protobuf-mutator
37 protobuf-mutator
Dmutator.cc340 bool enforce_utf8_strings, Mutator* mutator) in FieldMutator() argument
344 mutator_(mutator) {} in FieldMutator()
424 Mutator* mutator) const { in ForType()
427 FieldMutator(size_increase_hint, true, field.EnforceUtf8(), mutator) in ForType()
437 Mutator* mutator) const { in ForType()
442 field.EnforceUtf8(), mutator); in ForType()
/external/libprotobuf-mutator/
DREADME.md1 # libprotobuf-mutator
4 libprotobuf-mutator is a library to randomly mutate
36 To use libprotobuf-mutator simply include
37 [mutator.h](/src/mutator.h) and
38 [mutator.cc](/src/mutator.cc) into your build files.
56 MyProtobufMutator mutator(my_random_seed);
57 mutator.Mutate(message, 200);
81 applied to "proto2" type libprotobuf-mutator will generate any strings including
DMETADATA1 name: "libprotobuf-mutator"
3 "libprotobuf-mutator is a library to randomly mutate protobuffers. It could "
9 value: "https://github.com/google/libprotobuf-mutator"
/external/libprotobuf-mutator/examples/xml/
DCMakeLists.txt20 add_library(protobuf-mutator-xml
23 target_link_libraries(protobuf-mutator-xml
24 protobuf-mutator-libfuzzer)
25 set_property(TARGET protobuf-mutator-xml
32 protobuf-mutator-xml)
/external/libprotobuf-mutator/src/libfuzzer/
DCMakeLists.txt15 add_library(protobuf-mutator-libfuzzer
18 target_link_libraries(protobuf-mutator-libfuzzer
19 protobuf-mutator
21 set_property(TARGET protobuf-mutator-libfuzzer
Dlibfuzzer_macro.cc95 Mutator mutator(&random); in MutateMessage() local
97 mutator.Mutate(message, output->size() > input.size() in MutateMessage()
112 Mutator mutator(&random); in CrossOverMessages() local
115 mutator.CrossOver(*message2, message1); in CrossOverMessages()
/external/fonttools/Tests/varLib/
Dmutator_test.py5 from fontTools.varLib.mutator import main as mutator unknown
6 from fontTools.varLib.mutator import instantiateVariableFont as make_instance
113 mutator(args)
134 mutator(args)
156 mutator(args)
/external/fonttools/Doc/source/varLib/
Dmutator.rst2 mutator title
5 .. automodule:: fontTools.varLib.mutator
Dindex.rst13 mutator
/external/grpc-grpc/test/cpp/common/
Dchannel_arguments_test.cc49 bool test_mutator_mutate_fd(int fd, grpc_socket_mutator* mutator) { in test_mutator_mutate_fd() argument
50 TestSocketMutator* tsm = (TestSocketMutator*)mutator; in test_mutator_mutate_fd()
58 void test_mutator_destroy(grpc_socket_mutator* mutator) { in test_mutator_destroy() argument
59 TestSocketMutator* tsm = (TestSocketMutator*)mutator; in test_mutator_destroy()
/external/grpc-grpc/test/core/channel/
Dchannel_args_test.cc137 grpc_socket_mutator mutator; in test_set_socket_mutator() local
138 grpc_socket_mutator_init(&mutator, nullptr); in test_set_socket_mutator()
140 ch_args = grpc_channel_args_set_socket_mutator(nullptr, &mutator); in test_set_socket_mutator()
/external/grpc-grpc/src/cpp/common/
Dchannel_arguments.cc91 void ChannelArguments::SetSocketMutator(grpc_socket_mutator* mutator) { in SetSocketMutator() argument
92 if (!mutator) { in SetSocketMutator()
95 grpc_arg mutator_arg = grpc_socket_mutator_to_arg(mutator); in SetSocketMutator()
/external/syzkaller/prog/
Dmutation.go16 ctx := &mutator{
45 type mutator struct { struct
53 func (ctx *mutator) splice() bool { argument
68 func (ctx *mutator) squashAny() bool { argument
107 func (ctx *mutator) insertCall() bool { argument
123 func (ctx *mutator) removeCall() bool { argument
133 func (ctx *mutator) mutateArg() bool { argument
/external/swiftshader/third_party/llvm-7.0/llvm/docs/
DFuzzingLLVM.rst155 replace:: :ref:`libprotobuf-mutator based fuzzer <fuzzing-llvm-protobuf>`
178 Some of the in-tree fuzzers that use this type of mutator are `clang-fuzzer`_,
184 Structured Fuzzing using ``libprotobuf-mutator``
200 The only in-tree fuzzer that uses ``libprotobuf-mutator`` today is
203 .. _libprotobuf-mutator: https://github.com/google/libprotobuf-mutator argument
/external/eigen/unsupported/test/
Dcxx11_runqueue.cpp125 std::thread mutator([&q, &done]() { in test_empty_runqueue() local
154 mutator.join(); in test_empty_runqueue()
/external/grpc-grpc/src/core/lib/channel/
Dchannel_args.h96 grpc_channel_args* a, grpc_socket_mutator* mutator);

12