diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/builtin-record.c | 3 | ||||
-rw-r--r-- | tools/perf/util/trace-event-parse.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index 3b8b6387c47c..f1411e9cdf47 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c | |||
@@ -563,6 +563,9 @@ static int __cmd_record(int argc, const char **argv) | |||
563 | 563 | ||
564 | err = event__synthesize_kernel_mmap(process_synthesized_event, | 564 | err = event__synthesize_kernel_mmap(process_synthesized_event, |
565 | session, "_text"); | 565 | session, "_text"); |
566 | if (err < 0) | ||
567 | err = event__synthesize_kernel_mmap(process_synthesized_event, | ||
568 | session, "_stext"); | ||
566 | if (err < 0) { | 569 | if (err < 0) { |
567 | pr_err("Couldn't record kernel reference relocation symbol.\n"); | 570 | pr_err("Couldn't record kernel reference relocation symbol.\n"); |
568 | return err; | 571 | return err; |
diff --git a/tools/perf/util/trace-event-parse.c b/tools/perf/util/trace-event-parse.c index 9b3c20f42f98..613c9cc90570 100644 --- a/tools/perf/util/trace-event-parse.c +++ b/tools/perf/util/trace-event-parse.c | |||
@@ -1925,7 +1925,7 @@ void *raw_field_ptr(struct event *event, const char *name, void *data) | |||
1925 | if (!field) | 1925 | if (!field) |
1926 | return NULL; | 1926 | return NULL; |
1927 | 1927 | ||
1928 | if (field->flags & FIELD_IS_STRING) { | 1928 | if (field->flags & FIELD_IS_DYNAMIC) { |
1929 | int offset; | 1929 | int offset; |
1930 | 1930 | ||
1931 | offset = *(int *)(data + field->offset); | 1931 | offset = *(int *)(data + field->offset); |