From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935253AbdACPNn (ORCPT ); Tue, 3 Jan 2017 10:13:43 -0500 Received: from mail.kernel.org ([198.145.29.136]:52924 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935542AbdACPM4 (ORCPT ); Tue, 3 Jan 2017 10:12:56 -0500 Date: Tue, 3 Jan 2017 12:12:49 -0300 From: Arnaldo Carvalho de Melo To: Daniel Bristot de Oliveira Cc: Steven Rostedt , linux-kernel@vger.kernel.org, Ingo Molnar , Peter Zijlstra , Alexander Shishkin , Jiri Olsa Subject: Re: [PATCH] tools lib traceevent: Fix prev/next_prio for deadline tasks Message-ID: <20170103151249.GJ27864@kernel.org> References: <866ef75bcebf670ae91c6a96daa63597ba981f0d.1483443552.git.bristot@redhat.com> <20170103144623.GG27864@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Jan 03, 2017 at 04:01:44PM +0100, Daniel Bristot de Oliveira escreveu: > On 01/03/2017 03:46 PM, Arnaldo Carvalho de Melo wrote: > > you missed the delimiter here: > > > > --- > > > > Without it, I get: > > > > [acme@jouet linux]$ am /wb/1.patch > > Applying: tools lib traceevent: Fix prev/next_prio for deadline tasks > > fatal: patch with only garbage at line 3 > > Patch failed at 0001 tools lib traceevent: Fix prev/next_prio for deadline tasks > > The copy of the patch that failed is found in: .git/rebase-apply/patch > > When you have resolved this problem, run "git am --continue". > > If you prefer to skip this patch, run "git am --skip" instead. > > To restore the original branch and stop patching, run "git am --abort". > > [acme@jouet linux]$ git am --abort > > > > I added it manually and applied, please consider using 'git format-patch' next time :-) > > Odd, I applied this patch using git am before send it to be > sure git would not remove lines starting with " #". It worked fine. > > I did everything using git.. git commit, format-patch, tested with git > am on another branch, then send it using git send-email... it worked fine. > > Am I missing something? So maybe this is just my git-am frontend script, that expects a '---', but then, here, if I use: [acme@jouet linux]$ git format-patch -n --cover-letter tip/perf/urgent.. I get: [acme@jouet linux]$ vim 0001-perf-sched-timehist-Show-total-scheduling-time.patch Suggested-by: David Ahern Signed-off-by: Namhyung Kim Cc: Jiri Olsa Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20161222060350.17655-3-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/builtin-sched.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c index d53e706a6f17..5b134b0d1ff3 100644 --- a/tools/perf/builtin-sched.c +++ b/tools/perf/builtin-sched.c @@ -209,6 +209,7 @@ struct perf_sched { u64 skipped_samples;