rpcgss.h (98817a84ff1c755c347ac633ff017a623a631fad) | rpcgss.h (10b9d99a3dbbf5e9af838d1887a1047875dcafd9) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Copyright (c) 2018 Oracle. All rights reserved. 4 * 5 * Trace point definitions for the "rpcgss" subsystem. 6 */ 7 8#undef TRACE_SYSTEM --- 156 unchanged lines hidden (view full) --- 165 TP_PROTO( \ 166 const struct gss_cred *gc \ 167 ), \ 168 TP_ARGS(gc)) 169 170DEFINE_CTX_EVENT(init); 171DEFINE_CTX_EVENT(destroy); 172 | 1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Copyright (c) 2018 Oracle. All rights reserved. 4 * 5 * Trace point definitions for the "rpcgss" subsystem. 6 */ 7 8#undef TRACE_SYSTEM --- 156 unchanged lines hidden (view full) --- 165 TP_PROTO( \ 166 const struct gss_cred *gc \ 167 ), \ 168 TP_ARGS(gc)) 169 170DEFINE_CTX_EVENT(init); 171DEFINE_CTX_EVENT(destroy); 172 |
173DECLARE_EVENT_CLASS(rpcgss_svc_gssapi_class, 174 TP_PROTO( 175 const struct svc_rqst *rqstp, 176 u32 maj_stat 177 ), 178 179 TP_ARGS(rqstp, maj_stat), 180 181 TP_STRUCT__entry( 182 __field(u32, xid) 183 __field(u32, maj_stat) 184 __string(addr, rqstp->rq_xprt->xpt_remotebuf) 185 ), 186 187 TP_fast_assign( 188 __entry->xid = __be32_to_cpu(rqstp->rq_xid); 189 __entry->maj_stat = maj_stat; 190 __assign_str(addr, rqstp->rq_xprt->xpt_remotebuf); 191 ), 192 193 TP_printk("addr=%s xid=0x%08x maj_stat=%s", 194 __get_str(addr), __entry->xid, 195 __entry->maj_stat == 0 ? 196 "GSS_S_COMPLETE" : show_gss_status(__entry->maj_stat)) 197); 198 199#define DEFINE_SVC_GSSAPI_EVENT(name) \ 200 DEFINE_EVENT(rpcgss_svc_gssapi_class, rpcgss_svc_##name, \ 201 TP_PROTO( \ 202 const struct svc_rqst *rqstp, \ 203 u32 maj_stat \ 204 ), \ 205 TP_ARGS(rqstp, maj_stat)) 206 207DEFINE_SVC_GSSAPI_EVENT(unwrap); 208DEFINE_SVC_GSSAPI_EVENT(mic); 209 210TRACE_EVENT(rpcgss_svc_unwrap_failed, 211 TP_PROTO( 212 const struct svc_rqst *rqstp 213 ), 214 215 TP_ARGS(rqstp), 216 217 TP_STRUCT__entry( 218 __field(u32, xid) 219 __string(addr, rqstp->rq_xprt->xpt_remotebuf) 220 ), 221 222 TP_fast_assign( 223 __entry->xid = be32_to_cpu(rqstp->rq_xid); 224 __assign_str(addr, rqstp->rq_xprt->xpt_remotebuf); 225 ), 226 227 TP_printk("addr=%s xid=0x%08x", __get_str(addr), __entry->xid) 228); 229 230TRACE_EVENT(rpcgss_svc_seqno_bad, 231 TP_PROTO( 232 const struct svc_rqst *rqstp, 233 u32 expected, 234 u32 received 235 ), 236 237 TP_ARGS(rqstp, expected, received), 238 239 TP_STRUCT__entry( 240 __field(u32, expected) 241 __field(u32, received) 242 __field(u32, xid) 243 __string(addr, rqstp->rq_xprt->xpt_remotebuf) 244 ), 245 246 TP_fast_assign( 247 __entry->expected = expected; 248 __entry->received = received; 249 __entry->xid = __be32_to_cpu(rqstp->rq_xid); 250 __assign_str(addr, rqstp->rq_xprt->xpt_remotebuf); 251 ), 252 253 TP_printk("addr=%s xid=0x%08x expected seqno %u, received seqno %u", 254 __get_str(addr), __entry->xid, 255 __entry->expected, __entry->received) 256); 257 |
|
173TRACE_EVENT(rpcgss_svc_accept_upcall, 174 TP_PROTO( | 258TRACE_EVENT(rpcgss_svc_accept_upcall, 259 TP_PROTO( |
175 __be32 xid, | 260 const struct svc_rqst *rqstp, |
176 u32 major_status, 177 u32 minor_status 178 ), 179 | 261 u32 major_status, 262 u32 minor_status 263 ), 264 |
180 TP_ARGS(xid, major_status, minor_status), | 265 TP_ARGS(rqstp, major_status, minor_status), |
181 182 TP_STRUCT__entry( | 266 267 TP_STRUCT__entry( |
183 __field(u32, xid) | |
184 __field(u32, minor_status) 185 __field(unsigned long, major_status) | 268 __field(u32, minor_status) 269 __field(unsigned long, major_status) |
270 __field(u32, xid) 271 __string(addr, rqstp->rq_xprt->xpt_remotebuf) |
|
186 ), 187 188 TP_fast_assign( | 272 ), 273 274 TP_fast_assign( |
189 __entry->xid = be32_to_cpu(xid); | |
190 __entry->minor_status = minor_status; 191 __entry->major_status = major_status; | 275 __entry->minor_status = minor_status; 276 __entry->major_status = major_status; |
277 __entry->xid = be32_to_cpu(rqstp->rq_xid); 278 __assign_str(addr, rqstp->rq_xprt->xpt_remotebuf); |
|
192 ), 193 | 279 ), 280 |
194 TP_printk("xid=0x%08x major_status=%s (0x%08lx) minor_status=%u", 195 __entry->xid, __entry->major_status == 0 ? "GSS_S_COMPLETE" : 196 show_gss_status(__entry->major_status), | 281 TP_printk("addr=%s xid=0x%08x major_status=%s (0x%08lx) minor_status=%u", 282 __get_str(addr), __entry->xid, 283 (__entry->major_status == 0) ? "GSS_S_COMPLETE" : 284 show_gss_status(__entry->major_status), |
197 __entry->major_status, __entry->minor_status 198 ) 199); 200 | 285 __entry->major_status, __entry->minor_status 286 ) 287); 288 |
201TRACE_EVENT(rpcgss_svc_accept, | 289TRACE_EVENT(rpcgss_svc_authenticate, |
202 TP_PROTO( | 290 TP_PROTO( |
203 __be32 xid, 204 size_t len | 291 const struct svc_rqst *rqstp, 292 const struct rpc_gss_wire_cred *gc |
205 ), 206 | 293 ), 294 |
207 TP_ARGS(xid, len), | 295 TP_ARGS(rqstp, gc), |
208 209 TP_STRUCT__entry( | 296 297 TP_STRUCT__entry( |
298 __field(u32, seqno) |
|
210 __field(u32, xid) | 299 __field(u32, xid) |
211 __field(size_t, len) | 300 __string(addr, rqstp->rq_xprt->xpt_remotebuf) |
212 ), 213 214 TP_fast_assign( | 301 ), 302 303 TP_fast_assign( |
215 __entry->xid = be32_to_cpu(xid); 216 __entry->len = len; | 304 __entry->xid = be32_to_cpu(rqstp->rq_xid); 305 __entry->seqno = gc->gc_seq; 306 __assign_str(addr, rqstp->rq_xprt->xpt_remotebuf); |
217 ), 218 | 307 ), 308 |
219 TP_printk("xid=0x%08x len=%zu", 220 __entry->xid, __entry->len 221 ) | 309 TP_printk("addr=%s xid=0x%08x seqno=%u", __get_str(addr), 310 __entry->xid, __entry->seqno) |
222); 223 224 225/** 226 ** GSS auth unwrap failures 227 **/ 228 229TRACE_EVENT(rpcgss_unwrap_failed, --- 136 unchanged lines hidden (view full) --- 366 TP_printk("task:%u@%u xid=0x%08x auth=%p rslack=%u ralign=%u verfsize=%u\n", 367 __entry->task_id, __entry->client_id, __entry->xid, 368 __entry->auth, __entry->rslack, __entry->ralign, 369 __entry->verfsize) 370); 371 372DECLARE_EVENT_CLASS(rpcgss_svc_seqno_class, 373 TP_PROTO( | 311); 312 313 314/** 315 ** GSS auth unwrap failures 316 **/ 317 318TRACE_EVENT(rpcgss_unwrap_failed, --- 136 unchanged lines hidden (view full) --- 455 TP_printk("task:%u@%u xid=0x%08x auth=%p rslack=%u ralign=%u verfsize=%u\n", 456 __entry->task_id, __entry->client_id, __entry->xid, 457 __entry->auth, __entry->rslack, __entry->ralign, 458 __entry->verfsize) 459); 460 461DECLARE_EVENT_CLASS(rpcgss_svc_seqno_class, 462 TP_PROTO( |
374 __be32 xid, | 463 const struct svc_rqst *rqstp, |
375 u32 seqno 376 ), 377 | 464 u32 seqno 465 ), 466 |
378 TP_ARGS(xid, seqno), | 467 TP_ARGS(rqstp, seqno), |
379 380 TP_STRUCT__entry( 381 __field(u32, xid) 382 __field(u32, seqno) 383 ), 384 385 TP_fast_assign( | 468 469 TP_STRUCT__entry( 470 __field(u32, xid) 471 __field(u32, seqno) 472 ), 473 474 TP_fast_assign( |
386 __entry->xid = be32_to_cpu(xid); | 475 __entry->xid = be32_to_cpu(rqstp->rq_xid); |
387 __entry->seqno = seqno; 388 ), 389 | 476 __entry->seqno = seqno; 477 ), 478 |
390 TP_printk("xid=0x%08x seqno=%u, request discarded", | 479 TP_printk("xid=0x%08x seqno=%u", |
391 __entry->xid, __entry->seqno) 392); 393 394#define DEFINE_SVC_SEQNO_EVENT(name) \ | 480 __entry->xid, __entry->seqno) 481); 482 483#define DEFINE_SVC_SEQNO_EVENT(name) \ |
395 DEFINE_EVENT(rpcgss_svc_seqno_class, rpcgss_svc_##name, \ | 484 DEFINE_EVENT(rpcgss_svc_seqno_class, rpcgss_svc_seqno_##name, \ |
396 TP_PROTO( \ | 485 TP_PROTO( \ |
397 __be32 xid, \ | 486 const struct svc_rqst *rqstp, \ |
398 u32 seqno \ 399 ), \ | 487 u32 seqno \ 488 ), \ |
400 TP_ARGS(xid, seqno)) | 489 TP_ARGS(rqstp, seqno)) |
401 | 490 |
402DEFINE_SVC_SEQNO_EVENT(large_seqno); 403DEFINE_SVC_SEQNO_EVENT(old_seqno); | 491DEFINE_SVC_SEQNO_EVENT(large); 492DEFINE_SVC_SEQNO_EVENT(seen); |
404 | 493 |
494TRACE_EVENT(rpcgss_svc_seqno_low, 495 TP_PROTO( 496 const struct svc_rqst *rqstp, 497 u32 seqno, 498 u32 min, 499 u32 max 500 ), |
|
405 | 501 |
502 TP_ARGS(rqstp, seqno, min, max), 503 504 TP_STRUCT__entry( 505 __field(u32, xid) 506 __field(u32, seqno) 507 __field(u32, min) 508 __field(u32, max) 509 ), 510 511 TP_fast_assign( 512 __entry->xid = be32_to_cpu(rqstp->rq_xid); 513 __entry->seqno = seqno; 514 __entry->min = min; 515 __entry->max = max; 516 ), 517 518 TP_printk("xid=0x%08x seqno=%u window=[%u..%u]", 519 __entry->xid, __entry->seqno, __entry->min, __entry->max) 520); 521 |
|
406/** 407 ** gssd upcall related trace events 408 **/ 409 410TRACE_EVENT(rpcgss_upcall_msg, 411 TP_PROTO( 412 const char *buf 413 ), --- 131 unchanged lines hidden --- | 522/** 523 ** gssd upcall related trace events 524 **/ 525 526TRACE_EVENT(rpcgss_upcall_msg, 527 TP_PROTO( 528 const char *buf 529 ), --- 131 unchanged lines hidden --- |