PATH:
usr
/
src
/
kernels
/
5.14.0-611.49.2.el9_7.x86_64
/
include
/
trace
/
events
/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM #define TRACE_SYSTEM osnoise #if !defined(_OSNOISE_TRACE_H) || defined(TRACE_HEADER_MULTI_READ) #ifndef _OSNOISE_TRACE_H #define _OSNOISE_TRACE_H /* * osnoise sample structure definition. Used to store the statistics of a * sample run. */ struct osnoise_sample { u64 runtime; /* runtime */ u64 noise; /* noise */ u64 max_sample; /* max single noise sample */ int hw_count; /* # HW (incl. hypervisor) interference */ int nmi_count; /* # NMIs during this sample */ int irq_count; /* # IRQs during this sample */ int softirq_count; /* # softirqs during this sample */ int thread_count; /* # threads during this sample */ }; #ifdef CONFIG_TIMERLAT_TRACER /* * timerlat sample structure definition. Used to store the statistics of * a sample run. */ struct timerlat_sample { u64 timer_latency; /* timer_latency */ unsigned int seqnum; /* unique sequence */ int context; /* timer context */ }; #endif // CONFIG_TIMERLAT_TRACER #endif // _OSNOISE_TRACE_H #include <linux/tracepoint.h> TRACE_EVENT(osnoise_sample, TP_PROTO(struct osnoise_sample *s), TP_ARGS(s), TP_STRUCT__entry( __field( u64, runtime ) __field( u64, noise ) __field( u64, max_sample ) __field( int, hw_count ) __field( int, irq_count ) __field( int, nmi_count ) __field( int, softirq_count ) __field( int, thread_count ) ), TP_fast_assign( __entry->runtime = s->runtime; __entry->noise = s->noise; __entry->max_sample = s->max_sample; __entry->hw_count = s->hw_count; __entry->irq_count = s->irq_count; __entry->nmi_count = s->nmi_count; __entry->softirq_count = s->softirq_count; __entry->thread_count = s->thread_count; ), TP_printk("runtime=%llu noise=%llu max_sample=%llu hw_count=%d" " irq_count=%d nmi_count=%d softirq_count=%d" " thread_count=%d", __entry->runtime, __entry->noise, __entry->max_sample, __entry->hw_count, __entry->irq_count, __entry->nmi_count, __entry->softirq_count, __entry->thread_count) ); #ifdef CONFIG_TIMERLAT_TRACER TRACE_EVENT(timerlat_sample, TP_PROTO(struct timerlat_sample *s), TP_ARGS(s), TP_STRUCT__entry( __field( u64, timer_latency ) __field( unsigned int, seqnum ) __field( int, context ) ), TP_fast_assign( __entry->timer_latency = s->timer_latency; __entry->seqnum = s->seqnum; __entry->context = s->context; ), TP_printk("timer_latency=%llu seqnum=%u context=%d", __entry->timer_latency, __entry->seqnum, __entry->context) ); #endif // CONFIG_TIMERLAT_TRACER TRACE_EVENT(thread_noise, TP_PROTO(struct task_struct *t, u64 start, u64 duration), TP_ARGS(t, start, duration), TP_STRUCT__entry( __array( char, comm, TASK_COMM_LEN) __field( u64, start ) __field( u64, duration) __field( pid_t, pid ) ), TP_fast_assign( memcpy(__entry->comm, t->comm, TASK_COMM_LEN); __entry->pid = t->pid; __entry->start = start; __entry->duration = duration; ), TP_printk("%8s:%d start %llu.%09u duration %llu ns", __entry->comm, __entry->pid, __print_ns_to_secs(__entry->start), __print_ns_without_secs(__entry->start), __entry->duration) ); TRACE_EVENT(softirq_noise, TP_PROTO(int vector, u64 start, u64 duration), TP_ARGS(vector, start, duration), TP_STRUCT__entry( __field( u64, start ) __field( u64, duration) __field( int, vector ) ), TP_fast_assign( __entry->vector = vector; __entry->start = start; __entry->duration = duration; ), TP_printk("%8s:%d start %llu.%09u duration %llu ns", show_softirq_name(__entry->vector), __entry->vector, __print_ns_to_secs(__entry->start), __print_ns_without_secs(__entry->start), __entry->duration) ); TRACE_EVENT(irq_noise, TP_PROTO(int vector, const char *desc, u64 start, u64 duration), TP_ARGS(vector, desc, start, duration), TP_STRUCT__entry( __field( u64, start ) __field( u64, duration) __string( desc, desc ) __field( int, vector ) ), TP_fast_assign( __assign_str(desc, desc); __entry->vector = vector; __entry->start = start; __entry->duration = duration; ), TP_printk("%s:%d start %llu.%09u duration %llu ns", __get_str(desc), __entry->vector, __print_ns_to_secs(__entry->start), __print_ns_without_secs(__entry->start), __entry->duration) ); TRACE_EVENT(nmi_noise, TP_PROTO(u64 start, u64 duration), TP_ARGS(start, duration), TP_STRUCT__entry( __field( u64, start ) __field( u64, duration) ), TP_fast_assign( __entry->start = start; __entry->duration = duration; ), TP_printk("start %llu.%09u duration %llu ns", __print_ns_to_secs(__entry->start), __print_ns_without_secs(__entry->start), __entry->duration) ); TRACE_EVENT(sample_threshold, TP_PROTO(u64 start, u64 duration, u64 interference), TP_ARGS(start, duration, interference), TP_STRUCT__entry( __field( u64, start ) __field( u64, duration) __field( u64, interference) ), TP_fast_assign( __entry->start = start; __entry->duration = duration; __entry->interference = interference; ), TP_printk("start %llu.%09u duration %llu ns interference %llu", __print_ns_to_secs(__entry->start), __print_ns_without_secs(__entry->start), __entry->duration, __entry->interference) ); #endif /* _TRACE_OSNOISE_H */ /* This part must be outside protection */ #include <trace/define_trace.h>
[-] fsi_master_gpio.h
[edit]
[-] rtc.h
[edit]
[-] sunvnet.h
[edit]
[-] iocost.h
[edit]
[-] preemptirq.h
[edit]
[-] xdp.h
[edit]
[-] vmalloc.h
[edit]
[-] neigh.h
[edit]
[-] huge_memory.h
[edit]
[-] fsi_master_aspeed.h
[edit]
[-] percpu.h
[edit]
[-] power.h
[edit]
[-] rwmmio.h
[edit]
[-] printk.h
[edit]
[-] iscsi.h
[edit]
[-] bridge.h
[edit]
[-] mlxsw.h
[edit]
[-] page_isolation.h
[edit]
[-] workqueue.h
[edit]
[-] oom.h
[edit]
[-] hw_pressure.h
[edit]
[-] migrate.h
[edit]
[-] spmi.h
[edit]
[-] irq.h
[edit]
[-] ib_umad.h
[edit]
[-] jbd2.h
[edit]
[-] fs_dax.h
[edit]
[-] siox.h
[edit]
[-] rxrpc.h
[edit]
[-] devlink.h
[edit]
[-] smbus.h
[edit]
[-] osnoise.h
[edit]
[-] netfs.h
[edit]
[-] spi.h
[edit]
[-] fscache.h
[edit]
[-] nbd.h
[edit]
[-] sof.h
[edit]
[-] nilfs2.h
[edit]
[-] rdma_core.h
[edit]
[-] irq_matrix.h
[edit]
[-] module.h
[edit]
[-] asoc.h
[edit]
[-] mce.h
[edit]
[-] intel_ifs.h
[edit]
[-] filelock.h
[edit]
[-] page_pool.h
[edit]
[-] io_uring.h
[edit]
[-] cgroup.h
[edit]
[-] net_probe_common.h
[edit]
[-] clk.h
[edit]
[-] kyber.h
[edit]
[-] damon.h
[edit]
[-] skb.h
[edit]
[-] syscalls.h
[edit]
[-] rcu.h
[edit]
[-] devfreq.h
[edit]
[-] netlink.h
[edit]
[-] tegra_apb_dma.h
[edit]
[-] cachefiles.h
[edit]
[-] sof_intel.h
[edit]
[-] 9p.h
[edit]
[-] rpcrdma.h
[edit]
[-] avc.h
[edit]
[-] fib6.h
[edit]
[-] compaction.h
[edit]
[-] libata.h
[edit]
[-] rpm.h
[edit]
[-] ksm.h
[edit]
[-] intel-sst.h
[edit]
[-] mmap.h
[edit]
[-] block.h
[edit]
[-] page_ref.h
[edit]
[-] qla.h
[edit]
[-] cma.h
[edit]
[-] wbt.h
[edit]
[-] writeback.h
[edit]
[-] i2c.h
[edit]
[-] fsi.h
[edit]
[-] fib.h
[edit]
[-] f2fs.h
[edit]
[-] swiotlb.h
[edit]
[-] scmi.h
[edit]
[-] sock.h
[edit]
[-] v4l2.h
[edit]
[-] qdisc.h
[edit]
[-] rseq.h
[edit]
[-] sctp.h
[edit]
[-] iommu.h
[edit]
[-] vmscan.h
[edit]
[-] cpuhp.h
[edit]
[-] scsi.h
[edit]
[-] ib_mad.h
[edit]
[-] i2c_slave.h
[edit]
[-] bpf_test_run.h
[edit]
[-] target.h
[edit]
[-] dma.h
[edit]
[-] pwm.h
[edit]
[-] dma_fence.h
[edit]
[-] mmflags.h
[edit]
[-] timer.h
[edit]
[-] xen.h
[edit]
[-] gpu_mem.h
[edit]
[-] afs.h
[edit]
[-] btrfs.h
[edit]
[-] gpio.h
[edit]
[-] mdio.h
[edit]
[-] napi.h
[edit]
[-] mmc.h
[edit]
[-] lock.h
[edit]
[-] nmi.h
[edit]
[-] tcp.h
[edit]
[-] mptcp.h
[edit]
[-] kmem.h
[edit]
[-] ext4.h
[edit]
[-] regulator.h
[edit]
[-] fsi_master_ast_cf.h
[edit]
[-] mmap_lock.h
[edit]
[-] pwc.h
[edit]
[-] maple_tree.h
[edit]
[-] qrtr.h
[edit]
[-] pagemap.h
[edit]
[-] vb2.h
[edit]
[-] udp.h
[edit]
[-] signal.h
[edit]
[-] kvm.h
[edit]
[-] handshake.h
[edit]
[-] context_tracking.h
[edit]
[-] vsock_virtio_transport_common.h
[edit]
[-] alarmtimer.h
[edit]
[-] ipi.h
[edit]
[-] task.h
[edit]
[-] objagg.h
[edit]
[-] filemap.h
[edit]
[-] erofs.h
[edit]
[-] sunrpc.h
[edit]
[-] thp.h
[edit]
[-] rpcgss.h
[edit]
[-] initcall.h
[edit]
[-] bcache.h
[edit]
[-] net.h
[edit]
[-] csd.h
[edit]
[-] tlb.h
[edit]
[-] power_cpu_migrate.h
[edit]
[-] error_report.h
[edit]
[-] intel_ish.h
[edit]
[+]
..
[-] sched.h
[edit]
[-] host1x.h
[edit]
[-] hwmon.h
[edit]