Skip to content

Commit

Permalink
Update CLOG and CSharp
Browse files Browse the repository at this point in the history
  • Loading branch information
anrossi committed Feb 21, 2025
1 parent 188603b commit 54be6ca
Show file tree
Hide file tree
Showing 10 changed files with 961 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/clog.inputs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
../src/core/version_neg.c
../src/core/lookup.c
../src/core/worker.c
../src/core/connection_pool.c
../src/core/congestion_control.c
../src/core/crypto_tls.c
../src/core/binding.c
Expand Down Expand Up @@ -120,6 +121,7 @@
../src/platform/unittest/PlatformTest.cpp
../src/platform/unittest/CryptTest.cpp
../src/platform/unittest/DataPathTest.cpp
../src/platform/unittest/ToeplitzTest.cpp
../src/platform/unittest/StorageTest.cpp
../src/test/bin/quic_gtest.h
../src/test/bin/quic_gtest.cpp
Expand Down
3 changes: 3 additions & 0 deletions src/cs/lib/msquic_generated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3260,6 +3260,9 @@ internal unsafe partial struct QUIC_API_TABLE

[NativeTypeName("QUIC_STREAM_PROVIDE_RECEIVE_BUFFERS_FN")]
internal delegate* unmanaged[Cdecl]<QUIC_HANDLE*, uint, QUIC_BUFFER*, int> StreamProvideReceiveBuffers;

[NativeTypeName("QUIC_CONN_POOL_CREATE_FN")]
internal delegate* unmanaged[Cdecl]<QUIC_HANDLE*, delegate* unmanaged[Cdecl]<QUIC_HANDLE*, void*, QUIC_CONNECTION_EVENT*, int>, void*, sbyte*, QuicAddr*, ushort, ushort, QUIC_HANDLE***, int> ConnectionPoolCreate;
}

internal static unsafe partial class MsQuic
Expand Down
12 changes: 12 additions & 0 deletions src/generated/linux/ToeplitzTest.cpp.clog.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#ifndef CLOG_DO_NOT_INCLUDE_HEADER
#include <clog.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
#ifdef CLOG_INLINE_IMPLEMENTATION
#include "quic.clog_ToeplitzTest.cpp.clog.h.c"
#endif
257 changes: 257 additions & 0 deletions src/generated/linux/connection_pool.c.clog.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,257 @@
#ifndef CLOG_DO_NOT_INCLUDE_HEADER
#include <clog.h>
#endif
#undef TRACEPOINT_PROVIDER
#define TRACEPOINT_PROVIDER CLOG_CONNECTION_POOL_C
#undef TRACEPOINT_PROBE_DYNAMIC_LINKAGE
#define TRACEPOINT_PROBE_DYNAMIC_LINKAGE
#undef TRACEPOINT_INCLUDE
#define TRACEPOINT_INCLUDE "connection_pool.c.clog.h.lttng.h"
#if !defined(DEF_CLOG_CONNECTION_POOL_C) || defined(TRACEPOINT_HEADER_MULTI_READ)
#define DEF_CLOG_CONNECTION_POOL_C
#include <lttng/tracepoint.h>
#define __int64 __int64_t
#include "connection_pool.c.clog.h.lttng.h"
#endif
#include <lttng/tracepoint-event.h>
#ifndef _clog_MACRO_QuicTraceLogError
#define _clog_MACRO_QuicTraceLogError 1
#define QuicTraceLogError(a, ...) _clog_CAT(_clog_ARGN_SELECTOR(__VA_ARGS__), _clog_CAT(_,a(#a, __VA_ARGS__)))
#endif
#ifndef _clog_MACRO_QuicTraceEvent
#define _clog_MACRO_QuicTraceEvent 1
#define QuicTraceEvent(a, ...) _clog_CAT(_clog_ARGN_SELECTOR(__VA_ARGS__), _clog_CAT(_,a(#a, __VA_ARGS__)))
#endif
#ifdef __cplusplus
extern "C" {
#endif
/*----------------------------------------------------------
// Decoder Ring for ConnPoolInvalidParam
// [conp] Invalid parameter, 0x%x
// QuicTraceLogError(
ConnPoolInvalidParam,
"[conp] Invalid parameter, 0x%x",
Status);
// arg2 = arg2 = Status = arg2
----------------------------------------------------------*/
#ifndef _clog_3_ARGS_TRACE_ConnPoolInvalidParam
#define _clog_3_ARGS_TRACE_ConnPoolInvalidParam(uniqueId, encoded_arg_string, arg2)\
tracepoint(CLOG_CONNECTION_POOL_C, ConnPoolInvalidParam , arg2);\

#endif




/*----------------------------------------------------------
// Decoder Ring for ConnPoolInvalidParamNeedRemoteAddress
// [conp] Neither ServerName nor ServerAddress were set, 0x%x
// QuicTraceLogError(
ConnPoolInvalidParamNeedRemoteAddress,
"[conp] Neither ServerName nor ServerAddress were set, 0x%x",
Status);
// arg2 = arg2 = Status = arg2
----------------------------------------------------------*/
#ifndef _clog_3_ARGS_TRACE_ConnPoolInvalidParamNeedRemoteAddress
#define _clog_3_ARGS_TRACE_ConnPoolInvalidParamNeedRemoteAddress(uniqueId, encoded_arg_string, arg2)\
tracepoint(CLOG_CONNECTION_POOL_C, ConnPoolInvalidParamNeedRemoteAddress , arg2);\

#endif




/*----------------------------------------------------------
// Decoder Ring for ConnPoolCreateSocket
// [conp] Failed to create socket, 0x%x
// QuicTraceLogError(
ConnPoolCreateSocket,
"[conp] Failed to create socket, 0x%x",
Status);
// arg2 = arg2 = Status = arg2
----------------------------------------------------------*/
#ifndef _clog_3_ARGS_TRACE_ConnPoolCreateSocket
#define _clog_3_ARGS_TRACE_ConnPoolCreateSocket(uniqueId, encoded_arg_string, arg2)\
tracepoint(CLOG_CONNECTION_POOL_C, ConnPoolCreateSocket , arg2);\

#endif




/*----------------------------------------------------------
// Decoder Ring for ConnPoolGetLocalAddresses
// [conp] Failed to get local address info, 0x%x
// QuicTraceLogError(
ConnPoolGetLocalAddresses,
"[conp] Failed to get local address info, 0x%x",
Status);
// arg2 = arg2 = Status = arg2
----------------------------------------------------------*/
#ifndef _clog_3_ARGS_TRACE_ConnPoolGetLocalAddresses
#define _clog_3_ARGS_TRACE_ConnPoolGetLocalAddresses(uniqueId, encoded_arg_string, arg2)\
tracepoint(CLOG_CONNECTION_POOL_C, ConnPoolGetLocalAddresses , arg2);\

#endif




/*----------------------------------------------------------
// Decoder Ring for ConnPoolLocalAddressNotFound
// [conp] Failed to find local address, 0x%x
// QuicTraceLogError(
ConnPoolLocalAddressNotFound,
"[conp] Failed to find local address, 0x%x",
Status);
// arg2 = arg2 = Status = arg2
----------------------------------------------------------*/
#ifndef _clog_3_ARGS_TRACE_ConnPoolLocalAddressNotFound
#define _clog_3_ARGS_TRACE_ConnPoolLocalAddressNotFound(uniqueId, encoded_arg_string, arg2)\
tracepoint(CLOG_CONNECTION_POOL_C, ConnPoolLocalAddressNotFound , arg2);\

#endif




/*----------------------------------------------------------
// Decoder Ring for ConnPoolGetRssConfig
// [conp] Failed to get RSS config, 0x%x
// QuicTraceLogError(
ConnPoolGetRssConfig,
"[conp] Failed to get RSS config, 0x%x",
Status);
// arg2 = arg2 = Status = arg2
----------------------------------------------------------*/
#ifndef _clog_3_ARGS_TRACE_ConnPoolGetRssConfig
#define _clog_3_ARGS_TRACE_ConnPoolGetRssConfig(uniqueId, encoded_arg_string, arg2)\
tracepoint(CLOG_CONNECTION_POOL_C, ConnPoolGetRssConfig , arg2);\

#endif




/*----------------------------------------------------------
// Decoder Ring for ConnPoolRssNotSupported
// [conp] RSS not supported, 0x%x
// QuicTraceLogError(
ConnPoolRssNotSupported,
"[conp] RSS not supported, 0x%x",
Status);
// arg2 = arg2 = Status = arg2
----------------------------------------------------------*/
#ifndef _clog_3_ARGS_TRACE_ConnPoolRssNotSupported
#define _clog_3_ARGS_TRACE_ConnPoolRssNotSupported(uniqueId, encoded_arg_string, arg2)\
tracepoint(CLOG_CONNECTION_POOL_C, ConnPoolRssNotSupported , arg2);\

#endif




/*----------------------------------------------------------
// Decoder Ring for ConnPoolRssSecretKeyTooLong
// [conp] RSS secret key too long, 0x%x
// QuicTraceLogError(
ConnPoolRssSecretKeyTooLong,
"[conp] RSS secret key too long, 0x%x",
Status);
// arg2 = arg2 = Status = arg2
----------------------------------------------------------*/
#ifndef _clog_3_ARGS_TRACE_ConnPoolRssSecretKeyTooLong
#define _clog_3_ARGS_TRACE_ConnPoolRssSecretKeyTooLong(uniqueId, encoded_arg_string, arg2)\
tracepoint(CLOG_CONNECTION_POOL_C, ConnPoolRssSecretKeyTooLong , arg2);\

#endif




/*----------------------------------------------------------
// Decoder Ring for ConnPoolOpenConnection
// [conp] Failed to open connection[%u], 0x%x
// QuicTraceLogError(
ConnPoolOpenConnection,
"[conp] Failed to open connection[%u], 0x%x",
i,
Status);
// arg2 = arg2 = i = arg2
// arg3 = arg3 = Status = arg3
----------------------------------------------------------*/
#ifndef _clog_4_ARGS_TRACE_ConnPoolOpenConnection
#define _clog_4_ARGS_TRACE_ConnPoolOpenConnection(uniqueId, encoded_arg_string, arg2, arg3)\
tracepoint(CLOG_CONNECTION_POOL_C, ConnPoolOpenConnection , arg2, arg3);\

#endif




/*----------------------------------------------------------
// Decoder Ring for ConnPoolSetRemoteAddress
// [conp] Failed to set remote address on connection[%u], 0x%x
// QuicTraceLogError(
ConnPoolSetRemoteAddress,
"[conp] Failed to set remote address on connection[%u], 0x%x",
i,
Status);
// arg2 = arg2 = i = arg2
// arg3 = arg3 = Status = arg3
----------------------------------------------------------*/
#ifndef _clog_4_ARGS_TRACE_ConnPoolSetRemoteAddress
#define _clog_4_ARGS_TRACE_ConnPoolSetRemoteAddress(uniqueId, encoded_arg_string, arg2, arg3)\
tracepoint(CLOG_CONNECTION_POOL_C, ConnPoolSetRemoteAddress , arg2, arg3);\

#endif




/*----------------------------------------------------------
// Decoder Ring for ConnPoolSetLocalAddress
// [conp] Failed to set local address on connection[%u], 0x%x
// QuicTraceLogError(
ConnPoolSetLocalAddress,
"[conp] Failed to set local address on connection[%u], 0x%x",
i,
Status);
// arg2 = arg2 = i = arg2
// arg3 = arg3 = Status = arg3
----------------------------------------------------------*/
#ifndef _clog_4_ARGS_TRACE_ConnPoolSetLocalAddress
#define _clog_4_ARGS_TRACE_ConnPoolSetLocalAddress(uniqueId, encoded_arg_string, arg2, arg3)\
tracepoint(CLOG_CONNECTION_POOL_C, ConnPoolSetLocalAddress , arg2, arg3);\

#endif




/*----------------------------------------------------------
// Decoder Ring for AllocFailure
// Allocation of '%s' failed. (%llu bytes)
// QuicTraceEvent(
AllocFailure,
"Allocation of '%s' failed. (%llu bytes)",
"RSS Processor List",
RssConfig->RssIndirectionTableLength);
// arg2 = arg2 = "RSS Processor List" = arg2
// arg3 = arg3 = RssConfig->RssIndirectionTableLength = arg3
----------------------------------------------------------*/
#ifndef _clog_4_ARGS_TRACE_AllocFailure
#define _clog_4_ARGS_TRACE_AllocFailure(uniqueId, encoded_arg_string, arg2, arg3)\
tracepoint(CLOG_CONNECTION_POOL_C, AllocFailure , arg2, arg3);\

#endif




#ifdef __cplusplus
}
#endif
#ifdef CLOG_INLINE_IMPLEMENTATION
#include "quic.clog_connection_pool.c.clog.h.c"
#endif
Loading

0 comments on commit 54be6ca

Please sign in to comment.