Skip to content

Commit f2eaea0

Browse files
committed
perf map_symbol: Rename ms->mg to ms->maps
One more step on the merge of 'struct maps' with 'struct map_groups'. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-61rra2wg392rhvdgw421wzpt@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 694520d commit f2eaea0

9 files changed

Lines changed: 16 additions & 16 deletions

File tree

‎tools/perf/arch/s390/annotate/instructions.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static int s390_call__parse(struct arch *arch, struct ins_operands *ops,
3838
return -1;
3939
target.addr = map__objdump_2mem(map, ops->target.addr);
4040

41-
if (maps__find_ams(ms->mg, &target) == 0 &&
41+
if (maps__find_ams(ms->maps, &target) == 0 &&
4242
map__rip_2objdump(target.ms.map, map->map_ip(target.ms.map, target.addr)) == ops->target.addr)
4343
ops->target.sym = target.ms.sym;
4444

‎tools/perf/ui/browsers/annotate.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ static bool annotate_browser__callq(struct annotate_browser *browser,
430430
return true;
431431
}
432432

433-
target_ms.mg = ms->mg;
433+
target_ms.maps = ms->maps;
434434
target_ms.map = ms->map;
435435
target_ms.sym = dl->ops.target.sym;
436436
pthread_mutex_unlock(&notes->lock);

‎tools/perf/util/annotate.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ static int call__parse(struct arch *arch, struct ins_operands *ops, struct map_s
271271
find_target:
272272
target.addr = map__objdump_2mem(map, ops->target.addr);
273273

274-
if (maps__find_ams(ms->mg, &target) == 0 &&
274+
if (maps__find_ams(ms->maps, &target) == 0 &&
275275
map__rip_2objdump(target.ms.map, map->map_ip(target.ms.map, target.addr)) == ops->target.addr)
276276
ops->target.sym = target.ms.sym;
277277

@@ -391,7 +391,7 @@ static int jump__parse(struct arch *arch, struct ins_operands *ops, struct map_s
391391
* Actual navigation will come next, with further understanding of how
392392
* the symbol searching and disassembly should be done.
393393
*/
394-
if (maps__find_ams(ms->mg, &target) == 0 &&
394+
if (maps__find_ams(ms->maps, &target) == 0 &&
395395
map__rip_2objdump(target.ms.map, map->map_ip(target.ms.map, target.addr)) == ops->target.addr)
396396
ops->target.sym = target.ms.sym;
397397

@@ -1545,7 +1545,7 @@ static int symbol__parse_objdump_line(struct symbol *sym,
15451545
.ms = { .map = map, },
15461546
};
15471547

1548-
if (!maps__find_ams(args->ms.mg, &target) &&
1548+
if (!maps__find_ams(args->ms.maps, &target) &&
15491549
target.ms.sym->start == target.al_addr)
15501550
dl->ops.target.sym = target.ms.sym;
15511551
}

‎tools/perf/util/callchain.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ int hist_entry__append_callchain(struct hist_entry *he, struct perf_sample *samp
11061106
int fill_callchain_info(struct addr_location *al, struct callchain_cursor_node *node,
11071107
bool hide_unresolved)
11081108
{
1109-
al->maps = node->ms.mg;
1109+
al->maps = node->ms.maps;
11101110
al->map = node->ms.map;
11111111
al->sym = node->ms.sym;
11121112
al->srcline = node->srcline;

‎tools/perf/util/hist.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ __hists__add_entry(struct hists *hists,
692692
.ino = ns ? ns->link_info[CGROUP_NS_INDEX].ino : 0,
693693
},
694694
.ms = {
695-
.mg = al->maps,
695+
.maps = al->maps,
696696
.map = al->map,
697697
.sym = al->sym,
698698
},
@@ -760,7 +760,7 @@ struct hist_entry *hists__add_entry_block(struct hists *hists,
760760
.block_info = block_info,
761761
.hists = hists,
762762
.ms = {
763-
.mg = al->maps,
763+
.maps = al->maps,
764764
.map = al->map,
765765
.sym = al->sym,
766766
},
@@ -895,7 +895,7 @@ iter_next_branch_entry(struct hist_entry_iter *iter, struct addr_location *al)
895895
if (iter->curr >= iter->total)
896896
return 0;
897897

898-
al->maps = bi[i].to.ms.mg;
898+
al->maps = bi[i].to.ms.maps;
899899
al->map = bi[i].to.ms.map;
900900
al->sym = bi[i].to.ms.sym;
901901
al->addr = bi[i].to.addr;
@@ -1072,7 +1072,7 @@ iter_add_next_cumulative_entry(struct hist_entry_iter *iter,
10721072
.comm = thread__comm(al->thread),
10731073
.ip = al->addr,
10741074
.ms = {
1075-
.mg = al->maps,
1075+
.maps = al->maps,
10761076
.map = al->map,
10771077
.sym = al->sym,
10781078
},

‎tools/perf/util/machine.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1934,7 +1934,7 @@ static void ip__resolve_ams(struct thread *thread,
19341934

19351935
ams->addr = ip;
19361936
ams->al_addr = al.addr;
1937-
ams->ms.mg = al.maps;
1937+
ams->ms.maps = al.maps;
19381938
ams->ms.sym = al.sym;
19391939
ams->ms.map = al.map;
19401940
ams->phys_addr = 0;
@@ -1952,7 +1952,7 @@ static void ip__resolve_data(struct thread *thread,
19521952

19531953
ams->addr = addr;
19541954
ams->al_addr = al.addr;
1955-
ams->ms.mg = al.maps;
1955+
ams->ms.maps = al.maps;
19561956
ams->ms.sym = al.sym;
19571957
ams->ms.map = al.map;
19581958
ams->phys_addr = phys_addr;
@@ -2069,7 +2069,7 @@ static int add_callchain_ip(struct thread *thread,
20692069
iter_cycles = iter->cycles;
20702070
}
20712071

2072-
ms.mg = al.maps;
2072+
ms.maps = al.maps;
20732073
ms.map = al.map;
20742074
ms.sym = al.sym;
20752075
srcline = callchain_srcline(&ms, al.addr);

‎tools/perf/util/map_symbol.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ struct map;
99
struct symbol;
1010

1111
struct map_symbol {
12-
struct maps *mg;
12+
struct maps *maps;
1313
struct map *map;
1414
struct symbol *sym;
1515
};

‎tools/perf/util/unwind-libdw.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static int entry(u64 ip, struct unwind_info *ui)
8181
return -1;
8282

8383
e->ip = ip;
84-
e->ms.mg = al.maps;
84+
e->ms.maps = al.maps;
8585
e->ms.map = al.map;
8686
e->ms.sym = al.sym;
8787

‎tools/perf/util/unwind-libunwind-local.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ static int entry(u64 ip, struct thread *thread,
578578
e.ms.sym = thread__find_symbol(thread, PERF_RECORD_MISC_USER, ip, &al);
579579
e.ip = ip;
580580
e.ms.map = al.map;
581-
e.ms.mg = al.maps;
581+
e.ms.maps = al.maps;
582582

583583
pr_debug("unwind: %s:ip = 0x%" PRIx64 " (0x%" PRIx64 ")\n",
584584
al.sym ? al.sym->name : "''",

0 commit comments

Comments
 (0)