OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [kernel/] [current/] [host/] [instr/] [instrument.sh] - Blame information for rev 851

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
#!/bin/sh
2
echo "/* This is an automatically generated file. Do not edit.               */"
3
echo "/* Repository name: PACKAGES/kernel/VERSION/include/instrument_desc.h  */"
4
echo "/* Install tree   : INSTALL/include/cyg/kernel/instrument_desc.h       */"
5
echo
6
echo "struct instrument_desc_s {                                "
7
echo "    char *   msg;                                         "
8
echo "    CYG_WORD num;                                         "
9
echo "};                                                        "
10
echo
11
echo "#ifdef CYGDBG_KERNEL_INSTRUMENT_MSGS_DEFINE_TABLE         "
12
echo struct instrument_desc_s instrument_desc[] = {
13
 
14
grep -e \#define.CYG_INSTRUMENT_EVENT -e \#define.CYG_INSTRUMENT_CLASS $1 | grep -v MAX | cut -d " " -f 2- | cut -d "_" -f 4- | sort | awk '{ print("{\""$1"\",   " $2 "},") }'
15
 
16
echo { 0, 0 }
17
echo }\;
18
echo "#else /* CYGDBG_KERNEL_INSTRUMENT_MSGS_DEFINE_TABLE */    "
19
echo "extern struct instrument_desc_s instrument_desc[];        "
20
echo "#endif /* CYGDBG_KERNEL_INSTRUMENT_MSGS_DEFINE_TABLE */   "
21
echo
22
echo "/* EOF instrument_desc.h */"
23
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.