Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5049849pxj; Wed, 9 Jun 2021 08:04:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZqUSp+3dGk90EYvnx4Sh937iM2/XI88pxYOhaPNNDZIsAyfhs2VJpUFZtRt0vCXbBo82j X-Received: by 2002:a05:6402:51d0:: with SMTP id r16mr22639092edd.138.1623251056189; Wed, 09 Jun 2021 08:04:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623251056; cv=none; d=google.com; s=arc-20160816; b=gTY/Q4rbqHtfnGLtcg9B0FEcYQ6jYC8pQ9kEY7ndlhFj9y4iH5Igi0bcN/qQ9oo/eV beTcHSLoxUdpH1YnN8hrymUrQG9/emLM97LBk//VFHV6aeW0tpsQx9murlK7vnh40t/J cvRSzrtASvN8qhbK2DKs8hnQ+j5TjRGxVF8l5HaN8RUtjnQeiZbmICw5GoePwauDZ7HL 7gaKvflu8VxNqJNT5CqzqM7RQWI1rWY8nhzcKcr234CauQ0MFzx7Im+Dd0ETJqhY79hP fmtYxiYkQKJoRYbo52qNc9MUn4G3273+LC4s+eQnf17Mz9xbS2K/qzKXHPulsQB+sQaD VSmA== 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=77QSgyc+8Sk7HYHiam0rcRrsIJ/0Q1AlHtkTPqxgLeg=; b=BIq3OlFDp0YA2gj08964wUSu0M3rLMN6wPHeRucMCABvJzUzUzdJWH0vxRMb2XFP1K BectzBnIiZHUKQkM6HL+nLAR2pKIf28mtY9tsS0XNvlYCYI7LJM7lDIm2wC99umlMWO9 wXgw/UPTOa29Hv0fiqoMcUfCx8bfQJqmQvkHaMsQ1VCQcs/MkoVryGDiUQiddYU1PcxI YSo9xnwy7Was09YJKzzIdbTSlnT95BI24unXz20Bngt4SmTccXWaDp+bcxUI7ZoL73Xb 0+aWAF/SCmYmYuhl9jfbtbpM4yzelZ2pVGBX5fSKuzXmbKdwIF/k6Rt+eK9DQWHjtx2U +zQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bSIvSOkF; 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 la20si72413ejc.3.2021.06.09.08.03.51; Wed, 09 Jun 2021 08:04:16 -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=bSIvSOkF; 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 S235237AbhFIMQS (ORCPT + 99 others); Wed, 9 Jun 2021 08:16:18 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:32004 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235239AbhFIMQR (ORCPT ); Wed, 9 Jun 2021 08:16:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623240863; 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=77QSgyc+8Sk7HYHiam0rcRrsIJ/0Q1AlHtkTPqxgLeg=; b=bSIvSOkFQQ7PtsrX3Gf3TxNZqT9oPtSlH0Yj6O+PiJunau0JHpJvsYX/aohW8JUsL1MrsJ dmDhyiXlGHt3DPiAOYWqRQitJ5y+Ry+K/dbu2GyD/QWYtYYqxLLTbesiJQU021wWXg84fc TtVgH5vynchPGCoaDpL6NVkV0noO7FA= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-310-FMqXuvopPRi4ewhoR1J_mA-1; Wed, 09 Jun 2021 08:14:20 -0400 X-MC-Unique: FMqXuvopPRi4ewhoR1J_mA-1 Received: by mail-ed1-f72.google.com with SMTP id v8-20020a0564023488b0290393873961f6so4900473edc.17 for ; Wed, 09 Jun 2021 05:14:20 -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=77QSgyc+8Sk7HYHiam0rcRrsIJ/0Q1AlHtkTPqxgLeg=; b=L2yu92Fu9RLlu2zd754eNhVhvpxKGrH+mvdBGaAhfoR6WjQVunmEtNU8TDfwoKkWW/ ShrzhPef3uuCRLh3PO2zIsW5iVgMPaUzpbvFL/Bz77BV8sOQOWSRGgG2nFXQiCsMM1/N bLT9HACu9i30BVT+EaZXbeppEHdg4TWggVgtdeUF0sVI928uk9VYkRTyzlqzUmzIl62j 198W72C71l2yQzm1hfyduAMSNEYq/xKUEbs3NL/yEt3+iDLDZx3mEOV9WSIXwEQBO01w uUcWsXx2JhbtfNpeQw+TQ3GhSeHSIDuX/dxYy9wXwhladwAA09vO/KEIE9JmYaZ32Y2/ TPqg== X-Gm-Message-State: AOAM530GUhUQyEteV9U7Ez4wsF4Niw79pS6OwqjWNAsS6R28PGgIO0/Y w9GCxH2DjO1RcBEVsXEApTdM1DvS1Ez77YyzShl0eMWShcqNiSaXvqNvlP8WjhQhQxtJ2vwELpL b85eYVfNM4T4vGr1TCr/N+7Vg X-Received: by 2002:a05:6402:3082:: with SMTP id de2mr17956651edb.214.1623240859104; Wed, 09 Jun 2021 05:14:19 -0700 (PDT) X-Received: by 2002:a05:6402:3082:: with SMTP id de2mr17956632edb.214.1623240858901; Wed, 09 Jun 2021 05:14:18 -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 gv11sm1054485ejb.13.2021.06.09.05.14.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Jun 2021 05:14:18 -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> From: Daniel Bristot de Oliveira Message-ID: <06d72b7d-4beb-1dff-b537-e7449abf3d4e@redhat.com> Date: Wed, 9 Jun 2021 14:14:17 +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: <20210604172803.527aa070@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/4/21 11:28 PM, Steven Rostedt wrote: >> +#ifdef CONFIG_X86_LOCAL_APIC > I wonder if we should move this into a separate file, making the > __trace_irq_entry() a more name space safe name and have it call that. > I have a bit of a distaste for arch specific code in a generic file. > I am placing the intel specific file in: arch/x86/kernel/trace_osnoise.c and the kernel/trace/trace_osnoise.h looks like this: #ifdef CONFIG_X86_LOCAL_APIC int osnoise_arch_register(void); int osnoise_arch_unregister(void); #else /* CONFIG_X86_LOCAL_APIC */ #define osnoise_arch_register() do {} while (0) #define osnoise_arch_unregister() do {} while (0) #endif /* CONFIG_X86_LOCAL_APIC */ This can be used by other archs as well... sound reasonable? -- Daniel >> +/** >> + * trace_intel_irq_entry - record intel specific IRQ entry >> + */ >> +void trace_intel_irq_entry(void *data, int vector) >> +{ >> + __trace_irq_entry(vector); >> +} >> +