#include <linux/fs.h>
#include <drm/drm_print.h>
#include "gt/intel_gt_debugfs.h"
#include "intel_guc.h"
#include "intel_guc_log.h"
#include "intel_guc_log_debugfs.h"
#include "intel_uc.h"
static u32 obj_to_guc_log_dump_size(struct drm_i915_gem_object *obj)
{ … }
static u32 guc_log_dump_size(struct intel_guc_log *log)
{ … }
static int guc_log_dump_show(struct seq_file *m, void *data)
{ … }
DEFINE_INTEL_GT_DEBUGFS_ATTRIBUTE_WITH_SIZE(…);
static u32 guc_load_err_dump_size(struct intel_guc_log *log)
{ … }
static int guc_load_err_log_dump_show(struct seq_file *m, void *data)
{ … }
DEFINE_INTEL_GT_DEBUGFS_ATTRIBUTE_WITH_SIZE(…);
static int guc_log_level_get(void *data, u64 *val)
{ … }
static int guc_log_level_set(void *data, u64 val)
{ … }
DEFINE_SIMPLE_ATTRIBUTE(…);
static int guc_log_relay_open(struct inode *inode, struct file *file)
{ … }
static ssize_t
guc_log_relay_write(struct file *filp,
const char __user *ubuf,
size_t cnt,
loff_t *ppos)
{ … }
static int guc_log_relay_release(struct inode *inode, struct file *file)
{ … }
static const struct file_operations guc_log_relay_fops = …;
void intel_guc_log_debugfs_register(struct intel_guc_log *log,
struct dentry *root)
{ … }