Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

cdns2: Remove unused tracepoints

Tracepoints that are defined take up around 5K each, even if they are not
used. If they are defined and not used, then they waste memory for unused
code. Soon unused tracepoints will cause warnings.

Remove the unused tracepoints of the cdns2 subsystem. They are:

cdns2_ep0_enqueue
cdns2_ep0_set_config
cdns2_ep_queue
cdns2_iso_out_ep_disable
cdns2_lpm
cdns2_mapped_request
cdns2_map_request
cdns2_may_wakeup

Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Link: https://lore.kernel.org/r/20250829015649.885512884@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Steven Rostedt and committed by
Greg Kroah-Hartman
56429b4a 2cf8ecd0

-69
-69
drivers/usb/gadget/udc/cdns2/cdns2-trace.h
··· 47 47 TP_ARGS(set) 48 48 ); 49 49 50 - DEFINE_EVENT(cdns2_log_enable_disable, cdns2_lpm, 51 - TP_PROTO(int set), 52 - TP_ARGS(set) 53 - ); 54 - 55 - DEFINE_EVENT(cdns2_log_enable_disable, cdns2_may_wakeup, 56 - TP_PROTO(int set), 57 - TP_ARGS(set) 58 - ); 59 - 60 50 DECLARE_EVENT_CLASS(cdns2_log_simple, 61 51 TP_PROTO(char *msg), 62 52 TP_ARGS(msg), ··· 65 75 ); 66 76 67 77 DEFINE_EVENT(cdns2_log_simple, cdns2_ep0_status_stage, 68 - TP_PROTO(char *msg), 69 - TP_ARGS(msg) 70 - ); 71 - 72 - DEFINE_EVENT(cdns2_log_simple, cdns2_ep0_set_config, 73 78 TP_PROTO(char *msg), 74 79 TP_ARGS(msg) 75 80 ); ··· 325 340 TP_ARGS(preq) 326 341 ); 327 342 328 - DEFINE_EVENT(cdns2_log_request, cdns2_ep_queue, 329 - TP_PROTO(struct cdns2_request *preq), 330 - TP_ARGS(preq) 331 - ); 332 - 333 343 DEFINE_EVENT(cdns2_log_request, cdns2_request_dequeue, 334 344 TP_PROTO(struct cdns2_request *preq), 335 345 TP_ARGS(preq) ··· 333 353 DEFINE_EVENT(cdns2_log_request, cdns2_request_giveback, 334 354 TP_PROTO(struct cdns2_request *preq), 335 355 TP_ARGS(preq) 336 - ); 337 - 338 - TRACE_EVENT(cdns2_ep0_enqueue, 339 - TP_PROTO(struct cdns2_device *dev_priv, struct usb_request *request), 340 - TP_ARGS(dev_priv, request), 341 - TP_STRUCT__entry( 342 - __field(int, dir) 343 - __field(int, length) 344 - ), 345 - TP_fast_assign( 346 - __entry->dir = dev_priv->eps[0].dir; 347 - __entry->length = request->length; 348 - ), 349 - TP_printk("Queue to ep0%s length: %u", __entry->dir ? "in" : "out", 350 - __entry->length) 351 - ); 352 - 353 - DECLARE_EVENT_CLASS(cdns2_log_map_request, 354 - TP_PROTO(struct cdns2_request *priv_req), 355 - TP_ARGS(priv_req), 356 - TP_STRUCT__entry( 357 - __string(name, priv_req->pep->name) 358 - __field(struct usb_request *, req) 359 - __field(void *, buf) 360 - __field(dma_addr_t, dma) 361 - ), 362 - TP_fast_assign( 363 - __assign_str(name); 364 - __entry->req = &priv_req->request; 365 - __entry->buf = priv_req->request.buf; 366 - __entry->dma = priv_req->request.dma; 367 - ), 368 - TP_printk("%s: req: %p, req buf %p, dma %p", 369 - __get_str(name), __entry->req, __entry->buf, &__entry->dma 370 - ) 371 - ); 372 - 373 - DEFINE_EVENT(cdns2_log_map_request, cdns2_map_request, 374 - TP_PROTO(struct cdns2_request *req), 375 - TP_ARGS(req) 376 - ); 377 - DEFINE_EVENT(cdns2_log_map_request, cdns2_mapped_request, 378 - TP_PROTO(struct cdns2_request *req), 379 - TP_ARGS(req) 380 356 ); 381 357 382 358 DECLARE_EVENT_CLASS(cdns2_log_trb, ··· 439 503 ); 440 504 441 505 DEFINE_EVENT(cdns2_log_ep, cdns2_gadget_ep_disable, 442 - TP_PROTO(struct cdns2_endpoint *pep), 443 - TP_ARGS(pep) 444 - ); 445 - 446 - DEFINE_EVENT(cdns2_log_ep, cdns2_iso_out_ep_disable, 447 506 TP_PROTO(struct cdns2_endpoint *pep), 448 507 TP_ARGS(pep) 449 508 );