]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
sdp: make /proc/net/sdpprf on only if debug data is on
authorAmir Vadai <amirv@mellanox.co.il>
Wed, 2 Dec 2009 07:06:37 +0000 (09:06 +0200)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 6 Oct 2015 12:04:43 +0000 (05:04 -0700)
This way, in performance measurements it is off and on regression
it is on.

Signed-off-by: Amir Vadai <amirv@mellanox.co.il>
drivers/infiniband/ulp/sdp/sdp_dbg.h

index c3f5bc7ae9df3a61b88a0d589f970b12d61c3398..9b1a67e5f29d5f5192a6b40523e59ed08db37fa4 100644 (file)
@@ -2,7 +2,10 @@
 #define _SDP_DBG_H_
 
 #define SDPSTATS_ON
+
+#ifdef CONFIG_INFINIBAND_SDP_DEBUG_DATA
 #define SDP_PROFILING
+#endif
 //#define GETNSTIMEODAY_SUPPORTED
 
 #define _sdp_printk(func, line, level, sk, format, arg...) do {               \