/* * amdtp-stream-trace.h - tracepoint definitions to dump a part of packet data * * Copyright (c) 2016 Takashi Sakamoto * Licensed under the terms of the GNU General Public License, version 2. */ #undef TRACE_SYSTEM #define TRACE_SYSTEM snd_firewire_lib #if !defined(_AMDTP_STREAM_TRACE_H) || defined(TRACE_HEADER_MULTI_READ) #define _AMDTP_STREAM_TRACE_H #include TRACE_EVENT(in_packet, TP_PROTO(const struct amdtp_stream *s, u32 cycles, u32 cip_header[2], unsigned int payload_quadlets, unsigned int index), TP_ARGS(s, cycles, cip_header, payload_quadlets, index), TP_STRUCT__entry( __field(unsigned int, second) __field(unsigned int, cycle) __field(int, channel) __field(int, src) __field(int, dest) __field(u32, cip_header0) __field(u32, cip_header1) __field(unsigned int, payload_quadlets) __field(unsigned int, packet_index) __field(unsigned int, irq) __field(unsigned int, index) ), TP_fast_assign( __entry->second = cycles / CYCLES_PER_SECOND; __entry->cycle = cycles % CYCLES_PER_SECOND; __entry->channel = s->context->channel; __entry->src = fw_parent_device(s->unit)->node_id; __entry->dest = fw_parent_device(s->unit)->card->node_id; __entry->cip_header0 = cip_header[0]; __entry->cip_header1 = cip_header[1]; __entry->payload_quadlets = payload_quadlets; __entry->packet_index = s->packet_index; __entry->irq = !!in_interrupt(); __entry->index = index; ), TP_printk( "%02u %04u %04x %04x %02d %08x %08x %03u %02u %01u %02u", __entry->second, __entry->cycle, __entry->src, __entry->dest, __entry->channel, __entry->cip_header0, __entry->cip_header1, __entry->payload_quadlets, __entry->packet_index, __entry->irq, __entry->index) ); TRACE_EVENT(out_packet, TP_PROTO(const struct amdtp_stream *s, u32 cycles, __be32 *cip_header, unsigned int payload_length, unsigned int index), TP_ARGS(s, cycles, cip_header, payload_length, index), TP_STRUCT__entry( __field(unsigned int, second) __field(unsigned int, cycle) __field(int, channel) __field(int, src) __field(int, dest) __field(u32, cip_header0) __field(u32, cip_header1) __field(unsigned int, payload_quadlets) __field(unsigned int, packet_index) __field(unsigned int, irq) __field(unsigned int, index) ), TP_fast_assign( __entry->second = cycles / CYCLES_PER_SECOND; __entry->cycle = cycles % CYCLES_PER_SECOND; __entry->channel = s->context->channel; __entry->src = fw_parent_device(s->unit)->card->node_id; __entry->dest = fw_parent_device(s->unit)->node_id; __entry->cip_header0 = be32_to_cpu(cip_header[0]); __entry->cip_header1 = be32_to_cpu(cip_header[1]); __entry->payload_quadlets = payload_length / 4; __entry->packet_index = s->packet_index; __entry->irq = !!in_interrupt(); __entry->index = index; ), TP_printk( "%02u %04u %04x %04x %02d %08x %08x %03u %02u %01u %02u", __entry->second, __entry->cycle, __entry->src, __entry->dest, __entry->channel, __entry->cip_header0, __entry->cip_header1, __entry->payload_quadlets, __entry->packet_index, __entry->irq, __entry->index) ); #endif #undef TRACE_INCLUDE_PATH #define TRACE_INCLUDE_PATH . #undef TRACE_INCLUDE_FILE #define TRACE_INCLUDE_FILE amdtp-stream-trace #include iv class='content'> 8b937640024b4ad'>Build
AgeCommit message (Expand)AuthorFilesLines
5870logplain
-rwxr-xr-xPERF-VERSION-GEN1010logplain
-rw-r--r--alias.c1471logplain
-rw-r--r--annotate.c44411logplain
-rw-r--r--annotate.h5583logplain
-rw-r--r--auxtrace.c47774logplain
-rw-r--r--auxtrace.h22142logplain
-rw-r--r--block-range.c6948logplain
-rw-r--r--block-range.h1607logplain
-rw-r--r--bpf-loader.c40787logplain
-rw-r--r--bpf-loader.h6215logplain
-rw-r--r--bpf-prologue.c11226logplain
-rw-r--r--bpf-prologue.h847logplain
-rw-r--r--build-id.c19054logplain
-rw-r--r--build-id.h1859logplain
d---------c++184logplain
-rw-r--r--cache.h733logplain
-rw-r--r--call-path.c2893logplain
-rw-r--r--call-path.h2203logplain
-rw-r--r--callchain.c29332logplain
-rw-r--r--callchain.h7881logplain
-rw-r--r--cgroup.c3195logplain
-rw-r--r--cgroup.h359logplain
-rw-r--r--cloexec.c1950logplain
-rw-r--r--cloexec.h251logplain
-rw-r--r--color.c4787logplain
-rw-r--r--color.h1647logplain
-rw-r--r--comm.c2239logplain
-rw-r--r--comm.h561logplain
-rw-r--r--config.c16262logplain
-rw-r--r--config.h2113logplain
-rw-r--r--counts.c1026logplain
-rw-r--r--counts.h790logplain
-rw-r--r--cpumap.c12627logplain
-rw-r--r--cpumap.h1954logplain
-rw-r--r--cs-etm.h2061logplain
-rw-r--r--ctype.c2018logplain
-rw-r--r--data-convert-bt.c36671logplain
-rw-r--r--data-convert-bt.h302logplain
-rw-r--r--data-convert.h141logplain
-rw-r--r--data.c3459logplain
-rw-r--r--data.h1369logplain
-rw-r--r--db-export.c11434logplain
-rw-r--r--db-export.h3816logplain
-rw-r--r--debug.c4417logplain
-rw-r--r--debug.h2023logplain
-rw-r--r--demangle-java.c4219logplain
-rw-r--r--demangle-java.h249logplain
-rw-r--r--demangle-rust.c6602logplain
-rw-r--r--demangle-rust.h170logplain
-rw-r--r--drv_configs.c1834logplain
-rw-r--r--drv_configs.h844logplain
-rw-r--r--dso.c31994logplain
-rw-r--r--dso.h10399logplain
-rw-r--r--dwarf-aux.c33828logplain
-rw-r--r--dwarf-aux.h5101logplain
-rw-r--r--dwarf-regs.c1816logplain
-rw-r--r--env.c1884logplain
-rw-r--r--env.h1268logplain
-rw-r--r--event.c36670logplain
-rw-r--r--event.h15997logplain
-rw-r--r--evlist.c47104logplain
-rw-r--r--evlist.h12584logplain
-rw-r--r--evsel.c63917logplain
-rw-r--r--evsel.h13041logplain
-rw-r--r--evsel_fprintf.c5831logplain
-rw-r--r--find-vdso-map.c581logplain
-rw-r--r--genelf.c11653logplain
-rw-r--r--genelf.h1814logplain
-rw-r--r--genelf_debug.c14374logplain
-rwxr-xr-xgenerate-cmdlist.sh1141logplain
-rw-r--r--group.h122logplain
-rw-r--r--header.c73410logplain
-rw-r--r--header.h4365logplain
-rw-r--r--help-unknown-cmd.c3221logplain