aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2013-08-27 12:36:01 -0400
committerAlex Deucher <alexander.deucher@amd.com>2013-08-30 16:31:10 -0400
commitfb93df1c2d8b3b1fb16d6ee9e32554e0c038815d (patch)
tree2a5e0d1342df685ec93851d3b6d683058a2ed9a3 /tools/perf/scripts/python/syscall-counts-by-pid.py
parentacf88deb8ddbb73acd1c3fa32fde51af9153227f (diff)
drm/radeon: fix handling of variable sized arrays for router objects
The table has the following format: typedef struct _ATOM_SRC_DST_TABLE_FOR_ONE_OBJECT //usSrcDstTableOffset pointing to this structure { UCHAR ucNumberOfSrc; USHORT usSrcObjectID[1]; UCHAR ucNumberOfDst; USHORT usDstObjectID[1]; }ATOM_SRC_DST_TABLE_FOR_ONE_OBJECT; usSrcObjectID[] and usDstObjectID[] are variably sized, so we can't access them directly. Use pointers and update the offset appropriately when accessing the Dst members. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions