Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4779762pxj; Wed, 9 Jun 2021 01:26:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLyMbDlZHHa+q3V6CWZaB9ZvQOUH/EFWohVMSUIn2A4/jTgh2soFLOcFKn6qiSVLmBL78e X-Received: by 2002:a17:907:10d8:: with SMTP id rv24mr27336161ejb.542.1623227171831; Wed, 09 Jun 2021 01:26:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623227171; cv=none; d=google.com; s=arc-20160816; b=MZMTykwoT4gO7Pp9OB3zVmf92MNtlQ3fhhWp1d708WR7EM7L2svwxovu2Kt8Iz+dT4 la2W+BDd+uyE/W3Lf/bk7OkIV6/D146XjifSf/I7SehHZi3rRzuYJhvSj4WSJW1u/71N kwD2VFfrNqeNfVduF8JCIVgBFS8yI7md9DN+eGitlo3hfPS9cmoy6rhv2ysX2Xja7qcm FkzRQi0HUppRz1IrcLR5bVrcuBtMV+9uMnRiF9TOXA6l62JakVBsskTq9dDFQPhbzh0B iK1IXnGVDHRdPYGJyQC4tym1IKR99PpL+ceAvkLHgtgcTUq+lDi7LcPsiDRRBhRm+ojE ppWw== 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=loh+2AkAPXh1abVwto0+4K2azGAOUDPyaXssCOU5qEs=; b=GQTjWXTosobPxPoI9kEYSop53d5Swwjrsx9cvBPIFqpcLVdc2ru6Iu7XPJhDktkFxe Q0iOjQ9sLpOpYN74fNISDwWQP0MEH8STwUzpF3Kt5XTqQ3ojNisxY+ywWvEZ0Zu58az5 Dzl30XZkWY4Rm8k3JlqehHe3c9/9iqZBkanH6Ie3haGr8zdJ93enApNDBFYkYlas2xJt Z8i4LARYq+tglPnQbF2w/BhwcOS6+wiUZmrDBjW9m5Ls+b242CoiLeS5IoBAuh46Xyhx hTiHhyhT8VV+WL56NWptfPZtfyJMz13416TEIsUYZGfl7wc1LVSqybMiCBCQ8JG4AtkO iCwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=eulvcoHY; 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 d2si1845245ejr.606.2021.06.09.01.25.49; Wed, 09 Jun 2021 01:26:11 -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=eulvcoHY; 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 S237308AbhFHTh2 (ORCPT + 99 others); Tue, 8 Jun 2021 15:37:28 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:34288 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237766AbhFHTf3 (ORCPT ); Tue, 8 Jun 2021 15:35:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623180815; 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=loh+2AkAPXh1abVwto0+4K2azGAOUDPyaXssCOU5qEs=; b=eulvcoHYpkPiB/Uzj57VfwCpZtyuS25XuBx+jOSmT8M4gACYE5xAN945tovP0ndexvVdHK 1A1u19hu5B4LmGdZVVqqe18TKfNKAvJnQEl0rTD5eyYeDbtcDalrvthRlZrzIrGOf5utcn QR9mQWwgjYrwTZjLgDuMURjG0OMzwfA= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-144-wSNG1eUZOsKwLe4BkqJKgw-1; Tue, 08 Jun 2021 15:33:34 -0400 X-MC-Unique: wSNG1eUZOsKwLe4BkqJKgw-1 Received: by mail-ed1-f71.google.com with SMTP id v8-20020a0564023488b0290393873961f6so3907904edc.17 for ; Tue, 08 Jun 2021 12:33:34 -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=loh+2AkAPXh1abVwto0+4K2azGAOUDPyaXssCOU5qEs=; b=gME3KCw3HKDNvAbNEolQqtTGnjTAEavEuvWdttUmo/1gzZ665I7Kv2T3tL9JJZ54bH exzpcyOWDI1zyXwddYsdcXqfezU9C0f838ZklPjJe2v0Gqml+jo623UWAVqXBq2o0B73 B3JvZ8jhw1LSGeLotocLviYU4LCbqPrqP4qbSONrK0bzL29MlNyIUzIaauawt6bQh3Yv mRradflDgbzKOcYrrKIIO2TtjvGqdSHjQe9KF5gXkggF1aRiq7QX2YypYCpOIDgsVl85 ATqnHVpnkNoHn41SIGCmZMTiTwUDNannJN+r2lVo56Z8DCW//AB0bX3rIdSLT0y0rgdL 3QoA== X-Gm-Message-State: AOAM533j+BKS4i//o8rT+JlS/HBB0mV0k8jHufu+Unzl50qU+rUFe8Es FH3fC9uSpzuDOeClm83qNteTJxMwZas8g1mIlj1/WG6Ytvx3kke7L74/VwZ2GpL2UU7jKVvN3wQ bP7UcPu9DOj+099+MgR1hcUM2 X-Received: by 2002:aa7:cd9a:: with SMTP id x26mr7870686edv.185.1623180813106; Tue, 08 Jun 2021 12:33:33 -0700 (PDT) X-Received: by 2002:aa7:cd9a:: with SMTP id x26mr7870673edv.185.1623180812957; Tue, 08 Jun 2021 12:33:32 -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 cw10sm227689ejb.62.2021.06.08.12.33.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Jun 2021 12:33:32 -0700 (PDT) Subject: Re: [PATCH V3 8/9] tracing: Add osnoise tracer To: Steven Rostedt Cc: linux-kernel@vger.kernel.org, Phil Auld , Sebastian Andrzej Siewior , Kate Carcia , Jonathan Corbet , Ingo Molnar , Peter Zijlstra , Thomas Gleixner , Alexandre Chartre , Clark Willaims , John Kacur , Juri Lelli , linux-doc@vger.kernel.org References: <20210604172803.527aa070@oasis.local.home> <20210608133946.52eb7859@oasis.local.home> From: Daniel Bristot de Oliveira Message-ID: <0db868d6-2f16-d59e-0eb2-5c55709b4741@redhat.com> Date: Tue, 8 Jun 2021 21:33:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210608133946.52eb7859@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/8/21 7:39 PM, Steven Rostedt wrote: >> I created a "bool tainted" variable, that is set true if any problem with time() >> related functions happen. I will pr_warn that there is a problem on _start(), >> but also print this info at the top of the tracer header, so it is clear also >> from the trace output. >> >> Thoughts? >> > Or perhaps have that pr_err() actually be written into the trace buffer? > > You can use > > trace_array_printk_buf(tr->array_buffer.buffer, _THIS_IP_, "string"); > > without it triggering that nasty trace_printk() notice ;-) cool! I created a function osnoise_taint(char *msg) that prints the msg using trace_array_printk_buf. I am using it instead of all pr_warn that could take place inside osnoise regular operation. I am still placing the note in the header, just in case we miss the message in the log. -- Daniel > -- Steve >