cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

debugfs.h (722B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2/*
      3 * Copyright (C) 2020, Oracle and/or its affiliates.
      4 */
      5
      6#ifndef _KUNIT_DEBUGFS_H
      7#define _KUNIT_DEBUGFS_H
      8
      9#include <kunit/test.h>
     10
     11#ifdef CONFIG_KUNIT_DEBUGFS
     12
     13void kunit_debugfs_create_suite(struct kunit_suite *suite);
     14void kunit_debugfs_destroy_suite(struct kunit_suite *suite);
     15void kunit_debugfs_init(void);
     16void kunit_debugfs_cleanup(void);
     17
     18#else
     19
     20static inline void kunit_debugfs_create_suite(struct kunit_suite *suite) { }
     21
     22static inline void kunit_debugfs_destroy_suite(struct kunit_suite *suite) { }
     23
     24static inline void kunit_debugfs_init(void) { }
     25
     26static inline void kunit_debugfs_cleanup(void) { }
     27
     28#endif /* CONFIG_KUNIT_DEBUGFS */
     29
     30#endif /* _KUNIT_DEBUGFS_H */