Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191167
b: refs/heads/master
c: e727ca7
h: refs/heads/master
i:
  191165: 79d9b06
  191163: 3b03c62
  191159: 1131322
  191151: 431e919
  191135: e26d797
  191103: 7362c36
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed Apr 2, 2010
1 parent 783584f commit 14eb9ab
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a4e3b956a820162b7c1d616117b4f23b6017f504
refs/heads/master: e727ca73f85d4c5be3547eda674168219d1c22d8
3 changes: 3 additions & 0 deletions trunk/tools/perf/builtin-kmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,9 @@ static int __cmd_kmem(void)
if (session == NULL)
return -ENOMEM;

if (perf_session__create_kernel_maps(session) < 0)
goto out_delete;

if (!perf_session__has_traces(session, "kmem record"))
goto out_delete;

Expand Down
5 changes: 0 additions & 5 deletions trunk/tools/perf/util/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ static int perf_session__open(struct perf_session *self, bool force)
return -1;
}

static inline int perf_session__create_kernel_maps(struct perf_session *self)
{
return map_groups__create_kernel_maps(&self->kmaps, self->vmlinux_maps);
}

struct perf_session *perf_session__new(const char *filename, int mode, bool force)
{
size_t len = filename ? strlen(filename) + 1 : 0;
Expand Down
5 changes: 5 additions & 0 deletions trunk/tools/perf/util/session.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ static inline int __perf_session__create_kernel_maps(struct perf_session *self,
self->vmlinux_maps, kernel);
}

static inline int perf_session__create_kernel_maps(struct perf_session *self)
{
return map_groups__create_kernel_maps(&self->kmaps, self->vmlinux_maps);
}

static inline struct map *
perf_session__new_module_map(struct perf_session *self,
u64 start, const char *filename)
Expand Down

0 comments on commit 14eb9ab

Please sign in to comment.