Skip to content

libtirpc: New Debugging Interface

Steve Dickson linux-nfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15libtirpc: New configurable debugging routinessrc/Makefile.am src/debug.c src/debug.h+115 -20 replies
2/15gss_log: Convert existing gss debugging routinessrc/authgss_prot.c+11 -300 replies
3/15gss_log: Removed DEBUG definessrc/auth_gss.c+1 -80 replies
4/15gss_log_status: reformat output to use one line.src/authgss_prot.c+9 -110 replies
5/15git_log_status: Add function names to status messagesrc/auth_gss.c src/authgss_prot.c src/svc_auth_gss.c+34 -170 replies
6/15libtirpc_debug: Converted the rest of the #ifdef DEBUGssrc/auth_gss.c src/getpublickey.c src/netnamer.c +1 more+20 -330 replies
7/15gss_log: Replace gss_log_debug with LIBTIRPC_DEBUG macrossrc/authgss_prot.c+7 -50 replies
8/15print_rpc_gss_sec: Make sure logging to stderr is enabled.src/auth_gss.c src/authgss_prot.c+4 -10 replies
9/15Clean up: Remove newlines from a couple debugging calls.src/auth_gss.c src/netnamer.c+5 -50 replies
10/15svcauth_des: Convert local debug() calls to LIBTIRPC_DEBUG() callssrc/svc_auth_des.c+16 -160 replies
11/15key_call: Convert local debug() calls to LIBTIRPC_DEBUG() callssrc/key_call.c+8 -130 replies
12/15clnt_bcast: Convert local debug() calls to LIBTIRPC_DEBUG() callssrc/clnt_bcast.c+11 -250 replies
13/15rpcb_clnt: Convert fprintf calls to LIBTIRPC_DEBUG() callssrc/rpcb_clnt.c+21 -440 replies
14/15svc_dg: Convert fprintf calls to LIBTIRPC_DEBUG() callssrc/svc_dg.c+23 -280 replies
15/15auth_des: Converted some of the debugging syslog calls to LIBTIRPC_DEBUG() callssrc/auth_des.c+6 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/15] libtirpc: New Debugging Interface

It was brought to my attention there is large amount of debugging in libtirpc but the library had to be recompiled to access it.

With the precedence being set with the old librpcsecgss and libnfsidmap where debugging can be set by the application, I thought it would be a good idea to build a similar interface in libtirpc.

A lot of these changes is in code that's not use or even compiled but there is now one unified interface we can build on.

The first patch defines the interface so I will not repeat it here, but the interface is modeled after a simplify xlog, used by a number of daemons. The interface can log messages to strderr or syslog but not both. Trying to keep it as simple as possible.

The debugging levels are broken down by:

level 1 - only error messages
level 2 - "I get here" type of messages level 3 - "I got this value" type of messages level 4 - hex dumps and other wordy messages

Steve Dickson (15):
libtirpc: New configurable debugging routines
gss_log: Convert existing gss debugging routines
gss_log: Removed DEBUG defines
gss_log_status: reformat output to use one line.
git_log_status: Add function name to status message
libtirpc_debug: Converted the rest of the #ifdef DEBUGs
gss_log: Replace gss_log_debug with LIBTIRPC_DEBUG macros
print_rpc_gss_sec: Make sure logging to stderr is enabled. Clean up: Remove newlines from a couple debugging calls.
svcauth_des: Convert local debug() calls to LIBTIRPC_DEBUG() calls
key_call: Convert local debug() calls to LIBTIRPC_DEBUG() calls
clnt_bcast: Convert local debug() calls to LIBTIRPC_DEBUG() calls
rpcb_clnt: Convert fprintf calls to LIBTIRPC_DEBUG() calls
svc_dg: Convert fprintf calls to LIBTIRPC_DEBUG() calls
auth_des: Converted some of the debugging syslog calls to
LIBTIRPC_DEBUG() calls

 src/Makefile.am    |  4 +--
 src/auth_des.c     | 11 ++++----
 src/auth_gss.c     | 45 ++++++++++++++------------------
 src/authgss_prot.c | 76 +++++++++++++++++++++---------------------------------
 src/clnt_bcast.c   | 36 ++++++++------------------
 src/debug.c        | 64 +++++++++++++++++++++++++++++++++++++++++++++
 src/debug.h        | 49 +++++++++++++++++++++++++++++++++++
 src/getpublickey.c | 13 +++++-----
 src/key_call.c     | 21 ++++++---------
 src/netnamer.c     | 20 ++++++--------
 src/rpcb_clnt.c    | 65 +++++++++++++++-------------------------------
 src/svc_auth_des.c | 32 +++++++++++------------
 src/svc_auth_gss.c | 29 +++++++++++++--------
 src/svc_dg.c       | 51 +++++++++++++++++-------------------
 14 files changed, 282 insertions(+), 234 deletions(-)
 create mode 100644 src/debug.c
 create mode 100644 src/debug.h
Signature · 1 line
1.9.3