aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorMathieu Poirier <[email protected]>2018-05-25 17:10:54 -0600
committerArnaldo Carvalho de Melo <[email protected]>2018-05-30 15:38:40 -0300
commite2ab28521a588785c3e053098ffe607b5ff54634 (patch)
tree1a5363cb9b9e915f3471ada96398841fa7535099 /tools/perf/util/scripting-engines/trace-event-python.c
parentab4e32ff5aa797eaea551dbb67946e2fcb56cc7e (diff)
perf cs-etm: Fix indexing for decoder packet queue
The tail of a queue is supposed to be pointing to the next available slot in a queue. In this implementation the tail is incremented before it is used and as such points to the last used element, something that has the immense advantage of centralizing tail management at a single location and eliminating a lot of redundant code. But this needs to be taken into consideration on the dequeueing side where the head also needs to be incremented before it is used, or the first available element of the queue will be skipped. Signed-off-by: Mathieu Poirier <[email protected]> Tested-by: Leo Yan <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Robert Walker <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions