aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorOhad Sharabi <[email protected]>2022-07-13 13:47:23 +0300
committerOded Gabbay <[email protected]>2022-09-18 13:29:49 +0300
commit913bd4179b82adfeece29243711ccaf4330772b6 (patch)
tree8c066704bb3d4523af4a46c472c8a1b14c3822e0 /tools/perf/scripts/python/sched-migration.py
parent28742772a0bb798f67a774e91172e06a18cd9855 (diff)
habanalabs: add return code field to module iterator
Up until now the module iterator called void callback functions and so caller activating callback that may fail suffered from 2 issues: 1. The need to "plant" return called in the private data. This is a drawback since the iterator itself should not be aware of the private data of the caller. 2. Due to 1 even in a failure the iterator would keep iterating instead of break upon error. To overcome this an optional rc field added to the iterator context. Signed-off-by: Ohad Sharabi <[email protected]> Reviewed-by: Oded Gabbay <[email protected]> Signed-off-by: Oded Gabbay <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions