Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp404521rwb; Wed, 14 Dec 2022 19:32:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf4TsQ6A2hx7bxAW1GtLsobV+8MzZAweYnPrn9DHoKdePvJb+zsjBMuQFigMAZxzutEdDMQ7 X-Received: by 2002:a05:6a20:cc60:b0:af:5125:bcdd with SMTP id hq32-20020a056a20cc6000b000af5125bcddmr4774975pzb.55.1671075131107; Wed, 14 Dec 2022 19:32:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671075131; cv=none; d=google.com; s=arc-20160816; b=Mqb/QtZR/WjpY4k5xSIYfwZFJR89mWjxnlsxobF8XTghmNkTuWzv+cCjFSvAhRspiw HWwaLXpCO/zArgfJjQgaUDTRdlbytthLzus70mboHz14WaAECxwKuJWY0sgncY6P+55j O4Yh0teyq5mofZ3vlezORc4TaeLnVjcnXBJreF6RntcrhxkHcO1wsx1s34l6L3JGaQRr SZS87RmKk20UhSpcpHuGatOfD1ndHOILthbY7y3hbT+hoTVkpe1at/a63rXGw+G+0dy6 x8APa9tVpxeUBvxuu1yCjBJkmhjmPUl4VHDuGSI5n3xQxfvButYG1C6ktWGluEGOBr4Z J5ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=7KWUwvwZbU6VW894TP+GXWmmdiPX0WClon5iMszxuaE=; b=H1sRRAYXAA5OgOIhYlGPo5uoH83IPZhjpRLZ22wG8QY0t+yRIMeBHc+U373fE90t3P kEt9ZWbyAlt24lkvcbCeNAbit1jUnIgJOSwiLfOxKuFw70+BxD9+7tde+f22fnN+6zUc 7xqc2Vkwpqz4QfQC+tIMqczCfU/dtL8+3AsnLEYVDf4ooh4PD/pW8xgpSIzWffgJhKaF MDxuP8ClZ3VK/xVd5gfTeKTrUJv1BZE5t08iYNBH9XRZFOkWByQst2/7JHO23dpBqsrJ dzECBNyYm2EpKrpHrOPljqCOZuIYB+RDhygZ4jH94M2hYq3AeC+jwnRw8yeoZRr8Lzkz 350w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j70-20020a638b49000000b00478bc014a29si1620467pge.43.2022.12.14.19.32.02; Wed, 14 Dec 2022 19:32:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229636AbiLODQR convert rfc822-to-8bit (ORCPT + 69 others); Wed, 14 Dec 2022 22:16:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbiLODQO (ORCPT ); Wed, 14 Dec 2022 22:16:14 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 221072C11C; Wed, 14 Dec 2022 19:16:13 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B4DA061CC8; Thu, 15 Dec 2022 03:16:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 731CFC433EF; Thu, 15 Dec 2022 03:16:11 +0000 (UTC) Date: Wed, 14 Dec 2022 22:16:09 -0500 From: Steven Rostedt To: Linyu Yuan Cc: Masami Hiramatsu , , Subject: Re: [RFC PATCH 2/2] trace: allocate temparary buffer for trace output usage Message-ID: <20221214221609.1d8f62be@gandalf.local.home> In-Reply-To: <125146b7-3371-2d66-4d25-b829d9f334ea@quicinc.com> References: <1671027102-21403-1-git-send-email-quic_linyyuan@quicinc.com> <1671027102-21403-2-git-send-email-quic_linyyuan@quicinc.com> <20221214092550.1691829e@gandalf.local.home> <125146b7-3371-2d66-4d25-b829d9f334ea@quicinc.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 15 Dec 2022 09:53:27 +0800 Linyu Yuan wrote: > is it possible add a generic macro like #define __get_buf(offset, len)  > (p->buffer + (offset))  ? > > it only use buffer filed of struct trace_seq . If it works for you, I guess. I'd like to see the patch and use case. -- Steve