LCOV - code coverage report
Current view: top level - include/linux/sched - autogroup.h (source / functions) Hit Total Coverage
Test: combined.info Lines: 4 4 100.0 %
Date: 2022-03-28 15:32:58 Functions: 0 0 -
Branches: 1 2 50.0 %

           Branch data     Line data    Source code
       1                 :            : /* SPDX-License-Identifier: GPL-2.0 */
       2                 :            : #ifndef _LINUX_SCHED_AUTOGROUP_H
       3                 :            : #define _LINUX_SCHED_AUTOGROUP_H
       4                 :            : 
       5                 :            : struct signal_struct;
       6                 :            : struct task_struct;
       7                 :            : struct task_group;
       8                 :            : struct seq_file;
       9                 :            : 
      10                 :            : #ifdef CONFIG_SCHED_AUTOGROUP
      11                 :            : extern void sched_autogroup_create_attach(struct task_struct *p);
      12                 :            : extern void sched_autogroup_detach(struct task_struct *p);
      13                 :            : extern void sched_autogroup_fork(struct signal_struct *sig);
      14                 :            : extern void sched_autogroup_exit(struct signal_struct *sig);
      15                 :            : extern void sched_autogroup_exit_task(struct task_struct *p);
      16                 :            : #ifdef CONFIG_PROC_FS
      17                 :            : extern void proc_sched_autogroup_show_task(struct task_struct *p, struct seq_file *m);
      18                 :            : extern int proc_sched_autogroup_set_nice(struct task_struct *p, int nice);
      19                 :            : #endif
      20                 :            : #else
      21                 :        672 : static inline void sched_autogroup_create_attach(struct task_struct *p) { }
      22                 :            : static inline void sched_autogroup_detach(struct task_struct *p) { }
      23                 :      13020 : static inline void sched_autogroup_fork(struct signal_struct *sig) { }
      24         [ -  + ]:      10998 : static inline void sched_autogroup_exit(struct signal_struct *sig) { }
      25                 :      11290 : static inline void sched_autogroup_exit_task(struct task_struct *p) { }
      26                 :            : #endif
      27                 :            : 
      28                 :            : #ifdef CONFIG_CGROUP_SCHED
      29                 :            : extern struct task_group root_task_group;
      30                 :            : #endif /* CONFIG_CGROUP_SCHED */
      31                 :            : 
      32                 :            : #endif /* _LINUX_SCHED_AUTOGROUP_H */

Generated by: LCOV version 1.14