Arnaldo Carvalho de Melo
9ccbc21166
perf tests api-io: Use zfree() to reduce chances of use after free
...
Do defensive programming by using zfree() to initialize freed pointers
to NULL, so that eventual use after free result in a NULL pointer deref
instead of more subtle behaviour.
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2023-04-12 10:14:58 -03:00
Ian Rogers
c9dc580c43
tools api: Add io__getline
...
Reads a line to allocated memory up to a newline following the getline
API.
Committer notes:
It also adds this new function to the 'api io' 'perf test' entry:
$ perf test "api io"
64: Test api io : Ok
$
Signed-off-by: Ian Rogers <[email protected] >
Tested-by: Arnaldo Carvalho de Melo <[email protected] >
Acked-by: Namhyung Kim <[email protected] >
Cc: Adrian Hunter <[email protected] >
Cc: Alexander Shishkin <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: Jiri Olsa <[email protected] >
Cc: Mark Rutland <[email protected] >
Cc: Nathan Chancellor <[email protected] >
Cc: Nick Desaulniers <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Tom Rix <[email protected] >
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2023-04-04 13:23:59 -03:00
Ian Rogers
33f44bfd3c
perf test: Rename struct test to test_suite
...
This is to align with kunit's terminology.
Signed-off-by: Ian Rogers <[email protected] >
Tested-by: Sohaib Mohamed <[email protected] >
Acked-by: Jiri Olsa <[email protected] >
Cc: Alexander Shishkin <[email protected] >
Cc: Brendan Higgins <[email protected] >
Cc: Daniel Latypov <[email protected] >
Cc: David Gow <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: Jin Yao <[email protected] >
Cc: John Garry <[email protected] >
Cc: Mark Rutland <[email protected] >
Cc: Namhyung Kim <[email protected] >
Cc: Paul Clarke <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Stephane Eranian <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2021-11-13 10:32:22 -03:00
Ian Rogers
d68f036508
perf test: Move each test suite struct to its test
...
Rather than export test functions, export the test struct. Rename with a
suite__ prefix to avoid name collisions.
Committer notes:
Its '&suite__vectors_page', not '&suite__vectors_pages', noticed when
cross building to arm (32-bit).
Signed-off-by: Ian Rogers <[email protected] >
Tested-by: Sohaib Mohamed <[email protected] >
Acked-by: Jiri Olsa <[email protected] >
Cc: Alexander Shishkin <[email protected] >
Cc: Brendan Higgins <[email protected] >
Cc: Daniel Latypov <[email protected] >
Cc: David Gow <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: Jin Yao <[email protected] >
Cc: John Garry <[email protected] >
Cc: Mark Rutland <[email protected] >
Cc: Namhyung Kim <[email protected] >
Cc: Paul Clarke <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Stephane Eranian <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2021-11-13 10:30:58 -03:00
Ian Rogers
e95770af4c
tools api: Add a lightweight buffered reading api
...
The synthesize benchmark shows the majority of execution time going to
fgets and sscanf, necessary to parse /proc/pid/maps. Add a new buffered
reading library that will be used to replace these calls in a follow-up
CL. Add tests for the library to perf test.
Committer tests:
$ perf test api
63: Test api io : Ok
$
Signed-off-by: Ian Rogers <[email protected] >
Acked-by: Jiri Olsa <[email protected] >
Acked-by: Namhyung Kim <[email protected] >
Tested-by: Arnaldo Carvalho de Melo <[email protected] >
Cc: Alexander Shishkin <[email protected] >
Cc: Andrey Zhizhikin <[email protected] >
Cc: Jiri Olsa <[email protected] >
Cc: Kan Liang <[email protected] >
Cc: Kefeng Wang <[email protected] >
Cc: Mark Rutland <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Petr Mladek <[email protected] >
Cc: Stephane Eranian <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2020-04-30 10:48:28 -03:00