Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp697360pxv; Thu, 15 Jul 2021 13:46:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeD/KillbvzdCVH7CBhnFDd8yLK+APIXBk50JScV+j2ABwhcODqgTq2hHnGtWwVEkGKFlI X-Received: by 2002:a50:aa97:: with SMTP id q23mr9614746edc.154.1626381961934; Thu, 15 Jul 2021 13:46:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626381961; cv=none; d=google.com; s=arc-20160816; b=v6H7U/MAlIaGEeaR43PSKRQWWKoqGHlo6vumMvcuYwgr4vqvE6Rwk+6UDSXZCxaRvo 6AZ4YnRZIrIuNymaJSm/zglb5nyWbLVixX2ZGFA8GcYcjPMLqtuykm3Gkq1Co6yqER7N 901aZuR6NPLgjyafr9TbAAcHBcHGGqiKrHgo1LrbqseNsVPnv6tkecxsQbWG8n7thktx Hr9lyiJHeDoFil4EF5GpyaJRtcpWG+gH5f0ZkA9tOQyDHTE2wtQ3qlg+CNZlUjeNuWPL eyZnvbDViLaWAAvWihzxB3HDbhNUdYWM89wJcw+xd3fbOpvII+Gy+//wrwLe7h1GZg0G Rn2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/8MqYF12v8shGBcZ0PnAep7GwLvfYhnHUQTlngl11O4=; b=SoHj0A6+o3AGkzNXi2HS9FsXEx3/N7bBpmcKh5D5VAcZaM5gHfthYgnCY7DDZxvYGz vawOumFBWd1Jl5iUKdry0WffaioNVnhOaRU0Nek9vPFmJ38V/hqBYvSlwXK4V/9EaF1F CU+529oXgpYn2rxqZz9Mj9F6/i0QYkaISbNqoDvnlxs7S22afYoGp0/hM0e9JJOcqBov uNfnazrpU+U239vdiWY17BG0O+7XB0umqZoiC7sYMCZRtsRyLi3w8Fe2pvLuLmmj+lNA TAeCFltWGUnOGFH+QGfb7CX6DlGCvuHRZBhjQXhIiYmmfOHbrevWvnhcCmIzOiMpZqjj 19vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hkEBJ+TW; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e23si8176175ejj.438.2021.07.15.13.45.27; Thu, 15 Jul 2021 13:46:01 -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=@kernel.org header.s=k20201202 header.b=hkEBJ+TW; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231990AbhGOUq4 (ORCPT + 99 others); Thu, 15 Jul 2021 16:46:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:60794 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230209AbhGOUqy (ORCPT ); Thu, 15 Jul 2021 16:46:54 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AC301613D4; Thu, 15 Jul 2021 20:44:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626381840; bh=W8ev9GZ6BGfozC2HPh3Bg7OOO89HihDLI5lIuHJhVPw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hkEBJ+TWuTzIQNgmU7cFqtIOU7GQw9mJXKDw9NNjxk3wI0OcEl2evkIpxIBbl1NRU Ctfz42Ul7wXm8oWopz82qjDXaGcYdhFi0fkOYlmE5/z2Fv5Nbe30YE6+0ltlsvOXMQ mFs/hnFh3tp059AdosVzYKyPhLcmvcXoo2HNNp9UnLdiX4ZXVBRQbXEjJxYc45vrvY o0bQdt4UdlPEuDHKd10WH8zN/lmvJKC2YS7nGX7pisbzgZdW5mZg7d2ZS/yis2AusZ cP0PjFnobH3WgTg4fCPBijzJK7skTSJqV7r1ZrUPU/kSVgM4B+PWHDS15WAnUvwW/I /afrq8+csUTXQ== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 2E0CC403F2; Thu, 15 Jul 2021 17:43:58 -0300 (-03) Date: Thu, 15 Jul 2021 17:43:58 -0300 From: Arnaldo Carvalho de Melo To: Riccardo Mancini Cc: Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , Peter Zijlstra , Ingo Molnar , Mark Rutland , Jiri Olsa , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Alexey Bayduraev Subject: Re: [RFC PATCH 03/10] perf workqueue: add threadpool start and stop functions Message-ID: References: <118c988358322b9daf69aeb98ff8986748b0dad2.1626177381.git.rickyman7@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, Jul 15, 2021 at 06:42:16PM +0200, Riccardo Mancini escreveu: > Hi Arnaldo, > > On Wed, 2021-07-14 at 12:15 -0300, Arnaldo Carvalho de Melo wrote: > > Em Tue, Jul 13, 2021 at 02:11:14PM +0200, Riccardo Mancini escreveu: > > > +++ b/tools/perf/util/workqueue/threadpool.c > > > @@ -4,12 +4,23 @@ > > > ?#include > > > ?#include > > > ?#include > > > +#include > > > +#include > > > +#include > > > ?#include "debug.h" > > > ?#include "asm/bug.h" > > > ?#include "threadpool.h" > > > ? > > > +#ifndef HAVE_GETTID > > > +static inline pid_t gettid(void) > > > +{ > > > +???????return (pid_t)syscall(__NR_gettid); > > > +} > > > +#endif > > Isn't this defined elsewhere? Yeah, when we decide to move it to > > tools/lib/workqueue/ we'll need it, but for now, reduce patch size. > No, it's just statically defined in tools/perf/jvmti/jvmti_agent.c. > I saw there is a libc_compat.h header in tools/include/tools, I could put this > definition there, and remove the one from jvmti_agent.c. Please, do it as a prep patch. Thanks, - Arnaldo