Resolved merge conflicts in grpc.gyp

pull/3625/head
murgatroid99 9 years ago
commit 243be4e447
  1. 3
      build.yaml
  2. 2
      grpc.gyp
  3. 8
      src/core/client_config/subchannel.h
  4. 6
      src/core/compression/algorithm.c
  5. 61
      src/core/security/credentials.c
  6. 2
      src/core/security/security_context.c
  7. 7
      src/core/security/server_secure_chttp2.c
  8. 12
      src/core/surface/api_trace.h
  9. 2
      src/core/surface/call.c
  10. 2
      src/core/surface/call.h
  11. 22
      src/core/surface/channel.c
  12. 10
      src/core/surface/channel_connectivity.c
  13. 16
      src/core/surface/completion_queue.c
  14. 2
      src/core/surface/lame_client.c
  15. 7
      src/core/surface/secure_channel_create.c
  16. 10
      src/core/surface/server.c
  17. 2
      src/core/surface/surface_trace.h
  18. 8
      src/core/surface/version.c
  19. 5
      vsprojects/vcxproj/grpc/grpc.vcxproj
  20. 9
      vsprojects/vcxproj/grpc/grpc.vcxproj.filters
  21. 5
      vsprojects/vcxproj/grpc_unsecure/grpc_unsecure.vcxproj
  22. 9
      vsprojects/vcxproj/grpc_unsecure/grpc_unsecure.vcxproj.filters

@ -180,6 +180,7 @@ filegroups:
- src/core/profiling/timers.h - src/core/profiling/timers.h
- src/core/statistics/census_interface.h - src/core/statistics/census_interface.h
- src/core/statistics/census_rpc_stats.h - src/core/statistics/census_rpc_stats.h
- src/core/surface/api_trace.h
- src/core/surface/byte_buffer_queue.h - src/core/surface/byte_buffer_queue.h
- src/core/surface/call.h - src/core/surface/call.h
- src/core/surface/channel.h - src/core/surface/channel.h
@ -293,6 +294,7 @@ filegroups:
- src/core/json/json_writer.c - src/core/json/json_writer.c
- src/core/profiling/basic_timers.c - src/core/profiling/basic_timers.c
- src/core/profiling/stap_timers.c - src/core/profiling/stap_timers.c
- src/core/surface/api_trace.c
- src/core/surface/byte_buffer.c - src/core/surface/byte_buffer.c
- src/core/surface/byte_buffer_queue.c - src/core/surface/byte_buffer_queue.c
- src/core/surface/byte_buffer_reader.c - src/core/surface/byte_buffer_reader.c
@ -310,7 +312,6 @@ filegroups:
- src/core/surface/server.c - src/core/surface/server.c
- src/core/surface/server_chttp2.c - src/core/surface/server_chttp2.c
- src/core/surface/server_create.c - src/core/surface/server_create.c
- src/core/surface/surface_trace.c
- src/core/surface/version.c - src/core/surface/version.c
- src/core/transport/chttp2/alpn.c - src/core/transport/chttp2/alpn.c
- src/core/transport/chttp2/bin_encoder.c - src/core/transport/chttp2/bin_encoder.c

@ -240,6 +240,7 @@
'src/core/json/json_writer.c', 'src/core/json/json_writer.c',
'src/core/profiling/basic_timers.c', 'src/core/profiling/basic_timers.c',
'src/core/profiling/stap_timers.c', 'src/core/profiling/stap_timers.c',
'src/core/surface/api_trace.c',
'src/core/surface/byte_buffer.c', 'src/core/surface/byte_buffer.c',
'src/core/surface/byte_buffer_queue.c', 'src/core/surface/byte_buffer_queue.c',
'src/core/surface/byte_buffer_reader.c', 'src/core/surface/byte_buffer_reader.c',
@ -257,7 +258,6 @@
'src/core/surface/server.c', 'src/core/surface/server.c',
'src/core/surface/server_chttp2.c', 'src/core/surface/server_chttp2.c',
'src/core/surface/server_create.c', 'src/core/surface/server_create.c',
'src/core/surface/surface_trace.c',
'src/core/surface/version.c', 'src/core/surface/version.c',
'src/core/transport/chttp2/alpn.c', 'src/core/transport/chttp2/alpn.c',
'src/core/transport/chttp2/bin_encoder.c', 'src/core/transport/chttp2/bin_encoder.c',

@ -64,13 +64,13 @@ typedef struct grpc_subchannel_args grpc_subchannel_args;
#define GRPC_SUBCHANNEL_REF_EXTRA_ARGS #define GRPC_SUBCHANNEL_REF_EXTRA_ARGS
#endif #endif
void grpc_subchannel_ref( void grpc_subchannel_ref(grpc_subchannel *channel
grpc_subchannel *channel GRPC_SUBCHANNEL_REF_EXTRA_ARGS); GRPC_SUBCHANNEL_REF_EXTRA_ARGS);
void grpc_subchannel_unref(grpc_exec_ctx *exec_ctx, void grpc_subchannel_unref(grpc_exec_ctx *exec_ctx,
grpc_subchannel *channel grpc_subchannel *channel
GRPC_SUBCHANNEL_REF_EXTRA_ARGS); GRPC_SUBCHANNEL_REF_EXTRA_ARGS);
void grpc_subchannel_call_ref( void grpc_subchannel_call_ref(grpc_subchannel_call *call
grpc_subchannel_call *call GRPC_SUBCHANNEL_REF_EXTRA_ARGS); GRPC_SUBCHANNEL_REF_EXTRA_ARGS);
void grpc_subchannel_call_unref(grpc_exec_ctx *exec_ctx, void grpc_subchannel_call_unref(grpc_exec_ctx *exec_ctx,
grpc_subchannel_call *call grpc_subchannel_call *call
GRPC_SUBCHANNEL_REF_EXTRA_ARGS); GRPC_SUBCHANNEL_REF_EXTRA_ARGS);

@ -47,9 +47,9 @@ int grpc_compression_algorithm_parse(const char *name, size_t name_length,
* data, for example) */ * data, for example) */
GRPC_API_TRACE( GRPC_API_TRACE(
"grpc_compression_algorithm_parse(" "grpc_compression_algorithm_parse("
"name=%*.*s, name_length=%lu, algorithm=%p)", 5, "name=%*.*s, name_length=%lu, algorithm=%p)",
((int)name_length, (int)name_length, name, 5, ((int)name_length, (int)name_length, name, (unsigned long)name_length,
(unsigned long)name_length, algorithm)); algorithm));
if (name_length == 0) { if (name_length == 0) {
return 0; return 0;
} }

@ -171,8 +171,8 @@ void grpc_server_credentials_set_auth_metadata_processor(
grpc_server_credentials *creds, grpc_auth_metadata_processor processor) { grpc_server_credentials *creds, grpc_auth_metadata_processor processor) {
GRPC_API_TRACE( GRPC_API_TRACE(
"grpc_server_credentials_set_auth_metadata_processor(" "grpc_server_credentials_set_auth_metadata_processor("
"creds=%p, " "creds=%p, "
"processor=grpc_auth_metadata_processor { process: %lx, state: %p })", "processor=grpc_auth_metadata_processor { process: %lx, state: %p })",
3, (creds, (unsigned long)processor.process, processor.state)); 3, (creds, (unsigned long)processor.process, processor.state));
if (creds == NULL) return; if (creds == NULL) return;
if (creds->processor.destroy != NULL && creds->processor.state != NULL) { if (creds->processor.destroy != NULL && creds->processor.state != NULL) {
@ -325,10 +325,11 @@ grpc_credentials *grpc_ssl_credentials_create(
const char *pem_root_certs, grpc_ssl_pem_key_cert_pair *pem_key_cert_pair, const char *pem_root_certs, grpc_ssl_pem_key_cert_pair *pem_key_cert_pair,
void *reserved) { void *reserved) {
grpc_ssl_credentials *c = gpr_malloc(sizeof(grpc_ssl_credentials)); grpc_ssl_credentials *c = gpr_malloc(sizeof(grpc_ssl_credentials));
GRPC_API_TRACE("grpc_ssl_credentials_create(pem_root_certs=%s, " GRPC_API_TRACE(
"pem_key_cert_pair=%p, " "grpc_ssl_credentials_create(pem_root_certs=%s, "
"reserved=%p)", "pem_key_cert_pair=%p, "
3, (pem_root_certs, pem_key_cert_pair, reserved)); "reserved=%p)",
3, (pem_root_certs, pem_key_cert_pair, reserved));
GPR_ASSERT(reserved == NULL); GPR_ASSERT(reserved == NULL);
memset(c, 0, sizeof(grpc_ssl_credentials)); memset(c, 0, sizeof(grpc_ssl_credentials));
c->base.type = GRPC_CREDENTIALS_TYPE_SSL; c->base.type = GRPC_CREDENTIALS_TYPE_SSL;
@ -345,10 +346,10 @@ grpc_server_credentials *grpc_ssl_server_credentials_create(
gpr_malloc(sizeof(grpc_ssl_server_credentials)); gpr_malloc(sizeof(grpc_ssl_server_credentials));
GRPC_API_TRACE( GRPC_API_TRACE(
"grpc_ssl_server_credentials_create(" "grpc_ssl_server_credentials_create("
"pem_root_certs=%s, pem_key_cert_pairs=%p, num_key_cert_pairs=%lu, " "pem_root_certs=%s, pem_key_cert_pairs=%p, num_key_cert_pairs=%lu, "
"force_client_auth=%d, reserved=%p)", 5, "force_client_auth=%d, reserved=%p)",
(pem_root_certs, pem_key_cert_pairs, (unsigned long)num_key_cert_pairs, 5, (pem_root_certs, pem_key_cert_pairs, (unsigned long)num_key_cert_pairs,
force_client_auth, reserved)); force_client_auth, reserved));
GPR_ASSERT(reserved == NULL); GPR_ASSERT(reserved == NULL);
memset(c, 0, sizeof(grpc_ssl_server_credentials)); memset(c, 0, sizeof(grpc_ssl_server_credentials));
c->base.type = GRPC_CREDENTIALS_TYPE_SSL; c->base.type = GRPC_CREDENTIALS_TYPE_SSL;
@ -469,12 +470,12 @@ grpc_credentials *grpc_service_account_jwt_access_credentials_create(
const char *json_key, gpr_timespec token_lifetime, void *reserved) { const char *json_key, gpr_timespec token_lifetime, void *reserved) {
GRPC_API_TRACE( GRPC_API_TRACE(
"grpc_service_account_jwt_access_credentials_create(" "grpc_service_account_jwt_access_credentials_create("
"json_key=%s, " "json_key=%s, "
"token_lifetime=" "token_lifetime="
"gpr_timespec { tv_sec: %ld, tv_nsec: %d, clock_type: %d }, " "gpr_timespec { tv_sec: %ld, tv_nsec: %d, clock_type: %d }, "
"reserved=%p)", "reserved=%p)",
5, (json_key, (long)token_lifetime.tv_sec, 5, (json_key, (long)token_lifetime.tv_sec, token_lifetime.tv_nsec,
token_lifetime.tv_nsec, (int)token_lifetime.clock_type, reserved)); (int)token_lifetime.clock_type, reserved));
GPR_ASSERT(reserved == NULL); GPR_ASSERT(reserved == NULL);
return grpc_service_account_jwt_access_credentials_create_from_auth_json_key( return grpc_service_account_jwt_access_credentials_create_from_auth_json_key(
grpc_auth_json_key_create_from_string(json_key), token_lifetime); grpc_auth_json_key_create_from_string(json_key), token_lifetime);
@ -748,9 +749,10 @@ grpc_credentials *grpc_refresh_token_credentials_create_from_auth_refresh_token(
grpc_credentials *grpc_google_refresh_token_credentials_create( grpc_credentials *grpc_google_refresh_token_credentials_create(
const char *json_refresh_token, void *reserved) { const char *json_refresh_token, void *reserved) {
GRPC_API_TRACE("grpc_refresh_token_credentials_create(json_refresh_token=%s, " GRPC_API_TRACE(
"reserved=%p)", "grpc_refresh_token_credentials_create(json_refresh_token=%s, "
2, (json_refresh_token, reserved)); "reserved=%p)",
2, (json_refresh_token, reserved));
GPR_ASSERT(reserved == NULL); GPR_ASSERT(reserved == NULL);
return grpc_refresh_token_credentials_create_from_auth_refresh_token( return grpc_refresh_token_credentials_create_from_auth_refresh_token(
grpc_auth_refresh_token_create_from_string(json_refresh_token)); grpc_auth_refresh_token_create_from_string(json_refresh_token));
@ -851,9 +853,10 @@ grpc_credentials *grpc_access_token_credentials_create(const char *access_token,
grpc_access_token_credentials *c = grpc_access_token_credentials *c =
gpr_malloc(sizeof(grpc_access_token_credentials)); gpr_malloc(sizeof(grpc_access_token_credentials));
char *token_md_value; char *token_md_value;
GRPC_API_TRACE("grpc_access_token_credentials_create(access_token=%s, " GRPC_API_TRACE(
"reserved=%p)", 2, "grpc_access_token_credentials_create(access_token=%s, "
(access_token, reserved)); "reserved=%p)",
2, (access_token, reserved));
GPR_ASSERT(reserved == NULL); GPR_ASSERT(reserved == NULL);
memset(c, 0, sizeof(grpc_access_token_credentials)); memset(c, 0, sizeof(grpc_access_token_credentials));
c->base.type = GRPC_CREDENTIALS_TYPE_OAUTH2; c->base.type = GRPC_CREDENTIALS_TYPE_OAUTH2;
@ -1090,9 +1093,10 @@ grpc_credentials *grpc_composite_credentials_create(grpc_credentials *creds1,
grpc_credentials_array creds1_array; grpc_credentials_array creds1_array;
grpc_credentials_array creds2_array; grpc_credentials_array creds2_array;
grpc_composite_credentials *c; grpc_composite_credentials *c;
GRPC_API_TRACE("grpc_composite_credentials_create(creds1=%p, creds2=%p, " GRPC_API_TRACE(
"reserved=%p)", 3, "grpc_composite_credentials_create(creds1=%p, creds2=%p, "
(creds1, creds2, reserved)); "reserved=%p)",
3, (creds1, creds2, reserved));
GPR_ASSERT(reserved == NULL); GPR_ASSERT(reserved == NULL);
GPR_ASSERT(creds1 != NULL); GPR_ASSERT(creds1 != NULL);
GPR_ASSERT(creds2 != NULL); GPR_ASSERT(creds2 != NULL);
@ -1195,9 +1199,10 @@ static grpc_credentials_vtable iam_vtable = {
grpc_credentials *grpc_google_iam_credentials_create( grpc_credentials *grpc_google_iam_credentials_create(
const char *token, const char *authority_selector, void *reserved) { const char *token, const char *authority_selector, void *reserved) {
grpc_google_iam_credentials *c; grpc_google_iam_credentials *c;
GRPC_API_TRACE("grpc_iam_credentials_create(token=%s, authority_selector=%s, " GRPC_API_TRACE(
"reserved=%p)", "grpc_iam_credentials_create(token=%s, authority_selector=%s, "
3, (token, authority_selector, reserved)); "reserved=%p)",
3, (token, authority_selector, reserved));
GPR_ASSERT(reserved == NULL); GPR_ASSERT(reserved == NULL);
GPR_ASSERT(token != NULL); GPR_ASSERT(token != NULL);
GPR_ASSERT(authority_selector != NULL); GPR_ASSERT(authority_selector != NULL);

@ -273,7 +273,7 @@ void grpc_auth_context_add_property(grpc_auth_context *ctx, const char *name,
grpc_auth_property *prop; grpc_auth_property *prop;
GRPC_API_TRACE( GRPC_API_TRACE(
"grpc_auth_context_add_property(ctx=%p, name=%s, value=%*.*s, " "grpc_auth_context_add_property(ctx=%p, name=%s, value=%*.*s, "
"value_length=%lu)", "value_length=%lu)",
6, (ctx, name, (int)value_length, (int)value_length, value, 6, (ctx, name, (int)value_length, (int)value_length, value,
(unsigned long)value_length)); (unsigned long)value_length));
ensure_auth_context_capacity(ctx); ensure_auth_context_capacity(ctx);

@ -223,9 +223,10 @@ int grpc_server_add_secure_http2_port(grpc_server *server, const char *addr,
grpc_security_connector *sc = NULL; grpc_security_connector *sc = NULL;
grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT; grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT;
GRPC_API_TRACE("grpc_server_add_secure_http2_port(" GRPC_API_TRACE(
"server=%p, addr=%s, creds=%p)", "grpc_server_add_secure_http2_port("
3, (server, addr, creds)); "server=%p, addr=%s, creds=%p)",
3, (server, addr, creds));
/* create security context */ /* create security context */
if (creds == NULL) goto error; if (creds == NULL) goto error;

@ -51,15 +51,15 @@ extern int grpc_api_trace;
#define GRPC_API_TRACE_UNWRAP7(a, b, c, d, e, f, g) , a, b, c, d, e, f, g #define GRPC_API_TRACE_UNWRAP7(a, b, c, d, e, f, g) , a, b, c, d, e, f, g
#define GRPC_API_TRACE_UNWRAP8(a, b, c, d, e, f, g, h) , a, b, c, d, e, f, g, h #define GRPC_API_TRACE_UNWRAP8(a, b, c, d, e, f, g, h) , a, b, c, d, e, f, g, h
#define GRPC_API_TRACE_UNWRAP9(a, b, c, d, e, f, g, h, i) \ #define GRPC_API_TRACE_UNWRAP9(a, b, c, d, e, f, g, h, i) \
, a, b, c, d, e, f, g, h, i , a, b, c, d, e, f, g, h, i
#define GRPC_API_TRACE_UNWRAP10(a, b, c, d, e, f, g, h, i, j) \ #define GRPC_API_TRACE_UNWRAP10(a, b, c, d, e, f, g, h, i, j) \
, a, b, c, d, e, f, g, h, i, j , a, b, c, d, e, f, g, h, i, j
/* Due to the limitations of C89's preprocessor, the arity of the var-arg list /* Due to the limitations of C89's preprocessor, the arity of the var-arg list
'nargs' must be specified. */ 'nargs' must be specified. */
#define GRPC_API_TRACE(fmt, nargs, args) \ #define GRPC_API_TRACE(fmt, nargs, args) \
if (grpc_api_trace) { \ if (grpc_api_trace) { \
gpr_log(GPR_INFO, fmt GRPC_API_TRACE_UNWRAP##nargs args ); \ gpr_log(GPR_INFO, fmt GRPC_API_TRACE_UNWRAP##nargs args); \
} }
#endif /* GRPC_INTERNAL_CORE_SURFACE_API_TRACE_H */ #endif /* GRPC_INTERNAL_CORE_SURFACE_API_TRACE_H */

@ -1325,7 +1325,7 @@ grpc_call_error grpc_call_cancel_with_status(grpc_call *c,
grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT; grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT;
GRPC_API_TRACE( GRPC_API_TRACE(
"grpc_call_cancel_with_status(" "grpc_call_cancel_with_status("
"c=%p, status=%d, description=%s, reserved=%p)", "c=%p, status=%d, description=%s, reserved=%p)",
4, (c, (int)status, description, reserved)); 4, (c, (int)status, description, reserved));
GPR_ASSERT(reserved == NULL); GPR_ASSERT(reserved == NULL);
lock(c); lock(c);

@ -160,7 +160,7 @@ void *grpc_call_context_get(grpc_call *call, grpc_context_index elem);
#define GRPC_SERVER_LOG_REQUEST_CALL(sev, server, call, details, \ #define GRPC_SERVER_LOG_REQUEST_CALL(sev, server, call, details, \
initial_metadata, cq_bound_to_call, \ initial_metadata, cq_bound_to_call, \
cq_for_notifications, tag) \ cq_for_notifications, tag) \
if (grpc_api_trace) \ if (grpc_api_trace) \
grpc_server_log_request_call(sev, server, call, details, initial_metadata, \ grpc_server_log_request_call(sev, server, call, details, initial_metadata, \
cq_bound_to_call, cq_for_notifications, tag) cq_bound_to_call, cq_for_notifications, tag)

@ -217,13 +217,13 @@ grpc_call *grpc_channel_create_call(grpc_channel *channel,
gpr_timespec deadline, void *reserved) { gpr_timespec deadline, void *reserved) {
GRPC_API_TRACE( GRPC_API_TRACE(
"grpc_channel_create_call(" "grpc_channel_create_call("
"channel=%p, parent_call=%p, propagation_mask=%x, cq=%p, method=%s, " "channel=%p, parent_call=%p, propagation_mask=%x, cq=%p, method=%s, "
"host=%s, " "host=%s, "
"deadline=gpr_timespec { tv_sec: %ld, tv_nsec: %d, clock_type: %d }, " "deadline=gpr_timespec { tv_sec: %ld, tv_nsec: %d, clock_type: %d }, "
"reserved=%p)", "reserved=%p)",
10, (channel, parent_call, (unsigned)propagation_mask, cq, method, 10, (channel, parent_call, (unsigned)propagation_mask, cq, method, host,
host, (long)deadline.tv_sec, deadline.tv_nsec, (long)deadline.tv_sec, deadline.tv_nsec, (int)deadline.clock_type,
(int)deadline.clock_type, reserved)); reserved));
GPR_ASSERT(!reserved); GPR_ASSERT(!reserved);
return grpc_channel_create_call_internal( return grpc_channel_create_call_internal(
channel, parent_call, propagation_mask, cq, channel, parent_call, propagation_mask, cq,
@ -268,10 +268,10 @@ grpc_call *grpc_channel_create_registered_call(
registered_call *rc = registered_call_handle; registered_call *rc = registered_call_handle;
GRPC_API_TRACE( GRPC_API_TRACE(
"grpc_channel_create_registered_call(" "grpc_channel_create_registered_call("
"channel=%p, parent_call=%p, propagation_mask=%x, completion_queue=%p, " "channel=%p, parent_call=%p, propagation_mask=%x, completion_queue=%p, "
"registered_call_handle=%p, " "registered_call_handle=%p, "
"deadline=gpr_timespec { tv_sec: %ld, tv_nsec: %d, clock_type: %d }, " "deadline=gpr_timespec { tv_sec: %ld, tv_nsec: %d, clock_type: %d }, "
"reserved=%p)", "reserved=%p)",
9, (channel, parent_call, (unsigned)propagation_mask, completion_queue, 9, (channel, parent_call, (unsigned)propagation_mask, completion_queue,
registered_call_handle, (long)deadline.tv_sec, deadline.tv_nsec, registered_call_handle, (long)deadline.tv_sec, deadline.tv_nsec,
(int)deadline.clock_type, reserved)); (int)deadline.clock_type, reserved));

@ -49,8 +49,8 @@ grpc_connectivity_state grpc_channel_check_connectivity_state(
grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT; grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT;
grpc_connectivity_state state; grpc_connectivity_state state;
GRPC_API_TRACE( GRPC_API_TRACE(
"grpc_channel_check_connectivity_state(channel=%p, try_to_connect=%d)", "grpc_channel_check_connectivity_state(channel=%p, try_to_connect=%d)", 2,
2, (channel, try_to_connect)); (channel, try_to_connect));
if (client_channel_elem->filter != &grpc_client_channel_filter) { if (client_channel_elem->filter != &grpc_client_channel_filter) {
gpr_log(GPR_ERROR, gpr_log(GPR_ERROR,
"grpc_channel_check_connectivity_state called on something that is " "grpc_channel_check_connectivity_state called on something that is "
@ -181,9 +181,9 @@ void grpc_channel_watch_connectivity_state(
GRPC_API_TRACE( GRPC_API_TRACE(
"grpc_channel_watch_connectivity_state(" "grpc_channel_watch_connectivity_state("
"channel=%p, last_observed_state=%d, " "channel=%p, last_observed_state=%d, "
"deadline=gpr_timespec { tv_sec: %ld, tv_nsec: %d, clock_type: %d }, " "deadline=gpr_timespec { tv_sec: %ld, tv_nsec: %d, clock_type: %d }, "
"cq=%p, tag=%p)", "cq=%p, tag=%p)",
7, (channel, (int)last_observed_state, (long)deadline.tv_sec, 7, (channel, (int)last_observed_state, (long)deadline.tv_sec,
deadline.tv_nsec, (int)deadline.clock_type, cq, tag)); deadline.tv_nsec, (int)deadline.clock_type, cq, tag));

@ -186,11 +186,11 @@ grpc_event grpc_completion_queue_next(grpc_completion_queue *cc,
GRPC_API_TRACE( GRPC_API_TRACE(
"grpc_completion_queue_next(" "grpc_completion_queue_next("
"cc=%p, " "cc=%p, "
"deadline=gpr_timespec { tv_sec: %ld, tv_nsec: %d, clock_type: %d }, " "deadline=gpr_timespec { tv_sec: %ld, tv_nsec: %d, clock_type: %d }, "
"reserved=%p)", "reserved=%p)",
5, (cc, (long)deadline.tv_sec, deadline.tv_nsec, 5, (cc, (long)deadline.tv_sec, deadline.tv_nsec, (int)deadline.clock_type,
(int)deadline.clock_type, reserved)); reserved));
GPR_ASSERT(!reserved); GPR_ASSERT(!reserved);
deadline = gpr_convert_clock_type(deadline, GPR_CLOCK_MONOTONIC); deadline = gpr_convert_clock_type(deadline, GPR_CLOCK_MONOTONIC);
@ -270,9 +270,9 @@ grpc_event grpc_completion_queue_pluck(grpc_completion_queue *cc, void *tag,
GRPC_API_TRACE( GRPC_API_TRACE(
"grpc_completion_queue_pluck(" "grpc_completion_queue_pluck("
"cc=%p, tag=%p, " "cc=%p, tag=%p, "
"deadline=gpr_timespec { tv_sec: %ld, tv_nsec: %d, clock_type: %d }, " "deadline=gpr_timespec { tv_sec: %ld, tv_nsec: %d, clock_type: %d }, "
"reserved=%p)", "reserved=%p)",
6, (cc, tag, (long)deadline.tv_sec, deadline.tv_nsec, 6, (cc, tag, (long)deadline.tv_sec, deadline.tv_nsec,
(int)deadline.clock_type, reserved)); (int)deadline.clock_type, reserved));
GPR_ASSERT(!reserved); GPR_ASSERT(!reserved);

@ -154,7 +154,7 @@ grpc_channel *grpc_lame_client_channel_create(const char *target,
elem = grpc_channel_stack_element(grpc_channel_get_channel_stack(channel), 0); elem = grpc_channel_stack_element(grpc_channel_get_channel_stack(channel), 0);
GRPC_API_TRACE( GRPC_API_TRACE(
"grpc_lame_client_channel_create(target=%s, error_code=%d, " "grpc_lame_client_channel_create(target=%s, error_code=%d, "
"error_message=%s)", "error_message=%s)",
3, (target, (int)error_code, error_message)); 3, (target, (int)error_code, error_message));
GPR_ASSERT(elem->filter == &lame_filter); GPR_ASSERT(elem->filter == &lame_filter);
chand = (channel_data *)elem->channel_data; chand = (channel_data *)elem->channel_data;

@ -247,9 +247,10 @@ grpc_channel *grpc_secure_channel_create(grpc_credentials *creds,
grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT; grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT;
size_t n = 0; size_t n = 0;
GRPC_API_TRACE("grpc_secure_channel_create(creds=%p, target=%s, args=%p, " GRPC_API_TRACE(
"reserved=%p)", 4, "grpc_secure_channel_create(creds=%p, target=%s, args=%p, "
(creds, target, args, reserved)); "reserved=%p)",
4, (creds, target, args, reserved));
GPR_ASSERT(reserved == NULL); GPR_ASSERT(reserved == NULL);
if (grpc_find_security_connector_in_args(args) != NULL) { if (grpc_find_security_connector_in_args(args) != NULL) {

@ -1186,8 +1186,8 @@ grpc_call_error grpc_server_request_call(
requested_call *rc = gpr_malloc(sizeof(*rc)); requested_call *rc = gpr_malloc(sizeof(*rc));
GRPC_API_TRACE( GRPC_API_TRACE(
"grpc_server_request_call(" "grpc_server_request_call("
"server=%p, call=%p, details=%p, initial_metadata=%p, " "server=%p, call=%p, details=%p, initial_metadata=%p, "
"cq_bound_to_call=%p, cq_for_notification=%p, tag%p)", "cq_bound_to_call=%p, cq_for_notification=%p, tag%p)",
7, (server, call, details, initial_metadata, cq_bound_to_call, 7, (server, call, details, initial_metadata, cq_bound_to_call,
cq_for_notification, tag)); cq_for_notification, tag));
GRPC_SERVER_LOG_REQUEST_CALL(GPR_INFO, server, call, details, GRPC_SERVER_LOG_REQUEST_CALL(GPR_INFO, server, call, details,
@ -1225,9 +1225,9 @@ grpc_call_error grpc_server_request_registered_call(
registered_method *rm = rmp; registered_method *rm = rmp;
GRPC_API_TRACE( GRPC_API_TRACE(
"grpc_server_request_registered_call(" "grpc_server_request_registered_call("
"server=%p, rmp=%p, call=%p, deadline=%p, initial_metadata=%p, " "server=%p, rmp=%p, call=%p, deadline=%p, initial_metadata=%p, "
"optional_payload=%p, cq_bound_to_call=%p, cq_for_notification=%p, " "optional_payload=%p, cq_bound_to_call=%p, cq_for_notification=%p, "
"tag=%p)", "tag=%p)",
9, (server, rmp, call, deadline, initial_metadata, optional_payload, 9, (server, rmp, call, deadline, initial_metadata, optional_payload,
cq_bound_to_call, cq_for_notification, tag)); cq_bound_to_call, cq_for_notification, tag));
if (!grpc_cq_is_server_cq(cq_for_notification)) { if (!grpc_cq_is_server_cq(cq_for_notification)) {

@ -39,7 +39,7 @@
#include <grpc/support/log.h> #include <grpc/support/log.h>
#define GRPC_SURFACE_TRACE_RETURNED_EVENT(cq, event) \ #define GRPC_SURFACE_TRACE_RETURNED_EVENT(cq, event) \
if (grpc_api_trace) { \ if (grpc_api_trace) { \
char *_ev = grpc_event_string(event); \ char *_ev = grpc_event_string(event); \
gpr_log(GPR_INFO, "RETURN_EVENT[%p]: %s", cq, _ev); \ gpr_log(GPR_INFO, "RETURN_EVENT[%p]: %s", cq, _ev); \
gpr_free(_ev); \ gpr_free(_ev); \

@ -36,10 +36,4 @@
#include <grpc/grpc.h> #include <grpc/grpc.h>
#include "src/core/surface/api_trace.h" const char *grpc_version_string(void) { return "0.11.0.0"; }
const char *grpc_version_string(void) {
GRPC_API_TRACE("grpc_version_string(void)", 0, ());
return "0.11.0.0";
}

@ -341,6 +341,7 @@
<ClInclude Include="..\..\..\src\core\profiling\timers.h" /> <ClInclude Include="..\..\..\src\core\profiling\timers.h" />
<ClInclude Include="..\..\..\src\core\statistics\census_interface.h" /> <ClInclude Include="..\..\..\src\core\statistics\census_interface.h" />
<ClInclude Include="..\..\..\src\core\statistics\census_rpc_stats.h" /> <ClInclude Include="..\..\..\src\core\statistics\census_rpc_stats.h" />
<ClInclude Include="..\..\..\src\core\surface\api_trace.h" />
<ClInclude Include="..\..\..\src\core\surface\byte_buffer_queue.h" /> <ClInclude Include="..\..\..\src\core\surface\byte_buffer_queue.h" />
<ClInclude Include="..\..\..\src\core\surface\call.h" /> <ClInclude Include="..\..\..\src\core\surface\call.h" />
<ClInclude Include="..\..\..\src\core\surface\channel.h" /> <ClInclude Include="..\..\..\src\core\surface\channel.h" />
@ -578,6 +579,8 @@
</ClCompile> </ClCompile>
<ClCompile Include="..\..\..\src\core\profiling\stap_timers.c"> <ClCompile Include="..\..\..\src\core\profiling\stap_timers.c">
</ClCompile> </ClCompile>
<ClCompile Include="..\..\..\src\core\surface\api_trace.c">
</ClCompile>
<ClCompile Include="..\..\..\src\core\surface\byte_buffer.c"> <ClCompile Include="..\..\..\src\core\surface\byte_buffer.c">
</ClCompile> </ClCompile>
<ClCompile Include="..\..\..\src\core\surface\byte_buffer_queue.c"> <ClCompile Include="..\..\..\src\core\surface\byte_buffer_queue.c">
@ -612,8 +615,6 @@
</ClCompile> </ClCompile>
<ClCompile Include="..\..\..\src\core\surface\server_create.c"> <ClCompile Include="..\..\..\src\core\surface\server_create.c">
</ClCompile> </ClCompile>
<ClCompile Include="..\..\..\src\core\surface\surface_trace.c">
</ClCompile>
<ClCompile Include="..\..\..\src\core\surface\version.c"> <ClCompile Include="..\..\..\src\core\surface\version.c">
</ClCompile> </ClCompile>
<ClCompile Include="..\..\..\src\core\transport\chttp2\alpn.c"> <ClCompile Include="..\..\..\src\core\transport\chttp2\alpn.c">

@ -298,6 +298,9 @@
<ClCompile Include="..\..\..\src\core\profiling\stap_timers.c"> <ClCompile Include="..\..\..\src\core\profiling\stap_timers.c">
<Filter>src\core\profiling</Filter> <Filter>src\core\profiling</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\..\..\src\core\surface\api_trace.c">
<Filter>src\core\surface</Filter>
</ClCompile>
<ClCompile Include="..\..\..\src\core\surface\byte_buffer.c"> <ClCompile Include="..\..\..\src\core\surface\byte_buffer.c">
<Filter>src\core\surface</Filter> <Filter>src\core\surface</Filter>
</ClCompile> </ClCompile>
@ -349,9 +352,6 @@
<ClCompile Include="..\..\..\src\core\surface\server_create.c"> <ClCompile Include="..\..\..\src\core\surface\server_create.c">
<Filter>src\core\surface</Filter> <Filter>src\core\surface</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\..\..\src\core\surface\surface_trace.c">
<Filter>src\core\surface</Filter>
</ClCompile>
<ClCompile Include="..\..\..\src\core\surface\version.c"> <ClCompile Include="..\..\..\src\core\surface\version.c">
<Filter>src\core\surface</Filter> <Filter>src\core\surface</Filter>
</ClCompile> </ClCompile>
@ -734,6 +734,9 @@
<ClInclude Include="..\..\..\src\core\statistics\census_rpc_stats.h"> <ClInclude Include="..\..\..\src\core\statistics\census_rpc_stats.h">
<Filter>src\core\statistics</Filter> <Filter>src\core\statistics</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="..\..\..\src\core\surface\api_trace.h">
<Filter>src\core\surface</Filter>
</ClInclude>
<ClInclude Include="..\..\..\src\core\surface\byte_buffer_queue.h"> <ClInclude Include="..\..\..\src\core\surface\byte_buffer_queue.h">
<Filter>src\core\surface</Filter> <Filter>src\core\surface</Filter>
</ClInclude> </ClInclude>

@ -320,6 +320,7 @@
<ClInclude Include="..\..\..\src\core\profiling\timers.h" /> <ClInclude Include="..\..\..\src\core\profiling\timers.h" />
<ClInclude Include="..\..\..\src\core\statistics\census_interface.h" /> <ClInclude Include="..\..\..\src\core\statistics\census_interface.h" />
<ClInclude Include="..\..\..\src\core\statistics\census_rpc_stats.h" /> <ClInclude Include="..\..\..\src\core\statistics\census_rpc_stats.h" />
<ClInclude Include="..\..\..\src\core\surface\api_trace.h" />
<ClInclude Include="..\..\..\src\core\surface\byte_buffer_queue.h" /> <ClInclude Include="..\..\..\src\core\surface\byte_buffer_queue.h" />
<ClInclude Include="..\..\..\src\core\surface\call.h" /> <ClInclude Include="..\..\..\src\core\surface\call.h" />
<ClInclude Include="..\..\..\src\core\surface\channel.h" /> <ClInclude Include="..\..\..\src\core\surface\channel.h" />
@ -517,6 +518,8 @@
</ClCompile> </ClCompile>
<ClCompile Include="..\..\..\src\core\profiling\stap_timers.c"> <ClCompile Include="..\..\..\src\core\profiling\stap_timers.c">
</ClCompile> </ClCompile>
<ClCompile Include="..\..\..\src\core\surface\api_trace.c">
</ClCompile>
<ClCompile Include="..\..\..\src\core\surface\byte_buffer.c"> <ClCompile Include="..\..\..\src\core\surface\byte_buffer.c">
</ClCompile> </ClCompile>
<ClCompile Include="..\..\..\src\core\surface\byte_buffer_queue.c"> <ClCompile Include="..\..\..\src\core\surface\byte_buffer_queue.c">
@ -551,8 +554,6 @@
</ClCompile> </ClCompile>
<ClCompile Include="..\..\..\src\core\surface\server_create.c"> <ClCompile Include="..\..\..\src\core\surface\server_create.c">
</ClCompile> </ClCompile>
<ClCompile Include="..\..\..\src\core\surface\surface_trace.c">
</ClCompile>
<ClCompile Include="..\..\..\src\core\surface\version.c"> <ClCompile Include="..\..\..\src\core\surface\version.c">
</ClCompile> </ClCompile>
<ClCompile Include="..\..\..\src\core\transport\chttp2\alpn.c"> <ClCompile Include="..\..\..\src\core\transport\chttp2\alpn.c">

@ -238,6 +238,9 @@
<ClCompile Include="..\..\..\src\core\profiling\stap_timers.c"> <ClCompile Include="..\..\..\src\core\profiling\stap_timers.c">
<Filter>src\core\profiling</Filter> <Filter>src\core\profiling</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\..\..\src\core\surface\api_trace.c">
<Filter>src\core\surface</Filter>
</ClCompile>
<ClCompile Include="..\..\..\src\core\surface\byte_buffer.c"> <ClCompile Include="..\..\..\src\core\surface\byte_buffer.c">
<Filter>src\core\surface</Filter> <Filter>src\core\surface</Filter>
</ClCompile> </ClCompile>
@ -289,9 +292,6 @@
<ClCompile Include="..\..\..\src\core\surface\server_create.c"> <ClCompile Include="..\..\..\src\core\surface\server_create.c">
<Filter>src\core\surface</Filter> <Filter>src\core\surface</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\..\..\src\core\surface\surface_trace.c">
<Filter>src\core\surface</Filter>
</ClCompile>
<ClCompile Include="..\..\..\src\core\surface\version.c"> <ClCompile Include="..\..\..\src\core\surface\version.c">
<Filter>src\core\surface</Filter> <Filter>src\core\surface</Filter>
</ClCompile> </ClCompile>
@ -632,6 +632,9 @@
<ClInclude Include="..\..\..\src\core\statistics\census_rpc_stats.h"> <ClInclude Include="..\..\..\src\core\statistics\census_rpc_stats.h">
<Filter>src\core\statistics</Filter> <Filter>src\core\statistics</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="..\..\..\src\core\surface\api_trace.h">
<Filter>src\core\surface</Filter>
</ClInclude>
<ClInclude Include="..\..\..\src\core\surface\byte_buffer_queue.h"> <ClInclude Include="..\..\..\src\core\surface\byte_buffer_queue.h">
<Filter>src\core\surface</Filter> <Filter>src\core\surface</Filter>
</ClInclude> </ClInclude>

Loading…
Cancel
Save