Skip to contentSkip to conversation

perf/urgent fixes

GIT PULL New Jiri Olsa 2 participants 4 messages Apr 15, 2014 perf events

lore
Share & tools
lore

Jiri Olsa

author
#0 lore raw

hi Ingo,
please consider pulling

thanks,
jirka

The following changes since commit fbdd17ec5ce2e5e4027356fcfde769b88d15702f:

Merge branch 'perf-core-for-mingo' into perf/urgent (2014-04-14 16:45:39 +0200)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git tags/perf-urgent-for-mingo

for you to fetch changes up to c9e87a472594fd237b2d19dcbe4a3424297f0b1a:

perf tools: Instead of redirecting flex output, use -o (2014-04-15 13:57:21 +0200)

----------------------------------------------------------------
perf/urgent fixes:

Developer stuff:
. Instead of redirecting flex output, use -o (Cody P Schafer)

. Fix double free in perf test 21 (Adrian Hunter)

----------------------------------------------------------------
Adrian Hunter (1):
perf tools: Fix double free in perf test 21 (code-reading.c)

Cody P Schafer (1):
perf tools: Instead of redirecting flex output, use -o

 tools/perf/Makefile.perf        | 4 ++--
 tools/perf/tests/code-reading.c | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)
author
#1 lore raw

PATCH 1/2 perf tools: Fix double free in perf test 21 (code-reading.c)

From: Adrian Hunter <[email protected]>

perf_evlist__delete() deletes attached cpu and thread maps but the test is still using them, so remove them from the evlist before deleting it.

---
 tools/perf/tests/code-reading.c | 1 +
 1 file changed, 1 insertion(+)
tools/perf/tests/code-reading.c +1 -0
index 653a8fe..bfb1869 100644
@@ -504,6 +504,7 @@ static int do_test_code_reading(bool try_kcore)
 		if (ret < 0) {
 			if (!excl_kernel) {
 				excl_kernel = true;
+				perf_evlist__set_maps(evlist, NULL, NULL);
 				perf_evlist__delete(evlist);
 				evlist = NULL;
 				continue;
Signature · 1 line
1.8.3.1
author
#2 lore raw

PATCH 2/2 perf tools: Instead of redirecting flex output, use -o

In reply to Jiri Olsa

From: Cody P Schafer <[email protected]>

This gives us a real filename instead of having '<stdout>' show up all over the place when debugging.

---
 tools/perf/Makefile.perf | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/perf/Makefile.perf +2 -2
index 50d875d..e969233 100644
@@ -192,13 +192,13 @@ endif
 export PERL_PATH
 
 $(OUTPUT)util/parse-events-flex.c: util/parse-events.l $(OUTPUT)util/parse-events-bison.c
-	$(QUIET_FLEX)$(FLEX) --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) -t util/parse-events.l > $(OUTPUT)util/parse-events-flex.c
+	$(QUIET_FLEX)$(FLEX) -o $@ --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) util/parse-events.l
 
 $(OUTPUT)util/parse-events-bison.c: util/parse-events.y
 	$(QUIET_BISON)$(BISON) -v util/parse-events.y -d $(PARSER_DEBUG_BISON) -o $(OUTPUT)util/parse-events-bison.c -p parse_events_
 
 $(OUTPUT)util/pmu-flex.c: util/pmu.l $(OUTPUT)util/pmu-bison.c
-	$(QUIET_FLEX)$(FLEX) --header-file=$(OUTPUT)util/pmu-flex.h -t util/pmu.l > $(OUTPUT)util/pmu-flex.c
+	$(QUIET_FLEX)$(FLEX) -o $@ --header-file=$(OUTPUT)util/pmu-flex.h util/pmu.l
 
 $(OUTPUT)util/pmu-bison.c: util/pmu.y
 	$(QUIET_BISON)$(BISON) -v util/pmu.y -d -o $(OUTPUT)util/pmu-bison.c -p perf_pmu_
Signature · 1 line
1.8.3.1
#3 lore raw
In reply to Jiri Olsa
Quoted 34 lines · Jiri Olsa

hi Ingo,
please consider pulling

thanks,
jirka

The following changes since commit fbdd17ec5ce2e5e4027356fcfde769b88d15702f:

Merge branch 'perf-core-for-mingo' into perf/urgent (2014-04-14 16:45:39 +0200)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git tags/perf-urgent-for-mingo

for you to fetch changes up to c9e87a472594fd237b2d19dcbe4a3424297f0b1a:

perf tools: Instead of redirecting flex output, use -o (2014-04-15 13:57:21 +0200)

----------------------------------------------------------------
perf/urgent fixes:

Developer stuff:
. Instead of redirecting flex output, use -o (Cody P Schafer)

. Fix double free in perf test 21 (Adrian Hunter)

----------------------------------------------------------------
Adrian Hunter (1):
perf tools: Fix double free in perf test 21 (code-reading.c)

Quoted 6 lines

Cody P Schafer (1):
perf tools: Instead of redirecting flex output, use -o

 tools/perf/Makefile.perf        | 4 ++--
 tools/perf/tests/code-reading.c | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

Pulled, thanks a lot Jiri!

Ingo