linux/lib/ref_tracker.c

// SPDX-License-Identifier: GPL-2.0-or-later

#define pr_fmt(fmt)

#include <linux/export.h>
#include <linux/list_sort.h>
#include <linux/ref_tracker.h>
#include <linux/slab.h>
#include <linux/stacktrace.h>
#include <linux/stackdepot.h>

#define REF_TRACKER_STACK_ENTRIES
#define STACK_BUF_SIZE

struct ref_tracker {};

struct ref_tracker_dir_stats {};

static struct ref_tracker_dir_stats *
ref_tracker_get_stats(struct ref_tracker_dir *dir, unsigned int limit)
{}

struct ostream {};

#define pr_ostream(stream, fmt, args...)

static void
__ref_tracker_dir_pr_ostream(struct ref_tracker_dir *dir,
			     unsigned int display_limit, struct ostream *s)
{}

void ref_tracker_dir_print_locked(struct ref_tracker_dir *dir,
				  unsigned int display_limit)
{}
EXPORT_SYMBOL();

void ref_tracker_dir_print(struct ref_tracker_dir *dir,
			   unsigned int display_limit)
{}
EXPORT_SYMBOL();

int ref_tracker_dir_snprint(struct ref_tracker_dir *dir, char *buf, size_t size)
{}
EXPORT_SYMBOL();

void ref_tracker_dir_exit(struct ref_tracker_dir *dir)
{}
EXPORT_SYMBOL();

int ref_tracker_alloc(struct ref_tracker_dir *dir,
		      struct ref_tracker **trackerp,
		      gfp_t gfp)
{}
EXPORT_SYMBOL_GPL();

int ref_tracker_free(struct ref_tracker_dir *dir,
		     struct ref_tracker **trackerp)
{}
EXPORT_SYMBOL_GPL();