2 * Copyright 2012 Cisco Systems, Inc. All rights reserved.
4 * This program is free software; you may redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 2 of the License.
8 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
9 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
10 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
11 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
12 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
13 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
14 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18 #include <linux/module.h>
19 #include <linux/errno.h>
20 #include <linux/debugfs.h>
21 #include <linux/vmalloc.h>
24 static struct dentry
*fnic_trace_debugfs_root
;
25 static struct dentry
*fnic_trace_debugfs_file
;
26 static struct dentry
*fnic_trace_enable
;
27 static struct dentry
*fnic_stats_debugfs_root
;
29 static struct dentry
*fnic_fc_trace_debugfs_file
;
30 static struct dentry
*fnic_fc_rdata_trace_debugfs_file
;
31 static struct dentry
*fnic_fc_trace_enable
;
32 static struct dentry
*fnic_fc_trace_clear
;
34 struct fc_trace_flag_type
{
42 static struct fc_trace_flag_type
*fc_trc_flag
;
45 * fnic_debugfs_init - Initialize debugfs for fnic debug logging
48 * When Debugfs is configured this routine sets up the fnic debugfs
49 * file system. If not already created, this routine will create the
50 * fnic directory and statistics directory for trace buffer and
53 int fnic_debugfs_init(void)
56 fnic_trace_debugfs_root
= debugfs_create_dir("fnic", NULL
);
57 if (!fnic_trace_debugfs_root
) {
58 printk(KERN_DEBUG
"Cannot create debugfs root\n");
62 if (!fnic_trace_debugfs_root
) {
64 "fnic root directory doesn't exist in debugfs\n");
68 fnic_stats_debugfs_root
= debugfs_create_dir("statistics",
69 fnic_trace_debugfs_root
);
70 if (!fnic_stats_debugfs_root
) {
71 printk(KERN_DEBUG
"Cannot create Statistics directory\n");
75 /* Allocate memory to structure */
76 fc_trc_flag
= (struct fc_trace_flag_type
*)
77 vmalloc(sizeof(struct fc_trace_flag_type
));
80 fc_trc_flag
->fc_row_file
= 0;
81 fc_trc_flag
->fc_normal_file
= 1;
82 fc_trc_flag
->fnic_trace
= 2;
83 fc_trc_flag
->fc_trace
= 3;
84 fc_trc_flag
->fc_clear
= 4;
92 * fnic_debugfs_terminate - Tear down debugfs infrastructure
95 * When Debugfs is configured this routine removes debugfs file system
96 * elements that are specific to fnic.
98 void fnic_debugfs_terminate(void)
100 debugfs_remove(fnic_stats_debugfs_root
);
101 fnic_stats_debugfs_root
= NULL
;
103 debugfs_remove(fnic_trace_debugfs_root
);
104 fnic_trace_debugfs_root
= NULL
;
111 * fnic_trace_ctrl_read -
112 * Read trace_enable ,fc_trace_enable
113 * or fc_trace_clear debugfs file
114 * @filp: The file pointer to read from.
115 * @ubuf: The buffer to copy the data to.
116 * @cnt: The number of bytes to read.
117 * @ppos: The position in the file to start reading from.
120 * This routine reads value of variable fnic_tracing_enabled or
121 * fnic_fc_tracing_enabled or fnic_fc_trace_cleared
122 * and stores into local @buf.
123 * It will start reading file at @ppos and
124 * copy up to @cnt of data to @ubuf from @buf.
127 * This function returns the amount of data that was read.
129 static ssize_t
fnic_trace_ctrl_read(struct file
*filp
,
131 size_t cnt
, loff_t
*ppos
)
137 trace_type
= (u8
*)filp
->private_data
;
138 if (*trace_type
== fc_trc_flag
->fnic_trace
)
139 len
= sprintf(buf
, "%u\n", fnic_tracing_enabled
);
140 else if (*trace_type
== fc_trc_flag
->fc_trace
)
141 len
= sprintf(buf
, "%u\n", fnic_fc_tracing_enabled
);
142 else if (*trace_type
== fc_trc_flag
->fc_clear
)
143 len
= sprintf(buf
, "%u\n", fnic_fc_trace_cleared
);
145 pr_err("fnic: Cannot read to any debugfs file\n");
147 return simple_read_from_buffer(ubuf
, cnt
, ppos
, buf
, len
);
151 * fnic_trace_ctrl_write -
152 * Write to trace_enable, fc_trace_enable or
153 * fc_trace_clear debugfs file
154 * @filp: The file pointer to write from.
155 * @ubuf: The buffer to copy the data from.
156 * @cnt: The number of bytes to write.
157 * @ppos: The position in the file to start writing to.
160 * This routine writes data from user buffer @ubuf to buffer @buf and
161 * sets fc_trace_enable ,tracing_enable or fnic_fc_trace_cleared
162 * value as per user input.
165 * This function returns the amount of data that was written.
167 static ssize_t
fnic_trace_ctrl_write(struct file
*filp
,
168 const char __user
*ubuf
,
169 size_t cnt
, loff_t
*ppos
)
175 trace_type
= (u8
*)filp
->private_data
;
177 if (cnt
>= sizeof(buf
))
180 if (copy_from_user(&buf
, ubuf
, cnt
))
185 ret
= kstrtoul(buf
, 10, &val
);
189 if (*trace_type
== fc_trc_flag
->fnic_trace
)
190 fnic_tracing_enabled
= val
;
191 else if (*trace_type
== fc_trc_flag
->fc_trace
)
192 fnic_fc_tracing_enabled
= val
;
193 else if (*trace_type
== fc_trc_flag
->fc_clear
)
194 fnic_fc_trace_cleared
= val
;
196 pr_err("fnic: cannot write to any debugfs file\n");
203 static const struct file_operations fnic_trace_ctrl_fops
= {
204 .owner
= THIS_MODULE
,
206 .read
= fnic_trace_ctrl_read
,
207 .write
= fnic_trace_ctrl_write
,
211 * fnic_trace_debugfs_open - Open the fnic trace log
212 * @inode: The inode pointer
213 * @file: The file pointer to attach the log output
216 * This routine is the entry point for the debugfs open file operation.
217 * It allocates the necessary buffer for the log, fills the buffer from
218 * the in-memory log and then returns a pointer to that log in
219 * the private_data field in @file.
222 * This function returns zero if successful. On error it will return
223 * a negative error value.
225 static int fnic_trace_debugfs_open(struct inode
*inode
,
228 fnic_dbgfs_t
*fnic_dbg_prt
;
230 rdata_ptr
= (u8
*)inode
->i_private
;
231 fnic_dbg_prt
= kzalloc(sizeof(fnic_dbgfs_t
), GFP_KERNEL
);
235 if (*rdata_ptr
== fc_trc_flag
->fnic_trace
) {
236 fnic_dbg_prt
->buffer
= vmalloc(array3_size(3, trace_max_pages
,
238 if (!fnic_dbg_prt
->buffer
) {
242 memset((void *)fnic_dbg_prt
->buffer
, 0,
243 3 * (trace_max_pages
* PAGE_SIZE
));
244 fnic_dbg_prt
->buffer_len
= fnic_get_trace_data(fnic_dbg_prt
);
246 fnic_dbg_prt
->buffer
=
247 vmalloc(array3_size(3, fnic_fc_trace_max_pages
,
249 if (!fnic_dbg_prt
->buffer
) {
253 memset((void *)fnic_dbg_prt
->buffer
, 0,
254 3 * (fnic_fc_trace_max_pages
* PAGE_SIZE
));
255 fnic_dbg_prt
->buffer_len
=
256 fnic_fc_trace_get_data(fnic_dbg_prt
, *rdata_ptr
);
258 file
->private_data
= fnic_dbg_prt
;
264 * fnic_trace_debugfs_lseek - Seek through a debugfs file
265 * @file: The file pointer to seek through.
266 * @offset: The offset to seek to or the amount to seek by.
267 * @howto: Indicates how to seek.
270 * This routine is the entry point for the debugfs lseek file operation.
271 * The @howto parameter indicates whether @offset is the offset to directly
272 * seek to, or if it is a value to seek forward or reverse by. This function
273 * figures out what the new offset of the debugfs file will be and assigns
274 * that value to the f_pos field of @file.
277 * This function returns the new offset if successful and returns a negative
278 * error if unable to process the seek.
280 static loff_t
fnic_trace_debugfs_lseek(struct file
*file
,
284 fnic_dbgfs_t
*fnic_dbg_prt
= file
->private_data
;
285 return fixed_size_llseek(file
, offset
, howto
,
286 fnic_dbg_prt
->buffer_len
);
290 * fnic_trace_debugfs_read - Read a debugfs file
291 * @file: The file pointer to read from.
292 * @ubuf: The buffer to copy the data to.
293 * @nbytes: The number of bytes to read.
294 * @pos: The position in the file to start reading from.
297 * This routine reads data from the buffer indicated in the private_data
298 * field of @file. It will start reading at @pos and copy up to @nbytes of
302 * This function returns the amount of data that was read (this could be
303 * less than @nbytes if the end of the file was reached).
305 static ssize_t
fnic_trace_debugfs_read(struct file
*file
,
310 fnic_dbgfs_t
*fnic_dbg_prt
= file
->private_data
;
312 rc
= simple_read_from_buffer(ubuf
, nbytes
, pos
,
313 fnic_dbg_prt
->buffer
,
314 fnic_dbg_prt
->buffer_len
);
319 * fnic_trace_debugfs_release - Release the buffer used to store
321 * @inode: The inode pointer
322 * @file: The file pointer that contains the buffer to release
325 * This routine frees the buffer that was allocated when the debugfs
329 * This function returns zero.
331 static int fnic_trace_debugfs_release(struct inode
*inode
,
334 fnic_dbgfs_t
*fnic_dbg_prt
= file
->private_data
;
336 vfree(fnic_dbg_prt
->buffer
);
341 static const struct file_operations fnic_trace_debugfs_fops
= {
342 .owner
= THIS_MODULE
,
343 .open
= fnic_trace_debugfs_open
,
344 .llseek
= fnic_trace_debugfs_lseek
,
345 .read
= fnic_trace_debugfs_read
,
346 .release
= fnic_trace_debugfs_release
,
350 * fnic_trace_debugfs_init - Initialize debugfs for fnic trace logging
353 * When Debugfs is configured this routine sets up the fnic debugfs
354 * file system. If not already created, this routine will create the
355 * create file trace to log fnic trace buffer output into debugfs and
356 * it will also create file trace_enable to control enable/disable of
357 * trace logging into trace buffer.
359 int fnic_trace_debugfs_init(void)
362 if (!fnic_trace_debugfs_root
) {
364 "FNIC Debugfs root directory doesn't exist\n");
367 fnic_trace_enable
= debugfs_create_file("tracing_enable",
368 S_IFREG
|S_IRUGO
|S_IWUSR
,
369 fnic_trace_debugfs_root
,
370 &(fc_trc_flag
->fnic_trace
),
371 &fnic_trace_ctrl_fops
);
373 if (!fnic_trace_enable
) {
375 "Cannot create trace_enable file under debugfs\n");
379 fnic_trace_debugfs_file
= debugfs_create_file("trace",
380 S_IFREG
|S_IRUGO
|S_IWUSR
,
381 fnic_trace_debugfs_root
,
382 &(fc_trc_flag
->fnic_trace
),
383 &fnic_trace_debugfs_fops
);
385 if (!fnic_trace_debugfs_file
) {
387 "Cannot create trace file under debugfs\n");
395 * fnic_trace_debugfs_terminate - Tear down debugfs infrastructure
398 * When Debugfs is configured this routine removes debugfs file system
399 * elements that are specific to fnic trace logging.
401 void fnic_trace_debugfs_terminate(void)
403 debugfs_remove(fnic_trace_debugfs_file
);
404 fnic_trace_debugfs_file
= NULL
;
406 debugfs_remove(fnic_trace_enable
);
407 fnic_trace_enable
= NULL
;
411 * fnic_fc_trace_debugfs_init -
412 * Initialize debugfs for fnic control frame trace logging
415 * When Debugfs is configured this routine sets up the fnic_fc debugfs
416 * file system. If not already created, this routine will create the
417 * create file trace to log fnic fc trace buffer output into debugfs and
418 * it will also create file fc_trace_enable to control enable/disable of
419 * trace logging into trace buffer.
422 int fnic_fc_trace_debugfs_init(void)
426 if (!fnic_trace_debugfs_root
) {
427 pr_err("fnic:Debugfs root directory doesn't exist\n");
431 fnic_fc_trace_enable
= debugfs_create_file("fc_trace_enable",
432 S_IFREG
|S_IRUGO
|S_IWUSR
,
433 fnic_trace_debugfs_root
,
434 &(fc_trc_flag
->fc_trace
),
435 &fnic_trace_ctrl_fops
);
437 if (!fnic_fc_trace_enable
) {
438 pr_err("fnic: Failed create fc_trace_enable file\n");
442 fnic_fc_trace_clear
= debugfs_create_file("fc_trace_clear",
443 S_IFREG
|S_IRUGO
|S_IWUSR
,
444 fnic_trace_debugfs_root
,
445 &(fc_trc_flag
->fc_clear
),
446 &fnic_trace_ctrl_fops
);
448 if (!fnic_fc_trace_clear
) {
449 pr_err("fnic: Failed to create fc_trace_enable file\n");
453 fnic_fc_rdata_trace_debugfs_file
=
454 debugfs_create_file("fc_trace_rdata",
455 S_IFREG
|S_IRUGO
|S_IWUSR
,
456 fnic_trace_debugfs_root
,
457 &(fc_trc_flag
->fc_normal_file
),
458 &fnic_trace_debugfs_fops
);
460 if (!fnic_fc_rdata_trace_debugfs_file
) {
461 pr_err("fnic: Failed create fc_rdata_trace file\n");
465 fnic_fc_trace_debugfs_file
=
466 debugfs_create_file("fc_trace",
467 S_IFREG
|S_IRUGO
|S_IWUSR
,
468 fnic_trace_debugfs_root
,
469 &(fc_trc_flag
->fc_row_file
),
470 &fnic_trace_debugfs_fops
);
472 if (!fnic_fc_trace_debugfs_file
) {
473 pr_err("fnic: Failed to create fc_trace file\n");
481 * fnic_fc_trace_debugfs_terminate - Tear down debugfs infrastructure
484 * When Debugfs is configured this routine removes debugfs file system
485 * elements that are specific to fnic_fc trace logging.
488 void fnic_fc_trace_debugfs_terminate(void)
490 debugfs_remove(fnic_fc_trace_debugfs_file
);
491 fnic_fc_trace_debugfs_file
= NULL
;
493 debugfs_remove(fnic_fc_rdata_trace_debugfs_file
);
494 fnic_fc_rdata_trace_debugfs_file
= NULL
;
496 debugfs_remove(fnic_fc_trace_enable
);
497 fnic_fc_trace_enable
= NULL
;
499 debugfs_remove(fnic_fc_trace_clear
);
500 fnic_fc_trace_clear
= NULL
;
504 * fnic_reset_stats_open - Open the reset_stats file
505 * @inode: The inode pointer.
506 * @file: The file pointer to attach the stats reset flag.
509 * This routine opens a debugsfs file reset_stats and stores i_private data
510 * to debug structure to retrieve later for while performing other
514 * This function returns zero if successful.
516 static int fnic_reset_stats_open(struct inode
*inode
, struct file
*file
)
518 struct stats_debug_info
*debug
;
520 debug
= kzalloc(sizeof(struct stats_debug_info
), GFP_KERNEL
);
524 debug
->i_private
= inode
->i_private
;
526 file
->private_data
= debug
;
532 * fnic_reset_stats_read - Read a reset_stats debugfs file
533 * @filp: The file pointer to read from.
534 * @ubuf: The buffer to copy the data to.
535 * @cnt: The number of bytes to read.
536 * @ppos: The position in the file to start reading from.
539 * This routine reads value of variable reset_stats
540 * and stores into local @buf. It will start reading file at @ppos and
541 * copy up to @cnt of data to @ubuf from @buf.
544 * This function returns the amount of data that was read.
546 static ssize_t
fnic_reset_stats_read(struct file
*file
,
548 size_t cnt
, loff_t
*ppos
)
550 struct stats_debug_info
*debug
= file
->private_data
;
551 struct fnic
*fnic
= (struct fnic
*)debug
->i_private
;
555 len
= sprintf(buf
, "%u\n", fnic
->reset_stats
);
557 return simple_read_from_buffer(ubuf
, cnt
, ppos
, buf
, len
);
561 * fnic_reset_stats_write - Write to reset_stats debugfs file
562 * @filp: The file pointer to write from.
563 * @ubuf: The buffer to copy the data from.
564 * @cnt: The number of bytes to write.
565 * @ppos: The position in the file to start writing to.
568 * This routine writes data from user buffer @ubuf to buffer @buf and
569 * resets cumulative stats of fnic.
572 * This function returns the amount of data that was written.
574 static ssize_t
fnic_reset_stats_write(struct file
*file
,
575 const char __user
*ubuf
,
576 size_t cnt
, loff_t
*ppos
)
578 struct stats_debug_info
*debug
= file
->private_data
;
579 struct fnic
*fnic
= (struct fnic
*)debug
->i_private
;
580 struct fnic_stats
*stats
= &fnic
->fnic_stats
;
581 u64
*io_stats_p
= (u64
*)&stats
->io_stats
;
582 u64
*fw_stats_p
= (u64
*)&stats
->fw_stats
;
587 if (cnt
>= sizeof(buf
))
590 if (copy_from_user(&buf
, ubuf
, cnt
))
595 ret
= kstrtoul(buf
, 10, &val
);
599 fnic
->reset_stats
= val
;
601 if (fnic
->reset_stats
) {
602 /* Skip variable is used to avoid descrepancies to Num IOs
603 * and IO Completions stats. Skip incrementing No IO Compls
604 * for pending active IOs after reset stats
606 atomic64_set(&fnic
->io_cmpl_skip
,
607 atomic64_read(&stats
->io_stats
.active_ios
));
608 memset(&stats
->abts_stats
, 0, sizeof(struct abort_stats
));
609 memset(&stats
->term_stats
, 0,
610 sizeof(struct terminate_stats
));
611 memset(&stats
->reset_stats
, 0, sizeof(struct reset_stats
));
612 memset(&stats
->misc_stats
, 0, sizeof(struct misc_stats
));
613 memset(&stats
->vlan_stats
, 0, sizeof(struct vlan_stats
));
614 memset(io_stats_p
+1, 0,
615 sizeof(struct io_path_stats
) - sizeof(u64
));
616 memset(fw_stats_p
+1, 0,
617 sizeof(struct fw_stats
) - sizeof(u64
));
618 ktime_get_real_ts64(&stats
->stats_timestamps
.last_reset_time
);
626 * fnic_reset_stats_release - Release the buffer used to store
628 * @inode: The inode pointer
629 * @file: The file pointer that contains the buffer to release
632 * This routine frees the buffer that was allocated when the debugfs
636 * This function returns zero.
638 static int fnic_reset_stats_release(struct inode
*inode
,
641 struct stats_debug_info
*debug
= file
->private_data
;
647 * fnic_stats_debugfs_open - Open the stats file for specific host
648 * and get fnic stats.
649 * @inode: The inode pointer.
650 * @file: The file pointer to attach the specific host statistics.
653 * This routine opens a debugsfs file stats of specific host and print
657 * This function returns zero if successful.
659 static int fnic_stats_debugfs_open(struct inode
*inode
,
662 struct fnic
*fnic
= inode
->i_private
;
663 struct fnic_stats
*fnic_stats
= &fnic
->fnic_stats
;
664 struct stats_debug_info
*debug
;
665 int buf_size
= 2 * PAGE_SIZE
;
667 debug
= kzalloc(sizeof(struct stats_debug_info
), GFP_KERNEL
);
671 debug
->debug_buffer
= vmalloc(buf_size
);
672 if (!debug
->debug_buffer
) {
677 debug
->buf_size
= buf_size
;
678 memset((void *)debug
->debug_buffer
, 0, buf_size
);
679 debug
->buffer_len
= fnic_get_stats_data(debug
, fnic_stats
);
681 file
->private_data
= debug
;
687 * fnic_stats_debugfs_read - Read a debugfs file
688 * @file: The file pointer to read from.
689 * @ubuf: The buffer to copy the data to.
690 * @nbytes: The number of bytes to read.
691 * @pos: The position in the file to start reading from.
694 * This routine reads data from the buffer indicated in the private_data
695 * field of @file. It will start reading at @pos and copy up to @nbytes of
699 * This function returns the amount of data that was read (this could be
700 * less than @nbytes if the end of the file was reached).
702 static ssize_t
fnic_stats_debugfs_read(struct file
*file
,
707 struct stats_debug_info
*debug
= file
->private_data
;
709 rc
= simple_read_from_buffer(ubuf
, nbytes
, pos
,
716 * fnic_stats_stats_release - Release the buffer used to store
718 * @inode: The inode pointer
719 * @file: The file pointer that contains the buffer to release
722 * This routine frees the buffer that was allocated when the debugfs
726 * This function returns zero.
728 static int fnic_stats_debugfs_release(struct inode
*inode
,
731 struct stats_debug_info
*debug
= file
->private_data
;
732 vfree(debug
->debug_buffer
);
737 static const struct file_operations fnic_stats_debugfs_fops
= {
738 .owner
= THIS_MODULE
,
739 .open
= fnic_stats_debugfs_open
,
740 .read
= fnic_stats_debugfs_read
,
741 .release
= fnic_stats_debugfs_release
,
744 static const struct file_operations fnic_reset_debugfs_fops
= {
745 .owner
= THIS_MODULE
,
746 .open
= fnic_reset_stats_open
,
747 .read
= fnic_reset_stats_read
,
748 .write
= fnic_reset_stats_write
,
749 .release
= fnic_reset_stats_release
,
753 * fnic_stats_init - Initialize stats struct and create stats file per fnic
756 * When Debugfs is configured this routine sets up the stats file per fnic
757 * It will create file stats and reset_stats under statistics/host# directory
758 * to log per fnic stats.
760 int fnic_stats_debugfs_init(struct fnic
*fnic
)
765 snprintf(name
, sizeof(name
), "host%d", fnic
->lport
->host
->host_no
);
767 if (!fnic_stats_debugfs_root
) {
768 printk(KERN_DEBUG
"fnic_stats root doesn't exist\n");
771 fnic
->fnic_stats_debugfs_host
= debugfs_create_dir(name
,
772 fnic_stats_debugfs_root
);
773 if (!fnic
->fnic_stats_debugfs_host
) {
774 printk(KERN_DEBUG
"Cannot create host directory\n");
778 fnic
->fnic_stats_debugfs_file
= debugfs_create_file("stats",
779 S_IFREG
|S_IRUGO
|S_IWUSR
,
780 fnic
->fnic_stats_debugfs_host
,
782 &fnic_stats_debugfs_fops
);
783 if (!fnic
->fnic_stats_debugfs_file
) {
784 printk(KERN_DEBUG
"Cannot create host stats file\n");
788 fnic
->fnic_reset_debugfs_file
= debugfs_create_file("reset_stats",
789 S_IFREG
|S_IRUGO
|S_IWUSR
,
790 fnic
->fnic_stats_debugfs_host
,
792 &fnic_reset_debugfs_fops
);
793 if (!fnic
->fnic_reset_debugfs_file
) {
794 printk(KERN_DEBUG
"Cannot create host stats file\n");
802 * fnic_stats_debugfs_remove - Tear down debugfs infrastructure of stats
805 * When Debugfs is configured this routine removes debugfs file system
806 * elements that are specific to fnic stats.
808 void fnic_stats_debugfs_remove(struct fnic
*fnic
)
813 debugfs_remove(fnic
->fnic_stats_debugfs_file
);
814 fnic
->fnic_stats_debugfs_file
= NULL
;
816 debugfs_remove(fnic
->fnic_reset_debugfs_file
);
817 fnic
->fnic_reset_debugfs_file
= NULL
;
819 debugfs_remove(fnic
->fnic_stats_debugfs_host
);
820 fnic
->fnic_stats_debugfs_host
= NULL
;