linux/kernel/cgroup/debug.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Debug controller
 *
 * WARNING: This controller is for cgroup core debugging only.
 * Its interfaces are unstable and subject to changes at any time.
 */
#include <linux/ctype.h>
#include <linux/mm.h>
#include <linux/slab.h>

#include "cgroup-internal.h"

static struct cgroup_subsys_state *
debug_css_alloc(struct cgroup_subsys_state *parent_css)
{}

static void debug_css_free(struct cgroup_subsys_state *css)
{}

/*
 * debug_taskcount_read - return the number of tasks in a cgroup.
 * @cgrp: the cgroup in question
 */
static u64 debug_taskcount_read(struct cgroup_subsys_state *css,
				struct cftype *cft)
{}

static int current_css_set_read(struct seq_file *seq, void *v)
{}

static u64 current_css_set_refcount_read(struct cgroup_subsys_state *css,
					 struct cftype *cft)
{}

static int current_css_set_cg_links_read(struct seq_file *seq, void *v)
{}

#define MAX_TASKS_SHOWN_PER_CSS
static int cgroup_css_links_read(struct seq_file *seq, void *v)
{}

static int cgroup_subsys_states_read(struct seq_file *seq, void *v)
{}

static void cgroup_masks_read_one(struct seq_file *seq, const char *name,
				  u16 mask)
{}

static int cgroup_masks_read(struct seq_file *seq, void *v)
{}

static u64 releasable_read(struct cgroup_subsys_state *css, struct cftype *cft)
{}

static struct cftype debug_legacy_files[] =;

static struct cftype debug_files[] =;

struct cgroup_subsys debug_cgrp_subsys =;

/*
 * On v2, debug is an implicit controller enabled by "cgroup_debug" boot
 * parameter.
 */
void __init enable_debug_cgroup(void)
{}