diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2026-06-27 12:47:30 +0200 |
|---|---|---|
| committer | Madhavan Srinivasan <maddy@linux.ibm.com> | 2026-07-31 17:02:07 +0530 |
| commit | 6a7f74525a9964ef3228f6e1d1af261e92964987 (patch) | |
| tree | 311af501831ea7afa772f8b84505d4c6098a415a /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 7cc3d3fdc97fa32f1e1d7b15810e723fe524b0f8 (diff) | |
powerpc/rtasd: Use struct_size() to simplify log_rtas_len()
Now that struct rtas_error_log uses a flexible array member for the
extended log buffer, use struct_size() to calculate the total RTAS error
log size and avoid using the hard-coded header size of 8 bytes.
Use min() to replace the open-coded implementation while at it.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260627104730.276858-3-thorsten.blum@linux.dev
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
