File: amdgpu_plugin_drm.h

package info (click to toggle)
criu 4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,500 kB
  • sloc: ansic: 139,280; python: 7,484; sh: 3,824; java: 2,799; makefile: 2,659; asm: 1,137; perl: 206; xml: 117; exp: 45
file content (28 lines) | stat: -rw-r--r-- 729 bytes parent folder | download | duplicates (2)
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
26
27
28
#ifndef __AMDGPU_PLUGIN_DRM_H__
#define __AMDGPU_PLUGIN_DRM_H__

#include <dirent.h>
#include "common/list.h"

#include "xmalloc.h"
#include "criu-log.h"
#include "kfd_ioctl.h"
#include "amdgpu_plugin_util.h"
#include "amdgpu_plugin_topology.h"


/**
 * Determines if VMA's of input file descriptor belong to amdgpu's
 * DRM device and are therefore supported
 */
int amdgpu_plugin_drm_handle_device_vma(int fd, const struct stat *drm);

/**
 * Serialize meta-data about a particular DRM device, its number of BOs,
 * etc into a file. The serialized filename has in it the value ID that
 * is passed in as a parameter
 */
int amdgpu_plugin_drm_dump_file(int fd, int id, struct stat *drm);

#endif		/* __AMDGPU_PLUGIN_DRM_H__ */