Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1649056ybt; Sat, 11 Jul 2020 18:12:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkFs3dVwunpuG5AGrMpr1wJiG4vtnQodjroKCItoDEZjUJk7emN/T+wFOF4q0iexF7xnY/ X-Received: by 2002:aa7:df08:: with SMTP id c8mr83017746edy.372.1594516349262; Sat, 11 Jul 2020 18:12:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594516349; cv=none; d=google.com; s=arc-20160816; b=E3VsbFRNI9XCf5Mx5SFeRkuTBD/7DtdRLGqjMUsyMPKcrb7wouA55Jeq1HIML+2+aB nk1bfP/6xeiG3xpdv/Lr7tjcGHIHqzUp9V7NXWei+9IUBrDRkPYAewa78My9gdRnl2+o gpT7UkfftRtHSz4Nz8dK9+FzD/3Smf9YyMQ2ctpsMk2Tx7rT3hlDWVr4S60wsOXxL52u OxVCoB/+dwmPgmb55nMJDvUQ6mENWCNYdObQRAYNpAmMnM7nkfVkSmPh+H/70x3qvb3d +Pg5Px86kW3nJmuVkrjV5msVw0hc74NzKA6dhxpI0YlM4JqIqyaA/Fi8DJbojhwQLswQ 2FaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=X/aJSF/7WTGZYSDuQFw0FvvW3cFsQXPQ12hA3QWv88w=; b=iCDxX3lwB5i9vPKuYGKXpNMVmjraZZlMavAY1Etats4Q/qKm+d+xcZCLpswYCUc0HM h7heb0r9x6K+aON7lZtl+1TtjUuESwqeodi33WjBBjlbDAafyxuQJ6YIQcZA96e94k4V G46+vsFkDrB17Z8coVIarETfOwKh2bF2j/N5azeCjvIT9refGvWd+/SASOlbA8l0coZL NIseuGFnH6AzCQqepvqExWIU3aCOUQugyBUyKuPQ1Nk0WJNS7QW8b/+NAn4uz+5XNyzx p7RoIa8e8m34vpCrcHw5KE/Uak1AUN4MTdPu7h/VFd2jQFo81Abavzl9oc2BLVFtERk6 OVpA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n6si6288489ejs.278.2020.07.11.18.11.39; Sat, 11 Jul 2020 18:12:29 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727793AbgGLBLe (ORCPT + 99 others); Sat, 11 Jul 2020 21:11:34 -0400 Received: from out30-54.freemail.mail.aliyun.com ([115.124.30.54]:46134 "EHLO out30-54.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726948AbgGLBLd (ORCPT ); Sat, 11 Jul 2020 21:11:33 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R441e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e07425;MF=richard.weiyang@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0U2PN-4G_1594516291; Received: from localhost(mailfrom:richard.weiyang@linux.alibaba.com fp:SMTPD_---0U2PN-4G_1594516291) by smtp.aliyun-inc.com(127.0.0.1); Sun, 12 Jul 2020 09:11:31 +0800 From: Wei Yang To: rostedt@goodmis.org, mingo@redhat.com Cc: linux-kernel@vger.kernel.org, Wei Yang Subject: [Patch v2 0/4] tracing: trivial cleanup Date: Sun, 12 Jul 2020 09:10:32 +0800 Message-Id: <20200712011036.70948-1-richard.weiyang@linux.alibaba.com> X-Mailer: git-send-email 2.20.1 (Apple Git-117) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some trivial cleanup for tracing. v2: * drop patch 1 * merge patch 4 & 5 * introduce a new patch change the return value of tracing_init_dentry() Wei Yang (4): tracing: simplify the logic by defining next to be "lasst + 1" tracing: save one trace_event->type by using __TRACE_LAST_TYPE tracing: toplevel d_entry already initialized tracing: make tracing_init_dentry() returns an integer instead of a d_entry pointer kernel/trace/trace.c | 36 ++++++++++++++-------------- kernel/trace/trace.h | 2 +- kernel/trace/trace_dynevent.c | 8 +++---- kernel/trace/trace_events.c | 9 ++----- kernel/trace/trace_events_synth.c | 9 +++---- kernel/trace/trace_functions_graph.c | 8 +++---- kernel/trace/trace_hwlat.c | 8 +++---- kernel/trace/trace_kprobe.c | 10 ++++---- kernel/trace/trace_output.c | 14 +++++------ kernel/trace/trace_printk.c | 8 +++---- kernel/trace/trace_stack.c | 12 +++++----- kernel/trace/trace_stat.c | 8 +++---- kernel/trace/trace_uprobe.c | 9 ++++--- 13 files changed, 66 insertions(+), 75 deletions(-) -- 2.20.1 (Apple Git-117)