OSDN Git Service

intel/perf: fix invalid hw_id in query results
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 3 Dec 2019 14:08:12 +0000 (16:08 +0200)
committerDylan Baker <dylan@pnwbakers.com>
Wed, 4 Dec 2019 21:41:07 +0000 (13:41 -0800)
commitd362ba77ce870cec0d8ee88f29ef8fe2a7d5d964
tree362dee62114fbe51af38c91406a35eae48162630
parent9b189cb9b1beb6dac1ef71b018c54ff8352465f8
intel/perf: fix invalid hw_id in query results

Accumulation happens between 2 reports, it can be between a start/end
report from another context. So only consider updating the hw_id of
the results when it's not already valid and that we have a valid value
to put in there.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 41b54b5faf ("i965: move OA accumulation code to intel/perf")
Reviewed-by: Mark Janes <mark.a.janes@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
(cherry picked from commit acea59dbf8056b46444c820115d86c42d0411686)
src/intel/perf/gen_perf.c