Re: [PATCH v5 00/17] Reference count checker and related fixes

Arnaldo Carvalho de Melo
2023-04-04T19:54:52Z

Em Tue, Apr 04, 2023 at 04:53:10PM -0300, Arnaldo Carvalho de Melo escreveu:
> Applied to:
>
> perf map: Add accessor for start and end

> +++ b/tools/perf/util/machine.c
> @@ -903,7 +903,7 @@ static int machine__process_ksymbol_register(struct machine *machine,
> }
>
> map->start = event->ksymbol.addr;
> - map->end = map__start(map) + event->ksymbol.len;
> + map__end(map) = map__start(map) + event->ksymbol.len;

Ditch this one, duh.

> err = maps__insert(machine__kernel_maps(machine), map);
> map__put(map);
> if (err)