Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
861fbcbf
Commit
861fbcbf
authored
9 years ago
by
Masood Malekghassemi
Browse files
Options
Downloads
Patches
Plain Diff
Coalesce GRPC_TRACE=surface,batch into GRPC_TRACE=surface
parent
25061413
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/core/surface/call.h
+4
-5
4 additions, 5 deletions
src/core/surface/call.h
src/core/surface/call_log_batch.c
+0
-2
0 additions, 2 deletions
src/core/surface/call_log_batch.c
src/core/surface/init.c
+0
-1
0 additions, 1 deletion
src/core/surface/init.c
with
4 additions
and
8 deletions
src/core/surface/call.h
+
4
−
5
View file @
861fbcbf
...
...
@@ -36,6 +36,7 @@
#include
"src/core/channel/channel_stack.h"
#include
"src/core/channel/context.h"
#include
"src/core/surface/surface_trace.h"
#include
<grpc/grpc.h>
#ifdef __cplusplus
...
...
@@ -128,8 +129,6 @@ grpc_call_stack *grpc_call_get_call_stack(grpc_call *call);
/* Given the top call_element, get the call object. */
grpc_call
*
grpc_call_from_top_element
(
grpc_call_element
*
surface_element
);
extern
int
grpc_trace_batch
;
void
grpc_call_log_batch
(
char
*
file
,
int
line
,
gpr_log_severity
severity
,
grpc_call
*
call
,
const
grpc_op
*
ops
,
size_t
nops
,
void
*
tag
);
...
...
@@ -155,17 +154,17 @@ void grpc_call_context_set(grpc_call *call, grpc_context_index elem,
void
*
grpc_call_context_get
(
grpc_call
*
call
,
grpc_context_index
elem
);
#define GRPC_CALL_LOG_BATCH(sev, call, ops, nops, tag) \
if (grpc_
trace_batch
) grpc_call_log_batch(sev, call, ops, nops, tag)
if (grpc_
surface_trace
) grpc_call_log_batch(sev, call, ops, nops, tag)
#define GRPC_SERVER_LOG_REQUEST_CALL(sev, server, call, details, \
initial_metadata, cq_bound_to_call, \
cq_for_notifications, tag) \
if (grpc_
trace_batch)
\
if (grpc_
surface_trace)
\
grpc_server_log_request_call(sev, server, call, details, initial_metadata, \
cq_bound_to_call, cq_for_notifications, tag)
#define GRPC_SERVER_LOG_SHUTDOWN(sev, server, cq, tag) \
if (grpc_
trace_batch
) grpc_server_log_shutdown(sev, server, cq, tag)
if (grpc_
surface_trace
) grpc_server_log_shutdown(sev, server, cq, tag)
gpr_uint8
grpc_call_is_client
(
grpc_call
*
call
);
...
...
This diff is collapsed.
Click to expand it.
src/core/surface/call_log_batch.c
+
0
−
2
View file @
861fbcbf
...
...
@@ -37,8 +37,6 @@
#include
<grpc/support/alloc.h>
#include
<grpc/support/string_util.h>
int
grpc_trace_batch
=
0
;
static
void
add_metadata
(
gpr_strvec
*
b
,
const
grpc_metadata
*
md
,
size_t
count
)
{
size_t
i
;
for
(
i
=
0
;
i
<
count
;
i
++
)
{
...
...
This diff is collapsed.
Click to expand it.
src/core/surface/init.c
+
0
−
1
View file @
861fbcbf
...
...
@@ -102,7 +102,6 @@ void grpc_init(void) {
grpc_register_tracer
(
"surface"
,
&
grpc_surface_trace
);
grpc_register_tracer
(
"http"
,
&
grpc_http_trace
);
grpc_register_tracer
(
"flowctl"
,
&
grpc_flowctl_trace
);
grpc_register_tracer
(
"batch"
,
&
grpc_trace_batch
);
grpc_register_tracer
(
"connectivity_state"
,
&
grpc_connectivity_state_trace
);
grpc_security_pre_init
();
grpc_iomgr_init
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment