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=HFu0qkUuSMpPIem73TwZ898+kOu4TRRpptt0zPdB4GdEC7ewNJpDyZMFJdHS5FcqGJ/k l23qLKVl75RcB02sy+USSsxnNaYyPo1uHpqEPoM5qm0lrM7mh24LExBrbJyfKD1ZvqS78 xOqraAcuEG+W/PHagpn6LE5lGTD3UgPut1NqfkcaxbBuDFmpuKhA6Lw327wdwcVrSQqSE gA0LkpSxMTcJB/Nphy9e2/OxnlcEHJ7ebc2CcWzhnpO+P0ZGufaNWIqP+Oyf1UrI9Ffid +nEw8R+tN/Fc8IAjtUTxwvlvWdvPDngTFI9D6KWMSGdRoBhPkO2YNtjPbE32PTOcboA== 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=s0EoeR7kihWJ25CJfFGFDBXwM9YTDbROPam2n0wkGfPK6S0Pmw8bBxMGyT3wSPJAM/t/ X4kYqwkLQlaImxK25i/+88G00cMifa62eVUDrP8qNLELCX4h4Z31ntC1Ru9EUJrl6aI5H e0Zjhhxz3Q0Wf4ZXFLsdl1EAy7dk3sbQYSQi4oBc/m+ftrYhrP4Yu1FcPAdJZYz81RdVP m8Hs1CinKqgMKTlEuiJdHSVTy6uslT/r3gj40Owh+VMgO+yXm8bBPaKah2KGhnM7thGJq 67hqGoXngPnEtleufrMZTATro4VJ2qytFjs0jhAdcYuekNYlN3eGdU2LvRh71Vb2bZA== 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 44462606A332 for ; Wed, 2 Dec 2026 12:16:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 44462606A332 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-kernel@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