Remove oprofile_example
authorfcooper <fcooper@9a892ef4-8035-4e6e-bfcf-8e83c02283af>
Mon, 13 Aug 2012 15:21:03 +0000 (15:21 +0000)
committerfcooper <fcooper@9a892ef4-8035-4e6e-bfcf-8e83c02283af>
Mon, 13 Aug 2012 15:21:03 +0000 (15:21 +0000)
DIRS
Makefile
oprofile_example/.cproject [deleted file]
oprofile_example/.project [deleted file]
oprofile_example/makefile [deleted file]
oprofile_example/signal_parent.c [deleted file]

diff --git a/DIRS b/DIRS
index dd833e55a819d8fa4a124f463b0f696ddc0f9d61..96b52c76e2e1c0c8f6593181a242a92b8101a9bf 100644 (file)
--- a/DIRS
+++ b/DIRS
@@ -1,6 +1,5 @@
 DIRS :=
 
 DIRS := mem_util
-DIRS += oprofile_example
 
 DESTDIR ?=
index c717f2a06489be7d3e2b63cb7c980de918f4bebb..b21706bcf4d3671b57b7389526cb464ed0a234bf 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -35,15 +35,3 @@ install_debug:
        else \
                echo "mem_util debug version not built - nothing to install!"; \
        fi
-       @if [ -e oprofile_example/Debug1/signal_parent.opt ] ; then \
-               install oprofile_example/Debug1/signal_parent.opt $(DESTDIR)/usr/bin/signal_parent.opt ; \
-               echo "oprofile_example optimized debug version installed."; \
-       else \
-               echo "oprofile_example optimized debug version not built - nothing to install!"; \
-       fi
-       @if [ -e oprofile_example/Debug/signal_parent ] ; then \
-               install oprofile_example/Debug/signal_parent $(DESTDIR)/usr/bin/signal_parent ; \
-               echo "oprofile_example debug version installed."; \
-       else \
-               echo "oprofile_example debug version not built - nothing to install!"; \
-       fi
diff --git a/oprofile_example/.cproject b/oprofile_example/.cproject
deleted file mode 100644 (file)
index dc18e30..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<?fileVersion 4.0.0?>
-
-<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
-       <storageModule moduleId="org.eclipse.cdt.core.settings">
-               <cconfiguration id="0.564821816">
-                       <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="0.564821816" moduleId="org.eclipse.cdt.core.settings" name="Default">
-                               <externalSettings/>
-                               <extensions>
-                                       <extension id="org.eclipse.cdt.core.VCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
-                                       <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
-                                       <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
-                                       <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
-                                       <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
-                                       <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
-                               </extensions>
-                       </storageModule>
-                       <storageModule moduleId="cdtBuildSystem" version="4.0.0">
-                               <configuration artifactName="oprofile_example" buildProperties="" description="" id="0.564821816" name="Default" parent="org.eclipse.cdt.build.core.prefbase.cfg">
-                                       <folderInfo id="0.564821816." name="/" resourcePath="">
-                                               <toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.1224009507" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain">
-                                                       <targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.1224009507.1299094993" name=""/>
-                                                       <builder id="org.eclipse.cdt.build.core.settings.default.builder.2147324596" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
-                                                       <tool id="org.eclipse.cdt.build.core.settings.holder.libs.1150159012" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/>
-                                                       <tool id="org.eclipse.cdt.build.core.settings.holder.2144397078" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder">
-                                                               <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.890804419" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
-                                                       </tool>
-                                                       <tool id="org.eclipse.cdt.build.core.settings.holder.772070596" name="TI GNU C++" superClass="org.eclipse.cdt.build.core.settings.holder">
-                                                               <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1632515830" languageId="com.ti.ccstudio.core.TIGPPLanguage" languageName="TI GNU C++" sourceContentType="org.eclipse.cdt.core.cxxSource,org.eclipse.cdt.core.cxxHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
-                                                       </tool>
-                                                       <tool id="org.eclipse.cdt.build.core.settings.holder.1652146831" name="TI Linker Command" superClass="org.eclipse.cdt.build.core.settings.holder">
-                                                               <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1940656519" languageId="com.ti.ccstudio.core.TICMDLanguage" languageName="TI Linker Command" sourceContentType="com.ti.common.core.linkerCommandFile,com.ti.common.core.linkerCommandFile2" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
-                                                       </tool>
-                                                       <tool id="org.eclipse.cdt.build.core.settings.holder.1517068486" name="TI GNU C" superClass="org.eclipse.cdt.build.core.settings.holder">
-                                                               <option id="org.eclipse.cdt.build.core.settings.holder.incpaths.487787391" name="Include Paths" superClass="org.eclipse.cdt.build.core.settings.holder.incpaths" valueType="includePath">
-                                                                       <listOptionValue builtIn="false" value="../../../../linux-devkit/arm-arago-linux-gnueabi/usr/include"/>
-                                                                       <listOptionValue builtIn="false" value="../../../../linux-devkit/lib/gcc/arm-arago-linux-gnueabi/4.5.3/include"/>
-                                                               </option>
-                                                               <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.783150210" languageId="com.ti.ccstudio.core.TIGCCLanguage" languageName="TI GNU C" sourceContentType="org.eclipse.cdt.core.cSource,org.eclipse.cdt.core.cHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
-                                                       </tool>
-                                               </toolChain>
-                                       </folderInfo>
-                               </configuration>
-                       </storageModule>
-                       <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
-               </cconfiguration>
-       </storageModule>
-       <storageModule moduleId="cdtBuildSystem" version="4.0.0">
-               <project id="oprofile_example.null.373995124" name="oprofile_example"/>
-       </storageModule>
-       <storageModule moduleId="scannerConfiguration">
-               <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
-               <scannerConfigBuildInfo instanceId="0.564821816">
-                       <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
-               </scannerConfigBuildInfo>
-       </storageModule>
-       <storageModule moduleId="refreshScope" versionNumber="1">
-               <resource resourceType="PROJECT" workspacePath="/oprofile_example"/>
-       </storageModule>
-       <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
-</cproject>
diff --git a/oprofile_example/.project b/oprofile_example/.project
deleted file mode 100644 (file)
index eda0c8e..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
-       <name>oprofile_example</name>
-       <comment></comment>
-       <projects>
-       </projects>
-       <buildSpec>
-               <buildCommand>
-                       <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
-                       <triggers>clean,full,incremental,</triggers>
-                       <arguments>
-                               <dictionary>
-                                       <key>?name?</key>
-                                       <value></value>
-                               </dictionary>
-                               <dictionary>
-                                       <key>org.eclipse.cdt.make.core.append_environment</key>
-                                       <value>true</value>
-                               </dictionary>
-                               <dictionary>
-                                       <key>org.eclipse.cdt.make.core.autoBuildTarget</key>
-                                       <value>all</value>
-                               </dictionary>
-                               <dictionary>
-                                       <key>org.eclipse.cdt.make.core.buildArguments</key>
-                                       <value></value>
-                               </dictionary>
-                               <dictionary>
-                                       <key>org.eclipse.cdt.make.core.buildCommand</key>
-                                       <value>make</value>
-                               </dictionary>
-                               <dictionary>
-                                       <key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
-                                       <value>clean</value>
-                               </dictionary>
-                               <dictionary>
-                                       <key>org.eclipse.cdt.make.core.contents</key>
-                                       <value>org.eclipse.cdt.make.core.activeConfigSettings</value>
-                               </dictionary>
-                               <dictionary>
-                                       <key>org.eclipse.cdt.make.core.enableAutoBuild</key>
-                                       <value>false</value>
-                               </dictionary>
-                               <dictionary>
-                                       <key>org.eclipse.cdt.make.core.enableCleanBuild</key>
-                                       <value>true</value>
-                               </dictionary>
-                               <dictionary>
-                                       <key>org.eclipse.cdt.make.core.enableFullBuild</key>
-                                       <value>true</value>
-                               </dictionary>
-                               <dictionary>
-                                       <key>org.eclipse.cdt.make.core.fullBuildTarget</key>
-                                       <value>all</value>
-                               </dictionary>
-                               <dictionary>
-                                       <key>org.eclipse.cdt.make.core.stopOnError</key>
-                                       <value>true</value>
-                               </dictionary>
-                               <dictionary>
-                                       <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
-                                       <value>true</value>
-                               </dictionary>
-                       </arguments>
-               </buildCommand>
-               <buildCommand>
-                       <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
-                       <triggers>full,incremental,</triggers>
-                       <arguments>
-                       </arguments>
-               </buildCommand>
-       </buildSpec>
-       <natures>
-               <nature>org.eclipse.cdt.core.cnature</nature>
-               <nature>org.eclipse.cdt.core.ccnature</nature>
-               <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
-               <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
-       </natures>
-</projectDescription>
diff --git a/oprofile_example/makefile b/oprofile_example/makefile
deleted file mode 100644 (file)
index c1ff3b2..0000000
+++ /dev/null
@@ -1,122 +0,0 @@
-#   ----------------------------------------------------------------------------
-#  @file   Makefile
-#
-#  @path   
-#
-#  @desc   Makefile for oprofile_example (Debug and Release versions)
-#
-#  @ver    1.10
-#   ----------------------------------------------------------------------------
-#  Copyright (c) Texas Instruments Incorporated 2002-2009
-#
-#  Use of this software is controlled by the terms and conditions found in the
-#  license agreement under which this software has been supplied or provided.
-#
-
-#   ----------------------------------------------------------------------------
-#   Included defined variables
-#   ----------------------------------------------------------------------------
-include ../../../Rules.make
-
-#   ----------------------------------------------------------------------------
-#   Variables passed in externally
-#   ----------------------------------------------------------------------------
-PLATFORM ?=
-ARCH ?=
-CROSS_COMPILE ?=
-
-#   ----------------------------------------------------------------------------
-#   Name of the Linux compiler
-#   ----------------------------------------------------------------------------
-CC := $(CROSS_COMPILE)gcc
-
-#   ----------------------------------------------------------------------------
-#   General options, sources and libraries
-#   ----------------------------------------------------------------------------
-NAME := signal_parent
-SRCS :=  signal_parent.c
-HDRS := 
-OBJS :=
-DEBUG :=
-BIN := signal_parent
-
-#   ----------------------------------------------------------------------------
-#   Compiler and Linker flags for Debug
-#   ----------------------------------------------------------------------------
-OBJDIR_D := Debug
-BINDIR_D := $(OBJDIR_D)
-LIBS_D := $(LIBS)
-OBJS_D := $(SRCS:%.c=$(OBJDIR_D)/%.o)
-ALL_DEBUG := -g3 -gdwarf-2
-
-OBJDIR_D1 := Debug1
-BINDIR_D1 := $(OBJDIR_D1)
-OBJS_D1 := $(SRCS:%.c=$(OBJDIR_D1)/%.o)
-
-#   ----------------------------------------------------------------------------
-#   Compiler include directories 
-#   ----------------------------------------------------------------------------
-INCLUDES := 
-
-#   ----------------------------------------------------------------------------
-#   All compiler options to be passed to the command line
-#   ----------------------------------------------------------------------------
-ALL_CFLAGS := $(INCLUDES)                   \
-              -march=armv5te                \
-              -mtune=arm926ej-s             \
-              -static                       \
-              -c                            \
-              $(CFLAGS)
-
-LDFLAGS :=    -march=armv5te                \
-              -mtune=arm926ej-s
-
-#   ----------------------------------------------------------------------------
-#   Compiler symbol definitions 
-#   ----------------------------------------------------------------------------
-DEFS :=
-
-#   ----------------------------------------------------------------------------
-#   Compiler and Linker procedure
-#   From this point and on changes are very unlikely.
-#   ----------------------------------------------------------------------------
-.PHONY: all
-all: debug debug1 release
-
-#   ----------------------------------------------------------------------------
-#   Building Debug... 
-#   ----------------------------------------------------------------------------
-.PHONY: debug
-debug: $(BINDIR_D)/$(BIN)
-
-$(BINDIR_D)/$(BIN): $(OBJS_D)
-       @echo Compiling Debug...
-       $(CC) -o $@ $(OBJS_D) $(LIBS_D) $(LDFLAGS)  -Wl,-Map,$(BINDIR_D)/$(NAME).map 
-
-$(OBJDIR_D)/%.o : %.c $(HDRS)
-       $(CC) $(ALL_DEBUG) $(DEFS) $(ALL_CFLAGS) -o$@ $<
-
-#   ----------------------------------------------------------------------------
-#   Building Debug... 
-#   ----------------------------------------------------------------------------
-.PHONY: debug1
-debug: $(BINDIR_D1)/$(BIN).opt
-
-$(BINDIR_D1)/$(BIN).opt: $(OBJS_D1)
-       @echo Compiling Debug...
-       $(CC) -o $@ $(OBJS_D1) $(LIBS_D) $(LDFLAGS)  -Wl,-Map,$(BINDIR_D1)/$(NAME).map 
-
-$(OBJDIR_D1)/%.o : %.c $(HDRS)
-       $(CC) $(ALL_DEBUG) $(DEFS) -DUSE_SIGNALS $(ALL_CFLAGS) -o$@ $<
-#   ----------------------------------------------------------------------------
-#   Building Release... 
-#   ----------------------------------------------------------------------------
-
-.PHONY: release
-release:
-
-.PHONY: clean
-clean:
-       @rm -f $(OBJDIR_D)/*
-       @rm -f $(OBJDIR_D1)/*
-
diff --git a/oprofile_example/signal_parent.c b/oprofile_example/signal_parent.c
deleted file mode 100644 (file)
index 72c4001..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-#include <sys/types.h>
-#include <sys/wait.h>
-#include <signal.h>
-#include <stdio.h>
-#include <unistd.h> 
-#include <stdlib.h>
-#define BUF_SIZE (4096*256)
-
-volatile static int signal_parent = 0;
-
-void mysig(int sig)
-{
-    int status;
-    pid_t pid;
-        
-    printf("Signal %d \n", sig);
-
-    if (sig == SIGALRM)
-    {
-       signal_parent = 1;
-    }
-    if (sig == SIGCLD)
-    {
-       // harvest terminated DEFUNCT child process
-       pid = waitpid(-1, &status, WNOHANG); 
-       printf(" Child Process(%d) terminated with a status of %d\n",
-            pid, status); 
-    }
-}
-
-/*  In main, we tell the child process to wait for ten seconds
-    before sending a SIGALRM signal to its parent.  */
-
-int main()
-{
-    int pid;
-    int sum;
-    char * buf;
-    int i,j;
-
-    printf("child process starting\n");
-
-    if((pid = fork()) == 0) {
-      buf = (char *) malloc(BUF_SIZE);
-      if(buf == NULL)
-      {
-        exit(1);
-      }
-      for(j=0;j<10;j++)
-      {
-        for(i=0;i<BUF_SIZE;i++)
-        {
-          buf[i] = i;
-          sum = (int)buf[i];
-        }
-      }
-    // Child process
-        sleep(9);
-    // Wake up parent process with a SIGALRM
-        free (buf);
-        kill(getppid(), SIGALRM);
-        exit(0);
-    }
-
-/*  The parent process arranges to catch SIGALRM with a call to signal
-    and then waits for the inevitable.  */
-
-    (void) signal(SIGALRM, mysig);
-    (void) signal(SIGCLD, mysig);
-    do
-    {
-#ifdef USE_SIGNALS
-        printf("Parent blocks and waits for signal from child\n");
-        pause(); // Wait for any signal call
-#endif
-    } while(!signal_parent);
-    
-    printf("Got signal from child\n");
-
-    printf("done\n");
-    exit(0);
-}