view packages/kernel/current/host/instr/instrument.sh @ 3403:8c8767bb9a62 default tip

devs/nand/micron_mt29: Remove defunct references (in comments) to mt29f2g08_oob_ecc.
author Ross Younger <wry@ecoscentric.com>
date Sun, 18 Jan 2015 17:59:01 +1300
parents a65a4055f146
children
line wrap: on
line source

#!/bin/sh
echo "/* This is an automatically generated file. Do not edit.               */"
echo "/* Repository name: PACKAGES/kernel/VERSION/include/instrument_desc.h  */"
echo "/* Install tree   : INSTALL/include/cyg/kernel/instrument_desc.h       */"
echo
echo "struct instrument_desc_s {                                "
echo "    char *   msg;                                         "
echo "    CYG_WORD num;                                         "
echo "};                                                        "
echo
echo "#ifdef CYGDBG_KERNEL_INSTRUMENT_MSGS_DEFINE_TABLE         "
echo struct instrument_desc_s instrument_desc[] = {

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 "},") }'

echo { 0, 0 }
echo }\;
echo "#else /* CYGDBG_KERNEL_INSTRUMENT_MSGS_DEFINE_TABLE */    "
echo "extern struct instrument_desc_s instrument_desc[];        "
echo "#endif /* CYGDBG_KERNEL_INSTRUMENT_MSGS_DEFINE_TABLE */   "
echo
echo "/* EOF instrument_desc.h */"