Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5241133ybe; Tue, 10 Sep 2019 00:12:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqyfjBYsZ+gD3ePqz4QfhA4sCWk4lfUs6Tx8YBL3kZ5VKq96RFAdy9CgcDjw8DHuvEWJi8YD X-Received: by 2002:a50:ab0f:: with SMTP id s15mr15361053edc.119.1568099523679; Tue, 10 Sep 2019 00:12:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568099523; cv=none; d=google.com; s=arc-20160816; b=XCaPmlN5oDW6beoW6LVoIEOdjpiM9tieHcUxoPZ5A3Yn41ijti2Ek4jm2gEWTKifY6 VtLZsk0WdcYTaCSmb6gRoNJBpv3kuyCJt5C99LZHWYjDdFZbKTjKykorG/16zsuJLvUb C7ECFxBfGlHbxUFVdAlMXuU3PNUnzRM8RgGlox0N/VkiVA78wG2GRMmMyTr8xgCcVFes b1TuWkY5J+UbiJkips+PwHTu851J3s6ww50f0vmdIPfqfgsNO5UrXp53m6ROWnGhGNkf slN+58NiYLm02FRwL6GBDGQBv5VZXXlaEVUHASd/6UMjU0XxRZFoKf3fnK/WBfj7CEBd hggw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to:date :subject:cc:to:from; bh=3lcsnMIyWfORzQyHR/JdpPqW0tiWuG2frNpV7JYyHmM=; b=CQZPsCWc91jWliaFCj2NCXfe/yHLcZ71QTKWwZtvv/XGoMN46yPNkb/ebm/+UAcKMH WHuv8DXG6ViNaLzXqGDCXEpMAs+txbSf5zSkzlBiiZqQDTyitfQod0mfwR8w1sxx+67R X2Mr/B+JROiFSPFc8E79RleQqu0I51+1qAISTWf4+iyQXWhHnn4pCUPnuqxEoex7/k9J AfskmANES2BKTt2nwFBQdQgD3AGmN79CfIzDeZIqyEqzvhcrexviIZwctNhl1qeJ/D/1 QBmIKXL8KZeHxGQBZaakN3i23J/eXoRHL7CR3RhuzHRUR/KUmHxb5Ctdl7bayCBsIpZS 2p6Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r17si499044edx.257.2019.09.10.00.11.38; Tue, 10 Sep 2019 00:12:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404256AbfIILlp (ORCPT + 99 others); Mon, 9 Sep 2019 07:41:45 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:27160 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730693AbfIILlm (ORCPT ); Mon, 9 Sep 2019 07:41:42 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x89BRGhv077193 for ; Mon, 9 Sep 2019 07:41:41 -0400 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 2uwmbfvxmn-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 09 Sep 2019 07:41:40 -0400 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 9 Sep 2019 12:41:39 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 9 Sep 2019 12:41:36 +0100 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x89BfYL557934008 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 9 Sep 2019 11:41:34 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 667D9A4051; Mon, 9 Sep 2019 11:41:34 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 222C5A4040; Mon, 9 Sep 2019 11:41:34 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 9 Sep 2019 11:41:34 +0000 (GMT) From: Thomas Richter To: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, acme@kernel.org Cc: brueckner@linux.ibm.com, gor@linux.ibm.com, heiko.carstens@de.ibm.com, Thomas Richter Subject: [PATCH 2/3] perf: Include JVMTI support for s390 Date: Mon, 9 Sep 2019 13:41:15 +0200 X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190909114116.50469-1-tmricht@linux.ibm.com> References: <20190909114116.50469-1-tmricht@linux.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 19090911-0008-0000-0000-000003131CDC X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19090911-0009-0000-0000-00004A317FF1 Message-Id: <20190909114116.50469-3-tmricht@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-09-09_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1909090121 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable JTI support for s390 perf tool chain Signed-off-by: Thomas Richter --- tools/perf/arch/s390/Makefile | 1 + tools/perf/util/genelf.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/tools/perf/arch/s390/Makefile b/tools/perf/arch/s390/Makefile index cb198787570a..6ac8887be7c9 100644 --- a/tools/perf/arch/s390/Makefile +++ b/tools/perf/arch/s390/Makefile @@ -4,6 +4,7 @@ PERF_HAVE_DWARF_REGS := 1 endif HAVE_KVM_STAT_SUPPORT := 1 PERF_HAVE_ARCH_REGS_QUERY_REGISTER_OFFSET := 1 +PERF_HAVE_JITDUMP := 1 # # Syscall table generation for perf diff --git a/tools/perf/util/genelf.h b/tools/perf/util/genelf.h index b72440bf9a79..d4137559be05 100644 --- a/tools/perf/util/genelf.h +++ b/tools/perf/util/genelf.h @@ -35,6 +35,9 @@ int jit_add_debug_info(Elf *e, uint64_t code_addr, void *debug, int nr_debug_ent #elif defined(__sparc__) #define GEN_ELF_ARCH EM_SPARC #define GEN_ELF_CLASS ELFCLASS32 +#elif defined(__s390x__) +#define GEN_ELF_ARCH EM_S390 +#define GEN_ELF_CLASS ELFCLASS64 #else #error "unsupported architecture" #endif -- 2.21.0