kallsyms: add more original symbol type/name in comment lines

Commit bea5b7450474 ("kallsyms: expand symbol name into comment for
debugging") added the uncompressed type/name in the comment lines of
kallsyms_offsets.

It would be useful to do the same for kallsyms_names and
kallsyms_seqs_of_names.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

+9 -10
+9 -10
scripts/kallsyms.c
··· 456 456 } 457 457 for (k = 0; k < table[i]->len; k++) 458 458 printf(", 0x%02x", table[i]->sym[k]); 459 - printf("\n"); 460 - } 461 - printf("\n"); 462 459 463 - /* 464 - * Now that we wrote out the compressed symbol names, restore the 465 - * original names, which are needed in some of the later steps. 466 - */ 467 - for (i = 0; i < table_cnt; i++) { 460 + /* 461 + * Now that we wrote out the compressed symbol name, restore the 462 + * original name and print it in the comment. 463 + */ 468 464 expand_symbol(table[i]->sym, table[i]->len, buf); 469 465 strcpy((char *)table[i]->sym, buf); 466 + printf("\t/* %s */\n", table[i]->sym); 470 467 } 468 + printf("\n"); 471 469 472 470 output_label("kallsyms_markers"); 473 471 for (i = 0; i < markers_cnt; i++) ··· 534 536 sort_symbols_by_name(); 535 537 output_label("kallsyms_seqs_of_names"); 536 538 for (i = 0; i < table_cnt; i++) 537 - printf("\t.byte 0x%02x, 0x%02x, 0x%02x\n", 539 + printf("\t.byte 0x%02x, 0x%02x, 0x%02x\t/* %s */\n", 538 540 (unsigned char)(table[i]->seq >> 16), 539 541 (unsigned char)(table[i]->seq >> 8), 540 - (unsigned char)(table[i]->seq >> 0)); 542 + (unsigned char)(table[i]->seq >> 0), 543 + table[i]->sym); 541 544 printf("\n"); 542 545 } 543 546