Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp632846pxv; Thu, 22 Jul 2021 08:36:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOCPoRJVS99XKPQiWBRZiQRC/vgNt/N3M9p0ZUhQ+2ZOjskkqyJgPBR2Y/V+z1XRiW4iL0 X-Received: by 2002:a17:906:5650:: with SMTP id v16mr444596ejr.533.1626968212188; Thu, 22 Jul 2021 08:36:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626968212; cv=none; d=google.com; s=arc-20160816; b=Bo46/OXK3NJl/VnAHa3drlEs1KK7HqsgU2bzi2BA1x2GTniHEQ7RIfBz4Vqmkk7fhH WBKcaODNcTsnRzq6jZKQZHx9IH+y5qJL4YrRvbN0G3gN0sCYJyo63UQ1B4K2YIV+1ALS GBAO5eXbP+Z+PCiDEJddl8cT7hKk39BcbOzHh1O3mIuFXi7dWSh0bXhanqfD2A6ymgay cbaUvPcxpEKDhPRfp3j4XAmiHGkAnb9Ys54GTPMNlvnBuB9tpyXfau4aO9NN4x0fnaRq HTmbYczosn9AM1/JgXFDYgPXUnQapeZExSDep+/40Xr8ZzrmBOEQhCj/U2lXB6RNAHAT ZMnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=67qwQMdJiWpJhcKWHqbeIHIALS+B+pZPfDzT1EC8xO0=; b=Nc1E2yqP5mqJYNCvOYZK2yN6PdNfr9Wyi8CqSVzypCdwNjwac+0iXGQ3je+XVDQrh7 C8v9DCX8S7mLpXb+PZQ9NtK4hxLsJcCZSEqwPZPZyq47qS/3Cq8KaAUubias/zrq2Fvd FoqmkWC0Kvh+Qb6aAZVJJ/33Q+ObJWySMngm0/ADmkRHdOcFvxRgl4qJ4ksw8ZAE5QBs QWP2o0l+fvlgBKHHpX+eyNsMEWdhX7VppOgy6yveYQXX0tG3ibNu20MGbcbSOOY49Vs1 xFE45mBpdUjmBeTB+Gki20Gg2/2utBPJbhT41O7KLzozKyry6N0F+lhXDnYYxZSrb+3I HS8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BxjUIh+J; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z16si40120244edm.47.2021.07.22.08.36.28; Thu, 22 Jul 2021 08:36:52 -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=@gmail.com header.s=20161025 header.b=BxjUIh+J; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232679AbhGVOxv (ORCPT + 99 others); Thu, 22 Jul 2021 10:53:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232661AbhGVOxt (ORCPT ); Thu, 22 Jul 2021 10:53:49 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A458EC061575; Thu, 22 Jul 2021 08:34:23 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id f17so6388846wrt.6; Thu, 22 Jul 2021 08:34:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=67qwQMdJiWpJhcKWHqbeIHIALS+B+pZPfDzT1EC8xO0=; b=BxjUIh+JjBdbu5EiOvQ7SHg3AI5wMYa9cqio9E/gRh1eSlFlXcTMiAHW6pYKdzxLlo H18rNtZ3h0Bj9ORH7+gO3RDHNSPveR+Cx1EUlNjAGA/SnBPhZ41EFwjbq9d517hpYm47 qWDEpD45M/KkMGbor6wm3O5x4FlAq0umruP+1UnhEpzgEjfxtzY4YEDnq/y3mq99vb6u 3AS/srj8/LKRNdSrD8ogPQdxUwII1U677GVrNdouJBMZqujXkBTRKgViGT2o4TShJ8PZ YZOFRNkjY8q1uT/Ft5Uu+ZUzuJXEt+fpYTXd3VReJv50PAD0L5Gwaj1ydYQf0JF+VBRU YOYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=67qwQMdJiWpJhcKWHqbeIHIALS+B+pZPfDzT1EC8xO0=; b=T//v340Cxb13imjnJ0J8mOdvvVSYE7oofqi4KFjXb9Wcw+tIntpiH2rEZCe7vcJNtS ethfc603EjZX6MbvqN33D/Ouwv4xwxxdYEBbRGJy1uSKmCRZwt3jhE1xYGDtHxZg0YMw PdiR9+aTPKAKUhn97edBhjDvdK4FwwzopWIt41sQwKXsrfHKSE4oTgr/tImQzWpglERH Sg5eIKIkOiYj7AMYZHSCsSLB1o8z6quWSSMon1VwONqHBE2yClNTla2WZWK9inrHOyqT TMKajGt2uJAi+ih/Iy0CeJDTJQ8tNHa46lN0qngoYnbqLj4l6n7MB90/cSN/ePMvluFK dS5w== X-Gm-Message-State: AOAM530ZcrvzxefroBCq/xGbrl2MFCem3zlgrJb+HXVo0IC3EHXyrPVi dqkKYx7eYFlKf1ym21Oqg4Q= X-Received: by 2002:a5d:6209:: with SMTP id y9mr559965wru.402.1626968062269; Thu, 22 Jul 2021 08:34:22 -0700 (PDT) Received: from honeypot.. ([185.91.190.155]) by smtp.googlemail.com with ESMTPSA id o29sm23735557wms.13.2021.07.22.08.34.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jul 2021 08:34:21 -0700 (PDT) From: Riccardo Mancini To: Arnaldo Carvalho de Melo Cc: Namhyung Kim , Ian Rogers , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Riccardo Mancini , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: [PATCH 2/3] perf jvmti: use gettid from libc_compat Date: Thu, 22 Jul 2021 17:34:15 +0200 Message-Id: <4e24f9b00cbe53520cfe66781b29a3977ae23243.1626966805.git.rickyman7@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch removes the re-definition of gettid in jvmti_agent.c, adding the include of the libc_compat.h header, which now contains the gettid function. Signed-off-by: Riccardo Mancini --- tools/perf/jvmti/jvmti_agent.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tools/perf/jvmti/jvmti_agent.c b/tools/perf/jvmti/jvmti_agent.c index 526dcaf9f07903dd..299e7e87198cc18d 100644 --- a/tools/perf/jvmti/jvmti_agent.c +++ b/tools/perf/jvmti/jvmti_agent.c @@ -33,7 +33,7 @@ #include #include #include -#include /* for gettid() */ +#include /* for gettid() */ #include #include @@ -45,13 +45,6 @@ static char jit_path[PATH_MAX]; static void *marker_addr; -#ifndef HAVE_GETTID -static inline pid_t gettid(void) -{ - return (pid_t)syscall(__NR_gettid); -} -#endif - static int get_e_machine(struct jitheader *hdr) { ssize_t sret; -- 2.31.1