diff options
| author | Tomer Tayar <[email protected]> | 2022-07-27 09:04:13 +0300 |
|---|---|---|
| committer | Oded Gabbay <[email protected]> | 2022-09-18 13:29:50 +0300 |
| commit | 7fa6c0fe8b2154f84162b8aacbe581df722a6f0c (patch) | |
| tree | 85da267f28d491f2f8b070c6edbfa6365818beac /tools/perf/scripts/python/flamegraph.py | |
| parent | 0c876b47a54a5ae1331a99da9cc115f8f5c90990 (diff) | |
habanalabs: avoid returning a valid handle if map_block() fails
map_block() sets the block id handle even if get_hw_block_id() fails,
and in this case it uses block id 0 which might be a valid id.
Modify it to set the handle only if get_hw_block_id() succeeds.
Signed-off-by: Tomer Tayar <[email protected]>
Reviewed-by: Oded Gabbay <[email protected]>
Signed-off-by: Oded Gabbay <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions