Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1692581
| Path | csiph.com!news.mixmin.net!aioe.org!news.servidellagleba.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | tip-bot for Arnaldo Carvalho de Melo <tipbot@zytor.com> |
| Newsgroups | linux.kernel |
| Subject | [tip:perf/core] perf trace beauty open flags: Do not depend on the system's O_LARGEFILE define |
| Date | Thu, 20 Jul 2017 10:50:02 +0200 |
| Message-ID | <u5fjI-4Py-29@gated-at.bofh.it> (permalink) |
| Reply-To | mingo@kernel.org, acme@redhat.com, dsahern@gmail.com, wangnan0@huawei.com, tglx@linutronix.de, adrian.hunter@intel.com, namhyung@kernel.org, linux-kernel@vger.kernel.org, jolsa@kernel.org, hpa@zytor.com |
| Git-Commit-ID | b84148a910598f3e733e54f3cb736d11911291df |
| X-Mailer | tip-git-log-daemon |
| Robot-ID | <tip-bot.git.kernel.org> |
| Robot-Unsubscribe | Contact <mailto:hpa@kernel.org> 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 | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 37 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | mingo@kernel.org, acme@redhat.com, dsahern@gmail.com, wangnan0@huawei.com, tglx@linutronix.de, namhyung@kernel.org, linux-kernel@vger.kernel.org, adrian.hunter@intel.com, hpa@zytor.com, jolsa@kernel.org |
| X-Original-Date | Thu, 20 Jul 2017 01:42:43 -0700 |
| X-Original-Message-ID | <tip-k28megguz5snwop9obvn9mcr@git.kernel.org> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1692581 |
Show key headers only | View raw
Commit-ID: b84148a910598f3e733e54f3cb736d11911291df
Gitweb: http://git.kernel.org/tip/b84148a910598f3e733e54f3cb736d11911291df
Author: Arnaldo Carvalho de Melo <acme@redhat.com>
AuthorDate: Fri, 14 Jul 2017 12:09:31 -0300
Committer: Arnaldo Carvalho de Melo <acme@redhat.com>
CommitDate: Tue, 18 Jul 2017 23:13:59 -0300
perf trace beauty open flags: Do not depend on the system's O_LARGEFILE define
In x86_64 /usr/include/bits/fcntl.h sets it to zero, so just undef it
and use the standard 00100000 value when decoding the open flags arg.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-k28megguz5snwop9obvn9mcr@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
tools/perf/trace/beauty/open_flags.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/perf/trace/beauty/open_flags.c b/tools/perf/trace/beauty/open_flags.c
index 5fb57be..e520112 100644
--- a/tools/perf/trace/beauty/open_flags.c
+++ b/tools/perf/trace/beauty/open_flags.c
@@ -18,6 +18,9 @@
#define O_TMPFILE 020000000
#endif
+#undef O_LARGEFILE
+#define O_LARGEFILE 00100000
+
size_t open__scnprintf_flags(unsigned long flags, char *bf, size_t size)
{
int printed = 0;
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[tip:perf/core] perf trace beauty open flags: Do not depend on the system's O_LARGEFILE define tip-bot for Arnaldo Carvalho de Melo <tipbot@zytor.com> - 2017-07-20 10:50 +0200
csiph-web