diff options
| author | Suzuki K Poulose <[email protected]> | 2018-09-20 13:17:40 -0600 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-09-25 20:09:17 +0200 |
| commit | 96330407f86abe8e5f0594734cff28b6196c94d7 (patch) | |
| tree | 40083bc0d44caf7e5a73724008288f353c559fe1 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 5111e749c775ebae6f7d39c6f836cb3f06c7b938 (diff) | |
coresight: Fix remote endpoint parsing
When parsing the remote endpoint of an output port, we do :
rport = of_graph_get_remote_port(ep);
rparent = of_graph_get_remote_port_parent(ep);
and then parse the "remote_port" as if it was the remote endpoint,
which is wrong. The code worked fine because we used endpoint number
as the port number. Let us fix it and optimise a bit as:
remote_ep = of_graph_get_remote_endpoint(ep);
if (remote_ep)
remote_parent = of_graph_get_port_parent(remote_ep);
and then, parse the remote_ep for the port/endpoint details.
Signed-off-by: Suzuki K Poulose <[email protected]>
Signed-off-by: Mathieu Poirier <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions