Lines Matching refs:dbgfs_dirs
20 static struct dentry **dbgfs_dirs; variable
829 new_dirs = krealloc(dbgfs_dirs, sizeof(*dbgfs_dirs) * in dbgfs_mk_context()
833 dbgfs_dirs = new_dirs; in dbgfs_mk_context()
835 root = dbgfs_dirs[0]; in dbgfs_mk_context()
843 dbgfs_dirs[dbgfs_nr_ctxs] = new_dir; in dbgfs_mk_context()
848 dbgfs_dirs[dbgfs_nr_ctxs] = NULL; in dbgfs_mk_context()
853 dbgfs_fill_ctx_dir(dbgfs_dirs[dbgfs_nr_ctxs], in dbgfs_mk_context()
912 root = dbgfs_dirs[0]; in dbgfs_rm_context()
926 new_dirs = kmalloc_array(dbgfs_nr_ctxs - 1, sizeof(*dbgfs_dirs), in dbgfs_rm_context()
941 if (dbgfs_dirs[i] == dir) { in dbgfs_rm_context()
942 debugfs_remove(dbgfs_dirs[i]); in dbgfs_rm_context()
946 new_dirs[j] = dbgfs_dirs[i]; in dbgfs_rm_context()
950 kfree(dbgfs_dirs); in dbgfs_rm_context()
953 dbgfs_dirs = new_dirs; in dbgfs_rm_context()
1091 dbgfs_dirs = kmalloc(sizeof(dbgfs_root), GFP_KERNEL); in __damon_dbgfs_init()
1092 if (!dbgfs_dirs) { in __damon_dbgfs_init()
1096 dbgfs_dirs[0] = dbgfs_root; in __damon_dbgfs_init()