Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1126176pxf; Fri, 9 Apr 2021 00:08:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy90hByIf5IvGH5+NDyI0E+kR2xJDASIrTEw7Po17l/zwfrrNEOMgABpcE/VzQ/TFdGOzIk X-Received: by 2002:a17:906:4fcd:: with SMTP id i13mr14860414ejw.341.1617952089820; Fri, 09 Apr 2021 00:08:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617952089; cv=none; d=google.com; s=arc-20160816; b=OCtJYmzV6Mux2QczxSFMYrc2grEVqyGxxxWyxNfN3s8/jYYn2OuP4luZ1AkiG7kdbp nWcKbu2EdbjY1IxZ+XsfLGNxGPLXSy09bHHT9VEgEU3qh6CPjK7JCXdP8nK4qvjkJtPD 0lYjKTE/8KcuQCjoeq6HqBTfahad11B4GABCbuZuacgsjqbBVfNLSIRUN80QArut2WQV iewWVk5i+8JVpgR5glTk6IVYkTh2uDBPpniiyEZsDzp960JNeXOZhmsoUnNMyeDHL9gC 14AdnhV+yS8eDRLNadDrL9uWUSn+9TATsPVa9aMk8jfJY0OYrEDe9mvwXoKQwmvI0WNd TINA== 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:organization :from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=IMT5xQsJlkH4zmRLkhlrBT/rFnQ/ix6xAYtDP4IrUrY=; b=lyiAzTHx3BPSFHkpMq2t7tBqzlHJGEiXchrQCAc07qTc+Z6V79rSr4jLS4JD0Xm0wa h81lWyszTRLigA1ulEZFn/59y3lNGNEKEQGujBrzOQe5F7Q3FmYh/vGPuXz7tEktrM2J Pp3x9v19BSh67GMf5RehCowltW1Ni9igRjurWQNiL4w57RyElhk4ysBI7xvkTyZE3DxX yTlJxweWOMuvnAD+kAhaE0GEt7v6tz7HkxPoQeMvRVygbQwsNs9rHUX2wlThS9Wjb4mC WYv4Y9ubdW27Xrozuau5Snx40b3VTkscDyCK0DCmZeELI7V4fLHiiSqsc1UwjHS3y9CM bQVw== 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 f16si1285768ejc.601.2021.04.09.00.07.46; Fri, 09 Apr 2021 00:08:09 -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 S231829AbhDIHHJ (ORCPT + 99 others); Fri, 9 Apr 2021 03:07:09 -0400 Received: from mga18.intel.com ([134.134.136.126]:37614 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230412AbhDIHHE (ORCPT ); Fri, 9 Apr 2021 03:07:04 -0400 IronPort-SDR: aKuhKsJkTC99Er7tBaxMDf3GnbJQKQndtk4UTrkbRlWc9td0RHMGqWQqmFK+ucE8l6IWtankzV 2fLeh/f7Pyeg== X-IronPort-AV: E=McAfee;i="6000,8403,9948"; a="181240341" X-IronPort-AV: E=Sophos;i="5.82,208,1613462400"; d="scan'208";a="181240341" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Apr 2021 00:06:19 -0700 IronPort-SDR: gelocAWnYzeP0oV+0Ov+jSP8EkwL8iCqvaNE7BRUWoJp06FHQFJMUuxgqF9T32mBK1J5geZYCT tdBR58jtrPsA== X-IronPort-AV: E=Sophos;i="5.82,208,1613462400"; d="scan'208";a="422604780" Received: from abaydur-mobl1.ccr.corp.intel.com (HELO [10.249.225.14]) ([10.249.225.14]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Apr 2021 00:06:12 -0700 Subject: Re: [PATCH v4 02/12] perf record: introduce thread specific data array To: Andi Kleen Cc: Arnaldo Carvalho de Melo , Jiri Olsa , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Ingo Molnar , linux-kernel , Adrian Hunter , Alexei Budankov , Alexander Antonov References: <6c15adcb-6a9d-320e-70b5-957c4c8b6ff2@linux.intel.com> <20210408141617.GD3762101@tassilo.jf.intel.com> From: "Bayduraev, Alexey V" Organization: Intel Corporation Message-ID: Date: Fri, 9 Apr 2021 10:06:08 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: <20210408141617.GD3762101@tassilo.jf.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 08.04.2021 17:16, Andi Kleen wrote: >> + } else { >> + thread_data[t].tid = syscall(SYS_gettid); > > That always fills in the tid of the setup thread instead of the target > threads? > Here we set the tid for 0-thread (for cpu 0), other threads we setup later in record__thread(), see [PATCH v4 05/12]. Regards, Alexey