Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3726700pxj; Mon, 21 Jun 2021 05:20:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpmSWjA3sCwiR7RtpjOlob3zWe0tCN7FM7Oe3EADmIlFk/oqDSDCEx2vAknFZ9Wl3nvIF0 X-Received: by 2002:a05:6638:cc7:: with SMTP id e7mr4011817jak.40.1624278016454; Mon, 21 Jun 2021 05:20:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624278016; cv=none; d=google.com; s=arc-20160816; b=silExWRprkrI5HSVk5IwJnyeZ3SYNp8pvicwhIFvOXSsD9d9mG6t6x1zD5tzO0BSeL wPPcjHjxOCQ+I+QmA/XyKcz0FY7Mvv+YyUKBAnODiTMxyFD8AgHc0NVuU8THnhKSYuAc 46drrY1j6Mgo/SdEV5ZvTadzLhYGzd1MplohX0CEg6ZRpuOhAJCHHh8MmLsSIzoMK7Zm 0VSyTU7z1QqbA+SNqfOLX3JNUFJAkE30HMxundw7ckxgTBUcDdZDlsXD9vF6l9lMxpRw Wccr4zqIpm4hUtEmMjYDag8BKaDMv3m3+DeEIDMBcPQjsEPZNQlPkyJWtckChzrRhqYZ HT6Q== 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=LOHrwparAJCAIZUIkqOpUo21CBd0n6J6FZ/QQzdYkEs=; b=s84SCRpw8UhZP/Nk9EzzeefGNigWwBfwCPCHFu3N4SOlfrghEtLONu+iQgzV6U63Eb p0h5LrtHKbN8T98la2e1zO98eMsJNuzsk5fWDC032tPIAOPiO0D1JPvc6VFQwTU28LEi s4k/rRI8gUjeVqHstx/KDDS9jujEHJgY4SiYSeYeNqKJgu1Wj56ZTI+Lvoc5p3UG5JnE RFlF3UrT2GK5XXDDJ0wZEs3UQkjTC7/EDbS4VBMf4NEQcmujbRTHAMzRb3A3Cf/hLPPG EvLWxS133UL9CTLI/7zR4k0ch3/J1aVAOuiDOh8PHIPDLGEq7zxXQpBNqWSzBHtpQPzl gUdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bzHLLmeF; 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 i26si18485039iol.73.2021.06.21.05.20.04; Mon, 21 Jun 2021 05:20: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=bzHLLmeF; 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 S229651AbhFUMUm (ORCPT + 99 others); Mon, 21 Jun 2021 08:20:42 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:46196 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229617AbhFUMUf (ORCPT ); Mon, 21 Jun 2021 08:20:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1624277901; 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=LOHrwparAJCAIZUIkqOpUo21CBd0n6J6FZ/QQzdYkEs=; b=bzHLLmeFiHMejmgSQF1Rdap92WTSStrfUDNBBdHiwvlGm3ITtU5eaH1SHK5vC/KSBuXvMs 5dsQvlaLaxWY4UAf7BKTZ+I9WD0+pZGywsxhbmhs4rMOaAM+KbWPD8k9+BTTmYJLzcMeUf OH9c+CNiwXVvx96YiwZUCYqkE6Q94Fs= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-513-kqTmxmPpMkes38znUNaIHQ-1; Mon, 21 Jun 2021 08:18:20 -0400 X-MC-Unique: kqTmxmPpMkes38znUNaIHQ-1 Received: by mail-ed1-f70.google.com with SMTP id y18-20020a0564022712b029038ffac1995eso7708544edd.12 for ; Mon, 21 Jun 2021 05:18:19 -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=LOHrwparAJCAIZUIkqOpUo21CBd0n6J6FZ/QQzdYkEs=; b=Y7S/F+6oZbNxozVFwmnIsZGlUm5/6sHhQgjsiKVyWJIt6HwfKOJZcAvtTzNurN/XJN A1uF5qJJcntP4w5bF1Fd+t1kY0VpjxDGid/R7SKeksfSwc6znTd56ssn0zOH5wsvDH1J +iGi0Rb+sG0uG5xyKtkmZClajM3soO6NDPXIuEKxKAJedIOnrT4625YJZgsYOVchw7zl zdDLaKUqxb0+50Wtc5GbY3s3GOyQ3Dh/r1scIdV7/FN2UURqv1gJnU2ieLhuHDPPgGyu Rg3T2bnrdi9CL31mf7LUcu8W7X0e5oMMt43H4bjpfP1W9hiNa5UZQK87J/kdqxmu8icD ryzA== X-Gm-Message-State: AOAM531PTFZsrSFEEUu/qUMShlriJoWnEc604sjVcx/8zOi4C6N0RkjV Rb8tPTsMrst7M1nm8N8BtpANvdY2CCXcsnSISVD9brQmhU8PXUAm2ONDywNv6+erAS5KLXTtkJa gUubDhiQrTqoWo/F+1c5ZesAOZoy9ilPwWoXd44Qa+UG0TZ8gyMctipZkq45o6iE6ZcEZ2mzLDk 8= X-Received: by 2002:a05:6402:487:: with SMTP id k7mr20975274edv.315.1624277898837; Mon, 21 Jun 2021 05:18:18 -0700 (PDT) X-Received: by 2002:a05:6402:487:: with SMTP id k7mr20975238edv.315.1624277898646; Mon, 21 Jun 2021 05:18: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 e28sm8368582edc.24.2021.06.21.05.18.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Jun 2021 05:18:18 -0700 (PDT) Subject: Re: [PATCH V4 12/12] trace/osnoise: Support hotplug operations 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: <20210618150443.44a49826@oasis.local.home> From: Daniel Bristot de Oliveira Message-ID: <10eca4c6-999f-5d48-3fb3-4f8ab7d8b8b3@redhat.com> Date: Mon, 21 Jun 2021 14:18:17 +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: <20210618150443.44a49826@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 9:04 PM, Steven Rostedt wrote: > On Tue, 15 Jun 2021 11:28:51 +0200 > Daniel Bristot de Oliveira wrote: > >> @@ -1566,7 +1627,14 @@ osnoise_cpus_write(struct file *filp, const char __user *ubuf, size_t count, >> osnoise_tracer_stop(tr); >> >> mutex_lock(&interface_lock); >> + /* >> + * osnoise_cpumask is ready by CPU hotplug operations. > > I don't understand the usage of "ready" above. Lost in translation? > > * osnoise_cpumask is updated by CPU hotplug operations. I think I meant "read"... I will use your comment. Thanks -- Daniel > ? > > -- Steve > > >> + */ >> + get_online_cpus(); >> + >> cpumask_copy(&osnoise_cpumask, osnoise_cpumask_new); >> + >> + put_online_cpus(); >> mutex_unlock(&interface_lock); >> >