On 30.11.22 08:13, Christoph Hellwig wrote: > On Tue, Nov 29, 2022 at 10:58:09PM -0800, Johannes Thumshirn wrote: >> +++ b/drivers/scsi/sd_zbc.c >> @@ -18,6 +18,11 @@ >> #include <scsi/scsi.h> >> #include <scsi/scsi_cmnd.h> >> >> +#if IS_MODULE(CONFIG_BLK_DEV_SD) >> +#define CREATE_TRACE_POINTS >> +#endif >> +#include <trace/events/scsi.h> > > Urg, this will create duplicates of all the tracepoints if sd is > built modular. Can't we just have a separate b/drivers/scsi/sd_trace.h > for sd-specific tracepoints? If not, we'll just need > to EXPORT_TRACEPOINT_SYMBOL_GPL the tracepoints used in sd. > Yeah, looks like a separate trace/events/sd.h is the least ugly thing. Will send a new version shortly