LCOV - code coverage report
Current view: top level - fs/proc - cmdline.c (source / functions) Hit Total Coverage
Test: Real Lines: 7 7 100.0 %
Date: 2020-10-17 15:46:16 Functions: 0 2 0.0 %
Legend: Neither, QEMU, Real, Both Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : // SPDX-License-Identifier: GPL-2.0
       2                 :            : #include <linux/fs.h>
       3                 :            : #include <linux/init.h>
       4                 :            : #include <linux/proc_fs.h>
       5                 :            : #include <linux/seq_file.h>
       6                 :            : 
       7                 :          3 : static int cmdline_proc_show(struct seq_file *m, void *v)
       8                 :            : {
       9                 :          3 :         seq_puts(m, saved_command_line);
      10                 :          3 :         seq_putc(m, '\n');
      11                 :          3 :         return 0;
      12                 :            : }
      13                 :            : 
      14                 :          3 : static int __init proc_cmdline_init(void)
      15                 :            : {
      16                 :          3 :         proc_create_single("cmdline", 0, NULL, cmdline_proc_show);
      17                 :          3 :         return 0;
      18                 :            : }
      19                 :            : fs_initcall(proc_cmdline_init);
    

Generated by: LCOV version 1.14