diff options
| author | Ohad Sharabi <osharabi@habana.ai> | 2022-07-13 13:47:23 +0300 |
|---|---|---|
| committer | Oded Gabbay <ogabbay@kernel.org> | 2022-09-18 13:29:49 +0300 |
| commit | 913bd4179b82adfeece29243711ccaf4330772b6 (patch) | |
| tree | 8c066704bb3d4523af4a46c472c8a1b14c3822e0 /tools/perf/scripts/python/bin | |
| parent | 28742772a0bb798f67a774e91172e06a18cd9855 (diff) | |
| download | linux-913bd4179b82adfeece29243711ccaf4330772b6.tar.gz linux-913bd4179b82adfeece29243711ccaf4330772b6.zip | |
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 <osharabi@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
