OLD | NEW |
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 * |
3 // found in the LICENSE file. | 3 * This program is free software; you can redistribute it and/or modify |
| 4 * it under the terms of the GNU General Public License version 2, as |
| 5 * published by the Free Software Foundation. |
| 6 * |
| 7 * This program is distributed in the hope that it will be useful, |
| 8 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 * GNU General Public License for more details. |
| 11 * |
| 12 * You should have received a copy of the GNU General Public License along |
| 13 * with this program; if not, write to the Free Software Foundation, Inc., |
| 14 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 15 */ |
4 | 16 |
5 #ifdef HAVE_CONFIG_H | 17 #ifdef HAVE_CONFIG_H |
6 # include <config.h> | 18 # include <config.h> |
7 #endif /* HAVE_CONFIG_H */ | 19 #endif /* HAVE_CONFIG_H */ |
8 | 20 |
9 | 21 |
10 #include <sys/types.h> | 22 #include <sys/types.h> |
11 | 23 |
12 #include <stdio.h> | 24 #include <stdio.h> |
13 #include <string.h> | 25 #include <string.h> |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 perf_log_set_files (const char *uptime_file, | 269 perf_log_set_files (const char *uptime_file, |
258 const char *diskstats_file, | 270 const char *diskstats_file, |
259 const char *log_file) | 271 const char *log_file) |
260 { | 272 { |
261 perf_log_init (); | 273 perf_log_init (); |
262 perf_log_file = log_file; | 274 perf_log_file = log_file; |
263 perf_uptime_file = uptime_file; | 275 perf_uptime_file = uptime_file; |
264 perf_diskstats_file = diskstats_file; | 276 perf_diskstats_file = diskstats_file; |
265 perf_log_flush (); | 277 perf_log_flush (); |
266 } | 278 } |
OLD | NEW |