From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6BB4CC7EE37 for ; Mon, 12 Jun 2023 05:25:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234223AbjFLFZK (ORCPT ); Mon, 12 Jun 2023 01:25:10 -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 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