From patchwork Tue Nov 7 21:57:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ankur Arora X-Patchwork-Id: 13449408 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id C1357C4332F for ; Tue, 7 Nov 2023 22:00:47 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4877F8D0086; Tue, 7 Nov 2023 17:00:30 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 4415F8D007C; Tue, 7 Nov 2023 17:00:30 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 23C398D0086; Tue, 7 Nov 2023 17:00:30 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 0C8298D007C for ; Tue, 7 Nov 2023 17:00:30 -0500 (EST) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id D79F01A0A29 for ; Tue, 7 Nov 2023 22:00:29 +0000 (UTC) X-FDA: 81432527778.16.57B336E Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf21.hostedemail.com (Postfix) with ESMTP id 656701C001C for ; Tue, 7 Nov 2023 22:00:26 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=mNUEa5TA; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=VSjkTLWl; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf21.hostedemail.com: domain of ankur.a.arora@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=ankur.a.arora@oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1699394426; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=TL9Y5NXwSCMqi0BI//p47SGdWVHhaQ0lKLdpboL8OGw=; b=XlzJhaZ+KvGbPBd0ybaoFnyGcCReyiinMagrrbzfUWhsXVWsL7z37AS2v4EHrDWnO7/+YM 8+L8G5ydnus6Fe34VTd9RP4f5lLoSsFiRPWUohJH5K04HlHIjXGhOyhJkzvFaJnhAilNdp Avj1+QI8Zv15p78bHhYntJBHysPyGPE= ARC-Authentication-Results: i=2; imf21.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=mNUEa5TA; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=VSjkTLWl; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf21.hostedemail.com: domain of ankur.a.arora@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=ankur.a.arora@oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1699394426; a=rsa-sha256; cv=pass; b=HCTV7shk1h3j/dMEeF2o15Ov1sRavxmDpVtTnW5mnyeC3EYNShDJdKGdWVfyyC6ngY9GoV QkTb/ZbaSjDBdUX+VkQ/j88VWbuEOncs3Eu32o7YjuWxzKHyLLDvGsRnwTOglAJvUcSIlW Kn0rG4F6HVrsQuUPX7unr6fxSG/IpjA= Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3A7LJlqW020689; Tue, 7 Nov 2023 22:00:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-03-30; bh=TL9Y5NXwSCMqi0BI//p47SGdWVHhaQ0lKLdpboL8OGw=; b=mNUEa5TAVzY0bj5EOAiWB249Dou783hnE+xe6Zxz3PG7UShwgi6WN3y7l7X6yIsY27nn rk8hqkHNINip4Pgtphez8y6Ttt3F9Dmrt94fnejtYrQhNYx0d3bclcSAtdpY+yONfflT S2DX/A9KDIHcr93SvSXVwkSWl4yDE9x3DRAsepMPGthZBlwPWED9O3IyeKyuDwHNo66t eeqYndZiezWoLzLWjFKB66KBobKF67a/MUvwz0qvtWZfoFuU4d2V7QLj5W+6vblmxIlX oT3HDL0LuPKj4wxCSYvHk86FbiUb4KwmQjlWXwyArwsbM1GWC/iFwSezbx3q/ihqPx1s zA== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3u7w2202te-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 22:00:06 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3A7LJPCQ023844; Tue, 7 Nov 2023 22:00:06 GMT Received: from nam02-bn1-obe.outbound.protection.outlook.com (mail-bn1nam02lp2040.outbound.protection.outlook.com [104.47.51.40]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3u7w241h5j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 22:00:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NXMfU0ZagE4G9WOkLHFJmd1zK02ubqIRrkwwNdC0RvftyMHQ8RMTwZjSbyGYvA8hpV0Ur/efuqWhJZUWWwzPzh/muwP4CyJcHnz12UY2uXfaT6VBpjQ78TWwKAq/bMG0MPssEJII2kGU3SWtlw/lVsaOXzdg+dcxbK0VWf5sqhHxlCiQyph/8Q+/gUyHw+oU9XxIpq35wWy02TXfRZ0uG9vTDzH7IAgFS3hbzwvUghX5XDbX+ShwfW9fQGEmJjY/8gUvuz84Q05BAvWIvG9MfdEzr5iDnpPzr9ks5gQTwHfOVMYjDT5hTMG5Lf0EYCAx2wLO81kCoNrfs/D51a8JNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=TL9Y5NXwSCMqi0BI//p47SGdWVHhaQ0lKLdpboL8OGw=; b=Taf4cwtO5jIImO5NsIpIY7RRnVc2Y6bYhHyT+BpEOGeEfrBT4mN6BKnsm4/xqCDC994oAQuJ/Meo7DWNx5+rc68K0y9Diud49yMaZIXXoL0wqAO11nQjiT7Sc3Px9TQAsGJwEbHKUZxpBgD64vy4JD5VrsD/9g5M11rnxfhYNI46G9lQVqK9QCx2C09s7hIHi05h0XDk8eQonXtxZbmaXCfNZyxtzOP8IjQBqDOQwEAf1RefPYYzFjMG/+g149R6Rk7LpqHuL/HnqbIvh7c+5YHsfk46q22a2VpUoEzWkzd4Acie357p28i9SzUo3+Eog6TVt2okWf8DivGgTrWYIg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TL9Y5NXwSCMqi0BI//p47SGdWVHhaQ0lKLdpboL8OGw=; b=VSjkTLWl5qdacBTDVSYXqqNWOAucE9qtYtdrsgkdYR0hRoFAytrZeTZF2jqjuVyiOShE8QAVGiSWFD73DVR6oftcB+utM8pyja/2FpRhG2uKVlnIWrsyXSWCU7Dw6kCcFAOZWoV4O/paCBeeFHroxuF7aprvIBQ5QOEtWGf0Jj0= Received: from CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) by PH7PR10MB6275.namprd10.prod.outlook.com (2603:10b6:510:211::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.27; Tue, 7 Nov 2023 22:00:03 +0000 Received: from CO6PR10MB5409.namprd10.prod.outlook.com ([fe80::1ce3:4a8c:4c99:acea]) by CO6PR10MB5409.namprd10.prod.outlook.com ([fe80::1ce3:4a8c:4c99:acea%7]) with mapi id 15.20.6954.028; Tue, 7 Nov 2023 22:00:03 +0000 From: Ankur Arora To: linux-kernel@vger.kernel.org Cc: tglx@linutronix.de, peterz@infradead.org, torvalds@linux-foundation.org, paulmck@kernel.org, linux-mm@kvack.org, x86@kernel.org, akpm@linux-foundation.org, luto@kernel.org, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, willy@infradead.org, mgorman@suse.de, jon.grimm@amd.com, bharata@amd.com, raghavendra.kt@amd.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com, jgross@suse.com, andrew.cooper3@citrix.com, mingo@kernel.org, bristot@kernel.org, mathieu.desnoyers@efficios.com, geert@linux-m68k.org, glaubitz@physik.fu-berlin.de, anton.ivanov@cambridgegreys.com, mattst88@gmail.com, krypton@ulrich-teichert.org, rostedt@goodmis.org, David.Laight@ACULAB.COM, richard@nod.at, mjguzik@gmail.com, Ankur Arora Subject: [RFC PATCH 46/86] tracing: handle lazy resched Date: Tue, 7 Nov 2023 13:57:32 -0800 Message-Id: <20231107215742.363031-47-ankur.a.arora@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20231107215742.363031-1-ankur.a.arora@oracle.com> References: <20231107215742.363031-1-ankur.a.arora@oracle.com> X-ClientProxiedBy: MW4PR04CA0166.namprd04.prod.outlook.com (2603:10b6:303:85::21) To CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR10MB5409:EE_|PH7PR10MB6275:EE_ X-MS-Office365-Filtering-Correlation-Id: e3ed8a25-892e-4e5b-4775-08dbdfdce553 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: a+qTY7CEvksFhXIfZLZky7YuaZ6TziQ5lT0AFZpQJS/XzVkvuONKNfX6IYJS6jXqRkzSLVIeeP2ZZmHZaLwEs3fEXJKYlCCwQcWdk7VPzmUPzM9Im9CK47+aCIgb4RSMl7pchzflK/I/OzXXfhWFgVjSVpmii2CgS7c3DM45GmMmyHgBC0BI2BOEVrnVr8wOyJdJynQbnxXD7iDaSQJmxPTlq92AszaucFqfOm6dx91iXpAb+JHTGFx1r3j5o79U7sty9UtDJ1xWTpMNEdLHsoCDaoCObcjvYI9uTvH4E0O4veIQBDDTT6xVvxGxe80EIZgXrVLt0lp5bU40qJ2V7CQgBzijGcMHyM71AHvm+ZwuLfA/4xLNZHxC4/DkFz0YSKo5XdZOcOY2gO2re86lHWht1qks+aoJh5HiOvwYQNKG1cDheTVabH+sY/AGueFEBLXCjHO8nHDLUZ2rWyTQrEEVObxOz2wMd6ciyt/CL9YdGvoVumCdDWiyXk/I2DXApTUE9QcQgOORJMMVPRZjxDHf9udwIeTZ84K4a5ZLLO2r6n8MP+wFXo7NhI3RG7Mp X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO6PR10MB5409.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(376002)(396003)(39860400002)(346002)(136003)(230922051799003)(64100799003)(451199024)(186009)(1800799009)(66476007)(6666004)(38100700002)(6916009)(6506007)(316002)(66556008)(36756003)(5660300002)(7416002)(7406005)(41300700001)(66946007)(6512007)(103116003)(1076003)(8936002)(8676002)(4326008)(26005)(6486002)(107886003)(2616005)(2906002)(83380400001)(86362001)(478600001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: uT9LT8XwLzIIDFJsATxV1SF1/urYoJVmWGzaAs5FTmjD/Zz2gOXTAcyFI5oBAWnRs7zAMcShiMmGIiJyyOb12VpQkyWIcmavGkJrx4wH6Gl29wUXaexFeH+80G5fXbDBxIrIUSODQ9WlS1cCXCVcCqnSxttPHmRMUh4Li/DZ4BIx49rc4JdIAbD6PSclX6cQBNHlYHpEytCkHuqxR4P8lpSvQ48Qvz2oq5Luc98BuzZd55OTR6FedCyi4zqlUDGHXwFm0eMCJlCWvESFR0+/ra/vznpeQs/1MupO5ic0v08n7w27EEAL2HpftVq+P4asPLhVm52t2dd/XwHHONdE1GHq0dbLo2CaASrXfe2Ctk4zMszKBNr9Yld70cpMEgNvq1k0qrGhYk3u324OGCHkXrh8SFfyZgOuM70G6KtVbU2c7TDFR++qJ9YMhzNI0puoPLBmbb9WfVKvFy7JePI7mijIX0lmGm7e5d1eewBa4E47K5rvWQradepHcDAOkvjCANYeus1kLX5pxQbKESBLaRlzM/69xNI7NqKi7nn6AGonCde5NajcvsnII+ZnPiTslOpWV2oMfP5mzC0s/1cODpGrxrE6sBNXLpRNNp0ThKevORptCT9P058uAEW6RQxQAjU4cWpQUHop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Uatw4R8nby8qe4x8UkcYT1O+B1xaeAc8s4ql/zzgaS25GQySKpfvFIK7r4R37mrFeINES1+YyhQPBkKDLbuU77+KGLQIncz4V2EViFugQxIKNxmvdbCU678qFSa0qZb28JRaAYrQrFAlbgL0bkRufBHMBti6cOvIwveluPXMVbhD8Mh70T6IxoM9aRjDssRpzLw14h/NJfrLZwbQl0a3YLnGSe7gGDm46Kb+ZiBgCKQ+K21fcCs01sgdwqLALrFm4qYJIF2M73JBpbG9xznLmdQfgdpJyOKnvnwUVFF0GG2dproCkO/Xfjd0CmDPe82us8ZCTYy9eECQ4kjBDqXF0JaDT360sTDcLfXKEb+x88o2NRBgrwQPfGeGqMik9A9yzYXUYgJHzoHkHa7x1dnOx6TYMrjBP/fyxmtd3+JzRDw7IZzTlfYPAI7HOC9gNzZU2khclg== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: e3ed8a25-892e-4e5b-4775-08dbdfdce553 X-MS-Exchange-CrossTenant-AuthSource: CO6PR10MB5409.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2023 22:00:03.7480 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: CuafOF+VBNOf8GeBvpXBOw6jiPMQAWUf8otUirFvHF4LZgh1EDTArsLNpEsOxMkpre/pBj6Yu6Jyqnr8YskFqO3vIl65BWfvzzKmVGvOY94= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR10MB6275 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-07_13,2023-11-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=917 phishscore=0 spamscore=0 mlxscore=0 adultscore=0 malwarescore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311070182 X-Proofpoint-GUID: h7Iw9HUP9j2GXRr1hlT9Nq8L98UxWFWY X-Proofpoint-ORIG-GUID: h7Iw9HUP9j2GXRr1hlT9Nq8L98UxWFWY X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 656701C001C X-Stat-Signature: he88p8msoa9uqcwgetbhfmzykyw99nt1 X-HE-Tag: 1699394426-333250 X-HE-Meta: U2FsdGVkX18I6vo9h9SB/9OGUZV97WaMv4am1qf+T5G0tpM08tBwmjlWnEBezL1rq30QSBEVLnw98Ppbhzu7Dmd/ZIQwOQEcSNMH+zX9WRSneocyJucB37A8JYh19M4/V/PT0bkN7rI2XaNIUONL3rIQJbfYGIMct0dU/Ih1xk6fd9vDH+TS9JpG5MpO0pbzwcRqHIjnnbt5LRAthBLpT78PZQkoLJSul1ZAL1TMnRHkRPlQCV0HIEANnw4/VzuadOuNJ7fU/GWHcNSmKMVh/ZjqmQbq7ITMY+HZjP6aZjZdRPYv9eNg7jr8SVgygHOuxdXHCdhBFk277Qb/uXM7rQfkQ9DEY+MuXVidsrhRi6118iNtQeG+BV6VlrNMAUR0XVYBuHhBT0RJEQ6nKTvmu2I4z7cuQGzLmcPa2gqgcwCmoUAujhdIsLIZ7sUtCboPODd3AzfFyVKOhZa2ZEkJkDE4qqotfAcmJGQXa0gTq1Y2KIHaojFBF1oJ5AMOMV/ZRWbPmrY8U2Rcsz+3JQISol/8Y4j0AmUw/NvHdJUgnvUiE4sMz0SufTRVgNj/JIdRhUh4K6yA5wNJog+N3h4U5fbLavS304YLSwNixUuCcs2LNPJJqsSUxNeysw8Kax2g8+O5FkWKhfJ8h/j5nTNgM0PCHxAVVidab4ZTSV7XXHqX7QZurL5oWzAjDLpwUW2oJ6to9WbvLcvSNqmnQdXopjaSkg2aJ1E40I30CzrDuc9ZtMUiZBvAYCCRp8bfqedjlscdCFClBjP1OAYoqINUISxudUidS5B6KzAqF4HUlWeYyqRBtdZA9x4c6s3jONWrRcXFMJAdBd2J5ukeJykC46fAIGfL2W5agAqUwAAaFnnu3dI1DJpkDRikZNp5YdaVy0HxFvNwURvjdPwZVa26I9eKOPEfMzKCzVjxZv1HQWmHdAfihRuglBWcaSa7ICrYW2MCZjlKVD0qpySScWg DUfnPqyH 11b/TvVZ4/0ep3opGc1SDC8P7TbYQsLHnhk1XWabMhS749dddM7E9yhkMArFinq0hgozdHNHRHjoGpZRy2o0FdJAm85rmxGk/vymC74PLYZYaXNSTsYzEryNcJRHysBPnVqz5ZAwaR7zf71FJkxz22YFGedEJZ5Bsq9uaXMXFZ3sOodeCq4tCMZJYfoIh6kmcn4+1qHO015jBBOV3NYY4EEp8ogpjp7oXg+Z9+XF0CkSOV0CgWF/RsxMjdEXPpRkaHGNGRo4ZTKLVeOs/YEGYxoPCHVHWYFtAYADlS9346kezF7X7OPCkavZJON3e2yYP9ME4xIqAnWimw7hiUP5+H84mO3fCUdNG46AcXG4WK0f1rSuBvwg1sDBC/9yLEmY8OhWp X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Tracing support. Note: this is quite incomplete. Originally-by: Thomas Gleixner Signed-off-by: Ankur Arora --- include/linux/trace_events.h | 6 +++--- kernel/trace/trace.c | 2 ++ kernel/trace/trace_output.c | 16 ++++++++++++++-- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/include/linux/trace_events.h b/include/linux/trace_events.h index 21ae37e49319..355d25d5e398 100644 --- a/include/linux/trace_events.h +++ b/include/linux/trace_events.h @@ -178,7 +178,7 @@ unsigned int tracing_gen_ctx_irq_test(unsigned int irqs_status); enum trace_flag_type { TRACE_FLAG_IRQS_OFF = 0x01, - TRACE_FLAG_IRQS_NOSUPPORT = 0x02, + TRACE_FLAG_NEED_RESCHED_LAZY = 0x02, TRACE_FLAG_NEED_RESCHED = 0x04, TRACE_FLAG_HARDIRQ = 0x08, TRACE_FLAG_SOFTIRQ = 0x10, @@ -205,11 +205,11 @@ static inline unsigned int tracing_gen_ctx(void) static inline unsigned int tracing_gen_ctx_flags(unsigned long irqflags) { - return tracing_gen_ctx_irq_test(TRACE_FLAG_IRQS_NOSUPPORT); + return tracing_gen_ctx_irq_test(0); } static inline unsigned int tracing_gen_ctx(void) { - return tracing_gen_ctx_irq_test(TRACE_FLAG_IRQS_NOSUPPORT); + return tracing_gen_ctx_irq_test(0); } #endif diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 7f067ad9cf50..0776dba32c2d 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -2722,6 +2722,8 @@ unsigned int tracing_gen_ctx_irq_test(unsigned int irqs_status) if (tif_need_resched(RESCHED_eager)) trace_flags |= TRACE_FLAG_NEED_RESCHED; + if (tif_need_resched(RESCHED_lazy)) + trace_flags |= TRACE_FLAG_NEED_RESCHED_LAZY; if (test_preempt_need_resched()) trace_flags |= TRACE_FLAG_PREEMPT_RESCHED; return (trace_flags << 16) | (min_t(unsigned int, pc & 0xff, 0xf)) | diff --git a/kernel/trace/trace_output.c b/kernel/trace/trace_output.c index db575094c498..c251a44ad8ac 100644 --- a/kernel/trace/trace_output.c +++ b/kernel/trace/trace_output.c @@ -460,17 +460,29 @@ int trace_print_lat_fmt(struct trace_seq *s, struct trace_entry *entry) (entry->flags & TRACE_FLAG_IRQS_OFF && bh_off) ? 'D' : (entry->flags & TRACE_FLAG_IRQS_OFF) ? 'd' : bh_off ? 'b' : - (entry->flags & TRACE_FLAG_IRQS_NOSUPPORT) ? 'X' : + !IS_ENABLED(CONFIG_TRACE_IRQFLAGS_SUPPORT) ? 'X' : '.'; - switch (entry->flags & (TRACE_FLAG_NEED_RESCHED | + switch (entry->flags & (TRACE_FLAG_NEED_RESCHED | TRACE_FLAG_NEED_RESCHED_LAZY | TRACE_FLAG_PREEMPT_RESCHED)) { + case TRACE_FLAG_NEED_RESCHED | TRACE_FLAG_NEED_RESCHED_LAZY | TRACE_FLAG_PREEMPT_RESCHED: + need_resched = 'B'; + break; case TRACE_FLAG_NEED_RESCHED | TRACE_FLAG_PREEMPT_RESCHED: need_resched = 'N'; break; + case TRACE_FLAG_NEED_RESCHED_LAZY | TRACE_FLAG_PREEMPT_RESCHED: + need_resched = 'L'; + break; + case TRACE_FLAG_NEED_RESCHED | TRACE_FLAG_NEED_RESCHED_LAZY: + need_resched = 'b'; + break; case TRACE_FLAG_NEED_RESCHED: need_resched = 'n'; break; + case TRACE_FLAG_NEED_RESCHED_LAZY: + need_resched = 'l'; + break; case TRACE_FLAG_PREEMPT_RESCHED: need_resched = 'p'; break;