~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/kernel/trace/rv/rv.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #include <linux/mutex.h>
  3 
  4 struct rv_interface {
  5         struct dentry           *root_dir;
  6         struct dentry           *monitors_dir;
  7 };
  8 
  9 #include "../trace.h"
 10 #include <linux/tracefs.h>
 11 #include <linux/rv.h>
 12 
 13 #define RV_MODE_WRITE                   TRACE_MODE_WRITE
 14 #define RV_MODE_READ                    TRACE_MODE_READ
 15 
 16 #define rv_create_dir                   tracefs_create_dir
 17 #define rv_create_file                  tracefs_create_file
 18 #define rv_remove                       tracefs_remove
 19 
 20 #define MAX_RV_MONITOR_NAME_SIZE        32
 21 #define MAX_RV_REACTOR_NAME_SIZE        32
 22 
 23 extern struct mutex rv_interface_lock;
 24 
 25 #ifdef CONFIG_RV_REACTORS
 26 struct rv_reactor_def {
 27         struct list_head        list;
 28         struct rv_reactor       *reactor;
 29         /* protected by the monitor interface lock */
 30         int                     counter;
 31 };
 32 #endif
 33 
 34 struct rv_monitor_def {
 35         struct list_head        list;
 36         struct rv_monitor       *monitor;
 37         struct dentry           *root_d;
 38 #ifdef CONFIG_RV_REACTORS
 39         struct rv_reactor_def   *rdef;
 40         bool                    reacting;
 41 #endif
 42         bool                    task_monitor;
 43 };
 44 
 45 struct dentry *get_monitors_root(void);
 46 int rv_disable_monitor(struct rv_monitor_def *mdef);
 47 int rv_enable_monitor(struct rv_monitor_def *mdef);
 48 
 49 #ifdef CONFIG_RV_REACTORS
 50 int reactor_populate_monitor(struct rv_monitor_def *mdef);
 51 void reactor_cleanup_monitor(struct rv_monitor_def *mdef);
 52 int init_rv_reactors(struct dentry *root_dir);
 53 #else
 54 static inline int reactor_populate_monitor(struct rv_monitor_def *mdef)
 55 {
 56         return 0;
 57 }
 58 
 59 static inline void reactor_cleanup_monitor(struct rv_monitor_def *mdef)
 60 {
 61         return;
 62 }
 63 
 64 static inline int init_rv_reactors(struct dentry *root_dir)
 65 {
 66         return 0;
 67 }
 68 #endif
 69 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php