mirror of
				https://github.com/torvalds/linux.git
				synced 2025-10-31 16:48:26 +02:00 
			
		
		
		
	 cb56cd6108
			
		
	
	
		cb56cd6108
		
			
		
	
	
	
	
		
			
			Firmware trace is exposed at /sys/debug/dri/<dev_nr>/pvr_fw/trace_0.
Trace is enabled via the group mask at
/sys/debug/dri/<dev_nr>/pvr_params/fw_trace_mask.
Changes since v8:
- Corrected license identifiers
Changes since v3:
- Use drm_dev_{enter,exit}
Co-developed-by: Matt Coster <matt.coster@imgtec.com>
Signed-off-by: Matt Coster <matt.coster@imgtec.com>
Signed-off-by: Sarah Walker <sarah.walker@imgtec.com>
Signed-off-by: Donald Robson <donald.robson@imgtec.com>
Link: https://lore.kernel.org/r/009cf9fee347fa96c8a665dc368fc54a5ffceff0.1700668843.git.donald.robson@imgtec.com
Signed-off-by: Maxime Ripard <mripard@kernel.org>
		
	
			
		
			
				
	
	
		
			29 lines
		
	
	
	
		
			757 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			757 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0-only OR MIT */
 | |
| /* Copyright (c) 2023 Imagination Technologies Ltd. */
 | |
| 
 | |
| #ifndef PVR_DEBUGFS_H
 | |
| #define PVR_DEBUGFS_H
 | |
| 
 | |
| /* Forward declaration from <drm/drm_drv.h>. */
 | |
| struct drm_minor;
 | |
| 
 | |
| #if defined(CONFIG_DEBUG_FS)
 | |
| /* Forward declaration from "pvr_device.h". */
 | |
| struct pvr_device;
 | |
| 
 | |
| /* Forward declaration from <linux/dcache.h>. */
 | |
| struct dentry;
 | |
| 
 | |
| struct pvr_debugfs_entry {
 | |
| 	const char *name;
 | |
| 	void (*init)(struct pvr_device *pvr_dev, struct dentry *dir);
 | |
| };
 | |
| 
 | |
| void pvr_debugfs_init(struct drm_minor *minor);
 | |
| #else /* defined(CONFIG_DEBUG_FS) */
 | |
| #include <linux/compiler_attributes.h>
 | |
| 
 | |
| static __always_inline void pvr_debugfs_init(struct drm_minor *minor) {}
 | |
| #endif /* defined(CONFIG_DEBUG_FS) */
 | |
| 
 | |
| #endif /* PVR_DEBUGFS_H */
 |