1 /*
2  * This file and its contents are supplied under the terms of the
3  * Common Development and Distribution License ("CDDL"), version 1.0.
4  * You may only use this file in accordance with the terms of version
5  * 1.0 of the CDDL.
6  *
7  * A full copy of the text of the CDDL should have accompanied this
8  * source.  A copy of the CDDL is also available via the Internet at
9  * http://www.illumos.org/license/CDDL.
10  */
11 
12 /*
13  * Copyright 2017 Nexenta Systems, Inc.  All rights reserved.
14  */
15 
16 #include <sys/cmn_err.h>
17 #include <sys/sdt.h>
18 
19 /*
20  * See: DTRACE_PROBE... in sys/sdt.h
21  */
22 
23 int fknsmb_dtrace_log = 0;
24 
25 void
smb_dtrace1(const char * n,long v1)26 smb_dtrace1(const char *n, long v1)
27 {
28 	if (fknsmb_dtrace_log) {
29 		cmn_err(CE_CONT, "dtrace1: %s,"
30 		    " 0x%lx\n", n, v1);
31 	}
32 }
33 
34 void
smb_dtrace2(const char * n,long v1,long v2)35 smb_dtrace2(const char *n, long v1, long v2)
36 {
37 	if (fknsmb_dtrace_log) {
38 		cmn_err(CE_CONT, "dtrace2: %s,"
39 		    " 0x%lx, 0x%lx\n", n, v1, v2);
40 	}
41 }
42 
43 void
smb_dtrace3(const char * n,long v1,long v2,long v3)44 smb_dtrace3(const char *n, long v1, long v2, long v3)
45 {
46 	if (fknsmb_dtrace_log) {
47 		cmn_err(CE_CONT, "dtrace3: %s,"
48 		    " 0x%lx, 0x%lx, 0x%lx\n", n, v1, v2, v3);
49 	}
50 }
51