From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932226AbbDHPMA (ORCPT ); Wed, 8 Apr 2015 11:12:00 -0400 Received: from terminus.zytor.com ([198.137.202.10]:40241 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932185AbbDHPL6 (ORCPT ); Wed, 8 Apr 2015 11:11:58 -0400 Date: Wed, 8 Apr 2015 08:11:38 -0700 From: tip-bot for Yunlong Song Message-ID: Cc: acme@redhat.com, yunlong.song@huawei.com, wangnan0@huawei.com, paulus@samba.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, a.p.zijlstra@chello.nl, mingo@kernel.org, hpa@zytor.com Reply-To: mingo@kernel.org, hpa@zytor.com, paulus@samba.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, a.p.zijlstra@chello.nl, acme@redhat.com, yunlong.song@huawei.com, wangnan0@huawei.com In-Reply-To: <1427809596-29559-2-git-send-email-yunlong.song@huawei.com> References: <1427809596-29559-2-git-send-email-yunlong.song@huawei.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf sched replay: Use struct task_desc instead of struct task_task for correct meaning Git-Commit-ID: 0755bc4dc77a876aa60d4b3d33b5f6506f21f91b X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 0755bc4dc77a876aa60d4b3d33b5f6506f21f91b Gitweb: http://git.kernel.org/tip/0755bc4dc77a876aa60d4b3d33b5f6506f21f91b Author: Yunlong Song AuthorDate: Tue, 31 Mar 2015 21:46:28 +0800 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 8 Apr 2015 09:07:19 -0300 perf sched replay: Use struct task_desc instead of struct task_task for correct meaning There is no struct task_task at all, thus it is a typo error in the old commits, now fix it to what it should be in order to avoid unnecessary misunderstanding. Signed-off-by: Yunlong Song Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Wang Nan Link: http://lkml.kernel.org/r/1427809596-29559-2-git-send-email-yunlong.song@huawei.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/builtin-sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c index 3b3a5bb..a1893e8 100644 --- a/tools/perf/builtin-sched.c +++ b/tools/perf/builtin-sched.c @@ -346,7 +346,7 @@ static struct task_desc *register_pid(struct perf_sched *sched, sched->pid_to_task[pid] = task; sched->nr_tasks++; - sched->tasks = realloc(sched->tasks, sched->nr_tasks * sizeof(struct task_task *)); + sched->tasks = realloc(sched->tasks, sched->nr_tasks * sizeof(struct task_desc *)); BUG_ON(!sched->tasks); sched->tasks[task->nr] = task;