1on init
2    # Create the directory for the trace instance during early init
3    chmod 666 /sys/kernel/tracing/instances/irq_gia_google
4    chmod 666 /sys/kernel/tracing/instances/irq_gia_google/trace
5    chown system system /sys/kernel/tracing/instances/irq_gia_google
6    chown system system /sys/kernel/tracing/instances/irq_gia_google/trace
7
8    # There are some very high frequency IRQ events happening all the time. Tracing
9    # them is not absolute necessity, but a flood of them is noise for more interesting
10    # events that we want to capture. All these high frequency IRQs have virq < 11.
11    write /sys/kernel/tracing/instances/irq_gia_google/events/irq/filter "irq > 11"
12
13    # Keep the buffer size small. This size is practically enough for debug purpose.
14    # Having low size helps because this entire buffer gets dumped in bugreport.
15    # Having a large size can impact bugreport size and time it takes to pack/unpack.
16    write /sys/kernel/tracing/instances/irq_gia_google/buffer_size_kb 64
17