From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-189.mta1.migadu.com (out-189.mta1.migadu.com [95.215.58.189]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3EA8628DB7E for ; Fri, 1 Aug 2025 19:59:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.189 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754078358; cv=none; b=u9i22Y/+/VsrqcAHz1wpoyyMy8xSkZi1+Z1WjHMbob2PXlIRISNmy0sGbLeAwDtxGhxEBkoaqNEIc552tNnryY6mq5Bv3DYu/VdiYaboqxjFPZx/MgbZupH0ePJAiVcp90/jZV+aVCrk/GvKLdQ5Q6hz1wKGxDoISgI9zbrNOho= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754078358; c=relaxed/simple; bh=bYQXN1B8K5n0DP2UG+fP5IGUd0vb54YmpWGnJo5dnuM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=MVwUPcM5W0NR5R8qGdyrp1gVLDHTMPeriZTyGlaPbnmnn248iGV8gD2qk+2litjy4OIARUgnSHUvf/UzCgw3z1IVn/NOs2FKDEn0cFMjWrSt1PtsvvamlCFJwSf9dSqiphkXkOz1DdukERU0RGJ3R/j+jh6IVikoEgqdW1CBRz0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=XrGYTEVg; arc=none smtp.client-ip=95.215.58.189 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="XrGYTEVg" Message-ID: <604028fc-0a41-4323-b72a-7c61e069ef3c@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1754078352; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cTIB+VpKm829JSsiIHiJoB+yOOqh5LTcm6h+yByXhwA=; b=XrGYTEVgSmztKGNUqCYEmXFIvWwQTihBuA5UDnuH+JYDmc48ZGg/WU4g0oDJYRbm9rj9Kt jOgxIuyG2P5np2QjlrQw9QE8vnU+Eb9eX7tJ9luu93roCo9XDId1KsR09kveTiOqnhzVVN h+mTNDCEQVvClBfFzWc0e5NRXKb167c= Date: Fri, 1 Aug 2025 12:59:05 -0700 Precedence: bulk X-Mailing-List: linux-trace-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH] tracing: Have unsigned int function args displayed as hexadecimal To: Steven Rostedt Cc: Masami Hiramatsu , Mathieu Desnoyers , bpf@vger.kernel.org, Douglas Raillard , LKML , Linux Trace Kernel References: <20250731193126.2eeb21c6@gandalf.local.home> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Martin KaFai Lau In-Reply-To: <20250731193126.2eeb21c6@gandalf.local.home> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 7/31/25 4:31 PM, Steven Rostedt wrote: > + int_data = btf_type_int(t); > + encode = BTF_INT_ENCODING(int_data); There is a btf_int_encoding(t) helper in btf.h, so only "encode = btf_int_encoding(t);" will be simpler.