From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796213794; b=mvZp7XPR74xudEhtvXYfaMh9ESMe2OG55FWWYyR2pCDw7YksdgpaVUD9jrBaCImskzBv bLaj5fJwIT3aD0qiLlTHKS0jghQTngxrLp6Gc9qmRvkyBCn4NSDEKCRLfk/xCRl7+Q43F 3FLB8CrEAfjgdU0mjgD+zqE8PHowipKoehCHajKC/4iVJ1hkSjqHegasDQn3adhMMYWk9 Srf61g31w/rG/w4u5L1g467u0wvLA0prOZK6yAUX0nIqD/YjNyjnBymf8AvD2mzV80PpG JOGsdYboMyT8gcylOCB6wFOaoJKgIUAztBqMJ9DNhnwO9h56iXPjWDfGNmDr55d3cxw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796213794; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:Received:From:To:Cc:Subject:Date: Message-ID:MIME-Version:Content-Transfer-Encoding:X-Scanned-By; bh=jEXGLe2wqMKgdHLJfQtrNzUwhL//G9Pk7IlAxBGh9i0=; b=j/oP6oB5R3wPchsWWNxB51Qe0G8m0vNykxEB529En15IWfjcAlCCCZYkYIcRQlBWQ+fw VhVv815Wb+NRA2SvK0wifPpkrEfBufu/6lZWD0Gx0rdsLrO2nYmYeShh3GnV9HynXm86Q J+azSfIk5q+Zx9oNwNfYQYOiz06Zf9CJjonNPlcmLDLRZrNIFUa1dUEfYxF5rwTs8W+tB VnMWg8v+dMJnKJtygfdlsmTEXXaQIGC1D1BGQLvcz+6Q/hNlaBMynUv+Pr+dKL55xbHqj +gj9ljDAFcHAZLVJyOYaKDGQ+VYpBlIZXHRf2CUI+aYbHMMVQE4LhwEuO2zJfphaHlw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=M8QF+8mz; arc=none smtp.remote-ip=170.10.129.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 A06A2606A682 for ; Wed, 2 Dec 2026 12:16:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A06A2606A682 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=M8QF+8mz DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796213793; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=jEXGLe2wqMKgdHLJfQtrNzUwhL//G9Pk7IlAxBGh9i0=; b=M8QF+8mzlTCFrH2LBTQikMz8qSspcdBEn3J9Jesv/N6/n7vzgOQ3Hb1oOKnwZOZnT7TdjU +lCIfoEa/eavswhQ7kWDzFdKQ231whRvkbUnO7b+A181EbixL4qa6x8goT0zgINhJgOVCM MGcDaq+rPzUDUZqC58CeZvi2wvNI0Sk= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-655-sd8TqrzDPr69ss7cvAvxYg-1; Wed, 2 Dec 2026 12:16:28 +0000 X-MC-Unique: sd8TqrzDPr69ss7cvAvxYg-1 X-Mimecast-MFC-AGG-ID: sd8TqrzDPr69ss7cvAvxYg_1796213787 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 3CBCD192E26F; Wed, 2 Dec 2026 12:16:27 +0000 (UTC) Received: from mpazur-thinkpadt14gen6.redhat.corp (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 0CB841801422; Wed, 2 Dec 2026 12:16:24 +0000 (UTC) From: Marek Pazur To: Arnaldo Carvalho de Melo , Namhyung Kim Cc: Jiri Olsa , Ian Rogers , Adrian Hunter , Howard Chu , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] perf trace: Improve augmented buf output formatting, fix test output Date: Wed, 2 Dec 2026 13:16:20 +0100 Message-ID: <20261202121622.30071-1-mpazur@redhat.com> X-Mailing-List: linux-perf-users@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-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 Currently, perf trace prints augmented buf arguments without delimiters or backslash escaping. When buffer payloads contain commas, quotes, or escape-like sequences, the output becomes ambiguous to parse reliably in automated tests. Additionally, the buffer augmentation shell test passes captured perf trace output directly into printf's format string, causing non-printable decimal escapes (such as "\10") to be misinterpreted and corrupt failure logs. This series addresses both issues: - Patch 1 fixes printf format-string expansion in the buffer augmentation shell test by passing trace output via "%s". - Patch 2 encloses augmented buf output in double quotes and escapes '"' and '\' and updates the buffer augmentation shell tests accordingly. Marek Pazur (2): perf test trace_btf_general: Use %s format specifier when printing test output perf trace: Quote and escape augmented buffer contents tools/perf/builtin-trace.c | 14 ++++++++++++-- tools/perf/tests/shell/trace_btf_general.sh | 8 ++++---- 2 files changed, 16 insertions(+), 6 deletions(-) -- 2.55.0