From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E2CA4C433EF for ; Tue, 30 Nov 2021 22:02:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=wu6eWzCZHq+/4m3wCTi3/Job1TNu9VBWRiGzW4uZPNU=; b=Ajrcd4K2Xv6lZE mgq7WV04fVwDu+EHul9Sz1H3kf0juDIAZ6UYWoe4GlJ1LQSK+/eMPliPsXm/xXa/EmWJP6lD/LVXB d6w2ct+yVm/iWo42X6Q+ohQSh+6+Sy3diHHksGKza7E/6pgQtUZAwY9UzBW5f/e5pDwiFm3wdmm2m hhFx6Chwo6C2vk6QkwYTQfQ5toXvBO99U3rhiOJNmhLex2Quc1cK+BNfnJ7Vp1cIsfvHiJHvUaJo3 3P0a+fgUly+CFX8EqH9GYyZwsAJ503UP5MvucaKdJHZBcyZxpS31Ou2SBvAAZBvFttVWc9ST2ogdJ HuEKnN2Yqk5ykzcOvljA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1msBBZ-006ryu-9X; Tue, 30 Nov 2021 22:01:13 +0000 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1msBBV-006rxA-2y for linux-arm-kernel@lists.infradead.org; Tue, 30 Nov 2021 22:01:10 +0000 Received: by mail-wm1-x330.google.com with SMTP id y196so18706804wmc.3 for ; Tue, 30 Nov 2021 14:01:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=8PGE6cDQT2HVZ2ghj0wi5CB9Jd5MxuEMmMeaGyk8xCY=; b=S+TpyD9mqjQToeKru5RFwxVXgdTTi5h4+2cO4Genhgb4E9fnmsFyjDdoOytgIki3vc yvgEbmkMoiqB7GryjrXIrkgJdSKyvqVkhbW3C8mE+6Yoh+ZKsYzQ7gOhb2Q01z3D9Xff 4gf1mUZLky+tK5CyEJnFQcN9vi2cVpgqmPxUsc1uw0RXkyv9WoBbs/CNrD4I17xXRxHd mu1gtwyFnvDlGNZ/k/5LmIvYy25hXcEv+9PutQn0UqgqGM3LSLlKoamU+mrxgK8UCukj oljSNtXARNVejB64vgqq2SVeFNzyEwn9EMV3x5YvkODZYLdue2SS94A3XiuTqO+wokbh jFGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=8PGE6cDQT2HVZ2ghj0wi5CB9Jd5MxuEMmMeaGyk8xCY=; b=KjQ5t/0hpD6VaSBlEMQpSplXh3kdoB6RpRo1rNnyEZyKFIokjEWoCif/0CF/nwycVy cvoCATcbr8YFqeX0rxtMVaQa69oxYQXDgHtY1uimZySwzKNim9dcV4BMZTxuMdhRpoF1 GnlqVnjYi0sfG/TKP6O9QgFvapNgGvf81nctk7MptIi0C/R0PY/1TW7J9EwNPngN/Fxw 70SDTTzOapCHaJUe1h0OplVPL4OSu47nC6QHvFfuNH4cwyJvE0Z6lpvaeFDt0gHf0/Nv b35fSLTGiaX9AVCJq7Mz8NJ+e8FPahv5IYcuqA1HGSejqVSUIxnkpl+3Xe6k/ItINp1m /AJQ== X-Gm-Message-State: AOAM530pxQLdIBZ0MBMmuf3aitoGzTXxipWT7ureShtUlmz2yAQPTHj/ aOB0X22bo9kjNkOICf76fBY1sxEMzvqQBA== X-Google-Smtp-Source: ABdhPJwZfWCH5jnaKJprw5q9cEqyH9EG940kVpPH5nd+qaDuoO9BkPlwvQR8V6A2JFQEgqHnHn7wUA== X-Received: by 2002:a05:600c:4fc3:: with SMTP id o3mr1774408wmq.74.1638309666916; Tue, 30 Nov 2021 14:01:06 -0800 (PST) Received: from linaro.org ([2a00:23c5:6809:2201:546d:7d59:1703:bf96]) by smtp.gmail.com with ESMTPSA id y142sm3755280wmc.40.2021.11.30.14.01.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Nov 2021 14:01:06 -0800 (PST) From: Mike Leach To: linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org Cc: mathieu.poirier@linaro.org, suzuki.poulose@arm.com, leo.yan@linaro.org, Mike Leach Subject: [PATCH v2 0/6] coresight: syscfg: Extend configfs for config load Date: Tue, 30 Nov 2021 22:00:54 +0000 Message-Id: <20211130220100.25888-1-mike.leach@linaro.org> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211130_140109_183164_A19B93E1 X-CRM114-Status: GOOD ( 11.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This set extends the configfs support to allow loading and unloading of configurations as binary files via configfs. Additional attributes - load, unload and last_load_status are provided to implement the load functionality. Routines to generate binary configuration files are supplied in ./samples/coresight. Example generator and reader applications are provided. Additional Makefile.host supplied to build the generator and reader applications on the host system separate from a cross compiled kernel. Documentation is updated to describe feature usage. Applies and tested on latest coresight/next that includes the previous coresight configuration dynamic load patchset. Changes since v1: 1) Rebased to coresight/next - 5.16-rc1 with previous coresight config set applied. 2) Makefile.host fixed to default to all target. Mike Leach (6): coresight: configfs: Add in functionality for load via configfs coresight: configfs: Add in binary attributes to load files coresight: configfs: Modify config files to allow userspace use coresight: samples: Add an example config writer for configfs load coresight: samples: Add coresight file reader sample program Documentation: coresight: docs for config load via configfs .../trace/coresight/coresight-config.rst | 151 +++++- drivers/hwtracing/coresight/Makefile | 2 +- .../coresight/coresight-config-file.c | 472 ++++++++++++++++++ .../coresight/coresight-config-file.h | 158 ++++++ .../hwtracing/coresight/coresight-config.h | 38 ++ .../coresight/coresight-syscfg-configfs.c | 148 +++++- .../coresight/coresight-syscfg-configfs.h | 8 + .../hwtracing/coresight/coresight-syscfg.c | 36 ++ .../hwtracing/coresight/coresight-syscfg.h | 2 + samples/coresight/Makefile | 23 + samples/coresight/Makefile.host | 47 ++ samples/coresight/coresight-cfg-bufw.c | 302 +++++++++++ samples/coresight/coresight-cfg-bufw.h | 24 + samples/coresight/coresight-cfg-file-read.c | 191 +++++++ samples/coresight/coresight-cfg-filegen.c | 89 ++++ 15 files changed, 1677 insertions(+), 14 deletions(-) create mode 100644 drivers/hwtracing/coresight/coresight-config-file.c create mode 100644 drivers/hwtracing/coresight/coresight-config-file.h create mode 100644 samples/coresight/Makefile.host create mode 100644 samples/coresight/coresight-cfg-bufw.c create mode 100644 samples/coresight/coresight-cfg-bufw.h create mode 100644 samples/coresight/coresight-cfg-file-read.c create mode 100644 samples/coresight/coresight-cfg-filegen.c -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel