Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1460758 > unrolled thread
| Started by | Mathieu Poirier <mathieu.poirier@linaro.org> |
|---|---|
| First post | 2016-08-11 21:50 +0200 |
| Last post | 2016-08-11 21:50 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH V3 1/3] perf/core: Fixing filename for start/stop filters Mathieu Poirier <mathieu.poirier@linaro.org> - 2016-08-11 21:50 +0200
| From | Mathieu Poirier <mathieu.poirier@linaro.org> |
|---|---|
| Date | 2016-08-11 21:50 +0200 |
| Subject | [PATCH V3 1/3] perf/core: Fixing filename for start/stop filters |
| Message-ID | <s549j-8eC-15@gated-at.bofh.it> |
Binary file names have to be supplied for both range and start/stop
filters but the current code only process the filename if an
address range filter is specified. This code adds processing of
the filename for start/stop filters.
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Acked-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
---
kernel/events/core.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/kernel/events/core.c b/kernel/events/core.c
index a19550d80ab1..0662279c5729 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -7905,8 +7905,10 @@ perf_event_parse_addr_filter(struct perf_event *event, char *fstr,
goto fail;
}
- if (token == IF_SRC_FILE) {
- filename = match_strdup(&args[2]);
+ if (token == IF_SRC_FILE || token == IF_SRC_FILEADDR) {
+ int fpos = filter->range ? 2 : 1;
+
+ filename = match_strdup(&args[fpos]);
if (!filename) {
ret = -ENOMEM;
goto fail;
--
2.7.4
Back to top | Article view | linux.kernel
csiph-web