Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp38016pxf; Wed, 24 Mar 2021 20:12:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdAHMtyUR8x2ukz2V53yM9d5YVTyisXsMia8wN1siuprNEA8EQ6Dbc8n7XQAeE1yXcA8kT X-Received: by 2002:a17:907:1b20:: with SMTP id mp32mr7012379ejc.495.1616641979649; Wed, 24 Mar 2021 20:12:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616641979; cv=none; d=google.com; s=arc-20160816; b=0m52Inz1SEN9GF/wcgcv698sjMu27LNk53CXarLkXexKskIZIs99i8Bj9896qinIKU 3XygP7ViPxEZxA/MC3ywKBV4g3Pj/Q0VybwZn6BH9cRG3P9mrG2G9P4PKujvjmbo27+8 pHm994KQCMS6GXGFDn8UPAz7kwQfHf/KejQCc20+NfYHyDKoUbP6qTyiHCZsBRqWXRnT XJtm4S3YUrKLIr3Y5DjWPBHsNnAmeNCqboOa2AenWk/LJs0cUXh3TRwsVqqc3ji9GP/i ePI6aUXvXYQLajV0yZQolGfxatDUIEzWAJ8J+pa1jS9tIgT6BLbiwsW17+IqatUYU4HE MaNQ== 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:subject:cc:to:from:date; bh=0Kf7y05wgVSMXNB4OwdfxiXtG85GnLatZyFigKgBDoY=; b=dNZ9wDWR4lYo9ShxPuZJEGPWRR2NaNlfU9BA7ygUm4nzVCfEQ0nbMvkzifYgJeJZc4 v7nKLvtzfDObKrZr/UL2x2oq0NiWMkO2EbJe9Q5wdlLxZV18+/G4PAFvF6yZUZxVt8U+ sS7kaxWxbkcUf5Zt+nBaicBrBDE8wTdI9FAaViFHe0d8xGxIt6vFNygDbZDooJMo5C9V DN/pSdgCQoZxXXJgurp0LzjuCWntpyb5LybTJwaSmfRs1cRU1cxG9xLTnTNmWHajRwVp ZRgYDlrpw1aGstaMZNu1S79y95eR1kBv70gBU2lEhtQth2vJHftw2fGs4YJKzd8BW83M A1ow== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g14si3074727edr.362.2021.03.24.20.12.36; Wed, 24 Mar 2021 20:12:59 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236406AbhCXOxv (ORCPT + 99 others); Wed, 24 Mar 2021 10:53:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:43370 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236398AbhCXOxP (ORCPT ); Wed, 24 Mar 2021 10:53:15 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8466561A10; Wed, 24 Mar 2021 14:53:14 +0000 (UTC) Date: Wed, 24 Mar 2021 10:53:13 -0400 From: Steven Rostedt To: Guenter Roeck Cc: Jisheng Zhang , Jens Wiklander , linux-kernel@vger.kernel.org, op-tee@lists.trustedfirmware.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] tee: optee: add invoke_fn tracepoints Message-ID: <20210324105313.4ff3ad07@gandalf.local.home> In-Reply-To: <20210324144853.GA5718@roeck-us.net> References: <20210210144409.36ecdaed@xhacker.debian> <20210324143407.GA8717@roeck-us.net> <20210324144853.GA5718@roeck-us.net> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 24 Mar 2021 07:48:53 -0700 Guenter Roeck wrote: > On Wed, Mar 24, 2021 at 07:34:07AM -0700, Guenter Roeck wrote: > > On Wed, Feb 10, 2021 at 02:44:09PM +0800, Jisheng Zhang wrote: > > > Add tracepoints to retrieve information about the invoke_fn. This would > > > help to measure how many invoke_fn are triggered and how long it takes > > > to complete one invoke_fn call. > > > > > > Signed-off-by: Jisheng Zhang > > > > arm64:defconfig: > > > > make-arm64 -j drivers/tee/optee/call.o > > CALL scripts/atomic/check-atomics.sh > > CALL scripts/checksyscalls.sh > > CC drivers/tee/optee/call.o > > In file included from drivers/tee/optee/optee_trace.h:67, > > from drivers/tee/optee/call.c:18: > > ./include/trace/define_trace.h:95:42: fatal error: ./optee_trace.h: No such file or directory > > 95 | #include TRACE_INCLUDE(TRACE_INCLUDE_FILE) > > | ^ > > compilation terminated. > > > > The problem also affects arm:imx_v6_v7_defconfig. > I think it affects everything. The problem is that the drivers/tee/optee/Makefile needs to be updated with: CFLAGS_call.o := -I$(src) otherwise the compiler wont know how to find the path to optee_tree.h. This is described in: samples/trace_events/Makefile -- Steve