Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191376
b: refs/heads/master
c: 8035458
h: refs/heads/master
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed May 17, 2010
1 parent 16524d5 commit ad4a0ab
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 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: 1967936d688c475b85d34d84e09858cf514c893c
refs/heads/master: 8035458fbb567ae138c77a5f710050107c6a7066
4 changes: 2 additions & 2 deletions trunk/tools/perf/builtin-kvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
static char *file_name;
static char name_buffer[256];

int perf_host = 1;
int perf_guest;
bool perf_host = 1;
bool perf_guest;

static const char * const kvm_usage[] = {
"perf kvm [<options>] {top|record|report|diff|buildid-list}",
Expand Down
3 changes: 1 addition & 2 deletions trunk/tools/perf/builtin-lock.c
Original file line number Diff line number Diff line change
Expand Up @@ -792,8 +792,7 @@ static void print_result(void)
print_bad_events(bad, total);
}

static int info_threads;
static int info_map;
static bool info_threads, info_map;

static void dump_threads(void)
{
Expand Down
2 changes: 1 addition & 1 deletion trunk/tools/perf/builtin-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ static const char * const test_usage[] = {
};

static const struct option test_options[] = {
OPT_BOOLEAN('v', "verbose", &verbose,
OPT_INTEGER('v', "verbose", &verbose,
"be more verbose (show symbol address, etc)"),
OPT_END()
};
Expand Down
3 changes: 2 additions & 1 deletion trunk/tools/perf/perf.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ void get_term_dimensions(struct winsize *ws);

#include "../../include/linux/perf_event.h"
#include "util/types.h"
#include <stdbool.h>

/*
* prctl(PR_TASK_PERF_EVENTS_DISABLE) will (cheaply) disable all
Expand Down Expand Up @@ -131,6 +132,6 @@ struct ip_callchain {
u64 ips[0];
};

extern int perf_host, perf_guest;
extern bool perf_host, perf_guest;

#endif
3 changes: 2 additions & 1 deletion trunk/tools/perf/util/parse-options.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define __PERF_PARSE_OPTIONS_H

#include <linux/kernel.h>
#include <stdbool.h>

enum parse_opt_type {
/* special types */
Expand Down Expand Up @@ -101,7 +102,7 @@ struct option {
#define OPT_ARGUMENT(l, h) { .type = OPTION_ARGUMENT, .long_name = (l), .help = (h) }
#define OPT_GROUP(h) { .type = OPTION_GROUP, .help = (h) }
#define OPT_BIT(s, l, v, h, b) { .type = OPTION_BIT, .short_name = (s), .long_name = (l), .value = (v), .help = (h), .defval = (b) }
#define OPT_BOOLEAN(s, l, v, h) { .type = OPTION_BOOLEAN, .short_name = (s), .long_name = (l), .value = (v), .help = (h) }
#define OPT_BOOLEAN(s, l, v, h) { .type = OPTION_BOOLEAN, .short_name = (s), .long_name = (l), .value = check_vtype(v, bool *), .help = (h) }
#define OPT_INCR(s, l, v, h) { .type = OPTION_INCR, .short_name = (s), .long_name = (l), .value = (v), .help = (h) }
#define OPT_SET_INT(s, l, v, h, i) { .type = OPTION_SET_INT, .short_name = (s), .long_name = (l), .value = (v), .help = (h), .defval = (i) }
#define OPT_SET_PTR(s, l, v, h, p) { .type = OPTION_SET_PTR, .short_name = (s), .long_name = (l), .value = (v), .help = (h), .defval = (p) }
Expand Down

0 comments on commit ad4a0ab

Please sign in to comment.