1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #undef TRACE_SYSTEM 2 #undef TRACE_SYSTEM 3 #define TRACE_SYSTEM intel_ifs 3 #define TRACE_SYSTEM intel_ifs 4 4 5 #if !defined(_TRACE_IFS_H) || defined(TRACE_HE 5 #if !defined(_TRACE_IFS_H) || defined(TRACE_HEADER_MULTI_READ) 6 #define _TRACE_IFS_H 6 #define _TRACE_IFS_H 7 7 8 #include <linux/ktime.h> 8 #include <linux/ktime.h> 9 #include <linux/tracepoint.h> 9 #include <linux/tracepoint.h> 10 10 11 TRACE_EVENT(ifs_status, 11 TRACE_EVENT(ifs_status, 12 12 13 TP_PROTO(int batch, int start, int sto 13 TP_PROTO(int batch, int start, int stop, u64 status), 14 14 15 TP_ARGS(batch, start, stop, status), 15 TP_ARGS(batch, start, stop, status), 16 16 17 TP_STRUCT__entry( 17 TP_STRUCT__entry( 18 __field( int, batch 18 __field( int, batch ) 19 __field( u64, status 19 __field( u64, status ) 20 __field( u16, start 20 __field( u16, start ) 21 __field( u16, stop 21 __field( u16, stop ) 22 ), 22 ), 23 23 24 TP_fast_assign( 24 TP_fast_assign( 25 __entry->batch = batch; 25 __entry->batch = batch; 26 __entry->start = start; 26 __entry->start = start; 27 __entry->stop = stop; 27 __entry->stop = stop; 28 __entry->status = status; 28 __entry->status = status; 29 ), 29 ), 30 30 31 TP_printk("batch: 0x%.2x, start: 0x%.4 31 TP_printk("batch: 0x%.2x, start: 0x%.4x, stop: 0x%.4x, status: 0x%.16llx", 32 __entry->batch, 32 __entry->batch, 33 __entry->start, 33 __entry->start, 34 __entry->stop, 34 __entry->stop, 35 __entry->status) 35 __entry->status) 36 ); 36 ); 37 37 38 TRACE_EVENT(ifs_sbaf, 38 TRACE_EVENT(ifs_sbaf, 39 39 40 TP_PROTO(int batch, union ifs_sbaf act 40 TP_PROTO(int batch, union ifs_sbaf activate, union ifs_sbaf_status status), 41 41 42 TP_ARGS(batch, activate, status), 42 TP_ARGS(batch, activate, status), 43 43 44 TP_STRUCT__entry( 44 TP_STRUCT__entry( 45 __field( u64, status 45 __field( u64, status ) 46 __field( int, batch 46 __field( int, batch ) 47 __field( u16, bundle 47 __field( u16, bundle ) 48 __field( u16, pgm 48 __field( u16, pgm ) 49 ), 49 ), 50 50 51 TP_fast_assign( 51 TP_fast_assign( 52 __entry->status = status.data; 52 __entry->status = status.data; 53 __entry->batch = batch; 53 __entry->batch = batch; 54 __entry->bundle = activate.bun 54 __entry->bundle = activate.bundle_idx; 55 __entry->pgm = activate.pgm 55 __entry->pgm = activate.pgm_idx; 56 ), 56 ), 57 57 58 TP_printk("batch: 0x%.2x, bundle_idx: 58 TP_printk("batch: 0x%.2x, bundle_idx: 0x%.4x, pgm_idx: 0x%.4x, status: 0x%.16llx", 59 __entry->batch, 59 __entry->batch, 60 __entry->bundle, 60 __entry->bundle, 61 __entry->pgm, 61 __entry->pgm, 62 __entry->status) 62 __entry->status) 63 ); 63 ); 64 64 65 #endif /* _TRACE_IFS_H */ 65 #endif /* _TRACE_IFS_H */ 66 66 67 /* This part must be outside protection */ 67 /* This part must be outside protection */ 68 #include <trace/define_trace.h> 68 #include <trace/define_trace.h> 69 69
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.