diff options
author | Yang Jihong <[email protected]> | 2022-07-09 09:50:21 +0800 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2022-07-26 16:02:13 -0300 |
commit | e432947ef5500f0c89ab044e00ee7842d38bdb39 (patch) | |
tree | 14cecd2ff9b0353a86e6e1a14f95d41f88faca3c /scripts/gdb/linux/symbols.py | |
parent | 97179d9d086ff96b3af0f00f0e279203ec7b57c4 (diff) |
tools lib: Add list_last_entry_or_null()
Add list_last_entry_or_null() to get the last element from a list,
returns NULL if the list is empty.
Signed-off-by: Yang Jihong <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Clarke <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/symbols.py')
0 files changed, 0 insertions, 0 deletions