Message ID | 20230612052452.53425-1-xueshuai@linux.alibaba.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2372690vqr; Sun, 11 Jun 2023 22:40:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7yS1mG1CNH7bB0cP4nwbx5AzeJ1xt2HecVyc6hvMGm3Y6FxMvvpF+bH7/f6EFCzOig0+zA X-Received: by 2002:a50:ec93:0:b0:514:96e6:59b7 with SMTP id e19-20020a50ec93000000b0051496e659b7mr5357749edr.33.1686548425191; Sun, 11 Jun 2023 22:40:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686548425; cv=none; d=google.com; s=arc-20160816; b=wDGxG4Hdlz4HEOw9yX60I9pYheQm6kahvjuBY/E8MinAZvz5xFracIi6CPZISChy0j eT4ScNRXFPfclGQtBQnD3M3eM2eIaJXbCg0uQ8ZjvNMZShvJHUdkc1C02wrhvxCfEFHc 8FJckRFuwmuAvScN8zT+Q1aoE+sj7AdFuxiR/riDBHqfLMBQZX5nqZW/OJjl+2f5PJfe ugHtAgxLdZZmAKk9kYqvMtiBCW4pfmwDBRwiC668YPrMDHAeQTqhaMySYsxxXW5fUVLJ OkTvQsJ1cK3DlHWAMt+xronyfI9vCk4OH2ck3SW4KhTogc4guTSYGiCfcqfS2zQLnt4E 5e9g== 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; bh=iq0obYejIBZUWXkdoY/EN7R6+JB0KByTaaMXt94afPs=; b=cb0qV45+qd6GA7s1ZT2AmuCUoFp7CyYKn0dzMu+rZWDzvfsdaBt9pJLw0YoGNtq6Sb bYHckZDYWdI6fHsxd01u0ckVaY7JxhOoj5b4SvpCmDSM5VIbwahWRHQLbFMr4bIgub25 HFE1Y8T/ZBd4ioon53MAh9ie+cdoHQeG+9QiZmAVUM88FhXnE1t+WzVXyOJ73TqWfpa1 unisvdqRpKtKI7SNLVsun1xnjhsuOkYKUSY/nHlRSPitRME6wX1Z861U6n6thfUZ2iN6 UzvwhOdEYqkCSHCkRt3lI0BTpWXRyHjL3P5t38nkgsehLKK8I1bmoCmEqzhznhJqYque 70Fg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n21-20020a05640204d500b0051836749133si1538867edw.494.2023.06.11.22.39.58; Sun, 11 Jun 2023 22:40:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234759AbjFLFZI (ORCPT <rfc822;rust.linux@gmail.com> + 99 others); Mon, 12 Jun 2023 01:25:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231713AbjFLFZE (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 12 Jun 2023 01:25:04 -0400 Received: from out30-97.freemail.mail.aliyun.com (out30-97.freemail.mail.aliyun.com [115.124.30.97]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDDDEB5; Sun, 11 Jun 2023 22:25:01 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046051;MF=xueshuai@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VkrnYF2_1686547495; Received: from localhost.localdomain(mailfrom:xueshuai@linux.alibaba.com fp:SMTPD_---0VkrnYF2_1686547495) by smtp.aliyun-inc.com; Mon, 12 Jun 2023 13:24:57 +0800 From: Shuai Xue <xueshuai@linux.alibaba.com> To: alexander.shishkin@linux.intel.com, peterz@infradead.org Cc: mingo@redhat.com, acme@kernel.org, mark.rutland@arm.com, jolsa@kernel.org, namhyung@kernel.org, irogers@google.com, adrian.hunter@intel.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org Subject: [PATCH 0/2] Fix high-order allocations for AUX space Date: Mon, 12 Jun 2023 13:24:50 +0800 Message-Id: <20230612052452.53425-1-xueshuai@linux.alibaba.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768474201364379156?= X-GMAIL-MSGID: =?utf-8?q?1768474201364379156?= |
Series |
Fix high-order allocations for AUX space
|
|
Message
Shuai Xue
June 12, 2023, 5:24 a.m. UTC
When perf-record with large AUX area, it reveals WARNINGs with __alloc_pages. Fix with correct MAX_ORDER limit to request higher order allocations so that larger contiguous areas is allocated. Shuai Xue (2): perf/core: Bail out early if the request AUX area is out of bound perf/ring_buffer: Fix high-order allocations for AUX space with correct MAX_ORDER limit kernel/events/core.c | 10 ++++++++++ kernel/events/ring_buffer.c | 4 ++-- tools/perf/Documentation/perf-record.txt | 3 ++- 3 files changed, 14 insertions(+), 3 deletions(-)