linux/fs/orangefs/orangefs-debug.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * (C) 2001 Clemson University and The University of Chicago
 *
 * See COPYING in top-level directory.
 */

/* This file just defines debugging masks to be used with the gossip
 * logging utility.  All debugging masks for ORANGEFS are kept here to make
 * sure we don't have collisions.
 */

#ifndef __ORANGEFS_DEBUG_H
#define __ORANGEFS_DEBUG_H

#ifdef __KERNEL__
#include <linux/types.h>
#include <linux/kernel.h>
#else
#include <stdint.h>
#define ARRAY_SIZE
#endif

#define GOSSIP_NO_DEBUG

#define GOSSIP_SUPER_DEBUG
#define GOSSIP_INODE_DEBUG
#define GOSSIP_FILE_DEBUG
#define GOSSIP_DIR_DEBUG
#define GOSSIP_UTILS_DEBUG
#define GOSSIP_WAIT_DEBUG
#define GOSSIP_ACL_DEBUG
#define GOSSIP_DCACHE_DEBUG
#define GOSSIP_DEV_DEBUG
#define GOSSIP_NAME_DEBUG
#define GOSSIP_BUFMAP_DEBUG
#define GOSSIP_CACHE_DEBUG
#define GOSSIP_DEBUGFS_DEBUG
#define GOSSIP_XATTR_DEBUG
#define GOSSIP_INIT_DEBUG
#define GOSSIP_SYSFS_DEBUG

#define GOSSIP_MAX_NR
#define GOSSIP_MAX_DEBUG

/* a private internal type */
struct __keyword_mask_s {};

/*
 * Map all kmod keywords to kmod debug masks here. Keep this
 * structure "packed":
 *
 *   "all" is always last...
 *
 *   keyword     mask_val     index
 *     foo          1           0
 *     bar          2           1
 *     baz          4           2
 *     qux          8           3
 *      .           .           .
 */
static struct __keyword_mask_s s_kmod_keyword_mask_map[] =;

static const int num_kmod_keyword_mask_map =;

#endif /* __ORANGEFS_DEBUG_H */