• Arnaldo Carvalho de Melo's avatar
    perf beauty: Wire up the x86_arch prctl code table generator · 40714e8b
    Arnaldo Carvalho de Melo authored
      $ cat /tmp/build/perf/trace/beauty/generated/x86_arch_prctl_code_array.c
      #define x86_arch_prctl_codes_1_offset 0x1001
      static const char *x86_arch_prctl_codes_1[] = {
    	[0x1001 - 0x1001]= "SET_GS",
    	[0x1002 - 0x1001]= "SET_FS",
    	[0x1003 - 0x1001]= "GET_FS",
    	[0x1004 - 0x1001]= "GET_GS",
    	[0x1011 - 0x1001]= "GET_CPUID",
    	[0x1012 - 0x1001]= "SET_CPUID",
      };
    
      #define x86_arch_prctl_codes_2_offset 0x2001
      static const char *x86_arch_prctl_codes_2[] = {
    	[0x2001 - 0x2001]= "MAP_VDSO_X32",
    	[0x2002 - 0x2001]= "MAP_VDSO_32",
    	[0x2003 - 0x2001]= "MAP_VDSO_64",
      };
      $
    
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Luis Cláudio Gonçalves <lclaudio@redhat.com>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Wang Nan <wangnan0@huawei.com>
    Link: https://lkml.kernel.org/n/tip-3r9blij6n8wdlsyd5dujx86r@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    40714e8b
Makefile.perf 32.6 KB