aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorHe Kuang <[email protected]>2019-01-21 00:05:22 +0800
committerArnaldo Carvalho de Melo <[email protected]>2019-01-21 11:29:07 -0300
commitda06d568386877809532e8ec678f4a5e300f0951 (patch)
treeaca3dd3b896c3881040bb1adfada5812f32cdb4f /net/lapb/lapb_timer.c
parent1497e804d1a6e2bd9107ddf64b0310449f4673eb (diff)
perf top: Fix wrong hottest instruction highlighted
The annotation line percentage is compared and inserted into the rbtree, but the percent field of 'struct annotation_data' is an array, the comparison result between them is the address difference. This patch compares the right slot of percent array according to opts->percent_type and makes things right. The problem can be reproduced by pressing 'H' in perf top annotation view. It should highlight the instruction line which has the highest sampling percentage. Signed-off-by: He Kuang <[email protected]> Reviewed-by: Jiri Olsa <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions