From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C81D7C433ED for ; Fri, 9 Apr 2021 07:07:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9FBCC61108 for ; Fri, 9 Apr 2021 07:07:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232617AbhDIHHJ (ORCPT ); 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