Skip to contentSkip to conversation

perf trace: Get rid of a duplicate code

PATCH New Namhyung Kim 2 participants 2 messages Mar 12, 2013 – Mar 21, 2013 perf events

lore
Share & tools
lore

Namhyung Kim

author maintainer
#0 lore raw

PATCH 1/1 perf trace: Get rid of a duplicate code

From: Namhyung Kim <[email protected]>

Checking of sample.raw_data is duplicated and seems an artifact of some git auto merging stuff. Kill it.

---
 tools/perf/builtin-trace.c | 7 -------
 1 file changed, 7 deletions(-)
tools/perf/builtin-trace.c +0 -7
index f0c20ef0cd1c..49fedb51d569 100644
@@ -527,13 +527,6 @@ again:
 				continue;
 			}
 
-			if (sample.raw_data == NULL) {
-				printf("%s sample with no payload for tid: %d, cpu %d, raw_size=%d, skipping...\n",
-				       perf_evsel__name(evsel), sample.tid,
-				       sample.cpu, sample.raw_size);
-				continue;
-			}
-
 			handler = evsel->handler.func;
 			handler(trace, evsel, &sample);
 		}
Signature · 1 line
1.7.11.7
#1 lore raw
perf trace: Get rid of a duplicate code
Commit-ID:  0d7f5b57a4373993121df4b4216e9628233b075b
Gitweb:     http://git.kernel.org/tip/0d7f5b57a4373993121df4b4216e9628233b075b
Author:     Namhyung Kim <[email protected]>
AuthorDate: Tue, 12 Mar 2013 13:59:20 +0900
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Fri, 15 Mar 2013 13:06:07 -0300

perf trace: Get rid of a duplicate code

Checking of sample.raw_data is duplicated and seems an artifact of some git auto merging stuff. Kill it.

---
 tools/perf/builtin-trace.c | 7 -------
 1 file changed, 7 deletions(-)
tools/perf/builtin-trace.c +0 -7
index f0c20ef..49fedb5 100644
@@ -527,13 +527,6 @@ again:
 				continue;
 			}
 
-			if (sample.raw_data == NULL) {
-				printf("%s sample with no payload for tid: %d, cpu %d, raw_size=%d, skipping...\n",
-				       perf_evsel__name(evsel), sample.tid,
-				       sample.cpu, sample.raw_size);
-				continue;
-			}
-
 			handler = evsel->handler.func;
 			handler(trace, evsel, &sample);
 		}