| 1 | /* |
| 2 | * arch/ubicom32/mach-common/profile.h |
| 3 | * Private data for the profile module |
| 4 | * |
| 5 | * (C) Copyright 2009, Ubicom, Inc. |
| 6 | * |
| 7 | * This file is part of the Ubicom32 Linux Kernel Port. |
| 8 | * |
| 9 | * The Ubicom32 Linux Kernel Port is free software: you can redistribute |
| 10 | * it and/or modify it under the terms of the GNU General Public License |
| 11 | * as published by the Free Software Foundation, either version 2 of the |
| 12 | * License, or (at your option) any later version. |
| 13 | * |
| 14 | * The Ubicom32 Linux Kernel Port is distributed in the hope that it |
| 15 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied |
| 16 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See |
| 17 | * the GNU General Public License for more details. |
| 18 | * |
| 19 | * You should have received a copy of the GNU General Public License |
| 20 | * along with the Ubicom32 Linux Kernel Port. If not, |
| 21 | * see <http://www.gnu.org/licenses/>. |
| 22 | * |
| 23 | */ |
| 24 | |
| 25 | |
| 26 | #ifndef _PROFILESAMPLE_H_ |
| 27 | #define _PROFILESAMPLE_H_ |
| 28 | |
| 29 | /* |
| 30 | * a sample taken by the ipProfile package for sending to the profilertool |
| 31 | */ |
| 32 | struct profile_sample { |
| 33 | unsigned int pc; /* PC value */ |
| 34 | unsigned int a5; /* a5 contents for parent of leaf function */ |
| 35 | unsigned int parent; /* return address from stack, to find the caller */ |
| 36 | unsigned int latency; /* CPU clocks since the last message dispatch in this thread (thread 0 ony for now) */ |
| 37 | unsigned short active; /* which threads are active - for accurate counting */ |
| 38 | unsigned short d_blocked; /* which threads are blocked due to D cache misses */ |
| 39 | unsigned short i_blocked; /* which threads are blocked due to I cache misses */ |
| 40 | unsigned char cond_codes; /* for branch prediction */ |
| 41 | unsigned char thread; /* I-blocked, D-blocked, 4-bit thread number */ |
| 42 | }; |
| 43 | |
| 44 | #endif |
| 45 | |