Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp176220pxt; Wed, 11 Aug 2021 17:57:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpF00RlVxFXYJ0E8qv5Pz3DHA/+GsjyCxe0gkOyYIJ8NLklrAyFP9hPeT0p0F3kOMA3PBy X-Received: by 2002:a05:6402:348c:: with SMTP id v12mr2186330edc.159.1628729858614; Wed, 11 Aug 2021 17:57:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628729858; cv=none; d=google.com; s=arc-20160816; b=Hb98pQjOGswcY6wpte1/RsTxUafKxCzRAqfFJKWMJkfjfPMkCHfhlM4S04voR/+KmW cFYeLjftLVomSwW6ND/JXGXIyDrzt5gbrmQEz1Su96GGIv53PuA1vej8YV0sW6LH0UeW NbpWKW9ZoBj19WodnXW4aIyuKayaV5TXdOLftw0hq+kSZnkWApQp6E5Pf5Mcbd/vesVl v8826+qJpcxhRNx2bTXt6jrScQGR7Aq+Mq9JKXjm2dj6UAPl7DQiclsdZukGZaFv2S0G b1Hq/Vhdq14xrVYYnW+cTqYY3VLiFa9Lf40SMHnTYWPLECGG2YXzSu8VIMwMvVS4nsaG 1Ing== 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 :message-id:date:subject:cc:to:from; bh=Y1uJCXrbkbbB79Fwz+HqyG59RdWWNDbzEMltjpA/qxA=; b=Hj6U2wKQQu5X2MTOAuv6CVT5HwwxV/3dS9c+KqMRb9IfyifPofKT7Qz1c4JJJer0Fq hhBEreekMUftuWzAEZHvzxz9FQaL3R2GWGoyZ8Tkj36uBEMjL3hkqV85WnKVxmYsynXf 6k2MCPw8xFC0bgcC9sTBU9wRhHlhTojOPLF7zADYML0qTQ9hlN1e9UFa5nEF5np3LY14 DDOOthiTUfS+0XTU8BKnMrPhP9rPB98n2yN4pYJsljZC2d0rVI6k1pYv+6KgaMIpCTiX 3ckMqve8zY9K9P5D6sdrnT7LbbJx8Kie7tTBU4ILzT/vQtVct7LlyxooQtetMrzpEbJR maIw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bz23si760580ejc.155.2021.08.11.17.57.15; Wed, 11 Aug 2021 17:57:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233237AbhHLA4P (ORCPT + 99 others); Wed, 11 Aug 2021 20:56:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:35964 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232704AbhHLA4N (ORCPT ); Wed, 11 Aug 2021 20:56:13 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 510F060FD9; Thu, 12 Aug 2021 00:55:49 +0000 (UTC) Received: from rostedt by gandalf.local.home with local (Exim 4.94.2) (envelope-from ) id 1mDz0e-003oyT-1X; Wed, 11 Aug 2021 20:55:48 -0400 From: Steven Rostedt To: linux-trace-devel@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Tom Zanussi , Daniel Bristot de Oliveira , Masami Hiramatsu , "Steven Rostedt (VMware)" Subject: [PATCH 0/2] libtracefs: Make hist variable names unique Date: Wed, 11 Aug 2021 20:55:44 -0400 Message-Id: <20210812005546.910833-1-rostedt@goodmis.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Steven Rostedt (VMware)" In order to be able to have API that can do onmax() and onchange() as well as include the .save() and .snapshot() actions, we need to make sure that the variable names are unique even between different events. The first adds a "randomness" to the name, and the second patch fixes an issue where the "end" event fields are saved in the same name as they are called, then the ".save" action can not be used on them. Steven Rostedt (VMware) (2): libtracefs: Add random number to keep synthetic variables unique libtracefs: Have end event variables not be the end event field name src/tracefs-hist.c | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) -- 2.30.2