Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3721254pxj; Mon, 21 Jun 2021 05:13:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxs4CLHLK0Kv2Nv73FpwU0CxFZijBMgqUo/JCkPEn7h+djDSaCCJl+2WkoGXQobopIAR0PK X-Received: by 2002:aa7:c301:: with SMTP id l1mr4770228edq.215.1624277586700; Mon, 21 Jun 2021 05:13:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624277586; cv=none; d=google.com; s=arc-20160816; b=mtqouuqf3AKi6ecCK1SIU5L/uQWWDZoBVzARqQq0wmBNqrQ05oN9vAeuPhrFj1BBv1 LsQwSW0F2sKhocxXZIxOOut0thSqRCU2yJ64WKR8gritaGe53a8LYrCPU1LTwheYLzkA gA0y1ToIO+T0IT73kCnCw5Y7mch8aijlekw1HpXJS8U+2hwIUTLMNUAG5gkl0tbnLauJ 7mYZa9ZaS68njdrXMOYIJYgq6mLR8gkialeoS9K1zlaMZSIWMABK8fRLaUXJy3n/BQ2i 0DEIMfX5SvYmpHCl2pCSd10DePDsnLyRMdyOdjB8q5BpH9ZNozpMFZvxjMHqpUBuYHSH QPEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=odphSy0p+GRx3OHzvhvSgNkTSdj9er6W6DDABZU80qU=; b=yYvWqU6c6Yuedp9HCKECOHiixDqRFKF8Guts9QV2RDHPKE8Qr+PuVj2x3o/Xm/jTNc ztnBrcJ+FO8mfv7FRf4hyjnGufkz0H1TSPhxinW0XhkCM6wYVIC5PKf2wMyzthXxF0tZ FnA3IpdxY6A+6Xoyqdepc2MClysV/xW6sBjFR2YFChNaVBOy+y1mS6B3Q1ow+9T5NxJH CtGFZuTX0JOqLoeeAgZE9PN4Q6ZFCVaWryO4Rg5cDbDaC7wq6eO/aePANODE1CJYJ0Z8 4XdkIYiGRlW5b2i6mxse9JwoqqEvJr+jNgLT8R+/hq41hxfZrNBPErCrqzanlVUXk1BA ZQ2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hPAfpL7h; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j23si12025520eje.551.2021.06.21.05.12.44; Mon, 21 Jun 2021 05:13:06 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hPAfpL7h; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230032AbhFUMMD (ORCPT + 99 others); Mon, 21 Jun 2021 08:12:03 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:55033 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229621AbhFUMMC (ORCPT ); Mon, 21 Jun 2021 08:12:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1624277388; h=from:from: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; bh=odphSy0p+GRx3OHzvhvSgNkTSdj9er6W6DDABZU80qU=; b=hPAfpL7h+VgZlRcjb32hF1TsP4PeEKj8DkowfEiHm8OSlNWPpYekexcy+1ZTXYRyV3QHaX OJF7xxhhAaCTuDhP2c++wZqcKnLIOR9i6djGE10lB9LEkQWqd6rvUeySdETY0RsXHvrFTA as76OzmviRqKAyhEOf2bololWWxbr6o= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-342-Z3emuiZrMEWZ2p9v7uEAoA-1; Mon, 21 Jun 2021 08:09:47 -0400 X-MC-Unique: Z3emuiZrMEWZ2p9v7uEAoA-1 Received: by mail-ed1-f69.google.com with SMTP id i19-20020a05640200d3b02903948b71f25cso5574850edu.4 for ; Mon, 21 Jun 2021 05:09:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=odphSy0p+GRx3OHzvhvSgNkTSdj9er6W6DDABZU80qU=; b=FAYGAfZuosFwfaSrhoK8Kh27350F+pV+5cVT3U7TLiHJGbOy5YcTPd7cMx3IQFUm18 nLk8p9Yv9N7zDotvYG4VsWDqhG+n8XULURpVKyphx7rpU+vBpNawd+sxq3OLDNmlgWC9 87OKRjVA37USD65wZ1xWoh9J57TRvtiKkHnrAymDqvZcNmq0AY+uhFqjJlMW0jb6j0UO OP0PpkGpp9nX1POT9Gq5iBFvGlcdT0mKl0z8/7KjvAp7SIMbmVTkuXiX+7JVSh24ey+w geyGDRDz1u7a0Gzjx9gHXDXFwLUQvYxMEsqc7dOOHdeR7off0zvHzoxrEPyqWO0nrlNT 8IlQ== X-Gm-Message-State: AOAM5320ZRRJWXJ/2uBv7G04l3xh2gqapz1PEnzalDR2b4/tJT60ixxm FBdZC1RnQiCB8/i71jP+PkBLcfuTiA7e8ES22RHgoSU8z6X6oiNOzeBjBN7wO7xpYY4wTyBGuFA MNcYwdm9fBTqYqKVgVjEBHp0uz1PZCg7ZMPRsqmG0xRg1RFbJT2YXWWgeEj6tGavwUYlPE9V1YU 4= X-Received: by 2002:a17:906:1487:: with SMTP id x7mr22754833ejc.456.1624277385904; Mon, 21 Jun 2021 05:09:45 -0700 (PDT) X-Received: by 2002:a17:906:1487:: with SMTP id x7mr22754796ejc.456.1624277385704; Mon, 21 Jun 2021 05:09:45 -0700 (PDT) Received: from x1.bristot.me (host-79-23-205-114.retail.telecomitalia.it. [79.23.205.114]) by smtp.gmail.com with ESMTPSA id hy18sm1659635ejc.111.2021.06.21.05.09.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Jun 2021 05:09:45 -0700 (PDT) Subject: Re: [PATCH V4 10/12] trace: Add osnoise tracer To: Steven Rostedt Cc: Phil Auld , Sebastian Andrzej Siewior , Kate Carcia , Jonathan Corbet , Ingo Molnar , Peter Zijlstra , Thomas Gleixner , Alexandre Chartre , Clark Willaims , John Kacur , Juri Lelli , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210618142702.7c75f0c9@oasis.local.home> From: Daniel Bristot de Oliveira Message-ID: <69466a02-0096-e17d-823d-a9f9bfe71152@redhat.com> Date: Mon, 21 Jun 2021 14:09:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210618142702.7c75f0c9@oasis.local.home> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/18/21 8:27 PM, Steven Rostedt wrote: > On Tue, 15 Jun 2021 11:28:49 +0200 > Daniel Bristot de Oliveira wrote: > >> diff --git a/kernel/trace/trace_osnoise.h b/kernel/trace/trace_osnoise.h >> new file mode 100644 >> index 000000000000..34c7b80f9e12 >> --- /dev/null >> +++ b/kernel/trace/trace_osnoise.h >> @@ -0,0 +1,9 @@ >> +int __weak osnoise_arch_register(void) >> +{ >> + return 0; >> +} >> + >> +void __weak osnoise_arch_unregister(void) >> +{ >> + return; >> +} > No reason to put the above in a header file. In fact, as it is code, it > should not be in a header file. Keep it in the trace_osnoise.c. Ack! -- Daniel > -- Steve >