Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp604904ybm; Wed, 22 May 2019 08:31:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqyoRagUKpA+99NIbUKJF1M/tIEWcaOt7N45BTTzB0xRUEdvpcD3YDWCTNMeiYItNcnPb/N/ X-Received: by 2002:a17:902:8f8f:: with SMTP id z15mr40280545plo.93.1558539103206; Wed, 22 May 2019 08:31:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558539103; cv=none; d=google.com; s=arc-20160816; b=QWRlWdukA+UqUVq50WLGV8/j/Ugpaod2KG/v6k5eCYsAhDJJ5vqpvOvixBQBw0fAv7 mB5KJwTqYiecqdDTMEODjENZgD1JVwjrI4Vbp6YJoKZRZsQF7CswU35DYVEZ+qSkOkYT Mnhvt3OUfTZfhMLOtIDXSSOx+mMGaciI/E4UaPwQsmwA+Ebu1KgtgYOBjhNtEYqwa1LO 5//qCVDH8do0DVvuivg614q9VeTW9vI8UIqYEnmBPeDQ06pRAbZCKZmnmZzblGiI3Ri1 PNGm5285hBM58TC6RIsZ9fyg2v71WW7XTn701zYnarQ0YXZiMaZbgcuC4hWxt+090zM+ /1FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=JtmhPIoSCuxldPwuM0DMe8uRRHFz3e5twF12hJTLdJI=; b=fwaRKh28tQ6vPnjb+GxjEYr1XC9iRJx4zEDiXsCSpjs7Lzzfsc6pZ/xDwhrbS8h1Aw hIPJbcTv3IBz4sLTUZ+TF6IuKlShDUScX875H4vfYJYAnR8C9eTEgmwd1uWbv2o1bzf1 l+YEQ5O5gojZGOGeyDO7CZ7zp+H21vcvO+rkUaM5YxOMHR/RSZiP73/EHPxaBxUzZLa5 QuHWhfnrgzJ+6ILs04SOP1M9aNgGq8OKnUDzPG+mRy3+87h2MMiw64Fjhj2EE1HHzZ94 pyU9YI/p6RyvmV7fWOr/WG6oL2b+PFJk1/mgE9GCke6ECtB7TJbfDzaFw7kt2aOzHpLg 8r8A== 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 g2si17541583plg.336.2019.05.22.08.31.25; Wed, 22 May 2019 08:31:43 -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 S1729575AbfEVOqO (ORCPT + 99 others); Wed, 22 May 2019 10:46:14 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:43840 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729057AbfEVOqN (ORCPT ); Wed, 22 May 2019 10:46:13 -0400 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x4MEhvpo014424 for ; Wed, 22 May 2019 10:46:13 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 2sn8du87b8-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 22 May 2019 10:46:12 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 22 May 2019 15:46:10 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp07.uk.ibm.com (192.168.101.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 22 May 2019 15:46:09 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x4MEk89R49086592 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 22 May 2019 14:46:08 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EB27811C052; Wed, 22 May 2019 14:46:07 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AEEC611C054; Wed, 22 May 2019 14:46:07 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 22 May 2019 14:46:07 +0000 (GMT) From: Thomas Richter To: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, acme@kernel.org Cc: brueckner@linux.vnet.ibm.com, heiko.carstens@de.ibm.com, Thomas Richter Subject: [PATCH 0/3] Fix OOM in perf report on s390 Date: Wed, 22 May 2019 16:45:58 +0200 X-Mailer: git-send-email 2.17.1 X-TM-AS-GCONF: 00 x-cbid: 19052214-0028-0000-0000-00000370590A X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19052214-0029-0000-0000-0000243007BB Message-Id: <20190522144601.50763-1-tmricht@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-05-22_07:,, 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=837 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905220104 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch set fixes OOM scenarios on s390 when commands perf top or perf report are executed. This often happens when debuginfo packages are not installed. Root users and non-root users are both affected. Patch 1: Do not allocate memory for histograms when the symbol is not of type function. Patch 2: Reduce the gap between kernel end and and first module start address on perf record. Patch 3: Create module maps for non-root user during perf record on s390. Thomas Richter (3): perf report: Fix OOM error in TUI mode on s390 perf record: Fix kallsym map size for s390 perf record: Fix s390 missing module symbol and warning for non-root users tools/perf/arch/s390/util/machine.c | 9 ++++++--- tools/perf/util/annotate.c | 2 +- tools/perf/util/event.c | 4 ++-- tools/perf/util/machine.c | 29 +++++++++++++++++++++++------ 4 files changed, 32 insertions(+), 12 deletions(-) -- 2.19.1