From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795686959; b=ubfDHJ+TT0aNtiux5sJ2hH+5UdQGrJMJXEtZjV5LuPqYDniQayWg+92LhJdFTTshoX3e Y48K3HQmDsFjp//KDufXhQBOhGOOVMkDj52y2nLWg3xiSHbXln2VEY41SxFAmyU0LjAA5 qDVswMT93TXbZf6PWmJiXb768KffeRGNWAiKPtF1PaMoTqKdhRCEr8AS/4GKTBr91tA6d wOGJJp+LuU86Fwq8Mn+D99+7vLNtAW+G4ucn860Uu5WZS355GYbahtnhTGVldM8fMXiO+ LPUbom6MXwvi07uBtWx9FFN80BrdJTTMZZ7LMSNytWIAqb8iaFJAykFsmF/S//38wqw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795686959; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:From:To:Cc: Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding:X-Proofpoint-Spam-Details-Enc: X-Proofpoint-GUID:X-Proofpoint-ORIG-GUID:X-Proofpoint-Spam-Info: X-Authority-Analysis:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=xzFtEnnMvUZB8HXLsnBaAj29AuZlF1pQol2u34yaw3w=; b=SHNfYO8dfXHeWvlu2CEuJZ7rJRN266gc7jWsnpKOttKe7dB2y923Z2acTEvowfFdXqYJ qjv2zWxK1M8iuGLcTbouTZhCAXVIxaAa4ZwarVMPzYe66Idys81FcwO36Nf+CFe3IVo0P Q/b3vUrdhX75aNmdkxxvTzRrrGA9JJv/I/1klSWqTN1vgFca0j2O1Nn6nwtE220aiZarX 0iS2bBEifKGOXJ4sz5I1Rp3LiomqwbwlfD4ACLOVTbQnxc1xLsXgv2M3i4fW0cHj7nXlk X3ULj57WlnS5hhBfVpT9RsxvLAQ9gHXdZDgU107dBc4jUStpr64AWYrr8o9QzXP/fSg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=mGpwOGj6; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=cZLFnAlY; arc=none smtp.remote-ip=205.220.168.131 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DF168606A31E for ; Thu, 26 Nov 2026 09:55:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DF168606A31E Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=mGpwOGj6; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=cZLFnAlY Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AQ7AsGk2885476 for ; Thu, 26 Nov 2026 09:55:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:message-id:mime-version :subject:to; s=qcppdkim1; bh=xzFtEnnMvUZB8HXLsnBaAj29AuZlF1pQol2 u34yaw3w=; b=mGpwOGj6xIJqGyO/JwShyTu4uIcdDwj8DyJdmRzsUzndzNhYMGe D2HodX+oGO3fy/QiHC9KyDsibwI+FZ88tuwpKKvVIGcHAXl1SqnYVXTrgm7A5Tv4 4mBzL5yXpwanV6YGRFB+ePz8+tnYKQKEKTLpGF8raKNlmQfzD1W4MpBVp2Sz3nJ3 v915BE8BlaG6q+MQS7SzSuAh2ym++TszuTCNXLK9f5Yr3n2NOzOM10vq6bJnoDgA pfBiWgtlIFtbzODm9yVy/qAcUcgaOR5ri+YhOHHxIF0Hxa76D0G7zqfQU064eNuA 3pM5LyWznurOrCVj6ldAm4ovZAqT5TGOtKQ== Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j6f8rgvcw-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 26 Nov 2026 09:55:58 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-3b456fee3b2so4617617a91.1 for ; Thu, 26 Nov 2026 01:55:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1795686958; x=1796291758; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=xzFtEnnMvUZB8HXLsnBaAj29AuZlF1pQol2u34yaw3w=; b=cZLFnAlYNhUvKo9Q7T5MBdAyj+r6t8fp78EU8heuugcp4ETR/cWx3S5SkJI0YMRqwx Oa+9qQFRvwPhJGmxZSYFQ8j3j3vIVhIJ3K69QPiGJs461fMPpwPIupcGBQwupfvj71H4 7oSs3ASjNxX3kwpqoxkIN4zwGTRj+YuNYLM2fn1rgNS6f4d3Zd62NY9ZF4+6VpHJScSs zgCyfOBrHz8Ax+S8T6Ql5L0RygJ90NKm+O3DXiML8TXF9O0XkZFxCaXPZ7Z9ZKMfe8XK 9gDi47TKugpSf/vcN6+tZlMzzvQBeHJMB0qgHADxefsZN2TMoZjaDeI0eVOIolUnB1AB Awng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795686958; x=1796291758; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=xzFtEnnMvUZB8HXLsnBaAj29AuZlF1pQol2u34yaw3w=; b=w4AKJvTvsulIJj8OC9dOeMP73HVTzSyAOGIpQcEC4d9+/0yJ55AGXrYRhznB+HP5LL i3Difi8MNx0BLe/+fOE7MLMlKXRc5V4XBfOiAWXupH3e5SVP8cmuvv+WFNZ9CDdc4kjE YT2EkRlj0NygvtcpFzKW54xdf/CunAWQjSB2x2WKZLKxoHhvj1WXqeUCDhdJVi8miulM petyJ0m0X120BHVwmAL0q2d6E6uOG+uk5G+2jQLT8XncNkWAbzZGfwQLmPXeBcTpI2rR d05pm7yZBGFOthWz5K7T9TJLxOIbVKeEvTzDj7Vtz2oN+u2V25mqZKpyOXz5Xl6B7hgR aX8Q== X-Forwarded-Encrypted: i=1; AL+hErFUUgeduBkDsjchwse5FORVCXzBxieBoUyaqgkONs3PgHIt3W7/RaR8+VCf1dCzEd3non+3WRVvVA9u@vger.kernel.org X-Gm-Message-State: APuU4Z84PSpqMD4wNmCtCLYLVTm3Oqg2uj/1ZgnoIZ2yRmz/WnubFv7f Y3/SyYuIaiw7JN/Ptz4DjxHVwqwXGGoiCfV65c7OCX34FKXecKfaQWvjnfyunb3Fms2csuu9iGf mLM+6QanZaG1WrKCo043nKih1ruErC0ocDSq3svNyHqGQeqDZ27F1pvBU3HsMWDwj X-Gm-Gg: AZFdTZeNNA+3PjyYIWecqirBEZ75ReN1w7Yyd9v0OfsGPKboAcOfeKfsI/MXRpksEAe YOirQ/cJDIzh/pdGxBOqTnEihTCgbxpnfogsPz2qDFUUiLZq5G4hFkkfELkFVh01fycybQoExLI 1nNO0W/tNp3627GZuW+sFiOYE1uAHsQDLNIjgle/Zb95uNiC2LhYgAyuqsFsA06GuUl9Q7UtEiE GtbVYofQymwGYTHFuZcGMLzebYigN/wew3sVwzIxclRLfSC5oalPQRuo5i6cCFHVJiLSIQsKNv6 kzJedN0/+TOeRL9CzSO0DJCxMSajouIsxNczayYotG+owxReVTL4dCtI3c5aMh4QgKrY1NUSeXe 8lAFmWFi5ZxOYWgcWp0OO2W1vCr3Np5GmPeUWb58vuesDY50bENG8a5H+dj8mAh1jLJ76z4OQG/ Vcgkb2GhvIY2Epca1hnRQ4ZuzoQyUfxZMA7gxUIHEnQr7nbGWHEm2ogooVf72JODEvM4u6LX6eq g== X-Received: by 2002:a17:90b:180b:b0:3b4:1336:4f53 with SMTP id 98e67ed59e1d1-3b41c7d5c11mr17902929a91.1.1795686957346; Thu, 26 Nov 2026 01:55:57 -0800 (PST) X-Received: by 2002:a17:90b:180b:b0:3b4:1336:4f53 with SMTP id 98e67ed59e1d1-3b41c7d5c11mr17902915a91.1.1795686956799; Thu, 26 Nov 2026 01:55:56 -0800 (PST) Received: from hu-mchitale-blr.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com. [103.229.18.19]) by smtp.googlemail.com with ESMTPSA id 98e67ed59e1d1-3b41abb2076sm32459030a91.2.2026.11.26.01.55.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2026 01:55:56 -0800 (PST) From: Mayuresh Chitale To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Palmer Dabbelt , Paul Walmsley , Greg KH , Alexander Shishkin , Ian Rogers Cc: Mayuresh Chitale , Alexandre Ghiti , Peter Zijlstra , Ingo Molnar , Namhyung Kim , Mark Rutland , Jiri Olsa , Adrian Hunter , Mayuresh Chitale , Anup Patel , Atish Patra , Andrew Jones , Sunil V L , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Zane Leung Subject: [PATCH v7 00/14] Linux RISC-V trace framework and drivers Date: Thu, 26 Nov 2026 15:25:21 +0530 Message-ID: X-Mailer: git-send-email 2.43.0 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTI2MDAzOCBTYWx0ZWRfXzhhiJHB921wx 1rpw8RGYtzV9s6QnVpjA/CBWBedjUsbz1Ydpga8uLQEagIRO7s0VMY35pNaJYxETo2i2by0xYjW I1yIdAf4+daHssEr0+QFivVu/bS7KTC9tsgLCaQ1MRFOQVVIBp1nW4uZFY0VHDNPqT9Wa1Mz3CY ITW348mIbJkRMrnNkGuNJvdYK6PAA/2C7FGOWs7dgtcykkKF635lUalXuAQ8marnTMbO1X0j+KB 8e/CjGUvz7MEs6KyOw26HYGJdZGsmsHEkNxOGS38f0encjyNowNj7AoY5jVNi3laR83xm+Iem/B 27pP2r/IgDg2B+4BKvGM5p9Nbx0KgEJgkwRAQZU2PHTteT+epP7OVMvGyaN9k+u68RZrAgaaodC x0+Hfdd/ZGU7oEu6W3XpEqbr/VuXeOodxn16Cm973Hh1FUlCGI+5WnSFWNkKZfrUyBmyRV9f8yp LuGJHkQ/FXNdZkgl/tA== X-Proofpoint-GUID: WlUzy6kkxnVwT8l1NlDBZjMpMuvY_Eui X-Proofpoint-ORIG-GUID: WlUzy6kkxnVwT8l1NlDBZjMpMuvY_Eui X-Proofpoint-Spam-Info: AW1haW4tMjYxMTI2MDAzOCBTYWx0ZWRfX6aztFillHXLd 8JHuy123iLggrpRQRIHmIjKBj8SJxpF+RTLjafcvjTh2MvRDTxFU3Be71w3xRjeqn8Q1vGB/XhF Uq3Bk9xxMFS0GynZ26lKNxi+twb/Ti0= X-Authority-Analysis: v=2.4 cv=FuOQbGrq c=1 sm=1 tr=0 ts=6b08022e cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=V1jnuoLLAAAA:20 a=NEAV23lmAAAA:8 a=p0WdMEafAAAA:8 a=S-okXXNRuRpZkZdKB-YA:9 a=uKXjsCUrEbL0IQVhDsJ9:22 a=bA3UWDv6hWIuX7UZL3qL:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-26_02,2026-11-25_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 impostorscore=0 malwarescore=0 adultscore=0 suspectscore=0 phishscore=0 spamscore=0 lowpriorityscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611260038 This series adds 'gtrace' which is an architecture-neutral hardware trace framework with RISC-V E-trace as its first backend. The 'gtrace' core framework has the minimal shared plumbing (component registration, path create/destroy, path start/stop, etc) and the RISC-V trace drivers are its first consumer. It should be possible for the required ARM components to be adapted to the same framework in a future. This series also adds initial support for RISC-V trace component drivers. The RISC-V trace v1.0 specification is already ratified and can be found at: https://github.com/riscv-non-isa/e-trace-encap/releases/tag/v1.0.0-ratified https://github.com/riscv-non-isa/tg-nexus-trace/releases/tag/1.0_Ratified The drivers use the common trace control interface. E-Trace remains the preferred format for the generic RISC-V compatible string; the encoder now reads back the accepted hardware format and updates the component's format. In the future, there will be subsequent series adding: 1) Sysfs support 2) ACPI support 3) More trace drivers (such as funnel, ATB, etc) 4) Support for upcoming self-hosted trace specification 5) Arm component support under the gtrace framework 6) ... and more ... These patches can also be found in the riscv_trace_support_v7 branch at: https://github.com/mdchitale/linux.git To test the patches, we need QEMU virt machine with RISC-V trace support which can be found in rv-etrace_v4 branch at: https://gitlab.com/danielhb/qemu.git To capture gtrace data using perf on QEMU virt machine do the following: 1) Launch QEMU virt machine $ qemu-system-riscv64 -nographic -M virt -smp 2 -bios fw_dynamic.bin \ -kernel Image -append "root=/dev/vda rw console=ttyS0 earlycon=sbi" \ -drive file=rootfs.img,id=disk1,if=none,format=raw \ -device virtio-blk-device,drive=disk1 2) Run perf record to capture gtrace data $ perf record --all-cpus -e gtrace/event=0x1/ 3) The step2 would create a perf.data file which has the gtrace data. Now run perf report -D and look for PERF_RECORD_AUXTRACE event section(s) which point(s) to the actual gtrace data offset. Changes since v6: - Rebased on latest upstream - Add a gtrace component type of NONE version-zero components can match - Hold gtrace component references for firmware-node and CPU-source lookups, - Detach incoming/outgoing connection pointers before removing components - Balance temporary OF node references and outgoing references on parser and platform-probe failures; fix the CPU-node diagnostic lifetime and the OF module device table declaration. - Use a spinlock to guard trace-ID and component ready callbacks - Probe SRCBITS using all possible allowed widths and select the final allowed width - Read back the trace format (e-trace/n-trace) supported by hardware and update platform driver state accordingly - Make ramsink register-pair helper functions generic to gtrace - Copy AUX data from the actual path sink and not the first component that implemented the aux copy callback. - Pass the available AUX byte limit to the core and sink callbacks whereas sink driver returns the actual byte count and AUX flags. - Release AUX mappings data directly in free_aux() instead of deferring it via workqueue - Set the AUX_OUTPUT_HW_ID to the encoder's hardware source ID - Other fixes for issues reported by Sashiko bot Changes since v5: - Moved the DT connection parsing into the gtrace core as gtrace-of.c. - Added start_count and a lock to the core's private component data to serialize start/stop/copyto_auxbuf operations. Dropped perf_buf_lock. - Added handling of partially enabled path by disabling all enabled components - Added cycle detection when walking the trace component graph - Added trace source ID configuration in the encoder driver - Added trace format (E-Trace/N-Trace) selection via the platform driver compatible string. It is used by encoder and perf drivers to set it into hardware and perf data header respectively - Modified the ramsink buffer setup to read back the trRamStart and trRamLimit registers, and program the sync frequency, memory format and stop-on-wrap settings at start time - Improved error handling and added path owner in the perf driver - Fixed several issues reported by sashiko-bot but some of its findings are deferred to a later version. Changes since v4: - Introduced a new architecture-neutral 'gtrace' (Generic Trace) framework and moved the RISC-V trace drivers on top of it instead of a RISC-V-only 'rvtrace' core. - Added new PATCH3 "gtrace: Add RISC-V platform driver for the gtrace framework" to split out the RISC-V platform/DT code from the core framework patch. - Moved all rvtrace driver sources from drivers/hwtracing/rvtrace/ to drivers/hwtracing/gtrace/, with single Kconfig, Makefile using - Made the perf driver (previously rvtrace-perf.c) architecture-neutral and moved it into the gtrace framework as gtrace-perf.c; PMU name changed from "rvtrace" to "gtrace" - Added new PATCH8 "perf: Add gtrace AUX buffer trace format type" to define PERF_AUX_FLAG_GTRACE_FORMAT_ETRACE which is used in later patches. - copyto_auxbuf() and gtrace_path_copyto_auxbuf() now take an output parameter so the AUX data format can be reported by the sink driver by setting PERF_AUX_FLAG_GTRACE_FORMAT_ETRACE. - Renamed the generic side of the perf tools support from rvtrace* to gtrace*. perf.data ABI is unchanged. - Fixed gtrace ramsink start/stop to call gtrace_enable_component()/ gtrace_disable_component() to remove duplication with code in gtrace-core.c - Updated the MAINTAINERS patch to refer to gtrace framework instead of rvtrace Changes since v3: - Rebased on Linux-7.1-rc1 - Use kzalloc_obj() in-place of kzalloc() in PATCH2, PATCH3 and PATCH9 - Improved PATCH7 to save the previous WP value Changes since v2: - Rebased on Linux-7.0-rc1 - Addressed Rob's comments on DT bindings in PATCH1 - Addressed ref-count related issues in rvtrace_of_parse_outconns() of PATCH2 - Made RVtrace framework more generic by avoiding implicit access to component registers in PATCH2 - More improvements in trRamStart/Limit/WP programming and other improvments in PATCH7 - Removed RVTRACE_BUF_LEN from PATCH9 - Removed redundant page_size from PATCH10 - Renamed found_etm in PATCH10 - Removed rvtrace_recording_init() declaration from header in PATCH11 Changes since v1: - Rebased on Linux-6.18-rc3 - Addressed Rob's comments in dt-bindings added by PATCH1 - Get reference of conn->dest_fwnode and add missing break in rvtrace_of_parse_outconns() of rvtrace-platform drivers added by PATCH2 - Added new inline function rvtrace_comp_is_empty() in PATCH2 and used it in rvtrace_encoder_stop() added by PATCH5 - Fixed trRamWPLow usage in PATCH7 - Determine RAM sink buffer size based on component implementation ID and reduce default RAM sink buffer size to 1MB - Add new PATCH8 to enable DMA_RESTRICTED_POOL in RISC-V defconfig so that implementations with RAM sink address restrictions can be handled. Anup Patel (7): dt-bindings: Add RISC-V trace component bindings hwtracing: gtrace: Initial implementation of gtrace framework gtrace: Add RISC-V platform driver for the gtrace framework gtrace: Add functions to create/destroy a trace component path gtrace: Add function to copy into perf AUX buffer riscv: Enable DMA_RESTRICTED_POOL in defconfig MAINTAINERS: Add entry for RISC-V trace framework Mayuresh Chitale (7): gtrace: Add functions to start/stop tracing on a component path gtrace: Add RISC-V Trace encoder driver perf: Add gtrace AUX buffer trace format type gtrace: Add RISC-V Trace ramsink driver gtrace: Add perf driver for tracing using perf tool perf tools: Add RISC-V trace PMU record capabilities perf tools: Initial support for gtrace decoder .../bindings/riscv/riscv,trace-component.yaml | 120 +++ MAINTAINERS | 11 + arch/riscv/configs/defconfig | 1 + drivers/Makefile | 1 + drivers/hwtracing/Kconfig | 2 + drivers/hwtracing/gtrace/Kconfig | 59 ++ drivers/hwtracing/gtrace/Makefile | 9 + drivers/hwtracing/gtrace/gtrace-core.c | 962 ++++++++++++++++++ drivers/hwtracing/gtrace/gtrace-of.c | 133 +++ drivers/hwtracing/gtrace/gtrace-perf.c | 368 +++++++ drivers/hwtracing/gtrace/rvtrace-encoder.c | 274 +++++ drivers/hwtracing/gtrace/rvtrace-platform.c | 194 ++++ drivers/hwtracing/gtrace/rvtrace-ramsink.c | 366 +++++++ drivers/hwtracing/gtrace/rvtrace.h | 121 +++ include/linux/gtrace.h | 382 +++++++ include/uapi/linux/perf_event.h | 5 + tools/include/uapi/linux/perf_event.h | 5 + tools/perf/arch/riscv/util/Build | 1 + tools/perf/arch/riscv/util/auxtrace.c | 220 ++++ tools/perf/util/Build | 1 + tools/perf/util/auxtrace.c | 4 + tools/perf/util/auxtrace.h | 1 + tools/perf/util/gtrace-decoder.c | 99 ++ tools/perf/util/gtrace.h | 17 + 24 files changed, 3356 insertions(+) create mode 100644 Documentation/devicetree/bindings/riscv/riscv,trace-component.yaml create mode 100644 drivers/hwtracing/gtrace/Kconfig create mode 100644 drivers/hwtracing/gtrace/Makefile create mode 100644 drivers/hwtracing/gtrace/gtrace-core.c create mode 100644 drivers/hwtracing/gtrace/gtrace-of.c create mode 100644 drivers/hwtracing/gtrace/gtrace-perf.c create mode 100644 drivers/hwtracing/gtrace/rvtrace-encoder.c create mode 100644 drivers/hwtracing/gtrace/rvtrace-platform.c create mode 100644 drivers/hwtracing/gtrace/rvtrace-ramsink.c create mode 100644 drivers/hwtracing/gtrace/rvtrace.h create mode 100644 include/linux/gtrace.h create mode 100644 tools/perf/arch/riscv/util/auxtrace.c create mode 100644 tools/perf/util/gtrace-decoder.c create mode 100644 tools/perf/util/gtrace.h base-commit: 8d7fe9885c62fc9a95bf55d9db244d9672a8aadc -- 2.43.0