Message ID | 157867235358.17873.61732996461602171.stgit@devnote2 (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=nBWL=27=vger.kernel.org=linux-fsdevel-owner@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E6C74109A for <patchwork-linux-fsdevel@patchwork.kernel.org>; Fri, 10 Jan 2020 16:06:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C787A21744 for <patchwork-linux-fsdevel@patchwork.kernel.org>; Fri, 10 Jan 2020 16:06:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578672363; bh=r8TkR+YZ0nz5BjKES4oKL1ljV5KXeJigYvqY16isHSs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=VEmYOJ0HbcCMH+JLADxkTE7k4btbmj6EjXZwU36NXv6db3oqUCoLRLnleQ+37EmKi Aw3Vu45mpC+sNP5cPoiC5x16rWJR1eAM7EQ/LXWpwbFTxqrqCXn4QlaL1kp7qv8S3M VvTHxNWZDWuQsDZzQQ87mopLJM2M8e97Z6WAdlkc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728825AbgAJQGA (ORCPT <rfc822;patchwork-linux-fsdevel@patchwork.kernel.org>); Fri, 10 Jan 2020 11:06:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:54422 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728585AbgAJQGA (ORCPT <rfc822;linux-fsdevel@vger.kernel.org>); Fri, 10 Jan 2020 11:06:00 -0500 Received: from localhost.localdomain (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 004C820848; Fri, 10 Jan 2020 16:05:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578672359; bh=r8TkR+YZ0nz5BjKES4oKL1ljV5KXeJigYvqY16isHSs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bYuBaocwEPuvtM3DNBvNtOM9kzj6RY1PPqZ2HTkVe3FI2LYITUQFtW5drvS6Wgvzu 3+kQEZaaW1WPcxzkz33I824WCkX7CBw8IQJsthuMricT9B66MskXdCSDVVLps6ZHnG ul7FMKNKlXlK/DDKyDRdPKp8tP55OxstlY8AlAxM= From: Masami Hiramatsu <mhiramat@kernel.org> To: Steven Rostedt <rostedt@goodmis.org> Cc: Ingo Molnar <mingo@redhat.com>, Frank Rowand <frowand.list@gmail.com>, Randy Dunlap <rdunlap@infradead.org>, Namhyung Kim <namhyung@kernel.org>, Tim Bird <Tim.Bird@sony.com>, Jiri Olsa <jolsa@redhat.com>, Arnaldo Carvalho de Melo <acme@kernel.org>, Tom Zanussi <tom.zanussi@linux.intel.com>, Rob Herring <robh+dt@kernel.org>, Andrew Morton <akpm@linux-foundation.org>, Thomas Gleixner <tglx@linutronix.de>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Alexey Dobriyan <adobriyan@gmail.com>, Jonathan Corbet <corbet@lwn.net>, Linus Torvalds <torvalds@linux-foundation.org>, linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 13/22] tracing: Accept different type for synthetic event fields Date: Sat, 11 Jan 2020 01:05:53 +0900 Message-Id: <157867235358.17873.61732996461602171.stgit@devnote2> X-Mailer: git-send-email 2.20.1 In-Reply-To: <157867220019.17873.13377985653744804396.stgit@devnote2> References: <157867220019.17873.13377985653744804396.stgit@devnote2> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-fsdevel.vger.kernel.org> X-Mailing-List: linux-fsdevel@vger.kernel.org |
Series |
tracing: bootconfig: Boot-time tracing and Extra boot config
|
expand
|
diff --git a/kernel/trace/trace_events_hist.c b/kernel/trace/trace_events_hist.c index f62de5f43e79..dae2c25b209a 100644 --- a/kernel/trace/trace_events_hist.c +++ b/kernel/trace/trace_events_hist.c @@ -4110,8 +4110,11 @@ static int check_synth_field(struct synth_event *event, field = event->fields[field_pos]; - if (strcmp(field->type, hist_field->type) != 0) - return -EINVAL; + if (strcmp(field->type, hist_field->type) != 0) { + if (field->size != hist_field->size || + field->is_signed != hist_field->is_signed) + return -EINVAL; + } return 0; }
Make the synthetic event accepts a different type field to record. However, the size and signed flag must be same. Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> --- kernel/trace/trace_events_hist.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)