mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	The man page for the s390_runtime_instr() system call refers to a header file that was never exported. Therefore it's time to finally provide the header file, and move large parts of the runtime instrumentation header file to a new uapi header file. Reported-by: Eugene Syromyatnikov <evgsyr@gmail.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			634 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			634 B
		
	
	
	
		
			C
		
	
	
	
	
	
/* SPDX-License-Identifier: GPL-2.0 */
 | 
						|
#ifndef _RUNTIME_INSTR_H
 | 
						|
#define _RUNTIME_INSTR_H
 | 
						|
 | 
						|
#include <uapi/asm/runtime_instr.h>
 | 
						|
 | 
						|
extern struct runtime_instr_cb runtime_instr_empty_cb;
 | 
						|
 | 
						|
static inline void save_ri_cb(struct runtime_instr_cb *cb_prev)
 | 
						|
{
 | 
						|
	if (cb_prev)
 | 
						|
		store_runtime_instr_cb(cb_prev);
 | 
						|
}
 | 
						|
 | 
						|
static inline void restore_ri_cb(struct runtime_instr_cb *cb_next,
 | 
						|
				 struct runtime_instr_cb *cb_prev)
 | 
						|
{
 | 
						|
	if (cb_next)
 | 
						|
		load_runtime_instr_cb(cb_next);
 | 
						|
	else if (cb_prev)
 | 
						|
		load_runtime_instr_cb(&runtime_instr_empty_cb);
 | 
						|
}
 | 
						|
 | 
						|
struct task_struct;
 | 
						|
 | 
						|
void runtime_instr_release(struct task_struct *tsk);
 | 
						|
 | 
						|
#endif /* _RUNTIME_INSTR_H */
 |