Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp167286pxf; Thu, 25 Mar 2021 00:52:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvsXd1kWgPscU6OZuUWadc6CdVGTstzs1SUzs5h5vNAT8xTB9qOPHi6mrccTu52Kq7+Iwo X-Received: by 2002:a17:906:f953:: with SMTP id ld19mr7636907ejb.164.1616658743290; Thu, 25 Mar 2021 00:52:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616658743; cv=none; d=google.com; s=arc-20160816; b=lm15PbDfDLJUVwhLLgOizJLPqOVSnSD1tS8mANE1z3rblCVshClmhI5wzpliroYy0v YB2saWxpPubgh5mPYPSom3BK7HtAcQ27CrT7u7B1lyugif1T7XiRk3DTnoTjkFvE4VV9 J0HVPyMcDCb3yjmOl9nnX+hGle9LxTGyeSyxQ8txex89wqvRM7M2Ef+6Imv1o5o0j/d4 ERTXiWEWdQePl4YBLbTHOo7fZtdWfXK6JNblkl3Cl5yJacy+C0g+p26BE49yVrVVKeKD y4JAkRXOBhbbEJHTdOQ3vmGNt9Y4YGZYWYRag87NHxJ3dFdVW716Y0+K4ghvPsziKcE8 qDIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=DWiVkjv15kephT2GuuRqWZyH8IK51XtxhMmDfGaWMkc=; b=lDk9fd1ODNRjwmEuEDwlF5fOykLU7+aDRwpyy6zZ2rgJ1kGMrq/Sr6mxlHeLwIIvD8 YhSDHAd7I1Agv2hrzhyXHuXTJ82XOUZqaW47wReouwOHfoW7OvcL3DlVcM5yvGU819mZ mXOmrqZSemZZC2ZFSQoCacEUM6P4phZXf2UxyV9Vgh68KS1lDEvwKkL8Q/6PimbiOyRL /+02H98eiGT+zWF5hynu63nMxasIaPGcEkjyTvnPx6bp9NZj1mQqOgw+6smxlnJO9OO0 zGQiIi+9iImvoMiGWhtSiuZlOqSIucrqW7LRgzPLrgsU4xzoUFviYkTptvzGN9em7ZC2 WQ6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i56RCNPn; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j12si3598722edp.565.2021.03.25.00.52.00; Thu, 25 Mar 2021 00:52:23 -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=@linaro.org header.s=google header.b=i56RCNPn; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229957AbhCYHu4 (ORCPT + 99 others); Thu, 25 Mar 2021 03:50:56 -0400 Received: from mail-ot1-f54.google.com ([209.85.210.54]:38442 "EHLO mail-ot1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229940AbhCYHub (ORCPT ); Thu, 25 Mar 2021 03:50:31 -0400 Received: by mail-ot1-f54.google.com with SMTP id w21-20020a9d63950000b02901ce7b8c45b4so1109176otk.5 for ; Thu, 25 Mar 2021 00:50:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DWiVkjv15kephT2GuuRqWZyH8IK51XtxhMmDfGaWMkc=; b=i56RCNPnugTKEwAV1/gUd4sl9sVCSHz70lva0/IrhM0YlrDMBluYNwErhDblfGY//i 6CQPo3OlLiEdkvOvomOomdXdSAWoNraZTnZYiwSasARxEyFix8GwjHcjSAdoKxXe2xMh epIm8UVtAE5R8zj615qjk7WhlMQ4r4OJYswfeq+HQOcqFD7+yJjCEsxJ8x1qSCaQak+H 0DqCNfeAgBHRwQIH7vNvdBAGBzau7ord26qDKhP33SYmFWDryfz1Fcf0wU1bs8Boje41 htJqR+gREXksHpMNnRxMe/BDX3hO3ji0SWc2S2Xcq1xxSpuNCv+tlstquSOB04t84Xmu PVEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DWiVkjv15kephT2GuuRqWZyH8IK51XtxhMmDfGaWMkc=; b=fVscQJX2GX8Kv7/kLHVBUs1oBwMSKWirG56FG8tfGffhcFD/CjcKf4Zlk6cqEmBXHi tDFJqZDe0GDjJCqQRjH+u5yD6MIsOPOIMWPABDDsWsGBEFoykZotcte+2IaIYVPr2YOf 3gjemWuHQA41Z/XORCqV2EpKCFDbO7JDCEG82nOChktEJUzqmF4FotCeXjTyR1EB77+y lmaxFNHlRu052n9+9n9L+kDj5tBpzN447ovWGmthPk31ucleqnPcytJjNZ/PPLwBD1Y+ VoVDZrR0H1F0yP7fszd2J9RiGJgqjQOw4wDZYAl5Jfl0t+b1OsaTMiTqBj+YY45dMKBy psjQ== X-Gm-Message-State: AOAM533gTx2mwM49QxXAwcuWRzrUQuwn8h+4YJJC221kk/OFYIP8kwl7 IfaIwwH59/cQFNGrdhQaVtUT1IuKh7mRdzGz/E7lp7P4HCFg7g== X-Received: by 2002:a9d:701d:: with SMTP id k29mr6601948otj.268.1616658570369; Thu, 25 Mar 2021 00:49:30 -0700 (PDT) MIME-Version: 1.0 References: <20210210144409.36ecdaed@xhacker.debian> <20210324143407.GA8717@roeck-us.net> <20210324144853.GA5718@roeck-us.net> <20210324105313.4ff3ad07@gandalf.local.home> <20210325115043.6c00a33e@xhacker.debian> In-Reply-To: <20210325115043.6c00a33e@xhacker.debian> From: Jens Wiklander Date: Thu, 25 Mar 2021 07:49:19 +0000 Message-ID: Subject: Re: [PATCH] tee: optee: add invoke_fn tracepoints To: Jisheng Zhang Cc: Steven Rostedt , Guenter Roeck , Linux Kernel Mailing List , OP-TEE TrustedFirmware , Linux ARM Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 25, 2021 at 3:50 AM Jisheng Zhang wrote: > > On Wed, 24 Mar 2021 10:53:13 -0400 > Steven Rostedt wrote: > > > > > > 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. > > Interesting, I always build linux kernel with "O=", didn't see such build error > and IIRC, we didn't receive any lkp robot build error report. > > My steps are: > > mkdir /tmp/test > > make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- O=/tmp/test defconfig > > make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- O=/tmp/test drivers/tee/optee/ > > Today, I tried to build the linux kernel w/o "O=...", I reproduced this error! > This is the first time I saw "O=" make a different behavior. I'm also compiling with O=... and couldn't understand what was going on. Thanks for saving me from digging any deeper. > > I'll send out a patch to fix it. Thanks, Jens