aboutsummaryrefslogtreecommitdiff
path: root/include/skiboot-valgrind.h
blob: c9cd7cb356e23d399ba079ec3c98daf247380731 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
/* Copyright 2017 IBM Corp. */

#ifndef __SKIBOOT_VALGRIND_H
#define __SKIBOOT_VALGRIND_H

#ifdef USE_VALGRIND
#include <valgrind/valgrind.h>
#include <valgrind/memcheck.h>
#else

#define RUNNING_ON_VALGRIND    0

#define VALGRIND_MAKE_MEM_UNDEFINED(p, len)	\
	do { 					\
		(void)(p);			\
		(void)(len);			\
	} while (0)

#endif

#endif /* __SKIBOOT_VALGRIND_H */