]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
oprofile: fix lost sample counter
authorRobert Richter <robert.richter@amd.com>
Tue, 9 Dec 2008 01:13:25 +0000 (02:13 +0100)
committerRobert Richter <robert.richter@amd.com>
Wed, 10 Dec 2008 19:25:15 +0000 (20:25 +0100)
commit211117ff09b7d81d91b7857651587128ed8b13d9
tree21145ea0cddbc3de803fd8621631e46b7c628057
parent1d7503b5dccf2b95babca050e4960e10d2633f2b
oprofile: fix lost sample counter

The number of lost samples could be greater than the number of
received samples. This patches fixes this. The implementation
introduces return values for add_sample() and add_code().

Signed-off-by: Robert Richter <robert.richter@amd.com>
drivers/oprofile/cpu_buffer.c