Code Cloning Tracing: A New Approach to Trace Collection

Thierry Lafage 1 André Seznec 1 Erven Rohou 1 François Bodin 1
1 CAPS - Compilation, parallel architectures and system
IRISA - Institut de Recherche en Informatique et Systèmes Aléatoires, Inria Rennes – Bretagne Atlantique
Abstract : Trace-driven simulation is a widely used technique to evaluate microprocessor architecture and/or memory hierarchy performance. However, software trace collection induces significant execution slowdown. As on-line simulation induces an even more disastrous slowdown, simulating applications incurring trillions of instructions can not be considered without trace sampling. Therefore continuous software trace collection of the complete workload of a desktop computer cannot be envisaged. The Code Cloning Tracing method is aimed at allowing trace collection on time consuming applications. Sampling the execution is performed through a static duplication and instrumentation of the source code. A first copy of the code is nearly identical to the original code and will execute most of the time. The second code copy is further instrumented by the trace user and will be parsimoniously executed in order to collect traces without slowing down too much the overall application. At execution time, some events make the execution switch to the instrumented code copy. Other events make the execution return to the original-like code copy. The choice of these events determines the execution overhead, therefore making the approach very flexible. This paper presents in details the Code Cloning Tracing method. We also present calvin, the first prototype implemented to validate the approach. Experiments show that Code Cloning Tracing could be applied on all applications running on desktop computer without significantly affecting user response time when traces are not collected. This opens the way to punctual (let us say one second of CPU) collection of the whole activity of a desktop computer.
Type de document :
Rapport
[Research Report] RR-3377, INRIA. 1998
Liste complète des métadonnées

https://hal.inria.fr/inria-00073312
Contributeur : Rapport de Recherche Inria <>
Soumis le : mercredi 24 mai 2006 - 12:30:49
Dernière modification le : mercredi 16 mai 2018 - 11:23:02
Document(s) archivé(s) le : dimanche 4 avril 2010 - 23:42:03

Fichiers

Identifiants

  • HAL Id : inria-00073312, version 1

Citation

Thierry Lafage, André Seznec, Erven Rohou, François Bodin. Code Cloning Tracing: A New Approach to Trace Collection. [Research Report] RR-3377, INRIA. 1998. 〈inria-00073312〉

Partager

Métriques

Consultations de la notice

254

Téléchargements de fichiers

109