Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752190AbbEJHFE (ORCPT ); Sun, 10 May 2015 03:05:04 -0400 Received: from terminus.zytor.com ([198.137.202.10]:44614 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752094AbbEJHFC (ORCPT ); Sun, 10 May 2015 03:05:02 -0400 Date: Sun, 10 May 2015 00:04:24 -0700 From: tip-bot for Masami Hiramatsu Message-ID: Cc: linux-kernel@vger.kernel.org, acme@redhat.com, dsahern@gmail.com, tglx@linutronix.de, jolsa@redhat.com, mingo@kernel.org, namhyung@kernel.org, hpa@zytor.com, masami.hiramatsu.pt@hitachi.com, ananth@in.ibm.com, peterz@infradead.org Reply-To: mingo@kernel.org, jolsa@redhat.com, tglx@linutronix.de, hpa@zytor.com, namhyung@kernel.org, dsahern@gmail.com, acme@redhat.com, linux-kernel@vger.kernel.org, peterz@infradead.org, masami.hiramatsu.pt@hitachi.com, ananth@in.ibm.com In-Reply-To: <20150506124642.4961.97878.stgit@localhost.localdomain> References: <20150506124642.4961.97878.stgit@localhost.localdomain> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf probe: Fix a typo for the flags of open Git-Commit-ID: b8dc3984c1fce87a36d3247c9f722229692bec72 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 Content-Length: 1753 Lines: 43 Commit-ID: b8dc3984c1fce87a36d3247c9f722229692bec72 Gitweb: http://git.kernel.org/tip/b8dc3984c1fce87a36d3247c9f722229692bec72 Author: Masami Hiramatsu AuthorDate: Wed, 6 May 2015 21:46:42 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 8 May 2015 16:05:01 -0300 perf probe: Fix a typo for the flags of open Fix to pass O_APPEND by using bit-or with other flags, instead of passing it as mode. Signed-off-by: Masami Hiramatsu Cc: Ananth N Mavinakayanahalli Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Cc: hemant@linux.vnet.ibm.com Link: http://lkml.kernel.org/r/20150506124642.4961.97878.stgit@localhost.localdomain Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/probe-event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c index 230353f..63cb7c5 100644 --- a/tools/perf/util/probe-event.c +++ b/tools/perf/util/probe-event.c @@ -1969,7 +1969,7 @@ static int open_probe_events(const char *trace_file, bool readwrite) if (ret >= 0) { pr_debug("Opening %s write=%d\n", buf, readwrite); if (readwrite && !probe_event_dry_run) - ret = open(buf, O_RDWR, O_APPEND); + ret = open(buf, O_RDWR | O_APPEND, 0); else ret = open(buf, O_RDONLY, 0); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/