Changeset 3565 for trunk/kStuff/kProfile/prfcoreterm.cpp.h
- Timestamp:
- Aug 27, 2007, 6:06:17 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/kStuff/kProfile/prfcoreterm.cpp.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/kStuff/kProfile/prfcoreterm.cpp.h
r3537 r3565 1 1 /* $Id: $ */ 2 2 /** @file 3 4 5 6 7 3 8 * 4 * kProfiler - Core Termination Code (template).9 * . 5 10 * 6 * Copyright (c) 2006 knut st. osmundsen <[email protected]> 11 * kProfiler is free software; you can redistribute it and/or 12 * modify it under the terms of the GNU Lesser General Public 13 * License as published by the Free Software Foundation; either 14 * version 2.1 of the License, or (at your option) any later version. 7 15 * 16 17 18 19 8 20 * 9 * This file is part of kLIBC. 10 * 11 * kLIBC is free software; you can redistribute it and/or modify 12 * it under the terms of the GNU General Public License as published by 13 * the Free Software Foundation; either version 2 of the License, or 14 * (at your option) any later version. 15 * 16 * kLIBC is distributed in the hope that it will be useful, 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 * GNU General Public License for more details. 20 * 21 * You should have received a copy of the GNU General Public License 22 * along with kLIBC; if not, write to the Free Software 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 * You should have received a copy of the GNU Lesser General Public 22 * License along with kProfiler; if not, write to the Free Software 23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 24 24 * 25 25 */ … … 32 32 * @param pHdr The profiler data set header. 33 33 */ 34 KPRF_DECL_FUNC( uint32_t, TerminateAll)(KPRF_TYPE(P,HDR) pHdr)34 KPRF_DECL_FUNC(, TerminateAll)(KPRF_TYPE(P,HDR) pHdr) 35 35 { 36 uint64_tTS = KPRF_NOW();36 TS = KPRF_NOW(); 37 37 if (!pHdr) 38 38 return 0; … … 42 42 */ 43 43 KPRF_TYPE(P,THREAD) paThread = KPRF_OFF2PTR(P,THREAD, pHdr->offThreads, pHdr); 44 for ( uint32_ti = 0; i < pHdr->cThreads; i++)44 for ( i = 0; i < pHdr->cThreads; i++) 45 45 { 46 46 KPRF_TYPE(P,THREAD) pCur = &paThread[i]; … … 69 69 { 70 70 /* only if the stack is at the end of the data set. */ 71 const uint32_tcbStacks = KPRF_ALIGN(pHdr->cMaxStacks * pHdr->cbStack, 32);71 const cbStacks = KPRF_ALIGN(pHdr->cMaxStacks * pHdr->cbStack, 32); 72 72 if (pHdr->offStacks + cbStacks == pHdr->cb) 73 73 pHdr->cb -= cbStacks; … … 90 90 * @param papszArgs Pointer to an array of arguments. 91 91 */ 92 KPRF_DECL_FUNC( uint32_t, SetCommandLine)(KPRF_TYPE(P,HDR) pHdr, unsigned cArgs, const char * const *papszArgs)92 KPRF_DECL_FUNC(, SetCommandLine)(KPRF_TYPE(P,HDR) pHdr, unsigned cArgs, const char * const *papszArgs) 93 93 { 94 94 if (!pHdr)
Note:
See TracChangeset
for help on using the changeset viewer.
