Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1245078pxf; Fri, 9 Apr 2021 03:53:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfWdBADyMpx0w96u/uV+/6UBJUjglrmKC2CrDYyBsoThtCAmpl3KWol+8wlCT59zAqnSlx X-Received: by 2002:a63:fb12:: with SMTP id o18mr12272341pgh.438.1617965607515; Fri, 09 Apr 2021 03:53:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617965607; cv=none; d=google.com; s=arc-20160816; b=XgjrXS1LEnF0pSiW3wiuR/UsZsmvkaZmq1KHZCi65uiHUYEKLN7fJXQzYzhyxFxx4V U9qfjTPyMIH3bIjB6WgQYjHGGVGD5sDMXm4B2Hz543mgswDq8m8X18vAulQg+MVNDpag dZdypPzSH/nzD6HMEnkdnrfLmcCuZlWDlpN2qoX4yGQr7OnEdxYmqYY71S2/cNhzntZL Vhv1Gn3NzUvjj8MLFN7PErzfsl8HV4NE/SoavSfk50XLXkk7cHsJ12qrE4tUjY9bzt0D JyE1tKSe60++wrKqalh2QIzWklZeHDd9dNTP4U/P4Ef0PxZYSsHwOcRdoBLzRl4DPKMJ Mutw== 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=jBDEjsUyDXyp7S6xPkuLtXwi7LjHv6UzG5XyN+RmYC4=; b=UPfotVMm7ap/I/6M2r5NEpuuCrKn2td4nEUYGKh3pkBn22zvMHpzEGmGqlDlvOsgDn Sa2FWIk43bBnPjA0HRhZOd//brwrkUk5L/VxG6xfdTfNKhUNyiW1gCaGadxzCDTppuA6 3PaOtODhPbyuts762f5N7nM4IVqoJHV7wsHw2EP6vrgMZU7//5GueqGywYFUWYFNUSyJ b9CfCnDdEyKHeM95sc0URgHLcJc898uXVJwCvavwdCV5IBMcfbzd4+y1RmdwfGCJdHUQ iSf5pAFfIt1J8Onz8fh+tL7ct1bTJh6S2wQXliYXZQVVg82nQw50vfadvazgRQ0gLA4t JdCw== 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 g16si2629179pgi.145.2021.04.09.03.53.15; Fri, 09 Apr 2021 03:53:27 -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 S233288AbhDIKvq (ORCPT + 99 others); Fri, 9 Apr 2021 06:51:46 -0400 Received: from mga06.intel.com ([134.134.136.31]:54902 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231127AbhDIKvq (ORCPT ); Fri, 9 Apr 2021 06:51:46 -0400 IronPort-SDR: 6eyYdeaDwIhqj7qqA3lxn18XHED/ouar6lKjTJkDRwYCLq4ybDAkQlgtGD+UZSALz3T+2hr1X6 JqYVj50Okrdg== X-IronPort-AV: E=McAfee;i="6000,8403,9948"; a="255069950" X-IronPort-AV: E=Sophos;i="5.82,209,1613462400"; d="scan'208";a="255069950" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Apr 2021 03:51:33 -0700 IronPort-SDR: BBtZdL5qqfnogUc9Dx77+46WVpawwncotU06mOGr4qI2Rz4kd7m6T2IkRJcSkh8SwTeJz+Gl4I dROXbvfXpI0Q== X-IronPort-AV: E=Sophos;i="5.82,209,1613462400"; d="scan'208";a="416214731" Received: from abaydur-mobl1.ccr.corp.intel.com (HELO [10.249.225.14]) ([10.249.225.14]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Apr 2021 03:51:30 -0700 Subject: Re: [PATCH v4 00/12] Introduce threaded trace streaming for basic perf record operation To: Jiri Olsa Cc: Arnaldo Carvalho de Melo , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Ingo Molnar , linux-kernel , Andi Kleen , Adrian Hunter , Alexei Budankov , Alexander Antonov References: <6c15adcb-6a9d-320e-70b5-957c4c8b6ff2@linux.intel.com> From: "Bayduraev, Alexey V" Organization: Intel Corporation Message-ID: Date: Fri, 9 Apr 2021 13:51:28 +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: 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 On 09.04.2021 0:52, Jiri Olsa wrote: > On Tue, Apr 06, 2021 at 11:37:26AM +0300, Bayduraev, Alexey V wrote: >> >> Changes in v4: >> - renamed 'comm' structure to 'pipes' >> - moved thread fd/maps messages to verbose=2 >> - fixed leaks during allocation of thread_data structures >> - fixed leaks during allocation of thread masks >> - fixed possible fails when releasing thread masks >> >> v3: https://lore.kernel.org/lkml/7d197a2d-56e2-896d-bf96-6de0a4db1fb8@linux.intel.com/ > > hi, > I recall there was some issue wrt threading and intel_pt, > which we either need to fixed or we need to disable threads > for it > > [root@krava perf]# ./perf record -e intel_pt// --threads=cpu > ^C[ perf record: Woken up 121 times to write data ] > Warning: > AUX data lost 95 times out of 206! > > [ perf record: Captured and wrote 211.364 MB perf.data ] > > [root@krava perf]# ./perf script > Segmentation fault (core dumped) > > the fix should already be in the perf/record_threads branch, Thanks, As I can see, the fix from perf/record_threads is partially here, except changes in util/auxtrace.c and setting one_mmap_addr/offset. I will fix this. I also try to refactor patches 11 and 12. Regards, Alexey > > jirka >