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

vfio_ap_debug.h (967B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2/*
      3 *  Copyright IBM Corp. 2022
      4 *
      5 * Author(s): Tony Krowiak <akrowiak@linux.ibm.com>
      6 */
      7#ifndef VFIO_AP_DEBUG_H
      8#define VFIO_AP_DEBUG_H
      9
     10#include <asm/debug.h>
     11
     12#define DBF_ERR		3	/* error conditions   */
     13#define DBF_WARN	4	/* warning conditions */
     14#define DBF_INFO	5	/* informational      */
     15#define DBF_DEBUG	6	/* for debugging only */
     16
     17#define DBF_MAX_SPRINTF_ARGS 10
     18
     19#define VFIO_AP_DBF(...)					\
     20	debug_sprintf_event(vfio_ap_dbf_info, ##__VA_ARGS__)
     21#define VFIO_AP_DBF_ERR(...)					\
     22	debug_sprintf_event(vfio_ap_dbf_info, DBF_ERR, ##__VA_ARGS__)
     23#define VFIO_AP_DBF_WARN(...)					\
     24	debug_sprintf_event(vfio_ap_dbf_info, DBF_WARN, ##__VA_ARGS__)
     25#define VFIO_AP_DBF_INFO(...)					\
     26	debug_sprintf_event(vfio_ap_dbf_info, DBF_INFO, ##__VA_ARGS__)
     27#define VFIO_AP_DBF_DBG(...)					\
     28	debug_sprintf_event(vfio_ap_dbf_info, DBF_DEBUG, ##__VA_ARGS__)
     29
     30extern debug_info_t *vfio_ap_dbf_info;
     31
     32#endif /* VFIO_AP_DEBUG_H */