src/hotspot/cpu/s390/vm_version_ext_s390.hpp
author ghaug
Tue, 10 Jul 2018 11:36:36 +0200
changeset 51034 9937ef7499dc
parent 50160 dc18db671651
child 53244 9807daeb47c4
permissions -rw-r--r--
8206919: s390: add missing info to vm_version_ext_s390 Reviewed-by: simonis, mdoerr
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
50160
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
     1
/*
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
     2
 * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
     4
 *
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
     7
 * published by the Free Software Foundation.
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
     8
 *
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    13
 * accompanied this code).
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    14
 *
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    18
 *
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    21
 * questions.
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    22
 *
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    23
 */
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    24
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    25
#ifndef CPU_S390_VM_VM_VERSION_EXT_S390_HPP
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    26
#define CPU_S390_VM_VM_VERSION_EXT_S390_HPP
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    27
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    28
#include "utilities/macros.hpp"
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    29
#include "vm_version_s390.hpp"
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    30
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    31
#define CPU_INFO        "cpu_info"
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    32
#define CPU_TYPE        "fpu_type"
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    33
#define CPU_DESCRIPTION "implementation"
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    34
#define CHIP_ID         "chip_id"
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    35
#define CORE_ID         "core_id"
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    36
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    37
class VM_Version_Ext : public VM_Version {
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    38
 private:
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    39
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    40
  static const size_t      CPU_TYPE_DESC_BUF_SIZE = 256;
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    41
  static const size_t      CPU_DETAILED_DESC_BUF_SIZE = 4096;
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    42
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    43
  static int               _no_of_threads;
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    44
  static int               _no_of_cores;
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    45
  static int               _no_of_sockets;
51034
9937ef7499dc 8206919: s390: add missing info to vm_version_ext_s390
ghaug
parents: 50160
diff changeset
    46
  static bool              _initialized;
50160
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    47
  static char              _cpu_name[CPU_TYPE_DESC_BUF_SIZE];
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    48
  static char              _cpu_desc[CPU_DETAILED_DESC_BUF_SIZE];
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    49
51034
9937ef7499dc 8206919: s390: add missing info to vm_version_ext_s390
ghaug
parents: 50160
diff changeset
    50
  static void initialize_cpu_information(void);
50160
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    51
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    52
 public:
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    53
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    54
  static int number_of_threads(void);
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    55
  static int number_of_cores(void);
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    56
  static int number_of_sockets(void);
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    57
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    58
  static const char* cpu_name(void);
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    59
  static const char* cpu_description(void);
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    60
};
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    61
dc18db671651 8203288: PPC64 and s390 fail to build after JDK-8199712 (Flight Recorder)
mdoerr
parents:
diff changeset
    62
#endif // CPU_S390_VM_VM_VERSION_EXT_S390_HPP