diff options
| author | Alexander Shishkin <[email protected]> | 2018-10-05 15:43:05 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-10-11 12:12:55 +0200 |
| commit | ce76d938dd98817f998c905e01fbb99b072c0bf6 (patch) | |
| tree | 47f7757c447cf582d7523c7a5e1f467ef28f050c /tools/perf/scripts/python/check-perf-trace.py | |
| parent | 6c7e4b6882ad080dad623ba2f4c1a4db578313cb (diff) | |
lib: Add memcat_p(): paste 2 pointer arrays together
This adds a helper to paste 2 pointer arrays together, useful for merging
various types of attribute arrays. There are a few places in the kernel
tree where this is open coded, and I just added one more in the STM class.
The naming is inspired by memset_p() and memcat(), and partial credit for
it goes to Andy Shevchenko.
This patch adds the function wrapped in a type-enforcing macro and a test
module.
Signed-off-by: Alexander Shishkin <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Tested-by: Mathieu Poirier <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions