aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorBoqun Feng <[email protected]>2020-08-07 15:42:22 +0800
committerPeter Zijlstra <[email protected]>2020-08-26 12:42:03 +0200
commitb11be024de164213f6338973d76ab9ab139120cd (patch)
tree99a37e09244b3000272385ded528d38d0814e775 /tools/perf/scripts/python/export-to-postgresql.py
parent224ec489d3cdb0af6794e257eeee39d98dc9c5b2 (diff)
lockdep: Demagic the return value of BFS
__bfs() could return four magic numbers: 1: search succeeds, but none match. 0: search succeeds, find one match. -1: search fails because of the cq is full. -2: search fails because a invalid node is found. This patch cleans things up by using a enum type for the return value of __bfs() and its friends, this improves the code readability of the code, and further, could help if we want to extend the BFS. Signed-off-by: Boqun Feng <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions