PATH:
usr
/
src
/
kernels
/
5.14.0-611.49.2.el9_7.x86_64
/
include
/
trace
/
events
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * I2C slave tracepoints * * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. */ #undef TRACE_SYSTEM #define TRACE_SYSTEM i2c_slave #if !defined(_TRACE_I2C_SLAVE_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_I2C_SLAVE_H #include <linux/i2c.h> #include <linux/tracepoint.h> TRACE_DEFINE_ENUM(I2C_SLAVE_READ_REQUESTED); TRACE_DEFINE_ENUM(I2C_SLAVE_WRITE_REQUESTED); TRACE_DEFINE_ENUM(I2C_SLAVE_READ_PROCESSED); TRACE_DEFINE_ENUM(I2C_SLAVE_WRITE_RECEIVED); TRACE_DEFINE_ENUM(I2C_SLAVE_STOP); #define show_event_type(type) \ __print_symbolic(type, \ { I2C_SLAVE_READ_REQUESTED, "RD_REQ" }, \ { I2C_SLAVE_WRITE_REQUESTED, "WR_REQ" }, \ { I2C_SLAVE_READ_PROCESSED, "RD_PRO" }, \ { I2C_SLAVE_WRITE_RECEIVED, "WR_RCV" }, \ { I2C_SLAVE_STOP, " STOP" }) TRACE_EVENT(i2c_slave, TP_PROTO(const struct i2c_client *client, enum i2c_slave_event event, __u8 *val, int cb_ret), TP_ARGS(client, event, val, cb_ret), TP_STRUCT__entry( __field(int, adapter_nr ) __field(int, ret ) __field(__u16, addr ) __field(__u16, len ) __field(enum i2c_slave_event, event ) __array(__u8, buf, 1) ), TP_fast_assign( __entry->adapter_nr = client->adapter->nr; __entry->addr = client->addr; __entry->event = event; __entry->ret = cb_ret; switch (event) { case I2C_SLAVE_READ_REQUESTED: case I2C_SLAVE_READ_PROCESSED: case I2C_SLAVE_WRITE_RECEIVED: __entry->len = 1; memcpy(__entry->buf, val, __entry->len); break; default: __entry->len = 0; break; } ), TP_printk("i2c-%d a=%03x ret=%d %s [%*phD]", __entry->adapter_nr, __entry->addr, __entry->ret, show_event_type(__entry->event), __entry->len, __entry->buf )); #endif /* _TRACE_I2C_SLAVE_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]