lkml.org 
[lkml]   [2018]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH RFC 07/19] perf tools: Workaround missing maps for x86_64 KPTI entry trampolines
On Wed, May 09, 2018 at 02:43:36PM +0300, Adrian Hunter wrote:

SNIP

> +
> + for (i = 0; i < ARRAY_SIZE(syms); i++) {
> + if (syms[i].addr)
> + return syms[i].addr;
> + }
> +
> + return 0;
> +}
> +
> +/*
> + * These values can be used for kernels that do not have symbols for the entry
> + * trampolines in kallsyms.
> + */
> +#define X86_64_CPU_ENTRY_AREA_PER_CPU 0xfffffe0000000000ULL
> +#define X86_64_CPU_ENTRY_AREA_SIZE 0x2c000
> +#define X86_64_ENTRY_TRAMPOLINE 0x6000
> +
> +/* Map x86_64 KPTI entry trampolines */
> +int machine__map_x86_64_entry_trampolines(struct machine *machine,
> + struct dso *kernel)
> +{

would it make sense to put all this under arch/x86/util/machine.c ?

jirka

\
 
 \ /
  Last update: 2018-05-15 12:32    [W:0.249 / U:2.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site