Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf annotate: Rename 'colors.code' to 'colors.jump_arrows'

USe 'jump_arrows' config name instead of 'code' on 'colors' section.
'colors.code' config is only for jump arrows on assembly code listings
i.e.

│ ┌──jmp 1333
│ │ xchg %ax,%ax
│ │ mov %r15,%r10
│ └─→cmp %r15,%r14

But this config name seems unfit.

'jump_arrows' is more descriptive than 'code'.

Signed-off-by: Taeung Song <treeze.taeung@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1452240971-25418-1-git-send-email-treeze.taeung@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Taeung Song and committed by
Arnaldo Carvalho de Melo
78ce08df 3379e0c3

+6 -6
+1 -1
tools/perf/Documentation/perf-config.txt
··· 62 62 medium = green, default 63 63 normal = lightgray, default 64 64 selected = white, lightgray 65 - code = blue, default 65 + jump_arrows = blue, default 66 66 addr = magenta, default 67 67 root = white, blue 68 68
+1 -1
tools/perf/Documentation/perfconfig.example
··· 5 5 medium = green, lightgray 6 6 normal = black, lightgray 7 7 selected = lightgray, magenta 8 - code = blue, lightgray 8 + jump_arrows = blue, lightgray 9 9 addr = magenta, lightgray 10 10 11 11 [tui]
+2 -2
tools/perf/ui/browser.c
··· 531 531 .bg = "yellow", 532 532 }, 533 533 { 534 - .colorset = HE_COLORSET_CODE, 535 - .name = "code", 534 + .colorset = HE_COLORSET_JUMP_ARROWS, 535 + .name = "jump_arrows", 536 536 .fg = "blue", 537 537 .bg = "default", 538 538 },
+1 -1
tools/perf/ui/browser.h
··· 7 7 #define HE_COLORSET_MEDIUM 51 8 8 #define HE_COLORSET_NORMAL 52 9 9 #define HE_COLORSET_SELECTED 53 10 - #define HE_COLORSET_CODE 54 10 + #define HE_COLORSET_JUMP_ARROWS 54 11 11 #define HE_COLORSET_ADDR 55 12 12 #define HE_COLORSET_ROOT 56 13 13
+1 -1
tools/perf/ui/browsers/annotate.c
··· 284 284 to = (u64)btarget->idx; 285 285 } 286 286 287 - ui_browser__set_color(browser, HE_COLORSET_CODE); 287 + ui_browser__set_color(browser, HE_COLORSET_JUMP_ARROWS); 288 288 __ui_browser__line_arrow(browser, pcnt_width + 2 + ab->addr_width, 289 289 from, to); 290 290 }