File: igt_taints.h

package info (click to toggle)
intel-gpu-tools 2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 63,360 kB
  • sloc: xml: 781,458; ansic: 360,567; python: 8,336; yacc: 2,781; perl: 1,196; sh: 1,177; lex: 487; asm: 227; lisp: 35; makefile: 30
file content (25 lines) | stat: -rw-r--r-- 547 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* SPDX-License-Identifier: MIT */
/*
 * Copyright © 2021 Intel Corporation
 */

#ifndef __IGT_TAINTS_H__
#define __IGT_TAINTS_H__

#define	TAINT_MACHINE_CHECK	 4
#define	TAINT_BAD_PAGE		 5
#define	TAINT_DIE		 7
#define	TAINT_WARN		 9
#define	TAINT_SOFT_LOCKUP	14

unsigned long igt_kernel_tainted(unsigned long *taints);
const char *igt_explain_taints(unsigned long *taints);

unsigned long igt_bad_taints(void);

static inline unsigned long is_tainted(unsigned long taints)
{
	return taints & igt_bad_taints();
}

#endif /* __IGT_TAINTS_H__ */