1. 23 4月, 2018 1 次提交
  2. 19 2月, 2018 1 次提交
  3. 17 2月, 2018 2 次提交
    • T
      perf cpuid: Introduce a platform specific cpuid compare function · 4cb7d3ec
      Thomas Richter 提交于
      The function get_cpuid_str() is called by perf_pmu__getcpuid() and on
      s390 returns a complete description of the CPU and its capabilities,
      which is a comma separated list.
      
      To map the CPU type with the value defined in the
      pmu-events/arch/s390/mapfile.csv, introduce an architecture specific
      cpuid compare function named strcmp_cpuid_str()
      
      The currently used regex algorithm is defined as the weak default and
      will be used if no platform specific one is defined. This matches the
      current behavior.
      Signed-off-by: NThomas Richter <tmricht@linux.vnet.ibm.com>
      Reviewed-by: NHendrik Brueckner <brueckner@linux.vnet.ibm.com>
      Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Link: http://lkml.kernel.org/r/20180213151419.80737-3-tmricht@linux.vnet.ibm.comSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      4cb7d3ec
    • T
      perf record: Provide detailed information on s390 CPU · eca0fa28
      Thomas Richter 提交于
      When perf record ... is setup to record data, the s390 cpu information
      was a fixed string "IBM/S390".
      
      Replace this string with one containing more information about the
      machine. The information included in the cpuid is a comma separated
      list:
      
         manufacturer,type,model-capacity,model[,version,authorization]
      with
      
      - manufacturer: up to 16 byte name of the manufacturer (IBM).
      - type: a four digit number refering to the machine
        generation.
      - model-capacitiy: up to 16 characters describing number
        of cpus etc.
      - model: up to 16 characters describing model.
      - version: the CPU-MF counter facility version number,
        available on LPARs only, omitted on z/VM guests.
      - authorization: the CPU-MF counter facility authorization level,
        available on LPARs only, omitted on z/VM guests.
      
      Before:
      
        [root@s8360047 perf]# ./perf record -- sleep 1
        [ perf record: Woken up 1 times to write data ]
        [ perf record: Captured and wrote 0.001 MB perf.data (4 samples) ]
        [root@s8360047 perf]# ./perf report --header | fgrep cpuid
         # cpuid : IBM/S390
        [root@s8360047 perf]#
      
      After:
      
        [root@s35lp76 perf]# ./perf report --header|fgrep cpuid
         # cpuid : IBM,3906,704,M03,3.5,002f
        [root@s35lp76 perf]#
      Signed-off-by: NThomas Richter <tmricht@linux.vnet.ibm.com>
      Reviewed-by: NHendrik Brueckner <brueckner@linux.vnet.ibm.com>
      Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Link: http://lkml.kernel.org/r/20180213151419.80737-1-tmricht@linux.vnet.ibm.com
      [ Use scnprintf instead of strncat to fix build errors on gcc GNU C99 5.4.0 20160609 -march=zEC12 -m64 -mzarch -ggdb3 -O6 -std=gnu99 -fPIC -fno-omit-frame-pointer -funwind-tables -fstack-protector-all ]
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      eca0fa28
  4. 08 7月, 2014 1 次提交