diff options
| author | Mark Brown <broonie@linaro.org> | 2014-05-21 19:17:27 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@linaro.org> | 2014-05-21 19:17:27 -0400 |
| commit | bfbc344732badffe94f096f929e4a105b3b92d1f (patch) | |
| tree | f4fc6c06108495bd2c33ecff68c065514e66a8cc /tools | |
| parent | c9eaa447e77efe77b7fa4c953bd62de8297fd6c5 (diff) | |
| parent | c6466950e917890be3050171f6745ccb9d91d35f (diff) | |
Merge tag 'mfd-regulator-v3.16-1' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd into regulator-bcm590xxx
Immutable branch between MFD and Regulator due for v3.16 merge-window.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/hv/hv_fcopy_daemon.c | 4 | ||||
| -rw-r--r-- | tools/lib/lockdep/Makefile | 15 | ||||
| -rw-r--r-- | tools/lib/lockdep/uinclude/linux/lockdep.h | 3 | ||||
| -rw-r--r-- | tools/lib/traceevent/event-parse.c | 109 | ||||
| -rw-r--r-- | tools/perf/Documentation/perf-bench.txt | 22 | ||||
| -rw-r--r-- | tools/perf/Documentation/perf-top.txt | 1 | ||||
| -rw-r--r-- | tools/perf/Makefile.perf | 4 | ||||
| -rw-r--r-- | tools/perf/bench/numa.c | 4 | ||||
| -rw-r--r-- | tools/perf/builtin-kvm.c | 1 | ||||
| -rw-r--r-- | tools/perf/builtin-record.c | 2 | ||||
| -rw-r--r-- | tools/perf/builtin-stat.c | 11 | ||||
| -rw-r--r-- | tools/perf/config/Makefile | 7 | ||||
| -rw-r--r-- | tools/perf/tests/code-reading.c | 1 | ||||
| -rw-r--r-- | tools/perf/util/data.c | 9 | ||||
| -rw-r--r-- | tools/perf/util/probe-finder.c | 15 | ||||
| -rw-r--r-- | tools/perf/util/symbol-elf.c | 2 |
16 files changed, 139 insertions, 71 deletions
diff --git a/tools/hv/hv_fcopy_daemon.c b/tools/hv/hv_fcopy_daemon.c index 4ecc4fd0bc1b..fba1c75aa484 100644 --- a/tools/hv/hv_fcopy_daemon.c +++ b/tools/hv/hv_fcopy_daemon.c | |||
| @@ -82,8 +82,10 @@ static int hv_start_fcopy(struct hv_start_fcopy *smsg) | |||
| 82 | 82 | ||
| 83 | if (!access(target_fname, F_OK)) { | 83 | if (!access(target_fname, F_OK)) { |
| 84 | syslog(LOG_INFO, "File: %s exists", target_fname); | 84 | syslog(LOG_INFO, "File: %s exists", target_fname); |
| 85 | if (!smsg->copy_flags & OVER_WRITE) | 85 | if (!(smsg->copy_flags & OVER_WRITE)) { |
| 86 | error = HV_ERROR_ALREADY_EXISTS; | ||
| 86 | goto done; | 87 | goto done; |
| 88 | } | ||
| 87 | } | 89 | } |
| 88 | 90 | ||
| 89 | target_fd = open(target_fname, O_RDWR | O_CREAT | O_CLOEXEC, 0744); | 91 | target_fd = open(target_fname, O_RDWR | O_CREAT | O_CLOEXEC, 0744); |
diff --git a/tools/lib/lockdep/Makefile b/tools/lib/lockdep/Makefile index 07b0b7542511..cb09d3ff8f58 100644 --- a/tools/lib/lockdep/Makefile +++ b/tools/lib/lockdep/Makefile | |||
| @@ -1,13 +1,8 @@ | |||
| 1 | # liblockdep version | ||
| 2 | LL_VERSION = 0 | ||
| 3 | LL_PATCHLEVEL = 0 | ||
| 4 | LL_EXTRAVERSION = 1 | ||
| 5 | |||
| 6 | # file format version | 1 | # file format version |
| 7 | FILE_VERSION = 1 | 2 | FILE_VERSION = 1 |
| 8 | 3 | ||
| 9 | MAKEFLAGS += --no-print-directory | 4 | MAKEFLAGS += --no-print-directory |
| 10 | 5 | LIBLOCKDEP_VERSION=$(shell make -sC ../../.. kernelversion) | |
| 11 | 6 | ||
| 12 | # Makefiles suck: This macro sets a default value of $(2) for the | 7 | # Makefiles suck: This macro sets a default value of $(2) for the |
| 13 | # variable named by $(1), unless the variable has been set by | 8 | # variable named by $(1), unless the variable has been set by |
| @@ -98,7 +93,7 @@ export prefix libdir bindir src obj | |||
| 98 | libdir_SQ = $(subst ','\'',$(libdir)) | 93 | libdir_SQ = $(subst ','\'',$(libdir)) |
| 99 | bindir_SQ = $(subst ','\'',$(bindir)) | 94 | bindir_SQ = $(subst ','\'',$(bindir)) |
| 100 | 95 | ||
| 101 | LIB_FILE = liblockdep.a liblockdep.so | 96 | LIB_FILE = liblockdep.a liblockdep.so.$(LIBLOCKDEP_VERSION) |
| 102 | BIN_FILE = lockdep | 97 | BIN_FILE = lockdep |
| 103 | 98 | ||
| 104 | CONFIG_INCLUDES = | 99 | CONFIG_INCLUDES = |
| @@ -110,8 +105,6 @@ N = | |||
| 110 | 105 | ||
| 111 | export Q VERBOSE | 106 | export Q VERBOSE |
| 112 | 107 | ||
| 113 | LIBLOCKDEP_VERSION = $(LL_VERSION).$(LL_PATCHLEVEL).$(LL_EXTRAVERSION) | ||
| 114 | |||
| 115 | INCLUDES = -I. -I/usr/local/include -I./uinclude -I./include $(CONFIG_INCLUDES) | 108 | INCLUDES = -I. -I/usr/local/include -I./uinclude -I./include $(CONFIG_INCLUDES) |
| 116 | 109 | ||
| 117 | # Set compile option CFLAGS if not set elsewhere | 110 | # Set compile option CFLAGS if not set elsewhere |
| @@ -146,7 +139,7 @@ do_app_build = \ | |||
| 146 | 139 | ||
| 147 | do_compile_shared_library = \ | 140 | do_compile_shared_library = \ |
| 148 | ($(print_shared_lib_compile) \ | 141 | ($(print_shared_lib_compile) \ |
| 149 | $(CC) --shared $^ -o $@ -lpthread -ldl) | 142 | $(CC) --shared $^ -o $@ -lpthread -ldl -Wl,-soname='"$@"';$(shell ln -s $@ liblockdep.so)) |
| 150 | 143 | ||
| 151 | do_build_static_lib = \ | 144 | do_build_static_lib = \ |
| 152 | ($(print_static_lib_build) \ | 145 | ($(print_static_lib_build) \ |
| @@ -177,7 +170,7 @@ all: all_cmd | |||
| 177 | 170 | ||
| 178 | all_cmd: $(CMD_TARGETS) | 171 | all_cmd: $(CMD_TARGETS) |
| 179 | 172 | ||
| 180 | liblockdep.so: $(PEVENT_LIB_OBJS) | 173 | liblockdep.so.$(LIBLOCKDEP_VERSION): $(PEVENT_LIB_OBJS) |
| 181 | $(Q)$(do_compile_shared_library) | 174 | $(Q)$(do_compile_shared_library) |
| 182 | 175 | ||
| 183 | liblockdep.a: $(PEVENT_LIB_OBJS) | 176 | liblockdep.a: $(PEVENT_LIB_OBJS) |
diff --git a/tools/lib/lockdep/uinclude/linux/lockdep.h b/tools/lib/lockdep/uinclude/linux/lockdep.h index d0f5d6e50214..c1552c28507e 100644 --- a/tools/lib/lockdep/uinclude/linux/lockdep.h +++ b/tools/lib/lockdep/uinclude/linux/lockdep.h | |||
| @@ -10,6 +10,9 @@ | |||
| 10 | 10 | ||
| 11 | #define MAX_LOCK_DEPTH 2000UL | 11 | #define MAX_LOCK_DEPTH 2000UL |
| 12 | 12 | ||
| 13 | #define asmlinkage | ||
| 14 | #define __visible | ||
| 15 | |||
| 13 | #include "../../../include/linux/lockdep.h" | 16 | #include "../../../include/linux/lockdep.h" |
| 14 | 17 | ||
| 15 | struct task_struct { | 18 | struct task_struct { |
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c index 1587ea392ad6..baec7d887da4 100644 --- a/tools/lib/traceevent/event-parse.c +++ b/tools/lib/traceevent/event-parse.c | |||
| @@ -50,6 +50,18 @@ static int show_warning = 1; | |||
| 50 | warning(fmt, ##__VA_ARGS__); \ | 50 | warning(fmt, ##__VA_ARGS__); \ |
| 51 | } while (0) | 51 | } while (0) |
| 52 | 52 | ||
| 53 | #define do_warning_event(event, fmt, ...) \ | ||
| 54 | do { \ | ||
| 55 | if (!show_warning) \ | ||
| 56 | continue; \ | ||
| 57 | \ | ||
| 58 | if (event) \ | ||
| 59 | warning("[%s:%s] " fmt, event->system, \ | ||
| 60 | event->name, ##__VA_ARGS__); \ | ||
| 61 | else \ | ||
| 62 | warning(fmt, ##__VA_ARGS__); \ | ||
| 63 | } while (0) | ||
| 64 | |||
| 53 | static void init_input_buf(const char *buf, unsigned long long size) | 65 | static void init_input_buf(const char *buf, unsigned long long size) |
| 54 | { | 66 | { |
| 55 | input_buf = buf; | 67 | input_buf = buf; |
| @@ -1355,7 +1367,7 @@ static int event_read_fields(struct event_format *event, struct format_field **f | |||
| 1355 | } | 1367 | } |
| 1356 | 1368 | ||
| 1357 | if (!field->type) { | 1369 | if (!field->type) { |
| 1358 | do_warning("%s: no type found", __func__); | 1370 | do_warning_event(event, "%s: no type found", __func__); |
| 1359 | goto fail; | 1371 | goto fail; |
| 1360 | } | 1372 | } |
| 1361 | field->name = last_token; | 1373 | field->name = last_token; |
| @@ -1402,7 +1414,7 @@ static int event_read_fields(struct event_format *event, struct format_field **f | |||
| 1402 | free_token(token); | 1414 | free_token(token); |
| 1403 | type = read_token(&token); | 1415 | type = read_token(&token); |
| 1404 | if (type == EVENT_NONE) { | 1416 | if (type == EVENT_NONE) { |
| 1405 | do_warning("failed to find token"); | 1417 | do_warning_event(event, "failed to find token"); |
| 1406 | goto fail; | 1418 | goto fail; |
| 1407 | } | 1419 | } |
| 1408 | } | 1420 | } |
| @@ -1636,7 +1648,7 @@ process_cond(struct event_format *event, struct print_arg *top, char **tok) | |||
| 1636 | right = alloc_arg(); | 1648 | right = alloc_arg(); |
| 1637 | 1649 | ||
| 1638 | if (!arg || !left || !right) { | 1650 | if (!arg || !left || !right) { |
| 1639 | do_warning("%s: not enough memory!", __func__); | 1651 | do_warning_event(event, "%s: not enough memory!", __func__); |
| 1640 | /* arg will be freed at out_free */ | 1652 | /* arg will be freed at out_free */ |
| 1641 | free_arg(left); | 1653 | free_arg(left); |
| 1642 | free_arg(right); | 1654 | free_arg(right); |
| @@ -1686,7 +1698,7 @@ process_array(struct event_format *event, struct print_arg *top, char **tok) | |||
| 1686 | 1698 | ||
| 1687 | arg = alloc_arg(); | 1699 | arg = alloc_arg(); |
| 1688 | if (!arg) { | 1700 | if (!arg) { |
| 1689 | do_warning("%s: not enough memory!", __func__); | 1701 | do_warning_event(event, "%s: not enough memory!", __func__); |
| 1690 | /* '*tok' is set to top->op.op. No need to free. */ | 1702 | /* '*tok' is set to top->op.op. No need to free. */ |
| 1691 | *tok = NULL; | 1703 | *tok = NULL; |
| 1692 | return EVENT_ERROR; | ||
