drivers/media/test-drivers/visl/visl-trace-h264.h
Source file repositories/reference/linux-study-clean/drivers/media/test-drivers/visl/visl-trace-h264.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/test-drivers/visl/visl-trace-h264.h- Extension
.h- Size
- 13145 bytes
- Lines
- 350
- Domain
- Driver Families
- Bucket
- drivers/media
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/tracepoint.hvisl.htrace/define_trace.h
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
#if !defined(_VISL_TRACE_H264_H_) || defined(TRACE_HEADER_MULTI_READ)
#define _VISL_TRACE_H264_H_
#include <linux/tracepoint.h>
#include "visl.h"
#undef TRACE_SYSTEM
#define TRACE_SYSTEM visl_h264_controls
DECLARE_EVENT_CLASS(v4l2_ctrl_h264_sps_tmpl,
TP_PROTO(const struct v4l2_ctrl_h264_sps *s),
TP_ARGS(s),
TP_STRUCT__entry(__field_struct(struct v4l2_ctrl_h264_sps, s)),
TP_fast_assign(__entry->s = *s),
TP_printk("\nprofile_idc %u\n"
"constraint_set_flags %s\n"
"level_idc %u\n"
"seq_parameter_set_id %u\n"
"chroma_format_idc %u\n"
"bit_depth_luma_minus8 %u\n"
"bit_depth_chroma_minus8 %u\n"
"log2_max_frame_num_minus4 %u\n"
"pic_order_cnt_type %u\n"
"log2_max_pic_order_cnt_lsb_minus4 %u\n"
"max_num_ref_frames %u\n"
"num_ref_frames_in_pic_order_cnt_cycle %u\n"
"offset_for_ref_frame %s\n"
"offset_for_non_ref_pic %d\n"
"offset_for_top_to_bottom_field %d\n"
"pic_width_in_mbs_minus1 %u\n"
"pic_height_in_map_units_minus1 %u\n"
"flags %s",
__entry->s.profile_idc,
__print_flags(__entry->s.constraint_set_flags, "|",
{V4L2_H264_SPS_CONSTRAINT_SET0_FLAG, "CONSTRAINT_SET0_FLAG"},
{V4L2_H264_SPS_CONSTRAINT_SET1_FLAG, "CONSTRAINT_SET1_FLAG"},
{V4L2_H264_SPS_CONSTRAINT_SET2_FLAG, "CONSTRAINT_SET2_FLAG"},
{V4L2_H264_SPS_CONSTRAINT_SET3_FLAG, "CONSTRAINT_SET3_FLAG"},
{V4L2_H264_SPS_CONSTRAINT_SET4_FLAG, "CONSTRAINT_SET4_FLAG"},
{V4L2_H264_SPS_CONSTRAINT_SET5_FLAG, "CONSTRAINT_SET5_FLAG"}),
__entry->s.level_idc,
__entry->s.seq_parameter_set_id,
__entry->s.chroma_format_idc,
__entry->s.bit_depth_luma_minus8,
__entry->s.bit_depth_chroma_minus8,
__entry->s.log2_max_frame_num_minus4,
__entry->s.pic_order_cnt_type,
__entry->s.log2_max_pic_order_cnt_lsb_minus4,
__entry->s.max_num_ref_frames,
__entry->s.num_ref_frames_in_pic_order_cnt_cycle,
__print_array(__entry->s.offset_for_ref_frame,
ARRAY_SIZE(__entry->s.offset_for_ref_frame),
sizeof(__entry->s.offset_for_ref_frame[0])),
__entry->s.offset_for_non_ref_pic,
__entry->s.offset_for_top_to_bottom_field,
__entry->s.pic_width_in_mbs_minus1,
__entry->s.pic_height_in_map_units_minus1,
__print_flags(__entry->s.flags, "|",
{V4L2_H264_SPS_FLAG_SEPARATE_COLOUR_PLANE, "SEPARATE_COLOUR_PLANE"},
{V4L2_H264_SPS_FLAG_QPPRIME_Y_ZERO_TRANSFORM_BYPASS, "QPPRIME_Y_ZERO_TRANSFORM_BYPASS"},
{V4L2_H264_SPS_FLAG_DELTA_PIC_ORDER_ALWAYS_ZERO, "DELTA_PIC_ORDER_ALWAYS_ZERO"},
{V4L2_H264_SPS_FLAG_GAPS_IN_FRAME_NUM_VALUE_ALLOWED, "GAPS_IN_FRAME_NUM_VALUE_ALLOWED"},
{V4L2_H264_SPS_FLAG_FRAME_MBS_ONLY, "FRAME_MBS_ONLY"},
{V4L2_H264_SPS_FLAG_MB_ADAPTIVE_FRAME_FIELD, "MB_ADAPTIVE_FRAME_FIELD"},
{V4L2_H264_SPS_FLAG_DIRECT_8X8_INFERENCE, "DIRECT_8X8_INFERENCE"}
))
);
DECLARE_EVENT_CLASS(v4l2_ctrl_h264_pps_tmpl,
TP_PROTO(const struct v4l2_ctrl_h264_pps *p),
TP_ARGS(p),
TP_STRUCT__entry(__field_struct(struct v4l2_ctrl_h264_pps, p)),
TP_fast_assign(__entry->p = *p),
TP_printk("\npic_parameter_set_id %u\n"
"seq_parameter_set_id %u\n"
"num_slice_groups_minus1 %u\n"
"num_ref_idx_l0_default_active_minus1 %u\n"
"num_ref_idx_l1_default_active_minus1 %u\n"
"weighted_bipred_idc %u\n"
"pic_init_qp_minus26 %d\n"
"pic_init_qs_minus26 %d\n"
"chroma_qp_index_offset %d\n"
"second_chroma_qp_index_offset %d\n"
"flags %s",
__entry->p.pic_parameter_set_id,
__entry->p.seq_parameter_set_id,
__entry->p.num_slice_groups_minus1,
__entry->p.num_ref_idx_l0_default_active_minus1,
__entry->p.num_ref_idx_l1_default_active_minus1,
__entry->p.weighted_bipred_idc,
Annotation
- Immediate include surface: `linux/tracepoint.h`, `visl.h`, `trace/define_trace.h`.
- Atlas domain: Driver Families / drivers/media.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.