Lines Matching refs:dbgfs_dirs
20 static struct dentry **dbgfs_dirs; variable
828 new_dirs = krealloc(dbgfs_dirs, sizeof(*dbgfs_dirs) * in dbgfs_mk_context()
832 dbgfs_dirs = new_dirs; in dbgfs_mk_context()
834 root = dbgfs_dirs[0]; in dbgfs_mk_context()
842 dbgfs_dirs[dbgfs_nr_ctxs] = new_dir; in dbgfs_mk_context()
847 dbgfs_dirs[dbgfs_nr_ctxs] = NULL; in dbgfs_mk_context()
852 dbgfs_fill_ctx_dir(dbgfs_dirs[dbgfs_nr_ctxs], in dbgfs_mk_context()
911 root = dbgfs_dirs[0]; in dbgfs_rm_context()
925 new_dirs = kmalloc_array(dbgfs_nr_ctxs - 1, sizeof(*dbgfs_dirs), in dbgfs_rm_context()
940 if (dbgfs_dirs[i] == dir) { in dbgfs_rm_context()
941 debugfs_remove(dbgfs_dirs[i]); in dbgfs_rm_context()
945 new_dirs[j] = dbgfs_dirs[i]; in dbgfs_rm_context()
949 kfree(dbgfs_dirs); in dbgfs_rm_context()
952 dbgfs_dirs = new_dirs; in dbgfs_rm_context()
1090 dbgfs_dirs = kmalloc(sizeof(dbgfs_root), GFP_KERNEL); in __damon_dbgfs_init()
1091 if (!dbgfs_dirs) { in __damon_dbgfs_init()
1095 dbgfs_dirs[0] = dbgfs_root; in __damon_dbgfs_init()