summaryrefslogtreecommitdiff
path: root/tools/perf/util/c++/clang.cpp
diff options
context:
space:
mode:
authorAndres Rodriguez <andres.rodriguez@amd.com>2018-04-11 00:32:33 +0300
committerOded Gabbay <oded.gabbay@gmail.com>2018-04-24 12:34:44 +0300
commit1cf6cc74bbeb85bb87c3ca3f3df97a283c3aa737 (patch)
tree35bc2fe2f2bc298e0e63833e88695a4ab266ce69 /tools/perf/util/c++/clang.cpp
parentded5e5622c38f6d0188c776bfd6793e1cdbb7606 (diff)
downloadlinux-1cf6cc74bbeb85bb87c3ca3f3df97a283c3aa737.tar.xz
drm/amdkfd: fix clock counter retrieval for node without GPU
Currently if a user requests clock counters for a node without a GPU resource we will always return EINVAL. Instead if no GPU resource is attached, fill the gpu_clock_counter argument with zeroes so that we may proceed and return valid CPU counters. Signed-off-by: Andres Rodriguez <andres.rodriguez@amd.com> Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'tools/perf/util/c++/clang.cpp')
0 files changed, 0 insertions, 0 deletions