Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5077690rwd; Sun, 11 Jun 2023 22:40:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6NMjDzJszZd92UteaIoqB68FzSvIv/8PnKq0DVA9iBxVpSKQ81cWQgHPe5YYw9FKJCOKD7 X-Received: by 2002:a17:907:848:b0:96f:a891:36cb with SMTP id ww8-20020a170907084800b0096fa89136cbmr9673690ejb.0.1686548425107; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m13-20020a170906848d00b009789e5229d5si4778460ejx.703.2023.06.11.22.39.59; 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 S234725AbjFLFZH (ORCPT + 99 others); Mon, 12 Jun 2023 01:25:07 -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 ); 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 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: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 1.8.3.1