Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp738889ybh; Sun, 12 Jul 2020 22:58:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyx0e+1LFFjcmVOioh0UsY1Q1J931lvblUjLfKJotgbn476cJjwNZVax0oqU/HwHB4munSC X-Received: by 2002:a17:906:33c5:: with SMTP id w5mr71356562eja.275.1594619898180; Sun, 12 Jul 2020 22:58:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594619898; cv=none; d=google.com; s=arc-20160816; b=f7osb/eUPg41grk8mWPqSbntt/d78uuIHZIguUREB+OLvarVVbgRy3CQwVjkoWqlCK AHO1Ev24cey7t0OfTvOi8M5KHbpJ3QHsmWgnZnmsMDKw2FatT2BfLxs2TojQu2LoPR+E oEQsrDd/VgzBFDtvEsmDZud6rlSXUxTuMK6fsHDuKI0QdM2HRZF/RYZ5JG848TrJaMis zphULwTyMtFPfWIMCBDipJ8PUAnTdBOtBnGd/7cGp0ittrrXnvaqHo4kZ37XCwkpV8a1 iEYOoAgmfbInyDkHCmrVDI6OHtVy2X5kyP3WU3yBC2qh3koeWdEUlTMwfN9zL4b23LZx FcVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=vF/FpEgZm6PClskFEDkflvmEn3qw9VzEP37EOkBqpEM=; b=lkZW1nBcYaSJ8risg2uGM8XQasoXcjrPHvNU+WaT5BRxFOgM55Xl+yB1GeFM8g2qjO XCsLzIkZXpe1BotIdwiBjXeFZbUsQqIFcd5hag1dyO/sqbOYo8DuvOF7l1P+QV1GhPjW vRPY0eAZ1QGgKiXPAnnn8MojKWKyn/zIfW3HqjtLdbdMP1RTBN8lUYgoqGPGcxE9O+B3 Z//o9DTZe1cKYxbi+YNaSN75cOWNY6v1dQrQdXSZpd8UG3v8BvwhGk19qpRDCHfOgllE 4+tug2/7ryxMIJUl5tPCEp04fmQJI+jtrT0Z5JfrhjskL+pbQwBEi1OaM0B/hLvTeLue hviQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id du12si10848262ejc.441.2020.07.12.22.57.55; Sun, 12 Jul 2020 22:58:18 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727830AbgGMFzR (ORCPT + 99 others); Mon, 13 Jul 2020 01:55:17 -0400 Received: from mga17.intel.com ([192.55.52.151]:3187 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725859AbgGMFzR (ORCPT ); Mon, 13 Jul 2020 01:55:17 -0400 IronPort-SDR: TrnXLB5T8KV+6qQv0ENLLvAZ9/0e9joomVOf8lKioxsixYlBLoCk8f3qUcR1ovOKGbu1aF1Mnx 0vj4Lg642EIA== X-IronPort-AV: E=McAfee;i="6000,8403,9680"; a="128616161" X-IronPort-AV: E=Sophos;i="5.75,346,1589266800"; d="scan'208";a="128616161" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jul 2020 22:55:16 -0700 IronPort-SDR: 04Y8FVYlgaJqSU6R0QtpvvyRPt6Sq04lDLvVlOD42KuZCEXulWehfJyfFs0IGn8RvD7NIpp/5x APD5EBedfLQg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,346,1589266800"; d="scan'208";a="281287992" Received: from lgrunert-mobl1.ger.corp.intel.com (HELO localhost) ([10.252.52.195]) by orsmga003.jf.intel.com with ESMTP; 12 Jul 2020 22:55:04 -0700 Date: Mon, 13 Jul 2020 08:55:03 +0300 From: Jarkko Sakkinen To: Steven Rostedt Cc: Masami Hiramatsu , Peter Zijlstra , linux-kernel@vger.kernel.org, Andi Kleen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "H. Peter Anvin" , "Naveen N. Rao" , Anil S Keshavamurthy , "David S. Miller" , Andrew Morton , "Aneesh Kumar K.V" , Will Deacon , Kees Cook , Arnd Bergmann , Alexandre Ghiti , Masahiro Yamada , Sami Tolvanen , Peter Collingbourne , Krzysztof Kozlowski , Frederic Weisbecker , Stephen Boyd , Alexei Starovoitov , Mike Rapoport , Sean Christopherson , Jiri Olsa , hch@lst.de Subject: Re: [PATCH RFC] kprobes: Remove MODULES dependency Message-ID: <20200713055503.GE956284@linux.intel.com> References: <20200709234521.194005-1-jarkko.sakkinen@linux.intel.com> <20200710193257.4eeb19e9cd042d99cbca7f9a@kernel.org> <20200710113238.GH4800@hirez.programming.kicks-ass.net> <20200710221802.da2f4cf077ce1bb51c7e11ca@kernel.org> <20200710092243.076e9b44@oasis.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200710092243.076e9b44@oasis.local.home> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 10, 2020 at 09:22:43AM -0400, Steven Rostedt wrote: > On Fri, 10 Jul 2020 22:18:02 +0900 > Masami Hiramatsu wrote: > > > > > Agreed. As far as I know, ftrace and bpf also depends on module_alloc(), > > so text_alloc() will help them too. > > > > Yes please. > > arch/x86/kernel/ftrace.c: > > #ifdef CONFIG_MODULES > #include > /* Module allocation simplifies allocating memory for code */ > static inline void *alloc_tramp(unsigned long size) > { > return module_alloc(size); > } > static inline void tramp_free(void *tramp) > { > module_memfree(tramp); > } > #else > /* Trampolines can only be created if modules are supported */ > static inline void *alloc_tramp(unsigned long size) > { > return NULL; > } > static inline void tramp_free(void *tramp) { } > #endif > > -- Steve Thanks, note taken. I'll take this into account in the next version. /Jarkko