diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2012-10-19 10:54:24 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2012-10-19 10:55:09 -0400 |
commit | 4533d86270d7986e00594495dde9a109d6be27ae (patch) | |
tree | c2473cac653f7b98e5bd5e6475e63734be4b7644 /tools/perf/util/trace-event-scripting.c | |
parent | 21c5e50e15b1abd797e62f18fd7f90b9cc004cbd (diff) | |
parent | 5bc66170dc486556a1e36fd384463536573f4b82 (diff) |
Merge commit '5bc66170dc486556a1e36fd384463536573f4b82' into x86/urgent
From Borislav Petkov <bp@amd64.org>:
Below is a RAS fix which reverts the addition of a sysfs attribute
which we agreed is not needed, post-factum. And this should go in now
because that sysfs attribute is going to end up in 3.7 otherwise and
thus exposed to userspace; removing it then would be a lot harder.
This is done as a merge rather than a simple patch/cherry-pick since
the baseline for this patch was not in the previous x86/urgent.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
-rw-r--r-- | tools/perf/util/trace-event-scripting.c | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/tools/perf/util/trace-event-scripting.c b/tools/perf/util/trace-event-scripting.c index 474aa7a7df43..8715a1006d00 100644 --- a/tools/perf/util/trace-event-scripting.c +++ b/tools/perf/util/trace-event-scripting.c | |||
@@ -35,12 +35,11 @@ static int stop_script_unsupported(void) | |||
35 | return 0; | 35 | return 0; |
36 | } | 36 | } |
37 | 37 | ||
38 | static void process_event_unsupported(union perf_event *event __unused, | 38 | static void process_event_unsupported(union perf_event *event __maybe_unused, |
39 | struct pevent *pevent __unused, | 39 | struct perf_sample *sample __maybe_unused, |
40 | struct perf_sample *sample __unused, | 40 | struct perf_evsel *evsel __maybe_unused, |
41 | struct perf_evsel *evsel __unused, | 41 | struct machine *machine __maybe_unused, |
42 | struct machine *machine __unused, | 42 | struct addr_location *al __maybe_unused) |
43 | struct thread *thread __unused) | ||
44 | { | 43 | { |
45 | } | 44 | } |
46 | 45 | ||
@@ -53,17 +52,19 @@ static void print_python_unsupported_msg(void) | |||
53 | "\n etc.\n"); | 52 | "\n etc.\n"); |
54 | } | 53 | } |
55 | 54 | ||
56 | static int python_start_script_unsupported(const char *script __unused, | 55 | static int python_start_script_unsupported(const char *script __maybe_unused, |
57 | int argc __unused, | 56 | int argc __maybe_unused, |
58 | const char **argv __unused) | 57 | const char **argv __maybe_unused) |
59 | { | 58 | { |
60 | print_python_unsupported_msg(); | 59 | print_python_unsupported_msg(); |
61 | 60 | ||
62 | return -1; | 61 | return -1; |
63 | } | 62 | } |
64 | 63 | ||
65 | static int python_generate_script_unsupported(struct pevent *pevent __unused, | 64 | static int python_generate_script_unsupported(struct pevent *pevent |
66 | const char *outfile __unused) | 65 | __maybe_unused, |
66 | const char *outfile | ||
67 | __maybe_unused) | ||
67 | { | 68 | { |
68 | print_python_unsupported_msg(); | 69 | print_python_unsupported_msg(); |
69 | 70 | ||
@@ -115,17 +116,18 @@ static void print_perl_unsupported_msg(void) | |||
115 | "\n etc.\n"); | 116 | "\n etc.\n"); |
116 | } | 117 | } |
117 | 118 | ||
118 | static int perl_start_script_unsupported(const char *script __unused, | 119 | static int perl_start_script_unsupported(const char *script __maybe_unused, |
119 | int argc __unused, | 120 | int argc __maybe_unused, |
120 | const char **argv __unused) | 121 | const char **argv __maybe_unused) |
121 | { | 122 | { |
122 | print_perl_unsupported_msg(); | 123 | print_perl_unsupported_msg(); |
123 | 124 | ||
124 | return -1; | 125 | return -1; |
125 | } | 126 | } |
126 | 127 | ||
127 | static int perl_generate_script_unsupported(struct pevent *pevent __unused, | 128 | static int perl_generate_script_unsupported(struct pevent *pevent |
128 | const char *outfile __unused) | 129 | __maybe_unused, |
130 | const char *outfile __maybe_unused) | ||
129 | { | 131 | { |
130 | print_perl_unsupported_msg(); | 132 | print_perl_unsupported_msg(); |
131 | 133 | ||