Chintan Pandya | d6b9cc4 | 2024-11-15 09:22:42 -0800 | [diff] [blame] | 1 | on init |
| 2 | # Create the directory for the trace instance during early init |
Chintan Pandya | 2d6b42c | 2024-12-05 18:21:02 +0000 | [diff] [blame] | 3 | chmod 666 /sys/kernel/tracing/instances/irq_gia_google |
| 4 | chmod 666 /sys/kernel/tracing/instances/irq_gia_google/trace |
Chintan Pandya | d6b9cc4 | 2024-11-15 09:22:42 -0800 | [diff] [blame] | 5 | chown system system /sys/kernel/tracing/instances/irq_gia_google |
| 6 | chown system system /sys/kernel/tracing/instances/irq_gia_google/trace |
| 7 | |
Chintan Pandya | d6b9cc4 | 2024-11-15 09:22:42 -0800 | [diff] [blame] | 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" |
Chintan Pandya | d6b9cc4 | 2024-11-15 09:22:42 -0800 | [diff] [blame] | 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. |
Chintan Pandya | f94206f | 2024-12-05 18:23:52 +0000 | [diff] [blame] | 16 | write /sys/kernel/tracing/instances/irq_gia_google/buffer_size_kb 64 |