Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147356
b: refs/heads/master
c: 888fcee
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Apr 9, 2009
1 parent f6daace commit 7508280
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ca8f2d7f019a8547f39ddb9ed0144932f12807f2
refs/heads/master: 888fcee066a2f4abd0d0bc9418c0535f9b01e6e5
4 changes: 2 additions & 2 deletions trunk/kernel/perf_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1989,7 +1989,7 @@ static void perf_counter_comm_event(struct perf_comm_event *comm_event)
unsigned int size;
char *comm = comm_event->task->comm;

size = ALIGN(strlen(comm), sizeof(u64));
size = ALIGN(strlen(comm)+1, sizeof(u64));

comm_event->comm = comm;
comm_event->comm_size = size;
Expand Down Expand Up @@ -2109,7 +2109,7 @@ static void perf_counter_mmap_event(struct perf_mmap_event *mmap_event)
}

got_name:
size = ALIGN(strlen(name), sizeof(u64));
size = ALIGN(strlen(name)+1, sizeof(u64));

mmap_event->file_name = name;
mmap_event->file_size = size;
Expand Down

0 comments on commit 7508280

Please sign in to comment.