diff options
| author | Ingo Molnar <mingo@kernel.org> | 2013-12-17 09:27:08 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2013-12-17 09:27:08 -0500 |
| commit | bb799d3b980eb803ca2da4a4eefbd9308f8d988a (patch) | |
| tree | 69fbe0cd6d47b23a50f5e1d87bf7489532fae149 /tools/perf/util/thread.c | |
| parent | 919fc6e34831d1c2b58bfb5ae261dc3facc9b269 (diff) | |
| parent | 319e2e3f63c348a9b66db4667efa73178e18b17d (diff) | |
Merge tag 'v3.13-rc4' into core/locking
Merge Linux 3.13-rc4, to refresh this rather old tree with the latest fixes.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/util/thread.c')
| -rw-r--r-- | tools/perf/util/thread.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tools/perf/util/thread.c b/tools/perf/util/thread.c index cd8e2f592719..49eaf1d7d89d 100644 --- a/tools/perf/util/thread.c +++ b/tools/perf/util/thread.c | |||
| @@ -70,14 +70,13 @@ int thread__set_comm(struct thread *thread, const char *str, u64 timestamp) | |||
| 70 | /* Override latest entry if it had no specific time coverage */ | 70 | /* Override latest entry if it had no specific time coverage */ |
| 71 | if (!curr->start) { | 71 | if (!curr->start) { |
| 72 | comm__override(curr, str, timestamp); | 72 | comm__override(curr, str, timestamp); |
| 73 | return 0; | 73 | } else { |
| 74 | new = comm__new(str, timestamp); | ||
| 75 | if (!new) | ||
| 76 | return -ENOMEM; | ||
| 77 | list_add(&new->list, &thread->comm_list); | ||
| 74 | } | 78 | } |
| 75 | 79 | ||
| 76 | new = comm__new(str, timestamp); | ||
| 77 | if (!new) | ||
| 78 | return -ENOMEM; | ||
| 79 | |||
| 80 | list_add(&new->list, &thread->comm_list); | ||
| 81 | thread->comm_set = true; | 80 | thread->comm_set = true; |
| 82 | 81 | ||
| 83 | return 0; | 82 | return 0; |
