Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338915
b: refs/heads/master
c: 4383db8
h: refs/heads/master
i:
  338913: 5c657eb
  338911: c8644c3
v: v3
  • Loading branch information
Jiri Olsa authored and Arnaldo Carvalho de Melo committed Oct 29, 2012
1 parent 99d5e7f commit eac2053
Show file tree
Hide file tree
Showing 6 changed files with 10 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: ebb296c276ca19798c3116220eb8d0b2c0975ae0
refs/heads/master: 4383db88a7afb2664941ef1e82d41f5aad8be2ec
1 change: 1 addition & 0 deletions trunk/tools/perf/builtin-buildid-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "util/parse-options.h"
#include "util/strlist.h"
#include "util/build-id.h"
#include "util/symbol.h"

static int build_id_cache__add_file(const char *filename, const char *debugdir)
{
Expand Down
1 change: 1 addition & 0 deletions trunk/tools/perf/util/annotate.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "debug.h"
#include "annotate.h"
#include <pthread.h>
#include <linux/bitops.h>

const char *disassembler_style;
const char *objdump_path;
Expand Down
6 changes: 5 additions & 1 deletion trunk/tools/perf/util/build-id.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
#ifndef PERF_BUILD_ID_H_
#define PERF_BUILD_ID_H_ 1

#include "session.h"
#define BUILD_ID_SIZE 20

#include "tool.h"
#include "types.h"

extern struct perf_tool build_id__mark_dso_hit_ops;
struct dso;

int build_id__sprintf(const u8 *build_id, int len, char *bf);
char *dso__build_id_filename(struct dso *self, char *bf, size_t size);
Expand Down
3 changes: 1 addition & 2 deletions trunk/tools/perf/util/event.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include "../perf.h"
#include "map.h"
#include "build-id.h"

/*
* PERF_SAMPLE_IP | PERF_SAMPLE_TID | *
Expand Down Expand Up @@ -96,8 +97,6 @@ struct perf_sample {
struct stack_dump user_stack;
};

#define BUILD_ID_SIZE 20

struct build_id_event {
struct perf_event_header header;
pid_t pid;
Expand Down
3 changes: 1 addition & 2 deletions trunk/tools/perf/util/symbol.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <stdio.h>
#include <byteswap.h>
#include <libgen.h>
#include "build-id.h"

#ifdef LIBELF_SUPPORT
#include <libelf.h>
Expand Down Expand Up @@ -57,8 +58,6 @@ char *strxfrchar(char *s, char from, char to);
#define DMGL_ANSI (1 << 1) /* Include const, volatile, etc */
#endif

#define BUILD_ID_SIZE 20

/** struct symbol - symtab entry
*
* @ignore - resolvable but tools ignore it (e.g. idle routines)
Expand Down

0 comments on commit eac2053

Please sign in to comment.