Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2437024pxb; Tue, 12 Oct 2021 06:40:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzH99IFxVxuFj6jLZ52OgrlHiGN11H69a/T+kLApacWh5yRXtT9OcsHcZJLcRXLgvD2//az X-Received: by 2002:a05:6a00:13a1:b0:44c:f60d:5fe6 with SMTP id t33-20020a056a0013a100b0044cf60d5fe6mr18715164pfg.48.1634046011715; Tue, 12 Oct 2021 06:40:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634046011; cv=none; d=google.com; s=arc-20160816; b=qg8ZJzHc7P3JVysvWfcnxlAOMsjJ+r9M7Z3s5dQ84vFLRyTZo+oviLwYnZa7FJx0Td 0FcwhwofZO1wGvdpAWZDBwSM5nTMOTXU17ruDAA1GX1PLbejxuPTfPJcxx8iK410Gqi5 bVGaFudtvnmgtKbUhEO01qhBnQrFQQ99vMabc+drU5/8JAACI+F0QkVHunHb1XtjhNUZ zZCGZX0McVmT2gGsKZVIsiA5WVh7FuoFRNQMJoazfErjCFdnfao2G7xGZLiZEz5ncuh7 1wvEt74SELc1BCtaCyctgGaJ4+gLgld53rkhnR9nOdJWtB7vRz64V61iONqU0VlVRlQ5 mYYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=gnkCxIDCiWjTuLFqxfRl3/npZnPmidafOmwjrr21Ah0=; b=PCrr82yUDxGKmBSb1ADRWwGHfJsywpWS9YoUPoO1jhcXtXVSkm9ZaVhKY9imXWY4Fu C4BDv5mLkwHlJd8C+46n9ceze8Q1bsFGbCUctFzoi8rgplJI9jPK0H2Fp2nWjhdbiQng etu/D5+5lLkreX2r+TnuHBCFOs6LyxILlFDBRgTzHpkOTErwwmzr3Rtcwn3zPKua81YK KxtlvP8Zl45tqnhF9nxlSyBtf7DKkTYzNZ0IzKEyFLeWQqeulhZB/7RuPudXE6x+WChJ 26hl2NWt6re+oeJiMI/uJmASU+lPXKnKJq96Zepe388IW2XqVCNS3CeZNznSj/9Yheml FzlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=X7bF0DEr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z21si13925388pfg.301.2021.10.12.06.39.57; Tue, 12 Oct 2021 06:40:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=X7bF0DEr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236775AbhJLNk6 (ORCPT + 99 others); Tue, 12 Oct 2021 09:40:58 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:29518 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236703AbhJLNk5 (ORCPT ); Tue, 12 Oct 2021 09:40:57 -0400 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19CCaW42025876; Tue, 12 Oct 2021 09:38:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=gnkCxIDCiWjTuLFqxfRl3/npZnPmidafOmwjrr21Ah0=; b=X7bF0DErPvs6lAxWSzdBLBUX8hBVlhPLIJGFtDs7KomT8ghyAwUrb5Qh62vmNdIt2R73 S0IaFSA/1r+InMGBItx7ct2YhajkZE0T1AsvADrWNSswDob134QVCBPnqPkf0WcYQJu3 rm52pKxYyrP/i215g19RXIdkqDCEhTgtW29DiqMeCL3LDmVW2ME0je19z9fzkKc8iEq5 n5kTLekFKYP1F8zLciHt3X6JqEMY1qURwL9BWJUrlDOTNbJVXtJppp//F66vEZg1MT5k KG1PKJiqVzmB1fJZRW9r/k9N5m3c6T8vBn5R81rJquuX4k4tBZlQtfQJrskRWQjUHhq9 vw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3bn7h0dvuj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 Oct 2021 09:38:20 -0400 Received: from m0098393.ppops.net (m0098393.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 19CDLhsb027604; Tue, 12 Oct 2021 09:38:19 -0400 Received: from ppma03fra.de.ibm.com (6b.4a.5195.ip4.static.sl-reverse.com [149.81.74.107]) by mx0a-001b2d01.pphosted.com with ESMTP id 3bn7h0dvta-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 Oct 2021 09:38:19 -0400 Received: from pps.filterd (ppma03fra.de.ibm.com [127.0.0.1]) by ppma03fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 19CDRPaU023163; Tue, 12 Oct 2021 13:38:17 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma03fra.de.ibm.com with ESMTP id 3bk2q9yg5u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 Oct 2021 13:38:16 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 19CDc8q140305022 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 12 Oct 2021 13:38:08 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B247D11C04C; Tue, 12 Oct 2021 13:38:08 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E129D11C06C; Tue, 12 Oct 2021 13:38:04 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 12 Oct 2021 13:38:04 +0000 (GMT) From: Heiko Carstens To: Steven Rostedt , Thomas Gleixner , Ingo Molnar , Borislav Petkov Cc: linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/4] s390: DYNAMIC_FTRACE_WITH_DIRECT_CALL support Date: Tue, 12 Oct 2021 15:37:58 +0200 Message-Id: <20211012133802.2460757-1-hca@linux.ibm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: t_66HDLyWxvxcW2Dx00eGk_YHhJ5LGzZ X-Proofpoint-GUID: EuL1J6fhiSv4klmjwQg5NZWCX5XJfrkz X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-12_03,2021-10-12_01,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 phishscore=0 mlxlogscore=907 bulkscore=0 clxscore=1011 spamscore=0 mlxscore=0 priorityscore=1501 suspectscore=0 impostorscore=0 malwarescore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2110120079 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This small series adds DYNAMIC_FTRACE_WITH_DIRECT_CALL support for s390 and is based on linux-next 20211012. Besides the architecture backend this also adds s390 ftrace direct call samples, and slightly changes config option handling a bit, so that options only have to be selected. This way also additional future architectures can easily add their trampolines to the samples. If ok, I'd like to get this upstream via the s390 tree with the next merge window. Heiko Carstens (4): s390/ftrace: add HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALL support s390: make STACK_FRAME_OVERHEAD available via asm-offsets.h samples: add HAVE_SAMPLE_FTRACE_DIRECT config option samples: add s390 support for ftrace direct call samples arch/s390/Kconfig | 2 ++ arch/s390/include/asm/ftrace.h | 12 ++++++++ arch/s390/kernel/asm-offsets.c | 1 + arch/s390/kernel/mcount.S | 23 ++++++++++---- arch/x86/Kconfig | 1 + samples/Kconfig | 5 ++- samples/ftrace/ftrace-direct-modify.c | 44 +++++++++++++++++++++++++++ samples/ftrace/ftrace-direct-too.c | 28 +++++++++++++++++ samples/ftrace/ftrace-direct.c | 28 +++++++++++++++++ 9 files changed, 137 insertions(+), 7 deletions(-) -- 2.25.1