Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1218171
| From | Jan Stancek <jstancek@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v3 2/4] perf tests: make objdump disassemble zero blocks |
| Date | 2015-09-03 13:30 +0200 |
| Message-ID | <q4ASl-28C-1@gated-at.bofh.it> (permalink) |
| References | <q4yQy-7Gl-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Add -z parameter to avoid skipping zero blocks:
ffffffff816704fe <sysret_check+0x4b>:
ffffffff816704fe: 7b 34 jnp ffffffff81670534 <sysret_signal+0x1c>
...
ffffffff81670501 <sysret_careful>:
ffffffff81670501: 0f ba e2 03 bt $0x3,%edx
ffffffff81670505: 73 11 jae ffffffff81670518 <sysret_signal>
Signed-off-by: Jan Stancek <jstancek@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
---
tools/perf/tests/code-reading.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Changes in v3:
don't split the string to multiple lines
diff --git a/tools/perf/tests/code-reading.c b/tools/perf/tests/code-reading.c
index 7fd7ebc0b692..bbca3ce2ecef 100644
--- a/tools/perf/tests/code-reading.c
+++ b/tools/perf/tests/code-reading.c
@@ -130,7 +130,7 @@ static int read_via_objdump(const char *filename, u64 addr, void *buf,
FILE *f;
int ret;
- fmt = "%s -d --start-address=0x%"PRIx64" --stop-address=0x%"PRIx64" %s";
+ fmt = "%s -z -d --start-address=0x%"PRIx64" --stop-address=0x%"PRIx64" %s";
ret = snprintf(cmd, sizeof(cmd), fmt, "objdump", addr, addr + len,
filename);
if (ret <= 0 || (size_t)ret >= sizeof(cmd))
--
1.8.3.1
--
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/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 2/4] perf tests: make objdump disassemble zero blocks Jan Stancek <jstancek@redhat.com> - 2015-09-02 10:20 +0200
Re: [PATCH v2 2/4] perf tests: make objdump disassemble zero blocks Adrian Hunter <adrian.hunter@intel.com> - 2015-09-03 11:20 +0200
[PATCH v3 2/4] perf tests: make objdump disassemble zero blocks Jan Stancek <jstancek@redhat.com> - 2015-09-03 13:30 +0200
Re: [PATCH v3 2/4] perf tests: make objdump disassemble zero blocks Adrian Hunter <adrian.hunter@intel.com> - 2015-09-03 13:40 +0200
Re: [PATCH v3 2/4] perf tests: make objdump disassemble zero blocks Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-09-03 17:20 +0200
Re: [PATCH v3 2/4] perf tests: make objdump disassemble zero blocks Jan Stancek <jstancek@redhat.com> - 2015-09-03 18:20 +0200
Re: [PATCH v3 2/4] perf tests: make objdump disassemble zero blocks Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-09-03 18:40 +0200
csiph-web