filter_latency.cc
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2016 gRPC authors.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 #include <limits.h>
20 #include <stdbool.h>
21 #include <stdio.h>
22 #include <string.h>
23 
24 #include <grpc/byte_buffer.h>
25 #include <grpc/support/alloc.h>
26 #include <grpc/support/log.h>
27 #include <grpc/support/time.h>
28 
35 
36 enum { TIMEOUT = 200000 };
37 
38 static gpr_mu g_mu;
41 
42 static void* tag(intptr_t t) { return reinterpret_cast<void*>(t); }
43 
45  const char* test_name,
46  grpc_channel_args* client_args,
47  grpc_channel_args* server_args) {
49  gpr_log(GPR_INFO, "Running test: %s/%s", test_name, config.name);
50  f = config.create_fixture(client_args, server_args);
51  config.init_server(&f, server_args);
52  config.init_client(&f, client_args);
53  return f;
54 }
55 
58 }
59 
61  return n_seconds_from_now(5);
62 }
63 
65  grpc_event ev;
66  do {
68  } while (ev.type != GRPC_QUEUE_SHUTDOWN);
69 }
70 
72  if (!f->server) return;
73  grpc_server_shutdown_and_notify(f->server, f->cq, tag(1000));
74  grpc_event ev;
75  do {
77  nullptr);
78  } while (ev.type != GRPC_OP_COMPLETE || ev.tag != tag(1000));
79  grpc_server_destroy(f->server);
80  f->server = nullptr;
81 }
82 
84  if (!f->client) return;
85  grpc_channel_destroy(f->client);
86  f->client = nullptr;
87 }
88 
92 
94  drain_cq(f->cq);
96 }
97 
98 // Simple request via a server filter that saves the reported latency value.
100  grpc_call* c;
101  grpc_call* s;
102  grpc_slice request_payload_slice =
103  grpc_slice_from_copied_string("hello world");
104  grpc_byte_buffer* request_payload =
105  grpc_raw_byte_buffer_create(&request_payload_slice, 1);
107  begin_test(config, "filter_latency", nullptr, nullptr);
108  cq_verifier* cqv = cq_verifier_create(f.cq);
109  grpc_op ops[6];
110  grpc_op* op;
114  grpc_byte_buffer* request_payload_recv = nullptr;
119  int was_cancelled = 2;
120 
121  gpr_mu_lock(&g_mu);
126 
127  gpr_timespec deadline = five_seconds_from_now();
128  c = grpc_channel_create_call(f.client, nullptr, GRPC_PROPAGATE_DEFAULTS, f.cq,
129  grpc_slice_from_static_string("/foo"), nullptr,
130  deadline, nullptr);
131  GPR_ASSERT(c);
132 
137 
138  memset(ops, 0, sizeof(ops));
139  op = ops;
143  op->flags = 0;
144  op->reserved = nullptr;
145  op++;
147  op->data.send_message.send_message = request_payload;
148  op->flags = 0;
149  op->reserved = nullptr;
150  op++;
152  op->flags = 0;
153  op->reserved = nullptr;
154  op++;
157  op->flags = 0;
158  op->reserved = nullptr;
159  op++;
164  op->flags = 0;
165  op->reserved = nullptr;
166  op++;
167  error = grpc_call_start_batch(c, ops, static_cast<size_t>(op - ops), tag(1),
168  nullptr);
170 
171  error =
173  &request_metadata_recv, f.cq, f.cq, tag(101));
175 
176  CQ_EXPECT_COMPLETION(cqv, tag(101), 1);
177  cq_verify(cqv);
178 
179  memset(ops, 0, sizeof(ops));
180  op = ops;
183  op->flags = 0;
184  op->reserved = nullptr;
185  op++;
189  grpc_slice status_string = grpc_slice_from_static_string("xyz");
190  op->data.send_status_from_server.status_details = &status_string;
191  op->flags = 0;
192  op->reserved = nullptr;
193  op++;
196  op->flags = 0;
197  op->reserved = nullptr;
198  op++;
199  error = grpc_call_start_batch(s, ops, static_cast<size_t>(op - ops), tag(102),
200  nullptr);
202 
203  CQ_EXPECT_COMPLETION(cqv, tag(102), 1);
204  CQ_EXPECT_COMPLETION(cqv, tag(1), 1);
205  cq_verify(cqv);
206 
208  GPR_ASSERT(0 == grpc_slice_str_cmp(details, "xyz"));
209 
215 
216  grpc_call_unref(s);
218 
219  cq_verifier_destroy(cqv);
220 
221  grpc_byte_buffer_destroy(request_payload);
222  grpc_byte_buffer_destroy(request_payload_recv);
223 
224  end_test(&f);
225  config.tear_down_data(&f);
226 
228  const gpr_timespec max_latency = gpr_time_sub(end_time, start_time);
229 
230  // Perform checks after test tear-down
231  // Guards against the case that there's outstanding channel-related work on a
232  // call prior to verification
233  gpr_mu_lock(&g_mu);
234  GPR_ASSERT(gpr_time_cmp(max_latency, g_client_latency) >= 0);
236  GPR_ASSERT(gpr_time_cmp(max_latency, g_server_latency) >= 0);
238  // Server latency should always be smaller than client latency, however since
239  // we only calculate latency at destruction time, and that might mean that we
240  // need to wait for outstanding channel-related work, this isn't verifiable
241  // right now (the server MAY hold on to the call for longer than the client).
242  // GPR_ASSERT(gpr_time_cmp(g_server_latency, g_client_latency) < 0);
244 }
245 
246 /*******************************************************************************
247  * Test latency filter
248  */
249 
251  grpc_call_element* /*elem*/, const grpc_call_element_args* /*args*/) {
252  return GRPC_ERROR_NONE;
253 }
254 
256  const grpc_call_final_info* final_info,
257  grpc_closure* /*ignored*/) {
258  gpr_mu_lock(&g_mu);
259  g_client_latency = final_info->stats.latency;
261 }
262 
264  const grpc_call_final_info* final_info,
265  grpc_closure* /*ignored*/) {
266  gpr_mu_lock(&g_mu);
267  g_server_latency = final_info->stats.latency;
269 }
270 
272  grpc_channel_element* /*elem*/, grpc_channel_element_args* /*args*/) {
273  return GRPC_ERROR_NONE;
274 }
275 
277 
279  grpc_call_next_op, nullptr,
285  "client_filter_latency"};
286 
288  grpc_call_next_op, nullptr,
294  "server_filter_latency"};
295 
296 /*******************************************************************************
297  * Registration
298  */
299 
304  auto register_stage = [builder](grpc_channel_stack_type type,
305  const grpc_channel_filter* filter) {
306  builder->channel_init()->RegisterStage(
307  type, INT_MAX, [filter](grpc_core::ChannelStackBuilder* builder) {
308  // Want to add the filter as close to the end as possible, to
309  // make sure that all of the filters work well together.
310  // However, we can't add it at the very end, because the
311  // connected channel filter must be the last one. So we add it
312  // right before the last one.
313  auto it = builder->mutable_stack()->end();
314  --it;
315  builder->mutable_stack()->insert(it, filter);
316  return true;
317  });
318  };
319  register_stage(GRPC_CLIENT_CHANNEL, &test_client_filter);
321  register_stage(GRPC_SERVER_CHANNEL, &test_server_filter);
322  },
323  [config] { test_request(config); });
324 }
325 
GPR_TIMESPAN
@ GPR_TIMESPAN
Definition: gpr_types.h:45
grpc_slice_unref
GPRAPI void grpc_slice_unref(grpc_slice s)
Definition: slice_api.cc:32
GPR_INFO
#define GPR_INFO
Definition: include/grpc/impl/codegen/log.h:56
grpc_op::grpc_op_data::grpc_op_send_message::send_message
struct grpc_byte_buffer * send_message
Definition: grpc_types.h:668
grpc_op::flags
uint32_t flags
Definition: grpc_types.h:644
grpc_call_error
grpc_call_error
Definition: grpc_types.h:464
gpr_mu_unlock
GPRAPI void gpr_mu_unlock(gpr_mu *mu)
grpc_call_details_destroy
GRPCAPI void grpc_call_details_destroy(grpc_call_details *details)
Definition: call_details.cc:36
regen-readme.it
it
Definition: regen-readme.py:15
grpc_call_details_init
GRPCAPI void grpc_call_details_init(grpc_call_details *details)
Definition: call_details.cc:30
GRPC_ERROR_NONE
#define GRPC_ERROR_NONE
Definition: error.h:234
grpc_op::grpc_op_data::grpc_op_recv_status_on_client::trailing_metadata
grpc_metadata_array * trailing_metadata
Definition: grpc_types.h:701
grpc_timeout_seconds_to_deadline
gpr_timespec grpc_timeout_seconds_to_deadline(int64_t time_s)
Definition: test/core/util/test_config.cc:81
log.h
core_configuration.h
grpc_op::grpc_op_data::grpc_op_recv_status_on_client::status
grpc_status_code * status
Definition: grpc_types.h:702
grpc_raw_byte_buffer_create
GRPCAPI grpc_byte_buffer * grpc_raw_byte_buffer_create(grpc_slice *slices, size_t nslices)
Definition: byte_buffer.cc:34
memset
return memset(p, 0, total)
grpc_slice_from_copied_string
GPRAPI grpc_slice grpc_slice_from_copied_string(const char *source)
Definition: slice/slice.cc:177
grpc_op::grpc_op_data::send_initial_metadata
struct grpc_op::grpc_op_data::grpc_op_send_initial_metadata send_initial_metadata
gpr_time_0
GPRAPI gpr_timespec gpr_time_0(gpr_clock_type type)
Definition: src/core/lib/gpr/time.cc:47
grpc_channel_next_op
void grpc_channel_next_op(grpc_channel_element *elem, grpc_transport_op *op)
Definition: channel_stack.cc:264
grpc_metadata_array
Definition: grpc_types.h:579
grpc_core::CoreConfiguration::Builder
Definition: core_configuration.h:41
grpc_call_details
Definition: grpc_types.h:585
GRPC_CLIENT_DIRECT_CHANNEL
@ GRPC_CLIENT_DIRECT_CHANNEL
Definition: channel_stack_type.h:34
grpc_op::reserved
void * reserved
Definition: grpc_types.h:646
drain_cq
static void drain_cq(grpc_completion_queue *cq)
Definition: filter_latency.cc:64
string.h
grpc_channel_element
Definition: channel_stack.h:186
error
grpc_error_handle error
Definition: retry_filter.cc:499
end_time
static int64_t end_time
Definition: benchmark-getaddrinfo.c:38
test_client_filter
static const grpc_channel_filter test_client_filter
Definition: filter_latency.cc:278
grpc_status_code
grpc_status_code
Definition: include/grpc/impl/codegen/status.h:28
GRPC_QUEUE_SHUTDOWN
@ GRPC_QUEUE_SHUTDOWN
Definition: grpc_types.h:554
test_server_filter
static const grpc_channel_filter test_server_filter
Definition: filter_latency.cc:287
GRPC_OP_COMPLETE
@ GRPC_OP_COMPLETE
Definition: grpc_types.h:558
grpc_call_stats::latency
gpr_timespec latency
Definition: channel_stack.h:92
grpc_call_final_info::stats
grpc_call_stats stats
Definition: channel_stack.h:96
GRPC_CALL_OK
@ GRPC_CALL_OK
Definition: grpc_types.h:466
status
absl::Status status
Definition: rls.cc:251
time.h
grpc_call_stack_ignore_set_pollset_or_pollset_set
void grpc_call_stack_ignore_set_pollset_or_pollset_set(grpc_call_element *, grpc_polling_entity *)
Definition: channel_stack.cc:233
start_time
static int64_t start_time
Definition: benchmark-getaddrinfo.c:37
grpc_call_element
Definition: channel_stack.h:194
grpc_end2end_test_config
Definition: end2end_tests.h:53
g_mu
static gpr_mu g_mu
Definition: filter_latency.cc:38
TIMEOUT
@ TIMEOUT
Definition: filter_latency.cc:36
grpc_channel_args
Definition: grpc_types.h:132
grpc_core::ChannelStackBuilder
Definition: channel_stack_builder.h:41
grpc_op::data
union grpc_op::grpc_op_data data
grpc_end2end_test_fixture
Definition: end2end_tests.h:46
grpc_metadata_array_destroy
GRPCAPI void grpc_metadata_array_destroy(grpc_metadata_array *array)
Definition: metadata_array.cc:35
GRPC_SERVER_CHANNEL
@ GRPC_SERVER_CHANNEL
Definition: channel_stack_type.h:36
begin_test
static grpc_end2end_test_fixture begin_test(grpc_end2end_test_config config, const char *test_name, grpc_channel_args *client_args, grpc_channel_args *server_args)
Definition: filter_latency.cc:44
grpc_server_request_call
GRPCAPI grpc_call_error grpc_server_request_call(grpc_server *server, grpc_call **call, grpc_call_details *details, grpc_metadata_array *request_metadata, grpc_completion_queue *cq_bound_to_call, grpc_completion_queue *cq_for_notification, void *tag_new)
Definition: src/core/lib/surface/server.cc:1526
trailing_metadata_recv
static grpc_metadata_array trailing_metadata_recv
Definition: test/core/fling/client.cc:43
c
void c(T a)
Definition: miscompile_with_no_unique_address_test.cc:40
profile_analyzer.builder
builder
Definition: profile_analyzer.py:159
channel_init.h
autogen_x86imm.f
f
Definition: autogen_x86imm.py:9
init_call_elem
static grpc_error_handle init_call_elem(grpc_call_element *, const grpc_call_element_args *)
Definition: filter_latency.cc:250
GRPC_OP_RECV_INITIAL_METADATA
@ GRPC_OP_RECV_INITIAL_METADATA
Definition: grpc_types.h:617
GPR_ASSERT
#define GPR_ASSERT(x)
Definition: include/grpc/impl/codegen/log.h:94
GRPC_OP_SEND_STATUS_FROM_SERVER
@ GRPC_OP_SEND_STATUS_FROM_SERVER
Definition: grpc_types.h:612
gpr_time_cmp
GPRAPI int gpr_time_cmp(gpr_timespec a, gpr_timespec b)
Definition: src/core/lib/gpr/time.cc:30
filter_latency
void filter_latency(grpc_end2end_test_config config)
Definition: filter_latency.cc:300
end_test
static void end_test(grpc_end2end_test_fixture *f)
Definition: filter_latency.cc:89
config
struct config_s config
grpc_channel_stack_no_post_init
void grpc_channel_stack_no_post_init(grpc_channel_stack *, grpc_channel_element *)
Definition: channel_stack.cc:282
grpc_call_unref
GRPCAPI void grpc_call_unref(grpc_call *call)
Definition: call.cc:1770
gpr_time_sub
GPRAPI gpr_timespec gpr_time_sub(gpr_timespec a, gpr_timespec b)
Definition: src/core/lib/gpr/time.cc:168
grpc_op::grpc_op_data::grpc_op_send_status_from_server::status
grpc_status_code status
Definition: grpc_types.h:673
channel_stack.h
gpr_log
GPRAPI void gpr_log(const char *file, int line, gpr_log_severity severity, const char *format,...) GPR_PRINT_FORMAT_CHECK(4
gpr_mu_init
GPRAPI void gpr_mu_init(gpr_mu *mu)
grpc_event
Definition: grpc_types.h:564
grpc_completion_queue
Definition: completion_queue.cc:347
cq_verifier_destroy
void cq_verifier_destroy(cq_verifier *v)
Definition: cq_verifier.cc:92
grpc_call
struct grpc_call grpc_call
Definition: grpc_types.h:70
grpc_byte_buffer
Definition: grpc_types.h:43
grpc_channel_next_get_info
void grpc_channel_next_get_info(grpc_channel_element *elem, const grpc_channel_info *channel_info)
Definition: channel_stack.cc:258
grpc_op
Definition: grpc_types.h:640
GRPC_OP_SEND_MESSAGE
@ GRPC_OP_SEND_MESSAGE
Definition: grpc_types.h:602
grpc_slice_from_static_string
GPRAPI grpc_slice grpc_slice_from_static_string(const char *source)
Definition: slice/slice.cc:89
cq_verifier_create
cq_verifier * cq_verifier_create(grpc_completion_queue *cq)
Definition: cq_verifier.cc:86
was_cancelled
static int was_cancelled
Definition: test/core/fling/server.cc:58
five_seconds_from_now
static gpr_timespec five_seconds_from_now(void)
Definition: filter_latency.cc:60
grpc_slice
Definition: include/grpc/impl/codegen/slice.h:65
intptr_t
_W64 signed int intptr_t
Definition: stdint-msvc2008.h:118
gpr_mu_lock
GPRAPI void gpr_mu_lock(gpr_mu *mu)
cq_verifier
Definition: cq_verifier.cc:76
request_metadata_recv
static grpc_metadata_array request_metadata_recv
Definition: test/core/fling/server.cc:48
grpc_call_next_op
void grpc_call_next_op(grpc_call_element *elem, grpc_transport_stream_op_batch *op)
Definition: channel_stack.cc:251
grpc_server_destroy
GRPCAPI void grpc_server_destroy(grpc_server *server)
Definition: src/core/lib/surface/server.cc:1519
grpc_call_element_args
Definition: channel_stack.h:80
CQ_EXPECT_COMPLETION
#define CQ_EXPECT_COMPLETION(v, tag, success)
Definition: cq_verifier.h:58
end2end_tests.h
gpr_now
GPRAPI gpr_timespec gpr_now(gpr_clock_type clock)
init_channel_elem
static grpc_error_handle init_channel_elem(grpc_channel_element *, grpc_channel_element_args *)
Definition: filter_latency.cc:271
n
int n
Definition: abseil-cpp/absl/container/btree_test.cc:1080
grpc_channel_filter
Definition: channel_stack.h:111
grpc_op::op
grpc_op_type op
Definition: grpc_types.h:642
grpc_op::grpc_op_data::grpc_op_send_initial_metadata::count
size_t count
Definition: grpc_types.h:653
grpc_op::grpc_op_data::grpc_op_recv_status_on_client::status_details
grpc_slice * status_details
Definition: grpc_types.h:703
shutdown_client
static void shutdown_client(grpc_end2end_test_fixture *f)
Definition: filter_latency.cc:83
details
static grpc_slice details
Definition: test/core/fling/client.cc:46
grpc_channel_create_call
GRPCAPI grpc_call * grpc_channel_create_call(grpc_channel *channel, grpc_call *parent_call, uint32_t propagation_mask, grpc_completion_queue *completion_queue, grpc_slice method, const grpc_slice *host, gpr_timespec deadline, void *reserved)
Definition: channel.cc:311
grpc_op::grpc_op_data::recv_close_on_server
struct grpc_op::grpc_op_data::grpc_op_recv_close_on_server recv_close_on_server
test_request
static void test_request(grpc_end2end_test_config config)
Definition: filter_latency.cc:99
GRPC_PROPAGATE_DEFAULTS
#define GRPC_PROPAGATE_DEFAULTS
Definition: propagation_bits.h:45
grpc_op::grpc_op_data::send_status_from_server
struct grpc_op::grpc_op_data::grpc_op_send_status_from_server send_status_from_server
cq_verifier.h
gpr_mu
pthread_mutex_t gpr_mu
Definition: impl/codegen/sync_posix.h:47
filter_latency_pre_init
void filter_latency_pre_init(void)
Definition: filter_latency.cc:326
grpc_completion_queue_destroy
GRPCAPI void grpc_completion_queue_destroy(grpc_completion_queue *cq)
Definition: completion_queue.cc:1424
GRPC_CLIENT_CHANNEL
@ GRPC_CLIENT_CHANNEL
Definition: channel_stack_type.h:26
server_destroy_call_elem
static void server_destroy_call_elem(grpc_call_element *, const grpc_call_final_info *final_info, grpc_closure *)
Definition: filter_latency.cc:263
GRPC_OP_SEND_INITIAL_METADATA
@ GRPC_OP_SEND_INITIAL_METADATA
Definition: grpc_types.h:598
grpc_op::grpc_op_data::send_message
struct grpc_op::grpc_op_data::grpc_op_send_message send_message
alloc.h
grpc_op::grpc_op_data::grpc_op_send_initial_metadata::metadata
grpc_metadata * metadata
Definition: grpc_types.h:654
grpc_core::BuildCoreConfiguration
void BuildCoreConfiguration(CoreConfiguration::Builder *builder)
Definition: grpc_plugin_registry.cc:109
client_destroy_call_elem
static void client_destroy_call_elem(grpc_call_element *, const grpc_call_final_info *final_info, grpc_closure *)
Definition: filter_latency.cc:255
grpc_op::grpc_op_data::recv_status_on_client
struct grpc_op::grpc_op_data::grpc_op_recv_status_on_client recv_status_on_client
grpc_op::grpc_op_data::grpc_op_send_status_from_server::trailing_metadata_count
size_t trailing_metadata_count
Definition: grpc_types.h:671
shutdown_server
static void shutdown_server(grpc_end2end_test_fixture *f)
Definition: filter_latency.cc:71
grpc_server_shutdown_and_notify
GRPCAPI void grpc_server_shutdown_and_notify(grpc_server *server, grpc_completion_queue *cq, void *tag)
Definition: src/core/lib/surface/server.cc:1503
grpc_channel_stack_type
grpc_channel_stack_type
Definition: channel_stack_type.h:24
grpc_byte_buffer_destroy
GRPCAPI void grpc_byte_buffer_destroy(grpc_byte_buffer *bb)
Definition: byte_buffer.cc:81
grpc_completion_queue_next
GRPCAPI grpc_event grpc_completion_queue_next(grpc_completion_queue *cq, gpr_timespec deadline, void *reserved)
Definition: completion_queue.cc:1133
cq_verify
void cq_verify(cq_verifier *v, int timeout_sec)
Definition: cq_verifier.cc:268
grpc_completion_queue_shutdown
GRPCAPI void grpc_completion_queue_shutdown(grpc_completion_queue *cq)
Definition: completion_queue.cc:1416
g_server_latency
static gpr_timespec g_server_latency
Definition: filter_latency.cc:40
grpc_channel_destroy
GRPCAPI void grpc_channel_destroy(grpc_channel *channel)
Definition: channel.cc:437
grpc_core::CoreConfiguration::RunWithSpecialConfiguration
static void RunWithSpecialConfiguration(BuildFunc build_configuration, RunFunc code_to_run)
Definition: core_configuration.h:129
g_client_latency
static gpr_timespec g_client_latency
Definition: filter_latency.cc:39
n_seconds_from_now
static gpr_timespec n_seconds_from_now(int n)
Definition: filter_latency.cc:56
config_s
Definition: bloaty/third_party/zlib/deflate.c:120
GRPC_OP_RECV_CLOSE_ON_SERVER
@ GRPC_OP_RECV_CLOSE_ON_SERVER
Definition: grpc_types.h:633
GRPC_STATUS_UNIMPLEMENTED
@ GRPC_STATUS_UNIMPLEMENTED
Definition: include/grpc/impl/codegen/status.h:124
tag
static void * tag(intptr_t t)
Definition: filter_latency.cc:42
grpc_channel_element_args
Definition: channel_stack.h:74
grpc_op::grpc_op_data::recv_initial_metadata
struct grpc_op::grpc_op_data::grpc_op_recv_initial_metadata recv_initial_metadata
grpc_call_final_info
Definition: channel_stack.h:95
grpc_op::grpc_op_data::grpc_op_send_status_from_server::status_details
grpc_slice * status_details
Definition: grpc_types.h:677
asyncio_get_stats.type
type
Definition: asyncio_get_stats.py:37
gpr_timespec
Definition: gpr_types.h:50
grpc_event::type
grpc_completion_type type
Definition: grpc_types.h:566
grpc_error
Definition: error_internal.h:42
GRPC_OP_RECV_STATUS_ON_CLIENT
@ GRPC_OP_RECV_STATUS_ON_CLIENT
Definition: grpc_types.h:627
grpc_op::grpc_op_data::grpc_op_recv_initial_metadata::recv_initial_metadata
grpc_metadata_array * recv_initial_metadata
Definition: grpc_types.h:685
GPR_CLOCK_REALTIME
@ GPR_CLOCK_REALTIME
Definition: gpr_types.h:39
grpc_slice_str_cmp
GPRAPI int grpc_slice_str_cmp(grpc_slice a, const char *b)
Definition: slice/slice.cc:426
channel_stack_builder.h
grpc_closure
Definition: closure.h:56
op
static grpc_op * op
Definition: test/core/fling/client.cc:47
ops
static grpc_op ops[6]
Definition: test/core/fling/client.cc:39
initial_metadata_recv
static grpc_metadata_array initial_metadata_recv
Definition: test/core/fling/client.cc:42
grpc_call_start_batch
GRPCAPI grpc_call_error grpc_call_start_batch(grpc_call *call, const grpc_op *ops, size_t nops, void *tag, void *reserved)
Definition: call.cc:1831
grpc_event::tag
void * tag
Definition: grpc_types.h:576
destroy_channel_elem
static void destroy_channel_elem(grpc_channel_element *)
Definition: filter_latency.cc:276
grpc_op::grpc_op_data::grpc_op_recv_close_on_server::cancelled
int * cancelled
Definition: grpc_types.h:714
cq
static grpc_completion_queue * cq
Definition: test/core/fling/client.cc:37
GRPC_OP_SEND_CLOSE_FROM_CLIENT
@ GRPC_OP_SEND_CLOSE_FROM_CLIENT
Definition: grpc_types.h:607
call_details
static grpc_call_details call_details
Definition: test/core/fling/server.cc:47
grpc_metadata_array_init
GRPCAPI void grpc_metadata_array_init(grpc_metadata_array *array)
Definition: metadata_array.cc:30


grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:23