Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 34945C46467 for ; Sun, 15 Jan 2023 21:20:25 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9C88685626; Sun, 15 Jan 2023 22:17:21 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="cca7zj0w"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DAF64855D3; Sun, 15 Jan 2023 22:16:50 +0100 (CET) Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6B1DD8555D for ; Sun, 15 Jan 2023 22:16:40 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd33.google.com with SMTP id v65so8555606ioe.4 for ; Sun, 15 Jan 2023 13:16:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=RE4Rh+ljdIcfS94TeO/UznpKpwVWo3yFbRWADp7arL8=; b=cca7zj0wAiRo2uZFVHIdLgHYKzElkhZOq8C+PRbC2bjiHyvs0+9vko4F+nTSZe0IyV 9gM1JCGKQRaRSwXmOBNZGyefIw/2orsXP6N++FwiTnMiaA6CCQqreZsiY0G5BNypHFxm VBnIiFHEIf7Xqu4kqyccOVUXxDQzl/e7MhV8Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RE4Rh+ljdIcfS94TeO/UznpKpwVWo3yFbRWADp7arL8=; b=NCzBLIxKAQFO9ZBYAZ00gZDKqMyNU7NK9VGz6dKNYU4O41VWnaJUiC8+X3O5isGcg0 JrOAoMJatBCJRsjjUjpg86PmeEneZ3y1+ae70AtCCFYjlrNuphQIghTDWR9RIPUabGPB VzOgS1VU0XLDspBbgMTGpPUCtlkLF7kQ/ByWYo9latkOcU9TK7++wZsH8dgmnDSIilm1 A7dCSlH3FAxkdzucPTkbqyZI2WoQRsf7zCWQB17OzVGd4+fBQWOUt9iKwfIjQTJFfZmJ FsftVU6YdWMKw0ueBoDj+0Uklom4xPZKq5nnns36+DfT1DFk+G+N6r7rQIdakIXp4Ca/ ezWQ== X-Gm-Message-State: AFqh2krYNDdrWOVrQdVMbl/vbFlv6rKv2BuFzg8YHePzJsa1eMNYKa6v zeW8mrm4JWCd7aEdl/unLHjKPH1cLzCo6M05VCY= X-Google-Smtp-Source: AMrXdXtQ1xh49AqQGKRMt0wqnA11g26QvnklTxRsrNjLiHu6+RLQrtVErJeMiI4Q9OL9907xQNkpeg== X-Received: by 2002:a05:6602:4191:b0:704:884e:fda2 with SMTP id bx17-20020a056602419100b00704884efda2mr6695756iob.12.1673817399900; Sun, 15 Jan 2023 13:16:39 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id j6-20020a6bf906000000b007046e9e138esm4329107iog.22.2023.01.15.13.16.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Jan 2023 13:16:39 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Heinrich Schuchardt , Simon Glass , AKASHI Takahiro , Huang Jianan , Rick Chen Subject: [PATCH 22/24] Docker: Support trace-cmd Date: Sun, 15 Jan 2023 14:15:59 -0700 Message-Id: <20230115211602.1127661-23-sjg@chromium.org> X-Mailer: git-send-email 2.39.0.314.g84b9a713c41-goog In-Reply-To: <20230115211602.1127661-1-sjg@chromium.org> References: <20230115211602.1127661-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Build trace-cmd as part of the docker image, so that trace tests can be used. Unfortunately the version provided by distributions is a little old and has bugs. It also does not support specifying the time base for the trace, which is required to convert microseconds to nanaseconds. Signed-off-by: Simon Glass --- tools/docker/Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index 202a8145af7..6e0cdd48dd5 100644 --- a/tools/docker/Dockerfile +++ b/tools/docker/Dockerfile @@ -213,6 +213,22 @@ RUN git clone https://github.com/stefanberger/swtpm /tmp/swtpm && \ make install && \ rm -rf /tmp/swtpm +# Build trace-cmd +RUN mkdir /tmp/trace && \ + git clone https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git /tmp/trace/libtraceevent && \ + cd /tmp/trace/libtraceevent && \ + make -j$(nproc) && \ + sudo make install && \ + git clone https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git /tmp/trace/libtracefs && \ + cd /tmp/trace/libtracefs && \ + make -j$(nproc) && \ + sudo make install && \ + git clone https://github.com/rostedt/trace-cmd.git /tmp/trace/trace-cmd && \ + cd /tmp/trace/trace-cmd && \ + make -j$(nproc) && \ + sudo make install && \ + rm -rf /tmp/trace + # Create our user/group RUN echo uboot ALL=NOPASSWD: ALL > /etc/sudoers.d/uboot RUN useradd -m -U uboot -- 2.39.0.314.g84b9a713c41-goog