Re: [PATCH v3] scsi: sd_zbc: trace zone append emulation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux