diff options
| author | Praveen Talari <praveen.talari@oss.qualcomm.com> | 2026-06-15 19:46:52 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-07-10 14:41:04 +0200 |
| commit | a9b2c446e36f60e540ec29f756bbb5a1de37811a (patch) | |
| tree | e6b9587d56da065a93507e81a2ecf89ba98d20c6 /include/linux/workqueue_api.h | |
| parent | 31e11af34e2c7cc61e25533ab877b1f9cc3eb528 (diff) | |
serial: qcom-geni: trace: Drop redundant len field from geni_serial_data
The dynamic array stored in the ring buffer already carries its own
length in the array metadata. There is no need to also store it as a
separate scalar field in the entry struct.
Drop __field(unsigned int, len) and the corresponding __entry->len
assignment, and use __get_dynamic_array_len(data) in the TP_printk for
both the len=%u format argument and the __print_hex() size argument.
This saves 4 bytes per event on the ring buffer.
Signed-off-by: Praveen Talari <praveen.talari@oss.qualcomm.com>
Suggested-by: Steven Rostedt <rostedt@goodmis.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://patch.msgid.link/20260615-add-tracepoints-for-qcom-geni-serial-v5-1-2efa4c97e0e2@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/workqueue_api.h')
0 files changed, 0 insertions, 0 deletions
