oprofile-0.9.9/0000775000076400007640000000000012175511554010371 500000000000000oprofile-0.9.9/libperf_events/0000775000076400007640000000000012175511560013375 500000000000000oprofile-0.9.9/libperf_events/operf_sfile.cpp0000664000076400007640000003102512175510131016310 00000000000000/** * @file pe_profiling/operf_sfile.cpp * Management of sample files generated from operf * This file is modeled after daemon/opd_sfile.c * * @remark Copyright 2011 OProfile authors * @remark Read the file COPYING * * @author Maynard Johnson * (C) Copyright IBM Corporation 2011 */ #include #include #include #include #include #include #include "operf_sfile.h" #include "operf_kernel.h" #include "operf_utils.h" #include "cverb.h" #include "op_string.h" #include "operf_mangling.h" #include "operf_stats.h" #include "op_libiberty.h" #define HASH_SIZE 2048 #define HASH_BITS (HASH_SIZE - 1) /** All sfiles are hashed into these lists */ static struct list_head hashes[HASH_SIZE]; /** All sfiles are on this list. */ static LIST_HEAD(lru_list); static unsigned long sfile_hash(struct operf_transient const * trans, struct operf_kernel_image * ki) { unsigned long val = 0; val ^= trans->tgid << 2; if (operf_options::separate_cpu) val ^= trans->cpu; if (trans->in_kernel) { val ^= ki->start >> 14; val ^= ki->end >> 7; } if (trans->is_anon) { val ^= trans->start_addr >> VMA_SHIFT; val ^= trans->end_addr >> (VMA_SHIFT + 1); } else { size_t fname_len = trans->app_len; /* fname_ptr will point at the first character in the binary file's name * which we'll use for hashing. We don't need to hash on the whole * pathname to get a decent hash. Arbitrarily, we'll hash on the * last 16 chars (or last fname_len chars if fname_len < 16). */ unsigned int fname_hash_len = (fname_len < 16) ? fname_len : 16; const char * fname_ptr = trans->app_filename + fname_len - fname_hash_len; for (unsigned int i = 0; i < fname_hash_len; i++) val = ((val << 5) + val) ^ fname_ptr[i]; // Now do the same for image name fname_len = trans->image_len; fname_hash_len = (fname_len < 16) ? fname_len : 16; fname_ptr = trans->image_name + fname_len - fname_hash_len; for (unsigned int i = 0; i < fname_hash_len; i++) val = ((val << 5) + val) ^ fname_ptr[i]; } return val & HASH_BITS; } static int do_match(struct operf_sfile const * sf, struct operf_kernel_image const * ki, bool is_anon, const char * image_name, size_t image_len, const char * appname, size_t app_len, pid_t tgid, pid_t tid, unsigned int cpu) { size_t shortest_image_len, shortest_app_len; /* this is a simplified check for "is a kernel image" AND * "is the right kernel image". Also handles no-vmlinux * correctly. */ if (sf->kernel != ki) return 0; if (sf->tid != tid || sf->tgid != tgid) return 0; if (sf->is_anon != is_anon) return 0; if ((sf->app_len != app_len) || (sf->image_len != image_len)) return 0; if (operf_options::separate_cpu) { if (sf->cpu != cpu) return 0; } if (ki) return 1; shortest_image_len = sf->image_len < image_len ? sf->image_len : image_len; if (strncmp(sf->image_name, image_name, shortest_image_len)) return 0; shortest_app_len = sf->app_len < app_len ? sf->app_len : app_len; return !strncmp(sf->app_filename, appname, shortest_app_len); } int operf_sfile_equal(struct operf_sfile const * sf, struct operf_sfile const * sf2) { return do_match(sf, sf2->kernel, sf2->is_anon, sf2->image_name, sf2->image_len, sf2->app_filename, sf2->app_len, sf2->tgid, sf2->tid, sf2->cpu); } /** create a new sfile matching the current transient parameters */ static struct operf_sfile * create_sfile(unsigned long hash, struct operf_transient const * trans, struct operf_kernel_image * ki) { size_t i; struct operf_sfile * sf; sf = (operf_sfile *)xmalloc(sizeof(struct operf_sfile)); sf->hashval = hash; sf->tid = trans->tid; sf->tgid = trans->tgid; sf->cpu = 0; sf->kernel = ki; sf->image_name = trans->image_name; sf->app_filename = trans->app_filename; sf->image_len = trans->image_len; sf->app_len = trans->app_len; sf->is_anon = trans->is_anon; sf->start_addr = trans->start_addr; sf->end_addr = trans->end_addr; for (i = 0 ; i < op_nr_events ; ++i) odb_init(&sf->files[i]); // TODO: handle extended /* if (trans->ext) opd_ext_operf_sfile_create(sf); else */ sf->ext_files = NULL; for (i = 0; i < CG_HASH_SIZE; ++i) list_init(&sf->cg_hash[i]); if (operf_options::separate_cpu) sf->cpu = trans->cpu; return sf; } #include using namespace std; struct operf_sfile * operf_sfile_find(struct operf_transient const * trans) { struct operf_sfile * sf; struct list_head * pos; struct operf_kernel_image * ki = NULL; unsigned long hash; // The code that calls this function would always have set trans->image_name, but coverity // isn't smart enough to know that. So we add the assert here just to shut up coverity. assert(trans->image_name); if (trans->in_kernel) { ki = operf_find_kernel_image(trans->pc); if (!ki) { if (cverb << vsfile) { ostringstream message; message << "Lost kernel sample " << std::hex << trans->pc << std::endl;; cout << message.str(); } operf_stats[OPERF_LOST_KERNEL]++; return NULL; } } hash = sfile_hash(trans, ki); list_for_each(pos, &hashes[hash]) { sf = list_entry(pos, struct operf_sfile, hash); if (do_match(sf, ki, trans->is_anon, trans->image_name, trans->image_len, trans->app_filename, trans->app_len, trans->tgid, trans->tid, trans->cpu)) { operf_sfile_get(sf); goto lru; } } sf = create_sfile(hash, trans, ki); list_add(&sf->hash, &hashes[hash]); lru: operf_sfile_put(sf); return sf; } void operf_sfile_dup(struct operf_sfile * to, struct operf_sfile * from) { size_t i; memcpy(to, from, sizeof (struct operf_sfile)); for (i = 0 ; i < op_nr_events ; ++i) odb_init(&to->files[i]); // TODO: handle extended //opd_ext_operf_sfile_dup(to, from); for (i = 0; i < CG_HASH_SIZE; ++i) list_init(&to->cg_hash[i]); list_init(&to->hash); list_init(&to->lru); } static odb_t * get_file(struct operf_transient const * trans, int is_cg) { struct operf_sfile * sf = trans->current; struct operf_sfile * last = trans->last; struct operf_cg_entry * cg; struct list_head * pos; unsigned long hash; odb_t * file; // TODO: handle extended /* if ((trans->ext) != NULL) return opd_ext_operf_sfile_get(trans, is_cg); */ if (trans->event >= (int)op_nr_events) { fprintf(stderr, "%s: Invalid counter %d\n", __FUNCTION__, trans->event); abort(); } file = &sf->files[trans->event]; if (!is_cg) goto open; hash = last->hashval & (CG_HASH_SIZE - 1); /* Need to look for the right 'to'. Since we're looking for * 'last', we use its hash. */ list_for_each(pos, &sf->cg_hash[hash]) { cg = list_entry(pos, struct operf_cg_entry, hash); if (operf_sfile_equal(last, &cg->to)) { file = &cg->to.files[trans->event]; goto open; } } cg = (operf_cg_entry *)xmalloc(sizeof(struct operf_cg_entry)); operf_sfile_dup(&cg->to, last); list_add(&cg->hash, &sf->cg_hash[hash]); file = &cg->to.files[trans->event]; open: if (!odb_open_count(file)) operf_open_sample_file(file, last, sf, trans->event, is_cg); /* Error is logged by opd_open_sample_file */ if (!odb_open_count(file)) return NULL; return file; } static void verbose_print_sample(struct operf_sfile * sf, vma_t pc, uint counter) { printf("0x%llx(%u): ", pc, counter); if (sf->is_anon) { printf("anon (tgid %u, 0x%llx-0x%llx), ", (unsigned int)sf->tgid, sf->start_addr, sf->end_addr); } else if (sf->kernel) { printf("kern (name %s, 0x%llx-0x%llx), ", sf->kernel->name, sf->kernel->start, sf->kernel->end); } else { printf("%s), ", sf->image_name); } printf("app: %s: ", sf->app_filename); } static void verbose_sample(struct operf_transient const * trans, vma_t pc) { printf("Sample "); verbose_print_sample(trans->current, pc, trans->event); printf("\n"); } static void verbose_arc(struct operf_transient const * trans, vma_t from, vma_t to) { printf("Arc "); verbose_print_sample(trans->current, from, trans->event); printf(" -> 0x%llx", to); printf("\n"); } void operf_sfile_log_arc(struct operf_transient const * trans) { int err; vma_t from = trans->pc; vma_t to = trans->last_pc; uint64_t key; odb_t * file; file = get_file(trans, 1); /* absolute value -> offset */ if (trans->current->kernel) from -= trans->current->kernel->start; if (trans->last->kernel) to -= trans->last->kernel->start; if (trans->current->is_anon) from -= trans->current->start_addr; if (trans->last->is_anon) to -= trans->last->start_addr; if (cverb << varcs) verbose_arc(trans, from, to); if (!file) { operf_stats[OPERF_LOST_SAMPLEFILE]++; return; } /* Possible narrowings to 32-bit value only. */ key = to & (0xffffffff); key |= ((uint64_t)from) << 32; err = odb_update_node(file, key); if (err) { fprintf(stderr, "%s: %s\n", __FUNCTION__, strerror(err)); abort(); } } void operf_sfile_log_sample(struct operf_transient const * trans) { operf_sfile_log_sample_count(trans, 1); } void operf_sfile_log_sample_count(struct operf_transient const * trans, unsigned long int count) { int err; vma_t pc = trans->pc; odb_t * file; file = get_file(trans, 0); /* absolute value -> offset */ if (trans->current->kernel) pc -= trans->current->kernel->start; if (trans->current->is_anon) pc -= trans->current->start_addr; if (cverb << vsfile) verbose_sample(trans, pc); if (!file) { operf_stats[OPERF_LOST_SAMPLEFILE]++; return; } err = odb_update_node_with_offset(file, (odb_key_t)pc, count); if (err) { fprintf(stderr, "%s: %s\n", __FUNCTION__, strerror(err)); abort(); } operf_stats[OPERF_SAMPLES]++; if (trans->in_kernel) operf_stats[OPERF_KERNEL]++; else operf_stats[OPERF_PROCESS]++; } static int close_sfile(struct operf_sfile * sf, void * data __attribute__((unused))) { size_t i; /* it's OK to close a non-open odb file */ for (i = 0; i < op_nr_events; ++i) odb_close(&sf->files[i]); // TODO: handle extended //opd_ext_operf_sfile_close(sf); return 0; } static void kill_sfile(struct operf_sfile * sf) { close_sfile(sf, NULL); list_del(&sf->hash); list_del(&sf->lru); } static int sync_sfile(struct operf_sfile * sf, void * data __attribute__((unused))) { size_t i; for (i = 0; i < op_nr_events; ++i) odb_sync(&sf->files[i]); // TODO: handle extended //opd_ext_operf_sfile_sync(sf); return 0; } static int is_sfile_kernel(struct operf_sfile * sf, void * data __attribute__((unused))) { return !!sf->kernel; } typedef int (*operf_sfile_func)(struct operf_sfile *, void *); static void for_one_sfile(struct operf_sfile * sf, operf_sfile_func func, void * data) { size_t i; int free_sf = func(sf, data); for (i = 0; i < CG_HASH_SIZE; ++i) { struct list_head * pos; struct list_head * pos2; list_for_each_safe(pos, pos2, &sf->cg_hash[i]) { struct operf_cg_entry * cg = list_entry(pos, struct operf_cg_entry, hash); if (free_sf || func(&cg->to, data)) { kill_sfile(&cg->to); list_del(&cg->hash); free(cg); } } } if (free_sf) { kill_sfile(sf); free(sf); } } static void for_each_sfile(operf_sfile_func func, void * data) { struct list_head * pos; struct list_head * pos2; list_for_each_safe(pos, pos2, &lru_list) { struct operf_sfile * sf = list_entry(pos, struct operf_sfile, lru); for_one_sfile(sf, func, data); } } void operf_sfile_clear_kernel(void) { for_each_sfile(is_sfile_kernel, NULL); } void operf_sfile_sync_files(void) { for_each_sfile(sync_sfile, NULL); } static int _release_resources(struct operf_sfile *sf __attribute__((unused)), void * p __attribute__((unused))) { return 1; } void operf_sfile_close_files(void) { for_each_sfile(_release_resources, NULL); } static int always_true(void) { return 1; } #define LRU_AMOUNT 256 /* * Clear out older sfiles. Note the current sfiles we're using * will not be present in this list, due to operf_sfile_get/put() pairs * around the caller of this. */ int operf_sfile_lru_clear(void) { struct list_head * pos; struct list_head * pos2; int amount = LRU_AMOUNT; if (list_empty(&lru_list)) return 1; list_for_each_safe(pos, pos2, &lru_list) { struct operf_sfile * sf; if (!--amount) break; sf = list_entry(pos, struct operf_sfile, lru); for_one_sfile(sf, (operf_sfile_func)always_true, NULL); } return 0; } void operf_sfile_get(struct operf_sfile * sf) { if (sf) list_del(&sf->lru); } void operf_sfile_put(struct operf_sfile * sf) { if (sf) list_add_tail(&sf->lru, &lru_list); } void operf_sfile_init(void) { size_t i = 0; for (; i < HASH_SIZE; ++i) list_init(&hashes[i]); } oprofile-0.9.9/libperf_events/operf_kernel.cpp0000664000076400007640000000554312175510131016474 00000000000000/* * @file pe_profiling/operf_kernel.cpp * This file is based on daemon/opd_kernel and is used for * dealing with the kernel and kernel module samples. * * @remark Copyright 2011 OProfile authors * @remark Read the file COPYING * * Created on: Dec 12, 2011 * @author Maynard Johnson * (C) Copyright IBM Corp. 2011 */ #include #include #include #include #include #include "operf_kernel.h" #include "operf_sfile.h" #include "op_list.h" #include "op_libiberty.h" #include "cverb.h" #include "op_fileio.h" extern verbose vmisc; extern bool no_vmlinux; static LIST_HEAD(modules); static struct operf_kernel_image vmlinux_image; using namespace std; void operf_create_vmlinux(char const * name, char const * arg) { /* vmlinux is *not* on the list of modules */ list_init(&vmlinux_image.list); /* for no vmlinux */ if (no_vmlinux) { vmlinux_image.name = xstrdup("no-vmlinux"); return; } vmlinux_image.name = xstrdup(name); sscanf(arg, "%llx,%llx", &vmlinux_image.start, &vmlinux_image.end); ostringstream message; message << "kernel_start = " << hex << vmlinux_image.start << "; kernel_end = " << vmlinux_image.end << endl; cverb << vmisc << message.str(); if (!vmlinux_image.start && !vmlinux_image.end) { ostringstream message; message << "error: mis-parsed kernel range: " << hex << vmlinux_image.start << "; kernel_end = " << vmlinux_image.end << endl; cerr << message.str(); exit(EXIT_FAILURE); } } /** * Allocate and initialise a kernel module image description. * @param name image name * @param start start address * @param end end address */ void operf_create_module(char const * name, vma_t start, vma_t end) { struct operf_kernel_image * image =(struct operf_kernel_image *) xmalloc(sizeof(struct operf_kernel_image)); image->name = xstrdup(name); image->start = start; image->end = end; list_add(&image->list, &modules); } void operf_free_modules_list(void) { struct list_head * pos; struct list_head * pos2; struct operf_kernel_image * image; list_for_each_safe(pos, pos2, &modules) { image = list_entry(pos, struct operf_kernel_image, list); free(image->name); list_del(&image->list); free(image); } } /** * find a kernel image by PC value * @param trans holds PC value to look up * * find the kernel image which contains this PC. * * Return %NULL if not found. */ struct operf_kernel_image * operf_find_kernel_image(vma_t pc) { struct list_head * pos; struct operf_kernel_image * image = &vmlinux_image; if (no_vmlinux) return image; if (image->start <= pc && image->end > pc) return image; list_for_each(pos, &modules) { image = list_entry(pos, struct operf_kernel_image, list); if (image->start <= pc && image->end > pc) return image; } return NULL; } const char * operf_get_vmlinux_name(void) { return vmlinux_image.name; } oprofile-0.9.9/libperf_events/operf_sfile.h0000664000076400007640000000722712175510131015764 00000000000000/** * @file pe_profiling/operf_sfile.h * Management of sample files generated from operf * This file is modeled after daemon/opd_sfile.c * * @remark Copyright 2011 OProfile authors * @remark Read the file COPYING * * @author Maynard Johnson * (C) Copyright IBM Corporation 2011 */ #ifndef OPD_SFILE_H #define OPD_SFILE_H #include "operf_utils.h" #include "odb.h" #include "op_hw_config.h" #include "op_types.h" #include "op_list.h" #include "operf_process_info.h" #include struct operf_transient; struct operf_kernel_image; #define CG_HASH_SIZE 16 #define INVALID_IMAGE "INVALID IMAGE" #define VMA_SHIFT 13 /** * Each set of sample files (where a set is over the physical counter * types) will have one of these for it. We match against the * descriptions here to find which sample DB file we need to modify. * * cg files are stored in the hash. */ struct operf_sfile { /** hash value for this sfile */ unsigned long hashval; const char * image_name; const char * app_filename; size_t image_len, app_len; /** thread ID, -1 if not set */ pid_t tid; /** thread group ID, -1 if not set */ pid_t tgid; /** CPU number */ unsigned int cpu; /** kernel image if applicable */ struct operf_kernel_image * kernel; bool is_anon; vma_t start_addr; vma_t end_addr; /** hash table link */ struct list_head hash; /** lru list */ struct list_head lru; /** true if this file should be ignored in profiles */ int ignored; /** opened sample files */ odb_t files[OP_MAX_EVENTS]; /** extended sample files */ odb_t * ext_files; /** hash table of opened cg sample files */ struct list_head cg_hash[CG_HASH_SIZE]; }; /** a call-graph entry */ struct operf_cg_entry { /** where arc is to */ struct operf_sfile to; /** next in the hash slot */ struct list_head hash; }; /** * Transient values used for parsing the event buffer. * Note that these are reset for each buffer read, but * that should be ok as in the kernel, cpu_buffer_reset() * ensures that a correct context starts off the buffer. */ struct operf_transient { struct operf_sfile * current; struct operf_sfile * last; bool is_anon; operf_process_info * cur_procinfo; vma_t pc; const char * image_name; char app_filename[PATH_MAX]; size_t image_len, app_len; vma_t last_pc; int event; u64 sample_id; int in_kernel; unsigned long cpu; u32 tid; u32 tgid; vma_t start_addr; vma_t end_addr; bool cg; // TODO: handle extended //void * ext; }; /** clear any sfiles that are for the kernel */ void operf_sfile_clear_kernel(void); /** sync sample files */ void operf_sfile_sync_files(void); /** close sample files */ void operf_sfile_close_files(void); /** clear out a certain amount of LRU entries * return non-zero if the lru is already empty */ int operf_sfile_lru_clear(void); /** remove a sfile from the lru list, protecting it from operf_sfile_lru_clear() */ void operf_sfile_get(struct operf_sfile * sf); /** add this sfile to lru list */ void operf_sfile_put(struct operf_sfile * sf); /** * Find the sfile for the current parameters. Note that is required * that the PC value be set appropriately (needed for kernel images) */ struct operf_sfile * operf_sfile_find(struct operf_transient const * trans); /** Log the sample in a previously located sfile. */ void operf_sfile_log_sample(struct operf_transient const * trans); /** Log the event/cycle count in a previously located sfile */ void operf_sfile_log_sample_count(struct operf_transient const * trans, unsigned long int count); /** Log a callgraph arc. */ void operf_sfile_log_arc(struct operf_transient const * trans); /** initialise hashes */ void operf_sfile_init(void); #endif /* OPD_SFILE_H */ oprofile-0.9.9/libperf_events/operf_process_info.h0000664000076400007640000001017712175510131017351 00000000000000/* * @file pe_profiling/operf_process_info.h * This file contains functions for storing process information, * handling exectuable mmappings, etc. * * @remark Copyright 2011 OProfile authors * @remark Read the file COPYING * * Created on: Dec 7, 2011 * @author Maynard Johnson * (C) Copyright IBM Corp. 2011 */ #ifndef OPERF_PROCESS_INFO_H_ #define OPERF_PROCESS_INFO_H_ #include #include #include "op_types.h" #include "cverb.h" extern verbose vmisc; struct operf_mmap { u64 start_addr; u64 end_addr; u64 pgoff; bool is_anon_mapping; bool is_hypervisor; char filename[PATH_MAX]; }; /* This class is designed to hold information about a process for which a COMM event * has been recorded in the profile data: application name, process ID, and a map * containing all of the libraries and executable anonymous memory mappings used by this * process. * * The COMM event provides only a 16-char (possibly abbreviated) "comm" field for the * executable's basename. If operf is being run in single-process mode vs system-wide, * then we will know what the full pathname of the executable is, in which case, that * will be the value stored in the app_name field; otherwise, as MMAP events are * processed, we compare their basenames to the short name we got from the COMM event. * The mmap'ing whose basename has the most matching characters is chosen to use as * the full pathname of the application. TODO: It's possible that this choice may be wrong; * we should verify the choice by looking at the ELF data (ELF header e_type field should * be "ET_EXEC"). * * This class is designed to handle the possibility that MMAP events may occur for a process * prior to the COMM event. */ class operf_process_info { public: operf_process_info(pid_t tgid, const char * appname, bool app_arg_is_fullname, bool is_valid); ~operf_process_info(void); bool is_valid(void) { return (valid); } bool is_appname_valid(void) { return (valid && appname_valid); } void set_valid(void) { valid = true; } void set_appname_valid(void) { appname_valid = true; } bool is_forked(void) { return forked; } void process_mapping(struct operf_mmap * mapping, bool do_self); void process_hypervisor_mapping(u64 ip); void connect_forked_process_to_parent(void); void set_fork_info(operf_process_info * parent); void add_forked_pid_association(operf_process_info * forked_pid) { forked_processes.push_back(forked_pid); } void copy_mappings_to_forked_process(operf_process_info * forked_pid); void try_disassociate_from_parent(char * appname); void remove_forked_process(pid_t forked_pid); std::string get_app_name(void) { return _appname; } const struct operf_mmap * find_mapping_for_sample(u64 sample_addr); void set_appname(const char * appname, bool app_arg_is_fullname); void check_mapping_for_appname(struct operf_mmap * mapping); private: typedef enum { NOT_FULLNAME, MAYBE_FULLNAME, YES_FULLNAME } op_fullname_t; pid_t pid; std::string _appname; bool valid, appname_valid, look_for_appname_match; bool forked; op_fullname_t appname_is_fullname; std::string app_basename; int num_app_chars_matched; std::map mmappings; std::map mmappings_from_parent; /* When a FORK event is received, we associate that forked process * with its parent by adding it to the parent's forked_processes * collection. The main reason we need this collection is because * PERF_RECORD_MMAP events may arrive for the parent out of order, * after a PERF_RECORD_FORK. Since forked processes inherit their * parent's mmappings, we want to make sure those mmappings exist * for the forked process so that samples may be properly attributed. * Therefore, the various paths of adding mmapings to a parent, will * also result in adding those mmappings to forked children. */ std::vector forked_processes; operf_process_info * parent_of_fork; void set_new_mapping_recursive(struct operf_mmap * mapping, bool do_self); int get_num_matching_chars(std::string mapped_filename, std::string & basename); void find_best_match_appname_all_mappings(void); }; #endif /* OPERF_PROCESS_INFO_H_ */ oprofile-0.9.9/libperf_events/Makefile.in0000664000076400007640000004372612175510234015373 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libperf_events DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) ARFLAGS = cru libperf_events_a_AR = $(AR) $(ARFLAGS) libperf_events_a_LIBADD = am__libperf_events_a_SOURCES_DIST = operf_utils.h operf_utils.cpp \ operf_event.h operf_counter.h operf_counter.cpp \ operf_process_info.h operf_process_info.cpp operf_kernel.cpp \ operf_kernel.h operf_mangling.cpp operf_mangling.h \ operf_sfile.cpp operf_sfile.h operf_stats.cpp operf_stats.h @BUILD_FOR_PERF_EVENT_TRUE@am_libperf_events_a_OBJECTS = \ @BUILD_FOR_PERF_EVENT_TRUE@ operf_utils.$(OBJEXT) \ @BUILD_FOR_PERF_EVENT_TRUE@ operf_counter.$(OBJEXT) \ @BUILD_FOR_PERF_EVENT_TRUE@ operf_process_info.$(OBJEXT) \ @BUILD_FOR_PERF_EVENT_TRUE@ operf_kernel.$(OBJEXT) \ @BUILD_FOR_PERF_EVENT_TRUE@ operf_mangling.$(OBJEXT) \ @BUILD_FOR_PERF_EVENT_TRUE@ operf_sfile.$(OBJEXT) \ @BUILD_FOR_PERF_EVENT_TRUE@ operf_stats.$(OBJEXT) libperf_events_a_OBJECTS = $(am_libperf_events_a_OBJECTS) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libperf_events_a_SOURCES) DIST_SOURCES = $(am__libperf_events_a_SOURCES_DIST) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ @BUILD_FOR_PERF_EVENT_TRUE@AM_CPPFLAGS = \ @BUILD_FOR_PERF_EVENT_TRUE@ -I ${top_srcdir}/libabi \ @BUILD_FOR_PERF_EVENT_TRUE@ -I ${top_srcdir}/libutil \ @BUILD_FOR_PERF_EVENT_TRUE@ -I ${top_srcdir}/libutil++ \ @BUILD_FOR_PERF_EVENT_TRUE@ -I ${top_srcdir}/libop \ @BUILD_FOR_PERF_EVENT_TRUE@ -I ${top_srcdir}/libdb \ @BUILD_FOR_PERF_EVENT_TRUE@ -I ${top_srcdir}/libperf_events \ @BUILD_FOR_PERF_EVENT_TRUE@ @PERF_EVENT_FLAGS@ \ @BUILD_FOR_PERF_EVENT_TRUE@ @OP_CPPFLAGS@ @BUILD_FOR_PERF_EVENT_TRUE@noinst_LIBRARIES = libperf_events.a @BUILD_FOR_PERF_EVENT_TRUE@libperf_events_a_SOURCES = \ @BUILD_FOR_PERF_EVENT_TRUE@ operf_utils.h \ @BUILD_FOR_PERF_EVENT_TRUE@ operf_utils.cpp \ @BUILD_FOR_PERF_EVENT_TRUE@ operf_event.h \ @BUILD_FOR_PERF_EVENT_TRUE@ operf_counter.h \ @BUILD_FOR_PERF_EVENT_TRUE@ operf_counter.cpp \ @BUILD_FOR_PERF_EVENT_TRUE@ operf_process_info.h \ @BUILD_FOR_PERF_EVENT_TRUE@ operf_process_info.cpp \ @BUILD_FOR_PERF_EVENT_TRUE@ operf_kernel.cpp \ @BUILD_FOR_PERF_EVENT_TRUE@ operf_kernel.h \ @BUILD_FOR_PERF_EVENT_TRUE@ operf_mangling.cpp \ @BUILD_FOR_PERF_EVENT_TRUE@ operf_mangling.h \ @BUILD_FOR_PERF_EVENT_TRUE@ operf_sfile.cpp \ @BUILD_FOR_PERF_EVENT_TRUE@ operf_sfile.h \ @BUILD_FOR_PERF_EVENT_TRUE@ operf_stats.cpp \ @BUILD_FOR_PERF_EVENT_TRUE@ operf_stats.h all: all-am .SUFFIXES: .SUFFIXES: .cpp .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libperf_events/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign libperf_events/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) libperf_events.a: $(libperf_events_a_OBJECTS) $(libperf_events_a_DEPENDENCIES) -rm -f libperf_events.a $(libperf_events_a_AR) libperf_events.a $(libperf_events_a_OBJECTS) $(libperf_events_a_LIBADD) $(RANLIB) libperf_events.a mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/operf_counter.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/operf_kernel.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/operf_mangling.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/operf_process_info.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/operf_sfile.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/operf_stats.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/operf_utils.Po@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLIBRARIES ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/libperf_events/operf_event.h0000664000076400007640000000645412175510131016004 00000000000000/* * @file pe_profiling/operf_event.h * Definitions of structures and methods for handling perf_event data * from the kernel. * * @remark Copyright 2011 OProfile authors * @remark Read the file COPYING * * Created on: Dec 7, 2011 * @author Maynard Johnson * (C) Copyright IBM Corp. 2011 */ #ifndef OPERF_EVENT_H_ #define OPERF_EVENT_H_ #include #include #include #include "op_types.h" #define OP_MAX_EVT_NAME_LEN 64 #define OP_MAX_UM_NAME_LEN 64 #define OP_MAX_NUM_EVENTS 512 struct ip_event { struct perf_event_header header; u64 ip; u32 pid, tid; unsigned char __more_data[]; }; struct mmap_event { struct perf_event_header header; u32 pid, tid; u64 start; u64 len; u64 pgoff; char filename[PATH_MAX]; }; struct comm_event { struct perf_event_header header; u32 pid, tid; char comm[16]; }; struct fork_event { struct perf_event_header header; u32 pid, ppid; u32 tid, ptid; u64 time; }; struct lost_event { struct perf_event_header header; u64 id; u64 lost; }; struct read_event { struct perf_event_header header; u32 pid, tid; u64 value; u64 time_enabled; u64 time_running; u64 id; }; struct sample_event { struct perf_event_header header; u64 array[]; }; struct throttle_event { struct perf_event_header header; u64 time; u64 id; u64 stream_id; }; typedef union event_union { struct perf_event_header header; struct ip_event ip; struct mmap_event mmap; struct comm_event comm; struct fork_event fork; struct lost_event lost; struct read_event read; struct sample_event sample; struct throttle_event throttle; } event_t; struct mmap_data { void *base; u64 mask; u64 prev; }; struct ip_callchain { u64 nr; u64 ips[0]; }; struct sample_data { u64 ip; u32 pid, tid; u64 time; u64 addr; u64 id; u32 cpu; u64 period; u32 raw_size; void *raw_data; struct ip_callchain * callchain; }; typedef struct operf_event { char name[OP_MAX_EVT_NAME_LEN]; // code for perf_events u64 evt_code; /* Base event code for oprofile sample file management; may be the same as evt_code, * but different for certain architectures (e.g., ppc64). Also, when unit masks * are used, the evt_code to be passed to perf_events includes both the * base code from op_evt_code and the left-shifted unit mask bits. */ u64 op_evt_code; // Make the evt_um and count fields unsigned long to match op_default_event_descr unsigned long evt_um; char um_name[OP_MAX_UM_NAME_LEN]; unsigned long count; bool no_kernel; bool no_user; bool no_hv; bool throttled; /* set to true if the event is ever throttled */ } operf_event_t; struct mmap_info { u64 offset, file_data_size, file_data_offset, head; char * buf; int traceFD; }; struct op_file_section { u64 size; u64 offset; }; struct op_file_attr { struct perf_event_attr attr; struct op_file_section ids; }; struct op_header_evt_info { struct perf_event_attr attr; std::vector ids; off_t id_offset; }; struct OP_file_header { u64 magic; u64 size; u64 attr_size; struct op_file_section attrs; struct op_file_section data; }; struct OP_header { struct op_header_evt_info h_attrs[OP_MAX_NUM_EVENTS]; off_t attr_offset; off_t data_offset; u64 data_size; }; /* Some of the above definitions were borrowed from the perf tool's util/event.h file. */ #endif /* OPERF_EVENT_H_ */ oprofile-0.9.9/libperf_events/operf_utils.cpp0000664000076400007640000013167412175510131016361 00000000000000/** * @file operf_utils.cpp * Helper methods for perf_events-based OProfile. * * @remark Copyright 2011 OProfile authors * @remark Read the file COPYING * * Created on: Dec 7, 2011 * @author Maynard Johnson * (C) Copyright IBM Corp. 2011 * * Modified by Maynard Johnson * (C) Copyright IBM Corporation 2012, 2013 * */ #include #include #include #include #include #include #include #include #include #include "operf_counter.h" #include "operf_utils.h" #ifdef HAVE_LIBPFM #include #endif #include "op_types.h" #include "operf_process_info.h" #include "file_manip.h" #include "operf_kernel.h" #include "operf_sfile.h" #include "op_fileio.h" #include "op_libiberty.h" #include "operf_stats.h" extern verbose vmisc; extern volatile bool quit; extern volatile bool read_quit; extern operf_read operfRead; extern int sample_reads; extern unsigned int pagesize; extern char * app_name; extern pid_t app_PID; extern verbose vrecord; extern verbose vconvert; extern void __set_event_throttled(int index); using namespace std; map process_map; multimap all_images_map; map kernel_modules; struct operf_mmap * kernel_mmap; bool first_time_processing; bool throttled; size_t mmap_size; size_t pg_sz; static list unresolved_events; static struct operf_transient trans; static bool sfile_init_done; /* Some architectures (e.g., ppc64) do not use the same event value (code) for oprofile * and for perf_events. The operf-record process requires event values that perf_events * understands, but the operf-read process requires oprofile event values. The purpose of * the following method is to map the operf-record event value to a value that * opreport can understand. */ #if PPC64_ARCH extern op_cpu cpu_type; #define NIL_CODE ~0U #if HAVE_LIBPFM3 static bool _get_codes_for_match(unsigned int pfm_idx, const char name[], vector * evt_vec) { unsigned int num_events = evt_vec->size(); int tmp_code, ret; char evt_name[OP_MAX_EVT_NAME_LEN]; unsigned int events_converted = 0; for (unsigned int i = 0; i < num_events; i++) { operf_event_t event = (*evt_vec)[i]; if (event.evt_code != NIL_CODE) { events_converted++; continue; } memset(evt_name, 0, OP_MAX_EVT_NAME_LEN); if (!strcmp(event.name, "CYCLES")) { strcpy(evt_name ,"PM_CYC") ; } else if (strstr(event.name, "_GRP")) { string str = event.name; strncpy(evt_name, event.name, str.rfind("_GRP")); } else { strncpy(evt_name, event.name, strlen(event.name)); } if (strncmp(name, evt_name, OP_MAX_EVT_NAME_LEN)) continue; ret = pfm_get_event_code(pfm_idx, &tmp_code); if (ret != PFMLIB_SUCCESS) { string evt_name_str = event.name; string msg = "libpfm cannot find event code for " + evt_name_str + "; cannot continue"; throw runtime_error(msg); } event.evt_code = tmp_code; (*evt_vec)[i] = event; events_converted++; cverb << vrecord << "Successfully converted " << event.name << " to perf_event code " << hex << tmp_code << endl; } return (events_converted == num_events); } #else static bool _op_get_event_codes(vector * evt_vec) { int ret, i; unsigned int num_events = evt_vec->size(); char evt_name[OP_MAX_EVT_NAME_LEN]; unsigned int events_converted = 0; uint64_t code[1]; typedef struct { uint64_t *codes; char **fstr; size_t size; int count; int idx; } pfm_raw_pmu_encode_t; pfm_raw_pmu_encode_t raw; raw.codes = code; raw.count = 1; raw.fstr = NULL; if (pfm_initialize() != PFM_SUCCESS) throw runtime_error("Unable to initialize libpfm; cannot continue"); for (unsigned int i = 0; i < num_events; i++) { operf_event_t event = (*evt_vec)[i]; if (event.evt_code != NIL_CODE) { events_converted++; continue; } memset(evt_name, 0, OP_MAX_EVT_NAME_LEN); if (!strcmp(event.name, "CYCLES")) { strcpy(evt_name ,"PM_CYC") ; } else if (strstr(event.name, "_GRP")) { string str = event.name; strncpy(evt_name, event.name, str.rfind("_GRP")); } else { strncpy(evt_name, event.name, strlen(event.name)); } memset(&raw, 0, sizeof(raw)); ret = pfm_get_os_event_encoding(evt_name, PFM_PLM3, PFM_OS_NONE, &raw); if (ret != PFM_SUCCESS) { string evt_name_str = event.name; string msg = "libpfm cannot find event code for " + evt_name_str + "; cannot continue"; throw runtime_error(msg); } event.evt_code = raw.codes[0]; (*evt_vec)[i] = event; events_converted++; cverb << vrecord << "Successfully converted " << event.name << " to perf_event code " << hex << event.evt_code << endl; } return (events_converted == num_events); } #endif bool OP_perf_utils::op_convert_event_vals(vector * evt_vec) { unsigned int i, count; char name[256]; int ret; for (unsigned int i = 0; i < evt_vec->size(); i++) { operf_event_t event = (*evt_vec)[i]; if (cpu_type == CPU_PPC64_POWER7) { if (!strncmp(event.name, "PM_RUN_CYC", strlen("PM_RUN_CYC"))) { event.evt_code = 0x600f4; } else if (!strncmp(event.name, "PM_RUN_INST_CMPL", strlen("PM_RUN_INST_CMPL"))) { event.evt_code = 0x500fa; } else { event.evt_code = NIL_CODE; } } else { event.evt_code = NIL_CODE; } (*evt_vec)[i] = event; } #if HAVE_LIBPFM3 if (pfm_initialize() != PFMLIB_SUCCESS) throw runtime_error("Unable to initialize libpfm; cannot continue"); ret = pfm_get_num_events(&count); if (ret != PFMLIB_SUCCESS) throw runtime_error("Unable to use libpfm to obtain event code; cannot continue"); for(i =0 ; i < count; i++) { ret = pfm_get_event_name(i, name, 256); if (ret != PFMLIB_SUCCESS) continue; if (_get_codes_for_match(i, name, evt_vec)) break; } return (i != count); #else return _op_get_event_codes(evt_vec); #endif } #endif // PPC64_ARCH static inline void update_trans_last(struct operf_transient * trans) { trans->last = trans->current; trans->last_pc = trans->pc; } static inline void clear_trans(struct operf_transient * trans) { trans->tgid = ~0U; trans->cur_procinfo = NULL; } static void __handle_fork_event(event_t * event) { if (cverb << vconvert) cout << "PERF_RECORD_FORK for tgid/tid = " << event->fork.pid << "/" << event->fork.tid << "; parent " << event->fork.ppid << "/" << event->fork.ptid << endl; map::iterator it; operf_process_info * parent = NULL; operf_process_info * forked_proc = NULL; it = process_map.find(event->fork.ppid); if (it != process_map.end()) { parent = it->second; } else { // Create a new proc info object for the parent, but mark it invalid since we have // not yet received a COMM event for this PID. parent = new operf_process_info(event->fork.ppid, app_name ? app_name : NULL, app_name != NULL, false); if (cverb << vconvert) cout << "Adding new proc info to collection for parent PID " << event->fork.ppid << endl; process_map[event->fork.ppid] = parent; } /* If the forked process's pid is the same as the parent's, we simply ignore the FORK * event. This is because operf_process_info objects are stored in the map collection * by pid, meaning that the forked process and its parent reference the same * operf_process_info object. */ if (event->fork.pid == event->fork.ppid) return; it = process_map.find(event->fork.pid); if (it == process_map.end()) { forked_proc = new operf_process_info(event->fork.pid, NULL, false, false); if (cverb << vconvert) cout << "Adding new proc info to collection for forked PID " << event->fork.pid << endl; process_map[event->fork.pid] = forked_proc; forked_proc->set_fork_info(parent); } else { /* * Normally, if parent process A forks child process B which then does an exec, we * first see a FORK event, followed by a COMM event. In this case, the * operf_process_info created for the forked process is marked as valid. But there's * no guarantee what order these events may be seen by userspace -- we could easily * get MMAP, FORK, and finally a COMM event, which is opposite of "expected". So we * must handle this. * * For a valid operf_process_info, if the forked process pid is unique from that of * the parent, it implies a COMM event was already received for this forked process. * Such processes are treated as standalone processes, so we ignore the FORK event. * For all other cases, if the forked process has not already been associated with * its parent (i.e., !is_forked()), we go ahead and set that association. */ forked_proc = it->second; if (forked_proc->is_valid()) { // Ignore the FORK event if (cverb << vconvert) cout << "Forked proc " << event->fork.pid << " is currently valid (i.e., PERF_RECORD_COMM already received)," << " so is independent from parent " << event->fork.ppid << endl; return; } if (!forked_proc->is_forked()) { forked_proc->set_fork_info(parent); if (cverb << vconvert) cout << "Set fork info for PID " << event->fork.pid << " with parent " << event->fork.ppid << endl; } } } static void __handle_comm_event(event_t * event) { if (cverb << vconvert) cout << "PERF_RECORD_COMM for " << event->comm.comm << ", tgid/tid = " << event->comm.pid << "/" << event->comm.tid << endl; map::iterator it; it = process_map.find(event->comm.pid); if (it == process_map.end()) { /* A COMM event can occur as the result of the app doing a fork/exec, * where the COMM event is for the forked process. In that case, we * pass the event->comm field as the appname argument to the ctor. */ const char * appname_arg; bool is_complete_appname; if (app_name && (app_PID == event->comm.pid)) { appname_arg = app_name; is_complete_appname = true; } else { appname_arg = event->comm.comm; is_complete_appname = false; } /* If tid != pid, this may be a forked process for which we've not yet received * the PERF_RECORD_FORK event, nor have we received any other events for the * process (e.g., COMM event for parent). We mark such proc infos as "invalid" so we * don't falsely attribute samples to a child thread which should, instead, * be attributed to its parent. If this is indeed a forked process, we should * eventually receive a COMM event for the parent (where tid==pid), at which time, * we'll mark the proc info valid. If we never receive a COMM event for a parent, * the proc info will get marked valid during reprocessing so we can attribute * deferred samples at that time. */ bool valid_bit = (event->comm.pid == event->comm.tid); operf_process_info * proc = new operf_process_info(event->comm.pid, appname_arg, is_complete_appname, valid_bit); if (cverb << vconvert) cout << "Adding new proc info to collection for PID " << event->comm.pid << endl; process_map[event->comm.pid] = proc; } else { /* If we reach this point, it means a proc info object for this pid already exists; * however, if it was created by something other than a "valid" COMM event (e.g., MMAP event), * its 'valid' bit will be set to false. NOTE: A "valid" COMM event is one in which * tid==pid. * * We must handle the following situations: * o If valid: * - Existing proc info created for a parent (i.e., tid == pid), and the current * COMM event is for a child -- and we ignore all child COMM events. * - Existing proc info may have invalid appname, so we call set_appname() * and see if this COMM event has an appropriate appname. * * o If not valid: * - Existing proc info was created for the parent by an MMAP type of event, and the * current COMM event is for the parent. * - Existing proc info was created by FORK; now that we have a COMM event for it, * the process should be treated as a standalone process, so we call * try_disassociate_from_parent(). */ if (!it->second->is_valid()) { // Ignore child COMM events (i.e., pid != tid). if (event->comm.pid == event->comm.tid) { if (it->second->is_forked()) { it->second->try_disassociate_from_parent(event->comm.comm); } else { // Existing proc info created by MMAP event or some such it->second->set_valid(); it->second->set_appname(event->comm.comm, false); } } } else { if ((event->comm.pid == event->comm.tid) && !it->second->is_appname_valid()) { it->second->set_appname(event->comm.comm, false); } } } } static void __handle_mmap_event(event_t * event) { static bool kptr_restrict_warning_displayed_already = false; string image_basename = op_basename(event->mmap.filename); struct operf_mmap * mapping = NULL; multimap::iterator it; pair::iterator, multimap::iterator> range; range = all_images_map.equal_range(image_basename); for (it = range.first; it != range.second; it++) { if (((strcmp((*it).second->filename, image_basename.c_str())) == 0) && ((*it).second->start_addr == event->mmap.start)) { mapping = (*it).second; break; } } if (!mapping) { mapping = new struct operf_mmap; memset(mapping, 0, sizeof(struct operf_mmap)); mapping->start_addr = event->mmap.start; strcpy(mapping->filename, event->mmap.filename); /* Mappings starting with "/" are for either a file or shared memory object. * From the kernel's perf_events subsystem, anon maps have labels like: * [heap], [stack], [vdso], //anon */ if (mapping->filename[0] == '[') { mapping->is_anon_mapping = true; } else if ((strncmp(mapping->filename, "//anon", strlen("//anon")) == 0)) { mapping->is_anon_mapping = true; strcpy(mapping->filename, "anon"); } mapping->end_addr = (event->mmap.len == 0ULL)? 0ULL : mapping->start_addr + event->mmap.len - 1; mapping->pgoff = event->mmap.pgoff; if (cverb << vconvert) { cout << "PERF_RECORD_MMAP for process " << hex << event->mmap.pid << "/" << event->mmap.tid << ": " << event->mmap.filename << endl; cout << "\tstart_addr: " << hex << mapping->start_addr << "; end addr: " << mapping->end_addr << endl; } if (event->header.misc & PERF_RECORD_MISC_USER) all_images_map.insert(pair(image_basename, mapping)); } if (event->header.misc & PERF_RECORD_MISC_KERNEL) { if (!strncmp(mapping->filename, operf_get_vmlinux_name(), strlen(mapping->filename))) { /* The kernel_mmap is just a convenience variable * for use when mapping samples to kernel space, since * most of the kernel samples will be attributable to * the vmlinux file versus kernel modules. */ kernel_mmap = mapping; } else { if ((kptr_restrict == 1) && !no_vmlinux && (my_uid != 0)) { if (!kptr_restrict_warning_displayed_already) { kptr_restrict_warning_displayed_already = true; cerr << endl << "< < < WARNING > > >" << endl; cerr << "Samples for vmlinux kernel will be recorded, but kernel module profiling" << endl << "is not possible with current system config." << endl; cerr << "Set /proc/sys/kernel/kptr_restrict to 0 to see samples for kernel modules." << endl << "< < < < < > > > > >" << endl << endl; } } else { operf_create_module(mapping->filename, mapping->start_addr, mapping->end_addr); kernel_modules[mapping->start_addr] = mapping; } } } else { map::iterator it; it = process_map.find(event->mmap.pid); if (it == process_map.end()) { /* Create a new proc info object, but mark it invalid since we have * not yet received a COMM event for this PID. This MMAP event may * be on behalf of a process created as a result of a fork/exec. * The order of delivery of events is not guaranteed so we may see * this MMAP event before getting the COMM event for that process. * If this is the case here, we just pass NULL for appname arg. * It will get fixed up later when the COMM event occurs. */ const char * appname_arg; bool is_complete_appname; if (app_name && (app_PID == event->mmap.pid)) { appname_arg = app_name; is_complete_appname = true; } else { appname_arg = NULL; is_complete_appname = false; } operf_process_info * proc = new operf_process_info(event->mmap.pid, appname_arg, is_complete_appname, false); process_map[event->mmap.pid] = proc; proc->process_mapping(mapping, false); } else { it->second->process_mapping(mapping, false); } if (cverb << vconvert) cout << "Process mapping for " << event->mmap.filename << " on behalf of " << event->mmap.pid << endl; } } static struct operf_transient * __get_operf_trans(struct sample_data * data, bool hypervisor_domain, bool kernel_mode) { operf_process_info * proc = NULL; const struct operf_mmap * op_mmap = NULL; struct operf_transient * retval = NULL; if (trans.tgid == data->pid) { proc = trans.cur_procinfo; if (cverb << vconvert) cout << "trans.tgid == data->pid : " << data->pid << endl; } else { // Find operf_process info for data.tgid. std::map::const_iterator it = process_map.find(data->pid); if (it != process_map.end() && it->second->is_appname_valid()) { proc = it->second; } else { // This can validly happen if get a sample before getting a COMM event for the process if ((cverb << vconvert) && !first_time_processing) { cout << "Dropping sample -- process info unavailable for PID " << data->pid << endl; if (kernel_mode) operf_stats[OPERF_NO_APP_KERNEL_SAMPLE]++; else operf_stats[OPERF_NO_APP_USER_SAMPLE]++; } goto out; } } // Now find mmapping that contains the data.ip address. // Use that mmapping to set fields in trans. if (kernel_mode) { if (data->ip >= kernel_mmap->start_addr && data->ip <= kernel_mmap->end_addr) { op_mmap = kernel_mmap; } else { map::iterator it; it = kernel_modules.begin(); while (it != kernel_modules.end()) { if (data->ip >= it->second->start_addr && data->ip <= it->second->end_addr) { op_mmap = it->second; break; } it++; } } if (!op_mmap) { if ((kernel_mmap->start_addr == 0ULL) && (kernel_mmap->end_addr == 0ULL)) op_mmap = kernel_mmap; } if (!op_mmap) { /* This can happen if a kernel module is loaded after profiling * starts, and then we get samples for that kernel module. * TODO: Fix this. */ } } else { op_mmap = proc->find_mapping_for_sample(data->ip); if (op_mmap && op_mmap->is_hypervisor && !hypervisor_domain) { cverb << vconvert << "Invalid sample: Address falls within hypervisor address range, but is not a hypervisor domain sample." << endl; operf_stats[OPERF_INVALID_CTX]++; op_mmap = NULL; } } if (op_mmap) { if (cverb << vconvert) cout << "Found mmap for sample; image_name is " << op_mmap->filename << " and app name is " << proc->get_app_name() << endl; trans.image_name = op_mmap->filename; trans.app_len = proc->get_app_name().size(); strncpy(trans.app_filename, proc->get_app_name().c_str(), trans.app_len); trans.app_filename[trans.app_len] = '\0'; trans.image_len = strlen(trans.image_name); trans.start_addr = op_mmap->start_addr; trans.end_addr = op_mmap->end_addr; trans.tgid = data->pid; trans.tid = data->tid; trans.cur_procinfo = proc; trans.cpu = data->cpu; trans.is_anon = op_mmap->is_anon_mapping; trans.in_kernel = kernel_mode; if (trans.in_kernel || trans.is_anon) trans.pc = data->ip; else trans.pc = data->ip - trans.start_addr; trans.sample_id = data->id; retval = &trans; } else { if ((cverb << vconvert) && !first_time_processing) { string domain = trans.in_kernel ? "kernel" : "userspace"; ostringstream message; message << "Discarding " << domain << " sample for process " << data->pid << " where no appropriate mapping was found. (pc=0x" << hex << data->ip <<")" << endl; cout << message.str(); operf_stats[OPERF_LOST_NO_MAPPING]++; } retval = NULL; } out: return retval; } static void __handle_callchain(u64 * array, struct sample_data * data) { bool in_kernel = false; data->callchain = (struct ip_callchain *) array; if (data->callchain->nr) { if (cverb << vconvert) cout << "Processing callchain" << endl; for (int i = 0; i < data->callchain->nr; i++) { data->ip = data->callchain->ips[i]; if (data->ip >= PERF_CONTEXT_MAX) { switch (data->ip) { case PERF_CONTEXT_HV: // hypervisor samples are not supported for callgraph // TODO: log lost callgraph arc break; case PERF_CONTEXT_KERNEL: in_kernel = true; break; case PERF_CONTEXT_USER: in_kernel = false; break; default: break; } continue; } if (data->ip && __get_operf_trans(data, false, in_kernel)) { if ((trans.current = operf_sfile_find(&trans))) { operf_sfile_log_arc(&trans); update_trans_last(&trans); } } else { if (data->ip) operf_stats[OPERF_BT_LOST_NO_MAPPING]++; } } } } static void __map_hypervisor_sample(u64 ip, u32 pid) { operf_process_info * proc; map::iterator it; it = process_map.find(pid); if (it == process_map.end()) { /* Create a new proc info object, but mark it invalid since we have * not yet received a COMM event for this PID. This sample may be * on behalf of a process created as a result of a fork/exec. * The order of delivery of events is not guaranteed so we may see * this sample event before getting the COMM event for that process. * If this is the case here, we just pass NULL for appname arg. * It will get fixed up later when the COMM event occurs. */ const char * appname_arg; bool is_complete_appname; if (app_name && (app_PID == pid)) { appname_arg = app_name; is_complete_appname = true; } else { appname_arg = NULL; is_complete_appname = false; } proc = new operf_process_info(pid, appname_arg, is_complete_appname, false); if (cverb << vconvert) cout << "Adding new proc info to collection for PID " << pid << endl; process_map[pid] = proc; } else { proc = it->second; } proc->process_hypervisor_mapping(ip); } static int __handle_throttle_event(event_t * event, u64 sample_type) { int rc = 0; trans.event = operfRead.get_eventnum_by_perf_event_id(event->throttle.id); if (trans.event >= 0) __set_event_throttled(trans.event); else rc = -1; return rc; } static int __handle_sample_event(event_t * event, u64 sample_type) { struct sample_data data; bool found_trans = false; bool in_kernel; int rc = 0; const struct operf_mmap * op_mmap = NULL; bool hypervisor = (event->header.misc == PERF_RECORD_MISC_HYPERVISOR); u64 *array = event->sample.array; /* As we extract the various pieces of information from the sample data array, * if we find that the sample type does not match up with an expected mandatory * perf_event_sample_format, we consider this as corruption of the sample data * stream. Since it wouldn't make sense to continue with suspect data, we quit. */ if (sample_type & PERF_SAMPLE_IP) { data.ip = event->ip.ip; array++; } else { rc = -1; goto done; } if (sample_type & PERF_SAMPLE_TID) { u_int32_t *p = (u_int32_t *)array; data.pid = p[0]; data.tid = p[1]; array++; } else { rc = -1; goto done; } data.id = ~0ULL; if (sample_type & PERF_SAMPLE_ID) { data.id = *array; array++; } else { rc = -1; goto done; } // PERF_SAMPLE_CPU is optional (see --separate-cpu). if (sample_type & PERF_SAMPLE_CPU) { u_int32_t *p = (u_int32_t *)array; data.cpu = *p; array++; } if (event->header.misc == PERF_RECORD_MISC_KERNEL) { in_kernel = true; } else if (event->header.misc == PERF_RECORD_MISC_USER) { in_kernel = false; } #if PPC64_ARCH else if (event->header.misc == PERF_RECORD_MISC_HYPERVISOR) { #define MAX_HYPERVISOR_ADDRESS 0xfffffffULL if (data.ip > MAX_HYPERVISOR_ADDRESS) { cverb << vconvert << "Discarding out-of-range hypervisor sample: " << hex << data.ip << endl; operf_stats[OPERF_LOST_INVALID_HYPERV_ADDR]++; goto out; } in_kernel = false; if (first_time_processing) { __map_hypervisor_sample(data.ip, data.pid); } } #endif else { // TODO: Unhandled types are the guest kernel and guest user samples. // We should at least log what we're throwing away. if (cverb << vconvert) { const char * domain; switch (event->header.misc) { case PERF_RECORD_MISC_HYPERVISOR: domain = "hypervisor"; break; #if HAVE_PERF_GUEST_MACROS case PERF_RECORD_MISC_GUEST_KERNEL: domain = "guest OS"; break; case PERF_RECORD_MISC_GUEST_USER: domain = "guest user"; break; #endif default: domain = "unknown"; break; } ostringstream message; message << "Discarding sample from " << domain << " domain: " << hex << data.ip << endl; cout << message.str(); } goto out; } /* If the static variable trans.tgid is still holding its initial value of 0, * then we would incorrectly find trans.tgid and data.pid matching, and * and make wrong assumptions from that match -- ending seg fault. So we * will bail out early if we see a sample for PID 0 coming in and trans.image_name * is NULL (implying the trans object is still in its initial state). */ if (!trans.image_name && (data.pid == 0)) { cverb << vconvert << "Discarding sample for PID 0" << endl; goto out; } if (cverb << vconvert) { ostringstream message; message << "(IP, " << event->header.misc << "): " << dec << data.pid << "/" << data.tid << ": " << hex << (unsigned long long)data.ip << endl << "\tdata ID: " << data.id << endl; cout << message.str(); } // Verify the sample. if (data.id != trans.sample_id) { trans.event = operfRead.get_eventnum_by_perf_event_id(data.id); if (trans.event < 0) { cerr << "Event num " << trans.event << " for id " << data.id << " is invalid. Sample data appears to be corrupted." << endl; rc = -1; goto out; } } /* Only need to check for "no_user" since "no_kernel" is done by * perf_events code. */ if ((operfRead.get_event_by_counter(trans.event)->no_user) && (event->header.misc == PERF_RECORD_MISC_USER)) { // Dropping user domain sample by user request in event spec. goto out; } if ((event->header.misc == PERF_RECORD_MISC_HYPERVISOR) && first_time_processing) { /* We defer processing hypervisor samples until all the samples * are processed. We do this because we synthesize an mmapping * for hypervisor samples and need to modify it (start_addr and/or * end_addr) as new hypervisor samples arrive. If we completely * processed the hypervisor samples during "first_time_processing", * we would end up (usually) with multiple "[hypervisor_bucket]" sample files, * each with a unique address range. So we'll stick the event on * the unresolved_events list to be re-processed later. */ event_t * ev = (event_t *)xmalloc(event->header.size); memcpy(ev, event, event->header.size); unresolved_events.push_back(ev); if (cverb << vconvert) cout << "Deferring processing of hypervisor sample." << endl; goto out; } /* Check for the common case first -- i.e., where the current sample is from * the same context as the previous sample. For the "no-vmlinux" case, start_addr * and end_addr will be zero, so need to make sure we detect that. * The last resort (and most expensive) is to call __get_operf_trans() if the * sample cannot be matched up with a previous tran object. */ if (in_kernel) { if (trans.image_name && trans.tgid == data.pid) { // For the no-vmlinux case . . . if ((trans.start_addr == 0ULL) && (trans.end_addr == 0ULL)) { trans.pc = data.ip; found_trans = true; // For samples in vmlinux or kernel module } else if (data.ip >= trans.start_addr && data.ip <= trans.end_addr) { trans.pc = data.ip; found_trans = true; } } } else if (trans.tgid == data.pid && data.ip >= trans.start_addr && data.ip <= trans.end_addr) { trans.tid = data.tid; if (trans.is_anon) trans.pc = data.ip; else trans.pc = data.ip - trans.start_addr; found_trans = true; } if (!found_trans && __get_operf_trans(&data, hypervisor, in_kernel)) { trans.current = operf_sfile_find(&trans); found_trans = true; } /* * trans.current may be NULL if a kernel sample falls through * the cracks, or if it's a sample from an anon region we couldn't find */ if (found_trans && trans.current) { /* log the sample or arc */ operf_sfile_log_sample(&trans); update_trans_last(&trans); if (sample_type & PERF_SAMPLE_CALLCHAIN) __handle_callchain(array, &data); goto done; } if (first_time_processing) { event_t * ev = (event_t *)malloc(event->header.size); memcpy(ev, event, event->header.size); unresolved_events.push_back(ev); } out: clear_trans(&trans); done: return rc; } /* This function is used by operf_read::convertPerfData() to convert perf-formatted * data to oprofile sample data files. After the header information in the perf sample data, * the next piece of data is typically the PERF_RECORD_COMM record which tells us the name of the * application/command being profiled. This is followed by PERF_RECORD_MMAP records * which indicate what binary executables and libraries were mmap'ed into process memory * when profiling began. Additional PERF_RECORD_MMAP records may appear later in the data * stream (e.g., dlopen for single-process profiling or new process startup for system-wide * profiling. * * This function returns '0' on success and '-1' on failure. A failure implies the sample * data is probably corrupt and the calling function should handle appropriately. */ int OP_perf_utils::op_write_event(event_t * event, u64 sample_type) { #if 0 if (event->header.type < PERF_RECORD_MAX) { cverb << vconvert << "PERF_RECORD type " << hex << event->header.type << endl; } #endif switch (event->header.type) { case PERF_RECORD_SAMPLE: return __handle_sample_event(event, sample_type); case PERF_RECORD_MMAP: __handle_mmap_event(event); return 0; case PERF_RECORD_COMM: if (!sfile_init_done) { operf_sfile_init(); sfile_init_done = true; } __handle_comm_event(event); return 0; case PERF_RECORD_FORK: __handle_fork_event(event); return 0; case PERF_RECORD_THROTTLE: return __handle_throttle_event(event, sample_type); case PERF_RECORD_LOST: operf_stats[OPERF_RECORD_LOST_SAMPLE] += event->lost.lost; return 0; case PERF_RECORD_EXIT: return 0; default: if (event->header.type > PERF_RECORD_MAX) { // Bad header ostringstream message; message << "Invalid event type " << hex << event->header.type << endl; message << "Sample data is probably corrupted." << endl; cerr << message.str(); return -1; } else { ostringstream message; message << "Event type "<< hex << event->header.type << " is ignored." << endl; cverb << vconvert << message.str(); return 0; } } } void OP_perf_utils::op_reprocess_unresolved_events(u64 sample_type, bool print_progress) { int num_recs = 0; cverb << vconvert << "Reprocessing samples" << endl; map::iterator procs = process_map.begin(); for (; procs != process_map.end(); procs++) { if (!procs->second->is_valid()) { if (procs->second->is_forked()) { procs->second->connect_forked_process_to_parent(); } else { procs->second->set_valid(); } } // Force the appname_valid to true so we don't drop any samples for this process. // The appname may not be accurate, but it's the best we can do now. procs->second->set_appname_valid(); } list::const_iterator it = unresolved_events.begin(); int data_error = 0; for (; it != unresolved_events.end(); it++) { event_t * evt = (*it); if (data_error < 0) { free(evt); continue; } // This is just a sanity check, since all events in this list // are unresolved sample events. if (evt->header.type == PERF_RECORD_SAMPLE) { data_error = __handle_sample_event(evt, sample_type); free(evt); num_recs++; if ((num_recs % 1000000 == 0) && print_progress) cerr << "."; } } } void OP_perf_utils::op_release_resources(void) { map::iterator it = process_map.begin(); while (it != process_map.end()) delete it++->second; process_map.clear(); multimap::iterator images_it = all_images_map.begin(); while (images_it != all_images_map.end()) delete images_it++->second; all_images_map.clear(); delete kernel_mmap; operf_sfile_close_files(); operf_free_modules_list(); } void OP_perf_utils::op_perfrecord_sigusr1_handler(int sig __attribute__((unused)), siginfo_t * siginfo __attribute__((unused)), void *u_context __attribute__((unused))) { quit = true; } int OP_perf_utils::op_read_from_stream(ifstream & is, char * buf, streamsize sz) { int rc = 0; is.read(buf, sz); if (!is.eof() && is.fail()) { cerr << "Internal error: Failed to read from input file." << endl; rc = -1; } else { rc = is.gcount(); } return rc; } static int __mmap_trace_file(struct mmap_info & info) { int mmap_prot = PROT_READ; int mmap_flags = MAP_SHARED; info.buf = (char *) mmap(NULL, mmap_size, mmap_prot, mmap_flags, info.traceFD, info.offset); if (info.buf == MAP_FAILED) { ostringstream message; message << "Error: mmap failed with errno:\n\t" << strerror(errno) << endl; message << "\tmmap_size: 0x" << hex << mmap_size << "; offset: 0x" << info.offset << endl; cerr << message.str(); return -1; } else { ostringstream message; message << hex << "mmap with the following parameters" << endl << "\tinfo.head: " << info.head << endl << "\tinfo.offset: " << info.offset << endl; cverb << vconvert << message.str(); return 0; } } int OP_perf_utils::op_mmap_trace_file(struct mmap_info & info, bool init) { u64 shift; if (init) { if (!mmap_size) { if (MMAP_WINDOW_SZ > info.file_data_size) { mmap_size = info.file_data_size; } else { mmap_size = MMAP_WINDOW_SZ; } } info.offset = 0; info.head = info.file_data_offset; shift = pg_sz * (info.head / pg_sz); info.offset += shift; info.head -= shift; } return __mmap_trace_file(info); } int OP_perf_utils::op_write_output(int output, void *buf, size_t size) { int sum = 0; while (size) { int ret = write(output, buf, size); if (ret < 0) { if (errno == EINTR) continue; string errmsg = "Internal error: Failed to write sample data to output fd. errno is "; errmsg += strerror(errno); throw runtime_error(errmsg); } size -= ret; buf = (char *)buf + ret; sum += ret; } return sum; } void OP_perf_utils::op_record_process_exec_mmaps(pid_t pid, pid_t tgid, int output_fd, operf_record * pr) { char fname[PATH_MAX]; FILE *fp; snprintf(fname, sizeof(fname), "/proc/%d/maps", tgid); fp = fopen(fname, "r"); if (fp == NULL) { // Process must have exited already or invalid pid. cverb << vrecord << "couldn't open " << fname << endl; return; } while (1) { char line_buffer[BUFSIZ]; char perms[5], pathname[PATH_MAX], dev[16]; unsigned long long start_addr, end_addr, offset; const char * anon_mem = "//anon"; u_int32_t inode; memset(pathname, '\0', sizeof(pathname)); struct mmap_event mmap; size_t size; memset(&mmap, 0, sizeof(mmap)); mmap.pgoff = 0; mmap.header.type = PERF_RECORD_MMAP; mmap.header.misc = PERF_RECORD_MISC_USER; if (fgets(line_buffer, sizeof(line_buffer), fp) == NULL) break; sscanf(line_buffer, "%llx-%llx %s %llx %s %d %s", &start_addr, &end_addr, perms, &offset, dev, &inode, pathname); if (perms[2] == 'x') { char *imagename = strchr(pathname, '/'); if (imagename == NULL) imagename = strstr(pathname, "[vdso]"); if ((imagename == NULL) && !strstr(pathname, "[")) imagename = (char *)anon_mem; if (imagename == NULL) continue; size = strlen(imagename) + 1; strcpy(mmap.filename, imagename); size = align_64bit(size); mmap.start = start_addr; mmap.len = end_addr - mmap.start; mmap.pid = tgid; mmap.tid = pid; mmap.header.size = (sizeof(mmap) - (sizeof(mmap.filename) - size)); int num = OP_perf_utils::op_write_output(output_fd, &mmap, mmap.header.size); if (cverb << vrecord) cout << "Created MMAP event for " << imagename << endl; pr->add_to_total(num); } } fclose(fp); return; } static int _get_one_process_info(bool sys_wide, pid_t pid, operf_record * pr) { struct comm_event comm; char fname[PATH_MAX]; char buff[BUFSIZ]; FILE *fp; pid_t tgid = 0; size_t size = 0; DIR *tids; struct dirent dirent, *next; int ret = 0; snprintf(fname, sizeof(fname), "/proc/%d/status", pid); fp = fopen(fname, "r"); if (fp == NULL) { /* Process must have finished or invalid PID passed into us. * If we're doing system-wide profiling, this case can naturally * occur, and it's not an error. But if profiling on a single * application, we can't continue after this, so we'll bail out now. */ if (!sys_wide) { cerr << "Unable to find process information for process " << pid << "." << endl; cverb << vrecord << "couldn't open " << fname << endl; return OP_PERF_HANDLED_ERROR; } else { return 0; } } memset(&comm, 0, sizeof(comm)); while (!comm.comm[0] || !comm.pid) { if (fgets(buff, sizeof(buff), fp) == NULL) { ret = -1; cverb << vrecord << "Did not find Name or PID field in status file." << endl; goto out; } if (!strncmp(buff, "Name:", 5)) { char *name = buff + 5; while (*name && isspace(*name)) ++name; size = strlen(name) - 1; // The "Name" field in /proc/pid/status currently only allows for 16 characters, // but I'm not going to count on that being stable. We'll ensure we copy no more // than 16 chars since the comm.comm char array only holds 16. size = size > 16 ? 16 : size; memcpy(comm.comm, name, size++); } else if (memcmp(buff, "Tgid:", 5) == 0) { char *tgids = buff + 5; while (*tgids && isspace(*tgids)) ++tgids; tgid = comm.pid = atoi(tgids); } } comm.header.type = PERF_RECORD_COMM; size = align_64bit(size); comm.header.size = sizeof(comm) - (sizeof(comm.comm) - size); if (tgid != pid) { // passed pid must have been a secondary thread, and we // don't go looking at the /proc//task of such processes. comm.tid = pid; pr->add_process(comm); goto out; } snprintf(fname, sizeof(fname), "/proc/%d/task", pid); tids = opendir(fname); if (tids == NULL) { // process must have exited ret = -1; cverb << vrecord << "Process " << pid << " apparently exited while " << "process info was being collected"<< endl; goto out; } while (!readdir_r(tids, &dirent, &next) && next) { char *end; pid = strtol(dirent.d_name, &end, 10); if (*end) continue; comm.tid = pid; pr->add_process(comm); } closedir(tids); out: fclose(fp); if (ret) { cverb << vrecord << "couldn't get app name and tgid for pid " << dec << pid << " from /proc fs." << endl; } return ret; } /* Obtain process information for an active process (where the user has * passed in a process ID via the --pid option) or all active processes * (where system_wide==true). */ int OP_perf_utils::op_get_process_info(bool system_wide, pid_t pid, operf_record * pr) { int ret = 0; if (cverb << vrecord) cout << "op_get_process_info" << endl; if (!system_wide) { ret = _get_one_process_info(system_wide, pid, pr); } else { char buff[BUFSIZ]; pid_t tgid = 0; size_t size = 0; DIR *pids; struct dirent dirent, *next; pids = opendir("/proc"); if (pids == NULL) { cerr << "Unable to open /proc." << endl; return -1; } while (!readdir_r(pids, &dirent, &next) && next) { char *end; pid = strtol(dirent.d_name, &end, 10); if (((errno == ERANGE && (pid == LONG_MAX || pid == LONG_MIN)) || (errno != 0 && pid == 0)) || (end == dirent.d_name)) { cverb << vmisc << "/proc entry " << dirent.d_name << " is not a PID" << endl; continue; } if ((ret = _get_one_process_info(system_wide, pid, pr)) < 0) break; } closedir(pids); } return ret; } /* * each line is in the format: * * module_name 16480 1 dependencies Live 0xe091e000 * * without any blank space in each field */ static void _record_module_info(int output_fd, operf_record * pr) { const char * fname = "/proc/modules"; FILE *fp; char * line; struct operf_kernel_image * image; int module_size; char ref_count[32+1]; int ret; char module_name[256+1]; char live_info[32+1]; char dependencies[4096+1]; unsigned long long start_address; fp = fopen(fname, "r"); if (fp == NULL) { cerr << "Error opening /proc/modules. Unable to process module samples" << endl; cerr << strerror(errno) << endl; return; } while (1) { struct mmap_event mmap; size_t size; memset(&mmap, 0, sizeof(mmap)); mmap.pgoff = 0; line = op_get_line(fp); if (!line) break; if (line[0] == '\0') { free(line); continue; } ret = sscanf(line, "%256s %u %32s %4096s %32s %llx", module_name, &module_size, ref_count, dependencies, live_info, &start_address); if (ret != 6) { cerr << "op_record_kernel_info: Bad /proc/modules entry: \n\t" << line << endl; free(line); continue; } mmap.header.type = PERF_RECORD_MMAP; mmap.header.misc = PERF_RECORD_MISC_KERNEL; size = strlen(module_name) + 1; strncpy(mmap.filename, module_name, size); size = align_64bit(size); mmap.start = start_address; mmap.len = module_size; mmap.pid = 0; mmap.tid = 0; mmap.header.size = (sizeof(mmap) - (sizeof(mmap.filename) - size)); int num = OP_perf_utils::op_write_output(output_fd, &mmap, mmap.header.size); if (cverb << vrecord) cout << "Created MMAP event for " << module_name << ". Size: " << module_size << "; start addr: " << start_address << endl; pr->add_to_total(num); free(line); } fclose(fp); return; } void OP_perf_utils::op_record_kernel_info(string vmlinux_file, u64 start_addr, u64 end_addr, int output_fd, operf_record * pr) { struct mmap_event mmap; size_t size; memset(&mmap, 0, sizeof(mmap)); mmap.pgoff = 0; mmap.header.type = PERF_RECORD_MMAP; mmap.header.misc = PERF_RECORD_MISC_KERNEL; if (vmlinux_file.empty()) { size = strlen( "no_vmlinux") + 1; strncpy(mmap.filename, "no-vmlinux", size); mmap.start = 0ULL; mmap.len = 0ULL; } else { size = vmlinux_file.length() + 1; strncpy(mmap.filename, vmlinux_file.c_str(), size); mmap.start = start_addr; mmap.len = end_addr - mmap.start; } size = align_64bit(size); mmap.pid = 0; mmap.tid = 0; mmap.header.size = (sizeof(mmap) - (sizeof(mmap.filename) - size)); int num = op_write_output(output_fd, &mmap, mmap.header.size); if (cverb << vrecord) { ostringstream message; message << "Created MMAP event of size " << mmap.header.size << " for " <add_to_total(num); _record_module_info(output_fd, pr); } void OP_perf_utils::op_get_kernel_event_data(struct mmap_data *md, operf_record * pr) { struct perf_event_mmap_page *pc = (struct perf_event_mmap_page *)md->base; int out_fd = pr->out_fd(); uint64_t head = pc->data_head; // Comment in perf_event.h says "User-space reading the @data_head value should issue // an rmb(), on SMP capable platforms, after reading this value." rmb(); uint64_t old = md->prev; unsigned char *data = ((unsigned char *)md->base) + pagesize; uint64_t size; void *buf; int64_t diff; if (old == head) return; diff = head - old; if (diff < 0) { throw runtime_error("ERROR: event buffer wrapped, which should NEVER happen."); } if (old != head) sample_reads++; size = head - old; if ((old & md->mask) + size != (head & md->mask)) { buf = &data[old & md->mask]; size = md->mask + 1 - (old & md->mask); old += size; pr->add_to_total(op_write_output(out_fd, buf, size)); } buf = &data[old & md->mask]; size = head - old; old += size; pr->add_to_total(op_write_output(out_fd, buf, size)); md->prev = old; pc->data_tail = old; } int OP_perf_utils::op_get_next_online_cpu(DIR * dir, struct dirent *entry) { #define OFFLINE 0x30 unsigned int cpu_num; char cpu_online_pathname[40]; int res; FILE * online; again: do { entry = readdir(dir); if (!entry) return -1; } while (entry->d_type != DT_DIR); res = sscanf(entry->d_name, "cpu%u", &cpu_num); if (res <= 0) goto again; errno = 0; snprintf(cpu_online_pathname, 40, "/sys/devices/system/cpu/cpu%u/online", cpu_num); if ((online = fopen(cpu_online_pathname, "r")) == NULL) { cerr << "Unable to open " << cpu_online_pathname << endl; if (errno) cerr << strerror(errno) << endl; return -1; } res = fgetc(online); fclose(online); if (res == OFFLINE) goto again; else return cpu_num; } oprofile-0.9.9/libperf_events/operf_mangling.cpp0000664000076400007640000001212512175510131017002 00000000000000/* * @file pe_profiling/operf_mangling.cpp * This file is based on daemon/opd_mangling and is used for * mangling and opening of sample files for operf. * * @remark Copyright 2011 OProfile authors * @remark Read the file COPYING * * Created on: Dec 15, 2011 * @author Maynard Johnson * (C) Copyright IBM Corp. 2011 */ #include #include #include "operf_utils.h" #include "operf_mangling.h" #include "operf_kernel.h" #include "operf_sfile.h" #include "operf_counter.h" #include "op_file.h" #include "op_sample_file.h" #include "op_mangle.h" #include "op_events.h" #include "op_libiberty.h" #include "cverb.h" #include #include #include #include #include extern operf_read operfRead; extern op_cpu cpu_type; extern double cpu_speed; using namespace std; static const char * mangle_anon(struct operf_sfile const * anon) { char * name = (char *)xmalloc(PATH_MAX); snprintf(name, 1024, "%u.0x%llx.0x%llx", (unsigned int)anon->tgid, anon->start_addr, anon->end_addr); return (const char *)name; } static char * mangle_filename(struct operf_sfile * last, struct operf_sfile const * sf, int counter, int cg) { char * mangled; struct mangle_values values = {0, NULL, NULL, NULL, NULL, NULL, 0, 0, -1, -1, -1}; const struct operf_event * event = operfRead.get_event_by_counter(counter); values.anon_name = NULL; values.flags = 0; if (sf->kernel) { values.image_name = sf->kernel->name; values.flags |= MANGLE_KERNEL; } else if (sf->is_anon) { values.flags |= MANGLE_ANON; values.image_name = mangle_anon(sf); values.anon_name = sf->image_name; } else { values.image_name = sf->image_name; } values.dep_name = sf->app_filename; if (operf_options::separate_thread) { values.flags |= MANGLE_TGID | MANGLE_TID; values.tid = sf->tid; values.tgid = sf->tgid; } if (operf_options::separate_cpu) { values.flags |= MANGLE_CPU; values.cpu = sf->cpu; } if (cg) { values.flags |= MANGLE_CALLGRAPH; if (last->kernel) { values.cg_image_name = last->kernel->name; } else if (last->is_anon) { values.flags |= MANGLE_CG_ANON; values.cg_image_name = mangle_anon((struct operf_sfile const *)last); values.anon_name = "anon"; } else { values.cg_image_name = last->image_name; } } values.event_name = event->name; values.count = event->count; values.unit_mask = event->evt_um; mangled = op_mangle_filename(&values); if (values.flags & MANGLE_ANON) free((char *)values.image_name); if (values.flags & MANGLE_CG_ANON) free((char *)values.cg_image_name); return mangled; } static void fill_header(struct opd_header * header, unsigned long counter, vma_t anon_start, vma_t cg_to_anon_start, int is_kernel, int cg_to_is_kernel, int spu_samples, uint64_t embed_offset, time_t mtime) { const operf_event_t * event = operfRead.get_event_by_counter(counter); memset(header, '\0', sizeof(struct opd_header)); header->version = OPD_VERSION; memcpy(header->magic, OPD_MAGIC, sizeof(header->magic)); header->cpu_type = cpu_type; header->ctr_event = event->op_evt_code; header->ctr_count = event->count; header->ctr_um = event->evt_um; header->is_kernel = is_kernel; header->cg_to_is_kernel = cg_to_is_kernel; header->cpu_speed = cpu_speed; header->mtime = mtime; header->anon_start = anon_start; header->spu_profile = spu_samples; header->embedded_offset = embed_offset; header->cg_to_anon_start = cg_to_anon_start; } int operf_open_sample_file(odb_t *file, struct operf_sfile *last, struct operf_sfile * sf, int counter, int cg) { char * mangled; char const * binary; vma_t last_start = 0; int err; mangled = mangle_filename(last, sf, counter, cg); if (!mangled) return EINVAL; cverb << vsfile << "Opening \"" << mangled << "\"" << endl; err = create_path(mangled); if (err) { cerr << "operf: create path for " << mangled << " failed: " << strerror(err) << endl; goto out; } /* locking sf will lock associated cg files too */ operf_sfile_get(sf); if (sf != last) operf_sfile_get(last); retry: err = odb_open(file, mangled, ODB_RDWR, sizeof(struct opd_header)); /* This should never happen unless someone is clearing out sample data dir. */ if (err) { if (err == EMFILE) { if (operf_sfile_lru_clear()) { cerr << "LRU cleared but odb_open() fails for " << mangled << endl; abort(); } goto retry; } if (err == EINTR) { cverb << vsfile << "operf: open of " << mangled << " was interrupted. Trying again." << endl; goto retry; } cerr << "operf: open of " << mangled << " failed: " << strerror(err) << endl; goto out; } if (!sf->kernel) binary = sf->image_name; else binary = sf->kernel->name; if (last && last->is_anon) last_start = last->start_addr; fill_header((struct opd_header *)odb_get_data(file), counter, sf->is_anon ? sf->start_addr : 0, last_start, !!sf->kernel, last ? !!last->kernel : 0, 0, 0, binary ? op_get_mtime(binary) : 0); out: operf_sfile_put(sf); if (sf != last) operf_sfile_put(last); free(mangled); return err; } oprofile-0.9.9/libperf_events/operf_counter.cpp0000664000076400007640000010046512175510131016672 00000000000000/** * @file pe_profiling/operf_counter.cpp * C++ class implementation that abstracts the user-to-kernel interface * for using Linux Performance Events Subsystem. * * @remark Copyright 2011 OProfile authors * @remark Read the file COPYING * * Created on: Dec 7, 2011 * @author Maynard Johnson * (C) Copyright IBM Corp. 2011 * * Modified by Maynard Johnson * (C) Copyright IBM Corporation 2012 * */ #include #include #include #include #include #include #include #include #include #include "op_events.h" #include "operf_counter.h" #include "op_abi.h" #include "cverb.h" #include "operf_process_info.h" #include "op_libiberty.h" #include "operf_stats.h" using namespace std; using namespace OP_perf_utils; volatile bool quit; int sample_reads; int num_mmap_pages; unsigned int pagesize; verbose vrecord("record"); verbose vconvert("convert"); extern bool first_time_processing; extern bool throttled; extern size_t mmap_size; extern size_t pg_sz; extern bool use_cpu_minus_one; namespace { vector event_names; static const char *__op_magic = "OPFILE"; #define OP_MAGIC (*(u64 *)__op_magic) /* This function for reading an event from the sample data pipe must * be robust enough to handle the situation where the operf_record process * writes an event record to the pipe in multiple chunks. */ #define OP_PIPE_READ_OK 0 #define OP_PIPE_CLOSED -1 static int _get_perf_event_from_pipe(event_t * event, int sample_data_fd) { static size_t pe_header_size = sizeof(perf_event_header); size_t read_size = pe_header_size; int rc = OP_PIPE_READ_OK; char * evt = (char *)event; ssize_t num_read; perf_event_header * header = (perf_event_header *)event; memset(header, '\0', pe_header_size); /* A signal handler was setup for the operf_read process to handle interrupts * (i.e., from ctrl-C), so the read syscalls below may get interrupted. But the * operf_read process should ignore the interrupt and continue processing * until there's no more data to read or until the parent operf process * forces us to stop. So we must try the read operation again if it was * interrupted. */ again: errno = 0; if ((num_read = read(sample_data_fd, header, read_size)) < 0) { cverb << vdebug << "Read 1 of sample data pipe returned with " << strerror(errno) << endl; if (errno == EINTR) { goto again; } else { rc = OP_PIPE_CLOSED; goto out; } } else if (num_read == 0) { // Implies pipe has been closed on the write end, so return -1 to quit reading rc = OP_PIPE_CLOSED; goto out; } else if (num_read != read_size) { header += num_read; read_size -= num_read; goto again; } read_size = header->size - pe_header_size; if (read_size == 0) /* This is technically a valid record -- it's just empty. I'm not * sure if this can happen (i.e., if the kernel ever creates empty * records), but we'll handle it just in case. */ goto again; if (!header->size || (header->size < pe_header_size)) /* Bogus header size detected. In this case, we don't set rc to -1, * because the caller will catch this error when it calls is_header_valid(). * I've seen such bogus stuff occur when profiling lots of processes at * a very high sampling frequency. This issue is still being investigated, * so for now, we'll just do our best to detect and handle gracefully. */ goto out; evt += pe_header_size; again2: if ((num_read = read(sample_data_fd, evt, read_size)) < 0) { cverb << vdebug << "Read 2 of sample data pipe returned with " << strerror(errno) << endl; if (errno == EINTR) { goto again2; } else { rc = OP_PIPE_CLOSED; if (errno == EFAULT) cerr << "Size of event record: " << header->size << endl; goto out; } } else if (num_read == 0) { // Implies pipe has been closed on the write end, so return -1 to quit reading rc = OP_PIPE_CLOSED; goto out; } else if (num_read != read_size) { evt += num_read; read_size -= num_read; goto again; } out: return rc; } static event_t * _get_perf_event_from_file(struct mmap_info & info) { uint32_t size = 0; static int num_remaps = 0; event_t * event; size_t pe_header_size = sizeof(struct perf_event_header); try_again: event = NULL; if (info.offset + info.head + pe_header_size > info.file_data_size) goto out; if (info.head + pe_header_size <= mmap_size) event = (event_t *)(info.buf + info.head); if (unlikely(!event || (info.head + event->header.size > mmap_size))) { int ret; u64 shift = pg_sz * (info.head / pg_sz); cverb << vdebug << "Remapping perf data file: " << dec << ++num_remaps << endl; ret = munmap(info.buf, mmap_size); if (ret) { string errmsg = "Internal error: munmap of perf data file failed with errno: "; errmsg += strerror(errno); throw runtime_error(errmsg); } info.offset += shift; info.head -= shift; ret = op_mmap_trace_file(info, false); if (ret) { string errmsg = "Internal error: mmap of perf data file failed with errno: "; errmsg += strerror(errno); throw runtime_error(errmsg); } goto try_again; } size = event->header.size; info.head += size; out: if (unlikely(!event)) { cverb << vdebug << "No more event records in file. info.offset: " << dec << info.offset << "; info.head: " << info.head << "; info.file_data_size: " << info.file_data_size << endl << "; mmap_size: " << mmap_size << "; current record size: " << size << endl; } return event; } } // end anonymous namespace operf_counter::operf_counter(operf_event_t & evt, bool enable_on_exec, bool do_cg, bool separate_cpu, bool inherit, int event_number) { memset(&attr, 0, sizeof(attr)); attr.size = sizeof(attr); attr.sample_type = OP_BASIC_SAMPLE_FORMAT; if (do_cg) attr.sample_type |= PERF_SAMPLE_CALLCHAIN; if (separate_cpu) attr.sample_type |= PERF_SAMPLE_CPU; attr.type = PERF_TYPE_RAW; #if ((defined(__i386__) || defined(__x86_64__)) && (HAVE_PERF_PRECISE_IP)) if (evt.evt_code & EXTRA_PEBS) { attr.precise_ip = 2; evt.evt_code ^= EXTRA_PEBS; } #endif attr.config = evt.evt_code; attr.sample_period = evt.count; attr.inherit = inherit ? 1 : 0; attr.enable_on_exec = enable_on_exec ? 1 : 0; attr.disabled = 1; attr.exclude_idle = 0; attr.exclude_kernel = evt.no_kernel; attr.exclude_hv = evt.no_hv; attr.read_format = PERF_FORMAT_ID; event_name = evt.name; fd = id = -1; evt_num = event_number; } operf_counter::~operf_counter() { } int operf_counter::perf_event_open(pid_t pid, int cpu, operf_record * rec) { struct { u64 count; u64 id; } read_data; if (evt_num == 0) { attr.mmap = 1; attr.comm = 1; } fd = op_perf_event_open(&attr, pid, cpu, -1, 0); if (fd < 0) { int ret = -1; cverb << vrecord << "perf_event_open failed: " << strerror(errno) << endl; if (errno == EBUSY) { cerr << "The performance monitoring hardware reports EBUSY. Is another profiling tool in use?" << endl << "On some architectures, tools such as oprofile and perf being used in system-wide " << "mode can cause this problem." << endl; ret = OP_PERF_HANDLED_ERROR; } else if (errno == ESRCH) { cerr << "!!!! No samples collected !!!" << endl; cerr << "The target program/command ended before profiling was started." << endl; ret = OP_PERF_HANDLED_ERROR; } else { cerr << "perf_event_open failed with " << strerror(errno) << endl; } return ret; } if (read(fd, &read_data, sizeof(read_data)) == -1) { perror("Error reading perf_event fd"); return -1; } rec->register_perf_event_id(evt_num, read_data.id, attr); cverb << vrecord << "perf_event_open returning fd " << fd << endl; return fd; } operf_record::~operf_record() { cverb << vrecord << "operf_record::~operf_record()" << endl; opHeader.data_size = total_bytes_recorded; // If recording to a file, we re-write the op_header info // in order to update the data_size field. if (total_bytes_recorded && write_to_file) write_op_header_info(); if (poll_data) delete[] poll_data; for (int i = 0; i < samples_array.size(); i++) { struct mmap_data *md = &samples_array[i]; munmap(md->base, (num_mmap_pages + 1) * pagesize); } samples_array.clear(); evts.clear(); perfCounters.clear(); /* Close output_fd last. If sample data was being written to a pipe, we want * to give the pipe reader (i.e., operf_read::convertPerfData) as much time * as possible in order to drain the pipe of any remaining data. */ close(output_fd); } operf_record::operf_record(int out_fd, bool sys_wide, pid_t the_pid, bool pid_running, vector & events, vmlinux_info_t vi, bool do_cg, bool separate_by_cpu, bool out_fd_is_file) { int flags = O_CREAT|O_RDWR|O_TRUNC; struct sigaction sa; sigset_t ss; vmlinux_file = vi.image_name; kernel_start = vi.start; kernel_end = vi.end; pid_to_profile = the_pid; pid_started = pid_running; system_wide = sys_wide; callgraph = do_cg; separate_cpu = separate_by_cpu; total_bytes_recorded = 0; poll_count = 0; evts = events; valid = false; poll_data = NULL; output_fd = out_fd; write_to_file = out_fd_is_file; opHeader.data_size = 0; num_cpus = -1; if (system_wide && (pid_to_profile != -1 || pid_started)) return; // object is not valid cverb << vrecord << "operf_record ctor using output fd " << output_fd << endl; memset(&sa, 0, sizeof(struct sigaction)); sa.sa_sigaction = op_perfrecord_sigusr1_handler; sigemptyset(&sa.sa_mask); sigemptyset(&ss); sigaddset(&ss, SIGUSR1); sigprocmask(SIG_UNBLOCK, &ss, NULL); sa.sa_mask = ss; sa.sa_flags = SA_NOCLDSTOP | SA_SIGINFO; cverb << vrecord << "calling sigaction" << endl; if (sigaction(SIGUSR1, &sa, NULL) == -1) { cverb << vrecord << "operf_record ctor: sigaction failed; errno is: " << strerror(errno) << endl; _exit(EXIT_FAILURE); } cverb << vrecord << "calling setup" << endl; setup(); } int operf_record::_write_header_to_file(void) { struct OP_file_header f_header; struct op_file_attr f_attr; int total = 0; if (lseek(output_fd, sizeof(f_header), SEEK_SET) == (off_t)-1) goto err_out; for (unsigned i = 0; i < evts.size(); i++) { opHeader.h_attrs[i].id_offset = lseek(output_fd, 0, SEEK_CUR); if (opHeader.h_attrs[i].id_offset == (off_t)-1) goto err_out; total += op_write_output(output_fd, &opHeader.h_attrs[i].ids[0], opHeader.h_attrs[i].ids.size() * sizeof(u64)); } opHeader.attr_offset = lseek(output_fd, 0, SEEK_CUR); if (opHeader.attr_offset == (off_t)-1) goto err_out; for (unsigned i = 0; i < evts.size(); i++) { struct op_header_evt_info attr = opHeader.h_attrs[i]; f_attr.attr = attr.attr; f_attr.ids.offset = attr.id_offset; f_attr.ids.size = attr.ids.size() * sizeof(u64); total += op_write_output(output_fd, &f_attr, sizeof(f_attr)); } opHeader.data_offset = lseek(output_fd, 0, SEEK_CUR); if (opHeader.data_offset == (off_t)-1) goto err_out; f_header.magic = OP_MAGIC; f_header.size = sizeof(f_header); f_header.attr_size = sizeof(f_attr); f_header.attrs.offset = opHeader.attr_offset; f_header.attrs.size = evts.size() * sizeof(f_attr); f_header.data.offset = opHeader.data_offset; f_header.data.size = opHeader.data_size; if (lseek(output_fd, 0, SEEK_SET) == (off_t)-1) goto err_out; total += op_write_output(output_fd, &f_header, sizeof(f_header)); if (lseek(output_fd, opHeader.data_offset + opHeader.data_size, SEEK_SET) == (off_t)-1) goto err_out; return total; err_out: string errmsg = "Internal error doing lseek: "; errmsg += strerror(errno); throw runtime_error(errmsg); } int operf_record::_write_header_to_pipe(void) { struct OP_file_header f_header; struct op_file_attr f_attr; int total; f_header.magic = OP_MAGIC; f_header.size = sizeof(f_header); f_header.attr_size = sizeof(f_attr); f_header.attrs.size = evts.size() * sizeof(f_attr); f_header.data.size = 0; total = op_write_output(output_fd, &f_header, sizeof(f_header)); for (unsigned i = 0; i < evts.size(); i++) { struct op_header_evt_info attr = opHeader.h_attrs[i]; f_attr.attr = attr.attr; f_attr.ids.size = attr.ids.size() * sizeof(u64); total += op_write_output(output_fd, &f_attr, sizeof(f_attr)); } for (unsigned i = 0; i < evts.size(); i++) { total += op_write_output(output_fd, &opHeader.h_attrs[i].ids[0], opHeader.h_attrs[i].ids.size() * sizeof(u64)); } return total; } void operf_record::register_perf_event_id(unsigned event, u64 id, perf_event_attr attr) { // It's overkill to blindly do this assignment below every time, since this function // is invoked once for each event for each cpu; but it's not worth the bother of trying // to avoid it. opHeader.h_attrs[event].attr = attr; ostringstream message; message << "Perf header: id = " << hex << (unsigned long long)id << " for event num " << event << ", code " << attr.config << endl; cverb << vrecord << message.str(); opHeader.h_attrs[event].ids.push_back(id); } void operf_record::write_op_header_info() { if (write_to_file) add_to_total(_write_header_to_file()); else add_to_total(_write_header_to_pipe()); } int operf_record::_prepare_to_record_one_fd(int idx, int fd) { struct mmap_data md; md.prev = 0; md.mask = num_mmap_pages * pagesize - 1; if (fcntl(fd, F_SETFL, O_NONBLOCK) < 0) { perror("fcntl failed"); return -1; } poll_data[idx].fd = fd; poll_data[idx].events = POLLIN; poll_count++; md.base = mmap(NULL, (num_mmap_pages + 1) * pagesize, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); if (md.base == MAP_FAILED) { if (errno == EPERM) { cerr << "Failed to mmap kernel profile data." << endl; cerr << "This issue may be caused by a non-root user running multiple operf" << endl; cerr << "sessions simultaneously. Try running as root or increasing the value of" << endl; cerr << "/proc/sys/kernel/perf_event_mlock_kb to resolve the problem." << endl << endl; return OP_PERF_HANDLED_ERROR; } else { perror("failed to mmap"); } return -1; } samples_array.push_back(md); return 0; } int operf_record::prepareToRecord(void) { int op_ctr_idx = 0; int rc = 0; errno = 0; if (pid_started && (procs.size() > 1)) { /* Implies we're profiling a thread group, where we call perf_event_open * on each thread (process) in the group, passing cpu=-1. So we'll do * one mmap per thread (by way of the _prepare_to_record_one_fd function). * If more than one event has been specified to profile on, we just do an * ioctl PERF_EVENT_IOC_SET_OUTPUT to tie that perf_event fd with the fd * of the first event of the thread. */ // Sanity check if ((procs.size() * evts.size()) != perfCounters.size()) { cerr << "Internal error: Number of fds[] (" << perfCounters.size() << ") != number of processes x number of events (" << procs.size() << " x " << evts.size() << ")." << endl; return -1; } for (unsigned int proc_idx = 0; proc_idx < procs.size(); proc_idx++) { int fd_for_set_output = perfCounters[op_ctr_idx].get_fd(); for (unsigned event = 0; event < evts.size(); event++) { int fd = perfCounters[op_ctr_idx].get_fd(); if (event == 0) { rc = _prepare_to_record_one_fd(proc_idx, fd); } else { if ((rc = ioctl(fd, PERF_EVENT_IOC_SET_OUTPUT, fd_for_set_output)) < 0) perror("prepareToRecord: ioctl #1 failed"); } if (rc < 0) return rc; if ((rc = ioctl(fd, PERF_EVENT_IOC_ENABLE)) < 0) { perror("prepareToRecord: ioctl #2 failed"); return rc; } op_ctr_idx++; } } } else { /* We're either doing a system-wide profile or a profile of a single process. * We'll do one mmap per cpu. If more than one event has been specified * to profile on, we just do an ioctl PERF_EVENT_IOC_SET_OUTPUT to tie * that perf_event fd with the fd of the first event of the cpu. */ if ((num_cpus * evts.size()) != perfCounters.size()) { cerr << "Internal error: Number of fds[] (" << perfCounters.size() << ") != number of cpus x number of events (" << num_cpus << " x " << evts.size() << ")." << endl; return -1; } for (unsigned int cpu = 0; cpu < num_cpus; cpu++) { int fd_for_set_output = perfCounters[op_ctr_idx].get_fd(); for (unsigned event = 0; event < evts.size(); event++) { int fd = perfCounters[op_ctr_idx].get_fd(); if (event == 0) { rc = _prepare_to_record_one_fd(cpu, fd); } else { if ((rc = ioctl(fd, PERF_EVENT_IOC_SET_OUTPUT, fd_for_set_output)) < 0) perror("prepareToRecord: ioctl #3 failed"); } if (rc < 0) return rc; if ((rc = ioctl(fd, PERF_EVENT_IOC_ENABLE)) < 0) { perror("prepareToRecord: ioctl #4 failed"); return rc; } op_ctr_idx++; } } } return rc; } void operf_record::setup() { bool all_cpus_avail = true; int rc = 0; struct dirent *entry = NULL; DIR *dir = NULL; string err_msg; char cpus_online[257]; bool profile_process_group = false; if (system_wide) cverb << vrecord << "operf_record::setup() for system-wide profiling" << endl; else cverb << vrecord << "operf_record::setup() with pid_started = " << pid_started << endl; if (pid_started || system_wide) { if ((rc = op_get_process_info(system_wide, pid_to_profile, this)) < 0) { if (rc == OP_PERF_HANDLED_ERROR) return; else throw runtime_error("Unexpected error in operf_record setup"); } // 'pid_started && (procs.size() > 1)' implies the process that the user // has requested us to profile has cloned one or more children. profile_process_group = pid_started && (procs.size() > 1); } pagesize = sysconf(_SC_PAGE_SIZE); // If profiling a process group, use a smaller mmap length to avoid EINVAL. num_mmap_pages = profile_process_group ? 1 : (512 * 1024)/pagesize; /* To set up to profile an existing thread group, we need call perf_event_open * for each thread, and we need to pass cpu=-1 on the syscall. */ use_cpu_minus_one = use_cpu_minus_one ? true : profile_process_group; num_cpus = use_cpu_minus_one ? 1 : sysconf(_SC_NPROCESSORS_ONLN); if (num_cpus < 1) { char int_str[256]; sprintf(int_str, "Number of online CPUs is %d; cannot continue", num_cpus); throw runtime_error(int_str); } cverb << vrecord << "calling perf_event_open for pid " << pid_to_profile << " on " << num_cpus << " cpus" << endl; FILE * online_cpus = fopen("/sys/devices/system/cpu/online", "r"); if (!online_cpus) { err_msg = "Internal Error: Number of online cpus cannot be determined."; rc = -1; goto error; } memset(cpus_online, 0, sizeof(cpus_online)); fgets(cpus_online, sizeof(cpus_online), online_cpus); if (!cpus_online[0]) { fclose(online_cpus); err_msg = "Internal Error: Number of online cpus cannot be determined."; rc = -1; goto error; } if (index(cpus_online, ',') || cpus_online[0] != '0') { all_cpus_avail = false; if ((dir = opendir("/sys/devices/system/cpu")) == NULL) { fclose(online_cpus); err_msg = "Internal Error: Number of online cpus cannot be determined."; rc = -1; goto error; } } fclose(online_cpus); for (int cpu = 0; cpu < num_cpus; cpu++) { int real_cpu; int mmap_fd; if (use_cpu_minus_one) { real_cpu = -1; } else if (all_cpus_avail) { real_cpu = cpu; } else { real_cpu = op_get_next_online_cpu(dir, entry); if (real_cpu < 0) { err_msg = "Internal Error: Number of online cpus cannot be determined."; rc = -1; goto error; } } size_t num_procs = profile_process_group ? procs.size() : 1; /* To profile a parent and its children, the perf_events kernel subsystem * requires us to use cpu=-1 on the perf_event_open call for each of the * processes in the group. But perf_events also prevents us from specifying * "inherit" on the perf_event_attr we pass to perf_event_open when cpu is '-1'. */ bool inherit = !profile_process_group; for (unsigned proc_idx = 0; proc_idx < num_procs; proc_idx++) { for (unsigned event = 0; event < evts.size(); event++) { /* For a parent process, comm.tid==comm.pid, but for child * processes in a process group, comm.pid is the parent, so * we must use comm.tid for the perf_event_open call. So * we can use comm.tid for all cases. */ pid_t pid_for_open = profile_process_group ? procs[proc_idx].tid : pid_to_profile; operf_counter op_ctr(operf_counter(evts[event], (!pid_started && !system_wide), callgraph, separate_cpu, inherit, event)); if ((rc = op_ctr.perf_event_open(pid_for_open, real_cpu, this)) < 0) { err_msg = "Internal Error. Perf event setup failed."; goto error; } perfCounters.push_back(op_ctr); } } } int num_mmaps; if (pid_started && (procs.size() > 1)) num_mmaps = procs.size(); else num_mmaps = num_cpus; poll_data = new struct pollfd [num_mmaps]; if ((rc = prepareToRecord()) < 0) { err_msg = "Internal Error. Perf event setup failed."; goto error; } write_op_header_info(); // Set bit to indicate we're set to go. valid = true; if (dir) closedir(dir); return; error: delete[] poll_data; poll_data = NULL; for (int i = 0; i < samples_array.size(); i++) { struct mmap_data *md = &samples_array[i]; munmap(md->base, (num_mmap_pages + 1) * pagesize); } samples_array.clear(); if (dir) closedir(dir); close(output_fd); if (rc != OP_PERF_HANDLED_ERROR) throw runtime_error(err_msg); } void operf_record::record_process_info(void) { map pids_mapped; pid_t last_tgid = -1; for (unsigned int proc_idx = 0; proc_idx < procs.size(); proc_idx++) { int num = OP_perf_utils::op_write_output(output_fd, &procs[proc_idx], procs[proc_idx].header.size); add_to_total(num); if (cverb << vrecord) cout << "Created COMM event for " << procs[proc_idx].comm << endl; if ((procs[proc_idx].pid == last_tgid) || (pids_mapped.find(procs[proc_idx].pid) != pids_mapped.end())) continue; OP_perf_utils::op_record_process_exec_mmaps(procs[proc_idx].tid, procs[proc_idx].pid, output_fd, this); pids_mapped[procs[proc_idx].pid] = last_tgid = procs[proc_idx].pid; } } void operf_record::recordPerfData(void) { bool disabled = false; if (pid_started || system_wide) record_process_info(); op_record_kernel_info(vmlinux_file, kernel_start, kernel_end, output_fd, this); cerr << "operf: Profiler started" << endl; while (1) { int prev = sample_reads; for (int i = 0; i < samples_array.size(); i++) { if (samples_array[i].base) op_get_kernel_event_data(&samples_array[i], this); } if (quit && disabled) break; if (prev == sample_reads) { (void)poll(poll_data, poll_count, -1); } if (quit) { for (unsigned int i = 0; i < perfCounters.size(); i++) ioctl(perfCounters[i].get_fd(), PERF_EVENT_IOC_DISABLE); disabled = true; cverb << vrecord << "operf_record::recordPerfData received signal to quit." << endl; } } cverb << vdebug << "operf recording finished." << endl; } void operf_read::init(int sample_data_pipe_fd, string input_filename, string samples_loc, op_cpu cputype, vector & events, bool systemwide) { sample_data_fd = sample_data_pipe_fd; inputFname = input_filename; sampledir = samples_loc; evts = events; cpu_type = cputype; syswide = systemwide; } operf_read::~operf_read() { evts.clear(); } int operf_read::_read_header_info_with_ifstream(void) { struct OP_file_header fheader; int num_fattrs, ret = 0; size_t fattr_size; istrm.seekg(0, ios_base::beg); if (op_read_from_stream(istrm, (char *)&fheader, sizeof(fheader)) != sizeof(fheader)) { cerr << "Error: input file " << inputFname << " does not have enough data for header" << endl; ret = OP_PERF_HANDLED_ERROR; goto out; } if (memcmp(&fheader.magic, __op_magic, sizeof(fheader.magic))) { cerr << "Error: input file " << inputFname << " does not have expected header data" << endl; ret = OP_PERF_HANDLED_ERROR; goto out; } cverb << vconvert << "operf magic number " << (char *)&fheader.magic << " matches expected __op_magic " << __op_magic << endl; opHeader.attr_offset = fheader.attrs.offset; opHeader.data_offset = fheader.data.offset; opHeader.data_size = fheader.data.size; fattr_size = sizeof(struct op_file_attr); if (fattr_size != fheader.attr_size) { cerr << "Error: perf_events binary incompatibility. Event data collection was apparently " << endl << "performed under a different kernel version than current." << endl; ret = OP_PERF_HANDLED_ERROR; goto out; } num_fattrs = fheader.attrs.size/fheader.attr_size; cverb << vconvert << "num_fattrs is " << num_fattrs << endl; istrm.seekg(opHeader.attr_offset, ios_base::beg); for (int i = 0; i < num_fattrs; i++) { struct op_file_attr f_attr; streamsize fattr_size = sizeof(f_attr); if (op_read_from_stream(istrm, (char *)&f_attr, fattr_size) != fattr_size) { cerr << "Error: Unexpected end of input file " << inputFname << "." << endl; ret = OP_PERF_HANDLED_ERROR; goto out; } opHeader.h_attrs[i].attr = f_attr.attr; streampos next_f_attr = istrm.tellg(); int num_ids = f_attr.ids.size/sizeof(u64); istrm.seekg(f_attr.ids.offset, ios_base::beg); for (int id = 0; id < num_ids; id++) { u64 perf_id; streamsize perfid_size = sizeof(perf_id); if (op_read_from_stream(istrm, (char *)& perf_id, perfid_size) != perfid_size) { cerr << "Error: Unexpected end of input file " << inputFname << "." << endl; ret = OP_PERF_HANDLED_ERROR; goto out; } ostringstream message; message << "Perf header: id = " << hex << (unsigned long long)perf_id << endl; cverb << vconvert << message.str(); opHeader.h_attrs[i].ids.push_back(perf_id); } istrm.seekg(next_f_attr, ios_base::beg); } out: istrm.close(); return ret; } int operf_read::_read_perf_header_from_file(void) { int ret = 0; opHeader.data_size = 0; istrm.open(inputFname.c_str(), ios_base::in); if (!istrm.good()) { valid = false; cerr << "Input stream bad for " << inputFname << endl; ret = OP_PERF_HANDLED_ERROR; goto out; } istrm.peek(); if (istrm.eof()) { cverb << vconvert << "operf_read::readPerfHeader: Empty profile data file." << endl; valid = false; ret = OP_PERF_HANDLED_ERROR; goto out; } cverb << vconvert << "operf_read: successfully opened input file " << inputFname << endl; if ((ret = _read_header_info_with_ifstream()) == 0) { valid = true; cverb << vconvert << "Successfully read perf header" << endl; } else { valid = false; } out: return ret; } int operf_read::_read_perf_header_from_pipe(void) { struct OP_file_header fheader; string errmsg; int num_fattrs; size_t fattr_size; vector f_attr_cache; errno = 0; if (read(sample_data_fd, &fheader, sizeof(fheader)) != sizeof(fheader)) { errmsg = "Error reading header on sample data pipe: " + string(strerror(errno)); goto fail; } if (memcmp(&fheader.magic, __op_magic, sizeof(fheader.magic))) { errmsg = "Error: operf sample data does not have expected header data"; goto fail; } cverb << vconvert << "operf magic number " << (char *)&fheader.magic << " matches expected __op_magic " << __op_magic << endl; fattr_size = sizeof(struct op_file_attr); if (fattr_size != fheader.attr_size) { errmsg = "Error: perf_events binary incompatibility. Event data collection was apparently " "performed under a different kernel version than current."; goto fail; } num_fattrs = fheader.attrs.size/fheader.attr_size; cverb << vconvert << "num_fattrs is " << num_fattrs << endl; for (int i = 0; i < num_fattrs; i++) { struct op_file_attr f_attr; streamsize fattr_size = sizeof(f_attr); if (read(sample_data_fd, (char *)&f_attr, fattr_size) != fattr_size) { errmsg = "Error reading file attr on sample data pipe: " + string(strerror(errno)); goto fail; } opHeader.h_attrs[i].attr = f_attr.attr; f_attr_cache.push_back(f_attr); } for (int i = 0; i < num_fattrs; i++) { vector::iterator it = f_attr_cache.begin(); struct op_file_attr f_attr = *(it); int num_ids = f_attr.ids.size/sizeof(u64); for (int id = 0; id < num_ids; id++) { u64 perf_id; streamsize perfid_size = sizeof(perf_id); if (read(sample_data_fd, (char *)& perf_id, perfid_size) != perfid_size) { errmsg = "Error reading perf ID on sample data pipe: " + string(strerror(errno)); goto fail; } ostringstream message; message << "Perf header: id = " << hex << (unsigned long long)perf_id << endl; cverb << vconvert << message.str(); opHeader.h_attrs[i].ids.push_back(perf_id); } } valid = true; cverb << vconvert << "Successfully read perf header" << endl; return 0; fail: cerr << errmsg; return OP_PERF_HANDLED_ERROR; } int operf_read::readPerfHeader(void) { if (!inputFname.empty()) return _read_perf_header_from_file(); else return _read_perf_header_from_pipe(); } int operf_read::get_eventnum_by_perf_event_id(u64 id) const { for (unsigned i = 0; i < evts.size(); i++) { struct op_header_evt_info attr = opHeader.h_attrs[i]; for (unsigned j = 0; j < attr.ids.size(); j++) { if (attr.ids[j] == id) return i; } } return -1; } unsigned int operf_read::convertPerfData(void) { unsigned int num_bytes = 0; struct mmap_info info; bool error = false; event_t * event; if (!inputFname.empty()) { info.file_data_offset = opHeader.data_offset; info.file_data_size = opHeader.data_size; cverb << vdebug << "Expecting to read approximately " << dec << info.file_data_size - info.file_data_offset << " bytes from operf sample data file." << endl; info.traceFD = open(inputFname.c_str(), O_RDONLY); if (info.traceFD == -1) { cerr << "Error: open failed with errno:\n\t" << strerror(errno) << endl; throw runtime_error("Error: Unable to open operf data file"); } cverb << vdebug << "operf_read opened " << inputFname << endl; pg_sz = sysconf(_SC_PAGESIZE); if (op_mmap_trace_file(info, true) < 0) { close(info.traceFD); throw runtime_error("Error: Unable to mmap operf data file"); } } else { // Allocate way more than enough space for a really big event with a long callchain event = (event_t *)xmalloc(65536); memset(event, '\0', 65536); } for (int i = 0; i < OPERF_MAX_STATS; i++) operf_stats[i] = 0; ostringstream message; message << "Converting operf data to oprofile sample data format" << endl; message << "sample type is " << hex << opHeader.h_attrs[0].attr.sample_type << endl; cverb << vdebug << message.str(); first_time_processing = true; int num_recs = 0; struct perf_event_header last_header; bool print_progress = !inputFname.empty() && syswide; if (print_progress) cerr << "Converting profile data to OProfile format" << endl; while (1) { streamsize rec_size = 0; if (!inputFname.empty()) { event = _get_perf_event_from_file(info); if (event == NULL) break; } else { if (_get_perf_event_from_pipe(event, sample_data_fd) < 0) break; } rec_size = event->header.size; if ((!is_header_valid(event->header)) || ((op_write_event(event, opHeader.h_attrs[0].attr.sample_type)) < 0)) { error = true; last_header = event->header; break; } num_bytes += rec_size; num_recs++; if ((num_recs % 1000000 == 0) && print_progress) cerr << "."; } if (unlikely(error)) { if (!inputFname.empty()) { cerr << "ERROR: operf_read::convertPerfData quitting. Bad data read from file." << endl; } else { cerr << "ERROR: operf_read::convertPerfData quitting. Bad data read from pipe." << endl; cerr << "Closing read end of data pipe. operf-record process will stop with SIGPIPE (13)." << endl; } cerr << "Try lowering the sample frequency to avoid this error; e.g., double the 'count'" << endl << "value in your event specification." << endl; cverb << vdebug << "Event header type: " << last_header.type << "; size: " << last_header.size << endl; } first_time_processing = false; if (!error) op_reprocess_unresolved_events(opHeader.h_attrs[0].attr.sample_type, print_progress); if (print_progress) cerr << endl; op_release_resources(); operf_print_stats(operf_options::session_dir, start_time_human_readable, throttled, evts); char * cbuf; cbuf = (char *)xmalloc(operf_options::session_dir.length() + 5); strcpy(cbuf, operf_options::session_dir.c_str()); strcat(cbuf, "/abi"); op_write_abi_to_file(cbuf); free(cbuf); if (!inputFname.empty()) close(info.traceFD); else free(event); return num_bytes; } oprofile-0.9.9/libperf_events/operf_stats.cpp0000664000076400007640000001463212175510131016351 00000000000000/** * @file libperf_events/operf_stats.cpp * Management of operf statistics * * @remark Copyright 2012 OProfile authors * @remark Read the file COPYING * * Created on: June 11, 2012 * @author Maynard Johnson * (C) Copyright IBM Corp. 2012 */ #include #include #include #include #include #include #include #include "operf_stats.h" #include "op_get_time.h" unsigned long operf_stats[OPERF_MAX_STATS]; /** * operf_print_stats - print out latest statistics to operf.log */ using namespace std; static string create_stats_dir(string const & cur_sampledir); static void write_throttled_event_files(vector< operf_event_t> const & events, string const & stats_dir); static void _write_stats_file(string const & stats_filename, unsigned long lost_sample_count) { ofstream stats_file(stats_filename.c_str(), ios_base::out); if (stats_file.good()) { stats_file << lost_sample_count; stats_file.close(); } else { cerr << "Unable to write to stats file " << stats_filename << endl; } } void operf_print_stats(string sessiondir, char * starttime, bool throttled, vector< operf_event_t> const & events) { string operf_log (sessiondir); unsigned long total_lost_samples = 0; bool stats_dir_valid = true; string stats_dir = create_stats_dir(sessiondir + "/" + "samples/current/"); if (strcmp(stats_dir.c_str(), "") != 0) { // If there are throttled events print them write_throttled_event_files(events, stats_dir); } else { stats_dir_valid = false; perror("Unable to create stats dir"); } operf_log.append("/samples/operf.log"); FILE * fp = fopen(operf_log.c_str(), "a"); if (!fp) { fprintf(stderr, "Unable to open %s file.\n", operf_log.c_str()); return; } fprintf(fp, "\nProfiling started at %s", starttime); fprintf(fp, "Profiling stopped at %s", op_get_time()); fprintf(fp, "\n-- OProfile/operf Statistics --\n"); fprintf(fp, "Nr. non-backtrace samples: %lu\n", operf_stats[OPERF_SAMPLES]); fprintf(fp, "Nr. kernel samples: %lu\n", operf_stats[OPERF_KERNEL]); fprintf(fp, "Nr. user space samples: %lu\n", operf_stats[OPERF_PROCESS]); fprintf(fp, "Nr. samples lost due to sample address not in expected range for domain: %lu\n", operf_stats[OPERF_INVALID_CTX]); fprintf(fp, "Nr. lost kernel samples: %lu\n", operf_stats[OPERF_LOST_KERNEL]); fprintf(fp, "Nr. samples lost due to sample file open failure: %lu\n", operf_stats[OPERF_LOST_SAMPLEFILE]); fprintf(fp, "Nr. samples lost due to no permanent mapping: %lu\n", operf_stats[OPERF_LOST_NO_MAPPING]); fprintf(fp, "Nr. user context kernel samples lost due to no app info available: %lu\n", operf_stats[OPERF_NO_APP_KERNEL_SAMPLE]); fprintf(fp, "Nr. user samples lost due to no app info available: %lu\n", operf_stats[OPERF_NO_APP_USER_SAMPLE]); fprintf(fp, "Nr. backtraces skipped due to no file mapping: %lu\n", operf_stats[OPERF_BT_LOST_NO_MAPPING]); fprintf(fp, "Nr. hypervisor samples dropped due to address out-of-range: %lu\n", operf_stats[OPERF_LOST_INVALID_HYPERV_ADDR]); fprintf(fp, "Nr. samples lost reported by perf_events kernel: %lu\n", operf_stats[OPERF_RECORD_LOST_SAMPLE]); if (operf_stats[OPERF_RECORD_LOST_SAMPLE]) { fprintf(stderr, "\n\n * * * ATTENTION: The kernel lost %lu samples. * * *\n", operf_stats[OPERF_RECORD_LOST_SAMPLE]); fprintf(stderr, "Decrease the sampling rate to eliminate (or reduce) lost samples.\n"); } else if (throttled) { fprintf(stderr, "* * * * WARNING: Profiling rate was throttled back by the kernel * * * *\n"); fprintf(stderr, "The number of samples actually recorded is less than expected, but is\n"); fprintf(stderr, "probably still statistically valid. Decreasing the sampling rate is the\n"); fprintf(stderr, "best option if you want to avoid throttling.\n"); } for (int i = OPERF_INDEX_OF_FIRST_LOST_STAT; i < OPERF_MAX_STATS; i++) { if (stats_dir_valid && operf_stats[i]) _write_stats_file(stats_dir + "/" + stats_filenames[i], operf_stats[i]); total_lost_samples += operf_stats[i]; } // Write total_samples into stats file if we see any indication of lost samples if (total_lost_samples) _write_stats_file(stats_dir + "/" + stats_filenames[OPERF_SAMPLES], operf_stats[OPERF_SAMPLES]); if (total_lost_samples > (int)(OPERF_WARN_LOST_SAMPLES_THRESHOLD * operf_stats[OPERF_SAMPLES])) fprintf(stderr, "\nWARNING: Lost samples detected! See %s for details.\n", operf_log.c_str()); fflush(fp); fclose(fp); }; static void write_throttled_event_files(vector< operf_event_t> const & events, string const & stats_dir) { string outputfile; ofstream outfile; string event_name; string throttled_dir; bool throttled_dir_created = false; int rc; throttled_dir = stats_dir + "/throttled"; for (unsigned index = 0; index < events.size(); index++) { if (events[index].throttled == true) { if (!throttled_dir_created) { rc = mkdir(throttled_dir.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH); if (rc && (errno != EEXIST)) { cerr << "Error trying to create " << throttled_dir << endl; perror("mkdir failed with"); return; } throttled_dir_created = true; } /* Write file entry to indicate if the data sample was * throttled. */ outputfile = throttled_dir + "/" + events[index].name; outfile.open(outputfile.c_str()); if (!outfile.is_open()) { cerr << "Internal error: Could not create " << outputfile << strerror(errno) << endl; } else { outfile.close(); } } } if (throttled_dir_created) { cerr << "\nWARNING! Some of the events were throttled. " << "Throttling occurs when\n"; cerr << "the initial sample rate is too high, causing an " << "excessive number of\n"; cerr << "interrupts. Decrease the sampling frequency. " << "Check the directory\n"; cerr << throttled_dir << "\n" << "for the throttled event names.\n\n"; } }; static string create_stats_dir(string const & cur_sampledir) { int rc; std::string stats_dir; /* Assumption: cur_sampledir ends in slash */ stats_dir = cur_sampledir + "stats"; rc = mkdir(stats_dir.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH); if (rc && (errno != EEXIST)) { cerr << "Error trying to create stats dir. " << endl; perror("mkdir failed with"); return NULL; } return stats_dir; } oprofile-0.9.9/libperf_events/operf_mangling.h0000664000076400007640000000160012175510131016443 00000000000000/* * @file pe_profiling/operf_mangling.h * This file is based on daemon/opd_mangling and is used for * mangling and opening of sample files for operf. * * @remark Copyright 2011 OProfile authors * @remark Read the file COPYING * * Created on: Dec 15, 2011 * @author Maynard Johnson * (C) Copyright IBM Corp. 2011 */ #ifndef OPERF_MANGLING_H_ #define OPERF_MANGLING_H_ #include "odb.h" struct operf_sfile; /* * operf_open_sample_file - open a sample file * @param sf operf_sfile to open sample file for * @param counter counter number * @param cg if this is a callgraph file * * Open image sample file for the sfile, counter * counter and set up memory mappings for it. * * Returns 0 on success. */ int operf_open_sample_file(odb_t *file, struct operf_sfile *last, struct operf_sfile * sf, int counter, int cg); #endif /* OPERF_MANGLING_H_ */ oprofile-0.9.9/libperf_events/operf_stats.h0000664000076400007640000000107512175510131016013 00000000000000/** * @file libperf_events/operf_stats.h * Management of operf statistics * * @remark Copyright 2012 OProfile authors * @remark Read the file COPYING * * Created on: June 11, 2012 * @author Maynard Johnson * (C) Copyright IBM Corp. 2012 */ #include #include #include "operf_counter.h" #ifndef OPERF_STATS_H #define OPERF_STATS_H extern unsigned long operf_stats[]; void operf_print_stats(std::string sampledir, char * starttime, bool throttled, std::vector< operf_event_t> const & events); #endif /* OPERF_STATS_H */ oprofile-0.9.9/libperf_events/operf_utils.h0000664000076400007640000001233512175510131016016 00000000000000/** * @file operf_utils.h * Header file containing definitions for handling a user request to profile * using the new Linux Performance Events Subsystem. * * @remark Copyright 2011 OProfile authors * @remark Read the file COPYING * * Created on: Dec 7, 2011 * @author Maynard Johnson * (C) Copyright IBM Corp. 2011 * */ #ifndef OPERF_H_ #define OPERF_H_ #include #include #include #include "config.h" #include "op_config.h" #include "op_types.h" #include "operf_event.h" #include namespace operf_options { extern bool system_wide; extern int pid; extern int mmap_pages_mult; extern std::string session_dir; extern bool separate_cpu; extern bool separate_thread; } extern bool no_vmlinux; extern int kptr_restrict; extern uid_t my_uid; extern bool throttled; #define OP_APPNAME_LEN 1024 #if BITS_PER_LONG == 64 #define MMAP_WINDOW_SZ ULLONG_MAX #else #define MMAP_WINDOW_SZ (32 * 1024 * 1024ULL) #endif #define OP_MAX_EVENTS 24 /* A macro to be used for ppc64 architecture-specific code. The '__powerpc__' macro * is defined for both ppc64 and ppc32 architectures, so we must further qualify by * including the 'HAVE_LIBPFM' macro, since that macro will be defined only for ppc64. */ #define PPC64_ARCH (HAVE_LIBPFM) && ((defined(__powerpc__) || defined(__powerpc64__))) # define likely(x) __builtin_expect(!!(x), 1) # define unlikely(x) __builtin_expect(!!(x), 0) #define is_header_valid(hdr) \ ((hdr.size > sizeof(hdr)) && \ (hdr.type) && (hdr.size)) extern unsigned int op_nr_events; static inline size_t align_64bit(u64 x) { u64 mask = 7ULL; return (x + mask) & ~mask; } class operf_record; namespace OP_perf_utils { typedef struct vmlinux_info { std::string image_name; u64 start, end; } vmlinux_info_t; void op_record_kernel_info(std::string vmlinux_file, u64 start_addr, u64 end_addr, int output_fd, operf_record * pr); void op_get_kernel_event_data(struct mmap_data *md, operf_record * pr); void op_perfrecord_sigusr1_handler(int sig __attribute__((unused)), siginfo_t * siginfo __attribute__((unused)), void *u_context __attribute__((unused))); int op_get_process_info(bool system_wide, pid_t pid, operf_record * pr); void op_record_process_exec_mmaps(pid_t pid, pid_t tgid, int output_fd, operf_record * pr); int op_write_output(int output, void *buf, size_t size); int op_write_event(event_t * event, u64 sample_type); int op_read_from_stream(std::ifstream & is, char * buf, std::streamsize sz); int op_mmap_trace_file(struct mmap_info & info, bool init); int op_get_next_online_cpu(DIR * dir, struct dirent *entry); bool op_convert_event_vals(std::vector * evt_vec); void op_reprocess_unresolved_events(u64 sample_type, bool print_progress); void op_release_resources(void); } // The rmb() macros were borrowed from perf.h in the kernel tree #if defined(__i386__) #include #define rmb() asm volatile("lock; addl $0,0(%%esp)" ::: "memory") #define cpu_relax() asm volatile("rep; nop" ::: "memory"); #endif #if defined(__x86_64__) #include #define rmb() asm volatile("lfence" ::: "memory") #define cpu_relax() asm volatile("rep; nop" ::: "memory"); #endif #ifdef __powerpc__ #include #define rmb() asm volatile ("sync" ::: "memory") #define cpu_relax() asm volatile ("" ::: "memory"); #endif #ifdef __s390__ #include #define rmb() asm volatile("bcr 15,0" ::: "memory") #define cpu_relax() asm volatile("" ::: "memory"); #endif #ifdef __sh__ #include #if defined(__SH4A__) || defined(__SH5__) # define rmb() asm volatile("synco" ::: "memory") #else # define rmb() asm volatile("" ::: "memory") #endif #define cpu_relax() asm volatile("" ::: "memory") #endif #ifdef __hppa__ #include #define rmb() asm volatile("" ::: "memory") #define cpu_relax() asm volatile("" ::: "memory"); #endif #ifdef __sparc__ #include #define rmb() asm volatile("":::"memory") #define cpu_relax() asm volatile("":::"memory") #endif #ifdef __alpha__ #include #define rmb() asm volatile("mb" ::: "memory") #define cpu_relax() asm volatile("" ::: "memory") #endif #ifdef __ia64__ #include #define rmb() asm volatile ("mf" ::: "memory") #define cpu_relax() asm volatile ("hint @pause" ::: "memory") #endif #ifdef __arm__ #include /* * Use the __kuser_memory_barrier helper in the CPU helper page. See * arch/arm/kernel/entry-armv.S in the kernel source for details. */ #define rmb() ((void(*)(void))0xffff0fa0)() #define cpu_relax() asm volatile("":::"memory") #endif #ifdef __aarch64__ #define rmb() asm volatile("dmb ld" ::: "memory") #define cpu_relax() asm volatile("yield" ::: "memory") #endif #ifdef __mips__ #include #define rmb() asm volatile( \ ".set mips2\n\t" \ "sync\n\t" \ ".set mips0" \ : /* no output */ \ : /* no input */ \ : "memory") #define cpu_relax() asm volatile("" ::: "memory") #endif #ifdef __tile__ #include #define rmb() __insn_mf() #define cpu_relax() ({__insn_mfspr(SPR_PASS); barrier();}) #endif #ifdef __arc__ #include #define rmb() asm volatile("" ::: "memory") #define cpu_relax() rmb() #endif #endif // OPERF_H_ oprofile-0.9.9/libperf_events/operf_counter.h0000664000076400007640000001146612175510131016341 00000000000000/** * @file pe_profiling/operf_counter.h * C++ class definition that abstracts the user-to-kernel interface * for using Linux Performance Events Subsystem. * * @remark Copyright 2011 OProfile authors * @remark Read the file COPYING * * Created on: Dec 7, 2011 * @author Maynard Johnson * (C) Copyright IBM Corp. 2011 * * Modified by Maynard Johnson * (C) Copyright IBM Corporation 2012 * */ #ifndef OPERF_COUNTER_H_ #define OPERF_COUNTER_H_ #include #include #include #include #include #include #include #include #include #include #include #include #include "operf_event.h" #include "op_cpu_type.h" #include "operf_utils.h" extern char * start_time_human_readable; class operf_record; #define OP_BASIC_SAMPLE_FORMAT (PERF_SAMPLE_ID | PERF_SAMPLE_IP \ | PERF_SAMPLE_TID) static inline int op_perf_event_open(struct perf_event_attr * attr, pid_t pid, int cpu, int group_fd, unsigned long flags) { return syscall(__NR_perf_event_open, attr, pid, cpu, group_fd, flags); } #define OP_PERF_HANDLED_ERROR -101 class operf_counter { public: operf_counter(operf_event_t & evt, bool enable_on_exec, bool callgraph, bool separate_by_cpu, bool inherit, int event_number); ~operf_counter(); int perf_event_open(pid_t pid, int cpu, operf_record * pr); const struct perf_event_attr * the_attr(void) const { return &attr; } int get_fd(void) const { return fd; } int get_id(void) const { return id; } int get_evt_num(void) const { return evt_num; } const std::string get_event_name(void) const { return event_name; } private: struct perf_event_attr attr; int fd; int id; int evt_num; std::string event_name; }; class operf_record { public: /* For system-wide profiling, set sys_wide=true, the_pid=-1, and pid_running=false. * For single app profiling, set sys_wide=false, the_pid=, * and pid_running=true if profiling an already active process; otherwise false. */ operf_record(int output_fd, bool sys_wide, pid_t the_pid, bool pid_running, std::vector & evts, OP_perf_utils::vmlinux_info_t vi, bool callgraph, bool separate_by_cpu, bool output_fd_is_file); ~operf_record(); void recordPerfData(void); int out_fd(void) const { return output_fd; } void add_to_total(int n) { total_bytes_recorded += n; } void add_process(struct comm_event proc) { procs.push_back(proc); } unsigned int get_total_bytes_recorded(void) const { return total_bytes_recorded; } void register_perf_event_id(unsigned counter, u64 id, perf_event_attr evt_attr); bool get_valid(void) { return valid; } private: void create(std::string outfile, std::vector & evts); void setup(void); int prepareToRecord(void); int _prepare_to_record_one_fd(int idx, int fd); void record_process_info(void); void write_op_header_info(void); int _write_header_to_file(void); int _write_header_to_pipe(void); int output_fd; bool write_to_file; // Array of size 'num_cpus_used_for_perf_event_open * num_pids * num_events' struct pollfd * poll_data; std::vector samples_array; int num_cpus; pid_t pid_to_profile; /* When doing --pid or --system-wide profiling, we'll obtain process information * for all processes to be profiled (including forked/cloned processes) and store * that information in a collection of type 'comm_event'. We'll use this collection * for synthesizing PERF_RECORD_COMM events into the profile data stream. */ std::vector procs; bool pid_started; bool system_wide; bool callgraph; bool separate_cpu; std::vector perfCounters; unsigned int total_bytes_recorded; int poll_count; struct OP_header opHeader; std::vector evts; bool valid; std::string vmlinux_file; u64 kernel_start, kernel_end; }; class operf_read { public: operf_read(void) : sample_data_fd(-1), inputFname(""), cpu_type(CPU_NO_GOOD) { valid = syswide = false;} void init(int sample_data_pipe_fd, std::string input_filename, std::string samples_dir, op_cpu cputype, std::vector & evts, bool systemwide); ~operf_read(); int readPerfHeader(void); unsigned int convertPerfData(void); bool is_valid(void) {return valid; } int get_eventnum_by_perf_event_id(u64 id) const; inline const operf_event_t * get_event_by_counter(u32 counter) { return &evts[counter]; } private: int sample_data_fd; std::string inputFname; std::string sampledir; std::ifstream istrm; struct OP_header opHeader; std::vector evts; bool valid; bool syswide; op_cpu cpu_type; int _read_header_info_with_ifstream(void); int _read_perf_header_from_file(void); int _read_perf_header_from_pipe(void); }; #endif /* OPERF_COUNTER_H_ */ oprofile-0.9.9/libperf_events/operf_process_info.cpp0000664000076400007640000003347412175510131017711 00000000000000/* * @file pe_profiling/operf_process_info.cpp * This file contains functions for storing process information, * handling exectuable mmappings, etc. * * @remark Copyright 2011 OProfile authors * @remark Read the file COPYING * * Created on: Dec 13, 2011 * @author Maynard Johnson * (C) Copyright IBM Corp. 2011 * * Modified by Maynard Johnson * (C) Copyright IBM Corporation 2013 * */ #include #include #include #include #include #include #include #include "operf_process_info.h" #include "file_manip.h" #include "operf_utils.h" using namespace std; using namespace OP_perf_utils; operf_process_info::operf_process_info(pid_t tgid, const char * appname, bool app_arg_is_fullname, bool is_valid) : pid(tgid), valid(is_valid), appname_valid(false), forked(false), look_for_appname_match(false), appname_is_fullname(NOT_FULLNAME), num_app_chars_matched(-1) { _appname = ""; set_appname(appname, app_arg_is_fullname); parent_of_fork = NULL; } operf_process_info::~operf_process_info() { map::iterator it; map::iterator end; if (valid) { it = mmappings.begin(); end = mmappings.end(); } mmappings.clear(); } void operf_process_info::set_appname(const char * appname, bool app_arg_is_fullname) { char exe_symlink[64]; char exe_realpath[PATH_MAX]; /* A combination of non-null appname and app_arg_is_fullname==true may be passed * from various locations. But a non-null appname and app_arg_is_fullname==false * may only be passed as a result of a PERF_RECORD_COMM event. */ bool from_COMM_event = (appname && !app_arg_is_fullname); if (appname_valid) return; /* If stored _appname is not empty, it implies we've been through this function before * (and would have tried the readlink method or, perhaps, fallen back to some other * method to set the stored _appname). If we're here because of something other than * a COMM event (e.g. MMAP event), then we should compare our stored _appname with our * collection of mmapping basenames to see if we can find an appname match; otherwise, * if the passed appname is NULL, we just return, since a NULL appname won't help us here. */ if (_appname.length()) { if (look_for_appname_match && !from_COMM_event) return find_best_match_appname_all_mappings(); else if (!appname) return; } snprintf(exe_symlink, 64, "/proc/%d/exe", pid); memset(exe_realpath, '\0', PATH_MAX); /* If the user is running a command via taskset, the kernel will send us a PERF_RECORD_COMM * for both comm=taskset and comm= for the same process ID !! * The user will not be interested in taskset samples; thus, we ignore such COMM events. * This is a hack, but there doesn't seem to be a better way around the possibility of having * application samples attributed to "taskset" instead of the application. */ if (readlink(exe_symlink, exe_realpath, sizeof(exe_realpath)-1) > 0) { _appname = exe_realpath; app_basename = op_basename(_appname); if (!strncmp(app_basename.c_str(), "taskset", strlen("taskset"))) { _appname = "unknown"; app_basename = "unknown"; } else { appname_valid = true; } } else { /* Most likely that the process has ended already, so we'll need to determine * the appname through different means. */ if (cverb << vmisc) { ostringstream message; message << "PID: " << hex << pid << " Unable to obtain appname from " << exe_symlink << endl << "\t" << strerror(errno) << endl; cerr << message.str(); } if (appname && strcmp(appname, "taskset")) { _appname = appname; if (app_arg_is_fullname) { appname_valid = true; } else { look_for_appname_match = true; } } else { _appname = "unknown"; } app_basename = _appname; } ostringstream message; message << "PID: " << hex << pid << " appname is set to " << _appname << endl; cverb << vmisc << message.str(); if (look_for_appname_match) find_best_match_appname_all_mappings(); } /* This operf_process_info object may be a parent to processes that it has forked. * If the forked process has not done an 'exec' yet (i.e., we've not received a * COMM event for it), then it's still a dependent process of its parent. * If so, it will be in the parent's collection of forked processes. So, * when adding a new mapping, we should copy that mapping to each forked * child's operf_process_info object. Then, if samples are taken for that * mapping for that forked process, the samples can be correctly attributed. */ void operf_process_info::process_mapping(struct operf_mmap * mapping, bool do_self) { if (!appname_valid && !is_forked()) { if (look_for_appname_match) check_mapping_for_appname(mapping); else set_appname(NULL, false); } set_new_mapping_recursive(mapping, do_self); } int operf_process_info::get_num_matching_chars(string mapped_filename, string & basename) { size_t app_length; size_t basename_length; const char * app_cstr, * basename_cstr; string app_basename; basename = op_basename(mapped_filename); if (appname_is_fullname == NOT_FULLNAME) { // This implies _appname is storing a short name from a COMM event app_length = _appname.length(); app_cstr = _appname.c_str(); } else { app_basename = op_basename(_appname); app_length = app_basename.length(); app_cstr = app_basename.c_str(); } basename_length = basename.length(); if (app_length > basename_length) return -1; basename_cstr = basename.c_str(); int num_matched_chars = 0; for (size_t i = 0; i < app_length; i++) { if (app_cstr[i] == basename_cstr[i]) num_matched_chars++; else break; } return num_matched_chars ? num_matched_chars : -1; } /* If we do not know the full pathname of our app yet, * let's try to determine if the passed filename is a good * candidate appname. * ASSUMPTION: This function is called only when look_for_appname_match==true. */ void operf_process_info::check_mapping_for_appname(struct operf_mmap * mapping) { if (!mapping->is_anon_mapping) { string basename; int num_matched_chars = get_num_matching_chars(mapping->filename, basename); if (num_matched_chars > num_app_chars_matched) { if (num_matched_chars == app_basename.length()) { appname_is_fullname = YES_FULLNAME; look_for_appname_match = false; appname_valid = true; } else { appname_is_fullname = MAYBE_FULLNAME; } _appname = mapping->filename; app_basename = basename; num_app_chars_matched = num_matched_chars; cverb << vmisc << "Best appname match is " << _appname << endl; } } } void operf_process_info::find_best_match_appname_all_mappings(void) { map::iterator it; // We may not even have a candidate shortname (from a COMM event) for the app yet if (_appname == "unknown") return; it = mmappings.begin(); while (it != mmappings.end()) { check_mapping_for_appname(it->second); it++; } } const struct operf_mmap * operf_process_info::find_mapping_for_sample(u64 sample_addr) { map::iterator it = mmappings.begin(); while (it != mmappings.end()) { if (sample_addr >= it->second->start_addr && sample_addr <= it->second->end_addr) return it->second; it++; } return NULL; } /** * Hypervisor samples cannot be attributed to any real binary, so we synthesize * an operf_mmap object with the name of "[hypervisor_bucket]". We mark this * mmaping as "is_anon" so that hypervisor samples are handled in the same way as * anon samples (and vdso, heap, and stack) -- i.e., a sample file is created * with the following pieces of information in its name: * - [hypervisor_bucket] * - PID * - address range * * The address range part is problematic for hypervisor samples, since we don't * know the range of sample addresses until we process all the samples. This is * why we need to adjust the hypervisor_mmaping when we detect an ip that's * outside of the current address range. This is also why we defer processing * hypervisor samples the first time through the processing of sample * data. See operf_utils::__handle_sample_event for details relating to how we * defer processing of such samples. */ void operf_process_info::process_hypervisor_mapping(u64 ip) { bool create_new_hyperv_mmap = true; u64 curr_start, curr_end; map::iterator it; map::iterator end; curr_end = curr_start = ~0ULL; it = mmappings.begin(); end = mmappings.end(); while (it != end) { if (it->second->is_hypervisor) { struct operf_mmap * _mmap = it->second; curr_start = _mmap->start_addr; curr_end = _mmap->end_addr; if (curr_start > ip) { mmappings.erase(it); delete _mmap; } else { create_new_hyperv_mmap = false; if (curr_end <= ip) _mmap->end_addr = ip; } break; } it++; } if (create_new_hyperv_mmap) { struct operf_mmap * hypervisor_mmap = new struct operf_mmap; memset(hypervisor_mmap, 0, sizeof(struct operf_mmap)); hypervisor_mmap->start_addr = ip; hypervisor_mmap->end_addr = ((curr_end == ~0ULL) || (curr_end < ip)) ? ip : curr_end; strcpy(hypervisor_mmap->filename, "[hypervisor_bucket]"); hypervisor_mmap->is_anon_mapping = true; hypervisor_mmap->pgoff = 0; hypervisor_mmap->is_hypervisor = true; if (cverb << vmisc) { ostringstream message; message << "Synthesize mmapping for " << hypervisor_mmap->filename << endl; message << "\tstart_addr: " << hex << hypervisor_mmap->start_addr; message << "; end addr: " << hypervisor_mmap->end_addr << endl; cout << message.str(); } process_mapping(hypervisor_mmap, false); } } void operf_process_info::copy_mappings_to_forked_process(operf_process_info * forked_pid) { map::iterator it = mmappings.begin(); while (it != mmappings.end()) { struct operf_mmap * mapping = it->second; /* We can pass just the pointer of the operf_mmap object because the * original object is created in operf_utils:__handle_mmap_event and * is saved in the global all_images_map. */ forked_pid->process_mapping(mapping, true); it++; } } void operf_process_info::set_fork_info(operf_process_info * parent) { forked = true; parent_of_fork = parent; parent_of_fork->add_forked_pid_association(this); parent_of_fork->copy_mappings_to_forked_process(this); } /* ASSUMPTION: This function should only be called during reprocessing phase * since we blindly set the _appname to that of the parent. If this function * were called from elsewhere, the parent's _appname might not yet be fully baked. */ void operf_process_info::connect_forked_process_to_parent(void) { if (cverb << vmisc) cout << "Connecting forked proc " << pid << " to parent " << parent_of_fork << endl; valid = true; _appname = parent_of_fork->get_app_name(); app_basename = op_basename(_appname); appname_valid = true; } void operf_process_info::remove_forked_process(pid_t forked_pid) { std::vector::iterator it = forked_processes.begin(); while (it != forked_processes.end()) { operf_process_info * p = *it; if (p->pid == forked_pid) { forked_processes.erase(it); break; } it++; } } /* See comment in operf_utils::__handle_comm_event for conditions under * which this function is called. */ void operf_process_info::try_disassociate_from_parent(char * app_shortname) { if (parent_of_fork && (parent_of_fork->pid == this->pid)) return; if (cverb << vmisc && parent_of_fork) cout << "Dis-associating forked proc " << pid << " from parent " << parent_of_fork->pid << endl; valid = true; set_appname(app_shortname, false); map::iterator it = mmappings.begin(); while (it != mmappings.end()) { operf_mmap * cur = it->second; /* mmappings from the parent may have been added to this proc info prior * to this proc info becoming valid since we could not know at the time if * this proc would ever be valid. But now we know it's valid (which is why * we're dis-associating from the parent), so we remove these unnecessary * parent mmappings. */ if (mmappings_from_parent[cur->start_addr]) { mmappings_from_parent[cur->start_addr] = false; mmappings.erase(it++); } else { process_mapping(cur, false); it++; } } if (parent_of_fork) { parent_of_fork->remove_forked_process(this->pid); parent_of_fork = NULL; } forked = false; } /* This function adds a new mapping to the current operf_process_info * and then calls the same function on each of its forked children. * If do_self==true, it means this function is being called by a parent * on a forked child's operf_process_info. Then, if the mapping already * exists, we do not set the corresponding mmappings_from_parent since we * want to retain the knowledge that the mapping had already been added for * this process versus from the parent. If do_self==false, it means this * operf_process_info is the top-level parent and should set the corresponding * mmappings_from_parent to false. The mmappings_from_parent map allows us to * know whether to keep or discard the mapping if/when we dis-associate from * the parent, */ void operf_process_info::set_new_mapping_recursive(struct operf_mmap * mapping, bool do_self) { if (do_self) { map::iterator it = mmappings.find(mapping->start_addr); if (it == mmappings.end()) mmappings_from_parent[mapping->start_addr] = true; else mmappings_from_parent[mapping->start_addr] = false; } else { mmappings_from_parent[mapping->start_addr] = false; } mmappings[mapping->start_addr] = mapping; std::vector::iterator it = forked_processes.begin(); while (it != forked_processes.end()) { operf_process_info * fp = *it; fp->set_new_mapping_recursive(mapping, true); cverb << vmisc << "Copied new parent mapping for " << mapping->filename << " for forked process " << fp->pid << endl; it++; } } oprofile-0.9.9/libperf_events/Makefile.am0000664000076400007640000000115112175510131015340 00000000000000if BUILD_FOR_PERF_EVENT AM_CPPFLAGS = \ -I ${top_srcdir}/libabi \ -I ${top_srcdir}/libutil \ -I ${top_srcdir}/libutil++ \ -I ${top_srcdir}/libop \ -I ${top_srcdir}/libdb \ -I ${top_srcdir}/libperf_events \ @PERF_EVENT_FLAGS@ \ @OP_CPPFLAGS@ noinst_LIBRARIES = libperf_events.a libperf_events_a_SOURCES = \ operf_utils.h \ operf_utils.cpp \ operf_event.h \ operf_counter.h \ operf_counter.cpp \ operf_process_info.h \ operf_process_info.cpp \ operf_kernel.cpp \ operf_kernel.h \ operf_mangling.cpp \ operf_mangling.h \ operf_sfile.cpp \ operf_sfile.h \ operf_stats.cpp \ operf_stats.h endif oprofile-0.9.9/libperf_events/operf_kernel.h0000664000076400007640000000220512175510131016131 00000000000000/* * @file pe_profiling/operf_kernel.h * This file is based on daemon/opd_kernel and is used for * dealing with the kernel and kernel module samples. * * @remark Copyright 2011 OProfile authors * @remark Read the file COPYING * * Created on: Dec 12, 2011 * @author Maynard Johnson * (C) Copyright IBM Corp. 2011 */ #ifndef OPERF_KERNEL_H_ #define OPERF_KERNEL_H_ #include "op_types.h" #include "op_list.h" /** create the kernel image */ void operf_create_vmlinux(char const * name, char const * arg); /** Describes a kernel module or vmlinux itself */ struct operf_kernel_image { char * name; vma_t start; vma_t end; struct list_head list; }; /** Find a kernel_image based upon the given pc address. */ struct operf_kernel_image * operf_find_kernel_image(vma_t pc); /** Return the name field of the stored vmlinux_image. */ const char * operf_get_vmlinux_name(void); /** Create a kernel image for a kernel module and place it on the * module_list. */ void operf_create_module(char const * name, vma_t start, vma_t end); /** Free resources in modules list. * */ void operf_free_modules_list(void); #endif /* OPERF_KERNEL_H_ */ oprofile-0.9.9/ChangeLog-20080000664000076400007640000003222412175510131012443 000000000000002008-12-23 Maynard Johnson * utils/opcontrol: reverse the logic in is_non_cell_ppc64_variant to avoid the need for maintenance as new ppc64 variants are addded 2008-12-12 Maynard Johnson * libop/Makefile.am: Add Andi Kleen's new op_hw_specific.h file to to Makefile.am 2008-11-24 Robert Richter * utils/opcontrol: Correct spelling error 2008-11-24 Robert Richter * daemon/opd_events.c: * daemon/opd_events.h: * daemon/opd_mangling.c: * daemon/opd_mangling.h: * daemon/opd_sfile.c: * daemon/opd_trans.c: * events/x86-64/family10/events: * utils/opcontrol: fix whitespaces 2008-11-12 Andi Kleen * libop/op_events.c * libop/op_events.h * libpp/op_header.cpp: Fix regression in arch perfmon code (see bug #2161762) 2008-11-12 Andi Kleen * events/i386/arch_perfmon/events: Fix event name to avoid parsing error 2008-11-05 Maynard Johnson * libutil++/file_manip.cpp: Add mode arg to open 2008-10-30 William Cohen * m4/binutils.m4: Defeat compiler optimization in configure check for bfd_get_synthetic_symtab 2008-10-27 Maynard Johnson * libutil++/op_spu_bfd.cpp: Initialize anon_obj to false for op_bfd objects for Cell SPE embedded binaries 2008-10-23 Dave Nomura * libutil++/xml_output.cpp: * libutil/xml_out.c: * libutil/xml_out.h: * libutil/xml_events.c: * libutil/xml_events.h: * libutil/Makefile.am: * libop/op_xml_out.c: * libop/op_xml_out.h: * libop/op_xml_events.c: * libop/op_xml_events.h: * libop/Makefile.am: moved xml util routines to libop and fixed some other problems in the previous patch 2008-10-15 Dave Nomura * utils/ophelp.c: * libutil++/xml_output.cpp: * libutil++/xml_output.h: * libutil/xml_out.c: * libutil/xml_out.h: * libutil/xml_events.c: * libutil/xml_events.h: * libutil/Makefile.am: added -X option to ophelp to generate XML 2008-10-06 Maynard Johnson * configure.in: * m4/binutils.m4: * m4/cellspubfdsupport.m4: Handle BFD's new dependency on libz 2008-08-28 Maynard Johnson * configure.in: Add configure option for non-standard binutils lib 2008-08-28 Andi Kleen * events/i386/arch_perfmon/events: * events/i386/arch_perfmon/unit_masks: * events/Makefile.am: * libop/op_cpu_type.c: * libop/op_cpu_type.h: * libop/op_events.c: * libop/op_events.h: * libop/op_hw_specific.h: * libpp/op_header.cpp: * utils/ophelp.c: support for Intel arch perfmon 2008-08-28 Maynard Johnson * configure.in: Change AM_INIT_AUTOMAKE to 0.9.5cvs; enables -werror gcc option to stop build on warnings 2008-08-27 Jatin Nansi * utils/opcontrol: vecho parameters after "--verbose" option processed 2008-08-08 Daniel Hansel * daemon/init.c: Fixed call of execvp() to execute opjitconv if it is installed in a custom directory 2008-08-07 Maynard Johnson * libutil++/bfd_support.cpp: * libutil++/op_bfd.cpp: * libutil++/op_bfd.h: Fix a couple problems relating to overlay symbols for Cell SPE applications 2008-07-31 Maynard Johnson * configure.in: Fix to allow libtool to recognize alternate binutils dir passed via --with-binutils 2008-07-24 Jean Pihet * events/arm/armv7/events: * events/arm/armv7/unit_masks: * libop/op_cpu_type.c: * libop/op_cpu_type.h: * libop/op_events.c: * utils/ophelp.c: Added ARMv7 support to be consistent with the kernel, added ARMv7 specific events. Tested on OMAP3430 and OMAP3530 chipsets. 2008-07-17 Maynard Johnson * configure.in: bump version in AM_INIT_AUTOMAKE to 0.9.4 2008-07-17 Will Cohen * libop/op_alloc_counter.c: Assume perfmon managing PMU hw when no counters 2008-07-07 Maynard Johnson * HACKING: Ask contributors to include Signed-off-by line with their patches 2008-07-03 Richard Purdie * libutil++/bfd_support.cpp: * libutil++/bfd_support.h: * libutil++/op_bfd.cpp: * libutil++/op_bfd.h: * libutil++/op_spu_bfd.cpp: * pp/oparchive.cpp: Switch separate_debug_file_exists() and hence find_separate_debug_file() to use extra_images::find_image_path() so debug files in --root directories are correctly found 2008-07-03 Maynard Johnson * ChangeLog: Correct date of previous entry * README_PACKAGERS: Add more advice to packagers regarding the new JIT support libraries 2008-07-03 Maynard Johnson * libopagent/Makefile.am: * libopagent/opagent.c: * remove libopagent/bfddefines.c: Move code from bfddefines to libopagent to fix cross-compile error 2008-06-30 Shunichi Fuji * libpp/callgraph_container.cpp: Fix compile warning using gcc 4.3.1 for uninitialized variable 2008-06-23 Maynard Johnson * daemon/opd_stats.c: Do not force printing of sample_invalid_eip since this is not available from pre-2.6.24 kernels 2008-06-23 Maynard Johnson * opjitconv/opjitconv.c: Switch to special user account after determining whether or not we have JIT dump files to process in order to avoid unnecessary error messages in oprofiled.log 2008-06-11 Maynard Johnson * configure.in: * Makefile.am: * agents/Makefile.am: * doc/oprofile.xml: Change make install error to warning if special user account does not exist 2008-06-11 Maynard Johnson * Makefile.am: Add README_PACKAGERS to EXTRA_DIST 2008-06-03 Will Cohen * libop/op_alloc_counter.c: Use counters actually available. 2008-05-21 George McCollister * daemon/opd_cookie.c: Fix ARM big-endian syscall 2008-05-20 Jason Yeh * events/x86_64/hammer/events: * events/x86_64/hammer/unit_masks: * events/x86_64/family10/events: * events/x86_64/family10/unit_masks: update for recent BKDG revisions 2008-05-19 Maynard Johnson * libpp/profile_spec.cpp: Fix bug in differential profile when using archive spec and an image spec 2008-05-19 Maynard Johnson * libpp/format_output.cpp: * libpp/xml_utils.cpp: * libutil++/op_bfd.cpp: * libutil++/op_bfd.h: Do not to try to get symbol contents for artificial symbols and other cases where no symbol contents exist. Also change to use scoped array for symbol contents instead of automatic allocation from the stack to avoid allocation attempt exceeding max stack size. 2008-05-09 Maynard Johnson * configure.in: * Makefile.am: Improve error messages for special user account checks 2008-05-08 Maynard Johnson * libpp/callgraph_container.cpp: * libpp/profile_container.cpp: * libutil++/op_bfd.h: * libutil++/op_bfd.cpp: Fix to allow 32-bit opreport to properly process samples from 64-bit JIT profile agent 2008-04-29 René Rebe * libabi/opimport.cpp: * libpp/op_header.cpp: * libpp/profile.cpp: * libutil++/bfd_support.cpp: * libutil++/cverb.cpp: * libutil++/op_bfd.cpp: * libutil++/op_spu_bfd.cpp: * pp/common_option.cpp: * pp/opannotate_options.cpp: * pp/oparchive.cpp: * pp/opgprof_options.cpp: added explicit includes for C functions as required for compilation with GCC-4.3 2008-04-28 Daniel Hansel * oprofile/agents/jvmpi/jvmpi_oprofile.cpp: * oprofile/agents/jvmpi/Makefile.am: * oprofile/agents/jvmti/libjvmti_oprofile.c: * oprofile/agents/jvmti/Makefile.am: * oprofile/agents/Makefile.am: * oprofile/autogen.sh: * oprofile/configure.in: * oprofile/daemon/init.c: * oprofile/daemon/Makefile.am: * oprofile/daemon/opd_anon.c: * oprofile/daemon/opd_pipe.c: * oprofile/daemon/opd_pipe.h: * oprofile/daemon/oprofiled.c: * oprofile/daemon/oprofiled.h: * oprofile/doc/Makefile.am: * oprofile/doc/op-jit-devel.xml: * oprofile/doc/oprofile.xml: * oprofile/libop/op_config.c: * oprofile/libop/op_config.h: * oprofile/libopagent/bfddefines.c: * oprofile/libopagent/jitdump.h: * oprofile/libopagent/Makefile.am: * oprofile/libopagent/opagent.c: * oprofile/libopagent/opagent.h: * oprofile/libopagent/opagent_symbols.ver: * oprofile/libpp/arrange_profiles.cpp: * oprofile/libpp/callgraph_container.cpp: * oprofile/libpp/filename_spec.cpp: * oprofile/libpp/filename_spec.h: * oprofile/libpp/op_header.cpp: * oprofile/libpp/op_header.h: * oprofile/libpp/parse_filename.cpp: * oprofile/libpp/parse_filename.h: * oprofile/libpp/profile_container.cpp: * oprofile/libpp/profile.cpp: * oprofile/libpp/profile.h: * oprofile/libpp/profile_spec.cpp: * oprofile/libregex/demangle_java_symbol.cpp: * oprofile/libregex/demangle_java_symbol.h: * oprofile/libregex/demangle_symbol.cpp: * oprofile/libregex/Makefile.am: * oprofile/libregex/tests/java_test.cpp: * oprofile/libregex/tests/Makefile.am: * oprofile/libutil/Makefile.am: * oprofile/libutil/op_file.c: * oprofile/libutil/op_file.h: * oprofile/libutil/op_growable_buffer.c: * oprofile/libutil/op_growable_buffer.h: * oprofile/libutil/op_list.h: * oprofile/libutil++/bfd_support.cpp: * oprofile/libutil++/bfd_support.h: * oprofile/libutil++/file_manip.cpp: * oprofile/libutil++/op_bfd.cpp: * oprofile/libutil++/op_bfd.h: * oprofile/Makefile.am: * oprofile/opjitconv/conversion.c: * oprofile/opjitconv/create_bfd.c: * oprofile/opjitconv/debug_line.c: * oprofile/opjitconv/jitsymbol.c: * oprofile/opjitconv/Makefile.am: * oprofile/opjitconv/opjitconv.c: * oprofile/opjitconv/opjitconv.h: * oprofile/opjitconv/parse_dump.c: * oprofile/pp/opgprof.cpp: * oprofile/README_PACKAGERS: * oprofile/TODO: * oprofile/utils/opcontrol: JIT support 2008-04-18 Maynard Johnson * m4/binutils.m4: A correct fix for the --with-binutils problem 2008-04-17 Maynard Johnson * m4/binutils.m4: Revert previous patch as it was buggy 2008-04-16 Maynard Johnson * m4/binutils.m4: Fix the bfd_get_synthetic_symtab check in this m4 macro to work correctly with '--with-binutils' configure option 2008-04-10 Chris J Arges * utils/opcontrol: For ppc64 architectures, need to check if all user/kernel flags per counter match. Then use this value to set user/kernel domain profiling. 2008-03-13 Dave Nomura * libutil++/op_bfd.cpp: * libutil++/op_bfd.h: * pp/opreport.cpp: gcc 4.3 gives warnings on const function return types 2008-03-03 John Levon * daemon/oprofiled.c: fix error message typo 2008-02-22 Haavard Skinnemoen * events/Makefile.am: * events/avr32/events: * events/avr32/unit_masks: * libop/op_cpu_type.c: * libop/op_cpu_type.h: * libop/op_events.c: * utils/ophelp.c: Add AVR32 support 2008-02-22 Richard Purdie * libutil++/file_manip.cpp: * pp/oparchive.cpp: Check files actually exist before copying or listing the file as part of oparchive --list-files. The copy_file function breaks if passed a directory as a file to copy since it will create a file at the destination causing subtle bugs. 2008-02-22 Andy Fleming * events/Makefile.am: * events/ppc/e300/events: * events/ppc/e300/unit_masks: * libop/op_cpu_type.c: * libop/op_cpu_type.h: * libop/op_events.c: * utils/ophelp.c: Add e300 support 2008-02-22 Bob Nelson * utils/opcontrol: Fix loop in dump code when using --session-dir on a network drive. (clock issues) 2008-02-15 Will Cohen * gui/oprof_start_util.cpp * libutil++/file_manip.cpp * libutil++/bfd_support.cpp * libutil++/bfd_spu_support.cpp * libutil++/op_spu_bfd.cpp * libutil++/cverb.cpp * libutil++/child_reader.cpp * pp/opgprof_options.cpp * pp/opannotate_options.cpp * pp/oparchive.cpp * pp/common_option.cpp * libpp/sample_container.cpp * libpp/op_header.cpp * libpp/profile.cpp * libabi/opimport.cpp * libregex/demangle_symbol.cpp: Add includes for gcc 4.3 compatibility. 2008-02-07 Bob Nelson * libutil++/op_bfd.h: add bool symb_artificial to op_bfd_symbol * libutil++/op_bfd.cpp: ctor changes, use symb_artificial * libutil++/op_spu_bfd.cpp: profile SPU 'stack' code 2008-02-04 Bob Nelson * daemon/opd_spu.c: Fix number of records to check for in an SPU context switch 2008-01-21 Daniel Hansel * various: style cleanups 2008-01-15 Isaku Yamahata * daemon/opd_trans.c: fix previous SPU patch 2008-01-11 Isaku Yamahata * daemon/opd_perfmon.c: Xen support for IA64 2008-01-11 Markus Armbruster * daemon/opd_interface.h: * daemon/opd_trans.c: work around SPU/Xen code numbering problem See ChangeLog-2007 for earlier changelogs. oprofile-0.9.9/depcomp0000755000076400007640000004426712175510233011672 00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2009-04-28.21; # UTC # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free # Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try \`$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by `PROGRAMS ARGS'. object Object file output by `PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputing dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi cygpath_u="cygpath -u -f -" if test "$depmode" = msvcmsys; then # This is just like msvisualcpp but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u="sed s,\\\\\\\\,/,g" depmode=msvisualcpp fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the `deleted header file' problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. tr ' ' ' ' < "$tmpdepfile" | ## Some versions of gcc put a space before the `:'. On the theory ## that the space means something, we add a space to the output as ## well. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like `#:fec' to the end of the # dependency line. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' ' ' ' >> "$depfile" echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts `$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then # Each line is of the form `foo.o: dependent.h'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; icc) # Intel's C compiler understands `-MD -MF file'. However on # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c # ICC 7.0 will fill foo.d with something like # foo.o: sub/foo.c # foo.o: sub/foo.h # which is wrong. We want: # sub/foo.o: sub/foo.c # sub/foo.o: sub/foo.h # sub/foo.c: # sub/foo.h: # ICC 7.1 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using \ : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" # Add `dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in `foo.d' instead, so we check for that too. # Subdirectories are respected. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then # With Tru64 cc, shared objects can also be used to make a # static library. This mechanism is used in libtool 1.4 series to # handle both shared and static libraries in a single compilation. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. # # With libtool 1.5 this exception was removed, and libtool now # generates 2 separate objects for the 2 libraries. These two # compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 tmpdepfile2=$dir$base.o.d # libtool 1.5 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.o.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d tmpdepfile4=$dir$base.d "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for `:' # in the target name. This is to cope with DOS-style filenames: # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. "$@" $dashmflag | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift cleared=no eat=no for arg do case $cleared in no) set ""; shift cleared=yes ;; esac if test $eat = yes; then eat=no continue fi case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -arch) eat=yes ;; -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix=`echo "$object" | sed 's/^.*\././'` touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi IFS=" " for arg do case "$arg" in -o) shift ;; $object) shift ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E 2>/dev/null | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; msvcmsys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: oprofile-0.9.9/ChangeLog-20090000664000076400007640000003135012175510131012443 000000000000002009-12-07 Robert Richter * agents/Makefile.am: * configure.in: adding config option to disable oprofile user check 2009-11-25 Chen Jie * events/Makefile.am: * events/mips/loongson2/events: New File * events/mips/loongson2/unit_masks: New File * libop/op_cpu_type.c: * libop/op_cpu_type.h: * libop/op_events.c: Add default event for loongson2 * libutil/op_cpufreq.c: Add freq estimation for high performance mips processors * utils/ophelp.c: Add support for ICT loongson2 2009-11-25 Maynard Johnson * configure.in: bump version in AM_INIT_AUTOMAKE to 0.9.7cvs 2009-11-24 Maynard Johnson * configure.in: bump version in AM_INIT_AUTOMAKE to 0.9.6 2009-10-29 William Cohen * daemon/opd_perfmon.c: Fix start-daemon problem on ia64 2009-10-29 Maynard Johnson * events/ppc64/power7/events: * events/ppc64/power7/event_mappings: Updates to POWER7 events and groups 2009-10-28 Maynard Johnson * doc/opreport.xsd: Fix up schema and bump version to match 2009-06-18 fix; other schema fixups for correctness and to facilitate XML document-to-schema validation works * libpp/xml_utils.cpp: bump schema version * libpp/format_output.cpp: * libpp/format_output.h: Fix regression in XML callgraph output caused by 2009-06-18 fix 2009-10-26 Robert Richter * doc/oprofile.1.in: fix user-space daemon logfile in man page 2009-10-26 Maynard Johnson * libutil++/bfd_support.cpp: * libutil++/bfd_support.h: Fix regression in handling separate debuginfo files 2009-10-23 Robert Richter * autogen.sh: create copies with libtoolize instead of symlinks 2009-10-23 Suravee Suthikulpanit * events/x86-64/family10/events: * events/x86-64/family10/unit_masks: Update events and unitmasks from publication 31116 revision 3.34 and fixes 2009-10-23 Maynard Johnson * README_PACKAGERS: Add mention of new opjitconv binary 2009-10-14 Maynard Johnson * agents/jvmpi/jvmpi_oprofile.cpp: Add extra #includes since new libstdc++ header files do not include standard C header files 2009-10-13 Maynard Johnson * utils/opcontrol: Remove incorrect redundant invocation of get_image_range 2009-10-09 Robert Richter * libop/op_xml_events.c: * libop/op_xml_out.c: * libop/op_xml_out.h: * libutil++/xml_output.cpp: fix buffer overflows in xml generator 2009-09-14 Suravee Suthikulpanit * utils/opcontrol: Fix timer mode 2009-09-08 Robert Richter * utils/opcontrol: fix deinit; kill daemon only if running to prevent unnecessary "Daemon not running" message 2009-09-08 Robert Richter * utils/opcontrol: fix help message 2009-09-04 Robert Richter * utils/opcontrol: Do stop only if enabled 2009-08-20 Suravee Suthikulpanit * libop/op_xml_events.c: * libop/op_xml_out.h: * libop/op_xml_out.c: Fix ophelp -X output for IBS events * utils/ophelp.c: Fix ophelp output for "counter:cpuid" and "ext:xxx" case. 2009-07-31 Maynard Johnson * configure.in: bump version in AM_INIT_AUTOMAKE to 0.9.6cvs 2009-07-31 Maynard Johnson * configure.in: bump version in AM_INIT_AUTOMAKE to 0.9.5 2009-07-31 Andi Kleen * events/i386/nehalem/events: Fix name of event 0xa7 2009-07-20 Jeffrey Yasskin * libutil++/bfd_support.h(find_nearest_line): * libutil++/bfd_support.cpp(find_nearest_line): * libutil++/op_bfd.h(op_bfd::get_linenr): * libutil++/op_bfd.cpp(op_bfd::get_linenr): Change the type of offset from unsigned int to bfd_vma to accommodate addresses above 4G 2009-07-17 Maynard Johnson * libutil++/bfd_support.cpp: Fix logic error from previous patch to this file 2009-07-14 Maynard Johnson * Makefile.am: Add ChangeLog-2008 to EXTRA_DIST 2009-07-10 Maynard Johnson * libpp/profile_spec.cpp: * pp/oparchive.cpp: * utils/opcontrol: Handle bad samples from kernel due to overflows 2009-06-29 Maynard Johnson * events/ppc64/power7/events: * events/ppc64/power7/event_mappings: Update to IBM POWER7 events and groups 2009-06-23 Maynard Johnson * libutil++/bfd_support.cpp: Discard symbols from sections that do not have SEC_LOAD flag set; this prevents issues with bogus symbol size computation, resulting in "samples_range(): start > end" message 2009-06-23 Maynard Johnson * libpp/profile_spec.cpp: * pp/common_option.cpp: Fix image-path option to be appended to archive path 2009-06-18 Maynard Johnson * libpp/format_output.h: * libpp/format_output.cpp: Make sure that all callgraph symbols are reported, even if 0 samples 2009-06-05 William Cohen * libutil++/bfd_support.cpp: Avoid calling bfd_find_nearest_line with NULL syms argument 2009-06-05 Andi Kleen * libop/op_events.h: (find_event_by_name): * libop/op_events.c: (find_event_by_name): Match unit mask. * libop/op_parse_event.c: (parse_events): Set unit_mask_valid * libop/op_parse_event.h: (parsed_eventd): Add unit_mask_valid * libop/tests/alloc_counter_tests.c: (do_test): * libop/tests/parse_event_tests.c: * daemon/opd_ibs: (ibs_parse_and_set_events): * gui/oprof_start.cpp (alloc_selected_events): * utils/ophelp.c: (resolve_events, show_unit_mask): Update find_event_by_name call. 2009-06-05 Andi Kleen * libop/tests/alloc_counter_tests.c: Don't use non existent unit masks in P4 counter tests. 2009-06-03 Suravee Suthikulpanit * events/x86-64/family10/events: * events/x86-64/family10/unit_masks: Update events and unitmasks for the AMD Six-core Opteron processor support from publication 31116 revision 3.28 2009-05-27 Suravee Suthikulpanit * utils/opcontrol: Fix IBS initialization 2009-05-27 Suravee Suthikulpanit * daemon/oprofiled.c: * daemon/opd_ext.c: Fix extended feature initialization 2009-05-27 Suravee Suthikulpanit * doc/oprofile.xml: * doc/internals.xml: Add Extended-Interface and IBS documentation, 2009-05-19 Andi Kleen * utils/ophelp.c: (cleanup) Fix cleanup crash. 2009-05-19 Andi Kleen * events/i386/atom/events: Use hardcoded counters. Readd UNHALTED_REFERENCE_CLOCK. * events/i386/nehalem/events: * events/i386/nehalem/unit_masks: Use hardcoded counters. Clarify CPU_CLOCKS_UNHALTED.REF_P 2009-05-19 Andi Kleen * libop/op_hw_specific.h: (arch_get_filter): Return -1 when CPUID is not available. 2009-05-18 Brian Bloniarz * libutil/op_file.c: Fix crash when chasing broken symlinks 2009-05-13 Maynard Johnson * pp/oparchive.cpp: Fixes for oparchive session-dir as reported in bugs 2646389 and 2646376 2009-05-13 Maynard Johnson * utils/opcontrol: Fix for session-dir setup, bug report 2646398 2009-05-13 Brian Bloniarz * utils/opcontrol: Replace bash built-in let with posix statements 2009-05-07 Andi Kleen * utils/ophelp.c: * libop/op_cpu_type.c: * libop/op_cpu_type.h: * libop/op_events.c: * libop/op_hw_specific.h: Add workaround_nehalem_aaj79 * events/Makefile.am: * events/i386/atom/events: Add Atom support (New file) * events/i386/atom/unit_masks: Add Atom support (New file) * events/i386/nehalem/events: Add Nehalem support (New file) * events/i386/nehalem/unit_masks: Add Nehalem support (New file) * events/i386/core_i7/events: Add Core i7 support (New file) * events/i386/core_i7/unit_masks: Add Core i7 support (New file) 2009-05-07 Maynard Johnson * oprof-compat/events/Makefile.am: * oprof-compat/events/ppc64/ibm-compat-v1/event_mappings: (new) * oprof-compat/events/ppc64/ibm-compat-v1/events: (new) * oprof-compat/events/ppc64/ibm-compat-v1/unit_masks: (new) * oprof-compat/libop/op_cpu_type.c: * oprof-compat/libop/op_cpu_type.h: * oprof-compat/libop/op_events.c: * oprof-compat/utils/ophelp.c: Add support for IBM ppc64 architected events 2009-05-06 Andi Kleen * utils/ophelp.c: Use word wrap to output event descriptions 2009-05-01 Andi Kleen * events/i386/arch_perfmon/events: Update event names to conform to manual. 2009-05-01 Maynard Johnson * configure.in: * m4/binutils.m4: Workaround to make oprofile build on recent SUSE 2009-04-29 Andi Kleen * libop/op_events.c: Add support for include and unit mask merging statements in event files 2009-04-29 Andi Kleen * libop/op_events.c: Allow make check to accumulate some errors before exiting 2009-04-28 Maynard Johnson * events/Makefile.am: * events/ppc64/power7/event_mappings: (new) * events/ppc64/power7/events: (new) * events/ppc64/power7/unit_masks: (new) * libop/op_cpu_type.c: * libop/op_cpu_type.h: * libop/op_events.c: * utils/ophelp.c: Add support for IBM POWER7 processor 2009-04-22 Maynard Johnson * agents/jvmpi/jvmpi_oprofile.cpp: Change this file to use LGPL license to allow JVMPI agent library to link to non-GPL code 2009-04-17 Suravee Suthikulpanit * utils/opcontrol: Add IBS support, patch 4 of 4 2009-04-17 Suravee Suthikulpanit * pp/opannotate.cpp: Add IBS support, patch 3 of 4 2009-04-17 Suravee Suthikulpanit * events/x86-64/family10/events: * events/x86-64/family10/unit_masks: Add IBS support, patch 2 of 4 2009-04-17 Suravee Suthikulpanit * daemon/Makefile.am: * daemon/opd_extended.c: * daemon/opd_ibs.c: New File * daemon/opd_ibs.h: New File * daemon/opd_ibs_macro.h: New File * daemon/opd_ibs_trans.c: New File * daemon/opd_ibs_trans.h: New File * daemon/opd_interface.h: * daemon/opd_sfile.c: * daemon/opd_sfile.h: * daemon/opd_trans.c: * libdb/db_insert.c: * libdb/odb.h: Add IBS support, patch 1 of 4 2009-04-15 Maynard Johnson * libpp/xml_utils.cpp: Fix binary count total in XML output when using --separate=lib 2009-04-08 William Cohen * configure.in: Add check for basename declaration 2009-04-01 Suravee Suthikulpanit * daemon/Makefile.am: * daemon/opd_events.c: * daemon/opd_extended.h: New File * daemon/opd_extended.c: New File * daemon/opd_printf.h: * daemon/opd_sfile.h: * daemon/opd_sfile.c: * daemon/opd_stats.c: * daemon/opd_trans.h: * daemon/opd_trans.c: * daemon/oprofiled.c: * libop/op_events.h: * libop/op_events.c: * libop/op_alloc_counter.c: * utils/ophelp.c: Add Extended Feature Interface 2009-03-17 Suraveee Suthikulpanit * events/Makefile.am * events/x86-64/family11h/events: New event file * events/x86-64/family11h/unit_masks: New Unitmask file * libop/op_cpu_type.c: Adding family11h * libop/op_cpu_type.h: Adding family11h * libop/op_events.c: Adding family11h * utils/ophelp.c: Adding family11h and update documents 2009-03-17 Maynard Johnson * libop/op_allocate_counter.c: Make map_event_to_counter handle a non-native cpu_type 2009-03-05 Robert Richter * libutil++/bfd_support.cpp: suppress 'unused parameter' warning 2009-02-10 Maynard Johnson * libabi/tests/abi_test.cpp: * libregex/tests/java_test.cpp: * libregex/tests/regex_test.cpp: Use C++ style #includes for stdlib and string 2009-02-09 Kjetil Barvik * libabi/tests/abi_test.cpp: * libregex/tests/java_test.cpp: * libregex/tests/regex_test.cpp: * libutil/tests/file_tests.c: Fix gcc warnings 2009-02-06 Maynard Johnson * libutil++/bfd_support.cpp: * libutil++/bfd_support.h: * libutil++/op_bfd.cpp: Fixup debuginfo processing for ppc64 2009-02-03 Carl Love * utils/opcontrol: * doc/oprofile.xml: * events/ppc64/cell-be/events: * events/ppc64/cell-be/unit_masks: Added IBM CELL SPU event profiling support 2009-01-05 Maynard Johnson * m4/binutils.m4: Fix error in AC_CHECK_LIB action See ChangeLog-2008 for earlier changelogs. oprofile-0.9.9/ChangeLog-20040000664000076400007640000007506712175510131012453 000000000000002004-12-25 Will Cohen * events/Makefile.am: Corrected type for events_files. 2004-12-12 John Levon * doc/oprofile.xml: expand list of supported CPU types. 2004-12-12 Ralf Baechle * daemon/opd_cookie.c: Define __NR_lookup_dcookie for all three supported MIPS ABIs. * events/mips/r10000/events: * events/mips/r10000/unit_masks: * events/mips/r12000/events: * events/mips/r12000/unit_masks: * events/mips/r5432/events: * events/mips/r5432/unit_masks: * events/mips/r5500/events: * events/mips/r5500/unit_masks: * events/mips/rm7000/events: * events/mips/rm7000/unit_masks: * events/mips/rm9000/events: * events/mips/rm9000/unit_masks: * events/mips/sb1/events: * events/mips/sb1/unit_masks: * events/Makefile.am: * libop/op_events.c: * utils/op_help.c: * libop/op_cpu_type.h: * libop/op_cpu_type.c: Add support for the MIPS R10000 and R12000, QED RM7000 and PMC-Sierra RM9000, NEC VR5432 and VR5500 and Sibyte SB1 processors. * README: List myself as the caretaker of the MIPS bits. 2004-11-25 Philippe Elie * libop/op_events.c: simplify a bit get_mapping() 2004-11-20 Philippe Elie * daemon/opd_stats.c: some statistics are useless, don't print them if we can't read the oprofilefs files. 2004-11-20 Philippe Elie * daemon/opd_sfile.c: sfile_clear_kenel() : clear also callgraph file depending on module. 2004-11-19 Philippe Elie * daemon/opd_sfile.h: * daemon/opd_sfile.c: fix #971487, daemon was unable to retrieve correctly callgraph sample file for kernel space samples. Fixed by adding relevant information to cg_hash_entry. * libpp/callgraph_container.cpp: more verbosity 2004-11-19 John Levon * doc/oprofile.xml: Fix AMD link (noticed by Emmanuel Araman). 2004-11-18 Philippe Elie * pp/opgprof.cpp: ensure we load all callgraph file 2004-11-18 Philippe Elie * libutil++/locate_images.cpp: ensure error is always set, callgraph_container was using an uninitialized value. 2004-11-17 Philippe Elie * libutil++/op_bfd.cpp: improve a bit the symbol chosen when multiple symbol live at same vma 2004-11-17 Philippe Elie * doc/oprofile.xml: some words about UP kernel > 2.6.9 and the need of lapic at boot. 2004-11-17 Philippe Elie * pp/common_option.h: * pp/common_option.cpp: move threshold option from here ... * pp/opannotate_options.cpp: * pp/opgprof_options.cpp: * pp/opreport_options.cpp: * pp/opstack_options.cpp: to each of these file using it. Side effect is to remove this option from oparchive which didn't handle it. * doc/oparchive.1.in: * doc/oprofile.xml: there isn't any --threshold option to oparchive 2004-11-07 Kristis Makris * doc/internals.xml: fix typo 2004-11-01 Maynard Johnson * events/ppc64/970/events: Make min count 10000 for all PM_INST_CMPL; and remove redundant event in group 2 * events/ppc64/power4/event_mappings: Set LSB of MMCRA so kernel kludge can be removed at some later date * events/ppc64/power4/events: Make min counts consistent with ppc970 * events/ppc64/power5/events: Make min counts consistent with ppc970 2004-11-01 Greg Banks * libop/op_events.c: Make the default sample rate for IA64 sensible (i.e. 10 times smaller). 2004-10-15 Will Cohen * events/ppc64/power4/events: Corrected group 4 counter assignments. 2004-10-15 Maynard Johnson * events/Makefile.am: * events/ppc64/970/event_mappings: * events/ppc64/970/events: * events/ppc64/970/unit_masks: * libop/op_cpu_type.c: * libop/op_cpu_type.h: * libop/op_events.c: * utils/op_help.c: * utils/opcontrol: Added ppc64/970 support. 2004-10-14 Greg Banks * configure.in: * daemon/opd_perfmon.c: autoconf for sched_setaffinity and perfmonctl, fix sched_setaffinity call for early 2.6 kernels 2004-10-07 Will Cohen * utils/opcontrol: Correct ppc64 check that events are in same group. 2004-09-21 Will Cohen * libutil++/op_bfd.h: * libutil++/op_bfd.cpp: Add logic to use the preferred symbol name. 2004-09-17 John Levon * utils/op_help.c: don't deref a NULL pointer on failure to read /dev/oprofile/cpu_type 2004-09-17 Anton Blanchard * libop/op_events.c: fix compile warnings 2004-09-16 John Levon * m4/configmodule.m4: disable x86-64 on 2.4 2004-09-15 Maynard P. Johnson * events/Makefile.am: * libop/op_cpu_type.h: * libop/op_events.h: * libop/op_events.c: * utils/op_help.c: * utils/opcontrol: PPC64 support 2004-09-13 John Levon * configure.in: bump to 0.8.2cvs 2004-09-11 John Levon * configure.in: bump to 0.8.1 2004-09-11 John Levon * libpp/locate_images.h: doxygen for archive_path 2004-08-18 Will Cohen * doc/oprofile.xml: List default events in documentation. 2004-08-12 John Levon * libutil++/op_bfd.cpp: we need to verify functionname is non-NULL in *both* places 2004-08-12 John Levon * libutil++/op_bfd.cpp: add a hack to support Objective C 2004-07-21 Philippe Elie * libdb/db_manage.c: thinko in #931871 bug fix. 2004-07-21 Philippe Elie * libpp/arrange_profiles.cpp: fix opreport -m lib, broken in 0.8 when using opcontrol --separate=kernel with message "add_to_profile_sample_files(): sample file parsed twice" 2004-07-18 John Levon * libop/op_mangling.c: dep image always used '{root}' token 2004-07-15 John Levon * doc/internals.xml: document some more 2004-07-09 John Levon * libpp/populate.cpp: quash timestamp warnings when using archive: profile specifier 2004-07-09 John Levon * pp/opstack_options.cpp: include call-graph files in archive. 2004-07-06 John Levon * doc/oprofile.1.in: * doc/oprofile.xml: * libpp/profile_spec.h: * libpp/profile_spec.cpp: remove sample-file and binary profile specifiers * doc/opcontrol.1.in: * doc/oprofile.xml: * pp/common_option.cpp: * utils/opcontrol: allow either "lib" or "library" for merge/separate option. Document "lib" 2004-07-06 Will Cohen * doc/oprofile.xml: * doc/Makefile.am: * doc/oparchive.1.in: * doc/oprofile.1.in: * libpp/profile_spec.cpp: * libpp/profile_spec.h: * libpp/populate.h: * libpp/populate.cpp: * libpp/callgraph_container.cpp: * libpp/callgraph_container.h: * libpp/arrange_profiles.cpp: * libpp/arrange_profiles.h: * libpp/locate_images.cpp: * libpp/locate_images.h: * libutil++/op_bfd.h: * libutil++/op_bfd.cpp: * libutil++/file_manip.cpp: * libutil++/file_manip.h: * pp/Makefile.am: * pp/oparchive.cpp: * pp/oparchive_options.cpp: * pp/oparchive_options.h: * pp/opreport.cpp: * pp/opreport_options.h: * pp/opreport_options.cpp: * pp/opstack.cpp: * pp/opstack_options.h: * pp/opstack_options.cpp: * pp/opannotate_options.cpp: * pp/opannotate_options.h: * pp/opgprof.cpp: * pp/opgprof_options.cpp: * pp/opgprof_options.h: * pp/opannotate.cpp: * configure.in: Support for oparchive. 2004-07-05 John Levon * doc/oprofile.1.in: add opstack(1) to SEE ALSO 2004-06-21 John Levon * events/i386/p4/events: * events/i386/p4-ht/events: * module/x86/op_model_athlon.c: * module/x86/op_model_p4.c: * module/x86/op_model_ppro.c: * module/ia64/op_pmu.c: fix bug 964097 (event code of 0x00 doesn't work) by relying consistently on "enabled" not "event" 2004-05-29 John Levon * libdb/tests/Makefile.am: fix build * daemon/opd_mangling.c: * daemon/opd_mangling.h: * daemon/opd_sfile.c: * daemon/opd_sfile.h: * daemon/liblegacy/opd_sample_files.h: * libabi/abi.cpp: * libabi/abi_test.cpp: * libabi/op_import.cpp: * libdb/Makefile.am: * libdb/db_debug.c: * libdb/db_insert.c: * libdb/db_manage.c: * libdb/db_stat.c: * libdb/db_travel.c: * libdb/odb.h: * libdb/odb_hash.h: * libdb/tests/db_test.c: * libpp/op_header.cpp: * libpp/profile.cpp: * libpp/profile.h: s/samples_odb_t/odb_t/, move odb_hash.h to odb.h 2004-05-28 John Levon * daemon/opd_mangling.cpp: * daemon/opd_sfile.cpp: * daemon/liblegacy/opd_proc.c: * daemon/liblegacy/opd_sample_files.c: * libabi/abi_test.cpp: * libabi/op_import.cpp: * libdb/db_manage.cpp: * libdb/odb_hash.h: * libpp/profile.cpp: introduce and use odb_get_data(), odb_open_count() 2004-05-28 John Levon * libpp/callgraph_container.cpp: * libpp/arrange_profiles.cpp: trivialities 2004-05-28 Bin Ren * daemon/opd_mangling.c: * daemon/opd_sfile.c: * daemon/oprofiled.c: * daemon/liblegacy/opd_image.c: * daemon/liblegacy/opd_proc.c: * daemon/liblegacy/opd_sample_files.c: * libdb/db_debug.c: * libdb/db_insert.c: * libdb/db_manage.c: * libdb/db_stat.c: * libdb/odb_hash.h: * libdb/db_travel.c: * libpp/op_header.cpp: * libpp/profile.cpp: * libutil/op_string.c: * libutil/op_string.h: fix dcookie alias bug by introducing one level of indirection and hash sample files by path names (bug #931871) 2004-05-11 John Levon * libutil++/file_manip.h: clarify behaviour of op_realpath() * libpp/opannotate.cpp: add some checks to avoid creating files outside of the output directory 2004-05-11 Andi Kleen * libpp/callgraph_container.cpp: * libpp/profile_container.cpp: * libutil++/op_bfd.h: * libutil++/op_bfd.cpp: use unsigned long in various places - u32 was breaking 64-bit usage 2004-05-11 John Levon * configure.in: bump to 0.8.1cvs 2004-05-07 John Levon * configure.in: bump to 0.8 2004-05-07 John Levon * libpp/filename_spec.h: * libpp/filename_spec.cpp: * libpp/profile_spec.cpp: "dependant" not "dependent" 2004-04-19 Will Cohen * events/i386/p4/unit_masks: * events/i386/p4-ht/unit_masks: Correct machine_clear unit mask. 2004-04-04 Will Cohen * m4/builtinexpect.m4: * m4/compileroption.m4: * m4/configmodule.m4: * m4/copyifchange.m4: * m4/docbook.m4: * m4/extradirs.m4: * m4/findkernel.m4: * m4/kerneloption.m4: * m4/kernelversion.m4: * m4/mallocattribute.m4: * m4/poptconst.m4: * m4/precompiledheader.m4: * m4/qt.m4: * m4/resultyn.m4: * m4/sstream.m4: * m4/typedef.m4: Add quotes as required for automake 1.8. 2004-04-04 John Levon * doc/oprofile.xml: improvements to the call-graph * documentation. 2004-03-28 Philippe Elie * libutil++/op_bfd.cpp: remove spurious cerr <<; fix a potential memory leak 2004-03-28 John Levon * libutil++/op_bfd.cpp: fix a BFD leak on format failure. Fix a small race when the binary changes, and we error fatally instead of recovering. 2004-03-22 Philippe Elie * module/x86/hammer_op_syscalls.c: use the first map with VM_EXECUTABLE bit to do the exec notification, this fix a 32 bits application profiling regression. We dunno exactly what is this second mmap ... but we must ignore one of these. Fix #921243 2004-03-22 Philippe Elie * module/ia64/op_pmu.c: the way to set pfm_syst_wide and pfm_dcr_pp changed between 2.4.19 and 2.4.20 2004-03-22 Will Cohen * utils/opcontrol: Correct order of do_init_daemon_vars and decide_orofile_devices. 2004-03-22 Will Cohen * utils/opcontrol: Tweak error messages and factor out common code. 2004-03-19 Anton Blanchard * daemon/opd_sfile.c: Add function name to some error messages 2004-03-04 Philippe Elie * utils/opcontrol: tweak a bit error message. 2004-03-03 Will Cohen * utils/opcontrol: Support --dump for normal users. 2004-02-29 Philippe Elie * libpp/callgraph_container.cpp: make g++ -D_GLIBCXX_DEBUG happy, see http://gcc.gnu.org/PR14340 * module/op_dcache.h: * module/op_dname.c: some gcc version are confused by extern declaration followed by later static. 2004-02-28 Zwane Mwaikambo * libutil++/op_bfd.cpp: * utils/opcontrol: This patch fixes the listing of symbols within the kernel image on ARM i was having. The problem was due to the fact that ARM/Linux kernel text starts with a section called .init unlike all the currently supported Linux architectures. So the solution is to start at section 0 2004-02-28 Philippe Elie * module/x86/op_syscalls.c: warning fix 2004-02-23 Philippe Elie * daemon/Makefile.am: * daemon/liblegacy/Makefile.am: force daemon build with frame pointer. If daemon is built w/o frame pointer we get random arc, some of them go in the vma used by an existing mmaped sample file, so cookie lookup return a sample filename which is used as a from or to component, this break pptools by creating invalid filename. Note this doesn't protect agaisnt a make CFLAGS=-fomit-frame-pointer. * libpp/callgraph_container.cpp: use the right {cg_}image_name for verbose output. 2004-02-21 Philippe Elie * libpp/format_flags.h: * libpp/format_output.cpp: * libpp/format_output.h: * pp/opstack.cpp: alternate output format. 2004-02-20 Philippe Elie * doc/srcdoc/Doxyfile.in: Fix for doxygen 1.3.6 * libpp/profile_spec.h: * libutil++/op_bfd.h: minor Doxygen comments fix 2004-02-20 Philippe Elie * libutil++/tests/string_manip_tests.cpp: fix a $ make check failure from the last format_percent() change 2004-02-18 Philippe Elie * libpp/format_output.cpp: change output spacing. 2004-02-17 Philippe Elie * pp/opstack_options.h: * pp/opstack.cpp: pass mege_options::lib to callgraph_container * libpp/callgraph_container.cpp: * libpp/callgraph_container.h: handle merge_options::lib 2004-02-17 Philippe Elie * libpp/format_output.cpp: use "self/child" for header * libutil++/string_manip.cpp: format_percent() return "0" if value == 0.0 * libpp/callgraph_container.cpp: remove some dead code. 2004-02-16 Philippe Elie * module/compat24.h: * module/x86/cpu_type.c: * module/x86/op_apic.c: * module/x86/op_model_p4.c: * module/x86/op_nmi.c: * module/x86/op_x86_model.h: backport P4 HyperThreading support from 2.6 to 2.4. 2004-02-16 Philippe Elie * events/i386/p4/events: * events/i386/p4/unit_masks: * events/i386/p4-ht/events: * events/i386/p4-ht/unit_masks: fix MEMORY_COMPLETE unit mask 2004-02-15 Philippe Elie * libpp/profile.cpp: samples_range() throw if start > end 2004-02-15 Philippe Elie * events/ia64/itanium2/unit_masks: comments * utils/op_help.c: add --callgraph to sanitize min events count * utils/opcontrol: pass --callgraph to op_help 2004-02-15 Philippe Elie * daemon/oprofiled.c: send alarm() after fork not before, behavior changed between 2.4 and 2.6 and according to posix 2.6 is right. 2004-02-15 Philippe Elie * utils/op_help.c: output the default unit mask. when querying the default mask output it in decimal not hexadecimal * libpp/op_header.cpp: event number must be output as integer not as unsigned char type * libop/op_parse_event.c: clarify error message * libop/op_events.c: better validation of unit mask * events/ia64/itanium2/unit_masks: * events/x86-64/hammer/unit_masks: fix so make check pass, done through documentation reading. 2004-02-13 Philippe Elie * events/i386/p4-ht/events: multiply all minimum count by two 2004-02-12 Philippe Elie * daemon/opd_stats.c: handle new statistics added in callgraph patch 2004-02-11 Will Cohen * utils/opcontrol: fix normalise_events for default event. 2004-02-10 Will Cohen * events/i386/p6_mobile/events: * events/i386/p6_mobile/unit_masks: * events/Makefile.am: * libop/op_cpu_type.c: * libop/op_cpu_type.h: * libop/op_events.c: * utils/op_help.c: Add support for Pentium M (Centrino). 2004-02-10 Philippe Elie * events/i386/p4/events: s/instructions/uops/ when appropriate * events/i386/p4/unit_masks: change many bitmask to mandatory, fix invalid default value, remove mask only used with HyperThreading * events/i386/p4-ht/unit_masks: s/bitmask/mandatory. Remove unused unit mask * libop/op_events.h: * libop/op_events.c: warn if an unit mask is not used (this add a warning for Itanium2, added in TODO) * libop/op_parse_event.c: don't silently accept invalid value as zero (e.g FOO:3000:0xx21 was accepted as FOO:3000:0x0) * utils/opcontrol: mandatory default value was rejected because we checked the events before getting the default unit mask. 2004-02-08 Zwane Mwaikambo * daemon/opd_cookie.c: Fix syscall base number. 2004-02-08 Zwane Mwaikambo * daemon/opd_cookie.c: arm support for timer interrupt 2004-02-08 Philippe Elie * daemon/liblegacy/opd_sample_files.c: op_mangle_filename() presume mangle_values::dep_name is never NULL, this fix a daemon segfault with 2.4 kernel 2004-02-07 Philippe Elie * events/i386/p4/unit_masks: * events/i386/p4-ht/unit_masks: global_power_events need mandatory unit mask 2004-02-07 Philippe Elie * libpp/arrange_profiles.cpp: re-order function to fix a build problem with gcc 3.3.1 2004-02-05 Philippe Elie * libpp/callgraph_container.cpp: tweak computation of callee_counts 2004-02-05 Philippe Elie * libpp/callgraph_container.cpp: Big Thinko (tm), callee samples offset are unordered 2004-02-04 Philippe Elie * libpp/callgraph_container.cpp: * libpp/format_output.cpp: arc_recorder::get_caller()/get_callee() name was reversed (caught by Will Cohen) 2004-02-02 Philippe Elie * libpp/callgraph_container.cpp: * libpp/callgraph_container.h: * pp/opreport_options.h: * pp/opstack.cpp: implement --threshold 2004-02-02 Will Cohen * libpp/callgraph_container.h: * libpp/format_output.h: missing std:: in header. 2004-02-01 Philippe Elie * libpp/callgraph_container.h: * libpp/callgraph_container.cpp: rewrite populate() and ehance caller_callee_recorder to support multiple profile classes. * pp/opstack_options.cpp: accept multiple profile class 2004-02-01 Philippe Elie * libpp/callgraph_container.cpp: get correct source filenname liner * libpp/format_output.cpp: re-factorize a bit by moving anon namespace from format_output:: to :: 2004-02-01 Philippe Elie * doc/oprofile.xml: * doc/opstack.1.in: document new options * libpp/callgraph_container.h: * libpp/callgraph_container.cpp: improve readability, add linenr debug information recording partially, see TODO * libpp/format_output.h: s/formatter/opreport_formatter, define cg_formatter * libpp/format_output.cpp: implement cg_formatter, factorize some code in formatter base class * pp/opreport.cpp: s/formatter/opreport_formatter * pp/opstack_options.h: * pp/opstack_options.cpp: implement output selection/formatting options * pp/opstack.cpp: use cg_formatter for output. 2004-01-30 Philippe Elie commit not itended but tree is stable so add a ChangeLog ... * libpp/Makefile.am: * libpp/symbol.cpp: new file for output_hint() * libpp/profile_container.cpp: use output_hint() * libpp/callgraph_container.cpp: * libpp/callgraph_container.h: * libpp/symbol.h: * pp/opstack.cpp: get output hint from the callgraph container. 2004-01-29 Philippe Elie * daemon/init.c: * daemon/opd_events.c: * daemon/opd_kernel.c: * daemon/opd_mangling.c: * daemon/opd_printf.h: * daemon/opd_sfile.c: * daemon/opd_trans.c: * daemon/oprofiled.c: * daemon/oprofiled.h: * daemon/liblegacy/init.c: * daemon/liblegacy/opd_image.c: * daemon/liblegacy/opd_kernel.c: * daemon/liblegacy/opd_mapping.c: * daemon/liblegacy/opd_parse_proc.c: * daemon/liblegacy/opd_proc.c: * daemon/liblegacy/opd_sample_files.c: * utils/opcontrol: split daemon --verbose, w/o argument it's synonymous to --verbose=all. Better splitting is welcome * daemon/opd_sfile.c: Fix thinko, opcontrol --reset coredump'ed 2004-01-29 Philippe Elie * libop/op_events.c: * utils/op_help.c: don't use default in switch (cpu_type) to ensure adding a cpu type will issue a warning where we forget to handle it. 2004-01-28 Philippe Elie * daemon/opd_sfile.c: invert from/to start offset for kernel samples * pp/opstack.cpp: * libpp/callgraph_container.h: * libpp/callgraph_container.cpp: if we can't bfd_open a binary and the sample file show it's a kernel sample file we must ignore completely the it. (Added to TODO, there is something fragile here) 2004-01-28 Philippe Elie * libpp/image_errors.cpp: typo, warn at first error not from second 2004-01-28 Philippe Elie * libutil++/tests/utility_tests.cpp: * libopt++/popt_options.cpp: s/template * daemon/init.c: show buffer read only when --verbose * libpp/image_errors.cpp: * libpp/image_errors.h: add needed API for callgraph image error * libpp/callgraph_container.cpp: use it. * pp/opstack.cpp: report_image_errors() 2004-01-27 Philippe Elie * libutil++/op_bfd.cpp: Fix bfd_find_nearest_line() and separate debug info, please test it. 2004-01-27 Philippe Elie * doc/opcontrol.1.in: * doc/oprofile.xml: * utils/opcontrol: add --cpu-buffer-size and document it. 2004-01-27 Will Cohen * events/i386/p4/unit_masks: * events/i386/p4-ht/unit_masks: correct branch_type unit mask. 2004-01-25 John Levon * doc/Makefile.am: fix make chunk * doc/buffers.dia: add editable source * doc/buffers.png: fix stupid typos * doc/internals.xml: add some more text 2004-01-25 Philippe Elie * libpp/parse_filename.h: * libpp/parse_filename.cpp: profile_spec_equal() new predicate * libpp/arrange_profiles.cpp: use it to ensure we create a new profile_samples_file when needed. 2004-01-24 John Levon * doc/oprofile.1.in: * doc/opstack.1.in: some cleanups * libop/tests/load_events_files_tests.c: * libop/tests/alloc_counter_tests.c: * libop/op_events.c: rename env var to OPROFILE_EVENTS_DIR 2004-01-20 Philippe Elie * daemon/opd_sfile.c: (getfile()) avoid out of bound sf->files[] access 2004-01-20 Philippe Elie * libpp/callgraph_container.cpp: tweak comparator to sort arcs. * pp/common_option.cpp: typo. 2004-01-20 Philippe Elie * doc/opannotate.1.in: * doc/opgprof.1.in: * doc/opreport.1.in: * doc/oprofile.xml: * doc/opstack.1.in: document --verbose options a bit * libutil++/cverb.cpp: * libutil++/cverb.h: * pp/common_option.cpp: remove vlevel2 verbose object 2004-01-20 Philippe Elie * libutil++/cverb.h: * libutil++/cverb.cpp: new cverb handling. most interresting are --verbose=sfile,bfd,level1 resp. sample filename handling bfd handling and more verbosity (only for bfd actually) * pp/opgprof.cpp: controlled by --verbose==bfd, add level1 to get verbose symbols. * libpp/callgraph_container.cpp: * libutil++/op_bfd.cpp: * pp/common_option.cpp: * pp/opannotate_options.cpp: * pp/opgprof_options.cpp: * pp/opreport_options.cpp: * pp/opstack_options.cpp: use it 2004-01-19 John Levon * libpp/callgraph_container.h: * libpp/callgraph_container.cpp: rename caller_callee_recorder to arc_recorder. * doc/CodingStyle: mention trailing comments * utils/opcontrol: fix formatting. Error if --note-table-size is passed on 2.6 kernels. 2004-01-18 Philippe Elie * libdb/db_debug.c: fix build on alpha * libpp/callgraph_container.cpp: missing std:: in header 2004-01-18 Philippe Elie * libpp/callgraph_container.cpp: Obviously not2(weak_ordering_function) is not a weak_ordering function leading to mysterious segfault during sort. 2004-01-18 Philippe Elie * doc/opstack.1.in: new file, describe opstack usage * doc/oprofile.xml: describe opstack 2004-01-18 Philippe Elie * libutil++/op_bfd.cpp: Don't fix symbol offset for symbol definition coming from the original file. A corner case remain broken: symbols definition coming from debug file and belonging to another section than .text are incorrecttly offseted. 2004-01-18 Philippe Elie * libop/op_sample_file.h: with cg file we need two field is_kernel. * daemon/opd_events.c: * daemon/opd_events.h: * daemon/opd_mangling.c: * daemon/liblegacy/opd_sample_files.c: handle cg_to_is_kernel * pp/populate.cpp: * pp/populate.h: * pp/image_errors.cpp: * pp/image_errors.h: move this four files to libpp * libpp/populate.cpp: we can get empty filename now, ignore them. * libpp/image_error.h: remove this file by moving its contents ... * libpp/image_errors.h here (this two filenames was confusing) * libpp/Makefile.am: update according to files move. * libpp/arrange_profiles.h: * libpp/arrange_profiles.cpp: Fix find_profile_sample_files(), I was creating to many profile_sample_files. Add a bunch of operator<<. * libpp/callgraph_container.h: * libpp/callgraph_container.cpp: * libpp/filename_spec.h: add cg_filename member * libpp/filename_spec.cpp: handle cg_filename, Fix an error in is_dependant(), I'm a bit nervous about this predicate... * libpp/locate_images.h: * libpp/locate_images.cpp: #include fix * libpp/parse_filename.cpp: Fix cg filename handling to not trigger some invalid_filename error with cg filename. * libpp/profile.h: * libpp/profile.cpp: we can no longer assume we use u32, so use odb_key_t in public interface. Add operator== acting on iterator * libpp/symbol_container.cpp: * libpp/symbol_container.h: add find(symbol const &); * libpp/profile_container.h: * libpp/profile_container.cpp: add a public interface to iterate over all smybols and to find a specific symbol * libpp/symbol.h: typo, missing include * pp/Makefile.am: handle opstack various new files and files move to libpp. * pp/opreport.cpp: * pp/opannotate.cpp: pass symbol_filter as params to populate() * pp/opannotate_options.cpp: add verbose output of profile_classes * pp/opgprof_options.cpp: * pp/opreport_options.cpp: * pp/opstack.cpp: * pp/opstack_options.cpp: * pp/opstack_options.h: new callgraph utility far to be complete but enough to start to play with callgraph. 2004-01-04 Philippe Elie * libutil/op_fileio.c: op_write_file(): allow to write zero byte. * libutil/op_fileio.h: add fatal error for opd_read_int_from_file() * daemon/init.c: add fatal error for opd_read_fs_int * daemon/oprofiled.c: * daemon/oprofiled.h: * daemon/liblegacy/init.c: * daemon/liblegacy/opd_24_stats.c: use this new fatal parameter * daemon/opd_stats.c: dump /dev/oprofile/stats/* * daemon/opd_sfile.c: * daemon/opd_sfile.h: augment opd_sfile with an hash table of related call graph file * daemon/opd_mangling.c: * daemon/opd_mangling.h: * daemon/liblegacy/opd_sample_files.c: * libop/op_mangle.c: * libop/op_mangle.h: use new mangling name scheme, in short word: {dep} part is no longer optionnal, a {cg}/binary_name can optionnally follow the {dep} part * libop/tests/mangle_tests.c: update test according to sample filename change * libpp/filename_spec.cpp: * libpp/filename_spec.h: filename_spec::is_dependant() new function * libpp/parse_filename.h: add a cg_image member * libpp/parse_filename.cpp: handle callgraph filename * libpp/arrange_profiles.cpp: * libpp/arrange_profiles.h: rather to use string for sample files, use a { string sample_filename, list cg_files }, if {dep} part != {cg} part it's a cross-call binary. Note the sample_filename string can be empty (callgraph file w/o any samples into a binary) * libpp/profile_spec.h: * libpp/profile_spec.cpp: fix filtering of callgraph filename (this fix Carlo problem where opreport die with an invalid_filename error) * pp/opgprof.cpp: use the new arrange_profiles.h API to acquire callgraph filename associated with a binary * pp/opgprof_options.cpp: don't filter callgraph filename * pp/opreport.cpp: * pp/populate.cpp: update according arrange_profile API change * utils/opcontrol: add --callgraph=#depth parameter * doc/opcontrol.1.in: * doc/oprofile.xml: document opcontrol --callgraph=#depth 2004-01-16 Will Cohen * libutil++/op_bfd.cpp: Always use filepos of original file. 2004-01-16 Will Cohen * libop/op_config.h (DEBUGDIR): New. * libutil/op_fileio.h: * libutil/op_fileio.c: New function calc_crc32 * libutil++/Makefile.am: Add libop to include directory. * libutil++/op_bfd.h: * libutil++/op_bfd.cpp: New functions separate_debug_file_exists, get_debug_link_info, find_separate_debug_file, open_bfd, and get_symbols_from_file to support separate debug files. 2004-01-02 Philippe Elie * pp/opgprof_options.cpp: use the proper type for options::demangle 2004-01-01 Philippe Elie * libregex/op_regex.cpp: * libregex/op_regex.h: tidy a bit private interface 2004-01-01 Philippe Elie * gui/oprof_start_config.h: * gui/oprof_start_util.h: * libpp/symbol.h: * libutil++/cverb.cpp: * libutil++/cverb.h: * pp/opannotate_options.cpp: * pp/opgprof_options.cpp: move some #include <> from .h to .cpp 2004-01-01 Philippe Elie * libregex/op_regex.cpp: don't assume int('a') > int('0') See ChangeLog-2004 for earlier changelogs. oprofile-0.9.9/libpe_utils/0000775000076400007640000000000012175511560012701 500000000000000oprofile-0.9.9/libpe_utils/Makefile.in0000664000076400007640000004040612175510234014667 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libpe_utils DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) ARFLAGS = cru libpe_utils_a_AR = $(AR) $(ARFLAGS) libpe_utils_a_LIBADD = am__libpe_utils_a_SOURCES_DIST = op_pe_utils.h op_pe_utils.cpp @BUILD_FOR_PERF_EVENT_TRUE@am_libpe_utils_a_OBJECTS = \ @BUILD_FOR_PERF_EVENT_TRUE@ op_pe_utils.$(OBJEXT) libpe_utils_a_OBJECTS = $(am_libpe_utils_a_OBJECTS) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libpe_utils_a_SOURCES) DIST_SOURCES = $(am__libpe_utils_a_SOURCES_DIST) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ @BUILD_FOR_PERF_EVENT_TRUE@AM_CPPFLAGS = \ @BUILD_FOR_PERF_EVENT_TRUE@ -I ${top_srcdir}/libutil \ @BUILD_FOR_PERF_EVENT_TRUE@ -I ${top_srcdir}/libutil++ \ @BUILD_FOR_PERF_EVENT_TRUE@ -I ${top_srcdir}/libop \ @BUILD_FOR_PERF_EVENT_TRUE@ -I ${top_srcdir}/libpe_utils \ @BUILD_FOR_PERF_EVENT_TRUE@ -I ${top_srcdir}/libperf_events \ @BUILD_FOR_PERF_EVENT_TRUE@ @PERF_EVENT_FLAGS@ \ @BUILD_FOR_PERF_EVENT_TRUE@ @OP_CPPFLAGS@ @BUILD_FOR_PERF_EVENT_TRUE@noinst_LIBRARIES = libpe_utils.a @BUILD_FOR_PERF_EVENT_TRUE@libpe_utils_a_SOURCES = \ @BUILD_FOR_PERF_EVENT_TRUE@ op_pe_utils.h \ @BUILD_FOR_PERF_EVENT_TRUE@ op_pe_utils.cpp all: all-am .SUFFIXES: .SUFFIXES: .cpp .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libpe_utils/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign libpe_utils/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) libpe_utils.a: $(libpe_utils_a_OBJECTS) $(libpe_utils_a_DEPENDENCIES) -rm -f libpe_utils.a $(libpe_utils_a_AR) libpe_utils.a $(libpe_utils_a_OBJECTS) $(libpe_utils_a_LIBADD) $(RANLIB) libpe_utils.a mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/op_pe_utils.Po@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLIBRARIES ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/libpe_utils/op_pe_utils.h0000664000076400007640000000245012175510131015306 00000000000000/** * @file op_pe_utils.h * Definitions and prototypes for tools using Linux Performance Events Subsystem. * * @remark Copyright 2013 OProfile authors * @remark Read the file COPYING * * Created on: May 21, 2013 * @author Maynard Johnson * (C) Copyright IBM Corp. 2013 * */ #ifndef OP_PE_UTILS_H_ #define OP_PE_UTILS_H_ #include #include #include "op_cpu_type.h" #define OP_APPNAME_LEN 1024 #define OP_MAX_EVENTS 24 /* A macro to be used for ppc64 architecture-specific code. The '__powerpc__' macro * is defined for both ppc64 and ppc32 architectures, so we must further qualify by * including the 'HAVE_LIBPFM' macro, since that macro will be defined only for ppc64. */ #define PPC64_ARCH (HAVE_LIBPFM) && ((defined(__powerpc__) || defined(__powerpc64__))) // Candidates for refactoring of operf namespace op_pe_utils { // prototypes extern int op_check_perf_events_cap(bool use_cpu_minus_one); extern int op_get_sys_value(const char * filename); extern int op_get_cpu_for_perf_events_cap(void); extern int op_validate_app_name(char ** app, char ** save_appname); extern void op_get_default_event(void); extern void op_process_events_list(std::vector & passed_evts); extern std::set op_get_available_cpus(int max_num_cpus); } #endif /* OP_PE_UTILS_H_ */ oprofile-0.9.9/libpe_utils/op_pe_utils.cpp0000664000076400007640000006165012175510131015650 00000000000000/** * @file op_pe_utils.cpp * General utility functions for tools using Linux Performance Events Subsystem. * * @remark Copyright 2013 OProfile authors * @remark Read the file COPYING * * Created on: May 21, 2013 * @author Maynard Johnson * (C) Copyright IBM Corp. 2013 * */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "config.h" // HAVE_LIBPFM is defined in config.h #ifdef HAVE_LIBPFM #include #endif #include "op_config.h" #include "op_types.h" #include "op_pe_utils.h" #include "operf_event.h" #include "op_libiberty.h" #include "cverb.h" #include "op_string.h" #include "op_netburst.h" #include "op_events.h" extern verbose vdebug; extern std::vector events; extern op_cpu cpu_type; using namespace std; static int _op_get_next_online_cpu(DIR * dir, struct dirent *entry) { #define OFFLINE 0x30 unsigned int cpu_num; char cpu_online_pathname[40]; int res; FILE * online; again: do { entry = readdir(dir); if (!entry) return -1; } while (entry->d_type != DT_DIR); res = sscanf(entry->d_name, "cpu%u", &cpu_num); if (res <= 0) goto again; errno = 0; snprintf(cpu_online_pathname, 40, "/sys/devices/system/cpu/cpu%u/online", cpu_num); if ((online = fopen(cpu_online_pathname, "r")) == NULL) { cerr << "Unable to open " << cpu_online_pathname << endl; if (errno) cerr << strerror(errno) << endl; return -1; } res = fgetc(online); fclose(online); if (res == OFFLINE) goto again; else return cpu_num; } // Global functions int op_pe_utils::op_get_sys_value(const char * filename) { char str[10]; int _val = -999; FILE * fp = fopen(filename, "r"); if (fp == NULL) return _val; if (fgets(str, 9, fp)) sscanf(str, "%d", &_val); fclose(fp); return _val; } int op_pe_utils::op_get_cpu_for_perf_events_cap(void) { int retval; string err_msg; char cpus_online[257]; FILE * online_cpus; DIR *dir = NULL; int total_cpus = sysconf(_SC_NPROCESSORS_ONLN); if (!total_cpus) { err_msg = "Internal Error (1): Number of online cpus cannot be determined."; retval = -1; goto error; } online_cpus = fopen("/sys/devices/system/cpu/online", "r"); if (!online_cpus) { err_msg = "Internal Error (2): Number of online cpus cannot be determined."; retval = -1; goto error; } memset(cpus_online, 0, sizeof(cpus_online)); if ( fgets(cpus_online, sizeof(cpus_online), online_cpus) == NULL) { fclose(online_cpus); err_msg = "Internal Error (3): Number of online cpus cannot be determined."; retval = -1; goto error; } if (!cpus_online[0]) { fclose(online_cpus); err_msg = "Internal Error (4): Number of online cpus cannot be determined."; retval = -1; goto error; } if (index(cpus_online, ',') || cpus_online[0] != '0') { // A comma in cpus_online implies a gap, which in turn implies that not all // CPUs are online. if ((dir = opendir("/sys/devices/system/cpu")) == NULL) { fclose(online_cpus); err_msg = "Internal Error (5): Number of online cpus cannot be determined."; retval = -1; goto error; } else { struct dirent *entry = NULL; retval = _op_get_next_online_cpu(dir, entry); closedir(dir); } } else { // All CPUs are available, so we just arbitrarily choose CPU 0. retval = 0; } fclose(online_cpus); error: return retval; } int op_pe_utils::op_check_perf_events_cap(bool use_cpu_minus_one) { /* If perf_events syscall is not implemented, the syscall below will fail * with ENOSYS (38). If implemented, but the processor type on which this * program is running is not supported by perf_events, the syscall returns * ENOENT (2). */ struct perf_event_attr attr; pid_t pid ; int cpu_to_try = use_cpu_minus_one ? -1 : op_get_cpu_for_perf_events_cap(); errno = 0; memset(&attr, 0, sizeof(attr)); attr.size = sizeof(attr); attr.sample_type = PERF_SAMPLE_IP; pid = getpid(); syscall(__NR_perf_event_open, &attr, pid, cpu_to_try, -1, 0); return errno; } static const char * appname; static int find_app_file_in_dir(const struct dirent * d) { if (!strcmp(d->d_name, appname)) return 1; else return 0; } static char full_pathname[PATH_MAX]; static int _get_PATH_based_pathname(const char * app_name) { int retval = -1; char * real_path = getenv("PATH"); char * path = (char *) xstrdup(real_path); char * segment = strtok(path, ":"); appname = app_name; while (segment) { struct dirent ** namelist; int rc = scandir(segment, &namelist, find_app_file_in_dir, NULL); if (rc < 0) { if (errno != ENOENT) { cerr << strerror(errno) << endl; cerr << app_name << " cannot be found in your PATH." << endl; break; } } else if (rc == 1) { size_t applen = strlen(app_name); size_t dirlen = strlen(segment); if (applen + dirlen + 2 > PATH_MAX) { cerr << "Path segment " << segment << " prepended to the passed app name is too long" << endl; retval = -1; break; } if (!strcmp(segment, ".")) { if (getcwd(full_pathname, PATH_MAX) == NULL) { retval = -1; cerr << "getcwd [3] failed when processing /" << app_name << " found via PATH. Aborting." << endl; break; } } else { strncpy(full_pathname, segment, dirlen); } strcat(full_pathname, "/"); strncat(full_pathname, app_name, applen); retval = 0; free(namelist[0]); free(namelist); break; } segment = strtok(NULL, ":"); } free(path); return retval; } int op_pe_utils::op_validate_app_name(char ** app, char ** save_appname) { int rc = 0; struct stat filestat; char * app_name = *app; size_t len = strlen(app_name); if (len > (size_t) (OP_APPNAME_LEN - 1)) { cerr << "app name longer than max allowed (" << OP_APPNAME_LEN << " chars)\n"; cerr << app_name << endl; rc = -1; goto out; } if (index(app_name, '/') == app_name) { // Full pathname of app was specified, starting with "/". strncpy(full_pathname, app_name, len); } else if ((app_name[0] == '.') && (app_name[1] == '/')) { // Passed app is in current directory; e.g., "./myApp" if (getcwd(full_pathname, PATH_MAX) == NULL) { rc = -1; cerr << "getcwd [1] failed when trying to find app name " << app_name << ". Aborting." << endl; goto out; } strcat(full_pathname, "/"); if ((strlen(full_pathname) + strlen(app_name + 2) + 1) > PATH_MAX) { rc = -1; cerr << "Length of current dir (" << full_pathname << ") and app name (" << (app_name + 2) << ") exceeds max allowed (" << PATH_MAX << "). Aborting." << endl; goto out; } strcat(full_pathname, (app_name + 2)); } else if (index(app_name, '/')) { // Passed app is in a subdirectory of cur dir; e.g., "test-stuff/myApp" if (getcwd(full_pathname, PATH_MAX) == NULL) { rc = -1; cerr << "getcwd [2] failed when trying to find app name " << app_name << ". Aborting." << endl; goto out; } strcat(full_pathname, "/"); strcat(full_pathname, app_name); } else { // Passed app name, at this point, MUST be found in PATH rc = _get_PATH_based_pathname(app_name); } if (rc) { cerr << "Problem finding app name " << app_name << ". Aborting." << endl; goto out; } *save_appname = app_name; *app = full_pathname; if (stat(*app, &filestat)) { char msg[OP_APPNAME_LEN + 50]; snprintf(msg, OP_APPNAME_LEN + 50, "Non-existent app name \"%s\"", *app); perror(msg); rc = -1; } out: return rc; } static int _get_next_online_cpu(DIR * dir, struct dirent *entry) { #define OFFLINE 0x30 unsigned int cpu_num; char cpu_online_pathname[40]; int res; FILE * online; again: do { entry = readdir(dir); if (!entry) return -1; } while (entry->d_type != DT_DIR); res = sscanf(entry->d_name, "cpu%u", &cpu_num); if (res <= 0) goto again; errno = 0; snprintf(cpu_online_pathname, 40, "/sys/devices/system/cpu/cpu%u/online", cpu_num); if ((online = fopen(cpu_online_pathname, "r")) == NULL) { cerr << "Unable to open " << cpu_online_pathname << endl; if (errno) cerr << strerror(errno) << endl; return -1; } res = fgetc(online); fclose(online); if (res == OFFLINE) goto again; else return cpu_num; } set op_pe_utils::op_get_available_cpus(int max_num_cpus) { struct dirent *entry = NULL; int rc = 0; bool all_cpus_avail = true; DIR *dir = NULL; string err_msg; char cpus_online[257]; set available_cpus; FILE * online_cpus = fopen("/sys/devices/system/cpu/online", "r"); if (max_num_cpus == -1) { if (online_cpus) fclose(online_cpus); return available_cpus; } if (!online_cpus) { err_msg = "Internal Error: Number of online cpus cannot be determined."; rc = -1; goto out; } memset(cpus_online, 0, sizeof(cpus_online)); fgets(cpus_online, sizeof(cpus_online), online_cpus); if (!cpus_online[0]) { fclose(online_cpus); err_msg = "Internal Error: Number of online cpus cannot be determined."; rc = -1; goto out; } if (index(cpus_online, ',') || cpus_online[0] != '0') { all_cpus_avail = false; if ((dir = opendir("/sys/devices/system/cpu")) == NULL) { fclose(online_cpus); err_msg = "Internal Error: Number of online cpus cannot be determined."; rc = -1; goto out; } } fclose(online_cpus); for (int cpu = 0; cpu < max_num_cpus; cpu++) { int real_cpu; if (all_cpus_avail) { available_cpus.insert(cpu); } else { real_cpu = _get_next_online_cpu(dir, entry); if (real_cpu < 0) { err_msg = "Internal Error: Number of online cpus cannot be determined."; rc = -1; goto out; } available_cpus.insert(real_cpu); } } out: if (dir) closedir(dir); if (rc) throw runtime_error(err_msg); return available_cpus; } static void _get_event_code(operf_event_t * event, op_cpu cpu_type) { FILE * fp; char oprof_event_code[9]; string command; u64 base_code, config; char buf[20]; if ((snprintf(buf, 20, "%lu", event->count)) < 0) { cerr << "Error parsing event count of " << event->count << endl; exit(EXIT_FAILURE); } base_code = config = 0ULL; command = OP_BINDIR; command += "ophelp "; command += event->name; fp = popen(command.c_str(), "r"); if (fp == NULL) { cerr << "Unable to execute ophelp to get info for event " << event->name << endl; exit(EXIT_FAILURE); } if (fgets(oprof_event_code, sizeof(oprof_event_code), fp) == NULL) { pclose(fp); cerr << "Unable to find info for event " << event->name << endl; exit(EXIT_FAILURE); } pclose(fp); base_code = strtoull(oprof_event_code, (char **) NULL, 10); #if defined(__i386__) || defined(__x86_64__) // Setup EventSelct[11:8] field for AMD char mask[12]; const char * vendor_AMD = "AuthenticAMD"; if (op_is_cpu_vendor((char *)vendor_AMD)) { config = base_code & 0xF00ULL; config = config << 32; } // Setup EventSelct[7:0] field config |= base_code & 0xFFULL; // Setup unitmask field handle_named_um: if (event->um_name[0]) { command = OP_BINDIR; command += "ophelp "; command += "--extra-mask "; command += event->name; command += ":"; command += buf; command += ":"; command += event->um_name; fp = popen(command.c_str(), "r"); if (fp == NULL) { cerr << "Unable to execute ophelp to get info for event " << event->name << endl; exit(EXIT_FAILURE); } if (fgets(mask, sizeof(mask), fp) == NULL) { pclose(fp); cerr << "Unable to find unit mask info for " << event->um_name << " for event " << event->name << endl; exit(EXIT_FAILURE); } pclose(fp); // FIXME: The mask value here is the extra bits from the named unit mask. It's not // ideal to put that value into the UM's mask, since that's what will show up in // opreport. It would be better if we could somehow have the unit mask name that the // user passed to us show up in opreort. event->evt_um = strtoull(mask, (char **) NULL, 10); /* A value >= EXTRA_MIN_VAL returned by 'ophelp --extra-mask' is interpreted as a * valid extra value; otherwise we interpret it as a simple unit mask value * for a named unit mask with EXTRA_NONE. */ if (event->evt_um >= EXTRA_MIN_VAL) config |= event->evt_um; else config |= ((event->evt_um & 0xFFULL) << 8); } else if (!event->evt_um) { char * endptr; command.clear(); command = OP_BINDIR; command += "ophelp "; command += "--unit-mask "; command += event->name; command += ":"; command += buf; fp = popen(command.c_str(), "r"); if (fp == NULL) { cerr << "Unable to execute ophelp to get unit mask for event " << event->name << endl; exit(EXIT_FAILURE); } if (fgets(mask, sizeof(mask), fp) == NULL) { pclose(fp); cerr << "Unable to find unit mask info for event " << event->name << endl; exit(EXIT_FAILURE); } pclose(fp); event->evt_um = strtoull(mask, &endptr, 10); if ((endptr >= mask) && (endptr <= (mask + strlen(mask) - 1))) { // Must be a default named unit mask strncpy(event->um_name, mask, OP_MAX_UM_NAME_LEN); goto handle_named_um; } config |= ((event->evt_um & 0xFFULL) << 8); } else { config |= ((event->evt_um & 0xFFULL) << 8); } #else config = base_code; #endif event->op_evt_code = base_code; if (cpu_type == CPU_P4 || cpu_type == CPU_P4_HT2) { if (op_netburst_get_perf_encoding(event->name, event->evt_um, 1, 1, &config)) { cerr << "Unable to get event encoding for " << event->name << endl; exit(EXIT_FAILURE); } } event->evt_code = config; } #if PPC64_ARCH /* All ppc64 events (except CYCLES) have a _GRP suffix. This is * because the legacy opcontrol profiler can only profile events in * the same group (i.e., having the same _GRP suffix). But operf * can multiplex events, so we should allow the user to pass event * names without the _GRP suffix. * * If event name is not CYCLES or does not have a _GRP suffix, * we'll call ophelp and scan the list of events, searching for one * that matches up to the _GRP suffix. If we don't find a match, * then we'll exit with the expected error message for invalid event name. */ static string _handle_powerpc_event_spec(string event_spec) { FILE * fp; char line[MAX_INPUT]; size_t grp_pos; string evt, err_msg; size_t evt_name_len; bool first_non_cyc_evt_found = false; bool event_found = false; char event_name[OP_MAX_EVT_NAME_LEN], * remaining_evt_spec, * colon_start; string cmd = OP_BINDIR; cmd += "/ophelp"; colon_start = (char *)index(event_spec.c_str(), ':'); if (colon_start) evt_name_len = colon_start - event_spec.c_str(); else evt_name_len = event_spec.length(); strncpy(event_name, event_spec.c_str(), evt_name_len); event_name[evt_name_len] = '\0'; remaining_evt_spec = colon_start ? ((char *)event_spec.c_str() + strlen(event_name) + 1) : NULL; if (!strcmp("CYCLES", event_name)) { event_found = true; goto out; } evt = event_name; // Need to make sure the event name truly has a _GRP suffix. grp_pos = evt.rfind("_GRP"); if ((grp_pos != string::npos) && ((evt = evt.substr(grp_pos, string::npos))).length() > 4) { char * end; strtoul(evt.substr(4, string::npos).c_str(), &end, 0); if (end && (*end == '\0')) { // Valid group number found after _GRP, so we can skip to the end. event_found = true; goto out; } } // If we get here, it implies the user passed a non-CYCLES event without a GRP suffix. // Lets try to find a valid suffix for it. fp = popen(cmd.c_str(), "r"); if (fp == NULL) { cerr << "Unable to execute ophelp to get info for event " << event_spec << endl; exit(EXIT_FAILURE); } err_msg = "Cannot find event "; while (fgets(line, MAX_INPUT, fp)) { if (!first_non_cyc_evt_found) { if (!strncmp(line, "PM_", 3)) first_non_cyc_evt_found = true; else continue; } if (line[0] == ' ' || line[0] == '\t') continue; if (!strncmp(line, event_name, evt_name_len)) { // Found a potential match. Check if it's a perfect match. string save_event_name = event_name; size_t full_evt_len = index(line, ':') - line; memset(event_name, '\0', OP_MAX_EVT_NAME_LEN); strncpy(event_name, line, full_evt_len); string candidate = event_name; if (candidate.rfind("_GRP") == evt_name_len) { event_found = true; break; } else { memset(event_name, '\0', OP_MAX_EVT_NAME_LEN); strncpy(event_name, save_event_name.c_str(), evt_name_len); } } } pclose(fp); out: if (!event_found) { cerr << err_msg << event_name << endl; cerr << "Error retrieving info for event " << event_spec << endl; exit(EXIT_FAILURE); } ostringstream ret_strm; if (remaining_evt_spec) ret_strm << event_name << ":" << remaining_evt_spec; else ret_strm << event_name; return ret_strm.str(); } /* Some architectures (e.g., ppc64) do not use the same event value (code) for oprofile * and for perf_events. The operf-record process requires event values that perf_events * understands, but the operf-read process requires oprofile event values. The purpose of * the following method is to map the operf-record event value to a value that * opreport can understand. */ extern op_cpu cpu_type; #define NIL_CODE ~0U #if HAVE_LIBPFM3 static bool _get_codes_for_match(unsigned int pfm_idx, const char name[], vector * evt_vec) { unsigned int num_events = evt_vec->size(); int tmp_code, ret; char evt_name[OP_MAX_EVT_NAME_LEN]; unsigned int events_converted = 0; for (unsigned int i = 0; i < num_events; i++) { operf_event_t event = (*evt_vec)[i]; if (event.evt_code != NIL_CODE) { events_converted++; continue; } memset(evt_name, 0, OP_MAX_EVT_NAME_LEN); if (!strcmp(event.name, "CYCLES")) { strcpy(evt_name ,"PM_CYC") ; } else if (strstr(event.name, "_GRP")) { string str = event.name; strncpy(evt_name, event.name, str.rfind("_GRP")); } else { strncpy(evt_name, event.name, strlen(event.name)); } if (strncmp(name, evt_name, OP_MAX_EVT_NAME_LEN)) continue; ret = pfm_get_event_code(pfm_idx, &tmp_code); if (ret != PFMLIB_SUCCESS) { string evt_name_str = event.name; string msg = "libpfm cannot find event code for " + evt_name_str + "; cannot continue"; throw runtime_error(msg); } event.evt_code = tmp_code; (*evt_vec)[i] = event; events_converted++; cverb << vdebug << "Successfully converted " << event.name << " to perf_event code " << hex << tmp_code << endl; } return (events_converted == num_events); } #else static bool _op_get_event_codes(vector * evt_vec) { int ret, i; unsigned int num_events = evt_vec->size(); char evt_name[OP_MAX_EVT_NAME_LEN]; unsigned int events_converted = 0; u64 code[1]; typedef struct { u64 *codes; char **fstr; size_t size; int count; int idx; } pfm_raw_pmu_encode_t; pfm_raw_pmu_encode_t raw; raw.codes = code; raw.count = 1; raw.fstr = NULL; if (pfm_initialize() != PFM_SUCCESS) throw runtime_error("Unable to initialize libpfm; cannot continue"); for (unsigned int i = 0; i < num_events; i++) { operf_event_t event = (*evt_vec)[i]; if (event.evt_code != NIL_CODE) { events_converted++; continue; } memset(evt_name, 0, OP_MAX_EVT_NAME_LEN); if (!strcmp(event.name, "CYCLES")) { strcpy(evt_name ,"PM_CYC") ; } else if (strstr(event.name, "_GRP")) { string str = event.name; strncpy(evt_name, event.name, str.rfind("_GRP")); } else { strncpy(evt_name, event.name, strlen(event.name)); } memset(&raw, 0, sizeof(raw)); ret = pfm_get_os_event_encoding(evt_name, PFM_PLM3, PFM_OS_NONE, &raw); if (ret != PFM_SUCCESS) { string evt_name_str = event.name; string msg = "libpfm cannot find event code for " + evt_name_str + "; cannot continue"; throw runtime_error(msg); } event.evt_code = raw.codes[0]; (*evt_vec)[i] = event; events_converted++; cverb << vdebug << "Successfully converted " << event.name << " to perf_event code " << hex << event.evt_code << endl; } return (events_converted == num_events); } #endif static bool convert_event_vals(vector * evt_vec) { unsigned int i, count; char name[256]; int ret; for (unsigned int i = 0; i < evt_vec->size(); i++) { operf_event_t event = (*evt_vec)[i]; if (cpu_type == CPU_PPC64_POWER7) { if (!strncmp(event.name, "PM_RUN_CYC", strlen("PM_RUN_CYC"))) { event.evt_code = 0x600f4; } else if (!strncmp(event.name, "PM_RUN_INST_CMPL", strlen("PM_RUN_INST_CMPL"))) { event.evt_code = 0x500fa; } else { event.evt_code = NIL_CODE; } } else { event.evt_code = NIL_CODE; } (*evt_vec)[i] = event; } #if HAVE_LIBPFM3 if (pfm_initialize() != PFMLIB_SUCCESS) throw runtime_error("Unable to initialize libpfm; cannot continue"); ret = pfm_get_num_events(&count); if (ret != PFMLIB_SUCCESS) throw runtime_error("Unable to use libpfm to obtain event code; cannot continue"); for(i =0 ; i < count; i++) { ret = pfm_get_event_name(i, name, 256); if (ret != PFMLIB_SUCCESS) continue; if (_get_codes_for_match(i, name, evt_vec)) break; } return (i != count); #else return _op_get_event_codes(evt_vec); #endif } #endif // PPC64_ARCH void op_pe_utils::op_process_events_list(vector & passed_evts) { string cmd = OP_BINDIR; if (passed_evts.size() > OP_MAX_EVENTS) { cerr << "Number of events specified is greater than allowed maximum of " << OP_MAX_EVENTS << "." << endl; exit(EXIT_FAILURE); } cmd += "/ophelp --check-events --ignore-count "; for (unsigned int i = 0; i < passed_evts.size(); i++) { FILE * fp; string full_cmd = cmd; string event_spec = passed_evts[i]; #if PPC64_ARCH // Starting with CPU_PPC64_ARCH_V1, ppc64 events files are formatted like // other architectures, so no special handling is needed. if (cpu_type < CPU_PPC64_ARCH_V1) event_spec = _handle_powerpc_event_spec(event_spec); #endif full_cmd += event_spec; fp = popen(full_cmd.c_str(), "r"); if (fp == NULL) { cerr << "Unable to execute ophelp to get info for event " << event_spec << endl; exit(EXIT_FAILURE); } if (fgetc(fp) == EOF) { pclose(fp); cerr << "Error retrieving info for event " << event_spec << endl; exit(EXIT_FAILURE); } pclose(fp); char * event_str = op_xstrndup(event_spec.c_str(), event_spec.length()); operf_event_t event; strncpy(event.name, strtok(event_str, ":"), OP_MAX_EVT_NAME_LEN - 1); /* Event name is required in the event spec in order for * 'ophelp --check-events --ignore-count' to pass. But since unit mask * and domain control bits are optional, we need to ensure the result of * strtok is valid. */ char * info; #define _OP_UM 1 #define _OP_KERNEL 2 #define _OP_USER 3 int place = _OP_UM; char * endptr = NULL; event.evt_um = 0UL; event.count = 0UL; event.no_kernel = 0; event.no_user = 0; event.throttled = false; memset(event.um_name, '\0', OP_MAX_UM_NAME_LEN); while ((info = strtok(NULL, ":"))) { switch (place) { case _OP_UM: event.evt_um = strtoul(info, &endptr, 0); // If any of the UM part is not a number, then we // consider the entire part a string. if (*endptr) { event.evt_um = 0; strncpy(event.um_name, info, OP_MAX_UM_NAME_LEN - 1); } break; case _OP_KERNEL: if (atoi(info) == 0) event.no_kernel = 1; break; case _OP_USER: if (atoi(info) == 0) event.no_user = 1; break; } place++; } free(event_str); _get_event_code(&event, cpu_type); events.push_back(event); } #if PPC64_ARCH { /* For ppc64 architecture processors prior to the introduction of * architected_events_v1, the oprofile event code needs to be converted * to the appropriate event code to pass to the perf_event_open syscall. * But as of the introduction of architected_events_v1, the events * file contains the necessary event code information, so this conversion * step is no longer needed. */ using namespace op_pe_utils; if ((cpu_type < CPU_PPC64_ARCH_V1) && !convert_event_vals(&events)) { cerr << "Unable to convert all oprofile event values to perf_event values" << endl; exit(EXIT_FAILURE); } } #endif } void op_pe_utils::op_get_default_event(void) { operf_event_t dft_evt; struct op_default_event_descr descr; vector tmp_events; op_default_event(cpu_type, &descr); if (descr.name[0] == '\0') { cerr << "Unable to find default event" << endl; exit(EXIT_FAILURE); } memset(&dft_evt, 0, sizeof(dft_evt)); dft_evt.count = descr.count; dft_evt.evt_um = descr.um; strncpy(dft_evt.name, descr.name, OP_MAX_EVT_NAME_LEN - 1); _get_event_code(&dft_evt, cpu_type); events.push_back(dft_evt); #if PPC64_ARCH { /* This section of code is for architectures such as ppc[64] for which * the oprofile event code needs to be converted to the appropriate event * code to pass to the perf_event_open syscall. */ using namespace op_pe_utils; if ((cpu_type < CPU_PPC64_ARCH_V1) && !convert_event_vals(&events)) { cerr << "Unable to convert all oprofile event values to perf_event values" << endl; exit(EXIT_FAILURE); } } #endif } oprofile-0.9.9/libpe_utils/Makefile.am0000664000076400007640000000051412175510131014646 00000000000000if BUILD_FOR_PERF_EVENT AM_CPPFLAGS = \ -I ${top_srcdir}/libutil \ -I ${top_srcdir}/libutil++ \ -I ${top_srcdir}/libop \ -I ${top_srcdir}/libpe_utils \ -I ${top_srcdir}/libperf_events \ @PERF_EVENT_FLAGS@ \ @OP_CPPFLAGS@ noinst_LIBRARIES = libpe_utils.a libpe_utils_a_SOURCES = \ op_pe_utils.h \ op_pe_utils.cpp endif oprofile-0.9.9/libabi/0000775000076400007640000000000012175511555011614 500000000000000oprofile-0.9.9/libabi/abi.cpp0000664000076400007640000000237512175510131012767 00000000000000/** * @file abi.cpp * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Graydon Hoare * @author John Levon * @author Philippe Elie */ #include "abi.h" #include "op_abi.h" #include "odb.h" #include "op_sample_file.h" #include #include using namespace std; typedef map abi_map; typedef abi_map::const_iterator abi_iter; abi_exception::abi_exception(string const d) : desc(d) {} abi::abi() { op_abi_entry const * entry = get_abi(); for ( ; entry->name != 0; ++entry) slots[entry->name] = entry->offset; slots["little_endian"] = op_little_endian(); } int abi::need(string const key) const throw (abi_exception) { if (slots.find(key) != slots.end()) return slots.find(key)->second; else throw abi_exception(string("missing ABI key: ") + key); } bool abi::operator==(abi const & other) const { return slots == other.slots; } ostream & operator<<(ostream & o, abi const & abi) { abi_iter i = abi.slots.begin(); abi_iter e = abi.slots.end(); for (; i != e; ++i) o << i->first << " " << i->second << endl; return o; } istream & operator>>(istream & i, abi & abi) { string key; int val; abi.slots.clear(); while(i >> key >> val) abi.slots[key] = val; return i; } oprofile-0.9.9/libabi/Makefile.in0000664000076400007640000006202212175510234013574 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ bin_PROGRAMS = opimport$(EXEEXT) subdir = libabi DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) ARFLAGS = cru libabi_a_AR = $(AR) $(ARFLAGS) libabi_a_LIBADD = am_libabi_a_OBJECTS = abi.$(OBJEXT) op_abi.$(OBJEXT) libabi_a_OBJECTS = $(am_libabi_a_OBJECTS) am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am_opimport_OBJECTS = opimport.$(OBJEXT) opimport_OBJECTS = $(am_opimport_OBJECTS) opimport_DEPENDENCIES = libabi.a ../libdb/libodb.a \ ../libopt++/libopt++.a ../libutil++/libutil++.a \ ../libutil/libutil.a DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libabi_a_SOURCES) $(opimport_SOURCES) DIST_SOURCES = $(libabi_a_SOURCES) $(opimport_SOURCES) RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @POPT_LIBS@ @LIBERTY_LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ SUBDIRS = . tests AM_CPPFLAGS = \ -I ${top_srcdir}/libop \ -I ${top_srcdir}/libutil \ -I ${top_srcdir}/libdb \ -I ${top_srcdir}/libopt++ \ @OP_CPPFLAGS@ AM_CXXFLAGS = @OP_CXXFLAGS@ AM_LDFLAGS = @OP_LDFLAGS@ noinst_LIBRARIES = libabi.a libabi_a_SOURCES = abi.cpp abi.h op_abi.c op_abi.h opimport_SOURCES = opimport.cpp opimport_LDADD = \ libabi.a \ ../libdb/libodb.a \ ../libopt++/libopt++.a \ ../libutil++/libutil++.a \ ../libutil/libutil.a all: all-recursive .SUFFIXES: .SUFFIXES: .c .cpp .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libabi/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign libabi/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) libabi.a: $(libabi_a_OBJECTS) $(libabi_a_DEPENDENCIES) -rm -f libabi.a $(libabi_a_AR) libabi.a $(libabi_a_OBJECTS) $(libabi_a_LIBADD) $(RANLIB) libabi.a install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p || test -f $$p1; \ then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list opimport$(EXEEXT): $(opimport_OBJECTS) $(opimport_DEPENDENCIES) @rm -f opimport$(EXEEXT) $(CXXLINK) $(opimport_OBJECTS) $(opimport_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/abi.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/op_abi.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/opimport.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< .cpp.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(LIBRARIES) $(PROGRAMS) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-binPROGRAMS clean-generic clean-libtool \ clean-noinstLIBRARIES mostlyclean-am distclean: distclean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-binPROGRAMS \ clean-generic clean-libtool clean-noinstLIBRARIES ctags \ ctags-recursive distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-binPROGRAMS \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ uninstall-binPROGRAMS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/libabi/op_abi.h0000664000076400007640000000160612175510131013126 00000000000000/** * @file op_abi.h * This file contains a simple C interface to the ABI-describing functionality, * the majority of which is implemented in C++. this is the file which is * intended for use in files outside the /libabi directory. * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Graydon Hoare * @author Philippe Elie */ #ifndef OP_ABI_H #define OP_ABI_H struct op_abi_entry { char const * name; /// offset or size of the named entry int offset; }; #ifdef __cplusplus extern "C" { #endif /// return array is terminated by a NULL entry in name field struct op_abi_entry const * get_abi(void); /// return non zero if the abi is little endian int op_little_endian(void); /** * Write current abi to file. * return 1 on success, 0 on failure */ int op_write_abi_to_file(char const * abi_file); #ifdef __cplusplus } #endif #endif // OP_ABI_H oprofile-0.9.9/libabi/abi.h0000664000076400007640000000136712175510131012434 00000000000000/** * @file abi.h * * Contains internal ABI management class * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Graydon Hoare */ #ifndef OPROF_ABI_H #define OPROF_ABI_H #include #include #include struct abi_exception : std::exception { std::string const desc; explicit abi_exception(std::string const d); ~abi_exception() throw() {} }; class abi { public: abi(); int need(std::string const key) const throw (abi_exception); bool operator==(abi const & other) const; friend std::ostream & operator<<(std::ostream & o, abi const & abi); friend std::istream & operator>>(std::istream & i, abi & abi); private: std::map slots; }; #endif // OPROF_ABI_H oprofile-0.9.9/libabi/op_abi.c0000664000076400007640000000570712175510131013127 00000000000000/** * @file op_abi.c * This file contains a simple C interface to the ABI-describing functionality, * the majority of which is implemented in C++. This is the file which is * intended for use in files outside the /libabi directory. * * @remark Copyright 2002, 2005 OProfile authors * @remark Read the file COPYING * * @author Graydon Hoare * @author Philippe Elie */ #include "op_abi.h" #include "odb.h" #include "op_sample_file.h" #include #include #include static struct op_abi_entry const abi_entries[] = { { "sizeof_double", sizeof(double) }, { "sizeof_u64", sizeof(u64) }, { "sizeof_u8", sizeof(u8) }, { "sizeof_u32", sizeof(u32) }, { "sizeof_int", sizeof(int) }, { "sizeof_unsigned_int", sizeof(unsigned int) }, { "sizeof_odb_key_t", sizeof(odb_key_t) }, { "sizeof_odb_index_t", sizeof(odb_index_t) }, { "sizeof_odb_value_t", sizeof(odb_value_t) }, { "sizeof_odb_node_nr_t", sizeof(odb_node_nr_t) }, { "sizeof_odb_descr_t", sizeof(odb_descr_t) }, { "sizeof_odb_node_t", sizeof(odb_node_t) }, { "sizeof_struct_opd_header", sizeof(struct opd_header) }, { "offsetof_node_key", offsetof(odb_node_t, key) }, { "offsetof_node_value", offsetof(odb_node_t, value) }, { "offsetof_node_next", offsetof(odb_node_t, next) }, { "offsetof_descr_size", offsetof(odb_descr_t, size) }, { "offsetof_descr_current_size", offsetof(odb_descr_t, current_size) }, { "offsetof_header_magic", offsetof(struct opd_header, magic) }, { "offsetof_header_version", offsetof(struct opd_header, version) }, { "offsetof_header_cpu_type", offsetof(struct opd_header, cpu_type) }, { "offsetof_header_ctr_event", offsetof(struct opd_header, ctr_event) }, { "offsetof_header_ctr_um", offsetof(struct opd_header, ctr_um) }, { "offsetof_header_ctr_count", offsetof(struct opd_header, ctr_count) }, { "offsetof_header_is_kernel", offsetof(struct opd_header, is_kernel) }, { "offsetof_header_cpu_speed", offsetof(struct opd_header, cpu_speed) }, { "offsetof_header_mtime", offsetof(struct opd_header, mtime) }, { "offsetof_header_cg_to_is_kernel", offsetof(struct opd_header, cg_to_is_kernel), }, { "offsetof_header_anon_start", offsetof(struct opd_header, anon_start) }, { "offsetof_header_cg_to_anon_start", offsetof(struct opd_header, cg_to_anon_start) }, { NULL, 0 }, }; struct op_abi_entry const * get_abi(void) { return abi_entries; } int op_little_endian(void) { unsigned int probe = 0xff; size_t sz = sizeof(unsigned int); unsigned char * probe_byte = (unsigned char *)&probe; assert(probe_byte[0] == 0xff || probe_byte[sz - 1] == 0xff); return probe_byte[0] == 0xff; } int op_write_abi_to_file(char const * abi_file) { FILE * fp; struct op_abi_entry const * abi_entry; if ((fp = fopen(abi_file, "w")) == NULL) return 0; for (abi_entry = get_abi() ; abi_entry->name != NULL; ++abi_entry) fprintf(fp, "%s %u\n", abi_entry->name, abi_entry->offset); fprintf(fp, "little_endian %d\n", op_little_endian()); fclose(fp); return 1; } oprofile-0.9.9/libabi/tests/0000775000076400007640000000000012175511555012756 500000000000000oprofile-0.9.9/libabi/tests/abi_test.cpp0000664000076400007640000000406112175510131015162 00000000000000/** * @file abi_test.cpp * Import sample files from other ABI * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Graydon Hoare */ #include "abi.h" #include "odb.h" #include "popt_options.h" #include "op_sample_file.h" #include "op_cpu_type.h" #include "op_config.h" #include #include #include #include using namespace std; namespace { string db_filename; string abi_filename; } popt::option options_array[] = { popt::option(db_filename, "db", 'd', "output db to file", "filename"), popt::option(abi_filename, "abi", 'a', "output abi to file", "filename") }; int main(int argc, char const ** argv) { vector rest; popt::parse_options(argc, argv, rest); if (abi_filename.empty() && db_filename.empty()) { cerr << "error: no file specified to work on" << endl; exit(1); } if (!abi_filename.empty()) { ofstream file(abi_filename.c_str()); if (!file) { cerr << "error: cannot open " << abi_filename << " for writing" << endl; exit(1); } file << abi(); } if (!db_filename.empty()) { odb_t dest; int rc = odb_open(&dest, db_filename.c_str(), ODB_RDWR, sizeof(struct opd_header)); if (rc) { cerr << "odb_open() fail:\n" << strerror(rc) << endl; exit(EXIT_FAILURE); } struct opd_header * header; header = static_cast(odb_get_data(&dest)); memset(header, '\0', sizeof(struct opd_header)); header->version = OPD_VERSION; memcpy(header->magic, OPD_MAGIC, sizeof(header->magic)); header->is_kernel = 1; /* ICACHE_FETCHES */ header->ctr_event = 0x80; header->ctr_um = 0x0; header->cpu_type = CPU_ATHLON; header->ctr_count = 0xdeadbeef; header->cpu_speed = 0; header->mtime = 1034790063; header->cg_to_is_kernel = 1; header->anon_start = 0; header->cg_to_anon_start = 0; for (int i = 0; i < 3793; ++i) { int rc = odb_add_node(&dest, i, i); if (rc != EXIT_SUCCESS) { cerr << strerror(rc) << endl; exit(EXIT_FAILURE); } } odb_close(&dest); } } oprofile-0.9.9/libabi/tests/Makefile.in0000664000076400007640000003734512175510234014750 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ check_PROGRAMS = abi_test$(EXEEXT) subdir = libabi/tests DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am_abi_test_OBJECTS = abi_test.$(OBJEXT) abi_test_OBJECTS = $(am_abi_test_OBJECTS) abi_test_DEPENDENCIES = ../libabi.a ../../libop/libop.a \ ../../libdb/libodb.a ../../libopt++/libopt++.a \ ../../libutil++/libutil++.a ../../libutil/libutil.a DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(abi_test_SOURCES) DIST_SOURCES = $(abi_test_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @POPT_LIBS@ @LIBERTY_LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ AM_CPPFLAGS = \ -I ${top_srcdir}/libabi \ -I ${top_srcdir}/libop \ -I ${top_srcdir}/libdb \ -I ${top_srcdir}/libopt++ \ -I ${top_srcdir}/libutil \ @OP_CPPFLAGS@ AM_CXXFLAGS = @OP_CXXFLAGS@ abi_test_SOURCES = abi_test.cpp abi_test_LDADD = \ ../libabi.a \ ../../libop/libop.a \ ../../libdb/libodb.a \ ../../libopt++/libopt++.a \ ../../libutil++/libutil++.a \ ../../libutil/libutil.a all: all-am .SUFFIXES: .SUFFIXES: .cpp .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libabi/tests/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign libabi/tests/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-checkPROGRAMS: @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list abi_test$(EXEEXT): $(abi_test_OBJECTS) $(abi_test_DEPENDENCIES) @rm -f abi_test$(EXEEXT) $(CXXLINK) $(abi_test_OBJECTS) $(abi_test_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/abi_test.Po@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-checkPROGRAMS clean-generic clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: check-am install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean \ clean-checkPROGRAMS clean-generic clean-libtool ctags \ distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/libabi/tests/Makefile.am0000664000076400007640000000070712175510131014723 00000000000000LIBS=@POPT_LIBS@ @LIBERTY_LIBS@ AM_CPPFLAGS = \ -I ${top_srcdir}/libabi \ -I ${top_srcdir}/libop \ -I ${top_srcdir}/libdb \ -I ${top_srcdir}/libopt++ \ -I ${top_srcdir}/libutil \ @OP_CPPFLAGS@ AM_CXXFLAGS = @OP_CXXFLAGS@ check_PROGRAMS = abi_test abi_test_SOURCES = abi_test.cpp abi_test_LDADD = \ ../libabi.a \ ../../libop/libop.a \ ../../libdb/libodb.a \ ../../libopt++/libopt++.a \ ../../libutil++/libutil++.a \ ../../libutil/libutil.a oprofile-0.9.9/libabi/opimport.cpp0000664000076400007640000001404112175510131014076 00000000000000/** * @file opimport.cpp * Import sample files from other ABI * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Graydon Hoare */ #include "abi.h" #include "odb.h" #include "popt_options.h" #include "op_sample_file.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; namespace { string output_filename; string abi_filename; bool verbose; bool force; }; popt::option options_array[] = { popt::option(verbose, "verbose", 'V', "verbose output"), popt::option(output_filename, "output", 'o', "output to file", "filename"), popt::option(abi_filename, "abi", 'a', "abi description", "filename"), popt::option(force, "force", 'f', "force conversion, even if identical") }; struct extractor { abi const & theabi; unsigned char const * begin; unsigned char const * end; bool little_endian; explicit extractor(abi const & a, unsigned char const * src, size_t len) : theabi(a), begin(src), end(src + len) { little_endian = theabi.need(string("little_endian")) == 1; if (verbose) { cerr << "source byte order is: " << string(little_endian ? "little" : "big") << " endian" << endl; } } template void extract(T & targ, void const * src_, char const * sz, char const * off); }; template void extractor::extract(T & targ, void const * src_, char const * sz, char const * off) { unsigned char const * src = static_cast(src_) + theabi.need(off); size_t nbytes = theabi.need(sz); targ = 0; if (nbytes == 0) return; assert(nbytes <= sizeof(T)); assert(src >= begin); assert(src + nbytes <= end); if (verbose) { ostringstream message; message << hex << "get " << sz << " = " << nbytes << " bytes @ " << off << " = " << (src - begin) << " : "; cerr << message.str(); } if (little_endian) while(nbytes--) targ = (targ << 8) | src[nbytes]; else for(size_t i = 0; i < nbytes; ++i) targ = (targ << 8) | src[i]; if (verbose) cerr << " = " << targ << endl; } void import_from_abi(abi const & abi, void const * srcv, size_t len, odb_t * dest) throw (abi_exception) { struct opd_header * head = static_cast(odb_get_data(dest)); unsigned char const * src = static_cast(srcv); unsigned char const * const begin = src; extractor ext(abi, src, len); memcpy(head->magic, src + abi.need("offsetof_header_magic"), 4); // begin extracting opd header ext.extract(head->version, src, "sizeof_u32", "offsetof_header_version"); ext.extract(head->cpu_type, src, "sizeof_u32", "offsetof_header_cpu_type"); ext.extract(head->ctr_event, src, "sizeof_u32", "offsetof_header_ctr_event"); ext.extract(head->ctr_um, src, "sizeof_u32", "offsetof_header_ctr_um"); ext.extract(head->ctr_count, src, "sizeof_u32", "offsetof_header_ctr_count"); ext.extract(head->is_kernel, src, "sizeof_u32", "offsetof_header_is_kernel"); // "double" extraction is unlikely to work head->cpu_speed = 0.0; ext.extract(head->mtime, src, "sizeof_u64", "offsetof_header_mtime"); ext.extract(head->cg_to_is_kernel, src, "sizeof_u32", "offsetof_header_cg_to_is_kernel"); ext.extract(head->anon_start, src, "sizeof_u32", "offsetof_header_anon_start"); ext.extract(head->cg_to_anon_start, src, "sizeof_u32", "offsetof_header_cg_to_anon_start"); src += abi.need("sizeof_struct_opd_header"); // done extracting opd header // begin extracting necessary parts of descr odb_node_nr_t node_nr; ext.extract(node_nr, src, "sizeof_odb_node_nr_t", "offsetof_descr_current_size"); src += abi.need("sizeof_odb_descr_t"); // done extracting descr // skip node zero, it is reserved and contains nothing usefull src += abi.need("sizeof_odb_node_t"); // begin extracting nodes unsigned int step = abi.need("sizeof_odb_node_t"); if (verbose) cerr << "extracting " << node_nr << " nodes of " << step << " bytes each " << endl; assert(src + (node_nr * step) <= begin + len); for (odb_node_nr_t i = 1 ; i < node_nr ; ++i, src += step) { odb_key_t key; odb_value_t val; ext.extract(key, src, "sizeof_odb_key_t", "offsetof_node_key"); ext.extract(val, src, "sizeof_odb_value_t", "offsetof_node_value"); int rc = odb_add_node(dest, key, val); if (rc != EXIT_SUCCESS) { cerr << strerror(rc) << endl; exit(EXIT_FAILURE); } } // done extracting nodes } int main(int argc, char const ** argv) { vector inputs; popt::parse_options(argc, argv, inputs); if (inputs.size() != 1) { cerr << "error: must specify exactly 1 input file" << endl; exit(1); } if (inputs[0].rfind(".jo") == inputs[0].size() - 3) { if (verbose) { cerr << "Found a .jo file. Import is not allowed or necessary. Done." << endl; cerr << inputs[0] << endl; } // Silently exit with success. exit(EXIT_SUCCESS); } abi current_abi, input_abi; { ifstream abi_file(abi_filename.c_str()); if (!abi_file) { cerr << "error: cannot open abi file " << abi_filename << endl; exit(1); } abi_file >> input_abi; } if (!force && current_abi == input_abi) { cerr << "input abi is identical to native. " << "no conversion necessary." << endl; exit(1); } int in_fd; struct stat statb; void * in; odb_t dest; int rc; in_fd = open(inputs[0].c_str(), O_RDONLY); assert(in_fd > 0); assert(fstat(in_fd, &statb) == 0); in = mmap(0, statb.st_size, PROT_READ, MAP_PRIVATE, in_fd, 0); assert(in != (void *)-1); rc = odb_open(&dest, output_filename.c_str(), ODB_RDWR, sizeof(struct opd_header)); if (rc) { cerr << "odb_open() fail:\n" << strerror(rc) << endl; exit(EXIT_FAILURE); } try { import_from_abi(input_abi, in, statb.st_size, &dest); } catch (abi_exception & e) { cerr << "caught abi exception: " << e.desc << endl; } odb_close(&dest); assert(munmap(in, statb.st_size) == 0); } oprofile-0.9.9/libabi/Makefile.am0000664000076400007640000000077612175510131013567 00000000000000SUBDIRS=. tests LIBS=@POPT_LIBS@ @LIBERTY_LIBS@ AM_CPPFLAGS = \ -I ${top_srcdir}/libop \ -I ${top_srcdir}/libutil \ -I ${top_srcdir}/libdb \ -I ${top_srcdir}/libopt++ \ @OP_CPPFLAGS@ AM_CXXFLAGS = @OP_CXXFLAGS@ AM_LDFLAGS = @OP_LDFLAGS@ noinst_LIBRARIES = libabi.a libabi_a_SOURCES = abi.cpp abi.h op_abi.c op_abi.h bin_PROGRAMS = opimport opimport_SOURCES = opimport.cpp opimport_LDADD = \ libabi.a \ ../libdb/libodb.a \ ../libopt++/libopt++.a \ ../libutil++/libutil++.a \ ../libutil/libutil.a oprofile-0.9.9/libutil++/0000775000076400007640000000000012175511555012164 500000000000000oprofile-0.9.9/libutil++/child_reader.h0000664000076400007640000000702212175510131014650 00000000000000/** * @file child_reader.h * Facility for reading from child processes * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #ifndef CHILD_READER_H #define CHILD_READER_H #include #include #include /** * a class to read stdout / stderr from a child process. * * two interfaces are provided. read line by line: getline() or read all data * in one : get_data(). In all case get_data() must be called once to flush the * stderr child output */ /* * FIXME: code review is needed: * - check the getline()/get_data()/block_read() interface. * the expected behavior is: * caller can call getline until nothing is available from the stdout of the * child. in this case child stderr is acumulated in buf2 and can be read * through get_data(). get_data() is blocking until the child close stderr / * stdout (even if the child die by a signal ?). The following corner case must * work but I'm unsure if the code reflect this behavior: the last line of the * child stdout have not necessarilly a LF terminator. the child can output any * size of data in stderr. */ class child_reader { public: /** fork a process. use error() to get error code. Do not try to * use other public member interface if error() return non-zero */ child_reader(std::string const & cmd, std::vector const & args); /** wait for the termination of the child process if this have not * already occur. In this case return code of the child process is not * available. */ ~child_reader(); /** fill result from on line of stdout of the child process. * must be used as: * child_reader reader(...); * while (reader.getline(line)) .... */ bool getline(std::string & result); /** fill out / err with the stdout / stderr of the child process. * You can call this after calling one or more time getline(...). This * call is blocking until the child die and so on all subsequent * call will fail */ bool get_data(std::ostream & out, std::ostream & err); /** rather to rely on dtor to wait for the termination of the child you * can use terminate_process() to get the return code of the child * process */ int terminate_process(); /** return the status of the first error encoutered * != 0 : something feel wrong, use error_str() to get an error * message */ int error() const { return first_error; } /** * return an error message if appropriate, if the process has * been successfully exec'ed and is not terminate the error message * is always empty. Error message is also empty if the child process * terminate successfully. Else three type of error message exist: * - "unable to fork" followed by sterror(errno) * - "process_name return xxx" xxx is return code * - "process_name terminated by signal xxx" xxx is signal number */ std::string error_str() const; private: // ctor helper: create the child process. void exec_command(std::string const & cmd, std::vector const & args); // return false when eof condition is reached on fd1. fd2 can have // already input in the pipe buffer or in buf2. bool block_read(); int fd1; int fd2; ssize_t pos1; ssize_t end1; ssize_t pos2; ssize_t end2; pid_t pid; int first_error; // child stderr is handled especially, we need to retain data even // if caller read only stdout of the child. char * buf2; ssize_t sz_buf2; char * buf1; std::string process_name; bool is_terminated; bool terminate_on_exception; bool forked; }; #endif // CHILD_READER_H oprofile-0.9.9/libutil++/op_spu_bfd.cpp0000664000076400007640000001165412175510131014724 00000000000000/** * @file libutil++/op_spu_bfd.cpp * Encapsulation of bfd objects for Cell BE SPU * * @remark Copyright 2007 OProfile authors * @remark Read the file COPYING * * @author Maynard Johnson * (C) Copyright IBM Corporation 2007 */ #include #include #include #include #include #include #include #include #include "op_bfd.h" #include "locate_images.h" #include "op_libiberty.h" #include "string_filter.h" #include "cverb.h" #define OP_SPU_DYN_FLAG 0x10000000 /* kernel module adds this offset */ /* to SPU code it can't find in the map */ #define OP_SPU_MEMSIZE 0x3ffff /* Physical memory size on an SPU */ using namespace std; extern verbose vbfd; /* * This overload of the op_bfd constructor is patterned after the * constructor in libutil++/op_bfd.cpp, with the additional processing * needed to handle an embedded spu offset. */ op_bfd::op_bfd(uint64_t spu_offset, string const & fname, string_filter const & symbol_filter, extra_images const & extra_images, bool & ok) : archive_path(extra_images.get_archive_path()), extra_found_images(extra_images), file_size(-1), embedding_filename(fname), anon_obj(false), vma_adj(0) { int fd = -1; struct stat st; int notes_remaining; bool spu_note_found = false; size_t sec_size = 0; unsigned int oct_per_byte; asection * note = NULL; symbols_found_t symbols; asection const * sect; image_error image_ok; string const image_path = extra_images.find_image_path(fname, image_ok, true); cverb << vbfd << "op_bfd ctor for " << image_path << endl; if (!ok) goto out_fail; fd = open(image_path.c_str(), O_RDONLY); if (fd == -1) { cverb << vbfd << "open failed for " << image_path << endl; ok = false; goto out_fail; } if (fstat(fd, &st)) { cverb << vbfd << "stat failed for " << image_path << endl; ok = false; goto out_fail; } file_size = st.st_size; ibfd.abfd = spu_open_bfd(image_path, fd, spu_offset); if (!ibfd.valid()) { cverb << vbfd << "fdopen_bfd failed for " << image_path << endl; ok = false; goto out_fail; } /* For embedded SPU ELF, a note section named '.note.spu_name' * contains the name of the SPU binary image in the description * field. */ note = bfd_get_section_by_name(ibfd.abfd, ".note.spu_name"); if (!note) { cverb << vbfd << "No .note.spu-name section found" << endl; goto find_sec_code; } cverb << vbfd << "found .note.spu_name section" << endl; bfd_byte * sec_contents; oct_per_byte = bfd_octets_per_byte(ibfd.abfd); sec_size = bfd_section_size(ibfd.abfd, note)/oct_per_byte; sec_contents = (bfd_byte *) xmalloc(sec_size); if (!bfd_get_section_contents(ibfd.abfd, note, sec_contents, 0, sec_size)) { cverb << vbfd << "bfd_get_section_contents with size " << sec_size << " returned an error" << endl; ok = false; goto out_fail; } notes_remaining = sec_size; while (notes_remaining && !spu_note_found) { unsigned int nsize, dsize, type; nsize = *((unsigned int *) sec_contents); dsize = *((unsigned int *) sec_contents +1); type = *((unsigned int *) sec_contents +2); int remainder, desc_start, name_pad_length, desc_pad_length; name_pad_length = desc_pad_length = 0; /* Calculate padding for 4-byte alignment */ remainder = nsize % 4; if (remainder != 0) name_pad_length = 4 - remainder; desc_start = 12 + nsize + name_pad_length; if (type != 1) { int note_record_length; if ((remainder = (dsize % 4)) != 0) desc_pad_length = 4 - remainder; note_record_length = 12 + nsize + name_pad_length + dsize + desc_pad_length; notes_remaining -= note_record_length; sec_contents += note_record_length; continue; } else { spu_note_found = true; /* Must memcpy the data from sec_contents to a * 'char *' first, then stringify it, since * the type of sec_contents (bfd_byte *) cannot be * used as input for creating a string. */ char * description = (char *) xmalloc(dsize); memcpy(description, sec_contents + desc_start, dsize); filename = description; free(description); } } free(sec_contents); /* Default to app name for the image name */ if (spu_note_found == false) filename = fname; find_sec_code: for (sect = ibfd.abfd->sections; sect; sect = sect->next) { if (sect->flags & SEC_CODE) { if (filepos_map[sect->name] != 0) { cerr << "Found section \"" << sect->name << "\" twice for " << get_filename() << endl; abort(); } filepos_map[sect->name] = sect->filepos; } } get_symbols(symbols); /* In some cases the SPU library code generates code stubs on the stack. */ /* The kernel module remaps those addresses so add an entry to catch/report them. */ symbols.push_back(op_bfd_symbol(OP_SPU_DYN_FLAG, OP_SPU_MEMSIZE, "__send_to_ppe(stack)")); out: add_symbols(symbols, symbol_filter); return; out_fail: ibfd.close(); dbfd.close(); if (fd != -1) close(fd); file_size = -1; goto out; } oprofile-0.9.9/libutil++/unique_storage.h0000664000076400007640000000425012175510131015275 00000000000000/** * @file unique_storage.h * Unique storage of values * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #ifndef UNIQUE_STORAGE_H #define UNIQUE_STORAGE_H #include #include #include /** * Store values such that only one copy of the value * is ever stored. * * I is an arbitrary typename that's never * used. * * It is a required parameter in order to enforce * type-safety for a collection. * * The value type "V" must be default-constructible, * and this is the value returned by a stored id_value * where .set() is false */ template class unique_storage { public: unique_storage() { // id 0 values.push_back(V()); } virtual ~unique_storage() {} typedef std::vector stored_values; /// the actual ID type struct id_value { /// id == 0 means "empty" / "undefined" id_value() : id(0) {} /// does this ID map to a non-default value ? bool set() const { return id; } bool operator<(id_value const & rhs) const { return id < rhs.id; } bool operator==(id_value const & rhs) const { return id == rhs.id; } bool operator!=(id_value const & rhs) const { return !(id == rhs.id); } private: friend class unique_storage; typedef typename stored_values::size_type size_type; explicit id_value(size_type s) : id(s) {} /// actual ID value size_type id; }; /// ensure this value is available id_value const create(V const & value) { typename id_map::value_type val(value, id_value(values.size())); std::pair inserted = ids.insert(val); if (inserted.second) values.push_back(value); return inserted.first->second; } /// return the stored value for the given ID V const & get(id_value const & id) const { // some stl lack at(), so we emulate it if (id.id < values.size()) return values[id.id]; throw std::out_of_range("unique_storage::get(): out of bounds"); } private: typedef std::map id_map; /// the contained values stored_values values; /// map from ID to value id_map ids; }; #endif /* !UNIQUE_STORAGE_H */ oprofile-0.9.9/libutil++/op_bfd.h0000664000076400007640000002522012175510131013474 00000000000000/** * @file op_bfd.h * Encapsulation of bfd objects * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #ifndef OP_BFD_H #define OP_BFD_H #include "config.h" #include #include #include #include #include #include "bfd_support.h" #include "locate_images.h" #include "utility.h" #include "cached_value.h" #include "op_types.h" class op_bfd; class string_filter; class extra_images; /// all symbol vector indexing uses this type typedef size_t symbol_index_t; /** * A symbol description from a bfd point of view. This duplicate * information pointed by an asymbol, we need this duplication in case * the symbol is an artificial symbol */ class op_bfd_symbol { public: /// ctor for real symbols op_bfd_symbol(asymbol const * a); /// ctor for artificial symbols op_bfd_symbol(bfd_vma vma, size_t size, std::string const & name); bfd_vma vma() const { return symb_value + section_vma; } unsigned long value() const { return symb_value; } unsigned long filepos() const { return symb_value + section_filepos; } unsigned long symbol_endpos(void) const; asection const * section(void) const { return bfd_symbol->section; } std::string const & name() const { return symb_name; } asymbol const * symbol() const { return bfd_symbol; } size_t size() const { return symb_size; } void size(size_t s) { symb_size = s; } bool hidden() const { return symb_hidden; } bool weak() const { return symb_weak; } bool artificial() const { return symb_artificial; } /// compare two symbols by their filepos() bool operator<(op_bfd_symbol const & lhs) const; private: /// the original bfd symbol, this can be null if the symbol is an /// artificial symbol asymbol const * bfd_symbol; /// the offset of this symbol relative to the begin of the section's /// symbol unsigned long symb_value; /// the section filepos for this symbol unsigned long section_filepos; /// the section vma for this symbol bfd_vma section_vma; /// the size of this symbol size_t symb_size; /// the name of the symbol std::string symb_name; /// normally not externally visible symbol bool symb_hidden; /// whether other symbols can override it bool symb_weak; /// symbol is artificially created bool symb_artificial; /// code bytes corresponding to symbol -- used for XML generation std::string symb_bytes; }; /** * Encapsulation of a bfd object. Simplifies open/close of bfd, enumerating * symbols and retrieving informations for symbols or vma. * * Use of this class relies on a std::ostream cverb */ class op_bfd { public: /** * @param filename the name of the image file * @param symbol_filter filter to apply to symbols * @param extra_images container where all extra candidate filenames * are stored * @param ok in-out parameter: on in, if not set, don't * open the bfd (because it's not there or whatever). On out, * it's set to false if the bfd couldn't be loaded. */ op_bfd(std::string const & filename, string_filter const & symbol_filter, extra_images const & extra_images, bool & ok); /** * This constructor is used when processing an SPU profile * where the SPU ELF is embedded within the PPE binary. */ op_bfd(uint64_t spu_offset, std::string const & filename, string_filter const & symbol_filter, extra_images const & extra_images, bool & ok); std::string get_embedding_filename() const { return embedding_filename; } /// close an opened bfd image and free all related resources ~op_bfd(); /** * @param sym_idx index of the symbol * @param offset fentry number * @param filename output parameter to store filename * @param linenr output parameter to store linenr. * * Retrieve the relevant finename:linenr information for the sym_idx * at offset. If the lookup fails, return false. In some cases this * function can retrieve the filename and return true but fail to * retrieve the linenr and so can return zero in linenr */ bool get_linenr(symbol_index_t sym_idx, bfd_vma offset, std::string & filename, unsigned int & linenr) const; /** * @param sym_idx symbol index * @param start reference to start var * @param end reference to end var * * Calculates the range of sample file entries covered by sym. start * and end will be filled in appropriately. If index is the last entry * in symbol table, all entries up to the end of the sample file will * be used. After calculating start and end they are sanitized * * All errors are fatal. */ void get_symbol_range(symbol_index_t sym_idx, unsigned long long & start, unsigned long long & end) const; /** * @param start reference to the start vma * @param end reference to the end vma * * return in start, end the vma range for this binary object. */ void get_vma_range(bfd_vma & start, bfd_vma & end) const; /** return the relocated PC value for the given file offset */ bfd_vma offset_to_pc(bfd_vma offset) const; /** * If passed 0, return the file position of the .text section. * Otherwise, return the filepos of a section with a matching * vma. */ unsigned long get_start_offset(bfd_vma vma = 0) const; /** * Return the image name of the underlying binary image. For an * archive, this returns the path *within* the archive, not the * full path of the file. */ std::string get_filename() const; /// sorted vector by vma of interesting symbol. std::vector syms; /// return in bits the bfd_vma size for this binary. This is needed /// because gprof output depend on the bfd_vma for *this* binary /// and do not depend on sizeof(bfd_vma) size_t bfd_arch_bits_per_address() const; /// return true if binary contain some debug information bool has_debug_info() const; /** * @param sym_idx symbol index * * Return true or false, indicating whether or not the * symbol referenced by the passed sym_idx has code available. * Some symbols have no code associated with them; for example, * artificial symbols created for anonymous memory samples or for * stripped binaries with no symbol debug info. Additionally, * if the bfd object associated with the symbol is not valid, * this function will also return false. * * NOTE: This call should be made prior to invoking * get_symbol_contents to avoid unnecessarily allocating * memory for the symbol contents. */ bool symbol_has_contents(symbol_index_t sym_idx); bool get_symbol_contents(symbol_index_t sym_index, unsigned char * contents) const; bool valid() const { return ibfd.valid(); } bfd_vma get_vma_adj(void) const { return vma_adj; } private: /// temporary container type for getting symbols typedef std::list symbols_found_t; /** * Parse and sort in ascending order all symbols * in the file pointed to by abfd that reside in * a %SEC_CODE section. * * The symbols are filtered through * the interesting_symbol() predicate and sorted * with op_bfd_symbol::operator<() comparator. */ void get_symbols(symbols_found_t & symbols); /** * Helper function for get_symbols. * Populates bfd_syms and extracts the "interesting_symbol"s. */ void get_symbols_from_file(bfd_info & bfd, size_t start, op_bfd::symbols_found_t & symbols, bool debug_file); /** * Add the symbols in the binary, applying filtering, * and handling artificial symbols. */ void add_symbols(symbols_found_t & symbols, string_filter const & symbol_filter); /** * symbol_size - return the size of a symbol * @param sym symbol to get size * @param next next symbol in vma order if any */ size_t symbol_size(op_bfd_symbol const & sym, op_bfd_symbol const * next) const; /// create an artificial symbol for a symbolless binary op_bfd_symbol const create_artificial_symbol(); /* Generate symbols using bfd functions for * the image file associated with the ibfd arg. */ uint process_symtab(bfd_info * bfd, uint start); /// filename we open (not including archive path) std::string filename; /// path to archive std::string archive_path; /// reference to extra_images extra_images const & extra_found_images; /// file size in bytes off_t file_size; /// corresponding debug file name mutable std::string debug_filename; /// true if at least one section has (flags & SEC_DEBUGGING) != 0 mutable cached_value debug_info; /// our main bfd object: .bfd may be NULL bfd_info ibfd; // corresponding debug bfd object, if one is found mutable bfd_info dbfd; /// sections we will avoid to use symbol from, this is needed /// because elf file allows sections with identical vma and we can't /// allow overlapping symbols. Such elf layout is used actually by /// kernel modules where all code section vma are set to 0. std::vector filtered_section; typedef std::map filepos_map_t; // mapping of section names to filepos in the original binary filepos_map_t filepos_map; /** * If spu_offset is non-zero, embedding_filename is the file containing * the embedded SPU image. */ std::string embedding_filename; bool anon_obj; /** * If a runtime binary is prelinked, then its p_vaddr field in the * first PT_LOAD segment will give the address where the binary will * be loaded into memory. However, the corresponding debuginfo file * may have a different p_vaddr value. In profile_container::add_samples, * this difference is handled by adding the "base_vma" to the sample * vma. However, if the runtime binary has no symbol information at all, * then the "base_vma" is obtained from the debuginfo symbol information. * For opreport, this works OK, since under such conditions, ALL symbol * and debug data is then obtained from the debuginfo files, and the sample * vma's should match up fine with the symbol vma's in the debuginfo file. * But when doing 'opannoate --assembly', the real (runtime) image is used for * annotation, and, thus, we may have a mis-match between real image p_vaddr * and the impliled p_vaddr stored with the samples. To handle this case, * we do the following: When a bfd_info is created for a debuginfo * file, we set vma_adj to the difference between runtime load address * and the p_vaddr of the first PT_LOAD segment of the debuginfo file, if and * only if the real image has no symbol info; otherwise vma_adj is set to 0. */ bfd_vma vma_adj; /** * The file descriptor for an image file that we pass to fdopen_bfd must be kep * open through the life of the op_bfd to enable proper beahvior of certain * BFD functions -- in particular, bfd_find_nearest_line(). */ int fd; }; #endif /* !OP_BFD_H */ oprofile-0.9.9/libutil++/bfd_support.h0000664000076400007640000001101512175510131014567 00000000000000/** * @file bfd_support.h * BFD muck we have to deal with. * * @remark Copyright 2005 OProfile authors * @remark Read the file COPYING * * @author John Levon */ #ifndef BFD_SUPPORT_H #define BFD_SUPPORT_H #include "config.h" #include "utility.h" #include "op_types.h" #include "locate_images.h" #include #include #include #include class op_bfd_symbol; /// holder for BFD state we must keep struct bfd_info { bfd_info() : abfd(0), nr_syms(0), synth_syms(0), image_bfd_info(0) {} ~bfd_info(); /// close the BFD, setting abfd to NULL void close(); /// return true if BFD is readable bool valid() const { return abfd; } /// return true if BFD has debug info bool has_debug_info() const; /// pick out the symbols from the bfd, if we can void get_symbols(); /// the actual BFD bfd * abfd; /// normal symbols (includes synthesized symbols) scoped_array syms; /// nr. symbols size_t nr_syms; void set_image_bfd_info(bfd_info * ibfd) { image_bfd_info = ibfd; } bfd_info * get_image_bfd_info(void) const { return image_bfd_info; } private: /** * Acquire the synthetic symbols if we need to. */ bool get_synth_symbols(); /** * On PPC64, synth_syms points to an array of synthetic asymbol * structs returned from bfd_get_synthetic_symtab. The syms * member points into this array, so we have to keep it around * until ~bfd_info time. */ asymbol * synth_syms; /** * Under certain circumstances, correct handling of the bfd for a * debuginfo file is not possible without access to the bfd for * the actual image file. The image_bfd_info field provides access to * that bfd when this bfd_info is for a debuginfo file; otherwise * image_bfd_info is NULL. */ bfd_info * image_bfd_info; #if SYNTHESIZE_SYMBOLS /** * This function is used only for ppc64 binaries. It uses the runtime * image BFD (accessed through image_bfd_info) as needed when processing * debuginfo files. */ void translate_debuginfo_syms(asymbol ** dbg_syms, long nr_dbg_syms); /** * This map is used to cache section VMAs during translate_debuginfo_syms * so they can be restored later. */ std::map section_vma_maps; #endif }; /* * find_separate_debug_file - return true if a valid separate debug file found * @param ibfd binary file * @param dir_in directory holding the binary file * @param global_in * @param filename path to valid debug file * * Search order for debug file and use first one found: * 1) dir_in directory * 2) dir_in/.debug directory * 3) global_in/dir_in directory * * Newer binutils and Linux distributions (e.g. Fedora) allow the * creation of debug files that are separate from the binary. The * debugging information is stripped out of the binary file, placed in * this separate file, and a link to the new file is placed in the * binary. The debug files hold the information needed by the debugger * (and OProfile) to map machine instructions back to source code. */ extern bool find_separate_debug_file(bfd * ibfd, std::string const & filepath_in, std::string & debug_filename, extra_images const & extra); /// open the given BFD bfd * open_bfd(std::string const & file); /// open the given BFD from the fd bfd * fdopen_bfd(std::string const & file, int fd); /// Return a BFD for an SPU ELF embedded in PPE binary file bfd * spu_open_bfd(std::string const name, int fd, uint64_t offset_to_spu_elf); /// Return true if the symbol is worth looking at bool interesting_symbol(asymbol * sym); /** * return true if the first symbol is less interesting than the second symbol * boring symbol are eliminated when multiple symbol exist at the same vma */ bool boring_symbol(op_bfd_symbol const & first, op_bfd_symbol const & second); /// debug info for a given pc struct linenr_info { /// did we find something? bool found; /// filename std::string filename; /// line number unsigned int line; }; /** * Attempt to locate a filename + line number for the given symbol and * offset. * * The bfd object is either the object associated with the binary or the * once associated with the separated debug info file so find_nearest_line() * can't lookup the section contents of code section etc. The filepos of * debuginfo symbols are different from the original file but we fixed symbol * filepos earlier. */ linenr_info const find_nearest_line(bfd_info const & ibfd, op_bfd_symbol const & sym, bfd_vma offset, bool anon_obj); #endif /* !BFD_SUPPORT_H */ oprofile-0.9.9/libutil++/op_exception.h0000664000076400007640000000256412175510131014745 00000000000000/** * @file op_exception.h * exception base class * * This provide simple base class for exception object. All * exception are derived from directly or indirectly from * std::exception. This class are not itended to be catched * in your code except at top level, derive what you want * and catch derived class rather. * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #ifndef OP_EXCEPTION_H #define OP_EXCEPTION_H #include #include /** * exception abstract base class */ class op_exception : public std::exception { public: explicit op_exception(std::string const& msg); ~op_exception() throw() = 0; char const * what() const throw(); private: std::string message; }; /** * fatal exception, never catch it except at top level (likely main or * gui). Intended to replace cerr << "blah"; exit(EXIT_FAILURE); by a * throw op_fatal_error("blah") when returning error code is not an option */ struct op_fatal_error : op_exception { explicit op_fatal_error(std::string const & msg); }; /** * Encapsulate a runtime error with or w/o a valid errno */ struct op_runtime_error : std::runtime_error { explicit op_runtime_error(std::string const & err); op_runtime_error(std::string const & err, int cerrno); ~op_runtime_error() throw(); }; #endif /* !OP_EXCEPTION_H */ oprofile-0.9.9/libutil++/op_exception.cpp0000664000076400007640000000142412175510131015272 00000000000000/** * @file op_exception.cpp * exception base class * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #include #include "op_exception.h" using namespace std; op_exception::op_exception(string const & msg) : message(msg) { } op_exception::~op_exception() throw() { } char const * op_exception::what() const throw() { return message.c_str(); } op_fatal_error::op_fatal_error(string const & msg) : op_exception(msg) { } op_runtime_error::op_runtime_error(string const & msg) : runtime_error(msg) { } op_runtime_error::op_runtime_error(string const & msg, int cerrno) : runtime_error(msg + "\ncause: " + strerror(cerrno)) { } op_runtime_error::~op_runtime_error() throw() { } oprofile-0.9.9/libutil++/stream_util.h0000664000076400007640000000137412175510131014577 00000000000000/** * @file stream_util.h * C++ stream utility * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #ifndef STREAM_UTIL_H #define STREAM_UTIL_H #include /// class which save a stream state and restore it at dtor time class io_state { public: /** * save the stream flags, precision and fill char. * * width is restored at end of expression, there is no need to save it. * tie and locale are not saved currently * * error state shouldn't be saved. */ io_state(std::ios & stream); /// restore the stream state ~io_state(); private: std::ios & stream; std::ios::fmtflags format; std::streamsize precision; char fill; }; #endif /* !STREAM_UTIL_H */ oprofile-0.9.9/libutil++/file_manip.h0000664000076400007640000000474312175510131014355 00000000000000/** * @file file_manip.h * Useful file management helpers * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #ifndef FILE_MANIP_H #define FILE_MANIP_H #include #include /** * copy_file - copy a file. * @param source filename to copy from * @param destination filename to copy into * * the last modification time of the source file is preserved, file attribute * and owner are preserved if possible. Return true if copying successful. */ bool copy_file(std::string const & source, std::string const & destination); /// return true if dir is an existing directory bool is_directory(std::string const & dirname); /** * is_file_identical - check for identical files * @param file1 first filename * @param file2 second filename * * return true if the two filenames belong to the same file */ bool is_files_identical(std::string const & file1, std::string const & file2); /** * op_realpath - resolve symlinks etc. * Resolve a path as much as possible. Accounts for relative * paths (from cwd), ".." and ".". For success, the target * file must exist ! * * Resolve a symbolic link as far as possible. * Returns the original string on failure. */ std::string const op_realpath(std::string const & name); /// return true if the given file is readable bool op_file_readable(std::string const & file); /** * @param file_list where to store result * @param base_dir directory from where lookup start * @param filter a filename filter * @param recursive if true lookup in sub-directory * * create a filelist under base_dir, filtered by filter and optionally * looking in sub-directory. If we look in sub-directory only sub-directory * which match filter are traversed. */ bool create_file_list(std::list & file_list, std::string const & base_dir, std::string const & filter = "*", bool recursive = false); /** * op_dirname - get the path component of a filename * @param file_name filename * * Returns the path name of a filename with trailing '/' removed. */ std::string op_dirname(std::string const & file_name); /** * op_basename - get the basename of a path * @param path_name path * * Returns the basename of a path with trailing '/' removed. * * Always use this instead of the C basename() - header order * can affect behaviour for basename("/") */ std::string op_basename(std::string const & path_name); #endif /* !FILE_MANIP_H */ oprofile-0.9.9/libutil++/path_filter.h0000664000076400007640000000251712175510131014550 00000000000000/** * @file path_filter.h * Filter paths based on globbed exclude/include list * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #ifndef PATH_FILTER_H #define PATH_FILTER_H #include "glob_filter.h" /** * path_filter - filtering of a string based on globbed include/exclude list * * This class is an oracle on whether a particular string matches * the given list of included and excluded strings. * * This class gives glob-based matches on each pattern, as with fnmatch(3), * where each component of the candidate path is considered separately. */ class path_filter : public glob_filter { public: /** * Initialise the filter with the include and exclude list, * comma-separated. */ path_filter(std::string const & include_patterns = std::string(), std::string const & exclude_patterns = std::string()) : glob_filter(include_patterns, exclude_patterns) {} /** * Initialise the filter with the include and exclude list. */ path_filter(std::vector const & include_patterns, std::vector const & exclude_patterns) : glob_filter(include_patterns, exclude_patterns) {} /// Returns true if the given string matches virtual bool match(std::string const & str) const; }; #endif /* PATH_FILTER_H */ oprofile-0.9.9/libutil++/op_bfd.cpp0000664000076400007640000002634512175510131014040 00000000000000/** * @file op_bfd.cpp * Encapsulation of bfd objects * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #include "op_file.h" #include "op_config.h" #include "config.h" #include #include #include #include #include #include #include #include #include #include "op_bfd.h" #include "locate_images.h" #include "string_filter.h" #include "stream_util.h" #include "cverb.h" using namespace std; verbose vbfd("bfd"); namespace { /// function object for filtering symbols to remove struct remove_filter { remove_filter(string_filter const & filter) : filter_(filter) {} bool operator()(op_bfd_symbol const & symbol) { return !filter_.match(symbol.name()); } string_filter filter_; }; } // namespace anon op_bfd_symbol::op_bfd_symbol(asymbol const * a) : bfd_symbol(a), symb_value(a->value), section_filepos(a->section->filepos), section_vma(a->section->vma), symb_size(0), symb_hidden(false), symb_weak(false), symb_artificial(false) { // Some sections have unnamed symbols in them. If // we just ignore them then we end up sticking // things like .plt hits inside of _init. So instead // we name the symbol after the section. if (a->name && a->name[0] != '\0') { symb_name = a->name; symb_weak = a->flags & BSF_WEAK; symb_hidden = (a->flags & BSF_LOCAL) && !(a->flags & BSF_GLOBAL); } else { symb_name = string("??") + a->section->name; } } op_bfd_symbol::op_bfd_symbol(bfd_vma vma, size_t size, string const & name) : bfd_symbol(0), symb_value(vma), section_filepos(0), section_vma(0), symb_size(size), symb_name(name), symb_hidden(false), symb_weak(false), symb_artificial(true) { } bool op_bfd_symbol::operator<(op_bfd_symbol const & rhs) const { return filepos() < rhs.filepos(); } unsigned long op_bfd_symbol::symbol_endpos(void) const { return bfd_symbol->section->filepos + bfd_symbol->section->size; } op_bfd::op_bfd(string const & fname, string_filter const & symbol_filter, extra_images const & extra_images, bool & ok) : filename(fname), archive_path(extra_images.get_archive_path()), extra_found_images(extra_images), file_size(-1), anon_obj(false), vma_adj(0) { fd = -1; struct stat st; // after creating all symbol it's convenient for user code to access // symbols through a vector. We use an intermediate list to avoid a // O(N�) behavior when we will filter vector element below symbols_found_t symbols; asection const * sect; string suf = ".jo"; image_error img_ok; string const image_path = extra_images.find_image_path(filename, img_ok, true); cverb << vbfd << "op_bfd ctor for " << image_path << endl; // if there's a problem already, don't try to open it if (!ok || img_ok != image_ok) { cverb << vbfd << "can't locate " << image_path << endl; goto out_fail; } fd = open(image_path.c_str(), O_RDONLY); if (fd == -1) { cverb << vbfd << "open failed for " << image_path << endl; ok = false; goto out_fail; } if (fstat(fd, &st)) { cverb << vbfd << "stat failed for " << image_path << endl; ok = false; goto out_fail; } file_size = st.st_size; ibfd.abfd = fdopen_bfd(image_path, fd); if (!ibfd.valid()) { cverb << vbfd << "fdopen_bfd failed for " << image_path << endl; ok = false; goto out_fail; } string::size_type pos; pos = filename.rfind(suf); if (pos != string::npos && pos == filename.size() - suf.size()) anon_obj = true; // find .text and use it for (sect = ibfd.abfd->sections; sect; sect = sect->next) { if (sect->flags & SEC_CODE) { if (filepos_map[sect->name] != 0) { cerr << "Found section \"" << sect->name << "\" twice for " << get_filename() << endl; abort(); } filepos_map[sect->name] = sect->filepos; if (sect->vma == 0 && strcmp(sect->name, ".text")) filtered_section.push_back(sect); } } get_symbols(symbols); out: add_symbols(symbols, symbol_filter); return; out_fail: ibfd.close(); dbfd.close(); // make the fake symbol fit within the fake file file_size = -1; goto out; } op_bfd::~op_bfd() { if (fd != -1) close(fd); } unsigned long op_bfd::get_start_offset(bfd_vma vma) const { if (!vma || !ibfd.valid()) { filepos_map_t::const_iterator it = filepos_map.find(".text"); if (it != filepos_map.end()) return it->second; return 0; } return 0; } void op_bfd::get_symbols(op_bfd::symbols_found_t & symbols) { ibfd.get_symbols(); // On separate debug file systems, the main bfd has no symbols, // so even for non -g reports, we want to process the dbfd. // This hurts us pretty badly (the CRC), but we really don't // have much choice at the moment. has_debug_info(); dbfd.set_image_bfd_info(&ibfd); dbfd.get_symbols(); if (dbfd.valid() && !ibfd.nr_syms) vma_adj = ibfd.abfd->start_address - dbfd.abfd->start_address; else vma_adj= 0; size_t i; for (i = 0; i < ibfd.nr_syms; ++i) { if (!interesting_symbol(ibfd.syms[i])) continue; if (find(filtered_section.begin(), filtered_section.end(), ibfd.syms[i]->section) != filtered_section.end()) continue; symbols.push_back(op_bfd_symbol(ibfd.syms[i])); } for (i = 0; i < dbfd.nr_syms; ++i) { if (!interesting_symbol(dbfd.syms[i])) continue; // need to use filepos of original file's section for // debug file symbols. We probably need to be more // careful for special symbols which have ->section from // .rodata like *ABS* u32 filepos = filepos_map[dbfd.syms[i]->section->name]; if (filepos != 0) dbfd.syms[i]->section->filepos = filepos; symbols.push_back(op_bfd_symbol(dbfd.syms[i])); } symbols.sort(); symbols_found_t::iterator it = symbols.begin(); // we need to ensure than for a given vma only one symbol exist else // we read more than one time some samples. Fix #526098 while (it != symbols.end()) { symbols_found_t::iterator temp = it; ++temp; if (temp != symbols.end() && (it->vma() == temp->vma()) && (it->filepos() == temp->filepos())) { if (boring_symbol(*it, *temp)) { it = symbols.erase(it); } else { symbols.erase(temp); } } else { ++it; } } // now we can calculate the symbol size, we can't first include/exclude // symbols because the size of symbol is calculated from the difference // between the vma of a symbol and the next one. for (it = symbols.begin() ; it != symbols.end(); ++it) { op_bfd_symbol const * next = 0; symbols_found_t::iterator temp = it; ++temp; if (temp != symbols.end()) next = &*temp; it->size(symbol_size(*it, next)); } } void op_bfd::add_symbols(op_bfd::symbols_found_t & symbols, string_filter const & symbol_filter) { // images with no symbols debug info available get a placeholder symbol if (symbols.empty()) symbols.push_back(create_artificial_symbol()); cverb << vbfd << "number of symbols before filtering " << dec << symbols.size() << hex << endl; symbols_found_t::iterator it; it = remove_if(symbols.begin(), symbols.end(), remove_filter(symbol_filter)); copy(symbols.begin(), it, back_inserter(syms)); cverb << vbfd << "number of symbols now " << dec << syms.size() << hex << endl; } bfd_vma op_bfd::offset_to_pc(bfd_vma offset) const { asection const * sect = ibfd.abfd->sections; for (; sect; sect = sect->next) { if (offset >= bfd_vma(sect->filepos) && (!sect->next || offset < bfd_vma(sect->next->filepos))) { return sect->vma + (offset - sect->filepos); } } return 0; } bool op_bfd:: symbol_has_contents(symbol_index_t sym_idx) { op_bfd_symbol const & bfd_sym = syms[sym_idx]; string const name = bfd_sym.name(); if (name.size() == 0 || bfd_sym.artificial() || !ibfd.valid()) return false; else return true; } bool op_bfd:: get_symbol_contents(symbol_index_t sym_index, unsigned char * contents) const { op_bfd_symbol const & bfd_sym = syms[sym_index]; size_t size = bfd_sym.size(); if (!bfd_get_section_contents(ibfd.abfd, bfd_sym.symbol()->section, contents, static_cast(bfd_sym.value()), size)) { return false; } return true; } bool op_bfd::has_debug_info() const { if (debug_info.cached()) return debug_info.get(); if (!ibfd.valid()) return debug_info.reset(false); if (ibfd.has_debug_info()) return debug_info.reset(true); // check to see if there is an .debug file if (find_separate_debug_file(ibfd.abfd, filename, debug_filename, extra_found_images)) { cverb << vbfd << "now loading: " << debug_filename << endl; dbfd.abfd = open_bfd(debug_filename); if (dbfd.has_debug_info()) return debug_info.reset(true); } // .debug is optional, so will not fail if there's a problem cverb << vbfd << "failed to process separate debug file " << debug_filename << endl; return debug_info.reset(false); } bool op_bfd::get_linenr(symbol_index_t sym_idx, bfd_vma offset, string & source_filename, unsigned int & linenr) const { if (!has_debug_info()) return false; bfd_info const & b = dbfd.valid() ? dbfd : ibfd; op_bfd_symbol const & sym = syms[sym_idx]; linenr_info const info = find_nearest_line(b, sym, offset, anon_obj); if (!info.found) return false; source_filename = info.filename; linenr = info.line; return true; } size_t op_bfd::symbol_size(op_bfd_symbol const & sym, op_bfd_symbol const * next) const { unsigned long long start = sym.filepos(); unsigned long long end; if (next && (sym.section() != next->section())) end = sym.symbol_endpos(); else end = next ? next->filepos() : sym.section()->filepos + file_size; if (start > end) return 0; return end - start; } void op_bfd::get_symbol_range(symbol_index_t sym_idx, unsigned long long & start, unsigned long long & end) const { op_bfd_symbol const & sym = syms[sym_idx]; bool const verbose = cverb << (vbfd & vlevel1); if (anon_obj) start = sym.vma(); else start = sym.filepos(); end = start + sym.size(); if (!verbose) return; io_state state(cverb << (vbfd & vlevel1)); cverb << (vbfd & vlevel1) << "symbol " << sym.name() << ", value " << hex << sym.value() << endl; cverb << (vbfd & vlevel1) << "start " << hex << start << ", end " << end << endl; if (sym.symbol()) { cverb << (vbfd & vlevel1) << "in section " << sym.symbol()->section->name << ", filepos " << hex << sym.symbol()->section->filepos << endl; } } void op_bfd::get_vma_range(bfd_vma & start, bfd_vma & end) const { if (!syms.empty()) { // syms are sorted by vma so vma of the first symbol and vma + // size of the last symbol give the vma range for gprof output op_bfd_symbol const & last_symb = syms[syms.size() - 1]; start = syms[0].vma(); // end is excluded from range so + 1 *if* last_symb.size() != 0 end = last_symb.vma() + last_symb.size() + (last_symb.size() != 0); } else { start = 0; end = file_size; } } op_bfd_symbol const op_bfd::create_artificial_symbol() { bfd_vma start, end; get_vma_range(start, end); return op_bfd_symbol(start, end - start, get_filename()); } string op_bfd::get_filename() const { return filename; } size_t op_bfd::bfd_arch_bits_per_address() const { if (ibfd.valid()) return ::bfd_arch_bits_per_address(ibfd.abfd); // FIXME: this function should be called only if the underlined ibfd // is ok, must we throw ? return sizeof(bfd_vma); } oprofile-0.9.9/libutil++/comma_list.h0000664000076400007640000000350312175510131014372 00000000000000/** * @file comma_list.h * Container holding items from a list of comma separated items * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie */ #ifndef COMMA_LIST_H #define COMMA_LIST_H #include #include #include "string_manip.h" /** * hold a list of item of type T, tracking also if item has been set. */ template class comma_list { public: comma_list(); /** * @param str list of comma separated item * * setup items array according to str parameters. Implement PP:3.17 * w/o restriction on charset and with the special string all which * match anything. */ void set(std::string const & str); /// return true if a specific value is held by this container bool is_set() const { return !is_all; } /** * @param value the value to test * * return true if value match one the stored value in items */ bool match(T const & value) const; private: typedef T value_type; typedef std::vector container_type; typedef typename container_type::const_iterator const_iterator; bool is_all; container_type items; }; template comma_list::comma_list() : is_all(true) { } template void comma_list::set(std::string const & str) { items.clear(); is_all = false; std::vector result = separate_token(str, ','); for (size_t i = 0 ; i < result.size() ; ++i) { if (result[i] == "all") { is_all = true; items.clear(); break; } items.push_back(op_lexical_cast(result[i])); } } template bool comma_list::match(T const & value) const { if (is_all) return true; const_iterator cit = items.begin(); const_iterator const end = items.end(); for (; cit != end; ++cit) { if (value == *cit) return true; } return false; } #endif /* !COMMA_LIST_H */ oprofile-0.9.9/libutil++/child_reader.cpp0000664000076400007640000001206312175510131015204 00000000000000/** * @file child_reader.cpp * Facility for reading from child processes * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #include #include #include #include #include #include #include #include #include "op_libiberty.h" #include "child_reader.h" using namespace std; child_reader::child_reader(string const & cmd, vector const & args) : fd1(-1), fd2(-1), pos1(0), end1(0), pos2(0), end2(0), pid(0), first_error(0), buf2(0), sz_buf2(0), buf1(new char[PIPE_BUF]), process_name(cmd), is_terminated(true), terminate_on_exception(false), forked(false) { exec_command(cmd, args); } child_reader::~child_reader() { terminate_process(); delete [] buf1; if (buf2) { // allocated through C alloc free(buf2); } } void child_reader::exec_command(string const & cmd, vector const & args) { int pstdout[2]; int pstderr[2]; if (pipe(pstdout) == -1 || pipe(pstderr) == -1) { first_error = errno; return; } pid = fork(); switch (pid) { case -1: first_error = errno; return; case 0: { char const ** argv = new char const *[args.size() + 2]; size_t i; argv[0] = cmd.c_str(); for (i = 1 ; i <= args.size() ; ++i) argv[i] = args[i - 1].c_str(); argv[i] = 0; // child: we can cleanup a few fd close(pstdout[0]); dup2(pstdout[1], STDOUT_FILENO); close(pstdout[1]); close(pstderr[0]); dup2(pstderr[1], STDERR_FILENO); close(pstderr[1]); execvp(cmd.c_str(), (char * const *)argv); int ret_code = errno; // we can communicate with parent by writing to stderr // and by returning a non zero error code. Setting // first_error in the child is a non-sense // we are in the child process: so this error message // is redirect to the parent process cerr << "Couldn't exec \"" << cmd << "\" : " << strerror(errno) << endl; exit(ret_code); } default:; // parent: we do not write on these fd. close(pstdout[1]); close(pstderr[1]); forked = true; break; } fd1 = pstdout[0]; fd2 = pstderr[0]; is_terminated = false; return; } bool child_reader::block_read() { fd_set read_fs; FD_ZERO(&read_fs); FD_SET(fd1, &read_fs); FD_SET(fd2, &read_fs); if (select(max(fd1, fd2) + 1, &read_fs, 0, 0, 0) >= 0) { if (FD_ISSET(fd1, &read_fs)) { ssize_t temp = read(fd1, buf1, PIPE_BUF); if (temp >= 0) end1 = temp; else end1 = 0; } if (FD_ISSET(fd2, &read_fs)) { if (end2 >= sz_buf2) { sz_buf2 = sz_buf2 ? sz_buf2 * 2 : PIPE_BUF; buf2 = (char *)xrealloc(buf2, sz_buf2); } ssize_t temp = read(fd2, buf2 + end2, sz_buf2 - end2); if (temp > 0) end2 += temp; } } bool ret = !(end1 == 0 && end2 == 0); if (end1 == -1) end1 = 0; if (end2 == -1) end2 = 0; return ret; } bool child_reader::getline(string & result) { // some stl lacks string::clear() result.erase(result.begin(), result.end()); bool ok = true; bool can_stop = false; do { int temp = end2; if (pos1 >= end1) { pos1 = 0; block_read(); } // for efficiency try to copy as much as we can of data ssize_t temp_pos = pos1; while (temp_pos < end1 && ok) { char ch = buf1[temp_pos++]; if (ch == '\n') ok = false; } // !ok ==> endl has been read so do not copy it. result.append(&buf1[pos1], (temp_pos - pos1) - !ok); if (!ok || !end1) can_stop = true; // reading zero byte from stdout don't mean than we exhausted // all stdout output, we must continue to try until reading // stdout and stderr return zero byte. if (ok && temp != end2) can_stop = false; pos1 = temp_pos; } while (!can_stop); // Is this correct ? return end1 != 0 || result.length() != 0; } bool child_reader::get_data(ostream & out, ostream & err) { bool ret = true; while (ret) { ret = block_read(); out.write(buf1, end1); err.write(buf2, end2); end1 = end2 = 0; } return first_error == 0; } int child_reader::terminate_process() { // can be called explicitely or by dtor, // we must protect against multiple call if (!is_terminated) { int ret; (void)waitpid(pid, &ret, 0); is_terminated = true; if (WIFEXITED(ret)) { first_error = WEXITSTATUS(ret) | WIFSIGNALED(ret); } else if (WIFSIGNALED(ret)) { terminate_on_exception = true; first_error = WTERMSIG(ret); } else { // FIXME: this seems impossible, waitpid *must* wait // and either the process terminate normally or through // a signal. first_error = -1; } } if (fd1 != -1) { close(fd1); fd1 = -1; } if (fd2 != -1) { close(fd2); fd2 = -1; } return first_error; } string child_reader::error_str() const { ostringstream err; if (!forked) { err << string("unable to fork, error: ") << strerror(first_error); } else if (is_terminated) { if (first_error) { if (terminate_on_exception) { err << process_name << " terminated by signal " << first_error; } else { err << process_name << " return " << first_error; } } } return err.str(); } oprofile-0.9.9/libutil++/growable_vector.h0000664000076400007640000000454012175510131015431 00000000000000/** * @file growable_vector.h * Auto-expanding vector type * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef GROWABLE_VECTOR_H #define GROWABLE_VECTOR_H #include #include #include /** * A simple growable vector template. */ template class growable_vector { public: typedef std::vector container_type; typedef typename container_type::size_type size_type; /** * Index into the vector for a value. An out of * bounds index will return a default-constructed value. */ T operator[](size_type index) const { if (index >= container.size()) return T(); return container[index]; } /** * Index into the vector for a value. If the index is larger than * the current max index, the array is expanded, default-filling * any intermediary gaps. */ T & operator[](size_type index) { if (index >= container.size()) container.resize(index + 1); return container[index]; } /** * vectorized += operator */ growable_vector & operator+=(growable_vector const & rhs) { if (rhs.container.size() > container.size()) container.resize(rhs.container.size()); size_type min_size = min(container.size(), rhs.container.size()); for (size_type i = 0 ; i < min_size; ++i) container[i] += rhs.container[i]; return *this; } /** * vectorized -= operator, overflow shouldn't occur during substraction * (iow: for each components lhs[i] >= rhs[i] */ growable_vector & operator-=(growable_vector const & rhs) { if (rhs.container.size() > container.size()) container.resize(rhs.container.size()); size_type min_size = min(container.size(), rhs.container.size()); for (size_type i = 0 ; i < min_size; ++i) container[i] -= rhs.container[i]; return *this; } /// return current size of vector size_type size() const { return container.size(); } /// fill container with given value void fill(size_type size, T const & value) { container.resize(size, value); } /// return true if all elements have the default constructed value bool zero() const { return std::find_if(container.begin(), container.end(), std::bind2nd(std::not_equal_to(), T())) == container.end(); } private: container_type container; }; #endif // GROWABLE_VECTOR_H oprofile-0.9.9/libutil++/string_filter.cpp0000664000076400007640000000207312175510131015452 00000000000000/** * @file string_filter.cpp * Filter strings based on exclude/include list * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #include #include "string_filter.h" #include "string_manip.h" using namespace std; string_filter::string_filter(string const & include_patterns, string const & exclude_patterns) : include(separate_token(include_patterns, ',')), exclude(separate_token(exclude_patterns, ',')) { } string_filter::string_filter(vector const & include_patterns, vector const & exclude_patterns) : include(include_patterns), exclude(exclude_patterns) { } // FIXME: PP reference bool string_filter::match(string const & str) const { vector::const_iterator cit; cit = find(exclude.begin(), exclude.end(), str); if (cit != exclude.end()) return false; cit = find(include.begin(), include.end(), str); if (include.empty() || cit != include.end()) return true; return false; } oprofile-0.9.9/libutil++/bfd_spu_support.cpp0000664000076400007640000000516712175510131016024 00000000000000/** * @file libutil++/bfd_spu_support.cpp * Special BFD functions for processing a Cell BE SPU profile * * @remark Copyright 2007 OProfile authors * @remark Read the file COPYING * * @author Maynard Johnson * (C) Copyright IBM Corporation 2007 */ #include "bfd_support.h" #include "op_bfd.h" #include "config.h" #include "cverb.h" #include #include #include #include #include #include #include #include struct spu_elf { FILE * stream; off_t spu_offset; }; using namespace std; extern verbose vbfd; #ifdef HAVE_BFD_OPENR_IOVEC_WITH_7PARMS namespace { static void * spu_bfd_iovec_open(bfd * nbfd, void * open_closure) { /* Checking nbfd isn't really necessary, except to silence * compile warning. In fact, nbfd will always be non-NULL. */ if (nbfd) return open_closure; else return NULL; } static int spu_bfd_iovec_close(bfd * nbfd, void * stream) { spu_elf * my_stream = (spu_elf *) stream; fclose(my_stream->stream); free(my_stream); /* Checking nbfd isn't really necessary, except to silence * compile warning. In fact, nbfd will always be non-NULL. */ if (nbfd) return 1; else return 0; } static file_ptr spu_bfd_iovec_pread(bfd * abfd, void * stream, void * buf, file_ptr nbytes, file_ptr offset) { spu_elf * my_stream = (spu_elf *) stream; if (fseek(my_stream->stream, my_stream->spu_offset + offset, SEEK_SET) < 0) return 0; nbytes = fread(buf, sizeof(char), nbytes, my_stream->stream); /* Checking abfd isn't really necessary, except to silence * compile warning. In fact, abfd will always be non-NULL. */ if (abfd) return nbytes; else return 0; } } // namespace anon #endif bfd * spu_open_bfd(string const name, int fd, uint64_t offset_to_spu_elf) { bfd * nbfd = NULL; spu_elf * spu_elf_stream = (spu_elf *)malloc(sizeof(spu_elf)); FILE * fp = fdopen(fd, "r"); spu_elf_stream->stream = fp; spu_elf_stream->spu_offset = offset_to_spu_elf; #ifdef HAVE_BFD_OPENR_IOVEC_WITH_7PARMS nbfd = bfd_openr_iovec(strdup(name.c_str()), "elf32-spu", spu_bfd_iovec_open, spu_elf_stream, spu_bfd_iovec_pread, spu_bfd_iovec_close, NULL); #else ostringstream os; os << "Attempt to process a Cell Broadband Engine SPU profile without" << "proper BFD support.\n" << "Rebuild the opreport utility with the correct BFD library.\n" << "See the OProfile user manual for more information.\n"; throw op_runtime_error(os.str()); #endif if (!nbfd) { cverb << vbfd << "spu_open_bfd failed for " << name << endl; return NULL; } bfd_check_format(nbfd, bfd_object); return nbfd; } oprofile-0.9.9/libutil++/Makefile.in0000664000076400007640000005552312175510234014154 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libutil++ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) ARFLAGS = cru libutil___a_AR = $(AR) $(ARFLAGS) libutil___a_LIBADD = am_libutil___a_OBJECTS = op_bfd.$(OBJEXT) bfd_support.$(OBJEXT) \ string_filter.$(OBJEXT) glob_filter.$(OBJEXT) \ path_filter.$(OBJEXT) file_manip.$(OBJEXT) \ stream_util.$(OBJEXT) string_manip.$(OBJEXT) cverb.$(OBJEXT) \ op_exception.$(OBJEXT) child_reader.$(OBJEXT) \ xml_output.$(OBJEXT) bfd_spu_support.$(OBJEXT) \ op_spu_bfd.$(OBJEXT) libutil___a_OBJECTS = $(am_libutil___a_OBJECTS) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libutil___a_SOURCES) DIST_SOURCES = $(libutil___a_SOURCES) RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ SUBDIRS = . tests AM_CPPFLAGS = \ -I ${top_srcdir}/libutil \ -I ${top_srcdir}/libop \ -I ${top_srcdir}/libpp \ @OP_CPPFLAGS@ AM_CXXFLAGS = @OP_CXXFLAGS@ noinst_LIBRARIES = libutil++.a libutil___a_SOURCES = \ op_bfd.cpp \ op_bfd.h \ bfd_support.cpp \ bfd_support.h \ string_filter.cpp \ string_filter.h \ glob_filter.cpp \ glob_filter.h \ growable_vector.h \ path_filter.cpp \ path_filter.h \ file_manip.cpp \ file_manip.h \ sparse_array.h \ stream_util.cpp \ stream_util.h \ string_manip.cpp \ string_manip.h \ cverb.cpp \ cverb.h \ generic_spec.h \ op_exception.cpp \ op_exception.h \ child_reader.cpp \ child_reader.h \ unique_storage.h \ utility.h \ cached_value.h \ comma_list.h \ xml_output.h \ xml_output.cpp \ bfd_spu_support.cpp \ op_spu_bfd.cpp all: all-recursive .SUFFIXES: .SUFFIXES: .cpp .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libutil++/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign libutil++/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) libutil++.a: $(libutil___a_OBJECTS) $(libutil___a_DEPENDENCIES) -rm -f libutil++.a $(libutil___a_AR) libutil++.a $(libutil___a_OBJECTS) $(libutil___a_LIBADD) $(RANLIB) libutil++.a mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bfd_spu_support.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bfd_support.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/child_reader.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cverb.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file_manip.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/glob_filter.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/op_bfd.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/op_exception.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/op_spu_bfd.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/path_filter.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stream_util.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/string_filter.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/string_manip.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xml_output.Po@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(LIBRARIES) installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \ mostlyclean-am distclean: distclean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic clean-libtool \ clean-noinstLIBRARIES ctags ctags-recursive distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/libutil++/string_filter.h0000664000076400007640000000242512175510131015120 00000000000000/** * @file string_filter.h * Filter strings based on exclude/include list * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #ifndef STRING_FILTER_H #define STRING_FILTER_H #include #include /** * string_filter - filtering of a string based on include/exclude list * * This class is an oracle on whether a particular string matches * the given list of included and excluded strings. * * This base class gives a default exact-match semantics. */ class string_filter { public: string_filter() {} /** * Initialise the filter with the include and exclude list, * comma-separated. */ string_filter(std::string const & include_patterns, std::string const & exclude_patterns); /** * Initialise the filter with the include and exclude list. */ string_filter(std::vector const & include_patterns, std::vector const & exclude_patterns); virtual ~string_filter() {} /// Returns true if the given string matches virtual bool match(std::string const & str) const; protected: /// include patterns std::vector include; /// exclude patterns std::vector exclude; }; #endif /* STRING_FILTER_H */ oprofile-0.9.9/libutil++/xml_output.cpp0000664000076400007640000000244212175510131015017 00000000000000/** * @file xml_output.cpp * utility routines for writing XML * * @remark Copyright 2006 OProfile authors * @remark Read the file COPYING * * @author Dave Nomura */ #include #include #include "op_xml_out.h" #include "xml_output.h" using namespace std; #define MAX_XML_BUF 16384 static char buf[MAX_XML_BUF]; string tag_name(tag_t tag) { ostringstream out; out << xml_tag_name(tag); return out.str(); } string open_element(tag_t tag, bool with_attrs) { ostringstream out; buf[0] = '\0'; open_xml_element(tag, with_attrs, buf, MAX_XML_BUF); out << buf; return out.str(); } string close_element(tag_t tag, bool has_nested) { ostringstream out; buf[0] = '\0'; close_xml_element(tag, has_nested, buf, MAX_XML_BUF); out << buf; return out.str(); } string init_attr(tag_t attr, size_t value) { ostringstream out; buf[0] = '\0'; init_xml_int_attr(attr, value, buf, MAX_XML_BUF); out << buf; return out.str(); } string init_attr(tag_t attr, double value) { ostringstream out; buf[0] = '\0'; init_xml_dbl_attr(attr, value, buf, MAX_XML_BUF); out << buf; return out.str(); } string init_attr(tag_t attr, string const & str) { ostringstream out; buf[0] = '\0'; init_xml_str_attr(attr, str.c_str(), buf, MAX_XML_BUF); out << buf; return out.str(); } oprofile-0.9.9/libutil++/generic_spec.h0000664000076400007640000000401012175510131014663 00000000000000/** * @file generic_spec.h * Container holding an item or a special "match all" item * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef GENERIC_SPEC_H #define GENERIC_SPEC_H #include #include #include #include "string_manip.h" /** * used to hold something like { int cpu_nr, bool is_all }; * to store a sub part of a samples filename see PP:3.21. */ template class generic_spec { public: /** * build a default spec which match anything */ generic_spec(); /// build a spec from a string, valid argument are "all" /// or a string convertible to T through istringtream(str) >> data /// conversion is strict, no space are allowed at begin or end of str void set(std::string const &); /// return true if a specific value is held by this container bool is_set() const { return !is_all; } /// return the specific value (only if is_set() == true) T const value() const { if (!is_all) return data; throw std::out_of_range("generic_spec holds no value"); } /// return true if rhs match this spec. Sub part of PP:3.24 bool match(T const & rhs) const { return rhs == data; } /// return true if rhs match this spec. Sub part of PP:3.24 bool match(generic_spec const & rhs) const { return is_all || rhs.is_all || rhs.data == data; } private: T data; bool is_all; }; template generic_spec::generic_spec() : data(T()), is_all(true) { } template void generic_spec::set(std::string const & str) { if (str == "all") { is_all = true; return; } is_all = false; data = op_lexical_cast(str); } /// We don't use generic_spec, since it's probably an error to try /// to use generic_spec we specialize but don't define it to get a /// link error (using generic_spec is problematic because g.set("all") /// is ambiguous) template <> void generic_spec::set(std::string const & str); #endif /* !GENERIC_SPEC_H */ oprofile-0.9.9/libutil++/string_manip.cpp0000664000076400007640000000553412175510131015276 00000000000000/** * @file string_manip.cpp * std::string helpers * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #include #include #include #include #include "string_manip.h" using namespace std; string erase_to_last_of(string const & str, char ch) { string result = str; string::size_type pos = result.find_last_of(ch); if (pos != string::npos) result.erase(0, pos + 1); return result; } string split(string & s, char c) { string::size_type i = s.find_first_of(c); if (i == string::npos) return string(); string const tail = s.substr(i + 1); s = s.substr(0, i); return tail; } bool is_prefix(string const & s, string const & prefix) { // gcc 2.95 and below don't have this // return s.compare(0, prefix.length(), prefix) == 0; return s.find(prefix) == 0; } vector separate_token(string const & str, char sep) { vector result; string next; for (size_t pos = 0 ; pos != str.length() ; ++pos) { char ch = str[pos]; if (ch == '\\') { if (pos < str.length() - 1 && str[pos + 1] == sep) { ++pos; next += sep; } else { next += '\\'; } } else if (ch == sep) { result.push_back(next); // some stl lacks string::clear() next.erase(next.begin(), next.end()); } else { next += ch; } } if (!next.empty()) result.push_back(next); return result; } string ltrim(string const & str, string const & totrim) { string result(str); return result.erase(0, result.find_first_not_of(totrim)); } string rtrim(string const & str, string const & totrim) { string result(str); return result.erase(result.find_last_not_of(totrim) + 1); } string trim(string const & str, string const & totrim) { return rtrim(ltrim(str, totrim), totrim); } string const format_percent(double value, size_t int_width, size_t fract_width, bool showpos) { ostringstream os; if (value == 0.0) return string(int_width + fract_width, ' ') + "0"; if (showpos) os.setf(ios::showpos); if (fabs(value) > .001) { // os << fixed << value unsupported by gcc 2.95 os.setf(ios::fixed, ios::floatfield); os << setw(int_width + fract_width + 1) << setprecision(fract_width) << value; } else { // os << scientific << value unsupported by gcc 2.95 os.setf(ios::scientific, ios::floatfield); os << setw(int_width + fract_width + 1) // - 3 to count exponent part << setprecision(fract_width - 3) << value; } string formatted = os.str(); if (is_prefix(formatted, "100.")) formatted.erase(formatted.size() - 1); return formatted; } template <> unsigned int op_lexical_cast(string const & str) { char* endptr; // 2.91.66 fix unsigned long ret = 0; ret = strtoul(str.c_str(), &endptr, 0); if (*endptr) throw invalid_argument("op_lexical_cast(\""+ str +"\")"); return ret; } oprofile-0.9.9/libutil++/glob_filter.cpp0000664000076400007640000000144112175510131015065 00000000000000/** * @file glob_filter.cpp * Filter strings based on globbed exclude/include list * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #include #include #include "glob_filter.h" #include "string_manip.h" using namespace std; bool glob_filter::fnmatcher::operator()(string const & s) { return fnmatch(s.c_str(), str_.c_str(), 0) != FNM_NOMATCH; } bool glob_filter::match(string const & str) const { vector::const_iterator cit; cit = find_if(exclude.begin(), exclude.end(), fnmatcher(str)); if (cit != exclude.end()) return false; cit = find_if(include.begin(), include.end(), fnmatcher(str)); if (include.empty() || cit != include.end()) return true; return false; } oprofile-0.9.9/libutil++/tests/0000775000076400007640000000000012175511555013326 500000000000000oprofile-0.9.9/libutil++/tests/glob_filter_tests.cpp0000664000076400007640000000210512175510131017447 00000000000000/** * @file glob_filter_tests.cpp * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include #include #include "glob_filter.h" using namespace std; #define check(filter, str, result) \ if (filter.match(str) != result) { \ cerr << "\"" << str << "\" matched with " #filter \ << " did not return " #result << endl; \ exit(EXIT_FAILURE); \ } int main() { glob_filter f1("foo,*bar", "foobar"); check(f1, "foo/barfoobar", true); check(f1, "foo/bar", true); check(f1, "/foo/foobar/foo", false); check(f1, "fooobar1", false); check(f1, "foo1", false); check(f1, "foobar", false); check(f1, "bar1", false); glob_filter f2("foo", ""); check(f2, "foo", true); check(f2, "foo1", false); check(f2, "foo/foo", false); glob_filter f3("", "foo"); check(f3, "foo", false); check(f3, "foo1", true); check(f3, "foo/foo", true); glob_filter f4("foo", "foo"); check(f4, "foo", false); check(f4, "foo1", false); check(f4, "foo/foo", false); return EXIT_SUCCESS; } oprofile-0.9.9/libutil++/tests/cached_value_tests.cpp0000664000076400007640000000260612175510131017570 00000000000000/** * @file cached_value_tests.cpp * tests cached_value.h * * @remark Copyright 2005 OProfile authors * @remark Read the file COPYING * * @author John Levon */ #include #include #include #include "cached_value.h" using namespace std; namespace { bool check_throw(cached_value const & boolval) { bool foo; try { foo = boolval.get(); foo = false; } catch (op_fatal_error const & e) { foo = true; } return foo; } int check_cached(void) { cached_value boolval; cached_value strval; if (!check_throw(boolval)) { cerr << "get() on no value didn't throw\n"; return EXIT_FAILURE; } if (boolval.reset(false) != false || boolval.get() != false) { cerr << "reset() of cached value \"false\" didn't work\n"; return EXIT_FAILURE; } if (boolval.reset(true) != true || boolval.get() != true) { cerr << "reset() of cached value \"true\" didn't work\n"; return EXIT_FAILURE; } if (strval.reset("foo") != "foo" || strval.get() != "foo") { cerr << "reset() of cached value \"foo\" didn't work\n"; return EXIT_FAILURE; } if (strval.reset("") != "" || strval.get() != "") { cerr << "reset() of cached value \"\" didn't work\n"; return EXIT_FAILURE; } return EXIT_SUCCESS; } }; int main() { try { check_cached(); } catch (...) { cerr << "unknown exception\n"; return EXIT_FAILURE; } return EXIT_SUCCESS; } oprofile-0.9.9/libutil++/tests/file_manip_tests.cpp0000664000076400007640000001301712175510131017266 00000000000000/** * @file file_manip_tests.cpp * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include #include #include #include #include #include "file_manip.h" using namespace std; template struct input_output { Input input; Output output; }; template static void check_result(char const * fct_name, Input const & input, Output const & output, Result const & result) { if (result != output) { cerr << fct_name << " " << "for:\n\"" << input << "\"\n" << "expect:\n\"" << output << "\"\n" << "found:\n\"" << result << "\"\n"; exit(EXIT_FAILURE); } } template static void check_result(char const * fct_name, Input const & input1, Input input2, Output const & output, Result const & result) { if (result != output) { cerr << fct_name << ": \n" << "for:\n\"" << input1 << "\"\n" << "\"" << input2 << "\"\n" << "expect:\n\"" << output << "\"\n" << "found:\n\"" << result << "\"\n"; exit(EXIT_FAILURE); } } static input_output expect_dirname[] = { { "/", "/" }, { "//////", "/" }, { "/usr", "/" }, { "///usr", "/" }, // suprising but conform to dirname(1) { "///usr/dir", "///usr" }, { "usr/dir", "usr" }, { "usr", "." }, { "n", "." }, { "../..", ".." }, { "/../..", "/.." }, { "./..", "." }, { "./.", "." }, { "..", "." }, { ".", "." }, { "", "." }, { 0, 0 } }; static void dirname_tests() { input_output const * cur; for (cur = expect_dirname; cur->input; ++cur) { string result = op_dirname(cur->input); check_result("dirname", cur->input, cur->output, result); } } static input_output expect_basename[] = { { "/", "/" }, { "//////", "/" }, { "/usr", "usr" }, { "///usr", "usr" }, { "///usr/dir", "dir" }, { "///usr//dir", "dir" }, { "usr/dir", "dir" }, { "usr", "usr" }, { "../..", ".." }, { "/../..", ".." }, { "./..", ".." }, { "./.", "." }, { ".", "." }, { 0, 0 } }; static void basename_tests() { input_output const * cur; for (cur = expect_basename; cur->input; ++cur) { string result = op_basename(cur->input); check_result("basename", cur->input, cur->output, result); } } static input_output expect_is_directory[] = { { ".", true }, { "/.", true }, { "./", true }, { "/", true }, { "../", true }, { "../.", true }, { "non_existing_dir", false }, { 0, 0 } }; static void is_directory_tests() { input_output const * cur; for (cur = expect_is_directory; cur->input; ++cur) { bool result = is_directory(cur->input); check_result("is_directory", cur->input, cur->output, result); } } static input_output, bool> expect_is_files_identical[] = { #define MAKE_PAIR(a, b) make_pair(string(a), string(b)) { MAKE_PAIR(__FILE__, __FILE__), true }, { MAKE_PAIR(__FILE__, "not_existing"), false }, { MAKE_PAIR("not_exisiting", __FILE__), false }, { MAKE_PAIR("not_exisiting", "not_existing"), false }, { MAKE_PAIR("", ""), false } #undef MAKE_PAIR }; void is_files_identical_tests(char const * prog_name) { check_result("is_files_identical", prog_name, prog_name, is_files_identical(prog_name, prog_name), true); input_output, bool> const * cur; for (cur = expect_is_files_identical; !cur->input.first.empty(); ++cur) { bool result = is_files_identical(cur->input.first, cur->input.second); check_result("is_files_identical", cur->input.first, cur->input.second, cur->output, result); } } static input_output expect_op_file_readable[] = { { __FILE__, true }, { "./" __FILE__, true }, { ".", false }, { "/.", false }, { "./", false }, { "/", false }, { "../", false }, { "../.", false }, { "non_existing_file", false }, { 0, 0 } }; static void op_file_readable_tests() { input_output const * cur; for (cur = expect_op_file_readable; cur->input; ++cur) { bool result = op_file_readable(cur->input); check_result("op_file_readable", cur->input, cur->output, result); } } static input_output expect_realpath[] = { // realpath() file argument must exists. { "file_manip_tests.o", "file_manip_tests.o" }, { "../tests/" "file_manip_tests.o", "file_manip_tests.o" }, { ".//.//" "file_manip_tests.o", "file_manip_tests.o" }, // POSIX namespaces ignored by realpath(3) { "//", "/" }, { "//usr", "/usr" }, { "///", "/" }, { "", "" } }; // FIXME: useful to test symlinks too static void realpath_tests() { input_output const * cur; for (cur = expect_realpath; !cur->input.empty(); ++cur) { string result = op_realpath(cur->input); string expect = cur->output; if (cur->input[0] != '/') expect = SRCDIR + expect; check_result("op_realpath", cur->input, expect, result); } } void create_file_list_tests() { list result; if (!create_file_list(result, ".")) { cerr << "create_file_list() fail\n"; exit(EXIT_FAILURE); } if (result.empty()) { cerr << "create_file_list(); empty result\n"; exit(EXIT_FAILURE); } } int main(int, char * argv[]) { dirname_tests(); basename_tests(); is_directory_tests(); is_files_identical_tests(argv[0]); op_file_readable_tests(); realpath_tests(); create_file_list_tests(); return EXIT_SUCCESS; } oprofile-0.9.9/libutil++/tests/comma_list_tests.cpp0000664000076400007640000000200412175510131017304 00000000000000/** * @file comma_list_tests.cpp * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include #include #include "comma_list.h" using namespace std; #define check(clist, val, result) \ if (clist.match(val) != result) { \ cerr << "\"" << #val << "\" matched with " #clist \ << " did not return " #result << endl; \ exit(EXIT_FAILURE); \ } int main() { comma_list c1; check(c1, 1, true); c1.set("2"); check(c1, 2, true); check(c1, 3, false); c1.set("3"); check(c1, 2, false); check(c1, 3, true); c1.set("2,3"); check(c1, 2, true); check(c1, 3, true); check(c1, 4, false); c1.set("all"); check(c1, 2, true); check(c1, 4, true); check(c1, 5, true); comma_list c2; c2.set("6,all"); check(c2, 4, true); check(c2, 0, true); c2.set("all,6"); check(c2, 4, true); check(c2, 0, true); c2.set("10"); check(c2, 10, true); check(c2, 11, false); return EXIT_SUCCESS; } oprofile-0.9.9/libutil++/tests/Makefile.in0000664000076400007640000005541012175510234015311 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ check_PROGRAMS = string_manip_tests$(EXEEXT) \ string_filter_tests$(EXEEXT) comma_list_tests$(EXEEXT) \ file_manip_tests$(EXEEXT) glob_filter_tests$(EXEEXT) \ path_filter_tests$(EXEEXT) cached_value_tests$(EXEEXT) \ utility_tests$(EXEEXT) TESTS = $(check_PROGRAMS) subdir = libutil++/tests DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am_cached_value_tests_OBJECTS = cached_value_tests.$(OBJEXT) cached_value_tests_OBJECTS = $(am_cached_value_tests_OBJECTS) cached_value_tests_DEPENDENCIES = $(COMMON_LIBS) am_comma_list_tests_OBJECTS = comma_list_tests.$(OBJEXT) comma_list_tests_OBJECTS = $(am_comma_list_tests_OBJECTS) comma_list_tests_DEPENDENCIES = $(COMMON_LIBS) am_file_manip_tests_OBJECTS = file_manip_tests.$(OBJEXT) file_manip_tests_OBJECTS = $(am_file_manip_tests_OBJECTS) file_manip_tests_DEPENDENCIES = $(COMMON_LIBS) am_glob_filter_tests_OBJECTS = glob_filter_tests.$(OBJEXT) glob_filter_tests_OBJECTS = $(am_glob_filter_tests_OBJECTS) glob_filter_tests_DEPENDENCIES = $(COMMON_LIBS) am_path_filter_tests_OBJECTS = path_filter_tests.$(OBJEXT) path_filter_tests_OBJECTS = $(am_path_filter_tests_OBJECTS) path_filter_tests_DEPENDENCIES = $(COMMON_LIBS) am_string_filter_tests_OBJECTS = string_filter_tests.$(OBJEXT) string_filter_tests_OBJECTS = $(am_string_filter_tests_OBJECTS) string_filter_tests_DEPENDENCIES = $(COMMON_LIBS) am_string_manip_tests_OBJECTS = string_manip_tests.$(OBJEXT) string_manip_tests_OBJECTS = $(am_string_manip_tests_OBJECTS) string_manip_tests_DEPENDENCIES = $(COMMON_LIBS) am_utility_tests_OBJECTS = utility_tests.$(OBJEXT) utility_tests_OBJECTS = $(am_utility_tests_OBJECTS) utility_tests_DEPENDENCIES = $(COMMON_LIBS) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(cached_value_tests_SOURCES) $(comma_list_tests_SOURCES) \ $(file_manip_tests_SOURCES) $(glob_filter_tests_SOURCES) \ $(path_filter_tests_SOURCES) $(string_filter_tests_SOURCES) \ $(string_manip_tests_SOURCES) $(utility_tests_SOURCES) DIST_SOURCES = $(cached_value_tests_SOURCES) \ $(comma_list_tests_SOURCES) $(file_manip_tests_SOURCES) \ $(glob_filter_tests_SOURCES) $(path_filter_tests_SOURCES) \ $(string_filter_tests_SOURCES) $(string_manip_tests_SOURCES) \ $(utility_tests_SOURCES) ETAGS = etags CTAGS = ctags am__tty_colors = \ red=; grn=; lgn=; blu=; std= DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBERTY_LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ REALPATH = readlink -f SRCDIR := $(shell $(REALPATH) $(topdir)/libutil++/tests/ ) AM_CPPFLAGS = \ -I ${top_srcdir}/libutil++ -D SRCDIR="\"$(SRCDIR)/\"" @OP_CPPFLAGS@ COMMON_LIBS = ../libutil++.a ../../libutil/libutil.a AM_CXXFLAGS = @OP_CXXFLAGS@ string_manip_tests_SOURCES = string_manip_tests.cpp string_manip_tests_LDADD = ${COMMON_LIBS} string_filter_tests_SOURCES = string_filter_tests.cpp string_filter_tests_LDADD = ${COMMON_LIBS} glob_filter_tests_SOURCES = glob_filter_tests.cpp glob_filter_tests_LDADD = ${COMMON_LIBS} path_filter_tests_SOURCES = path_filter_tests.cpp path_filter_tests_LDADD = ${COMMON_LIBS} comma_list_tests_SOURCES = comma_list_tests.cpp comma_list_tests_LDADD = ${COMMON_LIBS} file_manip_tests_SOURCES = file_manip_tests.cpp file_manip_tests_LDADD = ${COMMON_LIBS} cached_value_tests_SOURCES = cached_value_tests.cpp cached_value_tests_LDADD = ${COMMON_LIBS} utility_tests_SOURCES = utility_tests.cpp utility_tests_LDADD = ${COMMON_LIBS} all: all-am .SUFFIXES: .SUFFIXES: .cpp .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libutil++/tests/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign libutil++/tests/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-checkPROGRAMS: @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list cached_value_tests$(EXEEXT): $(cached_value_tests_OBJECTS) $(cached_value_tests_DEPENDENCIES) @rm -f cached_value_tests$(EXEEXT) $(CXXLINK) $(cached_value_tests_OBJECTS) $(cached_value_tests_LDADD) $(LIBS) comma_list_tests$(EXEEXT): $(comma_list_tests_OBJECTS) $(comma_list_tests_DEPENDENCIES) @rm -f comma_list_tests$(EXEEXT) $(CXXLINK) $(comma_list_tests_OBJECTS) $(comma_list_tests_LDADD) $(LIBS) file_manip_tests$(EXEEXT): $(file_manip_tests_OBJECTS) $(file_manip_tests_DEPENDENCIES) @rm -f file_manip_tests$(EXEEXT) $(CXXLINK) $(file_manip_tests_OBJECTS) $(file_manip_tests_LDADD) $(LIBS) glob_filter_tests$(EXEEXT): $(glob_filter_tests_OBJECTS) $(glob_filter_tests_DEPENDENCIES) @rm -f glob_filter_tests$(EXEEXT) $(CXXLINK) $(glob_filter_tests_OBJECTS) $(glob_filter_tests_LDADD) $(LIBS) path_filter_tests$(EXEEXT): $(path_filter_tests_OBJECTS) $(path_filter_tests_DEPENDENCIES) @rm -f path_filter_tests$(EXEEXT) $(CXXLINK) $(path_filter_tests_OBJECTS) $(path_filter_tests_LDADD) $(LIBS) string_filter_tests$(EXEEXT): $(string_filter_tests_OBJECTS) $(string_filter_tests_DEPENDENCIES) @rm -f string_filter_tests$(EXEEXT) $(CXXLINK) $(string_filter_tests_OBJECTS) $(string_filter_tests_LDADD) $(LIBS) string_manip_tests$(EXEEXT): $(string_manip_tests_OBJECTS) $(string_manip_tests_DEPENDENCIES) @rm -f string_manip_tests$(EXEEXT) $(CXXLINK) $(string_manip_tests_OBJECTS) $(string_manip_tests_LDADD) $(LIBS) utility_tests$(EXEEXT): $(utility_tests_OBJECTS) $(utility_tests_DEPENDENCIES) @rm -f utility_tests$(EXEEXT) $(CXXLINK) $(utility_tests_OBJECTS) $(utility_tests_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cached_value_tests.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/comma_list_tests.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file_manip_tests.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/glob_filter_tests.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/path_filter_tests.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/string_filter_tests.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/string_manip_tests.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utility_tests.Po@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags check-TESTS: $(TESTS) @failed=0; all=0; xfail=0; xpass=0; skip=0; \ srcdir=$(srcdir); export srcdir; \ list=' $(TESTS) '; \ $(am__tty_colors); \ if test -n "$$list"; then \ for tst in $$list; do \ if test -f ./$$tst; then dir=./; \ elif test -f $$tst; then dir=; \ else dir="$(srcdir)/"; fi; \ if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$tst[\ \ ]*) \ xpass=`expr $$xpass + 1`; \ failed=`expr $$failed + 1`; \ col=$$red; res=XPASS; \ ;; \ *) \ col=$$grn; res=PASS; \ ;; \ esac; \ elif test $$? -ne 77; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$tst[\ \ ]*) \ xfail=`expr $$xfail + 1`; \ col=$$lgn; res=XFAIL; \ ;; \ *) \ failed=`expr $$failed + 1`; \ col=$$red; res=FAIL; \ ;; \ esac; \ else \ skip=`expr $$skip + 1`; \ col=$$blu; res=SKIP; \ fi; \ echo "$${col}$$res$${std}: $$tst"; \ done; \ if test "$$all" -eq 1; then \ tests="test"; \ All=""; \ else \ tests="tests"; \ All="All "; \ fi; \ if test "$$failed" -eq 0; then \ if test "$$xfail" -eq 0; then \ banner="$$All$$all $$tests passed"; \ else \ if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \ banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \ fi; \ else \ if test "$$xpass" -eq 0; then \ banner="$$failed of $$all $$tests failed"; \ else \ if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \ banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \ fi; \ fi; \ dashes="$$banner"; \ skipped=""; \ if test "$$skip" -ne 0; then \ if test "$$skip" -eq 1; then \ skipped="($$skip test was not run)"; \ else \ skipped="($$skip tests were not run)"; \ fi; \ test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$skipped"; \ fi; \ report=""; \ if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ report="Please report to $(PACKAGE_BUGREPORT)"; \ test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$report"; \ fi; \ dashes=`echo "$$dashes" | sed s/./=/g`; \ if test "$$failed" -eq 0; then \ echo "$$grn$$dashes"; \ else \ echo "$$red$$dashes"; \ fi; \ echo "$$banner"; \ test -z "$$skipped" || echo "$$skipped"; \ test -z "$$report" || echo "$$report"; \ echo "$$dashes$$std"; \ test "$$failed" -eq 0; \ else :; fi distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) $(MAKE) $(AM_MAKEFLAGS) check-TESTS check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-checkPROGRAMS clean-generic clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: check-am install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \ clean-checkPROGRAMS clean-generic clean-libtool ctags \ distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/libutil++/tests/path_filter_tests.cpp0000664000076400007640000000341612175510131017466 00000000000000/** * @file path_filter_tests.cpp * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include #include #include "path_filter.h" using namespace std; #define check(filter, str, result) \ if (filter.match(str) != result) { \ cerr << "\"" << str << "\" matched with " #filter \ << " did not return " #result << endl; \ exit(EXIT_FAILURE); \ } int main() { path_filter f1("foo,*bar", "foobar"); check(f1, "foo/barfoobar", true); check(f1, "foo/bar", true); check(f1, "/foo/foobar/foo", false); check(f1, "fooobar1", false); check(f1, "foo1", false); check(f1, "foobar", false); check(f1, "bar1", false); path_filter f2("foo", ""); check(f2, "foo", true); check(f2, "foo1", false); check(f2, "foo/foo", true); path_filter f3("", "foo"); check(f3, "foo", false); check(f3, "foo1", true); check(f3, "foo/foo", false); path_filter f4("foo", "foo"); check(f4, "foo", false); check(f4, "foo1", false); check(f4, "foo/foo", false); path_filter f5("*foo*", "*bar*"); check(f5, "foo", true); check(f5, "bar", false); check(f5, "foobar", false); check(f5, "barfoo", false); check(f5, "foo/bar", false); path_filter f6(" foo,bar", "bar "); check(f6, "foo", false); check(f6, "foo ", false); check(f6, " foo", true); check(f6, "bar", true); check(f6, "bar ", false); check(f6, " bar", false); check(f6, "foo ", false); check(f6, "foo/ bar", false); path_filter f7(".", ""); check(f7, ".", true); // a bit surprising but right IMHO, our implementation use successive // dirname(input) to check vs the included path and // dirname("foo") == "." so all relative path input match a "." // included filter check(f7, "foo", true); return EXIT_SUCCESS; } oprofile-0.9.9/libutil++/tests/string_manip_tests.cpp0000664000076400007640000001707312175510131017663 00000000000000/** * @file string_manip_tests.cpp * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include #include #include #include #include #include "string_manip.h" using namespace std; template struct input_output { Input input; Output output; }; template static void check_result(char const * fct_name, Input const & input, Output const & output, Result const & result) { if (result != output) { cerr << fct_name << ": \n" << "for:\n\"" << input << "\"\n" << "expect:\n\"" << output << "\"\n" << "found:\n\"" << result << "\"\n"; exit(EXIT_FAILURE); } } static input_output expect_erase[] = { { "", "" }, { ";;;", "" }, { "ab;;;cd", "cd" }, { ";;;cd", "cd" }, { "ab;;;", "" }, { 0, 0 } }; static void erase_to_last_of_tests() { input_output const * cur; for (cur = expect_erase; cur->input; ++cur) { string result = erase_to_last_of(cur->input, ';'); check_result("erase_to_last_of()", cur->input, cur->output, result); } } static input_output > expect_split[] = { #define MAKE_PAIR(a, b) make_pair(string(a), string(b)) { "ab;cd", MAKE_PAIR("ab", "cd") }, { ";cd", MAKE_PAIR("", "cd") }, { "ab;", MAKE_PAIR("ab", "") }, { "b;d", MAKE_PAIR("b", "d") }, { ";d", MAKE_PAIR("", "d") }, { "a;", MAKE_PAIR("a", "") }, { ";", MAKE_PAIR("", "") }, { "", MAKE_PAIR("", "") }, { 0, MAKE_PAIR("", "") } #undef MAKE_PAIR }; static void split_tests() { input_output > const * cur; for (cur = expect_split; cur->input; ++cur) { string temp = cur->input; string result = split(temp, ';'); check_result("split()", cur->input, cur->output.first, temp); check_result("split()", cur->input, cur->output.second, result); } } static input_output > expect_is_prefix[] = { #define MAKE_PAIR(a, b) make_pair(string(a), b) { "abcd", MAKE_PAIR("abc", true) }, { "abcd", MAKE_PAIR("ac", false) }, { "babcd", MAKE_PAIR("abc", false) }, // these invoke undefined behavior from is_prefix, we keep them // for the record. // { "babcd", MAKE_PAIR("", false) }, // { "", MAKE_PAIR("", false) }, { 0, MAKE_PAIR("", true) } #undef MAKE_PAIR }; static void is_prefix_tests() { input_output > const * cur; for (cur = expect_is_prefix; cur->input; ++cur) { bool result = is_prefix(cur->input, cur->output.first); if (result != cur->output.second) { cerr << "is_prefix(" << cur->input << ", " << cur->output.first << ") " << "return " << result << endl; exit(EXIT_FAILURE); } } } static const size_t max_token = 8; static input_output expect_separate_token[] = { { "aa", { "aa" } }, { "a\\c", { "a\\c" } }, { "a\\\\c", { "a\\\\c" } }, { "a\\\\c\\", { "a\\\\c\\" } }, { "ab;cd;ef;gh", { "ab", "cd", "ef", "gh" } }, { "ab\\;cd", { "ab;cd" } }, { "a;a", { "a", "a" } }, { ";a", { "", "a" } }, { ";", { "", "" } }, { ";;", { "", "", "" } }, { 0, { 0, } } }; static void separate_token_tests() { input_output const * cur; for (cur = expect_separate_token; cur->input; ++cur) { vector result = separate_token(cur->input, ';'); if (result.size() > max_token) { cerr << "separate_token(): too many token\n" << "input:\n" << '"' << cur->input << "\"\n" << "output\n"; copy(result.begin(), result.end(), ostream_iterator(cerr, "\n")); exit(EXIT_FAILURE); } for (size_t i = 0; i < result.size(); ++i) { if (result[i] != cur->output[i]) { cerr << "separate_token():\n" << "input:\n" << cur->input << endl; cerr << "expect:\n"; for (size_t i = 0; i < max_token; ++i) { if (!cur->output[i]) break; cerr << cur->output[i] << endl; } cerr << "output:\n"; copy(result.begin(), result.end(), ostream_iterator(cerr, "\n")); exit(EXIT_FAILURE); } } } } static input_output expect_rtrim[] = { { "abc", "abc" }, { "abc ", "abc" }, { " abc ", " abc" }, { " abc \t \t", " abc" }, { " ", "" }, { "\t \t", "" }, { "", "" }, { 0, 0 } }; static void rtrim_tests() { input_output const * cur; for (cur = expect_rtrim; cur->input; ++cur) { string result = rtrim(cur->input); check_result("rtrim()", cur->input, cur->output, result); } } static input_output expect_ltrim[] = { { "abc", "abc" }, { "abc ", "abc " }, { " abc ", "abc " }, { "\t \tabc ", "abc " }, { " ", "" }, { "\t \t", "" }, { "", "" }, { 0, 0 } }; static void ltrim_tests() { input_output const * cur; for (cur = expect_ltrim; cur->input; ++cur) { string result = ltrim(cur->input); check_result("ltrim()", cur->input, cur->output, result); } } static input_output expect_trim[] = { { "abc", "abc" }, { "abc ", "abc" }, { " abc ", "abc" }, { "\t \tabc \t", "abc" }, { " ", "" }, { "\t \t", "" }, { "", "" }, { 0, 0 } }; static void trim_tests() { input_output const * cur; for (cur = expect_trim; cur->input; ++cur) { string result = trim(cur->input); check_result("trim()", cur->input, cur->output, result); } } static input_output expect_format_percent[] = { { 2.2, " 2.2000" }, { 0, " 0" }, { 100.00, "100.000" }, { 99.99999, "100.000" }, { 0.00000344, "3.4e-06" }, // FIXME, must be 3.e-124 but output is 3.4e-124 // { 0.34e-123, "3.e-124" }, { -1.0, 0 } }; static void format_percent_tests() { input_output const * cur; for (cur = expect_format_percent; cur->input != -1.0; ++cur) { string result = format_percent(cur->input, percent_int_width, percent_fract_width); check_result("format_percent()", cur->input, cur->output, result); } } static input_output expect_from_str_to_uint[] = { { 123, "123" }, { 33, "33" }, { 0, "0" }, { 0, 0 } }; static void tostr_tests() { input_output const * cur; for (cur = expect_from_str_to_uint; cur->output; ++cur) { string result = op_lexical_cast(cur->input); check_result("op_lexical_cast()", cur->input, cur->output, result); } } static void touint_tests() { // reversed input/output of the previous tests input_output const * cur; for (cur = expect_from_str_to_uint; cur->output; ++cur) { unsigned int result = op_lexical_cast(cur->output); check_result("op_lexical_cast()", cur->output, cur->input, result); } } static input_output expect_from_str_to_bool[] = { { "0", false }, { "1", true }, { 0, 0 } }; static void tobool_tests() { input_output const * cur; for (cur = expect_from_str_to_bool; cur->input; ++cur) { bool result = op_lexical_cast(cur->input); check_result("op_lexical_cast()", cur->input, cur->output, result); } } // FIXME: more op_lexical_cast<> tests int main() { erase_to_last_of_tests(); tostr_tests(); touint_tests(); tobool_tests(); split_tests(); is_prefix_tests(); separate_token_tests(); rtrim_tests(); ltrim_tests(); trim_tests(); format_percent_tests(); return EXIT_SUCCESS; } oprofile-0.9.9/libutil++/tests/utility_tests.cpp0000664000076400007640000000347612175510131016676 00000000000000/** * @file utility_tests.cpp * tests utility.h and op_exception.h * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include #include #include #include "utility.h" #include "op_exception.h" using namespace std; static int nb_new; static int nb_new_array; void* operator new(size_t size) throw(bad_alloc) { nb_new++; return malloc(size); } void* operator new[](size_t size) throw(bad_alloc) { nb_new_array++; return malloc(size); } void operator delete(void * p) throw() { nb_new--; if (p) free(p); } void operator delete[](void * p) throw() { nb_new_array--; if (p) free(p); } void check_alloc() { if (nb_new) { cerr << "new(size_t) leak\n"; exit(EXIT_FAILURE); } if (nb_new_array) { cerr << "new[](size_t) leak\n"; exit(EXIT_FAILURE); } } struct A {}; template void throw_tests() { scoped_ptr a(new A); try { scoped_ptr a(new A); throw Throw(""); } catch (Catch const &) { } } template void throw_tests(bool) { scoped_array b(new A[10]); try { scoped_array a(new A[10]); throw Throw(""); } catch (Catch const &) { } } void tests_new() { throw_tests(); throw_tests(); throw_tests(); throw_tests(); throw_tests(true); throw_tests(true); throw_tests(true); throw_tests(true); } int main() { try { tests_new(); check_alloc(); } catch (...) { cerr << "unknown exception\n"; return EXIT_FAILURE; } return EXIT_SUCCESS; } oprofile-0.9.9/libutil++/tests/Makefile.am0000664000076400007640000000230012175510132015263 00000000000000 REALPATH= readlink -f SRCDIR := $(shell $(REALPATH) $(topdir)/libutil++/tests/ ) AM_CPPFLAGS = \ -I ${top_srcdir}/libutil++ -D SRCDIR="\"$(SRCDIR)/\"" @OP_CPPFLAGS@ COMMON_LIBS = ../libutil++.a ../../libutil/libutil.a LIBS = @LIBERTY_LIBS@ AM_CXXFLAGS = @OP_CXXFLAGS@ check_PROGRAMS = \ string_manip_tests \ string_filter_tests \ comma_list_tests \ file_manip_tests \ glob_filter_tests \ path_filter_tests \ cached_value_tests \ utility_tests string_manip_tests_SOURCES = string_manip_tests.cpp string_manip_tests_LDADD = ${COMMON_LIBS} string_filter_tests_SOURCES = string_filter_tests.cpp string_filter_tests_LDADD = ${COMMON_LIBS} glob_filter_tests_SOURCES = glob_filter_tests.cpp glob_filter_tests_LDADD = ${COMMON_LIBS} path_filter_tests_SOURCES = path_filter_tests.cpp path_filter_tests_LDADD = ${COMMON_LIBS} comma_list_tests_SOURCES = comma_list_tests.cpp comma_list_tests_LDADD = ${COMMON_LIBS} file_manip_tests_SOURCES = file_manip_tests.cpp file_manip_tests_LDADD = ${COMMON_LIBS} cached_value_tests_SOURCES = cached_value_tests.cpp cached_value_tests_LDADD = ${COMMON_LIBS} utility_tests_SOURCES = utility_tests.cpp utility_tests_LDADD = ${COMMON_LIBS} TESTS = ${check_PROGRAMS} oprofile-0.9.9/libutil++/tests/string_filter_tests.cpp0000664000076400007640000000320212175510132020032 00000000000000/** * @file string_filter_tests.cpp * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include #include #include "string_filter.h" using namespace std; #define check(filter, str, result) \ if (filter.match(str) != result) { \ cerr << "\"" << str << "\" matched with " #filter \ << " did not return " #result << endl; \ exit(EXIT_FAILURE); \ } int main() { string_filter f1; check(f1, "", true); check(f1, "ok", true); string_filter f2("ok", ""); check(f2, "ok", true); check(f2, "no", false); string_filter f3("", "no"); check(f3, "ok", true); check(f3, "no", false); string_filter f4("ok,ok2,", ""); check(f4, "ok", true); check(f4, "ok2", true); check(f4, "no", false); string_filter f5("ok,ok2", "no,no2"); check(f5, "ok", true); check(f5, "ok2", true); check(f5, "no", false); check(f5, "no2", false); vector v1; vector v2; string_filter f6(v1, v2); check(f6, "", true); check(f6, "ok", true); v1.push_back("ok"); v1.push_back("ok2"); string_filter f7(v1, v2); check(f7, "ok", true); check(f7, "ok2", true); check(f7, "no", false); v1.clear(); v2.push_back("no"); v2.push_back("no2"); string_filter f8(v1, v2); check(f8, "ok", true); check(f8, "no", false); check(f8, "no", false); v1.push_back("ok"); v1.push_back("ok2"); string_filter f9(v1, v2); check(f9, "ok", true); check(f9, "no2", false); string_filter f10(" foo ", ""); check(f10, " foo ", true); check(f10, " foo", false); check(f10, "foo ", false); check(f10, "foo", false); return EXIT_SUCCESS; } oprofile-0.9.9/libutil++/utility.h0000664000076400007640000000401012175510132013741 00000000000000/** * @file utility.h * General purpose C++ utility * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #ifndef UTILITY_H #define UTILITY_H #include /** noncopyable : object of class derived from this class can't be copied * and isn't copy-constructible */ class noncopyable { protected: noncopyable() {} ~noncopyable() {} private: noncopyable(noncopyable const &); noncopyable const & operator=(noncopyable const &); }; template class scoped_ptr { public: explicit scoped_ptr(T * p = 0) : p_(p) {} ~scoped_ptr() { delete p_; } void reset(T * p = 0) { if (p == p_) return; delete p_; p_ = p; } T & operator*() const { return *p_; } T * operator->() const { return p_; } T * get() const { return p_; } void swap(scoped_ptr & sp) { T * tmp = sp.p_; sp.p_ = p_; p_ = tmp; } private: scoped_ptr & operator=(scoped_ptr const &); scoped_ptr(scoped_ptr const &); T * p_; }; template class scoped_array { public: explicit scoped_array(T * p = 0) : p_(p) {} ~scoped_array() { delete [] p_; } void reset(T * p = 0) { if (p == p_) return; delete [] p_; p_ = p; } T & operator[](std::ptrdiff_t i) const { return p_[i]; } T * get() const { return p_; } void swap(scoped_array & sp) { T * tmp = sp.p_; sp.p_ = p_; p_ = tmp; } private: scoped_array & operator=(scoped_array const &); scoped_array(scoped_array const &); T * p_; }; /** * @param count * @param total * * return total == 0 ? 1.0 : (count / total); */ inline double op_ratio(double count, double total) { return total == 0 ? 0.0 : (count / total); } // Part copyright: // (C) Copyright boost.org 1999. Permission to copy, use, modify, sell // and distribute this software is granted provided this copyright // notice appears in all copies. This software is provided "as is" without // express or implied warranty, and with no claim as to its suitability for // any purpose. #endif /* !UTILITY_H */ oprofile-0.9.9/libutil++/path_filter.cpp0000664000076400007640000000313512175510132015101 00000000000000/** * @file path_filter.cpp * Filter paths based on globbed exclude/include list * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #include #include #include "path_filter.h" #include "string_manip.h" #include "file_manip.h" using namespace std; bool path_filter::match(string const & str) const { vector::const_iterator cit; // first, if any component of the dir is listed in exclude -> no string comp = op_dirname(str); while (!comp.empty() && comp != "/") { cit = find_if(exclude.begin(), exclude.end(), fnmatcher(op_basename(comp))); if (cit != exclude.end()) return false; // dirname("foo") == "foo" if (comp == op_dirname(comp)) break; comp = op_dirname(comp); } string const base = op_basename(str); // now if the file name is specifically excluded -> no cit = find_if(exclude.begin(), exclude.end(), fnmatcher(base)); if (cit != exclude.end()) return false; // now if the file name is specifically included -> yes cit = find_if(include.begin(), include.end(), fnmatcher(base)); if (cit != include.end()) return true; // now if any component of the path is included -> yes // note that the include pattern defaults to '*' string compi = op_dirname(str); while (!compi.empty() && compi != "/") { cit = find_if(include.begin(), include.end(), fnmatcher(op_basename(compi))); if (cit != include.end()) return true; // dirname("foo") == "foo" if (compi == op_dirname(compi)) break; compi = op_dirname(compi); } return include.empty(); } oprofile-0.9.9/libutil++/bfd_support.cpp0000664000076400007640000005600112175510132015127 00000000000000/** * @file bfd_support.cpp * BFD muck we have to deal with. * * @remark Copyright 2005 OProfile authors * @remark Read the file COPYING * * @author John Levon */ #include "bfd_support.h" #include "op_bfd.h" #include "op_fileio.h" #include "op_config.h" #include "string_manip.h" #include "file_manip.h" #include "cverb.h" #include "locate_images.h" #include "op_libiberty.h" #include "op_exception.h" #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; extern verbose vbfd; namespace { #ifndef NT_GNU_BUILD_ID #define NT_GNU_BUILD_ID 3 #endif static size_t build_id_size; void check_format(string const & file, bfd ** ibfd) { if (!bfd_check_format_matches(*ibfd, bfd_object, NULL)) { cverb << vbfd << "BFD format failure for " << file << endl; bfd_close(*ibfd); *ibfd = NULL; } } bool separate_debug_file_exists(string & name, unsigned long const crc, extra_images const & extra) { unsigned long file_crc = 0; // The size of 2 * 1024 elements for the buffer is arbitrary. char buffer[2 * 1024]; image_error img_ok; string const image_path = extra.find_image_path(name, img_ok, true); if (img_ok != image_ok) return false; name = image_path; ifstream file(image_path.c_str()); if (!file) return false; cverb << vbfd << "found " << name; while (file) { file.read(buffer, sizeof(buffer)); file_crc = calc_crc32(file_crc, reinterpret_cast(&buffer[0]), file.gcount()); } ostringstream message; message << " with crc32 = " << hex << file_crc << endl; cverb << vbfd << message.str(); return crc == file_crc; } static bool find_debuginfo_file_by_buildid(unsigned char * buildid, string & debug_filename) { size_t build_id_fname_size = strlen (DEBUGDIR) + (sizeof "/.build-id/" - 1) + 1 + (2 * build_id_size) + (sizeof ".debug" - 1) + 1; char * buildid_symlink = (char *) xmalloc(build_id_fname_size); char * sptr = buildid_symlink; unsigned char * bptr = buildid; bool retval = false; size_t build_id_segment_len = strlen("/.build-id/"); memcpy(sptr, DEBUGDIR, strlen(DEBUGDIR)); sptr += strlen(DEBUGDIR); memcpy(sptr, "/.build-id/", build_id_segment_len); sptr += build_id_segment_len; sptr += sprintf(sptr, "%02x", (unsigned) *bptr++); *sptr++ = '/'; for (int i = build_id_size - 1; i > 0; i--) sptr += sprintf(sptr, "%02x", (unsigned) *bptr++); strcpy(sptr, ".debug"); if (access (buildid_symlink, F_OK) == 0) { debug_filename = op_realpath (buildid_symlink); if (debug_filename.compare(buildid_symlink)) { retval = true; cverb << vbfd << "Using build-id symlink" << endl; } } free(buildid_symlink); if (!retval) cverb << vbfd << "build-id file not found; falling back to CRC method." << endl; return retval; } static bool get_build_id(bfd * ibfd, unsigned char * build_id) { Elf32_Nhdr op_note_hdr; asection * sect; char * ptr; bool retval = false; cverb << vbfd << "fetching build-id from runtime binary ..."; if (!(sect = bfd_get_section_by_name(ibfd, ".note.gnu.build-id"))) { if (!(sect = bfd_get_section_by_name(ibfd, ".notes"))) { cverb << vbfd << " No build-id section found" << endl; return false; } } bfd_size_type buildid_sect_size = bfd_section_size(ibfd, sect); char * contents = (char *) xmalloc(buildid_sect_size); errno = 0; if (!bfd_get_section_contents(ibfd, sect, reinterpret_cast(contents), static_cast(0), buildid_sect_size)) { string msg = "bfd_get_section_contents:get_build_id"; if (errno) { msg += ": "; msg += strerror(errno); } throw op_fatal_error(msg); } ptr = contents; while (ptr < (contents + buildid_sect_size)) { op_note_hdr.n_namesz = bfd_get_32(ibfd, reinterpret_cast(contents)); op_note_hdr.n_descsz = bfd_get_32(ibfd, reinterpret_cast(contents + 4)); op_note_hdr.n_type = bfd_get_32(ibfd, reinterpret_cast(contents + 8)); ptr += sizeof(op_note_hdr); if ((op_note_hdr.n_type == NT_GNU_BUILD_ID) && (op_note_hdr.n_namesz == sizeof("GNU")) && (strcmp("GNU", ptr ) == 0)) { build_id_size = op_note_hdr.n_descsz; memcpy(build_id, ptr + op_note_hdr.n_namesz, build_id_size); retval = true; cverb << vbfd << "Found build-id" << endl; break; } ptr += op_note_hdr.n_namesz + op_note_hdr.n_descsz; } if (!retval) cverb << vbfd << " No build-id found" << endl; free(contents); return retval; } bool get_debug_link_info(bfd * ibfd, string & filename, unsigned long & crc32) { asection * sect; cverb << vbfd << "fetching .gnu_debuglink section" << endl; sect = bfd_get_section_by_name(ibfd, ".gnu_debuglink"); if (sect == NULL) return false; bfd_size_type debuglink_size = bfd_section_size(ibfd, sect); char * contents = (char *) xmalloc(debuglink_size); cverb << vbfd << ".gnu_debuglink section has size " << debuglink_size << endl; if (!bfd_get_section_contents(ibfd, sect, reinterpret_cast(contents), static_cast(0), debuglink_size)) { string msg = "bfd_get_section_contents:get_debug"; if (errno) { msg += ": "; msg += strerror(errno); } throw op_fatal_error(msg); } /* CRC value is stored after the filename, aligned up to 4 bytes. */ size_t filename_len = strlen(contents); size_t crc_offset = filename_len + 1; crc_offset = (crc_offset + 3) & ~3; crc32 = bfd_get_32(ibfd, reinterpret_cast(contents + crc_offset)); filename = string(contents, filename_len); cverb << vbfd << ".gnu_debuglink filename is " << filename << endl; free(contents); return true; } /** * With Objective C, we'll get strings like: * * _i_GSUnicodeString__rangeOfCharacterSetFromSet_options_range * * for the symbol name, and: * -[GSUnicodeString rangeOfCharacterFromSet:options:range:] * * for the function name, so we have to do some looser matching * than for other languages (unfortunately, it's not possible * to demangle Objective C symbols). */ bool objc_match(string const & sym, string const & method) { if (method.length() < 3) return false; string mangled; if (is_prefix(method, "-[")) { mangled += "_i_"; } else if (is_prefix(method, "+[")) { mangled += "_c_"; } else { return false; } string::const_iterator it = method.begin() + 2; string::const_iterator const end = method.end(); bool found_paren = false; for (; it != end; ++it) { switch (*it) { case ' ': mangled += '_'; if (!found_paren) mangled += '_'; break; case ':': mangled += '_'; break; case ')': case ']': break; case '(': found_paren = true; mangled += '_'; break; default: mangled += *it; } } return sym == mangled; } /* * With a binary image where some objects are missing debug * info, we can end up attributing to a completely different * function (#484660): bfd_nearest_line() will happily move from one * symbol to the nearest one it can find with debug information. * To mitigate this problem, we check that the symbol name * matches the returned function name. * * However, this check fails in some cases it shouldn't: * Objective C, and C++ static inline functions (as discussed in * GCC bugzilla #11774). So, we have a looser check that * accepts merely a substring, plus some magic for Objective C. * * If even the loose check fails, then we give up. */ bool is_correct_function(string const & function, string const & name) { if (name == function) return true; if (objc_match(name, function)) return true; // warn the user if we had to use the loose check if (name.find(function) != string::npos) { static bool warned = false; if (!warned) { cerr << "warning: some functions compiled without " << "debug information may have incorrect source " << "line attributions" << endl; warned = true; } cverb << vbfd << "is_correct_function(" << function << ", " << name << ") fuzzy match." << endl; return true; } return false; } /* * binutils 2.12 and below have a small bug where functions without a * debug entry at the prologue start do not give a useful line number * from bfd_find_nearest_line(). This can happen with certain gcc * versions such as 2.95. * * We work around this problem by scanning forward for a vma with valid * linenr info, if we can't get a valid line number. Problem uncovered * by Norbert Kaufmann. The work-around decreases, on the tincas * application, the number of failure to retrieve linenr info from 835 * to 173. Most of the remaining are c++ inline functions mainly from * the STL library. Fix #529622 */ void fixup_linenr(bfd * abfd, asection * section, asymbol ** syms, string const & name, bfd_vma pc, char const ** filename, unsigned int * line) { char const * cfilename; char const * function; unsigned int linenr; // FIXME: looking at debug info for all gcc version shows than // the same problems can -perhaps- occur for epilog code: find a // samples files with samples in epilog and try opreport -l -g // on it, check it also with opannotate. // first restrict the search on a sensible range of vma, 16 is // an intuitive value based on epilog code look size_t max_search = 16; size_t section_size = bfd_section_size(abfd, section); if (pc + max_search > section_size) max_search = section_size - pc; for (size_t i = 1; i < max_search; ++i) { bool ret = bfd_find_nearest_line(abfd, section, syms, pc + i, &cfilename, &function, &linenr); if (ret && cfilename && function && linenr != 0 && is_correct_function(function, name)) { *filename = cfilename; *line = linenr; return; } } } } // namespace anon bfd * open_bfd(string const & file) { /* bfd keeps its own reference to the filename char *, * so it must have a lifetime longer than the ibfd */ bfd * ibfd = bfd_openr(file.c_str(), NULL); if (!ibfd) { cverb << vbfd << "bfd_openr failed for " << file << endl; return NULL; } check_format(file, &ibfd); return ibfd; } bfd * fdopen_bfd(string const & file, int fd) { /* bfd keeps its own reference to the filename char *, * so it must have a lifetime longer than the ibfd */ bfd * ibfd = bfd_fdopenr(file.c_str(), NULL, fd); if (!ibfd) { cverb << vbfd << "bfd_openr failed for " << file << endl; return NULL; } check_format(file, &ibfd); return ibfd; } bool find_separate_debug_file(bfd * ibfd, string const & filepath_in, string & debug_filename, extra_images const & extra) { string filepath(filepath_in); string basename; unsigned long crc32 = 0; // The readelf program uses a char [64], so that's what we'll use. // To my knowledge, the build-id should not be bigger than 20 chars. unsigned char buildid[64]; if (get_build_id(ibfd, buildid) && find_debuginfo_file_by_buildid(buildid, debug_filename)) return true; if (!get_debug_link_info(ibfd, basename, crc32)) return false; /* Use old method of finding debuginfo file by comparing runtime binary's * CRC with the CRC we calculate from the debuginfo file's contents. * NOTE: This method breaks on systems where "MiniDebugInfo" is used * since the CRC stored in the runtime binary won't match the compressed * debuginfo file's CRC. But in practice, we shouldn't ever run into such * a scenario since the build-id should always be available. */ // Work out the image file's directory prefix string filedir = op_dirname(filepath); // Make sure it starts with / if (filedir.size() > 0 && filedir.at(filedir.size() - 1) != '/') filedir += '/'; string first_try(filedir + ".debug/" + basename); string second_try(DEBUGDIR + filedir + basename); string third_try(filedir + basename); ostringstream message; message << "looking for debugging file " << basename << " with crc32 = " << hex << crc32 << endl; cverb << vbfd << message.str(); if (separate_debug_file_exists(first_try, crc32, extra)) debug_filename = first_try; else if (separate_debug_file_exists(second_try, crc32, extra)) debug_filename = second_try; else if (separate_debug_file_exists(third_try, crc32, extra)) debug_filename = third_try; else return false; return true; } bool interesting_symbol(asymbol * sym) { // #717720 some binutils are miscompiled by gcc 2.95, one of the // typical symptom can be catched here. if (!sym->section) { ostringstream os; os << "Your version of binutils seems to have a bug.\n" << "Read http://oprofile.sf.net/faq/#binutilsbug\n"; throw op_runtime_error(os.str()); } if (!(sym->section->flags & SEC_CODE)) return false; // returning true for fix up in op_bfd_symbol() if (!sym->name || sym->name[0] == '\0') return true; /* ARM assembler internal mapping symbols aren't interesting */ if ((strcmp("$a", sym->name) == 0) || (strcmp("$t", sym->name) == 0) || (strcmp("$d", sym->name) == 0)) return false; // C++ exception stuff if (sym->name[0] == '.' && sym->name[1] == 'L') return false; /* This case cannot be moved to boring_symbol(), * because that's only used for duplicate VMAs, * and sometimes this symbol appears at an address * different from all other symbols. */ if (!strcmp("gcc2_compiled.", sym->name)) return false; /* Commit ab45a0cc5d1cf522c1aef8f22ed512a9aae0dc1c removed a check for * the SEC_LOAD bit. See the commit message for details why this * was removed. */ if (sym->flags & BSF_SECTION_SYM) return false; return true; } bool boring_symbol(op_bfd_symbol const & first, op_bfd_symbol const & second) { if (first.name() == "Letext") return true; else if (second.name() == "Letext") return false; if (first.name().substr(0, 2) == "??") return true; else if (second.name().substr(0, 2) == "??") return false; if (first.hidden() && !second.hidden()) return true; else if (!first.hidden() && second.hidden()) return false; if (first.name()[0] == '_' && second.name()[0] != '_') return true; else if (first.name()[0] != '_' && second.name()[0] == '_') return false; if (first.weak() && !second.weak()) return true; else if (!first.weak() && second.weak()) return false; return false; } bool bfd_info::has_debug_info() const { if (!valid()) return false; for (asection const * sect = abfd->sections; sect; sect = sect->next) { if (sect->flags & SEC_DEBUGGING) return true; } return false; } bfd_info::~bfd_info() { free(synth_syms); close(); } void bfd_info::close() { if (abfd) bfd_close(abfd); } #if SYNTHESIZE_SYMBOLS /** * This function is intended solely for processing ppc64 debuginfo files. * On ppc64 platforms where there is no symbol information in the image bfd, * the debuginfo syms need to be mapped back to the sections of the image bfd * when calling bfd_get_synthetic_symtab() to gather complete symbol information. * That is the purpose of the translate_debuginfo_syms() function. * * This function is only called when processing symbols retrieved from a * debuginfo file that is separate from the actual runtime binary image. * Separate debuginfo files may be needed in two different cases: * 1) the real image is completely stripped, where there is no symbol information at all * 2) the real image has debuginfo stripped, and the user is requesting "-g" * (src file/line num info) */ void bfd_info::translate_debuginfo_syms(asymbol ** dbg_syms, long nr_dbg_syms) { unsigned int img_sect_cnt = 0; bfd_vma vma_adj; bfd * image_bfd = image_bfd_info->abfd; multimap image_sections; for (bfd_section * sect = image_bfd->sections; sect && img_sect_cnt < image_bfd->section_count; sect = sect->next) { // A comment section marks the end of the needed sections if (strstr(sect->name, ".comment") == sect->name) break; image_sections.insert(pair(sect->name, sect)); img_sect_cnt++; } asymbol * sym = dbg_syms[0]; string prev_sect_name = ""; bfd_section * matched_section = NULL; vma_adj = image_bfd->start_address - abfd->start_address; for (int i = 0; i < nr_dbg_syms; sym = dbg_syms[++i]) { bool section_switch; if (strcmp(prev_sect_name.c_str(), sym->section->name)) { section_switch = true; prev_sect_name = sym->section->name; } else { section_switch = false; } if (sym->section->owner && sym->section->owner == abfd) { if (section_switch ) { matched_section = NULL; multimap::iterator it; pair::iterator, multimap::iterator> range; range = image_sections.equal_range(sym->section->name); for (it = range.first; it != range.second; it++) { if ((*it).second->vma == sym->section->vma + vma_adj) { matched_section = (*it).second; if (vma_adj) section_vma_maps[(*it).second->vma] = sym->section->vma; break; } } } if (matched_section) { sym->section = matched_section; sym->the_bfd = image_bfd; } } } } bool bfd_info::get_synth_symbols() { extern const bfd_target bfd_elf64_powerpc_vec; extern const bfd_target bfd_elf64_powerpcle_vec; bool is_elf64_powerpc_target = (abfd->xvec == &bfd_elf64_powerpc_vec) || (abfd->xvec == &bfd_elf64_powerpcle_vec); if (!is_elf64_powerpc_target) return false; void * buf; uint tmp; long nr_mini_syms = bfd_read_minisymbols(abfd, 0, &buf, &tmp); if (nr_mini_syms < 1) return false; asymbol ** mini_syms = (asymbol **)buf; buf = NULL; bfd * synth_bfd; /* For ppc64, a debuginfo file by itself does not hold enough symbol * information for us to properly attribute samples to symbols. If * the image file's bfd has no symbols (as in a super-stripped library), * then we need to do the extra processing in translate_debuginfo_syms. */ if (image_bfd_info && image_bfd_info->nr_syms == 0) { translate_debuginfo_syms(mini_syms, nr_mini_syms); synth_bfd = image_bfd_info->abfd; } else synth_bfd = abfd; long nr_synth_syms = bfd_get_synthetic_symtab(synth_bfd, nr_mini_syms, mini_syms, 0, NULL, &synth_syms); if (nr_synth_syms < 0) { free(mini_syms); return false; } /* If we called translate_debuginfo_syms() above, then we had to map * the debuginfo symbols' sections to the sections of the runtime binary. * We had to twist ourselves in this knot due to the peculiar requirements * of bfd_get_synthetic_symtab(). While doing this mapping, we cached * the original section VMAs because we need those original values in * order to properly match up sample offsets with debug data. So now that * we're done with bfd_get_synthetic_symtab, we can restore these section * VMAs. */ if (section_vma_maps.size()) { unsigned int sect_count = 0; for (bfd_section * sect = synth_bfd->sections; sect && sect_count < synth_bfd->section_count; sect = sect->next) { sect->vma = section_vma_maps[sect->vma]; sect_count++; } } cverb << vbfd << "mini_syms: " << dec << nr_mini_syms << hex << endl; cverb << vbfd << "synth_syms: " << dec << nr_synth_syms << hex << endl; nr_syms = nr_mini_syms + nr_synth_syms; syms.reset(new asymbol *[nr_syms + 1]); for (size_t i = 0; i < (size_t)nr_mini_syms; ++i) syms[i] = mini_syms[i]; for (size_t i = 0; i < (size_t)nr_synth_syms; ++i) syms[nr_mini_syms + i] = synth_syms + i; free(mini_syms); // bfd_canonicalize_symtab does this, so shall we syms[nr_syms] = NULL; return true; } #else bool bfd_info::get_synth_symbols() { return false; } #endif /* SYNTHESIZE_SYMBOLS */ void bfd_info::get_symbols() { if (!abfd) return; cverb << vbfd << "bfd_info::get_symbols() for " << bfd_get_filename(abfd) << endl; if (get_synth_symbols()) return; if (bfd_get_file_flags(abfd) & HAS_SYMS) nr_syms = bfd_get_symtab_upper_bound(abfd); ostringstream message; message << "bfd_get_symtab_upper_bound: " << dec << nr_syms << hex << endl; cverb << vbfd << message.str(); nr_syms /= sizeof(asymbol *); if (nr_syms < 1) { if (!image_bfd_info) return; syms.reset(); cverb << vbfd << "Debuginfo has debug data only" << endl; } else { syms.reset(new asymbol *[nr_syms]); nr_syms = bfd_canonicalize_symtab(abfd, syms.get()); ostringstream message; message << "bfd_canonicalize_symtab: " << dec << nr_syms << hex << endl; cverb << vbfd << message.str(); } } linenr_info const find_nearest_line(bfd_info const & b, op_bfd_symbol const & sym, bfd_vma offset, bool anon_obj) { char const * function = ""; char const * cfilename = ""; unsigned int linenr = 0; linenr_info info; bfd * abfd; asymbol ** syms; asection * section = NULL; asymbol * empty_syms[1]; bfd_vma pc; bool ret; if (!b.valid()) goto fail; // take care about artificial symbol if (!sym.symbol()) goto fail; abfd = b.abfd; syms = b.syms.get(); if (!syms) { // If this bfd_info object has no syms, that implies that we're // using a debuginfo bfd_info object that has only debug data. // This also implies that the passed sym is from the runtime binary, // and thus it's section is also from the runtime binary. And // since section VMA can be different for a runtime binary (prelinked) // and its associated debuginfo, we need to obtain the debuginfo // section to pass to the libbfd functions. asection * sect_candidate; bfd_vma vma_adj = b.get_image_bfd_info()->abfd->start_address - abfd->start_address; if (vma_adj == 0) section = sym.symbol()->section; for (sect_candidate = abfd->sections; (sect_candidate != NULL) && (section == NULL); sect_candidate = sect_candidate->next) { if (sect_candidate->vma + vma_adj == sym.symbol()->section->vma) { section = sect_candidate; } } if (section == NULL) { cerr << "ERROR: Unable to find section for symbol " << sym.symbol()->name << endl; goto fail; } syms = empty_syms; syms[0] = NULL; } else { section = sym.symbol()->section; } if (anon_obj) pc = offset - sym.symbol()->section->vma; else pc = (sym.value() + offset) - sym.filepos(); if ((bfd_get_section_flags(abfd, section) & SEC_ALLOC) == 0) goto fail; if (pc >= bfd_section_size(abfd, section)) goto fail; ret = bfd_find_nearest_line(abfd, section, syms, pc, &cfilename, &function, &linenr); if (!ret || !cfilename || !function) goto fail; /* * is_correct_function does not handle the case of static inlines, * but if the linenr is non-zero in the inline case, it is the correct * line number. */ if (linenr == 0 && !is_correct_function(function, sym.name())) goto fail; if (linenr == 0) { fixup_linenr(abfd, section, syms, sym.name(), pc, &cfilename, &linenr); } info.found = true; info.filename = cfilename; info.line = linenr; return info; fail: info.found = false; // some stl lacks string::clear() info.filename.erase(info.filename.begin(), info.filename.end()); info.line = 0; return info; } oprofile-0.9.9/libutil++/file_manip.cpp0000664000076400007640000000700312175510132014701 00000000000000/** * @file file_manip.cpp * Useful file management helpers * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #include #include #include #include #include #include #include #include #include #include #include #include "op_file.h" #include "file_manip.h" #include "string_manip.h" using namespace std; bool copy_file(string const & source, string const & destination) { struct stat buf; if (stat(source.c_str(), &buf)) return false; if (!op_file_readable(source)) return false; ifstream in(source.c_str()); if (!in) return false; mode_t mode = buf.st_mode & ~S_IFMT; if (!(mode & S_IWUSR)) mode |= S_IWUSR; int fd = open(destination.c_str(), O_RDWR|O_CREAT, mode); if (fd < 0) return false; close(fd); // ignore error here: a simple user can copy a root.root 744 file // but can't chown the copied file to root. // a scope to ensure out is closed before changing is mtime/atime { ofstream out(destination.c_str(), ios::trunc); if (!out) return false; out << in.rdbuf(); } struct utimbuf utim; utim.actime = buf.st_atime; utim.modtime = buf.st_mtime; if (utime(destination.c_str(), &utim)) return false; return true; } bool is_directory(string const & dirname) { struct stat st; return !stat(dirname.c_str(), &st) && S_ISDIR(st.st_mode); } bool is_files_identical(string const & file1, string const & file2) { struct stat st1; struct stat st2; if (stat(file1.c_str(), &st1) == 0 && stat(file2.c_str(), &st2) == 0) { if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino) return true; } return false; } string const op_realpath(string const & name) { static char tmp[PATH_MAX]; if (!realpath(name.c_str(), tmp)) return name; return string(tmp); } bool op_file_readable(string const & file) { return op_file_readable(file.c_str()); } static void get_pathname(const char * pathname, void * name_list) { list * file_list = (list *)name_list; file_list->push_back(pathname); } bool create_file_list(list & file_list, string const & base_dir, string const & filter, bool recursive) { return !get_matching_pathnames(&file_list, get_pathname, base_dir.c_str(), filter.c_str(), recursive ? MATCH_ANY_ENTRY_RECURSION : NO_RECURSION) ? true : false; } /** * @param path_name the path where we remove trailing '/' * * erase all trailing '/' in path_name except if the last '/' is at pos 0 */ static string erase_trailing_path_separator(string const & path_name) { string result(path_name); while (result.length() > 1) { if (result[result.length() - 1] != '/') break; result.erase(result.length() - 1, 1); } return result; } string op_dirname(string const & file_name) { string result = erase_trailing_path_separator(file_name); if (result.find_first_of('/') == string::npos) return "."; // catch result == "/" if (result.length() == 1) return result; size_t pos = result.find_last_of('/'); // "/usr" must return "/" if (pos == 0) pos = 1; result.erase(pos, result.length() - pos); // "////usr" must return "/" return erase_trailing_path_separator(result); } string op_basename(string const & path_name) { string result = erase_trailing_path_separator(path_name); // catch result == "/" if (result.length() == 1) return result; return erase_to_last_of(result, '/'); } oprofile-0.9.9/libutil++/cverb.cpp0000664000076400007640000000504612175510132013704 00000000000000/** * @file cverb.cpp * verbose output stream * * @remark Copyright 2002, 2004 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #include #include #include #include #include #include #include "cverb.h" using namespace std; cverb_object cverb; verbose vlevel1("level1"); verbose vdebug("debug"); verbose vstats("stats"); verbose vsfile("sfile"); verbose varcs("arcs"); verbose vxml("xml"); namespace { // The right way is to use: ofstream fout; but cverb(fout.rdbuf()) receive // a null pointer and stl shipped with 2.91 segfault. ofstream fout("/dev/null"); ostream null_stream(fout.rdbuf()); // Used to setup the bad bit in our null stream so output will fail earlier // and overhead will be smaller. struct setup_stream { setup_stream(); }; setup_stream::setup_stream() { null_stream.clear(ios::badbit); } setup_stream setup; // We use a multimap because user can create multiple verbose object with // the same name, these are synonymous, setting up one to true will setup // all with the same name to true. typedef multimap recorder_t; // The recorder is lazilly created by verbose object ctor static recorder_t * object_map; } // anonymous namespace verbose::verbose(char const * name) : set(false) { // all params is treated a part, there is no need to create a // verbose all("all"); it's meaningless. "all" verbose named object is // reserved. if (strcmp(name, "all") == 0) return; if (!object_map) object_map = new recorder_t; object_map->insert(recorder_t::value_type(name, this)); } verbose verbose::operator|(verbose const & rhs) { verbose result(*this); result.set = result.set || rhs.set; return result; } verbose verbose::operator&(verbose const & rhs) { verbose result(*this); result.set = result.set && rhs.set; return result; } bool verbose::setup(string const & name) { if (name == "all") { null_stream.rdbuf(cout.rdbuf()); null_stream.clear(); return true; } if (!object_map) object_map = new recorder_t; pair p_it = object_map->equal_range(name); if (p_it.first == p_it.second) return false; for (; p_it.first != p_it.second; ++p_it.first) p_it.first->second->set = true; return true; } bool verbose::setup(vector const & names) { for (size_t i = 0; i < names.size(); ++i) if (!setup(names[i])) return false; return true; } ostream& operator<<(cverb_object &, verbose const & v) { return v.set ? cout : null_stream; } oprofile-0.9.9/libutil++/cached_value.h0000664000076400007640000000157612175510132014657 00000000000000/** * @file cached_value.h * Hold a cached value. * * @remark Copyright 2005 OProfile authors * @remark Read the file COPYING * * @author John Levon */ #ifndef CACHED_VALUE_H #define CACHED_VALUE_H #include "op_exception.h" /** * Hold a single value, returning a cached value if there is one. */ template class cached_value { public: cached_value() : set(false) { value = T(); } typedef T value_type; /// return the cached value value_type const get() const { if (!set) throw op_fatal_error("cached value not set"); return value; } /// return true if a value is cached bool cached() const { return set; } /// set the contained value value_type const reset(value_type const & val) { value = val; set = true; return value; } private: /// the cached value value_type value; /// is the value valid? bool set; }; #endif /* !CACHED_VALUE_H */ oprofile-0.9.9/libutil++/Makefile.am0000664000076400007640000000143112175510132014125 00000000000000SUBDIRS = . tests AM_CPPFLAGS= \ -I ${top_srcdir}/libutil \ -I ${top_srcdir}/libop \ -I ${top_srcdir}/libpp \ @OP_CPPFLAGS@ AM_CXXFLAGS = @OP_CXXFLAGS@ noinst_LIBRARIES = libutil++.a libutil___a_SOURCES = \ op_bfd.cpp \ op_bfd.h \ bfd_support.cpp \ bfd_support.h \ string_filter.cpp \ string_filter.h \ glob_filter.cpp \ glob_filter.h \ growable_vector.h \ path_filter.cpp \ path_filter.h \ file_manip.cpp \ file_manip.h \ sparse_array.h \ stream_util.cpp \ stream_util.h \ string_manip.cpp \ string_manip.h \ cverb.cpp \ cverb.h \ generic_spec.h \ op_exception.cpp \ op_exception.h \ child_reader.cpp \ child_reader.h \ unique_storage.h \ utility.h \ cached_value.h \ comma_list.h \ xml_output.h \ xml_output.cpp \ bfd_spu_support.cpp \ op_spu_bfd.cpp oprofile-0.9.9/libutil++/stream_util.cpp0000664000076400007640000000072712175510132015134 00000000000000/** * @file stream_util.cpp * C++ stream utility * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #include "stream_util.h" using namespace std; io_state::io_state(ios & stream_) : stream(stream_), format(stream.flags()), precision(stream.precision()), fill(stream.fill()) { } io_state::~io_state() { stream.flags(format); stream.precision(precision); stream.fill(fill); } oprofile-0.9.9/libutil++/xml_output.h0000664000076400007640000000111512175510132014461 00000000000000/** * @file xml_output.h * utility routines for writing XML * * @remark Copyright 2006 OProfile authors * @remark Read the file COPYING * * @author Dave Nomura */ #ifndef XML_OUTPUT_H #define XML_OUTPUT_H #include "op_xml_out.h" std::string tag_name(tag_t tag); std::string open_element(tag_t tag, bool with_attrs = false); std::string close_element(tag_t tag = NONE, bool has_nested = false); std::string init_attr(tag_t attr, size_t value); std::string init_attr(tag_t attr, double value); std::string init_attr(tag_t attr, std::string const & str); #endif /* XML_OUTPUT_H */ oprofile-0.9.9/libutil++/string_manip.h0000664000076400007640000000652112175510132014741 00000000000000/** * @file string_manip.h * std::string helpers * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #ifndef STRING_MANIP_H #define STRING_MANIP_H #include #include #include #include /** * @param str string * @param ch the characterto search * * erase char from the begin of str to the last * occurence of ch from and return the string */ std::string erase_to_last_of(std::string const & str, char ch); /// split string s by first occurence of char c, returning the second part. /// s is set to the first part. Neither include the split character std::string split(std::string & s, char c); /// return true if "prefix" is a prefix of "s", behavior is undefined /// if prefix is an empty string bool is_prefix(std::string const & s, std::string const & prefix); /** * @param str the string to tokenize * @param sep the separator_char * * separate fields in a string in a list of token; field are * separated by the sep character, sep char can be escaped * by '\\' to specify a sep char in a token, '\\' not followed * by a sep is taken as it e.g. "\,\a" --> ",\a" */ std::vector separate_token(std::string const & str, char sep); /// remove trim chars from start of input string return the new string std::string ltrim(std::string const & str, std::string const & totrim = "\t "); /// remove trim chars from end of input string return the new string std::string rtrim(std::string const & str, std::string const & totrim = "\t "); /// ltrim(rtrim(str)) std::string trim(std::string const & str, std::string const & totrim = "\t "); /** * format_percent - smart format of double percentage value * @param value - the value * @param int_width - the maximum integer integer width default to 2 * @param frac_width - the fractionnary width default to 4 * @param showpos - show + sign for positive values * * This formats a percentage into exactly the given width and returns * it. If the integer part is larger than the given int_width, the * returned string will be wider. The returned string is never * shorter than (fract_with + int_width + 1) * */ std::string const format_percent(double value, size_t int_width, size_t frac_width, bool showpos = false); /// prefered width to format percentage static unsigned int const percent_int_width = 2; static unsigned int const percent_fract_width = 4; static unsigned int const percent_width = percent_int_width + percent_fract_width + 1; /** * @param src input parameter * convert From src to a T through an istringstream. * * Throws invalid_argument if conversion fail. * * Note that this is not as foolproof as boost's lexical_cast */ template To op_lexical_cast(From const & src) { std::ostringstream in; if (!(in << src)) throw std::invalid_argument("op_lexical_cast()"); std::istringstream out(in.str()); To value; if (!(out >> value)) { throw std::invalid_argument("op_lexical_cast(\"" + in.str() +"\")"); } return value; } // specialization accepting hexadecimal and octal number in input. Note that // op_lexical_cast("0x23"); will fail because it call the // non specialized template. template <> unsigned int op_lexical_cast(std::string const & str); #endif /* !STRING_MANIP_H */ oprofile-0.9.9/libutil++/glob_filter.h0000664000076400007640000000266512175510132014544 00000000000000/** * @file glob_filter.h * Filter strings based on globbed exclude/include list * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #ifndef GLOB_FILTER_H #define GLOB_FILTER_H #include "string_filter.h" /** * glob_filter - filtering of a string based on globbed include/exclude list * * This class is an oracle on whether a particular string matches * the given list of included and excluded strings. * * This class gives glob-based matches on each pattern, as with fnmatch(3) */ class glob_filter : public string_filter { public: /** * Initialise the filter with the include and exclude list, * comma-separated. */ glob_filter(std::string const & include_patterns, std::string const & exclude_patterns) : string_filter(include_patterns, exclude_patterns) {} /** * Initialise the filter with the include and exclude list. */ glob_filter(std::vector const & include_patterns, std::vector const & exclude_patterns) : string_filter(include_patterns, exclude_patterns) {} /// Returns true if the given string matches virtual bool match(std::string const & str) const; protected: /// function object for fnmatching struct fnmatcher { fnmatcher(std::string const & str) : str_(str) {} bool operator()(std::string const & s); std::string const & str_; }; }; #endif /* GLOB_FILTER_H */ oprofile-0.9.9/libutil++/cverb.h0000664000076400007640000000446112175510132013351 00000000000000/** * @file cverb.h * verbose output stream * * @remark Copyright 2002, 2004 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #ifndef CVERB_H #define CVERB_H #include #include #include struct cverb_object { }; /** * verbose object, all output through this stream are made only * if a verbose object with a true state is injected in the stream. */ extern cverb_object cverb; /** * typical use: * declare some verbose global object: * verbose debug("debug"); * verbose stats("stats"); * verbose level2("level2"); * * setup from command line the state of these objects * * verbose::setup(command_line_args_to'--verbose='); * * cverb << stats << "stats\n"; * cverb << (stats&level2) << "very verbose stats\n" * cverb << (stats|debug) << "bar\n"; * these will give a compile time error * cverb << stats << "foo" << debug << "bar"; * cout << stats << "foo"; * * In critical code path cverb can be used in the more efficient way: * if (cverb << vdebug) * cverb << vdebug << "foo" << "bar"; * the condition test the fails bit for the returned stream while the later * build a sentry object for each << (more efficient even with one level of <<) */ class verbose { /// The returned stream is either a null stream or cout. friend std::ostream & operator<<(cverb_object &, verbose const &); public: /** * create a verbose object named name, the ctor auto-register name * as a verbose object, the set state can be intialized through * verbose::setup(name) */ verbose(char const * name); verbose operator|(verbose const &); verbose operator&(verbose const &); /// Return false if this named verbose object has not be registred. static bool setup(std::string const &); /// convenient interface calling the above for string in args static bool setup(std::vector const & args); private: bool set; }; /** * predefined general purpose verbose object, comment give their names */ extern verbose vlevel1; /**< named "level1" */ extern verbose vdebug; /**< named "debug" */ extern verbose vstats; /**< named "stats" */ extern verbose vxml; /**< named "xml" */ // all sample filename manipulation. extern verbose vsfile; /**< named "sfile" */ extern verbose varcs; /**< named "arcs" */ #endif /* !CVERB_H */ oprofile-0.9.9/libutil++/sparse_array.h0000664000076400007640000000477412175510132014752 00000000000000/** * @file sparse_array.h * Auto-expanding sparse array type * * @remark Copyright 2007 OProfile authors * @remark Copyright (c) International Business Machines, 2007. * @remark Read the file COPYING * * @author Dave Nomura */ #ifndef SPARSE_ARRAY_H #define SPARSE_ARRAY_H template class sparse_array { public: typedef std::map container_type; typedef typename container_type::size_type size_type; /** * Index into the map for a value. * NOTE: since std::map does/can not have a const member function for * operator[], this const member function simply returns 0 for * profile classes that aren't represented in the map. * This member function will only be invoked for queries of the * sparse array. */ T operator[](size_type index) const { typename container_type::const_iterator it = container.find(index); if (it != container.end()) return it->second; else return 0; } /** * Index into the vector for a value. If the index is larger than * the current max index, a new array entry is created. */ T & operator[](size_type index) { return container[index]; } /** * vectorized += operator */ sparse_array & operator+=(sparse_array const & rhs) { typename container_type::const_iterator it = rhs.container.begin(); typename container_type::const_iterator it_end = rhs.container.end(); for ( ; it != it_end; it++) container[it->first] += it->second; return *this; } /** * vectorized -= operator, overflow shouldn't occur during substraction * (iow: for each components lhs[i] >= rhs[i] */ sparse_array & operator-=(sparse_array const & rhs) { typename container_type::const_iterator it = rhs.container.begin(); typename container_type::const_iterator it_end = rhs.container.end(); for ( ; it != it_end; it++) container[it->first] -= it->second; return *this; } /** * return the maximum index of the array + 1 or 0 if the array * is empty. */ size_type size() const { if (container.size() == 0) return 0; typename container_type::const_iterator last = container.end(); --last; return last->first + 1; } /// return true if all elements have the default constructed value bool zero() const { typename container_type::const_iterator it = container.begin(); typename container_type::const_iterator it_end = container.end(); for ( ; it != it_end; it++) if (it->second != 0) return false; return true; } private: container_type container; }; #endif // SPARSE_ARRAY_H oprofile-0.9.9/libopt++/0000775000076400007640000000000012175511555012011 500000000000000oprofile-0.9.9/libopt++/popt_options.cpp0000664000076400007640000001723412175510132015167 00000000000000/** * @file popt_options.cpp * option parsing * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #include #include "op_popt.h" #include "op_version.h" #include "popt_options.h" #include "string_manip.h" using namespace std; namespace popt { /** * option_base - base class for implementation of a command line option * * Every command line option added before calling parse_options() * is of this type. */ class option_base { public: /** * option_base - construct an option with the given options. * @param option_name name part of long form e.g. --option * @param short_name short form name e.g. -o * @param help_str short description of the option * @param arg_help_str short description of the argument (if any) * @param data a pointer to the data to fill in * @param popt_flags the popt library data type */ option_base(char const * option_name, char short_name, char const * help_str, char const * arg_help_str, void * data, unsigned int popt_flags); virtual ~option_base() {} /** * post_process - perform any necessary post-processing */ virtual void post_process() {} protected: char const * option_name; }; /** the popt array singleton options */ static vector & popt_options(void) { static vector *x = new(vector); return *x; } static vector & options_list(void) { static vector *x = new(vector); return *x; } static int showvers; static struct poptOption appended_options[] = { { "version", 'v', POPT_ARG_NONE, &showvers, 0, "show version", NULL, }, POPT_AUTOHELP POPT_TABLEEND }; /* options parameter can't be a local variable because caller can use the * returned poptContext which contains pointer inside the options array */ static poptContext do_parse_options(int argc, char const ** argv, vector & options, vector & additional_params) { options = popt_options(); int const nr_appended_options = sizeof(appended_options) / sizeof(appended_options[0]); options.insert(options.end(), appended_options, appended_options + nr_appended_options); poptContext con = op_poptGetContext(NULL, argc, argv, &options[0], 0); if (showvers) show_version(argv[0]); char const * file; while ((file = poptGetArg(con)) != 0) additional_params.push_back(file); for (size_t i = 0 ; i < options_list().size() ; ++i) options_list()[i]->post_process(); return con; } void parse_options(int argc, char const ** argv, vector & additional_params) { vector options; poptContext con = do_parse_options(argc, argv, options, additional_params); poptFreeContext(con); } template class option_imp; /** * option - a binary option * * Use this option type for constructing specified / not-specified * options e.g. --frob */ template <> class option_imp : public option_base { public: option_imp(bool & value, char const * option_name, char short_name, char const * help_str); ~option_imp() {} void post_process(); private: bool & value; int popt_value; }; /** * option - a integer option * * Use this for options taking an integer e.g. --frob 6 */ template <> class option_imp : public option_base { public: option_imp(int & value, char const * option_name, char short_name, char const * help_str, char const * arg_help_str); ~option_imp() {} }; /** * option - a string option * * Use this for options taking a string e.g. --frob parsley */ template <> class option_imp : public option_base { public: option_imp(string & value, char const * option_name, char short_name, char const * help_str, char const * arg_help_str); void post_process(); ~option_imp() {} private: // we need an intermediate char array to pass to popt libs char * popt_value; string & value; }; /** * option< vector > - a string vector option * * Use this for options taking a number of string arguments, * separated by the given separator. */ template <> class option_imp< vector > : public option_base { public: option_imp(vector & value, char const * option_name, char short_name, char const * help_str, char const * arg_help_str, char separator = ','); void post_process(); ~option_imp() {} private: vector & value; // we need an intermediate char array to pass to popt libs char * popt_value; char const separator; }; option::~option() { delete the_option; } /// non templatized ctor for boolean option option::option(bool & value, char const * name, char short_name, char const * help) : the_option(new option_imp(value, name, short_name, help)) { } /// specialization of option ctor for integer option template <> option::option(int & value, char const * name, char short_name, char const * help, char const * arg_help) : the_option(new option_imp (value, name, short_name, help, arg_help)) { } /// specialization of option ctor for string option template <> option::option(string & value, char const * name, char short_name, char const * help, char const * arg_help) : the_option(new option_imp (value, name, short_name, help, arg_help)) { } /// specialization of option ctor for vector option template <> option::option(vector & value, char const * name, char short_name, char const * help, char const * arg_help) : the_option(new option_imp< vector > (value, name, short_name, help, arg_help)) { } option_base::option_base(char const * name, char short_name, char const * help, char const * arg_help, void * data, unsigned int popt_flags) : option_name(name) { poptOption const opt = { name, short_name, (typeof(opt.argInfo))popt_flags, data, 0, help, arg_help }; popt_options().push_back(opt); options_list().push_back(this); } option_imp::option_imp(bool & val, char const * name, char short_name, char const * help) : option_base(name, short_name, help, 0, &popt_value, POPT_ARG_NONE), value(val), popt_value(0) { } void option_imp::post_process() { if (popt_value) { if (is_prefix(option_name, "no-")) value = !popt_value; else value = popt_value; } } option_imp::option_imp(int & value, char const * name, char short_name, char const * help, char const * arg_help) : option_base(name, short_name, help, arg_help, &value, POPT_ARG_INT) { } option_imp::option_imp(string & val, char const * name, char short_name, char const * help, char const * arg_help) : option_base(name, short_name, help, arg_help, &popt_value, POPT_ARG_STRING), popt_value(0), value(val) { } void option_imp::post_process() { if (popt_value) { value = popt_value; popt_value = 0; } } option_imp< vector >::option_imp(vector & val, char const * name, char short_name, char const * help, char const * arg_help, char sepchar) : option_base(name, short_name, help, arg_help, &popt_value, POPT_ARG_STRING), value(val), popt_value(0), separator(sepchar) { } void option_imp< vector >::post_process() { if (popt_value) { value = separate_token(popt_value, separator); popt_value = 0; } } } // namespace popt oprofile-0.9.9/libopt++/popt_options.h0000664000076400007640000000751212175510132014632 00000000000000/** * @file popt_options.h * option parsing * * This provides a simple facility for adding command-line * options, and parsing them. * * You can add a number of options and then call parse_options() * to process them, for example : * * \code * bool allow_frob; * string frob; * static popt::option allow_frob_opt(allow_frob, "allow-frob", 'a', "allow frobs"); * static popt::option frob_opt(frob, "frob", 'f', "what to frob", "name"); * * ... * popt::parse_options(argc, argv, add_params); * \endcode * * Note than if you try to implement an option for an unsupported type like : * \code * static unsigned int i; * static popt::option i_opt(i, ....); * \endcode * you don't get a compile time error but a link time error. * * The call to parse_options() will fill in allow_frob and frob, if they * are passed to the program (myfrobber --allow-frob --frob foo), and place * any left over command line arguments in the add_params vector. Note * that the template parameter denotes the type of the option argument. * * When the template parameter type is bool, option starting with "no-" prefix * are implicitely considered as negated before writing the associated bool so * this will work as expected: * \code * bool demangle; * popt::option(demangle, "demangle", 'd', "demangle C++ symbols"), * popt::option(demangle, "no-demangle", '\0', "don't demangle C++ symbols"), * \endcode * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #ifndef POPT_OPTIONS_H #define POPT_OPTIONS_H #include #include namespace popt { /** * parse_options - parse command line options * @param argc like the parameter of main() * @param argv like the parameter of main() * @param additional_params additional options are stored here * * Parse the given command line with the previous * options created. Multiple additional arguments * that are not recognised will be added to the additional_params * vector. */ void parse_options(int argc, char const ** argv, std::vector & additional_params); class option_base; /** * option - base class for a command line option * * Every command line option added before calling parse_options() * is of this type. */ class option { public: /** * Templatized constructor for an option. This adds the option * to the option list on construction. This is specialized for * each recognised option value type below. */ template option(T &, char const * option_name, char short_name, char const * help_str, char const * arg_help_str); /** * boolean operations don't get the same set of parameters as other * option, as there is no argument to give help for. * Due to a bug in gcc 2.95 we can't use a default parameter * in the templatized ctor above because 2.95 is unable to match * the right ctor. So on we add a non-templatized ctor with an exact * match for boolean option. */ option(bool &, char const * option_name, char short_name, char const * help_str); ~option(); private: option_base * the_option; }; /** * The supported option type, boolean option are matched by a non templatized * ctor above. */ template <> option::option(int &, char const * option_name, char short_name, char const * help_str, char const * arg_help_str); template <> option::option(std::string &, char const * option_name, char short_name, char const * help_str, char const * arg_help_str); template <> option::option(std::vector &, char const * option_name, char short_name, char const * help_str, char const * arg_help_str); } // namespace popt #endif // POPT_OPTIONS_H oprofile-0.9.9/libopt++/Makefile.in0000664000076400007640000003723512175510234014001 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libopt++ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) ARFLAGS = cru libopt___a_AR = $(AR) $(ARFLAGS) libopt___a_LIBADD = am_libopt___a_OBJECTS = popt_options.$(OBJEXT) libopt___a_OBJECTS = $(am_libopt___a_OBJECTS) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libopt___a_SOURCES) DIST_SOURCES = $(libopt___a_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ AM_CPPFLAGS = -I ${top_srcdir}/libutil++ -I ${top_srcdir}/libutil @OP_CPPFLAGS@ AM_CXXFLAGS = @OP_CXXFLAGS@ noinst_LIBRARIES = libopt++.a libopt___a_SOURCES = popt_options.cpp popt_options.h all: all-am .SUFFIXES: .SUFFIXES: .cpp .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libopt++/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign libopt++/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) libopt++.a: $(libopt___a_OBJECTS) $(libopt___a_DEPENDENCIES) -rm -f libopt++.a $(libopt___a_AR) libopt++.a $(libopt___a_OBJECTS) $(libopt___a_LIBADD) $(RANLIB) libopt++.a mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/popt_options.Po@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLIBRARIES ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/libopt++/Makefile.am0000664000076400007640000000027612175510132013760 00000000000000AM_CPPFLAGS=-I ${top_srcdir}/libutil++ -I ${top_srcdir}/libutil @OP_CPPFLAGS@ AM_CXXFLAGS = @OP_CXXFLAGS@ noinst_LIBRARIES = libopt++.a libopt___a_SOURCES = popt_options.cpp popt_options.h oprofile-0.9.9/aclocal.m40000664000076400007640000011666712175510231012161 00000000000000# generated automatically by aclocal 1.11.1 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],, [m4_warning([this file was generated for autoconf 2.63. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically `autoreconf'.])]) # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # # Copyright © 2004 Scott James Remnant . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # PKG_PROG_PKG_CONFIG([MIN-VERSION]) # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])# PKG_PROG_PKG_CONFIG # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # # Check to see whether a particular set of modules exists. Similar # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # # Similar to PKG_CHECK_MODULES, make sure that the first instance of # this or PKG_CHECK_MODULES is called, or make sure to call # PKG_CHECK_EXISTS manually # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_ifval([$2], [$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$$1"; then pkg_cv_[]$1="$$1" elif test -n "$PKG_CONFIG"; then PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], [pkg_failed=yes]) else pkg_failed=untried fi[]dnl ])# _PKG_CONFIG # _PKG_SHORT_ERRORS_SUPPORTED # ----------------------------- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])# _PKG_SHORT_ERRORS_SUPPORTED # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], # [ACTION-IF-NOT-FOUND]) # # # Note that if there is a possibility the first call to # PKG_CHECK_MODULES might not happen, you should be sure to include an # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac # # # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD ifelse([$4], , [AC_MSG_ERROR(dnl [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT ])], [AC_MSG_RESULT([no]) $4]) elif test $pkg_failed = untried; then ifelse([$4], , [AC_MSG_FAILURE(dnl [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])], [$4]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) ifelse([$3], , :, [$3]) fi[]dnl ])# PKG_CHECK_MODULES # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.11' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.11.1], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.11.1])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is `.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 9 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 10 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], UPC, [depcc="$UPC" am_compiler_list=], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, [ --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. #serial 5 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each `.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 16 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.62])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) AM_MISSING_PROG(AUTOCONF, autoconf) AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES(OBJC)], [define([AC_PROG_OBJC], defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ]) _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl dnl The `parallel-tests' driver may need to know about EXEEXT, so add the dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl ]) dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from `make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 6 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_MKDIR_P # --------------- # Check for `mkdir -p'. AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, dnl while keeping a definition of mkdir_p for backward compatibility. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of dnl Makefile.ins that do not define MKDIR_P, so we do our own dnl adjustment using top_builddir (which is defined more often than dnl MKDIR_P). AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl case $mkdir_p in [[\\/$]]* | ?:[[\\/]]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # ------------------------------ # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 5 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; esac # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of `v7', `ustar', or `pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. AM_MISSING_PROG([AMTAR], [tar]) m4_if([$1], [v7], [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of `-'. for _am_tool in $_am_tools do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR m4_include([m4/binutils.m4]) m4_include([m4/builtinexpect.m4]) m4_include([m4/cellspubfdsupport.m4]) m4_include([m4/compileroption.m4]) m4_include([m4/copyifchange.m4]) m4_include([m4/docbook.m4]) m4_include([m4/extradirs.m4]) m4_include([m4/kernelversion.m4]) m4_include([m4/libtool.m4]) m4_include([m4/ltoptions.m4]) m4_include([m4/ltsugar.m4]) m4_include([m4/ltversion.m4]) m4_include([m4/lt~obsolete.m4]) m4_include([m4/mallocattribute.m4]) m4_include([m4/poptconst.m4]) m4_include([m4/precompiledheader.m4]) m4_include([m4/qt.m4]) m4_include([m4/sstream.m4]) m4_include([m4/typedef.m4]) oprofile-0.9.9/libutil/0000775000076400007640000000000012175511554012035 500000000000000oprofile-0.9.9/libutil/op_get_time.h0000664000076400007640000000107512175510132014413 00000000000000/** * @file op_get_time.h * Get current time as a string * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef OP_GET_TIME_H #define OP_GET_TIME_H #ifdef __cplusplus extern "C" { #endif /** * op_get_time - get current date and time * * Returns a string representing the current date * and time, or an empty string on error. * * The string is statically allocated and should not be freed. */ char * op_get_time(void); #ifdef __cplusplus } #endif #endif /* OP_GET_TIME_H */ oprofile-0.9.9/libutil/op_cpufreq.h0000664000076400007640000000104512175510132014260 00000000000000/** * @file op_cpufreq.h * get cpu frequency declaration * * @remark Copyright 2011 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie * @author Suravee Suthikulpanit */ #ifndef OP_CPUFREQ_H #define OP_CPUFREQ_H #if defined(__cplusplus) extern "C" { #endif /* * return the estimated cpu frequency in Mhz, * return 0 if this information * is not avalaible e.g. sparc64 with a non SMP kernel */ double op_cpu_frequency(void); #if defined(__cplusplus) } #endif #endif /* !OP_CPUFREQ_H */ oprofile-0.9.9/libutil/op_file.h0000664000076400007640000000610012175510132013527 00000000000000/** * @file op_file.h * Useful file management helpers * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef OP_FILE_H #define OP_FILE_H #ifdef __cplusplus extern "C" { #endif #include /** * op_file_readable - is a file readable * @param file file name * * Return true if the given file is readable and regular. * * Beware of race conditions ! */ int op_file_readable(char const * file); /** * op_get_mtime - get mtime of file * @param file file name * * Returns the mtime of the given file or 0 on failure */ time_t op_get_mtime(char const * file); /** * create_dir - create a directory * @param dir the directory name to create * * Returns 0 on success. */ int create_dir(char const * dir); /** * create_path - create a path * @param path the path to create * * create directory for each dir components in path * the last path component is not considered as a directory * but as a filename * * Returns 0 on success. */ int create_path(char const * path); /** * Clients of get_matching_pathnames must provide their own implementation * of get_pathname_callback. */ typedef void (*get_pathname_callback)(char const * pathname, void * name_list); /* This enum is intended solely for the use of get_matching_pathnames(), * bit 0 is reserved for internal use..*/ enum recursion_type { NO_RECURSION = 2, MATCH_ANY_ENTRY_RECURSION = 4, MATCH_DIR_ONLY_RECURSION = 8, }; /** * @param name_list where to store result * @param get_pathname_callback client-provided callback function * @param base_dir directory from where lookup starts * @param filter a pathname filter * @param recursion recursion_type -- see above enum and following description: * NO_RECURSION: Find matching files from passed base_dir and call * get_pathname_callback to add entry to name_list to be returned. * MATCH_ANY_ENTRY_RECURSION: Starting at base_dir, for each entry in the * dir that matches the filter: if entry is of type 'dir', recurse; * else call get_pathname_callback to add entry to name_list to be * returned. * MATCH_DIR_ONLY_RECURSION: Starting at base_dir, if an entry in the * dir is of type 'dir' and its complete pathname contains a match to * the filter, call get_pathname_callback to add entry to name_list to * be returned; else recurse. * * Returns 0 on success. * * Return a list of pathnames under base_dir, filtered by filter and optionally * looking in sub-directory. See description above of the recursion_type * parameter for more details. * NOTE: For C clients: Your implementation of the get_pathname_callback * function will probably dynamically allocate storage for elements * added to name_list. If so, remember to free that memory when it's * no longer needed. */ int get_matching_pathnames(void * name_list, get_pathname_callback, char const * base_dir, char const * filter, enum recursion_type recursion); #ifdef __cplusplus } #endif #endif /* OP_FILE_H */ oprofile-0.9.9/libutil/op_cpufreq.c0000664000076400007640000000525712175510132014264 00000000000000/** * @file op_cpufreq.c * get cpu frequency definition * * @remark Copyright 2011 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie * @author Suravee Suthikulpanit */ #include #include #include "op_fileio.h" /* * Use frequency information from /proc/cpuinfo. This should be available in most case. * However, this number is the current cpu frequency which could be in the idle state. * We should actually report the max frequency because the cpu should switch into the * highest power state when running. */ static double op_cpu_freq_cpuinfo(void) { double fval = 0.0; unsigned long uval; char * line = NULL; FILE * fp = op_try_open_file("/proc/cpuinfo", "r"); if (!fp) return 0.0; while (1) { line = op_get_line(fp); if (!line) break; if (line[0] == '\0') { free(line); continue; } /* x86/parisc/ia64/x86_64 */ if (sscanf(line, "cpu MHz : %lf", &fval) == 1) break; /* ppc/ppc64 */ if (sscanf(line, "clock : %lfMHz", &fval) == 1) break; /* alpha */ if (sscanf(line, "cycle frequency [Hz] : %lu", &uval) == 1) { fval = uval / 1E6; break; } /* sparc64 if CONFIG_SMP only */ if (sscanf(line, "Cpu0ClkTck : %lx", &uval) == 1) { fval = uval / 1E6; break; } /* mips including loongson2 */ if (sscanf(line, "BogoMIPS : %lu", &uval) == 1) { fval = uval * 3 / 2; break; } /* s390 doesn't provide cpu freq, checked up to 2.6-test4 */ free(line); } if (line) free(line); op_close_file(fp); return fval; } /* * Use frequency information from /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq * This number is the maximum cpu frequency of the processor. */ static double op_cpu_freq_sys_devices(void) { double fval = 0.0; char * line = NULL; FILE * fp = op_try_open_file("/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq", "r"); if (!fp) return 0.0; while (1) { line = op_get_line(fp); if (!line) break; if (line[0] == '\0') { free(line); continue; } if (sscanf(line, "%lf", &fval) == 1) break; free(line); } if (line) free(line); op_close_file(fp); return fval; } double op_cpu_frequency(void) { /* * Typically, system changes the frequency scaling of the cpus * based on the workload. /proc/cpuinfo reports the current * frequency value which might not be at the maximum at the time * of query. Since cpu switch into running state with max frequency * when under workload, we should make sure to report the max frequency * value acquiring from /sys/devices when available. */ double freq = op_cpu_freq_sys_devices(); if (freq == 0) { freq = op_cpu_freq_cpuinfo(); } return freq; } oprofile-0.9.9/libutil/op_growable_buffer.c0000664000076400007640000000145512175510132015746 00000000000000/** * @file op_growable_buffer.c * a growable buffer implementation * * @remark Copyright 2007 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie */ #include "op_growable_buffer.h" #include "op_libiberty.h" #include #include void init_buffer(struct growable_buffer * b) { b->max_size = 0; b->size = 0; b->p = NULL; } void free_buffer(struct growable_buffer * b) { free(b->p); } static void grow_buffer(struct growable_buffer * b) { size_t new_size = (b->max_size + b->size) * 2; b->p = xrealloc(b->p, new_size); b->max_size = new_size; } void add_data(struct growable_buffer * b, void const * data, size_t len) { size_t old_size = b->size; b->size += len; if (b->size > b->max_size) grow_buffer(b); memcpy(b->p + old_size, data, len); } oprofile-0.9.9/libutil/op_deviceio.c0000664000076400007640000000127112175510132014376 00000000000000/** * @file op_deviceio.c * Reading from a special device * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include "op_deviceio.h" #include #include #include #include #include #include fd_t op_open_device(char const * name) { return open(name, O_RDONLY); } ssize_t op_read_device(fd_t devfd, void * buf, size_t size) { ssize_t count; lseek(devfd, 0, SEEK_SET); count = read(devfd, buf, size); if (count < 0 && errno != EINTR && errno != EAGAIN) { perror("oprofiled:op_read_device: "); exit(EXIT_FAILURE); } return count; } oprofile-0.9.9/libutil/op_version.h0000664000076400007640000000062012175510132014276 00000000000000/** * @file op_version.h * output version string * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef OP_VERSION_H #define OP_VERSION_H #ifdef __cplusplus extern "C" { #endif /** output the version string */ void show_version(char const * app_name); #ifdef __cplusplus } #endif #endif /* !OP_VERSION_H */ oprofile-0.9.9/libutil/op_deviceio.h0000664000076400007640000000260112175510132014401 00000000000000/** * @file op_deviceio.h * Reading from a special device * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef OP_DEVICEIO_H #define OP_DEVICEIO_H #ifdef __cplusplus extern "C" { #endif #include "op_types.h" #include /** * op_open_device - open a special char device for reading * @param name file name of device file * * Open the special file name. Returns the file descriptor * for the file or -1 on error. */ fd_t op_open_device(char const * name); /** * op_read_device - read from a special char device * @param devfd file descriptor of device * @param buf buffer * @param size size of buffer * * Read size bytes from a device into buffer buf. * A seek to the start of the device file is done first * then a read is requested in one go of size bytes. * * It is the caller's responsibility to do further op_read_device() * calls if the number of bytes read is not what is requested * (where this is applicable). * * The number of bytes read is returned, or a negative number * on failure (in which case errno will be set). If the call is * interrupted, then errno will be EINTR, and the client should * arrange for re-starting the read if necessary. */ ssize_t op_read_device(fd_t devfd, void * buf, size_t size); #ifdef __cplusplus } #endif #endif /* OP_DEVICEIO_H */ oprofile-0.9.9/libutil/op_types.h0000664000076400007640000000122112175510132013753 00000000000000/** * @file op_types.h * General-utility types * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef OP_TYPES_H #define OP_TYPES_H #ifndef __KERNEL__ #include /*@{\name miscellaneous types */ typedef unsigned char u8; typedef unsigned short u16; typedef unsigned int u32; typedef unsigned long long u64; typedef int fd_t; /*@}*/ /** generic type for holding addresses */ typedef unsigned long long vma_t; /** generic type to hold a sample count in pp tools */ typedef u64 count_type; #else #include #endif #endif /* OP_TYPES_H */ oprofile-0.9.9/libutil/op_lockfile.c0000664000076400007640000000177612175510132014411 00000000000000/** * @file op_lockfile.c * PID-based lockfile management * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include "op_lockfile.h" #include "op_file.h" #include #include #include #include #include static pid_t op_read_lock_file(char const * file) { FILE * fp; pid_t value; fp = fopen(file, "r"); if (fp == NULL) return 0; if (fscanf(fp, "%d", &value) != 1) { fclose(fp); return 0; } fclose(fp); return value; } int op_write_lock_file(char const * file) { FILE * fp; if (op_file_readable(file)) { pid_t pid = op_read_lock_file(file); /* FIXME: ESRCH vs. EPERM */ if (kill(pid, 0)) { int err = unlink(file); fprintf(stderr, "Removing stale lock file %s\n", file); if (err) return err; } else { return EEXIST; } } fp = fopen(file, "w"); if (!fp) return errno; fprintf(fp, "%d", getpid()); fclose(fp); return 0; } oprofile-0.9.9/libutil/op_string.h0000664000076400007640000000322612175510132014124 00000000000000/** * @file op_string.h * general purpose C string handling declarations. * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef OP_STRING_H #define OP_STRING_H #include #ifdef __cplusplus extern "C" { #endif /** * @param s: input string * @param len: len char to copy * * Allocate and copy len character from s to a newly allocated buffer then * append a '\0' terminator. Return the newly allocated string */ char * op_xstrndup(char const * s, size_t len); /** * @param s: string to hash * * Generate a hash code from a string */ size_t op_hash_string(char const * s); /** * @param str: string to test * @param prefix: prefix string * * return non zero if prefix parameters is a prefix of str */ int strisprefix(char const * str, char const * prefix); /** * @param c: input string * * return a pointer to the first location in c which is not a blank space * where blank space are in " \t\n" */ char const * skip_ws(char const * c); /** * @param c: input string * * return a pointer to the first location in c which is a blank space * where blank space are in " \t\n" */ char const * skip_nonws(char const * c); /** * @param c: input string * * return non zero if c string contains only blank space * where blank space are in " \t\n" */ int empty_line(char const * c); /** * @param c: input string * * return non zero if c string is a comment. Comment are lines with optional * blank space at left then a '#' character. Blank space are in " \t\n" */ int comment_line(char const * c); #ifdef __cplusplus } #endif #endif /* !OP_STRING_H */ oprofile-0.9.9/libutil/op_growable_buffer.h0000664000076400007640000000204212175510132015744 00000000000000/** * @file op_growable_buffer.h * a growable buffer interface * * @remark Copyright 2007 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie */ #ifndef OP_GROWABLE_BUFFER_H #define OP_GROWABLE_BUFFER_H #include struct growable_buffer { void * p; size_t size; size_t max_size; }; /** * init_buffer - initialize an empty buffer * @param buffer the buffer to initialize * * init_buffer do not do any allocation, the first allocation will occur * when add_data() with a non zero len param will be called. */ void init_buffer(struct growable_buffer * buffer); /** * free_buffer - free the memory allocated for this buffer * @param buffer the buffer to free */ void free_buffer(struct growable_buffer * buffer); /** * add_data - add data to this buffer * @param b the buffer where to add data * @param data a pointer to the data to add * @param len number of byte to add to the buffer */ void add_data(struct growable_buffer * b, void const * data, size_t len); #endif /* !OP_GROWABLE_BUFFER_H */ oprofile-0.9.9/libutil/Makefile.in0000664000076400007640000005335112175510234014023 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libutil DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) ARFLAGS = cru libutil_a_AR = $(AR) $(ARFLAGS) libutil_a_LIBADD = am_libutil_a_OBJECTS = op_deviceio.$(OBJEXT) op_lockfile.$(OBJEXT) \ op_file.$(OBJEXT) op_fileio.$(OBJEXT) op_get_time.$(OBJEXT) \ op_libiberty.$(OBJEXT) op_popt.$(OBJEXT) op_string.$(OBJEXT) \ op_cpufreq.$(OBJEXT) op_version.$(OBJEXT) \ op_growable_buffer.$(OBJEXT) libutil_a_OBJECTS = $(am_libutil_a_OBJECTS) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libutil_a_SOURCES) DIST_SOURCES = $(libutil_a_SOURCES) RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ SUBDIRS = . tests AM_CPPFLAGS = -I ${top_srcdir}/libop @OP_CPPFLAGS@ AM_CFLAGS = @OP_CFLAGS@ noinst_LIBRARIES = libutil.a libutil_a_SOURCES = \ op_deviceio.c \ op_lockfile.c \ op_file.c \ op_fileio.c \ op_get_time.c \ op_libiberty.c \ op_popt.c \ op_string.c \ op_cpufreq.c \ op_deviceio.h \ op_fileio.h \ op_libiberty.h \ op_lockfile.h \ op_types.h \ op_file.h \ op_get_time.h \ op_list.h \ op_popt.h \ op_string.h \ op_cpufreq.h \ op_version.c \ op_version.h \ op_growable_buffer.c \ op_growable_buffer.h all: all-recursive .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libutil/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign libutil/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) libutil.a: $(libutil_a_OBJECTS) $(libutil_a_DEPENDENCIES) -rm -f libutil.a $(libutil_a_AR) libutil.a $(libutil_a_OBJECTS) $(libutil_a_LIBADD) $(RANLIB) libutil.a mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/op_cpufreq.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/op_deviceio.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/op_file.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/op_fileio.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/op_get_time.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/op_growable_buffer.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/op_libiberty.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/op_lockfile.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/op_popt.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/op_string.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/op_version.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(LIBRARIES) installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \ mostlyclean-am distclean: distclean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic clean-libtool \ clean-noinstLIBRARIES ctags ctags-recursive distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/libutil/op_fileio.c0000664000076400007640000001476312175510132014070 00000000000000/** * @file op_fileio.c * Reading from / writing to files * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include #include "op_fileio.h" #include "op_libiberty.h" #include #include #include static FILE * op_do_open_file(char const * name, char const * mode, int fatal) { FILE * fp; fp = fopen(name, mode); if (!fp) { if (fatal) { fprintf(stderr,"oprofiled:op_do_open_file: %s: %s", name, strerror(errno)); exit(EXIT_FAILURE); } } return fp; } FILE * op_try_open_file(char const * name, char const * mode) { return op_do_open_file(name, mode, 0); } FILE * op_open_file(char const * name, char const * mode) { return op_do_open_file(name, mode, 1); } void op_close_file(FILE * fp) { if (fclose(fp)) perror("oprofiled:op_close_file: "); } void op_write_file(FILE * fp, void const * buf, size_t size) { size_t written; if (size == 0) return; written = fwrite(buf, size, 1, fp); if (written != 1) { fprintf(stderr, "oprofiled:op_write_file: wrote less than expected: %lu bytes.\n", (unsigned long)size); exit(EXIT_FAILURE); } } void op_write_u8(FILE * fp, u8 val) { op_write_file(fp, &val, sizeof(val)); } void op_write_u32(FILE * fp, u32 val) { op_write_file(fp, &val, sizeof(val)); } void op_write_u64(FILE * fp, u64 val) { op_write_file(fp, &val, sizeof(val)); } unsigned long op_read_long_from_file(char const * filename, int fatal) { FILE * fp; unsigned long value; fp = fopen(filename, "r"); if (fp == NULL) { if (!fatal) return (unsigned long)-1; fprintf(stderr, "op_read_long_from_file: Failed to open %s, reason %s\n", filename, strerror(errno)); exit(EXIT_FAILURE); } if (fscanf(fp, "%lu", &value) != 1) { fclose(fp); if (!fatal) return (unsigned long)-1; fprintf(stderr, "op_read_long_from_file: Failed to convert contents of file %s to unsigned long\n", filename); exit(EXIT_FAILURE); } fclose(fp); return value; } u32 op_read_int_from_file(char const * filename, int fatal) { FILE * fp; u32 value; fp = fopen(filename, "r"); if (fp == NULL) { if (!fatal) return (u32)-1; fprintf(stderr, "op_read_int_from_file: Failed to open %s, reason %s\n", filename, strerror(errno)); exit(EXIT_FAILURE); } if (fscanf(fp, "%u", &value) != 1) { fclose(fp); if (!fatal) return (u32)-1; fprintf(stderr, "op_read_int_from_file: Failed to convert contents of file %s to integer\n", filename); exit(EXIT_FAILURE); } fclose(fp); return value; } char * op_get_line(FILE * fp) { char * buf; char * cp; int c; size_t max = 512; buf = xmalloc(max); cp = buf; while (1) { switch (c = getc(fp)) { case EOF: free(buf); return NULL; break; case '\n': case '\0': *cp = '\0'; return buf; break; default: *cp = (char)c; cp++; if (((size_t)(cp - buf)) == max) { buf = xrealloc(buf, max + 128); cp = buf + max; max += 128; } break; } } } /* FIXME the debug info stuff should be handled by binutils */ unsigned long calc_crc32(unsigned long crc, unsigned char * buf, size_t len) { static const unsigned long crc32_table[256] = { 0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988, 0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2, 0xf3b97148, 0x84be41de, 0x1adad47d, 0x6ddde4eb, 0xf4d4b551, 0x83d385c7, 0x136c9856, 0x646ba8c0, 0xfd62f97a, 0x8a65c9ec, 0x14015c4f, 0x63066cd9, 0xfa0f3d63, 0x8d080df5, 0x3b6e20c8, 0x4c69105e, 0xd56041e4, 0xa2677172, 0x3c03e4d1, 0x4b04d447, 0xd20d85fd, 0xa50ab56b, 0x35b5a8fa, 0x42b2986c, 0xdbbbc9d6, 0xacbcf940, 0x32d86ce3, 0x45df5c75, 0xdcd60dcf, 0xabd13d59, 0x26d930ac, 0x51de003a, 0xc8d75180, 0xbfd06116, 0x21b4f4b5, 0x56b3c423, 0xcfba9599, 0xb8bda50f, 0x2802b89e, 0x5f058808, 0xc60cd9b2, 0xb10be924, 0x2f6f7c87, 0x58684c11, 0xc1611dab, 0xb6662d3d, 0x76dc4190, 0x01db7106, 0x98d220bc, 0xefd5102a, 0x71b18589, 0x06b6b51f, 0x9fbfe4a5, 0xe8b8d433, 0x7807c9a2, 0x0f00f934, 0x9609a88e, 0xe10e9818, 0x7f6a0dbb, 0x086d3d2d, 0x91646c97, 0xe6635c01, 0x6b6b51f4, 0x1c6c6162, 0x856530d8, 0xf262004e, 0x6c0695ed, 0x1b01a57b, 0x8208f4c1, 0xf50fc457, 0x65b0d9c6, 0x12b7e950, 0x8bbeb8ea, 0xfcb9887c, 0x62dd1ddf, 0x15da2d49, 0x8cd37cf3, 0xfbd44c65, 0x4db26158, 0x3ab551ce, 0xa3bc0074, 0xd4bb30e2, 0x4adfa541, 0x3dd895d7, 0xa4d1c46d, 0xd3d6f4fb, 0x4369e96a, 0x346ed9fc, 0xad678846, 0xda60b8d0, 0x44042d73, 0x33031de5, 0xaa0a4c5f, 0xdd0d7cc9, 0x5005713c, 0x270241aa, 0xbe0b1010, 0xc90c2086, 0x5768b525, 0x206f85b3, 0xb966d409, 0xce61e49f, 0x5edef90e, 0x29d9c998, 0xb0d09822, 0xc7d7a8b4, 0x59b33d17, 0x2eb40d81, 0xb7bd5c3b, 0xc0ba6cad, 0xedb88320, 0x9abfb3b6, 0x03b6e20c, 0x74b1d29a, 0xead54739, 0x9dd277af, 0x04db2615, 0x73dc1683, 0xe3630b12, 0x94643b84, 0x0d6d6a3e, 0x7a6a5aa8, 0xe40ecf0b, 0x9309ff9d, 0x0a00ae27, 0x7d079eb1, 0xf00f9344, 0x8708a3d2, 0x1e01f268, 0x6906c2fe, 0xf762575d, 0x806567cb, 0x196c3671, 0x6e6b06e7, 0xfed41b76, 0x89d32be0, 0x10da7a5a, 0x67dd4acc, 0xf9b9df6f, 0x8ebeeff9, 0x17b7be43, 0x60b08ed5, 0xd6d6a3e8, 0xa1d1937e, 0x38d8c2c4, 0x4fdff252, 0xd1bb67f1, 0xa6bc5767, 0x3fb506dd, 0x48b2364b, 0xd80d2bda, 0xaf0a1b4c, 0x36034af6, 0x41047a60, 0xdf60efc3, 0xa867df55, 0x316e8eef, 0x4669be79, 0xcb61b38c, 0xbc66831a, 0x256fd2a0, 0x5268e236, 0xcc0c7795, 0xbb0b4703, 0x220216b9, 0x5505262f, 0xc5ba3bbe, 0xb2bd0b28, 0x2bb45a92, 0x5cb36a04, 0xc2d7ffa7, 0xb5d0cf31, 0x2cd99e8b, 0x5bdeae1d, 0x9b64c2b0, 0xec63f226, 0x756aa39c, 0x026d930a, 0x9c0906a9, 0xeb0e363f, 0x72076785, 0x05005713, 0x95bf4a82, 0xe2b87a14, 0x7bb12bae, 0x0cb61b38, 0x92d28e9b, 0xe5d5be0d, 0x7cdcefb7, 0x0bdbdf21, 0x86d3d2d4, 0xf1d4e242, 0x68ddb3f8, 0x1fda836e, 0x81be16cd, 0xf6b9265b, 0x6fb077e1, 0x18b74777, 0x88085ae6, 0xff0f6a70, 0x66063bca, 0x11010b5c, 0x8f659eff, 0xf862ae69, 0x616bffd3, 0x166ccf45, 0xa00ae278, 0xd70dd2ee, 0x4e048354, 0x3903b3c2, 0xa7672661, 0xd06016f7, 0x4969474d, 0x3e6e77db, 0xaed16a4a, 0xd9d65adc, 0x40df0b66, 0x37d83bf0, 0xa9bcae53, 0xdebb9ec5, 0x47b2cf7f, 0x30b5ffe9, 0xbdbdf21c, 0xcabac28a, 0x53b39330, 0x24b4a3a6, 0xbad03605, 0xcdd70693, 0x54de5729, 0x23d967bf, 0xb3667a2e, 0xc4614ab8, 0x5d681b02, 0x2a6f2b94, 0xb40bbe37, 0xc30c8ea1, 0x5a05df1b, 0x2d02ef8d }; unsigned char * end; crc = ~crc & 0xffffffff; for (end = buf + len; buf < end; ++buf) crc = crc32_table[(crc ^ *buf) & 0xff] ^ (crc >> 8); return ~crc & 0xffffffff; } oprofile-0.9.9/libutil/op_list.h0000664000076400007640000001065212175510132013572 00000000000000/** * @file op_list.h * Kernel-style lists * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Linux kernel authors */ #ifndef OP_LIST_H #define OP_LIST_H /* * Simple doubly linked list implementation. * * Some of the internal functions ("__xxx") are useful when * manipulating whole lists rather than single entries, as * sometimes we already know the next/prev entries and we can * generate better code by using them directly rather than * using the generic single-entry routines. */ struct list_head { struct list_head * next, * prev; }; /** * list_init - init a new entry * @param ptr the list to init * * Init a list head to create an empty list from it */ static __inline__ void list_init(struct list_head * ptr) { ptr->next = ptr; ptr->prev = ptr; } /* * Insert a new entry between two known consecutive entries. * * This is only for internal list manipulation where we know * the prev/next entries already! */ static __inline__ void __list_add(struct list_head * new_entry, struct list_head * prev, struct list_head * next) { next->prev = new_entry; new_entry->next = next; new_entry->prev = prev; prev->next = new_entry; } /** * list_add - add a new entry * @param new new entry to be added * @param head list head to add it after * * Insert a new entry after the specified head. * This is good for implementing stacks. */ static __inline__ void list_add(struct list_head * new_entry, struct list_head * head) { __list_add(new_entry, head, head->next); } /** * list_add_tail - add a new entry * @param new new entry to be added * @param head list head to add it before * * Insert a new entry before the specified head. * This is useful for implementing queues. */ static __inline__ void list_add_tail(struct list_head * new_entry, struct list_head * head) { __list_add(new_entry, head->prev, head); } /* * Delete a list entry by making the prev/next entries * point to each other. * * This is only for internal list manipulation where we know * the prev/next entries already! */ static __inline__ void __list_del(struct list_head * prev, struct list_head * next) { next->prev = prev; prev->next = next; } /** * list_del - deletes entry from list. * @param entry the element to delete from the list. * Note: list_empty on entry does not return true after this, the entry is in an undefined state. */ static __inline__ void list_del(struct list_head * entry) { __list_del(entry->prev, entry->next); } /** * list_del_init - deletes entry from list and reinitialize it. * @param entry the element to delete from the list. */ static __inline__ void list_del_init(struct list_head * entry) { __list_del(entry->prev, entry->next); list_init(entry); } /** * list_empty - tests whether a list is empty * @param head the list to test. */ static __inline__ int list_empty(struct list_head const * head) { return head->next == head; } /** * list_splice - join two lists * @param list the new list to add. * @param head the place to add it in the first list. */ static __inline__ void list_splice(struct list_head * list, struct list_head * head) { struct list_head * first = list->next; if (first != list) { struct list_head * last = list->prev; struct list_head * at = head->next; first->prev = head; head->next = first; last->next = at; at->prev = last; } } /** * list_entry - get the struct for this entry * @param ptr the &struct list_head pointer. * @param type the type of the struct this is embedded in. * @param member the name of the list_struct within the struct. */ #define list_entry(ptr, type, member) \ ((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member))) /** * list_for_each - iterate over a list * @param pos the &struct list_head to use as a loop counter. * @param head the head for your list. */ #define list_for_each(pos, head) \ for (pos = (head)->next; pos != (head); pos = pos->next) /** * list_for_each_safe - iterate over a list safe against removal of list entry * @param pos the &struct list_head to use as a loop counter. * @param n another &struct list_head to use as temporary storage * @param head the head for your list. */ #define list_for_each_safe(pos, n, head) \ for (pos = (head)->next, n = pos->next; pos != (head); \ pos = n, n = pos->next) #define LIST_HEAD_INIT(name) { &(name), &(name) } #define LIST_HEAD(name) struct list_head name = LIST_HEAD_INIT(name) #endif /* OP_LIST_H */ oprofile-0.9.9/libutil/op_libiberty.c0000664000076400007640000000126512175510132014577 00000000000000/** * @file op_libiberty.c * Wrapper for libiberty - always use this instead of * libiberty.h * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include #include "op_libiberty.h" #ifndef HAVE_XCALLOC /* some system have a valid libiberty without xcalloc */ void * xcalloc(size_t n_elem, size_t sz) { void * ptr = xmalloc(n_elem * sz); memset(ptr, '\0', n_elem * sz); return ptr; } #endif #ifndef HAVE_XMEMDUP void * xmemdup (void const * input, size_t copy_size, size_t alloc_size) { void * output = xcalloc(1, alloc_size); memcpy(output, input, copy_size); return output; } #endif oprofile-0.9.9/libutil/op_popt.h0000664000076400007640000000151212175510132013574 00000000000000/** * @file op_popt.h * Wrapper for libpopt - always use this rather * than popt.h * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef OP_POPT_H #define OP_POPT_H #include // not in some versions of popt.h #ifndef POPT_TABLEEND #define POPT_TABLEEND { NULL, '\0', 0, 0, 0, NULL, NULL } #endif #ifdef __cplusplus extern "C" { #endif /** * op_poptGetContext - wrapper for popt * * Use this instead of poptGetContext to cope with * different popt versions. This also handle unrecognized * options. All error are fatal. */ poptContext op_poptGetContext(char const * name, int argc, char const ** argv, struct poptOption const * options, int flags); #ifdef __cplusplus } #endif #endif /* OP_POPT_H */ oprofile-0.9.9/libutil/op_file.c0000664000076400007640000001056012175510132013527 00000000000000/** * @file op_file.c * Useful file management helpers * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include #include #include #include #include #include #include #include #include #include #include "op_file.h" #include "op_libiberty.h" int op_file_readable(char const * file) { struct stat st; return !stat(file, &st) && S_ISREG(st.st_mode) && !access(file, R_OK); } time_t op_get_mtime(char const * file) { struct stat st; if (stat(file, &st)) return 0; return st.st_mtime; } int create_dir(char const * dir) { if (mkdir(dir, 0755)) { /* FIXME: Does not verify existing is a dir */ if (errno == EEXIST) return 0; return errno; } return 0; } int create_path(char const * path) { int ret = 0; char * str = xstrdup(path); char * pos = str[0] == '/' ? str + 1 : str; for ( ; (pos = strchr(pos, '/')) != NULL; ++pos) { *pos = '\0'; ret = create_dir(str); *pos = '/'; if (ret) break; } free(str); return ret; } inline static int is_dot_or_dotdot(char const * name) { return name[0] == '.' && (name[1] == '\0' || (name[1] == '.' && name[2] == '\0')); } /* If non-null is returned, the caller is responsible for freeing * the memory allocated for the return value. */ static char * make_pathname_from_dirent(char const * basedir, struct dirent * ent, struct stat * st_buf) { int name_len; char * name; name_len = strlen(basedir) + strlen("/") + strlen(ent->d_name) + 1; name = xmalloc(name_len); sprintf(name, "%s/%s", basedir, ent->d_name); if (stat(name, st_buf) != 0) { struct stat lstat_buf; int err = errno; if (lstat(name, &lstat_buf) == 0 && S_ISLNK(lstat_buf.st_mode)) { // dangling symlink -- silently ignore } else { fprintf(stderr, "stat failed for %s (%s)\n", name, strerror(err)); } free(name); name = NULL; } return name; } int get_matching_pathnames(void * name_list, get_pathname_callback getpathname, char const * base_dir, char const * filter, enum recursion_type recursion) { /* The algorithm below depends on recursion type (of which there are 3) * and whether the current dirent matches the filter. There are 6 possible * different behaviors, which is why we define 6 case below in the switch * statement of the algorithm. Actually, when the recursion type is * MATCH_DIR_ONLY_RECURSION, the behavior is the same, whether or not the dir * entry matches the filter. However, the behavior of the recursion types * NO_RECURSION and MATCH_ANY_ENTRY_RECURSION do depend on the dir entry * filter match, so for simplicity, we perform this match for all recursion * types and logically OR the match result with the value of the passed * recursion_type. */ #define NO_MATCH 0 #define MATCH 1 DIR * dir; struct dirent * ent; struct stat stat_buffer; int match; char * name = NULL; if (!(dir = opendir(base_dir))) return -1; while ((ent = readdir(dir)) != 0) { if (is_dot_or_dotdot(ent->d_name)) continue; if (fnmatch(filter, ent->d_name, 0) == 0) match = 1; else match = 0; switch (recursion | match) { case NO_RECURSION + NO_MATCH: case MATCH_ANY_ENTRY_RECURSION + NO_MATCH: // nothing to do but continue the loop break; case NO_RECURSION + MATCH: getpathname(ent->d_name, name_list); break; case MATCH_ANY_ENTRY_RECURSION + MATCH: name = make_pathname_from_dirent(base_dir, ent, &stat_buffer); if (name) { if (S_ISDIR(stat_buffer.st_mode)) { get_matching_pathnames( name_list, getpathname, name, filter, recursion); } else { getpathname(name, name_list); } } free(name); break; case MATCH_DIR_ONLY_RECURSION + NO_MATCH: case MATCH_DIR_ONLY_RECURSION + MATCH: name = make_pathname_from_dirent(base_dir, ent, &stat_buffer); if (name && S_ISDIR(stat_buffer.st_mode)) { /* Check if full directory name contains * match to the filter; if so, add it to * name_list and quit; else, recurse. */ if (!fnmatch(filter, name, 0)) { getpathname(name, name_list); } else { get_matching_pathnames( name_list, getpathname, name, filter, recursion); } } free(name); break; } } closedir(dir); return 0; } oprofile-0.9.9/libutil/op_get_time.c0000664000076400007640000000052312175510132014403 00000000000000/** * @file op_get_time.c * Get current time as a string * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include "op_get_time.h" #include char * op_get_time(void) { time_t t = time(NULL); if (t == -1) return ""; return ctime(&t); } oprofile-0.9.9/libutil/op_fileio.h0000664000076400007640000000706212175510132014067 00000000000000/** * @file op_fileio.h * Reading from / writing to files * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef OP_FILEIO_H #define OP_FILEIO_H #ifdef __cplusplus extern "C" { #endif #include "op_types.h" #include /** * op_try_open_file - open a file * @param name file name * @param mode mode string * * Open a file name. * Returns file handle or %NULL on failure. */ FILE * op_try_open_file(char const * name, char const * mode); /** * op_open_file - open a file * @param name file name * @param mode mode string * * Open a file name. * Failure to open is fatal. */ FILE * op_open_file(char const * name, char const * mode); /** * op_read_int_from_file - parse an ASCII value from a file into an integer * @param filename name of file to parse integer value from * @param fatal non-zero if any error must be fatal * * Reads an ASCII integer from the given file. If an error occur and fatal is * zero (u32)-1 is returned else the value read in is returned. */ u32 op_read_int_from_file(char const * filename, int fatal); /** * op_read_long_from_file - parse an ASCII value from a file into an unsigned long * @param filename name of file to parse value from * @param fatal non-zero if any error must be fatal * * Reads an ASCII unsigned long number from the given file. If an error occurs,and * the passed 'fatal' arg is zero, then (unsigned long)-1 is returned; else the * value read in is returned. */ unsigned long op_read_long_from_file(char const * filename, int fatal); /** * op_close_file - close a file * @param fp file pointer * * Closes a file pointer. A non-fatal * error message is produced if the * close fails. */ void op_close_file(FILE * fp); /** * op_write_file - write to a file * @param fp file pointer * @param buf buffer * @param size nr. of bytes to write * * Write size bytes of buffer buf to a file. * Failure is fatal. */ void op_write_file(FILE * fp, void const * buf, size_t size); /** * op_write_u32 - write four bytes to a file * @param fp file pointer * @param val value to write * * Write an unsigned four-byte value val to a file. * Failure is fatal. * * No byte-swapping is done. */ void op_write_u32(FILE * fp, u32 val); /** * op_write_u64 - write eight bytes to a file * @param fp file pointer * @param val value to write * * Write an unsigned eight-byte value val to a file. * Failure is fatal. * * No byte-swapping is done. */ void op_write_u64(FILE * fp, u64 val); /** * op_write_u8 - write a byte to a file * @param fp file pointer * @param val value to write * * Write an unsigned byte value val to a file. * Failure is fatal. */ void op_write_u8(FILE * fp, u8 val); /** * op_get_line - read an ASCII line from a file * @param fp file pointer * * Get a line of ASCII text from a file. The file is read * up to the first '\0' or '\n'. A trailing '\n' is deleted. * * Returns the dynamically-allocated string containing * that line. At the end of a file NULL will be returned. * be returned. * * The string returned must be free()d by the caller. * * getline() is not a proper solution to replace this function */ char * op_get_line(FILE * fp); /** * calc_crc32 * @param crc current value * @param buf pointer to buffer * @param len * * Returns current crc computed from the crc argument and the * characters in len characters in buf. */ unsigned long calc_crc32(unsigned long crc, unsigned char * buf, size_t len); #ifdef __cplusplus } #endif #endif /* OP_FILEIO_H */ oprofile-0.9.9/libutil/op_lockfile.h0000664000076400007640000000111412175510132014400 00000000000000/** * @file op_lockfile.h * PID-based lockfile management * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef OP_LOCKFILE_H #define OP_LOCKFILE_H #ifdef __cplusplus extern "C" { #endif #include /** * op_write_lock_file - write a lock file * \return errno on failure, or 0 on success * * Write the pid into the given lock file. Stale * lock files are detected and reset. */ int op_write_lock_file(char const * file); #ifdef __cplusplus } #endif #endif /* OP_LOCKFILE_H */ oprofile-0.9.9/libutil/op_libiberty.h0000664000076400007640000000353712175510132014610 00000000000000/** * @file op_libiberty.h * Wrapper for libiberty - always use this instead of * libiberty.h * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef OP_LIBIBERTY_H #define OP_LIBIBERTY_H #include #include "config.h" #ifdef MALLOC_ATTRIBUTE_OK #define OP_ATTRIB_MALLOC __attribute__((malloc)) #else #define OP_ATTRIB_MALLOC #endif #ifdef HAVE_LIBIBERTY_H #include #else #ifdef __cplusplus extern "C" { #endif /* some system have a libiberty.a but no libiberty.h so we must provide * ourself the missing proto */ #ifndef HAVE_LIBIBERTY_H /* Set the program name used by xmalloc. */ void xmalloc_set_program_name(char const *); /* Allocate memory without fail. If malloc fails, this will print a message to stderr (using the name set by xmalloc_set_program_name, if any) and then call xexit. */ void * xmalloc(size_t) OP_ATTRIB_MALLOC; /* Reallocate memory without fail. This works like xmalloc. Note, realloc type functions are not suitable for attribute malloc since they may return the same address across multiple calls. */ void * xrealloc(void *, size_t); /* Allocate memory without fail and set it to zero. This works like xmalloc */ void * xcalloc(size_t, size_t) OP_ATTRIB_MALLOC; /* Copy a string into a memory buffer without fail. */ char * xstrdup(char const *) OP_ATTRIB_MALLOC; /** * Duplicates a region of memory without fail. First, alloc_size bytes * are allocated, then copy_size bytes from input are copied into * it, and the new memory is returned. If fewer bytes are copied than were * allocated, the remaining memory is zeroed. */ void * xmemdup(void const *, size_t, size_t) OP_ATTRIB_MALLOC; #endif /* !HAVE_LIBIBERTY_H */ #ifdef __cplusplus } #endif #endif /* !HAVE_LIBIBERTY_H */ #endif /* OP_LIBIBERTY_H */ oprofile-0.9.9/libutil/op_string.c0000664000076400007640000000165112175510132014117 00000000000000/** * @file op_string.c * general purpose C string handling implementation. * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include #include "op_libiberty.h" char * op_xstrndup(char const * s, size_t len) { return xmemdup(s, len, len + 1); } size_t op_hash_string(char const * str) { size_t hash = 0; for (; *str; ++str) hash ^= (hash << 16) ^ (hash >> 8) ^ *str; return hash; } int strisprefix(char const * str, char const * prefix) { return strstr(str, prefix) == str; } char const * skip_ws(char const * c) { while (*c == ' ' || *c == '\t' || *c == '\n') ++c; return c; } char const * skip_nonws(char const * c) { while (*c && *c != ' ' && *c != '\t' && *c != '\n') ++c; return c; } int empty_line(char const * c) { return !*skip_ws(c); } int comment_line(char const * c) { return *skip_ws(c) == '#'; } oprofile-0.9.9/libutil/tests/0000775000076400007640000000000012175511554013177 500000000000000oprofile-0.9.9/libutil/tests/string_tests.c0000664000076400007640000000463712175510132016014 00000000000000/** * @file string_tests.c * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include "op_string.h" #include #include #include void error(char const * str) { fprintf(stderr, "%s\n", str); exit(EXIT_FAILURE); } int main() { if (!strisprefix("", "")) error("\"\" is not a prefix of \"\""); if (!strisprefix("a", "")) error("\"\" is not a prefix of a"); if (!strisprefix("a", "a")) error("a is not a prefix of a"); if (!strisprefix("aa", "a")) error("a is not a prefix of aa"); if (strisprefix("a", "b")) error("b is a prefix of a"); if (strcmp(skip_ws(""), "")) error("skip_ws of \"\" is not \"\""); if (strcmp(skip_ws("\na"), "a")) error("skip_ws of \\na is not a"); if (strcmp(skip_ws("\n\na"), "a")) error("skip_ws of \\n\\na is not a"); if (strcmp(skip_ws("\n a"), "a")) error("skip_ws of \\n a is not a"); if (strcmp(skip_ws("\n \ta"), "a")) error("skip_ws of \\n \\ta is not a"); if (strcmp(skip_ws("\n \t"), "")) error("skip_ws of \\n \\t is not \"\""); if (strcmp(skip_ws(" "), "")) error("skip_ws of \" \" is not \"\""); if (strcmp(skip_nonws(""), "")) error("skip_nonws of \"\" is not \"\""); if (strcmp(skip_nonws("a"), "")) error("skip_nonws of a is not \"\""); if (strcmp(skip_nonws("\n"), "\n")) error("skip_nonws of \\n is not \\n"); if (strcmp(skip_nonws(" "), " ")) error("skip_nonws of \" \" is not \" \""); if (strcmp(skip_nonws("\t"), "\t")) error("skip_nonws of \\t is not \\t"); if (strcmp(skip_nonws("a\n"), "\n")) error("skip_nonws of a\\n is not \\n"); if (strcmp(skip_nonws("ab"), "")) error("skip_nonws of ab is not \"\""); if (!empty_line("")) error("empty_line is false for \"\""); if (!empty_line("\n\t ")) error("empty_line is false for \"\\n\\n \""); if (!empty_line(" ")) error("empty_line is false for \" \""); if (empty_line("\r")) error("empty_line is true for \\r"); if (comment_line("")) error("comment_line is true for \"\""); if (comment_line("\n")) error("comment_line is true for \n"); if (!comment_line("#")) error("comment_line is false for #"); if (!comment_line(" #")) error("comment_line is false for \" #\""); /* this is what the spec says */ if (!comment_line("\n#")) error("comment_line is false for \\n#"); if (!comment_line("\t#")) error("comment_line is false for \\t#"); return EXIT_SUCCESS; } oprofile-0.9.9/libutil/tests/Makefile.in0000664000076400007640000004515512175510234015170 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ check_PROGRAMS = file_tests$(EXEEXT) string_tests$(EXEEXT) TESTS = $(check_PROGRAMS) subdir = libutil/tests DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am_file_tests_OBJECTS = file_tests.$(OBJEXT) file_tests_OBJECTS = $(am_file_tests_OBJECTS) file_tests_DEPENDENCIES = ../libutil.a am_string_tests_OBJECTS = string_tests.$(OBJEXT) string_tests_OBJECTS = $(am_string_tests_OBJECTS) string_tests_DEPENDENCIES = ../libutil.a DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(file_tests_SOURCES) $(string_tests_SOURCES) DIST_SOURCES = $(file_tests_SOURCES) $(string_tests_SOURCES) ETAGS = etags CTAGS = ctags am__tty_colors = \ red=; grn=; lgn=; blu=; std= DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBERTY_LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ AM_CPPFLAGS = \ -I ${top_srcdir}/libutil @OP_CPPFLAGS@ AM_CFLAGS = @OP_CFLAGS@ file_tests_SOURCES = file_tests.c file_tests_LDADD = ../libutil.a string_tests_SOURCES = string_tests.c string_tests_LDADD = ../libutil.a all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libutil/tests/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign libutil/tests/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-checkPROGRAMS: @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list file_tests$(EXEEXT): $(file_tests_OBJECTS) $(file_tests_DEPENDENCIES) @rm -f file_tests$(EXEEXT) $(LINK) $(file_tests_OBJECTS) $(file_tests_LDADD) $(LIBS) string_tests$(EXEEXT): $(string_tests_OBJECTS) $(string_tests_DEPENDENCIES) @rm -f string_tests$(EXEEXT) $(LINK) $(string_tests_OBJECTS) $(string_tests_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file_tests.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/string_tests.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags check-TESTS: $(TESTS) @failed=0; all=0; xfail=0; xpass=0; skip=0; \ srcdir=$(srcdir); export srcdir; \ list=' $(TESTS) '; \ $(am__tty_colors); \ if test -n "$$list"; then \ for tst in $$list; do \ if test -f ./$$tst; then dir=./; \ elif test -f $$tst; then dir=; \ else dir="$(srcdir)/"; fi; \ if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$tst[\ \ ]*) \ xpass=`expr $$xpass + 1`; \ failed=`expr $$failed + 1`; \ col=$$red; res=XPASS; \ ;; \ *) \ col=$$grn; res=PASS; \ ;; \ esac; \ elif test $$? -ne 77; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$tst[\ \ ]*) \ xfail=`expr $$xfail + 1`; \ col=$$lgn; res=XFAIL; \ ;; \ *) \ failed=`expr $$failed + 1`; \ col=$$red; res=FAIL; \ ;; \ esac; \ else \ skip=`expr $$skip + 1`; \ col=$$blu; res=SKIP; \ fi; \ echo "$${col}$$res$${std}: $$tst"; \ done; \ if test "$$all" -eq 1; then \ tests="test"; \ All=""; \ else \ tests="tests"; \ All="All "; \ fi; \ if test "$$failed" -eq 0; then \ if test "$$xfail" -eq 0; then \ banner="$$All$$all $$tests passed"; \ else \ if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \ banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \ fi; \ else \ if test "$$xpass" -eq 0; then \ banner="$$failed of $$all $$tests failed"; \ else \ if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \ banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \ fi; \ fi; \ dashes="$$banner"; \ skipped=""; \ if test "$$skip" -ne 0; then \ if test "$$skip" -eq 1; then \ skipped="($$skip test was not run)"; \ else \ skipped="($$skip tests were not run)"; \ fi; \ test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$skipped"; \ fi; \ report=""; \ if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ report="Please report to $(PACKAGE_BUGREPORT)"; \ test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$report"; \ fi; \ dashes=`echo "$$dashes" | sed s/./=/g`; \ if test "$$failed" -eq 0; then \ echo "$$grn$$dashes"; \ else \ echo "$$red$$dashes"; \ fi; \ echo "$$banner"; \ test -z "$$skipped" || echo "$$skipped"; \ test -z "$$report" || echo "$$report"; \ echo "$$dashes$$std"; \ test "$$failed" -eq 0; \ else :; fi distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) $(MAKE) $(AM_MAKEFLAGS) check-TESTS check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-checkPROGRAMS clean-generic clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: check-am install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \ clean-checkPROGRAMS clean-generic clean-libtool ctags \ distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/libutil/tests/file_tests.c0000664000076400007640000000262212175510132015415 00000000000000/** * @file file_tests.c * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include "op_file.h" #include #include #include #include #include static char * tests[][2] = { { "/usr/bin/../bin", "/usr/bin" }, { "/../usr/bin/", "/usr/bin" }, { "/../../usr/bin/", "/usr/bin" }, { "/../../usr/bin/.", "/usr/bin" }, { "/../../usr/bin/./", "/usr/bin" }, { "/usr/./bin", "/usr/bin" }, { "/usr/././bin", "/usr/bin" }, { "/usr///", "/usr" }, { "../", "/" }, { "./", "/usr" }, { ".", "/usr" }, { "./../", "/" }, { "bin/../bin/../", "/usr" }, { "../../../../../", "/" }, { "/usr/bin/../../..", "/" }, { "/usr/bin/../../../", "/" }, { "././.", "/usr" }, /* POSIX namespace ignored by realpath(3) */ { "//", "/" }, { "//usr", "/usr" }, { "///", "/" }, { NULL, NULL }, }; int main(void) { char tmp[PATH_MAX]; size_t i = 0; if (chdir("/usr")) { fprintf(stderr, "chdir(\"/usr\") failed for %s\n", tests[i][0]); exit(EXIT_FAILURE); } while (tests[i][0]) { if (!realpath(tests[i][0], tmp)) { fprintf(stderr, "NULL return for %s\n", tests[i][0]); exit(EXIT_FAILURE); } if (strcmp(tmp, tests[i][1])) { fprintf(stderr, "%s does not match %s given %s\n", tmp, tests[i][1], tests[i][0]); exit(EXIT_FAILURE); } ++i; } return EXIT_SUCCESS; } oprofile-0.9.9/libutil/tests/Makefile.am0000664000076400007640000000047012175510132015143 00000000000000AM_CPPFLAGS = \ -I ${top_srcdir}/libutil @OP_CPPFLAGS@ AM_CFLAGS = @OP_CFLAGS@ LIBS = @LIBERTY_LIBS@ check_PROGRAMS = file_tests string_tests file_tests_SOURCES = file_tests.c file_tests_LDADD = ../libutil.a string_tests_SOURCES = string_tests.c string_tests_LDADD = ../libutil.a TESTS = ${check_PROGRAMS} oprofile-0.9.9/libutil/op_version.c0000664000076400007640000000077012175510132014277 00000000000000/** * @file op_version.c * output version string * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include #include #include "op_version.h" #include "config.h" void show_version(char const * app_name) { /* Do not change the version format: it is documented in html doc */ printf("%s: " PACKAGE " " VERSION " compiled on " __DATE__ " " __TIME__ "\n", app_name); exit(EXIT_SUCCESS); } oprofile-0.9.9/libutil/Makefile.am0000664000076400007640000000102312175510132013774 00000000000000SUBDIRS = . tests AM_CPPFLAGS=-I ${top_srcdir}/libop @OP_CPPFLAGS@ AM_CFLAGS = @OP_CFLAGS@ noinst_LIBRARIES = libutil.a libutil_a_SOURCES = \ op_deviceio.c \ op_lockfile.c \ op_file.c \ op_fileio.c \ op_get_time.c \ op_libiberty.c \ op_popt.c \ op_string.c \ op_cpufreq.c \ op_deviceio.h \ op_fileio.h \ op_libiberty.h \ op_lockfile.h \ op_types.h \ op_file.h \ op_get_time.h \ op_list.h \ op_popt.h \ op_string.h \ op_cpufreq.h \ op_version.c \ op_version.h \ op_growable_buffer.c \ op_growable_buffer.h oprofile-0.9.9/libutil/op_popt.c0000664000076400007640000000162212175510132013571 00000000000000/** * @file op_popt.c * Wrapper for libpopt - always use this rather * than popt.h * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include #include #include "op_libiberty.h" #include "op_popt.h" poptContext op_poptGetContext(char const * name, int argc, char const ** argv, struct poptOption const * options, int flags) { poptContext optcon; int c; xmalloc_set_program_name(argv[0]); #ifdef CONST_POPT optcon = poptGetContext(name, argc, argv, options, flags); #else optcon = poptGetContext((char *)name, argc, (char **)argv, options, flags); #endif c = poptGetNextOpt(optcon); if (c < -1) { fprintf(stderr, "%s: %s: %s\n", argv[0], poptBadOption(optcon, POPT_BADOPTION_NOALIAS), poptStrerror(c)); poptPrintHelp(optcon, stderr, 0); exit(EXIT_FAILURE); } return optcon; } oprofile-0.9.9/libpp/0000775000076400007640000000000012175511556011501 500000000000000oprofile-0.9.9/libpp/diff_container.h0000664000076400007640000000174412175510132014537 00000000000000/** * @file diff_container.h * Container for diffed symbols * * @remark Copyright 2005 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #ifndef DIFF_CONTAINER_H #define DIFF_CONTAINER_H #include "profile_container.h" /** * Store two profiles for diffing. */ class diff_container : noncopyable { public: /// populate the collection of diffed symbols diff_container(profile_container const & pc1, profile_container const & pc2); ~diff_container() {} /// return a collection of diffed symbols diff_collection const get_symbols(profile_container::symbol_choice & choice) const; /// total count for 'new' profile count_array_t const samples_count() const; private: /// first profile profile_container const & pc1; /// second profile profile_container const & pc2; /// samples count for pc1 count_array_t total1; /// samples count for pc2 count_array_t total2; }; #endif /* !DIFF_CONTAINER_H */ oprofile-0.9.9/libpp/symbol_container.h0000664000076400007640000000473612175510132015140 00000000000000/** * @file symbol_container.h * Internal container for symbols * * @remark Copyright 2002, 2003 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #ifndef SYMBOL_CONTAINER_H #define SYMBOL_CONTAINER_H #include #include #include "symbol.h" #include "symbol_functors.h" /** * An arbitrary container of symbols. Supports lookup * by name, by VMA, and by file location. * * Lookup by name or by VMA is O(n). Lookup by file location * is O(log(n)). */ class symbol_container { public: /// container type typedef std::set symbols_t; typedef symbols_t::size_type size_type; /// return the number of symbols stored size_type size() const; /** * Insert a new symbol. If the symbol already exists in the container, * then the sample counts are accumulated. * Returns the newly created symbol or the existing one. This pointer * remains valid during the whole life time of a symbol_container * object and is warranted unique according to less_symbol comparator. * Can only be done before any file-location based lookups, since the * two lookup methods are not synchronised. */ symbol_entry const * insert(symbol_entry const &); /// find the symbols at the given filename and line number, if any symbol_collection const find(debug_name_id filename, size_t linenr) const; /// find the symbols defined in the given filename, if any symbol_collection const find(debug_name_id filename) const; /// find the symbol with the given image_name vma if any symbol_entry const * find_by_vma(std::string const & image_name, bfd_vma vma) const; /// Search a symbol. Return NULL if not found. symbol_entry const * find(symbol_entry const & symbol) const; /// return start of symbols symbols_t::iterator begin(); /// return end of symbols symbols_t::iterator end(); private: /// build the symbol by file-location cache void build_by_loc() const; /** * The main container of symbols. Multiple symbols with the same * name are allowed. */ symbols_t symbols; /** * Differently-named symbol at same file location are allowed e.g. * template instantiation. */ typedef std::multiset symbols_by_loc_t; // must be declared after the set to ensure a correct life-time. /** * Symbols sorted by location order. Lazily built on request, * so mutable. */ mutable symbols_by_loc_t symbols_by_loc; }; #endif /* SYMBOL_CONTAINER_H */ oprofile-0.9.9/libpp/locate_images.cpp0000664000076400007640000001204612175510132014711 00000000000000/** * @file locate_images.cpp * Command-line helper * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #include "file_manip.h" #include "locate_images.h" #include "string_manip.h" #include #include #include #include using namespace std; int extra_images::suid; extra_images::extra_images() : uid(++suid) { } void extra_images::populate(vector const & paths, string const & prefix_path) { vector::const_iterator cit = paths.begin(); vector::const_iterator end = paths.end(); for (; cit != end; ++cit) { string const path = op_realpath(prefix_path + *cit); list file_list; create_file_list(file_list, path, "*", true); list::const_iterator lit = file_list.begin(); list::const_iterator lend = file_list.end(); for (; lit != lend; ++lit) { value_type v(op_basename(*lit), op_dirname(*lit)); images.insert(v); } } } void extra_images::populate(vector const & paths, string const & archive_path_, string const & root_path_) { archive_path = archive_path_; if (!archive_path.empty()) archive_path = op_realpath(archive_path); root_path = op_realpath(root_path_); if (!root_path.empty()) root_path = op_realpath(root_path); if (root_path.empty() && archive_path.empty()) populate(paths, ""); if (!archive_path.empty()) populate(paths, archive_path); if (!root_path.empty() && root_path != archive_path) populate(paths, root_path); } vector const extra_images::find(string const & name) const { extra_images::matcher match(name); return find(match); } vector const extra_images::find(extra_images::matcher const & match) const { vector matches; const_iterator cit = images.begin(); const_iterator end = images.end(); for (; cit != end; ++cit) { if (match(cit->first)) matches.push_back(cit->second + '/' + cit->first); } return matches; } namespace { /** * Function object for matching a module filename, which * has its own special mangling rules in 2.6 kernels. */ struct module_matcher : public extra_images::matcher { public: explicit module_matcher(string const & s) : extra_images::matcher(s) {} virtual bool operator()(string const & candidate) const { if (candidate.length() != value.length()) return false; for (string::size_type i = 0 ; i < value.length() ; ++i) { if (value[i] == candidate[i]) continue; if (value[i] == '_' && (candidate[i] == ',' || candidate[i] == '-')) continue; return false; } return true; } }; } // anon namespace string const extra_images::locate_image(string const & image_name, image_error & error, bool fixup) const { // Skip search since root_path can be non empty and we want // to lookup only in root_path in this case. if (!archive_path.empty()) { string image = op_realpath(archive_path + image_name); if (op_file_readable(image)) { error = image_ok; return fixup ? image : image_name; } if (errno == EACCES) { error = image_unreadable; return image_name; } } // We catch a case where root_path.empty() since we skipped a // search in "/" above when archive_path is empty. The case where // root_path.empty() && archive_path.empty() is the normal one, none // of --root or archive: as been given on command line. if (!root_path.empty() || archive_path.empty()) { string image = op_realpath(root_path + image_name); if (op_file_readable(image)) { error = image_ok; return fixup ? image : image_name; } } error = image_not_found; return image_name; } string const extra_images::find_image_path(string const & image_name, image_error & error, bool fixup) const { error = image_ok; string const image = locate_image(image_name, error, fixup); if (error != image_not_found) return image; string const base = op_basename(image); vector result = find(base); // not found, try a module search if (result.empty()) result = find(module_matcher(base + ".ko")); if (result.empty()) { error = image_not_found; return image_name; } if (result.size() == 1) { error = image_ok; return fixup ? result[0] : image_name; } // We can't get multiple result except if only one result is prefixed // by archive_path or by root_path. size_t count = 0; size_t index = 0; for (size_t i = 0; i < result.size() && count < 2; ++i) { if (is_prefix(result[i], archive_path)) { index = i; ++count; } } if (count == 0) { for (size_t i = 0; i < result.size() && count < 2; ++i) { if (is_prefix(result[i], root_path)) { index = i; ++count; } } } if (count == 1) { error = image_ok; return fixup ? result[index] : image_name; } error = image_multiple_match; return image_name; } string extra_images::strip_path_prefix(string const & image) const { if (archive_path.length() && is_prefix(image, archive_path)) return image.substr(archive_path.size()); if (root_path.length() && is_prefix(image, root_path)) return image.substr(root_path.size()); return image; } oprofile-0.9.9/libpp/image_errors.h0000664000076400007640000000201312175510132014231 00000000000000/** * @file image_errors.h * Report errors in images * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon */ #ifndef IMAGE_ERRORS_H #define IMAGE_ERRORS_H #include #include class inverted_profile; class extra_images; /// possible reasons why we can't read a binary image enum image_error { image_ok = 0, image_not_found, image_unreadable, image_format_failure, image_multiple_match }; /// output why the image passed can't be read to stderr, we warranty only one /// error report by image name. void report_image_error(std::string const & image, image_error error, bool fatal, extra_images const & extra); /// output why the image passed can't be read to stderr void report_image_error(inverted_profile const & profile, bool fatal, extra_images const & extra); /// output why any bad images can't be read to stderr void report_image_errors(std::list const & plist, extra_images const & extra); #endif /* IMAGE_ERRORS_H */ oprofile-0.9.9/libpp/profile.cpp0000664000076400007640000001125512175510132013556 00000000000000/** * @file profile.cpp * Encapsulation for samples files over all profile classes * belonging to the same binary image * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #include #include #include #include #include #include #include #include "op_exception.h" #include "op_header.h" #include "op_config.h" #include "op_sample_file.h" #include "profile.h" #include "op_bfd.h" #include "cverb.h" #include "populate_for_spu.h" using namespace std; profile_t::profile_t() : start_offset(0) { } // static member count_type profile_t::sample_count(string const & filename) { odb_t samples_db; open_sample_file(filename, samples_db); count_type count = 0; odb_node_nr_t node_nr, pos; odb_node_t * node = odb_get_iterator(&samples_db, &node_nr); for (pos = 0; pos < node_nr; ++pos) count += node[pos].value; odb_close(&samples_db); return count; } //static member enum profile_type profile_t::is_spu_sample_file(string const & filename) { profile_type retval; odb_t samples_db; open_sample_file(filename, samples_db); opd_header const & hdr = *static_cast(odb_get_data(&samples_db)); retval = hdr.spu_profile ? cell_spu_profile: normal_profile; odb_close(&samples_db); return retval; } //static member void profile_t::open_sample_file(string const & filename, odb_t & db) { // Check first if the sample file version is ok else odb_open() can // fail and the error message will be obscure. opd_header head = read_header(filename); if (head.version != OPD_VERSION) { ostringstream os; os << "oprofpp: samples files version mismatch, are you " << "running a daemon and post-profile tools with version " << "mismatch ?\n"; throw op_fatal_error(os.str()); } int rc = odb_open(&db, filename.c_str(), ODB_RDONLY, sizeof(struct opd_header)); if (rc) throw op_fatal_error(filename + ": " + strerror(rc)); } void profile_t::add_sample_file(string const & filename) { odb_t samples_db; open_sample_file(filename, samples_db); opd_header const & head = *static_cast(odb_get_data(&samples_db)); // if we already read a sample file header pointer is non null if (file_header.get()) op_check_header(head, *file_header, filename); else file_header.reset(new opd_header(head)); odb_node_nr_t node_nr, pos; odb_node_t * node = odb_get_iterator(&samples_db, &node_nr); for (pos = 0; pos < node_nr; ++pos) { ordered_samples_t::iterator it = ordered_samples.find(node[pos].key); if (it != ordered_samples.end()) { it->second += node[pos].value; } else { ordered_samples_t::value_type val(node[pos].key, node[pos].value); ordered_samples.insert(val); } } odb_close(&samples_db); } void profile_t::set_offset(op_bfd const & abfd) { // if no bfd file has been located for this samples file, we can't // shift sample because abfd.get_symbol_range() return the whole // address space and setting a non zero start_offset will overflow // in get_symbol_range() caller. if (abfd.valid()) { opd_header const & header = get_header(); if (header.anon_start) { start_offset = header.anon_start; } else if (header.is_kernel) { start_offset = abfd.get_start_offset(0); } } cverb << (vdebug) << "start_offset is now " << start_offset << endl; } profile_t::iterator_pair profile_t::samples_range(odb_key_t start, odb_key_t end) const { // Check the start position isn't before start_offset: // this avoids wrapping/underflowing start/end. // This can happen on e.g. ARM kernels, where .init is // mapped before .text - we just have to skip any such // .init symbols. if (start < start_offset) { return make_pair(const_iterator(ordered_samples.end(), 0), const_iterator(ordered_samples.end(), 0)); } start -= start_offset; end -= start_offset; // sanity check if start > end caller will enter into an infinite loop if (start > end) { throw op_fatal_error("profile_t::samples_range(): start > end" " something wrong with kernel or module layout ?\n" "please report problem to " "oprofile-list@lists.sourceforge.net"); } ordered_samples_t::const_iterator first = ordered_samples.lower_bound(start); ordered_samples_t::const_iterator last = ordered_samples.lower_bound(end); return make_pair(const_iterator(first, start_offset), const_iterator(last, start_offset)); } profile_t::iterator_pair profile_t::samples_range() const { ordered_samples_t::const_iterator first = ordered_samples.begin(); ordered_samples_t::const_iterator last = ordered_samples.end(); return make_pair(const_iterator(first, start_offset), const_iterator(last, start_offset)); } oprofile-0.9.9/libpp/populate.h0000664000076400007640000000106112175510132013406 00000000000000/** * @file populate.h * Fill up a profile_container from inverted profiles * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef POPULATE_H #define POPULATE_H class profile_container; class inverted_profile; class string_filter; /// Load all sample file information for exactly one binary image. void populate_for_image(profile_container & samples, inverted_profile const & ip, string_filter const & symbol_filter, bool * has_debug_info); #endif /* POPULATE_H */ oprofile-0.9.9/libpp/symbol_container.cpp0000664000076400007640000000521212175510132015461 00000000000000/** * @file symbol_container.cpp * Internal container for symbols * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #include #include #include #include #include "symbol_container.h" using namespace std; symbol_container::size_type symbol_container::size() const { return symbols.size(); } symbol_entry const * symbol_container::insert(symbol_entry const & symb) { pair p = symbols.insert(symb); if (!p.second) { // safe: count is not used by sorting criteria symbol_entry * symbol = const_cast(&*p.first); symbol->sample.counts += symb.sample.counts; } return &*p.first; } symbol_collection const symbol_container::find(debug_name_id filename, size_t linenr) const { build_by_loc(); symbol_entry symbol; symbol.sample.file_loc.filename = filename; symbol.sample.file_loc.linenr = linenr; symbol_collection result; typedef symbols_by_loc_t::const_iterator it; pair p_it = symbols_by_loc.equal_range(&symbol); for ( ; p_it.first != p_it.second; ++p_it.first) result.push_back(*p_it.first); return result; } symbol_collection const symbol_container::find(debug_name_id filename) const { build_by_loc(); symbol_entry symbol; symbol.sample.file_loc.filename = filename; symbol.sample.file_loc.linenr = 0; typedef symbols_by_loc_t::const_iterator it; it first = symbols_by_loc.lower_bound(&symbol); symbol.sample.file_loc.linenr = (unsigned int)size_t(-1); it last = symbols_by_loc.upper_bound(&symbol); symbol_collection result; for ( ; first != last ; ++first) result.push_back(*first); return result; } void symbol_container::build_by_loc() const { if (!symbols_by_loc.empty()) return; symbols_t::const_iterator cit = symbols.begin(); symbols_t::const_iterator end = symbols.end(); for (; cit != end; ++cit) symbols_by_loc.insert(&*cit); } symbol_entry const * symbol_container::find_by_vma(string const & image_name, bfd_vma vma) const { // FIXME: this is too inefficient probably symbols_t::const_iterator it; for (it = symbols.begin(); it != symbols.end(); ++it) { if (it->sample.vma == vma && image_names.name(it->image_name) == image_name) return &*it; } return 0; } symbol_container::symbols_t::iterator symbol_container::begin() { return symbols.begin(); } symbol_container::symbols_t::iterator symbol_container::end() { return symbols.end(); } symbol_entry const * symbol_container::find(symbol_entry const & symbol) const { symbols_t::const_iterator it = symbols.find(symbol); return it == symbols.end() ? 0 : &*it; } oprofile-0.9.9/libpp/format_output.cpp0000664000076400007640000006344712175510132015040 00000000000000/** * @file format_output.cpp * outputting format for symbol lists * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ /* older glibc has C99 INFINITY in _GNU_SOURCE */ #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include #include #include #include #include #include "string_manip.h" #include "string_filter.h" #include "format_output.h" #include "profile_container.h" #include "callgraph_container.h" #include "diff_container.h" #include "arrange_profiles.h" #include "xml_output.h" #include "xml_utils.h" #include "cverb.h" using namespace std; namespace { string const get_linenr_info(file_location const floc, bool lf) { ostringstream out; string const & filename = lf ? debug_names.name(floc.filename) : debug_names.basename(floc.filename); if (!filename.empty()) out << filename << ":" << floc.linenr; else out << "(no location information)"; return out.str(); } string get_vma(bfd_vma vma, bool vma_64) { ostringstream out; int width = vma_64 ? 16 : 8; out << hex << setw(width) << setfill('0') << vma; return out.str(); } string get_percent(count_type dividend, count_type divisor) { double ratio = op_ratio(dividend, divisor); return ::format_percent(ratio * 100, percent_int_width, percent_fract_width); } bool extract_linenr_info(string const & info, string & file, size_t & line) { line = 0; file = ""; string::size_type colon_pos = info.find(":"); if (colon_pos == string::npos) return false; file = info.substr(0, colon_pos); istringstream is_info(info.substr(colon_pos+1)); is_info >> line; return true; } } // anonymous namespace namespace format_output { formatter::formatter(extra_images const & extra) : nr_classes(1), flags(ff_none), vma_64(false), long_filenames(false), need_header(true), global_percent(false), extra_found_images(extra) { format_map[ff_vma] = field_description(9, "vma", &formatter::format_vma); format_map[ff_nr_samples] = field_description(9, "samples", &formatter::format_nr_samples); format_map[ff_nr_samples_cumulated] = field_description(14, "cum. samples", &formatter::format_nr_cumulated_samples); format_map[ff_percent] = field_description(9, "%", &formatter::format_percent); format_map[ff_percent_cumulated] = field_description(11, "cum. %", &formatter::format_cumulated_percent); format_map[ff_linenr_info] = field_description(28, "linenr info", &formatter::format_linenr_info); format_map[ff_image_name] = field_description(25, "image name", &formatter::format_image_name); format_map[ff_app_name] = field_description(25, "app name", &formatter::format_app_name); format_map[ff_symb_name] = field_description(30, "symbol name", &formatter::format_symb_name); format_map[ff_percent_details] = field_description(9, "%", &formatter::format_percent_details); format_map[ff_percent_cumulated_details] = field_description(10, "cum. %", &formatter::format_cumulated_percent_details); format_map[ff_diff] = field_description(10, "diff %", &formatter::format_diff); } formatter::~formatter() { } void formatter::set_nr_classes(size_t nr) { nr_classes = nr; } void formatter::add_format(format_flags flag) { flags = static_cast(flags | flag); } void formatter::show_header(bool on_off) { need_header = on_off; } void formatter::vma_format_64bit(bool on_off) { vma_64 = on_off; } void formatter::show_long_filenames(bool on_off) { long_filenames = on_off; } void formatter::show_global_percent(bool on_off) { global_percent = on_off; } void formatter::output_header(ostream & out) { if (!need_header) return; size_t padding = 0; // first output the vma field if (flags & ff_vma) padding = output_header_field(out, ff_vma, padding); // the field repeated for each profile class for (size_t pclass = 0 ; pclass < nr_classes; ++pclass) { if (flags & ff_nr_samples) padding = output_header_field(out, ff_nr_samples, padding); if (flags & ff_nr_samples_cumulated) padding = output_header_field(out, ff_nr_samples_cumulated, padding); if (flags & ff_percent) padding = output_header_field(out, ff_percent, padding); if (flags & ff_percent_cumulated) padding = output_header_field(out, ff_percent_cumulated, padding); if (flags & ff_diff) padding = output_header_field(out, ff_diff, padding); if (flags & ff_percent_details) padding = output_header_field(out, ff_percent_details, padding); if (flags & ff_percent_cumulated_details) padding = output_header_field(out, ff_percent_cumulated_details, padding); } // now the remaining field if (flags & ff_linenr_info) padding = output_header_field(out, ff_linenr_info, padding); if (flags & ff_image_name) padding = output_header_field(out, ff_image_name, padding); if (flags & ff_app_name) padding = output_header_field(out, ff_app_name, padding); if (flags & ff_symb_name) padding = output_header_field(out, ff_symb_name, padding); out << "\n"; } /// describe each possible field of colummned output. // FIXME: use % of the screen width here. sum of % equal to 100, then calculate // ratio between 100 and the selected % to grow non fixed field use also // lib[n?]curses to get the console width (look info source) (so on add a fixed // field flags) size_t formatter:: output_field(ostream & out, field_datum const & datum, format_flags fl, size_t padding, bool hide_immutable) { if (!hide_immutable) { out << string(padding, ' '); field_description const & field(format_map[fl]); string str = (this->*field.formatter)(datum); out << str; // at least one separator char padding = 1; if (str.length() < field.width) padding = field.width - str.length(); } else { field_description const & field(format_map[fl]); padding += field.width; } return padding; } size_t formatter:: output_header_field(ostream & out, format_flags fl, size_t padding) { out << string(padding, ' '); field_description const & field(format_map[fl]); out << field.header_name; // at least one separator char padding = 1; if (field.header_name.length() < field.width) padding = field.width - field.header_name.length(); return padding; } string formatter::format_vma(field_datum const & f) { return get_vma(f.sample.vma, vma_64); } string formatter::format_symb_name(field_datum const & f) { return symbol_names.demangle(f.symbol.name); } string formatter::format_image_name(field_datum const & f) { return get_image_name(f.symbol.image_name, long_filenames ? image_name_storage::int_real_filename : image_name_storage::int_real_basename, extra_found_images); } string formatter::format_app_name(field_datum const & f) { return get_image_name(f.symbol.app_name, long_filenames ? image_name_storage::int_real_filename : image_name_storage::int_real_basename, extra_found_images); } string formatter::format_linenr_info(field_datum const & f) { return get_linenr_info(f.sample.file_loc, long_filenames); } string formatter::format_nr_samples(field_datum const & f) { ostringstream out; out << f.sample.counts[f.pclass]; return out.str(); } string formatter::format_nr_cumulated_samples(field_datum const & f) { if (f.diff == -INFINITY) return "---"; ostringstream out; f.counts.cumulated_samples[f.pclass] += f.sample.counts[f.pclass]; out << f.counts.cumulated_samples[f.pclass]; return out.str(); } string formatter::format_percent(field_datum const & f) { if (f.diff == -INFINITY) return "---"; return get_percent(f.sample.counts[f.pclass], f.counts.total[f.pclass]); } string formatter::format_cumulated_percent(field_datum const & f) { if (f.diff == -INFINITY) return "---"; f.counts.cumulated_percent[f.pclass] += f.sample.counts[f.pclass]; return get_percent(f.counts.cumulated_percent[f.pclass], f.counts.total[f.pclass]); } string formatter::format_percent_details(field_datum const & f) { return get_percent(f.sample.counts[f.pclass], f.counts.total[f.pclass]); } string formatter::format_cumulated_percent_details(field_datum const & f) { f.counts.cumulated_percent_details[f.pclass] += f.sample.counts[f.pclass]; return get_percent(f.counts.cumulated_percent_details[f.pclass], f.counts.total[f.pclass]); } string formatter::format_diff(field_datum const & f) { if (f.diff == INFINITY) return "+++"; else if (f.diff == -INFINITY) return "---"; return ::format_percent(f.diff, percent_int_width, percent_fract_width, true); } void formatter:: do_output(ostream & out, symbol_entry const & symb, sample_entry const & sample, counts_t & c, diff_array_t const & diffs, bool hide_immutable) { size_t padding = 0; // first output the vma field field_datum datum(symb, sample, 0, c, extra_found_images); if (flags & ff_vma) padding = output_field(out, datum, ff_vma, padding, false); // repeated fields for each profile class for (size_t pclass = 0 ; pclass < nr_classes; ++pclass) { field_datum datum(symb, sample, pclass, c, extra_found_images, diffs[pclass]); if (flags & ff_nr_samples) padding = output_field(out, datum, ff_nr_samples, padding, false); if (flags & ff_nr_samples_cumulated) padding = output_field(out, datum, ff_nr_samples_cumulated, padding, false); if (flags & ff_percent) padding = output_field(out, datum, ff_percent, padding, false); if (flags & ff_percent_cumulated) padding = output_field(out, datum, ff_percent_cumulated, padding, false); if (flags & ff_diff) padding = output_field(out, datum, ff_diff, padding, false); if (flags & ff_percent_details) padding = output_field(out, datum, ff_percent_details, padding, false); if (flags & ff_percent_cumulated_details) padding = output_field(out, datum, ff_percent_cumulated_details, padding, false); } // now the remaining field if (flags & ff_linenr_info) padding = output_field(out, datum, ff_linenr_info, padding, false); if (flags & ff_image_name) padding = output_field(out, datum, ff_image_name, padding, hide_immutable); if (flags & ff_app_name) padding = output_field(out, datum, ff_app_name, padding, hide_immutable); if (flags & ff_symb_name) padding = output_field(out, datum, ff_symb_name, padding, hide_immutable); out << "\n"; } opreport_formatter::opreport_formatter(profile_container const & p) : formatter(p.extra_found_images), profile(p), need_details(false) { counts.total = profile.samples_count(); } void opreport_formatter::show_details(bool on_off) { need_details = on_off; } void opreport_formatter::output(ostream & out, symbol_entry const * symb) { do_output(out, *symb, symb->sample, counts); if (need_details) output_details(out, symb); } void opreport_formatter:: output(ostream & out, symbol_collection const & syms) { output_header(out); symbol_collection::const_iterator it = syms.begin(); symbol_collection::const_iterator end = syms.end(); for (; it != end; ++it) output(out, *it); } void opreport_formatter:: output_details(ostream & out, symbol_entry const * symb) { counts_t c = counts; if (!global_percent) c.total = symb->sample.counts; // cumulated percent are relative to current symbol. c.cumulated_samples = count_array_t(); c.cumulated_percent = count_array_t(); sample_container::samples_iterator it = profile.begin(symb); sample_container::samples_iterator end = profile.end(symb); for (; it != end; ++it) { out << " "; do_output(out, *symb, it->second, c, diff_array_t(), true); } } cg_formatter::cg_formatter(callgraph_container const & profile) : formatter(profile.extra_found_images) { counts.total = profile.samples_count(); } void cg_formatter::output(ostream & out, symbol_collection const & syms) { // amount of spacing prefixing child and parent lines string const child_parent_prefix(" "); output_header(out); out << string(79, '-') << endl; symbol_collection::const_iterator it; symbol_collection::const_iterator end = syms.end(); for (it = syms.begin(); it < end; ++it) { cg_symbol const * sym = dynamic_cast(*it); // To silence coverity (since dynamic cast can theoretically return NULL) if (!sym) continue; cg_symbol::children::const_iterator cit; cg_symbol::children::const_iterator cend = sym->callers.end(); counts_t c; if (global_percent) c.total = counts.total; else c.total = sym->total_caller_count; for (cit = sym->callers.begin(); cit != cend; ++cit) { out << child_parent_prefix; do_output(out, *cit, cit->sample, c); } do_output(out, *sym, sym->sample, counts); c = counts_t(); if (global_percent) c.total = counts.total; else c.total = sym->total_callee_count; cend = sym->callees.end(); for (cit = sym->callees.begin(); cit != cend; ++cit) { out << child_parent_prefix; do_output(out, *cit, cit->sample, c); } out << string(79, '-') << endl; } } diff_formatter::diff_formatter(diff_container const & profile, extra_images const & extra) : formatter(extra) { counts.total = profile.samples_count(); } void diff_formatter::output(ostream & out, diff_collection const & syms) { output_header(out); diff_collection::const_iterator it = syms.begin(); diff_collection::const_iterator end = syms.end(); for (; it != end; ++it) do_output(out, *it, it->sample, counts, it->diffs); } // local variables used in generation of XML // buffer details for output later ostringstream bytes_out; // module+symbol table for detecting duplicate symbols map symbol_data_table; size_t symbol_data_index = 0; /* Return any existing index or add to the table */ size_t xml_get_symbol_index(string const & name) { size_t index = symbol_data_index; map::iterator it = symbol_data_table.find(name); if (it == symbol_data_table.end()) { symbol_data_table[name] = symbol_data_index++; return index; } return it->second; } class symbol_details_t { public: symbol_details_t() { size = index = 0; id = -1; } int id; size_t size; size_t index; string details; }; typedef growable_vector symbol_details_array_t; symbol_details_array_t symbol_details; size_t detail_table_index = 0; xml_formatter:: xml_formatter(profile_container const * p, symbol_collection & s, extra_images const & extra, string_filter const & sf) : formatter(extra), profile(p), symbols(s), need_details(false), detail_count(0), symbol_filter(sf) { if (profile) counts.total = profile->samples_count(); } void xml_formatter:: show_details(bool on_off) { need_details = on_off; } void xml_formatter::output(ostream & out) { xml_support->build_subclasses(out); xml_support->output_program_structure(out); output_symbol_data(out); if (need_details) { out << open_element(DETAIL_TABLE); for (size_t i = 0; i < symbol_details.size(); ++i) { int id = symbol_details[i].id; if (id >= 0) { out << open_element(SYMBOL_DETAILS, true); out << init_attr(TABLE_ID, (size_t)id); out << close_element(NONE, true); out << symbol_details[i].details; out << close_element(SYMBOL_DETAILS); } } out << close_element(DETAIL_TABLE); // output bytesTable out << open_element(BYTES_TABLE); out << bytes_out.str(); out << close_element(BYTES_TABLE); } out << close_element(PROFILE); } bool xml_formatter::get_bfd_object(symbol_entry const * symb, op_bfd * & abfd) const { bool ok = true; string const & image_name = get_image_name(symb->image_name, image_name_storage::int_filename, extra_found_images); if (symb->spu_offset) { // FIXME: what about archive:tmp, actually it's not supported // for spu since oparchive doesn't archive the real file but // in future it would work ? string tmp = get_image_name(symb->embedding_filename, image_name_storage::int_filename, extra_found_images); if (abfd && abfd->get_filename() == tmp) return true; delete abfd; abfd = new op_bfd(symb->spu_offset, tmp, symbol_filter, extra_found_images, ok); } else { if (abfd && abfd->get_filename() == image_name) return true; delete abfd; abfd = new op_bfd(image_name, symbol_filter, extra_found_images, ok); } if (!ok) { report_image_error(image_name, image_format_failure, false, extra_found_images); delete abfd; abfd = 0; return false; } return true; } void xml_formatter:: output_the_symbol_data(ostream & out, symbol_entry const * symb, op_bfd * & abfd) { string const name = symbol_names.name(symb->name); assert(name.size() > 0); string const image = get_image_name(symb->image_name, image_name_storage::int_filename, extra_found_images); string const qname = image + ":" + name; map::iterator sd_it = symbol_data_table.find(qname); if (sd_it != symbol_data_table.end()) { // first time we've seen this symbol out << open_element(SYMBOL_DATA, true); out << init_attr(TABLE_ID, sd_it->second); field_datum datum(*symb, symb->sample, 0, counts, extra_found_images); output_attribute(out, datum, ff_symb_name, NAME); if (flags & ff_linenr_info) { output_attribute(out, datum, ff_linenr_info, SOURCE_FILE); output_attribute(out, datum, ff_linenr_info, SOURCE_LINE); } if (name.size() > 0 && name[0] != '?') { output_attribute(out, datum, ff_vma, STARTING_ADDR); if (need_details) { get_bfd_object(symb, abfd); if (abfd && abfd->symbol_has_contents(symb->sym_index)) xml_support->output_symbol_bytes(bytes_out, symb, sd_it->second, *abfd); } } out << close_element(); // seen so remove (otherwise get several "no symbols") symbol_data_table.erase(qname); } } void xml_formatter::output_cg_children(ostream & out, cg_symbol::children const cg_symb, op_bfd * & abfd) { cg_symbol::children::const_iterator cit; cg_symbol::children::const_iterator cend = cg_symb.end(); for (cit = cg_symb.begin(); cit != cend; ++cit) { string const name = symbol_names.name(cit->name); string const image = get_image_name(cit->image_name, image_name_storage::int_filename, extra_found_images); string const qname = image + ":" + name; map::iterator sd_it = symbol_data_table.find(qname); if (sd_it != symbol_data_table.end()) { symbol_entry const * child = &(*cit); output_the_symbol_data(out, child, abfd); } } } void xml_formatter::output_symbol_data(ostream & out) { op_bfd * abfd = NULL; sym_iterator it = symbols.begin(); sym_iterator end = symbols.end(); out << open_element(SYMBOL_TABLE); for ( ; it != end; ++it) { symbol_entry const * symb = *it; cg_symbol const * cg_symb = dynamic_cast(symb); output_the_symbol_data(out, symb, abfd); if (cg_symb) { /* make sure callers/callees are included in SYMBOL_TABLE */ output_cg_children(out, cg_symb->callers, abfd); output_cg_children(out, cg_symb->callees, abfd); } } out << close_element(SYMBOL_TABLE); delete abfd; } string xml_formatter:: output_symbol_details(symbol_entry const * symb, size_t & detail_index, size_t const lo, size_t const hi) { if (!has_sample_counts(symb->sample.counts, lo, hi)) return ""; sample_container::samples_iterator it = profile->begin(symb); sample_container::samples_iterator end = profile->end(symb); ostringstream str; for (; it != end; ++it) { counts_t c; for (size_t p = lo; p <= hi; ++p) { size_t count = it->second.counts[p]; if (count == 0) continue; str << open_element(DETAIL_DATA, true); str << init_attr(TABLE_ID, detail_index++); // first output the vma field field_datum datum(*symb, it->second, 0, c, extra_found_images, 0.0); output_attribute(str, datum, ff_vma, VMA); if (ff_linenr_info) { string sym_file; size_t sym_line; string samp_file; size_t samp_line; string sym_info = get_linenr_info(symb->sample.file_loc, true); string samp_info = get_linenr_info(it->second.file_loc, true); if (extract_linenr_info(samp_info, samp_file, samp_line)) { if (extract_linenr_info(sym_info, sym_file, sym_line)) { // only output source_file if it is different than the symbol's // source file. this can happen with inlined functions in // #included header files if (sym_file != samp_file) str << init_attr(SOURCE_FILE, samp_file); } str << init_attr(SOURCE_LINE, samp_line); } } str << close_element(NONE, true); // output buffered sample data output_sample_data(str, it->second, p); str << close_element(DETAIL_DATA); } } return str.str(); } void xml_formatter:: output_symbol(ostream & out, symbol_entry const * symb, size_t lo, size_t hi, bool is_module) { ostringstream str; // pointless reference to is_module, remove insane compiler warning size_t indx = is_module ? 0 : 1; // output symbol's summary data for each profile class bool got_samples = false; for (size_t p = lo; p <= hi; ++p) { got_samples |= xml_support->output_summary_data(str, symb->sample.counts, p); } if (!got_samples) return; if (cverb << vxml) out << "" << endl; out << open_element(SYMBOL, true); string const name = symbol_names.name(symb->name); assert(name.size() > 0); string const image = get_image_name(symb->image_name, image_name_storage::int_filename, extra_found_images); string const qname = image + ":" + name; indx = xml_get_symbol_index(qname); out << init_attr(ID_REF, indx); if (need_details) { ostringstream details; symbol_details_t & sd = symbol_details[indx]; size_t const detail_lo = sd.index; string detail_str = output_symbol_details(symb, sd.index, lo, hi); if (detail_str.size() > 0) { if (sd.id < 0) sd.id = indx; details << detail_str; } if (sd.index > detail_lo) { sd.details = sd.details + details.str(); out << init_attr(DETAIL_LO, detail_lo); out << init_attr(DETAIL_HI, sd.index-1); } } out << close_element(NONE, true); // output summary out << str.str(); out << close_element(SYMBOL); } void xml_formatter:: output_sample_data(ostream & out, sample_entry const & sample, size_t pclass) { out << open_element(COUNT, true); out << init_attr(CLASS, classes.v[pclass].name); out << close_element(NONE, true); out << sample.counts[pclass]; out << close_element(COUNT); } void xml_formatter:: output_attribute(ostream & out, field_datum const & datum, format_flags fl, tag_t tag) { field_description const & field(format_map[fl]); string str = (this->*field.formatter)(datum); if (!str.empty()) { if (fl == ff_linenr_info && (tag == SOURCE_LINE || tag == SOURCE_FILE)) { string file; size_t line; if (extract_linenr_info(str, file, line)) { if (tag == SOURCE_LINE) out << init_attr(tag, line); else out << init_attr(tag, file); } } else out << " " << init_attr(tag, str); } } xml_cg_formatter:: xml_cg_formatter(callgraph_container const & cg, symbol_collection & s, string_filter const & sf) : xml_formatter(0, s, cg.extra_found_images, sf), callgraph(cg) { counts.total = callgraph.samples_count(); } void xml_cg_formatter:: output_symbol_core(ostream & out, cg_symbol::children const cg_symb, string const selfname, string const qname, size_t lo, size_t hi, bool is_module, tag_t tag) { cg_symbol::children::const_iterator cit; cg_symbol::children::const_iterator cend = cg_symb.end(); for (cit = cg_symb.begin(); cit != cend; ++cit) { string const & module = get_image_name((cit)->image_name, image_name_storage::int_filename, extra_found_images); bool self = false; ostringstream str; size_t indx; // output symbol's summary data for each profile class for (size_t p = lo; p <= hi; ++p) xml_support->output_summary_data(str, cit->sample.counts, p); if (cverb << vxml) out << "" << endl; if (is_module) { out << open_element(MODULE, true); out << init_attr(NAME, module) << close_element(NONE, true); } out << open_element(SYMBOL, true); string const symname = symbol_names.name(cit->name); assert(symname.size() > 0); string const symqname = module + ":" + symname; // Find any self references and handle if ((symname == selfname) && (tag == CALLEES)) { self = true; indx = xml_get_symbol_index(qname); } else { indx = xml_get_symbol_index(symqname); } out << init_attr(ID_REF, indx); if (self) out << init_attr(SELFREF, "true"); out << close_element(NONE, true); out << str.str(); out << close_element(SYMBOL); if (is_module) out << close_element(MODULE); } } void xml_cg_formatter:: output_symbol(ostream & out, symbol_entry const * symb, size_t lo, size_t hi, bool is_module) { cg_symbol const * cg_symb = dynamic_cast(symb); ostringstream str; size_t indx; // output symbol's summary data for each profile class for (size_t p = lo; p <= hi; ++p) xml_support->output_summary_data(str, symb->sample.counts, p); if (cverb << vxml) out << "" << endl; out << open_element(SYMBOL, true); string const name = symbol_names.name(symb->name); assert(name.size() > 0); string const image = get_image_name(symb->image_name, image_name_storage::int_filename, extra_found_images); string const qname = image + ":" + name; string const selfname = symbol_names.demangle(symb->name) + " [self]"; indx = xml_get_symbol_index(qname); out << init_attr(ID_REF, indx); out << close_element(NONE, true); out << open_element(CALLERS); if (cg_symb) output_symbol_core(out, cg_symb->callers, selfname, qname, lo, hi, is_module, CALLERS); out << close_element(CALLERS); out << open_element(CALLEES); if (cg_symb) output_symbol_core(out, cg_symb->callees, selfname, qname, lo, hi, is_module, CALLEES); out << close_element(CALLEES); // output summary out << str.str(); out << close_element(SYMBOL); } } // namespace format_output oprofile-0.9.9/libpp/populate_for_spu.h0000664000076400007640000000204612175510132015147 00000000000000/** * @file libpp/populate_for_spu.h * Fill up a profile_container from inverted profiles for * a Cell BE SPU profile * * @remark Copyright 2007 OProfile authors * @remark Read the file COPYING * * @author Maynard Johnson * (C) Copyright IBM Corporation 2007 */ #ifndef POPULATE_FOR_SPU_H #define POPULATE_FOR_SPU_H class profile_container; class inverted_profile; class string_filter; /* * When profiling SPUs on Cell Broadband Engine, all sample file * headers get a flag set indicating "spu_profile". This function * checks the first sample file for this indicator. */ bool is_spu_profile(inverted_profile const & ip); /* * This is a special-purpose function for CELL BE SPU profiling. * See populate_spu_profile_from_files prologue for more details. */ void populate_for_spu_image(profile_container & samples, inverted_profile const & ip, string_filter const & symbol_filter, bool * has_debug_info); enum profile_type { unknown_profile = -1, normal_profile, cell_spu_profile }; #endif /* POPULATE_FOR_SPU_H */ oprofile-0.9.9/libpp/format_flags.h0000664000076400007640000000277112175510132014232 00000000000000/** * @file format_flags.h * output options * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef FORMAT_FLAGS_H #define FORMAT_FLAGS_H /** * flags passed to the ctor of an output_symbol object. * * \sa format_output::formatter */ enum format_flags { ff_none = 0, /// a formatted memory address ff_vma = 1 << 0, /// output debug filename and line nr. ff_linenr_info = 1 << 1, /// output the image name for this line ff_image_name = 1 << 3, /// output owning application name ff_app_name = 1 << 4, /// output the (demangled) symbol name ff_symb_name = 1 << 5, /** @name subset of flags used by opreport_formatter */ //@{ /// number of samples ff_nr_samples = 1 << 6, /// number of samples accumulated ff_nr_samples_cumulated = 1 << 7, /// relative percentage of samples ff_percent = 1 << 8, /// relative percentage of samples accumulated ff_percent_cumulated = 1 << 9, /** * Output percentage for details, not relative * to symbol but relative to the total nr of samples */ ff_percent_details = 1 << 10, /** * Output percentage for details, not relative * to symbol but relative to the total nr of samples, * accumulated */ ff_percent_cumulated_details = 1 << 11, /// output diff value ff_diff = 1 << 12, //@} }; /** * General hints about formatting of the columnar output. */ enum column_flags { cf_none = 0, cf_64bit_vma = 1 << 0, cf_image_name = 1 << 1 }; #endif // FORMAT_FLAGS_H oprofile-0.9.9/libpp/profile_spec.cpp0000664000076400007640000004151112175510132014566 00000000000000/** * @file profile_spec.cpp * Contains a PP profile specification * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie */ #include #include #include #include #include #include #include "file_manip.h" #include "op_config.h" #include "profile_spec.h" #include "string_manip.h" #include "glob_filter.h" #include "locate_images.h" #include "op_exception.h" #include "op_header.h" #include "op_fileio.h" using namespace std; namespace { // PP:3.7, full path, or relative path. If we can't find it, // we should maintain the original to maintain the wordexp etc. string const fixup_image_spec(string const & str, extra_images const & extra) { // On error find_image_path() return str, so if an occur we will // use the provided image_name not the fixed one. image_error error; return extra.find_image_path(str, error, true); } void fixup_image_spec(vector & images, extra_images const & extra) { vector::iterator it = images.begin(); vector::iterator const end = images.end(); for (; it != end; ++it) *it = fixup_image_spec(*it, extra); } } // anon namespace profile_spec::profile_spec() : extra_found_images() { parse_table["archive"] = &profile_spec::parse_archive_path; parse_table["session"] = &profile_spec::parse_session; parse_table["session-exclude"] = &profile_spec::parse_session_exclude; parse_table["image"] = &profile_spec::parse_image; parse_table["image-exclude"] = &profile_spec::parse_image_exclude; parse_table["lib-image"] = &profile_spec::parse_lib_image; parse_table["event"] = &profile_spec::parse_event; parse_table["count"] = &profile_spec::parse_count; parse_table["unit-mask"] = &profile_spec::parse_unitmask; parse_table["tid"] = &profile_spec::parse_tid; parse_table["tgid"] = &profile_spec::parse_tgid; parse_table["cpu"] = &profile_spec::parse_cpu; } void profile_spec::parse(string const & tag_value) { string value; action_t action = get_handler(tag_value, value); if (!action) { throw invalid_argument("profile_spec::parse(): not " "a valid tag \"" + tag_value + "\""); } (this->*action)(value); } bool profile_spec::is_valid_tag(string const & tag_value) { string value; return get_handler(tag_value, value); } void profile_spec::set_image_or_lib_name(string const & str) { /* FIXME: what does spec say about this being allowed to be * a comma list or not ? */ image_or_lib_image.push_back(fixup_image_spec(str, extra_found_images)); } void profile_spec::parse_archive_path(string const & str) { archive_path = op_realpath(str); } string profile_spec::get_archive_path() const { return archive_path; } void profile_spec::parse_session(string const & str) { session = separate_token(str, ','); } void profile_spec::parse_session_exclude(string const & str) { session_exclude = separate_token(str, ','); } void profile_spec::parse_image(string const & str) { image = separate_token(str, ','); fixup_image_spec(image, extra_found_images); } void profile_spec::parse_image_exclude(string const & str) { image_exclude = separate_token(str, ','); fixup_image_spec(image_exclude, extra_found_images); } void profile_spec::parse_lib_image(string const & str) { lib_image = separate_token(str, ','); fixup_image_spec(lib_image, extra_found_images); } void profile_spec::parse_event(string const & str) { event.set(str); } void profile_spec::parse_count(string const & str) { count.set(str); } void profile_spec::parse_unitmask(string const & str) { unitmask.set(str); } void profile_spec::parse_tid(string const & str) { tid.set(str); } void profile_spec::parse_tgid(string const & str) { tgid.set(str); } void profile_spec::parse_cpu(string const & str) { cpu.set(str); } profile_spec::action_t profile_spec::get_handler(string const & tag_value, string & value) { string::size_type pos = tag_value.find_first_of(':'); if (pos == string::npos) return 0; string tag(tag_value.substr(0, pos)); value = tag_value.substr(pos + 1); parse_table_t::const_iterator it = parse_table.find(tag); if (it == parse_table.end()) return 0; return it->second; } namespace { /// return true if the value from the profile spec may match the comma /// list template bool comma_match(comma_list const & cl, generic_spec const & value) { // if the profile spec is "all" we match the sample file if (!cl.is_set()) return true; // an "all" sample file should never match specified profile // spec values if (!value.is_set()) return false; // now match each profile spec value against the sample file return cl.match(value.value()); } } bool profile_spec::match(filename_spec const & spec) const { bool matched_by_image_or_lib_image = false; // We need the true image name not the one based on the sample // filename for the benefit of module which have /oprofile in their // sample filename. This allow to specify profile spec based on the // real name of the image, e.g. 'binary:*oprofile.ko' string simage = fixup_image_spec(spec.image, extra_found_images); string slib_image = fixup_image_spec(spec.lib_image, extra_found_images); // PP:3.19 if (!image_or_lib_image.empty()) { glob_filter filter(image_or_lib_image, image_exclude); if (filter.match(simage) || filter.match(slib_image)) matched_by_image_or_lib_image = true; } if (!matched_by_image_or_lib_image) { // PP:3.7 3.8 if (!image.empty()) { glob_filter filter(image, image_exclude); if (!filter.match(simage)) return false; } else if (!image_or_lib_image.empty()) { // image.empty() means match all except if user // specified image_or_lib_image return false; } // PP:3.9 3.10 if (!lib_image.empty()) { glob_filter filter(lib_image, image_exclude); if (!filter.match(slib_image)) return false; } else if (image.empty() && !image_or_lib_image.empty()) { // lib_image empty means match all except if user // specified image_or_lib_image *or* we already // matched this spec through image return false; } } if (!matched_by_image_or_lib_image) { // if we don't match by image_or_lib_image we must try to // exclude from spec, exclusion from image_or_lib_image has // been handled above vector empty; glob_filter filter(empty, image_exclude); if (!filter.match(simage)) return false; if (!spec.lib_image.empty() && !filter.match(slib_image)) return false; } if (!event.match(spec.event)) return false; if (!count.match(spec.count)) return false; if (!unitmask.match(spec.unitmask)) return false; if (!comma_match(cpu, spec.cpu)) return false; if (!comma_match(tid, spec.tid)) return false; if (!comma_match(tgid, spec.tgid)) return false; return true; } profile_spec profile_spec::create(list const & args, vector const & image_path, string const & root_path) { profile_spec spec; set tag_seen; vector temp_image_or_lib; list::const_iterator it = args.begin(); list::const_iterator end = args.end(); for (; it != end; ++it) { if (spec.is_valid_tag(*it)) { if (tag_seen.find(*it) != tag_seen.end()) { throw op_runtime_error("tag specified " "more than once: " + *it); } tag_seen.insert(*it); spec.parse(*it); } else { string const file = op_realpath(*it); temp_image_or_lib.push_back(file); } } // PP:3.5 no session given means use the current session. if (spec.session.empty()) spec.session.push_back("current"); bool ok = true; vector::const_iterator ip_it = image_path.begin(); for ( ; ip_it != image_path.end(); ++ip_it) { if (!is_directory(spec.get_archive_path() + "/" + *ip_it)) { cerr << spec.get_archive_path() + "/" + *ip_it << " isn't a valid directory\n"; ok = false; } } if (!ok) throw op_runtime_error("invalid --image-path= options"); spec.extra_found_images.populate(image_path, spec.get_archive_path(), root_path); vector::const_iterator im = temp_image_or_lib.begin(); vector::const_iterator last = temp_image_or_lib.end(); for (; im != last; ++im) spec.set_image_or_lib_name(*im); return spec; } namespace { vector filter_session(vector const & session, vector const & session_exclude) { vector result(session); if (result.empty()) result.push_back("current"); for (size_t i = 0 ; i < session_exclude.size() ; ++i) { // FIXME: would we use fnmatch on each item, are we allowed // to --session=current* ? vector::iterator it = find(result.begin(), result.end(), session_exclude[i]); if (it != result.end()) result.erase(it); } return result; } static bool invalid_sample_file; bool valid_candidate(string const & base_dir, string const & filename, profile_spec const & spec, bool exclude_dependent, bool exclude_cg) { if (exclude_cg && filename.find("{cg}") != string::npos) return false; // strip out non sample files string const & sub = filename.substr(base_dir.size(), string::npos); if (!is_prefix(sub, "/{root}/") && !is_prefix(sub, "/{kern}/")) return false; /* When overflows occur in the oprofile kernel driver's sample * buffers (caused by too high of a sampling rate), it's possible * for samples to be mis-attributed. A common scenario is that, * while profiling process 'abc' running binary 'xzy', the task * switch for 'abc' gets dropped somehow. Then, samples are taken * for the 'xyz' binary. In the attempt to attribute the samples to * the associated binary, the oprofile kernel code examines the * the memory mappings for the last process for which it recorded * a task switch. When profiling at a very high rate, the oprofile * daemon is often the process that is mistakenly examined. Then the * sample from binary 'xyz' is matched to some file that's open in * oprofiled's memory space. Because oprofiled has many sample files * open at any given time, there's a good chance the sample's VMA is * contained within one of those sample files. So, once finding this * bogus match, the oprofile kernel records a cookie switch for the * sample file. This scenario is made even more likely if a high * sampling rate (e.g., profiling on several events) is paired with * callgraph data collection. * * When the daemon processes this sample data from the kernel, it * creates a sample file for the sample file, resulting in something * of the form: * /[blah]/[blah] * * When the sample data is post-processed, the sample file is parsed to * try to determine the name of the binary, but it gets horribly confused. * At best, the post-processing tool will spit out some warning messages, * such as: * warning: * /lib64/libdl-2.9.so/CYCLES.10000.0.all.all.all/{dep}/{root}/var/lib/oprofile/samples/current/{root}/lib64/libdl-2.9.so/{dep}/{root}/lib64/libdl-2.9.so/PM_RUN_CYC_GRP12.10000.0.all.all.all * could not be found. * * At worst, the parsing may result in an "invalid argument" runtime error * because of the inability to parse a sample file whose name contains that * of another sample file. This typically seems to happen when callgraph * data is being collected. * * The next several lines of code checks if the passed filename * contains /samples; if so, we discard it as an * invalid sample file. */ unsigned int j = base_dir.rfind('/'); string session_samples_dir = base_dir.substr(0, j); if (sub.find(session_samples_dir) != string::npos) { invalid_sample_file = true; return false; } // strip out generated JIT object files for samples of anonymous regions if (is_jit_sample(sub)) return false; filename_spec file_spec(filename, spec.extra_found_images); if (spec.match(file_spec)) { if (exclude_dependent && file_spec.is_dependent()) return false; return true; } return false; } /** * Print a warning message if we detect any sample buffer overflows * occurred in the kernel driver. */ static void warn_if_kern_buffs_overflow(string const & session_samples_dir) { DIR * dir; struct dirent * dirent; string stats_path; int ret = 0; stats_path = session_samples_dir + "stats/"; ret = op_read_int_from_file((stats_path + "event_lost_overflow"). c_str(), 0); if (!(dir = opendir(stats_path.c_str()))) { ret = -1; goto done; } while ((dirent = readdir(dir)) && !ret) { int cpu_nr; string path; if (sscanf(dirent->d_name, "cpu%d", &cpu_nr) != 1) continue; path = stats_path + dirent->d_name + "/"; ret = op_read_int_from_file((path + "sample_lost_overflow"). c_str(), 0); } closedir(dir); done: if (ret > 0) { cerr << "WARNING! The OProfile kernel driver reports sample " << "buffer overflows." << endl; cerr << "Such overflows can result in incorrect sample attribution" << ", invalid sample" << endl << "files and other symptoms. " << "See the oprofiled.log for details." << endl; cerr << "You should adjust your sampling frequency to eliminate" << " (or at least minimize)" << endl << "these overflows." << endl; } } static void warn_if_kern_throttling(string const & session_samples_dir) { DIR * dir; string stats_path; /* check for throttled */ stats_path = session_samples_dir + "stats/throttled"; dir = opendir(stats_path.c_str()); if (dir != NULL) { cerr << "\nWARNING! Some of the events were throttled. " << "Throttling occurs when\n"; cerr << "the initial sample rate is too high, causing an " << "excessive number of\n"; cerr << "interrupts. Decrease the sampling frequency. " << "Check the directory\n"; cerr << stats_path << "\n" << "for the throttled event names.\n\n"; closedir(dir); } } static void warn_if_lost_samples(string const & session_samples_dir) { string stats_path; string operf_log(op_session_dir); unsigned long total_samples; unsigned long total_lost_samples = 0; stats_path = session_samples_dir + "stats/"; total_samples = op_read_long_from_file((stats_path + "total_samples"). c_str(), 0); if (total_samples == ((unsigned long)-1)) return; for (int i = OPERF_INDEX_OF_FIRST_LOST_STAT; i < OPERF_MAX_STATS; i++) { unsigned long lost_samples_count = op_read_long_from_file((stats_path + stats_filenames[i]).c_str(), 0); if (!(lost_samples_count == ((unsigned long)-1))) total_lost_samples += lost_samples_count; } if (total_lost_samples > (unsigned int)(OPERF_WARN_LOST_SAMPLES_THRESHOLD * total_samples)) { operf_log.append("/samples/operf.log"); cerr << "\nWARNING: Lost samples detected! See " << operf_log << " for details." << endl; } } static void warn_if_sampling_problems(string const & session_samples_dir) { warn_if_kern_buffs_overflow(session_samples_dir); warn_if_kern_throttling(session_samples_dir); warn_if_lost_samples(session_samples_dir); } } // anonymous namespace list profile_spec::generate_file_list(bool exclude_dependent, bool exclude_cg) const { // FIXME: isn't remove_duplicates faster than doing this, then copy() ? set unique_files; vector sessions = filter_session(session, session_exclude); if (sessions.empty()) { ostringstream os; os << "No session given\n" << "included session was:\n"; copy(session.begin(), session.end(), ostream_iterator(os, "\n")); os << "excluded session was:\n"; copy(session_exclude.begin(), session_exclude.end(), ostream_iterator(os, "\n")); throw invalid_argument(os.str()); } bool found_file = false; vector::const_iterator cit = sessions.begin(); vector::const_iterator end = sessions.end(); for (; cit != end; ++cit) { if (cit->empty()) continue; string base_dir; invalid_sample_file = false; if ((*cit)[0] != '.' && (*cit)[0] != '/') base_dir = archive_path + op_samples_dir; base_dir += *cit; base_dir = op_realpath(base_dir); list files; create_file_list(files, base_dir, "*", true); if (!files.empty()) { found_file = true; warn_if_sampling_problems(base_dir + "/"); } list::const_iterator it = files.begin(); list::const_iterator fend = files.end(); for (; it != fend; ++it) { if (valid_candidate(base_dir, *it, *this, exclude_dependent, exclude_cg)) { unique_files.insert(*it); } } if (invalid_sample_file) { cerr << "Warning: Invalid sample files found in " << base_dir << endl; cerr << "This problem can be caused by too high of a sampling rate." << endl; } } if (!found_file) { ostringstream os; os << "No sample file found: If using opcontrol for profiling,\n" << "try running 'opcontrol --dump'; otherwise, specify a session containing\n" << "sample files.\n"; throw op_fatal_error(os.str()); } list result; copy(unique_files.begin(), unique_files.end(), back_inserter(result)); return result; } oprofile-0.9.9/libpp/locate_images.h0000664000076400007640000000606612175510132014363 00000000000000/** * @file locate_images.h * Location of binary images * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #ifndef LOCATE_IMAGES_H #define LOCATE_IMAGES_H #include #include #include #include "image_errors.h" /** * A class containing mappings from an image basename, * such as 'floppy.ko', to locations in the paths passed * in to populate(). * * The name may exist multiple times; all locations are recorded * in this container. */ class extra_images { public: extra_images(); /// add all filenames found in the given paths prefixed by the /// archive path or the root path, recursively void populate(std::vector const & paths, std::string const & archive_path, std::string const & root_path); /// base class for matcher functors object struct matcher { std::string const & value; public: explicit matcher(std::string const & v) : value(v) {} virtual ~matcher() {} /// default functor allowing trivial match virtual bool operator()(std::string const & str) const { return str == value; } }; /** * return a vector of all directories that match the functor */ std::vector const find(matcher const & match) const; /// return a vector of all directories that match the given name std::vector const find(std::string const & name) const; /** * @param image_name binary image name * @param error errors are flagged in this passed enum ref * @param fixup if true return the fixed image name else always return * image_name and update error * * Locate a (number of) matching absolute paths to the given image * name. If we fail to find the file we fill in error and return the * original string. */ std::string const find_image_path(std::string const & image_name, image_error & error, bool fixup) const; /// return the archive path used to populate the images name map std::string get_archive_path() const { return archive_path; } /// Given an image name returned by find_image_path() return /// a filename with the archive_path or root_path stripped. std::string strip_path_prefix(std::string const & image) const; /// return the uid for this extra_images, first valid uid is 1 int get_uid() const { return uid; } private: void populate(std::vector const & paths, std::string const & prefix_path); std::string const locate_image(std::string const & image_name, image_error & error, bool fixup) const; typedef std::multimap images_t; typedef images_t::value_type value_type; typedef images_t::const_iterator const_iterator; /// map from image basename to owning directory images_t images; /// the archive path passed to populate the images name map. std::string archive_path; /// A prefix added to locate binaries if they can't be found /// through the archive path std::string root_path; /// unique identifier, first valid uid is 1 int uid; /// unique uid generator static int suid; }; #endif /* LOCATE_IMAGES_H */ oprofile-0.9.9/libpp/xml_utils.cpp0000664000076400007640000005766112175510132014151 00000000000000/** * @file xml_utils.cpp * utility routines for generating XML * * @remark Copyright 2006 OProfile authors * @remark Read the file COPYING * * @author Dave Nomura */ #include #include #include "xml_utils.h" #include "format_output.h" #include "arrange_profiles.h" #include "op_bfd.h" #include "cverb.h" using namespace std; bool want_xml = false; size_t nr_classes = 0; size_t nr_cpus = 0; size_t nr_events = 0; sym_iterator symbols_begin; sym_iterator symbols_end; // handle on xml_formatter object format_output::xml_formatter * xml_out; xml_utils * xml_support; size_t xml_utils::events_index = 0; bool xml_utils::has_nonzero_masks = false; ostringstream xml_options; namespace { bool has_separated_cpu_info() { return classes.v[0].ptemplate.cpu != "all"; } string get_event_num(size_t pclass) { return classes.v[pclass].ptemplate.event; } size_t get_next_event_num_pclass(size_t start) { string cur_event = get_event_num(start); size_t i; for (i = start; i < nr_classes && get_event_num(i) == cur_event; ++i) ; return i; } void dump_symbol(string const & prefix, sym_iterator it, bool want_nl = true) { if (it == symbols_end) cverb << vxml << prefix << "END"; else cverb << vxml << prefix << symbol_names.name((*it)->name); if (want_nl) cverb << vxml << endl; } void dump_symbols(string const & prefix, sym_iterator b, sym_iterator e) { if (b == (sym_iterator)0) return; for (sym_iterator it = b; it != e; ++it) dump_symbol(prefix, it, true); } void dump_classes() { cverb << vxml << "" << endl; } bool has_separated_thread_info() { return classes.v[0].ptemplate.tid != "all"; } string get_cpu_num(size_t pclass) { return classes.v[pclass].ptemplate.cpu; } }; // anonymous namespace xml_utils::xml_utils(format_output::xml_formatter * xo, symbol_collection const & s, size_t nc, extra_images const & extra) : has_subclasses(false), bytes_index(0), extra_found_images(extra) { xml_out = xo; nr_classes = nc; symbols_begin = s.begin(); symbols_end = s.end(); multiple_events = get_next_event_num_pclass(0) != nr_classes; if (has_separated_cpu_info()) { size_t cpus = 0; // count number of cpus for (size_t p = 0; p < nr_classes; ++p) { size_t cpu = atoi(classes.v[p].ptemplate.cpu.c_str()); if (cpu > cpus) cpus = cpu; } // cpus names start with 0 nr_cpus = cpus + 1; } } string xml_utils::get_timer_setup(size_t count) { return open_element(TIMER_SETUP, true) + init_attr(RTC_INTERRUPTS, count) + close_element(); } string xml_utils::get_event_setup(string event, size_t count, string unit_mask) { ostringstream str; str << open_element(EVENT_SETUP, true); str << init_attr(TABLE_ID, events_index++); str << init_attr(EVENT_NAME, event); if (unit_mask.size() != 0) str << init_attr(UNIT_MASK, unit_mask); str << init_attr(SETUP_COUNT, (size_t)count) + close_element(); return str.str(); } string xml_utils::get_profile_header(string cpu_name, double const speed) { ostringstream str; string cpu_type; string processor; string::size_type slash_pos = cpu_name.find("/"); if (slash_pos == string::npos) { cpu_type = cpu_name; processor = ""; } else { cpu_type = cpu_name.substr(0, slash_pos); processor = cpu_name.substr(slash_pos+1); } str << init_attr(CPU_NAME, cpu_type) << endl; if (processor.size() > 0) str << init_attr(PROCESSOR, string(processor)) << endl; if (nr_cpus > 1) str << init_attr(SEPARATED_CPUS, nr_cpus) << endl; str << init_attr(MHZ, speed) << endl; return str.str(); } void xml_utils::set_nr_cpus(size_t cpus) { nr_cpus = cpus; } void xml_utils::set_nr_events(size_t events) { nr_events = events; } void xml_utils::set_has_nonzero_masks() { has_nonzero_masks = true; } void xml_utils::add_option(tag_t tag, string const & value) { xml_options << init_attr(tag, value); } void xml_utils::add_option(tag_t tag, list const & value) { list::const_iterator begin = value.begin(); list::const_iterator end = value.end(); list::const_iterator cit = begin; ostringstream str; for (; cit != end; ++cit) { if (cit != begin) str << ","; str << *cit; } xml_options << init_attr(tag, str.str()); } void xml_utils::add_option(tag_t tag, vector const & value) { vector::const_iterator begin = value.begin(); vector::const_iterator end = value.end(); vector::const_iterator cit = begin; ostringstream str; for (; cit != end; ++cit) { if (cit != begin) str << ","; str << *cit; } xml_options << init_attr(tag, str.str()); } void xml_utils::add_option(tag_t tag, bool value) { xml_options << init_attr(tag, (value ? "true" : "false")); } void xml_utils::output_xml_header(string const & command_options, string const & cpu_info, string const & events) { // the integer portion indicates the schema version and should change // both here and in the schema file when major changes are made to // the schema. changes to opreport, or minor changes to the schema // can be indicated by changes to the fraction part. string const schema_version = "3.0"; // This is the XML version, not schema version. string const xml_header = ""; cout << xml_header << endl; cout << open_element(PROFILE, true); cout << init_attr(SCHEMA_VERSION, schema_version); cout << cpu_info; cout << init_attr(TITLE, "opreport " + command_options); cout << close_element(NONE, true); cout << open_element(OPTIONS, true) << xml_options.str(); cout << close_element(); cout << open_element(SETUP) << events; cout << close_element(SETUP) << endl; } class subclass_info_t { public: string unitmask; string subclass_name; }; typedef growable_vector subclass_array_t; typedef growable_vector event_subclass_t; typedef growable_vector cpu_subclass_t; void xml_utils::build_subclasses(ostream & out) { size_t subclasses = 0; string subclass_name; // when --separate=cpu we will have an event_subclass array for each cpu cpu_subclass_t cpu_subclasses; event_subclass_t event_subclasses; if (nr_cpus <= 1 && nr_events <= 1 && !has_nonzero_masks) return; out << open_element(CLASSES); for (size_t i = 0; i < classes.v.size(); ++i) { profile_class & pclass = classes.v[i]; size_t event = atoi(pclass.ptemplate.event.c_str()); subclass_array_t * sc_ptr; // select the right subclass array if (nr_cpus == 1) { sc_ptr = &event_subclasses[event]; } else { size_t cpu = atoi(pclass.ptemplate.cpu.c_str()); sc_ptr = &cpu_subclasses[cpu][event]; } // search for an existing unitmask subclass_name = ""; for (size_t j = 0; j < sc_ptr->size(); ++j) { if ((*sc_ptr)[j].unitmask == pclass.ptemplate.unitmask) { subclass_name = (*sc_ptr)[j].subclass_name; break; } } if (subclass_name.size() == 0) { ostringstream str; size_t new_index = sc_ptr->size(); // no match found, create a new entry str << "c" << subclasses++; subclass_name = str.str(); (*sc_ptr)[new_index].unitmask = pclass.ptemplate.unitmask; (*sc_ptr)[new_index].subclass_name = subclass_name; out << open_element(CLASS, true); out << init_attr(NAME, subclass_name); if (nr_cpus > 1) out << init_attr(CPU_NUM, pclass.ptemplate.cpu); if (nr_events > 1) out << init_attr(EVENT_NUM, event); if (has_nonzero_masks) out << init_attr(EVENT_MASK, pclass.ptemplate.unitmask); out << close_element(); } pclass.name = subclass_name; } out << close_element(CLASSES); has_subclasses = true; } string get_counts_string(count_array_t const & counts, size_t begin, size_t end) { ostringstream str; bool got_count = false; // if no cpu separation then return a simple count, omit zero counts if (nr_cpus == 1) { size_t count = counts[begin]; if (count == 0) return ""; str << count; return str.str(); } for (size_t p = begin; p != end; ++p) { size_t count = counts[p]; if (p != begin) str << ","; if (count != 0) { got_count = true; str << count; } } return got_count ? str.str() : ""; } void xml_utils::output_symbol_bytes(ostream & out, symbol_entry const * symb, size_t sym_id, op_bfd const & abfd) { size_t size = symb->size; scoped_array contents(new unsigned char[size]); if (abfd.get_symbol_contents(symb->sym_index, contents.get())) { string const name = symbol_names.name(symb->name); out << open_element(BYTES, true) << init_attr(TABLE_ID, sym_id); out << close_element(NONE, true); for (size_t i = 0; i < size; ++i) { char hex_map[] = "0123456789ABCDEF"; char hex[2]; hex[0] = hex_map[(contents[i] >> 4) & 0xf]; hex[1] = hex_map[contents[i] & 0xf]; out << hex[0] << hex[1]; } out << close_element(BYTES); } } bool xml_utils::output_summary_data(ostream & out, count_array_t const & summary, size_t pclass) { size_t const count = summary[pclass]; if (count == 0) return false; out << open_element(COUNT, has_subclasses); if (has_subclasses) { out << init_attr(CLASS, classes.v[pclass].name); out << close_element(NONE, true); } out << count; out << close_element(COUNT); return true; } class module_info { public: module_info() { lo = hi = 0; name = ""; begin = end = (sym_iterator)0;} void dump(); void build_module(string const & n, sym_iterator it, size_t l, size_t h); string get_name() { return name; } void set_lo(size_t l) { lo = l; } void set_hi(size_t h) { hi = h; } count_array_t const & get_summary() { return summary; } void set_begin(sym_iterator b); void set_end(sym_iterator e); void add_to_summary(count_array_t const & counts); void output(ostream & out); bool is_closed(string const & n); protected: void output_summary(ostream & out); void output_symbols(ostream & out, bool is_module); string name; sym_iterator begin; sym_iterator end; // summary sample data count_array_t summary; // range of profile classes approprate for this module size_t lo; size_t hi; }; class thread_info : public module_info { public: thread_info() { nr_modules = 0; } void build_thread(string const & tid, size_t l, size_t h); bool add_modules(string const & module, sym_iterator it); void add_module_symbol(string const & n, sym_iterator it); void summarize(); void set_end(sym_iterator end); string const get_tid() { return thread_id; } void output(ostream & out); void dump(); private: // indices into the classes array applicable to this process size_t nr_modules; string thread_id; growable_vector my_modules; }; class process_info : public module_info { public: process_info() { nr_threads = 0; } void build_process(string const & pid, size_t l, size_t h); void add_thread(string const & tid, size_t l, size_t h); void add_modules(string const & module, string const & app_name, sym_iterator it); void summarize(); void set_end(sym_iterator end); void output(ostream & out); void dump(); private: size_t nr_threads; string process_id; growable_vector my_threads; }; class process_root_info { public: process_root_info() { nr_processes = 0; } process_info * add_process(string const & pid, size_t lo, size_t hi); void add_modules(string const & module, string const & app_name, sym_iterator it); void summarize(); void summarize_processes(extra_images const & extra_found_images); void set_process_end(); void output_process_symbols(ostream & out); void dump_processes(); private: size_t nr_processes; growable_vector processes; }; class binary_info : public module_info { public: binary_info() { nr_modules = 0; } void output(ostream & out); binary_info * build_binary(string const & n); void add_module_symbol(string const & module, string const & app, sym_iterator it); void close_binary(sym_iterator it); void dump(); private: size_t nr_modules; growable_vector my_modules; }; class binary_root_info { public: binary_root_info() { nr_binaries = 0; } binary_info * add_binary(string const & n, sym_iterator it); void summarize_binaries(extra_images const & extra_found_images); void output_binary_symbols(ostream & out); void dump_binaries(); private: size_t nr_binaries; growable_vector binaries; }; static process_root_info processes_root; static binary_root_info binaries_root; void module_info:: build_module(string const & n, sym_iterator it, size_t l, size_t h) { name = n; begin = it; lo = l; hi = h; } void module_info::add_to_summary(count_array_t const & counts) { for (size_t pclass = lo ; pclass <= hi; ++pclass) summary[pclass] += counts[pclass]; } void module_info::set_begin(sym_iterator b) { if (begin == (sym_iterator)0) begin = b; } void module_info::set_end(sym_iterator e) { if (end == (sym_iterator)0) end = e; } bool module_info::is_closed(string const & n) { return (name == n) && end != (sym_iterator)0; } void module_info::dump() { cverb << vxml << " module:class(" << lo << "," << hi << ")="; cverb << vxml << name << endl; dump_symbols(" ", begin, end); } void module_info::output(ostream & out) { out << open_element(MODULE, true); out << init_attr(NAME, name) << close_element(NONE, true); output_summary(out); output_symbols(out, true); out << close_element(MODULE); } void module_info::output_summary(ostream & out) { for (size_t p = lo; p <= hi; ++p) (void)xml_support->output_summary_data(out, summary, p); } void module_info::output_symbols(ostream & out, bool is_module) { if (begin == (sym_iterator)0) return; for (sym_iterator it = begin; it != end; ++it) xml_out->output_symbol(out, *it, lo, hi, is_module); } void binary_info::close_binary(sym_iterator it) { set_end(it); if (nr_modules > 0) { module_info & m = my_modules[nr_modules-1]; m.set_end(it); } } void binary_info::dump() { cverb << vxml << "app_name=" << name << endl; if (begin != (sym_iterator)0) dump_symbols(" ", begin, end); for (size_t i = 0; i < nr_modules; ++i) my_modules[i].dump(); } void binary_info:: add_module_symbol(string const & module, string const & app, sym_iterator it) { size_t m = nr_modules; if (module == app) { // set begin symbol for binary if not set set_begin(it); if (m > 0) { // close out current module module_info & mod = my_modules[m-1]; mod.set_end(it); } // add symbol count to binary count add_to_summary((*it)->sample.counts); return; } string current_module_name = (m == 0 ? "" : my_modules[m-1].get_name()); if (module != current_module_name) { // we have a module distinct from it's binary: --separate=lib // and this is the first symbol for this module if (m != 0) { // close out current module module_info & mod = my_modules[m-1]; mod.set_end(it); } // mark end of enclosing binary symbols if there have been any // NOTE: it is possible for the binary's symbols to follow its // module symbols if (begin != (sym_iterator)0 && end == (sym_iterator)0) set_end(it); // build the new module nr_modules++; my_modules[m].build_module(module, it, 0, nr_classes-1); } // propagate this symbols counts to the module my_modules[nr_modules-1].add_to_summary((*it)->sample.counts); } void binary_root_info:: summarize_binaries(extra_images const & extra_found_images) { binary_info * current_binary = 0; string current_binary_name = ""; for (sym_iterator it = symbols_begin ; it != symbols_end; ++it) { string binary = get_image_name((*it)->app_name, image_name_storage::int_filename, extra_found_images); string module = get_image_name((*it)->image_name, image_name_storage::int_filename, extra_found_images); if (binary != current_binary_name) { current_binary = binaries_root.add_binary(binary, it); current_binary_name = binary; } // To silence coverity, check current_binary !=NULL if (current_binary) current_binary->add_module_symbol(module, binary, it); } // close out last binary and module if (current_binary) current_binary->close_binary(symbols_end); } process_info * process_root_info::add_process(string const & pid, size_t lo, size_t hi) { processes[nr_processes].build_process(pid, lo, hi); return &processes[nr_processes++]; } void process_root_info:: add_modules(string const & module, string const & app_name, sym_iterator it) { for (size_t p = 0; p < nr_processes; ++p) processes[p].add_modules(module, app_name, it); } void process_root_info::summarize() { for (size_t p = 0; p < nr_processes; ++p) processes[p].summarize(); } void process_root_info:: summarize_processes(extra_images const & extra_found_images) { // add modules to the appropriate threads in the process hierarchy for (sym_iterator it = symbols_begin ; it != symbols_end; ++it) { string binary = get_image_name((*it)->app_name, image_name_storage::int_filename, extra_found_images); string module = get_image_name((*it)->image_name, image_name_storage::int_filename, extra_found_images); processes_root.add_modules(module, binary, it); } // set end symbol boundary for all modules in all threads processes_root.set_process_end(); // propagate summaries to process/thread processes_root.summarize(); } void process_root_info::set_process_end() { for (size_t p = 0; p < nr_processes; ++p) processes[p].set_end(symbols_end); } void process_root_info::output_process_symbols(ostream & out) { for (size_t p = 0; p < nr_processes; ++p) processes[p].output(out); } void process_root_info::dump_processes() { cverb << vxml << "" << endl; } binary_info * binary_info::build_binary(string const & n) { name = n; lo = 0; hi = nr_classes-1; return this; } void binary_info::output(ostream & out) { out << open_element(BINARY, true); out << init_attr(NAME, name) << close_element(NONE, true); output_summary(out); output_symbols(out, false); for (size_t a = 0; a < nr_modules; ++a) my_modules[a].output(out); out << close_element(BINARY); } binary_info * binary_root_info::add_binary(string const & n, sym_iterator it) { size_t a = nr_binaries++; // close out previous binary and module if (a > 0) binaries[a-1].close_binary(it); return binaries[a].build_binary(n); } void binary_root_info::output_binary_symbols(ostream & out) { for (size_t a = 0; a < nr_binaries; ++a) binaries[a].output(out); } void binary_root_info::dump_binaries() { cverb << vxml << "" << endl; } void process_info::build_process(string const & pid, size_t l, size_t h) { process_id = pid; lo = l; hi = h; } void process_info::add_thread(string const & tid, size_t l, size_t h) { my_threads[nr_threads++].build_thread(tid, l, h); } void process_info::add_modules(string const & module, string const & app_name, sym_iterator it) { bool added = false; for (size_t t = 0; t < nr_threads; ++t) added |= my_threads[t].add_modules(module, it); if (added && name.size() == 0) name = app_name; } void process_info::summarize() { for (size_t t = 0; t < nr_threads; ++t) { thread_info & thr = my_threads[t]; thr.summarize(); add_to_summary(thr.get_summary()); } } void thread_info::build_thread(string const & tid, size_t l, size_t h) { thread_id = tid; lo = l; hi = h; } void thread_info::summarize() { for (size_t m = 0; m < nr_modules; ++m) add_to_summary(my_modules[m].get_summary()); } void thread_info::set_end(sym_iterator end) { for (size_t m = 0; m < nr_modules; ++m) my_modules[m].set_end(end); } void thread_info::add_module_symbol(string const & n, sym_iterator it) { module_info & m = my_modules[nr_modules++]; m.build_module(n, it, lo, hi); m.add_to_summary((*it)->sample.counts); } void thread_info::output(ostream & out) { ostringstream thread_summary; ostringstream modules_output; output_summary(thread_summary); for (size_t m = 0; m < nr_modules; ++m) my_modules[m].output(modules_output); // ignore threads with no sample data if (modules_output.str().size() == 0 && thread_summary.str().size() == 0) return; out << open_element(THREAD, true); out << init_attr(THREAD_ID, thread_id) << close_element(NONE, true); out << thread_summary.str(); out << modules_output.str(); out << close_element(THREAD); } bool thread_info::add_modules(string const & module, sym_iterator it) { string old_name = (nr_modules == 0 ? "" : my_modules[nr_modules-1].get_name()); if (nr_modules > 0 && old_name != module) { module_info & m = my_modules[nr_modules-1]; // close out previous module if it hasn't already been closed out if (!m.is_closed(old_name)) m.set_end(it); } // add a new module for this symbol if it has a non-zero count if (nr_modules == 0 || module != old_name) { if (has_sample_counts((*it)->sample.counts, lo, hi)) { add_module_symbol(module, it); return true; } } else { // propagate symbols count to module my_modules[nr_modules-1].add_to_summary((*it)->sample.counts); } return false; } void thread_info::dump() { cverb << vxml << "tid=" << thread_id << endl; for (size_t i = 0; i < nr_modules; ++i) my_modules[i].dump(); } void process_info::set_end(sym_iterator end) { for (size_t t = 0; t < nr_threads; ++t) my_threads[t].set_end(end); } void process_info::output(ostream & out) { ostringstream process_summary; ostringstream thread_output; output_summary(process_summary); for (size_t t = 0; t < nr_threads; ++t) my_threads[t].output(thread_output); // ignore processes with no sample data if (thread_output.str().size() == 0 && process_summary.str().size() == 0) return; out << open_element(PROCESS, true); out << init_attr(PROC_ID, process_id); out << init_attr(NAME, name) << close_element(NONE, true); out << process_summary.str(); out << thread_output.str(); out << close_element(PROCESS); } void process_info::dump() { cverb << vxml << "pid=" << process_id << " app=" << name << endl; for (size_t i = 0; i < nr_threads; ++i) my_threads[i].dump(); } size_t get_next_tgid_pclass(size_t start) { string cur_tgid = classes.v[start].ptemplate.tgid; size_t i = start; for (i = start; i < nr_classes && classes.v[i].ptemplate.tgid == cur_tgid; ++i) ; return i; } size_t get_next_tid_pclass(size_t start) { string cur_tid = classes.v[start].ptemplate.tid; size_t i; for (i = start; i < nr_classes && classes.v[i].ptemplate.tid == cur_tid; ++i) ; return i; } // build the process/thread/module hierarchy that will allow us later // to collect the summary sample data at each level and then // traverse the hierarchy to intersperse the summary data for the // symbols void build_process_tree() { size_t tgid = 0; size_t tid = 0; // build the structure representing the process/thread/module hierarchy // for holding the summary data associated with each level and to be // traversed when outputting the body of the XML do { size_t next_tgid = get_next_tgid_pclass(tgid); string const tgid_str = classes.v[tgid].ptemplate.tgid; process_info * p = processes_root.add_process(tgid_str, tgid, next_tgid-1); do { size_t next_tid = get_next_tid_pclass(tid); // build array of threads associated with this process p->add_thread(classes.v[tid].ptemplate.tid, tid, next_tid-1); tid = next_tid; } while (tid != next_tgid); tgid = next_tgid; } while (tgid != nr_classes); } void xml_utils::output_program_structure(ostream & out) { if (cverb << vxml) dump_classes(); if (has_separated_thread_info()) { build_process_tree(); processes_root.summarize_processes(extra_found_images); if (cverb << vxml) processes_root.dump_processes(); processes_root.output_process_symbols(out); } else { binaries_root.summarize_binaries(extra_found_images); if (cverb << vxml) binaries_root.dump_binaries(); binaries_root.output_binary_symbols(out); } } oprofile-0.9.9/libpp/populate.cpp0000664000076400007640000000532612175510132013751 00000000000000/** * @file populate.cpp * Fill up a profile_container from inverted profiles * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie * * Modified by Maynard Johnson * (C) Copyright IBM Corporation 2007 */ #include "profile.h" #include "profile_container.h" #include "arrange_profiles.h" #include "op_bfd.h" #include "op_header.h" #include "populate.h" #include "populate_for_spu.h" #include "image_errors.h" #include using namespace std; namespace { /// load merged files for one set of sample files bool populate_from_files(profile_t & profile, op_bfd const & abfd, list const & files) { list::const_iterator it = files.begin(); list::const_iterator const end = files.end(); bool found = false; // we can't handle cg files here obviously for (; it != end; ++it) { // A bit ugly but we must accept silently empty sample filename // since we can create a profile_sample_files for cg file only // (i.e no sample to the binary) if (!it->sample_filename.empty()) { profile.add_sample_file(it->sample_filename); profile.set_offset(abfd); found = true; } } return found; } } // anon namespace void populate_for_image(profile_container & samples, inverted_profile const & ip, string_filter const & symbol_filter, bool * has_debug_info) { if (is_spu_profile(ip)) { populate_for_spu_image(samples, ip, symbol_filter, has_debug_info); return; } bool ok = ip.error == image_ok; op_bfd abfd(ip.image, symbol_filter, samples.extra_found_images, ok); if (!ok && ip.error == image_ok) ip.error = image_format_failure; if (ip.error == image_format_failure) report_image_error(ip, false, samples.extra_found_images); opd_header header; bool found = false; for (size_t i = 0; i < ip.groups.size(); ++i) { list::const_iterator it = ip.groups[i].begin(); list::const_iterator const end = ip.groups[i].end(); // we can only share a profile_t amongst each // image_set's files - this is because it->app_image // changes, and the .add() would mis-attribute // to the wrong app_image otherwise for (; it != end; ++it) { profile_t profile; if (populate_from_files(profile, abfd, it->files)) { header = profile.get_header(); samples.add(profile, abfd, it->app_image, i); found = true; } } } if (found == true && ip.error == image_ok) { image_error error; string filename = samples.extra_found_images.find_image_path( ip.image, error, true); check_mtime(filename, header); } if (has_debug_info) *has_debug_info = abfd.has_debug_info(); } oprofile-0.9.9/libpp/arrange_profiles.h0000664000076400007640000001456612175510132015115 00000000000000/** * @file arrange_profiles.h * Classify and process a list of candidate sample files * into merged sets and classes. * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon */ #ifndef ARRANGE_PROFILES_H #define ARRANGE_PROFILES_H #include #include #include #include #include "image_errors.h" #include "locate_images.h" /** * store merging options options used to classify profiles */ struct merge_option { bool cpu; bool lib; bool tid; bool tgid; bool unitmask; }; /** * This describes which parameters are set for each * equivalence class. */ struct profile_template { std::string event; std::string count; std::string unitmask; std::string tgid; std::string tid; std::string cpu; }; /** * A samples filename + its associated callgraph sample filename. */ struct profile_sample_files { /** * This member can be empty since it is possible to get callgraph * w/o any samples to the binary. e.g an application which defer all * works to shared library but if arrange_profiles receive a sample * file list filtered from cg file sample_filename can't be empty */ std::string sample_filename; /** * List of callgraph sample filename. If the {dep} part of * cg_filename != {cg} part it's a cross binary samples file. */ std::list cg_files; }; /** * A number of profiles files that are all dependent on * the same main (application) profile, for the same * dependent image. */ struct profile_dep_set { /// which dependent image is this set for std::string lib_image; /// the actual sample files optionnaly including callgraph sample files std::list files; }; /** * A number of profile files all for the same binary with the same * profile specification (after merging). Includes the set of dependent * profile files, if any. * * For example, we could have image == "/bin/bash", where files * contains all profiles against /bin/bash, and deps contains * the sample file list for /lib/libc.so, /lib/ld.so etc. */ struct profile_set { std::string image; /// the actual sample files for the main image and the asociated /// callgraph files std::list files; /// all profile files dependent on the main image std::list deps; }; /** * A class collection of profiles. This is an equivalence class and * will correspond to columnar output of opreport. */ struct profile_class { std::list profiles; /// human-readable column name std::string name; /// human-readable long name std::string longname; /// merging matches against this profile_template ptemplate; }; /** * The "axis" says what we've used to split the sample * files into the classes. Only one is allowed. */ enum axis_types { AXIS_EVENT, AXIS_TGID, AXIS_TID, AXIS_CPU, AXIS_MAX }; struct profile_classes { /** * This is only set if we're not classifying on event/count * anyway - if we're classifying on event/count, then we'll * already output the details of each class's event/count. * * It's only used when classifying by CPU, tgid etc. so the * user can still see what perfctr event was used. */ std::string event; /// CPU info std::string cpuinfo; /// the actual classes std::vector v; /// the axis of the classes axis_types axis; /// the extra images to consider for this profile_classes extra_images extra_found_images; /// is this class set comparable with another? bool matches(profile_classes const & classes); }; std::ostream & operator<<(std::ostream &, profile_sample_files const &); std::ostream & operator<<(std::ostream &, profile_dep_set const &); std::ostream & operator<<(std::ostream &, profile_set const &); std::ostream & operator<<(std::ostream &, profile_template const &); std::ostream & operator<<(std::ostream &, profile_class const &); std::ostream & operator<<(std::ostream &, profile_classes const &); /** * Take a list of sample filenames, and process them into a set of * classes containing profile_sets. Merging is done at this stage * as well as attaching dependent profiles to the main image. * * The classes correspond to the columns you'll get in opreport: * this can be a number of events, or different CPUs, etc. */ profile_classes const arrange_profiles(std::list const & files, merge_option const & merge_by, extra_images const & extra); /** * A set of sample files where the image binary to open * are all the same. */ struct image_set { /// this is main app image, *not* necessarily /// the one we need to open std::string app_image; /// the sample files std::list files; }; typedef std::list image_group_set; /** * All sample files where the binary image to open is * the same. * * This is the "inverse" to some degree of profile_set. * For example, here we might have image = "/lib/libc.so", * with groups being the profile classifications * tgid:404, tgid:301, etc. * * Within each group there's a number of image_sets. * All the sample files listed within the image_sets * are still for /lib/libc.so, but they may have * different app_image values, e.g. /bin/bash. * We need to keep track of the app_image values to * make opreport give the right info in the "app" * column. */ struct inverted_profile { inverted_profile() : error(image_ok) {} /// the image to open std::string image; /// an error found in reading the image mutable image_error error; /// all sample files with data for the above image std::vector groups; }; /** * Invert the profile set. For opreport -l, opannotate etc., * processing the profile_classes directly is slow, because * we end up opening BFDs multiple times (for each class, * dependent images etc.). This function returns an inverted * set of sample files, where the primary sort is on the binary * image to open. * * Thus each element in the returned list is for exactly one * binary file that we're going to bfd_openr(). Attached to that * is the actual sample files we need to process for that binary * file. In order to get the output right, these have to be * marked with the profile class they're from (hence the groups * vector), and the app image that owned the sample file, if * applicable (hence image_set). */ std::list const invert_profiles(profile_classes const & classes); #endif /* !ARRANGE_PROFILES_H */ oprofile-0.9.9/libpp/callgraph_container.cpp0000664000076400007640000003704712175510132016124 00000000000000/** * @file callgraph_container.cpp * Container associating symbols and caller/caller symbols * * @remark Copyright 2004 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #include #include #include #include #include #include #include #include #include "callgraph_container.h" #include "cverb.h" #include "parse_filename.h" #include "profile_container.h" #include "arrange_profiles.h" #include "populate.h" #include "string_filter.h" #include "op_bfd.h" #include "op_sample_file.h" #include "locate_images.h" using namespace std; namespace { bool operator==(cg_symbol const & lhs, cg_symbol const & rhs) { less_symbol cmp_symb; return !cmp_symb(lhs, rhs) && !cmp_symb(rhs, lhs); } // we store {caller,callee} inside a single u64 odb_key_t caller_to_key(u32 value) { return odb_key_t(value) << 32; } u32 key_to_callee(odb_key_t key) { return key & 0xffffffff; } bool compare_by_callee_vma(pair const & lhs, pair const & rhs) { return (key_to_callee(lhs.first)) < (key_to_callee(rhs.first)); } /* * We need 2 comparators for callgraph to get the desired output: * * caller_with_few_samples * caller_with_many_samples * function_with_many_samples * callee_with_many_samples * callee_with_few_samples */ bool compare_arc_count(symbol_entry const & lhs, symbol_entry const & rhs) { return lhs.sample.counts[0] < rhs.sample.counts[0]; } bool compare_arc_count_reverse(symbol_entry const & lhs, symbol_entry const & rhs) { return rhs.sample.counts[0] < lhs.sample.counts[0]; } // find the nearest bfd symbol for the given file offset and check it's // in range op_bfd_symbol const * get_symbol_by_filepos(op_bfd const & bfd, u32 bfd_offset, vma_t offset, symbol_index_t & i) { offset += bfd_offset; op_bfd_symbol tmpsym(offset, 0, string()); // sorted by filepos so this will find the nearest vector::const_iterator it = upper_bound(bfd.syms.begin(), bfd.syms.end(), tmpsym); if (it != bfd.syms.begin()) --it; if (it == bfd.syms.end()) { cerr << "get_symbol_by_filepos: no symbols at all?" << endl; abort(); } // if the offset is past the end of the symbol, we didn't find one u32 const end_offset = it->size() + it->filepos(); if (offset >= end_offset) { // let's be verbose for now cerr << "warning: dropping hyperspace sample at offset " << hex << offset << " >= " << end_offset << " for binary " << bfd.get_filename() << dec << endl; return NULL; } i = distance(bfd.syms.begin(), it); return &(*it); } /// temporary caller and callee data held during processing class call_data { public: call_data(profile_container const & p, profile_t const & pr, op_bfd const & bfd, u32 boff, image_name_id iid, image_name_id aid, bool debug_info) : callee_end(0), pc(p), profile(pr), b(bfd), boffset(boff), image(iid), app(aid), debug(debug_info) {} /// point to a caller symbol void caller_sym(symbol_index_t i) { sym = symbol_entry(); unsigned long long start; unsigned long long end; b.get_symbol_range(i, start, end); samples.clear(); // see profile_t::samples_range() for why we need this check if (start > boffset) { profile_t::iterator_pair p_it = profile.samples_range( caller_to_key(start - boffset), caller_to_key(end - boffset)); // Our odb_key_t contain (from_eip << 32 | to_eip), // the range of keys we selected above contains one // caller but different callees, and due to the // ordering callee offsets are not consecutive: so // we must sort them first. for (; p_it.first != p_it.second; ++p_it.first) { samples.push_back(make_pair(p_it.first.vma(), p_it.first.count())); } sort(samples.begin(), samples.end(), compare_by_callee_vma); } sym.size = end - start; sym.name = symbol_names.create(b.syms[i].name()); sym.sample.vma = b.syms[i].vma(); finish_sym(i, start); if (cverb << vdebug) { cverb << vdebug << hex << "Caller sym: " << b.syms[i].name() << " filepos " << start << "-" << end << dec << endl; } } /// point to a callee symbol bool callee_sym(u32 off) { sym = symbol_entry(); symbol_index_t i = 0; op_bfd_symbol const * bfdsym = get_symbol_by_filepos(b, boffset, off, i); if (!bfdsym) return false; callee_end = bfdsym->size() + bfdsym->filepos() - boffset; sym.size = bfdsym->size(); sym.name = symbol_names.create(bfdsym->name()); sym.sample.vma = bfdsym->vma(); finish_sym(i, bfdsym->filepos()); if (cverb << vdebug) { cverb << vdebug << hex << "Callee sym: " << bfdsym->name() << " filepos " << bfdsym->filepos() << "-" << (bfdsym->filepos() + bfdsym->size()) << dec << endl; } return true; } void verbose_bfd(string const & prefix) const { cverb << vdebug << prefix << " " << b.get_filename() << " offset " << boffset << " app " << image_names.name(app) << endl; } typedef vector > samples_t; typedef samples_t::const_iterator const_iterator; samples_t samples; symbol_entry sym; u32 callee_end; private: /// fill in the rest of the sym void finish_sym(symbol_index_t i, unsigned long start) { sym.image_name = image; sym.app_name = app; symbol_entry const * self = pc.find(sym); if (self) sym.sample.counts = self->sample.counts; if (debug) { string filename; file_location & loc = sym.sample.file_loc; if (b.get_linenr(i, start, filename, loc.linenr)) loc.filename = debug_names.create(filename); } } profile_container const & pc; profile_t const & profile; op_bfd const & b; u32 boffset; image_name_id image; image_name_id app; bool debug; }; /// accumulate all samples for a given caller/callee pair count_type accumulate_callee(call_data::const_iterator & it, call_data::const_iterator end, u32 callee_end) { count_type count = 0; call_data::const_iterator const start = it; while (it != end) { u32 offset = key_to_callee(it->first); if (cverb << (vdebug & vlevel1)) { cverb << (vdebug & vlevel1) << hex << "offset: " << offset << dec << endl; } // stop if we pass the end of the callee if (offset >= callee_end) break; count += it->second; ++it; } // If we haven't advanced at all, then we'll get // an infinite loop, so we must abort. if (it == start) { cerr << "failure to advance iterator\n"; abort(); } return count; } } // anonymous namespace void arc_recorder:: add(symbol_entry const & caller, symbol_entry const * callee, count_array_t const & arc_count) { cg_data & data = sym_map[caller]; // If we have a callee, add it to the caller's list, then // add the caller to the callee's list. if (callee) { data.callees[*callee] += arc_count; cg_data & callee_data = sym_map[*callee]; callee_data.callers[caller] += arc_count; } } void arc_recorder::process_children(cg_symbol & sym, double threshold) { // generate the synthetic self entry for the symbol symbol_entry self = sym; self.name = symbol_names.create(symbol_names.demangle(self.name) + " [self]"); sym.total_callee_count += self.sample.counts; sym.callees.push_back(self); sort(sym.callers.begin(), sym.callers.end(), compare_arc_count); sort(sym.callees.begin(), sym.callees.end(), compare_arc_count_reverse); // FIXME: this relies on sort always being sample count cg_symbol::children::iterator cit = sym.callers.begin(); cg_symbol::children::iterator cend = sym.callers.end(); while (cit != cend && op_ratio(cit->sample.counts[0], sym.total_caller_count[0]) < threshold) ++cit; if (cit != cend) sym.callers.erase(sym.callers.begin(), cit); cit = sym.callees.begin(); cend = sym.callees.end(); while (cit != cend && op_ratio(cit->sample.counts[0], sym.total_callee_count[0]) >= threshold) ++cit; if (cit != cend) sym.callees.erase(cit, sym.callees.end()); } void arc_recorder:: process(count_array_t total, double threshold, string_filter const & sym_filter) { map_t::const_iterator it; map_t::const_iterator end = sym_map.end(); for (it = sym_map.begin(); it != end; ++it) { cg_symbol sym((*it).first); cg_data const & data = (*it).second; // threshold out the main symbol if needed if (op_ratio(sym.sample.counts[0], total[0]) < threshold) continue; // FIXME: slow? if (!sym_filter.match(symbol_names.demangle(sym.name))) continue; cg_data::children::const_iterator cit; cg_data::children::const_iterator cend = data.callers.end(); for (cit = data.callers.begin(); cit != cend; ++cit) { symbol_entry csym = cit->first; csym.sample.counts = cit->second; sym.callers.push_back(csym); sym.total_caller_count += cit->second; } cend = data.callees.end(); for (cit = data.callees.begin(); cit != cend; ++cit) { symbol_entry csym = cit->first; csym.sample.counts = cit->second; sym.callees.push_back(csym); sym.total_callee_count += cit->second; } process_children(sym, threshold); // insert sym into cg_syms_objs // then store pointer to sym in cg_syms cg_syms.push_back(&(*cg_syms_objs.insert(cg_syms_objs.end(), sym))); } } symbol_collection const & arc_recorder::get_symbols() const { return cg_syms; } void callgraph_container::populate(list const & iprofiles, extra_images const & extra, bool debug_info, double threshold, bool merge_lib, string_filter const & sym_filter) { this->extra_found_images = extra; // non callgraph samples container, we record sample at symbol level // not at vma level. profile_container pc(debug_info, false, extra_found_images); list::const_iterator it; list::const_iterator const end = iprofiles.end(); for (it = iprofiles.begin(); it != end; ++it) { // populate_caller_image take care about empty sample filename populate_for_image(pc, *it, sym_filter, 0); } add_symbols(pc); total_count = pc.samples_count(); for (it = iprofiles.begin(); it != end; ++it) { for (size_t i = 0; i < it->groups.size(); ++i) { populate(it->groups[i], it->image, i, pc, debug_info, merge_lib); } } recorder.process(total_count, threshold / 100.0, sym_filter); } void callgraph_container::populate(list const & lset, string const & app_image, size_t pclass, profile_container const & pc, bool debug_info, bool merge_lib) { list::const_iterator lit; list::const_iterator const lend = lset.end(); for (lit = lset.begin(); lit != lend; ++lit) { list::const_iterator pit; list::const_iterator pend = lit->files.end(); for (pit = lit->files.begin(); pit != pend; ++pit) { populate(pit->cg_files, app_image, pclass, pc, debug_info, merge_lib); } } } void callgraph_container::populate(list const & cg_files, string const & app_image, size_t pclass, profile_container const & pc, bool debug_info, bool merge_lib) { list::const_iterator it; list::const_iterator const end = cg_files.end(); for (it = cg_files.begin(); it != end; ++it) { cverb << vdebug << "samples file : " << *it << endl; parsed_filename caller_file = parse_filename(*it, extra_found_images); string const app_name = caller_file.image; image_error error; extra_found_images.find_image_path(caller_file.lib_image, error, false); if (error != image_ok) report_image_error(caller_file.lib_image, error, false, extra_found_images); bool caller_bfd_ok = true; op_bfd caller_bfd(caller_file.lib_image, string_filter(), extra_found_images, caller_bfd_ok); if (!caller_bfd_ok) report_image_error(caller_file.lib_image, image_format_failure, false, extra_found_images); parsed_filename callee_file = parse_filename(*it, extra_found_images); extra_found_images.find_image_path(callee_file.cg_image, error, false); if (error != image_ok) report_image_error(callee_file.cg_image, error, false, extra_found_images); bool callee_bfd_ok = true; op_bfd callee_bfd(callee_file.cg_image, string_filter(), extra_found_images, callee_bfd_ok); if (!callee_bfd_ok) report_image_error(callee_file.cg_image, image_format_failure, false, extra_found_images); profile_t profile; // We can't use start_offset support in profile_t, give // it a zero offset and we will fix that in add() profile.add_sample_file(*it); add(profile, caller_bfd, caller_bfd_ok, callee_bfd, merge_lib ? app_image : app_name, pc, debug_info, pclass); } } void callgraph_container:: add(profile_t const & profile, op_bfd const & caller_bfd, bool caller_bfd_ok, op_bfd const & callee_bfd, string const & app_name, profile_container const & pc, bool debug_info, size_t pclass) { string const image_name = caller_bfd.get_filename(); opd_header const & header = profile.get_header(); // We can't use kernel sample file w/o the binary else we will // use it with a zero offset, the code below will abort because // we will get incorrect callee sub-range and out of range // callee vma. FIXME if (header.is_kernel && !caller_bfd_ok) return; // We must handle start_offset, this offset can be different for the // caller and the callee: kernel sample traversing the syscall barrier. u32 caller_offset; if (header.is_kernel) caller_offset = caller_bfd.get_start_offset(0); else caller_offset = header.anon_start; u32 callee_offset; if (header.cg_to_is_kernel) callee_offset = callee_bfd.get_start_offset(0); else callee_offset = header.cg_to_anon_start; image_name_id image_id = image_names.create(image_name); image_name_id callee_image_id = image_names.create(callee_bfd.get_filename()); image_name_id app_id = image_names.create(app_name); call_data caller(pc, profile, caller_bfd, caller_offset, image_id, app_id, debug_info); call_data callee(pc, profile, callee_bfd, callee_offset, callee_image_id, app_id, debug_info); if (cverb << vdebug) { caller.verbose_bfd("Caller:"); callee.verbose_bfd("Callee:"); } // For each symbol in the caller bfd, process all arcs to // callee bfd symbols for (symbol_index_t i = 0; i < caller_bfd.syms.size(); ++i) { caller.caller_sym(i); call_data::const_iterator dit = caller.samples.begin(); call_data::const_iterator dend = caller.samples.end(); while (dit != dend) { // if we can't find the callee, skip an arc if (!callee.callee_sym(key_to_callee(dit->first))) { ++dit; continue; } count_array_t arc_count; arc_count[pclass] = accumulate_callee(dit, dend, callee.callee_end); recorder.add(caller.sym, &callee.sym, arc_count); } } } void callgraph_container::add_symbols(profile_container const & pc) { symbol_container::symbols_t::iterator it; symbol_container::symbols_t::iterator const end = pc.end_symbol(); for (it = pc.begin_symbol(); it != end; ++it) recorder.add(*it, 0, count_array_t()); } column_flags callgraph_container::output_hint() const { column_flags output_hints = cf_none; // FIXME: costly: must we access directly recorder map ? symbol_collection syms = recorder.get_symbols(); symbol_collection::iterator it; symbol_collection::iterator const end = syms.end(); for (it = syms.begin(); it != end; ++it) output_hints = (*it)->output_hint(output_hints); return output_hints; } count_array_t callgraph_container::samples_count() const { return total_count; } symbol_collection const & callgraph_container::get_symbols() const { return recorder.get_symbols(); } oprofile-0.9.9/libpp/parse_filename.h0000664000076400007640000000335612175510132014540 00000000000000/** * @file parse_filename.h * Split a sample filename into its constituent parts * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie */ #ifndef PARSE_FILENAME_H #define PARSE_FILENAME_H #include class extra_images; /** * a convenience class to store result of parse_filename() */ struct parsed_filename { std::string image; std::string lib_image; /// destination image for call graph file, empty if this sample /// file is not a callgraph file. std::string cg_image; std::string event; std::string count; std::string unitmask; std::string tgid; std::string tid; std::string cpu; /// return true if the profile specification are identical. bool profile_spec_equal(parsed_filename const & parsed); /** * the original sample filename from which the * above components are built */ std::string filename; bool jit_dumpfile_exists; /* Provide default constructor to initialize jit_dumpfile_exists, * otherwise it can contain garbage when its containing object is * instantiated on the stack. */ parsed_filename() : jit_dumpfile_exists(false) {} }; /// debugging helper std::ostream & operator<<(std::ostream &, parsed_filename const &); /** * parse a sample filename * @param filename in: a sample filename * @param extra_found_images binary image location * * filename is split into constituent parts, the lib_image is optional * and can be empty on successfull call. All other error are fatal. * Filenames are encoded as according to PP:3.19 to PP:3.25 * * all errors throw an std::invalid_argument exception */ parsed_filename parse_filename(std::string const & filename, extra_images const & extra_found_images); #endif /* !PARSE_FILENAME_H */ oprofile-0.9.9/libpp/callgraph_container.h0000664000076400007640000001115112175510132015555 00000000000000/** * @file callgraph_container.h * Container associating symbols and caller/caller symbols * * @remark Copyright 2004 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #ifndef CALLGRAPH_CONTAINER_H #define CALLGRAPH_CONTAINER_H #include #include #include #include "symbol.h" #include "symbol_functors.h" #include "string_filter.h" #include "locate_images.h" class profile_container; class inverted_profile; class profile_t; class image_set; class op_bfd; /** * During building a callgraph_container we store all caller/callee * relationship in this container. * * An "arc" is simply a description of a call from one function to * another. */ class arc_recorder { public: ~arc_recorder() {} /** * Add a symbol arc. * @param caller The calling symbol * @param callee The called symbol * @param arc_count profile data for the arcs * * If the callee is NULL, only the caller is added to the main * list. This is used to initially populate the recorder with * the symbols. */ void add(symbol_entry const & caller, symbol_entry const * callee, count_array_t const & arc_count); /// return all the cg symbols symbol_collection const & get_symbols() const; /** * After population, build the final output, and do * thresholding. */ void process(count_array_t total, double threshold, string_filter const & filter); private: /** * Internal structure used during collation. We use a map to * allow quick lookup of children (we'll do this several times * if we have more than one profile class). Each child maps from * the symbol to the relevant arc data. */ struct cg_data { cg_data() {} typedef std::map children; /// callers of this symbol children callers; /// callees of this symbol children callees; }; /** * Sort and threshold callers and callees. */ void process_children(cg_symbol & sym, double threshold); typedef std::map map_t; /// all the symbols (used during processing) map_t sym_map; /// symbol objects pointed to by pointers in vector cg_syms cg_collection_objs cg_syms_objs; /// final output data symbol_collection cg_syms; }; /** * Store all callgraph information for the given profiles */ class callgraph_container { public: /** * Populate the container, must be called once only. * @param iprofiles sample file list including callgraph files. * @param extra extra image list to fixup binary name. * @param debug_info true if we must record linenr information * @param threshold ignore sample percent below this threshold * @param merge_lib merge library samples * @param sym_filter symbol filter * * Currently all errors core dump. * FIXME: consider if this should be a ctor */ void populate(std::list const & iprofiles, extra_images const & extra, bool debug_info, double threshold, bool merge_lib, string_filter const & sym_filter); /// return hint on how data must be displayed. column_flags output_hint() const; /// return the total number of samples. count_array_t samples_count() const; // return all the cg symbols symbol_collection const & get_symbols() const; private: /** * Record caller/callee for one cg file * @param profile one callgraph file stored in a profile_t * @param caller_bfd the caller bfd * @param bfd_caller_ok true if we succefully open the binary * @param callee_bfd the callee bfd * @param app_name the owning application * @param pc the profile_container holding all non cg samples. * @param debug_info record linenr debug information * @param pclass profile class nr */ void add(profile_t const & profile, op_bfd const & caller_bfd, bool bfd_caller_ok, op_bfd const & callee_bfd, std::string const & app_name, profile_container const & pc, bool debug_info, size_t pclass); void populate(std::list const & lset, std::string const & app_image, size_t pclass, profile_container const & pc, bool debug_info, bool merge_lib); void populate(std::list const & cg_files, std::string const & app_image, size_t pclass, profile_container const & pc, bool debug_info, bool merge_lib); /// record all main symbols void add_symbols(profile_container const & pc); /// Cached value of samples count. count_array_t total_count; /// A structured representation of the callgraph. arc_recorder recorder; public: // FIXME extra_images extra_found_images; }; #endif /* !CALLGRAPH_CONTAINER_H */ oprofile-0.9.9/libpp/profile_container.h0000664000076400007640000001432512175510132015266 00000000000000/** * @file profile_container.h * Container associating symbols and samples * * @remark Copyright 2002, 2003 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #ifndef PROFILE_CONTAINER_H #define PROFILE_CONTAINER_H #include #include #include "profile.h" #include "utility.h" #include "op_bfd.h" #include "sample_container.h" #include "symbol_container.h" #include "format_flags.h" #include "locate_images.h" class string_filter; class symbol_entry; class sample_entry; /** * Store multiple samples files belonging to the same profiling session. * This is the main container capable of holding the profiles for arbitrary * binary images and arbitrary profile classes. */ class profile_container : noncopyable { public: /** * Build an object to store information on samples. All parameters * acts as hint for what you will request after recording samples and * so allow optimizations during recording the information. * * @param debug_info If true line numbers and source files are * recorded. * @param need_details If true if we need to record all samples or to * to record them at symbol level. * @param extra extra images location */ profile_container(bool debug_info, bool need_details, extra_images const & extra); ~profile_container(); /** * add() - record symbols/samples in the underlying container * * @param profile the samples files container * @param abfd the associated bfd object * @param app_name the owning application name of sample * @param pclass the profile class to add results for * * add() is an helper for delayed ctor. Take care you can't safely * make any call to add after any other member function call. * Obviously you can add only samples files which are coherent (same * sampling rate, same events etc.) */ void add(profile_t const & profile, op_bfd const & abfd, std::string const & app_name, size_t pclass); /// Find a symbol from its image_name, vma, return zero if no symbol /// for this image at this vma symbol_entry const * find_symbol(std::string const & image_name, bfd_vma vma) const; /// Find the symbols from its filename, linenr, return an empty /// symbol_collection if no symbol at this location symbol_collection const find_symbol(debug_name_id filename, size_t linenr) const; /// Find a sample by its symbol, vma, return zero if there is no sample /// at this vma sample_entry const * find_sample(symbol_entry const * symbol, bfd_vma vma) const; /// Find a symbol. Return NULL if not found. symbol_entry const * find(symbol_entry const & symbol) const; /// used for select_symbols() struct symbol_choice { symbol_choice() : hints(cf_none), threshold(0.0), match_image(false) {} /// hints filled in column_flags hints; /// percentage threshold double threshold; /// match the image name only bool match_image; /// owning image name std::string image_name; }; /** * select_symbols - create a set of symbols sorted by sample count * @param choice parameters to use/fill in when selecting */ symbol_collection const select_symbols(symbol_choice & choice) const; /** * select_symbols - create a set of symbols belonging to a given source * @param filename source file where are defined the returned symbols */ symbol_collection const select_symbols(debug_name_id filename) const; /// Like select_symbols for filename without allowing sort by vma. std::vector const select_filename(double threshold) const; /// return the total number of samples count_array_t samples_count() const; /// Get the samples count which belongs to filename. Return 0 if /// no samples found. count_array_t samples_count(debug_name_id filename_id) const; /// Get the samples count which belongs to filename, linenr. Return /// 0 if no samples found. count_array_t samples_count(debug_name_id filename, size_t linenr) const; /// return an iterator to the first symbol symbol_container::symbols_t::iterator begin_symbol() const; /// return an iterator to the last symbol symbol_container::symbols_t::iterator end_symbol() const; /// return iterator to the first samples sample_container::samples_iterator begin() const; /// return iterator to the last samples sample_container::samples_iterator end() const; /// return iterator to the first samples for this symbol sample_container::samples_iterator begin(symbol_entry const *) const; /// return iterator to the last samples for this symbol sample_container::samples_iterator end(symbol_entry const *) const; private: /// helper for add() void add_samples(op_bfd const & abfd, symbol_index_t sym_index, profile_t::iterator_pair const &, symbol_entry const * symbol, size_t pclass, unsigned long start); /** * create an unique artificial symbol for an offset range. The range * is only a hint of the maximum size of the created symbol. We * give to the symbol an unique name as ?image_file_name#order and * a range up to the nearest of syms or for the whole range if no * syms exist after the start offset. the end parameter is updated * to reflect the symbol range. * * The rationale here is to try to create symbols for alignment between * function as little as possible and to create meaningfull symbols * for special case such image w/o symbol. */ std::string create_artificial_symbol(op_bfd const & abfd, u32 start, u32 & end, size_t & order); /// The symbols collected by pp tools sorted by increased vma, provide /// also a sort order on samples count for each profile class scoped_ptr symbols; /// The samples count collected by pp tools sorted by increased vma, /// provide also a sort order on (filename, linenr) scoped_ptr samples; /// build() must count samples count for each profile class so cache it /// here since user of profile_container often need it later. count_array_t total_count; /** * Optimization hints for what information we are going to need, * see the explanation in profile_container() */ //@{ bool debug_info; bool need_details; //@} public: // FIXME extra_images extra_found_images; }; #endif /* !PROFILE_CONTAINER_H */ oprofile-0.9.9/libpp/image_errors.cpp0000664000076400007640000000336612175510132014600 00000000000000/** * @file image_errors.cpp * Report errors in images * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon */ #include "image_errors.h" #include "arrange_profiles.h" #include "string_manip.h" #include "locate_images.h" #include #include using namespace std; namespace { set reported_images_error; } void report_image_error(string const & image, image_error error, bool fatal, extra_images const & extra) { if (error == image_ok) return; string image_name = extra.get_archive_path() + image; if (reported_images_error.find(image_name) == reported_images_error.end()) { reported_images_error.insert(image_name); // FIXME: hacky if (error == image_not_found && is_prefix(image, "anon ")) return; cerr << (fatal ? "error: " : "warning: "); cerr << image_name << ' '; switch (error) { case image_not_found: cerr << "could not be found.\n"; break; case image_unreadable: cerr << "could not be read.\n"; break; case image_multiple_match: cerr << "matches more than one file: " "detailed profile will not be provided.\n"; break; case image_format_failure: cerr << "is not in a usable binary format.\n"; break; case image_ok: break; } } } void report_image_error(inverted_profile const & profile, bool fatal, extra_images const & extra) { report_image_error(profile.image, profile.error, fatal, extra); } void report_image_errors(list const & plist, extra_images const & extra) { list::const_iterator it = plist.begin(); list::const_iterator const end = plist.end(); for (; it != end; ++it) report_image_error(*it, false, extra); } oprofile-0.9.9/libpp/sample_container.cpp0000664000076400007640000000550512175510132015442 00000000000000/** * @file sample_container.cpp * Internal container for samples * * @remark Copyright 2002, 2003 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #include #include #include #include #include #include "sample_container.h" using namespace std; namespace { // FIXME: efficiency ? count_array_t add_counts(count_array_t const & counts, sample_entry const * s) { count_array_t temp(counts); temp += s->counts; return temp; } } // namespace anon sample_container::samples_iterator sample_container::begin() const { return samples.begin(); } sample_container::samples_iterator sample_container::end() const { return samples.end(); } sample_container::samples_iterator sample_container::begin(symbol_entry const * symbol) const { samples_storage::key_type key(symbol, 0); return samples.lower_bound(key); } sample_container::samples_iterator sample_container::end(symbol_entry const * symbol) const { samples_storage::key_type key(symbol, ~bfd_vma(0)); return samples.upper_bound(key); } void sample_container::insert(symbol_entry const * symbol, sample_entry const & sample) { samples_storage::key_type key(symbol, sample.vma); samples_storage::iterator it = samples.find(key); if (it != samples.end()) { it->second.counts += sample.counts; } else { samples[key] = sample; } } count_array_t sample_container::accumulate_samples(debug_name_id filename_id) const { build_by_loc(); sample_entry lower, upper; lower.file_loc.filename = upper.file_loc.filename = filename_id; lower.file_loc.linenr = 0; upper.file_loc.linenr = INT_MAX; typedef samples_by_loc_t::const_iterator iterator; iterator it1 = samples_by_loc.lower_bound(&lower); iterator it2 = samples_by_loc.upper_bound(&upper); return accumulate(it1, it2, count_array_t(), add_counts); } sample_entry const * sample_container::find_by_vma(symbol_entry const * symbol, bfd_vma vma) const { sample_index_t key(symbol, vma); samples_iterator it = samples.find(key); if (it != samples.end()) return &it->second; return 0; } count_array_t sample_container::accumulate_samples(debug_name_id filename, size_t linenr) const { build_by_loc(); sample_entry sample; sample.file_loc.filename = filename; sample.file_loc.linenr = linenr; typedef pair it_pair; it_pair itp = samples_by_loc.equal_range(&sample); return accumulate(itp.first, itp.second, count_array_t(), add_counts); } void sample_container::build_by_loc() const { if (!samples_by_loc.empty()) return; samples_iterator cit = samples.begin(); samples_iterator end = samples.end(); for (; cit != end; ++cit) samples_by_loc.insert(&cit->second); } oprofile-0.9.9/libpp/filename_spec.h0000664000076400007640000000350412175510132014353 00000000000000/** * @file filename_spec.h * Container holding a sample filename split into its components * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie */ #ifndef FILENAME_SPEC_H #define FILENAME_SPEC_H #include #include #include "generic_spec.h" class profile_spec; class extra_images; /** * A class to split and store components of a sample filename. * These derived values are then used to match against a * profile_spec as given by the user. */ class filename_spec { friend class profile_spec; public: /** * @param filename the samples filename * @param extra extra binary image location * * build a filename_spec from a samples filename */ filename_spec(std::string const & filename, extra_images const & extra); filename_spec(); /** * @param filename a sample filename * @param extra extra binary image location * * setup filename spec according to the samples filename. PP:3.19 to * 3.25 */ void set_sample_filename(std::string const & filename, extra_images const & extra); /** * @param rhs right hand side of the match operator * @param binary if binary is non-empty, and matches * the binary or lib name, use it rather than the * one in rhs. * * return true if *this match rhs, matching if: * - image_name are identical * - lib_name are identical * - event_spec match * * This operation is not commutative. First part of PP:3.24 */ bool match(filename_spec const & rhs, std::string const & binary) const; bool is_dependent() const; private: std::string image; std::string lib_image; std::string cg_image; std::string event; int count; unsigned int unitmask; generic_spec tgid; generic_spec tid; generic_spec cpu; }; #endif /* !FILENAME_SPEC_H */ oprofile-0.9.9/libpp/profile_spec.h0000664000076400007640000000762512175510132014243 00000000000000/** * @file profile_spec.h * Contains a PP profile specification * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie */ #ifndef PROFILE_SPEC_H #define PROFILE_SPEC_H #include #include #include #include "filename_spec.h" #include "comma_list.h" #include "locate_images.h" /** * Holds a parsed profile spec composed of tag:value pairs, as given in * pp_interface documentation. * * @internal implemented through a map of string, pointer to function member * indexed by tag_name. */ class profile_spec { public: /** * @param args a vector of non options strings * @param extra extra image paths to search * * Factory returning a profile_spec instance storing all valid * tag:value contained in args vector doing also alias * substitution, non-valid tag:value options are considered * as image:value */ static profile_spec create(std::list const & args, std::vector const & image_path, std::string const & root_path); /** * @param exclude_dependent whether to exclude dependent sub-images * @param exclude_cg whether to exclude call graph file * * Use the spec to generate the list of candidate sample files. */ std::list generate_file_list(bool exclude_dependent, bool exclude_cg) const; /** * @param file_spec the filename specification to check * * return true if filename match the spec. PP:3.24 internal loop */ bool match(filename_spec const & file_spec) const; /** * return archive name * returns an empty string if not using an archive. */ std::string get_archive_path() const; private: profile_spec(); /** * @param tag_value a "tag:value" to interpret, all error throw an * invalid_argument exception. */ void parse(std::string const & tag_value); /** * @param image an image or a libray name given on command line * * Used for e.g. "opreport /bin/mybinary". We don't know yet * if this is an application or a dependent image. */ void set_image_or_lib_name(std::string const & image); /** * @param str a "tag:value" * * return true if tag is a valid tag */ bool is_valid_tag(std::string const & str); /** * implement tag parsing: PP:3.3 to 3.16 */ void parse_archive_path(std::string const &); void parse_session(std::string const &); void parse_session_exclude(std::string const &); void parse_image(std::string const &); void parse_image_exclude(std::string const &); void parse_lib_image(std::string const &); void parse_event(std::string const &); void parse_count(std::string const &); void parse_unitmask(std::string const &); void parse_tid(std::string const &); void parse_tgid(std::string const &); void parse_cpu(std::string const &); typedef void (profile_spec::*action_t)(std::string const &); typedef std::map parse_table_t; parse_table_t parse_table; /** * @param tag_value input "tag:value" string * @param value if success return the value part of tag_value * helper for set/is_valid_tag public interface * * return null if tag is not valid, else return the pointer to member * function to apply and the value in value parameter */ action_t get_handler(std::string const & tag_value, std::string & value); std::string archive_path; std::string binary; std::vector session; std::vector session_exclude; std::vector image; std::vector image_exclude; std::vector lib_image; comma_list event; comma_list count; comma_list unitmask; comma_list tid; comma_list tgid; comma_list cpu; // specified by user on command like opreport image1 image2 ... std::vector image_or_lib_image; public: // FIXME /// extra search path for images extra_images extra_found_images; }; #endif /* !PROFILE_SPEC_H */ oprofile-0.9.9/libpp/symbol_sort.cpp0000664000076400007640000001044712175510132014474 00000000000000/** * @file symbol_sort.cpp * Sorting symbols * * @remark Copyright 2002, 2003 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #include "symbol_sort.h" #include "symbol_functors.h" #include "name_storage.h" #include "op_exception.h" #include #include using namespace std; namespace { bool long_filenames; int image_compare(image_name_id l, image_name_id r) { if (long_filenames) return image_names.name(l).compare(image_names.name(r)); return image_names.basename(l).compare(image_names.basename(r)); } int debug_compare(debug_name_id l, debug_name_id r) { if (long_filenames) return debug_names.name(l).compare(debug_names.name(r)); return debug_names.basename(l).compare(debug_names.basename(r)); } int compare_by(sort_options::sort_order order, symbol_entry const & lhs, symbol_entry const & rhs) { switch (order) { case sort_options::sample: if (lhs.sample.counts[0] < rhs.sample.counts[0]) return 1; if (lhs.sample.counts[0] > rhs.sample.counts[0]) return -1; return 0; case sort_options::symbol: return symbol_names.demangle(lhs.name).compare( symbol_names.demangle(rhs.name)); case sort_options::image: return image_compare(lhs.image_name, rhs.image_name); case sort_options::app_name: return image_compare(lhs.app_name, rhs.app_name); case sort_options::vma: if (lhs.sample.vma < rhs.sample.vma) return -1; if (lhs.sample.vma > rhs.sample.vma) return 1; return 0; case sort_options::debug: { file_location const & f1 = lhs.sample.file_loc; file_location const & f2 = rhs.sample.file_loc; int ret = debug_compare(f1.filename, f2.filename); if (ret == 0) ret = f1.linenr - f2.linenr; return ret; } default: { // static_cast<> to shut up g++ 2.91.66 which warn // about ambiguity between <<(int) and <<(long int) ostringstream os; os << "compare_by(): unknown sort option: " << static_cast(order) << endl; throw op_fatal_error(os.str()); } } return 0; } struct symbol_compare { symbol_compare(vector const & order, bool reverse) : compare_order(order), reverse_sort(reverse) {} bool operator()(symbol_entry const * lhs, symbol_entry const * rhs) const { return operator()(*lhs, *rhs); } bool operator()(symbol_entry const & lhs, symbol_entry const & rhs) const; protected: vector const & compare_order; bool reverse_sort; }; bool symbol_compare::operator()(symbol_entry const & lhs, symbol_entry const & rhs) const { for (size_t i = 0; i < compare_order.size(); ++i) { int ret = compare_by(compare_order[i], lhs, rhs); if (reverse_sort) ret = -ret; if (ret != 0) return ret < 0; } return false; } } // anonymous namespace void sort_options:: sort(symbol_collection & syms, bool reverse_sort, bool lf) const { long_filenames = lf; vector sort_option(options); for (sort_order cur = first; cur != last; cur = sort_order(cur + 1)) { if (find(sort_option.begin(), sort_option.end(), cur) == sort_option.end()) sort_option.push_back(cur); } stable_sort(syms.begin(), syms.end(), symbol_compare(sort_option, reverse_sort)); } void sort_options:: sort(diff_collection & syms, bool reverse_sort, bool lf) const { long_filenames = lf; vector sort_option(options); for (sort_order cur = first; cur != last; cur = sort_order(cur + 1)) { if (find(sort_option.begin(), sort_option.end(), cur) == sort_option.end()) sort_option.push_back(cur); } stable_sort(syms.begin(), syms.end(), symbol_compare(sort_option, reverse_sort)); } void sort_options::add_sort_option(string const & name) { if (name == "vma") { options.push_back(vma); } else if (name == "sample") { options.push_back(sample); } else if (name == "symbol") { options.push_back(symbol); } else if (name == "debug") { options.push_back(debug); } else if (name == "image") { options.push_back(image); } else if (name == "app-name") { options.push_back(app_name); } else { ostringstream os; os << "unknown sort option: " << name << endl; throw op_fatal_error(os.str()); } } void sort_options::add_sort_option(sort_options::sort_order order) { options.push_back(order); } oprofile-0.9.9/libpp/Makefile.in0000664000076400007640000004503212175510234013462 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libpp DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) ARFLAGS = cru libpp_a_AR = $(AR) $(ARFLAGS) libpp_a_LIBADD = am_libpp_a_OBJECTS = arrange_profiles.$(OBJEXT) \ callgraph_container.$(OBJEXT) diff_container.$(OBJEXT) \ filename_spec.$(OBJEXT) format_output.$(OBJEXT) \ image_errors.$(OBJEXT) locate_images.$(OBJEXT) \ name_storage.$(OBJEXT) op_header.$(OBJEXT) symbol.$(OBJEXT) \ parse_filename.$(OBJEXT) populate.$(OBJEXT) profile.$(OBJEXT) \ profile_container.$(OBJEXT) profile_spec.$(OBJEXT) \ sample_container.$(OBJEXT) symbol_container.$(OBJEXT) \ symbol_functors.$(OBJEXT) symbol_sort.$(OBJEXT) \ xml_utils.$(OBJEXT) populate_for_spu.$(OBJEXT) libpp_a_OBJECTS = $(am_libpp_a_OBJECTS) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libpp_a_SOURCES) DIST_SOURCES = $(libpp_a_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ AM_CPPFLAGS = \ -I ${top_srcdir}/libop \ -I ${top_srcdir}/libutil \ -I ${top_srcdir}/libdb \ -I ${top_srcdir}/libopt++ \ -I ${top_srcdir}/libutil++ \ -I ${top_srcdir}/libop++ \ -I ${top_srcdir}/libregex \ @OP_CPPFLAGS@ AM_CXXFLAGS = @OP_CXXFLAGS@ noinst_LIBRARIES = libpp.a libpp_a_SOURCES = \ arrange_profiles.cpp \ arrange_profiles.h \ callgraph_container.h \ callgraph_container.cpp \ diff_container.cpp \ diff_container.h \ filename_spec.cpp \ filename_spec.h \ format_flags.h \ format_output.cpp \ format_output.h \ image_errors.h \ image_errors.cpp \ locate_images.cpp \ locate_images.h \ name_storage.cpp \ name_storage.h \ op_header.cpp \ op_header.h \ symbol.cpp \ symbol.h \ parse_filename.cpp \ parse_filename.h \ populate.h \ populate.cpp \ profile.cpp \ profile.h \ profile_container.cpp \ profile_container.h \ profile_spec.cpp \ profile_spec.h \ sample_container.cpp \ sample_container.h \ symbol_container.cpp \ symbol_container.h \ symbol_functors.cpp \ symbol_functors.h \ symbol_sort.cpp \ symbol_sort.h \ xml_utils.h \ xml_utils.cpp \ populate_for_spu.cpp \ populate_for_spu.h all: all-am .SUFFIXES: .SUFFIXES: .cpp .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libpp/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign libpp/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) libpp.a: $(libpp_a_OBJECTS) $(libpp_a_DEPENDENCIES) -rm -f libpp.a $(libpp_a_AR) libpp.a $(libpp_a_OBJECTS) $(libpp_a_LIBADD) $(RANLIB) libpp.a mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arrange_profiles.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/callgraph_container.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/diff_container.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/filename_spec.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/format_output.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/image_errors.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/locate_images.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/name_storage.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/op_header.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/parse_filename.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/populate.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/populate_for_spu.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/profile.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/profile_container.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/profile_spec.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sample_container.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/symbol.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/symbol_container.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/symbol_functors.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/symbol_sort.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xml_utils.Po@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLIBRARIES ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/libpp/profile_container.cpp0000664000076400007640000002122712175510132015620 00000000000000/** * @file profile_container.cpp * profile file container * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #include #include #include #include #include #include #include #include "symbol.h" #include "op_header.h" #include "profile.h" #include "symbol_functors.h" #include "profile_container.h" #include "sample_container.h" #include "symbol_container.h" #include "populate_for_spu.h" #include "cverb.h" using namespace std; namespace { struct filename_by_samples { filename_by_samples(debug_name_id id, double percent_) : filename(id), percent(percent_) {} bool operator<(filename_by_samples const & lhs) const { if (percent != lhs.percent) return percent < lhs.percent; return filename < lhs.filename; } debug_name_id filename; // ratio of samples which belongs to this filename. double percent; }; } // anon namespace profile_container::profile_container(bool debug_info_, bool need_details_, extra_images const & extra_) : symbols(new symbol_container), samples(new sample_container), debug_info(debug_info_), need_details(need_details_), extra_found_images(extra_) { } profile_container::~profile_container() { } // Post condition: // the symbols/samples are sorted by increasing vma. // the range of sample_entry inside each symbol entry are valid // the samples_by_file_loc member var is correctly setup. void profile_container::add(profile_t const & profile, op_bfd const & abfd, string const & app_name, size_t pclass) { string const image_name = abfd.get_filename(); opd_header header = profile.get_header(); count_type sym_count_total = 0; for (symbol_index_t i = 0; i < abfd.syms.size(); ++i) { unsigned long long start = 0, end = 0; symbol_entry symb_entry; abfd.get_symbol_range(i, start, end); profile_t::iterator_pair p_it = profile.samples_range(start, end); count_type count = accumulate(p_it.first, p_it.second, 0ull); // skip entries with no samples if (count == 0) continue; sym_count_total += count; symb_entry.sample.counts[pclass] = count; total_count[pclass] += count; symb_entry.size = end - start; symb_entry.name = symbol_names.create(abfd.syms[i].name()); symb_entry.sym_index = i; symb_entry.vma_adj = abfd.get_vma_adj(); symb_entry.sample.file_loc.linenr = 0; if (debug_info) { string filename; if (abfd.get_linenr(i, start, filename, symb_entry.sample.file_loc.linenr)) { symb_entry.sample.file_loc.filename = debug_names.create(filename); } } symb_entry.image_name = image_names.create(image_name); symb_entry.app_name = image_names.create(app_name); symb_entry.sample.vma = abfd.syms[i].vma(); if ((header.spu_profile == cell_spu_profile) && header.embedded_offset) { symb_entry.spu_offset = header.embedded_offset; symb_entry.embedding_filename = image_names.create(abfd.get_embedding_filename()); } else { symb_entry.spu_offset = 0; } symbol_entry const * symbol = symbols->insert(symb_entry); if (need_details) add_samples(abfd, i, p_it, symbol, pclass, start); } if (cverb << vdebug) { profile_t::iterator_pair summary_it = profile.samples_range(profile.get_offset(), ~0ULL); count_type module_summary_count = accumulate(summary_it.first, summary_it.second, 0ull); if (sym_count_total < module_summary_count) cout << "INFO: Sample counts differ: Module summary count: " << dec << module_summary_count << "; total symbols count: " << sym_count_total << endl << "\timage name: " << image_name << endl; else if (module_summary_count < sym_count_total) cout << "Warning: Number of samples for module unexpectedly less than total " "symbols count!" << endl << "\timage name: " << image_name << endl; } } void profile_container::add_samples(op_bfd const & abfd, symbol_index_t sym_index, profile_t::iterator_pair const & p_it, symbol_entry const * symbol, size_t pclass, unsigned long start) { bfd_vma base_vma = abfd.syms[sym_index].vma(); profile_t::const_iterator it; for (it = p_it.first; it != p_it.second ; ++it) { sample_entry sample; sample.counts[pclass] = it.count(); sample.file_loc.linenr = 0; if (debug_info) { string filename; if (abfd.get_linenr(sym_index, it.vma(), filename, sample.file_loc.linenr)) { sample.file_loc.filename = debug_names.create(filename); } } sample.vma = (it.vma() - start) + base_vma; samples->insert(symbol, sample); } } symbol_collection const profile_container::select_symbols(symbol_choice & choice) const { symbol_collection result; double const threshold = choice.threshold / 100.0; symbol_container::symbols_t::iterator it = symbols->begin(); symbol_container::symbols_t::iterator const end = symbols->end(); for (; it != end; ++it) { if (choice.match_image && (image_names.name(it->image_name) != choice.image_name)) continue; double const percent = op_ratio(it->sample.counts[0], total_count[0]); if (percent >= threshold) { result.push_back(&*it); choice.hints = it->output_hint(choice.hints); } } return result; } vector const profile_container::select_filename(double threshold) const { set filename_set; threshold /= 100.0; // Trying to iterate on symbols to create the set of filenames which // contain sample does not work: a symbol can contain samples and this // symbol is in a source file that contain zero sample because only // inline function in this source file contains samples. sample_container::samples_iterator sit = samples->begin(); sample_container::samples_iterator const send = samples->end(); for (; sit != send; ++sit) { debug_name_id name_id = sit->second.file_loc.filename; if (name_id.set()) filename_set.insert(name_id); } // Give a sort order on filename for the selected pclass. vector file_by_samples; set::const_iterator it = filename_set.begin(); set::const_iterator const end = filename_set.end(); for (; it != end; ++it) { // FIXME: is samples_count() the right interface now ? count_array_t counts = samples_count(*it); double const ratio = op_ratio(counts[0], total_count[0]); filename_by_samples const f(*it, ratio); file_by_samples.push_back(f); } // now sort the file_by_samples entry. sort(file_by_samples.begin(), file_by_samples.end()); // 2.91.66 doesn't like const_reverse_iterator in this context vector::reverse_iterator cit = file_by_samples.rbegin(); vector::reverse_iterator const cend = file_by_samples.rend(); vector result; for (; cit != cend; ++cit) { if (cit->percent >= threshold) result.push_back(cit->filename); } return result; } count_array_t profile_container::samples_count() const { return total_count; } // Rest here are delegated to our private implementation. symbol_entry const * profile_container::find_symbol(string const & image_name, bfd_vma vma) const { return symbols->find_by_vma(image_name, vma); } symbol_collection const profile_container::find_symbol(debug_name_id filename, size_t linenr) const { return symbols->find(filename, linenr); } symbol_collection const profile_container::select_symbols(debug_name_id filename) const { return symbols->find(filename); } sample_entry const * profile_container::find_sample(symbol_entry const * symbol, bfd_vma vma) const { return samples->find_by_vma(symbol, vma); } count_array_t profile_container::samples_count(debug_name_id filename_id) const { return samples->accumulate_samples(filename_id); } count_array_t profile_container::samples_count(debug_name_id filename, size_t linenr) const { return samples->accumulate_samples(filename, linenr); } sample_container::samples_iterator profile_container::begin(symbol_entry const * symbol) const { return samples->begin(symbol); } sample_container::samples_iterator profile_container::end(symbol_entry const * symbol) const { return samples->end(symbol); } sample_container::samples_iterator profile_container::begin() const { return samples->begin(); } sample_container::samples_iterator profile_container::end() const { return samples->end(); } symbol_entry const * profile_container::find(symbol_entry const & symbol) const { return symbols->find(symbol); } symbol_container::symbols_t::iterator profile_container::begin_symbol() const { return symbols->begin(); } symbol_container::symbols_t::iterator profile_container::end_symbol() const { return symbols->end(); } oprofile-0.9.9/libpp/format_output.h0000664000076400007640000002263612175510132014500 00000000000000/** * @file format_output.h * outputting format for symbol lists * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #ifndef FORMAT_OUTPUT_H #define FORMAT_OUTPUT_H #include "config.h" #include #include #include #include "format_flags.h" #include "symbol.h" #include "string_filter.h" #include "xml_output.h" class symbol_entry; class sample_entry; class callgraph_container; class profile_container; class diff_container; class extra_images; class op_bfd; struct profile_classes; // FIXME: should be passed to the derived class formatter ctor extern profile_classes classes; namespace format_output { /// base class for formatter, handle common options to formatter class formatter { public: formatter(extra_images const & extra); virtual ~formatter(); /// add a given column void add_format(format_flags flag); /// set the need_header boolean to false void show_header(bool); /// format for 64 bit wide VMAs void vma_format_64bit(bool); /// show long (full path) filenames void show_long_filenames(bool); /// use global count rather symbol count for details percent void show_global_percent(bool); /** * Set the number of collected profile classes. Each class * will output sample count and percentage in extra columns. * * This class assumes that the profile information has been * populated with the right number of classes. */ void set_nr_classes(size_t nr_classes); /// output table header, implemented by calling the virtual function /// output_header_field() void output_header(std::ostream & out); protected: struct counts_t { /// total sample count count_array_t total; /// samples so far count_array_t cumulated_samples; /// percentage so far count_array_t cumulated_percent; /// detailed percentage so far count_array_t cumulated_percent_details; }; /// data passed for output struct field_datum { field_datum(symbol_entry const & sym, sample_entry const & s, size_t pc, counts_t & c, extra_images const & extra, double d = 0.0) : symbol(sym), sample(s), pclass(pc), counts(c), extra(extra), diff(d) {} symbol_entry const & symbol; sample_entry const & sample; size_t pclass; counts_t & counts; extra_images const & extra; double diff; }; /// format callback type typedef std::string (formatter::*fct_format)(field_datum const &); /** @name format functions. * The set of formatting functions, used internally by output(). */ //@{ std::string format_vma(field_datum const &); std::string format_symb_name(field_datum const &); std::string format_image_name(field_datum const &); std::string format_app_name(field_datum const &); std::string format_linenr_info(field_datum const &); std::string format_nr_samples(field_datum const &); std::string format_nr_cumulated_samples(field_datum const &); std::string format_percent(field_datum const &); std::string format_cumulated_percent(field_datum const &); std::string format_percent_details(field_datum const &); std::string format_cumulated_percent_details(field_datum const &); std::string format_diff(field_datum const &); //@} /// decribe one field of the colummned output. struct field_description { field_description() : width(0), header_name(""), formatter(NULL) {} field_description(std::size_t w, std::string h, fct_format f) : width(w), header_name(h), formatter(f) {} std::size_t width; std::string header_name; fct_format formatter; }; typedef std::map format_map_t; /// actually do output void do_output(std::ostream & out, symbol_entry const & symbol, sample_entry const & sample, counts_t & c, diff_array_t const & = diff_array_t(), bool hide_immutable_field = false); /// returns the nr of char needed to pad this field size_t output_header_field(std::ostream & out, format_flags fl, size_t padding); /// returns the nr of char needed to pad this field size_t output_field(std::ostream & out, field_datum const & datum, format_flags fl, size_t padding, bool hide_immutable); /// stores functors for doing actual formatting format_map_t format_map; /// number of profile classes size_t nr_classes; /// total counts counts_t counts; /// formatting flags set format_flags flags; /// true if we need to format as 64 bits quantities bool vma_64; /// false if we use basename(filename) in output rather filename bool long_filenames; /// true if we need to show header before the first output bool need_header; /// bool if details percentage are relative to total count rather to /// symbol count bool global_percent; /// To retrieve the real image location, usefull when acting on /// an archive and for 2.6 kernel modules extra_images const & extra_found_images; }; /// class to output in a columned format symbols and associated samples class opreport_formatter : public formatter { public: /// build a ready to use formatter opreport_formatter(profile_container const & profile); /** output a vector of symbols to out according to the output format * specifier previously set by call(s) to add_format() */ void output(std::ostream & out, symbol_collection const & syms); /// set the output_details boolean void show_details(bool); private: /** output one symbol symb to out according to the output format * specifier previously set by call(s) to add_format() */ void output(std::ostream & out, symbol_entry const * symb); /// output details for the symbol void output_details(std::ostream & out, symbol_entry const * symb); /// container we work from profile_container const & profile; /// true if we need to show details for each symbols bool need_details; }; /// class to output in a columned format caller/callee and associated samples class cg_formatter : public formatter { public: /// build a ready to use formatter cg_formatter(callgraph_container const & profile); /** output callgraph information according to the previously format * specifier set by call(s) to add_format() */ void output(std::ostream & out, symbol_collection const & syms); }; /// class to output a columned format symbols plus diff values class diff_formatter : public formatter { public: /// build a ready to use formatter diff_formatter(diff_container const & profile, extra_images const & extra); /** * Output a vector of symbols to out according to the output * format specifier previously set by call(s) to add_format() */ void output(std::ostream & out, diff_collection const & syms); private: /// output a single symbol void output(std::ostream & out, diff_symbol const & sym); }; /// class to output in XML format class xml_formatter : public formatter { public: /// build a ready to use formatter xml_formatter(profile_container const * profile, symbol_collection & symbols, extra_images const & extra, string_filter const & symbol_filter); // output body of XML output void output(std::ostream & out); /** output one symbol symb to out according to the output format * specifier previously set by call(s) to add_format() */ virtual void output_symbol(std::ostream & out, symbol_entry const * symb, size_t lo, size_t hi, bool is_module); /// output details for the symbol std::string output_symbol_details(symbol_entry const * symb, size_t & detail_index, size_t const lo, size_t const hi); /// set the output_details boolean void show_details(bool); // output SymbolData XML elements void output_symbol_data(std::ostream & out); private: /// container we work from profile_container const * profile; // ordered collection of symbols associated with this profile symbol_collection & symbols; /// true if we need to show details for each symbols bool need_details; // count of DetailData items output so far size_t detail_count; /// with --details we need to reopen the bfd object for each symb to /// get it's contents, hence we store the filter used by the bfd ctor. string_filter const & symbol_filter; void output_sample_data(std::ostream & out, sample_entry const & sample, size_t count); /// output attribute in XML void output_attribute(std::ostream & out, field_datum const & datum, format_flags fl, tag_t tag); /// Retrieve a bfd object for this symbol, reopening a new bfd object /// only if necessary bool get_bfd_object(symbol_entry const * symb, op_bfd * & abfd) const; void output_the_symbol_data(std::ostream & out, symbol_entry const * symb, op_bfd * & abfd); void output_cg_children(std::ostream & out, cg_symbol::children const cg_symb, op_bfd * & abfd); }; // callgraph XML output version class xml_cg_formatter : public xml_formatter { public: /// build a ready to use formatter xml_cg_formatter(callgraph_container const & callgraph, symbol_collection & symbols, string_filter const & sf); /** output one symbol symb to out according to the output format * specifier previously set by call(s) to add_format() */ virtual void output_symbol(std::ostream & out, symbol_entry const * symb, size_t lo, size_t hi, bool is_module); private: /// container we work from callgraph_container const & callgraph; void output_symbol_core(std::ostream & out, cg_symbol::children const cg_symb, std::string const selfname, std::string const qname, size_t lo, size_t hi, bool is_module, tag_t tag); }; } // namespace format_output #endif /* !FORMAT_OUTPUT_H */ oprofile-0.9.9/libpp/symbol_functors.h0000664000076400007640000000151012175510132015004 00000000000000/** * @file symbol_functors.h * Functors for symbol/sample comparison * * @remark Copyright 2002, 2003 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #ifndef SYMBOL_FUNCTORS_H #define SYMBOL_FUNCTORS_H #include "symbol.h" /// compare based on file location struct less_by_file_loc { bool operator()(sample_entry const * lhs, sample_entry const * rhs) const { return lhs->file_loc < rhs->file_loc; } bool operator()(symbol_entry const * lhs, symbol_entry const * rhs) const { return lhs->sample.file_loc < rhs->sample.file_loc; } }; /// compare based on symbol contents struct less_symbol { // implementation compare by id rather than by string bool operator()(symbol_entry const & lhs, symbol_entry const & rhs) const; }; #endif /* SYMBOL_FUNCTORS_H */ oprofile-0.9.9/libpp/parse_filename.cpp0000664000076400007640000001462412175510132015073 00000000000000/** * @file parse_filename.cpp * Split a sample filename into its constituent parts * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie */ #include #include #include #include #include #include "parse_filename.h" #include "file_manip.h" #include "string_manip.h" #include "locate_images.h" using namespace std; namespace { // PP:3.19 event_name.count.unitmask.tgid.tid.cpu parsed_filename parse_event_spec(string const & event_spec) { typedef vector parts_type; typedef parts_type::size_type size_type; size_type const nr_parts = 6; parts_type parts = separate_token(event_spec, '.'); if (parts.size() != nr_parts) { throw invalid_argument("parse_event_spec(): bad event specification: " + event_spec); } for (size_type i = 0; i < nr_parts ; ++i) { if (parts[i].empty()) { throw invalid_argument("parse_event_spec(): bad event specification: " + event_spec); } } parsed_filename result; size_type i = 0; result.event = parts[i++]; result.count = parts[i++]; result.unitmask = parts[i++]; result.tgid = parts[i++]; result.tid = parts[i++]; result.cpu = parts[i++]; return result; } /** * @param component path component * * remove from path_component all directory left to {root}, {kern} or {anon} */ void remove_base_dir(vector & path) { vector::iterator it; for (it = path.begin(); it != path.end(); ++it) { if (*it == "{root}" || *it == "{kern}" || *it == "{anon}") break; } path.erase(path.begin(), it); } /// Handle an anon region. Pretty print the details. /// The second argument is the anon portion of the path which will /// contain extra details such as the anon region name (unknown, vdso, heap etc.) string const parse_anon(string const & str, string const & str2) { string name = str2; // Get rid of "{anon: name.erase(0, 6); // Catch the case where we end up with an empty string. This should // never happen, except where things have gone awfully bad with profile // data collection, resulting in one or more bogus sample files. if(0 == name.size()) throw invalid_argument("parse_anon() invalid name: " + str2 + "\n" + "This error indicates your sample data is suspect. It is " + "recommended you do a --reset and collect new profile data."); // Get rid of the trailing '}' name.erase(name.size() - 1, 1); vector parts = separate_token(str, '.'); if (parts.size() != 3) throw invalid_argument("parse_anon() invalid name: " + str); string ret = name +" (tgid:"; ret += parts[0] + " range:" + parts[1] + "-" + parts[2] + ")"; return ret; } } // anonymous namespace /* * valid filename are variations on: * * {kern}/name/event_spec * {root}/path/to/bin/{dep}/{root}/path/to/bin/event_spec * {root}/path/to/bin/{dep}/{anon:anon}/pid.start.end/event_spec * {root}/path/to/bin/{dep}/{anon:[vdso]}/pid.start.end/event_spec * {root}/path/to/bin/{dep}/{kern}/name/event_spec * {root}/path/to/bin/{dep}/{root}/path/to/bin/{cg}/{root}/path/to/bin/event_spec * * where /name/ denote a unique path component */ parsed_filename parse_filename(string const & filename, extra_images const & extra_found_images) { struct stat st; string::size_type pos = filename.find_last_of('/'); if (pos == string::npos) { throw invalid_argument("parse_filename() invalid filename: " + filename); } string event_spec = filename.substr(pos + 1); string filename_spec = filename.substr(0, pos); parsed_filename result = parse_event_spec(event_spec); result.filename = filename; vector path = separate_token(filename_spec, '/'); remove_base_dir(path); // pp_interface PP:3.19 to PP:3.23 path must start either with {root} // or {kern} and we must found at least 2 component, remove_base_dir() // return an empty path if {root} or {kern} are not found if (path.size() < 2) { throw invalid_argument("parse_filename() invalid filename: " + filename); } size_t i; for (i = 1 ; i < path.size() ; ++i) { if (path[i] == "{dep}") break; result.image += "/" + path[i]; } if (i == path.size()) { throw invalid_argument("parse_filename() invalid filename: " + filename); } // skip "{dep}" ++i; // PP:3.19 {dep}/ must be followed by {kern}/, {root}/ or {anon}/ if (path[i] != "{kern}" && path[i] != "{root}" && path[i].find("{anon", 0) != 0) { throw invalid_argument("parse_filename() invalid filename: " + filename); } bool anon = path[i].find("{anon:", 0) == 0; // skip "{root}", "{kern}" or "{anon:.*}" ++i; for (; i < path.size(); ++i) { if (path[i] == "{cg}") break; if (anon) { pos = filename_spec.rfind('.'); pos = filename_spec.rfind('.', pos-1); if (pos == string::npos) { throw invalid_argument("parse_filename() pid.addr.addr name expected: " + filename_spec); } string jitdump = filename_spec.substr(0, pos) + ".jo"; // if a jitdump file exists, we point to this file if (!stat(jitdump.c_str(), &st)) { // later code assumes an optional prefix path // is stripped from the lib_image. result.lib_image = extra_found_images.strip_path_prefix(jitdump); result.jit_dumpfile_exists = true; } else { result.lib_image = parse_anon(path[i], path[i - 1]); } i++; break; } else { result.lib_image += "/" + path[i]; } } if (i == path.size()) return result; // skip "{cg}" ++i; if (i == path.size() || (path[i] != "{kern}" && path[i] != "{root}" && path[i].find("{anon", 0) != 0)) { throw invalid_argument("parse_filename() invalid filename: " + filename); } // skip "{root}", "{kern}" or "{anon}" anon = (path[i].find("{anon", 0) == 0); ++i; if (anon) { result.cg_image = parse_anon(path[i], path[i - 1]); i++; } else { for (; i < path.size(); ++i) result.cg_image += "/" + path[i]; } return result; } bool parsed_filename::profile_spec_equal(parsed_filename const & parsed) { return event == parsed.event && count == parsed.count && unitmask == parsed.unitmask && tgid == parsed.tgid && tid == parsed.tid && cpu == parsed.cpu; } ostream & operator<<(ostream & out, parsed_filename const & data) { out << data.filename << endl; out << data.image << " " << data.lib_image << " " << data.event << " " << data.count << " " << data.unitmask << " " << data.tgid << " " << data.tid << " " << data.cpu << endl; return out; } oprofile-0.9.9/libpp/arrange_profiles.cpp0000664000076400007640000005610512175510132015443 00000000000000/** * @file arrange_profiles.cpp * Classify and process a list of candidate sample files * into merged sets and classes. * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon */ #include #include #include #include #include #include #include "string_manip.h" #include "op_header.h" #include "op_exception.h" #include "arrange_profiles.h" #include "format_output.h" #include "xml_utils.h" #include "parse_filename.h" #include "locate_images.h" using namespace std; namespace { int numeric_compare(string const & lhs, string const & rhs) { if (lhs == "all" && rhs == "all") return 0; // we choose an order arbitrarily if (lhs == "all") return 1; if (rhs == "all") return -1; unsigned int lhsval = op_lexical_cast(lhs); unsigned int rhsval = op_lexical_cast(rhs); if (lhsval == rhsval) return 0; if (lhsval < rhsval) return -1; return 1; } } // anonymous namespace // global to fix some C++ obscure corner case. bool operator<(profile_class const & lhs, profile_class const & rhs) { profile_template const & lt = lhs.ptemplate; profile_template const & rt = rhs.ptemplate; int comp; // The profile classes are used to traverse the sample data // arrays. We create XML elements for and // that contain the sample data that can then be divided amongst // CPU, event, mask axes so it is more convenient to have the // process and thread classes be the outermost nesting level of // the sample data arrays if (!want_xml) { comp = numeric_compare(lt.cpu, rt.cpu); if (comp) return comp < 0; } comp = numeric_compare(lt.tgid, rt.tgid); if (comp) return comp < 0; comp = numeric_compare(lt.tid, rt.tid); if (comp) return comp < 0; comp = numeric_compare(lt.unitmask, rt.unitmask); if (comp) return comp < 0; if (want_xml) { if (lt.event != rt.event) return lt.event < rt.event; if (lt.count != rt.count) return lt.count < rt.count; return numeric_compare(lt.cpu, rt.cpu) < 0; } else { if (lt.event == rt.event) return lt.count < rt.count; return lt.event < rt.event; } } namespace { struct axis_t { string name; string suggestion; } axes[AXIS_MAX] = { { "event", "specify event:, count: or unitmask: (see also --merge=unitmask)" }, { "tgid", "specify tgid: or --merge tgid" }, { "tid", "specify tid: or --merge tid" }, { "cpu", "specify cpu: or --merge cpu" }, }; } // anonymous namespace bool profile_classes::matches(profile_classes const & classes) { if (v.size() != classes.v.size()) return false; axis_types const axis2 = classes.axis; switch (axis) { case AXIS_EVENT: break; case AXIS_TGID: case AXIS_TID: return axis2 == AXIS_TID || axis2 == AXIS_TGID; case AXIS_CPU: return axis2 == AXIS_CPU; case AXIS_MAX: return false; } // check that the events match (same event, count) vector::const_iterator it1 = v.begin(); vector::const_iterator end1 = v.end(); vector::const_iterator it2 = classes.v.begin(); while (it1 != end1) { if (it1->ptemplate.event != it2->ptemplate.event) return false; if (it1->ptemplate.count != it2->ptemplate.count) return false; // differing unit mask is considered comparable ++it1; ++it2; } return true; } namespace { typedef growable_vector event_array_t; typedef growable_vector::size_type event_index_t; bool new_event_index(string event, event_array_t & events, event_index_t & index) { event_index_t sz = events.size(); for (event_index_t i = 0; i != sz; ++i) { if (events[i] == event) { index = i; return false; } } index = sz; events[sz] = event; return true; } /// We have more than one axis of classification, tell the user. void report_error(profile_classes const & classes, axis_types newaxis) { string str = "Already displaying results for parameter "; str += axes[classes.axis].name; str += " with values:\n"; vector::const_iterator it = classes.v.begin(); vector::const_iterator const end = classes.v.end(); // We show error for the first conflicting axis but on this // axis we can get only a few different it->name, we display only // these different name. set name_seen; size_t i = 5; for (; it != end && i; ++it) { if (name_seen.find(it->name) == name_seen.end()) { name_seen.insert(it->name); str += it->name + ","; --i; } } if (!i) { str += " and "; str += op_lexical_cast(classes.v.size() - 5); str += " more,"; } str += "\nwhich conflicts with parameter "; str += axes[newaxis].name += ".\n"; str += "Suggestion: "; str += axes[classes.axis].suggestion; throw op_fatal_error(str); } /** * check that two different axes are OK - this is only * allowed if they are TGID,TID and for each class, * tid == tgid */ bool allow_axes(profile_classes const & classes, axis_types newaxis) { // No previous axis - OK if (classes.axis == AXIS_MAX) return true; if (classes.axis != AXIS_TID && classes.axis != AXIS_TGID) return false; if (newaxis != AXIS_TID && newaxis != AXIS_TGID) return false; vector::const_iterator it = classes.v.begin(); vector::const_iterator const end = classes.v.end(); for (; it != end; ++it) { if (it->ptemplate.tgid != it->ptemplate.tid) return false; } return true; } /// find the first sample file header in the class opd_header const get_first_header(profile_class const & pclass) { profile_set const & profile = *(pclass.profiles.begin()); string file; // could be only one main app, with no samples for the main image if (profile.files.empty()) { profile_dep_set const & dep = *(profile.deps.begin()); list const & files = dep.files; profile_sample_files const & sample_files = *(files.begin()); if (!sample_files.sample_filename.empty()) file = sample_files.sample_filename; else file = *sample_files.cg_files.begin(); } else { profile_sample_files const & sample_files = *(profile.files.begin()); if (!sample_files.sample_filename.empty()) file = sample_files.sample_filename; else file = *sample_files.cg_files.begin(); } return read_header(file); } /// merge sample file header in the profile_sample_files void merge_header(profile_sample_files const & files, opd_header & header) { if (!files.sample_filename.empty()) { opd_header const temp = read_header(files.sample_filename); header.ctr_um |= temp.ctr_um; } list::const_iterator it = files.cg_files.begin(); list::const_iterator const end = files.cg_files.end(); for ( ; it != end; ++it) { opd_header const temp = read_header(*it); header.ctr_um |= temp.ctr_um; } } /// merge sample file header in the class opd_header const get_header(profile_class const & pclass, merge_option const & merge_by) { opd_header header = get_first_header(pclass); if (!merge_by.unitmask) return header; profile_set const & profile = *(pclass.profiles.begin()); typedef list::const_iterator citerator; citerator it = profile.files.begin(); citerator const end = profile.files.end(); for ( ; it != end; ++it) merge_header(*it, header); list::const_iterator dep_it = profile.deps.begin(); list::const_iterator dep_end = profile.deps.end(); for ( ; dep_it != dep_end; ++dep_it) { citerator it = dep_it->files.begin(); citerator const end = dep_it->files.end(); for ( ; it != end; ++it) merge_header(*it, header); } return header; } /// Give human-readable names to each class. void name_classes(profile_classes & classes, merge_option const & merge_by) { opd_header header = get_header(classes.v[0], merge_by); classes.event = describe_header(header); classes.cpuinfo = describe_cpu(header); // If we're splitting on event anyway, clear out the // global event name if (classes.axis == AXIS_EVENT) classes.event.erase(); vector::iterator it = classes.v.begin(); vector::iterator const end = classes.v.end(); for (; it != end; ++it) { it->name = axes[classes.axis].name + ":"; switch (classes.axis) { case AXIS_EVENT: it->name = it->ptemplate.event + ":" + it->ptemplate.count; header = get_header(*it, merge_by); it->longname = describe_header(header); break; case AXIS_TGID: it->name += it->ptemplate.tgid; it->longname = "Processes with a thread group ID of "; it->longname += it->ptemplate.tgid; break; case AXIS_TID: it->name += it->ptemplate.tid; it->longname = "Processes with a thread ID of "; it->longname += it->ptemplate.tid; break; case AXIS_CPU: it->name += it->ptemplate.cpu; it->longname = "Samples on CPU " + it->ptemplate.cpu; break; case AXIS_MAX: cerr << "Internal error - no equivalence class axis" << endl; abort(); } } } /** * Name and verify classes. */ void identify_classes(profile_classes & classes, merge_option const & merge_by) { profile_template & ptemplate = classes.v[0].ptemplate; bool changed[AXIS_MAX] = { false, }; vector::iterator it = classes.v.begin(); ++it; vector::iterator end = classes.v.end(); // only one class, name it after the event if (it == end) changed[AXIS_EVENT] = true; for (; it != end; ++it) { if (it->ptemplate.event != ptemplate.event || it->ptemplate.count != ptemplate.count // unit mask are mergeable || (!merge_by.unitmask && it->ptemplate.unitmask != ptemplate.unitmask)) changed[AXIS_EVENT] = true; // we need the merge checks here because each // template is filled in from the first non // matching profile, so just because they differ // doesn't mean it's the axis we care about if (!merge_by.tgid && it->ptemplate.tgid != ptemplate.tgid) changed[AXIS_TGID] = true; if (!merge_by.tid && it->ptemplate.tid != ptemplate.tid) changed[AXIS_TID] = true; if (!merge_by.cpu && it->ptemplate.cpu != ptemplate.cpu) changed[AXIS_CPU] = true; } classes.axis = AXIS_MAX; for (size_t i = 0; i < AXIS_MAX; ++i) { if (!changed[i]) continue; if (!allow_axes(classes, axis_types(i))) report_error(classes, axis_types(i)); classes.axis = axis_types(i); /* do this early for report_error */ name_classes(classes, merge_by); } if (classes.axis == AXIS_MAX) { cerr << "Internal error - no equivalence class axis" << endl; abort(); } } void identify_xml_classes(profile_classes & classes, merge_option const & merge_by) { opd_header header = get_header(classes.v[0], merge_by); vector::iterator it = classes.v.begin(); vector::iterator end = classes.v.end(); event_index_t event_num; event_index_t event_max = 0; event_array_t event_array; size_t nr_cpus = 0; bool has_nonzero_mask = false; ostringstream event_setup; // fill in XML identifying each event, and replace event name by event_num for (; it != end; ++it) { string mask = it->ptemplate.unitmask; if (mask.find_first_of("x123456789abcdefABCDEF") != string::npos) has_nonzero_mask = true; if (new_event_index(it->ptemplate.event, event_array, event_num)) { // replace it->ptemplate.event with the event_num string // this is the first time we've seen this event header = get_header(*it, merge_by); event_setup << describe_header(header); event_max = event_num; } if (it->ptemplate.cpu != "all") { size_t cpu = atoi(it->ptemplate.cpu.c_str()); if (cpu > nr_cpus) nr_cpus = cpu; } ostringstream str; str << event_num; it->ptemplate.event = str.str(); } xml_utils::set_nr_cpus(++nr_cpus); xml_utils::set_nr_events(event_max+1); if (has_nonzero_mask) xml_utils::set_has_nonzero_masks(); classes.event = event_setup.str(); classes.cpuinfo = describe_cpu(header); } /// construct a class template from a profile profile_template const template_from_profile(parsed_filename const & parsed, merge_option const & merge_by) { profile_template ptemplate; ptemplate.event = parsed.event; ptemplate.count = parsed.count; if (!merge_by.unitmask) ptemplate.unitmask = parsed.unitmask; if (!merge_by.tgid) ptemplate.tgid = parsed.tgid; if (!merge_by.tid) ptemplate.tid = parsed.tid; if (!merge_by.cpu) ptemplate.cpu = parsed.cpu; return ptemplate; } /** * Find a matching class the sample file could go in, or generate * a new class if needed. * This is the heart of the merging and classification process. * The returned value is non-const reference but the ptemplate member * must be considered as const */ profile_class & find_class(set & classes, parsed_filename const & parsed, merge_option const & merge_by) { profile_class cls; cls.ptemplate = template_from_profile(parsed, merge_by); pair::iterator, bool> ret = classes.insert(cls); return const_cast(*ret.first); } /** * Sanity check : we can't overwrite sample_filename, if we abort here it means * we fail to detect that parsed sample filename for two distinct samples * filename must go in two distinct profile_sample_files. This assumption is * false for callgraph samples files so this function is only called for non cg * files. */ void sanitize_profile_sample_files(profile_sample_files const & sample_files, parsed_filename const & parsed) { // We can't allow to overwrite sample_filename. if (!sample_files.sample_filename.empty()) { ostringstream out; out << "sanitize_profile_sample_files(): sample file " << "parsed twice ?\nsample_filename:\n" << sample_files.sample_filename << endl << parsed << endl; throw op_fatal_error(out.str()); } } /** * Add a sample filename (either cg or non cg files) to this profile. */ void add_to_profile_sample_files(profile_sample_files & sample_files, parsed_filename const & parsed) { if (parsed.cg_image.empty()) { // We can't allow to overwrite sample_filename. sanitize_profile_sample_files(sample_files, parsed); sample_files.sample_filename = parsed.filename; } else { sample_files.cg_files.push_back(parsed.filename); } } /** * we need to fix cg filename: a callgraph filename can occur before the binary * non callgraph samples filename occur so we must search. */ profile_sample_files & find_profile_sample_files(list & files, parsed_filename const & parsed, extra_images const & extra) { list::iterator it; list::iterator const end = files.end(); for (it = files.begin(); it != end; ++it) { if (!it->sample_filename.empty()) { parsed_filename psample_filename = parse_filename(it->sample_filename, extra); if (psample_filename.lib_image == parsed.lib_image && psample_filename.image == parsed.image && psample_filename.profile_spec_equal(parsed)) return *it; } list::const_iterator cit; list::const_iterator const cend = it->cg_files.end(); for (cit = it->cg_files.begin(); cit != cend; ++cit) { parsed_filename pcg_filename = parse_filename(*cit, extra); if (pcg_filename.lib_image == parsed.lib_image && pcg_filename.image == parsed.image && pcg_filename.profile_spec_equal(parsed)) return *it; } } // not found, create a new one files.push_back(profile_sample_files()); return files.back(); } /** * Add a profile to particular profile set. If the new profile is * a dependent image, it gets added to the dep list, or just placed * on the normal list of profiles otherwise. */ void add_to_profile_set(profile_set & set, parsed_filename const & parsed, bool merge_by_lib, extra_images const & extra) { if (parsed.image == parsed.lib_image && !merge_by_lib) { profile_sample_files & sample_files = find_profile_sample_files(set.files, parsed, extra); add_to_profile_sample_files(sample_files, parsed); return; } list::iterator it = set.deps.begin(); list::iterator const end = set.deps.end(); for (; it != end; ++it) { if (it->lib_image == parsed.lib_image && !merge_by_lib && parsed.jit_dumpfile_exists == false) { profile_sample_files & sample_files = find_profile_sample_files(it->files, parsed, extra); add_to_profile_sample_files(sample_files, parsed); return; } } profile_dep_set depset; depset.lib_image = parsed.lib_image; profile_sample_files & sample_files = find_profile_sample_files(depset.files, parsed, extra); add_to_profile_sample_files(sample_files, parsed); set.deps.push_back(depset); } /** * Add a profile to a particular equivalence class. The previous matching * will have ensured the profile "fits", so now it's just a matter of * finding which sample file list it needs to go on. */ void add_profile(profile_class & pclass, parsed_filename const & parsed, bool merge_by_lib, extra_images const & extra) { list::iterator it = pclass.profiles.begin(); list::iterator const end = pclass.profiles.end(); for (; it != end; ++it) { if (it->image == parsed.image) { add_to_profile_set(*it, parsed, merge_by_lib, extra); return; } } profile_set set; set.image = parsed.image; add_to_profile_set(set, parsed, merge_by_lib, extra); pclass.profiles.push_back(set); } } // anon namespace profile_classes const arrange_profiles(list const & files, merge_option const & merge_by, extra_images const & extra) { set temp_classes; list::const_iterator it = files.begin(); list::const_iterator const end = files.end(); for (; it != end; ++it) { parsed_filename parsed = parse_filename(*it, extra); if (parsed.lib_image.empty()) parsed.lib_image = parsed.image; // This simplifies the add of the profile later, // if we're lib-merging, then the app_image cannot // matter. After this, any non-dependent has // image == lib_image if (merge_by.lib) parsed.image = parsed.lib_image; profile_class & pclass = find_class(temp_classes, parsed, merge_by); add_profile(pclass, parsed, merge_by.lib, extra); } profile_classes classes; copy(temp_classes.begin(), temp_classes.end(), back_inserter(classes.v)); /* Coverity complains about classes.axis not being initialized upon * returning a copy of the classes object, so we'll silence it by * initializing axis to the max value. */ classes.axis = AXIS_MAX; if (classes.v.empty()) return classes; // sort by template for nicely ordered columns stable_sort(classes.v.begin(), classes.v.end()); if (want_xml) identify_xml_classes(classes, merge_by); else identify_classes(classes, merge_by); classes.extra_found_images = extra; return classes; } ostream & operator<<(ostream & out, profile_sample_files const & sample_files) { out << "sample_filename: " << sample_files.sample_filename << endl; out << "callgraph filenames:\n"; copy(sample_files.cg_files.begin(), sample_files.cg_files.end(), ostream_iterator(out, "\n")); return out; } ostream & operator<<(ostream & out, profile_dep_set const & pdep_set) { out << "lib_image: " << pdep_set.lib_image << endl; list::const_iterator it; list::const_iterator const end = pdep_set.files.end(); size_t i = 0; for (it = pdep_set.files.begin(); it != end; ++it) out << "profile_sample_files #" << i++ << ":\n" << *it; return out; } ostream & operator<<(ostream & out, profile_set const & pset) { out << "image: " << pset.image << endl; list::const_iterator it; list::const_iterator const end = pset.files.end(); size_t i = 0; for (it = pset.files.begin(); it != end; ++it) out << "profile_sample_files #" << i++ << ":\n" << *it; list::const_iterator cit; list::const_iterator const cend = pset.deps.end(); i = 0; for (cit = pset.deps.begin(); cit != cend; ++cit) out << "profile_dep_set #" << i++ << ":\n" << *cit; return out; } ostream & operator<<(ostream & out, profile_template const & ptemplate) { out << "event: " << ptemplate.event << endl << "count: " << ptemplate.count << endl << "unitmask: " << ptemplate.unitmask << endl << "tgid: " << ptemplate.tgid << endl << "tid: " << ptemplate.tid << endl << "cpu: " << ptemplate.cpu << endl; return out; } ostream & operator<<(ostream & out, profile_class const & pclass) { out << "name: " << pclass.name << endl << "longname: " << pclass.longname << endl << "ptemplate:\n" << pclass.ptemplate; size_t i = 0; list::const_iterator it; list::const_iterator const end = pclass.profiles.end(); for (it = pclass.profiles.begin(); it != end; ++it) out << "profiles_set #" << i++ << ":\n" << *it; return out; } ostream & operator<<(ostream & out, profile_classes const & pclasses) { out << "event: " << pclasses.event << endl << "cpuinfo: " << pclasses.cpuinfo << endl; for (size_t i = 0; i < pclasses.v.size(); ++i) out << "class #" << i << ":\n" << pclasses.v[i]; return out; } namespace { /// add the files to group of image sets void add_to_group(image_group_set & group, string const & app_image, list const & files) { image_set set; set.app_image = app_image; set.files = files; group.push_back(set); } typedef map app_map_t; inverted_profile & get_iprofile(app_map_t & app_map, string const & image, size_t nr_classes) { app_map_t::iterator ait = app_map.find(image); if (ait != app_map.end()) return ait->second; inverted_profile ip; ip.image = image; ip.groups.resize(nr_classes); app_map[image] = ip; return app_map[image]; } /// Pull out all the images, removing any we can't access. void verify_and_fill(app_map_t & app_map, list & plist, extra_images const & extra) { app_map_t::iterator it = app_map.begin(); app_map_t::iterator const end = app_map.end(); for (; it != end; ++it) { plist.push_back(it->second); inverted_profile & ip = plist.back(); extra.find_image_path(ip.image, ip.error, false); } } } // anon namespace list const invert_profiles(profile_classes const & classes) { app_map_t app_map; size_t nr_classes = classes.v.size(); for (size_t i = 0; i < nr_classes; ++i) { list::const_iterator pit = classes.v[i].profiles.begin(); list::const_iterator pend = classes.v[i].profiles.end(); for (; pit != pend; ++pit) { // files can be empty if samples for a lib image // but none for the main image. Deal with it here // rather than later. if (pit->files.size()) { inverted_profile & ip = get_iprofile(app_map, pit->image, nr_classes); add_to_group(ip.groups[i], pit->image, pit->files); } list::const_iterator dit = pit->deps.begin(); list::const_iterator const dend = pit->deps.end(); for (; dit != dend; ++dit) { inverted_profile & ip = get_iprofile(app_map, dit->lib_image, nr_classes); add_to_group(ip.groups[i], pit->image, dit->files); } } } list inverted_list; verify_and_fill(app_map, inverted_list, classes.extra_found_images); return inverted_list; } oprofile-0.9.9/libpp/symbol_sort.h0000664000076400007640000000170012175510132014131 00000000000000/** * @file symbol_sort.h * Sorting symbols * * @remark Copyright 2002, 2003 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #ifndef SYMBOL_SORT_H #define SYMBOL_SORT_H #include "symbol.h" #include #include struct sort_options { enum sort_order { // order give sort order if caller doesn't specify one first, sample = first, image, app_name, symbol, debug, vma, last }; sort_options() {} void add_sort_option(std::string const & name); void add_sort_option(sort_order order); /** * Sort the given container by the given criteria. */ void sort(symbol_collection & syms, bool reverse_sort, bool long_filenames) const; /** * Sort the given container by the given criteria. */ void sort(diff_collection & syms, bool reverse_sort, bool long_filenames) const; std::vector options; }; #endif // SYMBOL_SORT_H oprofile-0.9.9/libpp/op_header.cpp0000664000076400007640000001416012175510132014042 00000000000000/** * @file op_header.cpp * various free function acting on a sample file header * * @remark Copyright 2004 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie * @Modifications Daniel Hansel */ #include #include #include #include #include #include #include #include #include #include #include #include "op_config.h" #include "op_exception.h" #include "odb.h" #include "op_cpu_type.h" #include "op_file.h" #include "op_header.h" #include "op_events.h" #include "string_manip.h" #include "format_output.h" #include "xml_utils.h" #include "cverb.h" using namespace std; extern verbose vbfd; void op_check_header(opd_header const & h1, opd_header const & h2, string const & filename) { if (h1.mtime != h2.mtime) { ostringstream os; os << "header timestamps are different (" << h1.mtime << ", " << h2.mtime << ") for " << filename << "\n"; throw op_fatal_error(os.str()); } if (h1.is_kernel != h2.is_kernel) { ostringstream os; os << "header is_kernel flags are different for " << filename << "\n"; throw op_fatal_error(os.str()); } // Note that in the generated ELF file for anonymous code the vma // of the symbol is exaclty the same vma as the code had during sampling. // Note that we don't check CPU speed since that can vary // freely on the same machine } namespace { set warned_files; } bool is_jit_sample(string const & filename) { // suffix for JIT sample files (see FIXME in check_mtime() below) string suf = ".jo"; string::size_type pos; pos = filename.rfind(suf); // for JIT sample files do not output the warning to stderr. if (pos != string::npos && pos == filename.size() - suf.size()) return true; else return false; } void check_mtime(string const & file, opd_header const & header) { u64 newmtime = op_get_mtime(file.c_str()); if (newmtime == header.mtime) return; if (warned_files.find(file) != warned_files.end()) return; warned_files.insert(file); // Files we couldn't get mtime of have zero mtime if (!header.mtime) { // FIXME: header.mtime for JIT sample files is 0. The problem could be that // in opd_mangling.c:opd_open_sample_file() the call of fill_header() // think that the JIT sample file is not a binary file. if (is_jit_sample(file)) { cverb << vbfd << "warning: could not check that the binary file " << file << " has not been modified since " "the profile was taken. Results may be inaccurate.\n"; } else { cerr << "warning: could not check that the binary file " << file << " has not been modified since " "the profile was taken. Results may be inaccurate.\n"; } } else { static bool warned_already = false; cerr << "warning: the last modified time of the binary file " "does not match that of the sample file for " << file << "\n"; if (!warned_already) { cerr << "Either this is the wrong binary or the binary " "has been modified since the sample file was created.\n"; warned_already = true; } } } opd_header const read_header(string const & sample_filename) { int fd = open(sample_filename.c_str(), O_RDONLY); if (fd < 0) throw op_fatal_error("Can't open sample file:" + sample_filename); opd_header header; if (read(fd, &header, sizeof(header)) != sizeof(header)) { close(fd); throw op_fatal_error("Can't read sample file header:" + sample_filename); } if (memcmp(header.magic, OPD_MAGIC, sizeof(header.magic))) { close(fd); throw op_fatal_error("Invalid sample file, " "bad magic number: " + sample_filename); } close(fd); return header; } namespace { string const op_print_event(op_cpu cpu_type, u32 type, u32 um, u32 count) { string str; if (cpu_type == CPU_TIMER_INT) { str += "Profiling through timer interrupt"; return str; } struct op_event * event = op_find_event(cpu_type, type, um); if (!event) { event = op_find_event_any(cpu_type, type); if (!event) { cerr << "Could not locate event " << int(type) << endl; str = "Unknown event"; return str; } } char const * um_desc = 0; for (size_t i = 0; i < event->unit->num; ++i) { if (event->unit->um[i].value == um) um_desc = event->unit->um[i].desc; } str += string("Counted ") + event->name; str += string(" events (") + event->desc + ")"; if (cpu_type != CPU_RTC) { str += " with a unit mask of 0x"; ostringstream ss; ss << hex << setw(2) << setfill('0') << unsigned(um); str += ss.str(); str += " ("; str += um_desc ? um_desc : "multiple flags"; str += ")"; } str += " count " + op_lexical_cast(count); return str; } string const op_xml_print_event(op_cpu cpu_type, u32 type, u32 um, u32 count) { string unit_mask; if (cpu_type == CPU_TIMER_INT || cpu_type == CPU_RTC) return xml_utils::get_timer_setup((size_t)count); struct op_event * event = op_find_event(cpu_type, type, um); if (!event) { event = op_find_event_any(cpu_type, type); if (!event) { cerr << "Could not locate event " << int(type) << endl; return ""; } } if (cpu_type != CPU_RTC) { ostringstream str_out; str_out << um; unit_mask = str_out.str(); } return xml_utils::get_event_setup(string(event->name), (size_t)count, unit_mask); } } string const describe_header(opd_header const & header) { op_cpu cpu = static_cast(header.cpu_type); if (want_xml) return op_xml_print_event(cpu, header.ctr_event, header.ctr_um, header.ctr_count); else return op_print_event(cpu, header.ctr_event, header.ctr_um, header.ctr_count); } string const describe_cpu(opd_header const & header) { op_cpu cpu = static_cast(header.cpu_type); string str; if (want_xml) { string cpu_name = op_get_cpu_name(cpu); str = xml_utils::get_profile_header(cpu_name, header.cpu_speed); } else { str += string("CPU: ") + op_get_cpu_type_str(cpu); if (header.cpu_speed > 0) { ostringstream ss; str += ", speed "; ss << header.cpu_speed; str += ss.str() + " MHz (estimated)"; } } return str; } oprofile-0.9.9/libpp/symbol.cpp0000664000076400007640000000166712175510132013431 00000000000000/** * @file symbol.cpp * Symbol containers * * @remark Copyright 2002, 2004 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #include "symbol.h" #include "locate_images.h" #include #include using namespace std; column_flags symbol_entry::output_hint(column_flags fl) const { if (app_name != image_name) fl = column_flags(fl | cf_image_name); // FIXME: see comment in symbol.h: why we don't use sample.vma + size ? if (sample.vma & ~0xffffffffLLU) fl = column_flags(fl | cf_64bit_vma); return fl; } bool has_sample_counts(count_array_t const & counts, size_t lo, size_t hi) { for (size_t i = lo; i <= hi; ++i) if (counts[i] != 0) return true; return false; } string const & get_image_name(image_name_id id, image_name_storage::image_name_type type, extra_images const & extra) { return image_names.get_name(id, type, extra); } oprofile-0.9.9/libpp/name_storage.cpp0000664000076400007640000000520312175510132014556 00000000000000/** * @file name_storage.cpp * Storage of global names (filenames and symbols) * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #include "name_storage.h" #include "demangle_symbol.h" #include "file_manip.h" #include "string_manip.h" #include "locate_images.h" #include "op_exception.h" using namespace std; image_name_storage image_names; debug_name_storage debug_names; symbol_name_storage symbol_names; string const & image_name_storage::basename(image_name_id id) const { stored_filename const & n = get(id); if (n.base_filename.empty()) n.base_filename = op_basename(n.filename); return n.base_filename; } string const & image_name_storage::get_name(image_name_id id, image_name_type type, extra_images const & extra) const { stored_filename const & n = get(id); if (type == int_filename) { return n.filename; } else if (type == int_basename) { return basename(id); } else if (type == int_real_basename) { if (n.extra_images_uid == 0) { // recursive call to init real_filename. get_name(id, int_real_filename, extra); n.real_base_filename = op_basename(n.real_filename); } return n.real_base_filename; } else if (type == int_real_filename) { if (n.extra_images_uid == 0) { // We ignore error here, the real path will be // identical to the name derived from the sample // filename in this case. FIXME: this mean than the // archive path will be ignored if an error occur. image_error error; n.real_filename = extra.find_image_path(name(id), error, true); n.extra_images_uid = extra.get_uid(); } if (n.extra_images_uid == extra.get_uid()) return n.real_filename; throw op_runtime_error("image_name_storage::get_name() called" " with different extra parameter"); } throw op_runtime_error("invalid parameter to" " image_name_storage;;get_name()"); } string const & debug_name_storage::basename(debug_name_id id) const { stored_name const & n = get(id); if (n.name_processed.empty()) n.name_processed = op_basename(n.name); return n.name_processed; } string const & symbol_name_storage::demangle(symbol_name_id id) const { stored_name const & n = get(id); if (!n.name_processed.empty() || n.name.empty()) return n.name_processed; if (n.name[0] != '?') { n.name_processed = demangle_symbol(n.name); return n.name_processed; } if (n.name.length() < 2 || n.name[1] != '?') { n.name_processed = "(no symbols)"; return n.name_processed; } n.name_processed = "anonymous symbol from section "; n.name_processed += ltrim(n.name, "?"); return n.name_processed; } oprofile-0.9.9/libpp/symbol_functors.cpp0000664000076400007640000000122612175510132015343 00000000000000/** * @file symbol_functors.cpp * Functors for symbol/sample comparison * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #include "symbol_functors.h" bool less_symbol::operator()(symbol_entry const & lhs, symbol_entry const & rhs) const { if (lhs.image_name != rhs.image_name) return lhs.image_name < rhs.image_name; if (lhs.app_name != rhs.app_name) return lhs.app_name < rhs.app_name; if (lhs.name != rhs.name) return lhs.name < rhs.name; if (lhs.sample.vma != rhs.sample.vma) return lhs.sample.vma < rhs.sample.vma; return lhs.size < rhs.size; } oprofile-0.9.9/libpp/filename_spec.cpp0000664000076400007640000000340412175510132014705 00000000000000/** * @file filename_spec.cpp * Container holding a sample filename split into its components * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie */ #include #include "filename_spec.h" #include "parse_filename.h" #include "generic_spec.h" #include "locate_images.h" using namespace std; filename_spec::filename_spec(string const & filename, extra_images const & extra) { set_sample_filename(filename, extra); } filename_spec::filename_spec() : image("*"), lib_image("*"), count(0), unitmask(0) { } bool filename_spec::match(filename_spec const & rhs, string const & binary) const { if (!tid.match(rhs.tid) || !cpu.match(rhs.cpu) || !tgid.match(rhs.tgid) || count != rhs.count || unitmask != rhs.unitmask || event != rhs.event) { return false; } if (binary.empty()) return image == rhs.image && lib_image == rhs.lib_image; // PP:3.3 if binary is not empty we must match either the // lib_name if present or the image name if (!rhs.lib_image.empty()) { // FIXME: use fnmatch ? return rhs.lib_image == binary; } // FIXME: use fnmatch ? return rhs.image == binary; } void filename_spec::set_sample_filename(string const & filename, extra_images const & extra) { parsed_filename parsed = parse_filename(filename, extra); image = parsed.image; lib_image = parsed.lib_image; cg_image = parsed.cg_image; event = parsed.event; count = op_lexical_cast(parsed.count); unitmask = op_lexical_cast(parsed.unitmask); tgid.set(parsed.tgid); tid.set(parsed.tid); cpu.set(parsed.cpu); } bool filename_spec::is_dependent() const { if (cg_image.empty()) return image != lib_image; return cg_image != image || cg_image != lib_image; } oprofile-0.9.9/libpp/name_storage.h0000664000076400007640000001054112175510132014224 00000000000000/** * @file name_storage.h * Type-safe unique storage of global names (filenames and symbols) * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #ifndef NAME_STORAGE_H #define NAME_STORAGE_H #include #include "unique_storage.h" class extra_images; /// store original name and processed name struct stored_name { stored_name(std::string const & n = std::string()) : name(n) {} bool operator<(stored_name const & rhs) const { return name < rhs.name; } std::string name; mutable std::string name_processed; }; /// partial specialization for unique storage of names template struct name_storage : unique_storage { typedef typename unique_storage::id_value id_value; std::string const & name(id_value const & id) const { return unique_storage::get(id).name; } }; class debug_name_tag; /// a debug filename typedef name_storage::id_value debug_name_id; /// class storing a set of shared debug name (source filename) struct debug_name_storage : name_storage { /// return the basename for the given ID std::string const & basename(debug_name_id id) const; }; /// store original name and processed name struct stored_filename { stored_filename(std::string const & n = std::string()) : filename(n), extra_images_uid(0) {} bool operator<(stored_filename const & rhs) const { return filename < rhs.filename; } std::string filename; mutable std::string base_filename; mutable std::string real_filename; mutable std::string real_base_filename; mutable int extra_images_uid; }; /// partial specialization for unique storage of filenames template struct filename_storage : unique_storage { typedef typename unique_storage::id_value id_value; std::string const & name(id_value const & id) const { return unique_storage::get(id).filename; } }; class image_name_tag; /// an image name typedef filename_storage::id_value image_name_id; /// class storing a set of shared image name struct image_name_storage : filename_storage { enum image_name_type { /// image name based on the sample filename w/o path int_basename, /// image name based on the sample filename int_filename, /// real image name, can be different for module. int_real_basename, /// same as int_real_basename + the complete path, including an /// optionnal archive_path passed trough profile_spec int_real_filename, }; /** * @param id the image name id * @param type the image name type * @param extra extra locations where the image can be found * * If type == int_real_name (resp. int_real_filename) and the image * can't be located the return value is the same as if get_name() * was called with int_name (resp. int_filename). * * multiple call with the image_name_id and different extra parameter * will throw a runtime error, multiple extra_images are possible * with differential profile but the name. FIXME */ std::string const & get_name(image_name_id id, image_name_type type, extra_images const & extra) const; /// return the basename name for the given ID std::string const & basename(image_name_id) const; }; class symbol_name_tag; /// a (demangled) symbol typedef name_storage::id_value symbol_name_id; /// class storing a set of shared symbol name struct symbol_name_storage : name_storage { /// return the demangled name for the given ID std::string const & demangle(symbol_name_id id) const; }; /// for images extern image_name_storage image_names; /// for debug filenames i.e. source filename extern debug_name_storage debug_names; /// for symbols extern symbol_name_storage symbol_names; /** * debug name specialisation for comparison. * * We compare by name rather by id since what user will see are * filename and when the criteria "samples count" give identical * result it's better to obtain result sorted by the user visible * property filename rather than by an obscure, invisible from user * point of view, file identifier property */ template<> inline bool debug_name_id::operator<(debug_name_id const & rhs) const { return debug_names.name(*this) < debug_names.name(rhs); } #endif /* !NAME_STORAGE_H */ oprofile-0.9.9/libpp/Makefile.am0000664000076400007640000000217712175510132013451 00000000000000AM_CPPFLAGS = \ -I ${top_srcdir}/libop \ -I ${top_srcdir}/libutil \ -I ${top_srcdir}/libdb \ -I ${top_srcdir}/libopt++ \ -I ${top_srcdir}/libutil++ \ -I ${top_srcdir}/libop++ \ -I ${top_srcdir}/libregex \ @OP_CPPFLAGS@ AM_CXXFLAGS = @OP_CXXFLAGS@ noinst_LIBRARIES = libpp.a libpp_a_SOURCES = \ arrange_profiles.cpp \ arrange_profiles.h \ callgraph_container.h \ callgraph_container.cpp \ diff_container.cpp \ diff_container.h \ filename_spec.cpp \ filename_spec.h \ format_flags.h \ format_output.cpp \ format_output.h \ image_errors.h \ image_errors.cpp \ locate_images.cpp \ locate_images.h \ name_storage.cpp \ name_storage.h \ op_header.cpp \ op_header.h \ symbol.cpp \ symbol.h \ parse_filename.cpp \ parse_filename.h \ populate.h \ populate.cpp \ profile.cpp \ profile.h \ profile_container.cpp \ profile_container.h \ profile_spec.cpp \ profile_spec.h \ sample_container.cpp \ sample_container.h \ symbol_container.cpp \ symbol_container.h \ symbol_functors.cpp \ symbol_functors.h \ symbol_sort.cpp \ symbol_sort.h \ xml_utils.h \ xml_utils.cpp \ populate_for_spu.cpp \ populate_for_spu.h oprofile-0.9.9/libpp/populate_for_spu.cpp0000664000076400007640000001107312175510132015502 00000000000000/** * @file libpp/populate_for_spu.cpp * Fill up a profile_container from inverted profiles for * a Cell BE SPU profile * * @remark Copyright 2007 OProfile authors * @remark Read the file COPYING * * @author Maynard Johnson * (C) Copyright IBM Corporation 2007 */ #include "profile.h" #include "profile_container.h" #include "arrange_profiles.h" #include "op_bfd.h" #include "op_header.h" #include "populate.h" #include "populate_for_spu.h" #include "image_errors.h" #include using namespace std; namespace { static int spu_profile = unknown_profile; /* * On Cell Broadband Engine, an application executing on an SPE may * have been loaded from a separate SPU executable binary file or may * have been loaded from an embedded section of a PPE application or * shared library. In the embedded case, the embedding file may actually * contain multiple SPU images, resulting in different SPU images being loaded * onto different SPUs. Thus, the SPUs may be executing different code, even * though the application of the parent PPE process is the same. Therefore, * we must be sure to create a separate op_bfd object for each SPU. When doing * so below, we examine header.embedded_offset. If embedded_offset is > 0, it's * interpreted as the offset of an SPU image embedded in the containing file, * so the filename to do the check_mtime on is the containing file, ip.image; * otherwise, the filename to do the check_mtime on is the separate backing * file of the SPU image, abfd->filename. */ void populate_spu_profile_from_files(list const & files, string const app_image, profile_container & samples, inverted_profile const & ip, string_filter const & symbol_filter, size_t ip_grp_num, bool * has_debug_info) { string archive_path = samples.extra_found_images.get_archive_path(); bool ok = ip.error == image_ok; op_bfd * abfd = NULL; string fname_to_check; list::const_iterator it = files.begin(); list::const_iterator const end = files.end(); for (; it != end; ++it) { profile_t profile; if (it->sample_filename.empty()) continue; profile.add_sample_file(it->sample_filename); opd_header header = profile.get_header(); if (header.embedded_offset) { abfd = new op_bfd(header.embedded_offset, ip.image, symbol_filter, samples.extra_found_images, ok); fname_to_check = ip.image; } else { abfd = new op_bfd(ip.image, symbol_filter, samples.extra_found_images, ok); fname_to_check = abfd->get_filename(); } profile.set_offset(*abfd); if (!ok && ip.error == image_ok) ip.error = image_format_failure; if (ip.error == image_format_failure) report_image_error(ip, false, samples.extra_found_images); samples.add(profile, *abfd, app_image, ip_grp_num); if (ip.error == image_ok) { image_error error; string filename = samples.extra_found_images.find_image_path( fname_to_check, error, true); check_mtime(filename, profile.get_header()); } if (has_debug_info && !*has_debug_info) *has_debug_info = abfd->has_debug_info(); delete abfd; } } } // anon namespace void populate_for_spu_image(profile_container & samples, inverted_profile const & ip, string_filter const & symbol_filter, bool * has_debug_info) { for (size_t i = 0; i < ip.groups.size(); ++i) { list < image_set >::const_iterator it= ip.groups[i].begin(); list < image_set >::const_iterator const end = ip.groups[i].end(); for (; it != end; ++it) populate_spu_profile_from_files(it->files, it->app_image, samples, ip, symbol_filter, i, has_debug_info); } } bool is_spu_profile(inverted_profile const & ip) { bool retval = false; string sfname = ""; if (spu_profile != unknown_profile) return spu_profile; if (!ip.groups.size()) return false; for (size_t i = 0; i < ip.groups.size(); ++i) { list::const_iterator grp_it = ip.groups[i].begin(); list::const_iterator const grp_end = ip.groups[i].end(); for (; grp_it != grp_end; ++grp_it) { list::const_iterator sfiles_it = grp_it->files.begin(); list::const_iterator sfiles_end = grp_it->files.end(); for (; sfiles_it != sfiles_end; ++sfiles_it) { if (!sfiles_it->sample_filename.empty()) { sfname = sfiles_it->sample_filename; goto do_check; } } } } goto out; do_check: spu_profile = profile_t::is_spu_sample_file(sfname); if (spu_profile == cell_spu_profile) retval = true; out: return retval; } oprofile-0.9.9/libpp/op_header.h0000664000076400007640000000256012175510132013510 00000000000000/** * @file op_header.h * various free function acting on a sample file header * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef OP_HEADER_H #define OP_HEADER_H #include #include #include "op_sample_file.h" /** * @param h1 sample file header * @param h2 sample file header * @param filename sample filename * * check that the h1 and h2 are coherent (same size, same mtime etc.) * all error are fatal */ void op_check_header(opd_header const & h1, opd_header const & h2, std::string const & filename); bool is_jit_sample(std::string const & filename); /** * check mtime of samples file header against file * all error are fatal */ void check_mtime(std::string const & file, opd_header const & header); /** * @param sample_filename the sample to open * * Return the header of this sample file. Only the magic number is checked * the version number is not checked. All error are fatal */ opd_header const read_header(std::string const & sample_filename); /** * output a readable form of header, this don't include the cpu type * and speed */ std::string const describe_header(opd_header const & header); /// output a readable form of cpu type and speed std::string const describe_cpu(opd_header const & header); #endif // OP_HEADER_H oprofile-0.9.9/libpp/sample_container.h0000664000076400007640000000426012175510132015104 00000000000000/** * @file sample_container.h * Internal implementation of sample container * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #ifndef SAMPLE_CONTAINER_H #define SAMPLE_CONTAINER_H #include #include #include #include "symbol.h" #include "symbol_functors.h" /** * Arbitrary container of sample entries. Can return * number of samples for a file or line number and * return the particular sample information for a VMA. */ class sample_container { typedef std::pair sample_index_t; public: typedef std::map samples_storage; typedef samples_storage::const_iterator samples_iterator; /// return iterator to the first samples for this symbol samples_iterator begin(symbol_entry const *) const; /// return iterator to the last samples for this symbol samples_iterator end(symbol_entry const *) const; /// return iterator to the first samples samples_iterator begin() const; /// return iterator to the last samples samples_iterator end() const; /// insert a sample entry by creating a new entry or by cumulating /// samples into an existing one. Can only be done before any lookups void insert(symbol_entry const * symbol, sample_entry const &); /// return nr of samples in the given filename count_array_t accumulate_samples(debug_name_id filename_id) const; /// return nr of samples at the given line nr in the given file count_array_t accumulate_samples(debug_name_id, size_t linenr) const; /// return the sample entry for the given image_name and vma if any sample_entry const * find_by_vma(symbol_entry const * symbol, bfd_vma vma) const; private: /// build the symbol by file-location cache void build_by_loc() const; /// main sample entry container samples_storage samples; typedef std::multiset samples_by_loc_t; // must be declared after the samples_storage to ensure a // correct life-time. /** * Sample entries by file location. Lazily built when necessary, * so mutable. */ mutable samples_by_loc_t samples_by_loc; }; #endif /* SAMPLE_CONTAINER_H */ oprofile-0.9.9/libpp/xml_utils.h0000664000076400007640000000403012175510132013574 00000000000000/** * @file xml_utils.h * utility routines for generating XML * * @remark Copyright 2006 OProfile authors * @remark Read the file COPYING * * @author Dave Nomura */ #ifndef XML_UTILS_H #define XML_UTILS_H #include "symbol.h" #include "format_output.h" #include "xml_output.h" typedef symbol_collection::const_iterator sym_iterator; extern bool want_xml; class extra_images; class op_bfd; class xml_utils { public: xml_utils(format_output::xml_formatter * xo, symbol_collection const & s, size_t nc, extra_images const & extra); // these members are static because they are invoked before // the xml_utils object has been created static std::string get_timer_setup(size_t count); static std::string get_event_setup(std::string event, size_t count, std::string unit_mask); static std::string get_profile_header(std::string cpu_name, double const speed); static void set_nr_cpus(size_t cpus); static void set_nr_events(size_t events); static void set_has_nonzero_masks(); static void add_option(tag_t tag, bool value); static void add_option(tag_t tag, std::string const & value); static void add_option(tag_t tag, std::vector const & value); static void add_option(tag_t tag, std::list const & value); static void output_xml_header(std::string const & command_options, std::string const & cpu_info, std::string const & events); void output_symbol_bytes(std::ostream & out, symbol_entry const * symb, size_t sym_id, op_bfd const & abfd); bool output_summary_data(std::ostream & out, count_array_t const & summary, size_t pclass); size_t get_symbol_index(sym_iterator const it); void output_program_structure(std::ostream & out); void build_subclasses(std::ostream & out); private: bool multiple_events; bool has_subclasses; size_t bytes_index; extra_images const & extra_found_images; static bool has_nonzero_masks; static size_t events_index; }; extern xml_utils * xml_support; #endif /* !XML_UTILS_H */ oprofile-0.9.9/libpp/profile.h0000664000076400007640000001242512175510132013223 00000000000000/** * @file profile.h * Encapsulation for samples files over all profile classes * belonging to the same binary image * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #ifndef PROFILE_H #define PROFILE_H #include #include #include #include "odb.h" #include "op_types.h" #include "utility.h" #include "populate_for_spu.h" class opd_header; class op_bfd; /** * Class containing a single sample file contents. * i.e. set of count values for VMA offsets for * a particular binary. */ class profile_t : noncopyable { public: /** * profile_t - construct an empty profile_t object */ profile_t(); /// return true if no sample file has been loaded bool empty() const { return !file_header.get(); } /// return the header of the last opened samples file opd_header const & get_header() const { return *file_header; } /** * count samples count w/o recording them * @param filename sample filename * * convenience interface for raw access to sample count w/o recording * them. It's placed here so all access to samples files go through * profile_t static or non static member. */ static count_type sample_count(std::string const & filename); /** * Indicate if given sample file is from a Cell Broadband Engine * SPU profile * @param filename sample filename * * Convenience interface put here so all access to samples files * go through profile_t static or non static member. */ static enum profile_type is_spu_sample_file(std::string const & filename); /** * cumulate sample file to our container of samples * @param filename sample file name * * store samples for one sample file, sample file header is sanitized. * * all error are fatal */ void add_sample_file(std::string const & filename); /// Set an appropriate start offset, see comments below. void set_offset(op_bfd const & abfd); u64 get_offset(void) const { return start_offset; } class const_iterator; typedef std::pair iterator_pair; /** * @param start start offset * @param end end offset * * return an iterator pair to [start, end) range */ iterator_pair samples_range(odb_key_t start, odb_key_t end) const; /// return a pair of iterator for all samples iterator_pair samples_range() const; private: /// helper for sample_count() and add_sample_file(). All error launch /// an exception. static void open_sample_file(std::string const & filename, odb_t &); /// copy of the samples file header scoped_ptr file_header; /// storage type for samples sorted by eip typedef std::map ordered_samples_t; /** * Samples are stored in hash table, iterating over hash table don't * provide any ordering, the above count() interface rely on samples * ordered by eip. This map is only a temporary storage where samples * are ordered by eip. */ ordered_samples_t ordered_samples; /** * For certain profiles, such as kernel/modules, and anon * regions with a matching binary, this value is non-zero, * and represents the file offset of the relevant section. * * For kernel profiles, this is done because we use the information * provided in /proc/ksyms, which only gives the mapped position of * .text, and the symbol _text from vmlinux. This value is used to fix * up the sample offsets for kernel code as a result of this difference * * In user-space samples, the sample offset is from the start of the * mapped file, as seen in /proc/pid/maps. This is fine for * mappings of permanent files, but with anon mappings, we need * to adjust the key values to be a file offset against the * *binary* (if there is one). This can obviously be different. * So we pass our anon mapping start VMA to op_bfd, which looks * for a section with that VMA, then returns the section's * filepos. So all is good. * * Finally, note that for cg we can't use this inside the * profile_t, as we're storing two offsets in the key value. So * we do it later in that case. * * Phew. */ u64 start_offset; }; // It will be easier to derive profile_t::const_iterator from // std::iterator but this doesn't // work for gcc <= 2.95 so we provide the neccessary typedef in the hard way. // See ISO C++ 17.4.3.1 § 1 and 14.7.3 § 9. namespace std { template <> struct iterator_traits { typedef ptrdiff_t difference_type; typedef count_type value_type; typedef count_type * pointer; typedef count_type & reference; typedef input_iterator_tag iterator_category; }; } class profile_t::const_iterator { typedef ordered_samples_t::const_iterator iterator_t; public: const_iterator() : start_offset(0) {} const_iterator(iterator_t it_, u64 start_offset_) : it(it_), start_offset(start_offset_) {} count_type operator*() const { return it->second; } const_iterator & operator++() { ++it; return *this; } odb_key_t vma() const { return it->first + start_offset; } count_type count() const { return **this; } bool operator!=(const_iterator const & rhs) const { return it != rhs.it; } bool operator==(const_iterator const & rhs) const { return it == rhs.it; } private: iterator_t it; u64 start_offset; }; #endif /* !PROFILE_H */ oprofile-0.9.9/libpp/symbol.h0000664000076400007640000001030312175510132013061 00000000000000/** * @file symbol.h * Symbol containers * * @remark Copyright 2002, 2004 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #ifndef SYMBOL_H #define SYMBOL_H #include "config.h" #include "name_storage.h" #include "growable_vector.h" #include "sparse_array.h" #include "format_flags.h" #include "op_types.h" #include #include #include class extra_images; /// for storing sample counts typedef sparse_array count_array_t; /// A simple container for a fileno:linenr location. struct file_location { file_location() : linenr(0) {} /// empty if not valid. debug_name_id filename; /// 0 means invalid or code is generated internally by the compiler unsigned int linenr; bool operator<(file_location const & rhs) const { // Note we sort on filename id not on string return filename < rhs.filename || (filename == rhs.filename && linenr < rhs.linenr); } }; /// associate vma address with a file location and a samples count struct sample_entry { sample_entry() : vma(0) {} /// From where file location comes the samples file_location file_loc; /// From where virtual memory address comes the samples bfd_vma vma; /// the samples count count_array_t counts; }; /// associate a symbol with a file location, samples count and vma address class symbol_entry { public: symbol_entry() : sym_index(0), size(0), spu_offset(0), vma_adj(0) {} virtual ~symbol_entry() {} /// which image this symbol belongs to image_name_id image_name; /// owning application name: identical to image name if profiling /// session did not separate samples for shared libs or if image_name /// is not a shared lib image_name_id app_name; // index into the op_bfd symbol table size_t sym_index; /// file location, vma and cumulated samples count for this symbol sample_entry sample; /// name of symbol symbol_name_id name; /// symbol size as calculated by op_bfd, start of symbol is sample.vma size_t size; /** * @param fl input hint * * combine fl with the calculated hint. It's theoretically possible * that we get a symbol where its samples pass the border line, but * the start is below it, but the the hint is only used for formatting */ column_flags output_hint(column_flags fl) const; uint64_t spu_offset; image_name_id embedding_filename; /** * The vma_adj is set according to the corresponding op_bfd::vma_adj. * See the documentation for vma_adj in op_bfd.h for why we need this. * This piece of information is needed in the bowels of opannotate * with the --assembly option. At that point, there is no means of * obtaining the op_bfd for the given image being processed, but we * do have access to symbol_entry's. Yes, it's way overkill to add * this to every symbol_entry, but there isn't a better option. */ bfd_vma vma_adj; }; /// a collection of sorted symbols typedef std::vector symbol_collection; /** * The public data for call-graph symbols. Each caller/callee has * the sample counts replaced with the relevant arc counts, whilst * the cg_symbol retains its self count. */ class cg_symbol : public symbol_entry { public: cg_symbol(symbol_entry const & sym) : symbol_entry(sym) {} typedef std::vector children; /// all callers of this symbol children callers; /// total count of callers count_array_t total_caller_count; /// all symbols called by this symbol children callees; /// total count of callees count_array_t total_callee_count; }; /// a collection of sorted callgraph symbol objects typedef std::list cg_collection_objs; /// for storing diff %ages typedef growable_vector diff_array_t; /** * Data for a diffed symbol. */ struct diff_symbol : public symbol_entry { diff_symbol(symbol_entry const & sym) : symbol_entry(sym) {} /// diff %age values for each profile class diff_array_t diffs; }; /// a collection of diffed symbols typedef std::vector diff_collection; bool has_sample_counts(count_array_t const & counts, size_t lo, size_t hi); std::string const & get_image_name(image_name_id id, image_name_storage::image_name_type type, extra_images const & extra); #endif /* !SYMBOL_H */ oprofile-0.9.9/libpp/diff_container.cpp0000664000076400007640000000716012175510132015070 00000000000000/** * @file diff_container.cpp * Container for diffed symbols * * @remark Copyright 2005 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ /* older glibc has C99 INFINITY in _GNU_SOURCE */ #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include "diff_container.h" #include using namespace std; namespace { /// a comparator suitable for diffing symbols bool rough_less(symbol_entry const & lhs, symbol_entry const & rhs) { if (lhs.image_name != rhs.image_name) return lhs.image_name < rhs.image_name; if (lhs.app_name != rhs.app_name) return lhs.app_name < rhs.app_name; if (lhs.name != rhs.name) return lhs.name < rhs.name; return false; } /// possibly add a diff sym void add_sym(diff_collection & syms, diff_symbol const & sym, profile_container::symbol_choice & choice) { if (choice.match_image && (image_names.name(sym.image_name) != choice.image_name)) return; if (fabs(sym.diffs[0]) < choice.threshold) return; choice.hints = sym.output_hint(choice.hints); syms.push_back(sym); } /// add a symbol not present in the new profile void symbol_old(diff_collection & syms, symbol_entry const & sym, profile_container::symbol_choice & choice) { diff_symbol symbol(sym); symbol.diffs.fill(sym.sample.counts.size(), -INFINITY); add_sym(syms, symbol, choice); } /// add a symbol not present in the old profile void symbol_new(diff_collection & syms, symbol_entry const & sym, profile_container::symbol_choice & choice) { diff_symbol symbol(sym); symbol.diffs.fill(sym.sample.counts.size(), INFINITY); add_sym(syms, symbol, choice); } /// add a diffed symbol void symbol_diff(diff_collection & syms, symbol_entry const & sym1, count_array_t const & total1, symbol_entry const & sym2, count_array_t const & total2, profile_container::symbol_choice & choice) { diff_symbol symbol(sym2); size_t size = sym2.sample.counts.size(); for (size_t i = 0; i != size; ++i) { double percent1; double percent2; percent1 = op_ratio(sym1.sample.counts[i], total1[i]); percent2 = op_ratio(sym2.sample.counts[i], total2[i]); symbol.diffs[i] = op_ratio(percent2 - percent1, percent1); symbol.diffs[i] *= 100.0; } add_sym(syms, symbol, choice); } }; // namespace anon diff_container::diff_container(profile_container const & c1, profile_container const & c2) : pc1(c1), pc2(c2), total1(pc1.samples_count()), total2(pc2.samples_count()) { } diff_collection const diff_container::get_symbols(profile_container::symbol_choice & choice) const { diff_collection syms; /* * Do a pairwise comparison of the two symbol sets. We're * relying here on the symbol container being sorted such * that rough_less() is suitable for iterating through the * two lists (see less_symbol). */ symbol_container::symbols_t::iterator it1 = pc1.begin_symbol(); symbol_container::symbols_t::iterator end1 = pc1.end_symbol(); symbol_container::symbols_t::iterator it2 = pc2.begin_symbol(); symbol_container::symbols_t::iterator end2 = pc2.end_symbol(); while (it1 != end1 && it2 != end2) { if (rough_less(*it1, *it2)) { symbol_old(syms, *it1, choice); ++it1; } else if (rough_less(*it2, *it1)) { symbol_new(syms, *it2, choice); ++it2; } else { symbol_diff(syms, *it1, total1, *it2, total2, choice); ++it1; ++it2; } } for (; it1 != end1; ++it1) symbol_old(syms, *it1, choice); for (; it2 != end2; ++it2) symbol_new(syms, *it2, choice); return syms; } count_array_t const diff_container::samples_count() const { return total2; } oprofile-0.9.9/libdb/0000775000076400007640000000000012175511554011445 500000000000000oprofile-0.9.9/libdb/db_travel.c0000664000076400007640000000054212175510132013463 00000000000000/** * @file db_travel.c * Inspection of a DB * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie */ #include "odb.h" odb_node_t * odb_get_iterator(odb_t const * odb, odb_node_nr_t * nr) { /* node zero is unused */ *nr = odb->data->descr->current_size - 1; return odb->data->node_base + 1; } oprofile-0.9.9/libdb/odb.h0000664000076400007640000001760312175510132012300 00000000000000/** * @file odb.h * This file contains various definitions and interface for management * of in-memory, through mmaped file, growable hash table, that stores * sample files. * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie */ #ifndef ODB_HASH_H #define ODB_HASH_H #include #include #include "op_list.h" /** the type of key. 64-bit because CG needs 32-bit pair {from,to} */ typedef uint64_t odb_key_t; /** the type of an information in the database */ typedef unsigned int odb_value_t; /** the type of index (node number), list are implemented through index */ typedef unsigned int odb_index_t; /** the type store node number */ typedef odb_index_t odb_node_nr_t; /** store the hash mask, hash table size are always power of two */ typedef odb_index_t odb_hash_mask_t; /* there is (bucket factor * nr node) entry in hash table, this can seem * excessive but hash coding eip don't give a good distributions and our * goal is to get a O(1) amortized insert time. bucket factor must be a * power of two. FIXME: see big comment in odb_hash_add_node, you must * re-enable zeroing hash table if BUCKET_FACTOR > 2 (roughly exact, you * want to read the comment in odb_hash_add_node() if you tune this define) */ #define BUCKET_FACTOR 1 /** a db hash node */ typedef struct { odb_key_t key; /**< eip */ odb_value_t value; /**< samples count */ odb_index_t next; /**< next entry for this bucket */ } odb_node_t; /** the minimal information which must be stored in the file to reload * properly the data base, following this header is the node array then * the hash table (when growing we avoid to copy node array) */ typedef struct { odb_node_nr_t size; /**< in node nr (power of two) */ odb_node_nr_t current_size; /**< nr used node + 1, node 0 unused */ int padding[6]; /**< for padding and future use */ } odb_descr_t; /** a "database". this is an in memory only description. * * We allow to manage a database inside a mapped file with an "header" of * unknown size so odb_open get a parameter to specify the size of this header. * A typical use is: * * struct header { int etc; ... }; * odb_open(&hash, filename, ODB_RW, sizeof(header)); * so on this library have no dependency on the header type. * * the internal memory layout from base_memory is: * the unknown header (sizeof_header) * odb_descr_t * the node array: (descr->size * sizeof(odb_node_t) entries * the hash table: array of odb_index_t indexing the node array * (descr->size * BUCKET_FACTOR) entries */ typedef struct odb_data { odb_node_t * node_base; /**< base memory area of the page */ odb_index_t * hash_base; /**< base memory of hash table */ odb_descr_t * descr; /**< the current state of database */ odb_hash_mask_t hash_mask; /**< == descr->size - 1 */ unsigned int sizeof_header; /**< from base_memory to odb header */ unsigned int offset_node; /**< from base_memory to node array */ void * base_memory; /**< base memory of the maped memory */ int fd; /**< mmaped memory file descriptor */ char * filename; /**< full path name of sample file */ int ref_count; /**< reference count */ struct list_head list; /**< hash bucket list */ } odb_data_t; typedef struct { odb_data_t * data; } odb_t; #ifdef __cplusplus extern "C" { #endif /* db_manage.c */ /** how to open the DB file */ enum odb_rw { ODB_RDONLY = 0, /**< open for read only */ ODB_RDWR = 1 /**< open for read and/or write */ }; /** * odb_init - initialize a DB file * @param odb the DB file to init */ void odb_init(odb_t * odb); /** * odb_open - open a DB file * @param odb the data base object to setup * @param filename the filename where go the maped memory * @param rw \enum ODB_RW if opening for writing, else \enum ODB_RDONLY * @param sizeof_header size of the file header if any * * The sizeof_header parameter allows the data file to have a header * at the start of the file which is skipped. * odb_open() always preallocate a few number of pages. * returns 0 on success, errno on failure */ int odb_open(odb_t * odb, char const * filename, enum odb_rw rw, size_t sizeof_header); /** Close the given ODB file */ void odb_close(odb_t * odb); /** return the number of times this sample file is open */ int odb_open_count(odb_t const * odb); /** return the start of the mapped data */ void * odb_get_data(odb_t * odb); /** issue a msync on the used size of the mmaped file */ void odb_sync(odb_t const * odb); /** * grow the hashtable in such way current_size is the index of the first free * node. Take care all node pointer can be invalidated by this call. * * Node allocation is done in a two step way 1st) ensure a free node exist * eventually, caller can setup it, 2nd) commit the node allocation with * odb_commit_reservation(). * This is done in this way to ensure node setup is visible from another * process like pp tools in an atomic way. * * returns 0 on success, non zero on failure in this case this function do * nothing and errno is set by the first libc call failure allowing to retry * after cleanup some program resource. */ int odb_grow_hashtable(odb_data_t * data); /** * commit a previously successfull node reservation. This can't fail. */ static __inline void odb_commit_reservation(odb_data_t * data) { ++data->descr->current_size; } /** "immpossible" node number to indicate an error from odb_hash_add_node() */ #define ODB_NODE_NR_INVALID ((odb_node_nr_t)-1) /* db_debug.c */ /** check that the hash is well built */ int odb_check_hash(odb_t const * odb); /* db_stat.c */ typedef struct odb_hash_stat_t odb_hash_stat_t; odb_hash_stat_t * odb_hash_stat(odb_t const * odb); void odb_hash_display_stat(odb_hash_stat_t const * stats); void odb_hash_free_stat(odb_hash_stat_t * stats); /* db_insert.c */ /** update info at key by incrementing its associated value by one, * if the key does not exist a new node is created and the value associated * is set to one. * * returns EXIT_SUCCESS on success, EXIT_FAILURE on failure */ int odb_update_node(odb_t * odb, odb_key_t key); /** * odb_update_node_with_offset * @param odb the data base object to setup * @param key the hash key * @param offset the offset to be added * * update info at key by adding the specified offset to its associated value, * if the key does not exist a new node is created and the value associated * is set to offset. * * returns EXIT_SUCCESS on success, EXIT_FAILURE on failure */ int odb_update_node_with_offset(odb_t * odb, odb_key_t key, unsigned long int offset); /** Add a new node w/o regarding if a node with the same key already exists * * returns EXIT_SUCCESS on success, EXIT_FAILURE on failure */ int odb_add_node(odb_t * odb, odb_key_t key, odb_value_t value); /* db_travel.c */ /** * return a base pointer to the node array and number of node in this array * caller then will iterate through: * * odb_node_nr_t node_nr, pos; * odb_node_t * node = odb_get_iterator(odb, &node_nr); * for ( pos = 0 ; pos < node_nr ; ++pos) * // do something * * note than caller does not need to filter nil key as it's a valid key, * The returned range is all valid (i.e. should never contain zero value). */ odb_node_t * odb_get_iterator(odb_t const * odb, odb_node_nr_t * nr); static __inline unsigned int odb_do_hash(odb_data_t const * data, odb_key_t value) { /* FIXME: better hash for eip value, needs to instrument code * and do a lot of tests ... */ /* trying to combine high order bits his a no-op: inside a binary image * high order bits don't vary a lot, hash table start with 7 bits mask * so this hash coding use bits 0-7, 8-15. Hash table is stored in * files avoiding to rebuilding them at profiling re-start so * on changing do_hash() change the file format! */ uint32_t temp = (value >> 32) ^ value; return ((temp << 0) ^ (temp >> 8)) & data->hash_mask; } #ifdef __cplusplus } #endif #endif /* !ODB_H */ oprofile-0.9.9/libdb/db_stat.c0000664000076400007640000000451112175510132013141 00000000000000/** * @file db_stat.c * Statistics routines for libdb * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie */ #include #include #include "odb.h" #include "op_types.h" /// hold various statistics data for a db file struct odb_hash_stat_t { odb_node_nr_t node_nr; /**< allocated node number */ odb_node_nr_t used_node_nr; /**< in use node number */ count_type total_count; /**< cumulated samples count */ odb_index_t hash_table_size; /**< hash table entry number */ odb_node_nr_t max_list_length; /**< worst case */ double average_list_length; /**< average case */ /* do we need variance ? */ }; odb_hash_stat_t * odb_hash_stat(odb_t const * odb) { size_t max_length = 0; double total_length = 0.0; size_t nr_non_empty_list = 0; size_t pos; odb_data_t * data = odb->data; odb_hash_stat_t * result = calloc(1, sizeof(odb_hash_stat_t)); if (!result) { fprintf(stderr, "not enough memory\n"); exit(EXIT_FAILURE); } result->node_nr = data->descr->size; result->used_node_nr = data->descr->current_size; result->hash_table_size = data->descr->size * BUCKET_FACTOR; /* FIXME: I'm dubious if this do right statistics for hash table * efficiency check */ for (pos = 0 ; pos < result->hash_table_size ; ++pos) { size_t cur_length = 0; size_t index = data->hash_base[pos]; while (index) { result->total_count += data->node_base[index].value; index = data->node_base[index].next; ++cur_length; } if (cur_length > max_length) max_length = cur_length; if (cur_length) { total_length += cur_length; ++nr_non_empty_list; } } result->max_list_length = max_length; result->average_list_length = (!nr_non_empty_list) ? 0 : total_length / nr_non_empty_list; return result; } void odb_hash_display_stat(odb_hash_stat_t const * stat) { printf("total node number: %d\n", stat->node_nr); printf("total used node: %d\n", stat->used_node_nr); printf("total count: %llu\n", stat->total_count); printf("hash table size: %d\n", stat->hash_table_size); printf("greater list length: %d\n", stat->max_list_length); printf("average non empty list length: %2.4f\n", stat->average_list_length); } void odb_hash_free_stat(odb_hash_stat_t * stat) { free(stat); } oprofile-0.9.9/libdb/Makefile.in0000664000076400007640000005154312175510234013434 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libdb DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) ARFLAGS = cru libodb_a_AR = $(AR) $(ARFLAGS) libodb_a_LIBADD = am_libodb_a_OBJECTS = db_manage.$(OBJEXT) db_insert.$(OBJEXT) \ db_travel.$(OBJEXT) db_debug.$(OBJEXT) db_stat.$(OBJEXT) libodb_a_OBJECTS = $(am_libodb_a_OBJECTS) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libodb_a_SOURCES) DIST_SOURCES = $(libodb_a_SOURCES) RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ SUBDIRS = . tests AM_CPPFLAGS = \ -I ${top_srcdir}/libop \ -I ${top_srcdir}/libutil \ @OP_CPPFLAGS@ AM_CFLAGS = @OP_CFLAGS@ noinst_LIBRARIES = libodb.a libodb_a_SOURCES = \ db_manage.c \ db_insert.c \ db_travel.c \ db_debug.c \ db_stat.c \ odb.h all: all-recursive .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libdb/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign libdb/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) libodb.a: $(libodb_a_OBJECTS) $(libodb_a_DEPENDENCIES) -rm -f libodb.a $(libodb_a_AR) libodb.a $(libodb_a_OBJECTS) $(libodb_a_LIBADD) $(RANLIB) libodb.a mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/db_debug.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/db_insert.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/db_manage.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/db_stat.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/db_travel.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(LIBRARIES) installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \ mostlyclean-am distclean: distclean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic clean-libtool \ clean-noinstLIBRARIES ctags ctags-recursive distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/libdb/tests/0000775000076400007640000000000012175511555012610 500000000000000oprofile-0.9.9/libdb/tests/Makefile.in0000664000076400007640000004420612175510234014574 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ check_PROGRAMS = db_test$(EXEEXT) TESTS = $(check_PROGRAMS) subdir = libdb/tests DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am_db_test_OBJECTS = db_test.$(OBJEXT) db_test_OBJECTS = $(am_db_test_OBJECTS) db_test_DEPENDENCIES = ../libodb.a ../../libutil/libutil.a DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(db_test_SOURCES) DIST_SOURCES = $(db_test_SOURCES) ETAGS = etags CTAGS = ctags am__tty_colors = \ red=; grn=; lgn=; blu=; std= DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBERTY_LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ AM_CPPFLAGS = \ -I ${top_srcdir}/libop \ -I ${top_srcdir}/libutil \ -I ${top_srcdir}/libdb \ @OP_CPPFLAGS@ AM_CFLAGS = @OP_CFLAGS@ db_test_SOURCES = db_test.c db_test_LDADD = ../libodb.a ../../libutil/libutil.a all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libdb/tests/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign libdb/tests/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-checkPROGRAMS: @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list db_test$(EXEEXT): $(db_test_OBJECTS) $(db_test_DEPENDENCIES) @rm -f db_test$(EXEEXT) $(LINK) $(db_test_OBJECTS) $(db_test_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/db_test.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags check-TESTS: $(TESTS) @failed=0; all=0; xfail=0; xpass=0; skip=0; \ srcdir=$(srcdir); export srcdir; \ list=' $(TESTS) '; \ $(am__tty_colors); \ if test -n "$$list"; then \ for tst in $$list; do \ if test -f ./$$tst; then dir=./; \ elif test -f $$tst; then dir=; \ else dir="$(srcdir)/"; fi; \ if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$tst[\ \ ]*) \ xpass=`expr $$xpass + 1`; \ failed=`expr $$failed + 1`; \ col=$$red; res=XPASS; \ ;; \ *) \ col=$$grn; res=PASS; \ ;; \ esac; \ elif test $$? -ne 77; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$tst[\ \ ]*) \ xfail=`expr $$xfail + 1`; \ col=$$lgn; res=XFAIL; \ ;; \ *) \ failed=`expr $$failed + 1`; \ col=$$red; res=FAIL; \ ;; \ esac; \ else \ skip=`expr $$skip + 1`; \ col=$$blu; res=SKIP; \ fi; \ echo "$${col}$$res$${std}: $$tst"; \ done; \ if test "$$all" -eq 1; then \ tests="test"; \ All=""; \ else \ tests="tests"; \ All="All "; \ fi; \ if test "$$failed" -eq 0; then \ if test "$$xfail" -eq 0; then \ banner="$$All$$all $$tests passed"; \ else \ if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \ banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \ fi; \ else \ if test "$$xpass" -eq 0; then \ banner="$$failed of $$all $$tests failed"; \ else \ if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \ banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \ fi; \ fi; \ dashes="$$banner"; \ skipped=""; \ if test "$$skip" -ne 0; then \ if test "$$skip" -eq 1; then \ skipped="($$skip test was not run)"; \ else \ skipped="($$skip tests were not run)"; \ fi; \ test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$skipped"; \ fi; \ report=""; \ if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ report="Please report to $(PACKAGE_BUGREPORT)"; \ test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$report"; \ fi; \ dashes=`echo "$$dashes" | sed s/./=/g`; \ if test "$$failed" -eq 0; then \ echo "$$grn$$dashes"; \ else \ echo "$$red$$dashes"; \ fi; \ echo "$$banner"; \ test -z "$$skipped" || echo "$$skipped"; \ test -z "$$report" || echo "$$report"; \ echo "$$dashes$$std"; \ test "$$failed" -eq 0; \ else :; fi distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) $(MAKE) $(AM_MAKEFLAGS) check-TESTS check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-checkPROGRAMS clean-generic clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: check-am install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \ clean-checkPROGRAMS clean-generic clean-libtool ctags \ distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/libdb/tests/Makefile.am0000664000076400007640000000044512175510132014555 00000000000000AM_CPPFLAGS = \ -I ${top_srcdir}/libop \ -I ${top_srcdir}/libutil \ -I ${top_srcdir}/libdb \ @OP_CPPFLAGS@ AM_CFLAGS = @OP_CFLAGS@ LIBS = @LIBERTY_LIBS@ check_PROGRAMS = db_test db_test_SOURCES = db_test.c db_test_LDADD = ../libodb.a ../../libutil/libutil.a TESTS = ${check_PROGRAMS} oprofile-0.9.9/libdb/tests/db_test.c0000664000076400007640000000652712175510132014320 00000000000000/** * @file db_test.c * Tests for DB hash * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie */ #include #include #include #include #include #include #include #include "op_sample_file.h" #include "odb.h" #define TEST_FILENAME "test-hash-db.dat" static int nr_error; static int verbose = 0; #define verbprintf(args...) \ do { \ if (verbose) \ printf(args); \ } while (0) static double used_time(void) { struct rusage usage; getrusage(RUSAGE_SELF, &usage); return (usage.ru_utime.tv_sec + usage.ru_stime.tv_sec) * 1E9 + ((usage.ru_utime.tv_usec + usage.ru_stime.tv_usec)) * 1000; } /* update nr item */ static void speed_test(int nr_item, char const * test_name) { int i; double begin, end; odb_t hash; int rc; rc = odb_open(&hash, TEST_FILENAME, ODB_RDWR, sizeof(struct opd_header)); if (rc) { fprintf(stderr, "%s", strerror(rc)); exit(EXIT_FAILURE); } begin = used_time(); for (i = 0 ; i < nr_item ; ++i) { rc = odb_update_node(&hash, i); if (rc != EXIT_SUCCESS) { fprintf(stderr, "%s", strerror(rc)); exit(EXIT_FAILURE); } } end = used_time(); odb_close(&hash); verbprintf("%s: nr item: %d, elapsed: %f ns\n", test_name, nr_item, (end - begin) / nr_item); } static void do_speed_test(void) { int i; for (i = 100000; i <= 10000000; i *= 10) { // first test count insertion, second fetch and incr count speed_test(i, "insert"); speed_test(i, "update"); remove(TEST_FILENAME); } } static int test(int nr_item, int nr_unique_item) { int i; odb_t hash; int ret; int rc; rc = odb_open(&hash, TEST_FILENAME, ODB_RDWR, sizeof(struct opd_header)); if (rc) { fprintf(stderr, "%s", strerror(rc)); exit(EXIT_FAILURE); } for (i = 0 ; i < nr_item ; ++i) { odb_key_t key = (random() % nr_unique_item) + 1; rc = odb_update_node(&hash, key); if (rc != EXIT_SUCCESS) { fprintf(stderr, "%s", strerror(rc)); exit(EXIT_FAILURE); } } ret = odb_check_hash(&hash); odb_close(&hash); remove(TEST_FILENAME); return ret; } static void do_test(void) { int i, j; for (i = 1000; i <= 100000; i *= 10) { for (j = 100 ; j <= i / 10 ; j *= 10) { if (test(i, j)) { fprintf(stderr, "%s:%d failure for %d %d\n", __FILE__, __LINE__, i, j); nr_error++; } else { verbprintf("test() ok %d %d\n", i, j); } } } } static void sanity_check(char const * filename) { odb_t hash; int rc; rc = odb_open(&hash, filename, ODB_RDONLY, sizeof(struct opd_header)); if (rc) { fprintf(stderr, "%s", strerror(rc)); exit(EXIT_FAILURE); } if (odb_check_hash(&hash)) { fprintf(stderr, "checking file %s FAIL\n", filename); ++nr_error; } else if (verbose) { odb_hash_stat_t * stats; stats = odb_hash_stat(&hash); odb_hash_display_stat(stats); odb_hash_free_stat(stats); } odb_close(&hash); } int main(int argc, char * argv[1]) { /* if a filename is given take it as: "check this db" */ if (argc > 1) { int i; verbose = 1; if (!strcmp(argv[1], "--speed")) goto speed_test; for (i = 1 ; i < argc ; ++i) sanity_check(argv[i]); return 0; } speed_test: remove(TEST_FILENAME); do_test(); do_speed_test(); if (nr_error) printf("%d error occured\n", nr_error); return nr_error ? EXIT_FAILURE : EXIT_SUCCESS; } oprofile-0.9.9/libdb/db_debug.c0000664000076400007640000000542312175510132013257 00000000000000/** * @file db_debug.c * Debug routines for libdb * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie */ #include #include #include #include "odb.h" static int check_circular_list(odb_data_t const * data) { odb_node_nr_t pos; int do_abort = 0; unsigned char * bitmap = malloc(data->descr->current_size); memset(bitmap, '\0', data->descr->current_size); for (pos = 0 ; pos < data->descr->size * BUCKET_FACTOR ; ++pos) { odb_index_t index = data->hash_base[pos]; if (index && !do_abort) { while (index) { if (bitmap[index]) do_abort = 1; bitmap[index] = 1; index = data->node_base[index].next; } } if (do_abort) { printf("circular list detected size: %d\n", data->descr->current_size); memset(bitmap, '\0', data->descr->current_size); index = data->hash_base[pos]; while (index) { printf("%d ", index); if (bitmap[index]) exit(1); bitmap[index] = 1; index = data->node_base[index].next; } } /* purely an optimization: intead of memset the map reset only * the needed part: not my use to optimize test but here the * test was so slow it was useless */ index = data->hash_base[pos]; while (index) { bitmap[index] = 1; index = data->node_base[index].next; } } free(bitmap); return do_abort; } static int check_redundant_key(odb_data_t const * data, odb_key_t max) { odb_node_nr_t pos; unsigned char * bitmap = malloc(max + 1); memset(bitmap, '\0', max + 1); for (pos = 1 ; pos < data->descr->current_size ; ++pos) { if (bitmap[data->node_base[pos].key]) { printf("redundant key found %lld\n", (unsigned long long)data->node_base[pos].key); free(bitmap); return 1; } bitmap[data->node_base[pos].key] = 1; } free(bitmap); return 0; } int odb_check_hash(odb_t const * odb) { odb_node_nr_t pos; odb_node_nr_t nr_node = 0; odb_node_nr_t nr_node_out_of_bound = 0; int ret = 0; odb_key_t max = 0; odb_data_t * data = odb->data; for (pos = 0 ; pos < data->descr->size * BUCKET_FACTOR ; ++pos) { odb_index_t index = data->hash_base[pos]; while (index) { if (index >= data->descr->current_size) { nr_node_out_of_bound++; break; } ++nr_node; if (data->node_base[index].key > max) max = data->node_base[index].key; index = data->node_base[index].next; } } if (nr_node != data->descr->current_size - 1) { printf("hash table walk found %d node expect %d node\n", nr_node, data->descr->current_size - 1); ret = 1; } if (nr_node_out_of_bound) { printf("out of bound node index: %d\n", nr_node_out_of_bound); ret = 1; } if (ret == 0) ret = check_circular_list(data); if (ret == 0) ret = check_redundant_key(data, max); return ret; } oprofile-0.9.9/libdb/Makefile.am0000664000076400007640000000040212175510132013404 00000000000000SUBDIRS=. tests AM_CPPFLAGS = \ -I ${top_srcdir}/libop \ -I ${top_srcdir}/libutil \ @OP_CPPFLAGS@ AM_CFLAGS = @OP_CFLAGS@ noinst_LIBRARIES = libodb.a libodb_a_SOURCES = \ db_manage.c \ db_insert.c \ db_travel.c \ db_debug.c \ db_stat.c \ odb.h oprofile-0.9.9/libdb/db_insert.c0000664000076400007640000000521512175510132013474 00000000000000/** * @file db_insert.c * Inserting a key-value pair into a DB * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie */ #define _GNU_SOURCE #include #include #include #include #include "odb.h" static inline int add_node(odb_data_t * data, odb_key_t key, odb_value_t value) { odb_index_t new_node; odb_node_t * node; odb_index_t index; /* no locking is necessary: iteration interface retrieve data through * the node_base array, we doesn't increase current_size now but it's * done by odb_commit_reservation() so the new slot is visible only * after the increment */ if (data->descr->current_size >= data->descr->size) { if (odb_grow_hashtable(data)) return EINVAL; } new_node = data->descr->current_size; node = &data->node_base[new_node]; node->value = value; node->key = key; index = odb_do_hash(data, key); node->next = data->hash_base[index]; data->hash_base[index] = new_node; /* FIXME: we need wrmb() here */ odb_commit_reservation(data); return 0; } int odb_update_node(odb_t * odb, odb_key_t key) { return odb_update_node_with_offset(odb, key, 1); } int odb_update_node_with_offset(odb_t * odb, odb_key_t key, unsigned long int offset) { odb_index_t index; odb_node_t * node; odb_data_t * data; data = odb->data; index = data->hash_base[odb_do_hash(data, key)]; while (index) { node = &data->node_base[index]; if (node->key == key) { if (node->value + offset != 0) { node->value += offset; } else { /* post profile tools must handle overflow */ /* FIXME: the tricky way will be just to add * a goto to jump right before the return * add_node(), in this way we no longer can * overflow. It'll work because new node are * linked at the start of the node list for * this bucket so this loop will see first a * non overflowed node if one exist. When we * grow the hashtable the most recently * allocated node for this key will be setup * last, so again it'll be linked at start of * the list. pp tools looke like ok with this * change. * * This change doesn't involve any file format * change but perhaps it's a bit hacky to do * this w/o bumping the sample file format * version. The drawback of this is the added * node are additive not multiplicative. * (multiplicative as if we add more bits to * store a value) */ } return 0; } index = node->next; } return add_node(data, key, offset); } int odb_add_node(odb_t * odb, odb_key_t key, odb_value_t value) { return add_node(odb->data, key, value); } oprofile-0.9.9/libdb/db_manage.c0000664000076400007640000001513412175510132013421 00000000000000/** * @file db_manage.c * Management of a DB file * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie */ #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include "odb.h" #include "op_string.h" #include "op_libiberty.h" static __inline odb_descr_t * odb_to_descr(odb_data_t * data) { return (odb_descr_t *)(((char*)data->base_memory) + data->sizeof_header); } static __inline odb_node_t * odb_to_node_base(odb_data_t * data) { return (odb_node_t *)(((char *)data->base_memory) + data->offset_node); } static __inline odb_index_t * odb_to_hash_base(odb_data_t * data) { return (odb_index_t *)(((char *)data->base_memory) + data->offset_node + (data->descr->size * sizeof(odb_node_t))); } /** * return the number of bytes used by hash table, node table and header. */ static unsigned int tables_size(odb_data_t const * data, odb_node_nr_t node_nr) { size_t size; size = node_nr * (sizeof(odb_index_t) * BUCKET_FACTOR); size += node_nr * sizeof(odb_node_t); size += data->offset_node; return size; } int odb_grow_hashtable(odb_data_t * data) { unsigned int old_file_size; unsigned int new_file_size; unsigned int pos; void * new_map; old_file_size = tables_size(data, data->descr->size); new_file_size = tables_size(data, data->descr->size * 2); if (ftruncate(data->fd, new_file_size)) return 1; new_map = mremap(data->base_memory, old_file_size, new_file_size, MREMAP_MAYMOVE); if (new_map == MAP_FAILED) return 1; data->base_memory = new_map; data->descr = odb_to_descr(data); data->descr->size *= 2; data->node_base = odb_to_node_base(data); data->hash_base = odb_to_hash_base(data); data->hash_mask = (data->descr->size * BUCKET_FACTOR) - 1; /* rebuild the hash table, node zero is never used. This works * because layout of file is node table then hash table, * sizeof(node) > sizeof(bucket) and when we grow table we * double size ==> old hash table and new hash table can't * overlap so on the new hash table is entirely in the new * memory area (the grown part) and we know the new hash * hash table is zeroed. That's why we don't need to zero init * the new table */ /* OK: the above is not exact * if BUCKET_FACTOR < sizeof(bd_node_t) / sizeof(bd_node_nr_t) * all things are fine and we don't need to init the hash * table because in this case the new hash table is completely * inside the new growed part. Avoiding to touch this memory is * useful. */ #if 0 for (pos = 0 ; pos < data->descr->size*BUCKET_FACTOR ; ++pos) data->hash_base[pos] = 0; #endif for (pos = 1; pos < data->descr->current_size; ++pos) { odb_node_t * node = &data->node_base[pos]; size_t index = odb_do_hash(data, node->key); node->next = data->hash_base[index]; data->hash_base[index] = pos; } return 0; } void odb_init(odb_t * odb) { odb->data = NULL; } /* the default number of page, calculated to fit in 4096 bytes */ #define DEFAULT_NODE_NR(offset_node) 128 #define FILES_HASH_SIZE 512 static struct list_head files_hash[FILES_HASH_SIZE]; static void init_hash() { size_t i; for (i = 0; i < FILES_HASH_SIZE; ++i) list_init(&files_hash[i]); } static odb_data_t * find_samples_data(size_t hash, char const * filename) { struct list_head * pos; /* FIXME: maybe an initial init routine ? */ if (files_hash[0].next == NULL) { init_hash(); return NULL; } list_for_each(pos, &files_hash[hash]) { odb_data_t * entry = list_entry(pos, odb_data_t, list); if (strcmp(entry->filename, filename) == 0) return entry; } return NULL; } int odb_open(odb_t * odb, char const * filename, enum odb_rw rw, size_t sizeof_header) { struct stat stat_buf; odb_node_nr_t nr_node; odb_data_t * data; size_t hash; int err = 0; int flags = (rw == ODB_RDWR) ? (O_CREAT | O_RDWR) : O_RDONLY; int mmflags = (rw == ODB_RDWR) ? (PROT_READ | PROT_WRITE) : PROT_READ; hash = op_hash_string(filename) % FILES_HASH_SIZE; data = find_samples_data(hash, filename); if (data) { odb->data = data; data->ref_count++; return 0; } data = xmalloc(sizeof(odb_data_t)); memset(data, '\0', sizeof(odb_data_t)); list_init(&data->list); data->offset_node = sizeof_header + sizeof(odb_descr_t); data->sizeof_header = sizeof_header; data->ref_count = 1; data->filename = xstrdup(filename); data->fd = open(filename, flags, 0644); if (data->fd < 0) { err = errno; goto out; } if (fstat(data->fd, &stat_buf)) { err = errno; goto fail; } if (stat_buf.st_size == 0) { size_t file_size; if (rw == ODB_RDONLY) { err = EIO; goto fail; } nr_node = DEFAULT_NODE_NR(data->offset_node); file_size = tables_size(data, nr_node); if (ftruncate(data->fd, file_size)) { err = errno; goto fail; } } else { /* Calculate nr node allowing a sanity check later */ nr_node = (stat_buf.st_size - data->offset_node) / ((sizeof(odb_index_t) * BUCKET_FACTOR) + sizeof(odb_node_t)); } data->base_memory = mmap(0, tables_size(data, nr_node), mmflags, MAP_SHARED, data->fd, 0); if (data->base_memory == MAP_FAILED) { err = errno; goto fail; } data->descr = odb_to_descr(data); if (stat_buf.st_size == 0) { data->descr->size = nr_node; /* page zero is not used */ data->descr->current_size = 1; } else { /* file already exist, sanity check nr node */ if (nr_node != data->descr->size) { err = EINVAL; goto fail_unmap; } } data->hash_base = odb_to_hash_base(data); data->node_base = odb_to_node_base(data); data->hash_mask = (data->descr->size * BUCKET_FACTOR) - 1; list_add(&data->list, &files_hash[hash]); odb->data = data; out: return err; fail_unmap: munmap(data->base_memory, tables_size(data, nr_node)); fail: close(data->fd); free(data->filename); free(data); odb->data = NULL; goto out; } void odb_close(odb_t * odb) { odb_data_t * data = odb->data; if (data) { data->ref_count--; if (data->ref_count == 0) { size_t size = tables_size(data, data->descr->size); list_del(&data->list); munmap(data->base_memory, size); if (data->fd >= 0) close(data->fd); free(data->filename); free(data); odb->data = NULL; } } } int odb_open_count(odb_t const * odb) { if (!odb->data) return 0; return odb->data->ref_count; } void * odb_get_data(odb_t * odb) { return odb->data->base_memory; } void odb_sync(odb_t const * odb) { odb_data_t * data = odb->data; size_t size; if (!data) return; size = tables_size(data, data->descr->size); msync(data->base_memory, size, MS_ASYNC); } oprofile-0.9.9/pp/0000775000076400007640000000000012175511556011012 500000000000000oprofile-0.9.9/pp/opannotate_options.cpp0000664000076400007640000001252212175510132015350 00000000000000/** * @file opannotate_options.cpp * Options for opannotate tool * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include #include #include #include #include #include #include "op_config.h" #include "profile_spec.h" #include "arrange_profiles.h" #include "op_exception.h" #include "opannotate_options.h" #include "popt_options.h" #include "cverb.h" using namespace std; profile_classes classes; namespace options { demangle_type demangle = dmt_normal; string output_dir; vector search_dirs; vector base_dirs; merge_option merge_by; path_filter file_filter; string_filter symbol_filter; bool source; bool assembly; vector objdump_params; bool exclude_dependent; } namespace { string include_symbols; string exclude_symbols; string include_file; string exclude_file; string demangle_option = "normal"; vector mergespec; popt::option options_array[] = { popt::option(demangle_option, "demangle", 'D', "demangle GNU C++ symbol names (default normal)", "none|normal|smart"), popt::option(options::output_dir, "output-dir", 'o', "output directory", "directory name"), popt::option(options::search_dirs, "search-dirs", 'd', "directories to look for source files", "comma-separated paths"), popt::option(options::base_dirs, "base-dirs", 'b', "source file prefixes to strip", "comma-separated paths"), popt::option(include_file, "include-file", '\0', "include these comma separated filename", "filenames"), popt::option(exclude_file, "exclude-file", '\0', "exclude these comma separated filename", "filenames"), popt::option(include_symbols, "include-symbols", 'i', "include these comma separated symbols", "symbols"), popt::option(exclude_symbols, "exclude-symbols", 'e', "exclude these comma separated symbols", "symbols"), popt::option(options::objdump_params, "objdump-params", '\0', "additional params to pass to objdump", "parameters"), popt::option(options::exclude_dependent, "exclude-dependent", 'x', "exclude libs, kernel, and module samples for applications"), popt::option(mergespec, "merge", 'm', "comma separated list", "cpu,tid,tgid,unitmask,all"), popt::option(options::source, "source", 's', "output source"), popt::option(options::assembly, "assembly", 'a', "output assembly"), popt::option(options::threshold_opt, "threshold", 't', "minimum percentage needed to produce output", "percent"), }; } // anonymous namespace void handle_options(options::spec const & spec) { using namespace options; vector tmp_objdump_parms; /* When passing a quoted string of options from opannotate for the * objdump command, objdump_parms consists of a single string. Need * to break the string into a series of individual options otherwise * the call to exec_comand fails when it sees the space between the * options. */ for (unsigned int i = 0; i < objdump_params.size(); i++) { string s; s = objdump_params[i]; stringstream ss(s); istream_iterator begin(ss); istream_iterator end; vector vstrings(begin, end); for (unsigned int j = 0; j < vstrings.size(); j++) tmp_objdump_parms.push_back(vstrings[j]); } // update objdump_parms. objdump_params.assign(tmp_objdump_parms.begin(), tmp_objdump_parms.end()); if (spec.first.size()) { cerr << "differential profiles not allowed" << endl; exit(EXIT_FAILURE); } if (!assembly && !source) { cerr << "you must specify at least --source or --assembly\n"; exit(EXIT_FAILURE); } if (!objdump_params.empty() && !assembly) { cerr << "--objdump-params is meaningless without --assembly\n"; exit(EXIT_FAILURE); } if (search_dirs.empty() && !base_dirs.empty()) { cerr << "--base-dirs is useless unless you specify an " "alternative source location with --search-dirs" << endl; exit(EXIT_FAILURE); } if (assembly && !output_dir.empty()) { cerr << "--output-dir is meaningless with --assembly" << endl; exit(EXIT_FAILURE); } options::symbol_filter = string_filter(include_symbols, exclude_symbols); options::file_filter = path_filter(include_file, exclude_file); profile_spec const pspec = profile_spec::create(spec.common, options::image_path, options::root_path); if (!was_session_dir_supplied()) cerr << "Using " << op_samples_dir << " for session-dir" << endl; list sample_files = pspec.generate_file_list(exclude_dependent, true); cverb << vsfile << "Archive: " << pspec.get_archive_path() << endl; cverb << vsfile << "Matched sample files: " << sample_files.size() << endl; copy(sample_files.begin(), sample_files.end(), ostream_iterator(cverb << vsfile, "\n")); demangle = handle_demangle_option(demangle_option); // we always merge but this have no effect on output since at source // or assembly point of view the result will be merged anyway merge_by = handle_merge_option(mergespec, false, exclude_dependent); classes = arrange_profiles(sample_files, merge_by, pspec.extra_found_images); cverb << vsfile << "profile_classes:\n" << classes << endl; if (classes.v.empty()) { cerr << "error: no sample files found: profile specification " "too strict ?" << endl; exit(EXIT_FAILURE); } } oprofile-0.9.9/pp/opgprof_options.cpp0000664000076400007640000000560512175510132014660 00000000000000/** * @file opgprof_options.cpp * Options for opgprof tool * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include #include #include #include #include #include #include "opgprof_options.h" #include "popt_options.h" #include "cverb.h" #include "profile_spec.h" #include "arrange_profiles.h" using namespace std; profile_classes classes; inverted_profile image_profile; namespace options { string gmon_filename = "gmon.out"; // Ugly, for build only demangle_type demangle; } namespace { popt::option options_array[] = { popt::option(options::gmon_filename, "output-filename", 'o', "output filename, defaults to gmon.out if not specified", "filename"), popt::option(options::threshold_opt, "threshold", 't', "minimum percentage needed to produce output", "percent"), }; bool try_merge_profiles(profile_spec const & spec, bool exclude_dependent) { list sample_files = spec.generate_file_list(exclude_dependent, false); cverb << vsfile << "Matched sample files: " << sample_files.size() << endl; copy(sample_files.begin(), sample_files.end(), ostream_iterator(cverb << vsfile, "\n")); // opgprof merge all by default merge_option merge_by; merge_by.cpu = true; merge_by.lib = true; merge_by.tid = true; merge_by.tgid = true; merge_by.unitmask = true; classes = arrange_profiles(sample_files, merge_by, spec.extra_found_images); cverb << vsfile << "profile_classes:\n" << classes << endl; size_t nr_classes = classes.v.size(); list iprofiles = invert_profiles(classes); if (nr_classes == 1 && iprofiles.size() == 1) { image_profile = *(iprofiles.begin()); return true; } // come round for another try if (exclude_dependent) return false; if (iprofiles.empty()) { cerr << "error: no sample files found: profile specification " "too strict ?" << endl; exit(EXIT_FAILURE); } if (nr_classes > 1 || iprofiles.size() > 1) { cerr << "error: specify exactly one binary to process " "and give an event: or count: specification if necessary" << endl; exit(EXIT_FAILURE); } return false; } } // anonymous namespace void handle_options(options::spec const & spec) { if (spec.first.size()) { cerr << "differential profiles not allowed" << endl; exit(EXIT_FAILURE); } profile_spec const pspec = profile_spec::create(spec.common, options::image_path, options::root_path); cverb << vsfile << "output filename: " << options::gmon_filename << endl; // we do a first try with exclude-dependent if it fails we include // dependent. First try should catch "opgrof /usr/bin/make" whilst // the second catch "opgprof /lib/libc-2.2.5.so" if (!try_merge_profiles(pspec, true)) try_merge_profiles(pspec, false); } oprofile-0.9.9/pp/oparchive.cpp0000664000076400007640000002121412175510132013403 00000000000000/** * @file oparchive.cpp * Implement oparchive utility * * @remark Copyright 2003, 2004 OProfile authors * @remark Read the file COPYING * * @author Will Cohen * @author John Levon * @author Philippe Elie */ #include #include #include #include #include #include #include #include #include #include #include #include "op_file.h" #include "op_bfd.h" #include "op_config.h" #include "oparchive_options.h" #include "file_manip.h" #include "cverb.h" #include "image_errors.h" #include "string_manip.h" #include "locate_images.h" using namespace std; namespace { void copy_one_file(image_error err, string const & source, string const & dest) { if (!op_file_readable(source)) return; if (options::list_files) { cout << source << endl; return; } if (!copy_file(source, dest) && err == image_ok) { cerr << "can't copy from " << source << " to " << dest << " cause: " << strerror(errno) << endl; } } static void _copy_operf_stats(string const & archive_stats, string const & stats_path) { struct dirent * dirent; string throttled_path; throttled_path = stats_path + "/throttled"; DIR * dir = opendir(throttled_path.c_str()); while (dir && (dirent = readdir(dir))) { if ((!strcmp(dirent->d_name, ".")) || (!strcmp(dirent->d_name, ".."))) continue; string archive_stats_path; string throttled_event = throttled_path + "/" + dirent->d_name; archive_stats_path = archive_stats + "throttled/" + dirent->d_name; if (!options::list_files && create_path(archive_stats_path.c_str())) { cerr << "Unable to create directory for " << archive_stats_path << "." << endl; exit (EXIT_FAILURE); } copy_one_file(image_ok, throttled_event, archive_stats_path); } if (dir) closedir(dir); for (int i = 0; i < OPERF_MAX_STATS; i++) { if (i > 0 && i < OPERF_INDEX_OF_FIRST_LOST_STAT) continue; string fname = stats_path + "/" + stats_filenames[i]; int fd = open(fname.c_str(), O_RDONLY); if (fd != -1) { string archive_stats_path = archive_stats + stats_filenames[i]; if (!options::list_files && create_path(archive_stats_path.c_str())) { cerr << "Unable to create directory for " << archive_stats_path << "." << endl; exit (EXIT_FAILURE); } copy_one_file(image_ok, fname, archive_stats_path); close(fd); } } } static void _copy_legacy_stats(DIR * dir, string const & archive_stats, string const & stats_path) { struct dirent * dirent; string archive_stats_path = archive_stats + "event_lost_overflow"; if (!options::list_files && create_path(archive_stats_path.c_str())) { cerr << "Unable to create directory for " << archive_stats_path << "." << endl; exit (EXIT_FAILURE); } copy_one_file(image_ok, stats_path + "event_lost_overflow", archive_stats_path); while ((dirent = readdir(dir))) { int cpu_nr; string path; if (sscanf(dirent->d_name, "cpu%d", &cpu_nr) != 1) continue; path = string(dirent->d_name) + "/" + "sample_lost_overflow"; archive_stats_path = archive_stats + path; if (!options::list_files && create_path(archive_stats_path.c_str())) { cerr << "Unable to create directory for " << archive_stats_path << "." << endl; exit (EXIT_FAILURE); } copy_one_file(image_ok, stats_path + path, archive_stats_path); } } void copy_stats(string const & session_samples_dir, string const & archive_path) { DIR * dir; string stats_path; stats_path = session_samples_dir + "stats/"; if (!(dir = opendir(stats_path.c_str()))) { return; } string sample_base_dir = session_samples_dir.substr(archive_path.size()); string archive_stats = options::outdirectory + sample_base_dir + "stats/"; _copy_legacy_stats(dir, archive_stats, stats_path); closedir(dir); _copy_operf_stats(archive_stats, stats_path); } int oparchive(options::spec const & spec) { handle_options(spec); string archive_path = classes.extra_found_images.get_archive_path(); /* Check to see if directory can be created */ if (!options::list_files && create_path(options::outdirectory.c_str())) { cerr << "Unable to create directory for " << options::outdirectory << "." << endl; exit (EXIT_FAILURE); } /* copy over each of the executables and the debuginfo files */ list iprofiles = invert_profiles(classes); report_image_errors(iprofiles, classes.extra_found_images); list::iterator it = iprofiles.begin(); list::iterator const end = iprofiles.end(); cverb << vdebug << "(exe_names)" << endl << endl; for (; it != end; ++it) { string exe_name = it->image; image_error error; string real_exe_name = classes.extra_found_images.find_image_path(it->image, error, true); if (error == image_ok) exe_name = classes.extra_found_images.strip_path_prefix(real_exe_name); // output name must be identical to the original name, when // using this archive the used fixup will be identical e.g.: // oparchive -p /lib/modules/2.6.42/kernel -o tmp; // opreport -p /lib/modules/2.6.42/kernel { archive:tmp } string exe_archive_file = options::outdirectory + exe_name; // FIXME: hacky if (it->error == image_not_found && is_prefix(exe_name, "anon ")) continue; cverb << vdebug << real_exe_name << endl; /* Create directory for executable file. */ if (!options::list_files && create_path(exe_archive_file.c_str())) { cerr << "Unable to create directory for " << exe_archive_file << "." << endl; exit (EXIT_FAILURE); } /* Copy actual executable files */ copy_one_file(it->error, real_exe_name, exe_archive_file); /* If there are any debuginfo files, copy them over. * Need to copy the debug info file to somewhere we'll * find it - executable location + "/.debug" * to avoid overwriting files with the same name. The * /usr/lib/debug search path is not going to work. */ bfd * ibfd = open_bfd(real_exe_name); if (ibfd) { string dirname = op_dirname(real_exe_name); string debug_filename; if (find_separate_debug_file(ibfd, real_exe_name, debug_filename, classes.extra_found_images)) { /* found something copy it over */ string dest_debug_dir = options::outdirectory + dirname + "/.debug/"; if (!options::list_files && create_dir(dest_debug_dir.c_str())) { cerr << "Unable to create directory: " << dest_debug_dir << "." << endl; exit (EXIT_FAILURE); } string dest_debug = dest_debug_dir + op_basename(debug_filename); copy_one_file(image_ok, debug_filename, dest_debug); } bfd_close(ibfd); } } /* copy over each of the sample files */ list::iterator sit = sample_files.begin(); list::iterator const send = sample_files.end(); string a_sample_file = *sit; int offset = a_sample_file.find('{'); string base_samples_dir = a_sample_file.substr(0, offset); copy_stats(base_samples_dir, archive_path); cverb << vdebug << "(sample_names)" << endl << endl; for (; sit != send; ++sit) { string sample_name = *sit; /* Get rid of the the archive_path from the name */ string sample_base = sample_name.substr(archive_path.size()); string sample_archive_file = options::outdirectory + sample_base; cverb << vdebug << sample_name << endl; cverb << vdebug << " destp " << sample_archive_file << endl; if (!options::list_files && create_path(sample_archive_file.c_str())) { cerr << "Unable to create directory for " << sample_archive_file << "." << endl; exit (EXIT_FAILURE); } /* Copy over actual sample file. */ copy_one_file(image_ok, sample_name, sample_archive_file); } /* copy over the /abi file if it exists */ char * real_session_dir = realpath(op_session_dir, NULL); if (!real_session_dir) { cerr << "Unable to to obtain realpath for " << op_session_dir << endl; exit (EXIT_FAILURE); } string abi_name = string(real_session_dir) + "/abi"; copy_one_file(image_ok, archive_path + abi_name, options::outdirectory + abi_name); /* copy over the /samples/oprofiled.log file */ string log_name = string(real_session_dir) + string("/samples") + "/oprofiled.log"; copy_one_file(image_ok, archive_path + log_name, options::outdirectory + log_name); /* copy over the /samples/operf.log file */ log_name = string(real_session_dir) + string("/samples") + "/operf.log"; copy_one_file(image_ok, archive_path + log_name, options::outdirectory + log_name); free(real_session_dir); return 0; } } // anonymous namespace int main(int argc, char const * argv[]) { return run_pp_tool(argc, argv, oparchive); } oprofile-0.9.9/pp/opgprof_options.h0000664000076400007640000000124412175510132014320 00000000000000/** * @file opgprof_options.h * Options for opgprof tool * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef OPGPROF_OPTIONS_H #define OPGPROF_OPTIONS_H #include #include "common_option.h" namespace options { extern std::string gmon_filename; } class inverted_profile; /// a set of sample filenames to handle. extern inverted_profile image_profile; /** * handle_options - process command line * @param spec profile specification * * Process the spec, fatally complaining on error. */ void handle_options(options::spec const & spec); #endif // OPGPROF_OPTIONS_H oprofile-0.9.9/pp/opreport_options.cpp0000664000076400007640000002127612175510132015060 00000000000000/** * @file opreport_options.cpp * Options for opreport tool * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include #include #include #include #include #include #include "op_config.h" #include "profile_spec.h" #include "arrange_profiles.h" #include "opreport_options.h" #include "popt_options.h" #include "string_filter.h" #include "file_manip.h" #include "xml_output.h" #include "xml_utils.h" #include "cverb.h" using namespace std; profile_classes classes; profile_classes classes2; namespace options { demangle_type demangle = dmt_normal; bool symbols; bool callgraph; bool debug_info; bool details; bool exclude_dependent; string_filter symbol_filter; sort_options sort_by; merge_option merge_by; bool show_header = true; bool long_filenames; bool show_address; bool accumulated; bool reverse_sort; bool global_percent; bool xml; string xml_options; } namespace { string outfile; vector mergespec; vector sort; vector exclude_symbols; vector include_symbols; string demangle_option = "normal"; popt::option options_array[] = { popt::option(options::callgraph, "callgraph", 'c', "show call graph"), popt::option(options::details, "details", 'd', "output detailed samples for each symbol"), popt::option(options::symbols, "symbols", 'l', "list all symbols"), popt::option(outfile, "output-file", 'o', "output to the given filename", "file"), popt::option(sort, "sort", 's', "sort by", "sample,image,app-name,symbol,debug,vma"), popt::option(options::reverse_sort, "reverse-sort", 'r', "use reverse sort"), popt::option(mergespec, "merge", 'm', "comma separated list", "cpu,lib,tid,tgid,unitmask,all"), popt::option(options::exclude_dependent, "exclude-dependent", 'x', "exclude libs, kernel, and module samples for applications"), popt::option(exclude_symbols, "exclude-symbols", 'e', "exclude these comma separated symbols", "symbols"), popt::option(include_symbols, "include-symbols", 'i', "include these comma separated symbols", "symbols"), popt::option(options::threshold_opt, "threshold", 't', "minimum percentage needed to produce output", "percent"), popt::option(demangle_option, "demangle", 'D', "demangle GNU C++ symbol names (default normal)", "none|normal|smart"), // PP:5 popt::option(options::debug_info, "debug-info", 'g', "add source file and line number to output"), popt::option(options::show_header, "no-header", 'n', "remove all headers from output"), popt::option(options::show_address, "show-address", 'w', "show VMA address of each symbol"), popt::option(options::long_filenames, "long-filenames", 'f', "show the full path of filenames"), popt::option(options::accumulated, "accumulated", 'a', "percentage field show accumulated count"), popt::option(options::global_percent, "global-percent", '%', "percentage are not relative to symbol count or image " "count but total sample count"), popt::option(options::xml, "xml", 'X', "XML output"), }; void handle_sort_option() { if (options::xml && !sort.empty()) { cerr << "warning: sort options ignored because they " << "are incompatible with --xml" << endl; // don't allow any other sorting, except the default below, // to mess up symbol traversal for XML sort.clear(); } if (sort.empty() || options::xml) { // PP:5.14 sort default to sample if (options::xml) { // implicitly sort by app-name,image so that in the // symbol traversal all library module symbols are // grouped together with their application sort.push_back("app-name"); sort.push_back("image"); } else sort.push_back("sample"); } vector::const_iterator cit = sort.begin(); vector::const_iterator end = sort.end(); for (; cit != end; ++cit) options::sort_by.add_sort_option(*cit); } void handle_output_file() { if (outfile.empty()) return; static ofstream os(outfile.c_str()); if (!os) { cerr << "Couldn't open \"" << outfile << "\" for writing." << endl; exit(EXIT_FAILURE); } cout.rdbuf(os.rdbuf()); } /// Check incompatible or meaningless options. void check_options(bool diff) { using namespace options; bool do_exit = false; if (callgraph) { symbols = true; if (details) { cerr << "--callgraph is incompatible with --details" << endl; do_exit = true; } if (diff) { cerr << "differential profiles are incompatible with --callgraph" << endl; do_exit = true; } } if (xml) { if (accumulated) { cerr << "--accumulated is incompatible with --xml" << endl; do_exit = true; } if (global_percent) { cerr << "--global_percent is incompatible with --xml" << endl; do_exit = true; } } if (details && diff) { cerr << "differential profiles are incompatible with --details" << endl; do_exit = true; } if (!symbols) { if (diff) { cerr << "different profiles are meaningless " "without --symbols" << endl; do_exit = true; } if (show_address) { cerr << "--show-address is meaningless " "without --symbols" << endl; do_exit = true; } if (debug_info || accumulated) { cerr << "--debug-info and --accumulated are " << "meaningless without --symbols" << endl; do_exit = true; } if (!exclude_symbols.empty() || !include_symbols.empty()) { cerr << "--exclude-symbols and --include-symbols are " << "meaningless without --symbols" << endl; do_exit = true; } if (find(sort_by.options.begin(), sort_by.options.end(), sort_options::vma) != sort_by.options.end()) { cerr << "--sort=vma is " << "meaningless without --symbols" << endl; do_exit = true; } } if (global_percent && symbols && !(details || callgraph)) { cerr << "--global-percent is meaningless with --symbols " "and without --details or --callgraph" << endl; do_exit = true; } if (do_exit) exit(EXIT_FAILURE); } /// process a spec into classes void process_spec(profile_classes & classes, list const & spec) { using namespace options; copy(spec.begin(), spec.end(), ostream_iterator(cverb << vsfile, " ")); cverb << vsfile << "\n\n"; profile_spec const pspec = profile_spec::create(spec, options::image_path, options::root_path); if (!was_session_dir_supplied()) cerr << "Using " << op_samples_dir << " for samples directory." << endl; list sample_files = pspec.generate_file_list(exclude_dependent, !options::callgraph); cverb << vsfile << "Archive: " << pspec.get_archive_path() << endl; cverb << vsfile << "Matched sample files: " << sample_files.size() << endl; copy(sample_files.begin(), sample_files.end(), ostream_iterator(cverb << vsfile, "\n")); classes = arrange_profiles(sample_files, merge_by, pspec.extra_found_images); cverb << vsfile << "profile_classes:\n" << classes << endl; if (classes.v.empty()) { cerr << "error: no sample files found: profile specification " "too strict ?" << endl; exit(EXIT_FAILURE); } } } // namespace anon void handle_options(options::spec const & spec) { using namespace options; if (details) { symbols = true; show_address = true; } if (options::xml) { if (spec.common.size() != 0) xml_utils::add_option(SESSION, spec.common); if (debug_info) xml_utils::add_option(DEBUG_INFO, true); if (details) xml_utils::add_option(DETAILS, true); if (!image_path.empty()) xml_utils::add_option(IMAGE_PATH, image_path); if (!mergespec.empty()) xml_utils::add_option(MERGE, mergespec); if (exclude_dependent) xml_utils::add_option(EXCLUDE_DEPENDENT, true); if (!exclude_symbols.empty()) xml_utils::add_option(EXCLUDE_SYMBOLS, exclude_symbols); if (!include_symbols.empty()) xml_utils::add_option(INCLUDE_SYMBOLS, include_symbols); } handle_sort_option(); merge_by = handle_merge_option(mergespec, true, exclude_dependent); handle_output_file(); demangle = handle_demangle_option(demangle_option); check_options(spec.first.size()); symbol_filter = string_filter(include_symbols, exclude_symbols); if (!spec.first.size()) { process_spec(classes, spec.common); } else { if (options::xml) { cerr << "differential profiles are incompatible with --xml" << endl; exit(EXIT_FAILURE); } cverb << vsfile << "profile spec 1:" << endl; process_spec(classes, spec.first); cverb << vsfile << "profile spec 2:" << endl; process_spec(classes2, spec.second); if (!classes.matches(classes2)) { cerr << "profile classes are incompatible" << endl; exit(EXIT_FAILURE); } } } oprofile-0.9.9/pp/opgprof.cpp0000664000076400007640000002033012175510132013075 00000000000000/** * @file opgprof.cpp * Implement opgprof utility * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include #include #include "op_header.h" #include "profile.h" #include "op_libiberty.h" #include "op_fileio.h" #include "string_filter.h" #include "profile_container.h" #include "arrange_profiles.h" #include "image_errors.h" #include "opgprof_options.h" #include "cverb.h" #include "op_file.h" using namespace std; extern profile_classes classes; namespace { #define GMON_VERSION 1 #define GMON_TAG_TIME_HIST 0 #define GMON_TAG_CG_ARC 1 struct gmon_hdr { char cookie[4]; u32 version; u32 spare[3]; }; void op_write_vma(FILE * fp, op_bfd const & abfd, bfd_vma vma) { // bfd vma write size is a per binary property not a bfd // configuration property switch (abfd.bfd_arch_bits_per_address()) { case 32: op_write_u32(fp, vma); break; case 64: op_write_u64(fp, vma); break; default: cerr << "oprofile: unknown vma size for this binary\n"; exit(EXIT_FAILURE); } } void get_vma_range(bfd_vma & min, bfd_vma & max, profile_container const & samples) { min = bfd_vma(-1); max = 0; sample_container::samples_iterator it = samples.begin(); sample_container::samples_iterator end = samples.end(); for (; it != end ; ++it) { if (it->second.vma < min) min = it->second.vma; if (it->second.vma > max) max = it->second.vma; } if (min == bfd_vma(-1)) min = 0; // we must return a range [min, max) not a range [min, max] if (max != 0) max += 1; } /** * @param abfd bfd object * @param samples_files profile container to act on * @param gap a power of 2 * * return true if all sample in samples_files are at least aligned on gap. This * function is used to get at runtime the right size of gprof bin size * reducing gmon.out on arch with fixed size instruction length * */ bool aligned_samples(profile_container const & samples, int gap) { sample_container::samples_iterator it = samples.begin(); sample_container::samples_iterator end = samples.end(); for (; it != end ; ++it) { if (it->second.vma % gap) return false; } return true; } void output_cg(FILE * fp, op_bfd const & abfd, profile_t const & cg_db) { opd_header const & header = cg_db.get_header(); bfd_vma offset = 0; if (header.is_kernel) offset = abfd.get_start_offset(0); else offset = header.anon_start; profile_t::iterator_pair p_it = cg_db.samples_range(); for (; p_it.first != p_it.second; ++p_it.first) { bfd_vma from = p_it.first.vma() >> 32; bfd_vma to = p_it.first.vma() & 0xffffffff; op_write_u8(fp, GMON_TAG_CG_ARC); op_write_vma(fp, abfd, abfd.offset_to_pc(from + offset)); op_write_vma(fp, abfd, abfd.offset_to_pc(to + offset)); u32 count = p_it.first.count(); if (count != p_it.first.count()) { count = (u32)-1; cerr << "Warning: capping sample count by " << p_it.first.count() - count << endl; } op_write_u32(fp, p_it.first.count()); } } void output_gprof(op_bfd const & abfd, profile_container const & samples, profile_t const & cg_db, string const & gmon_filename) { static gmon_hdr hdr = { { 'g', 'm', 'o', 'n' }, GMON_VERSION, {0, 0, 0 } }; bfd_vma low_pc; bfd_vma high_pc; /* FIXME worth to try more multiplier ? */ int multiplier = 2; if (aligned_samples(samples, 4)) multiplier = 8; cverb << vdebug << "opgrof multiplier: " << multiplier << endl; get_vma_range(low_pc, high_pc, samples); cverb << vdebug << "low_pc: " << hex << low_pc << " " << "high_pc: " << high_pc << dec << endl; // round-down low_pc to ensure bin number is correct in the inner loop low_pc = (low_pc / multiplier) * multiplier; // round-up high_pc to ensure a correct histsize calculus high_pc = ((high_pc + multiplier - 1) / multiplier) * multiplier; cverb << vdebug << "low_pc: " << hex << low_pc << " " << "high_pc: " << high_pc << dec << endl; size_t histsize = (high_pc - low_pc) / multiplier; // FIXME: must we skip the flat profile write if histsize == 0 ? // (this can occur with callgraph w/o samples to the binary) but in // this case user must gprof --no-flat-profile which is a bit boring // and result *seems* weirds. FILE * fp = op_open_file(gmon_filename.c_str(), "w"); op_write_file(fp, &hdr, sizeof(gmon_hdr)); op_write_u8(fp, GMON_TAG_TIME_HIST); op_write_vma(fp, abfd, low_pc); op_write_vma(fp, abfd, high_pc); /* size of histogram */ op_write_u32(fp, histsize); /* profiling rate */ op_write_u32(fp, 1); op_write_file(fp, "samples\0\0\0\0\0\0\0\0", 15); /* abbreviation */ op_write_u8(fp, '1'); u16 * hist = (u16*)xcalloc(histsize, sizeof(u16)); profile_container::symbol_choice choice; choice.threshold = options::threshold; symbol_collection symbols = samples.select_symbols(choice); symbol_collection::const_iterator sit = symbols.begin(); symbol_collection::const_iterator send = symbols.end(); for (; sit != send; ++sit) { sample_container::samples_iterator it = samples.begin(*sit); sample_container::samples_iterator end = samples.end(*sit); for (; it != end ; ++it) { u32 pos = (it->second.vma - low_pc) / multiplier; count_type count = it->second.counts[0]; if (pos >= histsize) { cerr << "Bogus histogram bin " << pos << ", larger than " << pos << " !\n"; continue; } if (hist[pos] + count > (u16)-1) { hist[pos] = (u16)-1; cerr << "Warning: capping sample count by " << hist[pos] + count - ((u16)-1) << endl; } else { hist[pos] += (u16)count; } } } op_write_file(fp, hist, histsize * sizeof(u16)); if (!cg_db.empty()) output_cg(fp, abfd, cg_db); op_close_file(fp); free(hist); } void load_samples(op_bfd const & abfd, list const & files, string const & image, profile_container & samples) { list::const_iterator it = files.begin(); list::const_iterator const end = files.end(); for (; it != end; ++it) { // we can get call graph w/o any samples to the binary if (it->sample_filename.empty()) continue; cverb << vsfile << "loading flat samples files : " << it->sample_filename << endl; profile_t profile; profile.add_sample_file(it->sample_filename); profile.set_offset(abfd); check_mtime(abfd.get_filename(), profile.get_header()); samples.add(profile, abfd, image, 0); } } void load_cg(profile_t & cg_db, list const & files) { list::const_iterator it = files.begin(); list::const_iterator const end = files.end(); /* the list of non cg files is a super set of the list of cg file * (module always log a samples to non-cg files before logging * call stack) so by using the list of non-cg file we are sure to get * all existing cg files. */ for (; it != end; ++it) { list::const_iterator cit; list::const_iterator const cend = it->cg_files.end(); for (cit = it->cg_files.begin(); cit != cend; ++cit) { // FIXME: do we need filtering ? /* We can't handle start_offset now but after splitting * data in from/to eip. */ cverb << vsfile << "loading cg samples file : " << *cit << endl; cg_db.add_sample_file(*cit); } } } int opgprof(options::spec const & spec) { handle_options(spec); profile_container samples(false, true, classes.extra_found_images); bool ok = image_profile.error == image_ok; // FIXME: symbol_filter would be allowed through option op_bfd abfd(image_profile.image, string_filter(), classes.extra_found_images, ok); if (!ok && image_profile.error == image_ok) image_profile.error = image_format_failure; if (image_profile.error != image_ok) { report_image_error(image_profile, true, classes.extra_found_images); exit(EXIT_FAILURE); } profile_t cg_db; image_group_set const & groups = image_profile.groups[0]; image_group_set::const_iterator it; for (it = groups.begin(); it != groups.end(); ++it) { load_samples(abfd, it->files, image_profile.image, samples); load_cg(cg_db, it->files); } output_gprof(abfd, samples, cg_db, options::gmon_filename); return 0; } } // anonymous namespace int main(int argc, char const * argv[]) { return run_pp_tool(argc, argv, opgprof); } oprofile-0.9.9/pp/opannotate_options.h0000664000076400007640000000201312175510132015007 00000000000000/** * @file opannotate_options.h * Options for opannotate tool * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef OPANNOTATE_OPTIONS_H #define OPANNOTATE_OPTIONS_H #include #include #include "common_option.h" #include "path_filter.h" class profile_classes; namespace options { extern demangle_type demangle; extern bool source; extern bool assembly; extern string_filter symbol_filter; extern path_filter file_filter; extern std::string output_dir; extern std::vector search_dirs; extern std::vector base_dirs; extern std::vector objdump_params; extern double threshold; } /// classes of sample filenames to handle extern profile_classes classes; /** * handle_options - process command line * @param spec profile specification * * Process the spec, fatally complaining on error. */ void handle_options(options::spec const & spec); #endif // OPANNOTATE_OPTIONS_H oprofile-0.9.9/pp/Makefile.in0000664000076400007640000005026412175510234012776 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ bin_PROGRAMS = opreport$(EXEEXT) opannotate$(EXEEXT) opgprof$(EXEEXT) \ oparchive$(EXEEXT) subdir = pp DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am__objects_1 = common_option.$(OBJEXT) am_opannotate_OBJECTS = opannotate.$(OBJEXT) \ opannotate_options.$(OBJEXT) $(am__objects_1) opannotate_OBJECTS = $(am_opannotate_OBJECTS) opannotate_DEPENDENCIES = $(common_libs) am_oparchive_OBJECTS = oparchive.$(OBJEXT) oparchive_options.$(OBJEXT) \ $(am__objects_1) oparchive_OBJECTS = $(am_oparchive_OBJECTS) oparchive_DEPENDENCIES = $(common_libs) am_opgprof_OBJECTS = opgprof.$(OBJEXT) opgprof_options.$(OBJEXT) \ $(am__objects_1) opgprof_OBJECTS = $(am_opgprof_OBJECTS) opgprof_DEPENDENCIES = $(common_libs) am_opreport_OBJECTS = opreport.$(OBJEXT) opreport_options.$(OBJEXT) \ $(am__objects_1) opreport_OBJECTS = $(am_opreport_OBJECTS) opreport_DEPENDENCIES = $(common_libs) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(opannotate_SOURCES) $(oparchive_SOURCES) \ $(opgprof_SOURCES) $(opreport_SOURCES) DIST_SOURCES = $(opannotate_SOURCES) $(oparchive_SOURCES) \ $(opgprof_SOURCES) $(opreport_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @POPT_LIBS@ @BFD_LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ AM_CPPFLAGS = \ -I ${top_srcdir}/libop \ -I ${top_srcdir}/libutil \ -I ${top_srcdir}/libdb \ -I ${top_srcdir}/libopt++ \ -I ${top_srcdir}/libutil++ \ -I ${top_srcdir}/libregex \ -I ${top_srcdir}/libpp \ @OP_CPPFLAGS@ AM_CXXFLAGS = @OP_CXXFLAGS@ AM_LDFLAGS = @OP_LDFLAGS@ pp_common = common_option.cpp common_option.h common_libs = \ ../libpp/libpp.a \ ../libopt++/libopt++.a \ ../libregex/libop_regex.a \ ../libutil++/libutil++.a \ ../libop/libop.a \ ../libutil/libutil.a \ ../libdb/libodb.a opreport_SOURCES = opreport.cpp \ opreport_options.h opreport_options.cpp \ $(pp_common) opreport_LDADD = $(common_libs) opannotate_SOURCES = opannotate.cpp \ opannotate_options.h opannotate_options.cpp \ $(pp_common) opannotate_LDADD = $(common_libs) opgprof_SOURCES = opgprof.cpp \ opgprof_options.h opgprof_options.cpp \ $(pp_common) opgprof_LDADD = $(common_libs) oparchive_SOURCES = oparchive.cpp \ oparchive_options.h oparchive_options.cpp \ $(pp_common) oparchive_LDADD = $(common_libs) all: all-am .SUFFIXES: .SUFFIXES: .cpp .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign pp/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign pp/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p || test -f $$p1; \ then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list opannotate$(EXEEXT): $(opannotate_OBJECTS) $(opannotate_DEPENDENCIES) @rm -f opannotate$(EXEEXT) $(CXXLINK) $(opannotate_OBJECTS) $(opannotate_LDADD) $(LIBS) oparchive$(EXEEXT): $(oparchive_OBJECTS) $(oparchive_DEPENDENCIES) @rm -f oparchive$(EXEEXT) $(CXXLINK) $(oparchive_OBJECTS) $(oparchive_LDADD) $(LIBS) opgprof$(EXEEXT): $(opgprof_OBJECTS) $(opgprof_DEPENDENCIES) @rm -f opgprof$(EXEEXT) $(CXXLINK) $(opgprof_OBJECTS) $(opgprof_LDADD) $(LIBS) opreport$(EXEEXT): $(opreport_OBJECTS) $(opreport_DEPENDENCIES) @rm -f opreport$(EXEEXT) $(CXXLINK) $(opreport_OBJECTS) $(opreport_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/common_option.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/opannotate.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/opannotate_options.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/oparchive.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/oparchive_options.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/opgprof.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/opgprof_options.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/opreport.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/opreport_options.Po@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic clean-libtool ctags distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-binPROGRAMS install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am \ uninstall-binPROGRAMS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/pp/opreport_options.h0000664000076400007640000000233112175510132014514 00000000000000/** * @file opreport_options.h * Options for opreport tool * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef OPREPORT_OPTIONS_H #define OPREPORT_OPTIONS_H #include #include #include #include "common_option.h" #include "string_filter.h" #include "symbol_sort.h" class profile_classes; class merge_option; namespace options { extern demangle_type demangle; extern bool symbols; extern bool callgraph; extern bool debug_info; extern bool details; extern bool reverse_sort; extern bool exclude_dependent; extern sort_options sort_by; extern merge_option merge_by; extern bool global_percent; extern bool long_filenames; extern bool show_address; extern string_filter symbol_filter; extern bool show_header; extern bool accumulated; extern bool xml; extern std::string xml_options; } /// All the chosen sample files. extern profile_classes classes; extern profile_classes classes2; /** * handle_options - process command line * @param spec profile specification * * Process the spec, fatally complaining on error. */ void handle_options(options::spec const & spec); #endif // OPREPORT_OPTIONS_H oprofile-0.9.9/pp/opannotate.cpp0000664000076400007640000005373012175510132013603 00000000000000/** * @file opannotate.cpp * Implement opannotate utility * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include #include #include #include #include #include #include "op_exception.h" #include "op_header.h" #include "profile.h" #include "populate.h" #include "op_sample_file.h" #include "cverb.h" #include "string_manip.h" #include "demangle_symbol.h" #include "child_reader.h" #include "op_file.h" #include "file_manip.h" #include "arrange_profiles.h" #include "opannotate_options.h" #include "profile_container.h" #include "symbol_sort.h" #include "image_errors.h" using namespace std; using namespace options; namespace { size_t nr_events; scoped_ptr samples; /// how opannotate was invoked string cmdline; /// empty annotation fill string string annotation_fill; /// string used as start / end comment to annotate source string const begin_comment("/* "); string const in_comment(" * "); string const end_comment(" */"); /// field width for the sample count unsigned int const count_width = 6; string get_annotation_fill() { string str; for (size_t i = 0; i < nr_events; ++i) { str += string(count_width, ' ') + ' '; str += string(percent_width, ' '); } for (size_t i = 1; i < nr_events; ++i) str += " "; str += " :"; return str; } symbol_entry const * find_symbol(string const & image_name, string const & str_vma, bfd_vma vma_adj) { // do not use the bfd equivalent: // - it does not skip space at begin // - we does not need cross architecture compile so the native // strtoull must work, assuming unsigned long long can contain a vma // and on 32/64 bits box bfd_vma is 64 bits bfd_vma vma = strtoull(str_vma.c_str(), NULL, 16) - vma_adj; return samples->find_symbol(image_name, vma); } void output_info(ostream & out) { out << begin_comment << '\n'; out << in_comment << "Command line: " << cmdline << '\n' << in_comment << '\n'; out << in_comment << "Interpretation of command line:" << '\n'; if (!assembly) { out << in_comment << "Output annotated source file with samples" << '\n'; if (options::threshold != 0) { out << in_comment << "Output files where samples count reach " << options::threshold << "% of the samples\n"; } else { out << in_comment << "Output all files" << '\n'; } } else { out << in_comment << "Output annotated assembly listing with samples" << '\n'; if (!objdump_params.empty()) { out << in_comment << "Passing the following " "additional arguments to objdump ; \""; for (size_t i = 0 ; i < objdump_params.size() ; ++i) out << objdump_params[i] << " "; out << "\"" << '\n'; } } out << in_comment << '\n'; out << in_comment << classes.cpuinfo << endl; if (!classes.event.empty()) out << in_comment << classes.event << endl; for (size_t i = 0; i < classes.v.size(); ++i) out << in_comment << classes.v[i].longname << endl; out << end_comment << '\n'; } string count_str(count_array_t const & count, count_array_t const & total) { ostringstream os; for (size_t i = 0; i < nr_events; ++i) { os << setw(count_width) << count[i] << ' '; os << format_percent(op_ratio(count[i], total[i]) * 100.0, percent_int_width, percent_fract_width); } return os.str(); } /// NOTE: This function annotates a list containing output from objdump. /// It uses a list iterator, and a sample_container iterator which iterates /// from the beginning to the end, and compare sample address /// against the instruction address on the asm line. /// /// There are 2 cases of annotation: /// 1. If sample address matches current line address, annotate the current line. /// 2. If (previous line address < sample address < current line address), /// then we annotate previous line. This case happens when sample address /// is not aligned with the instruction address, which is seen when profile /// using the instruction fetch mode of AMD Instruction-Based Sampling (IBS). /// int asm_list_annotation(symbol_entry const * last_symbol, bfd_vma last_symbol_vma, list::iterator sit, sample_container::samples_iterator & samp_it, list & asm_lines, bfd_vma vma_adj) { int ret = 0; sample_entry const * sample = NULL; if (samp_it != samples->end()) sample = &samp_it->second; // do not use the bfd equivalent: // - it does not skip space at begin // - we does not need cross architecture compile so the native // strtoull must work, assuming unsigned long long can contain a vma // and on 32/64 bits box bfd_vma is 64 bits // gcc 2.91.66 workaround bfd_vma vma = strtoull((*sit).c_str(), NULL, 16) - vma_adj; if (sample && ((sample->vma < last_symbol_vma) || (sample->vma > vma))) { *sit = annotation_fill + *sit; } else if (sample && sample->vma == vma) { // Case 1 : Sample address match current line address. string str = count_str(sample->counts, samples->samples_count()); // For each events for (size_t i = 1; i < nr_events; ++i) str += " "; *sit = str + " :" + *sit; if (samp_it != samples->end()) ++samp_it; } else if (sample && sample->vma < vma) { // Case 2 : vma of the current line is greater than vma of the sample // Get the string of previous assembly line list::iterator sit_prev = sit; string prev_line, prev_vma_str; string::size_type loc1 = string::npos, loc2 = string::npos; while (sit_prev != asm_lines.begin()) { --sit_prev; prev_line = *sit_prev; loc1 = prev_line.find(":", 0); if (loc1 != string::npos) { loc2 = prev_line.find(":", loc1+1); if (loc2 != string::npos) { prev_vma_str = prev_line.substr(loc1+1, loc2); break; } } } bfd_vma prev_vma = strtoull(prev_vma_str.c_str(), NULL, 16); // Need to check if prev_vma < sample->vma if (prev_vma != 0 && prev_vma < sample->vma) { string str; // Get sample for previous line. sample_entry * prev_sample = (sample_entry *)samples-> find_sample(last_symbol, prev_vma); if (prev_sample) { // Aggregate sample with previous line if it already has samples prev_sample->counts += sample->counts; str = count_str(prev_sample->counts, samples->samples_count()); } else { str = count_str(sample->counts, samples->samples_count()); } // For each events for (size_t i = 1; i < nr_events; ++i) str += " "; *sit_prev = str + " :" + prev_line.substr(loc1+1); if (samp_it != samples->end()) ++samp_it; ret = -1; } else { // Failed to annotate the previous line. Skip sample. *sit = annotation_fill + *sit; if (samp_it != samples->end()) ++samp_it; } } else { // In case sample is NULL *sit = annotation_fill + *sit; } return ret; } string symbol_annotation(symbol_entry const * symbol) { if (!symbol) return string(); string annot = count_str(symbol->sample.counts, samples->samples_count()); string const & symname = symbol_names.demangle(symbol->name); string str = " "; str += begin_comment + symname + " total: "; str += count_str(symbol->sample.counts, samples->samples_count()); str += end_comment; return str; } /// return true if this line contains a symbol name in objdump formatting /// symbol are on the form 08030434 : we need to be strict /// here to avoid any interpretation of a source line as a symbol line bool is_symbol_line(string const & str, string::size_type pos) { if (str[pos] != ' ' || str[pos + 1] != '<') return false; return str[str.length() - 1] == ':'; } void annotate_objdump_str_list(string const & app_name, symbol_collection const & symbols, list & asm_lines) { symbol_entry const * last_symbol = 0; bfd_vma last_symbol_vma = 0; bfd_vma vma_adj; int ret = 0; // to filter output of symbols (filter based on command line options) bool do_output = true; vma_adj = symbols[0]->vma_adj; // We simultaneously walk the two structures (list and sample_container) // which are sorted by address. and do address comparision. list::iterator sit = asm_lines.begin(); list::iterator send = asm_lines.end(); sample_container::samples_iterator samp_it = samples->begin(); for (; sit != send; (!ret? sit++: sit)) { // output of objdump is a human readable form and can contain some // ambiguity so this code is dirty. It is also optimized a little bit // so it is difficult to simplify it without breaking something ... // line of interest are: "[:space:]*[:xdigit:]?[ :]", the last char of // this regexp dis-ambiguate between a symbol line and an asm line. If // source contain line of this form an ambiguity occur and we rely on // the robustness of this code. string str = *sit; size_t pos = 0; while (pos < str.length() && isspace(str[pos])) ++pos; if (pos == str.length() || !isxdigit(str[pos])) { if (do_output) { *sit = annotation_fill + str; continue; } } while (pos < str.length() && isxdigit(str[pos])) ++pos; if (pos == str.length() || (!isspace(str[pos]) && str[pos] != ':')) { if (do_output) { *sit = annotation_fill + str; continue; } } if (is_symbol_line(str, pos)) { last_symbol = find_symbol(app_name, str, vma_adj); last_symbol_vma = strtoull(str.c_str(), NULL, 16) - vma_adj; // ! complexity: linear in number of symbol must use sorted // by address vector and lower_bound ? // Note this use a pointer comparison. It work because symbols // pointer are unique if (find(symbols.begin(), symbols.end(), last_symbol) != symbols.end()) do_output = true; else do_output = false; if (do_output) { *sit += symbol_annotation(last_symbol); // Realign the sample iterator to // the beginning of this symbols samp_it = samples->begin(last_symbol); } } else { // not a symbol, probably an asm line. if (do_output) ret = asm_list_annotation(last_symbol, last_symbol_vma, sit, samp_it, asm_lines, vma_adj); } if (!do_output) *sit = ""; } } void output_objdump_str_list(symbol_collection const & symbols, string const & app_name, list & asm_lines) { annotate_objdump_str_list(app_name, symbols, asm_lines); // Printing objdump output to stdout list::iterator sit = asm_lines.begin(); list::iterator send = asm_lines.end(); sit = asm_lines.begin(); for (; sit != send; ++sit) { string str = *sit; if (str.length() != 0) cout << str << '\n'; } } void do_one_output_objdump(symbol_collection const & symbols, string const & image_name, string const & app_name, bfd_vma start, bfd_vma end) { vector args; list asm_lines; args.push_back("-d"); args.push_back("--no-show-raw-insn"); if (source) args.push_back("-S"); if (start || end != ~(bfd_vma)0) { ostringstream arg1, arg2; arg1 << "--start-address=" << start; arg2 << "--stop-address=" << end; args.push_back(arg1.str()); args.push_back(arg2.str()); } if (!objdump_params.empty()) { for (size_t i = 0 ; i < objdump_params.size() ; ++i) args.push_back(objdump_params[i]); } args.push_back(image_name); child_reader reader("objdump", args); if (reader.error()) { cerr << "An error occur during the execution of objdump:\n\n"; cerr << reader.error_str() << endl; return; } // Read each output line from objdump and store in a list. string str; while (reader.getline(str)) asm_lines.push_back(str); output_objdump_str_list(symbols, app_name, asm_lines); // objdump always returns SUCCESS so we must rely on the stderr state // of objdump. If objdump error message is cryptic our own error // message will be probably also cryptic ostringstream std_err; ostringstream std_out; reader.get_data(std_out, std_err); if (std_err.str().length()) { cerr << "An error occur during the execution of objdump:\n\n"; cerr << std_err.str() << endl; return ; } // force error code to be acquired reader.terminate_process(); // required because if objdump stop by signal all above things suceeed // (signal error message are not output through stdout/stderr) if (reader.error()) { cerr << "An error occur during the execution of objdump:\n\n"; cerr << reader.error_str() << endl; return; } } void output_objdump_asm(symbol_collection const & symbols, string const & app_name) { image_error error; string image = classes.extra_found_images.find_image_path(app_name, error, true); // this is only an optimisation, we can either filter output by // directly calling objdump and rely on the symbol filtering or // we can call objdump with the right parameter to just disassemble // the needed part. This is a real win only when calling objdump // a medium number of times, I dunno if the used threshold is optimal // but it is a conservative value. size_t const max_objdump_exec = 50; if (symbols.size() <= max_objdump_exec || error != image_ok) { symbol_collection::const_iterator cit = symbols.begin(); symbol_collection::const_iterator end = symbols.end(); for (; cit != end; ++cit) { bfd_vma start = (*cit)->sample.vma; bfd_vma end = start + (*cit)->size; do_one_output_objdump(symbols, image, app_name, start, end); } } else { do_one_output_objdump(symbols, image, app_name, 0, ~bfd_vma(0)); } } bool output_asm(string const & app_name) { profile_container::symbol_choice choice; choice.threshold = options::threshold; choice.image_name = app_name; choice.match_image = true; symbol_collection symbols = samples->select_symbols(choice); if (!symbols.empty()) { sort_options options; options.add_sort_option(sort_options::sample); options.sort(symbols, false, false); output_info(cout); output_objdump_asm(symbols, app_name); return true; } return false; } string const source_line_annotation(debug_name_id filename, size_t linenr) { string str; count_array_t counts = samples->samples_count(filename, linenr); if (!counts.zero()) { str += count_str(counts, samples->samples_count()); for (size_t i = 1; i < nr_events; ++i) str += " "; str += " :"; } else { str = annotation_fill; } return str; } string source_symbol_annotation(debug_name_id filename, size_t linenr) { symbol_collection const symbols = samples->find_symbol(filename, linenr); if (symbols.empty()) return string(); string str = " " + begin_comment; count_array_t counts; for (size_t i = 0; i < symbols.size(); ++i) { str += symbol_names.demangle(symbols[i]->name); if (symbols.size() == 1) str += " total: "; else str += " "; str += count_str(symbols[i]->sample.counts, samples->samples_count()); if (symbols.size() != 1) str += ", "; counts += symbols[i]->sample.counts; } if (symbols.size() > 1) str += "total: " + count_str(counts, samples->samples_count()); str += end_comment; return str; } void output_per_file_info(ostream & out, debug_name_id filename, count_array_t const & total_file_count) { out << begin_comment << '\n' << in_comment << "Total samples for file : " << '"' << debug_names.name(filename) << '"' << '\n'; out << in_comment << '\n' << in_comment << count_str(total_file_count, samples->samples_count()) << '\n'; out << end_comment << '\n' << '\n'; } string const line0_info(debug_name_id filename) { string annotation = source_line_annotation(filename, 0); if (trim(annotation, " \t:").empty()) return string(); string str = " "; str += annotation; return str; } void do_output_one_file(ostream & out, istream & in, debug_name_id filename, bool header) { count_array_t count = samples->samples_count(filename); if (header) { output_per_file_info(out, filename, count); out << line0_info(filename) << '\n'; } if (in) { string str; for (size_t linenr = 1 ; getline(in, str) ; ++linenr) { out << source_line_annotation(filename, linenr) << str << source_symbol_annotation(filename, linenr) << '\n'; } } else { // source is not available but we can at least output all the // symbols belonging to this file. This make more visible the // problem of having less samples for a given file than the // sum of all symbols samples for this file due to inlining symbol_collection const symbols = samples->select_symbols(filename); for (size_t i = 0; i < symbols.size(); ++i) out << symbol_annotation(symbols[i]) << endl; } if (!header) { output_per_file_info(out, filename, count); out << line0_info(filename) << '\n'; } } void output_one_file(istream & in, debug_name_id filename, string const & source) { if (output_dir.empty()) { do_output_one_file(cout, in, filename, true); return; } string const out_file = op_realpath(output_dir + source); /* Just because you're paranoid doesn't mean they're not out to * get you ... * * This is just a lame final safety check. If we found the * source, then "source" should be canonical already, and * can't escape from the output dir. We can't use op_realpath() * alone as that needs the file to exist already. * * Let's not complain again if we couldn't find the file anyway. */ if (out_file.find("/../") != string::npos) { if (in) { cerr << "refusing to create non-canonical filename " << out_file << endl; } return; } else if (!is_prefix(out_file, output_dir)) { if (in) { cerr << "refusing to create file " << out_file << " outside of output directory " << output_dir << endl; } return; } if (is_files_identical(out_file, source)) { cerr << "input and output files are identical: " << out_file << endl; return; } if (create_path(out_file.c_str())) { cerr << "unable to create file: " << '"' << op_dirname(out_file) << '"' << endl; return; } ofstream out(out_file.c_str()); if (!out) { cerr << "unable to open output file " << '"' << out_file << '"' << endl; } else { do_output_one_file(out, in, filename, false); output_info(out); } } /* Locate a source file from debug info, which may be relative */ string const locate_source_file(debug_name_id filename_id) { string const origfile = debug_names.name(filename_id); string file = origfile; if (file.empty()) return file; /* Allow absolute paths to be relocated to a different directory */ if (file[0] == '/') { vector::const_iterator cit = base_dirs.begin(); vector::const_iterator end = base_dirs.end(); for (; cit != end; ++cit) { string path = op_realpath(*cit); if (is_prefix(file, path)) { file = file.substr(path.length()); break; } } } vector::const_iterator cit = search_dirs.begin(); vector::const_iterator end = search_dirs.end(); for (; cit != end; ++cit) { string const absfile = op_realpath(*cit + "/" + file); if (op_file_readable(absfile)) return absfile; } /* We didn't find a relocated absolute file, or a relative file, * assume the original is correct, accounting for the * possibility it's relative the cwd */ return op_realpath(origfile); } void output_source(path_filter const & filter) { bool const separate_file = !output_dir.empty(); if (!separate_file) output_info(cout); vector filenames = samples->select_filename(options::threshold); for (size_t i = 0 ; i < filenames.size() ; ++i) { string const & source = locate_source_file(filenames[i]); if (!filter.match(source)) continue; ifstream in(source.c_str()); // it is common to have empty filename due to the lack // of debug info (eg _init function) so warn only // if the filename is non empty. The case: no debug // info at all has already been checked. if (!in && source.length()) { cerr << "opannotate (warning): unable to open for " "reading: " << source << endl; } if (source.length()) output_one_file(in, filenames[i], source); } } bool annotate_source(list const & images) { annotation_fill = get_annotation_fill(); if (!output_dir.empty()) { if (create_path(output_dir.c_str())) { cerr << "unable to create " << output_dir << " directory: " << endl; return false; } // Make sure we have an absolute path. output_dir = op_realpath(output_dir); if (output_dir.length() && output_dir[output_dir.length() - 1] != '/') output_dir += '/'; /* Don't let the user stomp on their sources */ if (output_dir == "/") { cerr << "Output path of / would over-write the " "source files" << endl; return false; } } if (assembly) { bool some_output = false; list::const_iterator it = images.begin(); list::const_iterator const end = images.end(); for (; it != end; ++it) { if (output_asm(*it)) some_output = true; } if (!some_output) { // It's the only case we must care since we know the // selected image set is not empty cerr << "selected image set doesn't contain any of " << "the selected symbol\n"; } } else { output_source(file_filter); } return true; } int opannotate(options::spec const & spec) { handle_options(spec); nr_events = classes.v.size(); samples.reset(new profile_container(true, true, classes.extra_found_images)); list images; list iprofiles = invert_profiles(classes); report_image_errors(iprofiles, classes.extra_found_images); list::iterator it = iprofiles.begin(); list::iterator const end = iprofiles.end(); bool debug_info = false; for (; it != end; ++it) { bool tmp = false; populate_for_image(*samples, *it, options::symbol_filter, &tmp); images.push_back(it->image); if (tmp) debug_info = true; } if (!debug_info && !options::assembly) { cerr << "opannotate (warning): no debug information available for any binary " << "selected, and --assembly not requested.\n"; } annotate_source(images); return 0; } } // anonymous namespace int main(int argc, char const * argv[]) { // set the invocation, for the file headers later for (int i = 0 ; i < argc ; ++i) cmdline += string(argv[i]) + " "; return run_pp_tool(argc, argv, opannotate); } oprofile-0.9.9/pp/opreport.cpp0000664000076400007640000003465412175510132013311 00000000000000/** * @file opreport.cpp * Implement opreport utility * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include #include #include #include #include #include #include "op_exception.h" #include "stream_util.h" #include "string_manip.h" #include "file_manip.h" #include "opreport_options.h" #include "op_header.h" #include "profile.h" #include "populate.h" #include "arrange_profiles.h" #include "profile_container.h" #include "callgraph_container.h" #include "diff_container.h" #include "symbol_sort.h" #include "format_output.h" #include "xml_utils.h" #include "image_errors.h" using namespace std; namespace { static size_t nr_classes; /// storage for a merged file summary struct summary { count_array_t counts; string lib_image; bool operator<(summary const & rhs) const { return options::reverse_sort ? counts[0] < rhs.counts[0] : rhs.counts[0] < counts[0]; } /// add a set of files to a summary count_type add_files(list const & files, size_t pclass); }; count_type summary:: add_files(list const & files, size_t pclass) { count_type subtotal = 0; list::const_iterator it = files.begin(); list::const_iterator const end = files.end(); for (; it != end; ++it) { count_type count = profile_t::sample_count(it->sample_filename); counts[pclass] += count; subtotal += count; if (!it->cg_files.empty()) { throw op_runtime_error("opreport.cpp::add_files(): " "unxpected non empty cg file set"); } } return subtotal; } /** * Summary of an application: a set of image summaries * for one application, i.e. an application image and all * dependent images such as libraries. */ struct app_summary { /// total count of us and all dependents count_array_t counts; /// the main image string image; /// our dependent images vector deps; /// construct and fill in the data count_type add_profile(profile_set const & profile, size_t pclass); bool operator<(app_summary const & rhs) const { return options::reverse_sort ? counts[0] < rhs.counts[0] : rhs.counts[0] < counts[0]; } private: /// find a matching summary (including main app summary) summary & find_summary(string const & image); }; summary & app_summary::find_summary(string const & image) { vector::iterator sit = deps.begin(); vector::iterator const send = deps.end(); for (; sit != send; ++sit) { if (sit->lib_image == image) return *sit; } summary summ; summ.lib_image = image; deps.push_back(summ); return deps.back(); } count_type app_summary::add_profile(profile_set const & profile, size_t pclass) { count_type group_total = 0; // first the main image summary & summ = find_summary(profile.image); count_type app_count = summ.add_files(profile.files, pclass); counts[pclass] += app_count; group_total += app_count; // now all dependent images if any list::const_iterator it = profile.deps.begin(); list::const_iterator const end = profile.deps.end(); for (; it != end; ++it) { summary & summ = find_summary(it->lib_image); count_type lib_count = summ.add_files(it->files, pclass); counts[pclass] += lib_count; group_total += lib_count; } return group_total; } /// all the summaries struct summary_container { summary_container(vector const & pclasses); /// all map summaries vector apps; /// total count of samples for all summaries count_array_t total_counts; }; summary_container:: summary_container(vector const & pclasses) { typedef map app_map_t; app_map_t app_map; for (size_t i = 0; i < pclasses.size(); ++i) { list::const_iterator it = pclasses[i].profiles.begin(); list::const_iterator const end = pclasses[i].profiles.end(); for (; it != end; ++it) { app_map_t::iterator ait = app_map.find(it->image); if (ait == app_map.end()) { app_summary app; app.image = it->image; total_counts[i] += app.add_profile(*it, i); app_map[app.image] = app; } else { total_counts[i] += ait->second.add_profile(*it, i); } } } app_map_t::const_iterator it = app_map.begin(); app_map_t::const_iterator const end = app_map.end(); for (; it != end; ++it) apps.push_back(it->second); // sort by count stable_sort(apps.begin(), apps.end()); vector::iterator ait = apps.begin(); vector::iterator const aend = apps.end(); for (; ait != aend; ++ait) stable_sort(ait->deps.begin(), ait->deps.end()); } void output_header() { if (!options::show_header) return; cout << classes.cpuinfo << endl; if (!classes.event.empty()) cout << classes.event << endl; for (vector::size_type i = 0; i < classes.v.size(); ++i) { cout << classes.v[i].longname << endl; } } string get_filename(string const & filename) { return options::long_filenames ? filename : op_basename(filename); } /// Output a count and a percentage void output_count(count_type total_count, count_type count) { cout << setw(9) << count << ' '; double ratio = op_ratio(count, total_count); cout << format_percent(ratio * 100, percent_int_width, percent_fract_width) << ' '; } void output_col_headers(bool indent) { if (!options::show_header) return; if (indent) cout << '\t'; size_t colwidth = 9 + 1 + percent_width; for (size_t i = 0; i < classes.v.size(); ++i) { string name = classes.v[i].name; if (name.length() > colwidth) name = name.substr(0, colwidth - 3) + "..."; io_state state(cout); // gcc 2.95 doesn't know right io manipulator cout.setf(ios::right, ios::adjustfield); // gcc 2.95 doesn't honor setw() for std::string cout << setw(colwidth) << name.c_str(); cout << '|'; } cout << '\n'; if (indent) cout << '\t'; for (size_t i = 0; i < classes.v.size(); ++i) { cout << " samples| "; io_state state(cout); // gcc 2.95 doesn't know right io manipulator cout.setf(ios::right, ios::adjustfield); cout << setw(percent_width) << "%|"; } cout << '\n'; if (indent) cout << '\t'; for (size_t i = 0; i < classes.v.size(); ++i) { cout << "-----------"; string str(percent_width, '-'); cout << str; } cout << '\n'; } void output_deps(summary_container const & summaries, app_summary const & app) { // the app summary itself is *always* present // (perhaps with zero counts) so this test // is correct if (app.deps.size() == 1) return; output_col_headers(true); for (size_t j = 0 ; j < app.deps.size(); ++j) { summary const & summ = app.deps[j]; if (summ.counts.zero()) continue; cout << '\t'; for (size_t i = 0; i < nr_classes; ++i) { count_type tot_count = options::global_percent ? summaries.total_counts[i] : app.counts[i]; output_count(tot_count, summ.counts[i]); } cout << get_filename(summ.lib_image); cout << '\n'; } } /** * Display all the given summary information */ void output_summaries(summary_container const & summaries) { output_col_headers(false); for (size_t i = 0; i < summaries.apps.size(); ++i) { app_summary const & app = summaries.apps[i]; double ratio = (!summaries.total_counts[0]) ? 0 : (app.counts[0] * 100.0)/ summaries.total_counts[0]; if (ratio < options::threshold) { continue; } for (size_t j = 0; j < nr_classes; ++j) output_count(summaries.total_counts[j], app.counts[j]); cout << get_filename(app.image) << '\n'; output_deps(summaries, app); } } format_flags get_format_flags(column_flags const & cf) { format_flags flags(ff_none); flags = format_flags(flags | ff_nr_samples); flags = format_flags(flags | ff_percent | ff_symb_name); if (options::show_address) flags = format_flags(flags | ff_vma); if (options::debug_info) flags = format_flags(flags | ff_linenr_info); if (options::accumulated) { flags = format_flags(flags | ff_nr_samples_cumulated); flags = format_flags(flags | ff_percent_cumulated); } if (classes2.v.size()) flags = format_flags(flags | ff_diff); if (cf & cf_image_name) flags = format_flags(flags | ff_image_name); return flags; } void output_symbols(profile_container const & pc, bool multiple_apps) { profile_container::symbol_choice choice; choice.threshold = options::threshold; symbol_collection symbols = pc.select_symbols(choice); options::sort_by.sort(symbols, options::reverse_sort, options::long_filenames); format_output::formatter * out; format_output::xml_formatter * xml_out = 0; format_output::opreport_formatter * text_out = 0; if (options::xml) { xml_out = new format_output::xml_formatter(&pc, symbols, pc.extra_found_images, options::symbol_filter); xml_out->show_details(options::details); out = xml_out; // for XML always output long filenames out->show_long_filenames(true); } else { text_out = new format_output::opreport_formatter(pc); text_out->show_details(options::details); out = text_out; out->show_long_filenames(options::long_filenames); } out->set_nr_classes(nr_classes); out->show_header(options::show_header); out->vma_format_64bit(choice.hints & cf_64bit_vma); out->show_global_percent(options::global_percent); format_flags flags = get_format_flags(choice.hints); if (multiple_apps) flags = format_flags(flags | ff_app_name); out->add_format(flags); if (options::xml) { xml_support = new xml_utils(xml_out, symbols, nr_classes, pc.extra_found_images); xml_out->output(cout); } else { text_out->output(cout, symbols); } } void output_diff_symbols(profile_container const & pc1, profile_container const & pc2, bool multiple_apps) { diff_container dc(pc1, pc2); profile_container::symbol_choice choice; choice.threshold = options::threshold; diff_collection symbols = dc.get_symbols(choice); format_flags flags = get_format_flags(choice.hints); if (multiple_apps) flags = format_flags(flags | ff_app_name); // With diff profile we output only filename coming from the first // profile session, internally we use only name derived from the sample // filename so image name can match. format_output::diff_formatter out(dc, pc1.extra_found_images); out.set_nr_classes(nr_classes); out.show_long_filenames(options::long_filenames); out.show_header(options::show_header); out.show_global_percent(options::global_percent); out.vma_format_64bit(choice.hints & cf_64bit_vma); out.add_format(flags); options::sort_by.sort(symbols, options::reverse_sort, options::long_filenames); out.output(cout, symbols); } void output_cg_symbols(callgraph_container const & cg, bool multiple_apps) { column_flags output_hints = cg.output_hint(); symbol_collection symbols = cg.get_symbols(); options::sort_by.sort(symbols, options::reverse_sort, options::long_filenames); format_output::formatter * out; format_output::xml_cg_formatter * xml_out = 0; format_output::cg_formatter * text_out = 0; if (options::xml) { xml_out = new format_output::xml_cg_formatter(cg, symbols, options::symbol_filter); xml_out->show_details(options::details); out = xml_out; // for XML always output long filenames out->show_long_filenames(true); } else { text_out = new format_output::cg_formatter(cg); out = text_out; out->show_long_filenames(options::long_filenames); } out->set_nr_classes(nr_classes); out->show_header(options::show_header); out->vma_format_64bit(output_hints & cf_64bit_vma); out->show_global_percent(options::global_percent); format_flags flags = get_format_flags(output_hints); if (multiple_apps) flags = format_flags(flags | ff_app_name); out->add_format(flags); if (options::xml) { xml_support = new xml_utils(xml_out, symbols, nr_classes, cg.extra_found_images); xml_out->output(cout); } else { text_out->output(cout, symbols); } } int opreport(options::spec const & spec) { want_xml = options::xml; handle_options(spec); nr_classes = classes.v.size(); if (!options::symbols && !options::xml) { summary_container summaries(classes.v); output_header(); output_summaries(summaries); return 0; } bool multiple_apps = false; for (size_t i = 0; i < classes.v.size(); ++i) { if (classes.v[i].profiles.size() > 1) multiple_apps = true; } list iprofiles = invert_profiles(classes); report_image_errors(iprofiles, classes.extra_found_images); if (options::xml) { xml_utils::output_xml_header(options::command_options, classes.cpuinfo, classes.event); } else { output_header(); } if (classes2.v.size()) { for (size_t i = 0; i < classes2.v.size(); ++i) { if (classes2.v[i].profiles.size() > 1) multiple_apps |= true; } profile_container pc1(options::debug_info, options::details, classes.extra_found_images); list::iterator it = iprofiles.begin(); list::iterator const end = iprofiles.end(); for (; it != end; ++it) populate_for_image(pc1, *it, options::symbol_filter, 0); list iprofiles2 = invert_profiles(classes2); report_image_errors(iprofiles2, classes2.extra_found_images); profile_container pc2(options::debug_info, options::details, classes2.extra_found_images); list::iterator it2 = iprofiles2.begin(); list::iterator const end2 = iprofiles2.end(); for (; it2 != end2; ++it2) populate_for_image(pc2, *it2, options::symbol_filter, 0); output_diff_symbols(pc1, pc2, multiple_apps); } else if (options::callgraph) { callgraph_container cg_container; cg_container.populate(iprofiles, classes.extra_found_images, options::debug_info, options::threshold, options::merge_by.lib, options::symbol_filter); output_cg_symbols(cg_container, multiple_apps); } else { profile_container samples(options::debug_info, options::details, classes.extra_found_images); list::iterator it = iprofiles.begin(); list::iterator const end = iprofiles.end(); for (; it != end; ++it) populate_for_image(samples, *it, options::symbol_filter, 0); output_symbols(samples, multiple_apps); } return 0; } } // anonymous namespace int main(int argc, char const * argv[]) { cout.tie(0); return run_pp_tool(argc, argv, opreport); } oprofile-0.9.9/pp/oparchive_options.h0000664000076400007640000000144212175510132014624 00000000000000/** * @file oparchive_options.h * Options for oparchive tool * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author Will Cohen * @author Philippe Elie */ #ifndef OPARCHIVE_OPTIONS_H #define OPARCHIVE_OPTIONS_H #include "common_option.h" class profile_classes; class merge_option; namespace options { extern bool exclude_dependent; extern merge_option merge_by; extern std::string outdirectory; extern bool list_files; } /// All the chosen sample files. extern profile_classes classes; extern std::list sample_files; /** * handle_options - process command line * @param spec profile specification * * Process the spec, fatally complaining on error. */ void handle_options(options::spec const & spec); #endif // OPARCHIVE_OPTIONS_H oprofile-0.9.9/pp/oparchive_options.cpp0000664000076400007640000000640512175510132015163 00000000000000/** * @file oparchive_options.cpp * Options for oparchive tool * * @remark Copyright 2002, 2003, 2004 OProfile authors * @remark Read the file COPYING * * @author William Cohen * @author Philippe Elie */ #include #include #include #include #include #include #include #include "op_config.h" #include "profile_spec.h" #include "arrange_profiles.h" #include "oparchive_options.h" #include "popt_options.h" #include "string_filter.h" #include "file_manip.h" #include "cverb.h" using namespace std; profile_classes classes; list sample_files; namespace options { demangle_type demangle = dmt_normal; bool exclude_dependent; merge_option merge_by; string outdirectory; bool list_files; } namespace { vector mergespec; popt::option options_array[] = { popt::option(options::outdirectory, "output-directory", 'o', "output to the given directory", "directory"), popt::option(options::exclude_dependent, "exclude-dependent", 'x', "exclude libs, kernel, and module samples for applications"), popt::option(options::list_files, "list-files", 'l', "just list the files necessary, don't produce the archive") }; /** * check incompatible or meaningless options * */ void check_options() { using namespace options; /* output directory is required */ if (!list_files) { if (outdirectory.size() == 0) { cerr << "Requires --output-directory option." << endl; exit(EXIT_FAILURE); } string realpath = op_realpath(outdirectory); if (realpath == "/") { cerr << "Invalid --output-directory: /" << endl; exit(EXIT_FAILURE); } } } } // anonymous namespace void handle_options(options::spec const & spec) { using namespace options; if (spec.first.size()) { cerr << "differential profiles not allowed" << endl; exit(EXIT_FAILURE); } // merging doesn't occur in oparchive but we must allow it to avoid // triggering sanity checking in arrange_profiles() merge_by.cpu = true; merge_by.lib = true; merge_by.tid = true; merge_by.tgid = true; merge_by.unitmask = true; check_options(); profile_spec const pspec = profile_spec::create(spec.common, image_path, root_path); if (!was_session_dir_supplied()) cerr << "Using " << op_samples_dir << " for session-dir" << endl; sample_files = pspec.generate_file_list(exclude_dependent, false); cverb << vsfile << "Matched sample files: " << sample_files.size() << endl; copy(sample_files.begin(), sample_files.end(), ostream_iterator(cverb << vsfile, "\n")); classes = arrange_profiles(sample_files, merge_by, pspec.extra_found_images); cverb << vsfile << "profile_classes:\n" << classes << endl; if (classes.v.empty()) { cerr << "error: no sample files found: profile specification " "too strict ?" << endl; exit(EXIT_FAILURE); } if (strncmp(op_session_dir, "/var/lib/oprofile", strlen("/var/lib/oprofile"))) cerr << "NOTE: The sample data in this archive is located at " << op_session_dir << endl << "instead of the standard location of /var/lib/oprofile. Hence, when using opreport" << endl << "and other post-processing tools on this archive, you must pass the following option:" << endl << "\t--session-dir=" << op_session_dir << endl; } oprofile-0.9.9/pp/Makefile.am0000664000076400007640000000211412175510132012751 00000000000000AM_CPPFLAGS = \ -I ${top_srcdir}/libop \ -I ${top_srcdir}/libutil \ -I ${top_srcdir}/libdb \ -I ${top_srcdir}/libopt++ \ -I ${top_srcdir}/libutil++ \ -I ${top_srcdir}/libregex \ -I ${top_srcdir}/libpp \ @OP_CPPFLAGS@ AM_CXXFLAGS = @OP_CXXFLAGS@ AM_LDFLAGS = @OP_LDFLAGS@ bin_PROGRAMS = opreport opannotate opgprof oparchive LIBS=@POPT_LIBS@ @BFD_LIBS@ pp_common = common_option.cpp common_option.h common_libs = \ ../libpp/libpp.a \ ../libopt++/libopt++.a \ ../libregex/libop_regex.a \ ../libutil++/libutil++.a \ ../libop/libop.a \ ../libutil/libutil.a \ ../libdb/libodb.a opreport_SOURCES = opreport.cpp \ opreport_options.h opreport_options.cpp \ $(pp_common) opreport_LDADD = $(common_libs) opannotate_SOURCES = opannotate.cpp \ opannotate_options.h opannotate_options.cpp \ $(pp_common) opannotate_LDADD = $(common_libs) opgprof_SOURCES = opgprof.cpp \ opgprof_options.h opgprof_options.cpp \ $(pp_common) opgprof_LDADD = $(common_libs) oparchive_SOURCES = oparchive.cpp \ oparchive_options.h oparchive_options.cpp \ $(pp_common) oparchive_LDADD = $(common_libs) oprofile-0.9.9/pp/common_option.cpp0000664000076400007640000001644612175510132014316 00000000000000/** * @file common_option.cpp * Contains common options and implementation of entry point of pp tools * and some miscelleaneous functions * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie */ #include #include #include #include #include #include "op_config.h" #include "locate_images.h" #include "op_exception.h" #include "popt_options.h" #include "cverb.h" #include "common_option.h" #include "file_manip.h" #include #include #include #include using namespace std; namespace options { double threshold = 0.0; string threshold_opt; string session_dir; string command_options; vector image_path; string root_path; } namespace { vector verbose_strings; popt::option common_options_array[] = { popt::option(verbose_strings, "verbose", 'V', // FIXME help string for verbose level "verbose output", "all,debug,bfd,level1,sfile,stats,xml"), popt::option(options::session_dir, "session-dir", '\0', "specify session path to hold samples database and session data (" OP_SESSION_DIR_DEFAULT ")", "path"), popt::option(options::image_path, "image-path", 'p', "comma-separated path to search missing binaries", "path"), popt::option(options::root_path, "root", 'R', "path to filesystem to search for missing binaries", "path"), }; int session_dir_supplied; double handle_threshold(string threshold) { double value = 0.0; if (threshold.length()) { istringstream ss(threshold); if (!(ss >> value)) { cerr << "illegal threshold value: " << threshold << " allowed range: [0-100]" << endl; exit(EXIT_FAILURE); } if (value < 0.0 || value > 100.0) { cerr << "illegal threshold value: " << threshold << " allowed range: [0-100]" << endl; exit(EXIT_FAILURE); } } cverb << vdebug << "threshold: " << value << endl;; return value; } vector pre_parse_spec(vector const & non_options) { vector result; for (size_t i = 0; i < non_options.size(); ++i) { if (non_options[i] == "{}") { result.push_back("{"); result.push_back("}"); } else { result.push_back(non_options[i]); } } return result; } options::spec const parse_spec(vector non_options) { bool in_first = false; bool in_second = false; bool first = false; bool second = false; options::spec pspec; non_options = pre_parse_spec(non_options); vector::const_iterator it = non_options.begin(); vector::const_iterator end = non_options.end(); for (; it != end; ++it) { if (*it == "{") { if (in_first || in_second || second) goto fail; if (first) { in_second = true; second = true; } else { in_first = true; first = true; } continue; } if (*it == "}") { if (in_first) { in_first = false; } else if (in_second) { in_second = false; } else { goto fail; } continue; } if (in_first) { pspec.first.push_back(*it); } else if (in_second) { pspec.second.push_back(*it); } else { pspec.common.push_back(*it); } } if (in_first || in_second || (first && !second)) goto fail; if (pspec.first.empty() && pspec.second.size()) goto fail; if (first && second) { pspec.first.insert(pspec.first.begin(), pspec.common.begin(), pspec.common.end()); pspec.second.insert(pspec.second.begin(), pspec.common.begin(), pspec.common.end()); } return pspec; fail: cerr << "invalid profile specification "; copy(non_options.begin(), non_options.end(), ostream_iterator(cerr, " ")); cerr << endl; exit(EXIT_FAILURE); } options::spec get_options(int argc, char const * argv[]) { vector non_options; popt::parse_options(argc, argv, non_options); // initialize paths in op_config.h if (options::session_dir.empty()) { char * cwd; struct stat sb; // If /oprofile_data exists (used by operf), we'll use that as session-dir cwd = new char[PATH_MAX]; options::session_dir = (getcwd(cwd, PATH_MAX) == NULL) ? "" : cwd; delete [] cwd; options::session_dir +="/oprofile_data"; if ((stat(options::session_dir.c_str(), &sb) < 0) || ((sb.st_mode & S_IFMT) != S_IFDIR)) { // Use the standard default session dir instead options::session_dir = "/var/lib/oprofile"; } session_dir_supplied = 0; } else { session_dir_supplied = 1; } init_op_config_dirs(options::session_dir.c_str()); if (!options::threshold_opt.empty()) options::threshold = handle_threshold(options::threshold_opt); if (!verbose::setup(verbose_strings)) { cerr << "unknown --verbose= options\n"; exit(EXIT_FAILURE); } // XML generator needs command line options for its header ostringstream str; for (int i = 1; i < argc; ++i) str << argv[i] << " "; options::command_options = str.str(); return parse_spec(non_options); } } // anon namespace int run_pp_tool(int argc, char const * argv[], pp_fct_run_t fct) { try { return fct(get_options(argc, argv)); } catch (op_runtime_error const & e) { cerr << argv[0] << " error: " << e.what() << endl; } catch (op_fatal_error const & e) { cerr << argv[0] << " error: " << e.what() << endl; } catch (op_exception const & e) { cerr << argv[0] << " error: " << e.what() << endl; } catch (invalid_argument const & e) { cerr << argv[0] << " error: " << e.what() << endl; } catch (exception const & e) { cerr << argv[0] << " error: " << e.what() << endl; } catch (...) { cerr << argv[0] << " unknown exception" << endl; } return EXIT_FAILURE; } demangle_type handle_demangle_option(string const & option) { if (option == "none") return dmt_none; if (option == "smart") return dmt_smart; if (option == "normal") return dmt_normal; throw op_runtime_error("invalid option --demangle=" + option); } merge_option handle_merge_option(vector const & mergespec, bool allow_lib, bool exclude_dependent) { using namespace options; merge_option merge_by; merge_by.cpu = false; merge_by.lib = false; merge_by.tid = false; merge_by.tgid = false; merge_by.unitmask = false; if (!allow_lib) merge_by.lib = true; bool is_all = false; vector::const_iterator cit = mergespec.begin(); vector::const_iterator end = mergespec.end(); for (; cit != end; ++cit) { if (*cit == "cpu") { merge_by.cpu = true; } else if (*cit == "tid") { merge_by.tid = true; } else if (*cit == "tgid") { // PP:5.21 tgid merge imply tid merging. merge_by.tgid = true; merge_by.tid = true; } else if ((*cit == "lib" || *cit == "library") && allow_lib) { merge_by.lib = true; } else if (*cit == "unitmask") { merge_by.unitmask = true; } else if (*cit == "all") { merge_by.cpu = true; merge_by.lib = true; merge_by.tid = true; merge_by.tgid = true; merge_by.unitmask = true; is_all = true; } else { cerr << "unknown merge option: " << *cit << endl; exit(EXIT_FAILURE); } } // if --merge all, don't warn about lib merging, // it's not user friendly. Behaviour should still // be correct. if (exclude_dependent && merge_by.lib && allow_lib && !is_all) { cerr << "--merge=lib is meaningless " << "with --exclude-dependent" << endl; exit(EXIT_FAILURE); } return merge_by; } bool was_session_dir_supplied(void) { return session_dir_supplied; } oprofile-0.9.9/pp/common_option.h0000664000076400007640000000372512175510132013757 00000000000000/** * @file common_option.h * Declaration of entry point of pp tools, implementation file add common * options of pp tools and some miscelleaneous functions * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef COMMON_OPTION_H #define COMMON_OPTION_H #include #include #include "arrange_profiles.h" #include "demangle_symbol.h" namespace options { extern bool verbose; extern double threshold; extern std::string threshold_opt; extern std::string command_options; extern std::vector image_path; extern std::string root_path; struct spec { std::list common; std::list first; std::list second; }; } /** * prototype of a pp tool entry point. This entry point is called * by run_pp_tool */ typedef int (*pp_fct_run_t)(options::spec const & spec); /** * @param argc command line number of argument * @param argv command line argument pointer array * @param fct function to run to start this pp tool * * Provide a common entry to all pp tools, parsing all options, handling * common options and providing the necessary try catch clause */ int run_pp_tool(int argc, char const * argv[], pp_fct_run_t fct); /** * @param option one of [smart,none,normal] * * return the demangle_type of option or throw an exception if option * is not valid. */ demangle_type handle_demangle_option(std::string const & option); /** * @param mergespec merge option * @param allow_lib is merge)lib allowed in mergespec * @param exclude_dependent user specified --exclude-dependent * * parse merge option and return a merge_option filled from it. * */ merge_option handle_merge_option(std::vector const & mergespec, bool allow_lib, bool exclude_dependent); /** * Answer the question 'did the user pass in a session-dir argument?'. */ bool was_session_dir_supplied(void); #endif /* !COMMON_OPTION_H */ oprofile-0.9.9/ChangeLog-20100000664000076400007640000001411412175510132012433 000000000000002010-12-16 John Villalovos * events/Makefile.am: * libop/op_cpu_type.c: * libop/op_cpu_type.h: * libop/op_hw_specific.h: * libop/op_events.c: * utils/ophelp.c: * events/i386/westmere/events (new): * events/i386/westmere/unit_masks (new): Add support for Intel Westmere micro-architecture processors 2010-12-15 Will Cohen * libop/op_cpu_type.c: * libop/op_cpu_type.h: * libop/op_hw_specific.h: User-space identification of processors that support Intel architectural events 2010-12-14 Suravee Suthikulpanit * oprofile/daemon/opd_ibs_trans.c: Fix non-x86 build issue due to cpuid instruction 2010-11-7 Suravee Suthikulpanit * oprofile/utils/opcontrol: * oprofile/daemon/init.c: * oprofile/daemon/opd_extended.h: * oprofile/daemon/opd_extended.c: * oprofile/daemon/opd_ibs.h: * oprofile/daemon/opd_ibs.c: * oprofile/daemon/opd_ibs_trans.h: * oprofile/daemon/opd_ibs_trans.c: * oprofile/events/x86-64/family10/unit_masks: * oprofile/daemon/opd_ibs_macro.h: Additional IBS supports for family12/14/15h including: - IBS Op branch target address log - IBS Op memory access log - IBS Op extended count bits 2010-11-7 Suravee Suthikulpanit * events/Makefile.am: * libop/op_events.c: * libop/op_cpu_type.h: * libop/op_cpu_type.c: * utils/ophelp.c: * events/x86-64/family12h/events: New File * events/x86-64/family12h/unit_masks: New File * events/x86-64/family14h/events: New File * events/x86-64/family14h/unit_masks: New File * events/x86-64/family15h/events: New File * events/x86-64/family15h/unit_masks: New File Add support for new AMD processors (family12h/14h/15h) 2010-10-15 Roland Grunberg * libop/op_xml_events.c: * libop/op_xml_out.c: * libop/op_xml_out.h: * doc/ophelp.xsd: Add unit mask type attribute for an event in the ophelp schema 2010-10-15 Maynard Johnson * doc/ophelp.xsd: * libop/op_xml_events.c: Fix schema validation issues and error in xml generation 2010-10-13 Maynard Johnson * libabi/opimport.cpp: Fix uninitialized variable warning when building with gcc 4.4 2010-10-13 Maynard Johnson * events/mips/Makefile.am: Correction to 8/26 MIPS patch to add events and unit_masks to makefile 2010-10-07 William Cohen * events/i386/arch_perfmon/events: Correct filter values. 2010-08-26 Paul Lind * libop/op_cpu_type.[h,c]: * libop/op_events.c: * utils/ophelp.c: Add "mips/74K" and "mips/1004K" as valid cpu types, and change number of available 34K counters to 2. * libop/tests/alloc_counter_tests.c: correct 34K test to 2 counters. * events/mips/24K/events: correct the performance counters for 24K. * events/mips/34K/events: correct the performance counters for 34K. * events/mips/74K/[events,unit_masks]: Add events for 74K. * events/mips/1004K/[events,unit_masks]: Add events for 1004K. 2010-08-13 Maynard Johnson * utils/opcontrol: * doc/opcontrol.1.in: Update help and man page for opcontrol to indicate that buffer values may be reset to default values by passing a '0' 2010-08-02 Maynard Johnson * utils/opcontrol: * libpp/profile_spec.cpp: * pp/oparchive.cpp: Moved the copying of stats to opcontrol::do_dump_data and removed the unnecessary and confusing message that indicated when overflow stats were not available. 2010-07-13 Maynard Johnson * events/arm/armv7-common/events: (new) * events/arm/armv7-common/unit_masks: (new) * events/arm/armv7-ca9/events: (new) * events/arm/armv7-ca9/unit_masks: (new) I neglected to do 'cvs add' for these new files in the previous commit; doing so now. 2010-07-01 Will Deacon * events/arm/armv7-common/events: * events/arm/armv7-common/unit_masks: * events/arm/armv7/events: factor out ARMv7 common architectural events * events/Makefile.am: * libop/op_cpu_type.c: * libop/op_cpu_type.h: * libop/op_events.c: * utils/ophelp.c: correct usage of core terminology for v7 and MPCore * events/arm/armv7-ca9/events: * events/arm/armv7-ca9/unit_masks: add support for Cortex-A9 events 2010-06-21 John Villalovos * libop/op_cpu_type.[h,c]: * libop/op_events.c: * utils/ophelp.c: Add "i386/nehalem" as a valid cpu_type. This will allow the kernel in the future (if desired) to use "i386/nehalem" instead of "i386/core_i7". Core i7 processors can be either Nehalem or Westmere microarchitecture but the "i386/core_i7" cpu_type in Oprofile is only for Nehalem microarchitecture processors. 2010-06-11 William Cohen * libregex/stl.pat.in: Avoid machine specific configuration. 2010-05-18 Daniel Hansel * doc/oprofile.xml: Document that only kernel versions 2.6.13 or later provide support for anonymous mapped regions 2010-04-13 Maynard Johnson * libutil++/bfd_support.cpp: Fix up translate_debuginfo_syms so it doesn't rely on section index values being the same between real image and debuginfo file (to resolve problem reported by Will Cohen on Fedora 12) 2010-03-25 Oliver Schneider * libpp/parse_filename.cpp: Catch case where a basic_string::erase error can occur in opreport when parsing an invalid sample file name 2010-03-25 Maynard Johnson * events/mips/loongson2/events: New File * events/mips/loongson2/unit_masks: New File I neglected to do 'cvs add' for these new two new files back on Nov 25, 2009 when I committed the initial loongson2 support. This change corrects that error. 2010-03-01 Gabor Loki * daemon/opd_pipe.c: Fix memory leak * utils/opcontrol: Fix messages sending method to opd_pipe 2010-01-20 Maynard Johnson * m4/qt.m4: Fix qt lib check so it works on base 64-bit system See ChangeLog-2009 for earlier changelogs. oprofile-0.9.9/events/0000775000076400007640000000000012175511556011677 500000000000000oprofile-0.9.9/events/ppc/0000775000076400007640000000000012175511556012461 500000000000000oprofile-0.9.9/events/ppc/e500v2/0000775000076400007640000000000012175511557013403 500000000000000oprofile-0.9.9/events/ppc/e500v2/events0000664000076400007640000002615212175510132014544 00000000000000# e500 Events # event:0x1 counters:0,1,2,3 um:zero minimum:100 name:CPU_CLK : Cycles event:0x2 counters:0,1,2,3 um:zero minimum:500 name:COMPLETED_INSNS : Completed Instructions (0, 1, or 2 per cycle) event:0x3 counters:0,1,2,3 um:zero minimum:500 name:COMPLETED_OPS : Completed Micro-ops (counts 2 for load/store w/update) event:0x4 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_FETCHES : Instruction fetches event:0x5 counters:0,1,2,3 um:zero minimum:500 name:DECODED_OPS : Micro-ops decoded event:0x8 counters:0,1,2,3 um:zero minimum:500 name:COMPLETED_BRANCHES : Branch Instructions completed event:0x9 counters:0,1,2,3 um:zero minimum:500 name:COMPLETED_LOAD_OPS : Load micro-ops completed event:0xa counters:0,1,2,3 um:zero minimum:500 name:COMPLETED_STORE_OPS : Store micro-ops completed event:0xb counters:0,1,2,3 um:zero minimum:500 name:COMPLETION_REDIRECTS : Number of completion buffer redirects event:0xc counters:0,1,2,3 um:zero minimum:500 name:BRANCHES_FINISHED : Branches finished event:0xd counters:0,1,2,3 um:zero minimum:500 name:TAKEN_BRANCHES_FINISHED : Taken branches finished event:0xe counters:0,1,2,3 um:zero minimum:500 name:BIFFED_BRANCHES_FINISHED : Biffed branches finished event:0xf counters:0,1,2,3 um:zero minimum:500 name:BRANCHES_MISPREDICTED : Branch instructions mispredicted due to direction, target, or IAB prediction event:0x10 counters:0,1,2,3 um:zero minimum:500 name:BRANCHES_MISPREDICTED_DIRECTION : Branches mispredicted due to direction prediction event:0x11 counters:0,1,2,3 um:zero minimum:500 name:BTB_HITS : Branches that hit in the BTB, or missed but are not taken event:0x12 counters:0,1,2,3 um:zero minimum:500 name:DECODE_STALLED : Cycles the instruction buffer was not empty, but 0 instructions decoded event:0x13 counters:0,1,2,3 um:zero minimum:500 name:ISSUE_STALLED : Cycles the issue buffer is not empty but 0 instructions issued event:0x14 counters:0,1,2,3 um:zero minimum:500 name:BRANCH_ISSUE_STALLED : Cycles the branch buffer is not empty but 0 instructions issued event:0x15 counters:0,1,2,3 um:zero minimum:500 name:SRS0_SCHEDULE_STALLED : Cycles SRS0 is not empty but 0 instructions scheduled event:0x16 counters:0,1,2,3 um:zero minimum:500 name:SRS1_SCHEDULE_STALLED : Cycles SRS1 is not empty but 0 instructions scheduled event:0x17 counters:0,1,2,3 um:zero minimum:500 name:VRS_SCHEDULE_STALLED : Cycles VRS is not empty but 0 instructions scheduled event:0x18 counters:0,1,2,3 um:zero minimum:500 name:LRS_SCHEDULE_STALLED : Cycles LRS is not empty but 0 instructions scheduled event:0x19 counters:0,1,2,3 um:zero minimum:500 name:BRS_SCHEDULE_STALLED : Cycles BRS is not empty but 0 instructions scheduled Load/Store, Data Cache, and dLFB Events event:0x1a counters:0,1,2,3 um:zero minimum:500 name:TOTAL_TRANSLATED : Total Ldst microops translated. event:0x1b counters:0,1,2,3 um:zero minimum:500 name:LOADS_TRANSLATED : Number of cacheable L* or EVL* microops translated. (This includes microops from load-multiple, load-update, and load-context instructions.) event:0x1c counters:0,1,2,3 um:zero minimum:500 name:STORES_TRANSLATED : Number of cacheable ST* or EVST* microops translated. (This includes microops from store-multiple, store-update, and save-context instructions.) event:0x1d counters:0,1,2,3 um:zero minimum:500 name:TOUCHES_TRANSLATED : Number of cacheable DCBT and DCBTST instructions translated (L1 only) (Does not count touches that are converted to nops i.e. exceptions, noncacheable, hid0[nopti] bit is set.) event:0x1e counters:0,1,2,3 um:zero minimum:500 name:CACHEOPS_TRANSLATED : Number of dcba, dcbf, dcbst, and dcbz instructions translated (e500 traps on dcbi) event:0x1f counters:0,1,2,3 um:zero minimum:500 name:CACHEINHIBITED_ACCESSES_TRANSLATED : Number of cache inhibited accesses translated event:0x20 counters:0,1,2,3 um:zero minimum:500 name:GUARDED_LOADS_TRANSLATED : Number of guarded loads translated event:0x21 counters:0,1,2,3 um:zero minimum:500 name:WRITETHROUGH_STORES_TRANSLATED : Number of write-through stores translated event:0x22 counters:0,1,2,3 um:zero minimum:500 name:MISALIGNED_ACCESSES_TRANSLATED : Number of misaligned load or store accesses translated. event:0x23 counters:0,1,2,3 um:zero minimum:500 name:TOTAL_ALLOCATED_DLFB : Total allocated to dLFB event:0x24 counters:0,1,2,3 um:zero minimum:500 name:LOADS_TRANSLATED_ALLOCATED_DLFB : Loads translated and allocated to dLFB (Applies to same class of instructions as loads translated.) event:0x25 counters:0,1,2,3 um:zero minimum:500 name:STORES_COMPLETED_ALLOCATED_DLFB : Stores completed and allocated to dLFB (Applies to same class of instructions as stores translated.) event:0x26 counters:0,1,2,3 um:zero minimum:500 name:TOUCHES_TRANSLATED_ALLOCATED_DLFB : Touches translated and allocated to dLFB (Applies to same class of instructions as touches translated.) event:0x27 counters:0,1,2,3 um:zero minimum:500 name:STORES_COMPLETED : Number of cacheable ST* or EVST* microops completed. (Applies to the same class of instructions as stores translated.) event:0x28 counters:0,1,2,3 um:zero minimum:500 name:DL1_LOCKS : Number of cache lines locked in the dL1. (Counts a lock even if an overlock condition is encountered.) event:0x29 counters:0,1,2,3 um:zero minimum:500 name:DL1_RELOADS : This is historically used to determine dcache miss rate (along with loads/stores completed). This counts dL1 reloads for any reason. event:0x2a counters:0,1,2,3 um:zero minimum:500 name:DL1_CASTOUTS : dL1 castouts. Does not count castouts due to DCBF. event:0x2b counters:0,1,2,3 um:zero minimum:500 name:DETECTED_REPLAYS : Times detected replay condition - Load miss with dLFB full. event:0x2c counters:0,1,2,3 um:zero minimum:500 name:LOAD_MISS_QUEUE_FULL_REPLAYS : Load miss with load queue full. event:0x2d counters:0,1,2,3 um:zero minimum:500 name:LOAD_GUARDED_MISS_NOT_LAST_REPLAYS : Load guarded miss when the load is not yet at the bottom of the completion buffer. event:0x2e counters:0,1,2,3 um:zero minimum:500 name:STORE_TRANSLATED_QUEUE_FULL_REPLAYS : Translate a store when the StQ is full. event:0x2f counters:0,1,2,3 um:zero minimum:500 name:ADDRESS_COLLISION_REPLAYS : Address collision. event:0x30 counters:0,1,2,3 um:zero minimum:500 name:DMMU_MISS_REPLAYS : DMMU_MISS_REPLAYS : DMMU miss. event:0x31 counters:0,1,2,3 um:zero minimum:500 name:DMMU_BUSY_REPLAYS : DMMU_BUSY_REPLAYS : DMMU busy. event:0x32 counters:0,1,2,3 um:zero minimum:500 name:SECOND_PART_MISALIGNED_AFTER_MISS_REPLAYS : Second part of misaligned access when first part missed in cache. event:0x33 counters:0,1,2,3 um:zero minimum:500 name:LOAD_MISS_DLFB_FULL_CYCLES : Cycles stalled on replay condition - Load miss with dLFB full. event:0x34 counters:0,1,2,3 um:zero minimum:500 name:LOAD_MISS_QUEUE_FULL_CYCLES : Cycles stalled on replay condition - Load miss with load queue full. event:0x35 counters:0,1,2,3 um:zero minimum:500 name:LOAD_GUARDED_MISS_NOT_LAST_CYCLES : Cycles stalled on replay condition - Load guarded miss when the load is not yet at the bottom of the completion buffer. event:0x36 counters:0,1,2,3 um:zero minimum:500 name:STORE_TRANSLATED_QUEUE_FULL_CYCLES : Cycles stalled on replay condition - Translate a store when the StQ is full. event:0x37 counters:0,1,2,3 um:zero minimum:500 name:ADDRESS_COLLISION_CYCLES : Cycles stalled on replay condition - Address collision. event:0x38 counters:0,1,2,3 um:zero minimum:500 name:DMMU_MISS_CYCLES : Cycles stalled on replay condition - DMMU miss. event:0x39 counters:0,1,2,3 um:zero minimum:500 name:DMMU_BUSY_CYCLES : Cycles stalled on replay condition - DMMU busy. event:0x3a counters:0,1,2,3 um:zero minimum:500 name:SECOND_PART_MISALIGNED_AFTER_MISS_CYCLES : Cycles stalled on replay condition - Second part of misaligned access when first part missed in cache. event:0x3b counters:0,1,2,3 um:zero minimum:500 name:IL1_LOCKS : Number of cache lines locked in the iL1. (Counts a lock even if an overlock condition is encountered.) event:0x3c counters:0,1,2,3 um:zero minimum:500 name:IL1_FETCH_RELOADS : This is historically used to determine icache miss rate (along with instructions completed) Reloads due to demand fetch. event:0x3d counters:0,1,2,3 um:zero minimum:500 name:FETCHES : Counts the number of fetches that write at least one instruction to the instruction buffer. (With instruction fetched, can used to compute instructions-per-fetch) event:0x3e counters:0,1,2,3 um:zero minimum:500 name:IMMU_TLB4K_RELOADS : iMMU TLB4K reloads event:0x3f counters:0,1,2,3 um:zero minimum:500 name:IMMU_VSP_RELOADS : iMMU VSP reloads event:0x40 counters:0,1,2,3 um:zero minimum:500 name:DMMU_TLB4K_RELOADS : dMMU TLB4K reloads event:0x41 counters:0,1,2,3 um:zero minimum:500 name:DMMU_VSP_RELOADS : dMMU VSP reloads event:0x42 counters:0,1,2,3 um:zero minimum:500 name:L2MMU_MISSES : Counts iTLB/dTLB error interrupt event:0x43 counters:0,1,2,3 um:zero minimum:500 name:BIU_MASTER_REQUESTS : Number of master transactions. (Number of master TSs.) event:0x44 counters:0,1,2,3 um:zero minimum:500 name:BIU_MASTER_I_REQUESTS : Number of master I-Side transactions. (Number of master I-Side TSs.) event:0x45 counters:0,1,2,3 um:zero minimum:500 name:BIU_MASTER_D_REQUESTS : Number of master D-Side transactions. (Number of master D-Side TSs.) event:0x46 counters:0,1,2,3 um:zero minimum:500 name:BIU_MASTER_D_CASTOUT_REQUESTS : Number of master D-Side non-program-demand castout transactions. This counts replacement pushes and snoop pushes. This does not count DCBF castouts. (Number of master D-side non-program-demand castout TSs.) event:0x47 counters:0,1,2,3 um:zero minimum:500 name:BIU_MASTER_RETRIES : Number of transactions which were initiated by this processor which were retried on the BIU interface. (Number of master ARTRYs.) event:0x48 counters:0,1,2,3 um:zero minimum:500 name:SNOOP_REQUESTS : Number of externally generated snoop requests. (Counts snoop TSs.) event:0x49 counters:0,1,2,3 um:zero minimum:500 name:SNOOP_HITS : Number of snoop hits on all D-side resources regardless of the cache state (modified, exclusive, or shared) event:0x4a counters:0,1,2,3 um:zero minimum:500 name:SNOOP_PUSHES : Number of snoop pushes from all D-side resources. (Counts snoop ARTRY/WOPs.) event:0x4b counters:0,1,2,3 um:zero minimum:500 name:SNOOP_RETRIES : Number of snoop requests retried. (Counts snoop ARTRYs.) event:0x52 counters:0,1,2,3 um:zero minimum:500 name:PMC0_OVERFLOW : Counts the number of times PMC0[32] transitioned from 1 to 0. event:0x53 counters:0,1,2,3 um:zero minimum:500 name:PMC1_OVERFLOW : Counts the number of times PMC1[32] transitioned from 1 to 0. event:0x54 counters:0,1,2,3 um:zero minimum:500 name:PMC2_OVERFLOW : Counts the number of times PMC2[32] transitioned from 1 to 0. event:0x55 counters:0,1,2,3 um:zero minimum:500 name:PMC3_OVERFLOW : Counts the number of times PMC3[32] transitioned from 1 to 0. event:0x56 counters:0,1,2,3 um:zero minimum:500 name:INTERRUPTS : Number of interrupts taken event:0x57 counters:0,1,2,3 um:zero minimum:500 name:EXTERNAL_INTERRUPTS : Number of external input interrupts taken event:0x58 counters:0,1,2,3 um:zero minimum:500 name:CRITICAL_INTERRUPTS : Number of critical input interrupts taken event:0x59 counters:0,1,2,3 um:zero minimum:500 name:SC_TRAP_INTERRUPTS : Number of system call and trap interrupts oprofile-0.9.9/events/ppc/e500v2/unit_masks0000664000076400007640000000012412175510132015404 00000000000000# e500 possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/ppc/e300/0000775000076400007640000000000012175511557013131 500000000000000oprofile-0.9.9/events/ppc/e300/events0000664000076400007640000001110512175510132014262 00000000000000# e300 Events # event:0x1 counters:0,1,2,3 um:zero minimum:3000 name:CPU_CLK : Cycles event:0x2 counters:0,1,2,3 um:zero minimum:3000 name:COMPLETED_INSNS : Completed Instructions (0, 1, or 2 per cycle) event:0x4 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_FETCHES : Instruction fetches event:0x6 counters:0,1,2,3 um:zero minimum:500 name:PM_EVENT_TRANS : 0 to 1 translations on the pm_event input event:0x7 counters:0,1,2,3 um:zero minimum:500 name:PM_EVENT_CYCLES : processor bus cycle event:0x8 counters:0,1,2,3 um:zero minimum:500 name:COMPLETED_BRANCHES : Branch Instructions completed event:0x9 counters:0,1,2,3 um:zero minimum:500 name:COMPLETED_LOAD_OPS : Load micro-ops completed event:0xa counters:0,1,2,3 um:zero minimum:500 name:COMPLETED_STORE_OPS : Store micro-ops completed event:0xc counters:0,1,2,3 um:zero minimum:500 name:BRANCHES_FINISHED : Branches finished event:0xd counters:0,1,2,3 um:zero minimum:500 name:TAKEN_BRANCHES_FINISHED : Taken branches finished event:0xf counters:0,1,2,3 um:zero minimum:500 name:BRANCHES_MISPREDICTED : Branch instructions mispredicted due to direction, target, or IAB prediction event:0x12 counters:0,1,2,3 um:zero minimum:500 name:DECODE_STALLED : Cycles the instruction buffer was not empty, but 0 instructions decoded event:0x13 counters:0,1,2,3 um:zero minimum:500 name:ISSUE_STALLED : Cycles the issue buffer is not empty but 0 instructions issued event:0x1f counters:0,1,2,3 um:zero minimum:500 name:CACHEINHIBITED_ACCESSES_TRANSLATED : Number of cache inhibited accesses translated event:0x3d counters:0,1,2,3 um:zero minimum:500 name:FETCHES : Counts the number of fetches that write at least one instruction to the instruction buffer. (With instruction fetched, can used to compute instructions-per-fetch) event:0x3e counters:0,1,2,3 um:zero minimum:500 name:MMU_MISSES : Counts instruction TLB miss exceptions event:0x43 counters:0,1,2,3 um:zero minimum:500 name:BIU_MASTER_REQUESTS : Number of master transactions. (Number of master TSs.) event:0x44 counters:0,1,2,3 um:zero minimum:500 name:BIU_MASTER_I_REQUESTS : Number of master I-Side transactions. (Number of master I-Side TSs.) event:0x45 counters:0,1,2,3 um:zero minimum:500 name:BIU_MASTER_D_REQUESTS : Number of master D-Side transactions. (Number of master D-Side TSs.) event:0x47 counters:0,1,2,3 um:zero minimum:500 name:BIU_MASTER_RETRIES : Number of transactions which were initiated by this processor which were retried on the BIU interface. (Number of master ARTRYs.) event:0x4a counters:0,1,2,3 um:zero minimum:500 name:SNOOP_PUSHES : Number of snoop pushes from all D-side resources. (Counts snoop ARTRY/WOPs.) event:0x52 counters:0,1,2,3 um:zero minimum:500 name:PMC0_OVERFLOW : Counts the number of times PMC0[32] transitioned from 1 to 0. event:0x53 counters:0,1,2,3 um:zero minimum:500 name:PMC1_OVERFLOW : Counts the number of times PMC1[32] transitioned from 1 to 0. event:0x54 counters:0,1,2,3 um:zero minimum:500 name:PMC2_OVERFLOW : Counts the number of times PMC2[32] transitioned from 1 to 0. event:0x55 counters:0,1,2,3 um:zero minimum:500 name:PMC3_OVERFLOW : Counts the number of times PMC3[32] transitioned from 1 to 0. event:0x56 counters:0,1,2,3 um:zero minimum:500 name:INTERRUPTS : Number of interrupts taken event:0x57 counters:0,1,2,3 um:zero minimum:500 name:EXTERNAL_INTERRUPTS : Number of external input interrupts taken event:0x58 counters:0,1,2,3 um:zero minimum:500 name:CRITICAL_INTERRUPTS : Number of critical input interrupts taken event:0x59 counters:0,1,2,3 um:zero minimum:500 name:SC_TRAP_INTERRUPTS : Number of system call and trap interrupts event:0x5a counters:0,1,2,3 um:zero minimum:500 name:TRANS_TBL : Counts transitions of the TBL bit selected by PMGC0[TBSEL] event:0x60 counters:0,1,2,3 um:zero minimum:500 name:I_CACHE_HIT : Number if fetches that hit in i-cache event:0x61 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTIONS_FOLDED : Number of instructions folded event:0x64 counters:0,1,2,3 um:zero minimum:500 name:STALLS_COM_BUFFER : Cycles issue stalled due to full completion buffer event:0x68 counters:0,1,2,3 um:zero minimum:500 name:STALLED_COMPLETION : Cycles that completion is stalled event:0x69 counters:0,1,2,3 um:zero minimum:500 name:STALLED_LOAD : Cycles that completion is stalled due to load event:0x6a counters:0,1,2,3 um:zero minimum:500 name:STALLED_FLOAT : Cycles that completion is stalled due to fp instruction event:0x6c counters:0,1,2,3 um:zero minimum:500 name:L_S_SPACE : Number of loads and stores to cacheable space in D cache event:0x6d counters:0,1,2,3 um:zero minimum:500 name:L_S_HIT : Number of loads and stores that hit in the D cache oprofile-0.9.9/events/ppc/e300/unit_masks0000664000076400007640000000012412175510132015132 00000000000000# e300 possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/ppc/e500/0000775000076400007640000000000012175511557013133 500000000000000oprofile-0.9.9/events/ppc/e500/events0000664000076400007640000002615412175510132014276 00000000000000# e500 Events # event:0x1 counters:0,1,2,3 um:zero minimum:3000 name:CPU_CLK : Cycles event:0x2 counters:0,1,2,3 um:zero minimum:3000 name:COMPLETED_INSNS : Completed Instructions (0, 1, or 2 per cycle) event:0x3 counters:0,1,2,3 um:zero minimum:500 name:COMPLETED_OPS : Completed Micro-ops (counts 2 for load/store w/update) event:0x4 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_FETCHES : Instruction fetches event:0x5 counters:0,1,2,3 um:zero minimum:500 name:DECODED_OPS : Micro-ops decoded event:0x8 counters:0,1,2,3 um:zero minimum:500 name:COMPLETED_BRANCHES : Branch Instructions completed event:0x9 counters:0,1,2,3 um:zero minimum:500 name:COMPLETED_LOAD_OPS : Load micro-ops completed event:0xa counters:0,1,2,3 um:zero minimum:500 name:COMPLETED_STORE_OPS : Store micro-ops completed event:0xb counters:0,1,2,3 um:zero minimum:500 name:COMPLETION_REDIRECTS : Number of completion buffer redirects event:0xc counters:0,1,2,3 um:zero minimum:500 name:BRANCHES_FINISHED : Branches finished event:0xd counters:0,1,2,3 um:zero minimum:500 name:TAKEN_BRANCHES_FINISHED : Taken branches finished event:0xe counters:0,1,2,3 um:zero minimum:500 name:BIFFED_BRANCHES_FINISHED : Biffed branches finished event:0xf counters:0,1,2,3 um:zero minimum:500 name:BRANCHES_MISPREDICTED : Branch instructions mispredicted due to direction, target, or IAB prediction event:0x10 counters:0,1,2,3 um:zero minimum:500 name:BRANCHES_MISPREDICTED_DIRECTION : Branches mispredicted due to direction prediction event:0x11 counters:0,1,2,3 um:zero minimum:500 name:BTB_HITS : Branches that hit in the BTB, or missed but are not taken event:0x12 counters:0,1,2,3 um:zero minimum:500 name:DECODE_STALLED : Cycles the instruction buffer was not empty, but 0 instructions decoded event:0x13 counters:0,1,2,3 um:zero minimum:500 name:ISSUE_STALLED : Cycles the issue buffer is not empty but 0 instructions issued event:0x14 counters:0,1,2,3 um:zero minimum:500 name:BRANCH_ISSUE_STALLED : Cycles the branch buffer is not empty but 0 instructions issued event:0x15 counters:0,1,2,3 um:zero minimum:500 name:SRS0_SCHEDULE_STALLED : Cycles SRS0 is not empty but 0 instructions scheduled event:0x16 counters:0,1,2,3 um:zero minimum:500 name:SRS1_SCHEDULE_STALLED : Cycles SRS1 is not empty but 0 instructions scheduled event:0x17 counters:0,1,2,3 um:zero minimum:500 name:VRS_SCHEDULE_STALLED : Cycles VRS is not empty but 0 instructions scheduled event:0x18 counters:0,1,2,3 um:zero minimum:500 name:LRS_SCHEDULE_STALLED : Cycles LRS is not empty but 0 instructions scheduled event:0x19 counters:0,1,2,3 um:zero minimum:500 name:BRS_SCHEDULE_STALLED : Cycles BRS is not empty but 0 instructions scheduled Load/Store, Data Cache, and dLFB Events event:0x1a counters:0,1,2,3 um:zero minimum:500 name:TOTAL_TRANSLATED : Total Ldst microops translated. event:0x1b counters:0,1,2,3 um:zero minimum:500 name:LOADS_TRANSLATED : Number of cacheable L* or EVL* microops translated. (This includes microops from load-multiple, load-update, and load-context instructions.) event:0x1c counters:0,1,2,3 um:zero minimum:500 name:STORES_TRANSLATED : Number of cacheable ST* or EVST* microops translated. (This includes microops from store-multiple, store-update, and save-context instructions.) event:0x1d counters:0,1,2,3 um:zero minimum:500 name:TOUCHES_TRANSLATED : Number of cacheable DCBT and DCBTST instructions translated (L1 only) (Does not count touches that are converted to nops i.e. exceptions, noncacheable, hid0[nopti] bit is set.) event:0x1e counters:0,1,2,3 um:zero minimum:500 name:CACHEOPS_TRANSLATED : Number of dcba, dcbf, dcbst, and dcbz instructions translated (e500 traps on dcbi) event:0x1f counters:0,1,2,3 um:zero minimum:500 name:CACHEINHIBITED_ACCESSES_TRANSLATED : Number of cache inhibited accesses translated event:0x20 counters:0,1,2,3 um:zero minimum:500 name:GUARDED_LOADS_TRANSLATED : Number of guarded loads translated event:0x21 counters:0,1,2,3 um:zero minimum:500 name:WRITETHROUGH_STORES_TRANSLATED : Number of write-through stores translated event:0x22 counters:0,1,2,3 um:zero minimum:500 name:MISALIGNED_ACCESSES_TRANSLATED : Number of misaligned load or store accesses translated. event:0x23 counters:0,1,2,3 um:zero minimum:500 name:TOTAL_ALLOCATED_DLFB : Total allocated to dLFB event:0x24 counters:0,1,2,3 um:zero minimum:500 name:LOADS_TRANSLATED_ALLOCATED_DLFB : Loads translated and allocated to dLFB (Applies to same class of instructions as loads translated.) event:0x25 counters:0,1,2,3 um:zero minimum:500 name:STORES_COMPLETED_ALLOCATED_DLFB : Stores completed and allocated to dLFB (Applies to same class of instructions as stores translated.) event:0x26 counters:0,1,2,3 um:zero minimum:500 name:TOUCHES_TRANSLATED_ALLOCATED_DLFB : Touches translated and allocated to dLFB (Applies to same class of instructions as touches translated.) event:0x27 counters:0,1,2,3 um:zero minimum:500 name:STORES_COMPLETED : Number of cacheable ST* or EVST* microops completed. (Applies to the same class of instructions as stores translated.) event:0x28 counters:0,1,2,3 um:zero minimum:500 name:DL1_LOCKS : Number of cache lines locked in the dL1. (Counts a lock even if an overlock condition is encountered.) event:0x29 counters:0,1,2,3 um:zero minimum:500 name:DL1_RELOADS : This is historically used to determine dcache miss rate (along with loads/stores completed). This counts dL1 reloads for any reason. event:0x2a counters:0,1,2,3 um:zero minimum:500 name:DL1_CASTOUTS : dL1 castouts. Does not count castouts due to DCBF. event:0x2b counters:0,1,2,3 um:zero minimum:500 name:DETECTED_REPLAYS : Times detected replay condition - Load miss with dLFB full. event:0x2c counters:0,1,2,3 um:zero minimum:500 name:LOAD_MISS_QUEUE_FULL_REPLAYS : Load miss with load queue full. event:0x2d counters:0,1,2,3 um:zero minimum:500 name:LOAD_GUARDED_MISS_NOT_LAST_REPLAYS : Load guarded miss when the load is not yet at the bottom of the completion buffer. event:0x2e counters:0,1,2,3 um:zero minimum:500 name:STORE_TRANSLATED_QUEUE_FULL_REPLAYS : Translate a store when the StQ is full. event:0x2f counters:0,1,2,3 um:zero minimum:500 name:ADDRESS_COLLISION_REPLAYS : Address collision. event:0x30 counters:0,1,2,3 um:zero minimum:500 name:DMMU_MISS_REPLAYS : DMMU_MISS_REPLAYS : DMMU miss. event:0x31 counters:0,1,2,3 um:zero minimum:500 name:DMMU_BUSY_REPLAYS : DMMU_BUSY_REPLAYS : DMMU busy. event:0x32 counters:0,1,2,3 um:zero minimum:500 name:SECOND_PART_MISALIGNED_AFTER_MISS_REPLAYS : Second part of misaligned access when first part missed in cache. event:0x33 counters:0,1,2,3 um:zero minimum:500 name:LOAD_MISS_DLFB_FULL_CYCLES : Cycles stalled on replay condition - Load miss with dLFB full. event:0x34 counters:0,1,2,3 um:zero minimum:500 name:LOAD_MISS_QUEUE_FULL_CYCLES : Cycles stalled on replay condition - Load miss with load queue full. event:0x35 counters:0,1,2,3 um:zero minimum:500 name:LOAD_GUARDED_MISS_NOT_LAST_CYCLES : Cycles stalled on replay condition - Load guarded miss when the load is not yet at the bottom of the completion buffer. event:0x36 counters:0,1,2,3 um:zero minimum:500 name:STORE_TRANSLATED_QUEUE_FULL_CYCLES : Cycles stalled on replay condition - Translate a store when the StQ is full. event:0x37 counters:0,1,2,3 um:zero minimum:500 name:ADDRESS_COLLISION_CYCLES : Cycles stalled on replay condition - Address collision. event:0x38 counters:0,1,2,3 um:zero minimum:500 name:DMMU_MISS_CYCLES : Cycles stalled on replay condition - DMMU miss. event:0x39 counters:0,1,2,3 um:zero minimum:500 name:DMMU_BUSY_CYCLES : Cycles stalled on replay condition - DMMU busy. event:0x3a counters:0,1,2,3 um:zero minimum:500 name:SECOND_PART_MISALIGNED_AFTER_MISS_CYCLES : Cycles stalled on replay condition - Second part of misaligned access when first part missed in cache. event:0x3b counters:0,1,2,3 um:zero minimum:500 name:IL1_LOCKS : Number of cache lines locked in the iL1. (Counts a lock even if an overlock condition is encountered.) event:0x3c counters:0,1,2,3 um:zero minimum:500 name:IL1_FETCH_RELOADS : This is historically used to determine icache miss rate (along with instructions completed) Reloads due to demand fetch. event:0x3d counters:0,1,2,3 um:zero minimum:500 name:FETCHES : Counts the number of fetches that write at least one instruction to the instruction buffer. (With instruction fetched, can used to compute instructions-per-fetch) event:0x3e counters:0,1,2,3 um:zero minimum:500 name:IMMU_TLB4K_RELOADS : iMMU TLB4K reloads event:0x3f counters:0,1,2,3 um:zero minimum:500 name:IMMU_VSP_RELOADS : iMMU VSP reloads event:0x40 counters:0,1,2,3 um:zero minimum:500 name:DMMU_TLB4K_RELOADS : dMMU TLB4K reloads event:0x41 counters:0,1,2,3 um:zero minimum:500 name:DMMU_VSP_RELOADS : dMMU VSP reloads event:0x42 counters:0,1,2,3 um:zero minimum:500 name:L2MMU_MISSES : Counts iTLB/dTLB error interrupt event:0x43 counters:0,1,2,3 um:zero minimum:500 name:BIU_MASTER_REQUESTS : Number of master transactions. (Number of master TSs.) event:0x44 counters:0,1,2,3 um:zero minimum:500 name:BIU_MASTER_I_REQUESTS : Number of master I-Side transactions. (Number of master I-Side TSs.) event:0x45 counters:0,1,2,3 um:zero minimum:500 name:BIU_MASTER_D_REQUESTS : Number of master D-Side transactions. (Number of master D-Side TSs.) event:0x46 counters:0,1,2,3 um:zero minimum:500 name:BIU_MASTER_D_CASTOUT_REQUESTS : Number of master D-Side non-program-demand castout transactions. This counts replacement pushes and snoop pushes. This does not count DCBF castouts. (Number of master D-side non-program-demand castout TSs.) event:0x47 counters:0,1,2,3 um:zero minimum:500 name:BIU_MASTER_RETRIES : Number of transactions which were initiated by this processor which were retried on the BIU interface. (Number of master ARTRYs.) event:0x48 counters:0,1,2,3 um:zero minimum:500 name:SNOOP_REQUESTS : Number of externally generated snoop requests. (Counts snoop TSs.) event:0x49 counters:0,1,2,3 um:zero minimum:500 name:SNOOP_HITS : Number of snoop hits on all D-side resources regardless of the cache state (modified, exclusive, or shared) event:0x4a counters:0,1,2,3 um:zero minimum:500 name:SNOOP_PUSHES : Number of snoop pushes from all D-side resources. (Counts snoop ARTRY/WOPs.) event:0x4b counters:0,1,2,3 um:zero minimum:500 name:SNOOP_RETRIES : Number of snoop requests retried. (Counts snoop ARTRYs.) event:0x52 counters:0,1,2,3 um:zero minimum:500 name:PMC0_OVERFLOW : Counts the number of times PMC0[32] transitioned from 1 to 0. event:0x53 counters:0,1,2,3 um:zero minimum:500 name:PMC1_OVERFLOW : Counts the number of times PMC1[32] transitioned from 1 to 0. event:0x54 counters:0,1,2,3 um:zero minimum:500 name:PMC2_OVERFLOW : Counts the number of times PMC2[32] transitioned from 1 to 0. event:0x55 counters:0,1,2,3 um:zero minimum:500 name:PMC3_OVERFLOW : Counts the number of times PMC3[32] transitioned from 1 to 0. event:0x56 counters:0,1,2,3 um:zero minimum:500 name:INTERRUPTS : Number of interrupts taken event:0x57 counters:0,1,2,3 um:zero minimum:500 name:EXTERNAL_INTERRUPTS : Number of external input interrupts taken event:0x58 counters:0,1,2,3 um:zero minimum:500 name:CRITICAL_INTERRUPTS : Number of critical input interrupts taken event:0x59 counters:0,1,2,3 um:zero minimum:500 name:SC_TRAP_INTERRUPTS : Number of system call and trap interrupts oprofile-0.9.9/events/ppc/e500/unit_masks0000664000076400007640000000012412175510132015134 00000000000000# e500 possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/ppc/7450/0000775000076400007640000000000012175511557013061 500000000000000oprofile-0.9.9/events/ppc/7450/events0000664000076400007640000000652612175510132014225 00000000000000# 745x Events # event:0x1 counters:0,1,2,3 um:zero minimum:3000 name:CYCLES : Processor cycles event:0x2 counters:0,1,2,3 um:zero minimum:3000 name:COMPLETED_INSNS : Completed Instructions event:0x3 counters:0,1,2,3 um:zero minimum:3000 name:TBL_BIT_TRANSTNS : TBL Bit Transitions event:0x4 counters:0,1,2,3 um:zero minimum:3000 name:DISPATCHED_INSNS : Dispatched Instructions event:0x5 counters:0,1,2,3 um:zero minimum:3000 name:PROC_PERFMON_EXC : Process Performance Monitor Exception event:0x8 counters:0,1,3 um:zero minimum:3000 name:VPU_INSNS : VPU Instructions Completed event:0x9 counters:0,1,3 um:zero minimum:3000 name:VFPU_INSNS : VFPU Instructions Completed event:0xa counters:0,1,3 um:zero minimum:3000 name:VIU1_INSNS : VIU1 Instructions Completed event:0xb counters:0,1,3 um:zero minimum:3000 name:VIU2_INSNS : VIU2 Instructions Completed event:0xe counters:0,1 um:zero minimum:3000 name:VPU_CYCLES : Cycles a VPU Instruction event:0xf counters:0,1 um:zero minimum:3000 name:VFPU_CYCLES : Cycles a VFPU Instruction event:0x10 counters:0,1 um:zero minimum:3000 name:VIU1_CYCLES : Cycles a VIU1 Instruction event:0x11 counters:0,1 um:zero minimum:3000 name:VIU2_CYCLES : Cycles a VIU2 Instruction event:0x12 counters:2 um:zero minimum:3000 name:DTLB_MISSES : DTLB misses event:0x14 counters:0,1 um:zero minimum:3000 name:STORE_INSNS : Store Instructions event:0x15 counters:0,1 um:zero minimum:3000 name:L1_ICACHE_MISSES : L1 Instruction Cache Misses event:0x16 counters:0,1 um:zero minimum:3000 name:L1_DATA_SNOOPS : L1 Data Snoops event:0x17 counters:0,1 um:zero minimum:3000 name:UNRESOLVED_BRANCHES : Unresolved Branches event:0x1c counters:3 um:zero minimum:3000 name:MISPREDICTED_BRANCHES : Mispredicted branches event:0x1d counters:3 um:zero minimum:3000 name:FOLDED_BRANCHES : Folded branches event:0x1f counters:2 um:zero minimum:3000 name:BR_LN_STACK_MIS : Branch Link Stack Mispredicted event:0x27 counters:0 um:zero minimum:3000 name:ITLB_TABLE_CYCLES : ITLM Hardware Table Search Cycles event:0x29 counters:0 um:zero minimum:3000 name:L1_ICACHE_ACCESSES : L1 Instruction Cache Accesses event:0x2a counters:0 um:zero minimum:3000 name:INSN_BP_MATCHES : Instruction Breakpoint Matches event:0x32 counters:0 um:zero minimum:3000 name:L1_DSNOOP_HITS : L1 data snoop hits event:0x33 counters:0 um:zero minimum:3000 name:WRITETHRU_STORES : Write-through stores event:0x34 counters:0 um:zero minimum:3000 name:CACHEINH_STORES : Cache-inhibited stores event:0x35 counters:0 um:zero minimum:3000 name:L1_DLOAD_HIT : L1 data load hit event:0x36 counters:0 um:zero minimum:3000 name:L1_DTOUCH_HIT : L1 data touch hit event:0x37 counters:0 um:zero minimum:3000 name:L1_DSTORE_HIT : L1 data store hit event:0x38 counters:0 um:zero minimum:3000 name:L1_DATA_HITS : L1 data total hits event:0x40 counters:0 um:zero minimum:3000 name:ALTIVEC_LD_INSNS_COMPLETED : Altivec load instructions completed event:0x41 counters:0 um:zero minimum:3000 name:FP_STORE_INSNS_COMPLETED_LSU : Floating point store instructions completed in LSU event:0x4f counters:0 um:zero minimum:3000 name:FP_LOAD_INSNS_COMPLETED_LSU : Floating point load instructions completed in LSU event:0x50 counters:0 um:zero minimum:3000 name:FP_LDSINGLE_INSNS_COMPLETED_LSU : Floating point load single instructions completed in LSU event:0x5e counters:0 um:zero minimum:3000 name:FP_DENORMALIZED_RESULT : Floating point denormalized result oprofile-0.9.9/events/ppc/7450/unit_masks0000664000076400007640000000012412175510132015062 00000000000000# 745x possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/ia64/0000775000076400007640000000000012175511556012442 500000000000000oprofile-0.9.9/events/ia64/ia64/0000775000076400007640000000000012175511556013205 500000000000000oprofile-0.9.9/events/ia64/ia64/events0000664000076400007640000000030012175510132014332 00000000000000# IA-64 events event:0x12 counters:0,1,2,3 um:zero minimum:500 name:CPU_CYCLES : CPU Cycles event:0x08 counters:0,1,2,3 um:zero minimum:500 name:IA64_INST_RETIRED : IA-64 Instructions Retired oprofile-0.9.9/events/ia64/ia64/unit_masks0000664000076400007640000000012512175510132015210 00000000000000# IA-64 possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/ia64/itanium2/0000775000076400007640000000000012175511556014172 500000000000000oprofile-0.9.9/events/ia64/itanium2/events0000664000076400007640000005720512175510132015337 00000000000000# IA-64 Itanium 2 events # IA64_2 Basic Events, Table 11-1 event:0x12 counters:0,1,2,3 um:zero minimum:500 name:CPU_CYCLES : CPU Cycles event:0x08 counters:0,1,2,3 um:zero minimum:500 name:IA64_INST_RETIRED : IA-64 Instructions Retired event:0x59 counters:0,1,2,3 um:zero minimum:5000 name:IA32_INST_RETIRED : IA-32 Instructions Retired event:0x07 counters:0,1,2,3 um:zero minimum:500 name:IA32_ISA_TRANSITIONS : Itanium to/from IA-32 ISA Transitions # IA64_2 Instruction Disperal Events, Table 11-3 event:0x49 counters:0,1,2,3 um:zero minimum:5000 name:DISP_STALLED : Number of cycles dispersal stalled event:0x4d counters:0,1,2,3 um:zero minimum:5000 name:INST_DISPERSED : Syllables Dispersed from REN to REG stage event:0x4e counters:0,1,2,3 um:syll_not_dispersed minimum:5000 name:SYLL_NOT_DISPERSED : Syllables not dispersed event:0x4f counters:0,1,2,3 um:syll_overcount minimum:5000 name:SYLL_OVERCOUNT : Syllables overcounted # IA64_2 Instruction Execution Events, Table 11-4 event:0x58 counters:0,1,2,3 um:alat_capacity_miss minimum:5000 name:ALAT_CAPACITY_MISS : ALAT Entry Replaced event:0x06 counters:0,1,2,3 um:zero minimum:5000 name:FP_FAILED_FCHKF : Failed fchkf event:0x05 counters:0,1,2,3 um:zero minimum:5000 name:FP_FALSE_SIRSTALL : SIR stall without a trap event:0x0b counters:0,1,2,3 um:zero minimum:5000 name:FP_FLUSH_TO_ZERO : Result Flushed to Zero event:0x09 counters:0,1,2,3 um:zero minimum:5000 name:FP_OPS_RETIRED : Retired FP operations event:0x03 counters:0,1,2,3 um:zero minimum:5000 name:FP_TRUE_SIRSTALL : SIR stall asserted and leads to a trap event:0x08 counters:0,1,2,3 um:tagged_inst_retired minimum:5000 name:IA64_TAGGED_INST_RETIRED : Retired Tagged Instructions event:0x56 counters:0,1,2,3 um:alat_capacity_miss minimum:5000 name:INST_CHKA_LDC_ALAT : Advanced Check Loads event:0x57 counters:0,1,2,3 um:alat_capacity_miss minimum:5000 name:INST_FAILED_CHKA_LDC_ALAT : Failed Advanced Check Loads event:0x55 counters:0,1,2,3 um:alat_capacity_miss minimum:5000 name:INST_FAILED_CHKS_RETIRED : Failed Speculative Check Loads # To avoid duplication from other tables the following events commented out #event:0xcd counters:0,1,2,3 um:zero minimum:5000 name:LOADS_RETIRED : Retired Loads #event:0xce counters:0,1,2,3 um:zero minimum:5000 name:MISALIGNED_LOADS_RETIRED : Retired Misaligned Load Instructions #event:0xcf counters:0,1,2,3 um:zero minimum:5000 name:UC_LOADS_RETIRED : Retired Uncacheable Loads #event:0xd1 counters:0,1,2,3 um:zero minimum:5000 name:STORES_RETIRED : Retired Stores #event:0xd2 counters:0,1,2,3 um:zero minimum:5000 name:MISALIGNED_STORES_RETIRED : Retired Misaligned Store Instructions #event:0xd0 counters:0,1,2,3 um:zero minimum:5000 name:UC_STORES_RETIRED : Retired Uncacheable Stores event:0x50 counters:0,1,2,3 um:zero minimum:5000 name:NOPS_RETIRED : Retired NOP Instructions event:0x51 counters:0,1,2,3 um:zero minimum:5000 name:PREDICATE_SQUASHED_RETIRED : Instructions Squashed Due to Predicate Off` # IA64_2 Stall Events, Table 11-6 event:0x00 counters:0,1,2,3 um:back_end_bubble minimum:5000 name:BACK_END_BUBBLE : Full pipe bubbles in main pipe event:0x02 counters:0,1,2,3 um:be_exe_bubble minimum:5000 name:BE_EXE_BUBBLE : Full pipe bubbles in main pipe due to Execution unit stalls event:0x04 counters:0,1,2,3 um:be_flush_bubble minimum:5000 name:BE_FLUSH_BUBBLE : Full pipe bubbles in main pipe due to flushes event:0xca counters:0,1,2,3 um:be_l1d_fpu_bubble minimum:5000 name:BE_L1D_FPU_BUBBLE : Full pipe bubbles in main pipe due to FP or L1 dcache # To avoid duplication from other tables the following events commented out #event:0x72 counters:0,1,2,3 um:be_lost_bw_due_to_fe minimum:5000 name:BE_LOST_BW_DUE_TO_FE : Invalid bundles if BE not stalled for other reasons event:0x01 counters:0,1,2,3 um:be_rse_bubble minimum:5000 name:BE_RSE_BUBBLE : Full pipe bubbles in main pipe due to RSE stalls event:0x71 counters:0,1,2,3 um:fe_bubble minimum:5000 name:FE_BUBBLE : Bubbles seen by FE event:0x70 counters:0,1,2,3 um:fe_lost minimum:5000 name:FE_LOST_BW : Invalid bundles at the entrance to IB event:0x73 counters:0,1,2,3 um:fe_lost minimum:5000 name:IDEAL_BE_LOST_BW_DUE_TO_FE : Invalid bundles at the exit from IB # IA64_2 Branch Events, Table 11-7 event:0x61 counters:0,1,2,3 um:be_br_mispredict_detail minimum:5000 name:BE_BR_MISPRED_DETAIL : BE branch misprediction detail event:0x11 counters:0,1,2,3 um:zero minimum:5000 name:BRANCH_EVENT : Branch Event Captured event:0x5b counters:0,1,2,3 um:br_mispred_detail minimum:5000 name:BR_MISPRED_DETAIL : Branch Mispredict Detail event:0x68 counters:0,1,2,3 um:br_mispredict_detail2 minimum:5000 name:BR_MISPRED_DETAIL2 : FE Branch Mispredict Detail (Unknown path component) event:0x54 counters:0,1,2,3 um:br_path_pred minimum:5000 name:BR_PATH_PRED : FE Branch Path Prediction Detail event:0x6a counters:0,1,2,3 um:br_path_pred2 minimum:5000 name:BR_PATH_PRED2 : FE Branch Path Prediction Detail (Unknown prediction component) event:0x63 counters:0,1,2,3 um:encbr_mispred_detail minimum:5000 name:ENCBR_MISPRED_DETAIL : Number of encoded branches retired # IA64_2 L1 Instruction Cache and Prefetch Events, Table 11-8 event:0x46 counters:0,1,2,3 um:zero minimum:5000 name:ISB_BUNPAIRS_IN : Bundle pairs written from L2 into FE event:0x43 counters:0,1,2,3 um:zero minimum:5000 name:L1I_EAR_EVENTS : Instruction EAR Events event:0x66 counters:0,1,2,3 um:zero minimum:5000 name:L1I_FETCH_ISB_HIT : "\"Just-in-time\" instruction fetch hitting in and being bypassed from ISB event:0x65 counters:0,1,2,3 um:zero minimum:5000 name:L1I_FETCH_RAB_HIT : Instruction fetch hitting in RAB event:0x41 counters:0,1,2,3 um:zero minimum:5000 name:L1I_FILLS : L1 Instruction Cache Fills event:0x44 counters:0,1,2,3 um:zero minimum:5000 name:L1I_PREFETCHES : Instruction Prefetch Requests event:0x42 counters:0,1,2,3 um:zero minimum:5000 name:L2_INST_DEMAND_READS : L1 Instruction Cache and ISB Misses event:0x67 counters:0,1,2,3 um:l1i_prefetch_stall minimum:5000 name:L1I_PREFETCH_STALL : Why prefetch pipeline is stalled? event:0x4b counters:0,1,2,3 um:zero minimum:5000 name:L1I_PURGE : L1ITLB purges handled by L1I event:0x69 counters:0,1,2,3 um:zero minimum:5000 name:L1I_PVAB_OVERFLOW : PVAB overflow event:0x64 counters:0,1,2,3 um:zero minimum:5000 name:L1I_RAB_ALMOST_FULL : Is RAB almost full? event:0x60 counters:0,1,2,3 um:zero minimum:500 name:L1I_RAB_FULL : Is RAB full? event:0x40 counters:0,1,2,3 um:zero minimum:5000 name:L1I_READS : L1 Instruction Cache Read event:0x4a counters:0,1,2,3 um:zero minimum:5000 name:L1I_SNOOP : Snoop requests handled by L1I event:0x5f counters:0,1,2,3 um:zero minimum:5000 name:L1I_STRM_PREFETCHES : L1 Instruction Cache line prefetch requests event:0x45 counters:0,1,2,3 um:zero minimum:5000 name:L2_INST_PREFETCHES : Instruction Prefetch Requests # IA64_2 L1 Data Cache Events, Table 11-10 event:0xc8 counters:0,1,2,3 um:zero minimum:5000 name:DATA_EAR_EVENTS : Data Cache EAR Events # To avoid duplication from other tables the following events commented out #event:0xc2 counters:0,1,2,3 um:zero minimum:5000 name:L1D_READS_SET0 : L1 Data Cache Reads #event:0xc3 counters:0,1,2,3 um:zero minimum:5000 name:DATA_REFERENCES_SET0 : Data memory references issued to memory pipeline #event:0xc4 counters:0,1,2,3 um:zero minimum:5000 name:L1D_READS_SET1 : L1 Data Cache Reads #event:0xc5 counters:0,1,2,3 um:zero minimum:5000 name:DATA_REFERENCES_SET1 : Data memory references issued to memory pipeline #event:0xc7 counters:0,1,2,3 um:l1d_read_misses minimum:5000 name:L1D_READ_MISSES : L1 Data Cache Read Misses # IA64_2 L1 Data Cache Set 0 Events, Table 11-11 event:0xc0 counters:1 um:zero minimum:5000 name:L1DTLB_TRANSFER : L1DTLB misses that hit in the L2DTLB for accesses counted in L1D_READS event:0xc1 counters:1 um:zero minimum:5000 name:L2DTLB_MISSES : L2DTLB Misses event:0xc2 counters:1 um:zero minimum:5000 name:L1D_READS_SET0 : L1 Data Cache Reads event:0xc3 counters:1 um:zero minimum:5000 name:DATA_REFERENCES_SET0 : Data memory references issued to memory pipeline # IA64_2 L1 Data Cache Set 1 Events, Table 11-12 event:0xc4 counters:1 um:zero minimum:5000 name:L1D_READS_SET1 : L1 Data Cache Reads event:0xc5 counters:1 um:zero minimum:5000 name:DATA_REFERENCES_SET1 : Data memory references issued to memory pipeline event:0xc7 counters:1 um:l1d_read_misses minimum:5000 name:L1D_READ_MISSES : L1 Data Cache Read Misses # IA64_2 L1 Data Cache Set 2 Events, Table 11-13 event:0xca counters:1 um:be_l1d_fpu_bubble minimum:5000 name:BE_L1D_FPU_BUBBLE : Full pipe bubbles in main pipe due to FP or L1 dcache # IA64_2 L1 Data Cache Set 3 Events, Table 11-14 event:0xcd counters:1 um:zero minimum:5000 name:LOADS_RETIRED : Retired Loads event:0xce counters:1 um:zero minimum:5000 name:MISALIGNED_LOADS_RETIRED : Retired Misaligned Load Instructions event:0xcf counters:1 um:zero minimum:5000 name:UC_LOADS_RETIRED : Retired Uncacheable Loads # IA64_2 L1 Data Cache Set 4 Events, Table 11-15 event:0xd1 counters:1 um:zero minimum:5000 name:STORES_RETIRED : Retired Stores event:0xd2 counters:1 um:zero minimum:5000 name:MISALIGNED_STORES_RETIRED : Retired Misaligned Store Instructions event:0xd0 counters:1 um:zero minimum:5000 name:UC_STORES_RETIRED : Retired Uncacheable Stores # IA64_2 L2 Unified Cache Events, Table 11-16 # To avoid duplication from other tables the following events commented out #event:0xb9 counters:0,1,2,3 um:zero minimum:5000 name:L2_BAD_LINES_SELECTED : Valid line replaced when invalid line is available #event:0xb8 counters:0,1,2,3 um:l2_bypass minimum:5000 name:L2_BYPASS : Count bypass #event:0xb2 counters:0,1,2,3 um:l2_data_references minimum:5000 name:L2_DATA_REFERENCES : Data read/write access to L2 event:0xbf counters:0,1,2,3 um:zero minimum:5000 name:L2_FILLB_FULL : L2D Fill buffer is full #event:0xb4 counters:0,1,2,3 um:l2_force_recirc minimum:5000 name:L2_FORCE_RECIRC : Forced recirculates event:0xba counters:0,1,2,3 um:recirc_ifetch minimum:5000 name:L2_GOT_RECIRC_IFETCH : Instruction fetch recirculates received by L2D #event:0xb6 counters:0,1,2,3 um:zero minimum:5000 name:L2_GOT_RECIRC_OZQ_ACC : Counts number of OZQ accesses recirculated back to L1D #event:0xa1 counters:0,1,2,3 um:l2_ifet_cancels minimum:5000 name:L2_IFET_CANCELS : Instruction fetch cancels by the L2. #event:0xa5 counters:0,1,2,3 um:l2_ifet_cancels minimum:5000 name:L2_IFET_CANCELS : Instruction fetch cancels by the L2. #event:0xa9 counters:0,1,2,3 um:l2_ifet_cancels minimum:5000 name:L2_IFET_CANCELS : Instruction fetch cancels by the L2. #event:0xad counters:0,1,2,3 um:l2_ifet_cancels minimum:5000 name:L2_IFET_CANCELS : Instruction fetch cancels by the L2. event:0xb9 counters:0,1,2,3 um:recirc_ifetch minimum:5000 name:L2_ISSUED_RECIRC_IFETCH : Instruction fetch recirculates issued by L2D #event:0xb5 counters:0,1,2,3 um:zero minimum:5000 name:L2_ISSUED_RECIRC_OZQ_ACC : Count number of times a recirculate issue was attempted and not preempted #event:0xb0 counters:0,1,2,3 um:l2_l3_access_cancel minimum:5000 name:L2_L3ACCESS_CANCEL : Canceled L3 accesses event:0xcb counters:0,1,2,3 um:zero minimum:5000 name:L2_MISSES : L2 Misses event:0xb8 counters:0,1,2,3 um:l2_ops_issued minimum:5000 name:L2_OPS_ISSUED : Different operations issued by L2D #event:0xbd counters:0,1,2,3 um:zero minimum:5000 name:L2_OZDB_FULL : L2D OZQ is full #event:0xa2 counters:0,1,2,3 um:zero minimum:5000 name:L2_OZQ_ACQUIRE : Clocks with acquire ordering attribute existed in L2 OZQ #event:0xa6 counters:0,1,2,3 um:zero minimum:5000 name:L2_OZQ_ACQUIRE : Clocks with acquire ordering attribute existed in L2 OZQ #event:0xaa counters:0,1,2,3 um:zero minimum:5000 name:L2_OZQ_ACQUIRE : Clocks with acquire ordering attribute existed in L2 OZQ #event:0xae counters:0,1,2,3 um:zero minimum:5000 name:L2_OZQ_ACQUIRE : Clocks with acquire ordering attribute existed in L2 OZQ #event:0xa0 counters:0,1,2,3 um:l2_ozq_cancels0 minimum:5000 name:L2_OZQ_CANCELS0 : L2 OZQ cancels #event:0xac counters:0,1,2,3 um:l2_ozq_cancels1 minimum:5000 name:L2_OZQ_CANCELS1 : L2 OZQ cancels #event:0xa8 counters:0,1,2,3 um:l2_ozq_cancels2 minimum:5000 name:L2_OZQ_CANCELS2 : L2 OZQ cancels #event:0xbc counters:0,1,2,3 um:zero minimum:5000 name:L2_OZQ_FULL : L2D OZQ is full #event:0xa3 counters:0,1,2,3 um:zero minimum:5000 name:L2_OZQ_RELEASE : Clocks with release ordering attribute existed in L2 OZQ #event:0xa7 counters:0,1,2,3 um:zero minimum:5000 name:L2_OZQ_RELEASE : Clocks with release ordering attribute existed in L2 OZQ #event:0xab counters:0,1,2,3 um:zero minimum:5000 name:L2_OZQ_RELEASE : Clocks with release ordering attribute existed in L2 OZQ #event:0xaf counters:0,1,2,3 um:zero minimum:5000 name:L2_OZQ_RELEASE : Clocks with release ordering attribute existed in L2 OZQ #event:0xb1 counters:0,1,2,3 um:zero minimum:5000 name:L2_REFERENCES : Requests made from L2 #event:0xba counters:0,1,2,3 um:zero minimum:5000 name:L2_STORE_HIT_SHARED : Store hit a shared line #event:0xb7 counters:0,1,2,3 um:zero minimum:5000 name:L2_SYNTH_PROBE : Synthesized Probe #event:0xbe counters:0,1,2,3 um:zero minimum:5000 name:L2_VICTIMB_FULL : L2D victim buffer is full # IA64_2 L2 Cache Events Set 0, Table 11-18 # FIXME all sorts of restrictions on how these can be combined event:0xa1 counters:0 um:l2_ifet_cancels minimum:5000 name:L2_IFET_CANCELS : Instruction fetch cancels by the L2. event:0xa5 counters:0 um:l2_ifet_cancels minimum:5000 name:L2_IFET_CANCELS : Instruction fetch cancels by the L2. event:0xa9 counters:0 um:l2_ifet_cancels minimum:5000 name:L2_IFET_CANCELS : Instruction fetch cancels by the L2. event:0xad counters:0 um:l2_ifet_cancels minimum:5000 name:L2_IFET_CANCELS : Instruction fetch cancels by the L2. event:0xa2 counters:0 um:zero minimum:5000 name:L2_OZQ_ACQUIRE : Clocks with acquire ordering attribute existed in L2 OZQ event:0xa6 counters:0 um:zero minimum:5000 name:L2_OZQ_ACQUIRE : Clocks with acquire ordering attribute existed in L2 OZQ event:0xaa counters:0 um:zero minimum:5000 name:L2_OZQ_ACQUIRE : Clocks with acquire ordering attribute existed in L2 OZQ event:0xae counters:0 um:zero minimum:5000 name:L2_OZQ_ACQUIRE : Clocks with acquire ordering attribute existed in L2 OZQ event:0xa0 counters:0 um:l2_ozq_cancels0 minimum:5000 name:L2_OZQ_CANCELS0 : L2 OZQ cancels event:0xac counters:0 um:l2_ozq_cancels1 minimum:5000 name:L2_OZQ_CANCELS1 : L2 OZQ cancels event:0xa8 counters:0 um:l2_ozq_cancels2 minimum:5000 name:L2_OZQ_CANCELS2 : L2 OZQ cancels event:0xa3 counters:0 um:zero minimum:5000 name:L2_OZQ_RELEASE : Clocks with release ordering attribute existed in L2 OZQ event:0xa7 counters:0 um:zero minimum:5000 name:L2_OZQ_RELEASE : Clocks with release ordering attribute existed in L2 OZQ event:0xab counters:0 um:zero minimum:5000 name:L2_OZQ_RELEASE : Clocks with release ordering attribute existed in L2 OZQ event:0xaf counters:0 um:zero minimum:5000 name:L2_OZQ_RELEASE : Clocks with release ordering attribute existed in L2 OZQ # IA64_2 L2 Cache Events Set 1, Table 11-19 # manual states that L2_L3ACCESS_CANCEL must be measured in PMD4. # FIXME Don't have any way of enforcing the constraints # so only l2_l3_access_cancel allowed. event:0xb0 counters:0 um:l2_l3_access_cancel minimum:5000 name:L2_L3ACCESS_CANCEL : Canceled L3 accesses #event:0xb2 counters:0,1,2,3 um:l2_data_references minimum:5000 name:L2_DATA_REFERENCES : Data read/write access to L2 #event:0xb1 counters:0,1,2,3 um:zero minimum:5000 name:L2_REFERENCES : Requests made from L2 # IA64_2 L2 Cache Events Set 2, Table 11-20 # manual states that L2_FORCE_RECIRC must be measured in PMD4. # FIXME Don't have anyway of enforcing thes constraint # so only L2_FORCE_RECIRC allowed. event:0xb4 counters:0 um:l2_force_recirc minimum:5000 name:L2_FORCE_RECIRC : Forced recirculates #event:0xb5 counters:0,1,2,3 um:zero minimum:5000 name:L2_ISSUED_RECIRC_OZQ_ACC : Count number of times a recirculate issue was attempted and not preempted #event:0xb6 counters:0,1,2,3 um:zero minimum:5000 name:L2_GOT_RECIRC_OZQ_ACC : Counts number of OZQ accesses recirculated back to L1D #event:0xb7 counters:0,1,2,3 um:zero minimum:5000 name:L2_SYNTH_PROBE : Synthesized Probe # IA64_2 L2 Cache Events Set 3, Table 11-21 # The manual states that all events in this set share the same umask. event:0xb9 counters:0 um:zero minimum:5000 name:L2_BAD_LINES_SELECTED : Valid line replaced when invalid line is available event:0xb8 counters:0 um:l2_bypass minimum:5000 name:L2_BYPASS : Count bypass event:0xba counters:0 um:zero minimum:5000 name:L2_STORE_HIT_SHARED : Store hit a shared line # IA64_2 L2 Cache Events Set 4, Table 11-22 # The manual states one of the following needs to be in pmd4 and these events # share the same umask. event:0xba counters:0 um:recirc_ifetch minimum:5000 name:L2_GOT_RECIRC_IFETCH : Instruction fetch recirculates received by L2D event:0xb9 counters:0 um:recirc_ifetch minimum:5000 name:L2_ISSUED_RECIRC_IFETCH : Instruction fetch recirculates issued by L2D event:0xb8 counters:0 um:l2_ops_issued minimum:5000 name:L2_OPS_ISSUED : Different operations issued by L2D # IA64_2 L2 Cache Events Set 5, Table 11-23 # manual states one of the following needs to be in pmd4 and # these events share the same umask event:0xbc counters:0 um:zero minimum:5000 name:L2_OZQ_FULL : L2D OZQ is full event:0xbd counters:0 um:zero minimum:5000 name:L2_OZDB_FULL : L2D OZQ is full event:0xbe counters:0 um:zero minimum:5000 name:L2_VICTIMB_FULL : L2D victim buffer is full event:0xbf counters:0 um:zero minimum:5000 name:L2_FILLB_FULL : L2D Fill buffer is full # IA64_2 L3 Cache Events, Table 11-24 event:0xdf counters:0,1,2,3 um:zero minimum:5000 name:L3_LINES_REPLACED : Cache Lines Replaced event:0xdc counters:0,1,2,3 um:zero minimum:5000 name:L3_MISSES : L3 Misses event:0xdb counters:0,1,2,3 um:zero minimum:5000 name:L3_REFERENCES : L3 References event:0xdd counters:0,1,2,3 um:l3_reads minimum:5000 name:L3_READS : L3 Reads event:0xde counters:0,1,2,3 um:l3_writes minimum:5000 name:L3_WRITES : L3 Writes # IA64_2 System Events, Table 11-26 event:0x13 counters:0,1,2,3 um:zero minimum:5000 name:CPU_CPL_CHANGES : Privilege Level Changes event:0x52 counters:0,1,2,3 um:zero minimum:5000 name:DATA_DEBUG_REGISTER_FAULT : Fault due to data debug reg. Match to load/store instruction event:0xc6 counters:0,1,2,3 um:zero minimum:5000 name:DATA_DEBUG_REGISTER_MATCHES : Data debug register matches data address of memory reference event:0x9e counters:0,1,2,3 um:extern_dp_pins_0_to_3 minimum:5000 name:EXTERN_DP_PINS_0_TO_3 : DP pins 0-3 asserted event:0x9f counters:0,1,2,3 um:extern_dp_pins_4_to_5 minimum:5000 name:EXTERN_DP_PINS_4_TO_5 : DP pins 4-5 asserted event:0x53 counters:0,1,2,3 um:zero minimum:5000 name:SERIALIZATION_EVENTS : Number of srlz.I instructions # IA64_2 TLB Events, Table 11-28 event:0xc9 counters:0,1,2,3 um:zero minimum:5000 name:DTLB_INSERTS_HPW : Hardware Page Walker Installs to DTLB" event:0x2c counters:0,1,2,3 um:zero minimum:500 name:DTLB_INSERTS_HPW_RETIRED : VHPT entries inserted into DTLB by HW PW event:0x2d counters:0,1,2,3 um:zero minimum:500 name:HPW_DATA_REFERENCES : Data memory references to VHPT #event:0xc1 counters:1 um:zero minimum:5000 name:L2DTLB_MISSES : L2DTLB Misses event:0x48 counters:0,1,2,3 um:zero minimum:5000 name:L1ITLB_INSERTS_HPW : L1ITLB Hardware Page Walker Inserts event:0x47 counters:0,1,2,3 um:itlb_misses_fetch minimum:5000 name:ITLB_MISSES_FETCH : ITLB Misses Demand Fetch #event:0xc0 counters:1 um:zero minimum:5000 name:L1DTLB_TRANSFER : L1DTLB misses that hit in the L2DTLB for accesses counted in L1D_READS # IA64_2 System Bus Events, Table 11-30 event:0x87 counters:0,1,2,3 um:bus minimum:5000 name:BUS_ALL : Bus Transactions event:0x9c counters:0,1,2,3 um:zero minimum:5000 name:BUS_BRQ_LIVE_REQ_HI : BRQ Live Requests (two most-significant-bit of the 5-bit outstanding BRQ request count) event:0x9b counters:0,1,2,3 um:zero minimum:5000 name:BUS_BRQ_LIVE_REQ_LO : BRQ Live Requests (three least-significant-bit of the 5-bit outstanding BRQ request count event:0x9d counters:0,1,2,3 um:zero minimum:5000 name:BUS_BRQ_REQ_INSERTED : BRQ Requests Inserted event:0x88 counters:0,1,2,3 um:zero minimum:5000 name:BUS_DATA_CYCLE : Valid data cycle on the Bus event:0x84 counters:0,1,2,3 um:zero minimum:5000 name:BUS_HITM : Bus Hit Modified Line Transactions event:0x90 counters:0,1,2,3 um:bus minimum:5000 name:BUS_IO : IA-32 Compatible IO Bus Transactions event:0x98 counters:0,1,2,3 um:zero minimum:5000 name:BUS_IOQ_LIVE_REQ_HI : Inorder Bus Queue Requests (two most-significant-bit of the 4-bit outstanding IOQ request count) event:0x97 counters:0,1,2,3 um:zero minimum:5000 name:BUS_IOQ_LIVE_REQ_LO : Inorder Bus Queue Requests (two least-significant-bit of the 4-bit outstanding IOQ request count) event:0x93 counters:0,1,2,3 um:bus_lock minimum:5000 name:BUS_LOCK : IA-32 Compatible Bus Lock Transactions event:0x8e counters:0,1,2,3 um:bus_backsnp_req minimum:5000 name:BUS_BACKSNP_REQ : Bus Back Snoop Requests event:0x8a counters:0,1,2,3 um:bus_memory minimum:5000 name:BUS_MEMORY : Bus Memory Transactions event:0x8b counters:0,1,2,3 um:bus_mem_read minimum:5000 name:BUS_MEM_READ : Full Cache line D/I memory RD, RD invalidate, and BRIL event:0x94 counters:0,1,2,3 um:zero minimum:5000 name:BUS_MEM_READ_OUT_HI : Outstanding memory RD transactions event:0x95 counters:0,1,2,3 um:zero minimum:5000 name:BUS_MEM_READ_OUT_LO : Outstanding memory RD transactions event:0x9a counters:0,1,2,3 um:zero minimum:5000 name:BUS_OOQ_LIVE_REQ_HI : Out-of-order Bus Queue Requests (two most-significant-bit of the 4-bit outstanding OOQ request count) event:0x99 counters:0,1,2,3 um:zero minimum:5000 name:BUS_OOQ_LIVE_REQ_LO : Out-of-order Bus Queue Requests (three least-significant-bit of the 4-bit outstanding OOQ request count) event:0x8c counters:0,1,2,3 um:bus minimum:5000 name:BUS_RD_DATA : Bus Read Data Transactions event:0x80 counters:0,1,2,3 um:zero minimum:5000 name:BUS_RD_HIT : Bus Read Hit Clean Non-local Cache Transactions event:0x81 counters:0,1,2,3 um:zero minimum:5000 name:BUS_RD_HITM : Bus Read Hit Modified Non-local Cache Transactions event:0x83 counters:0,1,2,3 um:zero minimum:5000 name:BUS_RD_INVAL_ALL_HITM : Bus BIL or BRIL Transaction Results in HITM event:0x82 counters:0,1,2,3 um:zero minimum:5000 name:BUS_RD_INVAL_HITM : Bus BIL Transaction Results in HITM event:0x91 counters:0,1,2,3 um:bus minimum:5000 name:BUS_RD_IO : IA-32 Compatible IO Read Transactions event:0x8d counters:0,1,2,3 um:bus minimum:5000 name:BUS_RD_PRTL : Bus Read Partial Transactions event:0x96 counters:0,1,2,3 um:zero minimum:5000 name:BUS_SNOOPQ_REQ : Bus Snoop Queue Requests event:0x86 counters:0,1,2,3 um:bus minimum:5000 name:BUS_SNOOPS : Bus Snoops Total event:0x85 counters:0,1,2,3 um:bus_snoop minimum:5000 name:BUS_SNOOPS_HITM : Bus Snoops HIT Modified Cache Line event:0x8f counters:0,1,2,3 um:bus_snoop minimum:5000 name:BUS_SNOOP_STALL_CYCLES : Bus Snoop Stall Cycles (from any agent) event:0x92 counters:0,1,2,3 um:bus_wr_wb minimum:5000 name:BUS_WR_WB : Bus Write Back Transactions event:0x89 counters:0,1,2,3 um:mem_read_current minimum:5000 name:MEM_READ_CURRENT : Current Mem Read Transactions On Bus # RSE Events, Table 11-34 event:0x2b counters:0,1,2,3 um:zero minimum:500 name:RSE_CURRENT_REGS_2_TO_0 : Current RSE registers event:0x2a counters:0,1,2,3 um:zero minimum:500 name:RSE_CURRENT_REGS_5_TO_3 : Current RSE registers event:0x26 counters:0,1,2,3 um:zero minimum:500 name:RSE_CURRENT_REGS_6 : Current RSE registers event:0x29 counters:0,1,2,3 um:zero minimum:500 name:RSE_DIRTY_REGS_2_TO_0 : Dirty RSE registers event:0x28 counters:0,1,2,3 um:zero minimum:500 name:RSE_DIRTY_REGS_5_TO_3 : Dirty RSE registers event:0x24 counters:0,1,2,3 um:zero minimum:500 name:RSE_DIRTY_REGS_6 : Dirty RSE registers event:0x32 counters:0,1,2,3 um:zero minimum:500 name:RSE_EVENT_RETIRED : Retired RSE operations event:0x20 counters:0,1,2,3 um:rse_references_retired minimum:500 name:RSE_REFERENCES_RETIRED : RSE Accesses # IA64 Performance Monitors Ordered by Code, Table 11-36 event:0xbb counters:0,1,2,3 um:zero minimum:5000 name:TAGGED_L2_DATA_RETURN_POR : Tagged L2 Data Return Ports 0/1 oprofile-0.9.9/events/ia64/itanium2/unit_masks0000664000076400007640000002167012175510132016205 00000000000000# IA-64 Itanium 2 possible unit masks # # The information for the following entries for the Itanium 2 # came from Intel Itanium 2 Processor Reference Manual For # Software Development and Optimization, June 2002, Document # number 251110-001. name:zero type:mandatory default:0x0 0x0 No unit mask # CPU_IA64_2 Table 11-37, 11-72 name:alat_capacity_miss type:bitmask default:0x03 0x1 INT 0x2 FP 0x3 ALL # CPU_IA64_2 Table 11-38 name:back_end_bubble type:exclusive default:0x00 0x0 ALL 0x1 FE 0x2 L1D_FPU_RSE # CPU_IA64_2 Table 11-39 name:be_br_mispredict_detail type:exclusive default:0x00 0x0 ANY 0x1 STG 0x2 ROT 0x3 PFS # CPU_IA64_2 Table 11-40 name:be_exe_bubble type:exclusive default:0x00 0x0 ALL 0x1 GRALL 0x2 FRALL 0x3 PR 0x4 ARCR 0x5 GRCR 0x6 CANCEL 0x7 BANK_SWITCH 0x8 ARCR_PR_CANCEL_BANK # CPU_IA64_2 Table 11-41 name:be_flush_bubble type:exclusive default:0x00 0x0 ALL 0x1 BRU 0x2 XPN # CPU_IA64_2 Table 11-42 name:be_l1d_fpu_bubble type:exclusive default:0x00 0x0 ALL 0x1 FPU 0x2 L1D 0x3 L1D_FULLSTBUF 0x4 L1D_DCURECIR 0x5 L1D_HPW 0x7 L1D_FILLCONF 0x8 L1D_DCS 0x9 L1D_L2BPRESS 0xa L1D_TLB 0xb L1D_LDCONF 0xc L1D_LDCHK 0xd L1D_NAT 0xe L1D_STBUFRECIR 0xf L1D_NATCONF # CPU_IA64_2 Table 11-43 # FIXME: events using this is commented out in events #name:be_lost_bw_due_to_fe type:exclusive default:0x00 # 0x0 ALL # 0x1 FEFLUSH # 0x4 UNREACHED # 0x5 IBFULL # 0x6 IMISS # 0x7 TLBMISS # 0x8 FILL_RECIRC # 0x9 BI # 0xa BRQ # 0xb PLP # 0xc BR_ILOCK # 0xd BUBBLE # CPU_IA64_2 Table 11-44 name:be_rse_bubble type:exclusive default:0x00 0x0 ALL 0x1 BANK_SWITCH 0x2 AR_DEP 0x3 OVERFLOW 0x4 UNDERFLOW 0x5 LOADRS # CPU_IA64_2 Table 11-45 name:br_mispred_detail type:exclusive default:0x00 0x0 ALL.ALL_PRED 0x1 ALL.CORRECT_PRED 0x2 ALL.WRONG_PATH 0x3 ALL.WRONG_TARGET 0x4 IPREL.ALL_PRED 0x5 IPREL.CORRECT_PRED 0x6 IPREL.WRONG_PATH 0x7 IPREL.WRONG_TARGET 0x8 RETURN.ALL_PRED 0x9 RETURN.CORRECT_PRED 0xa RETURN.WRONG_PATH 0xb RETURN.WRONG_TARGET 0xc NRETIND.ALL_PRED 0xd NRETIND.CORRECT_PRED 0xe NRETIND.WRONG_PATH 0xf NRETIND.WRONG_TARGET # CPU_IA64_2 Table 11-46 name:br_mispredict_detail2 type:exclusive default:0x00 0x0 ALL.ALL_UNKNOWN_PRED 0x1 ALL.UKNOWN_PATH_CORRECT_PRED 0x2 ALL.UKNOWN_PATH_WRONG_PATH 0x4 IPREL.ALL_UNKNOWN_PRED 0x5 IPREL.UNKNOWN_PATH_CORRECT_PRED 0x6 IPREL.UNKNOWN_PATH_WRONG_PATH 0x8 RETURN.ALL_UNKNOWN_PRED 0x9 RETURN.UNKNOWN_PATH_CORRECT_PRED 0xa RETURN.UNKNOWN_PATH_WRONG_PATH 0xc NRETIND.ALL_UNKNOWN_PRED 0xd NRETIND.UNKNOWN_PATH_CORRECT_PRED 0xe NRETIND.UNKNOWN_PATH_WRONG_PATH # CPU_IA64_2 Table 11-47 name:br_path_pred type:exclusive default:0x00 0x0 ALL.MISPRED_NOTTAKEN 0x1 ALL.MISPRED_TAKEN 0x2 ALL.OKPRED_NOTTAKEN 0x3 ALL.OKPRED_TAKEN 0x4 IPREL.MISPRED_NOTTAKEN 0x5 IPREL.MISPRED_TAKEN 0x6 IPREL.OKPRED_NOTTAKEN 0x7 IPREL.OKPRED_TAKEN 0x8 RETURN.MISPRED_NOTTAKEN 0x9 RETURN.MISPRED_TAKEN 0xa RETURN.OKPRED_NOTTAKEN 0xb RETURN.OKPRED_TAKEN 0xc NRETIND.MISPRED_NOTTAKEN 0xd NRETIND.MISPRED_TAKEN 0xe NRETIND.OKPRED_NOTTAKEN 0xf NRETIND.OKPRED_TAKEN # CPU_IA64_2 Table 11-48 name:br_path_pred2 type:exclusive default:0x00 0x0 ALL.UNKNOWNPRED_NOTTAKEN 0x1 ALL.UNKNOWNPRED_TAKEN 0x4 IPREL.UNKNOWNPRED_NOTTAKEN 0x5 IPREL.UNKNOWNPRED__TAKEN 0x8 RETURN.UNKNOWNPRED_NOTTAKEN 0x9 RETURN.UNKNOWNPRED_TAKEN 0xc NRETIND.UNKNOWNPRED_NOTTAKEN 0xd NRETIND.UNKNOWNPRED_TAKEN # CPU_IA64_2 Table 11-49, 11-51, 11-55, 11-56, 11-57, 11-58 name:bus type:exclusive default:0x03 0x1 IO 0x2 SELF 0x3 ANY # CPU_IA64_2 Table 11-50 b0001 name:bus_backsnp_req type:mandatory default:0x01 0x1 0x0 # CPU_IA64_2 Table 11-52 name:bus_lock type:exclusive default:0x03 0x2 SELF 0x3 ANY # CPU_IA64_2 Table 11-53 name:bus_memory type:exclusive default:0x0f 0x5 EQ_128BYTEIO 0x6 EQ_128BYTE_SELF 0x7 EQ_128BYTE_ANY 0x9 LT_128BYTEIO 0xa LT_128BYTE_SELF 0xb LT_128BYTE_ANY 0xd ALL IO 0xe ALL SELF 0xf ALL ANY # CPU_IA64_2 Table 11-54 name:bus_mem_read type:exclusive default:0x0f 0x1 BIL IO 0x2 BIL SELF 0x3 BIL ANY 0x5 BRL IO 0x6 BRL SELF 0x7 BRL_ANY 0x9 BRIL IO 0xa BRIL SELF 0xb BRIL ANY 0xd ALL IO 0xe ALL SELF 0xf ALL ANY # CPU_IA64_2 Table 11-59, 11-60 name:bus_snoop type:exclusive default:0x03 0x2 SELF 0x3 ANY # CPU_IA64_2 Table 11-61 name:bus_wr_wb type:exclusive default:0x0f 0x5 EQ_128BYTE IO 0x6 EQ_128BYTE SELF 0x7 EQ_128BYTE ANY 0xa CCASTOUT SELF 0xb CCASTOUT ANY 0xd ALL IO 0xe ALL SELF 0xf ALL ANY # CPU_IA64_2 Table 11-62 name:encbr_mispred_detail type:exclusive default:0x0 0x0 ALL.ALL_PRED 0x1 ALL.CORRECT_PRED 0x2 ALL.WRONG_PATH 0x3 ALL.WRONG_TARGET 0x8 OVERSUB.ALL_PRED 0x9 OVERSUB.CORRECT_PRED 0xa OVERSUB.CORRECT_PRED 0xb OVERSUB.WRONGPATH 0xc ALL2.ALL_PRED 0xd ALL2.CORRECT_PRED 0xe ALL2.WRONG_PATH 0xf ALL2.WRONG_TARGET # CPU_IA64_2 Table 11-63 name:extern_dp_pins_0_to_3 type:bitmask default:0xf 0x1 PIN0 0x2 PIN1 0x4 PIN2 0x8 PIN3 0xf ALL # CPU_IA64_2 Table 11-64 name:extern_dp_pins_4_to_5 type:bitmask default:0x03 0x1 PIN4 0x2 PIN5 0xf ALL # CPU_IA64_2 Table 11-65 name:fe_bubble type:exclusive default:0x0 0x0 ALL 0x1 FEFLUSH 0x3 GROUP1 0x4 GROUP2 0x5 IBFULL 0x6 IMISS 0x7 TLBMISS 0x8 FILL_RECIRC 0x9 BRANCH 0xa GROUP3 0xb ALLBUT_FEFLUSH_BUBBLE 0xc ALLBUT_IBFULL 0xd BUBBLE # CPU_IA64_2 Table 11-66, 11-69*/ name:fe_lost type:exclusive default:0x0 0x0 ALL 0x1 FEFLUSH 0x4 UNREACHED 0x5 IBFULL 0x6 IMISS 0x7 TLBMISS 0x8 FILL_RECIRC 0x9 BI 0xa BRQ 0xb PLP 0xc BR_ILOCK 0xd BUBBLE # CPU_IA64_2 Table 11-67, 11-79, 11-86, 11-90, 11-92 b0000 # FIXME: events using this is commented out in events #name:this type:exclusive default:0x0 # 0x0 THIS # CPU_IA64_2 Table 11-68 name:tagged_inst_retired type:exclusive default:0x0 0x0 IBRP0_PMB8 0x1 IBRP1_PMB9 0x2 IBRP2_PMC8 0x3 IBRP3_PMC9 # CPU_IA64_2 Table 11-73 name:itlb_misses_fetch type:exclusive default:0x3 0x1 L1ITLB 0x2 L2ITLB 0x3 ALL # CPU_IA64_2 Table 11-74 name:l1d_read_misses type:exclusive default:0x0 0x0 ALL 0x1 RSE_FILL # CPU_IA64_2 Table 11-75 name:l1i_prefetch_stall type:exclusive default:0x3 0x2 FLOW 0x3 ALL # CPU_IA64_2 Table 11-76, 11-91 b0000 # FIXME: events using this is commented out in events #name:l2_lines type:exclusive default:0x0 # 0x0 ANY # CPU_IA64_2 Table 11-77 name:l2_bypass type:exclusive default:0x0 0x0 L2_DATA1 0x1 L2_DATA2 0x2 L3_DATA1 0x4 L2_INST1 0x5 L2_INST2 0x6 L3_INST1 # CPU_IA64_2 Table 11-78 # FIXME: events using this is commented out in events #name:l2_data_references type:bitmask default:0x3 # 0x1 L2_DATA_READS # 0x2 L2_DATA_WRITES # 0x3 L2_ALL # CPU_IA64_2 Table 11-80 name:l2_force_recirc type:exclusive default:0x0 0x0 ANY 0x1 SMC_HIT 0x2 L1W 0x4 TAG_NOTOK 0x5 TRAN_PREF 0x6 SNP_OR_L3 0x8 VIC_PEND 0x9 FILL_HIT 0xa IPF_MISS 0xb VIC_BUF_FULL 0xc OZQ_MISS 0xd SAME_INDEX 0xe FRC_RECIRC # CPU_IA64_2 Table 11-81, 11-83 b1000 name:recirc_ifetch type:mandatory default:0x8 0x8 default:0x0} } }; # CPU_IA64_2 Table 11-82 name:l2_ifet_cancels type:exclusive default:0x0 0x0 ANY 0x2 BYPASS 0x4 DIDNT_RECIR 0x5 RECIRC_OVER_SUB 0x6 ST_FILL_WB 0x7 DATA_RD 0x8 PREEMPT 0xc CHG_PRIO 0xd IFETCH_BYP # CPU_IA64_2 Table 11-84 name:l2_l3_access_cancel type:exclusive default:0x9 0x1 SPEC_L3_BYP 0x2 FILLD_FULL 0x5 UC_BLOCKED 0x6 INV_L3_BYP 0x8 EBL_REJECT 0x9 ANY 0xa DFETCH 0xb IFETCH # CPU_IA64_2 Table 11-85 name:l2_ops_issued type:exclusive default:0x8 0x8 INT_LOAD 0x9 FP_LOAD 0xa RMW 0xb STORE 0xc NST_NLD # CPU_IA64_2 Table 11-87 name:l2_ozq_cancels0 type:exclusive default:0x0 0x0 ANY 0x1 LATE_SPEC_BYP 0x2 LATE_RELEASE 0x3 LATE_ACQUIRE 0x4 LATE_BYP_EFFRELEASE # CPU_IA64_2 Table 11-88 name:l2_ozq_cancels1 type:exclusive default:0x1 0x0 REL 0x1 BANK_CONF 0x2 L2D_ST_MAT 0x4 SYNC 0x5 HPW_IFETCH_CONF 0x6 CANC_L2M_ST 0x7 L1_FILL_CONF 0x8 ST_FILL_CONF 0x9 CCV 0xa SEM 0xb L2M_ST_MAT 0xc MFA 0xd L2A_ST_MAT 0xe L1DF_L2M 0xf ECC # CPU_IA64_2 Table 11-89 name:l2_ozq_cancels2 type:exclusive default:0x0 0x0 RECIRC_OVER_SUB 0x1 CANC_L2C_ST 0x2 L2C_ST_MAT 0x3 SCRUB 0x4 ACQ 0x5 READ_WB_CONF 0x6 OZ_DATA_CONF 0x8 L2FILL_ST_CONF 0x9 DIDNT_RECIRC 0xa WEIRD 0xc OVER_SUB 0xd CANC_L2D_ST 0xf D_IFET # CPU_IA64_2 Table 11-93 name:l3_reads type:exclusive default:0x3 0x1 DINST_FETCH.HIT 0x2 DINST_FETCH.MISS 0x3 DINST_FETCH.ALL 0x5 INST_FETCH.HIT 0x6 INST_FETCH.MISS 0x7 INST_FETCH.ALL 0x9 DATA_READ.HIT 0xa DATA_READ.MISS 0xb DATA_READ.ALL 0xd ALL.HIT 0xe ALL.MISS 0xf ALL.ALL # CPU_IA64_2 Table 11-94 name:l3_writes type:exclusive default:0x7 0x5 DATA_WRITE.HIT 0x6 DATA_WRITE.MISS 0x7 DATA_WRITE.ALL 0x9 L2_WB.HIT 0xa L2_WB.MISS 0xb L2_WB.ALL 0xd ALL.HIT 0xe ALL.MISS 0xf ALL.ALL # CPU_IA64_2 Table 11-95 name:mem_read_current type:exclusive default:0x3 0x1 IO 0x3 ANY # CPU_IA64_2 Table 11-96 name:rse_references_retired type:bitmask default:0x3 0x1 LOAD 0x2 STORE 0x3 ALL # CPU_IA64_2 Table 11-97 bitmask name:syll_not_dispersed type:bitmask default:0xf 0x1 EXPL 0x2 IMPL 0x4 FE 0x8 MLI 0xf ALL # CPU_IA64_2 Table 11-98 name:syll_overcount type:exclusive default:0x3 0x1 EXPL 0x2 IMPL 0x3 ALL oprofile-0.9.9/events/ia64/itanium/0000775000076400007640000000000012175511556014110 500000000000000oprofile-0.9.9/events/ia64/itanium/events0000664000076400007640000000060412175510132015244 00000000000000# IA-64 Itanium 1 events event:0x12 counters:0,1,2,3 um:zero minimum:500 name:CPU_CYCLES : CPU Cycles event:0x08 counters:0,1 um:zero minimum:500 name:IA64_INST_RETIRED : IA-64 Instructions Retired event:0x15 counters:0,1,2,3 um:zero minimum:500 name:IA32_INST_RETIRED : IA-32 Instructions Retired # FIXME: itanium doc describe a lot of other events, should we add them w/o any testing ? oprofile-0.9.9/events/ia64/itanium/unit_masks0000664000076400007640000000013712175510132016116 00000000000000# IA-64 Itanium 1 possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/tile/0000775000076400007640000000000012175511556012634 500000000000000oprofile-0.9.9/events/tile/tilegx/0000775000076400007640000000000012175511557014131 500000000000000oprofile-0.9.9/events/tile/tilegx/events0000664000076400007640000003357112175510132015275 00000000000000# TILE-Gx Events event:0x180 counters:0,1,2,3 um:zero minimum:500 name:ZERO : Always zero - no event ever happens event:0x181 counters:0,1,2,3 um:zero minimum:20000 name:ONE : Always one - an event occurs every cycle event:0x182 counters:0,1,2,3 um:zero minimum:500 name:PASS_WRITTEN : The event indicates that the PASS SPR was written event:0x183 counters:0,1,2,3 um:zero minimum:500 name:FAIL_WRITTEN : The event indicates that the FAIL SPR was written event:0x184 counters:0,1,2,3 um:zero minimum:500 name:DONE_WRITTEN : The event indicates that the DONE SPR was written event:0xc4 counters:0,1,2,3 um:zero minimum:500 name:L1D_FILL_STALL : The event occurs when a memory operation stalls due to L1 DCache being busy doing a fill. event:0xc6 counters:0,1,2,3 um:zero minimum:500 name:LOAD_HIT_STALL : The event occurs when an instruction 2 cycles after a load stalls due to a source operand being the destination. The L1 DCache hit latency is two cycles, so the instruction would stall on a miss but not on a hit. event:0xc7 counters:0,1,2,3 um:zero minimum:500 name:LOAD_STALL : The event occurs when an instruction stalls due to a source operand being the destination of a load instruction. This event happens on all cycles that stall except for the one 2 cycles after the load, which is counted by LOAD_HIT_STALL event. event:0xc8 counters:0,1,2,3 um:zero minimum:500 name:ALU_SRC_STALL : The event occurs when an instruction stalls due to a source operand being the destination of an ALU instruction. event:0xc9 counters:0,1,2,3 um:zero minimum:500 name:IDN_SRC_STALL : The event occurs when an instruction stalls due to IDN source register not available. event:0xca counters:0,1,2,3 um:zero minimum:500 name:UDN_SRC_STALL : The event occurs when an instruction stalls due to UDN source register not available. event:0xcb counters:0,1,2,3 um:zero minimum:500 name:MF_STALL : The event during stalls for Memory Fence instruction. event:0xcc counters:0,1,2,3 um:zero minimum:500 name:SLOW_SPR_STALL : The event occurs during stalls to slow SPR access. event:0xcd counters:0,1,2,3 um:zero minimum:500 name:NETWORK_DEST_STALL : The event occurs when a valid instruction in pipeline Decode stage stalls due to network destination full. event:0xce counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_STALL : The event occurs when a valid instruction in pipeline Decode stage stalls for any reason. event:0xd4 counters:0,1,2,3 um:zero minimum:500 name:ITLB_MISS_INTERRUPT : The event occurs when an ITLB_MISS interrupt is taken. event:0xd5 counters:0,1,2,3 um:zero minimum:500 name:INTERRUPT : The event occurs when any interrupt is taken. event:0xdb counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_BUNDLE : The event occurs when there is a valid instruction in pipeline WB stage (e.g. when an instruction is commited). event:0x40 counters:0,1,2,3 um:zero minimum:500 name:TLB : The event occurs when a data memory operation is issued and the data translation lookaside buffer (DTLB) is used to translate the virtual address into the physical address. event:0x41 counters:0,1,2,3 um:zero minimum:500 name:READ : The event occurs when a load is issued. event:0x42 counters:0,1,2,3 um:zero minimum:500 name:WRITE : The event occurs when a store is issed. event:0x43 counters:0,1,2,3 um:zero minimum:500 name:TLB_EXCEPTION : The event occurs when the address of a data stream memory operation causes a Data TLB Exception including TLB Misses and protection violations. event:0x44 counters:0,1,2,3 um:zero minimum:500 name:READ_MISS : The event occurs when a load is issued and data is not returned from the level 1 data cache. event:0x45 counters:0,1,2,3 um:zero minimum:500 name:WRITE_MISS : The event occurs when a store is issued and the 16-byte aligned block (level 1 data cache line size) containing the address is not present at the level 1 data cache. event:0x80 counters:0,1,2,3 um:zero minimum:500 name:SNOOP_INCREMENT_READ : The event occurs when a read request is received from another Tile off the SDN and the Level 3 cache will track the share state. event:0x81 counters:0,1,2,3 um:zero minimum:500 name:SNOOP_NON_INCREMENT_READ : The event occurs when a read request is received from another Tile off the SDN and the Level 3 cache will not track the share state. event:0x82 counters:0,1,2,3 um:zero minimum:500 name:SNOOP_WRITE : The event occurs when a write request is received from another Tile off the SDN. event:0x83 counters:0,1,2,3 um:zero minimum:500 name:SNOOP_IO_READ : The event occurs when a read request is received from an IO device off the SDN. event:0x84 counters:0,1,2,3 um:zero minimum:500 name:SNOOP_IO_WRITE : The event occurs when a write request is received from an IO device off the SDN. event:0x85 counters:0,1,2,3 um:zero minimum:500 name:LOCAL_DATA_READ : The event occurs when a data read request is received from the main processor and the Level 3 cache resides in the Tile. event:0x86 counters:0,1,2,3 um:zero minimum:500 name:LOCAL_WRITE : The event occurs when a write request is received from the main processor and the Level 3 cache resides in the Tile. event:0x87 counters:0,1,2,3 um:zero minimum:500 name:LOCAL_INSTRUCTION_READ : The event occurs when an instruction read request is received from the main processor and the Level 3 cache resides in the Tile. event:0x88 counters:0,1,2,3 um:zero minimum:500 name:REMOTE_DATA_READ : The event occurs when a data read request is received from the main processor and the Level 3 cache resides in another Tile. event:0x89 counters:0,1,2,3 um:zero minimum:500 name:REMOTE_WRITE : The event occurs when a write request is received from the main processor and the Level 3 cache resides in another Tile. event:0x8a counters:0,1,2,3 um:zero minimum:500 name:REMOTE_INSTRUCTION_READ : The event occurs when an instruction read request is received from the main processor and the Level 3 cache resides in another Tile. event:0x8b counters:0,1,2,3 um:zero minimum:500 name:COHERENCE_INVALIDATION : The event occurs when a coherence invalidation is received from another Tile off the QDN. event:0x8c counters:0,1,2,3 um:zero minimum:500 name:SNOOP_INCREMENT_READ_MISS : The event occurs when a read request is received from another Tile off the SDN and misses the Level 3 cache. The level 3 cache will track the share state. event:0x8d counters:0,1,2,3 um:zero minimum:500 name:SNOOP_NON_INCREMENT_READ_MISS : The event occurs when a read request is received from another Tile off the SDN and misses the Level 3 cache. The Level 3 cache will not track the share state. event:0x8e counters:0,1,2,3 um:zero minimum:500 name:SNOOP_WRITE_MISS : The event occurs when a write request is received from another Tile off the SDN and misses the Level 3 cache. event:0x8f counters:0,1,2,3 um:zero minimum:500 name:SNOOP_IO_READ_MISS : The event occurs when a read request is received from an IO device off the SDN and misses the Level 3 cache. event:0x90 counters:0,1,2,3 um:zero minimum:500 name:SNOOP_IO_WRITE_MISS : The event occurs when a write request is received from an IO device off the SDN and misses the Level 3 cache. event:0x91 counters:0,1,2,3 um:zero minimum:500 name:LOCAL_DATA_READ_MISS : The event occurs when a data read request is received from the main processor and misses the Level 3 cache resided in the Tile. event:0x92 counters:0,1,2,3 um:zero minimum:500 name:LOCAL_WRITE_MISS : The event occurs when a write request is received from the main processor and misses the Level 3 cache resided in the Tile. event:0x93 counters:0,1,2,3 um:zero minimum:500 name:LOCAL_INSTRUCTION_READ_MISS : The event occurs when an instruction read request is received from the main processor and misses the Level 3 cache resided in the Tile. event:0x94 counters:0,1,2,3 um:zero minimum:500 name:REMOTE_DATA_READ_MISS : The event occurs when a data read request is received from the main processor and misses the Level 2 cache. The Level 3 cache resides in another Tile. event:0x95 counters:0,1,2,3 um:zero minimum:500 name:REMOTE_WRITE_MISS : The event occurs when a write request is received from the main processor and misses the Level 2 cache. The Level 3 cache resides in another Tile. event:0x96 counters:0,1,2,3 um:zero minimum:500 name:REMOTE_INSTRUCTION_READ_MISS : The event occurs when an instruction read request is received from the main processor and misses the Level 2 cache. The Level 3 cache resides in another Tile. event:0x97 counters:0,1,2,3 um:zero minimum:500 name:COHERENCE_INVALIDATION_HIT : The event occurs when a coherence invalidation is received from another Tile off the QDN and hits the level 2 cache. event:0x98 counters:0,1,2,3 um:zero minimum:500 name:CACHE_WRITEBACK : The event occurs when a cache writeback to main memory, including victim writes or explicit flushes, leaves the Tile. event:0x99 counters:0,1,2,3 um:zero minimum:500 name:SDN_STARVED : The event occurs when a snoop is received and the controller enters the SDN starved condition. event:0x9a counters:0,1,2,3 um:zero minimum:500 name:RDN_STARVED : The event occurs when the controller enters the RDN starved condition. event:0x9b counters:0,1,2,3 um:zero minimum:500 name:QDN_STARVED : The event occurs when the controller enters the QDN starved condition. event:0x9c counters:0,1,2,3 um:zero minimum:500 name:SKF_STARVED : The event occurs when the controller enters the skid FIFO starved condition. event:0x9d counters:0,1,2,3 um:zero minimum:500 name:RTF_STARVED : The event occurs when the controller enters the re-try FIFO starved condition. event:0x9e counters:0,1,2,3 um:zero minimum:500 name:IREQ_STARVED : The event occurs when the controller enters the instruction stream starved condition. event:0xa1 counters:0,1,2,3 um:zero minimum:500 name:LOCAL_WRITE_BUFFER_ALLOC : The event occurs when a write request is received from the main processor and allocates a write buffer in the Level 3 cache resided in the Tile. event:0xa2 counters:0,1,2,3 um:zero minimum:500 name:REMOTE_WRITE_BUFFER_ALLOC : The event occurs when a write request is received from the main processor and allocates a write buffer in the Level 2 cache resided in the Tile. The Level 3 cache resides in another Tile event:0x00 counters:0,1,2,3 um:zero minimum:500 name:UDN_PACKET_SENT : Main processor finished sending a packet to the UDN. event:0x01 counters:0,1,2,3 um:zero minimum:500 name:UDN_WORD_SENT : UDN word sent to an output port. Participating ports are selected with the UDN_EVT_PORT_SEL field. event:0x02 counters:0,1,2,3 um:zero minimum:500 name:UDN_BUBBLE : Bubble detected on an output port. A bubble is defined as a cycle in which no data is being sent, but the first word of a packet has already traversed the switch. Participating ports are selected with the UDN_EVT_PORT_SEL field. event:0x03 counters:0,1,2,3 um:zero minimum:500 name:UDN_CONGESTION : Out of credit on an output port. Participating ports are selected with the UDN_EVT_PORT_SEL field. event:0x04 counters:0,1,2,3 um:zero minimum:500 name:IDN_PACKET_SENT : Main processor finished sending a packet to the IDN. event:0x05 counters:0,1,2,3 um:zero minimum:500 name:IDN_WORD_SENT : IDN word sent to an output port. Participating ports are selected with the IDN_EVT_PORT_SEL field. event:0x06 counters:0,1,2,3 um:zero minimum:500 name:IDN_BUBBLE : Bubble detected on an output port. A bubble is defined as a cycle in which no data is being sent, but the first word of a packet has already traversed the switch. Participating ports are selected with the IDN_EVT_PORT_SEL field. event:0x07 counters:0,1,2,3 um:zero minimum:500 name:IDN_CONGESTION : Out of credit on an output port. Participating ports are selected with the IDN_EVT_PORT_SEL field. event:0x08 counters:0,1,2,3 um:zero minimum:500 name:RDN_PACKET_SENT : Main processor finished sending a packet to the RDN. event:0x09 counters:0,1,2,3 um:zero minimum:500 name:RDN_WORD_SENT : RDN word sent to an output port. Participating ports are selected with the RDN_EVT_PORT_SEL field. event:0x0a counters:0,1,2,3 um:zero minimum:500 name:RDN_BUBBLE : Bubble detected on an output port. A bubble is defined as a cycle in which no data is being sent, but the first word of a packet has already traversed the switch. Participating ports are selected with the RDN_EVT_PORT_SEL field. event:0x0b counters:0,1,2,3 um:zero minimum:500 name:RDN_CONGESTION : Out of credit on an output port. Participating ports are selected with the RDN_EVT_PORT_SEL field. event:0x0c counters:0,1,2,3 um:zero minimum:500 name:SDN_PACKET_SENT : Main processor finished sending a packet to the SDN. event:0x0d counters:0,1,2,3 um:zero minimum:500 name:SDN_WORD_SENT : SDN word sent to an output port. Participating ports are selected with the SDN_EVT_PORT_SEL field. event:0x0e counters:0,1,2,3 um:zero minimum:500 name:SDN_BUBBLE : Bubble detected on an output port. A bubble is defined as a cycle in which no data is being sent, but the first word of a packet has already traversed the switch. Participating ports are selected with the SDN_EVT_PORT_SEL field. event:0x0f counters:0,1,2,3 um:zero minimum:500 name:SDN_CONGESTION : Out of credit on an output port. Participating ports are selected with the SDN_EVT_PORT_SEL field. event:0x10 counters:0,1,2,3 um:zero minimum:500 name:QDN_PACKET_SENT : Main processor finished sending a packet to the QDN. event:0x11 counters:0,1,2,3 um:zero minimum:500 name:QDN_WORD_SENT : QDN word sent to an output port. Participating ports are selected with the QDN_EVT_PORT_SEL field. event:0x12 counters:0,1,2,3 um:zero minimum:500 name:QDN_BUBBLE : Bubble detected on an output port. A bubble is defined as a cycle in which no data is being sent, but the first word of a packet has already traversed the switch. Participating ports are selected with the QDN_EVT_PORT_SEL field. event:0x13 counters:0,1,2,3 um:zero minimum:500 name:QDN_CONGESTION : Out of credit on an output port. Participating ports are selected with the QDN_EVT_PORT_SEL field. event:0x14 counters:0,1,2,3 um:zero minimum:500 name:UDN_DEMUX_STALL : UDN Demux stalled due to buffer full event:0x15 counters:0,1,2,3 um:zero minimum:500 name:IDN_DEMUX_STALL : IDN Demux stalled due to buffer full oprofile-0.9.9/events/tile/tilegx/unit_masks0000664000076400007640000000012712175510132016135 00000000000000# TILE-GX possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/tile/tile64/0000775000076400007640000000000012175511557013744 500000000000000oprofile-0.9.9/events/tile/tile64/events0000664000076400007640000001501112175510132015075 00000000000000# TILE64 Events event:0x00 counters:0,1 um:zero minimum:500 name:ZERO : Always zero - no event ever happens event:0x01 counters:0,1 um:zero minimum:20000 name:ONE : Always one - an event occurs every cycle event:0x02 counters:0,1 um:zero minimum:500 name:PASS_WRITTEN : The event indicates that the PASS SPR was written event:0x03 counters:0,1 um:zero minimum:500 name:FAIL_WRITTEN : The event indicates that the FAIL SPR was written event:0x04 counters:0,1 um:zero minimum:500 name:DONE_WRITTEN : The event indicates that the DONE SPR was written event:0x06 counters:0,1 um:zero minimum:500 name:MP_BUNDLE_RETIRED : The event occurs when instruction bundle is retired. event:0x0a counters:0,1 um:zero minimum:500 name:MP_UDN_READ_STALL : An event occurs every cycle that an instruction bundle is stalled on a UDN read. Multiple stall events may occur and be counted during the same cycle. This behavior is errata for TILE64 because the event is actually triggered only once per instruction stall rather than once per cycle of an instruction stall. event:0x0b counters:0,1 um:zero minimum:500 name:MP_IDN_READ_STALL : An event occurs every cycle that an instruction bundle is stalled on a IDN read. Multiple stall events may occur and be counted during the same cycle. This behavior is errata for TILE64 because the event is actually triggered only once per instruction stall rather than once per cycle of an instruction stall. event:0x0c counters:0,1 um:zero minimum:500 name:MP_SN_READ_STALL : An event occurs every cycle that an instruction bundle is stalled on a STN read. Multiple stall events may occur and be counted during the same cycle. This behavior is errata for TILE64 because the event is actually triggered only once per instruction stall rather than once per cycle of an instruction stall. event:0x0d counters:0,1 um:zero minimum:500 name:MP_UDN_WRITE_STALL : An event occurs every cycle that an instruction bundle is stalled on a UDN write. Multiple stall events may occur and be counted during the same cycle. event:0x0e counters:0,1 um:zero minimum:500 name:MP_IDN_WRITE_STALL : An event occurs every cycle that an instruction bundle is stalled on a IDN write. Multiple stall events may occur and be counted during the same cycle. event:0x0f counters:0,1 um:zero minimum:500 name:MP_SN_WRITE_STALL : An event occurs every cycle that an instruction bundle is stalled on a STN write. Multiple stall events may occur and be counted during the same cycle. event:0x10 counters:0,1 um:zero minimum:500 name:MP_DATA_CACHE_STALL : An event occurs every cycle that an instruction bundle is stalled on a data memory operation except for the cycles when a replay trap is being performed. Instructions that depend on the result of a load and are fired speculatively cause a reply trap if the request misses the L1 data cache and thus are not counted. The wait is 4 if the consumer of the load immediately follows the load or 3 if there is a cycle between the load issue and the consumer issue. Multiple stall events may occur and be counted during the same cycle. event:0x11 counters:0,1 um:zero minimum:500 name:MP_INSTRUCTION_CACHE_STALL : An event occurs every cycle that an instruction bundle is stalled on a instruction memory operation. Multiple stall events may occur and be counted during the same cycle. event:0x18 counters:0,1 um:zero minimum:500 name:TLB_HIT : The event occurs when the address of a data stream memory operation hits in the Data TLB. It includes speculative requests down branch paths. event:0x19 counters:0,1 um:zero minimum:500 name:TLB_EXC : The event occurs when the address of a data stream memory operation causes a Data TLB Exception including TLB Misses and protection violations. event:0x1a counters:0,1 um:zero minimum:500 name:HIT : This event occurs when a load instruction hits in the L1 Data cache. event:0x1b counters:0,1 um:zero minimum:500 name:MEM_REQ_RD : The event occurs when a read or TNS request to main memory leaves the Tile. event:0x1c counters:0,1 um:zero minimum:500 name:MEM_REQ_WR : The event occurs when a write request to main memory, including explicit flushes and non-cacheable stores, leaves the Tile. event:0x1d counters:0,1 um:zero minimum:500 name:MEM_REQ_VIC : The event occurs when a cache writeback to main memory, including victim writes or explicit flushes, leaves the Tile. event:0x1e counters:0,1 um:zero minimum:500 name:MISS_I : The event occurs when an instruction stream read misses the L2 cache due to an L1 instruction cache miss. event:0x1f counters:0,1 um:zero minimum:500 name:MISS_D_WR : The event occurs when a store request misses the L2 cache with the page cached locally or remotely. event:0x20 counters:0,1 um:zero minimum:500 name:MISS_D_RD : The event occurs when a load request or instruction prefetch misses the L2 cache due to an L1 miss with the page cached locally or remotely. event:0x21 counters:0,1 um:zero minimum:500 name:MISS_TDN : This event occurs when a snoop incoming on the TDN misses the L2 cache. event:0x22 counters:0,1 um:zero minimum:500 name:OLOC_REQ_RD : This event occurs when a remote read request is sent to another Tile, including load miss, data stream prefetch miss, and instruction stream prefetch miss. event:0x23 counters:0,1 um:zero minimum:500 name:OLOC_REQ_WR : This event occurs when a remote write request is sent to another Tile, including all stores whether they hit local or don't hit and write through the L2 cache. event:0x26 counters:0,1 um:zero minimum:500 name:L2_HIT : This event occurs when any cache access hits the L2 and includes MDN fills and Memory Fence operations locally or remotely issued. event:0x27 counters:0,1 um:zero minimum:500 name:L2_INV : The event occurs when an inval, flush, or finv hits a clean L2 cache block. event:0x28 counters:0,1 um:zero minimum:500 name:TDN_STARVED : The event occurs when a snoop is received and the controller enters the TDN starved condition. event:0x29 counters:0,1 um:zero minimum:500 name:DMA_STARVED : The event occurs when a DMA is received and the controller enters the starved condition. event:0x2a counters:0,1 um:zero minimum:500 name:MDN_STARVED : The event occurs when the controller enters the MDN starved condition. event:0x2b counters:0,1 um:zero minimum:500 name:RTF_STARVED : The event occurs when the controller enters the re-try FIFO starved condition. event:0x2c counters:0,1 um:zero minimum:500 name:IREQ_STARVED : The event occurs when the controller enters the instruction stream starved condition. event:0x2d counters:0,1 um:zero minimum:500 name:RRTF_STARVED : The event occurs when the controller enters the remote re-try FIFO starved condition. oprofile-0.9.9/events/tile/tile64/unit_masks0000664000076400007640000000012612175510132015747 00000000000000# TILE64 possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/tile/tilepro/0000775000076400007640000000000012175511557014313 500000000000000oprofile-0.9.9/events/tile/tilepro/events0000664000076400007640000003757512175510132015467 00000000000000# TILEPro Events event:0x00 counters:0,1,2,3 um:zero minimum:500 name:ZERO : Always zero - no event ever happens event:0x01 counters:0,1,2,3 um:zero minimum:20000 name:ONE : Always one - an event occurs every cycle event:0x02 counters:0,1,2,3 um:zero minimum:500 name:PASS_WRITTEN : The event indicates that the PASS SPR was written event:0x03 counters:0,1,2,3 um:zero minimum:500 name:FAIL_WRITTEN : The event indicates that the FAIL SPR was written event:0x04 counters:0,1,2,3 um:zero minimum:500 name:DONE_WRITTEN : The event indicates that the DONE SPR was written event:0x06 counters:0,1,2,3 um:zero minimum:500 name:MP_BUNDLE_RETIRED : The event occurs when instruction bundle is retired. event:0x07 counters:0,1,2,3 um:zero minimum:500 name:MP_BUNDLE_1_INSTR_RETIRED : The event occurs when an instruction bundle containing one valid instruction is retired. event:0x08 counters:0,1,2,3 um:zero minimum:500 name:MP_BUNDLE_2_INSTR_RETIRED : The event occurs when an instruction bundle containing two valid instructions is retired. event:0x09 counters:0,1,2,3 um:zero minimum:500 name:MP_BUNDLE_3_INSTR_RETIRED : The event occurs when an instruction bundle containing three valid instructions is retired. event:0x0a counters:0,1,2,3 um:zero minimum:500 name:MP_UDN_READ_STALL : An event occurs every cycle that an instruction bundle is stalled on a UDN read. Multiple stall events may occur and be counted during the same cycle. event:0x0b counters:0,1,2,3 um:zero minimum:500 name:MP_IDN_READ_STALL : An event occurs every cycle that an instruction bundle is stalled on a IDN read. Multiple stall events may occur and be counted during the same cycle. event:0x0c counters:0,1,2,3 um:zero minimum:500 name:MP_SN_READ_STALL : An event occurs every cycle that an instruction bundle is stalled on a STN read. Multiple stall events may occur and be counted during the same cycle. event:0x0d counters:0,1,2,3 um:zero minimum:500 name:MP_UDN_WRITE_STALL : An event occurs every cycle that an instruction bundle is stalled on a UDN write. Multiple stall events may occur and be counted during the same cycle. event:0x0e counters:0,1,2,3 um:zero minimum:500 name:MP_IDN_WRITE_STALL : An event occurs every cycle that an instruction bundle is stalled on a IDN write. Multiple stall events may occur and be counted during the same cycle. event:0x0f counters:0,1,2,3 um:zero minimum:500 name:MP_SN_WRITE_STALL : An event occurs every cycle that an instruction bundle is stalled on a STN write. Multiple stall events may occur and be counted during the same cycle. event:0x10 counters:0,1,2,3 um:zero minimum:500 name:MP_DATA_CACHE_STALL : An event occurs every cycle that an instruction bundle is stalled on a data memory operation except for the cycles when a replay trap is being performed. Instructions that depend on the result of a load and are fired speculatively cause a reply trap if the request misses the L1 data cache and thus are not counted. The wait is 4 if the consumer of the load immediately follows the load or 3 if there is a cycle between the load issue and the consumer issue. Multiple stall events may occur and be counted during the same cycle. event:0x11 counters:0,1,2,3 um:zero minimum:500 name:MP_INSTRUCTION_CACHE_STALL : An event occurs every cycle that an instruction bundle is stalled on a instruction memory operation. Multiple stall events may occur and be counted during the same cycle. event:0x12 counters:0,1,2,3 um:zero minimum:500 name:MP_ICACHE_HIT_ISSUED : The event occurs when the fetch of an issued instruction hits the L1 Instruction cache. event:0x13 counters:0,1,2,3 um:zero minimum:500 name:MP_ITLB_HIT_ISSUED : The event occurs when the fetch of an issued instruction hits the instruction TLB. event:0x14 counters:0,1,2,3 um:zero minimum:500 name:MP_CONDITIONAL_BRANCH_MISSPREDICT : The event occurs when a conditional branch is misspredicted. event:0x15 counters:0,1,2,3 um:zero minimum:500 name:MP_INDIRECT_BRANCH_MISSPREDICT : The event occurs when a register indirect branch is misspredicted. event:0x16 counters:0,1,2,3 um:zero minimum:500 name:MP_CONDITIONAL_BRANCH_ISSUED : The event occurs when a conditional branch is issued. event:0x17 counters:0,1,2,3 um:zero minimum:500 name:MP_INDIRECT_BRANCH_ISSUED : The event occurs when a register indirect branch is issued. event:0x18 counters:0,1,2,3 um:zero minimum:500 name:MP_CACHE_BUSY_STALL : The event occurs when the cache system is busy, and a memory operation cannot be issued. event:0x19 counters:0,1,2,3 um:zero minimum:500 name:MP_NAP_STALL : The event occurs every cycle a processor is stalled due to a nap instruction. event:0x1a counters:0,1,2,3 um:zero minimum:500 name:MP_SPR_STALL : The event occurs every cycle a processor is stalled when executing an instruction that reads or writes an SPR. event:0x1b counters:0,1,2,3 um:zero minimum:500 name:MP_ALU_STALL : The event occurs every cycle a processor is stalled because an operand is not available due to an arithmetic operation. For example, this event will occur when an instruction consuming the result of a multiply stall for one cycle waiting for the multiply result. event:0x1c counters:0,1,2,3 um:zero minimum:500 name:MP_LOAD_MISS_REPLAY_TRAP : The event occurs every time an instruction consuming the result of a load issues within two cycles of the load instruction, and the load instruction misses in the L1 data cache. event:0x1d counters:0,1,2,3 um:zero minimum:500 name:TLB_CNT : The event occurs when a data memory operation is issued and the data translation lookaside buffer (DTLB) is used to translate the virtual address into the physical address. event:0x1e counters:0,1,2,3 um:zero minimum:500 name:RD_CNT : The event occurs when a load is issued. event:0x1f counters:0,1,2,3 um:zero minimum:500 name:WR_CNT : The event occurs when a store is issed. event:0x20 counters:0,1,2,3 um:zero minimum:500 name:TLB_EXCEPTION : The event occurs when the address of a data stream memory operation causes a Data TLB Exception including TLB Misses and protection violations. event:0x21 counters:0,1,2,3 um:zero minimum:500 name:RD_MISS : The event occurs when a load is issued and data is not returned from the level 1 data cache. event:0x22 counters:0,1,2,3 um:zero minimum:500 name:WR_MISS : The event occurs when a store is issued and the 16-byte aligned block (level 1 data cache line size) containing the address is not present at the level 1 data cache. event:0x23 counters:0,1,2,3 um:zero minimum:500 name:SNP_INC_RD_CNT : The event occurs when a read request is received from another Tile off the TDN and the Level 3 cache will track the share state. event:0x24 counters:0,1,2,3 um:zero minimum:500 name:SNP_NINC_RD_CNT : The event occurs when a read request is received from another Tile off the TDN and the Level 3 cache will not track the share state. event:0x25 counters:0,1,2,3 um:zero minimum:500 name:SNP_WR_CNT : The event occurs when a write (store or test-and-set) request is received from another Tile off the TDN. event:0x26 counters:0,1,2,3 um:zero minimum:500 name:SNP_IO_RD_CNT : The event occurs when a read request is received from an IO device off the TDN. event:0x27 counters:0,1,2,3 um:zero minimum:500 name:SNP_IO_WR_CNT : The event occurs when a write request is received from an IO device off the TDN. event:0x28 counters:0,1,2,3 um:zero minimum:500 name:LOCAL_DRD_CNT : The event occurs when a data read request is received from the main processor and the Level 3 cache resides in the Tile. event:0x29 counters:0,1,2,3 um:zero minimum:500 name:LOCAL_WR_CNT : The event occurs when a write (store or test-and-set) request is received from the main processor and the Level 3 cache resides in the Tile. event:0x2a counters:0,1,2,3 um:zero minimum:500 name:LOCAL_IRD_CNT : The event occurs when an instruction read request is received from the main processor and the Level 3 cache resides in the Tile. event:0x2b counters:0,1,2,3 um:zero minimum:500 name:REMOTE_DRD_CNT : The event occurs when a data read request is received from the main processor and the Level 3 cache resides in another Tile. event:0x2c counters:0,1,2,3 um:zero minimum:500 name:REMOTE_WR_CNT : The event occurs when a write (store or test-and-set) request is received from the main processor and the Level 3 cache resides in another Tile. event:0x2d counters:0,1,2,3 um:zero minimum:500 name:REMOTE_IRD_CNT : The event occurs when an instruction read request is received from the main processor and the Level 3 cache resides in another Tile. event:0x2e counters:0,1,2,3 um:zero minimum:500 name:COH_INV_CNT : The event occurs when a coherence invalidation is received from another Tile off the VDN. event:0x2f counters:0,1,2,3 um:zero minimum:500 name:SNP_INC_RD_MISS : The event occurs when a read request is received from another Tile off the TDN and misses the Level 3 cache. The level 3 cache will track the share state. event:0x30 counters:0,1,2,3 um:zero minimum:500 name:SNP_NINC_RD_MISS : The event occurs when a read request is received from another Tile off the TDN and misses the Level 3 cache. The Level 3 cache will not track the share state. event:0x31 counters:0,1,2,3 um:zero minimum:500 name:SNP_WR_MISS : The event occurs when a write (store or test-and-set) request is received from another Tile off the TDN and misses the Level 3 cache. event:0x32 counters:0,1,2,3 um:zero minimum:500 name:SNP_IO_RD_MISS : The event occurs when a read request is received from an IO device off the TDN and misses the Level 3 cache. event:0x33 counters:0,1,2,3 um:zero minimum:500 name:SNP_IO_WR_MISS : The event occurs when a write request is received from an IO device off the TDN and misses the Level 3 cache. event:0x34 counters:0,1,2,3 um:zero minimum:500 name:LOCAL_DRD_MISS : The event occurs when a data read request is received from the main processor and misses the Level 3 cache resided in the Tile. event:0x35 counters:0,1,2,3 um:zero minimum:500 name:LOCAL_WR_MISS : The event occurs when a write (store or test-and-set) request is received from the main processor and misses the Level 3 cache resided in the Tile. event:0x36 counters:0,1,2,3 um:zero minimum:500 name:LOCAL_IRD_MISS : The event occurs when an instruction read request is received from the main processor and misses the Level 3 cache resided in the Tile. event:0x37 counters:0,1,2,3 um:zero minimum:500 name:REMOTE_DRD_MISS : The event occurs when a data read request is received from the main processor and misses the Level 2 cache. The Level 3 cache resides in another Tile. event:0x38 counters:0,1,2,3 um:zero minimum:500 name:REMOTE_WR_MISS : The event occurs when a write (store or test-and-set) request is received from the main processor and misses the Level 2 cache. The Level 3 cache resides in another Tile. event:0x39 counters:0,1,2,3 um:zero minimum:500 name:REMOTE_IRD_MISS : The event occurs when an instruction read request is received from the main processor and misses the Level 2 cache. The Level 3 cache resides in another Tile. event:0x3a counters:0,1,2,3 um:zero minimum:500 name:COH_INV_HIT : The event occurs when a coherence invalidation is received from another Tile off the VDN and hits the level 2 cache. event:0x3b counters:0,1,2,3 um:zero minimum:500 name:VIC_WB_CNT : The event occurs when a cache writeback to main memory, including victim writes or explicit flushes, leaves the Tile. event:0x3c counters:0,1,2,3 um:zero minimum:500 name:TDN_STARVED : The event occurs when a snoop is received and the controller enters the TDN starved condition. event:0x3d counters:0,1,2,3 um:zero minimum:500 name:DMA_STARVED : The event occurs when a DMA is received and the controller enters the starved condition. event:0x3e counters:0,1,2,3 um:zero minimum:500 name:MDN_STARVED : The event occurs when the controller enters the MDN or VDN starved condition. event:0x3f counters:0,1,2,3 um:zero minimum:500 name:RTF_STARVED : The event occurs when the controller enters the re-try FIFO starved condition. event:0x40 counters:0,1,2,3 um:zero minimum:500 name:IREQ_STARVED : The event occurs when the controller enters the instruction stream starved condition. event:0x41 counters:0,1,2,3 um:zero minimum:500 name:RRTF_STARVED : The event occurs when the controller enters the remote re-try FIFO starved condition. event:0x54 counters:0,1,2,3 um:zero minimum:500 name:UDN_PKT_SNT : Main processor finished sending a packet to the UDN. event:0x55 counters:0,1,2,3 um:zero minimum:500 name:UDN_SNT : UDN word sent to an output port. Participating ports are selected with the UDN_EVT_PORT_SEL field. event:0x56 counters:0,1,2,3 um:zero minimum:500 name:UDN_BUBBLE : Bubble detected on an output port. A bubble is defined as a cycle in which no data is being sent, but the first word of a packet has already traversed the switch. Participating ports are selected with the UDN_EVT_PORT_SEL field. event:0x57 counters:0,1,2,3 um:zero minimum:500 name:UDN_CONGESTION : Out of credit on an output port. Participating ports are selected with the UDN_EVT_PORT_SEL field. event:0x58 counters:0,1,2,3 um:zero minimum:500 name:IDN_PKT_SNT : Main processor finished sending a packet to the IDN. event:0x59 counters:0,1,2,3 um:zero minimum:500 name:IDN_SNT : IDN word sent to an output port. Participating ports are selected with the IDN_EVT_PORT_SEL field. event:0x5a counters:0,1,2,3 um:zero minimum:500 name:IDN_BUBBLE : Bubble detected on an output port. A bubble is defined as a cycle in which no data is being sent, but the first word of a packet has already traversed the switch. Participating ports are selected with the IDN_EVT_PORT_SEL field. event:0x5b counters:0,1,2,3 um:zero minimum:500 name:IDN_CONGESTION : Out of credit on an output port. Participating ports are selected with the IDN_EVT_PORT_SEL field. event:0x5c counters:0,1,2,3 um:zero minimum:500 name:MDN_PKT_SNT : Main processor finished sending a packet to the MDN. event:0x5d counters:0,1,2,3 um:zero minimum:500 name:MDN_SNT : MDN word sent to an output port. Participating ports are selected with the MDN_EVT_PORT_SEL field. event:0x5e counters:0,1,2,3 um:zero minimum:500 name:MDN_BUBBLE : Bubble detected on an output port. A bubble is defined as a cycle in which no data is being sent, but the first word of a packet has already traversed the switch. Participating ports are selected with the MDN_EVT_PORT_SEL field. event:0x5f counters:0,1,2,3 um:zero minimum:500 name:MDN_CONGESTION : Out of credit on an output port. Participating ports are selected with the MDN_EVT_PORT_SEL field. event:0x60 counters:0,1,2,3 um:zero minimum:500 name:TDN_PKT_SNT : Main processor finished sending a packet to the TDN. event:0x61 counters:0,1,2,3 um:zero minimum:500 name:TDN_SNT : TDN word sent to an output port. Participating ports are selected with the TDN_EVT_PORT_SEL field. event:0x62 counters:0,1,2,3 um:zero minimum:500 name:TDN_BUBBLE : Bubble detected on an output port. A bubble is defined as a cycle in which no data is being sent, but the first word of a packet has already traversed the switch. Participating ports are selected with the TDN_EVT_PORT_SEL field. event:0x63 counters:0,1,2,3 um:zero minimum:500 name:TDN_CONGESTION : Out of credit on an output port. Participating ports are selected with the TDN_EVT_PORT_SEL field. event:0x64 counters:0,1,2,3 um:zero minimum:500 name:VDN_PKT_SNT : Main processor finished sending a packet to the VDN. event:0x65 counters:0,1,2,3 um:zero minimum:500 name:VDN_SNT : VDN word sent to an output port. Participating ports are selected with the VDN_EVT_PORT_SEL field. event:0x66 counters:0,1,2,3 um:zero minimum:500 name:VDN_BUBBLE : Bubble detected on an output port. A bubble is defined as a cycle in which no data is being sent, but the first word of a packet has already traversed the switch. Participating ports are selected with the VDN_EVT_PORT_SEL field. event:0x67 counters:0,1,2,3 um:zero minimum:500 name:VDN_CONGESTION : Out of credit on an output port. Participating ports are selected with the VDN_EVT_PORT_SEL field. event:0x68 counters:0,1,2,3 um:zero minimum:500 name:UDN_DMUX_STALL : UDN Demux stalled due to buffer full event:0x69 counters:0,1,2,3 um:zero minimum:500 name:IDN_DMUX_STALL : IDN Demux stalled due to buffer full oprofile-0.9.9/events/tile/tilepro/unit_masks0000664000076400007640000000012712175510132016317 00000000000000# TILEPRO possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/mips/0000775000076400007640000000000012175511556012647 500000000000000oprofile-0.9.9/events/mips/5K/0000775000076400007640000000000012175511557013127 500000000000000oprofile-0.9.9/events/mips/5K/events0000664000076400007640000000421712175510132014266 00000000000000# # MIPS 5K # # As standard the CPU supports 2 performance counters. Event 0, 2, 3 and 4 # are available on both counters; the INSNS_EXECED is available on counter 0 # as event 0 and on counter 1 as event 1; the remaining are counter-specific. # event:0x0 counters:0,1 um:zero minimum:500 name:CYCLES : Cycles event:0x2 counters:0,1 um:zero minimum:500 name:LOADS_EXECED : Load/pref(x)/sync/cache-ops executed event:0x3 counters:0,1 um:zero minimum:500 name:STORES_EXECED : Stores (including conditional stores) executed event:0x4 counters:0,1 um:zero minimum:500 name:COND_STORES_EXECED : Conditional stores executed # # Events specific to counter 0 # event:0x1 counters:0 um:zero minimum:500 name:INSN_FETCHED : Instructions fetched event:0x5 counters:0 um:zero minimum:500 name:FAILED_COND_STORES : Failed conditional stores event:0x6 counters:0 um:zero minimum:500 name:BRANCHES_EXECED : Branches executed event:0x7 counters:0 um:zero minimum:500 name:ITLB_MISSES : ITLB miss event:0x8 counters:0 um:zero minimum:500 name:DTLB_MISSES : DTLB miss event:0x9 counters:0 um:zero minimum:500 name:ICACHE_MISS : Instruction cache miss event:0xa counters:0 um:zero minimum:500 name:INSN_SCHEDULED : Instruction scheduled event:0xe counters:0 um:zero minimum:500 name:DUAL_ISSUED_INSNS : Dual issued instructions executed event:0xf counters:0 um:zero minimum:500 name:INSNS_EXECED : Instructions executed # # Events specific to counter 1 # event:0x1 counters:1 um:zero minimum:500 name:INSNS_EXECED : Instructions executed event:0x5 counters:1 um:zero minimum:500 name:FP_INSNS_EXECED : Floating-point instructions executed event:0x6 counters:1 um:zero minimum:500 name:DCACHE_LINE_EVICTED : Data cache line evicted event:0x7 counters:1 um:zero minimum:500 name:TLB_MISS_EXCEPTIONS : TLB miss exceptions event:0x8 counters:1 um:zero minimum:500 name:BRANCHES_MISSPREDICTED : Branch mispredicted event:0x9 counters:1 um:zero minimum:500 name:DCACHE_MISS : Data cache miss event:0xa counters:1 um:zero minimum:500 name:CONFLICT_STALL_M_STAGE : Instruction stall in M stage due to scheduling conflicts event:0xf counters:1 um:zero minimum:500 name:COP2_INSNS_EXECED : COP2 instructions executed oprofile-0.9.9/events/mips/5K/unit_masks0000664000076400007640000000013112175510132015126 00000000000000# # MIPS 5K possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/mips/74K/0000775000076400007640000000000012175511557013215 500000000000000oprofile-0.9.9/events/mips/74K/events0000664000076400007640000003704712175510132014363 00000000000000# # MIPS 74K # # The 74K CPUs have four performance counters. # # Even/odd counters are distinguished by setting bit 10 in the event # mask. The kernel masks this bit out before writing the control # register. # # Events specific to all counters # event:0x0 counters:0,1,2,3 um:zero minimum:500 name:CYCLES : 0-0 Cycles event:0x1 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTIONS : 1-0 Instructions graduated # # Events specific to counters 0 and 2 # event:0x2 counters:0,2 um:zero minimum:500 name:PREDICTED_JR_31 : 2-0 JR $31 (return) instructions predicted including speculative instructions event:0x3 counters:0,2 um:zero minimum:500 name:REDIRECT_STALLS : 3-0 Stall cycles due to register indirect jumps (including non-predicted JR $31), ERET/WAIT instructions, and IFU determined exception event:0x4 counters:0,2 um:zero minimum:500 name:ITLB_ACCESSES : 4-0 Instruction micro-TLB accesses event:0x6 counters:0,2 um:zero minimum:500 name:ICACHE_ACCESSES : 6-0 Instruction cache accesses including speculative instructions event:0x7 counters:0,2 um:zero minimum:500 name:ICACHE_MISS_STALLS : 7-0 Instruction cache miss stall cycles event:0x8 counters:0,2 um:zero minimum:500 name:UNCACHED_IFETCH_STALLS : 8-0 Uncached instruction fetch stall cycles event:0x9 counters:0,2 um:zero minimum:500 name:IFU_REPLAYS : 9-0 Replays within the IFU due to full Instruction Buffer event:0xb counters:0,2 um:zero minimum:500 name:IFU_IDU_MISS_PRED_UPSTREAM_CYCLES : 11-0 Cycles IFU-IDU gate is closed (to prevent upstream from getting ahead) due to mispredicted branch event:0xc counters:0,2 um:zero minimum:500 name:IFU_IDU_CLOGED_DOWNSTREAM_CYCLES : 12-0 Cycles IFU-IDU gate is closed (waiting for downstream to unclog) due to MTC0/MFC0 sequence in pipe, EHB, or blocked DD, DR, or DS event:0xd counters:0,2 um:zero minimum:500 name:DDQ0_FULL_DR_STALLS : 13-0 DR stage stall cycles due to DDQ0 (ALU out-of-order dispatch queue) full event:0xe counters:0,2 um:zero minimum:500 name:ALCB_FULL_DR_STALLS : 14-0 DR stage stall cycles due to ALCB (ALU completion buffers) full event:0xf counters:0,2 um:zero minimum:500 name:CLDQ_FULL_DR_STALLS : 15-0 DR stage stall cycles due to CLDQ (data comming back from FPU) full event:0x10 counters:0,2 um:zero minimum:500 name:ALU_EMPTY_CYCLES : 16-0 DDQ0 (ALU out-of-order dispatch queue) empty cycles event:0x11 counters:0,2 um:zero minimum:500 name:ALU_OPERANDS_NOT_READY_CYCLES : 17-0 DDQ0 (ALU out-of-order dispatch queue) no issue cycles with valid instructions but operands not ready event:0x12 counters:0,2 um:zero minimum:500 name:ALU_NO_ISSUES_CYCLES : 18-0 DDQ0 (ALU out-of-order dispatch queue) no issue cycles with valid instructions due to operand(s) not available, MDU busy, or CorExt resource busy event:0x13 counters:0,2 um:zero minimum:500 name:ALU_BUBBLE_CYCLES : 19-0 DDQ0 (ALU out-of-order dispatch queue) bubbles due to MFC1 data write event:0x14 counters:0,2 um:zero minimum:500 name:SINGLE_ISSUE_CYCLES : 20-0 Either DDQ0 (ALU out-of-order dispatch queue) or DDQ1 (AGEN out-of-order dispatch queue) valid instruction issue cycles event:0x15 counters:0,2 um:zero minimum:500 name:OOO_ALU_ISSUE_CYCLES : 21-0 Out-of-order ALU issue cycles (issued instruction is not the oldest in the pool) event:0x16 counters:0,2 um:zero minimum:500 name:JALR_JALR_HB_INSNS : 22-0 Graduated JALR/JALR.HB instructions event:0x17 counters:0,2 um:zero minimum:500 name:DCACHE_LOAD_ACCESSES : 23-0 Counts all accesses to the data cache caused by load instructions event:0x18 counters:0,2 um:zero minimum:500 name:DCACHE_WRITEBACKS : 24-0 Data cache writebacks event:0x19 counters:0,2 um:zero minimum:500 name:JTLB_DATA_ACCESSES : 25-0 Joint TLB data (non-instruction) accesses event:0x1a counters:0,2 um:zero minimum:500 name:LOAD_STORE_REPLAYS : 26-0 Load/store generated replays - load/store follows too closely a matching CACHEOP event:0x1b counters:0,2 um:zero minimum:500 name:LOAD_STORE_BLOCKED_CYCLES : 27-0 Load/store graduation blocked cycles due to CP1/2 store data not ready, SYNC/SYNCI/SC/CACHEOP at the head, or FSB/LDQ/WBB/ITU FIFO full event:0x1c counters:0,2 um:zero minimum:500 name:L2_CACHE_WRITEBACKS : 28-0 L2 Cache Writebacks event:0x1d counters:0,2 um:zero minimum:500 name:L2_CACHE_MISSES : 29-0 L2 Cache Misses event:0x1e counters:0,2 um:zero minimum:500 name:FSB_FULL_STALLS : 30-0 Pipe stall cycles due to FSB full event:0x1f counters:0,2 um:zero minimum:500 name:LDQ_FULL_STALLS : 31-0 Pipe stall cycles due to LDQ full event:0x20 counters:0,2 um:zero minimum:500 name:WBB_FULL_STALLS : 32-0 Pipe stall cycles due to WBB full event:0x23 counters:0,2 um:zero minimum:500 name:LOAD_MISS_CONSUMER_REPLAYS : 35-0 Replays following optimistic issue of instruction dependent on load which missed, counted only when the dependent instruction graduates event:0x24 counters:0,2 um:zero minimum:500 name:JR_NON_31_INSNS : 36-0 jr $xx (not $31) instructions graduated (at same cost as a mispredict) event:0x25 counters:0,2 um:zero minimum:500 name:BRANCH_INSNS : 37-0 Branch instructions graduated, excluding CP1/CP2 conditional branches event:0x26 counters:0,2 um:zero minimum:500 name:BRANCH_LIKELY_INSNS : 38-0 Branch likely instructions graduated including CP1 and CP2 branch likely instructions event:0x27 counters:0,2 um:zero minimum:500 name:COND_BRANCH_INSNS : 39-0 Conditional branches graduated event:0x28 counters:0,2 um:zero minimum:500 name:INTEGER_INSNS : 40-0 Integer instructions graduated including NOP, SSNOP, MOVCI, and EHB event:0x29 counters:0,2 um:zero minimum:500 name:LOAD_INSNS : 41-0 Loads graduated including CP1 ans CP2 loads event:0x2a counters:0,2 um:zero minimum:500 name:J_JAL_INSNS : 42-0 J/JAL graduated event:0x2b counters:0,2 um:zero minimum:500 name:NOP_INSNS : 43-0 NOP instructions graduated - SLL 0, NOP, SSNOP, and EHB event:0x2c counters:0,2 um:zero minimum:500 name:DSP_INSNS : 44-0 DSP instructions graduated event:0x2d counters:0,2 um:zero minimum:500 name:DSP_BRANCH_INSNS : 45-0 DSP branch instructions graduated event:0x2e counters:0,2 um:zero minimum:500 name:UNCACHED_LOAD_INSNS : 46-0 Uncached loads graduated event:0x31 counters:0,2 um:zero minimum:500 name:EJTAG_INSN_TRIGGERS : 49-0 EJTAG instruction triggerpoints event:0x32 counters:0,2 um:zero minimum:500 name:CP1_BRANCH_MISPREDICTIONS : 50-0 CP1 branches mispredicted event:0x33 counters:0,2 um:zero minimum:500 name:SC_INSNS : 51-0 SC instructions graduated event:0x34 counters:0,2 um:zero minimum:500 name:PREFETCH_INSNS : 52-0 Prefetch instructions graduated event:0x35 counters:0,2 um:zero minimum:500 name:NO_INSN_CYCLES : 53-0 No instructions graduated cycles event:0x36 counters:0,2 um:zero minimum:500 name:ONE_INSN_CYCLES : 54-0 One instruction graduated cycles event:0x37 counters:0,2 um:zero minimum:500 name:GFIFO_BLOCKED_CYCLES : 55-0 GFIFO blocked cycles event:0x38 counters:0,2 um:zero minimum:500 name:MISPREDICTION_STALLS : 56-0 Cycles from the time of a pipe kill due to mispredict until the first new instruction graduates event:0x39 counters:0,2 um:zero minimum:500 name:MISPREDICTED_BRANCH_INSNS_CYCLES : 57-0 Mispredicted branch instruction graduation cycles without the delay slot event:0x3a counters:0,2 um:zero minimum:500 name:EXCEPTIONS_TAKEN : 58-0 Exceptions taken event:0x3b counters:0,2 um:zero minimum:500 name:COREEXTEND_EVENTS : 59-0 Implementation specific CorExtend events event:0x3e counters:0,2 um:zero minimum:500 name:ISPRAM_EVENTS : 62-0 Implementation specific ISPRAM events event:0x3f counters:0,2 um:zero minimum:500 name:L2_CACHE_SINGLE_BIT_ERRORS : 63-0 Single bit errors corrected in L2 event:0x40 counters:0,2 um:zero minimum:500 name:SYSTEM_EVENT_0 : 64-0 Implementation specific system event 0 event:0x41 counters:0,2 um:zero minimum:500 name:SYSTEM_EVENT_2 : 65-0 Implementation specific system event 2 event:0x42 counters:0,2 um:zero minimum:500 name:SYSTEM_EVENT_4 : 66-0 Implementation specific system event 4 event:0x43 counters:0,2 um:zero minimum:500 name:SYSTEM_EVENT_6 : 67-0 Implementation specific system event 6 event:0x44 counters:0,2 um:zero minimum:500 name:OCP_ALL_REQUESTS : 68-0 All OCP requests accepted event:0x45 counters:0,2 um:zero minimum:500 name:OCP_READ_REQUESTS : 69-0 OCP read requests accepted event:0x46 counters:0,2 um:zero minimum:500 name:OCP_WRITE_REQUESTS : 70-0 OCP write requests accepted event:0x4a counters:0,2 um:zero minimum:500 name:FSB_LESS_25_FULL : 74-0 FSB < 25% full event:0x4b counters:0,2 um:zero minimum:500 name:LDQ_LESS_25_FULL : 75-0 LDQ < 25% full event:0x4c counters:0,2 um:zero minimum:500 name:WBB_LESS_25_FULL : 76-0 WBB < 25% full # # Events specific to counters 1 and 3 # event:0x402 counters:1,3 um:zero minimum:500 name:JR_31_MISPREDICTIONS : 2-1 JR $31 (return) instructions mispredicted event:0x403 counters:1,3 um:zero minimum:500 name:JR_31_NO_PREDICTIONS : 3-1 JR $31 (return) instructions not predicted event:0x404 counters:1,3 um:zero minimum:500 name:ITLB_MISSES : 4-1 Instruction micro-TLB misses event:0x405 counters:1,3 um:zero minimum:500 name:JTLB_INSN_MISSES : 5-1 Joint TLB instruction misses event:0x406 counters:1,3 um:zero minimum:500 name:ICACHE_MISSES : 6-1 Instruction cache misses, includes misses from fetch-ahead and speculation event:0x408 counters:1,3 um:zero minimum:500 name:PDTRACE_BACK_STALLS : 8-1 PDtrace back stalls event:0x409 counters:1,3 um:zero minimum:500 name:KILLED_FETCH_SLOTS : 9-1 Valid fetch slots killed due to taken branches/jumps or stalling instructions event:0x40b counters:1,3 um:zero minimum:500 name:IFU_IDU_NO_FETCH_CYCLES : 11-1 Cycles IFU-IDU gate open but no instructions fetched by IFU event:0x40d counters:1,3 um:zero minimum:500 name:DDQ1_FULL_DR_STALLS : 13-1 DR stage stall cycles due to DDQ1 (AGEN out-of-order dispatch queue) full event:0x40e counters:1,3 um:zero minimum:500 name:AGCB_FULL_DR_STALLS : 14-1 DR stage stall cycles due to AGCB (AGEN completion buffers) full event:0x40f counters:1,3 um:zero minimum:500 name:IODQ_FULL_DR_STALLS : 15-1 DR stage stall cycles due to IODQ (data comming back from IO) full event:0x410 counters:1,3 um:zero minimum:500 name:AGEN_EMPTY_CYCLES : 16-1 DDQ1 (AGEN out-of-order dispatch queue) empty cycles event:0x411 counters:1,3 um:zero minimum:500 name:AGEN_OPERANDS_NOT_READY_CYCLES : 17-1 DDQ1 (AGEN out-of-order dispatch queue) no issue cycles with valid instructions but operands not ready event:0x412 counters:1,3 um:zero minimum:500 name:AGEN_NO_ISSUES_CYCLES : 18-1 DDQ1 (AGEN out-of-order dispatch queue) no issue cycles with valid instructions due to operand(s) not available, non-issued stores blocking ready to issue loads, or non-issued CACHEOPs blocking ready to issue loads event:0x413 counters:1,3 um:zero minimum:500 name:AGEN_BUBBLE_CYCLES : 19-1 DDQ1 (AGEN out-of-order dispatch queue) bubbles due to MFC2 data write or cache access from FSB event:0x414 counters:1,3 um:zero minimum:500 name:DUAL_ISSUE_CYCLES : 20-1 Both DDQ0 (ALU out-of-order dispatch queue) and DDQ1 (AGEN out-of-order dispatch queue) valid instruction issue cycles event:0x415 counters:1,3 um:zero minimum:500 name:OOO_AGEN_ISSUE_CYCLES : 21-1 Out-of-order AGEN issue cycles (issued instruction is not the oldest in the pool) event:0x416 counters:1,3 um:zero minimum:500 name:DCACHE_LINE_REFILL_REQUESTS : 22-1 Data cache line loads (line refill requests) event:0x417 counters:1,3 um:zero minimum:500 name:DCACHE_ACCESSES : 23-1 Data cache accesses event:0x418 counters:1,3 um:zero minimum:500 name:DCACHE_MISSES : 24-1 Data cache misses event:0x419 counters:1,3 um:zero minimum:500 name:JTLB_DATA_MISSES : 25-1 Joint TLB data (non-instruction) misses event:0x41a counters:1,3 um:zero minimum:500 name:VA_TRANSALTION_CORNER_CASES : 26-1 Virtual memory address translation synonyms, homonyms, and aliases (loads/stores treated as miss in the cache) event:0x41b counters:1,3 um:zero minimum:500 name:LOAD_STORE_NO_FILL_REQUESTS : 27-1 Load/store graduations not resulting in a bus request because misses at integer pipe graduation turn into hit or merge with outstanding fill request event:0x41c counters:1,3 um:zero minimum:500 name:L2_CACHE_ACCESSES : 28-1 Accesses to the L2 cache event:0x41d counters:1,3 um:zero minimum:500 name:L2_CACHE_MISS_CYCLES : 29-1 Cycles a L2 miss is outstanding, but not necessarily stalling the pipeline event:0x41e counters:1,3 um:zero minimum:500 name:FSB_OVER_50_FULL : 30-1 FSB > 50% full event:0x41f counters:1,3 um:zero minimum:500 name:LDQ_OVER_50_FULL : 31-1 LDQ > 50% full event:0x420 counters:1,3 um:zero minimum:500 name:WBB_OVER_50_FULL : 32-1 WBB > 50% full event:0x423 counters:1,3 um:zero minimum:500 name:CP1_CP2_LOAD_INSNS : 35-1 CP1/CP2 load instructions graduated event:0x424 counters:1,3 um:zero minimum:500 name:MISPREDICTED_JR_31_INSNS : 36-1 jr $31 instructions graduated after mispredict event:0x425 counters:1,3 um:zero minimum:500 name:CP1_CP2_COND_BRANCH_INSNS : 37-1 CP1/CP2 conditional branch instructions graduated event:0x426 counters:1,3 um:zero minimum:500 name:MISPREDICTED_BRANCH_LIKELY_INSNS : 38-1 Mispredicted branch likely instructions graduated event:0x427 counters:1,3 um:zero minimum:500 name:MISPREDICTED_BRANCH_INSNS : 39-1 Mispredicted branches graduated event:0x428 counters:1,3 um:zero minimum:500 name:FPU_INSNS : 40-1 FPU instructions graduated event:0x429 counters:1,3 um:zero minimum:500 name:STORE_INSNS : 41-1 Store instructions graduated including CP1 ans CP2 stores event:0x42a counters:1,3 um:zero minimum:500 name:MIPS16_INSNS : 42-1 MIPS16 instructions graduated event:0x42b counters:1,3 um:zero minimum:500 name:NT_MUL_DIV_INSNS : 43-1 Integer multiply/divide instructions graduated event:0x42c counters:1,3 um:zero minimum:500 name:ALU_DSP_SATURATION_INSNS : 44-1 ALU-DSP graduated, result was saturated event:0x42d counters:1,3 um:zero minimum:500 name:MDU_DSP_SATURATION_INSNS : 45-1 MDU-DSP graduated, result was saturated event:0x42e counters:1,3 um:zero minimum:500 name:UNCACHED_STORE_INSNS : 46-1 Uncached stores graduated event:0x433 counters:1,3 um:zero minimum:500 name:FAILED_SC_INSNS : 51-1 SC instructions failed event:0x434 counters:1,3 um:zero minimum:500 name:CACHE_HIT_PREFETCH_INSNS : 52-1 PREFETCH instructions which did nothing, because they hit in the cache event:0x435 counters:1,3 um:zero minimum:500 name:LOAD_MISS_INSNS : 53-1 Cacheable load instructions that miss in the cache graduated event:0x436 counters:1,3 um:zero minimum:500 name:TWO_INSNS_CYCLES : 54-1 Two instructions graduated cycles event:0x437 counters:1,3 um:zero minimum:500 name:CP1_CP2_STORE_INSNS : 55-1 CP1/CP2 Store graduated event:0x43a counters:1,3 um:zero minimum:500 name:GRADUATION_REPLAYS : 58-1 Replays initiated from graduation event:0x43e counters:1,3 um:zero minimum:500 name:DSPRAM_EVENTS : 62-1 Implementation specific events from the DSPRAM block event:0x440 counters:0,2 um:zero minimum:500 name:SYSTEM_EVENT_1 : 64-1 Implementation specific system event 1 event:0x441 counters:0,2 um:zero minimum:500 name:SYSTEM_EVENT_3 : 65-1 Implementation specific system event 3 event:0x442 counters:0,2 um:zero minimum:500 name:SYSTEM_EVENT_5 : 66-1 Implementation specific system event 5 event:0x443 counters:0,2 um:zero minimum:500 name:SYSTEM_EVENT_7 : 67-1 Implementation specific system event 7 event:0x444 counters:0,2 um:zero minimum:500 name:OCP_ALL_CACHEABLE_REQUESTS : 68-1 All OCP cacheable requests accepted event:0x445 counters:0,2 um:zero minimum:500 name:OCP_READ_CACHEABLE_REQUESTS : 69-1 OCP cacheable read request accepted event:0x446 counters:0,2 um:zero minimum:500 name:OCP_WRITE_CACHEABLE_REQUESTS : 70-1 OCP cacheable write request accepted event:0x44a counters:0,2 um:zero minimum:500 name:FSB_25_50_FULL : 74-1 FSB 25-50% full event:0x44b counters:0,2 um:zero minimum:500 name:LDQ_25_50_FULL : 75-1 LDQ 25-50% full event:0x44c counters:0,2 um:zero minimum:500 name:WBB_25_50_FULL : 76-1 WBB 25-50% full oprofile-0.9.9/events/mips/74K/unit_masks0000664000076400007640000000013212175510132015215 00000000000000# # MIPS 74K possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/mips/r10000/0000775000076400007640000000000012175511557013472 500000000000000oprofile-0.9.9/events/mips/r10000/events0000664000076400007640000000675012175510132014635 00000000000000# # R10000 events # # The same event numbers mean different things on the two counters # event:0x00 counters:0,1 um:zero minimum:500 name:CYCLES : Cycles event:0x01 counters:0 um:zero minimum:500 name:INSTRUCTIONS_ISSUED : Instructions issued event:0x01 counters:1 um:zero minimum:500 name:INSTRUCTIONS_GRADUATED : Instructions graduated event:0x02 counters:0 um:zero minimum:500 name:LOAD_PREFETC_SYNC_CACHEOP_ISSUED : Load / prefetch / sync / CacheOp issued event:0x02 counters:1 um:zero minimum:500 name:LOAD_PREFETC_SYNC_CACHEOP_GRADUATED : Load / prefetch / sync / CacheOp graduated event:0x03 counters:0 um:zero minimum:500 name:STORES_ISSUED : Stores issued event:0x03 counters:1 um:zero minimum:500 name:STORES_GRADUATED : Stores graduated event:0x04 counters:0 um:zero minimum:500 name:STORE_COND_ISSUED : Store conditional issued event:0x04 counters:1 um:zero minimum:500 name:STORE_COND_GRADUATED : Store conditional graduated event:0x05 counters:0 um:zero minimum:500 name:FAILED_STORE_CONDITIONAL : Failed store conditional event:0x05 counters:1 um:zero minimum:500 name:FP_INSTRUCTON_GRADUATED : Floating-point instructions graduated event:0x06 counters:0 um:zero minimum:500 name:BRANCHES_RESOLVED : Branches resolved event:0x06 counters:1 um:zero minimum:500 name:QUADWORDS_WB_FROM_PRIMARY_DCACHE : Quadwords written back from primary data cache event:0x07 counters:0 um:zero minimum:500 name:QUADWORDS_WB_FROM_SCACHE : Quadwords written back from secondary cache event:0x07 counters:1 um:zero minimum:500 name:TLB_REFILL_EXCEPTIONS : TLB refill exceptions event:0x08 counters:0 um:zero minimum:500 name:CORRECTABLE_ECC_ERRORS_SCACHE : Correctable ECC errors on secondary cache data event:0x08 counters:1 um:zero minimum:500 name:BRANCHES_MISPREDICTED : Branches mispredicted event:0x09 counters:0 um:zero minimum:500 name:INSTRUCTION_CACHE_MISSES : Instruction cache misses event:0x09 counters:1 um:zero minimum:500 name:SCACHE_LOAD_STORE_CACHEOP_OPERATIONS : Secondary cache load / store and cache-ops operations event:0x0a counters:0 um:zero minimum:500 name:SCACHE_MISSES_INSTRUCTION : Secondary cache misses (instruction) event:0x0a counters:1 um:zero minimum:500 name:SCACHE_MISSES_DATA : Secondary cache misses (data) event:0x0b counters:0 um:zero minimum:500 name:SCACHE_WAY_MISPREDICTED_INSN : Secondary cache way mispredicted (instruction) event:0x0b counters:1 um:zero minimum:500 name:SCACHE_WAY_MISPREDICTED_DATA : Secondary cache way mispredicted (data) event:0x0c counters:0 um:zero minimum:500 name:EXTERNAL_INTERVENTION_RQ : External intervention requests event:0x0c counters:1 um:zero minimum:500 name:EXTERNAL_INTERVENTION_RQ_HITS_SCACHE : External intervention request is determined to have hit in secondary cache event:0x0d counters:0 um:zero minimum:500 name:EXTERNAL_INVALIDATE_RQ : External invalidate requests event:0x0d counters:1 um:zero minimum:500 name:EXTERNAL_INVALIDATE_RQ_HITS_SCACHE : External invalidate request is determined to have hit in secondary cache event:0x0e counters:0 um:zero minimum:500 name:FUNCTIONAL_UNIT_COMPLETION_CYCLES : Functional unit completion cycles event:0x0e counters:1 um:zero minimum:500 name:STORES_OR_STORE_PREF_TO_CLEANEXCLUSIVE_SCACHE_BLOCKS : Stores or prefetches with store hint to CleanExclusive secondary cache blocks event:0x0f counters:0 um:zero minimum:500 name:INSTRUCTION_GRADUATED : Instructions graduated event:0x0f counters:1 um:zero minimum:500 name:STORES_OR_STORE_PREF_TO_SHD_SCACHE_BLOCKS : Stores or prefetches with store hint to Shared secondary cache blocks oprofile-0.9.9/events/mips/r10000/unit_masks0000664000076400007640000000013512175510132015475 00000000000000# # MIPS R10000 possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/mips/loongson2/0000775000076400007640000000000012175511557014570 500000000000000oprofile-0.9.9/events/mips/loongson2/events0000664000076400007640000000530412175510132015725 00000000000000# loongson2 Events # event:0x00 counters:0 um:zero minimum:10000 name:CPU_CLK_UNHALTED : Cycles outside of haltstate event:0x01 counters:0 um:zero minimum:5000 name:BRANCH_INSTRUCTIONS : Branch instructions event:0x02 counters:0 um:zero minimum:400 name:JUMP_INSTRUCTIONS : JR instructions event:0x03 counters:0 um:zero minimum:500 name:JR31_INSTRUCTIONS : JR(rs=31) instructions event:0x04 counters:0 um:zero minimum:500 name:ICACHE_MISSES : Instruction cache misses event:0x05 counters:0 um:zero minimum:500 name:ALU1_ISSUED : ALU1 operation issued event:0x06 counters:0 um:zero minimum:8000 name:MEM_ISSUED : Memory read/write issued event:0x07 counters:0 um:zero minimum:300 name:FALU1_ISSUED : Float ALU1 operation issued event:0x08 counters:0 um:zero minimum:200 name:BHT_BRANCH_INSTRUCTIONS : BHT prediction instructions event:0x09 counters:0 um:zero minimum:200 name:MEM_READ : Read from primary memory event:0x0a counters:0 um:zero minimum:300 name:FQUEUE_FULL : Fix queue full event:0x0b counters:0 um:zero minimum:300 name:ROQ_FULL : Reorder queue full event:0x0c counters:0 um:zero minimum:300 name:CP0_QUEUE_FULL : CP0 queue full event:0x0d counters:0 um:zero minimum:300 name:TLB_REFILL : TLB refill exception event:0x0e counters:0 um:zero minimum:5 name:EXCEPTION : Exceptions event:0x0f counters:0 um:zero minimum:300 name:INTERNAL_EXCEPTION : Internal exceptions event:0x10 counters:1 um:zero minimum:5000 name:INSTRUCTION_COMMITTED : Instruction committed event:0x11 counters:1 um:zero minimum:500 name:BRANCHES_MISPREDICTED : Branch mispredicted event:0x12 counters:1 um:zero minimum:200 name:JR_MISPREDICTED : JR mispredicted event:0x13 counters:1 um:zero minimum:200 name:JR31_MISPREDICTED : JR31 mispredicted event:0x14 counters:1 um:zero minimum:500 name:DCACHE_MISSES : Data cache misses event:0x15 counters:1 um:zero minimum:500 name:ALU2_ISSUED : ALU2 operation issued event:0x16 counters:1 um:zero minimum:500 name:FALU2_ISSUED : FALU2 operation issued event:0x17 counters:1 um:zero minimum:500 name:UNCACHED_ACCESS : Uncached accesses event:0x18 counters:1 um:zero minimum:500 name:BHT_MISPREDICTED : Branch history table mispredicted event:0x19 counters:1 um:zero minimum:5000 name:MEM_WRITE : Write to memory event:0x1a counters:1 um:zero minimum:500 name:FTQ_FULL : Float queue full event:0x1b counters:1 um:zero minimum:500 name:BRANCH_QUEUE_FULL : Branch queue full event:0x1c counters:1 um:zero minimum:500 name:ITLB_MISSES : Instruction TLB misses event:0x1d counters:1 um:zero minimum:500 name:TOTAL_EXCEPTIONS : Total exceptions event:0x1e counters:1 um:zero minimum:500 name:LOAD_SPECULATION_MISSES : Load speculation misses event:0x1f counters:1 um:zero minimum:500 name:CP0Q_FORWARD_VALID : CP0 queue forward valid oprofile-0.9.9/events/mips/loongson2/unit_masks0000664000076400007640000000013112175510132016567 00000000000000# loongson2 possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/mips/34K/0000775000076400007640000000000012175511557013211 500000000000000oprofile-0.9.9/events/mips/34K/events0000664000076400007640000002603112175510132014346 00000000000000# # MIPS 34K # # The 34K CPUs have two performance counters. # # Even/odd counters are distinguished by setting bit 10 in the event # mask. The kernel masks this bit out before writing the control # register. # # Events specific to both counters # event:0x0 counters:0,1 um:zero minimum:500 name:CYCLES : 0-0 Cycles event:0x1 counters:0,1 um:zero minimum:500 name:INSTRUCTIONS : 1-0 Instructions completed event:0xb counters:0,1 um:zero minimum:500 name:DCACHE_MISSES : 11-0 Data cache misses # # Events specific to counter 0 # event:0x2 counters:0 um:zero minimum:500 name:BRANCH_INSNS : 2-0 Branch instructions (whether completed or mispredicted) event:0x3 counters:0 um:zero minimum:500 name:JR_31_INSNS : 3-0 JR $31 (return) instructions executed event:0x4 counters:0 um:zero minimum:500 name:JR_NON_31_INSNS : 4-0 JR $xx (not $31) instructions executed (at same cost as a mispredict) event:0x5 counters:0 um:zero minimum:500 name:ITLB_ACCESSES : 5-0 Instruction micro-TLB accesses event:0x6 counters:0 um:zero minimum:500 name:DTLB_ACCESSES : 6-0 Data micro-TLB accesses event:0x7 counters:0 um:zero minimum:500 name:JTLB_INSN_ACCESSES : 7-0 Joint TLB instruction accesses event:0x8 counters:0 um:zero minimum:500 name:JTLB_DATA_ACCESSES : 8-0 Joint TLB data (non-instruction) accesses event:0x9 counters:0 um:zero minimum:500 name:ICACHE_ACCESSES : 9-0 Instruction cache accesses event:0xa counters:0 um:zero minimum:500 name:DCACHE_ACCESSES : 10-0 Data cache accesses event:0xd counters:0 um:zero minimum:500 name:STORE_MISS_INSNS : 13-0 Cacheable stores that miss in the cache event:0xe counters:0 um:zero minimum:500 name:INTEGER_INSNS : 14-0 Integer instructions completed event:0xf counters:0 um:zero minimum:500 name:LOAD_INSNS : 15-0 Load instructions completed (including FP) event:0x10 counters:0 um:zero minimum:500 name:J_JAL_INSNS : 16-0 J/JAL instructions completed event:0x11 counters:0 um:zero minimum:500 name:NO_OPS_INSNS : 17-0 no-ops completed, ie instructions writing $0 event:0x12 counters:0 um:zero minimum:500 name:ALL_STALLS : 18-0 Stall cycles, including ALU and IFU event:0x13 counters:0 um:zero minimum:500 name:SC_INSNS : 19-0 SC instructions completed event:0x14 counters:0 um:zero minimum:500 name:PREFETCH_INSNS : 20-0 PREFETCH instructions completed event:0x15 counters:0 um:zero minimum:500 name:L2_CACHE_WRITEBACKS : 21-0 L2 cache lines written back to memory event:0x16 counters:0 um:zero minimum:500 name:L2_CACHE_MISSES : 22-0 L2 cache accesses that missed in the cache event:0x17 counters:0 um:zero minimum:500 name:EXCEPTIONS_TAKEN : 23-0 Exceptions taken event:0x18 counters:0 um:zero minimum:500 name:CACHE_FIXUP_CYCLES : 24-0 Cache fixup cycles (specific to the 34K family microarchitecture) event:0x19 counters:0 um:zero minimum:500 name:IFU_STALLS : 25-0 IFU stall cycles event:0x1a counters:0 um:zero minimum:500 name:DSP_INSNS : 26-0 DSP instructions completed event:0x1c counters:0 um:zero minimum:500 name:POLICY_EVENTS : 28-0 Implementation specific policy manager events event:0x1d counters:0 um:zero minimum:500 name:ISPRAM_EVENTS : 29-0 Implementation specific ISPRAM events event:0x1e counters:0 um:zero minimum:500 name:COREEXTEND_EVENTS : 30-0 Implementation specific CorExtend events event:0x1f counters:0 um:zero minimum:500 name:YIELD_EVENTS : 31-0 Implementation specific yield events event:0x20 counters:0 um:zero minimum:500 name:ITC_LOADS : 32-0 ITC Loads event:0x21 counters:0 um:zero minimum:500 name:UNCACHED_LOAD_INSNS : 33-0 Uncached load instructions event:0x22 counters:0 um:zero minimum:500 name:FORK_INSNS : 34-0 Fork instructions completed event:0x23 counters:0 um:zero minimum:500 name:CP2_ARITH_INSNS : 35-0 CP2 arithmetic instructions completed # # Count number of cycles (most often ``stall cycles'', ie time lost), not just number of events. # event:0x25 counters:0 um:zero minimum:500 name:ICACHE_MISS_STALLS : 37-0 Stall cycles due to an instruction cache miss event:0x27 counters:0 um:zero minimum:500 name:DCACHE_MISS_CYCLES : 39-0 Cycles a data cache miss is outstanding, but not necessarily stalling the pipeline event:0x28 counters:0 um:zero minimum:500 name:UNCACHED_STALLS : 40-0 Uncached stall cycles event:0x29 counters:0 um:zero minimum:500 name:MDU_STALLS : 41-0 MDU stall cycles event:0x2a counters:0 um:zero minimum:500 name:CP2_STALLS : 42-0 CP2 stall cycles event:0x2b counters:0 um:zero minimum:500 name:ISPRAM_STALLS : 43-0 ISPRAM stall cycles event:0x2c counters:0 um:zero minimum:500 name:CACHE_INSN_STALLS : 44-0 Stall cycless due to CACHE instructions event:0x2d counters:0 um:zero minimum:500 name:LOAD_USE_STALLS : 45-0 Load to use stall cycles event:0x2e counters:0 um:zero minimum:500 name:INTERLOCK_STALLS : 46-0 Stall cycles due to return data from MFC0, RDHWR, and MFTR instructions event:0x2f counters:0 um:zero minimum:500 name:RELAX_STALLS : 47-0 Low power stall cycles (operations) as requested by the policy manager event:0x30 counters:0 um:zero minimum:500 name:IFU_FB_FULL_REFETCHES : 48-0 Refetches due to cache misses while both fill buffers already allocated event:0x31 counters:0 um:zero minimum:500 name:EJTAG_INSN_TRIGGERS : 49-0 EJTAG instruction triggerpoints # # # Monitor the state of various FIFO queues in the load/store unit: # FSB (``fill/store buffer'') # LDQ (``load queue'') # WBB (``write-back buffer'') # event:0x32 counters:0 um:zero minimum:500 name:FSB_LESS_25_FULL : 50-0 FSB < 25% full event:0x33 counters:0 um:zero minimum:500 name:FSB_OVER_50_FULL : 51-0 FSB > 50% full event:0x34 counters:0 um:zero minimum:500 name:LDQ_LESS_25_FULL : 52-0 LDQ < 25% full event:0x35 counters:0 um:zero minimum:500 name:LDQ_OVER_50_FULL : 53-0 LDQ > 50% full event:0x36 counters:0 um:zero minimum:500 name:WBB_LESS_25_FULL : 54-0 WBB < 25% full event:0x37 counters:0 um:zero minimum:500 name:WBB_OVER_50_FULL : 55-0 WBB > 50% full event:0x3e counters:0 um:zero minimum:500 name:READ_RESPONSE_LATENCY : 62-0 Read latency from miss detection until critical dword of response is returned # # Events specific to counter 1 # event:0x402 counters:1 um:zero minimum:500 name:MISPREDICTED_BRANCH_INSNS : 2-1 Branch mispredictions event:0x403 counters:1 um:zero minimum:500 name:JR_31_MISPREDICTIONS : 3-1 JR $31 mispredictions event:0x404 counters:1 um:zero minimum:500 name:JR_31_NO_PREDICTIONS : 4-1 JR $31 not predicted (stack mismatch). event:0x405 counters:1 um:zero minimum:500 name:ITLB_MISSES : 5-1 Instruction micro-TLB misses event:0x406 counters:1 um:zero minimum:500 name:DTLB_MISSES : 6-1 Data micro-TLB misses event:0x407 counters:1 um:zero minimum:500 name:JTLB_INSN_MISSES : 7-1 Joint TLB instruction misses event:0x408 counters:1 um:zero minimum:500 name:JTLB_DATA_MISSES : 8-1 Joint TLB data (non-instruction) misses event:0x409 counters:1 um:zero minimum:500 name:ICACHE_MISSES : 9-1 Instruction cache misses event:0x40a counters:1 um:zero minimum:500 name:DCACHE_WRITEBACKS : 10-1 Data cache lines written back to memory event:0x40d counters:1 um:zero minimum:500 name:LOAD_MISS_INSNS : 13-1 Cacheable load instructions that miss in the cache event:0x40e counters:1 um:zero minimum:500 name:FPU_INSNS : 14-1 FPU instructions completed (not including loads/stores) event:0x40f counters:1 um:zero minimum:500 name:STORE_INSNS : 15-1 Stores completed (including FP) event:0x410 counters:1 um:zero minimum:500 name:MIPS16_INSNS : 16-1 MIPS16 instructions completed event:0x411 counters:1 um:zero minimum:500 name:INT_MUL_DIV_INSNS : 17-1 Integer multiply/divide instructions completed event:0x412 counters:1 um:zero minimum:500 name:REPLAYED_INSNS : 18-1 Replayed instructions event:0x413 counters:1 um:zero minimum:500 name:SC_INSNS_FAILED : 19-1 SC instructions completed, but store failed (because the link bit had been cleared) event:0x414 counters:1 um:zero minimum:500 name:CACHE_HIT_PREFETCH_INSNS : 20-1 PREFETCH instructions completed with cache hit event:0x415 counters:1 um:zero minimum:500 name:L2_CACHE_ACCESSES : 21-1 Accesses to the L2 cache event:0x416 counters:1 um:zero minimum:500 name:L2_CACHE_SINGLE_BIT_ERRORS : 22-1 Single bit errors corrected in L2 event:0x417 counters:1 um:zero minimum:500 name:SINGLE_THREADED_CYCLES : 23-1 Cycles while one and only one TC is eligible for scheduling event:0x418 counters:1 um:zero minimum:500 name:REFETCHED_INSNS : 24-1 Replayed instructions sent back to IFU to be refetched event:0x419 counters:1 um:zero minimum:500 name:ALU_STALLS : 25-1 ALU stall cycles event:0x41a counters:1 um:zero minimum:500 name:ALU_DSP_SATURATION_INSNS : 26-1 ALU-DSP saturation instructions event:0x41b counters:1 um:zero minimum:500 name:MDU_DSP_SATURATION_INSNS : 27-1 MDU-DSP saturation instructions event:0x41c counters:1 um:zero minimum:500 name:CP2_EVENTS : 28-1 Implementation specific CP2 events event:0x41d counters:1 um:zero minimum:500 name:DSPRAM_EVENTS : 29-1 Implementation specific DSPRAM events event:0x41f counters:1 um:zero minimum:500 name:ITC_EVENT : 31-1 Implementation specific yield event event:0x421 counters:1 um:zero minimum:500 name:UNCACHED_STORE_INSNS : 33-1 Uncached store instructions event:0x423 counters:1 um:zero minimum:500 name:CP2_TO_FROM_INSNS : 35-1 CP2 to/from instructions (moves, control, loads, stores) # # Count number of cycles (most often ``stall cycles'', ie time lost), not just number of events. # event:0x425 counters:1 um:zero minimum:500 name:DCACHE_MISS_STALLS : 37-1 Stall cycles due to a data cache miss event:0x427 counters:1 um:zero minimum:500 name:L2_CACHE_MISS_CYCLES : 39-1 Cycles a L2 miss is outstanding, but not necessarily stalling the pipeline event:0x428 counters:1 um:zero minimum:500 name:ITC_STALLS : 40-1 ITC stall cycles event:0x429 counters:1 um:zero minimum:500 name:FPU_STALLS : 41-1 FPU stall cycles event:0x42a counters:1 um:zero minimum:500 name:COREEXTEND_STALLS : 42-1 CorExtend stall cycles event:0x42b counters:1 um:zero minimum:500 name:DSPRAM_STALLS : 43-1 DSPRAM stall cycles event:0x42d counters:1 um:zero minimum:500 name:ALU_TO_AGEN_STALLS : 45-1 ALU to AGEN stall cycles event:0x42e counters:1 um:zero minimum:500 name:MISPREDICTION_STALLS : 46-1 Branch mispredict stall cycles event:0x430 counters:1 um:zero minimum:500 name:FB_ENTRY_ALLOCATED_CYCLES : 48-1 Cycles while at least one IFU fill buffer is allocated event:0x431 counters:1 um:zero minimum:500 name:EJTAG_DATA_TRIGGERS : 49-1 EJTAG Data triggerpoints # # Monitor the state of various FIFO queues in the load/store unit: # FSB (``fill/store buffer'') # LDQ (``load queue'') # WBB (``write-back buffer'') # Some count events, others count stall cycles. # event:0x432 counters:1 um:zero minimum:500 name:FSB_25_50_FULL : 50-1 FSB 25-50% full event:0x433 counters:1 um:zero minimum:500 name:FSB_FULL_STALLS : 51-1 FSB full pipeline stall cycles event:0x434 counters:1 um:zero minimum:500 name:LDQ_25_50_FULL : 52-1 LDQ 25-50% full event:0x435 counters:1 um:zero minimum:500 name:LDQ_FULL_STALLS : 53-1 LDQ full pipeline stall cycles event:0x436 counters:1 um:zero minimum:500 name:WBB_25_50_FULL : 54-1 WBB 25-50% full event:0x437 counters:1 um:zero minimum:500 name:WBB_FULL_STALLS : 55-1 WBB full pipeline stall cycles event:0x43e counters:1 um:zero minimum:500 name:READ_RESPONSE_COUNT : 62-1 Read requests on miss detection oprofile-0.9.9/events/mips/34K/unit_masks0000664000076400007640000000013212175510132015211 00000000000000# # MIPS 34K possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/mips/vr5432/0000775000076400007640000000000012175511557013615 500000000000000oprofile-0.9.9/events/mips/vr5432/events0000664000076400007640000000221512175510132014750 00000000000000# # VR5432 events # event:0x0 counters:0,1 um:zero minimum:500 name:CYCLES : Processor cycles (PClock) event:0x1 counters:0,1 um:zero minimum:500 name:INSTRUCTIONS_EXECUTED : (Instructions executed)/2 and truncated event:0x2 counters:0,1 um:zero minimum:500 name:LOAD_PREF_CACHE_INSTRUCTIONS : Load, prefetch/CacheOps execution (no sync) event:0x3 counters:0,1 um:zero minimum:500 name:STORES : Store execution event:0x4 counters:0,1 um:zero minimum:500 name:BRANCHES : Branch execution (no jumps or jump registers) event:0x5 counters:0,1 um:zero minimum:500 name:FP_INSTRUCTIONS : (FP instruction execution) / 2 and truncated excluding cp1 loads and stores event:0x6 counters:0,1 um:zero minimum:500 name:DOUBLEWORDS_FLUSHED : Doublewords flushed to main memory (no uncached stores) event:0x7 counters:0,1 um:zero minimum:500 name:JTLB_REFILLS : JTLB refills event:0x8 counters:0,1 um:zero minimum:500 name:DCACHE_MISSES : Data cache misses (no I-cache misses) event:0x9 counters:0,1 um:zero minimum:500 name:ICACHE_MISSES : Instruction cache misses (no D-cache misses) event:0xa counters:0,1 um:zero minimum:500 name:BRANCHES_MISPREDICTED : Branches mispredicted oprofile-0.9.9/events/mips/vr5432/unit_masks0000664000076400007640000000013512175510132015620 00000000000000# # MIPS VR5432 possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/mips/rm9000/0000775000076400007640000000000012175511557013577 500000000000000oprofile-0.9.9/events/mips/rm9000/events0000664000076400007640000000547612175510132014746 00000000000000# # RM9000 events # event:0x00 counters:0,1 um:zero minimum:500 name:CYCLES : Processor clock cycles event:0x01 counters:0,1 um:zero minimum:500 name:INSTRUCTIONS_ISSUED : Instructions issued event:0x02 counters:0,1 um:zero minimum:500 name:FP_INSTRUCTIONS_ISSUED : Floating-point instructions issued event:0x03 counters:0,1 um:zero minimum:500 name:INT_INSTRUCTIONS_ISSUED : Integer instructions issued event:0x04 counters:0,1 um:zero minimum:500 name:LOAD_INSTRUCTIONS_ISSUED : Load instructions issued event:0x05 counters:0,1 um:zero minimum:500 name:STORE_INSTRUCTIONS_ISSUED : Store instructions issued event:0x06 counters:0,1 um:zero minimum:500 name:INSTRUCTIONS_DUAL_ISSUED : Dual-issued instruction pairs event:0x07 counters:0,1 um:zero minimum:500 name:BRANCH_MISSPREDICTS : Branch mispredictions event:0x09 counters:0,1 um:zero minimum:500 name:STALL_CYCLES : Stall cycles event:0x0a counters:0,1 um:zero minimum:500 name:L2_CACHE_MISSES : L2 cache misses event:0x0b counters:0,1 um:zero minimum:500 name:ICACHE_MISSES : Icache misses event:0x0c counters:0,1 um:zero minimum:500 name:DCACHE_MISSES : Dcache misses event:0x0d counters:0,1 um:zero minimum:500 name:DTLB_MISSES : Data TLB misses event:0x0e counters:0,1 um:zero minimum:500 name:ITLB_MISSES : Instruction TLB misses event:0x0f counters:0,1 um:zero minimum:500 name:JTLB_INSTRUCTION_MISSES : Joint TLB instruction misses event:0x10 counters:0,1 um:zero minimum:500 name:JTLB_DATA_MISSES : Joint TLB data misses event:0x11 counters:0,1 um:zero minimum:500 name:BRANCHES_TAKEN : Branches taken event:0x12 counters:0,1 um:zero minimum:500 name:BRANCHES_ISSUED : Branch instructions issued event:0x13 counters:0,1 um:zero minimum:500 name:L2_WRITEBACKS : L2 cache writebacks event:0x14 counters:0,1 um:zero minimum:500 name:DCACHE_WRITEBACKS : Dcache writebacks event:0x15 counters:0,1 um:zero minimum:500 name:DCACHE_MISS_STALL_CYCLES : Dcache-miss stall cycles event:0x16 counters:0,1 um:zero minimum:500 name:CACHE_REMISSES : Cache remisses event:0x17 counters:0,1 um:zero minimum:500 name:FP_POSSIBLE_EXCEPTION_CYCLES : Floating-point possible exception cycles event:0x18 counters:0,1 um:zero minimum:500 name:MULTIPLIER_BUSY_SLIP_CYCLES : Slip cycles due to busy multiplier event:0x19 counters:0,1 um:zero minimum:500 name:COP0_SLIP_CYCLES : Co-processor 0 slip cycles event:0x1a counters:0,1 um:zero minimum:500 name:NONBLOCKING_LOAD_SLIP_CYCLES : Slip cycles due to pending non-blocking loads event:0x1b counters:0,1 um:zero minimum:500 name:WRITE_BUFFER_FULL_STALL_CYCLES : Stall cycles due to a full write buffer event:0x1c counters:0,1 um:zero minimum:500 name:CACHE_INSN_STALL_CYCLES : Stall cycles due to cache instructions event:0x1e counters:0,1 um:zero minimum:500 name:NONBLOCKING_LOAD_PENDING_EXCEPTION_STALL_CYCLES : Stall cycles due to pending non-blocking loads - stall start of exception oprofile-0.9.9/events/mips/rm9000/unit_masks0000664000076400007640000000013512175510132015602 00000000000000# # MIPS RM9000 possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/mips/25K/0000775000076400007640000000000012175511557013211 500000000000000oprofile-0.9.9/events/mips/25K/events0000664000076400007640000001063412175510132014350 00000000000000# # MIPS 25Kf # # The 25Kf has two performance counters # event:0x0 counters:0,1 um:zero minimum:500 name:CYCLES : CPU cycles event:0x1 counters:0,1 um:zero minimum:500 name:INSN_ISSUED : Dispatched/issued instructions event:0x2 counters:0,1 um:zero minimum:500 name:FP_INSNS_ISSUED : FPU instructions issued event:0x3 counters:0,1 um:zero minimum:500 name:INT_INSNS_ISSUED : Integer instructions issued event:0x4 counters:0,1 um:zero minimum:500 name:LOAD_INSNS_ISSUED : Load instructions issued event:0x5 counters:0,1 um:zero minimum:500 name:STORE_INSNS_ISSUED : Store instructions issued event:0x6 counters:0,1 um:zero minimum:500 name:BRANCHES_JUMPS_ISSUED : Branch/Jump instructions issued event:0x7 counters:0,1 um:zero minimum:500 name:DUAL_ISSUED_PAIRS : Dual-issued pairs event:0x8 counters:0,1 um:zero minimum:500 name:INSNS_COMPLETE : Instruction that completed execution (with or without exception) event:0x9 counters:0,1 um:zero minimum:500 name:FETCH_GROUPS_IN_PIPE : Fetch groups entering CPU execution pipes # # FPU: # event:0xa counters:0,1 um:zero minimum:500 name:INSN_FP_DATAPATH_COMPLETED : Instructions completed in FPU datapath (computational instructions only) event:0xb counters:0,1 um:zero minimum:500 name:FP_EXCEPTIONS_TAKEN : Taken FPU exceptions event:0xc counters:0,1 um:zero minimum:500 name:FP_EXCEPTION_PREDICTED : Predicted FPU exceptions # # Branch/Jump Prediction: # event:0xd counters:0,1 um:zero minimum:500 name:BRANCHES_MISSPREDICTED : Branches that mispredicted before completing execution event:0xe counters:0,1 um:zero minimum:500 name:BRANCHES_COMPLETED : Branches that completed execution event:0xf counters:0,1 um:zero minimum:500 name:JR_RPD_MISSPREDICTED : JR instructions that mispredicted using the Return Prediction Stack event:0x10 counters:0,1 um:zero minimum:500 name:JR_COMPLETED : JR instruction that completed execution # # Memory Management: # event:0x11 counters:0,1 um:zero minimum:500 name:UTLB_MISSES : U-TLB misses event:0x12 counters:0,1 um:zero minimum:500 name:JTLB_MISSES_IFETCH : Raw count of Joint-TLB misses for instruction fetch event:0x13 counters:0,1 um:zero minimum:500 name:JTLB_MISSES_LOADS_STORES : Raw count of Joint-TLB misses for loads/stores event:0x14 counters:0,1 um:zero minimum:500 name:JTLB_EXCEPTIONS : Refill, Invalid and Modified TLB exceptions # # Machine Check # event:0x15 counters:0,1 um:zero minimum:500 name:JTLB_IFETCH_REFILL_EXCEPTIONS : Joint-TLB refill exceptions due to instruction fetch event:0x16 counters:0,1 um:zero minimum:500 name:JTLB_DATA_ACCESS_REFILL_EXCEPTIONS : Joint-TLB refill exceptions due to data access event:0x17 counters:0,1 um:zero minimum:500 name:JTLB_REFILL_EXCEPTIONS : total Joint-TLB Instruction exceptions (refill) # # I-Cache Efficiency: # event:0x18 counters:0,1 um:zero minimum:500 name:INSNS_FETCHED_FROM_ICACHE : Total number of instructions fetched from the I-Cache event:0x19 counters:0,1 um:zero minimum:500 name:INSN_REQ_FROM_IFU_BIU : instruction requests from the IFU to the BIU event:0x1a counters:0,1 um:zero minimum:500 name:ICACHE_MISSES : I-Cache miss # # D-Cache Efficiency: # event:0x1b counters:0,1 um:zero minimum:500 name:DCACHE_MISSES : D-Cache miss event:0x1c counters:0,1 um:zero minimum:500 name:DCACHE_WRITEBACKS : D-Cache number of write-backs event:0x1d counters:0,1 um:zero minimum:500 name:CACHEABLE_DCACHE_REQUEST : number of cacheable requests to D-Cache # # Level 2 Cache Efficiency: # event:0x1e counters:0,1 um:zero minimum:500 name:L2_MISSES : L2 Cache miss event:0x1f counters:0,1 um:zero minimum:500 name:L2_WBACKS : L2 Cache number of write-backs event:0x20 counters:0,1 um:zero minimum:500 name:CACHEABLE_L2_REQS : Number of cacheable requests to L2 # # Replays: # event:0x21 counters:0,1 um:zero minimum:500 name:REPLAYS_LSU_LOAD_DEP_FPU : LSU requested replays, load-dependent speculative dispatch, FPU exception prediction event:0x22 counters:0,1 um:zero minimum:500 name:LSU_REQ_REPLAYS : LSU requested replays event:0x23 counters:0,1 um:zero minimum:500 name:REPLAYS_LOAD_DEP_DISPATCH : replays due to load-dependent speculative dispatch event:0x24 counters:0,1 um:zero minimum:500 name:REPLAYS_WBB_FULL : replays due to WBB full event:0x25 counters:0,1 um:zero minimum:500 name:FSB_FULL_REPLAYS : replays due to FSB full # # Misc: # event:0x26 counters:0,1 um:zero minimum:500 name:ICACHE_PSEUDO_HITS : I-Cache pseudo-hits event:0x27 counters:0,1 um:zero minimum:500 name:LOAD_STORE_ISSUED : Load/store instructions issued oprofile-0.9.9/events/mips/25K/unit_masks0000664000076400007640000000013312175510132015212 00000000000000# # MIPS 25Kf possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/mips/rm7000/0000775000076400007640000000000012175511557013575 500000000000000oprofile-0.9.9/events/mips/rm7000/events0000664000076400007640000000605512175510132014736 00000000000000# # RM7000 events # event:0x00 counters:0,1 um:zero minimum:500 name:CYCLES : Clock cycles event:0x01 counters:0,1 um:zero minimum:500 name:INSTRUCTIONS_ISSUED : Total instructions issued event:0x02 counters:0,1 um:zero minimum:500 name:FP_INSTRUCTIONS_ISSUED : Floating-point instructions issued event:0x03 counters:0,1 um:zero minimum:500 name:INTEGER_INSTRUCTIONS_ISSUED : Integer instructions issued event:0x04 counters:0,1 um:zero minimum:500 name:LOAD_INSTRUCTIONS_ISSUED : Load instructions issued event:0x05 counters:0,1 um:zero minimum:500 name:STORE_INSTRUCTIONS_ISSUED : Store instructions issued event:0x06 counters:0,1 um:zero minimum:500 name:DUAL_ISSUED_PAIRS : Dual issued pairs event:0x07 counters:0,1 um:zero minimum:500 name:BRANCH_PREFETCHES : Branch prefetches event:0x08 counters:0,1 um:zero minimum:500 name:EXTERNAL_CACHE_MISSES : External Cache Misses event:0x09 counters:0,1 um:zero minimum:500 name:STALL_CYCLES : Stall cycles event:0x0a counters:0,1 um:zero minimum:500 name:SCACHE_MISSES : Secondary cache misses event:0x0b counters:0,1 um:zero minimum:500 name:ICACHE_MISSES : Instruction cache misses event:0x0c counters:0,1 um:zero minimum:500 name:DCACHE_MISSES : Data cache misses event:0x0d counters:0,1 um:zero minimum:500 name:DTLB_MISSES : Data TLB misses event:0x0e counters:0,1 um:zero minimum:500 name:ITLB_MISSES : Instruction TLB misses event:0x0f counters:0,1 um:zero minimum:500 name:JTLB_INSTRUCTION_MISSES : Joint TLB instruction misses event:0x10 counters:0,1 um:zero minimum:500 name:JTLB_DATA_MISSES : Joint TLB data misses event:0x11 counters:0,1 um:zero minimum:500 name:BRANCHES_TAKEN : Branches taken event:0x12 counters:0,1 um:zero minimum:500 name:BRANCHES_ISSUED : Branches issued event:0x13 counters:0,1 um:zero minimum:500 name:SCACHE_WRITEBACKS : Secondary cache writebacks event:0x14 counters:0,1 um:zero minimum:500 name:PCACHE_WRITEBACKS : Primary cache writebacks event:0x15 counters:0,1 um:zero minimum:500 name:DCACHE_MISS_STALL_CYCLES : Dcache miss stall cycles (cycles where both cache miss tokens taken and a third try is requested) event:0x16 counters:0,1 um:zero minimum:500 name:CACHE_MISSES : Cache misses event:0x17 counters:0,1 um:zero minimum:500 name:FP_EXCEPTION_STALL_CYCLES : FP possible exception cycles event:0x18 counters:0,1 um:zero minimum:500 name:SLIP_CYCLES_DUE_MULTIPLIER_BUSY : Slip Cycles due to multiplier busy event:0x19 counters:0,1 um:zero minimum:500 name:COP0_SLIP_CYCLES : Coprocessor 0 slip cycles event:0x1a counters:0,1 um:zero minimum:500 name:SLIP_CYCLES_PENDING_NON_BLKING_LOAD : Slip cycles due to pending non-blocking loads event:0x1c counters:0,1 um:zero minimum:500 name:WRITE_BUFFER_FULL_STALL_CYCLES : Write buffer full stall cycles event:0x1d counters:0,1 um:zero minimum:500 name:CACHE_INSTRUCTION_STALL_CYCLES : Cache instruction stall cycles event:0x1e counters:0,1 um:zero minimum:500 name:MULTIPLIER_STALL_CYCLES : Multiplier stall cycles event:0x1f counters:0,1 um:zero minimum:500 name:STALL_CYCLES_PENDING_NON_BLKING_LOAD : Stall cycles due to pending non-blocking loads - stall start of exception oprofile-0.9.9/events/mips/rm7000/unit_masks0000664000076400007640000000013512175510132015600 00000000000000# # MIPS RM7000 possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/mips/20K/0000775000076400007640000000000012175511557013204 500000000000000oprofile-0.9.9/events/mips/20K/events0000664000076400007640000000350312175510132014340 00000000000000# # MIPS 20K # # The 20K supports only one performance counter. # event:0x0 counters:0 um:zero minimum:500 name:CYCLES : CPU cycles event:0x1 counters:0 um:zero minimum:500 name:INSN_ISSUED : Dispatched/issued instructions event:0x2 counters:0 um:zero minimum:500 name:FETCH_GROUPS : Fetch groups entering CPU execution pipes event:0x3 counters:0 um:zero minimum:500 name:FP_INSNS_COMPLETED : Instructions completed in FPU datapath (computational event:instructions only) event:0x4 counters:0 um:zero minimum:500 name:TLB_REFILLS_TAKEN : Taken TLB refill exceptions event:0x5 counters:0 um:zero minimum:500 name:BRANCHES_MISSPREDICTED : Branches that mispredicted before completing execution event:0x6 counters:0 um:zero minimum:500 name:BRANCHES_COMPLETED : Branches that completed execution event:0x7 counters:0 um:zero minimum:500 name:JTLB_EXCEPTIONS : Taken Joint-TLB exceptions event:0x8 counters:0 um:zero minimum:500 name:REPLAY_DUE_TO_LOAD_DEPENDENT_SPEC_DISPATCH : Replays due to load-dependent speculative dispatch event:0x9 counters:0 um:zero minimum:500 name:INSN_REQ_FROM_IFU_TO_BIU : Instruction requests from the IFU to the BIU event:0xa counters:0 um:zero minimum:500 name:FPU_EXCEPTIONS_TAKEN : Taken FPU exceptions event:0xb counters:0 um:zero minimum:500 name:REPLAYS : Total number of LSU requested replays, Load-dependent speculative dispatch or FPU exception prediction replays. event:0xc counters:0 um:zero minimum:500 name:RPS_MISSPREDICTS : JR instructions that mispredicted using the Return Prediction Stack (RPS) event:0xd counters:0 um:zero minimum:500 name:JR_INSNS_COMPLETED : JR instruction that completed execution event:0xe counters:0 um:zero minimum:500 name:LSU_REPLAYS : LSU requested replays event:0xf counters:0 um:zero minimum:500 name:INSNS_COMPLETED : Instruction that completed execution (with or without exception) oprofile-0.9.9/events/mips/20K/unit_masks0000664000076400007640000000013312175510132015205 00000000000000# # MIPS 20Kc possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/mips/24K/0000775000076400007640000000000012175511557013210 500000000000000oprofile-0.9.9/events/mips/24K/events0000664000076400007640000002402612175510132014347 00000000000000# # MIPS 24K # # The 24K CPUs have two performance counters. # # Even/odd counters are distinguished by setting bit 10 in the event # mask. The kernel masks this bit out before writing the control # register. # # Events specific to both counters # event:0x0 counters:0,1 um:zero minimum:500 name:CYCLES : 0-0 Cycles event:0x1 counters:0,1 um:zero minimum:500 name:INSTRUCTIONS : 1-0 Instructions completed event:0xb counters:0,1 um:zero minimum:500 name:DCACHE_MISSES : 11-0 Data cache misses # # Events specific to counter 0 # event:0x2 counters:0 um:zero minimum:500 name:BRANCH_INSNS : 2-0 Branch instructions (whether completed or mispredicted) event:0x3 counters:0 um:zero minimum:500 name:JR_31_INSNS : 3-0 JR $31 (return) instructions executed event:0x4 counters:0 um:zero minimum:500 name:JR_NON_31_INSNS : 4-0 JR $xx (not $31) instructions executed (at same cost as a mispredict) event:0x5 counters:0 um:zero minimum:500 name:ITLB_ACCESSES : 5-0 Instruction micro-TLB accesses event:0x6 counters:0 um:zero minimum:500 name:DTLB_ACCESSES : 6-0 Data micro-TLB accesses event:0x7 counters:0 um:zero minimum:500 name:JTLB_INSN_ACCESSES : 7-0 Joint TLB instruction accesses event:0x8 counters:0 um:zero minimum:500 name:JTLB_DATA_ACCESSES : 8-0 Joint TLB data (non-instruction) accesses event:0x9 counters:0 um:zero minimum:500 name:ICACHE_ACCESSES : 9-0 Instruction cache accesses event:0xa counters:0 um:zero minimum:500 name:DCACHE_ACCESSES : 10-0 Data cache accesses event:0xd counters:0 um:zero minimum:500 name:STORE_MISS_INSNS : 13-0 Cacheable stores that miss in the cache event:0xe counters:0 um:zero minimum:500 name:INTEGER_INSNS : 14-0 Integer instructions completed event:0xf counters:0 um:zero minimum:500 name:LOAD_INSNS : 15-0 Load instructions completed (including FP) event:0x10 counters:0 um:zero minimum:500 name:J_JAL_INSNS : 16-0 J/JAL instructions completed event:0x11 counters:0 um:zero minimum:500 name:NO_OPS_INSNS : 17-0 no-ops completed, ie instructions writing $0 event:0x12 counters:0 um:zero minimum:500 name:ALL_STALLS : 18-0 Stall cycles, including ALU and IFU event:0x13 counters:0 um:zero minimum:500 name:SC_INSNS : 19-0 SC instructions completed event:0x14 counters:0 um:zero minimum:500 name:PREFETCH_INSNS : 20-0 PREFETCH instructions completed event:0x15 counters:0 um:zero minimum:500 name:L2_CACHE_WRITEBACKS : 21-0 L2 cache lines written back to memory event:0x16 counters:0 um:zero minimum:500 name:L2_CACHE_MISSES : 22-0 L2 cache accesses that missed in the cache event:0x17 counters:0 um:zero minimum:500 name:EXCEPTIONS_TAKEN : 23-0 Exceptions taken event:0x18 counters:0 um:zero minimum:500 name:CACHE_FIXUP_CYCLES : 24-0 Cache fixup cycles (specific to the 24K family microarchitecture) event:0x19 counters:0 um:zero minimum:500 name:IFU_STALLS : 25-0 IFU stall cycles event:0x1a counters:0 um:zero minimum:500 name:DSP_INSNS : 26-0 DSP instructions completed event:0x1d counters:0 um:zero minimum:500 name:ISPRAM_EVENTS : 29-0 Implementation specific ISPRAM events event:0x1e counters:0 um:zero minimum:500 name:COREEXTEND_EVENTS : 30-0 Implementation specific CorExtend events event:0x21 counters:0 um:zero minimum:500 name:UNCACHED_LOAD_INSNS : 33-0 Uncached load instructions event:0x23 counters:0 um:zero minimum:500 name:CP2_ARITH_INSNS : 35-0 CP2 arithmetic instructions completed # # Count number of cycles (most often ``stall cycles'', ie time lost), not just number of events. # event:0x25 counters:0 um:zero minimum:500 name:ICACHE_MISS_STALLS : 37-0 Stall cycles due to an instruction cache miss event:0x26 counters:0 um:zero minimum:500 name:SYNC_STALLS : 38-0 SYNC stall cycles event:0x27 counters:0 um:zero minimum:500 name:DCACHE_MISS_CYCLES : 39-0 Cycles a data cache miss is outstanding, but not necessarily stalling the pipeline event:0x28 counters:0 um:zero minimum:500 name:UNCACHED_STALLS : 40-0 Uncached stall cycles event:0x29 counters:0 um:zero minimum:500 name:MDU_STALLS : 41-0 MDU stall cycles event:0x2a counters:0 um:zero minimum:500 name:CP2_STALLS : 42-0 CP2 stall cycles event:0x2b counters:0 um:zero minimum:500 name:ISPRAM_STALLS : 43-0 ISPRAM stall cycles event:0x2c counters:0 um:zero minimum:500 name:CACHE_INSN_STALLS : 44-0 Stall cycless due to CACHE instructions event:0x2d counters:0 um:zero minimum:500 name:LOAD_USE_STALLS : 45-0 Load to use stall cycles event:0x2e counters:0 um:zero minimum:500 name:INTERLOCK_STALLS : 46-0 Stall cycles due to return data from MFC0 and RDHWR instructions event:0x30 counters:0 um:zero minimum:500 name:IFU_FB_FULL_REFETCHES : 48-0 Refetches due to cache misses while both fill buffers already allocated event:0x31 counters:0 um:zero minimum:500 name:EJTAG_INSN_TRIGGERS : 49-0 EJTAG instruction triggerpoints # # # Monitor the state of various FIFO queues in the load/store unit: # FSB (``fill/store buffer'') # LDQ (``load queue'') # WBB (``write-back buffer'') # event:0x32 counters:0 um:zero minimum:500 name:FSB_LESS_25_FULL : 50-0 FSB < 25% full event:0x33 counters:0 um:zero minimum:500 name:FSB_OVER_50_FULL : 51-0 FSB > 50% full event:0x34 counters:0 um:zero minimum:500 name:LDQ_LESS_25_FULL : 52-0 LDQ < 25% full event:0x35 counters:0 um:zero minimum:500 name:LDQ_OVER_50_FULL : 53-0 LDQ > 50% full event:0x36 counters:0 um:zero minimum:500 name:WBB_LESS_25_FULL : 54-0 WBB < 25% full event:0x37 counters:0 um:zero minimum:500 name:WBB_OVER_50_FULL : 55-0 WBB > 50% full # # Events specific to counter 1 # event:0x402 counters:1 um:zero minimum:500 name:MISPREDICTED_BRANCH_INSNS : 2-1 Branch mispredictions event:0x403 counters:1 um:zero minimum:500 name:JR_31_MISPREDICTIONS : 3-1 JR $31 mispredictions event:0x404 counters:1 um:zero minimum:500 name:JR_31_NO_PREDICTIONS : 4-1 JR $31 not predicted (stack mismatch). event:0x405 counters:1 um:zero minimum:500 name:ITLB_MISSES : 5-1 Instruction micro-TLB misses event:0x406 counters:1 um:zero minimum:500 name:DTLB_MISSES : 6-1 Data micro-TLB misses event:0x407 counters:1 um:zero minimum:500 name:JTLB_INSN_MISSES : 7-1 Joint TLB instruction misses event:0x408 counters:1 um:zero minimum:500 name:JTLB_DATA_MISSES : 8-1 Joint TLB data (non-instruction) misses event:0x409 counters:1 um:zero minimum:500 name:ICACHE_MISSES : 9-1 Instruction cache misses event:0x40a counters:1 um:zero minimum:500 name:DCACHE_WRITEBACKS : 10-1 Data cache lines written back to memory event:0x40d counters:1 um:zero minimum:500 name:LOAD_MISS_INSNS : 13-1 Cacheable load instructions that miss in the cache event:0x40e counters:1 um:zero minimum:500 name:FPU_INSNS : 14-1 FPU instructions completed (not including loads/stores) event:0x40f counters:1 um:zero minimum:500 name:STORE_INSNS : 15-1 Stores completed (including FP) event:0x410 counters:1 um:zero minimum:500 name:MIPS16_INSNS : 16-1 MIPS16 instructions completed event:0x411 counters:1 um:zero minimum:500 name:INT_MUL_DIV_INSNS : 17-1 Integer multiply/divide instructions completed event:0x412 counters:1 um:zero minimum:500 name:REPLAYED_INSNS : 18-1 Replayed instructions event:0x413 counters:1 um:zero minimum:500 name:SC_INSNS_FAILED : 19-1 SC instructions completed, but store failed (because the link bit had been cleared) event:0x414 counters:1 um:zero minimum:500 name:CACHE_HIT_PREFETCH_INSNS : 20-1 PREFETCH instructions completed with cache hit event:0x415 counters:1 um:zero minimum:500 name:L2_CACHE_ACCESSES : 21-1 Accesses to the L2 cache event:0x416 counters:1 um:zero minimum:500 name:L2_CACHE_SINGLE_BIT_ERRORS : 22-1 Single bit errors corrected in L2 event:0x419 counters:1 um:zero minimum:500 name:ALU_STALLS : 25-1 ALU stall cycles event:0x41a counters:1 um:zero minimum:500 name:ALU_DSP_SATURATION_INSNS : 26-1 ALU-DSP saturation instructions event:0x41b counters:1 um:zero minimum:500 name:MDU_DSP_SATURATION_INSNS : 27-1 MDU-DSP saturation instructions event:0x41c counters:1 um:zero minimum:500 name:CP2_EVENTS : 28-1 Implementation specific CP2 events event:0x41d counters:1 um:zero minimum:500 name:DSPRAM_EVENTS : 29-1 Implementation specific DSPRAM events event:0x421 counters:1 um:zero minimum:500 name:UNCACHED_STORE_INSNS : 33-1 Uncached store instructions event:0x423 counters:1 um:zero minimum:500 name:CP2_TO_FROM_INSNS : 35-1 CP2 to/from instructions (moves, control, loads, stores) # # Count number of cycles (most often ``stall cycles'', ie time lost), not just number of events. # event:0x425 counters:1 um:zero minimum:500 name:DCACHE_MISS_STALLS : 37-1 Stall cycles due to a data cache miss event:0x426 counters:1 um:zero minimum:500 name:FSB_INDEX_CONFLICT_STALLS : 38-1 FSB (fill/store buffer) index conflict stall cycles event:0x427 counters:1 um:zero minimum:500 name:L2_CACHE_MISS_CYCLES : 39-1 Cycles a L2 miss is outstanding, but not necessarily stalling the pipeline event:0x429 counters:1 um:zero minimum:500 name:FPU_STALLS : 41-1 FPU stall cycles event:0x42a counters:1 um:zero minimum:500 name:COREEXTEND_STALLS : 42-1 CorExtend stall cycles event:0x42b counters:1 um:zero minimum:500 name:DSPRAM_STALLS : 43-1 DSPRAM stall cycles event:0x42d counters:1 um:zero minimum:500 name:ALU_TO_AGEN_STALLS : 45-1 ALU to AGEN stall cycles event:0x42e counters:1 um:zero minimum:500 name:MISPREDICTION_STALLS : 46-1 Branch mispredict stall cycles event:0x430 counters:1 um:zero minimum:500 name:FB_ENTRY_ALLOCATED_CYCLES : 48-1 Cycles while at least one IFU fill buffer is allocated event:0x431 counters:1 um:zero minimum:500 name:EJTAG_DATA_TRIGGERS : 49-1 EJTAG Data triggerpoints # # Monitor the state of various FIFO queues in the load/store unit: # FSB (``fill/store buffer'') # LDQ (``load queue'') # WBB (``write-back buffer'') # Some count events, others count stall cycles. # event:0x432 counters:1 um:zero minimum:500 name:FSB_25_50_FULL : 50-1 FSB 25-50% full event:0x433 counters:1 um:zero minimum:500 name:FSB_FULL_STALLS : 51-1 FSB full pipeline stall cycles event:0x434 counters:1 um:zero minimum:500 name:LDQ_25_50_FULL : 52-1 LDQ 25-50% full event:0x435 counters:1 um:zero minimum:500 name:LDQ_FULL_STALLS : 53-1 LDQ full pipeline stall cycles event:0x436 counters:1 um:zero minimum:500 name:WBB_25_50_FULL : 54-1 WBB 25-50% full event:0x437 counters:1 um:zero minimum:500 name:WBB_FULL_STALLS : 55-1 WBB full pipeline stall cycles oprofile-0.9.9/events/mips/24K/unit_masks0000664000076400007640000000013212175510132015210 00000000000000# # MIPS 24K possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/mips/1004K/0000775000076400007640000000000012175511557013347 500000000000000oprofile-0.9.9/events/mips/1004K/events0000664000076400007640000003205612175510132014510 00000000000000# # MIPS 1004K # # The 1004K CPUs have two performance counters. # # Even/odd counters are distinguished by setting bit 10 in the event # mask. The kernel masks this bit out before writing the control # register. # # Events specific to both counters # event:0x0 counters:0,1 um:zero minimum:500 name:CYCLES : 0-0 Cycles event:0x1 counters:0,1 um:zero minimum:500 name:INSTRUCTIONS : 1-0 Instructions completed event:0xb counters:0,1 um:zero minimum:500 name:DCACHE_MISSES : 11-0 Data cache misses # # Events specific to counter 0 # event:0x2 counters:0 um:zero minimum:500 name:BRANCH_INSNS : 2-0 Branch instructions (whether completed or mispredicted) event:0x3 counters:0 um:zero minimum:500 name:JR_31_INSNS : 3-0 JR $31 (return) instructions executed event:0x4 counters:0 um:zero minimum:500 name:JR_NON_31_INSNS : 4-0 JR $xx (not $31) instructions executed (at same cost as a mispredict) event:0x5 counters:0 um:zero minimum:500 name:ITLB_ACCESSES : 5-0 Instruction micro-TLB accesses event:0x6 counters:0 um:zero minimum:500 name:DTLB_ACCESSES : 6-0 Data micro-TLB accesses event:0x7 counters:0 um:zero minimum:500 name:JTLB_INSN_ACCESSES : 7-0 Joint TLB instruction accesses event:0x8 counters:0 um:zero minimum:500 name:JTLB_DATA_ACCESSES : 8-0 Joint TLB data (non-instruction) accesses event:0x9 counters:0 um:zero minimum:500 name:ICACHE_ACCESSES : 9-0 Instruction cache accesses event:0xa counters:0 um:zero minimum:500 name:DCACHE_ACCESSES : 10-0 Data cache accesses event:0xd counters:0 um:zero minimum:500 name:STORE_MISS_INSNS : 13-0 Cacheable stores that miss in the cache event:0xe counters:0 um:zero minimum:500 name:INTEGER_INSNS : 14-0 Integer instructions completed event:0xf counters:0 um:zero minimum:500 name:LOAD_INSNS : 15-0 Load instructions completed (including FP) event:0x10 counters:0 um:zero minimum:500 name:J_JAL_INSNS : 16-0 J/JAL instructions completed event:0x11 counters:0 um:zero minimum:500 name:NO_OPS_INSNS : 17-0 no-ops completed, ie instructions writing $0 event:0x12 counters:0 um:zero minimum:500 name:ALL_STALLS : 18-0 Stall cycles, including ALU and IFU event:0x13 counters:0 um:zero minimum:500 name:SC_INSNS : 19-0 SC instructions completed event:0x14 counters:0 um:zero minimum:500 name:PREFETCH_INSNS : 20-0 PREFETCH instructions completed event:0x15 counters:0 um:zero minimum:500 name:L2_CACHE_WRITEBACKS : 21-0 L2 cache lines written back to memory event:0x16 counters:0 um:zero minimum:500 name:L2_CACHE_MISSES : 22-0 L2 cache accesses that missed in the cache event:0x17 counters:0 um:zero minimum:500 name:EXCEPTIONS_TAKEN : 23-0 Exceptions taken event:0x18 counters:0 um:zero minimum:500 name:CACHE_FIXUP_CYCLES : 24-0 Cache fixup cycles (specific to the 34K family microarchitecture) event:0x19 counters:0 um:zero minimum:500 name:IFU_STALLS : 25-0 IFU stall cycles event:0x1a counters:0 um:zero minimum:500 name:DSP_INSNS : 26-0 DSP instructions completed event:0x1c counters:0 um:zero minimum:500 name:POLICY_EVENTS : 28-0 Implementation specific policy manager events event:0x1d counters:0 um:zero minimum:500 name:ISPRAM_EVENTS : 29-0 Implementation specific ISPRAM events event:0x1e counters:0 um:zero minimum:500 name:COREEXTEND_EVENTS : 30-0 Implementation specific CorExtend events event:0x1f counters:0 um:zero minimum:500 name:YIELD_EVENTS : 31-0 Implementation specific yield events event:0x20 counters:0 um:zero minimum:500 name:ITC_LOADS : 32-0 ITC Loads event:0x21 counters:0 um:zero minimum:500 name:UNCACHED_LOAD_INSNS : 33-0 Uncached load instructions event:0x22 counters:0 um:zero minimum:500 name:FORK_INSNS : 34-0 Fork instructions completed event:0x23 counters:0 um:zero minimum:500 name:CP2_ARITH_INSNS : 35-0 CP2 arithmetic instructions completed event:0x24 counters:0 um:zero minimum:500 name:INTERVENTION_STALLS : 36-0 Cache coherence intervention processing stall cycles # # Count number of cycles (most often ``stall cycles'', ie time lost), not just number of events. # event:0x25 counters:0 um:zero minimum:500 name:ICACHE_MISS_STALLS : 37-0 Stall cycles due to an instruction cache miss event:0x27 counters:0 um:zero minimum:500 name:DCACHE_MISS_CYCLES : 39-0 Cycles a data cache miss is outstanding, but not necessarily stalling the pipeline event:0x28 counters:0 um:zero minimum:500 name:UNCACHED_STALLS : 40-0 Uncached stall cycles event:0x29 counters:0 um:zero minimum:500 name:MDU_STALLS : 41-0 MDU stall cycles event:0x2a counters:0 um:zero minimum:500 name:CP2_STALLS : 42-0 CP2 stall cycles event:0x2b counters:0 um:zero minimum:500 name:ISPRAM_STALLS : 43-0 ISPRAM stall cycles event:0x2c counters:0 um:zero minimum:500 name:CACHE_INSN_STALLS : 44-0 Stall cycless due to CACHE instructions event:0x2d counters:0 um:zero minimum:500 name:LOAD_USE_STALLS : 45-0 Load to use stall cycles event:0x2e counters:0 um:zero minimum:500 name:INTERLOCK_STALLS : 46-0 Stall cycles due to return data from MFC0, RDHWR, and MFTR instructions event:0x2f counters:0 um:zero minimum:500 name:RELAX_STALLS : 47-0 Low power stall cycles (operations) as requested by the policy manager event:0x30 counters:0 um:zero minimum:500 name:IFU_FB_FULL_REFETCHES : 48-0 Refetches due to cache misses while both fill buffers already allocated event:0x31 counters:0 um:zero minimum:500 name:EJTAG_INSN_TRIGGERS : 49-0 EJTAG instruction triggerpoints # # # Monitor the state of various FIFO queues in the load/store unit: # FSB (``fill/store buffer'') # LDQ (``load queue'') # WBB (``write-back buffer'') # Some count events, others count stall cycles. # event:0x32 counters:0 um:zero minimum:500 name:FSB_LESS_25_FULL : 50-0 FSB < 25% full event:0x33 counters:0 um:zero minimum:500 name:FSB_OVER_50_FULL : 51-0 FSB > 50% full event:0x34 counters:0 um:zero minimum:500 name:LDQ_LESS_25_FULL : 52-0 LDQ < 25% full event:0x35 counters:0 um:zero minimum:500 name:LDQ_OVER_50_FULL : 53-0 LDQ > 50% full event:0x36 counters:0 um:zero minimum:500 name:WBB_LESS_25_FULL : 54-0 WBB < 25% full event:0x37 counters:0 um:zero minimum:500 name:WBB_OVER_50_FULL : 55-0 WBB > 50% full event:0x38 counters:0 um:zero minimum:500 name:INTERVENTION_HIT_COUNT : 56-0 External interventions that hit in the cache event:0x39 counters:0 um:zero minimum:500 name:INVALIDATE_INTERVENTION_COUNT : 57-0 External invalidate (i.e. leaving a cache line in the invalid state) interventions event:0x3a counters:0 um:zero minimum:500 name:EVICTION_COUNT : 58-0 Cache lines written back due to cache replacement or non-coherent cache operation event:0x3b counters:0 um:zero minimum:500 name:MESI_INVAL_COUNT : 59-0 MESI protocol transitions into invalid state event:0x3c counters:0 um:zero minimum:500 name:MESI_MODIFIED_COUNT : 60-0 MESI protocol transitions into modified state event:0x3d counters:0 um:zero minimum:500 name:SELF_INTERVENTION_LATENCY : 61-0 Latency from miss detection to self intervention event:0x3e counters:0 um:zero minimum:500 name:READ_RESPONSE_LATENCY : 62-0 Read latency from miss detection until critical dword of response is returned # # Events specific to counter 1 # event:0x402 counters:1 um:zero minimum:500 name:MISPREDICTED_BRANCH_INSNS : 2-1 Branch mispredictions event:0x403 counters:1 um:zero minimum:500 name:JR_31_MISPREDICTIONS : 3-1 JR $31 mispredictions event:0x404 counters:1 um:zero minimum:500 name:JR_31_NO_PREDICTIONS : 4-1 JR $31 not predicted (stack mismatch). event:0x405 counters:1 um:zero minimum:500 name:ITLB_MISSES : 5-1 Instruction micro-TLB misses event:0x406 counters:1 um:zero minimum:500 name:DTLB_MISSES : 6-1 Data micro-TLB misses event:0x407 counters:1 um:zero minimum:500 name:JTLB_INSN_MISSES : 7-1 Joint TLB instruction misses event:0x408 counters:1 um:zero minimum:500 name:JTLB_DATA_MISSES : 8-1 Joint TLB data (non-instruction) misses event:0x409 counters:1 um:zero minimum:500 name:ICACHE_MISSES : 9-1 Instruction cache misses event:0x40a counters:1 um:zero minimum:500 name:DCACHE_WRITEBACKS : 10-1 Data cache lines written back to memory event:0x40d counters:1 um:zero minimum:500 name:LOAD_MISS_INSNS : 13-1 Cacheable load instructions that miss in the cache event:0x40e counters:1 um:zero minimum:500 name:FPU_INSNS : 14-1 FPU instructions completed (not including loads/stores) event:0x40f counters:1 um:zero minimum:500 name:STORE_INSNS : 15-1 Stores completed (including FP) event:0x410 counters:1 um:zero minimum:500 name:MIPS16_INSNS : 16-1 MIPS16 instructions completed event:0x411 counters:1 um:zero minimum:500 name:INT_MUL_DIV_INSNS : 17-1 Integer multiply/divide instructions completed event:0x412 counters:1 um:zero minimum:500 name:REPLAYED_INSNS : 18-1 Replayed instructions event:0x413 counters:1 um:zero minimum:500 name:SC_INSNS_FAILED : 19-1 SC instructions completed, but store failed (because the link bit had been cleared) event:0x414 counters:1 um:zero minimum:500 name:CACHE_HIT_PREFETCH_INSNS : 20-1 PREFETCH instructions completed with cache hit event:0x415 counters:1 um:zero minimum:500 name:L2_CACHE_ACCESSES : 21-1 Accesses to the L2 cache event:0x416 counters:1 um:zero minimum:500 name:L2_CACHE_SINGLE_BIT_ERRORS : 22-1 Single bit errors corrected in L2 event:0x417 counters:1 um:zero minimum:500 name:SINGLE_THREADED_CYCLES : 23-1 Cycles while one and only one TC is eligible for scheduling event:0x418 counters:1 um:zero minimum:500 name:REFETCHED_INSNS : 24-1 Replayed instructions sent back to IFU to be refetched event:0x419 counters:1 um:zero minimum:500 name:ALU_STALLS : 25-1 ALU stall cycles event:0x41a counters:1 um:zero minimum:500 name:ALU_DSP_SATURATION_INSNS : 26-1 ALU-DSP saturation instructions event:0x41b counters:1 um:zero minimum:500 name:MDU_DSP_SATURATION_INSNS : 27-1 MDU-DSP saturation instructions event:0x41c counters:1 um:zero minimum:500 name:CP2_EVENTS : 28-1 Implementation specific CP2 events event:0x41d counters:1 um:zero minimum:500 name:DSPRAM_EVENTS : 29-1 Implementation specific DSPRAM events event:0x41f counters:1 um:zero minimum:500 name:ITC_EVENT : 31-1 Implementation specific yield event event:0x421 counters:1 um:zero minimum:500 name:UNCACHED_STORE_INSNS : 33-1 Uncached store instructions event:0x423 counters:1 um:zero minimum:500 name:CP2_TO_FROM_INSNS : 35-1 CP2 to/from instructions (moves, control, loads, stores) event:0x424 counters:1 um:zero minimum:500 name:INTERVENTION_MISS_STALLS : 36-1 Cache coherence intervention processing stall cycles due to an earlier miss # # Count number of cycles (most often ``stall cycles'', ie time lost), not just number of events. # event:0x425 counters:1 um:zero minimum:500 name:DCACHE_MISS_STALLS : 37-1 Stall cycles due to a data cache miss event:0x426 counters:1 um:zero minimum:500 name:FSB_INDEX_CONFLICT_STALLS : 38-1 FSB (fill/store buffer) index conflict stall cycles event:0x427 counters:1 um:zero minimum:500 name:L2_CACHE_MISS_CYCLES : 39-1 Cycles a L2 miss is outstanding, but not necessarily stalling the pipeline event:0x428 counters:1 um:zero minimum:500 name:ITC_STALLS : 40-1 ITC stall cycles event:0x429 counters:1 um:zero minimum:500 name:FPU_STALLS : 41-1 FPU stall cycles event:0x42a counters:1 um:zero minimum:500 name:COREEXTEND_STALLS : 42-1 CorExtend stall cycles event:0x42b counters:1 um:zero minimum:500 name:DSPRAM_STALLS : 43-1 DSPRAM stall cycles event:0x42d counters:1 um:zero minimum:500 name:ALU_TO_AGEN_STALLS : 45-1 ALU to AGEN stall cycles event:0x42e counters:1 um:zero minimum:500 name:MISPREDICTION_STALLS : 46-1 Branch mispredict stall cycles event:0x430 counters:1 um:zero minimum:500 name:FB_ENTRY_ALLOCATED_CYCLES : 48-1 Cycles while at least one IFU fill buffer is allocated event:0x431 counters:1 um:zero minimum:500 name:EJTAG_DATA_TRIGGERS : 49-1 EJTAG Data triggerpoints # # Monitor the state of various FIFO queues in the load/store unit: # FSB (``fill/store buffer'') # LDQ (``load queue'') # WBB (``write-back buffer'') # Some count events, others count stall cycles. # event:0x432 counters:1 um:zero minimum:500 name:FSB_25_50_FULL : 50-1 FSB 25-50% full event:0x433 counters:1 um:zero minimum:500 name:FSB_FULL_STALLS : 51-1 FSB full pipeline stall cycles event:0x434 counters:1 um:zero minimum:500 name:LDQ_25_50_FULL : 52-1 LDQ 25-50% full event:0x435 counters:1 um:zero minimum:500 name:LDQ_FULL_STALLS : 53-1 LDQ full pipeline stall cycles event:0x436 counters:1 um:zero minimum:500 name:WBB_25_50_FULL : 54-1 WBB 25-50% full event:0x437 counters:1 um:zero minimum:500 name:WBB_FULL_STALLS : 55-1 WBB full pipeline stall cycles event:0x438 counters:1 um:zero minimum:500 name:INTERVENTION_COUNT : 56-1 External interventions event:0x439 counters:1 um:zero minimum:500 name:INVALIDATE_INTERVENTION_HIT_COUNT : 57-1 External invalidate interventions that hit in the cache event:0x43a counters:1 um:zero minimum:500 name:WRITEBACK_COUNT : 58-1 Cache lines written back due to cache replacement or any cache operation (non-coherent, self, or external coherent) event:0x43b counters:1 um:zero minimum:500 name:MESI_EXCLUSIVE_COUNT : 59-1 MESI protocol transitions into exclusive state event:0x43c counters:1 um:zero minimum:500 name:MESI_SHARED_COUNT : 60-1 MESI protocol transitions into shared state event:0x43d counters:1 um:zero minimum:500 name:SELF_INTERVENTION_COUNT : 61-1 Self intervention requests on miss detection event:0x43e counters:1 um:zero minimum:500 name:READ_RESPONSE_COUNT : 62-1 Read requests on miss detection oprofile-0.9.9/events/mips/1004K/unit_masks0000664000076400007640000000013412175510132015351 00000000000000# # MIPS 1004K possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/mips/sb1/0000775000076400007640000000000012175511557013335 500000000000000oprofile-0.9.9/events/mips/sb1/events0000664000076400007640000001164112175510132014473 00000000000000# # Sibyte SB1 events # event:0x10 counters:0,1,2,3 um:zero minimum:500 name:CYCLES :Elapsed cycles # Execution Counts and Instruction Slotting event:0x28 counters:1,2,3 um:zero minimum:500 name:ISSUE_L0 :Issue to L0 event:0x29 counters:1,2,3 um:zero minimum:500 name:ISSUE_L1 :Issue to L0 event:0x2a counters:1,2,3 um:zero minimum:500 name:ISSUE_E0 :Issue to E0 event:0x2b counters:1,2,3 um:zero minimum:500 name:ISSUE_E1 :Issue to E1 # Explaining Sub-Peak Performance: Pipeline Traps event:0x2f counters:1,2,3 um:zero minimum:500 name:BRANCH_MISSPREDICTS :Branch mispredicts event:0x1d counters:1,2,3 um:zero minimum:500 name:MBOX_REPLAY :MBOX replay event:0x1c counters:1,2,3 um:zero minimum:500 name:DCFIFO :DCFIFO event:0x1e counters:1,2,3 um:zero minimum:500 name:DATA_DEPENDENCY_REPLAY :Data dependency replay event:0x1b counters:1,2,3 um:zero minimum:500 name:DCACHE_FILL_REPLAY :Dcache fill replay event:0x1f counters:1,2,3 um:zero minimum:500 name:ANY_REPLAY :Any replay except mispredict # Explaining Sub-Peak Performance: static and dynamic stalls event:0x20 counters:1,2,3 um:zero minimum:500 name:MAX_ISSUE :Max issue event:0x21 counters:1,2,3 um:zero minimum:500 name:NO_VALID_INSN :No valid instr to issue event:0x22 counters:1,2,3 um:zero minimum:500 name:CONSUMER_WAITING_FOR_LOAD :load consumer waiting for dfill event:0x23 counters:1,2,3 um:zero minimum:500 name:NOT_DATA_READY :Not data ready event:0x24 counters:1,2,3 um:zero minimum:500 name:RESOURCE_CONSTRAINT :Resource (L0/1 E0/1) constraint event:0x25 counters:1,2,3 um:zero minimum:500 name:ISSUE_CONFLICT_DUE_IMISS :issue conflict due to imiss using LS0 event:0x26 counters:1,2,3 um:zero minimum:500 name:ISSUE_CONFLICT_DUE_DFILL :issue conflict due to dfill using LS0/1 # Grouping Co-issued Instructions event:0x27 counters:1,2,3 um:zero minimum:500 name:INSN_STAGE4 :One or more instructions survives stage 4 # Branch information event:0x2c counters:1,2,3 um:zero minimum:500 name:BRANCH_STAGE4 :Branch survived stage 4 event:0x2d counters:1,2,3 um:zero minimum:500 name:BRANCH_REALLY_TAKEN :Conditional branch was really taken event:0x2e counters:1,2,3 um:zero minimum:500 name:BRANCH_PREDICTED_TAKEN :Predicted taken conditional branch # Cache access event:0x1 counters:1,2,3 um:zero minimum:500 name:RQ_LENGTH :Read queue length event:0x2 counters:1,2,3 um:zero minimum:500 name:UNCACHED_RQ_LENGTH :Number of valid uncached entries in read queue event:0x3 counters:1,2,3 um:zero minimum:500 name:DCACHE_READ_MISS :Dcache read results in a miss event:0xa counters:1,2,3 um:zero minimum:500 name:DCACHE_FILLED_SHD_NONC_EXC :Dcache is filled (shared, nonc, exclusive) event:0xb counters:1,2,3 um:zero minimum:500 name:DCACHE_FILL_SHARED_LINE :Dcache is filled with shared line event:0xc counters:1,2,3 um:zero minimum:500 name:DCACHE_READ_MISS :Dcache read results in a miss event:0xf counters:1,2,3 um:zero minimum:500 name:WRITEBACK_RETURNS :Number of instruction returns event:0xd counters:1,2,3 um:zero minimum:500 name:VICTIM_WRITEBACK :A writeback occurs due to replacement event:0x7 counters:1,2,3 um:zero minimum:500 name:UPGRADE_SHARED_TO_EXCLUSIVE :A line is upgraded from shared to exclusive event:0x6 counters:1,2,3 um:zero minimum:500 name:LD_ST_HITS_PREFETCH_IN_QUEUE :Load/store hits prefetch in read queue event:0x5 counters:1,2,3 um:zero minimum:500 name:PREFETCH_HITS_CACHE_OR_READ_Q :Prefetch hits in cache or read queue event:0x4 counters:1,2,3 um:zero minimum:500 name:READ_HITS_READ_Q :Read hits in read queue # BIU event:0x11 counters:1,2,3 um:zero minimum:500 name:BIU_STALLS_ON_ZB_ADDR_BUS :BIU stalls on ZB addr bus event:0x12 counters:1,2,3 um:zero minimum:500 name:BIU_STALLS_ON_ZB_DATA_BUS :BIU stalls on ZB data bus event:0x13 counters:1,2,3 um:zero minimum:500 name:READ_RQ_SENT_TO_ABUS :Requests sent to ZB Abus event:0x14 counters:1,2,3 um:zero minimum:500 name:READ_RQ_NOPS_SENT_TO_ABUS :Read requests and NOPs sent to ZB Abus event:0x15 counters:1,2,3 um:zero minimum:500 name:READ_RQ_SENT_TO_ABUS :Read requests sent to ZB Abus event:0x16 counters:1,2,3 um:zero minimum:500 name:MBOX_RQ_WHEN_BIU_BUSY :MBOX requests to BIU when BIU busy # Multiprocessor event:0x1a counters:1,2,3 um:zero minimum:500 name:STORE_COND_FAILED :Failed store conditional event:0x16 counters:1,2,3 um:zero minimum:500 name:SNOOP_RQ_HITS :Snoop request hits anywhere event:0x17 counters:1,2,3 um:zero minimum:500 name:SNOOP_ADDR_Q_FULL :Snoop address queue is full event:0x18 counters:1,2,3 um:zero minimum:500 name:R_RESP_OTHER_CORE :Read response comes from the other core event:0x19 counters:1,2,3 um:zero minimum:500 name:R_RESP_OTHER_CORE_D_MOD :Read response comes from the other core with D_MOD set # Instruction Counts event:0x8 counters:1,2,3 um:zero minimum:500 name:LOAD_SURVIVED_STAGE4 :Load survived stage 4 event:0x9 counters:1,2,3 um:zero minimum:500 name:STORE_SURVIVED_STAGE4 :Store survived stage 4 event:0x0 counters:1,2,3 um:zero minimum:500 name:INSN_SURVIVED_STAGE7 :Instruction survived stage 7 oprofile-0.9.9/events/mips/sb1/unit_masks0000664000076400007640000000013412175510132015337 00000000000000# # Sibyte SB1 possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/mips/r12000/0000775000076400007640000000000012175511557013474 500000000000000oprofile-0.9.9/events/mips/r12000/events0000664000076400007640000000657412175510132014643 00000000000000# # R12000 events # event:0x0 counters:0,1,2,3 um:zero minimum:500 name:CYCLES : Cycles event:0x1 counters:0,1,2,3 um:zero minimum:500 name:DECODED_INSTRUCTIONS : Decoded instructions event:0x2 counters:0,1,2,3 um:zero minimum:500 name:DECODED_LOADS : Decoded loads event:0x3 counters:0,1,2,3 um:zero minimum:500 name:DECODED_STORES : Decoded stores event:0x4 counters:0,1,2,3 um:zero minimum:500 name:MISS_TABLE_OCCUPANCY : Miss Handling Table Occupancy event:0x5 counters:0,1,2,3 um:zero minimum:500 name:FAILED_STORE_CONDITIONAL : Failed store conditional event:0x6 counters:0,1,2,3 um:zero minimum:500 name:RESOLVED_BRANCH_CONDITIONAL : Resolved conditional branches event:0x7 counters:0,1,2,3 um:zero minimum:500 name:QUADWORRDS_WRITEBACK_FROM_SC : Quadwords written back from secondary cache event:0x8 counters:0,1,2,3 um:zero minimum:500 name:CORRECTABLE_ECC_ERRORS : Correctable ECC errors on secondary cache data event:0x9 counters:0,1,2,3 um:zero minimum:500 name:ICACHE_MISSES : Instruction cache misses event:0xa counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_SECONDARY_CACHE_MISSES : Secondary cache misses (instruction) event:0xb counters:0,1,2,3 um:zero minimum:500 name:SECONDARY_CACHE_WAY_MISSPREDICTED : Secondary cache way mispredicted (instruction) event:0xc counters:0,1,2,3 um:zero minimum:500 name:INTERVENTION_REQUESTS : External intervention requests event:0xd counters:0,1,2,3 um:zero minimum:500 name:EXTERNAL_REQUESTS : External invalidate requests event:0xf counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTIONS_GRADUATED : Instructions graduated event:0x10 counters:0,1,2,3 um:zero minimum:500 name:PREFETCH_INSTRUCTIONS_EXECUTED : Executed prefetch instructions event:0x11 counters:0,1,2,3 um:zero minimum:500 name:PREFETCH_MISSES_IN_DCACHE : Primary data cache misses by prefetch instructions event:0x12 counters:0,1,2,3 um:zero minimum:500 name:GRADUATED_LOADS : Graduated loads event:0x13 counters:0,1,2,3 um:zero minimum:500 name:GRADUATED_STORES : Graduated stores event:0x14 counters:0,1,2,3 um:zero minimum:500 name:GRADUATED_STORE_CONDITIONALS : Graduated store conditionals event:0x15 counters:0,1,2,3 um:zero minimum:500 name:GRADUATED_FP_INSTRUCTIONS : Graduated floating point instructions event:0x16 counters:0,1,2,3 um:zero minimum:500 name:QUADWORDS : Quadwords written back from primary data cache event:0x17 counters:0,1,2,3 um:zero minimum:500 name:TLB_MISSES : TLB misses event:0x18 counters:0,1,2,3 um:zero minimum:500 name:MISPREDICTED_BRANCHES : Mispredicted branches event:0x19 counters:0,1,2,3 um:zero minimum:500 name:DCACHE_MISSES : Primary data cache misses event:0x1a counters:0,1,2,3 um:zero minimum:500 name:SCACHE_MISSES : Secondary cache misses (data) event:0x1b counters:0,1,2,3 um:zero minimum:500 name:SCACHE_WAY_MISPREDICTION : Misprediction from scache way prediction table (data) event:0x1c counters:0,1,2,3 um:zero minimum:500 name:STATE_OF_SCACHE_INTERVENTION_HIT : State of external intervention hit in secondary cache event:0x1d counters:0,1,2,3 um:zero minimum:500 name:STATE_OF_EXTERNAL_INVALIDATION_HIT : State of external invalidation hits in secondary cache event:0x1e counters:0,1,2,3 um:zero minimum:500 name:STORE_PREFETCH_EXCLUSIVE_TO_CLEAN_SC_BLOCK : Store/prefetch exclusive to clean block in secondary cache event:0x1f counters:0,1,2,3 um:zero minimum:500 name:STORE_PREFETCH_EXCLUSIVE_SHARED_SC_BLOCK : Store/prefetch exclusive to shared block in secondary oprofile-0.9.9/events/mips/r12000/unit_masks0000664000076400007640000000023412175510132015477 00000000000000# # MIPS R12000 possible unit masks # # We don't support the R12000 conditional count feature yet. # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/mips/vr5500/0000775000076400007640000000000012175511557013611 500000000000000oprofile-0.9.9/events/mips/vr5500/events0000664000076400007640000000212212175510132014741 00000000000000# # VR5500, VR5532 and VR7701 events # # Very similar to what the VR5432 provides. # event:0x0 counters:0,1 um:zero minimum:500 name:CYCLES : Processor clock cycles event:0x1 counters:0,1 um:zero minimum:500 name:INSTRUCTIONS_EXECUTED : Instructions executed event:0x2 counters:0,1 um:zero minimum:500 name:LOAD_PREF_CACHE_INSTRUCTIONS : Execution of load/prefetch/cache instruction event:0x3 counters:0,1 um:zero minimum:500 name:STORES : Execution of store instruction event:0x4 counters:0,1 um:zero minimum:500 name:BRANCHES : Execution of branch instruction event:0x5 counters:0,1 um:zero minimum:500 name:FP_INSTRUCTIONS : Execution of floating-point instruction event:0x6 counters:0,1 um:zero minimum:500 name:DOUBLEWORDS_FLUSHED : Doubleword flush to main memory event:0x7 counters:0,1 um:zero minimum:500 name:JTLB_REFILLS : TLB refill event:0x8 counters:0,1 um:zero minimum:500 name:DCACHE_MISSES : Data cache miss event:0x9 counters:0,1 um:zero minimum:500 name:ICACHE_MISSES : Instruction cache miss event:0xa counters:0,1 um:zero minimum:500 name:BRANCHES_MISPREDICTED : Branch prediction miss oprofile-0.9.9/events/mips/vr5500/unit_masks0000664000076400007640000000013512175510132015614 00000000000000# # MIPS VR5500 possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/rtc/0000775000076400007640000000000012175511557012470 500000000000000oprofile-0.9.9/events/rtc/events0000664000076400007640000000017512175510132013626 00000000000000# RTC events # name:RTC_INTERRUPTS event:0xff counters:0 um:zero minimum:2 : RTC interrupts/sec (rounded up to power of two) oprofile-0.9.9/events/rtc/unit_masks0000664000076400007640000000012312175510132014470 00000000000000# RTC possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/i386/0000775000076400007640000000000012175511556012370 500000000000000oprofile-0.9.9/events/i386/p6_mobile/0000775000076400007640000000000012175511556014244 500000000000000oprofile-0.9.9/events/i386/p6_mobile/events0000664000076400007640000002505712175510132015411 00000000000000# Pentium M events # event:0x79 counters:0,1 um:zero minimum:6000 name:CPU_CLK_UNHALTED : clocks processor is not halted, and not in a thermal trip event:0x43 counters:0,1 um:zero minimum:500 name:DATA_MEM_REFS : all memory references, cachable and non event:0x45 counters:0,1 um:zero minimum:500 name:DCU_LINES_IN : total lines allocated in the DCU event:0x46 counters:0,1 um:zero minimum:500 name:DCU_M_LINES_IN : number of M state lines allocated in DCU event:0x47 counters:0,1 um:zero minimum:500 name:DCU_M_LINES_OUT : number of M lines evicted from the DCU event:0x48 counters:0,1 um:zero minimum:500 name:DCU_MISS_OUTSTANDING : number of cycles while DCU miss outstanding event:0x80 counters:0,1 um:zero minimum:500 name:IFU_IFETCH : number of non/cachable instruction fetches event:0x81 counters:0,1 um:zero minimum:500 name:IFU_IFETCH_MISS : number of instruction fetch misses event:0x85 counters:0,1 um:zero minimum:500 name:ITLB_MISS : number of ITLB misses event:0x86 counters:0,1 um:zero minimum:500 name:IFU_MEM_STALL : cycles instruction fetch pipe is stalled event:0x87 counters:0,1 um:zero minimum:500 name:ILD_STALL : cycles instruction length decoder is stalled event:0x28 counters:0,1 um:mesi minimum:500 name:L2_IFETCH : number of L2 instruction fetches event:0x29 counters:0,1 um:mesi minimum:500 name:L2_LD : number of L2 data loads event:0x2a counters:0,1 um:mesi minimum:500 name:L2_ST : number of L2 data stores event:0x24 counters:0,1 um:zero minimum:500 name:L2_LINES_IN : number of allocated lines in L2 event:0x26 counters:0,1 um:zero minimum:500 name:L2_LINES_OUT : number of recovered lines from L2 event:0x25 counters:0,1 um:zero minimum:500 name:L2_M_LINES_INM : number of modified lines allocated in L2 event:0x27 counters:0,1 um:zero minimum:500 name:L2_M_LINES_OUTM : number of modified lines removed from L2 event:0x2e counters:0,1 um:mesi minimum:500 name:L2_RQSTS : number of L2 requests event:0x21 counters:0,1 um:zero minimum:500 name:L2_ADS : number of L2 address strobes event:0x22 counters:0,1 um:zero minimum:500 name:L2_DBUS_BUSY : number of cycles data bus was busy event:0x23 counters:0,1 um:zero minimum:500 name:L2_DBUS_BUSY_RD : cycles data bus was busy in xfer from L2 to CPU event:0x62 counters:0,1 um:ebl minimum:500 name:BUS_DRDY_CLOCKS : number of clocks DRDY is asserted event:0x63 counters:0,1 um:ebl minimum:500 name:BUS_LOCK_CLOCKS : number of clocks LOCK is asserted event:0x60 counters:0,1 um:zero minimum:500 name:BUS_REQ_OUTSTANDING : number of outstanding bus requests event:0x65 counters:0,1 um:ebl minimum:500 name:BUS_TRAN_BRD : number of burst read transactions event:0x66 counters:0,1 um:ebl minimum:500 name:BUS_TRAN_RFO : number of read for ownership transactions event:0x67 counters:0,1 um:ebl minimum:500 name:BUS_TRANS_WB : number of write back transactions event:0x68 counters:0,1 um:ebl minimum:500 name:BUS_TRAN_IFETCH : number of instruction fetch transactions event:0x69 counters:0,1 um:ebl minimum:500 name:BUS_TRAN_INVAL : number of invalidate transactions event:0x6a counters:0,1 um:ebl minimum:500 name:BUS_TRAN_PWR : number of partial write transactions event:0x6b counters:0,1 um:ebl minimum:500 name:BUS_TRANS_P : number of partial transactions event:0x6c counters:0,1 um:ebl minimum:500 name:BUS_TRANS_IO : number of I/O transactions event:0x6d counters:0,1 um:ebl minimum:500 name:BUS_TRANS_DEF : number of deferred transactions event:0x6e counters:0,1 um:ebl minimum:500 name:BUS_TRAN_BURST : number of burst transactions event:0x70 counters:0,1 um:ebl minimum:500 name:BUS_TRAN_ANY : number of all transactions event:0x6f counters:0,1 um:ebl minimum:500 name:BUS_TRAN_MEM : number of memory transactions event:0x64 counters:0,1 um:zero minimum:500 name:BUS_DATA_RCV : bus cycles this processor is receiving data event:0x61 counters:0,1 um:zero minimum:500 name:BUS_BNR_DRV : bus cycles this processor is driving BNR pin event:0x7a counters:0,1 um:zero minimum:500 name:BUS_HIT_DRV : bus cycles this processor is driving HIT pin event:0x7b counters:0,1 um:zero minimum:500 name:BUS_HITM_DRV : bus cycles this processor is driving HITM pin event:0x7e counters:0,1 um:zero minimum:500 name:BUS_SNOOP_STALL : cycles during bus snoop stall event:0xc1 counters:0 um:zero minimum:3000 name:COMP_FLOP_RET : number of computational FP operations retired event:0x10 counters:0 um:zero minimum:3000 name:FLOPS : number of computational FP operations executed event:0x11 counters:1 um:zero minimum:500 name:FP_ASSIST : number of FP exceptions handled by microcode event:0x12 counters:1 um:zero minimum:1000 name:MUL : number of multiplies event:0x13 counters:1 um:zero minimum:500 name:DIV : number of divides event:0x14 counters:0 um:zero minimum:1000 name:CYCLES_DIV_BUSY : cycles divider is busy event:0x03 counters:0,1 um:zero minimum:500 name:LD_BLOCKS : number of store buffer blocks event:0x04 counters:0,1 um:zero minimum:500 name:SB_DRAINS : number of store buffer drain cycles event:0x05 counters:0,1 um:zero minimum:500 name:MISALIGN_MEM_REF : number of misaligned data memory references event:0x07 counters:0,1 um:kni_prefetch minimum:500 name:EMON_KNI_PREF_DISPATCHED : number of KNI pre-fetch/weakly ordered insns dispatched event:0x4b counters:0,1 um:kni_prefetch minimum:500 name:EMON_KNI_PREF_MISS : number of KNI pre-fetch/weakly ordered insns that miss all caches event:0xc0 counters:0,1 um:zero minimum:6000 name:INST_RETIRED : number of instructions retired event:0xc2 counters:0,1 um:zero minimum:6000 name:UOPS_RETIRED : number of UOPs retired # Errata lists INST_DECODE as not accurate. See 25266507.pdf. event:0xd0 counters:0,1 um:zero minimum:6000 name:INST_DECODED : number of instructions decoded event:0xd8 counters:0,1 um:sse_sse2_inst_retired minimum:3000 name:EMON_SSE_SSE2_INST_RETIRED : Streaming SIMD Extensions Instructions Retired event:0xd9 counters:0,1 um:sse_sse2_inst_retired minimum:3000 name:EMON_SSE_SSE2_COMP_INST_RETIRED : Computational SSE Instructions Retired event:0xc8 counters:0,1 um:zero minimum:500 name:HW_INT_RX : number of hardware interrupts received event:0xc6 counters:0,1 um:zero minimum:500 name:CYCLES_INT_MASKED : cycles interrupts are disabled event:0xc7 counters:0,1 um:zero minimum:500 name:CYCLES_INT_PENDING_AND_MASKED : cycles interrupts are disabled with pending interrupts event:0xc4 counters:0,1 um:zero minimum:500 name:BR_INST_RETIRED : number of branch instructions retired event:0xc5 counters:0,1 um:zero minimum:500 name:BR_MISS_PRED_RETIRED : number of mispredicted branches retired event:0xc9 counters:0,1 um:zero minimum:500 name:BR_TAKEN_RETIRED : number of taken branches retired event:0xca counters:0,1 um:zero minimum:500 name:BR_MISS_PRED_TAKEN_RET : number of taken mispredictions branches retired event:0xe0 counters:0,1 um:zero minimum:500 name:BR_INST_DECODED : number of branch instructions decoded event:0xe2 counters:0,1 um:zero minimum:500 name:BTB_MISSES : number of branches that miss the BTB event:0xe4 counters:0,1 um:zero minimum:500 name:BR_BOGUS : number of bogus branches event:0xe6 counters:0,1 um:zero minimum:500 name:BACLEARS : number of times BACLEAR is asserted event:0xa2 counters:0,1 um:zero minimum:500 name:RESOURCE_STALLS : cycles during resource related stalls event:0xd2 counters:0,1 um:zero minimum:500 name:PARTIAL_RAT_STALLS : cycles or events for partial stalls event:0x06 counters:0,1 um:zero minimum:500 name:SEGMENT_REG_LOADS : number of segment register loads event:0xb1 counters:0,1 um:zero minimum:3000 name:MMX_SAT_INSTR_EXEC : number of MMX saturating instructions executed event:0xb2 counters:0,1 um:mmx_uops minimum:3000 name:MMX_UOPS_EXEC : number of MMX UOPS executed event:0xb3 counters:0,1 um:mmx_instr_type_exec minimum:3000 name:MMX_INSTR_TYPE_EXEC : number of MMX packing instructions event:0xcc counters:0,1 um:mmx_trans minimum:3000 name:FP_MMX_TRANS : MMX-floating point transitions event:0xcd counters:0,1 um:zero minimum:500 name:MMX_ASSIST : number of EMMS instructions executed event:0xce counters:0,1 um:zero minimum:3000 name:MMX_INSTR_RET : number of MMX instructions retired # # Pentium M Specific events from A-7 # # # Power Management event:0x58 counters:0,1 um:freq minimum:3000 name:EMON_EST_TRANS : Number of Enhanced Intel SpeedStep # Errata lists EMON_THERMAL_TRIP as not accurate. See 25266507.pdf. event:0x59 counters:0,1 um:zero minimum:3000 name:EMON_THERMAL_TRIP : Duration/Occurrences in thermal trip # # BPU event:0x88 counters:0,1 um:zero minimum:3000 name:BR_INST_EXEC : Branch instructions executed (not necessarily retired) event:0x89 counters:0,1 um:zero minimum:3000 name:BR_MISSP_EXEC : Branch instructions executed that were mispredicted at execution event:0x8a counters:0,1 um:zero minimum:3000 name:BR_BAC_MISSP_EXEC : Branch instructions executed that were mispredicted at Front End (BAC) event:0x8b counters:0,1 um:zero minimum:3000 name:BR_CND_EXEC : Conditional Branch instructions executed event:0x8c counters:0,1 um:zero minimum:3000 name:BR_CND_MISSP_EXEC : Conditional Branch instructions executed that were mispredicted event:0x8d counters:0,1 um:zero minimum:3000 name:BR_IND_EXEC : Indirect Branch instructions executed event:0x8e counters:0,1 um:zero minimum:3000 name:BR_IND_MISSP_EXEC : Indirect Branch instructions executed that were mispredicted event:0x8f counters:0,1 um:zero minimum:3000 name:BR_RET_EXEC : Return Branch instructions executed event:0x90 counters:0,1 um:zero minimum:3000 name:BR_RET_MISSP_EXEC : Return Branch instructions executed that were mispredicted at Execution event:0x91 counters:0,1 um:zero minimum:3000 name:BR_RET_BAC_MISSP_EXEC :Return Branch instructions executed that were mispredicted at Front End (BAC) event:0x92 counters:0,1 um:zero minimum:3000 name:BR_CALL_EXEC : CALL instruction executed event:0x93 counters:0,1 um:zero minimum:3000 name:BR_CALL_MISSP_EXEC : CALL instruction executed and miss predicted event:0x94 counters:0,1 um:zero minimum:3000 name:BR_IND_CALL_EXEC : Indirect CALL instruction executed # # Decoder event:0xce counters:0,1 um:zero minimum:3000 name:EMON_SIMD_INSTR_RETIRED : Number of retired MMX instructions event:0xd3 counters:0,1 um:zero minimum:3000 name:EMON_SYNCH_UOPS : Sync micro-ops event:0xd7 counters:0,1 um:zero minimum:3000 name:EMON_SYNCH_UOPS : Total number of micro-ops event:0xda counters:0,1 um:fused minimum:3000 name:EMON_FUSED_UOPS_RET : Number of retired fused micro-ops event:0xdb counters:0,1 um:zero minimum:3000 name:EMON_UNFUSION : Number of unfusion events in the ROB, happened on a FP exception to a fused uOp # # Prefetcher event:0xf0 counters:0,1 um:zero minimum:3000 name:EMON_PREF_RQSTS_UP : Number of upward prefetches issued event:0xf8 counters:0,1 um:zero minimum:3000 name:EMON_PREF_RQSTS_DN : Number of downward prefetches issued oprofile-0.9.9/events/i386/p6_mobile/unit_masks0000664000076400007640000000262512175510132016256 00000000000000# Pentium M possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask name:mesi type:bitmask default:0x0f 0x08 (M)odified cache state 0x04 (E)xclusive cache state 0x02 (S)hared cache state 0x01 (I)nvalid cache state 0x0f All cache states 0x10 HW prefetched line only 0x20 all prefetched line w/o regarding mask 0x10. name:ebl type:exclusive default:0x20 0x00 self-generated transactions 0x20 any transactions name:kni_prefetch type:exclusive default:0x0 0x00 prefetch NTA 0x01 prefetch T1 0x02 prefetch T2 0x03 weakly-ordered stores # this bitmask can seems weirds but is correct, note there is no way to only # count scalar SIMD instructions name:sse_sse2_inst_retired type:exclusive default:0x0 0x00 SSE Packed Single 0x01 SSE Scalar-Single 0x02 SSE2 Packed-Double 0x03 SSE2 Scalar-Double name:mmx_uops type:mandatory default:0xf 0x0f mandatory name:mmx_instr_type_exec type:bitmask default:0x3f 0x01 MMX packed multiplies 0x02 MMX packed shifts 0x04 MMX pack operations 0x08 MMX unpack operations 0x10 MMX packed logical 0x20 MMX packed arithmetic 0x3f all of the above name:mmx_trans type:exclusive default:0x0 0x00 MMX->float operations 0x01 float->MMX operations name:freq type:exclusive default:0x0 0x00 All transitions 0x02 Only Frequency transitions name:fused type:exclusive default:0x0 0x00 All fused micro-ops 0x01 Only load+Op micro-ops 0x02 Only std+sta micro-ops oprofile-0.9.9/events/i386/core_2/0000775000076400007640000000000012175511556013541 500000000000000oprofile-0.9.9/events/i386/core_2/events0000664000076400007640000003264712175510132014711 00000000000000# Core 2 events # # Architectural events # event:0x3c counters:0,1 um:nonhlt minimum:6000 name:CPU_CLK_UNHALTED : Clock cycles when not halted event:0xc0 counters:0,1 um:zero minimum:6000 name:INST_RETIRED_ANY_P : number of instructions retired event:0x2e counters:0,1 um:core_prefetch_mesi minimum:500 name:L2_RQSTS : number of L2 cache requests event:0x2e counters:0,1 um:x41 minimum:6000 name:LLC_MISSES : L2 cache demand requests from this core that missed the L2 event:0x2e counters:0,1 um:x4f minimum:6000 name:LLC_REFS : L2 cache demand requests from this core # # Model specific events # event:0x03 counters:0,1 um:load_block minimum:500 name:LOAD_BLOCK : events pertaining to loads event:0x04 counters:0,1 um:store_block minimum:500 name:STORE_BLOCK : events pertaining to stores event:0x05 counters:0,1 um:zero minimum:500 name:MISALIGN_MEM_REF : number of misaligned data memory references event:0x06 counters:0,1 um:zero minimum:500 name:SEGMENT_REG_LOADS : number of segment register loads event:0x07 counters:0,1 um:sse_prefetch minimum:500 name:SSE_PRE_EXEC : number of SSE pre-fetch/weakly ordered insns retired event:0x08 counters:0,1 um:dtlb_miss minimum:500 name:DTLB_MISSES : DTLB miss events event:0x09 counters:0,1 um:memory_dis minimum:1000 name:MEMORY_DISAMBIGUATION : Memory disambiguation reset cycles. event:0x0c counters:0,1 um:page_walks minimum:500 name:PAGE_WALKS : Page table walk events event:0x10 counters:0,1 um:zero minimum:3000 name:FLOPS : number of FP computational micro-ops executed event:0x11 counters:0,1 um:zero minimum:500 name:FP_ASSIST : number of FP assists event:0x12 counters:0,1 um:zero minimum:1000 name:MUL : number of multiplies event:0x13 counters:0,1 um:zero minimum:500 name:DIV : number of divides event:0x14 counters:0,1 um:zero minimum:1000 name:CYCLES_DIV_BUSY : cycles divider is busy event:0x18 counters:0,1 um:zero minimum:1000 name:IDLE_DURING_DIV : cycles divider is busy and all other execution units are idle. event:0x19 counters:0,1 um:delayed_bypass minimum:1000 name:DELAYED_BYPASS : Delayed bypass events event:0x21 counters:0,1 um:core minimum:500 name:L2_ADS : Cycles the L2 address bus is in use. event:0x23 counters:0,1 um:core minimum:500 name:L2_DBUS_BUSY_RD : Cycles the L2 transfers data to the core. event:0x24 counters:0,1 um:core_prefetch minimum:500 name:L2_LINES_IN : number of allocated lines in L2 event:0x25 counters:0,1 um:core minimum:500 name:L2_M_LINES_IN : number of modified lines allocated in L2 event:0x26 counters:0,1 um:core_prefetch minimum:500 name:L2_LINES_OUT : number of recovered lines from L2 event:0x27 counters:0,1 um:core_prefetch minimum:500 name:L2_M_LINES_OUT : number of modified lines removed from L2 event:0x28 counters:0,1 um:core_mesi minimum:500 name:L2_IFETCH : number of L2 cacheable instruction fetches event:0x29 counters:0,1 um:core_prefetch_mesi minimum:500 name:L2_LD : number of L2 data loads event:0x2a counters:0,1 um:core_mesi minimum:500 name:L2_ST : number of L2 data stores event:0x2b counters:0,1 um:core_mesi minimum:500 name:L2_LOCK : number of locked L2 data accesses event:0x30 counters:0,1 um:core_prefetch_mesi minimum:500 name:L2_REJECT_BUSQ : Rejected L2 cache requests event:0x32 counters:0,1 um:core minimum:500 name:L2_NO_REQ : Cycles no L2 cache requests are pending event:0x3a counters:0,1 um:zero minimum:500 name:EIST_TRANS_ALL : Intel(tm) Enhanced SpeedStep(r) Technology transitions event:0x3b counters:0,1 um:xc0 minimum:500 name:THERMAL_TRIP : Number of thermal trips event:0x40 counters:0,1 um:mesi minimum:500 name:L1D_CACHE_LD : L1 cacheable data read operations event:0x41 counters:0,1 um:mesi minimum:500 name:L1D_CACHE_ST : L1 cacheable data write operations event:0x42 counters:0,1 um:mesi minimum:500 name:L1D_CACHE_LOCK : L1 cacheable lock read operations event:0x42 counters:0,1 um:x10 minimum:500 name:L1D_CACHE_LOCK_DURATION : Duration of L1 data cacheable locked operations event:0x43 counters:0,1 um:x10 minimum:500 name:L1D_ALL_REF : All references to the L1 data cache event:0x43 counters:0,1 um:two minimum:500 name:L1D_ALL_CACHE_REF : L1 data cacheable reads and writes event:0x45 counters:0,1 um:x0f minimum:500 name:L1D_REPL : Cache lines allocated in the L1 data cache event:0x46 counters:0,1 um:zero minimum:500 name:L1D_M_REPL : Modified cache lines allocated in the L1 data cache event:0x47 counters:0,1 um:zero minimum:500 name:L1D_M_EVICT : Modified cache lines evicted from the L1 data cache event:0x48 counters:0,1 um:zero minimum:500 name:L1D_PEND_MISS : Total number of outstanding L1 data cache misses at any cycle event:0x49 counters:0,1 um:l1d_split minimum:500 name:L1D_SPLIT : Cache line split load/stores event:0x4b counters:0,1 um:sse_miss minimum:500 name:SSE_PREF_MISS : SSE instructions that missed all caches event:0x4c counters:0,1 um:zero minimum:500 name:LOAD_HIT_PRE : Load operations conflicting with a software prefetch to the same address event:0x4e counters:0,1 um:x10 minimum:500 name:L1D_PREFETCH : L1 data cache prefetch requests # event:0x60 counters:0,1 um:core_and_bus_agents minimum:500 name:BUS_REQ_OUTSTANDING : Outstanding cacheable data read bus requests duration event:0x61 counters:0,1 um:bus_agents minimum:500 name:BUS_BNR_DRV : Number of Bus Not Ready signals asserted event:0x62 counters:0,1 um:bus_agents minimum:500 name:BUS_DRDY_CLOCKS : Bus cycles when data is sent on the bus event:0x63 counters:0,1 um:core_and_bus_agents minimum:500 name:BUS_LOCK_CLOCKS : Bus cycles when a LOCK signal is asserted event:0x64 counters:0,1 um:core_and_bus_agents minimum:500 name:BUS_DATA_RCV : Bus cycles while processor receives data event:0x65 counters:0,1 um:core_and_bus_agents minimum:500 name:BUS_TRAN_BRD : Burst read bus transactions event:0x66 counters:0,1 um:core_and_bus_agents minimum:500 name:BUS_TRAN_RFO : number of completed read for ownership transactions event:0x67 counters:0,1 um:core_and_bus_agents minimum:500 name:BUS_TRAN_WB : number of explicit writeback bus transactions event:0x68 counters:0,1 um:core_and_bus_agents minimum:500 name:BUS_TRAN_IFETCH : number of instruction fetch transactions event:0x69 counters:0,1 um:core_and_bus_agents minimum:500 name:BUS_TRAN_INVAL : number of invalidate transactions event:0x6a counters:0,1 um:core_and_bus_agents minimum:500 name:BUS_TRAN_PWR : number of partial write bus transactions event:0x6b counters:0,1 um:core_and_bus_agents minimum:500 name:BUS_TRANS_P : number of partial bus transactions event:0x6c counters:0,1 um:core_and_bus_agents minimum:500 name:BUS_TRANS_IO : number of I/O bus transactions event:0x6d counters:0,1 um:core_and_bus_agents minimum:500 name:BUS_TRANS_DEF : number of completed defer transactions event:0x6e counters:0,1 um:core_and_bus_agents minimum:500 name:BUS_TRAN_BURST : number of completed burst transactions event:0x6f counters:0,1 um:core_and_bus_agents minimum:500 name:BUS_TRAN_MEM : number of completed memory transactions event:0x70 counters:0,1 um:core_and_bus_agents minimum:500 name:BUS_TRAN_ANY : number of any completed bus transactions event:0x77 counters:0,1 um:bus_agents_and_snoop minimum:500 name:EXT_SNOOP : External snoops event:0x78 counters:0,1 um:core_and_snoop minimum:500 name:CMP_SNOOP : L1 data cache is snooped by other core event:0x7a counters:0,1 um:bus_agents minimum:500 name:BUS_HIT_DRV : HIT signal asserted event:0x7b counters:0,1 um:bus_agents minimum:500 name:BUS_HITM_DRV : HITM signal asserted event:0x7d counters:0,1 um:core minimum:500 name:BUSQ_EMPTY : Bus queue is empty event:0x7e counters:0,1 um:core_and_bus_agents minimum:500 name:SNOOP_STALL_DRV : Bus stalled for snoops event:0x7f counters:0,1 um:core minimum:500 name:BUS_IO_WAIT : IO requests waiting in the bus queue event:0x80 counters:0,1 um:zero minimum:500 name:L1I_READS : number of instruction fetches event:0x81 counters:0,1 um:zero minimum:500 name:L1I_MISSES : number of instruction fetch misses event:0x82 counters:0,1 um:itlb_miss minimum:500 name:ITLB : number of ITLB misses event:0x83 counters:0,1 um:two minimum:500 name:INST_QUEUE_FULL : cycles during which the instruction queue is full event:0x86 counters:0,1 um:zero minimum:500 name:IFU_MEM_STALL : cycles instruction fetch pipe is stalled event:0x87 counters:0,1 um:zero minimum:500 name:ILD_STALL : cycles instruction length decoder is stalled event:0x88 counters:0,1 um:zero minimum:3000 name:BR_INST_EXEC : Branch instructions executed (not necessarily retired) event:0x89 counters:0,1 um:zero minimum:3000 name:BR_MISSP_EXEC : Branch instructions executed that were mispredicted at execution event:0x8a counters:0,1 um:zero minimum:3000 name:BR_BAC_MISSP_EXEC : Branch instructions executed that were mispredicted at Front End (BAC) event:0x8b counters:0,1 um:zero minimum:3000 name:BR_CND_EXEC : Conditional Branch instructions executed event:0x8c counters:0,1 um:zero minimum:3000 name:BR_CND_MISSP_EXEC : Conditional Branch instructions executed that were mispredicted event:0x8d counters:0,1 um:zero minimum:3000 name:BR_IND_EXEC : Indirect Branch instructions executed event:0x8e counters:0,1 um:zero minimum:3000 name:BR_IND_MISSP_EXEC : Indirect Branch instructions executed that were mispredicted event:0x8f counters:0,1 um:zero minimum:3000 name:BR_RET_EXEC : Return Branch instructions executed event:0x90 counters:0,1 um:zero minimum:3000 name:BR_RET_MISSP_EXEC : Return Branch instructions executed that were mispredicted at Execution event:0x91 counters:0,1 um:zero minimum:3000 name:BR_RET_BAC_MISSP_EXEC :Return Branch instructions executed that were mispredicted at Front End (BAC) event:0x92 counters:0,1 um:zero minimum:3000 name:BR_CALL_EXEC : CALL instruction executed event:0x93 counters:0,1 um:zero minimum:3000 name:BR_CALL_MISSP_EXEC : CALL instruction executed and miss predicted event:0x94 counters:0,1 um:zero minimum:3000 name:BR_IND_CALL_EXEC : Indirect CALL instruction executed event:0x97 counters:0,1 um:zero minimum:3000 name:BR_TKN_BUBBLE_1 : Branch predicted taken with bubble 1 event:0x98 counters:0,1 um:zero minimum:3000 name:BR_TKN_BUBBLE_2 : Branch predicted taken with bubble 2 event:0xa0 counters:0,1 um:zero minimum:1000 name:RS_UOPS_DISPATCHED : Micro-ops dispatched for execution # Set both the CMASK and INV fields to 1 -- which causes the counter to # increment on cycles in which fewer than 1 uop dispatches. i.e. stall cycles. # It's a bit of a hack, but passes through the oprofile infrastructure just # fine. event:0x18000a0 counters:0,1 um:zero minimum:1000 name:RS_UOPS_DISPATCHED_NONE : No Micro-ops dispatched for execution event:0xaa counters:0,1 um:macro_insts minimum:500 name:MACRO_INSTS : instructions decoded event:0xab counters:0,1 um:esp minimum:500 name:ESP : ESP register events event:0xb0 counters:0,1 um:zero minimum:500 name:SIMD_UOPS_EXEC : SIMD micro-ops executed (excluding stores) event:0xb1 counters:0,1 um:zero minimum:3000 name:SIMD_SAT_UOP_EXEC : number of SIMD saturating instructions executed event:0xb3 counters:0,1 um:simd_instr_type_exec minimum:3000 name:SIMD_UOP_TYPE_EXEC : number of SIMD packing instructions event:0xc0 counters:0,1 um:inst_retired minimum:6000 name:INST_RETIRED : number of instructions retired event:0xc1 counters:0,1 um:x87_ops_retired minimum:500 name:X87_OPS_RETIRED : number of computational FP operations retired event:0xc2 counters:0,1 um:uops_retired minimum:6000 name:UOPS_RETIRED : number of UOPs retired event:0xc3 counters:0,1 um:machine_nukes minimum:500 name:MACHINE_NUKES_SMC : number of pipeline flushing events event:0xc4 counters:0,1 um:br_inst_retired minimum:500 name:BR_INST_RETIRED : number of branch instructions retired event:0xc5 counters:0,1 um:zero minimum:500 name:BR_MISS_PRED_RETIRED : number of mispredicted branches retired (precise) event:0xc6 counters:0,1 um:cycles_int_masked minimum:500 name:CYCLES_INT_MASKED : cycles interrupts are disabled event:0xc7 counters:0,1 um:simd_inst_retired minimum:500 name:SIMD_INST_RETIRED : SSE/SSE2 instructions retired event:0xc8 counters:0,1 um:zero minimum:500 name:HW_INT_RCV : number of hardware interrupts received event:0xc9 counters:0 um:zero minimum:500 name:ITLB_MISS_RETIRED : Retired instructions that missed the ITLB event:0xca counters:0,1 um:simd_comp_inst_retired minimum:500 name:SIMD_COMP_INST_RETIRED : Retired computational SSE/SSE2 instructions event:0xcb counters:0 um:mem_load_retired minimum:500 name:MEM_LOAD_RETIRED : Retired loads event:0xcc counters:0,1 um:mmx_trans minimum:3000 name:FP_MMX_TRANS : MMX-floating point transitions event:0xcd counters:0,1 um:zero minimum:500 name:MMX_ASSIST : number of EMMS instructions executed event:0xce counters:0,1 um:zero minimum:500 name:SIMD_INSTR_RET : number of SIMD instructions retired event:0xcf counters:0,1 um:zero minimum:500 name:SIMD_SAT_INSTR_RET : number of saturated arithmetic instructions retired event:0xd2 counters:0,1 um:rat_stalls minimum:6000 name:RAT_STALLS : Partial register stall cycles event:0xd4 counters:0,1 um:seg_regs minimum:500 name:SEG_RENAME_STALLS : Segment rename stalls event:0xd5 counters:0,1 um:seg_regs minimum:500 name:SEG_RENAMES : Segment renames event:0xdc counters:0,1 um:resource_stalls minimum:3000 name:RESOURCE_STALLS : Cycles during which resource stalls occur event:0xe0 counters:0,1 um:zero minimum:500 name:BR_INST_DECODED : number of branch instructions decoded event:0xe4 counters:0,1 um:zero minimum:500 name:BR_BOGUS : number of bogus branches event:0xe6 counters:0,1 um:zero minimum:500 name:BACLEARS : number of times BACLEAR is asserted event:0xf0 counters:0,1 um:zero minimum:3000 name:PREF_RQSTS_UP : Number of upward prefetches issued event:0xf8 counters:0,1 um:zero minimum:3000 name:PREF_RQSTS_DN : Number of downward prefetches issued oprofile-0.9.9/events/i386/core_2/unit_masks0000664000076400007640000001613012175510132015547 00000000000000# Core 2 possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask #name:one type:mandatory default:0x1 # 0x1 No unit mask name:two type:mandatory default:0x2 0x2 No unit mask name:x0f type:mandatory default:0xf 0xf No unit mask name:x10 type:mandatory default:0x10 0x10 No unit mask #name:x20 type:mandatory default:0x20 # 0x20 No unit mask #name:x40 type:mandatory default:0x40 # 0x40 No unit mask name:x41 type:mandatory default:0x41 0x41 No unit mask name:x4f type:mandatory default:0x4f 0x4f No unit mask name:xc0 type:mandatory default:0xc0 0xc0 No unit mask name:nonhlt type:exclusive default:0x0 0x0 Unhalted core cycles 0x1 Unhalted bus cycles 0x2 Unhalted bus cycles of this core while the other core is halted name:mesi type:bitmask default:0x0f 0x08 (M)ESI: Modified 0x04 M(E)SI: Exclusive 0x02 ME(S)I: Shared 0x01 MES(I): Invalid name:sse_prefetch type:exclusive default:0x0 0x00 prefetch NTA instructions executed. 0x01 prefetch T1 instructions executed. 0x02 prefetch T1 and T2 instructions executed. 0x03 SSE weakly-ordered stores name:simd_instr_type_exec type:bitmask default:0x3f 0x01 SIMD packed multiplies 0x02 SIMD packed shifts 0x04 SIMD pack operations 0x08 SIMD unpack operations 0x10 SIMD packed logical 0x20 SIMD packed arithmetic 0x3f all of the above name:mmx_trans type:bitmask default:0x3 0x01 float->MMX transitions 0x02 MMX->float transitions name:sse_miss type:exclusive default:0x0 0x00 PREFETCHNTA 0x01 PREFETCHT0 0x02 PREFETCHT1/PREFETCHT2 name:load_block type:bitmask default:0x3e 0x02 extra: STA Loads blocked by a preceding store with unknown address. 0x04 extra: STD Loads blocked by a preceding store with unknown data. 0x08 extra: OVERLAP_STORE Loads that partially overlap an earlier store, or 4K aliased with a previous store. 0x10 extra: UNTIL_RETIRE Loads blocked until retirement. 0x20 extra: L1D Loads blocked by the L1 data cache. name:store_block type:bitmask default:0x0b 0x01 extra: SB_DRAIN_CYCLES Cycles while stores are blocked due to store buffer drain. 0x02 extra: ORDER Cycles while store is waiting for a preceding store to be globally observed. 0x08 extra: NOOP A store is blocked due to a conflict with an external or internal snoop. name:dtlb_miss type:bitmask default:0x0f 0x01 extra: ANY Memory accesses that missed the DTLB. 0x02 extra: MISS_LD DTLB misses due to load operations. 0x04 extra: L0_MISS_LD L0 DTLB misses due to load operations. 0x08 extra: MISS_ST TLB misses due to store operations. name:memory_dis type:exclusive default:0x01 0x01 extra: RESET Memory disambiguation reset cycles. 0x02 extra: SUCCESS Number of loads that were successfully disambiguated. name:page_walks type:exclusive default:0x02 0x01 extra: COUNT Number of page-walks executed. 0x02 extra: CYCLES Duration of page-walks in core cycles. name:delayed_bypass type:exclusive default:0x00 0x00 extra: FP Delayed bypass to FP operation. 0x01 extra: SIMD Delayed bypass to SIMD operation. 0x02 extra: LOAD Delayed bypass to load operation. name:core type:exclusive default:0x40 0xc0 All cores 0x40 This core name:core_prefetch type:bitmask default:0x70 0xc0 core: all cores 0x40 core: this core 0x30 prefetch: all inclusive 0x10 prefetch: Hardware prefetch only 0x00 prefetch: exclude hardware prefetch name:core_mesi type:bitmask default:0x4f 0xc0 core: all cores 0x40 core: this core 0x08 (M)ESI: Modified 0x04 M(E)SI: Exclusive 0x02 ME(S)I: Shared 0x01 MES(I): Invalid name:core_prefetch_mesi type:bitmask default:0x7f 0xc0 core: all cores 0x40 core: this core 0x30 prefetch: all inclusive 0x10 prefetch: Hardware prefetch only 0x00 prefetch: exclude hardware prefetch 0x08 (M)ESI: Modified 0x04 M(E)SI: Exclusive 0x02 ME(S)I: Shared 0x01 MES(I): Invalid name:l1d_split type:exclusive default:0x1 0x1 split loads 0x2 split stores name:bus_agents type:exclusive default:0x00 0x00 this agent 0x20 include all agents name:core_and_bus_agents type:bitmask default:0x40 0xc0 core: all cores 0x40 core: this core 0x00 bus: this agent 0x20 bus: include all agents name:bus_agents_and_snoop type:bitmask default:0x0b 0x00 bus: this agent 0x20 bus: include all agents 0x08 snoop: HITM snoops 0x02 snoop: HIT snoops 0x01 snoop: CLEAN snoops name:core_and_snoop type:bitmask default:0x40 0xc0 core: all cores 0x40 core: this core 0x01 snoop: CMP2I snoops 0x02 snoop: CMP2S snoops name:itlb_miss type:bitmask default:0x12 0x02 ITLB small page misses 0x10 ITLB large page misses 0x40 ITLB flushes name:macro_insts type:bitmask default:0x09 0x01 Instructions decoded 0x08 CISC Instructions decoded name:esp type:bitmask default:0x01 0x01 ESP register content synchronizations 0x02 ESP register automatic additions name:inst_retired type:bitmask default:0x00 0x00 extra: Any 0x01 extra: Loads 0x02 extra: Stores 0x04 extra: Other name:x87_ops_retired type:exclusive default:0xfe 0x01 FXCH instructions retired 0xfe Retired floating-point computational operations (precise) name:uops_retired type:bitmask default:0x0f 0x01 Fused load+op or load+indirect branch retired 0x02 Fused store address + data retired 0x04 Retired instruction pairs fused into one micro-op 0x07 Fused micro-ops retired 0x08 Non-fused micro-ops retired 0x0f Micro-ops retired name:machine_nukes type:bitmask default:0x05 0x01 Self-Modifying Code detected 0x04 Execution pipeline restart due to memory ordering conflict or memory disambiguation misprediction name:br_inst_retired type:bitmask default:0xa 0x01 predicted not-taken 0x02 mispredicted not-taken 0x04 predicted taken 0x08 mispredicted taken name:cycles_int_masked type:exclusive default:0x02 0x01 Interrupts disabled 0x02 Interrupts pending and disabled name:simd_inst_retired type:bitmask default:0x1f 0x01 Retired SSE packed-single instructions 0x02 Retired SSE scalar-single instructions 0x04 Retired SSE2 packed-double instructions 0x08 Retired SSE2 scalar-double instructions 0x10 Retired SSE2 vector integer instructions 0x1f Retired Streaming SIMD instructions (precise event) name:simd_comp_inst_retired type:bitmask default:0xf 0x01 Retired computational SSE packed-single instructions 0x02 Retired computational SSE scalar-single instructions 0x04 Retired computational SSE2 packed-double instructions 0x08 Retired computational SSE2 scalar-double instructions name:mem_load_retired type:exclusive default:0x01 0x01 Retired loads that miss the L1 data cache (precise event) 0x02 L1 data cache line missed by retired loads (precise event) 0x04 Retired loads that miss the L2 cache (precise event) 0x08 L2 cache line missed by retired loads (precise event) 0x10 Retired loads that miss the DTLB (precise event) name:rat_stalls type:bitmask default:0xf 0x01 ROB read port 0x02 Partial register 0x04 Flag 0x08 FPU status word 0x0f All RAT name:seg_regs type:bitmask default:0x0f 0x01 extra: ES 0x02 extra: DS 0x04 extra: FS 0x08 extra: GS name:resource_stalls type:bitmask default:0x0f 0x01 when the ROB is full 0x02 during which the RS is full 0x04 during which the pipeline has exceeded the load or store limit or is waiting to commit all stores 0x08 due to FPU control word write 0x10 due to branch misprediction oprofile-0.9.9/events/i386/pii/0000775000076400007640000000000012175511556013151 500000000000000oprofile-0.9.9/events/i386/pii/events0000664000076400007640000001732312175510132014313 00000000000000# Pentium II events # event:0x79 counters:0,1 um:zero minimum:6000 name:CPU_CLK_UNHALTED : clocks processor is not halted event:0x43 counters:0,1 um:zero minimum:500 name:DATA_MEM_REFS : all memory references, cachable and non event:0x45 counters:0,1 um:zero minimum:500 name:DCU_LINES_IN : total lines allocated in the DCU event:0x46 counters:0,1 um:zero minimum:500 name:DCU_M_LINES_IN : number of M state lines allocated in DCU event:0x47 counters:0,1 um:zero minimum:500 name:DCU_M_LINES_OUT : number of M lines evicted from the DCU event:0x48 counters:0,1 um:zero minimum:500 name:DCU_MISS_OUTSTANDING : number of cycles while DCU miss outstanding event:0x80 counters:0,1 um:zero minimum:500 name:IFU_IFETCH : number of non/cachable instruction fetches event:0x81 counters:0,1 um:zero minimum:500 name:IFU_IFETCH_MISS : number of instruction fetch misses event:0x85 counters:0,1 um:zero minimum:500 name:ITLB_MISS : number of ITLB misses event:0x86 counters:0,1 um:zero minimum:500 name:IFU_MEM_STALL : cycles instruction fetch pipe is stalled event:0x87 counters:0,1 um:zero minimum:500 name:ILD_STALL : cycles instruction length decoder is stalled event:0x28 counters:0,1 um:mesi minimum:500 name:L2_IFETCH : number of L2 instruction fetches event:0x29 counters:0,1 um:mesi minimum:500 name:L2_LD : number of L2 data loads event:0x2a counters:0,1 um:mesi minimum:500 name:L2_ST : number of L2 data stores event:0x24 counters:0,1 um:zero minimum:500 name:L2_LINES_IN : number of allocated lines in L2 event:0x26 counters:0,1 um:zero minimum:500 name:L2_LINES_OUT : number of recovered lines from L2 event:0x25 counters:0,1 um:zero minimum:500 name:L2_M_LINES_INM : number of modified lines allocated in L2 event:0x27 counters:0,1 um:zero minimum:500 name:L2_M_LINES_OUTM : number of modified lines removed from L2 event:0x2e counters:0,1 um:mesi minimum:500 name:L2_RQSTS : number of L2 requests event:0x21 counters:0,1 um:zero minimum:500 name:L2_ADS : number of L2 address strobes event:0x22 counters:0,1 um:zero minimum:500 name:L2_DBUS_BUSY : number of cycles data bus was busy event:0x23 counters:0,1 um:zero minimum:500 name:L2_DBUS_BUSY_RD : cycles data bus was busy in xfer from L2 to CPU event:0x62 counters:0,1 um:ebl minimum:500 name:BUS_DRDY_CLOCKS : number of clocks DRDY is asserted event:0x63 counters:0,1 um:ebl minimum:500 name:BUS_LOCK_CLOCKS : number of clocks LOCK is asserted event:0x60 counters:0,1 um:zero minimum:500 name:BUS_REQ_OUTSTANDING : number of outstanding bus requests event:0x65 counters:0,1 um:ebl minimum:500 name:BUS_TRAN_BRD : number of burst read transactions event:0x66 counters:0,1 um:ebl minimum:500 name:BUS_TRAN_RFO : number of read for ownership transactions event:0x67 counters:0,1 um:ebl minimum:500 name:BUS_TRANS_WB : number of write back transactions event:0x68 counters:0,1 um:ebl minimum:500 name:BUS_TRAN_IFETCH : number of instruction fetch transactions event:0x69 counters:0,1 um:ebl minimum:500 name:BUS_TRAN_INVAL : number of invalidate transactions event:0x6a counters:0,1 um:ebl minimum:500 name:BUS_TRAN_PWR : number of partial write transactions event:0x6b counters:0,1 um:ebl minimum:500 name:BUS_TRANS_P : number of partial transactions event:0x6c counters:0,1 um:ebl minimum:500 name:BUS_TRANS_IO : number of I/O transactions event:0x6d counters:0,1 um:ebl minimum:500 name:BUS_TRANS_DEF : number of deferred transactions event:0x6e counters:0,1 um:ebl minimum:500 name:BUS_TRAN_BURST : number of burst transactions event:0x70 counters:0,1 um:ebl minimum:500 name:BUS_TRAN_ANY : number of all transactions event:0x6f counters:0,1 um:ebl minimum:500 name:BUS_TRAN_MEM : number of memory transactions event:0x64 counters:0,1 um:zero minimum:500 name:BUS_DATA_RCV : bus cycles this processor is receiving data event:0x61 counters:0,1 um:zero minimum:500 name:BUS_BNR_DRV : bus cycles this processor is driving BNR pin event:0x7a counters:0,1 um:zero minimum:500 name:BUS_HIT_DRV : bus cycles this processor is driving HIT pin event:0x7b counters:0,1 um:zero minimum:500 name:BUS_HITM_DRV : bus cycles this processor is driving HITM pin event:0x7e counters:0,1 um:zero minimum:500 name:BUS_SNOOP_STALL : cycles during bus snoop stall event:0xc1 counters:0 um:zero minimum:3000 name:COMP_FLOP_RET : number of computational FP operations retired event:0x10 counters:0 um:zero minimum:3000 name:FLOPS : number of computational FP operations executed event:0x11 counters:1 um:zero minimum:500 name:FP_ASSIST : number of FP exceptions handled by microcode event:0x12 counters:1 um:zero minimum:1000 name:MUL : number of multiplies event:0x13 counters:1 um:zero minimum:500 name:DIV : number of divides event:0x14 counters:0 um:zero minimum:1000 name:CYCLES_DIV_BUSY : cycles divider is busy event:0x03 counters:0,1 um:zero minimum:500 name:LD_BLOCKS : number of store buffer blocks event:0x04 counters:0,1 um:zero minimum:500 name:SB_DRAINS : number of store buffer drain cycles event:0x05 counters:0,1 um:zero minimum:500 name:MISALIGN_MEM_REF : number of misaligned data memory references event:0xc0 counters:0,1 um:zero minimum:6000 name:INST_RETIRED : number of instructions retired event:0xc2 counters:0,1 um:zero minimum:6000 name:UOPS_RETIRED : number of UOPs retired event:0xd0 counters:0,1 um:zero minimum:6000 name:INST_DECODED : number of instructions decoded event:0xc8 counters:0,1 um:zero minimum:500 name:HW_INT_RX : number of hardware interrupts received event:0xc6 counters:0,1 um:zero minimum:500 name:CYCLES_INT_MASKED : cycles interrupts are disabled event:0xc7 counters:0,1 um:zero minimum:500 name:CYCLES_INT_PENDING_AND_MASKED : cycles interrupts are disabled with pending interrupts event:0xc4 counters:0,1 um:zero minimum:500 name:BR_INST_RETIRED : number of branch instructions retired event:0xc5 counters:0,1 um:zero minimum:500 name:BR_MISS_PRED_RETIRED : number of mispredicted branches retired event:0xc9 counters:0,1 um:zero minimum:500 name:BR_TAKEN_RETIRED : number of taken branches retired event:0xca counters:0,1 um:zero minimum:500 name:BR_MISS_PRED_TAKEN_RET : number of taken mispredictions branches retired event:0xe0 counters:0,1 um:zero minimum:500 name:BR_INST_DECODED : number of branch instructions decoded event:0xe2 counters:0,1 um:zero minimum:500 name:BTB_MISSES : number of branches that miss the BTB event:0xe4 counters:0,1 um:zero minimum:500 name:BR_BOGUS : number of bogus branches event:0xe6 counters:0,1 um:zero minimum:500 name:BACLEARS : number of times BACLEAR is asserted event:0xa2 counters:0,1 um:zero minimum:500 name:RESOURCE_STALLS : cycles during resource related stalls event:0xd2 counters:0,1 um:zero minimum:500 name:PARTIAL_RAT_STALLS : cycles or events for partial stalls event:0x06 counters:0,1 um:zero minimum:500 name:SEGMENT_REG_LOADS : number of segment register loads event:0xb0 counters:0,1 um:zero minimum:3000 name:MMX_INSTR_EXEC : number of MMX instructions executed event:0xb1 counters:0,1 um:zero minimum:3000 name:MMX_SAT_INSTR_EXEC : number of MMX saturating instructions executed event:0xb2 counters:0,1 um:mmx_uops minimum:3000 name:MMX_UOPS_EXEC : number of MMX UOPS executed event:0xb3 counters:0,1 um:mmx_instr_type_exec minimum:3000 name:MMX_INSTR_TYPE_EXEC : number of MMX packing instructions event:0xcc counters:0,1 um:mmx_trans minimum:3000 name:FP_MMX_TRANS : MMX-floating point transitions event:0xcd counters:0,1 um:zero minimum:500 name:MMX_ASSIST : number of EMMS instructions executed event:0xce counters:0,1 um:zero minimum:3000 name:MMX_INSTR_RET : number of MMX instructions retired event:0xd4 counters:0,1 um:seg_rename minimum:500 name:SEG_RENAME_STALLS : number of segment register renaming stalls event:0xd5 counters:0,1 um:seg_rename minimum:500 name:SEG_REG_RENAMES : number of segment register renames event:0xd6 counters:0,1 um:zero minimum:500 name:RET_SEG_RENAMES : number of segment register rename events retired oprofile-0.9.9/events/i386/pii/unit_masks0000664000076400007640000000176112175510132015163 00000000000000# Pentium II possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask name:mesi type:bitmask default:0x0f 0x08 (M)odified cache state 0x04 (E)xclusive cache state 0x02 (S)hared cache state 0x01 (I)nvalid cache state 0x0f All cache states name:ebl type:exclusive default:0x20 0x00 self-generated transactions 0x20 any transactions name:mmx_uops type:mandatory default:0xf 0x0f mandatory name:mmx_instr_type_exec type:bitmask default:0x3f 0x01 MMX packed multiplies 0x02 MMX packed shifts 0x04 MMX pack operations 0x08 MMX unpack operations 0x10 MMX packed logical 0x20 MMX packed arithmetic 0x3f all of the above name:mmx_trans type:exclusive default:0x0 0x00 MMX->float operations 0x01 float->MMX operations name:seg_rename type:bitmask default:0xf 0x1 ES register 0x2 DS register 0x4 FS register # IA manual says this is actually FS again - no mention in errata # but test show that is really a typo error from IA manual 0x8 GS register 0xf ES, DS, FS, GS registers oprofile-0.9.9/events/i386/athlon/0000775000076400007640000000000012175511556013655 500000000000000oprofile-0.9.9/events/i386/athlon/events0000664000076400007640000000527612175510132015023 00000000000000# Athlon Events # event:0x76 counters:0,1,2,3 um:zero minimum:3000 name:CPU_CLK_UNHALTED : Cycles outside of halt state event:0xc0 counters:0,1,2,3 um:zero minimum:3000 name:RETIRED_INSNS : Retired instructions (includes exceptions, interrupts, resyncs) event:0xc1 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_OPS : Retired Ops event:0x80 counters:0,1,2,3 um:zero minimum:500 name:ICACHE_FETCHES : Instruction cache fetches event:0x81 counters:0,1,2,3 um:zero minimum:500 name:ICACHE_MISSES : Instruction cache misses event:0x40 counters:0,1,2,3 um:zero minimum:500 name:DATA_CACHE_ACCESSES : Data cache accesses event:0x41 counters:0,1,2,3 um:zero minimum:500 name:DATA_CACHE_MISSES : Data cache misses event:0x42 counters:0,1,2,3 um:moesi minimum:500 name:DATA_CACHE_REFILLS_FROM_L2 : Data cache refills from L2 event:0x43 counters:0,1,2,3 um:moesi minimum:500 name:DATA_CACHE_REFILLS_FROM_SYSTEM : Data cache refills from system event:0x44 counters:0,1,2,3 um:moesi minimum:500 name:DATA_CACHE_WRITEBACKS : Data cache write backs event:0xc2 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_BRANCHES : Retired branches (conditional, unconditional, exceptions, interrupts) event:0xc3 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_BRANCHES_MISPREDICTED : Retired branches mispredicted event:0xc4 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_TAKEN_BRANCHES : Retired taken branches event:0xc5 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_TAKEN_BRANCHES_MISPREDICTED : Retired taken branches mispredicted event:0x45 counters:0,1,2,3 um:zero minimum:500 name:L1_DTLB_MISSES_L2_DTLD_HITS : L1 DTLB misses and L2 DTLB hits event:0x46 counters:0,1,2,3 um:zero minimum:500 name:L1_AND_L2_DTLB_MISSES : L1 and L2 DTLB misses event:0x47 counters:0,1,2,3 um:zero minimum:500 name:MISALIGNED_DATA_REFS : Misaligned data references event:0x84 counters:0,1,2,3 um:zero minimum:500 name:L1_ITLB_MISSES_L2_ITLB_HITS : L1 ITLB misses (and L2 ITLB hits) event:0x85 counters:0,1,2,3 um:zero minimum:500 name:L1_AND_L2_ITLB_MISSES : L1 and L2 ITLB misses event:0xc6 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_FAR_CONTROL_TRANSFERS : Retired far control transfers event:0xc7 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_RESYNC_BRANCHES : Retired resync branches (only non-control transfer branches counted) event:0xcd counters:0,1,2,3 um:zero minimum:500 name:INTERRUPTS_MASKED : Interrupts masked cycles (IF=0) event:0xce counters:0,1,2,3 um:zero minimum:500 name:INTERRUPTS_MASKED_PENDING : Interrupts masked while pending cycles (INTR while IF=0) event:0xcf counters:0,1,2,3 um:zero minimum:10 name:HARDWARE_INTERRUPTS : Number of taken hardware interrupts # There are other events, but they were removed from the architecture manuals oprofile-0.9.9/events/i386/athlon/unit_masks0000664000076400007640000000043612175510132015665 00000000000000# Athlon possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask name:moesi type:bitmask default:0x1f 0x10 (M)odified cache state 0x08 (O)wner cache state 0x04 (E)xclusive cache state 0x02 (S)hared cache state 0x01 (I)nvalid cache state 0x1f All cache states oprofile-0.9.9/events/i386/piii/0000775000076400007640000000000012175511556013322 500000000000000oprofile-0.9.9/events/i386/piii/events0000664000076400007640000001746212175510132014470 00000000000000# Pentium III events # event:0x79 counters:0,1 um:zero minimum:6000 name:CPU_CLK_UNHALTED : clocks processor is not halted event:0x43 counters:0,1 um:zero minimum:500 name:DATA_MEM_REFS : all memory references, cachable and non event:0x45 counters:0,1 um:zero minimum:500 name:DCU_LINES_IN : total lines allocated in the DCU event:0x46 counters:0,1 um:zero minimum:500 name:DCU_M_LINES_IN : number of M state lines allocated in DCU event:0x47 counters:0,1 um:zero minimum:500 name:DCU_M_LINES_OUT : number of M lines evicted from the DCU event:0x48 counters:0,1 um:zero minimum:500 name:DCU_MISS_OUTSTANDING : number of cycles while DCU miss outstanding event:0x80 counters:0,1 um:zero minimum:500 name:IFU_IFETCH : number of non/cachable instruction fetches event:0x81 counters:0,1 um:zero minimum:500 name:IFU_IFETCH_MISS : number of instruction fetch misses event:0x85 counters:0,1 um:zero minimum:500 name:ITLB_MISS : number of ITLB misses event:0x86 counters:0,1 um:zero minimum:500 name:IFU_MEM_STALL : cycles instruction fetch pipe is stalled event:0x87 counters:0,1 um:zero minimum:500 name:ILD_STALL : cycles instruction length decoder is stalled event:0x28 counters:0,1 um:mesi minimum:500 name:L2_IFETCH : number of L2 instruction fetches event:0x29 counters:0,1 um:mesi minimum:500 name:L2_LD : number of L2 data loads event:0x2a counters:0,1 um:mesi minimum:500 name:L2_ST : number of L2 data stores event:0x24 counters:0,1 um:zero minimum:500 name:L2_LINES_IN : number of allocated lines in L2 event:0x26 counters:0,1 um:zero minimum:500 name:L2_LINES_OUT : number of recovered lines from L2 event:0x25 counters:0,1 um:zero minimum:500 name:L2_M_LINES_INM : number of modified lines allocated in L2 event:0x27 counters:0,1 um:zero minimum:500 name:L2_M_LINES_OUTM : number of modified lines removed from L2 event:0x2e counters:0,1 um:mesi minimum:500 name:L2_RQSTS : number of L2 requests event:0x21 counters:0,1 um:zero minimum:500 name:L2_ADS : number of L2 address strobes event:0x22 counters:0,1 um:zero minimum:500 name:L2_DBUS_BUSY : number of cycles data bus was busy event:0x23 counters:0,1 um:zero minimum:500 name:L2_DBUS_BUSY_RD : cycles data bus was busy in xfer from L2 to CPU event:0x62 counters:0,1 um:ebl minimum:500 name:BUS_DRDY_CLOCKS : number of clocks DRDY is asserted event:0x63 counters:0,1 um:ebl minimum:500 name:BUS_LOCK_CLOCKS : number of clocks LOCK is asserted event:0x60 counters:0,1 um:zero minimum:500 name:BUS_REQ_OUTSTANDING : number of outstanding bus requests event:0x65 counters:0,1 um:ebl minimum:500 name:BUS_TRAN_BRD : number of burst read transactions event:0x66 counters:0,1 um:ebl minimum:500 name:BUS_TRAN_RFO : number of read for ownership transactions event:0x67 counters:0,1 um:ebl minimum:500 name:BUS_TRANS_WB : number of write back transactions event:0x68 counters:0,1 um:ebl minimum:500 name:BUS_TRAN_IFETCH : number of instruction fetch transactions event:0x69 counters:0,1 um:ebl minimum:500 name:BUS_TRAN_INVAL : number of invalidate transactions event:0x6a counters:0,1 um:ebl minimum:500 name:BUS_TRAN_PWR : number of partial write transactions event:0x6b counters:0,1 um:ebl minimum:500 name:BUS_TRANS_P : number of partial transactions event:0x6c counters:0,1 um:ebl minimum:500 name:BUS_TRANS_IO : number of I/O transactions event:0x6d counters:0,1 um:ebl minimum:500 name:BUS_TRANS_DEF : number of deferred transactions event:0x6e counters:0,1 um:ebl minimum:500 name:BUS_TRAN_BURST : number of burst transactions event:0x70 counters:0,1 um:ebl minimum:500 name:BUS_TRAN_ANY : number of all transactions event:0x6f counters:0,1 um:ebl minimum:500 name:BUS_TRAN_MEM : number of memory transactions event:0x64 counters:0,1 um:zero minimum:500 name:BUS_DATA_RCV : bus cycles this processor is receiving data event:0x61 counters:0,1 um:zero minimum:500 name:BUS_BNR_DRV : bus cycles this processor is driving BNR pin event:0x7a counters:0,1 um:zero minimum:500 name:BUS_HIT_DRV : bus cycles this processor is driving HIT pin event:0x7b counters:0,1 um:zero minimum:500 name:BUS_HITM_DRV : bus cycles this processor is driving HITM pin event:0x7e counters:0,1 um:zero minimum:500 name:BUS_SNOOP_STALL : cycles during bus snoop stall event:0xc1 counters:0 um:zero minimum:3000 name:COMP_FLOP_RET : number of computational FP operations retired event:0x10 counters:0 um:zero minimum:3000 name:FLOPS : number of computational FP operations executed event:0x11 counters:1 um:zero minimum:500 name:FP_ASSIST : number of FP exceptions handled by microcode event:0x12 counters:1 um:zero minimum:1000 name:MUL : number of multiplies event:0x13 counters:1 um:zero minimum:500 name:DIV : number of divides event:0x14 counters:0 um:zero minimum:1000 name:CYCLES_DIV_BUSY : cycles divider is busy event:0x03 counters:0,1 um:zero minimum:500 name:LD_BLOCKS : number of store buffer blocks event:0x04 counters:0,1 um:zero minimum:500 name:SB_DRAINS : number of store buffer drain cycles event:0x05 counters:0,1 um:zero minimum:500 name:MISALIGN_MEM_REF : number of misaligned data memory references event:0x07 counters:0,1 um:kni_prefetch minimum:500 name:EMON_KNI_PREF_DISPATCHED : number of KNI pre-fetch/weakly ordered insns dispatched event:0x4b counters:0,1 um:kni_prefetch minimum:500 name:EMON_KNI_PREF_MISS : number of KNI pre-fetch/weakly ordered insns that miss all caches event:0xc0 counters:0,1 um:zero minimum:6000 name:INST_RETIRED : number of instructions retired event:0xc2 counters:0,1 um:zero minimum:6000 name:UOPS_RETIRED : number of UOPs retired event:0xd0 counters:0,1 um:zero minimum:6000 name:INST_DECODED : number of instructions decoded event:0xd8 counters:0,1 um:kni_inst_retired minimum:3000 name:EMON_KNI_INST_RETIRED : number of KNI instructions retired event:0xd9 counters:0,1 um:kni_inst_retired minimum:3000 name:EMON_KNI_COMP_INST_RET : number of KNI computation instructions retired event:0xc8 counters:0,1 um:zero minimum:500 name:HW_INT_RX : number of hardware interrupts received event:0xc6 counters:0,1 um:zero minimum:500 name:CYCLES_INT_MASKED : cycles interrupts are disabled event:0xc7 counters:0,1 um:zero minimum:500 name:CYCLES_INT_PENDING_AND_MASKED : cycles interrupts are disabled with pending interrupts event:0xc4 counters:0,1 um:zero minimum:500 name:BR_INST_RETIRED : number of branch instructions retired event:0xc5 counters:0,1 um:zero minimum:500 name:BR_MISS_PRED_RETIRED : number of mispredicted branches retired event:0xc9 counters:0,1 um:zero minimum:500 name:BR_TAKEN_RETIRED : number of taken branches retired event:0xca counters:0,1 um:zero minimum:500 name:BR_MISS_PRED_TAKEN_RET : number of taken mispredictions branches retired event:0xe0 counters:0,1 um:zero minimum:500 name:BR_INST_DECODED : number of branch instructions decoded event:0xe2 counters:0,1 um:zero minimum:500 name:BTB_MISSES : number of branches that miss the BTB event:0xe4 counters:0,1 um:zero minimum:500 name:BR_BOGUS : number of bogus branches event:0xe6 counters:0,1 um:zero minimum:500 name:BACLEARS : number of times BACLEAR is asserted event:0xa2 counters:0,1 um:zero minimum:500 name:RESOURCE_STALLS : cycles during resource related stalls event:0xd2 counters:0,1 um:zero minimum:500 name:PARTIAL_RAT_STALLS : cycles or events for partial stalls event:0x06 counters:0,1 um:zero minimum:500 name:SEGMENT_REG_LOADS : number of segment register loads event:0xb1 counters:0,1 um:zero minimum:3000 name:MMX_SAT_INSTR_EXEC : number of MMX saturating instructions executed event:0xb2 counters:0,1 um:mmx_uops minimum:3000 name:MMX_UOPS_EXEC : number of MMX UOPS executed event:0xb3 counters:0,1 um:mmx_instr_type_exec minimum:3000 name:MMX_INSTR_TYPE_EXEC : number of MMX packing instructions event:0xcc counters:0,1 um:mmx_trans minimum:3000 name:FP_MMX_TRANS : MMX-floating point transitions event:0xcd counters:0,1 um:zero minimum:500 name:MMX_ASSIST : number of EMMS instructions executed event:0xce counters:0,1 um:zero minimum:3000 name:MMX_INSTR_RET : number of MMX instructions retired oprofile-0.9.9/events/i386/piii/unit_masks0000664000076400007640000000205612175510132015332 00000000000000# Pentium III possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask name:mesi type:bitmask default:0x0f 0x08 (M)odified cache state 0x04 (E)xclusive cache state 0x02 (S)hared cache state 0x01 (I)nvalid cache state 0x0f All cache states name:ebl type:exclusive default:0x20 0x00 self-generated transactions 0x20 any transactions name:kni_prefetch type:exclusive default:0x0 0x00 prefetch NTA 0x01 prefetch T1 0x02 prefetch T2 0x03 weakly-ordered stores # this bitmask can seems weirds but is correct, note there is no way to only # count scalar SIMD instructions name:kni_inst_retired type:exclusive default:0x0 0x00 packed and scalar 0x01 packed name:mmx_uops type:mandatory default:0xf 0x0f mandatory name:mmx_instr_type_exec type:bitmask default:0x3f 0x01 MMX packed multiplies 0x02 MMX packed shifts 0x04 MMX pack operations 0x08 MMX unpack operations 0x10 MMX packed logical 0x20 MMX packed arithmetic 0x3f all of the above name:mmx_trans type:exclusive default:0x0 0x00 MMX->float operations 0x01 float->MMX operations oprofile-0.9.9/events/i386/ivybridge/0000775000076400007640000000000012175511556014354 500000000000000oprofile-0.9.9/events/i386/ivybridge/events0000664000076400007640000001304212175510132015510 00000000000000# # Event masks for the Intel "Ivy Bridge" micro architecture # # See http://ark.intel.com/ for help in identifying Ivy Bridge based CPUs # include:i386/arch_perfmon event:0x3 counters:cpuid um:ld_blocks minimum:100000 name:ld_blocks : Blocked loads event:0x5 counters:cpuid um:misalign_mem_ref minimum:2000000 name:misalign_mem_ref : Misaligned memory references event:0x7 counters:cpuid um:ld_blocks_partial minimum:100000 name:ld_blocks_partial : Partial loads event:0x8 counters:cpuid um:dtlb_load_misses minimum:2000000 name:dtlb_load_misses : D-TLB misses event:0xd counters:cpuid um:int_misc minimum:2000000 name:int_misc : Instruction decoder events event:0xe counters:0,1,2,3 um:uops_issued minimum:2000000 name:uops_issued : Uops issued event:0x14 counters:cpuid um:arith minimum:2000000 name:arith : Arithmetic event:0x24 counters:cpuid um:l2_rqsts minimum:200000 name:l2_rqsts : L2 cache requests event:0x27 counters:cpuid um:l2_store_lock_rqsts minimum:200000 name:l2_store_lock_rqsts : L2 cache store lock requests event:0x28 counters:cpuid um:l2_l1d_wb_rqsts minimum:200000 name:l2_l1d_wb_rqsts : writebacks from L1D to the L2 cache event:0x48 counters:2 um:l1d_pend_miss minimum:2000000 name:l1d_pend_miss : L1D miss oustandings event:0x49 counters:cpuid um:dtlb_store_misses minimum:2000000 name:dtlb_store_misses : Store misses in all DTLB levels that cause page walks event:0x4c counters:cpuid um:load_hit_pre minimum:100000 name:load_hit_pre : Load dispatches that hit fill buffer event:0x51 counters:cpuid um:l1d minimum:2000000 name:l1d : L1D data line replacements event:0x58 counters:cpuid um:move_elimination minimum:1000000 name:move_elimination : Integer move elimination event:0x5c counters:cpuid um:cpl_cycles minimum:2000000 name:cpl_cycles : Unhalted core cycles qualified by ring event:0x5e counters:cpuid um:rs_events minimum:2000000 name:rs_events : Reservation station event:0x5f counters:cpuid um:tlb_access minimum:100000 name:tlb_access : TLB access event:0x60 counters:cpuid um:offcore_requests_outstanding minimum:2000000 name:offcore_requests_outstanding : Offcore outstanding transactions event:0x63 counters:cpuid um:lock_cycles minimum:2000000 name:lock_cycles : Locked cycles event:0x79 counters:0,1,2,3 um:idq minimum:2000000 name:idq : Instruction Decode Queue (IDQ) event:0x80 counters:cpuid um:icache minimum:200000 name:icache : Instruction cache event:0x85 counters:cpuid um:itlb_misses minimum:2000000 name:itlb_misses : Misses at all ITLB levels that cause page walks event:0x87 counters:cpuid um:ild_stall minimum:2000000 name:ild_stall : Stalls caused by changing prefix length of the instruction. event:0x88 counters:cpuid um:br_inst_exec minimum:200000 name:br_inst_exec : Branch instructions event:0x89 counters:cpuid um:br_misp_exec minimum:200000 name:br_misp_exec : Mispredicted branch instructions event:0x9c counters:cpuid um:idq_uops_not_delivered minimum:2000000 name:idq_uops_not_delivered : Uops not delivered by the Frontend to the Backend of the machine, while there is no Backend stall event:0xa1 counters:cpuid um:uops_dispatched_port minimum:2000000 name:uops_dispatched_port : Cycles per thread when uops are dispatched to port event:0xa2 counters:cpuid um:resource_stalls minimum:2000000 name:resource_stalls : Resource-related stall cycles event:0xa3 counters:2 um:cycle_activity minimum:2000000 name:cycle_activity : Cycle activity event:0xab counters:cpuid um:dsb2mite_switches minimum:2000000 name:dsb2mite_switches : Decode Stream Buffer (DSB)-to-MITE switches event:0xac counters:cpuid um:dsb_fill minimum:2000000 name:dsb_fill : Decode Stream Buffer (DSB) fill event:0xae counters:cpuid um:itlb minimum:10000 name:itlb : Instruction TLB (ITLB) event:0xb0 counters:cpuid um:offcore_requests minimum:100000 name:offcore_requests : Uncore requests event:0xb1 counters:0,1,2,3 um:uops_executed minimum:2000000 name:uops_executed : Uops executed event:0xbd counters:cpuid um:tlb_flush minimum:10000 name:tlb_flush : DTLB flushes event:0xc1 counters:cpuid um:other_assists minimum:100000 name:other_assists : Microcode assists. event:0xc2 counters:0,1,2,3 um:uops_retired minimum:2000000 name:uops_retired : Retired uops. event:0xc3 counters:cpuid um:machine_clears minimum:100000 name:machine_clears : Machine clears event:0xc4 counters:cpuid um:br_inst_retired minimum:400000 name:br_inst_retired : Conditional branch instructions retired. event:0xc5 counters:cpuid um:br_misp_retired minimum:400000 name:br_misp_retired : Mispredicted conditional branch instructions retired. event:0xca counters:0,1,2,3 um:fp_assist minimum:100000 name:fp_assist : FPU assists event:0xcc counters:cpuid um:rob_misc_events minimum:2000000 name:rob_misc_events : ROB (Register Order Buffer) events event:0xd0 counters:0,1,2,3 um:mem_uops_retired minimum:2000000 name:mem_uops_retired : Memory Uops event:0xd1 counters:0,1,2,3 um:mem_load_uops_retired minimum:50000 name:mem_load_uops_retired : Memory load uops event:0xd2 counters:0,1,2,3 um:mem_load_uops_llc_hit_retired minimum:20000 name:mem_load_uops_llc_hit_retired : Memory load uops with LLC (Last Level Cache) hit event:0xd3 counters:0,1,2,3 um:mem_load_uops_llc_miss_retired minimum:10000 name:mem_load_uops_llc_miss_retired : Memory load uops with LLC (Last Level Cache) miss event:0xe6 counters:cpuid um:baclears minimum:100000 name:baclears : Frontend resteering event:0xf0 counters:cpuid um:l2_trans minimum:200000 name:l2_trans : L2 cache transactions event:0xf1 counters:cpuid um:l2_lines_in minimum:100000 name:l2_lines_in : L2 cache lines in event:0xf2 counters:cpuid um:l2_lines_out minimum:100000 name:l2_lines_out : L2 cache lines out oprofile-0.9.9/events/i386/ivybridge/unit_masks0000664000076400007640000005277212175510132016376 00000000000000# # Unit masks for the Intel "Ivy Bridge" micro architecture # # See http://ark.intel.com/ for help in identifying Ivy Bridge based CPUs # include:i386/arch_perfmon name:ld_blocks type:mandatory default:0x2 0x2 extra: store_forward loads blocked by overlapping with store buffer that cannot be forwarded name:misalign_mem_ref type:bitmask default:0x1 0x1 extra: loads Speculative cache line split load uops dispatched to L1 cache 0x2 extra: stores Speculative cache line split STA uops dispatched to L1 cache name:ld_blocks_partial type:mandatory default:0x1 0x1 extra: address_alias False dependencies in MOB due to partial compare on address name:dtlb_load_misses type:exclusive default:0x81 0x81 extra: demand_ld_miss_causes_a_walk Demand load Miss in all translation lookaside buffer (TLB) levels causes an page walk of any page size. 0x82 extra: demand_ld_walk_completed Demand load Miss in all translation lookaside buffer (TLB) levels causes a page walk that completes of any page size. 0x84 extra: demand_ld_walk_duration Demand load cycles page miss handler (PMH) is busy with this walk. name:int_misc type:exclusive default:recovery_cycles 0x3 extra:cmask=1 recovery_cycles Number of cycles waiting for the checkpoints in Resource Allocation Table (RAT) to be recovered after Nuke due to all other cases except JEClear (e.g. whenever a ucode assist is needed like SSE exception, memory disambiguation, etc...) 0x3 extra:cmask=1,edge recovery_stalls_count Number of occurences waiting for the checkpoints in Resource Allocation Table (RAT) to be recovered after Nuke due to all other cases except JEClear (e.g. whenever a ucode assist is needed like SSE exception, memory disambiguation, etc...) name:uops_issued type:exclusive default:any 0x1 extra: any Uops that Resource Allocation Table (RAT) issues to Reservation Station (RS) 0x1 extra:cmask=1,inv stall_cycles Cycles when Resource Allocation Table (RAT) does not issue Uops to Reservation Station (RS) for the thread 0x1 extra:cmask=1,inv,any core_stall_cycles Cycles when Resource Allocation Table (RAT) does not issue Uops to Reservation Station (RS) for all threads 0x10 extra: flags_merge Number of flags-merge uops being allocated. 0x20 extra: slow_lea Number of slow LEA uops being allocated. A uop is generally considered SlowLea if it has 3 sources (e.g. 2 sources + immediate) regardless if as a result of LEA instruction or not. 0x40 extra: single_mul Number of Multiply packed/scalar single precision uops allocated name:arith type:bitmask default:fpu_div_active 0x1 extra: fpu_div_active Cycles when divider is busy executing divide operations 0x4 extra:cmask=1,edge fpu_div Divide operations executed name:l2_rqsts type:exclusive default:0x1 0x1 extra: demand_data_rd_hit Demand Data Read requests that hit L2 cache 0x3 extra: all_demand_data_rd Demand Data Read requests 0x4 extra: rfo_hit RFO requests that hit L2 cache 0x8 extra: rfo_miss RFO requests that miss L2 cache 0xc extra: all_rfo RFO requests to L2 cache 0x10 extra: code_rd_hit L2 cache hits when fetching instructions, code reads. 0x20 extra: code_rd_miss L2 cache misses when fetching instructions 0x30 extra: all_code_rd L2 code requests 0x40 extra: pf_hit Requests from the L2 hardware prefetchers that hit L2 cache 0x80 extra: pf_miss Requests from the L2 hardware prefetchers that miss L2 cache 0xc0 extra: all_pf Requests from L2 hardware prefetchers name:l2_store_lock_rqsts type:exclusive default:0x1 0x1 extra: miss RFOs that miss cache lines 0x8 extra: hit_m RFOs that hit cache lines in M state 0xf extra: all RFOs that access cache lines in any state name:l2_l1d_wb_rqsts type:exclusive default:0x1 0x1 extra: miss Count the number of modified Lines evicted from L1 and missed L2. (Non-rejected WBs from the DCU.) 0x4 extra: hit_e Not rejected writebacks from L1D to L2 cache lines in E state 0x8 extra: hit_m Not rejected writebacks from L1D to L2 cache lines in M state 0xf extra: all Not rejected writebacks from L1D to L2 cache lines in any state. name:l1d_pend_miss type:exclusive default:pending_cycles 0x1 extra: pending L1D miss oustandings duration in cycles 0x1 extra:cmask=1 pending_cycles Cycles with L1D load Misses outstanding. 0x1 extra:cmask=1,edge occurences This event counts the number of L1D misses outstanding, using an edge detect to count transitions. name:dtlb_store_misses type:bitmask default:0x1 0x1 extra: miss_causes_a_walk Store misses in all DTLB levels that cause page walks 0x2 extra: walk_completed Store misses in all DTLB levels that cause completed page walks 0x4 extra: walk_duration Cycles when PMH is busy with page walks 0x10 extra: stlb_hit Store operations that miss the first TLB level but hit the second and do not cause page walks name:load_hit_pre type:bitmask default:0x1 0x1 extra: sw_pf Not software-prefetch load dispatches that hit forward buffer allocated for software prefetch 0x2 extra: hw_pf Not software-prefetch load dispatches that hit forward buffer allocated for hardware prefetch name:l1d type:mandatory default:0x1 0x1 extra: replacement L1D data line replacements name:move_elimination type:bitmask default:0x1 0x1 extra: int_not_eliminated Number of integer Move Elimination candidate uops that were not eliminated. 0x2 extra: simd_not_eliminated Number of SIMD Move Elimination candidate uops that were not eliminated. 0x4 extra: int_eliminated Number of integer Move Elimination candidate uops that were eliminated. 0x8 extra: simd_eliminated Number of SIMD Move Elimination candidate uops that were eliminated. name:cpl_cycles type:exclusive default:ring0 0x1 extra: ring0 Unhalted core cycles when the thread is in ring 0 0x1 extra:cmask=1,edge ring0_trans Number of intervals between processor halts while thread is in ring 0 0x2 extra: ring123 Unhalted core cycles when thread is in rings 1, 2, or 3 name:rs_events type:mandatory default:0x1 0x1 extra: empty_cycles Cycles when Reservation Station (RS) is empty for the thread name:tlb_access type:mandatory default:0x4 0x4 extra: load_stlb_hit Load operations that miss the first DTLB level but hit the second and do not cause page walks name:offcore_requests_outstanding type:exclusive default:cycles_with_demand_data_rd 0x1 extra: demand_data_rd Offcore outstanding Demand Data Read transactions in uncore queue. 0x1 extra:cmask=1 cycles_with_demand_data_rd Cycles when offcore outstanding Demand Data Read transactions are present in SuperQueue (SQ), queue to uncore 0x2 extra: demand_code_rd Offcore outstanding code reads transactions in SuperQueue (SQ), queue to uncore, every cycle 0x4 extra: demand_rfo Offcore outstanding RFO store transactions in SuperQueue (SQ), queue to uncore 0x4 extra:cmask=1 cycles_with_demand_rfo Offcore outstanding demand rfo reads transactions in SuperQueue (SQ), queue to uncore, every cycle 0x8 extra: all_data_rd Offcore outstanding cacheable Core Data Read transactions in SuperQueue (SQ), queue to uncore 0x8 extra:cmask=1 cycles_with_data_rd Cycles when offcore outstanding cacheable Core Data Read transactions are present in SuperQueue (SQ), queue to uncore name:lock_cycles type:bitmask default:0x1 0x1 extra: split_lock_uc_lock_duration Cycles when L1 and L2 are locked due to UC or split lock 0x2 extra: cache_lock_duration Cycles when L1D is locked name:idq type:exclusive default:empty 0x2 extra: empty Instruction Decode Queue (IDQ) empty cycles 0x4 extra: mite_uops Uops delivered to Instruction Decode Queue (IDQ) from MITE path 0x4 extra:cmask=1 mite_cycles Cycles when uops are being delivered to Instruction Decode Queue (IDQ) from MITE path 0x8 extra: dsb_uops Uops delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path 0x8 extra:cmask=1 dsb_cycles Cycles when uops are being delivered to Instruction Decode Queue (IDQ) from Decode Stream Buffer (DSB) path 0x10 extra: ms_dsb_uops Uops initiated by Decode Stream Buffer (DSB) that are being delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy 0x10 extra:cmask=1 ms_dsb_cycles Cycles when uops initiated by Decode Stream Buffer (DSB) are being delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy 0x10 extra:cmask=1,edge ms_dsb_occur Deliveries to Instruction Decode Queue (IDQ) initiated by Decode Stream Buffer (DSB) while Microcode Sequenser (MS) is busy 0x18 extra:cmask=1 all_dsb_cycles_any_uops Cycles Decode Stream Buffer (DSB) is delivering any Uop 0x18 extra:cmask=4 all_dsb_cycles_4_uops Cycles Decode Stream Buffer (DSB) is delivering 4 Uops 0x20 extra: ms_mite_uops Uops initiated by MITE and delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy 0x24 extra:cmask=1 all_mite_cycles_any_uops Cycles MITE is delivering any Uop 0x24 extra:cmask=4 all_mite_cycles_4_uops Cycles MITE is delivering 4 Uops 0x30 extra: ms_uops Uops delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy 0x30 extra:cmask=1 ms_cycles Cycles when uops are being delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy 0x3c extra: mite_all_uops Uops delivered to Instruction Decode Queue (IDQ) from MITE path name:icache type:mandatory default:0x2 0x2 extra: misses Instruction cache, streaming buffer and victim cache misses name:itlb_misses type:bitmask default:0x1 0x1 extra: miss_causes_a_walk Misses at all ITLB levels that cause page walks 0x2 extra: walk_completed Misses in all ITLB levels that cause completed page walks 0x4 extra: walk_duration Cycles when PMH is busy with page walks 0x10 extra: stlb_hit Operations that miss the first ITLB level but hit the second and do not cause any page walks name:ild_stall type:bitmask default:0x1 0x1 extra: lcp Stalls caused by changing prefix length of the instruction. 0x4 extra: iq_full Stall cycles because IQ is full name:br_inst_exec type:exclusive default:0x41 0x41 extra: nontaken_conditional Not taken macro-conditional branches 0x81 extra: taken_conditional Taken speculative and retired macro-conditional branches 0x82 extra: taken_direct_jump Taken speculative and retired macro-conditional branch instructions excluding calls and indirects 0x84 extra: taken_indirect_jump_non_call_ret Taken speculative and retired indirect branches excluding calls and returns 0x88 extra: taken_indirect_near_return Taken speculative and retired indirect branches with return mnemonic 0x90 extra: taken_direct_near_call Taken speculative and retired direct near calls 0xa0 extra: taken_indirect_near_call Taken speculative and retired indirect calls 0xc1 extra: all_conditional Speculative and retired macro-conditional branches 0xc2 extra: all_direct_jmp Speculative and retired macro-unconditional branches excluding calls and indirects 0xc4 extra: all_indirect_jump_non_call_ret Speculative and retired indirect branches excluding calls and returns 0xc8 extra: all_indirect_near_return Speculative and retired indirect return branches. 0xd0 extra: all_direct_near_call Speculative and retired direct near calls 0xff extra: all_branches Speculative and retired branches name:br_misp_exec type:exclusive default:0x41 0x41 extra: nontaken_conditional Not taken speculative and retired mispredicted macro conditional branches 0x81 extra: taken_conditional Taken speculative and retired mispredicted macro conditional branches 0x84 extra: taken_indirect_jump_non_call_ret Taken speculative and retired mispredicted indirect branches excluding calls and returns 0x88 extra: taken_return_near Taken speculative and retired mispredicted indirect branches with return mnemonic 0xa0 extra: taken_indirect_near_call Taken speculative and retired mispredicted indirect calls 0xc1 extra: all_conditional Speculative and retired mispredicted macro conditional branches 0xc4 extra: all_indirect_jump_non_call_ret Mispredicted indirect branches excluding calls and returns 0xff extra: all_branches Speculative and retired mispredicted macro conditional branches name:idq_uops_not_delivered type:exclusive default:core 0x1 extra: core Uops not delivered by the Frontend to the Backend of the machine, while there is no Backend stall 0x1 extra:cmask=1 cycles_le_3_uop_deliv.core Cycles with 3 or less uops delivered by the Frontend to the Backend of the machine, while there is no Backend stall 0x1 extra:cmask=1,inv cycles_fe_was_ok Cycles with 4 uops delivered by the Frontend to the Backend of the machine, or the Backend was stalling 0x1 extra:cmask=2 cycles_le_2_uop_deliv.core Cycles with 2 or less uops delivered by the Frontend to the Backend of the machine, while there is no Backend stall 0x1 extra:cmask=3 cycles_le_1_uop_deliv.core Cycles with 1 or less uops delivered by the Frontend to the Backend of the machine, while there is no Backend stall 0x1 extra:cmask=4 cycles_0_uops_deliv.core Cycles with no uops delivered by the Frontend to the Backend of the machine, while there is no Backend stall name:uops_dispatched_port type:exclusive default:port_0 0x1 extra: port_0 Cycles per thread when uops are dispatched to port 0 0x1 extra:any port_0_core Cycles per core when uops are dispatched to port 0 0x2 extra: port_1 Cycles per thread when uops are dispatched to port 1 0x2 extra:any port_1_core Cycles per core when uops are dispatched to port 1 0xc extra: port_2 Cycles per thread when load or STA uops are dispatched to port 2 0xc extra:any port_2_core Cycles per core when load or STA uops are dispatched to port 2 0x30 extra: port_3 Cycles per thread when load or STA uops are dispatched to port 3 0x30 extra:any port_3_core Cycles per core when load or STA uops are dispatched to port 3 0x40 extra: port_4 Cycles per thread when uops are dispatched to port 4 0x40 extra:any port_4_core Cycles per core when uops are dispatched to port 4 0x80 extra: port_5 Cycles per thread when uops are dispatched to port 5 0x80 extra:any port_5_core Cycles per core when uops are dispatched to port 5 name:resource_stalls type:bitmask default:0x1 0x1 extra: any Resource-related stall cycles 0x4 extra: rs Cycles stalled due to no eligible RS entry available. 0x8 extra: sb Cycles stalled due to no store buffers available. (not including draining form sync). 0x10 extra: rob Cycles stalled due to re-order buffer full. name:cycle_activity type:exclusive default:0x1 0x1 extra:cmask=1 cycles_l2_pending Cycles with pending L2 cache miss loads. 0x2 extra:cmask=2 cycles_ldm_pending Cycles with pending memory loads. 0x4 extra:cmask=4 cycles_no_execute Total execution stalls 0x5 extra:cmask=5 stalls_l2_pending Execution stalls due to L2 cache misses. 0x6 extra:cmask=6 stalls_ldm_pending Execution stalls due to memory subsystem. 0x8 extra:cmask=8 cycles_l1d_pending Cycles with pending L1 cache miss loads. 0xc extra:cmask=c stalls_l1d_pending Execution stalls due to L1 data cache misses name:dsb2mite_switches type:mandatory default:0x1 0x1 extra: count Decode Stream Buffer (DSB)-to-MITE switches name:dsb_fill type:mandatory default:0x8 0x8 extra: exceed_dsb_lines Cycles when Decode Stream Buffer (DSB) fill encounter more than 3 Decode Stream Buffer (DSB) lines name:itlb type:mandatory default:0x1 0x1 extra: itlb_flush Flushing of the Instruction TLB (ITLB) pages, includes 4k/2M/4M pages. name:offcore_requests type:bitmask default:0x1 0x1 extra: demand_data_rd Demand Data Read requests sent to uncore 0x2 extra: demand_code_rd Cacheable and noncachaeble code read requests 0x4 extra: demand_rfo Demand RFO requests including regular RFOs, locks, ItoM 0x8 extra: all_data_rd Demand and prefetch data reads name:uops_executed type:exclusive default:thread 0x1 extra: thread Counts the number of uops to be executed per-thread each cycle. 0x1 extra:cmask=1 cycles_ge_1_uop_exec Cycles where at least 1 uop was executed per-thread 0x1 extra:cmask=1,inv stall_cycles Counts number of cycles no uops were dispatched to be executed on this thread. 0x1 extra:cmask=2 cycles_ge_2_uops_exec Cycles where at least 2 uops were executed per-thread 0x1 extra:cmask=3 cycles_ge_3_uops_exec Cycles where at least 3 uops were executed per-thread 0x1 extra:cmask=4 cycles_ge_4_uops_exec Cycles where at least 4 uops were executed per-thread 0x2 extra: core Number of uops executed on the core. name:tlb_flush type:bitmask default:0x1 0x1 extra: dtlb_thread DTLB flush attempts of the thread-specific entries 0x20 extra: stlb_any STLB flush attempts name:other_assists type:bitmask default:0x8 0x8 extra: avx_store Number of AVX memory assist for stores. AVX microcode assist is being invoked whenever the hardware is unable to properly handle AVX-256b operations. 0x10 extra: avx_to_sse Number of transitions from AVX-256 to legacy SSE when penalty applicable. 0x20 extra: sse_to_avx Number of transitions from SSE to AVX-256 when penalty applicable. name:uops_retired type:exclusive default:all 0x1 extra: all Actually retired uops. 0x1 extra:cmask=1,inv stall_cycles Cycles without actually retired uops. 0x1 extra:cmask=1,inv,any core_stall_cycles Cycles without actually retired uops. 0x1 extra:cmask=10,inv total_cycles Cycles with less than 10 actually retired uops. 0x2 extra: retire_slots Retirement slots used. name:machine_clears type:bitmask default:0x2 0x2 extra: memory_ordering Counts the number of machine clears due to memory order conflicts. 0x4 extra: smc Self-modifying code (SMC) detected. 0x20 extra: maskmov This event counts the number of executed Intel AVX masked load operations that refer to an illegal address range with the mask bits set to 0. name:br_inst_retired type:exclusive default:0x1 0x1 extra: conditional Conditional branch instructions retired. 0x2 extra: near_call_r3 Direct and indirect macro near call instructions retired (captured in ring 3). 0x2 extra: near_call Direct and indirect near call instructions retired. 0x8 extra: near_return Return instructions retired. 0x10 extra: not_taken Not taken branch instructions retired. 0x20 extra: near_taken Taken branch instructions retired. 0x40 extra: far_branch Far branch instructions retired. name:br_misp_retired type:bitmask default:0x1 0x1 extra: conditional Mispredicted conditional branch instructions retired. 0x20 extra: near_taken number of near branch instructions retired that were mispredicted and taken. name:fp_assist type:exclusive default:0x1e 0x2 extra: x87_output Number of X87 assists due to output value. 0x4 extra: x87_input Number of X87 assists due to input value. 0x8 extra: simd_output Number of SIMD FP assists due to Output values 0x10 extra: simd_input Number of SIMD FP assists due to input values 0x1e extra:cmask=1 any Cycles with any input/output SSE or FP assist name:rob_misc_events type:mandatory default:0x20 0x20 extra: lbr_inserts Count cases of saving new LBR name:mem_uops_retired type:exclusive default:0x81 0x11 extra: stlb_miss_loads Load uops with true STLB miss retired to architected path. 0x12 extra: stlb_miss_stores Store uops with true STLB miss retired to architected path. 0x21 extra: lock_loads Load uops with locked access retired to architected path. 0x41 extra: split_loads Line-splitted load uops retired to architected path. 0x42 extra: split_stores Line-splitted store uops retired to architected path. 0x81 extra: all_loads Load uops retired to architected path with filter on bits 0 and 1 applied. 0x82 extra: all_stores Store uops retired to architected path with filter on bits 0 and 1 applied. name:mem_load_uops_retired type:bitmask default:0x1 0x1 extra: l1_hit Retired load uops with L1 cache hits as data sources. 0x2 extra: l2_hit Retired load uops with L2 cache hits as data sources. 0x4 extra: llc_hit Retired load uops which data sources were data hits in LLC without snoops required. 0x40 extra: hit_lfb Retired load uops which data sources were load uops missed L1 but hit forward buffer due to preceding miss to the same cache line with data not ready. name:mem_load_uops_llc_hit_retired type:bitmask default:0x1 0x1 extra: xsnp_miss Retired load uops which data sources were LLC hit and cross-core snoop missed in on-pkg core cache. 0x2 extra: xsnp_hit Retired load uops which data sources were LLC and cross-core snoop hits in on-pkg core cache. 0x4 extra: xsnp_hitm Retired load uops which data sources were HitM responses from shared LLC. 0x8 extra: xsnp_none Retired load uops which data sources were hits in LLC without snoops required. name:mem_load_uops_llc_miss_retired type:mandatory default:0x1 0x1 extra: local_dram Data from local DRAM either Snoop not needed or Snoop Miss (RspI) name:baclears type:mandatory default:0x1f 0x1f extra: any Counts the total number when the front end is resteered, mainly when the BPU cannot provide a correct prediction and this is corrected by other branch handling mechanisms at the front end. name:l2_trans type:bitmask default:0x80 0x1 extra: demand_data_rd Demand Data Read requests that access L2 cache 0x2 extra: rfo RFO requests that access L2 cache 0x4 extra: code_rd L2 cache accesses when fetching instructions 0x8 extra: all_pf L2 or LLC HW prefetches that access L2 cache 0x10 extra: l1d_wb L1D writebacks that access L2 cache 0x20 extra: l2_fill L2 fill requests that access L2 cache 0x40 extra: l2_wb L2 writebacks that access L2 cache 0x80 extra: all_requests Transactions accessing L2 pipe name:l2_lines_in type:exclusive default:0x7 0x1 extra: i L2 cache lines in I state filling L2 0x2 extra: s L2 cache lines in S state filling L2 0x4 extra: e L2 cache lines in E state filling L2 0x7 extra: all L2 cache lines filling L2 name:l2_lines_out type:exclusive default:0x1 0x1 extra: demand_clean Clean L2 cache lines evicted by demand 0x2 extra: demand_dirty Dirty L2 cache lines evicted by demand 0x4 extra: pf_clean Clean L2 cache lines evicted by L2 prefetch 0x8 extra: pf_dirty Dirty L2 cache lines evicted by L2 prefetch 0xa extra: dirty_all Dirty L2 cache lines filling the L2 oprofile-0.9.9/events/i386/p4/0000775000076400007640000000000012175511556012713 500000000000000oprofile-0.9.9/events/i386/p4/events0000664000076400007640000001062412175510132014052 00000000000000# Pentium IV events # # NOTE: events cannot currently be 0x00 due to event binding checks in # driver # event:0x1d counters:0,4 um:global_power_events minimum:3000 name:GLOBAL_POWER_EVENTS : time during which processor is not stopped event:0x01 counters:3,7 um:branch_retired minimum:3000 name:BRANCH_RETIRED : retired branches event:0x02 counters:3,7 um:mispred_branch_retired minimum:3000 name:MISPRED_BRANCH_RETIRED : retired mispredicted branches event:0x04 counters:0,4 um:bpu_fetch_request minimum:3000 name:BPU_FETCH_REQUEST : instruction fetch requests from the branch predict unit event:0x05 counters:0,4 um:itlb_reference minimum:3000 name:ITLB_REFERENCE : translations using the instruction translation lookaside buffer event:0x06 counters:2,6 um:memory_cancel minimum:3000 name:MEMORY_CANCEL : cancelled requesets in data cache address control unit event:0x07 counters:2,6 um:memory_complete minimum:3000 name:MEMORY_COMPLETE : completed split event:0x08 counters:2,6 um:load_port_replay minimum:3000 name:LOAD_PORT_REPLAY : replayed events at the load port event:0x09 counters:2,6 um:store_port_replay minimum:3000 name:STORE_PORT_REPLAY : replayed events at the store port event:0x0a counters:0,4 um:mob_load_replay minimum:3000 name:MOB_LOAD_REPLAY : replayed loads from the memory order buffer event:0x0c counters:0,4 um:bsq_cache_reference minimum:3000 name:BSQ_CACHE_REFERENCE : cache references seen by the bus unit # intel doc vol 3 table A-1 P4 and xeon with cpuid signature < 0xf27 doen't allow MSR_FSB_ESCR1 so on only counter 0 is available event:0x0d counters:0 um:ioq minimum:3000 name:IOQ_ALLOCATION : bus transactions # FIXME the unit mask associated is known to get different behavior between cpu # step id, it need to be documented in P4 events doc event:0x0e counters:4 um:ioq minimum:3000 name:IOQ_ACTIVE_ENTRIES : number of entries in the IOQ which are active event:0x10 counters:0 um:bsq minimum:3000 name:BSQ_ALLOCATION : allocations in the bus sequence unit event:0x12 counters:3,7 um:x87_assist minimum:3000 name:X87_ASSIST : retired x87 instructions which required special handling event:0x1c counters:3,7 um:machine_clear minimum:3000 name:MACHINE_CLEAR : cycles with entire machine pipeline cleared event:0x1e counters:1,5 um:tc_ms_xfer minimum:3000 name:TC_MS_XFER : number of times uops deliver changed from TC to MS ROM event:0x1f counters:1,5 um:uop_queue_writes minimum:3000 name:UOP_QUEUE_WRITES : number of valid uops written to the uop queue event:0x23 counters:3,7 um:instr_retired minimum:3000 name:INSTR_RETIRED : retired instructions event:0x24 counters:3,7 um:uops_retired minimum:3000 name:UOPS_RETIRED : retired uops event:0x25 counters:3,7 um:uop_type minimum:3000 name:UOP_TYPE : type of uop tagged by front-end tagging event:0x26 counters:1,5 um:branch_type minimum:3000 name:RETIRED_MISPRED_BRANCH_TYPE : retired mispredicted branched, selected by type event:0x27 counters:1,5 um:branch_type minimum:3000 name:RETIRED_BRANCH_TYPE : retired branches, selected by type event:0x03 counters:1,5 um:tc_deliver_mode minimum:3000 name:TC_DELIVER_MODE : duration (in clock cycles) in the trace cache and decode engine event:0x0b counters:0,4 um:page_walk_type minimum:3000 name:PAGE_WALK_TYPE : page walks by the page miss handler event:0x0f counters:0,4 um:fsb_data_activity minimum:3000 name:FSB_DATA_ACTIVITY : DRDY or DBSY events on the front side bus event:0x11 counters:4 um:bsq minimum:3000 name:BSQ_ACTIVE_ENTRIES : number of entries in the bus sequence unit which are active event:0x13 counters:2,6 um:flame_uop minimum:3000 name:SSE_INPUT_ASSIST : input assists requested for SSE or SSE2 operands event:0x14 counters:2,6 um:flame_uop minimum:3000 name:PACKED_SP_UOP : packed single precision uops event:0x15 counters:2,6 um:flame_uop minimum:3000 name:PACKED_DP_UOP : packed double precision uops event:0x16 counters:2,6 um:flame_uop minimum:3000 name:SCALAR_SP_UOP : scalar single precision uops event:0x17 counters:2,6 um:flame_uop minimum:3000 name:SCALAR_DP_UOP : scalar double presision uops event:0x18 counters:2,6 um:flame_uop minimum:3000 name:64BIT_MMX_UOP : 64 bit integer SIMD MMX uops event:0x19 counters:2,6 um:flame_uop minimum:3000 name:128BIT_MMX_UOP : 128 bit integer SIMD SSE2 uops event:0x1a counters:2,6 um:flame_uop minimum:3000 name:X87_FP_UOP : x87 floating point uops event:0x1b counters:2,6 um:x87_simd_moves_uop minimum:3000 name:X87_SIMD_MOVES_UOP : x87 FPU, MMX, SSE, or SSE2 loads, stores and reg-to-reg moves oprofile-0.9.9/events/i386/p4/unit_masks0000664000076400007640000001222212175510132014717 00000000000000# Pentium IV possible unit masks # name:branch_retired type:bitmask default:0x0c 0x01 branch not-taken predicted 0x02 branch not-taken mispredicted 0x04 branch taken predicted 0x08 branch taken mispredicted name:mispred_branch_retired type:bitmask default:0x01 0x01 retired instruction is non-bogus # FIXME: 0 count nothing, 0xff count more than 0x01, docs says it's a bitmask: # something wrong in documentation ? name:bpu_fetch_request type:bitmask default:0x01 0x01 trace cache lookup miss name:itlb_reference type:bitmask default:0x07 0x01 ITLB hit 0x02 ITLB miss 0x04 uncacheable ITLB hit name:memory_cancel type:bitmask default:0x08 0x04 replayed because no store request buffer available 0x08 conflicts due to 64k aliasing name:memory_complete type:bitmask default:0x03 0x01 load split completed, excluding UC/WC loads 0x02 any split stores completed 0x04 uncacheable load split completed 0x08 uncacheable store split complete name:load_port_replay type:mandatory default:0x02 0x02 split load name:store_port_replay type:mandatory default:0x02 0x02 split store name:mob_load_replay type:bitmask default:0x3a 0x02 replay cause: unknown store address 0x08 replay cause: unknown store data 0x10 replay cause: partial overlap between load and store 0x20 replay cause: mismatched low 4 bits between load and store addr name:bsq_cache_reference type:bitmask default:0x073f 0x01 read 2nd level cache hit shared 0x02 read 2nd level cache hit exclusive 0x04 read 2nd level cache hit modified 0x08 read 3rd level cache hit shared 0x10 read 3rd level cache hit exclusive 0x20 read 3rd level cache hit modified 0x100 read 2nd level cache miss 0x200 read 3rd level cache miss 0x400 writeback lookup from DAC misses 2nd level cache name:ioq type:bitmask default:0xefe1 0x01 bus request type bit 0 0x02 bus request type bit 1 0x04 bus request type bit 2 0x08 bus request type bit 3 0x10 bus request type bit 4 0x20 count read entries 0x40 count write entries 0x80 count UC memory access entries 0x100 count WC memory access entries 0x200 count write-through memory access entries 0x400 count write-protected memory access entries 0x800 count WB memory access entries 0x2000 count own store requests 0x4000 count other / DMA store requests 0x8000 count HW/SW prefetch requests name:bsq type:bitmask default:0x21 0x01 (r)eq (t)ype (e)ncoding, bit 0: see next bit 0x02 rte bit 1: 00=read, 01=read invalidate, 10=write, 11=writeback 0x04 req len bit 0 0x08 req len bit 1 0x20 request type is input (0=output) 0x40 request type is bus lock 0x80 request type is cacheable 0x100 request type is 8-byte chunk split across 8-byte boundary 0x200 request type is demand (0=prefetch) 0x400 request type is ordered 0x800 (m)emory (t)ype (e)ncoding, bit 0: see next bits 0x1000 mte bit 1: see next bits 0x2000 mte bit 2: 000=UC, 001=USWC, 100=WT, 101=WP, 110=WB name:x87_assist type:bitmask default:0x1f 0x01 handle FP stack underflow 0x02 handle FP stack overflow 0x04 handle x87 output overflow 0x08 handle x87 output underflow 0x10 handle x87 input assist name:machine_clear type:bitmask default:0x01 0x01 count a portion of cycles the machine is cleared for any cause 0x04 count each time the machine is cleared due to memory ordering issues 0x40 count each time the machine is cleared due to self modifying code name:global_power_events type:mandatory default:0x01 0x01 mandatory name:tc_ms_xfer type:mandatory default:0x01 0x01 count TC to MS transfers name:uop_queue_writes type:bitmask default:0x07 0x01 count uops written to queue from TC build mode 0x02 count uops written to queue from TC deliver mode 0x04 count uops written to queue from microcode ROM name:instr_retired type:bitmask default:0x01 0x01 count non-bogus instructions which are not tagged 0x02 count non-bogus instructions which are tagged 0x04 count bogus instructions which are not tagged 0x08 count bogus instructions which are tagged name:uops_retired type:bitmask default:0x01 0x01 count marked uops which are non-bogus 0x02 count marked uops which are bogus name:uop_type type:bitmask default:0x02 0x02 count uops which are load operations 0x04 count uops which are store operations name:branch_type type:bitmask default:0x1f 0x01 count unconditional jumps 0x02 count conditional jumps 0x04 count call branches 0x08 count return branches 0x10 count indirect jumps name:tc_deliver_mode type:bitmask default:0x04 0x04 processor is in deliver mode 0x20 processor is in build mode name:page_walk_type type:bitmask default:0x01 0x01 page walk for data TLB miss 0x02 page walk for instruction TLB miss name:fsb_data_activity type:bitmask default:0x3f 0x01 count when this processor drives data onto bus 0x02 count when this processor reads data from bus 0x04 count when data is on bus but not sampled by this processor 0x08 count when this processor reserves bus for driving 0x10 count when other reserves bus and this processor will sample 0x20 count when other reserves bus and this processor will not sample name:flame_uop type:mandatory default:0x8000 0x8000 count all uops of this type name:x87_simd_moves_uop type:bitmask default:0x18 0x08 count all x87 SIMD store/move uops 0x10 count all x87 SIMD load uops oprofile-0.9.9/events/i386/core/0000775000076400007640000000000012175511556013320 500000000000000oprofile-0.9.9/events/i386/core/events0000664000076400007640000002646212175510132014466 00000000000000# Core Solo / Duo events # # Architectural events # event:0x3c counters:0,1 um:nonhlt minimum:6000 name:CPU_CLK_UNHALTED : Unhalted clock cycles event:0xc0 counters:0,1 um:zero minimum:6000 name:INST_RETIRED : number of instructions retired event:0x2e counters:0,1 um:mesi minimum:6000 name:L2_RQSTS : number of L2 requests # # Model specific events # event:0x03 counters:0,1 um:zero minimum:500 name:LD_BLOCKS : number of store buffer blocks event:0x04 counters:0,1 um:zero minimum:500 name:SB_DRAINS : number of store buffer drain cycles event:0x05 counters:0,1 um:zero minimum:500 name:MISALIGN_MEM_REF : number of misaligned data memory references event:0x06 counters:0,1 um:zero minimum:500 name:SEGMENT_REG_LOADS : number of segment register loads event:0x07 counters:0,1 um:kni_prefetch minimum:500 name:EMON_KNI_PREF_DISPATCHED : number of SSE pre-fetch/weakly ordered insns retired event:0x10 counters:0 um:zero minimum:3000 name:FLOPS : number of computational FP operations executed event:0x11 counters:1 um:zero minimum:500 name:FP_ASSIST : number of FP exceptions handled by microcode event:0x12 counters:1 um:zero minimum:1000 name:MUL : number of multiplies event:0x13 counters:1 um:zero minimum:500 name:DIV : number of divides event:0x14 counters:0 um:zero minimum:1000 name:CYCLES_DIV_BUSY : cycles divider is busy event:0x21 counters:0,1 um:zero minimum:500 name:L2_ADS : number of L2 address strobes event:0x22 counters:0,1 um:zero minimum:500 name:L2_DBUS_BUSY : number of cycles data bus was busy event:0x23 counters:0,1 um:zero minimum:500 name:L2_DBUS_BUSY_RD : cycles data bus was busy in xfer from L2 to CPU event:0x24 counters:0,1 um:zero minimum:500 name:L2_LINES_IN : number of allocated lines in L2 event:0x25 counters:0,1 um:zero minimum:500 name:L2_M_LINES_INM : number of modified lines allocated in L2 event:0x26 counters:0,1 um:zero minimum:500 name:L2_LINES_OUT : number of recovered lines from L2 event:0x27 counters:0,1 um:zero minimum:500 name:L2_M_LINES_OUTM : number of modified lines removed from L2 event:0x28 counters:0,1 um:mesi minimum:500 name:L2_IFETCH : number of L2 instruction fetches event:0x29 counters:0,1 um:mesi minimum:500 name:L2_LD : number of L2 data loads event:0x2a counters:0,1 um:mesi minimum:500 name:L2_ST : number of L2 data stores event:0x30 counters:0,1 um:mesi minimum:500 name:L2_REJECT_CYCLES : Cycles L2 is busy and rejecting new requests event:0x32 counters:0,1 um:mesi minimum:500 name:L2_NO_REQUEST_CYCLES : Cycles there is no request to access L2 event:0x3a counters:0,1 um:est_trans minimum:500 name:EST_TRANS_ALL : Intel(tm) Enhanced SpeedStep(r) Technology transitions event:0x3b counters:0,1 um:xc0 minimum:500 name:THERMAL_TRIP : Duration in a thremal trip based on the current core clock event:0x40 counters:0,1 um:mesi minimum:500 name:DCACHE_CACHE_LD : L1 cacheable data read operations event:0x41 counters:0,1 um:mesi minimum:500 name:DCACHE_CACHE_ST : L1 cacheable data write operations event:0x42 counters:0,1 um:mesi minimum:500 name:DCACHE_CACHE_LOCK : L1 cacheable lock read operations to invalid state event:0x43 counters:0,1 um:one minimum:500 name:DATA_MEM_REFS : all L1 memory references, cachable and non event:0x44 counters:0,1 um:two minimum:500 name:DATA_MEM_CACHE_REFS : L1 data cacheable read and write operations event:0x45 counters:0,1 um:x0f minimum:500 name:DCACHE_REPL : L1 data cache line replacements event:0x46 counters:0,1 um:zero minimum:500 name:DCACHE_M_REPL : L1 data M-state cache line allocated event:0x47 counters:0,1 um:zero minimum:500 name:DCACHE_M_EVICT : L1 data M-state cache line evicted event:0x48 counters:0,1 um:dc_pend_miss minimum:500 name:DCACHE_PEND_MISS : Weighted cycles of L1 miss outstanding event:0x49 counters:0,1 um:zero minimum:500 name:DTLB_MISS : Data references that missed TLB event:0x4b counters:0,1 um:sse_miss minimum:500 name:SSE_PREF_MISS : SSE instructions that missed all caches event:0x4f counters:0,1 um:zero minimum:500 name:L1_PREF_REQ : L1 prefetch requests due to DCU cache misses # event:0x60 counters:0,1 um:zero minimum:500 name:BUS_REQ_OUTSTANDING : weighted number of outstanding bus requests event:0x61 counters:0,1 um:zero minimum:500 name:BUS_BNR_DRV : External bus cycles this processor is driving BNR pin event:0x62 counters:0,1 um:zero minimum:500 name:BUS_DRDY_CLOCKS : External bus cycles DRDY is asserted event:0x63 counters:0,1 um:zero minimum:500 name:BUS_LOCK_CLOCKS : External bus cycles LOCK is asserted event:0x64 counters:0,1 um:x40 minimum:500 name:BUS_DATA_RCV : External bus cycles this processor is receiving data event:0x65 counters:0,1 um:zero minimum:500 name:BUS_TRAN_BRD : number of burst read transactions event:0x66 counters:0,1 um:zero minimum:500 name:BUS_TRAN_RFO : number of completed read for ownership transactions event:0x67 counters:0,1 um:xc0 minimum:500 name:BUS_TRAN_WB : number of completed writeback transactions event:0x68 counters:0,1 um:zero minimum:500 name:BUS_TRAN_IFETCH : number of completed instruction fetch transactions event:0x69 counters:0,1 um:zero minimum:500 name:BUS_TRAN_INVAL : number of completed invalidate transactions event:0x6a counters:0,1 um:zero minimum:500 name:BUS_TRAN_PWR : number of completed partial write transactions event:0x6b counters:0,1 um:zero minimum:500 name:BUS_TRANS_P : number of completed partial transactions event:0x6c counters:0,1 um:zero minimum:500 name:BUS_TRANS_IO : number of completed I/O transactions event:0x6d counters:0,1 um:x20 minimum:500 name:BUS_TRANS_DEF : number of completed defer transactions event:0x6e counters:0,1 um:xc0 minimum:500 name:BUS_TRAN_BURST : number of completed burst transactions event:0x6f counters:0,1 um:xc0 minimum:500 name:BUS_TRAN_MEM : number of completed memory transactions event:0x70 counters:0,1 um:xc0 minimum:500 name:BUS_TRAN_ANY : number of any completed bus transactions event:0x77 counters:0,1 um:zero minimum:500 name:BUS_SNOOPS : External bus cycles event:0x78 counters:0,1 um:one minimum:500 name:DCU_SNOOP_TO_SHARE : DCU snoops to share-state L1 cache line due to L1 misses event:0x7d counters:0,1 um:zero minimum:500 name:BUS_NOT_IN_USE : Number of cycles there is no transaction from the core event:0x7e counters:0,1 um:zero minimum:500 name:BUS_SNOOP_STALL : Number of bus cycles during bus snoop stall event:0x80 counters:0,1 um:zero minimum:500 name:ICACHE_READS : number of instruction fetches event:0x81 counters:0,1 um:zero minimum:500 name:ICACHE_MISSES : number of instruction fetch misses event:0x85 counters:0,1 um:zero minimum:500 name:ITLB_MISS : number of ITLB misses event:0x86 counters:0,1 um:zero minimum:500 name:IFU_MEM_STALL : cycles instruction fetch pipe is stalled event:0x87 counters:0,1 um:zero minimum:500 name:ILD_STALL : cycles instruction length decoder is stalled event:0x88 counters:0,1 um:zero minimum:3000 name:BR_INST_EXEC : Branch instructions executed (not necessarily retired) event:0x89 counters:0,1 um:zero minimum:3000 name:BR_MISSP_EXEC : Branch instructions executed that were mispredicted at execution event:0x8a counters:0,1 um:zero minimum:3000 name:BR_BAC_MISSP_EXEC : Branch instructions executed that were mispredicted at Front End (BAC) event:0x8b counters:0,1 um:zero minimum:3000 name:BR_CND_EXEC : Conditional Branch instructions executed event:0x8c counters:0,1 um:zero minimum:3000 name:BR_CND_MISSP_EXEC : Conditional Branch instructions executed that were mispredicted event:0x8d counters:0,1 um:zero minimum:3000 name:BR_IND_EXEC : Indirect Branch instructions executed event:0x8e counters:0,1 um:zero minimum:3000 name:BR_IND_MISSP_EXEC : Indirect Branch instructions executed that were mispredicted event:0x8f counters:0,1 um:zero minimum:3000 name:BR_RET_EXEC : Return Branch instructions executed event:0x90 counters:0,1 um:zero minimum:3000 name:BR_RET_MISSP_EXEC : Return Branch instructions executed that were mispredicted at Execution event:0x91 counters:0,1 um:zero minimum:3000 name:BR_RET_BAC_MISSP_EXEC :Return Branch instructions executed that were mispredicted at Front End (BAC) event:0x92 counters:0,1 um:zero minimum:3000 name:BR_CALL_EXEC : CALL instruction executed event:0x93 counters:0,1 um:zero minimum:3000 name:BR_CALL_MISSP_EXEC : CALL instruction executed and miss predicted event:0x94 counters:0,1 um:zero minimum:3000 name:BR_IND_CALL_EXEC : Indirect CALL instruction executed event:0xa2 counters:0,1 um:zero minimum:500 name:RESOURCE_STALLS : cycles during resource related stalls event:0xb0 counters:0,1 um:zero minimum:500 name:MMX_INSTR_EXEC : number of MMX instructions executed (not MOVQ and MOVD) event:0xb1 counters:0,1 um:zero minimum:3000 name:SIMD_SAT_INSTR_EXEC : number of SIMD saturating instructions executed event:0xb3 counters:0,1 um:mmx_instr_type_exec minimum:3000 name:MMX_INSTR_TYPE_EXEC : number of MMX packing instructions event:0xc1 counters:0 um:zero minimum:3000 name:COMP_FLOP_RET : number of computational FP operations retired event:0xc2 counters:0,1 um:zero minimum:6000 name:UOPS_RETIRED : number of UOPs retired event:0xc3 counters:0,1 um:zero minimum:500 name:SMC_DETECTED : number of times self-modifying code condition is detected event:0xc4 counters:0,1 um:zero minimum:500 name:BR_INST_RETIRED : number of branch instructions retired event:0xc5 counters:0,1 um:zero minimum:500 name:BR_MISS_PRED_RETIRED : number of mispredicted branches retired event:0xc6 counters:0,1 um:zero minimum:500 name:CYCLES_INT_MASKED : cycles interrupts are disabled event:0xc7 counters:0,1 um:zero minimum:500 name:CYCLES_INT_PENDING_AND_MASKED : cycles interrupts are disabled with pending interrupts event:0xc8 counters:0,1 um:zero minimum:500 name:HW_INT_RX : number of hardware interrupts received event:0xc9 counters:0,1 um:zero minimum:500 name:BR_TAKEN_RETIRED : number of taken branches retired event:0xca counters:0,1 um:zero minimum:500 name:BR_MISS_PRED_TAKEN_RET : number of taken mispredictions branches retired event:0xcc counters:0,1 um:mmx_trans minimum:3000 name:FP_MMX_TRANS : MMX-floating point transitions event:0xcd counters:0,1 um:zero minimum:500 name:MMX_ASSIST : number of EMMS instructions executed event:0xce counters:0,1 um:zero minimum:3000 name:MMX_INSTR_RET : number of MMX instructions retired event:0xd0 counters:0,1 um:zero minimum:6000 name:INST_DECODED : number of instructions decoded event:0xd7 counters:0,1 um:zero minimum:3000 name:ESP_UOPS : Number of ESP folding instructions decoded event:0xd8 counters:0,1 um:sse_sse2_inst_retired minimum:3000 name:EMON_SSE_SSE2_INST_RETIRED : Streaming SIMD Extensions Instructions Retired event:0xd9 counters:0,1 um:sse_sse2_inst_retired minimum:3000 name:EMON_SSE_SSE2_COMP_INST_RETIRED : Computational SSE Instructions Retired event:0xda counters:0,1 um:fused minimum:3000 name:EMON_FUSED_UOPS_RET : Number of retired fused micro-ops event:0xdb counters:0,1 um:zero minimum:3000 name:EMON_UNFUSION : Number of unfusion events in the ROB, happened on a FP exception to a fused uOp event:0xe0 counters:0,1 um:zero minimum:500 name:BR_INST_DECODED : number of branch instructions decoded event:0xe2 counters:0,1 um:zero minimum:500 name:BTB_MISSES : number of branches that miss the BTB event:0xe4 counters:0,1 um:zero minimum:500 name:BR_BOGUS : number of bogus branches event:0xe6 counters:0,1 um:zero minimum:500 name:BACLEARS : number of times BACLEAR is asserted event:0xf0 counters:0,1 um:zero minimum:3000 name:EMON_PREF_RQSTS_UP : Number of upward prefetches issued event:0xf8 counters:0,1 um:zero minimum:3000 name:EMON_PREF_RQSTS_DN : Number of downward prefetches issued oprofile-0.9.9/events/i386/core/unit_masks0000664000076400007640000000402512175510132015326 00000000000000# Core Solo / Core Duo possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask name:one type:mandatory default:0x1 0x1 No unit mask name:two type:mandatory default:0x2 0x2 No unit mask name:x0f type:mandatory default:0xf 0xf No unit mask name:x20 type:mandatory default:0x20 0x20 No unit mask name:x40 type:mandatory default:0x40 0x40 No unit mask name:xc0 type:mandatory default:0xc0 0xc0 No unit mask name:nonhlt type:exclusive default:0x0 0x0 Unhalted core cycles 0x1 Unhalted bus cycles 0x2 Unhalted bus cycles of this core while the other core is halted name:mesi type:bitmask default:0x0f 0x08 (M)odified cache state 0x04 (E)xclusive cache state 0x02 (S)hared cache state 0x01 (I)nvalid cache state 0x0f All cache states 0x10 HW prefetched line only 0x20 all prefetched line w/o regarding mask 0x10. name:est_trans type:exclusive default:0x00 0x00 any transitions 0x10 Intel(tm) Enhanced SpeedStep(r) Technology frequency transitions 0x20 any transactions name:kni_prefetch type:exclusive default:0x0 0x00 prefetch NTA 0x01 prefetch T1 0x02 prefetch T2 0x03 weakly-ordered stores # this bitmask can seems weirds but is correct, note there is no way to only # count scalar SIMD instructions name:sse_sse2_inst_retired type:exclusive default:0x0 0x00 SSE Packed Single 0x01 SSE Scalar-Single 0x02 SSE2 Packed-Double 0x03 SSE2 Scalar-Double name:mmx_instr_type_exec type:bitmask default:0x3f 0x01 MMX packed multiplies 0x02 MMX packed shifts 0x04 MMX pack operations 0x08 MMX unpack operations 0x10 MMX packed logical 0x20 MMX packed arithmetic 0x3f all of the above name:mmx_trans type:exclusive default:0x0 0x00 MMX->float operations 0x01 float->MMX operations name:fused type:exclusive default:0x0 0x00 All fused micro-ops 0x01 Only load+Op micro-ops 0x02 Only std+sta micro-ops name:dc_pend_miss type:exclusive default:0x0 0x00 Weighted cycles 0x01 Duration of cycles name:sse_miss type:exclusive default:0x0 0x00 PREFETCHNTA 0x01 PREFETCHT1 0x02 PREFETCHT2 0x03 SSE streaming store instructions oprofile-0.9.9/events/i386/ppro/0000775000076400007640000000000012175511556013350 500000000000000oprofile-0.9.9/events/i386/ppro/events0000664000076400007640000001523012175510132014505 00000000000000# Pentium Pro events # event:0x79 counters:0,1 um:zero minimum:6000 name:CPU_CLK_UNHALTED : clocks processor is not halted event:0x43 counters:0,1 um:zero minimum:500 name:DATA_MEM_REFS : all memory references, cachable and non event:0x45 counters:0,1 um:zero minimum:500 name:DCU_LINES_IN : total lines allocated in the DCU event:0x46 counters:0,1 um:zero minimum:500 name:DCU_M_LINES_IN : number of M state lines allocated in DCU event:0x47 counters:0,1 um:zero minimum:500 name:DCU_M_LINES_OUT : number of M lines evicted from the DCU event:0x48 counters:0,1 um:zero minimum:500 name:DCU_MISS_OUTSTANDING : number of cycles while DCU miss outstanding event:0x80 counters:0,1 um:zero minimum:500 name:IFU_IFETCH : number of non/cachable instruction fetches event:0x81 counters:0,1 um:zero minimum:500 name:IFU_IFETCH_MISS : number of instruction fetch misses event:0x85 counters:0,1 um:zero minimum:500 name:ITLB_MISS : number of ITLB misses event:0x86 counters:0,1 um:zero minimum:500 name:IFU_MEM_STALL : cycles instruction fetch pipe is stalled event:0x87 counters:0,1 um:zero minimum:500 name:ILD_STALL : cycles instruction length decoder is stalled event:0x28 counters:0,1 um:mesi minimum:500 name:L2_IFETCH : number of L2 instruction fetches event:0x29 counters:0,1 um:mesi minimum:500 name:L2_LD : number of L2 data loads event:0x2a counters:0,1 um:mesi minimum:500 name:L2_ST : number of L2 data stores event:0x24 counters:0,1 um:zero minimum:500 name:L2_LINES_IN : number of allocated lines in L2 event:0x26 counters:0,1 um:zero minimum:500 name:L2_LINES_OUT : number of recovered lines from L2 event:0x25 counters:0,1 um:zero minimum:500 name:L2_M_LINES_INM : number of modified lines allocated in L2 event:0x27 counters:0,1 um:zero minimum:500 name:L2_M_LINES_OUTM : number of modified lines removed from L2 event:0x2e counters:0,1 um:mesi minimum:500 name:L2_RQSTS : number of L2 requests event:0x21 counters:0,1 um:zero minimum:500 name:L2_ADS : number of L2 address strobes event:0x22 counters:0,1 um:zero minimum:500 name:L2_DBUS_BUSY : number of cycles data bus was busy event:0x23 counters:0,1 um:zero minimum:500 name:L2_DBUS_BUSY_RD : cycles data bus was busy in xfer from L2 to CPU event:0x62 counters:0,1 um:ebl minimum:500 name:BUS_DRDY_CLOCKS : number of clocks DRDY is asserted event:0x63 counters:0,1 um:ebl minimum:500 name:BUS_LOCK_CLOCKS : number of clocks LOCK is asserted event:0x60 counters:0,1 um:zero minimum:500 name:BUS_REQ_OUTSTANDING : number of outstanding bus requests event:0x65 counters:0,1 um:ebl minimum:500 name:BUS_TRAN_BRD : number of burst read transactions event:0x66 counters:0,1 um:ebl minimum:500 name:BUS_TRAN_RFO : number of read for ownership transactions event:0x67 counters:0,1 um:ebl minimum:500 name:BUS_TRANS_WB : number of write back transactions event:0x68 counters:0,1 um:ebl minimum:500 name:BUS_TRAN_IFETCH : number of instruction fetch transactions event:0x69 counters:0,1 um:ebl minimum:500 name:BUS_TRAN_INVAL : number of invalidate transactions event:0x6a counters:0,1 um:ebl minimum:500 name:BUS_TRAN_PWR : number of partial write transactions event:0x6b counters:0,1 um:ebl minimum:500 name:BUS_TRANS_P : number of partial transactions event:0x6c counters:0,1 um:ebl minimum:500 name:BUS_TRANS_IO : number of I/O transactions event:0x6d counters:0,1 um:ebl minimum:500 name:BUS_TRANS_DEF : number of deferred transactions event:0x6e counters:0,1 um:ebl minimum:500 name:BUS_TRAN_BURST : number of burst transactions event:0x70 counters:0,1 um:ebl minimum:500 name:BUS_TRAN_ANY : number of all transactions event:0x6f counters:0,1 um:ebl minimum:500 name:BUS_TRAN_MEM : number of memory transactions event:0x64 counters:0,1 um:zero minimum:500 name:BUS_DATA_RCV : bus cycles this processor is receiving data event:0x61 counters:0,1 um:zero minimum:500 name:BUS_BNR_DRV : bus cycles this processor is driving BNR pin event:0x7a counters:0,1 um:zero minimum:500 name:BUS_HIT_DRV : bus cycles this processor is driving HIT pin event:0x7b counters:0,1 um:zero minimum:500 name:BUS_HITM_DRV : bus cycles this processor is driving HITM pin event:0x7e counters:0,1 um:zero minimum:500 name:BUS_SNOOP_STALL : cycles during bus snoop stall event:0xc1 counters:0 um:zero minimum:3000 name:COMP_FLOP_RET : number of computational FP operations retired event:0x10 counters:0 um:zero minimum:3000 name:FLOPS : number of computational FP operations executed event:0x11 counters:1 um:zero minimum:500 name:FP_ASSIST : number of FP exceptions handled by microcode event:0x12 counters:1 um:zero minimum:1000 name:MUL : number of multiplies event:0x13 counters:1 um:zero minimum:500 name:DIV : number of divides event:0x14 counters:0 um:zero minimum:1000 name:CYCLES_DIV_BUSY : cycles divider is busy event:0x03 counters:0,1 um:zero minimum:500 name:LD_BLOCKS : number of store buffer blocks event:0x04 counters:0,1 um:zero minimum:500 name:SB_DRAINS : number of store buffer drain cycles event:0x05 counters:0,1 um:zero minimum:500 name:MISALIGN_MEM_REF : number of misaligned data memory references event:0xc0 counters:0,1 um:zero minimum:6000 name:INST_RETIRED : number of instructions retired event:0xc2 counters:0,1 um:zero minimum:6000 name:UOPS_RETIRED : number of UOPs retired event:0xd0 counters:0,1 um:zero minimum:6000 name:INST_DECODED : number of instructions decoded event:0xc8 counters:0,1 um:zero minimum:500 name:HW_INT_RX : number of hardware interrupts received event:0xc6 counters:0,1 um:zero minimum:500 name:CYCLES_INT_MASKED : cycles interrupts are disabled event:0xc7 counters:0,1 um:zero minimum:500 name:CYCLES_INT_PENDING_AND_MASKED : cycles interrupts are disabled with pending interrupts event:0xc4 counters:0,1 um:zero minimum:500 name:BR_INST_RETIRED : number of branch instructions retired event:0xc5 counters:0,1 um:zero minimum:500 name:BR_MISS_PRED_RETIRED : number of mispredicted branches retired event:0xc9 counters:0,1 um:zero minimum:500 name:BR_TAKEN_RETIRED : number of taken branches retired event:0xca counters:0,1 um:zero minimum:500 name:BR_MISS_PRED_TAKEN_RET : number of taken mispredictions branches retired event:0xe0 counters:0,1 um:zero minimum:500 name:BR_INST_DECODED : number of branch instructions decoded event:0xe2 counters:0,1 um:zero minimum:500 name:BTB_MISSES : number of branches that miss the BTB event:0xe4 counters:0,1 um:zero minimum:500 name:BR_BOGUS : number of bogus branches event:0xe6 counters:0,1 um:zero minimum:500 name:BACLEARS : number of times BACLEAR is asserted event:0xa2 counters:0,1 um:zero minimum:500 name:RESOURCE_STALLS : cycles during resource related stalls event:0xd2 counters:0,1 um:zero minimum:500 name:PARTIAL_RAT_STALLS : cycles or events for partial stalls event:0x06 counters:0,1 um:zero minimum:500 name:SEGMENT_REG_LOADS : number of segment register loads oprofile-0.9.9/events/i386/ppro/unit_masks0000664000076400007640000000054612175510132015362 00000000000000# Pentium Pro possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask name:mesi type:bitmask default:0x0f 0x08 (M)odified cache state 0x04 (E)xclusive cache state 0x02 (S)hared cache state 0x01 (I)nvalid cache state 0x0f All cache states name:ebl type:exclusive default:0x20 0x00 self-generated transactions 0x20 any transactions oprofile-0.9.9/events/i386/arch_perfmon/0000775000076400007640000000000012175511556015033 500000000000000oprofile-0.9.9/events/i386/arch_perfmon/events0000664000076400007640000000160012175510132016164 00000000000000# # Intel Architectural events as of arch perfmon v2 # event:0x3c counters:cpuid um:zero minimum:6000 filter:0 name:CPU_CLK_UNHALTED : Clock cycles when not halted event:0x3c counters:cpuid um:one minimum:6000 filter:2 name:UNHALTED_REFERENCE_CYCLES : Unhalted reference cycles event:0xc0 counters:cpuid um:zero minimum:6000 filter:1 name:INST_RETIRED : number of instructions retired event:0x2e counters:cpuid um:x41 minimum:6000 filter:4 name:LLC_MISSES : Last level cache demand requests from this core that missed the LLC event:0x2e counters:cpuid um:x4f minimum:6000 filter:3 name:LLC_REFS : Last level cache demand requests from this core event:0xc4 counters:cpuid um:zero minimum:500 filter:5 name:BR_INST_RETIRED : number of branch instructions retired event:0xc5 counters:cpuid um:zero minimum:500 filter:6 name:BR_MISS_PRED_RETIRED : number of mispredicted branches retired (precise) oprofile-0.9.9/events/i386/arch_perfmon/unit_masks0000664000076400007640000000041112175510132017034 00000000000000# Intel architectural perfmon unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask name:one type:mandatory default:0x1 0x1 No unit mask name:x41 type:mandatory default:0x41 0x41 No unit mask name:x4f type:mandatory default:0x4f 0x4f No unit mask #oprofile-0.9.9/events/i386/sandybridge/0000775000076400007640000000000012175511556014663 500000000000000oprofile-0.9.9/events/i386/sandybridge/events0000664000076400007640000001450112175510132016020 00000000000000# # Intel "sandy-bridge" microarchitecture core events. # # See http://ark.intel.com/ for help in identifying sandy-bridge based CPUs # # Note the minimum counts are not discovered experimentally and could be likely # lowered in many cases without ill effect. # include:i386/arch_perfmon event:0x03 counters:cpuid um:ld_blocks minimum:100000 name:ld_blocks : blocked loads event:0x05 counters:cpuid um:misalign_mem_ref minimum:2000000 name:misalign_mem_ref : Misaligned memory references event:0x07 counters:cpuid um:ld_blocks_partial minimum:100000 name:ld_blocks_partial : Partial loads event:0x08 counters:cpuid um:dtlb_load_misses minimum:2000000 name:dtlb_load_misses : D-TLB misses event:0x0d counters:cpuid um:int_misc minimum:2000000 name:int_misc : Instruction decoder events event:0x0e counters:0,1,2,3 um:uops_issued minimum:2000000 name:uops_issued : Number of Uops issued event:0x14 counters:cpuid um:arith minimum:2000000 name:arith : Misc ALU events event:0x17 counters:cpuid um:one minimum:2000000 name:insts_written_to_iq : Number of instructions written to Instruction Queue (IQ) this cycle. event:0x24 counters:cpuid um:l2_rqsts minimum:200000 name:l2_rqsts : Requests from L2 cache event:0x27 counters:cpuid um:l2_store_lock_rqsts minimum:200000 name:l2_store_lock_rqsts : L2 cache store lock requests event:0x28 counters:cpuid um:l2_l1d_wb_rqsts minimum:200000 name:l2_l1d_wb_rqsts : writebacks from L1D to the L2 cache event:0x48 counters:2 um:l1d_pend_miss minimum:2000000 name:l1d_pend_miss : Cycles with L1D load Misses outstanding. event:0x49 counters:cpuid um:dtlb_store_misses minimum:2000000 name:dtlb_store_misses : D-TLB store misses event:0x4c counters:cpuid um:load_hit_pre minimum:100000 name:load_hit_pre : Load dispatches that hit fill buffer event:0x4e counters:cpuid um:x02 minimum:2000000 name:hw_pre_req : Hardware Prefetch requests event:0x51 counters:cpuid um:l1d minimum:2000000 name:l1d : L1D cache events event:0x59 counters:cpuid um:partial_rat_stalls minimum:2000000 name:partial_rat_stalls : Partial RAT stalls event:0x5b counters:0,1,2,3 um:resource_stalls2 minimum:2000000 name:resource_stalls2 : Misc resource stalls event:0x5c counters:cpuid um:cpl_cycles minimum:2000000 name:cpl_cycles : Unhalted core cycles in specific rings event:0x5e counters:0,1,2,3 um:one minimum:2000000 name:rs_events : Events for the reservation station event:0x60 counters:cpuid um:offcore_requests_outstanding minimum:2000000 name:offcore_requests_outstanding : Offcore outstanding transactions event:0x63 counters:cpuid um:lock_cycles minimum:2000000 name:lock_cycles : Cycles due to LOCK prefixes. event:0x79 counters:0,1,2,3 um:idq minimum:2000000 name:idq : Instruction Decode Queue events event:0x80 counters:cpuid um:x02 minimum:200000 name:icache : Instruction cache events event:0x85 counters:cpuid um:itlb_misses minimum:2000000 name:itlb_misses : I-TLB misses event:0x87 counters:cpuid um:ild_stall minimum:2000000 name:ild_stall : Instruction decoding stalls event:0x88 counters:cpuid um:br_inst_exec minimum:200000 name:br_inst_exec : Branch instructions event:0x89 counters:cpuid um:br_misp_exec minimum:200000 name:br_misp_exec : Mispredicted branch instructions event:0x9c counters:0,1,2,3 um:idq_uops_not_delivered minimum:2000000 name:idq_uops_not_delivered : uops not delivered to IDQ. event:0xa1 counters:cpuid um:uops_dispatched_port minimum:2000000 name:uops_dispatched_port : Count on which ports uops are dispatched. event:0xa2 counters:cpuid um:resource_stalls minimum:2000000 name:resource_stalls : Core resource stalls event:0xab counters:cpuid um:dsb2mite_switches minimum:2000000 name:dsb2mite_switches : Number of Decode Stream Buffer (DSB) to MITE switches event:0xac counters:cpuid um:dsb_fill minimum:2000000 name:dsb_fill : DSB fill events event:0xae counters:cpuid um:one minimum:10000 name:itlb : ITLB events event:0xb0 counters:cpuid um:offcore_requests minimum:100000 name:offcore_requests : Requests sent outside the core event:0xb1 counters:0,1,2,3 um:uops_dispatched minimum:2000000 name:uops_dispatched : uops dispatched event:0xb2 counters:cpuid um:one minimum:2000000 name:offcore_requests_buffer : Offcore requests buffer events event:0xb6 counters:cpuid um:one minimum:100000 name:agu_bypass_cancel : AGU bypass cancel event:0xbd counters:cpuid um:tlb_flush minimum:10000 name:tlb_flush : TLB flushes event:0xbf counters:cpuid um:l1d_blocks minimum:100000 name:l1d_blocks : L1D cache blocking events event:0xc0 counters:1 um:one minimum:2000000 name:inst_retired : Instructions retired event:0xc1 counters:cpuid um:other_assists minimum:100000 name:other_assists : Instructions that needed an assist event:0xc2 counters:0,1,2,3 um:uops_retired minimum:2000000 name:uops_retired : uops that actually retired. event:0xc3 counters:cpuid um:machine_clears minimum:100000 name:machine_clears : Number of Machine Clears detected. event:0xc4 counters:0,1,2,3 um:br_inst_retired minimum:400000 name:br_inst_retired : Counts branch instructions retired event:0xc5 counters:0,1,2,3 um:br_misp_retired minimum:400000 name:br_misp_retired : Counts mispredicted branch instructions event:0xca counters:0,1,2,3 um:fp_assist minimum:100000 name:fp_assist : Counts floating point assists event:0xcb counters:cpuid um:one minimum:100000 name:hw_interrupts : Number of hardware interrupts received by the processor. event:0xcc counters:cpuid um:x20 minimum:2000000 name:rob_misc_events : Count ROB (Register Reorder Buffer) events. event:0xcd counters:3 um:x02 minimum:2000000 name:mem_trans_retired : Count memory transactions event:0xd0 counters:0,1,2,3 um:mem_uops_retired minimum:2000000 name:mem_uops_retired : Count uops with memory accessed retired event:0xd1 counters:0,1,2,3 um:mem_load_uops_retired minimum:2000000 name:mem_load_uops_retired : Memory load uops. event:0xd2 counters:0,1,2,3 um:mem_load_uops_llc_hit_retired minimum:100000 name:mem_load_uops_llc_hit_retired : Memory load uops with LLC (Last level cache) hit event:0xd4 counters:0,1,2,3 um:x02 minimum:10000 name:mem_load_uops_misc_retired : Memory load uops retired event:0xf0 counters:cpuid um:l2_trans minimum:200000 name:l2_trans : L2 cache accesses event:0xf1 counters:cpuid um:l2_lines_in minimum:100000 name:l2_lines_in : L2 cache lines in event:0xf2 counters:cpuid um:l2_lines_out minimum:100000 name:l2_lines_out : L2 cache lines out event:0xf4 counters:cpuid um:x10 minimum:100000 name:sq_misc : Store queue misc events oprofile-0.9.9/events/i386/sandybridge/unit_masks0000664000076400007640000005142212175510132016674 00000000000000# # Unit masks for the Intel "sandy-bridge" micro architecture # # See http://ark.intel.com/ for help in identifying sandy-bridge based CPUs # include:i386/arch_perfmon name:x02 type:mandatory default:0x2 0x2 No unit mask name:x10 type:mandatory default:0x10 0x10 No unit mask name:x20 type:mandatory default:0x20 0x20 No unit mask name:ld_blocks type:bitmask default:0x1 0x1 extra: data_unknown blocked loads due to store buffer blocks with unknown data. 0x2 extra: store_forward loads blocked by overlapping with store buffer that cannot be forwarded 0x8 extra: no_sr This event counts the number of times that split load operations are temporarily blocked because all resources for handling the split accesses are in use. 0x10 extra: all_block Number of cases where any load is blocked but has no DCU miss. name:misalign_mem_ref type:bitmask default:0x1 0x1 extra: loads Speculative cache-line split load uops dispatched to the L1D. 0x2 extra: stores Speculative cache-line split Store-address uops dispatched to L1D name:ld_blocks_partial type:bitmask default:0x1 0x1 extra: address_alias False dependencies in MOB due to partial compare on address 0x8 extra: all_sta_block This event counts the number of times that load operations are temporarily blocked because of older stores, with addresses that are not yet known. A load operation may incur more than one block of this type. name:dtlb_load_misses type:bitmask default:0x1 0x1 extra: miss_causes_a_walk Miss in all TLB levels causes an page walk of any page size (4K/2M/4M/1G) 0x2 extra: walk_completed Miss in all TLB levels causes a page walk that completes of any page size (4K/2M/4M/1G) 0x4 extra: walk_duration Cycles PMH is busy with this walk 0x10 extra: stlb_hit First level miss but second level hit; no page walk. name:int_misc type:bitmask default:0x40 0x40 extra: rat_stall_cycles Cycles Resource Allocation Table (RAT) external stall is sent to Instruction Decode Queue (IDQ) for this thread. 0x3 extra:cmask=1 recovery_cycles Number of cycles waiting to be recover after Nuke due to all other cases except JEClear. 0x3 extra:cmask=1,edge recovery_stalls_count Edge applied to recovery_cycles, thus counts occurrences. name:uops_issued type:bitmask default:any 0x1 extra: any Number of Uops issued by the Resource Allocation Table (RAT) to the Reservation Station (RS) 0x1 extra:cmask=1,inv stall_cycles cycles no uops issued by this thread. name:arith type:bitmask default:fpu_div_active 0x1 extra: fpu_div_active Cycles that the divider is busy with any divide or sqrt operation. 0x1 extra:cmask=1,edge fpu_div Number of times that the divider is actived, includes INT, SIMD and FP. name:l2_rqsts type:bitmask default:0x1 0x1 extra: demand_data_rd_hit Demand Data Read hit L2, no rejects 0x4 extra: rfo_hit RFO requests that hit L2 cache 0x8 extra: rfo_miss RFO requests that miss L2 cache 0x10 extra: code_rd_hit L2 cache hits when fetching instructions, code reads. 0x20 extra: code_rd_miss L2 cache misses when fetching instructions 0x40 extra: pf_hit Requests from the L2 hardware prefetchers that hit L2 cache 0x80 extra: pf_miss Requests from the L2 hardware prefetchers that miss L2 cache 0x3 extra: all_demand_data_rd Any data read request to L2 cache 0xc extra: all_rfo Any data RFO request to L2 cache 0x30 extra: all_code_rd Any code read request to L2 cache 0xc0 extra: all_pf Any L2 HW prefetch request to L2 cache name:l2_store_lock_rqsts type:bitmask default:0xf 0xf extra: all RFOs that access cache lines in any state 0x1 extra: miss RFO (as a result of regular RFO or Lock request) miss cache - I state 0x4 extra: hit_e RFO (as a result of regular RFO or Lock request) hits cache in E state 0x8 extra: hit_m RFO (as a result of regular RFO or Lock request) hits cache in M state name:l2_l1d_wb_rqsts type:bitmask default:0x4 0x4 extra: hit_e writebacks from L1D to L2 cache lines in E state 0x8 extra: hit_m writebacks from L1D to L2 cache lines in M state name:l1d_pend_miss type:bitmask default:pending 0x1 extra: pending Cycles with L1D load Misses outstanding. 0x1 extra:cmask=1,edge occurences This event counts the number of L1D misses outstanding occurences. name:dtlb_store_misses type:bitmask default:0x1 0x1 extra: miss_causes_a_walk Miss in all TLB levels causes an page walk of any page size (4K/2M/4M/1G) 0x2 extra: walk_completed Miss in all TLB levels causes a page walk that completes of any page size (4K/2M/4M/1G) 0x4 extra: walk_duration Cycles PMH is busy with this walk 0x10 extra: stlb_hit First level miss but second level hit; no page walk. Only relevant if multiple levels. name:load_hit_pre type:bitmask default:0x1 0x1 extra: sw_pf Load dispatches that hit fill buffer allocated for S/W prefetch. 0x2 extra: hw_pf Load dispatches that hit fill buffer allocated for HW prefetch. name:l1d type:bitmask default:0x1 0x1 extra: replacement L1D Data line replacements. 0x2 extra: allocated_in_m L1D M-state Data Cache Lines Allocated 0x4 extra: eviction L1D M-state Data Cache Lines Evicted due to replacement (only) 0x8 extra: all_m_replacement All Modified lines evicted out of L1D name:partial_rat_stalls type:bitmask default:flags_merge_uop 0x20 extra: flags_merge_uop Number of perf sensitive flags-merge uops added by Sandy Bridge u-arch. 0x40 extra: slow_lea_window Number of cycles with at least 1 slow Load Effective Address (LEA) uop being allocated. 0x80 extra: mul_single_uop Number of Multiply packed/scalar single precision uops allocated 0x20 extra:cmask=1 flags_merge_uop_cycles Cycles with perf sensitive flags-merge uops added by SandyBridge u-arch. name:resource_stalls2 type:bitmask default:0x40 0x40 extra: bob_full Cycles Allocator is stalled due Branch Order Buffer (BOB). 0xf extra: all_prf_control Resource stalls2 control structures full for physical registers 0xc extra: all_fl_empty Cycles with either free list is empty 0x4f extra: ooo_rsrc Resource stalls2 control structures full Physical Register Reclaim Table (PRRT), Physical History Table (PHT), INT or SIMD Free List (FL), Branch Order Buffer (BOB) name:cpl_cycles type:bitmask default:ring0 0x1 extra: ring0 Unhalted core cycles the Thread was in Rings 0. 0x1 extra:cmask=1,edge ring0_trans Transitions from ring123 to Ring0. 0x2 extra: ring123 Unhalted core cycles the Thread was in Rings 1/2/3. name:offcore_requests_outstanding type:bitmask default:cycles_with_demand_data_rd 0x1 extra: demand_data_rd Offcore outstanding Demand Data Read transactions in the SuperQueue (SQ), queue to uncore, every cycle. Includes L1D data hardware prefetches. 0x1 extra:cmask=1 cycles_with_demand_data_rd cycles there are Offcore outstanding RD data transactions in the SuperQueue (SQ), queue to uncore. 0x2 extra: demand_code_rd Offcore outstanding Code Reads transactions in the SuperQueue (SQ), queue to uncore, every cycle. 0x4 extra: demand_rfo Offcore outstanding RFO (store) transactions in the SuperQueue (SQ), queue to uncore, every cycle. 0x8 extra: all_data_rd Offcore outstanding all cacheable Core Data Read transactions in the SuperQueue (SQ), queue to uncore, every cycle. 0x8 extra:cmask=1 cycles_with_data_rd Cycles there are Offcore outstanding all Data read transactions in the SuperQueue (SQ), queue to uncore, every cycle. 0x2 extra:cmask=1 cycles_with_demand_code_rd Cycles with offcore outstanding Code Reads transactions in the SuperQueue (SQ), queue to uncore, every cycle. 0x4 extra:cmask=1 cycles_with_demand_rfo Cycles with offcore outstanding demand RFO Reads transactions in the SuperQueue (SQ), queue to uncore, every cycle. name:lock_cycles type:bitmask default:0x1 0x1 extra: split_lock_uc_lock_duration Cycles in which the L1D and L2 are locked, due to a UC lock or split lock 0x2 extra: cache_lock_duration cycles that theL1D is locked name:idq type:bitmask default:0x2 0x2 extra: empty Cycles the Instruction Decode Queue (IDQ) is empty. 0x4 extra: mite_uops Number of uops delivered to Instruction Decode Queue (IDQ) from MITE path. 0x8 extra: dsb_uops Number of uops delivered to Instruction Decode Queue (IDQ) from Decode Stream Buffer (DSB) path. 0x10 extra: ms_dsb_uops Number of Uops delivered into Instruction Decode Queue (IDQ) when MS_Busy, initiated by Decode Stream Buffer (DSB). 0x20 extra: ms_mite_uops Number of Uops delivered into Instruction Decode Queue (IDQ) when MS_Busy, initiated by MITE. 0x30 extra: ms_uops Number of Uops were delivered into Instruction Decode Queue (IDQ) from MS, initiated by Decode Stream Buffer (DSB) or MITE. 0x30 extra:cmask=1 ms_cycles Number of cycles that Uops were delivered into Instruction Decode Queue (IDQ) when MS_Busy, initiated by Decode Stream Buffer (DSB) or MITE. 0x4 extra:cmask=1 mite_cycles Cycles MITE is active 0x8 extra:cmask=1 dsb_cycles Cycles Decode Stream Buffer (DSB) is active 0x10 extra:cmask=1 ms_dsb_cycles Cycles Decode Stream Buffer (DSB) Microcode Sequenser (MS) is active 0x10 extra:cmask=1,edge ms_dsb_occur Occurences of Decode Stream Buffer (DSB) Microcode Sequenser (MS) going active 0x18 extra:cmask=1 all_dsb_cycles_any_uops Cycles Decode Stream Buffer (DSB) is delivering anything 0x18 extra:cmask=4 all_dsb_cycles_4_uops Cycles Decode Stream Buffer (DSB) is delivering 4 Uops 0x24 extra:cmask=1 all_mite_cycles_any_uops Cycles MITE is delivering anything 0x24 extra:cmask=4 all_mite_cycles_4_uops Cycles MITE is delivering 4 Uops 0x3c extra: mite_all_uops Number of uops delivered to Instruction Decode Queue (IDQ) from any path. name:itlb_misses type:bitmask default:0x1 0x1 extra: miss_causes_a_walk Miss in all TLB levels causes an page walk of any page size (4K/2M/4M) 0x2 extra: walk_completed Miss in all TLB levels causes a page walk that completes of any page size (4K/2M/4M) 0x4 extra: walk_duration Cycles PMH is busy with this walk. 0x10 extra: stlb_hit First level miss but second level hit; no page walk. name:ild_stall type:bitmask default:0x1 0x1 extra: lcp Stall "occurrences" due to length changing prefixes (LCP). 0x4 extra: iq_full Stall cycles when instructions cannot be written because the Instruction Queue (IQ) is full. name:br_inst_exec type:bitmask default:0xff 0xff extra: all_branches All branch instructions executed. 0x41 extra: nontaken_conditional All macro conditional nontaken branch instructions. 0x81 extra: taken_conditional All macro conditional taken branch instructions. 0x82 extra: taken_direct_jump All macro unconditional taken branch instructions, excluding calls and indirects. 0x84 extra: taken_indirect_jump_non_call_ret All taken indirect branches that are not calls nor returns. 0x88 extra: taken_indirect_near_return All taken indirect branches that have a return mnemonic. 0x90 extra: taken_direct_near_call All taken non-indirect calls. 0xa0 extra: taken_indirect_near_call All taken indirect calls, including both register and memory indirect. 0xc1 extra: all_conditional All macro conditional branch instructions. 0xc2 extra: all_direct_jmp All macro unconditional branch instructions, excluding calls and indirects 0xc4 extra: all_indirect_jump_non_call_ret All indirect branches that are not calls nor returns. 0xc8 extra: all_indirect_near_return All indirect return branches. 0xd0 extra: all_direct_near_call All non-indirect calls executed. name:br_misp_exec type:bitmask default:0xff 0xff extra: all_branches All mispredicted branch instructions executed. 0x41 extra: nontaken_conditional All nontaken mispredicted macro conditional branch instructions. 0x81 extra: taken_conditional All taken mispredicted macro conditional branch instructions. 0x84 extra: taken_indirect_jump_non_call_ret All taken mispredicted indirect branches that are not calls nor returns. 0x88 extra: taken_return_near All taken mispredicted indirect branches that have a return mnemonic. 0x90 extra: taken_direct_near_call All taken mispredicted non-indirect calls. 0xa0 extra: taken_indirect_near_call All taken mispredicted indirect calls, including both register and memory indirect. 0xc1 extra: all_conditional All mispredicted macro conditional branch instructions. 0xc4 extra: all_indirect_jump_non_call_ret All mispredicted indirect branches that are not calls nor returns. 0xd0 extra: all_direct_near_call All mispredicted non-indirect calls name:idq_uops_not_delivered type:bitmask default:core 0x1 extra: core Count number of non-delivered uops to Resource Allocation Table (RAT). 0x1 extra:cmask=4 cycles_0_uops_deliv.core Counts the cycles no uops were delivered 0x1 extra:cmask=3 cycles_le_1_uop_deliv.core Counts the cycles less than 1 uops were delivered 0x1 extra:cmask=2 cycles_le_2_uop_deliv.core Counts the cycles less than 2 uops were delivered 0x1 extra:cmask=1 cycles_le_3_uop_deliv.core Counts the cycles less than 3 uops were delivered 0x1 extra:cmask=4,inv cycles_ge_1_uop_deliv.core Cycles when 1 or more uops were delivered to the by the front end. 0x1 extra:cmask=1,inv cycles_fe_was_ok Counts cycles FE delivered 4 uops or Resource Allocation Table (RAT) was stalling FE. name:uops_dispatched_port type:bitmask default:0x1 0x1 extra: port_0 Cycles which a Uop is dispatched on port 0 0x2 extra: port_1 Cycles which a Uop is dispatched on port 1 0x4 extra: port_2_ld Cycles which a load Uop is dispatched on port 2 0x8 extra: port_2_sta Cycles which a STA Uop is dispatched on port 2 0x10 extra: port_3_ld Cycles which a load Uop is dispatched on port 3 0x20 extra: port_3_sta Cycles which a STA Uop is dispatched on port 3 0x40 extra: port_4 Cycles which a Uop is dispatched on port 4 0x80 extra: port_5 Cycles which a Uop is dispatched on port 5 0xc extra: port_2 Uops disptached to port 2, loads and stores (speculative and retired) 0x30 extra: port_3 Uops disptached to port 3, loads and stores (speculative and retired) 0xc extra: port_2_core Uops disptached to port 2, loads and stores per core (speculative and retired) 0x30 extra: port_3_core Uops disptached to port 3, loads and stores per core (speculative and retired) name:resource_stalls type:bitmask default:0x1 0x1 extra: any Cycles Allocation is stalled due to Resource Related reason. 0x2 extra: lb Cycles Allocator is stalled due to Load Buffer full 0x4 extra: rs Stall due to no eligible Reservation Station (RS) entry available. 0x8 extra: sb Cycles Allocator is stalled due to Store Buffer full (not including draining from synch). 0x10 extra: rob ROB full cycles. 0xe extra: mem_rs Resource stalls due to LB, SB or Reservation Station (RS) being completely in use 0xf0 extra: ooo_rsrc Resource stalls due to Rob being full, FCSW, MXCSR and OTHER 0xa extra: lb_sb Resource stalls due to load or store buffers name:dsb2mite_switches type:bitmask default:0x1 0x1 extra: count Number of Decode Stream Buffer (DSB) to MITE switches 0x2 extra: penalty_cycles Decode Stream Buffer (DSB)-to-MITE switch true penalty cycles. name:dsb_fill type:bitmask default:0x2 0x2 extra: other_cancel Count number of times a valid DSB fill has been actually cancelled for any reason. 0x8 extra: exceed_dsb_lines Decode Stream Buffer (DSB) Fill encountered > 3 Decode Stream Buffer (DSB) lines. 0xa extra: all_cancel Count number of times a valid Decode Stream Buffer (DSB) fill has been actually cancelled for any reason. name:offcore_requests type:bitmask default:0x1 0x1 extra: demand_data_rd Demand Data Read requests sent to uncore 0x2 extra: demand_code_rd Offcore Code read requests. Includes Cacheable and Un-cacheables. 0x4 extra: demand_rfo Offcore Demand RFOs. Includes regular RFO, Locks, ItoM. 0x8 extra: all_data_rd Offcore Demand and prefetch data reads returned to the core. name:uops_dispatched type:bitmask default:thread 0x1 extra: thread Counts total number of uops to be dispatched per-thread each cycle. 0x1 extra:cmask=1,inv stall_cycles Counts number of cycles no uops were dispatced to be executed on this thread. 0x2 extra: core Counts total number of uops dispatched from any thread name:tlb_flush type:bitmask default:0x1 0x1 extra: dtlb_thread Count number of DTLB flushes of thread-specific entries. 0x20 extra: stlb_any Count number of any STLB flushes name:l1d_blocks type:bitmask default:bank_conflict_cycles 0x1 extra: ld_bank_conflict Any dispatched loads cancelled due to DCU bank conflict 0x5 extra:cmask=1 bank_conflict_cycles Cycles with l1d blocks due to bank conflicts name:other_assists type:bitmask default:0x2 0x2 extra: itlb_miss_retired Instructions that experienced an ITLB miss. Non Pebs 0x10 extra: avx_to_sse Number of transitions from AVX-256 to legacy SSE when penalty applicable Non Pebs 0x20 extra: sse_to_avx Number of transitions from legacy SSE to AVX-256 when penalty applicable Non Pebs name:uops_retired type:bitmask default:all 0x1 extra: all All uops that actually retired. 0x2 extra: retire_slots number of retirement slots used non PEBS 0x1 extra:cmask=1,inv stall_cycles Cycles no executable uops retired 0x1 extra:cmask=10,inv total_cycles Number of cycles using always true condition applied to non PEBS uops retired event. name:machine_clears type:bitmask default:0x2 0x2 extra: memory_ordering Number of Memory Ordering Machine Clears detected. 0x4 extra: smc Number of Self-modifying code (SMC) Machine Clears detected. 0x20 extra: maskmov Number of AVX masked mov Machine Clears detected. name:br_inst_retired type:bitmask default:0x1 0x1 extra: conditional Counts all taken and not taken macro conditional branch instructions. 0x2 extra: near_call Counts all macro direct and indirect near calls. non PEBS 0x8 extra: near_return This event counts the number of near ret instructions retired. 0x10 extra: not_taken Counts all not taken macro branch instructions retired. 0x20 extra: near_taken Counts the number of near branch taken instructions retired. 0x40 extra: far_branch Counts the number of far branch instructions retired. 0x4 extra: all_branches_ps Counts all taken and not taken macro branches including far branches.(Precise Event) 0x2 extra: near_call_r3 Ring123 only near calls (non precise) 0x2 extra: near_call_r3_ps Ring123 only near calls (precise event) name:br_misp_retired type:bitmask default:0x1 0x1 extra: conditional All mispredicted macro conditional branch instructions. 0x2 extra: near_call All macro direct and indirect near calls 0x10 extra: not_taken number of branch instructions retired that were mispredicted and not-taken. 0x20 extra: taken number of branch instructions retired that were mispredicted and taken. 0x4 extra: all_branches_ps all macro branches (Precise Event) name:fp_assist type:bitmask default:0x1e 0x1e extra:cmask=1 any Counts any FP_ASSIST umask was incrementing. 0x2 extra: x87_output output - Numeric Overflow, Numeric Underflow, Inexact Result 0x4 extra: x87_input input - Invalid Operation, Denormal Operand, SNaN Operand 0x8 extra: simd_output Any output SSE* FP Assist - Numeric Overflow, Numeric Underflow. 0x10 extra: simd_input Any input SSE* FP Assist name:mem_uops_retired type:bitmask default:0x11 0x11 extra: stlb_miss_loads STLB misses dues to retired loads 0x12 extra: stlb_miss_stores STLB misses dues to retired stores 0x21 extra: lock_loads Locked retired loads 0x41 extra: split_loads Retired loads causing cacheline splits 0x42 extra: split_stores Retired stores causing cacheline splits 0x81 extra: all_loads Any retired loads 0x82 extra: all_stores Any retired stores name:mem_load_uops_retired type:bitmask default:0x1 0x1 extra: l1_hit Load hit in nearest-level (L1D) cache 0x2 extra: l2_hit Load hit in mid-level (L2) cache 0x4 extra: llc_hit Load hit in last-level (L3) cache with no snoop needed 0x40 extra: hit_lfb A load missed L1D but hit the Fill Buffer name:mem_load_uops_llc_hit_retired type:bitmask default:0x1 0x1 extra: xsnp_miss Load LLC Hit and a cross-core Snoop missed in on-pkg core cache 0x2 extra: xsnp_hit Load LLC Hit and a cross-core Snoop hits in on-pkg core cache 0x4 extra: xsnp_hitm Load had HitM Response from a core on same socket (shared LLC). 0x8 extra: xsnp_none Load hit in last-level (L3) cache with no snoop needed. name:l2_trans type:bitmask default:0x80 0x80 extra: all_requests Transactions accessing L2 pipe 0x1 extra: demand_data_rd Demand Data Read requests that access L2 cache, includes L1D prefetches. 0x2 extra: rfo RFO requests that access L2 cache 0x4 extra: code_rd L2 cache accesses when fetching instructions including L1D code prefetches 0x8 extra: all_pf L2 or LLC HW prefetches that access L2 cache 0x10 extra: l1d_wb L1D writebacks that access L2 cache 0x20 extra: l2_fill L2 fill requests that access L2 cache 0x40 extra: l2_wb L2 writebacks that access L2 cache name:l2_lines_in type:bitmask default:0x7 0x7 extra: all L2 cache lines filling L2 0x1 extra: i L2 cache lines in I state filling L2 0x2 extra: s L2 cache lines in S state filling L2 0x4 extra: e L2 cache lines in E state filling L2 name:l2_lines_out type:bitmask default:0x1 0x1 extra: demand_clean Clean line evicted by a demand 0x2 extra: demand_dirty Dirty line evicted by a demand 0x4 extra: pf_clean Clean line evicted by an L2 Prefetch 0x8 extra: pf_dirty Dirty line evicted by an L2 Prefetch 0xa extra: dirty_all Any Dirty line evicted oprofile-0.9.9/events/i386/core_i7/0000775000076400007640000000000012175511556013717 500000000000000oprofile-0.9.9/events/i386/core_i7/events0000664000076400007640000000033112175510132015050 00000000000000# # Intel Core i7 "Bloomfield" / Xeon EP 75xx events # right now this is only the shared events included for the Nehalem core, # but later we'll add here the uncore events specific to this chip # include:i386/nehalem oprofile-0.9.9/events/i386/core_i7/unit_masks0000664000076400007640000000002512175510132015721 00000000000000include:i386/nehalem oprofile-0.9.9/events/i386/nehalem/0000775000076400007640000000000012175511556014001 500000000000000oprofile-0.9.9/events/i386/nehalem/events0000664000076400007640000003626112175510132015145 00000000000000# # Intel "Nehalem" microarchitecture (Core i7; Xeon 75xx etc.) core events # the uncore (memory controller/QPI) events are in separate files because # they vary between implementations (right now they are not implemented # in oprofile) # # Note the minimum counts are not discovered experimentally and could be likely # lowered in many cases without ill effect. # event:0x3c counters:0,1,2,3 um:zero minimum:6000 name:CPU_CLK_UNHALTED : Clock cycles when not halted event:0x3c counters:0,1,2,3 um:one minimum:6000 name:UNHALTED_REFERENCE_CYCLES : Unhalted reference cycles event:0x2e counters:0,1,2,3 um:x41 minimum:6000 name:LLC_MISSES : Last level cache demand requests from this core that missed the LLC event:0x2e counters:0,1,2,3 um:x4f minimum:6000 name:LLC_REFS : Last level cache demand requests from this core event:0xc0 counters:0,1,2,3 um:inst_retired minimum:6000 name:INST_RETIRED : number of instructions retired event:0xc4 counters:0,1,2,3 um:br_inst_retired minimum:500 name:BR_INST_RETIRED : number of branch instructions retired event:0xc5 counters:0,1,2,3 um:br_misp_retired minimum:500 name:BR_MISS_PRED_RETIRED : number of mispredicted branches retired (precise) # event:0x02 counters:0,1,2,3 um:sb_forward minimum:6000 name:SB_FORWARD : Counts the number of store forwards. event:0x03 counters:0,1,2,3 um:load_block minimum:6000 name:LOAD_BLOCK : Counts the number of loads blocked event:0x04 counters:0,1,2,3 um:sb_drain minimum:6000 name:SB_DRAIN : Counts the cycles of store buffer drains. event:0x05 counters:0,1,2,3 um:misalign_mem_ref minimum:6000 name:MISALIGN_MEM_REF : Counts the number of misaligned load references event:0x06 counters:0,1,2,3 um:store_blocks minimum:6000 name:STORE_BLOCKS : This event counts the number of load operations delayed caused by preceding stores. event:0x07 counters:0,1,2,3 um:one minimum:6000 name:PARTIAL_ADDRESS_ALIAS : Counts false dependency due to partial address aliasing event:0x08 counters:0,1,2,3 um:dtlb_load_misses minimum:6000 name:DTLB_LOAD_MISSES : Counts dtlb page walks event:0x09 counters:0,1,2,3 um:memory_disambiguration minimum:6000 name:MEMORY_DISAMBIGURATION : Counts memory disambiguration events event:0x0B counters:0,1,2,3 um:mem_inst_retired minimum:6000 name:MEM_INST_RETIRED : Counts the number of instructions with an architecturally-visible load/store retired on the architected path. event:0x0C counters:0,1,2,3 um:mem_store_retired minimum:6000 name:MEM_STORE_RETIRED : The event counts the number of retired stores that missed the DTLB. The DTLB miss is not counted if the store operation causes a fault. Does not count prefetches. Counts both primary and secondary misses to the TLB event:0x0E counters:0,1,2,3 um:uops_issued minimum:6000 name:UOPS_ISSUED : Counts the number of Uops issued by the Register Allocation Table to the Reservation Station, i.e. the UOPs issued from the front end to the back end. event:0x0F counters:0,1,2,3 um:mem_uncore_retired minimum:6000 name:MEM_UNCORE_RETIRED : Counts number of memory load instructions retired where the memory reference hit modified data in another core event:0x10 counters:0,1,2,3 um:fp_comp_ops_exe minimum:6000 name:FP_COMP_OPS_EXE : Counts the number of FP Computational Uops Executed. event:0x12 counters:0,1,2,3 um:simd_int_128 minimum:6000 name:SIMD_INT_128 : Counts number of 128 bit SIMD integer operations. event:0x13 counters:0,1,2,3 um:load_dispatch minimum:6000 name:LOAD_DISPATCH : Counts number of loads dispatched from the Reservation Station that bypass. event:0x14 counters:0,1,2,3 um:arith minimum:6000 name:ARITH : Counts division cycles and number of multiplies. Includes integer and FP, but excludes DPPS/MPSAD. event:0x17 counters:0,1,2,3 um:one minimum:6000 name:INST_QUEUE_WRITES : Counts the number of instructions written into the instruction queue every cycle. event:0x18 counters:0,1,2,3 um:inst_decoded minimum:6000 name:INST_DECODED : Counts number of instructions that require decoder 0 to be decoded. Usually, this means that the instruction maps to more than 1 uop event:0x19 counters:0,1,2,3 um:one minimum:6000 name:TWO_UOP_INSTS_DECODED : An instruction that generates two uops was decoded event:0x1D counters:0,1,2,3 um:hw_int minimum:100 name:HW_INT : Counts hardware interrupt events. event:0x1E counters:0,1,2,3 um:one minimum:6000 name:INST_QUEUE_WRITE_CYCLES : This event counts the number of cycles during which instructions are written to the instruction queue. Dividing this counter by the number of instructions written to the instruction queue (INST_QUEUE_WRITES) yields the average number of instructions decoded each cycle. If this number is less than four and the pipe stalls, this indicates that the decoder is failing to decode enough instructions per cycle to sustain the 4-wide pipeline. event:0x24 counters:0,1,2,3 um:l2_rqsts minimum:500 name:L2_RQSTS : Counts number of L2 data loads event:0x26 counters:0,1,2,3 um:l2_data_rqsts minimum:500 name:L2_DATA_RQSTS : More L2 data loads. event:0x27 counters:0,1,2,3 um:l2_write minimum:500 name:L2_WRITE : Counts number of L2 writes event:0x28 counters:0,1,2,3 um:l1d_wb_l2 minimum:500 name:L1D_WB_L2 : Counts number of L1 writebacks to the L2. event:0x2E counters:0,1,2,3 um:longest_lat_cache minimum:6000 name:LONGEST_LAT_CACHE : Count LLC cache reference latencies. event:0x3C counters:0,1,2,3 um:cpu_clk_unhalted minimum:6000 name:CPU_CLK_UNHALTED : Counts the number of thread cycles while the thread is not in a halt state. event:0x3D counters:0,1,2,3 um:one minimum:6000 name:UOPS_DECODED_DEC0 : Counts micro-ops decoded by decoder 0. event:0x40 counters:0,1 um:l1d_cache_ld minimum:6000 name:L1D_CACHE_LD : Counts L1 data cache read requests. event:0x41 counters:0,1 um:l1d_cache_st minimum:6000 name:L1D_CACHE_ST : Counts L1 data cache stores. event:0x42 counters:0,1 um:l1d_cache_lock minimum:6000 name:L1D_CACHE_LOCK : Counts retired load locks in the L1D cache. event:0x43 counters:0,1 um:l1d_all_ref minimum:6000 name:L1D_ALL_REF : Counts all references to the L1 data cache, event:0x49 counters:0,1,2,3 um:dtlb_misses minimum:6000 name:DTLB_MISSES : Counts the number of misses in the STLB event:0x4B counters:0,1,2,3 um:sse_mem_exec minimum:6000 name:SSE_MEM_EXEC : Counts number of SSE instructions which missed the L1 data cache. event:0x4C counters:0,1,2,3 um:one minimum:6000 name:LOAD_HIT_PRE : Counts load operations sent to the L1 data cache while a previous SSE prefetch instruction to the same cache line has started prefetching but has not yet finished. event:0x4D counters:0,1,2,3 um:one minimum:6000 name:SFENCE_CYCLES : Counts store fence cycles event:0x4E counters:0,1,2,3 um:l1d_prefetch minimum:6000 name:L1D_PREFETCH : Counts number of hardware prefetch requests. event:0x4F counters:0,1,2,3 um:ept minimum:6000 name:EPT : Counts Extended Page Directory Entry accesses. The Extended Page Directory cache is used by Virtual Machine operating systems while the guest operating systems use the standard TLB caches. event:0x51 counters:0,1 um:l1d minimum:6000 name:L1D : Counts the number of lines brought from/to the L1 data cache. event:0x52 counters:0,1,2,3 um:one minimum:6000 name:L1D_CACHE_PREFETCH_LOCK_FB_HIT : Counts the number of cacheable load lock speculated instructions accepted into the fill buffer. event:0x53 counters:0,1,2,3 um:one minimum:6000 name:L1D_CACHE_LOCK_FB_HIT : Counts the number of cacheable load lock speculated or retired instructions accepted into the fill buffer. event:0x60 counters:0,1,2,3 um:offcore_requests_outstanding minimum:6000 name:OFFCORE_REQUESTS_OUTSTANDING : Counts weighted cycles of offcore requests. event:0x63 counters:0,1 um:cache_lock_cycles minimum:6000 name:CACHE_LOCK_CYCLES : Cycle count during which the L1/L2 caches are locked. A lock is asserted when there is a locked memory access, due to uncacheable memory, a locked operation that spans two cache lines, or a page walk from an uncacheable page table. event:0x6C counters:0,1,2,3 um:one minimum:6000 name:IO_TRANSACTIONS : Counts the number of completed I/O transactions. event:0x80 counters:0,1,2,3 um:l1i minimum:6000 name:L1I : Counts L1i instruction cache accesses. event:0x81 counters:0,1,2,3 um:ifu_ivc minimum:6000 name:IFU_IVC : Instruction Fetch unit events event:0x82 counters:0,1,2,3 um:large_itlb minimum:6000 name:LARGE_ITLB : Counts number of large ITLB accesses event:0x83 counters:0,1,2,3 um:one minimum:6000 name:L1I_OPPORTUNISTIC_HITS : Opportunistic hits in streaming. event:0x85 counters:0,1,2,3 um:itlb_misses minimum:6000 name:ITLB_MISSES : Counts the number of ITLB misses in various variants event:0x87 counters:0,1,2,3 um:ild_stall minimum:6000 name:ILD_STALL : Cycles Instruction Length Decoder stalls event:0x88 counters:0,1,2,3 um:br_inst_exec minimum:6000 name:BR_INST_EXEC : Counts the number of near branch instructions executed, but not necessarily retired. event:0x89 counters:0,1,2,3 um:br_misp_exec minimum:6000 name:BR_MISP_EXEC : Counts the number of mispredicted conditional near branch instructions executed, but not necessarily retired. event:0xA2 counters:0,1,2,3 um:resource_stalls minimum:6000 name:RESOURCE_STALLS : Counts the number of Allocator resource related stalls. Includes register renaming buffer entries, memory buffer entries. In addition to resource related stalls, this event counts some other events. Includes stalls arising during branch misprediction recovery, such as if retirement of the mispredicted branch is delayed and stalls arising while store buffer is draining from synchronizing operations. event:0xA6 counters:0,1,2,3 um:one minimum:6000 name:MACRO_INSTS : Counts the number of instructions decoded that are macro-fused but not necessarily executed or retired. event:0xA7 counters:0,1,2,3 um:one minimum:6000 name:BACLEAR_FORCE_IQ : Counts number of times a BACLEAR was forced by the Instruction Queue. The IQ is also responsible for providing conditional branch prediciton direction based on a static scheme and dynamic data provided by the L2 Branch Prediction Unit. If the conditional branch target is not found in the Target Array and the IQ predicts that the branch is taken, then the IQ will force the Branch Address Calculator to issue a BACLEAR. Each BACLEAR asserted by the BAC generates approximately an 8 cycle bubble in the instruction fetch pipeline. event:0xA8 counters:0,1,2,3 um:one minimum:6000 name:LSD : Counts the number of micro-ops delivered by loop stream detector event:0xAE counters:0,1,2,3 um:one minimum:6000 name:ITLB_FLUSH : Counts the number of ITLB flushes event:0xB0 counters:0,1,2,3 um:offcore_requests minimum:6000 name:OFFCORE_REQUESTS : Counts number of offcore data requests. event:0xB1 counters:0,1,2,3 um:uops_executed minimum:6000 name:UOPS_EXECUTED : Counts number of Uops executed that were issued on various ports event:0xB2 counters:0,1,2,3 um:one minimum:6000 name:OFFCORE_REQUESTS_SQ_FULL : Counts number of cycles the SQ is full to handle off-core requests. event:0xB3 counters:0,1,2,3 um:snoopq_requests_outstanding minimum:6000 name:SNOOPQ_REQUESTS_OUTSTANDING : Counts weighted cycles of snoopq requests. event:0xB7 counters:0,1,2,3 um:one minimum:6000 name:OOF_CORE_RESPONSE_0 : Off-core Response Performance Monitoring in the Processor Core. Requires special setup. event:0xB8 counters:0,1,2,3 um:snoop_response minimum:6000 name:SNOOP_RESPONSE : Counts HIT snoop response sent by this thread in response to a snoop request. event:0xBA counters:0,1,2,3 um:pic_accesses minimum:6000 name:PIC_ACCESSES : Counts number of TPR accesses event:0xC2 counters:0,1,2,3 um:uops_retired minimum:6000 name:UOPS_RETIRED : Counts the number of micro-ops retired, (macro-fused=1, micro-fused=2, others=1; maximum count of 8 per cycle). Most instructions are composed of one or two microops. Some instructions are decoded into longer sequences such as repeat instructions, floating point transcendental instructions, and assists event:0xC3 counters:0,1,2,3 um:machine_clears minimum:6000 name:MACHINE_CLEARS : Counts the cycles machine clear is asserted. event:0xC7 counters:0,1,2,3 um:ssex_uops_retired minimum:6000 name:SSEX_UOPS_RETIRED : Counts SIMD packed single-precision floating point Uops retired. event:0xC8 counters:0,1,2,3 um:x20 minimum:6000 name:ITLB_MISS_RETIRED : Counts the number of retired instructions that missed the ITLB when the instruction was fetched. event:0xCB counters:0,1,2,3 um:mem_load_retired minimum:6000 name:MEM_LOAD_RETIRED : Counts number of retired loads. event:0xCC counters:0,1,2,3 um:fp_mmx_trans minimum:6000 name:FP_MMX_TRANS : Counts transitions between MMX and x87 state. event:0xD0 counters:0,1,2,3 um:macro_insts minimum:6000 name:MACRO_INSTS : Counts the number of instructions decoded, (but not necessarily executed or retired). event:0xD1 counters:0,1,2,3 um:uops_decoded minimum:6000 name:UOPS_DECODED : Counts the number of Uops decoded by various subsystems. event:0xD2 counters:0,1,2,3 um:rat_stalls minimum:6000 name:RAT_STALLS : Counts the number of cycles during which execution stalled due to several reason event:0xD4 counters:0,1,2,3 um:one minimum:6000 name:SEG_RENAME_STALLS : Counts the number of stall cycles due to the lack of renaming resources for the ES, DS, FS, and GS segment registers. If a segment is renamed but not retired and a second update to the same segment occurs, a stall occurs in the front-end of the pipeline until the renamed segment retires. event:0xD5 counters:0,1,2,3 um:one minimum:6000 name:ES_REG_RENAMES : Counts the number of times the ES segment register is renamed. event:0xDB counters:0,1,2,3 um:one minimum:6000 name:UOP_UNFUSION : Counts unfusion events due to floating point exception to a fused uop. event:0xE0 counters:0,1,2,3 um:one minimum:6000 name:BR_INST_DECODED : Counts the number of branch instructions decoded. event:0xE4 counters:0,1,2,3 um:one minimum:6000 name:BOGUS_BR : Counts the number of bogus branches. event:0xE5 counters:0,1,2,3 um:one minimum:6000 name:BPU_MISSED_CALL_RET : Counts number of times the Branch Prediciton Unit missed predicting a call or return branch. event:0xE6 counters:0,1,2,3 um:baclear minimum:6000 name:BACLEAR : Counts the number of times the front end is resteered, event:0xE8 counters:0,1,2,3 um:bpu_clears minimum:6000 name:BPU_CLEARS : Counts Branch Prediction Unit clears. event:0xF0 counters:0,1,2,3 um:l2_transactions minimum:6000 name:L2_TRANSACTIONS : Counts L2 transactions event:0xF1 counters:0,1,2,3 um:l2_lines_in minimum:6000 name:L2_LINES_IN : Counts the number of cache lines allocated in the L2 cache in various states. event:0xF2 counters:0,1,2,3 um:l2_lines_out minimum:6000 name:L2_LINES_OUT : Counts L2 cache lines evicted. event:0xF3 counters:0,1,2,3 um:l2_hw_prefetch minimum:6000 name:L2_HW_PREFETCH : Count L2 HW prefetcher events event:0xF4 counters:0,1,2,3 um:sq_misc minimum:6000 name:SQ_MISC : Counts events in the Super Queue below the L2. event:0xF6 counters:0,1,2,3 um:one minimum:6000 name:SQ_FULL_STALL_CYCLES : Counts cycles the Super Queue is full. Neither of the threads on this core will be able to access the uncore. event:0xF7 counters:0,1,2,3 um:fp_assist minimum:6000 name:FP_ASSIST : Counts the number of floating point operations executed that required micro-code assist intervention. event:0xF8 counters:0,1,2,3 um:one minimum:6000 name:SEGMENT_REG_LOADS : Counts number of segment register loads event:0xFD counters:0,1,2,3 um:simd_int_64 minimum:6000 name:SIMD_INT_64 : Counts number of SID integer 64 bit packed multiply operations. oprofile-0.9.9/events/i386/nehalem/unit_masks0000664000076400007640000007541412175510132016021 00000000000000# # Unit masks for the Intel "Nehalem" micro architecture # (Intel Core i7 "Bloomfield"; Xeon 75xx) # include:i386/arch_perfmon name:sb_forward type:mandatory default:0x01 0x01 extra: any Counts the number of store forwards name:load_block type:bitmask default:0x01 0x01 extra: std Counts the number of loads blocked by a preceding store with unknown data 0x04 extra: address_offset Counts the number of loads blocked by a preceding store address name:sb_drain type:mandatory default:0x01 0x01 extra: cycles Counts the cycles of store buffer drains name:misalign_mem_ref type:bitmask default:0x03 0x01 extra: load Counts the number of misaligned load references 0x02 extra: store Counts the number of misaligned store references 0x03 extra: any Counts the number of misaligned memory references name:store_blocks type:bitmask default:0x0f 0x01 extra: not_sta This event counts the number of load operations delayed caused by preceding stores whose addresses are known but whose data is unknown, and preceding stores that conflict with the load but which incompletely overlap the load 0x02 extra: sta This event counts load operations delayed caused by preceding stores whose addresses are unknown (STA block) 0x04 extra: at_ret Counts number of loads delayed with at-Retirement block code 0x08 extra: l1d_block Cacheable loads delayed with L1D block code 0x0F any All loads delayed due to store blocks name:dtlb_load_misses type:bitmask default:0x01 0x01 extra: any Counts all load misses that cause a page walk 0x02 extra: walk_completed Counts number of completed page walks due to load miss in the STLB 0x10 extra: stlb_hit Number of cache load STLB hits 0x20 extra: pde_miss Number of DTLB cache load misses where the low part of the linear to physical address translation was missed 0x40 extra: pdp_miss Number of DTLB cache load misses where the high part of the linear to physical address translation was missed 0x80 extra: large_walk_completed Counts number of completed large page walks due to load miss in the STLB name:memory_disambiguration type:bitmask default:0x01 0x01 extra: reset Counts memory disambiguration reset cycles 0x02 extra: success Counts the number of loads that memory disambiguration succeeded 0x04 extra: watchdog Counts the number of times the memory disambiguration watchdog kicked in 0x08 extra: watch_cycles Counts the cycles that the memory disambiguration watchdog is active name:mem_inst_retired type:bitmask default:0x01 0x01 extra: loads Counts the number of instructions with an architecturally-visible store retired on the architected path 0x02 extra: stores Counts the number of instructions with an architecturally-visible store retired on the architected path name:mem_store_retired type:mandatory default:0x01 0x01 extra: dtlb_miss The event counts the number of retired stores that missed the DTLB name:uops_issued type:bitmask default:0x01 0x01 extra: any Counts the number of Uops issued by the Register Allocation Table to the Reservation Station, i 0x01 extra: stalled_cycles Counts the number of cycles no Uops issued by the Register Allocation Table to the Reservation Station, i 0x02 extra: fused Counts the number of fused Uops that were issued from the Register Allocation Table to the Reservation Station name:mem_uncore_retired type:bitmask default:0x02 0x02 extra: other_core_l2_hitm Counts number of memory load instructions retired where the memory reference hit modified data in a sibling core residing on the same socket 0x08 extra: remote_cache_local_home_hit Counts number of memory load instructions retired where the memory reference missed the L1, L2 and LLC caches and HIT in a remote socket's cache 0x10 extra: remote_dram Counts number of memory load instructions retired where the memory reference missed the L1, L2 and LLC caches and was remotely homed 0x20 extra: local_dram Counts number of memory load instructions retired where the memory reference missed the L1, L2 and LLC caches and required a local socket memory reference name:fp_comp_ops_exe type:bitmask default:0x01 0x01 extra: x87 Counts the number of FP Computational Uops Executed 0x02 extra: mmx Counts number of MMX Uops executed 0x04 extra: sse_fp Counts number of SSE and SSE2 FP uops executed 0x08 extra: sse2_integer Counts number of SSE2 integer uops executed 0x10 extra: sse_fp_packed Counts number of SSE FP packed uops executed 0x20 extra: sse_fp_scalar Counts number of SSE FP scalar uops executed 0x40 extra: sse_single_precision Counts number of SSE* FP single precision uops executed 0x80 extra: sse_double_precision Counts number of SSE* FP double precision uops executed name:simd_int_128 type:bitmask default:0x01 0x01 extra: packed_mpy Counts number of 128 bit SIMD integer multiply operations 0x02 extra: packed_shift Counts number of 128 bit SIMD integer shift operations 0x04 extra: pack Counts number of 128 bit SIMD integer pack operations 0x08 extra: unpack Counts number of 128 bit SIMD integer unpack operations 0x10 extra: packed_logical Counts number of 128 bit SIMD integer logical operations 0x20 extra: packed_arith Counts number of 128 bit SIMD integer arithmetic operations 0x40 extra: shuffle_move Counts number of 128 bit SIMD integer shuffle and move operations name:load_dispatch type:bitmask default:0x07 0x01 extra: rs Counts number of loads dispatched from the Reservation Station that bypass the Memory Order Buffer 0x02 extra: rs_delayed Counts the number of delayed RS dispatches at the stage latch 0x04 extra: mob Counts the number of loads dispatched from the Reservation Station to the Memory Order Buffer 0x07 extra: any Counts all loads dispatched from the Reservation Station name:arith type:bitmask default:0x01 0x01 extra: cycles_div_busy Counts the number of cycles the divider is busy executing divide or square root operations 0x02 extra: mul Counts the number of multiply operations executed name:inst_decoded type:mandatory default:0x01 0x01 extra: dec0 Counts number of instructions that require decoder 0 to be decoded name:hw_int type:bitmask default:0x01 0x01 extra: rcv Number of interrupt received 0x02 extra: cycles_masked Number of cycles interrupt are masked 0x04 extra: cycles_pending_and_masked Number of cycles interrupts are pending and masked name:l2_rqsts type:bitmask default:0x01 0x01 extra: ld_hit Counts number of loads that hit the L2 cache 0x02 extra: ld_miss Counts the number of loads that miss the L2 cache 0x03 extra: loads Counts all L2 load requests 0x04 extra: rfo_hit Counts the number of store RFO requests that hit the L2 cache 0x08 extra: rfo_miss Counts the number of store RFO requests that miss the L2 cache 0x0C rfos Counts all L2 store RFO requests 0x10 extra: ifetch_hit Counts number of instruction fetches that hit the L2 cache 0x20 extra: ifetch_miss Counts number of instruction fetches that miss the L2 cache 0x30 extra: ifetches Counts all instruction fetches 0x40 extra: prefetch_hit Counts L2 prefetch hits for both code and data 0x80 extra: prefetch_miss Counts L2 prefetch misses for both code and data 0xC0 prefetches Counts all L2 prefetches for both code and data 0xAA miss Counts all L2 misses for both code and data 0xFF references Counts all L2 requests for both code and data name:l2_data_rqsts type:bitmask default:0xff 0x01 extra: i_state Counts number of L2 data demand loads where the cache line to be loaded is in the I (invalid) state, i 0x02 extra: s_state Counts number of L2 data demand loads where the cache line to be loaded is in the S (shared) state 0x04 extra: e_state Counts number of L2 data demand loads where the cache line to be loaded is in the E (exclusive) state 0x08 extra: m_state Counts number of L2 data demand loads where the cache line to be loaded is in the M (modified) state 0x0F mesi Counts all L2 data demand requests 0x10 extra: i_state Counts number of L2 prefetch data loads where the cache line to be loaded is in the I (invalid) state, i 0x20 extra: s_state Counts number of L2 prefetch data loads where the cache line to be loaded is in the S (shared) state 0x40 extra: e_state Counts number of L2 prefetch data loads where the cache line to be loaded is in the E (exclusive) state 0x80 extra: m_state Counts number of L2 prefetch data loads where the cache line to be loaded is in the M (modified) state 0xF0 mesi Counts all L2 prefetch requests 0xFF any Counts all L2 data requests name:l2_write type:bitmask default:0x01 0x01 extra: i_state Counts number of L2 demand store RFO requests where the cache line to be loaded is in the I (invalid) state, i 0x02 extra: s_state Counts number of L2 store RFO requests where the cache line to be loaded is in the S (shared) state 0x04 extra: e_state Counts number of L2 store RFO requests where the cache line to be loaded is in the E (exclusive) state 0x08 extra: m_state Counts number of L2 store RFO requests where the cache line to be loaded is in the M (modified) state 0x0E hit Counts number of L2 store RFO requests where the cache line to be loaded is in either the S, E or M states 0x0F mesi Counts all L2 store RFO requests 0x10 extra: i_state Counts number of L2 demand lock RFO requests where the cache line to be loaded is in the I (invalid) state, i 0x20 extra: s_state Counts number of L2 lock RFO requests where the cache line to be loaded is in the S (shared) state 0x40 extra: e_state Counts number of L2 demand lock RFO requests where the cache line to be loaded is in the E (exclusive) state 0x80 extra: m_state Counts number of L2 demand lock RFO requests where the cache line to be loaded is in the M (modified) state 0xE0 hit Counts number of L2 demand lock RFO requests where the cache line to be loaded is in either the S, E, or M state 0xF0 mesi Counts all L2 demand lock RFO requests name:l1d_wb_l2 type:bitmask default:0x01 0x01 extra: i_state Counts number of L1 writebacks to the L2 where the cache line to be written is in the I (invalid) state, i 0x02 extra: s_state Counts number of L1 writebacks to the L2 where the cache line to be written is in the S state 0x04 extra: e_state Counts number of L1 writebacks to the L2 where the cache line to be written is in the E (exclusive) state 0x08 extra: m_state Counts number of L1 writebacks to the L2 where the cache line to be written is in the M (modified) state 0x0F mesi Counts all L1 writebacks to the L2 name:longest_lat_cache type:bitmask default:0x4F 0x4F reference This event counts requests originating from the core that reference a cache line in the last level cache 0x41 extra: miss This event counts each cache miss condition for references to the last level cache name:cpu_clk_unhalted type:bitmask default:0x00 0x00 extra: thread_p Counts the number of thread cycles while the thread is not in a halt state 0x01 extra: ref_p Increments at the frequency of a slower reference clock when not halted name:l1d_cache_ld type:bitmask default:0x01 0x01 extra: i_state Counts L1 data cache read requests where the cache line to be loaded is in the I (invalid) state, i 0x02 extra: s_state Counts L1 data cache read requests where the cache line to be loaded is in the S (shared) state 0x04 extra: e_state Counts L1 data cache read requests where the cache line to be loaded is in the E (exclusive) state 0x08 extra: m_state Counts L1 data cache read requests where the cache line to be loaded is in the M (modified) state 0x0F mesi Counts L1 data cache read requests name:l1d_cache_st type:bitmask default:0x01 0x01 extra: i_state Counts L1 data cache store RFO requests where the cache line to be loaded is in the I state 0x02 extra: s_state Counts L1 data cache store RFO requests where the cache line to be loaded is in the S (shared) state 0x04 extra: e_state Counts L1 data cache store RFO requests where the cache line to be loaded is in the E (exclusive) state 0x08 extra: m_state Counts L1 data cache store RFO requests where cache line to be loaded is in the M (modified) state 0x0F mesi Counts L1 data cache store RFO requests name:l1d_cache_lock type:bitmask default:0x01 0x01 extra: hit Counts retired load locks that hit in the L1 data cache or hit in an already allocated fill buffer 0x02 extra: s_state Counts L1 data cache retired load locks that hit the target cache line in the shared state 0x04 extra: e_state Counts L1 data cache retired load locks that hit the target cache line in the exclusive state 0x08 extra: m_state Counts L1 data cache retired load locks that hit the target cache line in the modified state name:l1d_all_ref type:bitmask default:0x01 0x01 extra: any Counts all references (uncached, speculated and retired) to the L1 data cache, including all loads and stores with any memory types 0x02 extra: cacheable Counts all data reads and writes (speculated and retired) from cacheable memory, including locked operations #name:l1d_pend_miss type:mandatory default:0x02 # 0x02 extra: load_buffers_full Counts cycles of L1 data cache load fill buffers full name:dtlb_misses type:bitmask default:0x01 0x01 extra: any Counts the number of misses in the STLB which causes a page walk 0x02 extra: walk_completed Counts number of misses in the STLB which resulted in a completed page walk 0x10 extra: stlb_hit Counts the number of DTLB first level misses that hit in the second level TLB 0x20 extra: pde_miss Number of DTLB cache misses where the low part of the linear to physical address translation was missed 0x40 extra: pdp_miss Number of DTLB misses where the high part of the linear to physical address translation was missed 0x80 extra: large_walk_completed Counts number of completed large page walks due to misses in the STLB name:sse_mem_exec type:bitmask default:0x01 0x01 extra: nta Counts number of SSE NTA prefetch/weakly-ordered instructions which missed the L1 data cache 0x08 extra: streaming_stores Counts number of SSE nontemporal stores name:l1d_prefetch type:bitmask default:0x01 0x01 extra: requests Counts number of hardware prefetch requests dispatched out of the prefetch FIFO 0x02 extra: miss Counts number of hardware prefetch requests that miss the L1D 0x04 extra: triggers Counts number of prefetch requests triggered by the Finite State Machine and pushed into the prefetch FIFO name:ept type:bitmask default:0x02 0x02 extra: epde_miss Counts Extended Page Directory Entry misses 0x04 extra: epdpe_hit Counts Extended Page Directory Pointer Entry hits 0x08 extra: epdpe_miss Counts Extended Page Directory Pointer Entry misses name:l1d type:bitmask default:0x01 0x01 extra: repl Counts the number of lines brought into the L1 data cache 0x02 extra: m_repl Counts the number of modified lines brought into the L1 data cache 0x04 extra: m_evict Counts the number of modified lines evicted from the L1 data cache due to replacement 0x08 extra: m_snoop_evict Counts the number of modified lines evicted from the L1 data cache due to snoop HITM intervention name:offcore_requests_outstanding type:bitmask default:0x01 0x01 extra: read_data Counts weighted cycles of offcore demand data read requests 0x02 extra: read_code Counts weighted cycles of offcore demand code read requests 0x04 extra: rfo Counts weighted cycles of offcore demand RFO requests 0x08 extra: read Counts weighted cycles of offcore read requests of any kind name:cache_lock_cycles type:bitmask default:0x01 0x01 extra: l1d_l2 Cycle count during which the L1D and L2 are locked 0x02 extra: l1d Counts the number of cycles that cacheline in the L1 data cache unit is locked name:l1i type:bitmask default:0x01 0x01 extra: hits Counts all instruction fetches that hit the L1 instruction cache 0x02 extra: misses Counts all instruction fetches that miss the L1I cache 0x03 extra: reads Counts all instruction fetches, including uncacheable fetches that bypass the L1I 0x04 extra: cycles_stalled Cycle counts for which an instruction fetch stalls due to a L1I cache miss, ITLB miss or ITLB fault name:ifu_ivc type:bitmask default:0x01 0x01 extra: full Instruction Fetche unit victim cache full 0x02 extra: l1i_eviction L1 Instruction cache evictions name:large_itlb type:mandatory default:0x01 0x01 extra: hit Counts number of large ITLB hits name:itlb_misses type:bitmask default:0x01 0x01 extra: any Counts the number of misses in all levels of the ITLB which causes a page walk 0x02 extra: walk_completed Counts number of misses in all levels of the ITLB which resulted in a completed page walk 0x04 extra: walk_cycles Counts ITLB miss page walk cycles 0x04 extra: pmh_busy_cycles Counts PMH busy cycles 0x10 extra: stlb_hit Counts the number of ITLB misses that hit in the second level TLB 0x20 extra: pde_miss Number of ITLB misses where the low part of the linear to physical address translation was missed 0x40 extra: pdp_miss Number of ITLB misses where the high part of the linear to physical address translation was missed 0x80 extra: large_walk_completed Counts number of completed large page walks due to misses in the STLB name:ild_stall type:bitmask default:0x0f 0x01 extra: lcp Cycles Instruction Length Decoder stalls due to length changing prefixes: 66, 67 or REX 0x02 extra: mru Instruction Length Decoder stall cycles due to Brand Prediction Unit (PBU) Most Recently Used (MRU) bypass 0x04 extra: iq_full Stall cycles due to a full instruction queue 0x08 extra: regen Counts the number of regen stalls 0x0F any Counts any cycles the Instruction Length Decoder is stalled name:br_inst_exec type:bitmask default:0x7f 0x01 extra: cond Counts the number of conditional near branch instructions executed, but not necessarily retired 0x02 extra: direct Counts all unconditional near branch instructions excluding calls and indirect branches 0x04 extra: indirect_non_call Counts the number of executed indirect near branch instructions that are not calls 0x07 extra: non_calls Counts all non call near branch instructions executed, but not necessarily retired 0x08 extra: return_near Counts indirect near branches that have a return mnemonic 0x10 extra: direct_near_call Counts unconditional near call branch instructions, excluding non call branch, executed 0x20 extra: indirect_near_call Counts indirect near calls, including both register and memory indirect, executed 0x30 extra: near_calls Counts all near call branches executed, but not necessarily retired 0x40 extra: taken Counts taken near branches executed, but not necessarily retired 0x7F any Counts all near executed branches (not necessarily retired) name:br_misp_exec type:bitmask default:0x7f 0x01 extra: cond Counts the number of mispredicted conditional near branch instructions executed, but not necessarily retired 0x02 extra: direct Counts mispredicted macro unconditional near branch instructions, excluding calls and indirect branches (should always be 0) 0x04 extra: indirect_non_call Counts the number of executed mispredicted indirect near branch instructions that are not calls 0x07 extra: non_calls Counts mispredicted non call near branches executed, but not necessarily retired 0x08 extra: return_near Counts mispredicted indirect branches that have a rear return mnemonic 0x10 extra: direct_near_call Counts mispredicted non-indirect near calls executed, (should always be 0) 0x20 extra: indirect_near_call Counts mispredicted indirect near calls exeucted, including both register and memory indirect 0x30 extra: near_calls Counts all mispredicted near call branches executed, but not necessarily retired 0x40 extra: taken Counts executed mispredicted near branches that are taken, but not necessarily retired 0x7F any Counts the number of mispredicted near branch instructions that were executed, but not necessarily retired name:resource_stalls type:bitmask default:0x01 0x01 extra: any Counts the number of Allocator resource related stalls 0x02 extra: load Counts the cycles of stall due to lack of load buffer for load operation 0x04 extra: rs_full This event counts the number of cycles when the number of instructions in the pipeline waiting for execution reaches the limit the processor can handle 0x08 extra: store This event counts the number of cycles that a resource related stall will occur due to the number of store instructions reaching the limit of the pipeline, (i 0x10 extra: rob_full Counts the cycles of stall due to reorder buffer full 0x20 extra: fpcw Counts the number of cycles while execution was stalled due to writing the floating-point unit (FPU) control word 0x40 extra: mxcsr Stalls due to the MXCSR register rename occurring to close to a previous MXCSR rename 0x80 extra: other Counts the number of cycles while execution was stalled due to other resource issues name:offcore_requests type:bitmask default:0x80 0x01 extra: demand_read_data Counts number of offcore demand data read requests 0x02 extra: demand_read_code Counts number of offcore demand code read requests 0x04 extra: demand_rfo Counts number of offcore demand RFO requests 0x08 extra: any_read Counts number of offcore read requests 0x10 extra: any_rfo Counts number of offcore RFO requests 0x20 extra: uncached_mem Counts number of offcore uncached memory requests 0x40 extra: l1d_writeback Counts number of L1D writebacks to the uncore 0x80 extra: any Counts all offcore requests name:uops_executed type:bitmask default:0x3f 0x01 extra: port0 Counts number of Uops executed that were issued on port 0 0x02 extra: port1 Counts number of Uops executed that were issued on port 1 0x04 extra: port2_core Counts number of Uops executed that were issued on port 2 0x08 extra: port3_core Counts number of Uops executed that were issued on port 3 0x10 extra: port4_core Counts number of Uops executed that where issued on port 4 0x20 extra: port5 Counts number of Uops executed that where issued on port 5 0x40 extra: port015 Counts number of Uops executed that where issued on port 0, 1, or 5 0x80 extra: port234 Counts number of Uops executed that where issued on port 2, 3, or 4 name:snoopq_requests_outstanding type:bitmask default:0x01 0x01 extra: data Counts weighted cycles of snoopq requests for data 0x02 extra: invalidate Counts weighted cycles of snoopq invalidate requests 0x04 extra: code Counts weighted cycles of snoopq requests for code name:snoop_response type:bitmask default:0x01 0x01 extra: hit Counts HIT snoop response sent by this thread in response to a snoop request 0x02 extra: hite Counts HIT E snoop response sent by this thread in response to a snoop request 0x04 extra: hitm Counts HIT M snoop response sent by this thread in response to a snoop request name:pic_accesses type:bitmask default:0x01 0x01 extra: tpr_reads Counts number of TPR reads 0x02 extra: tpr_writes Counts number of TPR writes name:inst_retired type:bitmask default:0x01 0x01 extra: any_p instructions retired 0x02 extra: x87 Counts the number of floating point computational operations retired: floating point computational operations executed by the assist handler and sub-operations of complex floating point instructions like transcendental instructions name:uops_retired type:bitmask default:0x01 0x01 extra: any Counts the number of micro-ops retired, (macro-fused=1, micro-fused=2, others=1; maximum count of 8 per cycle) 0x02 extra: retire_slots Counts the number of retirement slots used each cycle 0x04 extra: macro_fused Counts number of macro-fused uops retired name:machine_clears type:bitmask default:0x01 0x01 extra: cycles Counts the cycles machine clear is asserted 0x02 extra: mem_order Counts the number of machine clears due to memory order conflicts 0x04 extra: smc Counts the number of times that a program writes to a code section 0x10 extra: fusion_assist Counts the number of macro-fusion assists name:br_inst_retired type:bitmask default:0x00 0x00 extra: all_branches See Table A-1 0x01 extra: conditional Counts the number of conditional branch instructions retired 0x02 extra: near_call Counts the number of direct & indirect near unconditional calls retired 0x04 extra: all_branches Counts the number of branch instructions retired name:br_misp_retired type:bitmask default:0x00 0x00 extra: all_branches See Table A-1 0x02 extra: near_call Counts mispredicted direct & indirect near unconditional retired calls name:ssex_uops_retired type:bitmask default:0x01 0x01 extra: packed_single Counts SIMD packed single-precision floating point Uops retired 0x02 extra: scalar_single Counts SIMD calar single-precision floating point Uops retired 0x04 extra: packed_double Counts SIMD packed double-precision floating point Uops retired 0x08 extra: scalar_double Counts SIMD scalar double-precision floating point Uops retired 0x10 extra: vector_integer Counts 128-bit SIMD vector integer Uops retired name:mem_load_retired type:bitmask default:0x01 0x01 extra: l1d_hit Counts number of retired loads that hit the L1 data cache 0x02 extra: l2_hit Counts number of retired loads that hit the L2 data cache 0x04 extra: llc_unshared_hit Counts number of retired loads that hit their own, unshared lines in the LLC cache 0x08 extra: other_core_l2_hit_hitm Counts number of retired loads that hit in a sibling core's L2 (on die core) 0x10 extra: llc_miss Counts number of retired loads that miss the LLC cache 0x40 extra: hit_lfb Counts number of retired loads that miss the L1D and the address is located in an allocated line fill buffer and will soon be committed to cache 0x80 extra: dtlb_miss Counts the number of retired loads that missed the DTLB name:fp_mmx_trans type:bitmask default:0x03 0x01 extra: to_fp Counts the first floating-point instruction following any MMX instruction 0x02 extra: to_mmx Counts the first MMX instruction following a floating-point instruction 0x03 extra: any Counts all transitions from floating point to MMX instructions and from MMX instructions to floating point instructions name:macro_insts type:mandatory default:0x01 0x01 extra: decoded Counts the number of instructions decoded, (but not necessarily executed or retired) name:uops_decoded type:bitmask default:0x0e 0x02 extra: ms Counts the number of Uops decoded by the Microcode Sequencer, MS 0x04 extra: esp_folding Counts number of stack pointer (ESP) instructions decoded: push , pop , call , ret, etc 0x08 extra: esp_sync Counts number of stack pointer (ESP) sync operations where an ESP instruction is corrected by adding the ESP offset register to the current value of the ESP register name:rat_stalls type:bitmask default:0x0f 0x01 extra: flags Counts the number of cycles during which execution stalled due to several reasons, one of which is a partial flag register stall 0x02 extra: registers This event counts the number of cycles instruction execution latency became longer than the defined latency because the instruction used a register that was partially written by previous instruction 0x04 extra: rob_read_port Counts the number of cycles when ROB read port stalls occurred, which did not allow new micro-ops to enter the out-of-order pipeline 0x08 extra: scoreboard Counts the cycles where we stall due to microarchitecturally required serialization 0x0F any Counts all Register Allocation Table stall cycles due to: Cycles when ROB read port stalls occurred, which did not allow new micro-ops to enter the execution pipe name:baclear type:bitmask default:0x01 0x01 extra: clear Counts the number of times the front end is resteered, mainly when the Branch Prediction Unit cannot provide a correct prediction and this is corrected by the Branch Address Calculator at the front end 0x02 extra: bad_target Counts number of Branch Address Calculator clears (BACLEAR) asserted due to conditional branch instructions in which there was a target hit but the direction was wrong name:bpu_clears type:bitmask default:0x03 0x01 extra: early Counts early (normal) Branch Prediction Unit clears: BPU predicted a taken branch after incorrectly assuming that it was not taken 0x02 extra: late Counts late Branch Prediction Unit clears due to Most Recently Used conflicts 0x03 extra: any Counts all BPU clears name:l2_transactions type:bitmask default:0x80 0x01 extra: load Counts L2 load operations due to HW prefetch or demand loads 0x02 extra: rfo Counts L2 RFO operations due to HW prefetch or demand RFOs 0x04 extra: ifetch Counts L2 instruction fetch operations due to HW prefetch or demand ifetch 0x08 extra: prefetch Counts L2 prefetch operations 0x10 extra: l1d_wb Counts L1D writeback operations to the L2 0x20 extra: fill Counts L2 cache line fill operations due to load, RFO, L1D writeback or prefetch 0x40 extra: wb Counts L2 writeback operations to the LLC 0x80 extra: any Counts all L2 cache operations name:l2_lines_in type:bitmask default:0x07 0x02 extra: s_state Counts the number of cache lines allocated in the L2 cache in the S (shared) state 0x04 extra: e_state Counts the number of cache lines allocated in the L2 cache in the E (exclusive) state 0x07 extra: any Counts the number of cache lines allocated in the L2 cache name:l2_lines_out type:bitmask default:0x0f 0x01 extra: demand_clean Counts L2 clean cache lines evicted by a demand request 0x02 extra: demand_dirty Counts L2 dirty (modified) cache lines evicted by a demand request 0x04 extra: prefetch_clean Counts L2 clean cache line evicted by a prefetch request 0x08 extra: prefetch_dirty Counts L2 modified cache line evicted by a prefetch request 0x0F any Counts all L2 cache lines evicted for any reason name:l2_hw_prefetch type:bitmask default:0x01 0x01 extra: hit Count L2 HW prefetcher detector hits 0x02 extra: alloc Count L2 HW prefetcher allocations 0x04 extra: data_trigger Count L2 HW data prefetcher triggered 0x08 extra: code_trigger Count L2 HW code prefetcher triggered 0x10 extra: dca_trigger Count L2 HW DCA prefetcher triggered 0x20 extra: kick_start Count L2 HW prefetcher kick started name:sq_misc type:bitmask default:0x01 0x01 extra: promotion Counts the number of L2 secondary misses that hit the Super Queue 0x02 extra: promotion_post_go Counts the number of L2 secondary misses during the Super Queue filling L2 0x04 extra: lru_hints Counts number of Super Queue LRU hints sent to L3 0x08 extra: fill_dropped Counts the number of SQ L2 fills dropped due to L2 busy 0x10 extra: split_lock Counts the number of SQ lock splits across a cache line name:fp_assist type:bitmask default:0x01 0x01 extra: all Counts the number of floating point operations executed that required micro-code assist intervention 0x02 extra: output Counts number of floating point micro-code assist when the output value (destination register) is invalid 0x04 extra: input Counts number of floating point micro-code assist when the input value (one of the source operands to an FP instruction) is invalid name:simd_int_64 type:bitmask default:0x01 0x01 extra: packed_mpy Counts number of SID integer 64 bit packed multiply operations 0x02 extra: packed_shift Counts number of SID integer 64 bit packed shift operations 0x04 extra: pack Counts number of SID integer 64 bit pack operations 0x08 extra: unpack Counts number of SID integer 64 bit unpack operations 0x10 extra: packed_logical Counts number of SID integer 64 bit logical operations 0x20 extra: packed_arith Counts number of SID integer 64 bit arithmetic operations 0x40 extra: shuffle_move Counts number of SID integer 64 bit shift or move operations name:x20 type:mandatory default:0x20 0x20 No unit mask oprofile-0.9.9/events/i386/p4-ht/0000775000076400007640000000000012175511556013324 500000000000000oprofile-0.9.9/events/i386/p4-ht/events0000664000076400007640000000461212175510132014463 00000000000000# Pentium IV HyperThreading events # # NOTE: events cannot currently be 0x00 due to event binding checks in # driver # event:0x1d counters:0 um:global_power_events minimum:6000 name:GLOBAL_POWER_EVENTS : time during which processor is not stopped event:0x01 counters:3 um:branch_retired minimum:6000 name:BRANCH_RETIRED : retired branches event:0x02 counters:3 um:mispred_branch_retired minimum:6000 name:MISPRED_BRANCH_RETIRED : retired mispredicted branches event:0x04 counters:0 um:bpu_fetch_request minimum:6000 name:BPU_FETCH_REQUEST : instruction fetch requests from the branch predict unit event:0x05 counters:0 um:itlb_reference minimum:6000 name:ITLB_REFERENCE : translations using the instruction translation lookaside buffer event:0x06 counters:2 um:memory_cancel minimum:6000 name:MEMORY_CANCEL : cancelled requesets in data cache address control unit event:0x07 counters:2 um:memory_complete minimum:6000 name:MEMORY_COMPLETE : completed split event:0x08 counters:2 um:load_port_replay minimum:6000 name:LOAD_PORT_REPLAY : replayed events at the load port event:0x09 counters:2 um:store_port_replay minimum:6000 name:STORE_PORT_REPLAY : replayed events at the store port event:0x0a counters:0 um:mob_load_replay minimum:6000 name:MOB_LOAD_REPLAY : replayed loads from the memory order buffer event:0x0c counters:0 um:bsq_cache_reference minimum:6000 name:BSQ_CACHE_REFERENCE : cache references seen by the bus unit event:0x12 counters:3 um:x87_assist minimum:6000 name:X87_ASSIST : retired x87 instructions which required special handling event:0x1c counters:3 um:machine_clear minimum:6000 name:MACHINE_CLEAR : cycles with entire machine pipeline cleared event:0x1e counters:1 um:tc_ms_xfer minimum:6000 name:TC_MS_XFER : number of times uops deliver changed from TC to MS ROM event:0x1f counters:1 um:uop_queue_writes minimum:6000 name:UOP_QUEUE_WRITES : number of valid uops written to the uop queue event:0x23 counters:3 um:instr_retired minimum:6000 name:INSTR_RETIRED : retired instructions event:0x24 counters:3 um:uops_retired minimum:6000 name:UOPS_RETIRED : retired uops event:0x25 counters:3 um:uop_type minimum:6000 name:UOP_TYPE : type of uop tagged by front-end tagging event:0x26 counters:1 um:branch_type minimum:6000 name:RETIRED_MISPRED_BRANCH_TYPE : retired mispredicted branched, selected by type event:0x27 counters:1 um:branch_type minimum:6000 name:RETIRED_BRANCH_TYPE : retired branches, selected by type oprofile-0.9.9/events/i386/p4-ht/unit_masks0000664000076400007640000000632012175510132015332 00000000000000# Pentium IV HyperThreading possible unit masks # name:branch_retired type:bitmask default:0x0c 0x01 branch not-taken predicted 0x02 branch not-taken mispredicted 0x04 branch taken predicted 0x08 branch taken mispredicted name:mispred_branch_retired type:bitmask default:0x01 0x01 retired instruction is non-bogus # FIXME: 0 count nothing, 0xff count more than 0x01, docs says it's a bitmask: # something wrong in documentation ? name:bpu_fetch_request type:bitmask default:0x01 0x01 trace cache lookup miss name:itlb_reference type:bitmask default:0x07 0x01 ITLB hit 0x02 ITLB miss 0x04 uncacheable ITLB hit name:memory_cancel type:bitmask default:0x08 0x04 replayed because no store request buffer available 0x08 conflicts due to 64k aliasing name:memory_complete type:bitmask default:0x03 0x01 load split completed, excluding UC/WC loads 0x02 any split stores completed 0x04 uncacheable load split completed 0x08 uncacheable store split complete name:load_port_replay type:mandatory default:0x02 0x02 split load name:store_port_replay type:mandatory default:0x02 0x02 split store name:mob_load_replay type:bitmask default:0x3a 0x02 replay cause: unknown store address 0x08 replay cause: unknown store data 0x10 replay cause: partial overlap between load and store 0x20 replay cause: mismatched low 4 bits between load and store addr name:bsq_cache_reference type:bitmask default:0x073f 0x01 read 2nd level cache hit shared 0x02 read 2nd level cache hit exclusive 0x04 read 2nd level cache hit modified 0x08 read 3rd level cache hit shared 0x10 read 3rd level cache hit exclusive 0x20 read 3rd level cache hit modified 0x100 read 2nd level cache miss 0x200 read 3rd level cache miss 0x400 writeback lookup from DAC misses 2nd level cache name:x87_assist type:bitmask default:0x1f 0x01 handle FP stack underflow 0x02 handle FP stack overflow 0x04 handle x87 output overflow 0x08 handle x87 output underflow 0x10 handle x87 input assist name:machine_clear type:bitmask default:0x01 0x01 count a portion of cycles the machine is cleared for any cause 0x04 count each time the machine is cleared due to memory ordering issues 0x40 count each time the machine is cleared due to self modifying code name:global_power_events type:mandatory default:0x01 0x01 mandatory name:tc_ms_xfer type:mandatory default:0x01 0x01 count TC to MS transfers name:uop_queue_writes type:bitmask default:0x07 0x01 count uops written to queue from TC build mode 0x02 count uops written to queue from TC deliver mode 0x04 count uops written to queue from microcode ROM name:instr_retired type:bitmask default:0x01 0x01 count non-bogus instructions which are not tagged 0x02 count non-bogus instructions which are tagged 0x04 count bogus instructions which are not tagged 0x08 count bogus instructions which are tagged name:uops_retired type:bitmask default:0x01 0x01 count marked uops which are non-bogus 0x02 count marked uops which are bogus name:uop_type type:bitmask default:0x02 0x02 count uops which are load operations 0x04 count uops which are store operations name:branch_type type:bitmask default:0x1f 0x01 count unconditional jumps 0x02 count conditional jumps 0x04 count call branches 0x08 count return branches 0x10 count indirect jumps oprofile-0.9.9/events/i386/atom/0000775000076400007640000000000012175511556013330 500000000000000oprofile-0.9.9/events/i386/atom/events0000664000076400007640000001674612175510132014502 00000000000000# # Intel Atom (Silverthorne) events # # architectural perfmon events event:0x3c counters:0,1 um:cpu_clk_unhalted minimum:6000 name:CPU_CLK_UNHALTED : Clock cycles when not halted event:0x3c counters:0,1 um:one minimum:6000 name:UNHALTED_REFERENCE_CYCLES : Unhalted reference cycles event:0xc0 counters:0,1 um:one minimum:6000 name:INST_RETIRED : number of instructions retired event:0x2e counters:0,1 um:x41 minimum:6000 name:LLC_MISSES : Last level cache demand requests from this core that missed the LLC event:0x2e counters:0,1 um:x4f minimum:6000 name:LLC_REFS : Last level cache demand requests from this core event:0xc4 counters:0,1 um:br_inst_retired minimum:500 name:BR_INST_RETIRED : number of branch instructions retired event:0xc5 counters:0,1 um:zero minimum:500 name:BR_MISS_PRED_RETIRED : number of mispredicted branches retired (precise) # event:0x02 counters:0,1 um:store_forwards minimum:6000 name:STORE_FORWARDS : Good store forwards event:0x06 counters:0,1 um:segment_reg_loads minimum:6000 name:SEGMENT_REG_LOADS : Number of segment register loads event:0x07 counters:0,1 um:simd_prefetch minimum:6000 name:PREFETCH : Streaming SIMD Extensions (SSE) Prefetch instructions executed event:0x08 counters:0,1 um:data_tlb_misses minimum:6000 name:DATA_TLB_MISSES : Memory accesses that missed the DTLB event:0x0C counters:0,1 um:page_walks minimum:6000 name:PAGE_WALKS : Page walks event:0x10 counters:0,1 um:x87_comp_ops_exe minimum:6000 name:X87_COMP_OPS_EXE : Floating point computational micro-ops event:0x11 counters:0,1 um:fp_assist minimum:6000 name:FP_ASSIST : Floating point assists event:0x12 counters:0,1 um:mul minimum:6000 name:MUL : Multiply operations event:0x13 counters:0,1 um:div minimum:6000 name:DIV : Divide operations event:0x14 counters:0,1 um:one minimum:6000 name:CYCLES_DIV_BUSY : Cycles the driver is busy event:0x21 counters:0,1 um:core minimum:6000 name:CORE : Cycles L2 address bus is in use event:0x22 counters:0,1 um:core minimum:6000 name:L2_DBUS_BUSY : Cycles the L2 cache data bus is busy event:0x24 counters:0,1 um:core,prefetch minimum:500 name:L2_LINES_IN : L2 cache misses event:0x25 counters:0,1 um:core minimum:500 name:L2_M_LINES_IN : L2 cache line modifications event:0x26 counters:0,1 um:core,prefetch minimum:500 name:L2_LINES_OUT : L2 cache lines evicted event:0x27 counters:0,1 um:core,prefetch minimum:500 name:L2_M_LINES_OUT : Modified lines evicted from the L2 cache event:0x28 counters:0,1 um:core,mesi minimum:6000 name:L2_IFETCH : L2 cacheable instruction fetch requests event:0x29 counters:0,1 um:core,prefetch,mesi minimum:6000 name:L2_LD : L2 cache reads event:0x2A counters:0,1 um:core,mesi minimum:6000 name:L2_ST : L2 store requests event:0x2B counters:0,1 um:core,mesi minimum:6000 name:L2_LOCK : L2 locked accesses event:0x2E counters:0,1 um:l2_rqsts,core,prefetch,mesi minimum:6000 name:L2_RQSTS : L2 cache requests event:0x30 counters:0,1 um:core,prefetch,mesi minimum:500 name:L2_REJECT_BUSQ : Rejected L2 cache requests event:0x32 counters:0,1 um:core minimum:6000 name:L2_NO_REQ : Cycles no L2 cache requests are pending event:0x3A counters:0,1 um:zero minimum:6000 name:EIST_TRANS : Number of Enhanced Intel SpeedStep(R) Technology (EIST) transitions event:0x3B counters:0,1 um:thermal_trip minimum:6000 name:THERMAL_TRIP : Number of thermal trips event:0x40 counters:0,1 um:l1d_cache minimum:6000 name:L1D_CACHE : L1d Cache accesses event:0x60 counters:0,1 um:core,agent minimum:6000 name:BUS_REQUEST_OUTSTANDING : Outstanding cacheable data read bus requests duration event:0x61 counters:0,1 um:agent minimum:6000 name:BUS_BNR_DRV : Number of Bus Not Ready signals asserted event:0x62 counters:0,1 um:agent minimum:6000 name:BUS_DRDY_CLOCKS : Bus cycles when data is sent on the bus event:0x63 counters:0,1 um:core,agent minimum:6000 name:BUS_LOCK_CLOCKS : Bus cycles when a LOCK signal is asserted. event:0x64 counters:0,1 um:core minimum:6000 name:BUS_DATA_RCV : Bus cycles while processor receives data event:0x65 counters:0,1 um:core,agent minimum:500 name:BUS_TRANS_BRD : Burst read bus transactions event:0x66 counters:0,1 um:core,agent minimum:500 name:BUS_TRANS_RFO : RFO bus transactions event:0x67 counters:0,1 um:core,agent minimum:500 name:BUS_TRANS_WB : Explicit writeback bus transactions event:0x68 counters:0,1 um:core,agent minimum:500 name:BUS_TRANS_IFETCH : Instruction-fetch bus transactions. event:0x69 counters:0,1 um:core,agent minimum:500 name:BUS_TRANS_INVAL : Invalidate bus transactions event:0x6A counters:0,1 um:core,agent minimum:500 name:BUS_TRANS_PWR : Partial write bus transaction. event:0x6B counters:0,1 um:core,agent minimum:500 name:BUS_TRANS_P : Partial bus transactions event:0x6C counters:0,1 um:core,agent minimum:500 name:BUS_TRANS_IO : IO bus transactions event:0x6D counters:0,1 um:core,agent minimum:500 name:BUS_TRANS_DEF : Deferred bus transactions event:0x6E counters:0,1 um:core,agent minimum:500 name:BUS_TRANS_BURST : Burst (full cache-line) bus transactions. event:0x6F counters:0,1 um:core,agent minimum:500 name:BUS_TRANS_MEM : Memory bus transactions event:0x70 counters:0,1 um:core,agent minimum:500 name:BUS_TRANS_ANY : All bus transactions event:0x77 counters:0,1 um:core,mesi minimum:500 name:EXT_SNOOP : External snoops event:0x7A counters:0,1 um:agent minimum:500 name:BUS_HIT_DRV : HIT signal asserted event:0x7B counters:0,1 um:agent minimum:500 name:BUS_HITM_DRV : HITM signal asserted event:0x7D counters:0,1 um:core minimum:500 name:BUSQ_EMPTY : Bus queue is empty event:0x7E counters:0,1 um:core,agent minimum:6000 name:SNOOP_STALL_DRV : Bus stalled for snoops event:0x7F counters:0,1 um:core minimum:6000 name:BUS_IO_WAIT : IO requests waiting in the bus queue event:0x80 counters:0,1 um:icache minimum:6000 name:ICACHE : Instruction cache accesses event:0x82 counters:0,1 um:itlb minimum:6000 name:ITLB : ITLB events event:0xAA counters:0,1 um:macro_insts minimum:6000 name:MACRO_INSTS : instructions decoded event:0xB0 counters:0,1 um:simd_uops_exec minimum:6000 name:SIMD_UOPS_EXEC : SIMD micro-ops executed event:0xB1 counters:0,1 um:simd_sat_uop_exec minimum:6000 name:SIMD_SAT_UOP_EXEC : SIMD saturated arithmetic micro-ops executed event:0xB3 counters:0,1 um:simd_uop_type_exec minimum:6000 name:SIMD_UOP_TYPE_EXEC : SIMD packed microops executed event:0xC2 counters:0,1 um:uops_retired minimum:6000 name:UOPS_RETIRED : Micro-ops retired event:0xC3 counters:0,1 um:one minimum:6000 name:MACHINE_CLEARS : Self-Modifying Code detected event:0xC6 counters:0,1 um:cycles_int_masked minimum:6000 name:CYCLES_INT_MASKED : Cycles during which interrupts are disabled event:0xC7 counters:0,1 um:simd_inst_retired minimum:6000 name:SIMD_INST_RETIRED : Retired Streaming SIMD Extensions (SSE) instructions event:0xC8 counters:0,1 um:zero minimum:6000 name:HW_INT_RCV : Hardware interrupts received event:0xCA counters:0,1 um:simd_comp_inst_retired minimum:6000 name:SIMD_COMP_INST_RETIRED : Retired computational Streaming SIMD Extensions (SSE) instructions. event:0xCB counters:0,1 um:mem_load_retired minimum:6000 name:MEM_LOAD_RETIRED : Retired loads event:0xCD counters:0,1 um:zero minimum:6000 name:SIMD_ASSIST : SIMD assists invoked event:0xCE counters:0,1 um:zero minimum:6000 name:SIMD_INSTR_RETIRED : SIMD Instructions retired event:0xCF counters:0,1 um:zero minimum:6000 name:SIMD_SAT_INSTR_RETIRED : Saturated arithmetic instructions retired event:0xE0 counters:0,1 um:zero minimum:6000 name:BR_INST_DECODED : Branch instructions decoded event:0xE4 counters:0,1 um:zero minimum:6000 name:BOGUS_BR : Bogus branches event:0xE6 counters:0,1 um:one minimum:6000 name:BACLEARS : BACLEARS asserted oprofile-0.9.9/events/i386/atom/unit_masks0000664000076400007640000001424512175510132015343 00000000000000# # Intel Atom (Silverthorne) unit masks # include:i386/arch_perfmon name:store_forwards type:mandatory default:0x81 0x81 extra: good Good store forwards name:segment_reg_loads type:mandatory default:0x00 0x00 extra: any Number of segment register loads name:simd_prefetch type:bitmask default:0x01 0x01 extra: prefetcht0 Streaming SIMD Extensions (SSE) PrefetchT0 instructions executed 0x06 extra: sw_l2 Streaming SIMD Extensions (SSE) PrefetchT1 and PrefetchT2 instructions executed 0x08 extra: prefetchnta Streaming SIMD Extensions (SSE) Prefetch NTA instructions executed name:data_tlb_misses type:bitmask default:0x07 0x07 extra: dtlb_miss Memory accesses that missed the DTLB 0x05 extra: dtlb_miss_ld DTLB misses due to load operations 0x09 extra: l0_dtlb_miss_ld L0_DTLB misses due to load operations 0x06 extra: dtlb_miss_st DTLB misses due to store operations name:page_walks type:bitmask default:0x03 0x03 extra: walks Number of page-walks executed 0x03 extra: cycles Duration of page-walks in core cycles name:x87_comp_ops_exe type:bitmask default:0x81 0x01 extra: s Floating point computational micro-ops executed 0x81 extra: ar Floating point computational micro-ops retired name:fp_assist type:mandatory default:0x81 0x81 extra: ar Floating point assists name:mul type:bitmask default:0x01 0x01 extra: s Multiply operations executed 0x81 extra: ar Multiply operations retired name:div type:bitmask default:0x01 0x01 extra: s Divide operations executed 0x81 extra: ar Divide operations retired name:l2_rqsts type:bitmask default:0x41 0x41 extra: i_state L2 cache demand requests from this core that missed the L2 0x4F mesi L2 cache demand requests from this core name:cpu_clk_unhalted type:bitmask default:0x00 0x00 extra: core_p Core cycles when core is not halted 0x01 extra: bus Bus cycles when core is not halted 0x02 extra: no_other Bus cycles when core is active and the other is halted name:l1d_cache type:bitmask default:0x21 0x21 extra: ld L1 Cacheable Data Reads 0x22 extra: st L1 Cacheable Data Writes name:icache type:bitmask default:0x03 0x03 extra: accesses Instruction fetches 0x02 extra: misses Icache miss name:itlb type:bitmask default:0x04 0x04 extra: flush ITLB flushes 0x02 extra: misses ITLB misses name:macro_insts type:exclusive default:0x03 0x02 extra: cisc_decoded CISC macro instructions decoded 0x03 extra: all_decoded All Instructions decoded name:simd_uops_exec type:exclusive default:0x80 0x00 extra: s SIMD micro-ops executed (excluding stores) 0x80 extra: ar SIMD micro-ops retired (excluding stores) name:simd_sat_uop_exec type:bitmask default:0x00 0x00 extra: s SIMD saturated arithmetic micro-ops executed 0x80 extra: ar SIMD saturated arithmetic micro-ops retired name:simd_uop_type_exec type:bitmask default:0x01 0x01 extra: s SIMD packed multiply microops executed 0x81 extra: ar SIMD packed multiply microops retired 0x02 extra: s SIMD packed shift micro-ops executed 0x82 extra: ar SIMD packed shift micro-ops retired 0x04 extra: s SIMD pack micro-ops executed 0x84 extra: ar SIMD pack micro-ops retired 0x08 extra: s SIMD unpack micro-ops executed 0x88 extra: ar SIMD unpack micro-ops retired 0x10 extra: s SIMD packed logical microops executed 0x90 extra: ar SIMD packed logical microops retired 0x20 extra: s SIMD packed arithmetic micro-ops executed 0xA0 ar SIMD packed arithmetic micro-ops retired name:uops_retired type:mandatory default:0x10 0x10 extra: any Micro-ops retired name:br_inst_retired type:bitmask default:0x00 0x00 extra: any Retired branch instructions 0x01 extra: pred_not_taken Retired branch instructions that were predicted not-taken 0x02 extra: mispred_not_taken Retired branch instructions that were mispredicted not-taken 0x04 extra: pred_taken Retired branch instructions that were predicted taken 0x08 extra: mispred_taken Retired branch instructions that were mispredicted taken 0x0A mispred Retired mispredicted branch instructions (precise event) 0x0C taken Retired taken branch instructions 0x0F any1 Retired branch instructions name:cycles_int_masked type:bitmask default:0x01 0x01 extra: cycles_int_masked Cycles during which interrupts are disabled 0x02 extra: cycles_int_pending_and_masked Cycles during which interrupts are pending and disabled name:simd_inst_retired type:bitmask default:0x01 0x01 extra: packed_single Retired Streaming SIMD Extensions (SSE) packed-single instructions 0x02 extra: scalar_single Retired Streaming SIMD Extensions (SSE) scalar-single instructions 0x04 extra: packed_double Retired Streaming SIMD Extensions 2 (SSE2) packed-double instructions 0x08 extra: scalar_double Retired Streaming SIMD Extensions 2 (SSE2) scalar-double instructions 0x10 extra: vector Retired Streaming SIMD Extensions 2 (SSE2) vector instructions 0x1F any Retired Streaming SIMD instructions name:simd_comp_inst_retired type:bitmask default:0x01 0x01 extra: packed_single Retired computational Streaming SIMD Extensions (SSE) packed-single instructions 0x02 extra: scalar_single Retired computational Streaming SIMD Extensions (SSE) scalar-single instructions 0x04 extra: packed_double Retired computational Streaming SIMD Extensions 2 (SSE2) packed-double instructions 0x08 extra: scalar_double Retired computational Streaming SIMD Extensions 2 (SSE2) scalar-double instructions name:mem_load_retired type:bitmask default:0x01 0x01 extra: l2_hit Retired loads that hit the L2 cache (precise event) 0x02 extra: l2_miss Retired loads that miss the L2 cache (precise event) 0x04 extra: dtlb_miss Retired loads that miss the DTLB (precise event) name:thermal_trip type:mandatory default:0xc0 0xc0 extra: thermal_trip Number of thermal trips. # 18-11 name:core type:bitmask default:0x180 0x180 extra: all All cores. 0x080 extra: this This Core. # 18-12 name:agent type:bitmask default:0x00 0x00 extra: this This agent 0x40 extra: any Include any agents # 18-13 name:prefetch type:bitmask default:0x60 0x60 extra: all All inclusive 0x20 extra: hw Hardware prefetch only 0x00 extra: exclude_hw Exclude hardware prefetch # 18-14 name:mesi type:bitmask default:0x0f 0x08 extra: modified Counts modified state 0x04 extra: exclusive Counts exclusive state 0x02 extra: shared Counts shared state 0x01 extra: invalid Counts invalid state oprofile-0.9.9/events/i386/haswell/0000775000076400007640000000000012175511556014027 500000000000000oprofile-0.9.9/events/i386/haswell/events0000664000076400007640000001346512175510132015174 00000000000000# # Intel "Haswell" microarchitecture core events. # # See http://ark.intel.com/ for help in identifying Haswell based CPUs # # Note the minimum counts are not discovered experimentally and could be likely # lowered in many cases without ill effect. # include:i386/arch_perfmon event:0x03 counters:cpuid um:x02 minimum:100003 name:ld_blocks_store_forward : Cases when loads get true Block-on-Store blocking code preventing store forwarding event:0x05 counters:cpuid um:misalign_mem_ref minimum:2000003 name:misalign_mem_ref : misalign_mem_ref event:0x07 counters:cpuid um:one minimum:100003 name:ld_blocks_partial_address_alias : False dependencies in MOB due to partial address comparison event:0x08 counters:cpuid um:dtlb_load_misses minimum:2000003 name:dtlb_load_misses : dtlb_load_misses event:0x0d counters:cpuid um:x03 minimum:2000003 name:int_misc_recovery_cycles : Number of cycles waiting for the checkpoints in Resource Allocation Table (RAT) to be recovered after Nuke due to all other cases except JEClear (e.g. whenever a ucode assist is needed like SSE exception, memory disambiguation, etc...) event:0x0e counters:cpuid um:uops_issued minimum:2000003 name:uops_issued : uops_issued event:0x24 counters:cpuid um:l2_rqsts minimum:200003 name:l2_rqsts : l2_rqsts event:0x27 counters:cpuid um:x50 minimum:200003 name:l2_demand_rqsts_wb_hit : Not rejected writebacks that hit L2 cache event:0x48 counters:2 um:l1d_pend_miss minimum:2000003 name:l1d_pend_miss : l1d_pend_miss event:0x49 counters:cpuid um:dtlb_store_misses minimum:100003 name:dtlb_store_misses : dtlb_store_misses event:0x4c counters:cpuid um:load_hit_pre minimum:100003 name:load_hit_pre : load_hit_pre event:0x51 counters:cpuid um:one minimum:2000003 name:l1d_replacement : L1D data line replacements event:0x54 counters:cpuid um:tx_mem minimum:2000003 name:tx_mem : tx_mem event:0x58 counters:cpuid um:move_elimination minimum:1000003 name:move_elimination : move_elimination event:0x5c counters:cpuid um:cpl_cycles minimum:2000003 name:cpl_cycles : cpl_cycles event:0x5d counters:cpuid um:tx_exec minimum:2000003 name:tx_exec : tx_exec event:0x5e counters:cpuid um:one minimum:2000003 name:rs_events_empty_cycles : Cycles when Reservation Station (RS) is empty for the thread event:0x63 counters:cpuid um:lock_cycles minimum:2000003 name:lock_cycles : lock_cycles event:0x79 counters:0,1,2,3 um:idq minimum:2000003 name:idq : idq event:0x80 counters:cpuid um:x02 minimum:200003 name:icache_misses : Number of Instruction Cache, Streaming Buffer and Victim Cache Misses. Includes Uncacheable accesses. event:0x85 counters:cpuid um:itlb_misses minimum:100003 name:itlb_misses : itlb_misses event:0x87 counters:cpuid um:ild_stall minimum:2000003 name:ild_stall : ild_stall event:0x88 counters:cpuid um:br_inst_exec minimum:200003 name:br_inst_exec : br_inst_exec event:0x89 counters:cpuid um:br_misp_exec minimum:200003 name:br_misp_exec : br_misp_exec event:0x9c counters:0,1,2,3 um:idq_uops_not_delivered minimum:2000003 name:idq_uops_not_delivered : idq_uops_not_delivered event:0xa1 counters:cpuid um:uops_executed_port minimum:2000003 name:uops_executed_port : uops_executed_port event:0xa2 counters:cpuid um:resource_stalls minimum:2000003 name:resource_stalls : resource_stalls event:0xa3 counters:2 um:cycle_activity minimum:2000003 name:cycle_activity : cycle_activity event:0xae counters:cpuid um:one minimum:100007 name:itlb_itlb_flush : Flushing of the Instruction TLB (ITLB) pages, includes 4k/2M/4M pages. event:0xb0 counters:cpuid um:offcore_requests minimum:100003 name:offcore_requests : offcore_requests event:0xb1 counters:cpuid um:uops_executed minimum:2000003 name:uops_executed : uops_executed event:0xbc counters:0,1,2,3 um:page_walker_loads minimum:2000003 name:page_walker_loads : page_walker_loads event:0xbd counters:cpuid um:tlb_flush minimum:100007 name:tlb_flush : tlb_flush event:0xc0 counters:1 um:one minimum:2000003 name:inst_retired_prec_dist : Precise instruction retired event with HW to reduce effect of PEBS shadow in IP distribution event:0xc1 counters:cpuid um:other_assists minimum:100003 name:other_assists : other_assists event:0xc2 counters:cpuid um:uops_retired minimum:2000003 name:uops_retired : uops_retired event:0xc3 counters:cpuid um:machine_clears minimum:100003 name:machine_clears : machine_clears event:0xc4 counters:cpuid um:br_inst_retired minimum:400009 name:br_inst_retired : br_inst_retired event:0xc5 counters:cpuid um:br_misp_retired minimum:400009 name:br_misp_retired : br_misp_retired event:0xc8 counters:cpuid um:hle_retired minimum:2000003 name:hle_retired : hle_retired event:0xc9 counters:cpuid um:rtm_retired minimum:2000003 name:rtm_retired : rtm_retired event:0xca counters:cpuid um:fp_assist minimum:100003 name:fp_assist : fp_assist event:0xcc counters:cpuid um:x20 minimum:2000003 name:rob_misc_events_lbr_inserts : Count cases of saving new LBR event:0xd0 counters:0,1,2,3 um:mem_uops_retired minimum:2000003 name:mem_uops_retired : mem_uops_retired event:0xd1 counters:0,1,2,3 um:mem_load_uops_retired minimum:2000003 name:mem_load_uops_retired : mem_load_uops_retired event:0xd2 counters:0,1,2,3 um:mem_load_uops_l3_hit_retired minimum:100003 name:mem_load_uops_l3_hit_retired : mem_load_uops_l3_hit_retired event:0xd3 counters:0,1,2,3 um:one minimum:100007 name:mem_load_uops_l3_miss_retired_local_dram : Data from local DRAM either Snoop not needed or Snoop Miss (RspI) event:0xe6 counters:cpuid um:x1f minimum:100003 name:baclears_any : Counts the total number when the front end is resteered, mainly when the BPU cannot provide a correct prediction and this is corrected by other branch handling mechanisms at the front end. event:0xf0 counters:cpuid um:l2_trans minimum:200003 name:l2_trans : l2_trans event:0xf1 counters:cpuid um:l2_lines_in minimum:100003 name:l2_lines_in : l2_lines_in event:0xf2 counters:cpuid um:l2_lines_out minimum:100003 name:l2_lines_out : l2_lines_out oprofile-0.9.9/events/i386/haswell/unit_masks0000664000076400007640000006401612175510132016043 00000000000000# # Unit masks for the Intel "Haswell" micro architecture # # See http://ark.intel.com/ for help in identifying Haswell based CPUs # include:i386/arch_perfmon name:x02 type:mandatory default:0x2 0x2 No unit mask name:x03 type:mandatory default:0x3 0x3 No unit mask name:x1f type:mandatory default:0x1f 0x1f No unit mask name:x20 type:mandatory default:0x20 0x20 No unit mask name:x50 type:mandatory default:0x50 0x50 No unit mask name:misalign_mem_ref type:exclusive default:0x1 0x1 extra: loads Speculative cache line split load uops dispatched to L1 cache 0x2 extra: stores Speculative cache line split STA uops dispatched to L1 cache name:dtlb_load_misses type:exclusive default:0x1 0x1 extra: miss_causes_a_walk Load misses in all DTLB levels that cause page walks 0xe extra: walk_completed Demand load Miss in all translation lookaside buffer (TLB) levels causes a page walk that completes of any page size. 0x2 extra: walk_completed_4k Demand load Miss in all translation lookaside buffer (TLB) levels causes a page walk that completes (4K). 0x4 extra: walk_completed_2m_4m Demand load Miss in all translation lookaside buffer (TLB) levels causes a page walk that completes (2M/4M). 0x10 extra: walk_duration Cycles when PMH is busy with page walks 0x60 extra: stlb_hit Load operations that miss the first DTLB level but hit the second and do not cause page walks 0x20 extra: stlb_hit_4k Load misses that miss the DTLB and hit the STLB (4K) 0x40 extra: stlb_hit_2m Load misses that miss the DTLB and hit the STLB (2M) 0x80 extra: pde_cache_miss DTLB demand load misses with low part of linear-to-physical address translation missed name:uops_issued type:exclusive default:any 0x1 extra: any Uops that Resource Allocation Table (RAT) issues to Reservation Station (RS) 0x10 extra: flags_merge Number of flags-merge uops being allocated. Such uops considered perf sensitive; added by GSR u-arch. 0x20 extra: slow_lea Number of slow LEA uops being allocated. A uop is generally considered SlowLea if it has 3 sources (e.g. 2 sources + immediate) regardless if as a result of LEA instruction or not. 0x40 extra: single_mul Number of Multiply packed/scalar single precision uops allocated 0x1 extra:cmask=1,inv stall_cycles Cycles when Resource Allocation Table (RAT) does not issue Uops to Reservation Station (RS) for the thread 0x1 extra:cmask=1,inv,any core_stall_cycles Cycles when Resource Allocation Table (RAT) does not issue Uops to Reservation Station (RS) for all threads name:l2_rqsts type:exclusive default:0x21 0x21 extra: demand_data_rd_miss Demand Data Read miss L2, no rejects 0x41 extra: demand_data_rd_hit Demand Data Read requests that hit L2 cache 0x30 extra: l2_pf_miss L2 prefetch requests that miss L2 cache 0x50 extra: l2_pf_hit L2 prefetch requests that hit L2 cache 0xe1 extra: all_demand_data_rd Demand Data Read requests 0xe2 extra: all_rfo RFO requests to L2 cache 0xe4 extra: all_code_rd L2 code requests 0xf8 extra: all_pf Requests from L2 hardware prefetchers 0x42 extra: rfo_hit RFO requests that hit L2 cache 0x22 extra: rfo_miss RFO requests that miss L2 cache 0x44 extra: code_rd_hit L2 cache hits when fetching instructions, code reads. 0x24 extra: code_rd_miss L2 cache misses when fetching instructions 0x27 extra: all_demand_miss Demand requests that miss L2 cache 0xe7 extra: all_demand_references Demand requests to L2 cache 0x3f extra: miss All requests that miss L2 cache 0xff extra: references All L2 requests name:l1d_pend_miss type:exclusive default:pending 0x1 extra: pending L1D miss oustandings duration in cycles 0x1 extra:cmask=1 pending_cycles Cycles with L1D load Misses outstanding. 0x1 extra:cmask=1,edge occurences This event counts the number of L1D misses outstanding, using an edge detect to count transitions. name:dtlb_store_misses type:exclusive default:0x1 0x1 extra: miss_causes_a_walk Store misses in all DTLB levels that cause page walks 0xe extra: walk_completed Store misses in all DTLB levels that cause completed page walks 0x2 extra: walk_completed_4k Store miss in all TLB levels causes a page walk that completes. (4K) 0x4 extra: walk_completed_2m_4m Store misses in all DTLB levels that cause completed page walks (2M/4M) 0x10 extra: walk_duration Cycles when PMH is busy with page walks 0x60 extra: stlb_hit Store operations that miss the first TLB level but hit the second and do not cause page walks 0x20 extra: stlb_hit_4k Store misses that miss the DTLB and hit the STLB (4K) 0x40 extra: stlb_hit_2m Store misses that miss the DTLB and hit the STLB (2M) 0x80 extra: pde_cache_miss DTLB store misses with low part of linear-to-physical address translation missed name:load_hit_pre type:exclusive default:0x1 0x1 extra: sw_pf Not software-prefetch load dispatches that hit FB allocated for software prefetch 0x2 extra: hw_pf Not software-prefetch load dispatches that hit FB allocated for hardware prefetch name:tx_mem type:exclusive default:0x1 0x1 extra: abort_conflict Number of times a transactional abort was signaled due to a data conflict on a transactionally accessed address 0x2 extra: abort_capacity Number of times a transactional abort was signaled due to a data capacity limitation 0x4 extra: abort_hle_store_to_elided_lock Number of times a HLE transactional region aborted due to a non XRELEASE prefixed instruction writing to an elided lock in the elision buffer 0x8 extra: abort_hle_elision_buffer_not_empty Number of times an HLE transactional execution aborted due to NoAllocatedElisionBuffer being non-zero. 0x10 extra: abort_hle_elision_buffer_mismatch Number of times an HLE transactional execution aborted due to XRELEASE lock not satisfying the address and value requirements in the elision buffer. 0x20 extra: abort_hle_elision_buffer_unsupported_alignment Number of times an HLE transactional execution aborted due to an unsupported read alignment from the elision buffer. 0x40 extra: abort_hle_elision_buffer_full Number of times HLE lock could not be elided due to ElisionBufferAvailable being zero. name:move_elimination type:exclusive default:0x1 0x1 extra: int_eliminated Number of integer Move Elimination candidate uops that were eliminated. 0x2 extra: simd_eliminated Number of SIMD Move Elimination candidate uops that were eliminated. 0x4 extra: int_not_eliminated Number of integer Move Elimination candidate uops that were not eliminated. 0x8 extra: simd_not_eliminated Number of SIMD Move Elimination candidate uops that were not eliminated. name:cpl_cycles type:exclusive default:ring0 0x1 extra: ring0 Unhalted core cycles when the thread is in ring 0 0x2 extra: ring123 Unhalted core cycles when thread is in rings 1, 2, or 3 0x1 extra:cmask=1,edge ring0_trans Number of intervals between processor halts while thread is in ring 0 name:tx_exec type:exclusive default:0x1 0x1 extra: misc1 Counts the number of times a class of instructions that may cause a transactional abort was executed. Since this is the count of execution it may not always cause a transactional abort. 0x2 extra: misc2 Counts the number of times a class of instructions that may cause a transactional abort was executed inside a transactional region 0x4 extra: misc3 Counts the number of times an instruction execution caused the nest count supported to be exceeded 0x8 extra: misc4 Counts the number of times an HLE XACQUIRE instruction was executed inside an RTM transactional region name:lock_cycles type:exclusive default:0x1 0x1 extra: split_lock_uc_lock_duration Cycles when L1 and L2 are locked due to UC or split lock 0x2 extra: cache_lock_duration Cycles when L1D is locked name:idq type:exclusive default:0x2 0x2 extra: empty Instruction Decode Queue (IDQ) empty cycles 0x4 extra: mite_uops Uops delivered to Instruction Decode Queue (IDQ) from MITE path 0x8 extra: dsb_uops Uops delivered to Instruction Decode Queue (IDQ) from the Decode Stream Buffer (DSB) path 0x10 extra: ms_dsb_uops Uops initiated by Decode Stream Buffer (DSB) that are being delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy 0x20 extra: ms_mite_uops Uops initiated by MITE and delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy 0x30 extra: ms_uops Uops delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy 0x30 extra:cmask=1 ms_cycles Cycles when uops are being delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy 0x4 extra:cmask=1 mite_cycles Cycles when uops are being delivered to Instruction Decode Queue (IDQ) from MITE path 0x8 extra:cmask=1 dsb_cycles Cycles when uops are being delivered to Instruction Decode Queue (IDQ) from Decode Stream Buffer (DSB) path 0x10 extra:cmask=1 ms_dsb_cycles Cycles when uops initiated by Decode Stream Buffer (DSB) are being delivered to Instruction Decode Queue (IDQ) while Microcode Sequenser (MS) is busy 0x10 extra:cmask=1,edge ms_dsb_occur Deliveries to Instruction Decode Queue (IDQ) initiated by Decode Stream Buffer (DSB) while Microcode Sequenser (MS) is busy 0x18 extra:cmask=4 all_dsb_cycles_4_uops Cycles Decode Stream Buffer (DSB) is delivering 4 Uops 0x18 extra:cmask=1 all_dsb_cycles_any_uops Cycles Decode Stream Buffer (DSB) is delivering any Uop 0x24 extra:cmask=4 all_mite_cycles_4_uops Cycles MITE is delivering 4 Uops 0x24 extra:cmask=1 all_mite_cycles_any_uops Cycles MITE is delivering any Uop 0x3c extra: mite_all_uops Uops delivered to Instruction Decode Queue (IDQ) from MITE path name:itlb_misses type:exclusive default:0x1 0x1 extra: miss_causes_a_walk Misses at all ITLB levels that cause page walks 0xe extra: walk_completed Misses in all ITLB levels that cause completed page walks 0x2 extra: walk_completed_4k Code miss in all TLB levels causes a page walk that completes. (4K) 0x4 extra: walk_completed_2m_4m Code miss in all TLB levels causes a page walk that completes. (2M/4M) 0x10 extra: walk_duration Cycles when PMH is busy with page walks 0x60 extra: stlb_hit Operations that miss the first ITLB level but hit the second and do not cause any page walks 0x20 extra: stlb_hit_4k Core misses that miss the DTLB and hit the STLB (4K) 0x40 extra: stlb_hit_2m Code misses that miss the DTLB and hit the STLB (2M) name:ild_stall type:exclusive default:0x1 0x1 extra: lcp Stalls caused by changing prefix length of the instruction. 0x4 extra: iq_full Stall cycles because IQ is full name:br_inst_exec type:exclusive default:0xff 0xff extra: all_branches Speculative and retired branches 0x41 extra: nontaken_conditional Not taken macro-conditional branches 0x81 extra: taken_conditional Taken speculative and retired macro-conditional branches 0x82 extra: taken_direct_jump Taken speculative and retired macro-conditional branch instructions excluding calls and indirects 0x84 extra: taken_indirect_jump_non_call_ret Taken speculative and retired indirect branches excluding calls and returns 0x88 extra: taken_indirect_near_return Taken speculative and retired indirect branches with return mnemonic 0x90 extra: taken_direct_near_call Taken speculative and retired direct near calls 0xa0 extra: taken_indirect_near_call Taken speculative and retired indirect calls 0xc1 extra: all_conditional Speculative and retired macro-conditional branches 0xc2 extra: all_direct_jmp Speculative and retired macro-unconditional branches excluding calls and indirects 0xc4 extra: all_indirect_jump_non_call_ret Speculative and retired indirect branches excluding calls and returns 0xc8 extra: all_indirect_near_return Speculative and retired indirect return branches. 0xd0 extra: all_direct_near_call Speculative and retired direct near calls name:br_misp_exec type:exclusive default:0xff 0xff extra: all_branches Speculative and retired mispredicted macro conditional branches 0x41 extra: nontaken_conditional Not taken speculative and retired mispredicted macro conditional branches 0x81 extra: taken_conditional Taken speculative and retired mispredicted macro conditional branches 0x84 extra: taken_indirect_jump_non_call_ret Taken speculative and retired mispredicted indirect branches excluding calls and returns 0x88 extra: taken_return_near Taken speculative and retired mispredicted indirect branches with return mnemonic 0xc1 extra: all_conditional Speculative and retired mispredicted macro conditional branches 0xc4 extra: all_indirect_jump_non_call_ret Mispredicted indirect branches excluding calls and returns 0xa0 extra: taken_indirect_near_call Taken speculative and retired mispredicted indirect calls name:idq_uops_not_delivered type:exclusive default:core 0x1 extra: core Uops not delivered to Resource Allocation Table (RAT) per thread when backend of the machine is not stalled 0x1 extra:cmask=4 cycles_0_uops_deliv_core Cycles per thread when 4 or more uops are not delivered to Resource Allocation Table (RAT) when backend of the machine is not stalled 0x1 extra:cmask=3 cycles_le_1_uop_deliv_core Cycles per thread when 3 or more uops are not delivered to Resource Allocation Table (RAT) when backend of the machine is not stalled 0x1 extra:cmask=2 cycles_le_2_uop_deliv_core Cycles with less than 2 uops delivered by the front end. 0x1 extra:cmask=1 cycles_le_3_uop_deliv_core Cycles with less than 3 uops delivered by the front end. 0x1 extra:cmask=1,inv cycles_fe_was_ok Counts cycles FE delivered 4 uops or Resource Allocation Table (RAT) was stalling FE. name:uops_executed_port type:exclusive default:port_0 0x1 extra: port_0 Cycles per thread when uops are executed in port 0 0x2 extra: port_1 Cycles per thread when uops are executed in port 1 0x4 extra: port_2 Cycles per thread when uops are executed in port 2 0x8 extra: port_3 Cycles per thread when uops are executed in port 3 0x10 extra: port_4 Cycles per thread when uops are executed in port 4 0x20 extra: port_5 Cycles per thread when uops are executed in port 5 0x40 extra: port_6 Cycles per thread when uops are executed in port 6 0x80 extra: port_7 Cycles per thread when uops are executed in port 7 0x1 extra:any port_0_core Cycles per core when uops are exectuted in port 0 0x2 extra:any port_1_core Cycles per core when uops are exectuted in port 1 0x4 extra:any port_2_core Cycles per core when uops are dispatched to port 2 0x8 extra:any port_3_core Cycles per core when uops are dispatched to port 3 0x10 extra:any port_4_core Cycles per core when uops are exectuted in port 4 0x20 extra:any port_5_core Cycles per core when uops are exectuted in port 5 0x40 extra:any port_6_core Cycles per core when uops are exectuted in port 6 0x80 extra:any port_7_core Cycles per core when uops are dispatched to port 7 name:resource_stalls type:exclusive default:0x1 0x1 extra: any Resource-related stall cycles 0x4 extra: rs Cycles stalled due to no eligible RS entry available. 0x8 extra: sb Cycles stalled due to no store buffers available. (not including draining form sync). 0x10 extra: rob Cycles stalled due to re-order buffer full. name:cycle_activity type:exclusive default:0x8 0x8 extra:cmask=8 cycles_l1d_pending Cycles with pending L1 cache miss loads. 0x2 extra:cmask=2 cycles_ldm_pending Cycles with pending memory loads. 0x4 extra:cmask=4 cycles_no_execute Total execution stalls 0x6 extra:cmask=6 stalls_ldm_pending Execution stalls due to memory subsystem. name:offcore_requests type:exclusive default:0x2 0x2 extra: demand_code_rd Cacheable and noncachaeble code read requests 0x4 extra: demand_rfo Demand RFO requests including regular RFOs, locks, ItoM 0x8 extra: all_data_rd Demand and prefetch data reads name:uops_executed type:exclusive default:thread 0x1 extra: thread Counts the number of uops to be executed per-thread each cycle. 0x2 extra: core Number of uops executed on the core. 0x1 extra:cmask=1,inv stall_cycles Counts number of cycles no uops were dispatched to be executed on this thread. 0x1 extra:cmask=1,inv cycles_ge_1_uop_exec Cycles where at least 1 uop was executed per-thread 0x1 extra:cmask=1,inv cycles_ge_2_uops_exec Cycles where at least 2 uops were executed per-thread 0x1 extra:cmask=1,inv cycles_ge_3_uops_exec Cycles where at least 3 uops were executed per-thread 0x1 extra:cmask=1,inv cycles_ge_4_uops_exec Cycles where at least 4 uops were executed per-thread name:page_walker_loads type:exclusive default:0x11 0x11 extra: ia32_dtlb_l1 Number of DTLB page walker hits in the L1+FB 0x21 extra: ia32_itlb_l1 Number of ITLB page walker hits in the L1+FB 0x12 extra: ia32_dtlb_l2 Number of DTLB page walker hits in the L2 0x22 extra: ia32_itlb_l2 Number of ITLB page walker hits in the L2 0x14 extra: ia32_dtlb_l3 Number of DTLB page walker hits in the L3 + XSNP 0x24 extra: ia32_itlb_l3 Number of ITLB page walker hits in the L3 + XSNP 0x18 extra: ia32_dtlb_memory Number of DTLB page walker hits in Memory 0x28 extra: ia32_itlb_memory Number of ITLB page walker hits in Memory name:tlb_flush type:exclusive default:0x1 0x1 extra: dtlb_thread DTLB flush attempts of the thread-specific entries 0x20 extra: stlb_any STLB flush attempts name:other_assists type:exclusive default:0x8 0x8 extra: avx_to_sse Number of transitions from AVX-256 to legacy SSE when penalty applicable. 0x10 extra: sse_to_avx Number of transitions from SSE to AVX-256 when penalty applicable. 0x40 extra: any_wb_assist Number of times any microcode assist is invoked by HW upon uop writeback. name:uops_retired type:exclusive default:all 0x1 extra: all Actually retired uops. 0x2 extra: retire_slots Retirement slots used. 0x1 extra:pebs all_ps Actually retired uops. (Precise Event - PEBS) 0x2 extra:pebs retire_slots_ps Retirement slots used. (Precise Event - PEBS) 0x1 extra:cmask=1,inv stall_cycles Cycles without actually retired uops. 0x1 extra:cmask=10,inv total_cycles Cycles with less than 10 actually retired uops. 0x1 extra:cmask=1,inv,any core_stall_cycles Cycles without actually retired uops. name:machine_clears type:exclusive default:0x2 0x2 extra: memory_ordering Counts the number of machine clears due to memory order conflicts. 0x4 extra: smc Self-modifying code (SMC) detected. 0x20 extra: maskmov This event counts the number of executed Intel AVX masked load operations that refer to an illegal address range with the mask bits set to 0. name:br_inst_retired type:exclusive default:all_branches_ps 0x1 extra: conditional Conditional branch instructions retired. 0x2 extra: near_call Direct and indirect near call instructions retired. 0x8 extra: near_return Return instructions retired. 0x10 extra: not_taken Not taken branch instructions retired. 0x20 extra: near_taken Taken branch instructions retired. 0x40 extra: far_branch Far branch instructions retired. 0x1 extra:pebs conditional_ps Conditional branch instructions retired. (Precise Event - PEBS) 0x2 extra:pebs near_call_ps Direct and indirect near call instructions retired. (Precise Event - PEBS) 0x4 extra:pebs all_branches_ps All (macro) branch instructions retired. (Precise Event - PEBS) 0x8 extra:pebs near_return_ps Return instructions retired. (Precise Event - PEBS) 0x20 extra:pebs near_taken_ps Taken branch instructions retired. (Precise Event - PEBS) 0x2 extra: near_call_r3 Direct and indirect macro near call instructions retired (captured in ring 3). 0x2 extra:pebs near_call_r3_ps Direct and indirect macro near call instructions retired (captured in ring 3). (Precise Event - PEBS) name:br_misp_retired type:exclusive default:all_branches_ps 0x1 extra: conditional Mispredicted conditional branch instructions retired. 0x1 extra:pebs conditional_ps Mispredicted conditional branch instructions retired. (Precise Event - PEBS) 0x4 extra:pebs all_branches_ps Mispredicted macro branch instructions retired. (Precise Event - PEBS) 0x20 extra: near_taken number of near branch instructions retired that were mispredicted and taken. 0x20 extra:pebs near_taken_ps number of near branch instructions retired that were mispredicted and taken. (Precise Event - PEBS) name:hle_retired type:exclusive default:0x1 0x1 extra: start Number of times an HLE execution started. 0x2 extra: commit Number of times an HLE execution successfully committed 0x4 extra: aborted Number of times an HLE execution aborted due to any reasons (multiple categories may count as one) 0x8 extra: aborted_misc1 Number of times an HLE execution aborted due to 1 various memory events 0x10 extra: aborted_misc2 Number of times an HLE execution aborted due to uncommon conditions 0x20 extra: aborted_misc3 Number of times an HLE execution aborted due to HLE-unfriendly instructions 0x40 extra: aborted_misc4 Number of times an HLE execution aborted due to incompatible memory type 0x80 extra: aborted_misc5 Number of times an HLE execution aborted due to none of the previous categories (e.g. interrupt) name:rtm_retired type:exclusive default:0x1 0x1 extra: start Number of times an RTM execution started. 0x2 extra: commit Number of times an RTM execution successfully committed 0x4 extra: aborted Number of times an RTM execution aborted due to any reasons (multiple categories may count as one) 0x8 extra: aborted_misc1 Number of times an RTM execution aborted due to various memory events 0x10 extra: aborted_misc2 Number of times an RTM execution aborted due to uncommon conditions 0x20 extra: aborted_misc3 Number of times an RTM execution aborted due to HLE-unfriendly instructions 0x40 extra: aborted_misc4 Number of times an RTM execution aborted due to incompatible memory type 0x80 extra: aborted_misc5 Number of times an RTM execution aborted due to none of the previous 4 categories (e.g. interrupt) name:fp_assist type:exclusive default:0x1e 0x1e extra:cmask=1 any Cycles with any input/output SSE or FP assist 0x2 extra: x87_output Number of X87 assists due to output value. 0x4 extra: x87_input Number of X87 assists due to input value. 0x8 extra: simd_output Number of SIMD FP assists due to Output values 0x10 extra: simd_input Number of SIMD FP assists due to input values name:mem_uops_retired type:exclusive default:all_loads 0x11 extra: stlb_miss_loads Load uops with true STLB miss retired to architected path. 0x12 extra: stlb_miss_stores Store uops with true STLB miss retired to architected path. 0x21 extra: lock_loads Load uops with locked access retired to architected path. 0x41 extra: split_loads Line-splitted load uops retired to architected path. 0x42 extra: split_stores Line-splitted store uops retired to architected path. 0x81 extra: all_loads Load uops retired to architected path with filter on bits 0 and 1 applied. 0x82 extra: all_stores Store uops retired to architected path with filter on bits 0 and 1 applied. 0x11 extra:pebs stlb_miss_loads_ps Load uops with true STLB miss retired to architected path. (Precise Event - PEBS) 0x12 extra:pebs stlb_miss_stores_ps Store uops true STLB miss retired to architected path. (Precise Event - PEBS) 0x21 extra:pebs lock_loads_ps Load uops with locked access retired to architected path. (Precise Event - PEBS) 0x41 extra:pebs split_loads_ps Line-splitted load uops retired to architected path. (Precise Event - PEBS) 0x42 extra:pebs split_stores_ps Line-splitted store uops retired to architected path. (Precise Event - PEBS) 0x81 extra:pebs all_loads_ps Load uops retired to architected path with filter on bits 0 and 1 applied. (Precise Event - PEBS) 0x82 extra:pebs all_stores_ps Store uops retired to architected path with filter on bits 0 and 1 applied. (Precise Event - PEBS) name:mem_load_uops_retired type:exclusive default:l1_hit 0x1 extra: l1_hit Retired load uops with L1 cache hits as data sources. 0x2 extra: l2_hit Retired load uops with L2 cache hits as data sources. 0x4 extra: l3_hit Retired load uops which data sources were data hits in LLC without snoops required. 0x10 extra: l2_miss Miss in mid-level (L2) cache. Excludes Unknown data-source. 0x40 extra: hit_lfb Retired load uops which data sources were load uops missed L1 but hit FB due to preceding miss to the same cache line with data not ready. 0x1 extra:pebs l1_hit_ps Retired load uops with L1 cache hits as data sources. (Precise Event - PEBS) 0x2 extra:pebs l2_hit_ps Retired load uops with L2 cache hits as data sources. (Precise Event - PEBS) 0x4 extra:pebs l3_hit_ps Miss in last-level (L3) cache. Excludes Unknown data-source. (Precise Event - PEBS) 0x40 extra:pebs hit_lfb_ps Retired load uops which data sources were load uops missed L1 but hit FB due to preceding miss to the same cache line with data not ready. (Precise Event - PEBS) name:mem_load_uops_l3_hit_retired type:exclusive default:xsnp_miss 0x1 extra: xsnp_miss Retired load uops which data sources were LLC hit and cross-core snoop missed in on-pkg core cache. 0x2 extra: xsnp_hit Retired load uops which data sources were LLC and cross-core snoop hits in on-pkg core cache. 0x4 extra: xsnp_hitm Retired load uops which data sources were HitM responses from shared LLC. 0x8 extra: xsnp_none Retired load uops which data sources were hits in LLC without snoops required. 0x1 extra:pebs xsnp_miss_ps Retired load uops which data sources were LLC hit and cross-core snoop missed in on-pkg core cache. (Precise Event - PEBS) 0x2 extra:pebs xsnp_hit_ps Retired load uops which data sources were LLC and cross-core snoop hits in on-pkg core cache. (Precise Event - PEBS) 0x4 extra:pebs xsnp_hitm_ps Retired load uops which data sources were HitM responses from shared LLC. (Precise Event - PEBS) 0x8 extra:pebs xsnp_none_ps Retired load uops which data sources were hits in LLC without snoops required. (Precise Event - PEBS) name:l2_trans type:exclusive default:0x80 0x80 extra: all_requests Transactions accessing L2 pipe 0x1 extra: demand_data_rd Demand Data Read requests that access L2 cache 0x2 extra: rfo RFO requests that access L2 cache 0x4 extra: code_rd L2 cache accesses when fetching instructions 0x8 extra: all_pf L2 or LLC HW prefetches that access L2 cache 0x10 extra: l1d_wb L1D writebacks that access L2 cache 0x20 extra: l2_fill L2 fill requests that access L2 cache 0x40 extra: l2_wb L2 writebacks that access L2 cache name:l2_lines_in type:exclusive default:0x7 0x7 extra: all L2 cache lines filling L2 0x1 extra: i L2 cache lines in I state filling L2 0x2 extra: s L2 cache lines in S state filling L2 0x4 extra: e L2 cache lines in E state filling L2 name:l2_lines_out type:exclusive default:0x5 0x5 extra: demand_clean Clean L2 cache lines evicted by demand 0x6 extra: demand_dirty Dirty L2 cache lines evicted by demand oprofile-0.9.9/events/i386/westmere/0000775000076400007640000000000012175511556014223 500000000000000oprofile-0.9.9/events/i386/westmere/events0000664000076400007640000002177112175510132015367 00000000000000# # Intel "Westmere" microarchitecture core events. # # See http://ark.intel.com/ for help in identifying Westmere based CPUs # # Note the minimum counts are not discovered experimentally and could be likely # lowered in many cases without ill effect. # include:i386/arch_perfmon event:0x03 counters:0,1,2,3 um:x02 minimum:200000 name:LOAD_BLOCK : Loads that partially overlap an earlier store event:0x04 counters:0,1,2,3 um:x07 minimum:200000 name:SB_DRAIN : All Store buffer stall cycles event:0x05 counters:0,1,2,3 um:x02 minimum:200000 name:MISALIGN_MEM_REF : Misaligned store references event:0x06 counters:0,1,2,3 um:store_blocks minimum:200000 name:STORE_BLOCKS : Loads delayed with at-Retirement block code event:0x07 counters:0,1,2,3 um:x01 minimum:200000 name:PARTIAL_ADDRESS_ALIAS : False dependencies due to partial address aliasing event:0x08 counters:0,1,2,3 um:dtlb_load_misses minimum:200000 name:DTLB_LOAD_MISSES : DTLB load misses event:0x0b counters:0,1,2,3 um:mem_inst_retired minimum:2000000 name:MEM_INST_RETIRED : Memory instructions retired above 0 clocks (Precise Event) event:0x0c counters:0,1,2,3 um:x01 minimum:200000 name:MEM_STORE_RETIRED : Retired stores that miss the DTLB (Precise Event) event:0x0e counters:0,1,2,3 um:uops_issued minimum:2000000 name:UOPS_ISSUED : Uops issued event:0x0f counters:0,1,2,3 um:mem_uncore_retired minimum:40000 name:MEM_UNCORE_RETIRED : Load instructions retired that HIT modified data in sibling core (Precise Event) event:0x10 counters:0,1,2,3 um:fp_comp_ops_exe minimum:2000000 name:FP_COMP_OPS_EXE : MMX Uops event:0x12 counters:0,1,2,3 um:simd_int_128 minimum:200000 name:SIMD_INT_128 : 128 bit SIMD integer pack operations event:0x13 counters:0,1,2,3 um:load_dispatch minimum:2000000 name:LOAD_DISPATCH : All loads dispatched event:0x14 counters:0,1,2,3 um:arith minimum:2000000 name:ARITH : Cycles the divider is busy event:0x17 counters:0,1,2,3 um:x01 minimum:2000000 name:INST_QUEUE_WRITES : Instructions written to instruction queue. event:0x18 counters:0,1,2,3 um:x01 minimum:2000000 name:INST_DECODED : Instructions that must be decoded by decoder 0 event:0x19 counters:0,1,2,3 um:x01 minimum:2000000 name:TWO_UOP_INSTS_DECODED : Two Uop instructions decoded event:0x1e counters:0,1,2,3 um:x01 minimum:2000000 name:INST_QUEUE_WRITE_CYCLES : Cycles instructions are written to the instruction queue event:0x20 counters:0,1,2,3 um:x01 minimum:2000000 name:LSD_OVERFLOW : Loops that can't stream from the instruction queue event:0x24 counters:0,1,2,3 um:l2_rqsts minimum:200000 name:L2_RQSTS : L2 instruction fetch hits event:0x26 counters:0,1,2,3 um:l2_data_rqsts minimum:200000 name:L2_DATA_RQSTS : All L2 data requests event:0x27 counters:0,1,2,3 um:l2_write minimum:100000 name:L2_WRITE : L2 demand lock RFOs in E state event:0x28 counters:0,1,2,3 um:l1d_wb_l2 minimum:100000 name:L1D_WB_L2 : L1 writebacks to L2 in E state event:0x2e counters:0,1,2,3 um:longest_lat_cache minimum:100000 name:LONGEST_LAT_CACHE : Longest latency cache miss event:0x3c counters:0,1,2,3 um:cpu_clk_unhalted minimum:100000 name:CPU_CLK_UNHALTED : Reference base clock (133 Mhz) cycles when thread is not halted (programmable counter) event:0x49 counters:0,1,2,3 um:dtlb_misses minimum:200000 name:DTLB_MISSES : DTLB misses event:0x4c counters:0,1 um:x01 minimum:200000 name:LOAD_HIT_PRE : Load operations conflicting with software prefetches event:0x4e counters:0,1 um:l1d_prefetch minimum:200000 name:L1D_PREFETCH : L1D hardware prefetch misses event:0x4f counters:0,1,2,3 um:x10 minimum:2000000 name:EPT : Extended Page Table walk cycles event:0x51 counters:0,1 um:l1d minimum:2000000 name:L1D : L1D cache lines replaced in M state event:0x52 counters:0,1 um:x01 minimum:2000000 name:L1D_CACHE_PREFETCH_LOCK_FB_HIT : L1D prefetch load lock accepted in fill buffer event:0x60 counters:0 um:offcore_requests_outstanding minimum:2000000 name:OFFCORE_REQUESTS_OUTSTANDING : Outstanding offcore reads event:0x63 counters:0,1 um:cache_lock_cycles minimum:2000000 name:CACHE_LOCK_CYCLES : Cycles L1D locked event:0x6c counters:0,1,2,3 um:x01 minimum:2000000 name:IO_TRANSACTIONS : I/O transactions event:0x80 counters:0,1,2,3 um:l1i minimum:2000000 name:L1I : L1I instruction fetch stall cycles event:0x82 counters:0,1,2,3 um:x01 minimum:200000 name:LARGE_ITLB : Large ITLB hit event:0x85 counters:0,1,2,3 um:itlb_misses minimum:200000 name:ITLB_MISSES : ITLB miss event:0x87 counters:0,1,2,3 um:ild_stall minimum:2000000 name:ILD_STALL : Any Instruction Length Decoder stall cycles event:0x88 counters:0,1,2,3 um:br_inst_exec minimum:200000 name:BR_INST_EXEC : Branch instructions executed event:0x89 counters:0,1,2,3 um:br_misp_exec minimum:20000 name:BR_MISP_EXEC : Mispredicted branches executed event:0xa2 counters:0,1,2,3 um:resource_stalls minimum:2000000 name:RESOURCE_STALLS : Resource related stall cycles event:0xa6 counters:0,1,2,3 um:x01 minimum:2000000 name:MACRO_INSTS : Macro-fused instructions decoded event:0xa7 counters:0,1,2,3 um:x01 minimum:2000000 name:BACLEAR_FORCE_IQ : Instruction queue forced BACLEAR event:0xa8 counters:0,1,2,3 um:x01 minimum:2000000 name:LSD : Cycles when uops were delivered by the LSD event:0xae counters:0,1,2,3 um:x01 minimum:2000000 name:ITLB_FLUSH : ITLB flushes event:0xb0 counters:0,1,2,3 um:offcore_requests minimum:100000 name:OFFCORE_REQUESTS : All offcore requests event:0xb1 counters:0,1,2,3 um:uops_executed minimum:2000000 name:UOPS_EXECUTED : Cycles Uops executed on any port (core count) event:0xb2 counters:0,1,2,3 um:x01 minimum:100000 name:OFFCORE_REQUESTS_SQ_FULL : Offcore requests blocked due to Super Queue full event:0xb3 counters:0 um:snoopq_requests_outstanding minimum:2000000 name:SNOOPQ_REQUESTS_OUTSTANDING : Outstanding snoop code requests event:0xb4 counters:0,1,2,3 um:snoopq_requests minimum:100000 name:SNOOPQ_REQUESTS : Snoop code requests event:0xb7 counters:2 um:x01 minimum:100000 name:OFFCORE_RESPONSE_ANY_DATA : REQUEST = ANY_DATA read and RESPONSE = ANY_CACHE_DRAM event:0xb8 counters:0,1,2,3 um:snoop_response minimum:100000 name:SNOOP_RESPONSE : Thread responded HIT to snoop event:0xbb counters:1 um:x01 minimum:100000 name:OFFCORE_RESPONSE_ANY_DATA : REQUEST = ANY_DATA read and RESPONSE = ANY_CACHE_DRAM event:0xc0 counters:0,1,2,3 um:inst_retired minimum:2000000 name:INST_RETIRED : Instructions retired (Programmable counter and Precise Event) event:0xc2 counters:0,1,2,3 um:uops_retired minimum:2000000 name:UOPS_RETIRED : Cycles Uops are being retired event:0xc3 counters:0,1,2,3 um:machine_clears minimum:20000 name:MACHINE_CLEARS : Cycles machine clear asserted event:0xc4 counters:0,1,2,3 um:br_inst_retired minimum:200000 name:BR_INST_RETIRED : Retired branch instructions (Precise Event) event:0xc5 counters:0,1,2,3 um:br_misp_retired minimum:20000 name:BR_MISP_RETIRED : Mispredicted retired branch instructions (Precise Event) event:0xc7 counters:0,1,2,3 um:ssex_uops_retired minimum:200000 name:SSEX_UOPS_RETIRED : SIMD Packed-Double Uops retired (Precise Event) event:0xc8 counters:0,1,2,3 um:x20 minimum:200000 name:ITLB_MISS_RETIRED : Retired instructions that missed the ITLB (Precise Event) event:0xcb counters:0,1,2,3 um:mem_load_retired minimum:200000 name:MEM_LOAD_RETIRED : Retired loads that miss the DTLB (Precise Event) event:0xcc counters:0,1,2,3 um:fp_mmx_trans minimum:2000000 name:FP_MMX_TRANS : All Floating Point to and from MMX transitions event:0xd0 counters:0,1,2,3 um:x01 minimum:2000000 name:MACRO_INSTS : Instructions decoded event:0xd1 counters:0,1,2,3 um:uops_decoded minimum:2000000 name:UOPS_DECODED : Stack pointer instructions decoded event:0xd2 counters:0,1,2,3 um:rat_stalls minimum:2000000 name:RAT_STALLS : All RAT stall cycles event:0xd4 counters:0,1,2,3 um:x01 minimum:2000000 name:SEG_RENAME_STALLS : Segment rename stall cycles event:0xd5 counters:0,1,2,3 um:x01 minimum:2000000 name:ES_REG_RENAMES : ES segment renames event:0xdb counters:0,1,2,3 um:x01 minimum:2000000 name:UOP_UNFUSION : Uop unfusions due to FP exceptions event:0xe0 counters:0,1,2,3 um:x01 minimum:2000000 name:BR_INST_DECODED : Branch instructions decoded event:0xe5 counters:0,1,2,3 um:x01 minimum:2000000 name:BPU_MISSED_CALL_RET : Branch prediction unit missed call or return event:0xe6 counters:0,1,2,3 um:baclear minimum:2000000 name:BACLEAR : BACLEAR asserted with bad target address event:0xe8 counters:0,1,2,3 um:bpu_clears minimum:2000000 name:BPU_CLEARS : Early Branch Prediction Unit clears event:0xf0 counters:0,1,2,3 um:l2_transactions minimum:200000 name:L2_TRANSACTIONS : All L2 transactions event:0xf1 counters:0,1,2,3 um:l2_lines_in minimum:100000 name:L2_LINES_IN : L2 lines alloacated event:0xf2 counters:0,1,2,3 um:l2_lines_out minimum:100000 name:L2_LINES_OUT : L2 lines evicted event:0xf4 counters:0,1,2,3 um:sq_misc minimum:2000000 name:SQ_MISC : Super Queue LRU hints sent to LLC event:0xf6 counters:0,1,2,3 um:x01 minimum:2000000 name:SQ_FULL_STALL_CYCLES : Super Queue full stall cycles event:0xf7 counters:0,1,2,3 um:fp_assist minimum:20000 name:FP_ASSIST : X87 Floating point assists (Precise Event) event:0xfd counters:0,1,2,3 um:simd_int_64 minimum:200000 name:SIMD_INT_64 : SIMD integer 64 bit pack operations oprofile-0.9.9/events/i386/westmere/unit_masks0000664000076400007640000004031212175510132016230 00000000000000# # Unit masks for the Intel "Westmere" micro architecture # # See http://ark.intel.com/ for help in identifying Westmere based CPUs # include:i386/arch_perfmon name:x01 type:mandatory default:0x01 0x01 No unit mask name:x02 type:mandatory default:0x02 0x02 No unit mask name:x07 type:mandatory default:0x07 0x07 No unit mask name:x10 type:mandatory default:0x10 0x10 No unit mask name:x20 type:mandatory default:0x20 0x20 No unit mask name:arith type:bitmask default:0x01 0x01 extra: cycles_div_busy Cycles the divider is busy 0x02 extra: mul Multiply operations executed name:baclear type:bitmask default:0x01 0x01 extra: clear BACLEAR asserted, regardless of cause 0x02 extra: bad_target BACLEAR asserted with bad target address name:bpu_clears type:bitmask default:0x01 0x01 extra: early Early Branch Prediction Unit clears 0x02 extra: late Late Branch Prediction Unit clears name:br_inst_exec type:bitmask default:0x7f 0x01 extra: cond Conditional branch instructions executed 0x02 extra: direct Unconditional branches executed 0x04 extra: indirect_non_call Indirect non call branches executed 0x07 extra: non_calls All non call branches executed 0x08 extra: return_near Indirect return branches executed 0x10 extra: direct_near_call Unconditional call branches executed 0x20 extra: indirect_near_call Indirect call branches executed 0x30 extra: near_calls Call branches executed 0x40 extra: taken Taken branches executed 0x7f extra: any Branch instructions executed name:br_inst_retired type:bitmask default:0x04 0x01 extra: conditional Retired conditional branch instructions (Precise Event) 0x02 extra: near_call Retired near call instructions (Precise Event) 0x04 extra: all_branches Retired branch instructions (Precise Event) name:br_misp_exec type:bitmask default:0x7f 0x01 extra: cond Mispredicted conditional branches executed 0x02 extra: direct Mispredicted unconditional branches executed 0x04 extra: indirect_non_call Mispredicted indirect non call branches executed 0x07 extra: non_calls Mispredicted non call branches executed 0x08 extra: return_near Mispredicted return branches executed 0x10 extra: direct_near_call Mispredicted non call branches executed 0x20 extra: indirect_near_call Mispredicted indirect call branches executed 0x30 extra: near_calls Mispredicted call branches executed 0x40 extra: taken Mispredicted taken branches executed 0x7f extra: any Mispredicted branches executed name:br_misp_retired type:bitmask default:0x04 0x01 extra: conditional Mispredicted conditional retired branches (Precise Event) 0x02 extra: near_call Mispredicted near retired calls (Precise Event) 0x04 extra: all_branches Mispredicted retired branch instructions (Precise Event) name:cache_lock_cycles type:bitmask default:0x01 0x01 extra: l1d_l2 Cycles L1D and L2 locked 0x02 extra: l1d Cycles L1D locked name:cpu_clk_unhalted type:bitmask default:0x00 0x00 extra: thread_p Cycles when thread is not halted (programmable counter) 0x01 extra: ref_p Reference base clock (133 Mhz) cycles when thread is not halted (programmable counter) name:dtlb_load_misses type:bitmask default:0x01 0x01 extra: any DTLB load misses 0x02 extra: walk_completed DTLB load miss page walks complete 0x04 extra: walk_cycles DTLB load miss page walk cycles 0x10 extra: stlb_hit DTLB second level hit 0x20 extra: pde_miss DTLB load miss caused by low part of address 0x80 extra: large_walk_completed DTLB load miss large page walks name:dtlb_misses type:bitmask default:0x01 0x01 extra: any DTLB misses 0x02 extra: walk_completed DTLB miss page walks 0x04 extra: walk_cycles DTLB miss page walk cycles 0x10 extra: stlb_hit DTLB first level misses but second level hit 0x20 extra: pde_miss DTLB misses casued by low part of address 0x80 extra: large_walk_completed DTLB miss large page walks name:fp_assist type:bitmask default:0x01 0x01 extra: all X87 Floating point assists (Precise Event) 0x02 extra: output X87 Floating point assists for invalid output value (Precise Event) 0x04 extra: input X87 Floating poiint assists for invalid input value (Precise Event) name:fp_comp_ops_exe type:bitmask default:0x01 0x01 extra: x87 Computational floating-point operations executed 0x02 extra: mmx MMX Uops 0x04 extra: sse_fp SSE and SSE2 FP Uops 0x08 extra: sse2_integer SSE2 integer Uops 0x10 extra: sse_fp_packed SSE FP packed Uops 0x20 extra: sse_fp_scalar SSE FP scalar Uops 0x40 extra: sse_single_precision SSE* FP single precision Uops 0x80 extra: sse_double_precision SSE* FP double precision Uops name:fp_mmx_trans type:bitmask default:0x03 0x01 extra: to_fp Transitions from MMX to Floating Point instructions 0x02 extra: to_mmx Transitions from Floating Point to MMX instructions 0x03 extra: any All Floating Point to and from MMX transitions name:ild_stall type:bitmask default:0x0f 0x01 extra: lcp Length Change Prefix stall cycles 0x02 extra: mru Stall cycles due to BPU MRU bypass 0x04 extra: iq_full Instruction Queue full stall cycles 0x08 extra: regen Regen stall cycles 0x0f extra: any Any Instruction Length Decoder stall cycles name:inst_retired type:bitmask default:0x01 0x01 extra: any_p Instructions retired (Programmable counter and Precise Event) 0x02 extra: x87 Retired floating-point operations (Precise Event) 0x04 extra: mmx Retired MMX instructions (Precise Event) name:itlb_misses type:bitmask default:0x01 0x01 extra: any ITLB miss 0x02 extra: walk_completed ITLB miss page walks 0x04 extra: walk_cycles ITLB miss page walk cycles 0x80 extra: large_walk_completed ITLB miss large page walks name:l1d type:bitmask default:0x01 0x01 extra: repl L1 data cache lines allocated 0x02 extra: m_repl L1D cache lines allocated in the M state 0x04 extra: m_evict L1D cache lines replaced in M state 0x08 extra: m_snoop_evict L1D snoop eviction of cache lines in M state name:l1d_prefetch type:bitmask default:0x01 0x01 extra: requests L1D hardware prefetch requests 0x02 extra: miss L1D hardware prefetch misses 0x04 extra: triggers L1D hardware prefetch requests triggered name:l1d_wb_l2 type:bitmask default:0x0f 0x01 extra: i_state L1 writebacks to L2 in I state (misses) 0x02 extra: s_state L1 writebacks to L2 in S state 0x04 extra: e_state L1 writebacks to L2 in E state 0x08 extra: m_state L1 writebacks to L2 in M state 0x0f extra: mesi All L1 writebacks to L2 name:l1i type:bitmask default:0x01 0x01 extra: hits L1I instruction fetch hits 0x02 extra: misses L1I instruction fetch misses 0x03 extra: reads L1I Instruction fetches 0x04 extra: cycles_stalled L1I instruction fetch stall cycles name:l2_data_rqsts type:bitmask default:0xff 0x01 extra: demand_i_state L2 data demand loads in I state (misses) 0x02 extra: demand_s_state L2 data demand loads in S state 0x04 extra: demand_e_state L2 data demand loads in E state 0x08 extra: demand_m_state L2 data demand loads in M state 0x0f extra: demand_mesi L2 data demand requests 0x10 extra: prefetch_i_state L2 data prefetches in the I state (misses) 0x20 extra: prefetch_s_state L2 data prefetches in the S state 0x40 extra: prefetch_e_state L2 data prefetches in E state 0x80 extra: prefetch_m_state L2 data prefetches in M state 0xf0 extra: prefetch_mesi All L2 data prefetches 0xff extra: any All L2 data requests name:l2_lines_in type:bitmask default:0x07 0x02 extra: s_state L2 lines allocated in the S state 0x04 extra: e_state L2 lines allocated in the E state 0x07 extra: any L2 lines alloacated name:l2_lines_out type:bitmask default:0x0f 0x01 extra: demand_clean L2 lines evicted by a demand request 0x02 extra: demand_dirty L2 modified lines evicted by a demand request 0x04 extra: prefetch_clean L2 lines evicted by a prefetch request 0x08 extra: prefetch_dirty L2 modified lines evicted by a prefetch request 0x0f extra: any L2 lines evicted name:l2_rqsts type:bitmask default:0x01 0x01 extra: ld_hit L2 load hits 0x02 extra: ld_miss L2 load misses 0x03 extra: loads L2 requests 0x04 extra: rfo_hit L2 RFO hits 0x08 extra: rfo_miss L2 RFO misses 0x0c extra: rfos L2 RFO requests 0x10 extra: ifetch_hit L2 instruction fetch hits 0x20 extra: ifetch_miss L2 instruction fetch misses 0x30 extra: ifetches L2 instruction fetches 0x40 extra: prefetch_hit L2 prefetch hits 0x80 extra: prefetch_miss L2 prefetch misses 0xaa extra: miss All L2 misses 0xc0 extra: prefetches All L2 prefetches 0xff extra: references All L2 requests name:l2_transactions type:bitmask default:0x80 0x01 extra: load L2 Load transactions 0x02 extra: rfo L2 RFO transactions 0x04 extra: ifetch L2 instruction fetch transactions 0x08 extra: prefetch L2 prefetch transactions 0x10 extra: l1d_wb L1D writeback to L2 transactions 0x20 extra: fill L2 fill transactions 0x40 extra: wb L2 writeback to LLC transactions 0x80 extra: any All L2 transactions name:l2_write type:bitmask default:0x01 0x01 extra: rfo_i_state L2 demand store RFOs in I state (misses) 0x02 extra: rfo_s_state L2 demand store RFOs in S state 0x08 extra: rfo_m_state L2 demand store RFOs in M state 0x0e extra: rfo_hit All L2 demand store RFOs that hit the cache 0x0f extra: rfo_mesi All L2 demand store RFOs 0x10 extra: lock_i_state L2 demand lock RFOs in I state (misses) 0x20 extra: lock_s_state L2 demand lock RFOs in S state 0x40 extra: lock_e_state L2 demand lock RFOs in E state 0x80 extra: lock_m_state L2 demand lock RFOs in M state 0xe0 extra: lock_hit All demand L2 lock RFOs that hit the cache 0xf0 extra: lock_mesi All demand L2 lock RFOs name:load_dispatch type:bitmask default:0x07 0x01 extra: rs Loads dispatched that bypass the MOB 0x02 extra: rs_delayed Loads dispatched from stage 305 0x04 extra: mob Loads dispatched from the MOB 0x07 extra: any All loads dispatched name:longest_lat_cache type:bitmask default:0x01 0x01 extra: miss Longest latency cache miss 0x02 extra: reference Longest latency cache reference name:machine_clears type:bitmask default:0x01 0x01 extra: cycles Cycles machine clear asserted 0x02 extra: mem_order Execution pipeline restart due to Memory ordering conflicts 0x04 extra: smc Self-Modifying Code detected name:mem_inst_retired type:bitmask default:0x01 0x01 extra: loads Instructions retired which contains a load (Precise Event) 0x02 extra: stores Instructions retired which contains a store (Precise Event) name:mem_load_retired type:bitmask default:0x01 0x01 extra: l1d_hit Retired loads that hit the L1 data cache (Precise Event) 0x02 extra: l2_hit Retired loads that hit the L2 cache (Precise Event) 0x04 extra: llc_unshared_hit Retired loads that hit valid versions in the LLC cache (Precise Event) 0x08 extra: other_core_l2_hit_hitm Retired loads that hit sibling core's L2 in modified or unmodified states (Precise Event) 0x10 extra: llc_miss Retired loads that miss the LLC cache (Precise Event) 0x40 extra: hit_lfb Retired loads that miss L1D and hit an previously allocated LFB (Precise Event) 0x80 extra: dtlb_miss Retired loads that miss the DTLB (Precise Event) name:mem_uncore_retired type:bitmask default:0x02 0x02 extra: local_hitm Load instructions retired that HIT modified data in sibling core (Precise Event) 0x04 extra: remote_hitm Retired loads that hit remote socket in modified state (Precise Event) 0x08 extra: local_dram_and_remote_cache_hit Load instructions retired local dram and remote cache HIT data sources (Precise Event) 0x10 extra: remote_dram Load instructions retired remote DRAM and remote home-remote cache HITM (Precise Event) 0x80 extra: uncacheable Load instructions retired IO (Precise Event) name:offcore_requests type:bitmask default:0x80 0x01 extra: demand_read_data Offcore demand data read requests 0x02 extra: demand_read_code Offcore demand code read requests 0x04 extra: demand_rfo Offcore demand RFO requests 0x08 extra: any_read Offcore read requests 0x10 extra: any_rfo Offcore RFO requests 0x40 extra: l1d_writeback Offcore L1 data cache writebacks 0x80 extra: any All offcore requests name:offcore_requests_outstanding type:bitmask default:0x08 0x01 extra: demand_read_data Outstanding offcore demand data reads 0x02 extra: demand_read_code Outstanding offcore demand code reads 0x04 extra: demand_rfo Outstanding offcore demand RFOs 0x08 extra: any_read Outstanding offcore reads name:rat_stalls type:bitmask default:0x0f 0x01 extra: flags Flag stall cycles 0x02 extra: registers Partial register stall cycles 0x04 extra: rob_read_port ROB read port stalls cycles 0x08 extra: scoreboard Scoreboard stall cycles 0x0f extra: any All RAT stall cycles name:resource_stalls type:bitmask default:0x01 0x01 extra: any Resource related stall cycles 0x02 extra: load Load buffer stall cycles 0x04 extra: rs_full Reservation Station full stall cycles 0x08 extra: store Store buffer stall cycles 0x10 extra: rob_full ROB full stall cycles 0x20 extra: fpcw FPU control word write stall cycles 0x40 extra: mxcsr MXCSR rename stall cycles 0x80 extra: other Other Resource related stall cycles name:simd_int_128 type:bitmask default:0x01 0x01 extra: packed_mpy 128 bit SIMD integer multiply operations 0x02 extra: packed_shift 128 bit SIMD integer shift operations 0x04 extra: pack 128 bit SIMD integer pack operations 0x08 extra: unpack 128 bit SIMD integer unpack operations 0x10 extra: packed_logical 128 bit SIMD integer logical operations 0x20 extra: packed_arith 128 bit SIMD integer arithmetic operations 0x40 extra: shuffle_move 128 bit SIMD integer shuffle/move operations name:simd_int_64 type:bitmask default:0x01 0x01 extra: packed_mpy SIMD integer 64 bit packed multiply operations 0x02 extra: packed_shift SIMD integer 64 bit shift operations 0x04 extra: pack SIMD integer 64 bit pack operations 0x08 extra: unpack SIMD integer 64 bit unpack operations 0x10 extra: packed_logical SIMD integer 64 bit logical operations 0x20 extra: packed_arith SIMD integer 64 bit arithmetic operations 0x40 extra: shuffle_move SIMD integer 64 bit shuffle/move operations name:snoopq_requests type:bitmask default:0x01 0x01 extra: data Snoop data requests 0x02 extra: invalidate Snoop invalidate requests 0x04 extra: code Snoop code requests name:snoopq_requests_outstanding type:bitmask default:0x01 0x01 extra: data Outstanding snoop data requests 0x02 extra: invalidate Outstanding snoop invalidate requests 0x04 extra: code Outstanding snoop code requests name:snoop_response type:bitmask default:0x01 0x01 extra: hit Thread responded HIT to snoop 0x02 extra: hite Thread responded HITE to snoop 0x04 extra: hitm Thread responded HITM to snoop name:sq_misc type:bitmask default:0x04 0x04 extra: lru_hints Super Queue LRU hints sent to LLC 0x10 extra: split_lock Super Queue lock splits across a cache line name:ssex_uops_retired type:bitmask default:0x01 0x01 extra: packed_single SIMD Packed-Single Uops retired (Precise Event) 0x02 extra: scalar_single SIMD Scalar-Single Uops retired (Precise Event) 0x04 extra: packed_double SIMD Packed-Double Uops retired (Precise Event) 0x08 extra: scalar_double SIMD Scalar-Double Uops retired (Precise Event) 0x10 extra: vector_integer SIMD Vector Integer Uops retired (Precise Event) name:store_blocks type:bitmask default:0x04 0x04 extra: at_ret Loads delayed with at-Retirement block code 0x08 extra: l1d_block Cacheable loads delayed with L1D block code name:uops_decoded type:bitmask default:0x01 0x01 extra: stall_cycles Cycles no Uops are decoded 0x02 extra: ms_cycles_active Uops decoded by Microcode Sequencer 0x04 extra: esp_folding Stack pointer instructions decoded 0x08 extra: esp_sync Stack pointer sync operations name:uops_executed type:bitmask default:0x3f 0x01 extra: port0 Uops executed on port 0 0x02 extra: port1 Uops executed on port 1 0x04 extra: port2_core Uops executed on port 2 (core count) 0x08 extra: port3_core Uops executed on port 3 (core count) 0x10 extra: port4_core Uops executed on port 4 (core count) 0x1f extra: core_active_cycles_no_port5 Cycles Uops executed on ports 0-4 (core count) 0x20 extra: port5 Uops executed on port 5 0x3f extra: core_active_cycles Cycles Uops executed on any port (core count) 0x40 extra: port015 Uops issued on ports 0, 1 or 5 0x80 extra: port234_core Uops issued on ports 2, 3 or 4 name:uops_issued type:bitmask default:0x01 0x01 extra: any Uops issued 0x02 extra: fused Fused Uops issued name:uops_retired type:bitmask default:0x01 0x01 extra: active_cycles Cycles Uops are being retired 0x02 extra: retire_slots Retirement slots used (Precise Event) 0x04 extra: macro_fused Macro-fused Uops retired (Precise Event) oprofile-0.9.9/events/Makefile.in0000664000076400007640000003677312175510233013673 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = events DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ event_files = \ alpha/ev4/events alpha/ev4/unit_masks \ alpha/ev5/events alpha/ev5/unit_masks \ alpha/ev67/events alpha/ev67/unit_masks \ alpha/ev6/events alpha/ev6/unit_masks \ alpha/pca56/events alpha/pca56/unit_masks \ i386/athlon/events i386/athlon/unit_masks \ i386/core_2/events i386/core_2/unit_masks \ i386/p4/events i386/p4-ht/events \ i386/p4-ht/unit_masks i386/p4/unit_masks \ i386/pii/events i386/pii/unit_masks \ i386/piii/events i386/piii/unit_masks \ i386/ppro/events i386/ppro/unit_masks \ i386/p6_mobile/events i386/p6_mobile/unit_masks \ i386/core/events i386/core/unit_masks \ i386/arch_perfmon/events i386/arch_perfmon/unit_masks \ i386/atom/events i386/atom/unit_masks \ i386/core_i7/events i386/core_i7/unit_masks \ i386/nehalem/events i386/nehalem/unit_masks \ i386/westmere/events i386/westmere/unit_masks \ i386/sandybridge/events i386/sandybridge/unit_masks \ i386/ivybridge/events i386/ivybridge/unit_masks \ i386/haswell/events i386/haswell/unit_masks \ ia64/ia64/events ia64/ia64/unit_masks \ ia64/itanium2/events ia64/itanium2/unit_masks \ ia64/itanium/events ia64/itanium/unit_masks \ ppc64/architected_events_v1/events ppc64/architected_events_v1/unit_masks \ ppc64/power4/events ppc64/power4/event_mappings ppc64/power4/unit_masks \ ppc64/power5/events ppc64/power5/event_mappings ppc64/power5/unit_masks \ ppc64/power5+/events ppc64/power5+/event_mappings ppc64/power5+/unit_masks \ ppc64/power5++/events ppc64/power5++/event_mappings ppc64/power5++/unit_masks \ ppc64/power6/events ppc64/power6/event_mappings ppc64/power6/unit_masks \ ppc64/power7/events ppc64/power7/event_mappings ppc64/power7/unit_masks \ ppc64/power8/events ppc64/power8/unit_masks \ ppc64/970/events ppc64/970/event_mappings ppc64/970/unit_masks \ ppc64/970MP/events ppc64/970MP/event_mappings ppc64/970MP/unit_masks \ ppc64/ibm-compat-v1/events ppc64/ibm-compat-v1/event_mappings ppc64/ibm-compat-v1/unit_masks \ ppc64/pa6t/events ppc64/pa6t/event_mappings ppc64/pa6t/unit_masks \ ppc64/cell-be/events ppc64/cell-be/unit_masks \ rtc/events rtc/unit_masks \ x86-64/hammer/events x86-64/hammer/unit_masks \ x86-64/family10/events x86-64/family10/unit_masks \ x86-64/family11h/events x86-64/family11h/unit_masks \ x86-64/family12h/events x86-64/family12h/unit_masks \ x86-64/family14h/events x86-64/family14h/unit_masks \ x86-64/family15h/events x86-64/family15h/unit_masks \ x86-64/generic/events x86-64/generic/unit_masks \ arm/xscale1/events arm/xscale1/unit_masks \ arm/xscale2/events arm/xscale2/unit_masks \ arm/armv6/events arm/armv6/unit_masks \ arm/armv7-common/events arm/armv7-common/unit_masks \ arm/armv7/events arm/armv7/unit_masks \ arm/armv7-scorpion/events arm/armv7-scorpion/unit_masks \ arm/armv7-scorpionmp/events arm/armv7-scorpionmp/unit_masks \ arm/armv7-ca9/events arm/armv7-ca9/unit_masks \ arm/armv7-ca5/events arm/armv7-ca5/unit_masks \ arm/armv7-ca7/events arm/armv7-ca7/unit_masks \ arm/armv7-ca15/events arm/armv7-ca15/unit_masks \ arm/mpcore/events arm/mpcore/unit_masks \ avr32/events avr32/unit_masks \ mips/20K/events mips/20K/unit_masks \ mips/24K/events mips/24K/unit_masks \ mips/25K/events mips/25K/unit_masks \ mips/34K/events mips/34K/unit_masks \ mips/5K/events mips/5K/unit_masks \ mips/rm7000/events mips/rm7000/unit_masks \ mips/rm9000/events mips/rm9000/unit_masks \ mips/sb1/events mips/sb1/unit_masks \ mips/r10000/events mips/r10000/unit_masks \ mips/r12000/events mips/r12000/unit_masks \ mips/vr5432/events mips/vr5432/unit_masks \ mips/vr5500/events mips/vr5500/unit_masks \ mips/loongson2/events mips/loongson2/unit_masks \ mips/1004K/events mips/1004K/unit_masks \ mips/74K/events mips/74K/unit_masks \ ppc/7450/events ppc/7450/unit_masks \ ppc/e500/events ppc/e500/unit_masks \ ppc/e500v2/events ppc/e500v2/unit_masks \ ppc/e300/events ppc/e300/unit_masks \ tile/tile64/events tile/tile64/unit_masks \ tile/tilepro/events tile/tilepro/unit_masks \ tile/tilegx/events tile/tilegx/unit_masks \ s390/z10/events s390/z10/unit_masks \ s390/z196/events s390/z196/unit_masks \ s390/zEC12/events s390/zEC12/unit_masks EXTRA_DIST = $(event_files) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign events/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign events/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-data-local install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-local .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-data-local install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ uninstall uninstall-am uninstall-local install-data-local: for i in ${event_files} ; do \ dir=`dirname $$i` ; \ mkdir -p $(DESTDIR)$(pkgdatadir)/$$dir ; \ $(INSTALL_DATA) $(top_srcdir)/events/$$i $(DESTDIR)$(pkgdatadir)/$$i ; \ done uninstall-local: for i in ${event_files} ; do \ dir=`dirname $$i` ; \ archdir=`dirname $$dir` ; \ if test -f $(DESTDIR)$(pkgdatadir)/$$i ; then \ rm $(DESTDIR)$(pkgdatadir)/$$i ; \ fi; \ if test -d $(DESTDIR)$(pkgdatadir)/$$dir ; then \ rmdir --ignore-fail-on-non-empty $(DESTDIR)$(pkgdatadir)/$$dir ; \ fi; \ if test $$archdir != "." -a -d $(DESTDIR)$(pkgdatadir)/$$archdir ; then \ rmdir --ignore-fail-on-non-empty $(DESTDIR)$(pkgdatadir)/$$archdir ; \ fi; \ done # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/events/alpha/0000775000076400007640000000000012175511556012764 500000000000000oprofile-0.9.9/events/alpha/ev4/0000775000076400007640000000000012175511556013462 500000000000000oprofile-0.9.9/events/alpha/ev4/events0000664000076400007640000000272612175510132014625 00000000000000# Alpha EV4 events. # event:0x00 counters:0 um:zero minimum:4096 name:ISSUES : Total issues divided by 2 event:0x02 counters:0 um:zero minimum:4096 name:PIPELINE_DRY : Nothing issued, no valid I-stream data event:0x04 counters:0 um:zero minimum:4096 name:LOAD_INSNS : All load instructions event:0x06 counters:0 um:zero minimum:4096 name:PIPELINE_FROZEN : Nothing issued, resource conflict event:0x08 counters:0 um:zero minimum:4096 name:BRANCH_INSNS : All branches (conditional, unconditional, jsr, hw_rei) event:0x0a counters:0 um:zero minimum:4096 name:CYCLES : Total cycles event:0x0b counters:0 um:zero minimum:4096 name:PAL_MODE : Cycles while in PALcode environment event:0x0c counters:0 um:zero minimum:4096 name:NON_ISSUES : Total nonissues divided by 2 event:0x10 counters:0 um:zero minimum:256 name:DCACHE_MISSES : Total D-cache misses event:0x11 counters:0 um:zero minimum:256 name:ICACHE_MISSES : Total I-cache misses event:0x12 counters:0 um:zero minimum:256 name:DUAL_ISSUE_CYCLES : Cycles of dual issue event:0x13 counters:0 um:zero minimum:256 name:BRANCH_MISPREDICTS : Branch mispredicts (conditional, jsr, hw_rei) event:0x14 counters:0 um:zero minimum:256 name:FP_INSNS : FP operate instructions (not br, load, store) event:0x15 counters:0 um:zero minimum:256 name:INTEGER_OPERATE : Integer operate instructions event:0x16 counters:0 um:zero minimum:256 name:STORE_INSNS : Store instructions # There's also EXTERNAL, by which we could monitor the 21066/21068 bus controller. oprofile-0.9.9/events/alpha/ev4/unit_masks0000664000076400007640000000013112175510132015462 00000000000000# Alpha EV4 possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/alpha/ev5/0000775000076400007640000000000012175511556013463 500000000000000oprofile-0.9.9/events/alpha/ev5/events0000664000076400007640000000743612175510132014631 00000000000000# Alpha EV5 events # event:0x00 counters:0,2 um:zero minimum:256 name:CYCLES : Total cycles event:0x01 counters:0 um:zero minimum:256 name:ISSUES : Total issues event:0x02 counters:1 um:zero minimum:256 name:NON_ISSUE_CYCLES : Nothing issued, pipeline frozen event:0x03 counters:1 um:zero minimum:256 name:SPLIT_ISSUE_CYCLES : Some but not all issuable instructions issued event:0x04 counters:1 um:zero minimum:256 name:PIPELINE_DRY : Nothing issued, pipeline dry event:0x05 counters:1 um:zero minimum:256 name:REPLAY_TRAP : Replay traps (ldu, wb/maf, litmus test) event:0x06 counters:1 um:zero minimum:256 name:SINGLE_ISSUE_CYCLES : Single issue cycles event:0x07 counters:1 um:zero minimum:256 name:DUAL_ISSUE_CYCLES : Dual issue cycles event:0x08 counters:1 um:zero minimum:256 name:TRIPLE_ISSUE_CYCLES : Triple issue cycles event:0x09 counters:1 um:zero minimum:256 name:QUAD_ISSUE_CYCLES : Quad issue cycles event:0x0a counters:1 um:zero minimum:256 name:FLOW_CHANGE : Flow change (meaning depends on counter 2) # ??? This one's dependent on the value in PCSEL2: If measuring PC_MISPR, # this is jsr-ret instructions, if measuring BRANCH_MISPREDICTS, this is # conditional branches, otherwise this is all branch insns, including hw_rei. event:0x0b counters:1 um:zero minimum:256 name:INTEGER_OPERATE : Integer operate instructions event:0x0c counters:1 um:zero minimum:256 name:FP_INSNS : FP operate instructions (not br, load, store) # FIXME: Bug carried over event:0x0c counters:1 um:zero minimum:256 name:LOAD_INSNS : Load instructions event:0x0d counters:1 um:zero minimum:256 name:STORE_INSNS : Store instructions event:0x0e counters:1 um:zero minimum:256 name:ICACHE_ACCESS : Instruction cache access event:0x0f um:zero minimum:256 name:DCACHE_ACCESS : Data cache access event:0x10 counters:2 um:zero minimum:256 name:LONG_STALLS : Stalls longer than 15 cycles event:0x11 counters:2 um:zero minimum:256 name:PC_MISPR : PC mispredicts event:0x12 counters:2 um:zero minimum:256 name:BRANCH_MISPREDICTS : Branch mispredicts event:0x13 counters:2 um:zero minimum:256 name:ICACHE_MISSES : Instruction cache misses event:0x14 counters:2 um:zero minimum:256 name:ITB_MISS : Instruction TLB miss event:0x15 counters:2 um:zero minimum:256 name:DCACHE_MISSES : Data cache misses event:0x16 counters:2 um:zero minimum:256 name:DTB_MISS : Data TLB miss event:0x17 counters:2 um:zero minimum:256 name:LOADS_MERGED : Loads merged in MAF event:0x18 counters:2 um:zero minimum:256 name:LDU_REPLAYS : LDU replay traps event:0x19 counters:2 um:zero minimum:256 name:WB_MAF_FULL_REPLAYS : WB/MAF full replay traps event:0x1a counters:2 um:zero minimum:256 name:MEM_BARRIER : Memory barrier instructions event:0x1b counters:2 um:zero minimum:256 name:LOAD_LOCKED : LDx/L instructions event:0x1c counters:1 um:zero minimum:256 name:SCACHE_ACCESS : S-cache access event:0x1d counters:1 um:zero minimum:256 name:SCACHE_READ : S-cache read event:0x1e counters:1,2 um:zero minimum:256 name:SCACHE_WRITE : S-cache write event:0x1f counters:1 um:zero minimum:256 name:SCACHE_VICTIM : S-cache victim event:0x20 counters:2 um:zero minimum:256 name:SCACHE_MISS : S-cache miss event:0x21 counters:2 um:zero minimum:256 name:SCACHE_READ_MISS : S-cache read miss event:0x22 counters:2 um:zero minimum:256 name:SCACHE_WRITE_MISS : S-cache write miss event:0x23 counters:2 um:zero minimum:256 name:SCACHE_SH_WRITE : S-cache shared writes event:0x24 counters:1 um:zero minimum:256 name:BCACHE_HIT : B-cache hit event:0x25 counters:1 um:zero minimum:256 name:BCACHE_VICTIM : B-cache victim event:0x26 counters:2 um:zero minimum:256 name:BCACHE_MISS : B-cache miss event:0x27 counters:1 um:zero minimum:256 name:SYS_REQ : System requests event:0x28 counters:2 um:zero minimum:256 name:SYS_INV : System invalidates event:0x29 counters:2 um:zero minimum:256 name:SYS_READ_REQ : System read requests oprofile-0.9.9/events/alpha/ev5/unit_masks0000664000076400007640000000013212175510132015464 00000000000000# Alpha EV-5 possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/alpha/pca56/0000775000076400007640000000000012175511556013702 500000000000000oprofile-0.9.9/events/alpha/pca56/events0000664000076400007640000000007212175510132015035 00000000000000# PCA-56 # FIXME: no events ? What's going on here Falk ? oprofile-0.9.9/events/alpha/pca56/unit_masks0000664000076400007640000000007612175510132015712 00000000000000# Alpha PCA-56 possible unit masks # # FIXME: any events ...? oprofile-0.9.9/events/alpha/ev6/0000775000076400007640000000000012175511556013464 500000000000000oprofile-0.9.9/events/alpha/ev6/events0000664000076400007640000000141212175510132014616 00000000000000# Alpha EV6 events # event:0x00 counters:0,1 um:zero minimum:500 name:CYCLES : Total cycles event:0x01 counters:1 um:zero minimum:500 name:RETIRED : Retired instructions event:0x02 counters:1 um:zero minimum:500 name:COND_BRANCHES : Retired conditional branches event:0x03 counters:1 um:zero minimum:500 name:BRANCH_MISPREDICTS : Retired branch mispredicts event:0x04 counters:1 um:zero minimum:500 name:DTB_MISS : Retired DTB single misses * 2 event:0x05 counters:1 um:zero minimum:500 name:DTB_DD_MISS : Retired DTB double double misses event:0x06 counters:1 um:zero minimum:500 name:ITB_MISS : Retired ITB misses event:0x07 counters:1 um:zero minimum:500 name:UNALIGNED_TRAP : Retired unaligned traps event:0x08 counters:1 um:zero minimum:500 name:REPLAY_TRAP : Replay traps oprofile-0.9.9/events/alpha/ev6/unit_masks0000664000076400007640000000013212175510132015465 00000000000000# Alpha EV-6 possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/alpha/ev67/0000775000076400007640000000000012175511556013553 500000000000000oprofile-0.9.9/events/alpha/ev67/events0000664000076400007640000000436512175510132014717 00000000000000# Alpha EV-67 Events # event:0x00 counters:0 um:zero minimum:500 name:CYCLES : Total cycles event:0x01 counters:1 um:zero minimum:500 name:DELAYED_CYCLES : Cycles of delayed retire pointer advance # FIXME: bug carried over event:0x00 counters:0,1 um:zero minimum:500 name:RETIRED : Retired instructions event:0x02 counters:1 um:zero minimum:500 name:BCACHE_MISS : Bcache misses/long probe latency event:0x03 counters:1 um:zero minimum:500 name:MBOX_REPLAY : Mbox replay traps # FIXME: all the below used PM_CTR event:0x04 counters:0 um:zero minimum:500 name:STALLED_0 : PCTR0 triggered; stalled between fetch and map stages event:0x05 counters:0 um:zero minimum:500 name:TAKEN_0 : PCTR0 triggered; branch was not mispredicted and taken event:0x06 counters:0 um:zero minimum:500 name:MISPREDICT_0 : PCTR0 triggered; branch was mispredicted event:0x07 counters:0 um:zero minimum:500 name:ITB_MISS_0 : PCTR0 triggered; ITB miss event:0x08 counters:0 um:zero minimum:500 name:DTB_MISS_0 : PCTR0 triggered; DTB miss event:0x09 counters:0 um:zero minimum:500 name:REPLAY_0 : PCTR0 triggered; replay trap event:0x0a counters:0 um:zero minimum:500 name:LOAD_STORE_0 : PCTR0 triggered; load-store order replay trap event:0x0b counters:0 um:zero minimum:500 name:ICACHE_MISS_0 : PCTR0 triggered; Icache miss event:0x0c counters:0 um:zero minimum:500 name:UNALIGNED_0 : PCTR0 triggered; unaligned load/store trap event:0x0d counters:0 um:zero minimum:500 name:STALLED_1 : PCTR1 triggered; stalled between fetch and map stages event:0x0e counters:0 um:zero minimum:500 name:TAKEN_1 : PCTR1 triggered; branch was not mispredicted and taken event:0x0f counters:0 um:zero minimum:500 name:MISPREDICT_1 : PCTR1 triggered; branch was mispredicted event:0x10 counters:0 um:zero minimum:500 name:ITB_MISS_1 : PCTR1 triggered; ITB miss event:0x11 counters:0 um:zero minimum:500 name:DTB_MISS_1 : PCTR1 triggered; DTB miss event:0x12 counters:0 um:zero minimum:500 name:REPLAY_1 : PCTR1 triggered; replay trap event:0x13 counters:0 um:zero minimum:500 name:LOAD_STORE_1 : PCTR1 triggered; load-store order replay trap event:0x14 counters:0 um:zero minimum:500 name:ICACHE_MISS_1 : PCTR1 triggered; Icache miss event:0x15 counters:0 um:zero minimum:500 name:UNALIGNED_1 : PCTR1 triggered; unaligned load/store trap oprofile-0.9.9/events/alpha/ev67/unit_masks0000664000076400007640000000013312175510132015555 00000000000000# Alpha EV-67 possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/s390/0000775000076400007640000000000012175511556012375 500000000000000oprofile-0.9.9/events/s390/zEC12/0000775000076400007640000000000012175511557013222 500000000000000oprofile-0.9.9/events/s390/zEC12/events0000664000076400007640000000046212175510132014357 00000000000000# Copyright OProfile authors # Copyright (c) International Business Machines, 2013. # Contributed by Andreas Krebbel . # # IBM Enterprise EC12 Basic Mode Sampling events # event:0x00 counters:0 um:zero minimum:19264 name:HWSAMPLING : Sampling using Basic Mode Hardware Sampling oprofile-0.9.9/events/s390/zEC12/unit_masks0000664000076400007640000000033012175510132015222 00000000000000# Copyright OProfile authors # Copyright (c) International Business Machines, 2013. # Contributed by Andreas Krebbel . # # S/390 Basic Mode Hardware Sampling unit masks # include:s390/z10 oprofile-0.9.9/events/s390/z196/0000775000076400007640000000000012175511557013107 500000000000000oprofile-0.9.9/events/s390/z196/events0000664000076400007640000000032612175510132014243 00000000000000# Copyright OProfile authors # Copyright (c) International Business Machines, 2011. # Contributed by Andreas Krebbel . # # zEnterprise z196 Basic Mode Sampling events # include:s390/z10 oprofile-0.9.9/events/s390/z196/unit_masks0000664000076400007640000000033112175510132015110 00000000000000# Copyright OProfile authors# # Copyright (c) International Business Machines, 2011. # Contributed by Andreas Krebbel . # # S/390 Basic Mode Hardware Sampling unit masks # include:s390/z10 oprofile-0.9.9/events/s390/z10/0000775000076400007640000000000012175511557013010 500000000000000oprofile-0.9.9/events/s390/z10/events0000664000076400007640000000045412175510132014146 00000000000000# Copyright OProfile authors # Copyright (c) International Business Machines, 2011. # Contributed by Andreas Krebbel . # # IBM System z10 Basic Mode Sampling events # event:0x00 counters:0 um:zero minimum:2202 name:HWSAMPLING : Sampling using Basic Mode Hardware Sampling oprofile-0.9.9/events/s390/z10/unit_masks0000664000076400007640000000037712175510132015023 00000000000000# Copyright OProfile authors# # Copyright (c) International Business Machines, 2011. # Contributed by Andreas Krebbel . # # S/390 Basic Mode Hardware Sampling unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/avr32/0000775000076400007640000000000012175511557012635 500000000000000oprofile-0.9.9/events/avr32/events0000664000076400007640000000462512175510132013777 00000000000000# AVR32 events # event:0x00 counters:1,2 um:zero minimum:500 name:IFU_IFETCH_MISS : number of instruction fetch misses event:0x01 counters:1,2 um:zero minimum:500 name:CYCLES_IFU_MEM_STALL : cycles instruction fetch pipe is stalled event:0x02 counters:1,2 um:zero minimum:500 name:CYCLES_DATA_STALL : cycles stall due to data dependency event:0x03 counters:1,2 um:zero minimum:500 name:ITLB_MISS : number of Instruction TLB misses event:0x04 counters:1,2 um:zero minimum:500 name:DTLB_MISS : number of Data TLB misses event:0x05 counters:1,2 um:zero minimum:500 name:BR_INST_EXECUTED : branch instruction executed w/ or w/o program flow change event:0x06 counters:1,2 um:zero minimum:500 name:BR_INST_MISS_PRED : branch mispredicted event:0x07 counters:1,2 um:zero minimum:500 name:INSN_EXECUTED : instructions executed event:0x08 counters:1,2 um:zero minimum:500 name:DCACHE_WBUF_FULL : data cache write buffers full event:0x09 counters:1,2 um:zero minimum:500 name:CYCLES_DCACHE_WBUF_FULL : cycles stalled due to data cache write buffers full event:0x0a counters:1,2 um:zero minimum:500 name:DCACHE_READ_MISS : data cache read miss event:0x0b counters:1,2 um:zero minimum:500 name:CYCLES_DCACHE_READ_MISS : cycles stalled due to data cache read miss event:0x0c counters:1,2 um:zero minimum:500 name:WRITE_ACCESS : write access event:0x0d counters:1,2 um:zero minimum:500 name:CYCLES_WRITE_ACCESS : cycles when write access is ongoing event:0x0e counters:1,2 um:zero minimum:500 name:READ_ACCESS : read access event:0x0f counters:1,2 um:zero minimum:500 name:CYCLES_READ_ACCESS : cycles when read access is ongoing event:0x10 counters:1,2 um:zero minimum:500 name:CACHE_STALL : read or write access that stalled event:0x11 counters:1,2 um:zero minimum:500 name:CYCLES_CACHE_STALL : cycles stalled doing read or write access event:0x12 counters:1,2 um:zero minimum:500 name:DCACHE_ACCESS : data cache access event:0x13 counters:1,2 um:zero minimum:500 name:CYCLES_DCACHE_ACCESS : cycles when data cache access is ongoing event:0x14 counters:1,2 um:zero minimum:500 name:DCACHE_WB : data cache line writeback event:0x15 counters:1,2 um:zero minimum:500 name:ACCUMULATOR_HIT : accumulator cache hit event:0x16 counters:1,2 um:zero minimum:500 name:ACCUMULATOR_MISS : accumulator cache miss event:0x17 counters:1,2 um:zero minimum:500 name:BTB_HIT : branch target buffer hit event:0xff counters:0 um:zero minimum:500 name:CPU_CYCLES : clock cycles counter oprofile-0.9.9/events/avr32/unit_masks0000664000076400007640000000015412175510132014641 00000000000000# AVR32 performance counters possible unit masks # name:zero type:mandatory default:0x00 0x00 No unit mask oprofile-0.9.9/events/arm/0000775000076400007640000000000012175511556012456 500000000000000oprofile-0.9.9/events/arm/armv7-common/0000775000076400007640000000000012175511557015001 500000000000000oprofile-0.9.9/events/arm/armv7-common/events0000664000076400007640000000655112175510132016143 00000000000000# Common ARM V7 events # From ARM ARM # See Sections 30.8.* for definitions of terms and events used here. # event:0x00 counters:1,2,3,4,5,6 um:zero minimum:500 name:SW_INCR : Software increment of PMNC registers event:0x01 counters:1,2,3,4,5,6 um:zero minimum:500 name:L1I_CACHE_REFILL : Level 1 instruction cache refill event:0x02 counters:1,2,3,4,5,6 um:zero minimum:500 name:L1I_TLB_REFILL : Level 1 instruction TLB refill event:0x03 counters:1,2,3,4,5,6 um:zero minimum:500 name:L1D_CACHE_REFILL : Level 1 data cache refill event:0x04 counters:1,2,3,4,5,6 um:zero minimum:500 name:L1D_CACHE : Level 1 data cache access event:0x05 counters:1,2,3,4,5,6 um:zero minimum:500 name:L1D_TLB_REFILL : Level 1 data TLB refill event:0x06 counters:1,2,3,4,5,6 um:zero minimum:500 name:LD_RETIRED : Load instruction architecturally executed, condition code pass event:0x07 counters:1,2,3,4,5,6 um:zero minimum:500 name:ST_RETIRED : Store instruction architecturally executed, condition code pass event:0x08 counters:1,2,3,4,5,6 um:zero minimum:500 name:INST_RETIRED : Instruction architecturally executed event:0x09 counters:1,2,3,4,5,6 um:zero minimum:500 name:EXC_TAKEN : Exception taken event:0x0A counters:1,2,3,4,5,6 um:zero minimum:500 name:EXC_RETURN : Exception return instruction architecturally executed event:0x0B counters:1,2,3,4,5,6 um:zero minimum:500 name:CID_WRITE_RETIRED : Write to CONTEXTIDR register architecturally executed event:0x0C counters:1,2,3,4,5,6 um:zero minimum:500 name:PC_WRITE_RETIRED : Software change of the PC architecturally executed, condition code pass event:0x0D counters:1,2,3,4,5,6 um:zero minimum:500 name:BR_IMMED_RETIRED : Immediate branch instruction architecturally executed event:0x0E counters:1,2,3,4,5,6 um:zero minimum:500 name:BR_RETURN_RETIRED : Procedure return instruction architecturally executed, condition code pass event:0x0F counters:1,2,3,4,5,6 um:zero minimum:500 name:UNALIGNED_LDST_RETIRED : Unaligned load or store instruction architecturally executed, condition code pass event:0x10 counters:1,2,3,4,5,6 um:zero minimum:500 name:BR_MIS_PRED : Mispredicted or not predicted branch speculatively executed event:0x12 counters:1,2,3,4,5,6 um:zero minimum:500 name:BR_PRED : Predictable branch speculatively executed event:0x13 counters:1,2,3,4,5,6 um:zero minimum:500 name:MEM_ACCESS : Data memory access event:0x14 counters:1,2,3,4,5,6 um:zero minimum:500 name:L1I_CACHE : Level 1 instruction cache access event:0x15 counters:1,2,3,4,5,6 um:zero minimum:500 name:L1D_CACHE_WB : Level 1 data cache write-back event:0x16 counters:1,2,3,4,5,6 um:zero minimum:500 name:L2D_CACHE : Level 2 data cache access event:0x17 counters:1,2,3,4,5,6 um:zero minimum:500 name:L2D_CACHE_REFILL : Level 2 data cache refill event:0x18 counters:1,2,3,4,5,6 um:zero minimum:500 name:L2D_CACHE_WB : Level 2 data cache write-back event:0x19 counters:1,2,3,4,5,6 um:zero minimum:500 name:BUS_ACCESS : Bus access event:0x1A counters:1,2,3,4,5,6 um:zero minimum:500 name:MEMORY_ERROR : Local memory error event:0x1B counters:1,2,3,4,5,6 um:zero minimum:500 name:INST_SPEC : Instruction speculatively executed event:0x1C counters:1,2,3,4,5,6 um:zero minimum:500 name:TTBR_WRITE_RETIRED : Write to TTBR architecturally executed, condition code pass event:0x1D counters:1,2,3,4,5,6 um:zero minimum:500 name:BUS_CYCLES : Bus cycle event:0xFF counters:0 um:zero minimum:100000 name:CPU_CYCLES : CPU cycle oprofile-0.9.9/events/arm/armv7-common/unit_masks0000664000076400007640000000013512175510132017004 00000000000000# ARM V7 PMNC possible unit masks # name:zero type:mandatory default:0x00 0x00 No unit mask oprofile-0.9.9/events/arm/armv6/0000775000076400007640000000000012175511557013512 500000000000000oprofile-0.9.9/events/arm/armv6/events0000664000076400007640000000421312175510132014645 00000000000000# ARM V6 events # event:0x00 counters:0,1 um:zero minimum:500 name:IFU_IFETCH_MISS : number of instruction fetch misses event:0x01 counters:0,1 um:zero minimum:500 name:CYCLES_IFU_MEM_STALL : cycles instruction fetch pipe is stalled event:0x02 counters:0,1 um:zero minimum:500 name:CYCLES_DATA_STALL : cycles stall occurs for due to data dependency event:0x03 counters:0,1 um:zero minimum:500 name:ITLB_MISS : number of Instruction MicroTLB misses event:0x04 counters:0,1 um:zero minimum:500 name:DTLB_MISS : number of Data MicroTLB misses event:0x05 counters:0,1 um:zero minimum:500 name:BR_INST_EXECUTED : branch instruction executed w/ or w/o program flow change event:0x06 counters:0,1 um:zero minimum:500 name:BR_INST_MISS_PRED : branch mispredicted event:0x07 counters:0,1 um:zero minimum:500 name:INSN_EXECUTED : instructions executed event:0x09 counters:0,1 um:zero minimum:500 name:DCACHE_ACCESS : data cache access, cacheable locations event:0x0a counters:0,1 um:zero minimum:500 name:DCACHE_ACCESS_ALL : data cache access, all locations event:0x0b counters:0,1 um:zero minimum:500 name:DCACHE_MISS : data cache miss event:0x0c counters:0,1 um:zero minimum:500 name:DCACHE_WB : data cache writeback, 1 event for every half cacheline event:0x0d counters:0,1 um:zero minimum:500 name:PC_CHANGE : number of times the program counter was changed without a mode switch event:0x0f counters:0,1 um:zero minimum:500 name:TLB_MISS : Main TLB miss event:0x10 counters:0,1 um:zero minimum:500 name:EXP_EXTERNAL : Explict external data access event:0x11 counters:0,1 um:zero minimum:500 name:LSU_STALL : cycles stalled because Load Store request queque is full event:0x12 counters:0,1 um:zero minimum:500 name:WRITE_DRAIN : Times write buffer was drained event:0x20 counters:0,1 um:zero minimum:500 name:ETMEXTOUT0 : nuber of cycles ETMEXTOUT[0] signal was asserted event:0x21 counters:0,1 um:zero minimum:500 name:ETMEXTOUT1 : nuber of cycles ETMEXTOUT[1] signal was asserted event:0x22 counters:0,1 um:zero minimum:500 name:ETMEXTOUT_BOTH : nuber of cycles both ETMEXTOUT [0] and [1] were asserted * 2 event:0xff counters:0,1,2 um:zero minimum:500 name:CPU_CYCLES : clock cycles counter oprofile-0.9.9/events/arm/armv6/unit_masks0000664000076400007640000000013412175510132015514 00000000000000# ARM V6 PMU possible unit masks # name:zero type:mandatory default:0x00 0x00 No unit mask oprofile-0.9.9/events/arm/armv7-ca9/0000775000076400007640000000000012175511557014165 500000000000000oprofile-0.9.9/events/arm/armv7-ca9/events0000664000076400007640000001332412175510132015323 00000000000000# ARM Cortex A9 events # From Cortex A9 TRM # include:arm/armv7-common event:0x40 counters:1,2,3,4,5,6 um:zero minimum:500 name:JAVA_BC_EXEC : Number of Java bytecodes decoded, including speculative ones event:0x41 counters:1,2,3,4,5,6 um:zero minimum:500 name:JAVA_SFTBC_EXEC : Number of software Java bytecodes decoded, including speculative ones event:0x42 counters:1,2,3,4,5,6 um:zero minimum:500 name:JAVA_BB_EXEC : Number of Jazelle taken branches executed, including those flushed due to a previous load/store which aborts late event:0x50 counters:1,2,3,4,5,6 um:zero minimum:500 name:CO_LF_MISS : Number of coherent linefill requests which miss in all other CPUs, meaning that the request is sent to external memory event:0x51 counters:1,2,3,4,5,6 um:zero minimum:500 name:CO_LF_HIT : Number of coherent linefill requests which hit in another CPU, meaning that the linefill data is fetched directly from the relevant cache event:0x60 counters:1,2,3,4,5,6 um:zero minimum:500 name:IC_DEP_STALL : Number of cycles where CPU is ready to accept new instructions but does not receive any because of the instruction side not being able to provide any and the instruction cache is currently performing at least one linefill event:0x61 counters:1,2,3,4,5,6 um:zero minimum:500 name:DC_DEP_STALL : Number of cycles where CPU has some instructions that it cannot issue to any pipeline and the LSU has at least one pending linefill request but no pending TLB requests event:0x62 counters:1,2,3,4,5,6 um:zero minimum:500 name:STALL_MAIN_TLB : Number of cycles where CPU is stalled waiting for completion of translation table walk from the main TLB event:0x63 counters:1,2,3,4,5,6 um:zero minimum:500 name:STREX_PASS : Number of STREX instructions architecturally executed and passed event:0x64 counters:1,2,3,4,5,6 um:zero minimum:500 name:STREX_FAILS : Number of STREX instructions architecturally executed and failed event:0x65 counters:1,2,3,4,5,6 um:zero minimum:500 name:DATA_EVICT : Number of eviction requests due to a linefill in the data cache event:0x66 counters:1,2,3,4,5,6 um:zero minimum:500 name:ISS_NO_DISP : Number of cycles where the issue stage does not dispatch any instruction event:0x67 counters:1,2,3,4,5,6 um:zero minimum:500 name:ISS_EMPTY : Number of cycles where the issue stage is empty event:0x68 counters:1,2,3,4,5,6 um:zero minimum:500 name:INS_RENAME : Number of instructions going through the Register Renaming stage event:0x6E counters:1,2,3,4,5,6 um:zero minimum:500 name:PRD_FN_RET : Number of procedure returns whose condition codes do not fail, excluding all exception returns event:0x70 counters:1,2,3,4,5,6 um:zero minimum:500 name:INS_MAIN_EXEC : Number of instructions being executed in main execution pipeline of the CPU, the multiply pipeline and the ALU pipeline event:0x71 counters:1,2,3,4,5,6 um:zero minimum:500 name:INS_SND_EXEC : Number of instructions being executed in the second execution pipeline (ALU) of the CPU event:0x72 counters:1,2,3,4,5,6 um:zero minimum:500 name:INS_LSU : Number of instructions being executed in the Load/Store unit event:0x73 counters:1,2,3,4,5,6 um:zero minimum:500 name:INS_FP_RR : Number of floating-point instructions going through the Register Rename stage event:0x74 counters:1,2,3,4,5,6 um:zero minimum:500 name:INS_NEON_RR : Number of NEON instructions going through the Register Rename stage event:0x80 counters:1,2,3,4,5,6 um:zero minimum:500 name:STALL_PLD : Number of cycles where CPU is stalled because PLD slots are all full event:0x81 counters:1,2,3,4,5,6 um:zero minimum:500 name:STALL_WRITE : Number of cycles where CPU is stalled because data side is full and executing writes to external memory event:0x82 counters:1,2,3,4,5,6 um:zero minimum:500 name:STALL_INS_TLB : Number of cycles where CPU is stalled because of main TLB misses on requests issued by the instruction side event:0x83 counters:1,2,3,4,5,6 um:zero minimum:500 name:STALL_DATA_TLB : Number of cycles where CPU is stalled because of main TLB misses on requests issued by the data side event:0x84 counters:1,2,3,4,5,6 um:zero minimum:500 name:STALL_INS_UTLB : Number of cycles where CPU is stalled because of micro TLB misses on the instruction side event:0x85 counters:1,2,3,4,5,6 um:zero minimum:500 name:STALL_DATA_ULTB : Number of cycles where CPU is stalled because of micro TLB misses on the data side event:0x86 counters:1,2,3,4,5,6 um:zero minimum:500 name:STALL_DMB : Number of cycles where CPU is stalled due to executed of a DMB memory barrier event:0x8A counters:1,2,3,4,5,6 um:zero minimum:500 name:CLK_INT_EN : Number of cycles during which the integer core clock is enabled event:0x8B counters:1,2,3,4,5,6 um:zero minimum:500 name:CLK_DE_EN : Number of cycles during which the Data Engine clock is enabled event:0x90 counters:1,2,3,4,5,6 um:zero minimum:500 name:INS_ISB : Number of ISB instructions architecturally executed event:0x91 counters:1,2,3,4,5,6 um:zero minimum:500 name:INS_DSB : Number of DSB instructions architecturally executed event:0x92 counters:1,2,3,4,5,6 um:zero minimum:500 name:INS_DMB : Number of DMB instructions speculatively executed event:0x93 counters:1,2,3,4,5,6 um:zero minimum:500 name:EXT_IRQ : Number of external interrupts executed by the processor event:0xA0 counters:1,2,3,4,5,6 um:zero minimum:500 name:PLE_CL_REQ_CMP : PLE cache line request completed event:0xA1 counters:1,2,3,4,5,6 um:zero minimum:500 name:PLE_CL_REQ_SKP : PLE cache line request skipped event:0xA2 counters:1,2,3,4,5,6 um:zero minimum:500 name:PLE_FIFO_FLSH : PLE FIFO flush event:0xA3 counters:1,2,3,4,5,6 um:zero minimum:500 name:PLE_REQ_COMP : PLE request completed event:0xA4 counters:1,2,3,4,5,6 um:zero minimum:500 name:PLE_FIFO_OF : PLE FIFO overflow event:0xA5 counters:1,2,3,4,5,6 um:zero minimum:500 name:PLE_REQ_PRG : PLE request programmed oprofile-0.9.9/events/arm/armv7-ca9/unit_masks0000664000076400007640000000013512175510132016170 00000000000000# ARM V7 PMNC possible unit masks # name:zero type:mandatory default:0x00 0x00 No unit mask oprofile-0.9.9/events/arm/armv7-scorpion/0000775000076400007640000000000012175511557015345 500000000000000oprofile-0.9.9/events/arm/armv7-scorpion/events0000664000076400007640000002171412175510132016505 00000000000000# ARM V7 events # From Scorpion Processor Family Programmer's Reference Manual (PRM) # include:arm/armv7-common event:0x4c counters:1,2,3,4 um:zero minimum:500 name:ICACHE_EXPL_INV : I-cache explicit invalidates event:0x4d counters:1,2,3,4 um:zero minimum:500 name:ICACHE_MISS : I-cache misses event:0x4e counters:1,2,3,4 um:zero minimum:500 name:ICACHE_ACCESS : I-cache accesses event:0x4f counters:1,2,3,4 um:zero minimum:500 name:ICACHE_CACHEREQ_L2 : I-cache cacheable requests to L2 event:0x50 counters:1,2,3,4 um:zero minimum:500 name:ICACHE_NOCACHE_L2 : I-cache non-cacheable requests to L2 event:0x51 counters:1,2,3,4 um:zero minimum:500 name:HIQUP_NOPED : Conditional instructions HIQUPs NOPed event:0x52 counters:1,2,3,4 um:zero minimum:500 name:DATA_ABORT : Interrupts and Exceptions Data Abort event:0x53 counters:1,2,3,4 um:zero minimum:500 name:IRQ : Interrupts and Exceptions IRQ event:0x54 counters:1,2,3,4 um:zero minimum:500 name:FIQ : Interrupts and Exceptions FIQ event:0x55 counters:1,2,3,4 um:zero minimum:500 name:ALL_EXCPT : Interrupts and Exceptions All interrupts event:0x56 counters:1,2,3,4 um:zero minimum:500 name:UNDEF : Interrupts and Exceptions Undefined event:0x57 counters:1,2,3,4 um:zero minimum:500 name:SVC : Interrupts and Exceptions SVC event:0x58 counters:1,2,3,4 um:zero minimum:500 name:SMC : Interrupts and Exceptions SMC event:0x59 counters:1,2,3,4 um:zero minimum:500 name:PREFETCH_ABORT : Interrupts and Exceptions Prefetch Abort event:0x5a counters:1,2,3,4 um:zero minimum:500 name:INDEX_CHECK : Interrupts and Exceptions Index Check event:0x5b counters:1,2,3,4 um:zero minimum:500 name:NULL_CHECK : Interrupts and Exceptions Null Check event:0x5c counters:1,2,3,4 um:zero minimum:500 name:EXPL_ICIALLU : I-cache and BTAC Invalidates Explicit ICIALLU event:0x5d counters:1,2,3,4 um:zero minimum:500 name:IMPL_ICIALLU : I-cache and BTAC Invalidates Implicit ICIALLU event:0x5e counters:1,2,3,4 um:zero minimum:500 name:NONICIALLU_BTAC_INV : I-cache and BTAC Invalidates Non-ICIALLU BTAC Invalidate event:0x5f counters:1,2,3,4 um:zero minimum:500 name:ICIMVAU_IMPL_ICIALLU : I-cache and BTAC Invalidates ICIMVAU-implied ICIALLU event:0x60 counters:1,2,3,4 um:zero minimum:500 name:SPIPE_ONLY_CYCLES : Issue S-pipe only issue cycles event:0x61 counters:1,2,3,4 um:zero minimum:500 name:XPIPE_ONLY_CYCLES : Issue X-pipe only issue cycles event:0x62 counters:1,2,3,4 um:zero minimum:500 name:DUAL_CYCLES : Issue dual issue cycles event:0x63 counters:1,2,3,4 um:zero minimum:500 name:DISPATCH_ANY_CYCLES : Dispatch any dispatch cycles event:0x64 counters:1,2,3,4 um:zero minimum:500 name:FIFO_FULLBLK_CMT : Commits Trace FIFO full Blk CMT event:0x65 counters:1,2,3,4 um:zero minimum:500 name:FAIL_COND_INST : Conditional instructions failing conditional instrs (excluding branches) event:0x66 counters:1,2,3,4 um:zero minimum:500 name:PASS_COND_INST : Conditional instructions passing conditional instrs (excluding branches) event:0x67 counters:1,2,3,4 um:zero minimum:500 name:ALLOW_VU_CLK : Unit Clock Gating Allow VU Clks event:0x68 counters:1,2,3,4 um:zero minimum:500 name:VU_IDLE : Unit Clock Gating VU Idle event:0x69 counters:1,2,3,4 um:zero minimum:500 name:ALLOW_L2_CLK : Unit Clock Gating Allow L2 Clks event:0x6a counters:1,2,3,4 um:zero minimum:500 name:L2_IDLE : Unit Clock Gating L2 Idle event:0x6b counters:1,2,3,4 um:zero minimum:500 name:DTLB_IMPL_INV_SCTLR_DACR : DTLB implicit invalidates writes to SCTLR and DACR event:0x6c counters:1,2,3,4 um:zero minimum:500 name:DTLB_EXPL_INV : DTLB explicit invalidates event:0x6d counters:1,2,3,4 um:zero minimum:500 name:DTLB_MISS : DTLB misses event:0x6e counters:1,2,3,4 um:zero minimum:500 name:DTLB_ACCESS : DTLB accesses event:0x6f counters:1,2,3,4 um:zero minimum:500 name:SCORPION_ITLB_MISS : ITLB misses event:0x70 counters:1,2,3,4 um:zero minimum:500 name:ITLB_IMPL_INV : ITLB implicit ITLB invalidates event:0x71 counters:1,2,3,4 um:zero minimum:500 name:ITLB_EXPL_INV : ITLB explicit ITLB invalidates event:0x72 counters:1,2,3,4 um:zero minimum:500 name:UTLB_D_MISS : UTLB d-side misses event:0x73 counters:1,2,3,4 um:zero minimum:500 name:UTLB_D_ACCESS : UTLB d-side accesses event:0x74 counters:1,2,3,4 um:zero minimum:500 name:UTLB_I_MISS : UTLB i-side misses event:0x75 counters:1,2,3,4 um:zero minimum:500 name:UTLB_I_ACCESS : UTLB i-side accesses event:0x76 counters:1,2,3,4 um:zero minimum:500 name:UTLB_INV_ASID : UTLB invalidate by ASID event:0x77 counters:1,2,3,4 um:zero minimum:500 name:UTLB_INV_MVA : UTLB invalidate by MVA event:0x78 counters:1,2,3,4 um:zero minimum:500 name:UTLB_INV_ALL : UTLB invalidate all event:0x79 counters:1,2,3,4 um:zero minimum:500 name:S2_HOLD_RDQ_UNAVAIL : S2 hold RDQ unavail event:0x7a counters:1,2,3,4 um:zero minimum:500 name:S2_HOLD : S2 hold S2 hold event:0x7b counters:1,2,3,4 um:zero minimum:500 name:S2_HOLD_DEV_OP : S2 hold device op event:0x7c counters:1,2,3,4 um:zero minimum:500 name:S2_HOLD_ORDER : S2 hold strongly ordered op event:0x7d counters:1,2,3,4 um:zero minimum:500 name:S2_HOLD_BARRIER : S2 hold barrier event:0x7e counters:1,2,3,4 um:zero minimum:500 name:SCORPION_VIU_DUAL_CYCLE : Scorpion VIU dual cycle event:0x7f counters:1,2,3,4 um:zero minimum:500 name:SCORPION_VIU_SINGLE_CYCLE : Scorpion VIU single cycle event:0x80 counters:1,2,3,4 um:zero minimum:500 name:SCORPION_VX_PIPE_WAR_STALL_CYCLES : Scorpion VX pipe WAR cycles event:0x81 counters:1,2,3,4 um:zero minimum:500 name:SCORPION_VX_PIPE_WAW_STALL_CYCLES : Scorpion VX pipe WAW cycles event:0x82 counters:1,2,3,4 um:zero minimum:500 name:SCORPION_VX_PIPE_RAW_STALL_CYCLES : Scorpion VX pipe RAW cycles event:0x83 counters:1,2,3,4 um:zero minimum:500 name:SCORPION_VX_PIPE_LOAD_USE_STALL : Scorpion VX pipe load use stall event:0x84 counters:1,2,3,4 um:zero minimum:500 name:SCORPION_VS_PIPE_WAR_STALL_CYCLES : Scorpion VS pipe WAR stall cycles event:0x85 counters:1,2,3,4 um:zero minimum:500 name:SCORPION_VS_PIPE_WAW_STALL_CYCLES : Scorpion VS pipe WAW stall cycles event:0x86 counters:1,2,3,4 um:zero minimum:500 name:SCORPION_VS_PIPE_RAW_STALL_CYCLES : Scorpion VS pipe RAW stall cycles event:0x87 counters:1,2,3,4 um:zero minimum:500 name:SCORPION_EXCEPTIONS_INV_OPERATION : Scorpion invalid operation exceptions event:0x88 counters:1,2,3,4 um:zero minimum:500 name:SCORPION_EXCEPTIONS_DIV_BY_ZERO : Scorpion divide by zero exceptions event:0x89 counters:1,2,3,4 um:zero minimum:500 name:SCORPION_COND_INST_FAIL_VX_PIPE : Scorpion conditional instruction fail VX pipe event:0x8a counters:1,2,3,4 um:zero minimum:500 name:SCORPION_COND_INST_FAIL_VS_PIPE : Scorpion conditional instruction fail VS pipe event:0x8b counters:1,2,3,4 um:zero minimum:500 name:SCORPION_EXCEPTIONS_OVERFLOW : Scorpion overflow exceptions event:0x8c counters:1,2,3,4 um:zero minimum:500 name:SCORPION_EXCEPTIONS_UNDERFLOW : Scorpion underflow exceptions event:0x8d counters:1,2,3,4 um:zero minimum:500 name:SCORPION_EXCEPTIONS_DENORM : Scorpion denorm exceptions event:0x8e counters:1,2,3,4 um:zero minimum:500 name:BANK_AB_HIT : L2 hit rates bank A/B hits event:0x8f counters:1,2,3,4 um:zero minimum:500 name:BANK_AB_ACCESS : L2 hit rates bank A/B accesses event:0x90 counters:1,2,3,4 um:zero minimum:500 name:BANK_CD_HIT : L2 hit rates bank C/D hits event:0x91 counters:1,2,3,4 um:zero minimum:500 name:BANK_CD_ACCESS : L2 hit rates bank C/D accesses event:0x92 counters:1,2,3,4 um:zero minimum:500 name:BANK_AB_DSIDE_HIT : L2 hit rates bank A/B d-side hits event:0x93 counters:1,2,3,4 um:zero minimum:500 name:BANK_AB_DSIDE_ACCESS : L2 hit rates bank A/B d-side accesses event:0x94 counters:1,2,3,4 um:zero minimum:500 name:BANK_CD_DSIDE_HIT : L2 hit rates bank C/D d-side hits event:0x95 counters:1,2,3,4 um:zero minimum:500 name:BANK_CD_DSIDE_ACCESS : L2 hit rates bank C/D d-side accesses event:0x96 counters:1,2,3,4 um:zero minimum:500 name:BANK_AB_ISIDE_HIT : L2 hit rates bank A/B i-side hits event:0x97 counters:1,2,3,4 um:zero minimum:500 name:BANK_AB_ISIDE_ACCESS : L2 hit rates bank A/B i-side accesses event:0x98 counters:1,2,3,4 um:zero minimum:500 name:BANK_CD_ISIDE_HIT : L2 hit rates bank C/D i-side hits event:0x99 counters:1,2,3,4 um:zero minimum:500 name:BANK_CD_ISIDE_ACCESS : L2 hit rates bank C/D i-side accesses event:0x9a counters:1,2,3,4 um:zero minimum:500 name:ISIDE_RD_WAIT : fills and castouts cycles that i-side RD requests wait on data from bus event:0x9b counters:1,2,3,4 um:zero minimum:500 name:DSIDE_RD_WAIT : fills and castouts cycles that d-side RD requests wait on data from bus event:0x9c counters:1,2,3,4 um:zero minimum:500 name:BANK_BYPASS_WRITE : fills and castouts bank bypass writes event:0x9d counters:1,2,3,4 um:zero minimum:500 name:BANK_AB_NON_CASTOUT : fills and castouts bank A/B non-castout writes to bus event:0x9e counters:1,2,3,4 um:zero minimum:500 name:BANK_AB_L2_CASTOUT : fills and castouts bank A/B L2 castouts (granules) event:0x9f counters:1,2,3,4 um:zero minimum:500 name:BANK_CD_NON_CASTOUT : fills and castouts bank C/D non-castout writes to bus event:0xa0 counters:1,2,3,4 um:zero minimum:500 name:BANK_CD_L2_CASTOUT : fills and castouts bank C/D L2 castouts (granules) oprofile-0.9.9/events/arm/armv7-scorpion/unit_masks0000664000076400007640000000013512175510132017350 00000000000000# ARM V7 PMNC possible unit masks # name:zero type:mandatory default:0x00 0x00 No unit mask oprofile-0.9.9/events/arm/armv7-ca15/0000775000076400007640000000000012175511557014242 500000000000000oprofile-0.9.9/events/arm/armv7-ca15/events0000664000076400007640000001145712175510132015405 00000000000000# ARM Cortex A15 events # From Cortex A15 TRM # include:arm/armv7-common event:0x40 counters:1,2,3,4,5,6 um:zero minimum:500 name:L1D_CACHE_LD : Level 1 data cache access, read event:0x41 counters:1,2,3,4,5,6 um:zero minimum:500 name:L1D_CACHE_ST : Level 1 data cache access, write event:0x42 counters:1,2,3,4,5,6 um:zero minimum:500 name:L1D_CACHE_REFILL_LD : Level 1 data cache refill, read event:0x43 counters:1,2,3,4,5,6 um:zero minimum:500 name:L1D_CACHE_REFILL_ST : Level 1 data cache refill, write event:0x46 counters:1,2,3,4,5,6 um:zero minimum:500 name:L1D_CACHE_WB_VICTIM : Level 1 data cache write-back, victim event:0x47 counters:1,2,3,4,5,6 um:zero minimum:500 name:L1D_CACHE_WB_CLEAN : Level 1 data cache write-back, cleaning and coherency event:0x48 counters:1,2,3,4,5,6 um:zero minimum:500 name:L1D_CACHE_INVAL : Level 1 data cache invalidate event:0x4C counters:1,2,3,4,5,6 um:zero minimum:500 name:L1D_TLB_REFILL_LD : Level 1 data TLB refill, read event:0x4D counters:1,2,3,4,5,6 um:zero minimum:500 name:L1D_TLB_REFILL_ST : Level 1 data TLB refill, write event:0x50 counters:1,2,3,4,5,6 um:zero minimum:500 name:L2D_CACHE_LD : Level 2 data cache access, read event:0x52 counters:1,2,3,4,5,6 um:zero minimum:500 name:L2D_CACHE_ST : Level 2 data cache access, write event:0x52 counters:1,2,3,4,5,6 um:zero minimum:500 name:L2D_CACHE_REFILL_LD : Level 2 data cache refill, read event:0x53 counters:1,2,3,4,5,6 um:zero minimum:500 name:L2D_CACHE_REFILL_ST : Level 2 data cache refill, write event:0x56 counters:1,2,3,4,5,6 um:zero minimum:500 name:L2D_CACHE_WB_VICTIM : Level 2 data cache write-back, victim event:0x57 counters:1,2,3,4,5,6 um:zero minimum:500 name:L2D_CACHE_WB_CLEAN : Level 2 data cache write-back, cleaning and coherency event:0x58 counters:1,2,3,4,5,6 um:zero minimum:500 name:L2D_CACHE_INVAL : Level 2 data cache invalidate event:0x60 counters:1,2,3,4,5,6 um:zero minimum:500 name:BUS_ACCESS_LD : Bus access, read event:0x61 counters:1,2,3,4,5,6 um:zero minimum:500 name:BUS_ACCESS_ST : Bus access, write event:0x62 counters:1,2,3,4,5,6 um:zero minimum:500 name:BUS_ACCESS_SHARED : Bus access, normal, cacheable, shareable event:0x63 counters:1,2,3,4,5,6 um:zero minimum:500 name:BUS_ACCESS_NOT_SHARED : Bus access, not normal, cacheable, shareable event:0x64 counters:1,2,3,4,5,6 um:zero minimum:500 name:BUS_ACCESS_NORMAL : Bus access, normal event:0x65 counters:1,2,3,4,5,6 um:zero minimum:500 name:BUS_ACCESS_PERIPH : Bus access, peripheral event:0x66 counters:1,2,3,4,5,6 um:zero minimum:500 name:MEM_ACCESS_LD : Data memory access, read event:0x67 counters:1,2,3,4,5,6 um:zero minimum:500 name:MEM_ACCESS_ST : Data memory access, write event:0x68 counters:1,2,3,4,5,6 um:zero minimum:500 name:UNALIGNED_LD_SPEC : Unaligned access, read event:0x69 counters:1,2,3,4,5,6 um:zero minimum:500 name:UNALIGNED_ST_SPEC : Unaligned access, write event:0x6A counters:1,2,3,4,5,6 um:zero minimum:500 name:UNALIGNED_LDST_SPEC : Unaligned access event:0x6C counters:1,2,3,4,5,6 um:zero minimum:500 name:LDREX_SPEC : ldrex instruction speculatively executed event:0x6D counters:1,2,3,4,5,6 um:zero minimum:500 name:STREX_PASS_SPEC : strex instruction speculatively executed, pass event:0x6E counters:1,2,3,4,5,6 um:zero minimum:500 name:STREX_FAIL_SPEC : strex instruction speculatively executed, fail event:0x70 counters:1,2,3,4,5,6 um:zero minimum:500 name:LD_SPEC : Load instruction speculatively executed event:0x71 counters:1,2,3,4,5,6 um:zero minimum:500 name:ST_SPEC : Store instruction speculatively executed event:0x72 counters:1,2,3,4,5,6 um:zero minimum:500 name:LDST_SPEC : Load or store instruction speculatively executed event:0x73 counters:1,2,3,4,5,6 um:zero minimum:500 name:DP_SPEC : Integer data processing instruction speculatively executed event:0x74 counters:1,2,3,4,5,6 um:zero minimum:500 name:ASE_SPEC : Advanced SIMD extension instruction speculatively executed event:0x75 counters:1,2,3,4,5,6 um:zero minimum:500 name:VFP_SPEC : Floating-point extension instruction speculatively executed event:0x76 counters:1,2,3,4,5,6 um:zero minimum:500 name:PC_WRITE_SPEC : Software change of the PC instruction speculatively executed event:0x78 counters:1,2,3,4,5,6 um:zero minimum:500 name:BR_IMMED_SPEC : Immediate branch instruction speculatively executed event:0x79 counters:1,2,3,4,5,6 um:zero minimum:500 name:BR_RETURN_SPEC : Procedure return instruction speculatively executed event:0x7A counters:1,2,3,4,5,6 um:zero minimum:500 name:BR_INDIRECT_SPEC : Indirect branch instruction speculatively executed event:0x7C counters:1,2,3,4,5,6 um:zero minimum:500 name:ISB_SPEC : ISB barrier instruction speculatively executed event:0x7D counters:1,2,3,4,5,6 um:zero minimum:500 name:DSB_SPEC : DSB barrier instruction speculatively executed event:0x7E counters:1,2,3,4,5,6 um:zero minimum:500 name:DMB_SPEC : DMB barrier instruction speculatively executed oprofile-0.9.9/events/arm/armv7-ca15/unit_masks0000664000076400007640000000013512175510132016245 00000000000000# ARM V7 PMNC possible unit masks # name:zero type:mandatory default:0x00 0x00 No unit mask oprofile-0.9.9/events/arm/armv7-ca7/0000775000076400007640000000000012175511557014163 500000000000000oprofile-0.9.9/events/arm/armv7-ca7/events0000664000076400007640000000066412175510132015324 00000000000000# ARM Cortex A7 events # From Cortex A7 TRM # include:arm/armv7-common include:arm/armv7-ca5 event:0x60 counters:1,2,3,4,5,6 um:zero minimum:500 name:BUS_ACCESS_LD : Bus access, read event:0x61 counters:1,2,3,4,5,6 um:zero minimum:500 name:BUS_ACCESS_ST : Bus access, write event:0xCA counters:1,2,3,4,5,6 um:zero minimum:500 name:LOCAL_CLUSTER_SNOOP : Data read transaction snooped from another processor within the local A7 cluster oprofile-0.9.9/events/arm/armv7-ca7/unit_masks0000664000076400007640000000013512175510132016166 00000000000000# ARM V7 PMNC possible unit masks # name:zero type:mandatory default:0x00 0x00 No unit mask oprofile-0.9.9/events/arm/armv7-scorpionmp/0000775000076400007640000000000012175511557015702 500000000000000oprofile-0.9.9/events/arm/armv7-scorpionmp/events0000664000076400007640000001600512175510132017037 00000000000000# ARM V7 events # From Scorpion Processor Family Programmer's Reference Manual (PRM) # include:arm/armv7-common event:0x4c counters:1,2,3,4 um:zero minimum:500 name:ICACHE_EXPL_INV : I-cache explicit invalidates event:0x4d counters:1,2,3,4 um:zero minimum:500 name:ICACHE_MISS : I-cache misses event:0x4e counters:1,2,3,4 um:zero minimum:500 name:ICACHE_ACCESS : I-cache accesses event:0x4f counters:1,2,3,4 um:zero minimum:500 name:ICACHE_CACHEREQ_L2 : I-cache cacheable requests to L2 event:0x50 counters:1,2,3,4 um:zero minimum:500 name:ICACHE_NOCACHE_L2 : I-cache non-cacheable requests to L2 event:0x51 counters:1,2,3,4 um:zero minimum:500 name:HIQUP_NOPED : Conditional instructions HIQUPs NOPed event:0x52 counters:1,2,3,4 um:zero minimum:500 name:DATA_ABORT : Interrupts and Exceptions Data Abort event:0x53 counters:1,2,3,4 um:zero minimum:500 name:IRQ : Interrupts and Exceptions IRQ event:0x54 counters:1,2,3,4 um:zero minimum:500 name:FIQ : Interrupts and Exceptions FIQ event:0x55 counters:1,2,3,4 um:zero minimum:500 name:ALL_EXCPT : Interrupts and Exceptions All interrupts event:0x56 counters:1,2,3,4 um:zero minimum:500 name:UNDEF : Interrupts and Exceptions Undefined event:0x57 counters:1,2,3,4 um:zero minimum:500 name:SVC : Interrupts and Exceptions SVC event:0x58 counters:1,2,3,4 um:zero minimum:500 name:SMC : Interrupts and Exceptions SMC event:0x59 counters:1,2,3,4 um:zero minimum:500 name:PREFETCH_ABORT : Interrupts and Exceptions Prefetch Abort event:0x5a counters:1,2,3,4 um:zero minimum:500 name:INDEX_CHECK : Interrupts and Exceptions Index Check event:0x5b counters:1,2,3,4 um:zero minimum:500 name:NULL_CHECK : Interrupts and Exceptions Null Check event:0x5c counters:1,2,3,4 um:zero minimum:500 name:EXPL_ICIALLU : I-cache and BTAC Invalidates Explicit ICIALLU event:0x5d counters:1,2,3,4 um:zero minimum:500 name:IMPL_ICIALLU : I-cache and BTAC Invalidates Implicit ICIALLU event:0x5e counters:1,2,3,4 um:zero minimum:500 name:NONICIALLU_BTAC_INV : I-cache and BTAC Invalidates Non-ICIALLU BTAC Invalidate event:0x5f counters:1,2,3,4 um:zero minimum:500 name:ICIMVAU_IMPL_ICIALLU : I-cache and BTAC Invalidates ICIMVAU-implied ICIALLU event:0x60 counters:1,2,3,4 um:zero minimum:500 name:SPIPE_ONLY_CYCLES : Issue S-pipe only issue cycles event:0x61 counters:1,2,3,4 um:zero minimum:500 name:XPIPE_ONLY_CYCLES : Issue X-pipe only issue cycles event:0x62 counters:1,2,3,4 um:zero minimum:500 name:DUAL_CYCLES : Issue dual issue cycles event:0x63 counters:1,2,3,4 um:zero minimum:500 name:DISPATCH_ANY_CYCLES : Dispatch any dispatch cycles event:0x64 counters:1,2,3,4 um:zero minimum:500 name:FIFO_FULLBLK_CMT : Commits Trace FIFO full Blk CMT event:0x65 counters:1,2,3,4 um:zero minimum:500 name:FAIL_COND_INST : Conditional instructions failing conditional instrs (excluding branches) event:0x66 counters:1,2,3,4 um:zero minimum:500 name:PASS_COND_INST : Conditional instructions passing conditional instrs (excluding branches) event:0x67 counters:1,2,3,4 um:zero minimum:500 name:ALLOW_VU_CLK : Unit Clock Gating Allow VU Clks event:0x68 counters:1,2,3,4 um:zero minimum:500 name:VU_IDLE : Unit Clock Gating VU Idle event:0x69 counters:1,2,3,4 um:zero minimum:500 name:ALLOW_L2_CLK : Unit Clock Gating Allow L2 Clks event:0x6a counters:1,2,3,4 um:zero minimum:500 name:L2_IDLE : Unit Clock Gating L2 Idle event:0x6b counters:1,2,3,4 um:zero minimum:500 name:DTLB_IMPL_INV_SCTLR_DACR : DTLB implicit invalidates writes to SCTLR and DACR event:0x6c counters:1,2,3,4 um:zero minimum:500 name:DTLB_EXPL_INV : DTLB explicit invalidates event:0x6d counters:1,2,3,4 um:zero minimum:500 name:DTLB_MISS : DTLB misses event:0x6e counters:1,2,3,4 um:zero minimum:500 name:DTLB_ACCESS : DTLB accesses event:0x6f counters:1,2,3,4 um:zero minimum:500 name:SCORPION_ITLB_MISS : ITLB misses event:0x70 counters:1,2,3,4 um:zero minimum:500 name:ITLB_IMPL_INV : ITLB implicit ITLB invalidates event:0x71 counters:1,2,3,4 um:zero minimum:500 name:ITLB_EXPL_INV : ITLB explicit ITLB invalidates event:0x72 counters:1,2,3,4 um:zero minimum:500 name:UTLB_D_MISS : UTLB d-side misses event:0x73 counters:1,2,3,4 um:zero minimum:500 name:UTLB_D_ACCESS : UTLB d-side accesses event:0x74 counters:1,2,3,4 um:zero minimum:500 name:UTLB_I_MISS : UTLB i-side misses event:0x75 counters:1,2,3,4 um:zero minimum:500 name:UTLB_I_ACCESS : UTLB i-side accesses event:0x76 counters:1,2,3,4 um:zero minimum:500 name:UTLB_INV_ASID : UTLB invalidate by ASID event:0x77 counters:1,2,3,4 um:zero minimum:500 name:UTLB_INV_MVA : UTLB invalidate by MVA event:0x78 counters:1,2,3,4 um:zero minimum:500 name:UTLB_INV_ALL : UTLB invalidate all event:0x79 counters:1,2,3,4 um:zero minimum:500 name:S2_HOLD_RDQ_UNAVAIL : S2 hold RDQ unavail event:0x7a counters:1,2,3,4 um:zero minimum:500 name:S2_HOLD : S2 hold S2 hold event:0x7b counters:1,2,3,4 um:zero minimum:500 name:S2_HOLD_DEV_OP : S2 hold device op event:0x7c counters:1,2,3,4 um:zero minimum:500 name:S2_HOLD_ORDER : S2 hold strongly ordered op event:0x7d counters:1,2,3,4 um:zero minimum:500 name:S2_HOLD_BARRIER : S2 hold barrier event:0x7e counters:1,2,3,4 um:zero minimum:500 name:SCORPION_VIU_DUAL_CYCLE : Scorpion VIU dual cycle event:0x7f counters:1,2,3,4 um:zero minimum:500 name:SCORPION_VIU_SINGLE_CYCLE : Scorpion VIU single cycle event:0x80 counters:1,2,3,4 um:zero minimum:500 name:SCORPION_VX_PIPE_WAR_STALL_CYCLES : Scorpion VX pipe WAR cycles event:0x81 counters:1,2,3,4 um:zero minimum:500 name:SCORPION_VX_PIPE_WAW_STALL_CYCLES : Scorpion VX pipe WAW cycles event:0x82 counters:1,2,3,4 um:zero minimum:500 name:SCORPION_VX_PIPE_RAW_STALL_CYCLES : Scorpion VX pipe RAW cycles event:0x83 counters:1,2,3,4 um:zero minimum:500 name:SCORPION_VX_PIPE_LOAD_USE_STALL : Scorpion VX pipe load use stall event:0x84 counters:1,2,3,4 um:zero minimum:500 name:SCORPION_VS_PIPE_WAR_STALL_CYCLES : Scorpion VS pipe WAR stall cycles event:0x85 counters:1,2,3,4 um:zero minimum:500 name:SCORPION_VS_PIPE_WAW_STALL_CYCLES : Scorpion VS pipe WAW stall cycles event:0x86 counters:1,2,3,4 um:zero minimum:500 name:SCORPION_VS_PIPE_RAW_STALL_CYCLES : Scorpion VS pipe RAW stall cycles event:0x87 counters:1,2,3,4 um:zero minimum:500 name:SCORPION_EXCEPTIONS_INV_OPERATION : Scorpion invalid operation exceptions event:0x88 counters:1,2,3,4 um:zero minimum:500 name:SCORPION_EXCEPTIONS_DIV_BY_ZERO : Scorpion divide by zero exceptions event:0x89 counters:1,2,3,4 um:zero minimum:500 name:SCORPION_COND_INST_FAIL_VX_PIPE : Scorpion conditional instruction fail VX pipe event:0x8a counters:1,2,3,4 um:zero minimum:500 name:SCORPION_COND_INST_FAIL_VS_PIPE : Scorpion conditional instruction fail VS pipe event:0x8b counters:1,2,3,4 um:zero minimum:500 name:SCORPION_EXCEPTIONS_OVERFLOW : Scorpion overflow exceptions event:0x8c counters:1,2,3,4 um:zero minimum:500 name:SCORPION_EXCEPTIONS_UNDERFLOW : Scorpion underflow exceptions event:0x8d counters:1,2,3,4 um:zero minimum:500 name:SCORPION_EXCEPTIONS_DENORM : Scorpion denorm exceptions event:0x8e counters:1,2,3,4 um:zero minimum:500 name:SCORPIONMP_NUM_BARRIERS : Barriers event:0x8f counters:1,2,3,4 um:zero minimum:500 name:SCORPIONMP_BARRIER_CYCLES : Barrier cycles oprofile-0.9.9/events/arm/armv7-scorpionmp/unit_masks0000664000076400007640000000013512175510132017705 00000000000000# ARM V7 PMNC possible unit masks # name:zero type:mandatory default:0x00 0x00 No unit mask oprofile-0.9.9/events/arm/armv7/0000775000076400007640000000000012175511557013513 500000000000000oprofile-0.9.9/events/arm/armv7/events0000664000076400007640000000705312175510132014653 00000000000000# ARM V7 events # From Cortex A8 DDI (ARM DDI 0344B, revision r1p1) # include:arm/armv7-common event:0x40 counters:1,2,3,4 um:zero minimum:500 name:WRITE_BUFFER_FULL : Any write buffer full cycle event:0x41 counters:1,2,3,4 um:zero minimum:500 name:L2_STORE_MERGED : Any store that is merged in L2 cache event:0x42 counters:1,2,3,4 um:zero minimum:500 name:L2_STORE_BUFF : Any bufferable store from load/store to L2 cache event:0x43 counters:1,2,3,4 um:zero minimum:500 name:L2_ACCESS : Any access to L2 cache event:0x44 counters:1,2,3,4 um:zero minimum:500 name:L2_CACH_MISS : Any cacheable miss in L2 cache event:0x45 counters:1,2,3,4 um:zero minimum:500 name:AXI_READ_CYCLES : Number of cycles for an active AXI read event:0x46 counters:1,2,3,4 um:zero minimum:500 name:AXI_WRITE_CYCLES : Number of cycles for an active AXI write event:0x47 counters:1,2,3,4 um:zero minimum:500 name:MEMORY_REPLAY : Any replay event in the memory subsystem event:0x48 counters:1,2,3,4 um:zero minimum:500 name:UNALIGNED_ACCESS_REPLAY : Unaligned access that causes a replay event:0x49 counters:1,2,3,4 um:zero minimum:500 name:L1_DATA_MISS : L1 data cache miss as a result of the hashing algorithm event:0x4A counters:1,2,3,4 um:zero minimum:500 name:L1_INST_MISS : L1 instruction cache miss as a result of the hashing algorithm event:0x4B counters:1,2,3,4 um:zero minimum:500 name:L1_DATA_COLORING : L1 data access in which a page coloring alias occurs event:0x4C counters:1,2,3,4 um:zero minimum:500 name:L1_NEON_DATA : NEON data access that hits L1 cache event:0x4D counters:1,2,3,4 um:zero minimum:500 name:L1_NEON_CACH_DATA : NEON cacheable data access that hits L1 cache event:0x4E counters:1,2,3,4 um:zero minimum:500 name:L2_NEON : L2 access as a result of NEON memory access event:0x4F counters:1,2,3,4 um:zero minimum:500 name:L2_NEON_HIT : Any NEON hit in L2 cache event:0x50 counters:1,2,3,4 um:zero minimum:500 name:L1_INST : Any L1 instruction cache access, excluding CP15 cache accesses event:0x51 counters:1,2,3,4 um:zero minimum:500 name:PC_RETURN_MIS_PRED : Return stack misprediction at return stack pop (incorrect target address) event:0x52 counters:1,2,3,4 um:zero minimum:500 name:PC_BRANCH_FAILED : Branch prediction misprediction event:0x53 counters:1,2,3,4 um:zero minimum:500 name:PC_BRANCH_TAKEN : Any predicted branch that is taken event:0x54 counters:1,2,3,4 um:zero minimum:500 name:PC_BRANCH_EXECUTED : Any taken branch that is executed event:0x55 counters:1,2,3,4 um:zero minimum:500 name:OP_EXECUTED : Number of operations executed (in instruction or mutli-cycle instruction) event:0x56 counters:1,2,3,4 um:zero minimum:500 name:CYCLES_INST_STALL : Cycles where no instruction available event:0x57 counters:1,2,3,4 um:zero minimum:500 name:CYCLES_INST : Number of instructions issued in a cycle event:0x58 counters:1,2,3,4 um:zero minimum:500 name:CYCLES_NEON_DATA_STALL : Number of cycles the processor waits on MRC data from NEON event:0x59 counters:1,2,3,4 um:zero minimum:500 name:CYCLES_NEON_INST_STALL : Number of cycles the processor waits on NEON instruction queue or NEON load queue event:0x5A counters:1,2,3,4 um:zero minimum:500 name:NEON_CYCLES : Number of cycles NEON and integer processors are not idle event:0x70 counters:1,2,3,4 um:zero minimum:500 name:PMU0_EVENTS : Number of events from external input source PMUEXTIN[0] event:0x71 counters:1,2,3,4 um:zero minimum:500 name:PMU1_EVENTS : Number of events from external input source PMUEXTIN[1] event:0x72 counters:1,2,3,4 um:zero minimum:500 name:PMU_EVENTS : Number of events from both external input sources PMUEXTIN[0] and PMUEXTIN[1] oprofile-0.9.9/events/arm/armv7/unit_masks0000664000076400007640000000013512175510132015516 00000000000000# ARM V7 PMNC possible unit masks # name:zero type:mandatory default:0x00 0x00 No unit mask oprofile-0.9.9/events/arm/xscale2/0000775000076400007640000000000012175511557014020 500000000000000oprofile-0.9.9/events/arm/xscale2/events0000664000076400007640000000472612175510132015164 00000000000000# XScale 2 events # event:0x00 counters:1,2,3,4 um:zero minimum:500 name:IFU_IFETCH_MISS : number of instruction fetch misses event:0x01 counters:1,2,3,4 um:zero minimum:500 name:CYCLES_IFU_MEM_STALL : cycles instruction fetch pipe is stalled event:0x02 counters:1,2,3,4 um:zero minimum:500 name:CYCLES_DATA_STALL : cycles stall occurs for due to data dependency event:0x03 counters:1,2,3,4 um:zero minimum:500 name:ITLB_MISS : number of ITLB misses event:0x04 counters:1,2,3,4 um:zero minimum:500 name:DTLB_MISS : number of DTLB misses event:0x05 counters:1,2,3,4 um:zero minimum:500 name:BR_INST_EXECUTED : branch instruction executed w/ or w/o program flow change event:0x06 counters:1,2,3,4 um:zero minimum:500 name:BR_INST_MISS_PRED : branch mispredicted event:0x07 counters:1,2,3,4 um:zero minimum:500 name:INSN_EXECUTED : instruction executed event:0x08 counters:1,2,3,4 um:zero minimum:500 name:CYCLES_DCACHE_FULL_STALL : cycles in stall due to full dcache event:0x09 counters:1,2,3,4 um:zero minimum:500 name:DCACHE_FULL_STALL_CNT : number of stalls due to dcache full condition event:0x0a counters:1,2,3,4 um:zero minimum:500 name:DCACHE_ACCESS : data cache access event:0x0b counters:1,2,3,4 um:zero minimum:500 name:DCACHE_MISS : data cache miss event:0x0c counters:1,2,3,4 um:zero minimum:500 name:DCACHE_WB : data cache writeback, 1 event for every half cacheline event:0x0d counters:1,2,3,4 um:zero minimum:500 name:PC_CHANGE : number of times the program counter was changed without a mode switch event:0x10 counters:1,2,3,4 um:zero minimum:500 name:BCU_REQUEST : number of time the BCU received a new memory request from the core event:0x11 counters:1,2,3,4 um:zero minimum:500 name:BCU_FULL : number of cycles the BCUs request queue is full event:0x12 counters:1,2,3,4 um:zero minimum:500 name:BCU_DRAIN : number of times the BCU queues were drained due to a Drain Write Buffer command or an I/O transaction on a non-cacheable and non-bufferable page event:0x14 counters:1,2,3,4 um:zero minimum:500 name:BCU_ECC_NO_ELOG : number of times the BCU detected an ECC error, but no ELOG register was available in which to log the error event:0x15 counters:1,2,3,4 um:zero minimum:500 name:BCU_1_BIT_ERR : number of times the BCU detected a 1-bit error while reading data from the bus event:0x16 counters:1,2,3,4 um:zero minimum:500 name:RMW : number of times an RMW cycle occurred due to narrow write on ECC-protected memory event:0xfe counters:0 um:zero minimum:500 name:CPU_CYCLES : clock cycles counter oprofile-0.9.9/events/arm/xscale2/unit_masks0000664000076400007640000000013212175510133016021 00000000000000# XScale 2 possible unit masks # name:zero type:mandatory default:0x00 0x00 No unit mask oprofile-0.9.9/events/arm/xscale1/0000775000076400007640000000000012175511557014017 500000000000000oprofile-0.9.9/events/arm/xscale1/events0000664000076400007640000000460612175510133015161 00000000000000# XScale 1 events # event:0x00 counters:1,2 um:zero minimum:500 name:IFU_IFETCH_MISS : number of instruction fetch misses event:0x01 counters:1,2 um:zero minimum:500 name:CYCLES_IFU_MEM_STALL : cycles instruction fetch pipe is stalled event:0x02 counters:1,2 um:zero minimum:500 name:CYCLES_DATA_STALL : cycles stall occurs for due to data dependency event:0x03 counters:1,2 um:zero minimum:500 name:ITLB_MISS : number of ITLB misses event:0x04 counters:1,2 um:zero minimum:500 name:DTLB_MISS : number of DTLB misses event:0x05 counters:1,2 um:zero minimum:500 name:BR_INST_EXECUTED : branch instruction executed w/ or w/o program flow change event:0x06 counters:1,2 um:zero minimum:500 name:BR_INST_MISS_PRED : branch mispredicted event:0x07 counters:1,2 um:zero minimum:500 name:INSN_EXECUTED : instruction executed event:0x08 counters:1,2 um:zero minimum:500 name:CYCLES_DCACHE_FULL_STALL : cycles in stall due to full dcache event:0x09 counters:1,1 um:zero minimum:500 name:DCACHE_FULL_STALL_CNT : number of stalls due to dcache full condition event:0x0a counters:1,2 um:zero minimum:500 name:DCACHE_ACCESS : data cache access event:0x0b counters:1,2 um:zero minimum:500 name:DCACHE_MISS : data cache miss event:0x0c counters:1,2 um:zero minimum:500 name:DCACHE_WB : data cache writeback, 1 event for every half cacheline event:0x0d counters:1,2 um:zero minimum:500 name:PC_CHANGE : number of times the program counter was changed without a mode switch event:0x10 counters:1,2 um:zero minimum:500 name:BCU_REQUEST : number of time the BCU received a new memory request from the core event:0x11 counters:1,2 um:zero minimum:500 name:BCU_FULL : number of cycles the BCUs request queue is full event:0x12 counters:1,2 um:zero minimum:500 name:BCU_DRAIN : number of times the BCU queues were drained due to a Drain Write Buffer command or an I/O transaction on a non-cacheable and non-bufferable page event:0x14 counters:1,2 um:zero minimum:500 name:BCU_ECC_NO_ELOG : number of times the BCU detected an ECC error, but no ELOG register was available in which to log the error event:0x15 counters:1,2 um:zero minimum:500 name:BCU_1_BIT_ERR : number of times the BCU detected a 1-bit error while reading data from the bus event:0x16 counters:1,2 um:zero minimum:500 name:RMW : number of times an RMW cycle occurred due to narrow write on ECC-protected memory event:0xfe counters:0 um:zero minimum:500 name:CPU_CYCLES : clock cycles counter oprofile-0.9.9/events/arm/xscale1/unit_masks0000664000076400007640000000013212175510133016020 00000000000000# XScale 1 possible unit masks # name:zero type:mandatory default:0x00 0x00 No unit mask oprofile-0.9.9/events/arm/mpcore/0000775000076400007640000000000012175511557013744 500000000000000oprofile-0.9.9/events/arm/mpcore/events0000664000076400007640000000435412175510133015106 00000000000000# MPCore events # event:0x00 counters:0,1 um:zero minimum:500 name:IFU_IFETCH_MISS : number of instruction fetch misses event:0x01 counters:0,1 um:zero minimum:500 name:CYCLES_IFU_MEM_STALL : cycles instruction fetch pipe is stalled event:0x02 counters:0,1 um:zero minimum:500 name:CYCLES_DATA_STALL : cycles stall occurs for due to data dependency event:0x03 counters:0,1 um:zero minimum:500 name:ITLB_MISS : number of ITLB misses event:0x04 counters:0,1 um:zero minimum:500 name:DTLB_MISS : number of DTLB misses event:0x05 counters:0,1 um:zero minimum:500 name:BR_INST_EXECUTED : branch instruction executed w/ or w/o program flow change event:0x06 counters:0,1 um:zero minimum:500 name:BR_INST_NOT_PRED : branch not predicted event:0x07 counters:0,1 um:zero minimum:500 name:BR_INST_MISPRED : branch mispredicted event:0x08 counters:0,1 um:zero minimum:500 name:INSN_EXECUTED : instruction executed event:0x09 counters:0,1 um:zero minimum:500 name:INSN_FOLD_EXECUTED : folded instruction executed event:0x0a counters:0,1 um:zero minimum:500 name:DCACHE_ACCESS : data cache read access event:0x0b counters:0,1 um:zero minimum:500 name:DCACHE_MISS : data cache miss event:0x0c counters:0,1 um:zero minimum:500 name:DCACHE_WA : data cache write access event:0x0d counters:0,1 um:zero minimum:500 name:DCACHE_WM : data cache write miss event:0x0e counters:0,1 um:zero minimum:500 name:DCACHE_LINE_EV : data cache line eviction event:0x0f counters:0,1 um:zero minimum:500 name:SOFT_PC_CHANGE : software changed PC without mode change event:0x10 counters:0,1 um:zero minimum:500 name:TLB_MISS : main TLB miss event:0x11 counters:0,1 um:zero minimum:500 name:MEM_REQUEST : external memory request (Cache request, write back) event:0x12 counters:0,1 um:zero minimum:500 name:LS_QUEUE_FULL : stall because load store unit queue being full event:0x13 counters:0,1 um:zero minimum:500 name:LS_QUEUE_DRAINED : number of times store buffer drained event:0x14 counters:0,1 um:zero minimum:500 name:LS_QUEUE_WMERGE : buffered write merged into a store buffer slot event:0x15 counters:0,1 um:zero minimum:500 name:LS_SAFE_MODE : LSU in safe mode event:0xff counters:0,1 um:zero minimum:500 name:CPU_CYCLES : clock cycles counter #see ARM11 MPCore Techical Reference Manual rev. r1p0, page 3-70 oprofile-0.9.9/events/arm/mpcore/unit_masks0000664000076400007640000000013012175510133015743 00000000000000# MPCore possible unit masks # name:zero type:mandatory default:0x00 0x00 No unit mask oprofile-0.9.9/events/arm/armv7-ca5/0000775000076400007640000000000012175511557014161 500000000000000oprofile-0.9.9/events/arm/armv7-ca5/events0000664000076400007640000000176512175510133015326 00000000000000# ARM Cortex A5 events # From Cortex A5 TRM # include:arm/armv7-common event:0x86 counters:1,2,3,4,5,6 um:zero minimum:500 name:EXC_IRQ : IRQ exception taken event:0x87 counters:1,2,3,4,5,6 um:zero minimum:500 name:EXC_FIQ : FIQ exception taken event:0xC0 counters:1,2,3,4,5,6 um:zero minimum:500 name:EXT_MEM_REQ : External memory request event:0xC1 counters:1,2,3,4,5,6 um:zero minimum:500 name:EXT_MEM_REQ_NC : Non-cacheable external memory request event:0xC2 counters:1,2,3,4,5,6 um:zero minimum:500 name:PREFETCH_LINEFILL : Linefill because of prefetch event:0xC3 counters:1,2,3,4,5,6 um:zero minimum:500 name:PREFETCH_LINEFILL_DROP : Prefetch linefill dropped event:0xC4 counters:1,2,3,4,5,6 um:zero minimum:500 name:READ_ALLOC_ENTER : Entering read allocate mode event:0xC5 counters:1,2,3,4,5,6 um:zero minimum:500 name:READ_ALLOC : Read allocate mode event:0xC9 counters:1,2,3,4,5,6 um:zero minimum:500 name:STALL_SB_FULL : Data write operation that stalls the pipeline because the store buffer is full oprofile-0.9.9/events/arm/armv7-ca5/unit_masks0000664000076400007640000000013512175510133016165 00000000000000# ARM V7 PMNC possible unit masks # name:zero type:mandatory default:0x00 0x00 No unit mask oprofile-0.9.9/events/ppc64/0000775000076400007640000000000012175511556012633 500000000000000oprofile-0.9.9/events/ppc64/power8/0000775000076400007640000000000012175511557014060 500000000000000oprofile-0.9.9/events/ppc64/power8/events0000664000076400007640000002766412175510133015233 00000000000000# # Copyright OProfile authors # Copyright (c) International Business Machines, 2013. # Contributed by Maynard Johnson . # # IBM POWER8 Events include:ppc64/architected_events_v1 event:0x40036 counters:3 um:zero minimum:10000 name:PM_BR_2PATH : two path branch. event:0x40060 counters:3 um:zero minimum:10000 name:PM_BR_CMPL : Branch Instruction completed. event:0x40138 counters:3 um:zero minimum:10000 name:PM_BR_MRK_2PATH : marked two path branch. event:0x1e054 counters:0 um:zero minimum:10000 name:PM_CMPLU_STALL : Completion stall. event:0x4d018 counters:3 um:zero minimum:10000 name:PM_CMPLU_STALL_BRU : Completion stall due to a Branch Unit. event:0x2d018 counters:1 um:zero minimum:10000 name:PM_CMPLU_STALL_BRU_CRU : Completion stall due to IFU. event:0x30026 counters:2 um:zero minimum:10000 name:PM_CMPLU_STALL_COQ_FULL : Completion stall due to CO q full. event:0x2c012 counters:1 um:zero minimum:10000 name:PM_CMPLU_STALL_DCACHE_MISS : Completion stall by Dcache miss. event:0x2c018 counters:1 um:zero minimum:10000 name:PM_CMPLU_STALL_DMISS_L21_L31 : Completion stall by Dcache miss which resolved on chip ( excluding local L2/L3). event:0x2c016 counters:1 um:zero minimum:10000 name:PM_CMPLU_STALL_DMISS_L2L3 : Completion stall by Dcache miss which resolved in L2/L3. event:0x4c016 counters:3 um:zero minimum:10000 name:PM_CMPLU_STALL_DMISS_L2L3_CONFLICT : Completion stall due to cache miss resolving in core's L2/L3 with a conflict. event:0x4c01a counters:3 um:zero minimum:10000 name:PM_CMPLU_STALL_DMISS_L3MISS : Completion stall due to cache miss resolving missed the L3. event:0x4c018 counters:3 um:zero minimum:10000 name:PM_CMPLU_STALL_DMISS_LMEM : Completion stall due to cache miss resolving in core's Local Memory. event:0x2c01c counters:1 um:zero minimum:10000 name:PM_CMPLU_STALL_DMISS_REMOTE : Completion stall by Dcache miss which resolved on chip ( excluding local L2/L3). event:0x4c012 counters:3 um:zero minimum:10000 name:PM_CMPLU_STALL_ERAT_MISS : Completion stall due to LSU reject ERAT miss. event:0x30038 counters:2 um:zero minimum:10000 name:PM_CMPLU_STALL_FLUSH : completion stall due to flush by own thread. event:0x4d016 counters:3 um:zero minimum:10000 name:PM_CMPLU_STALL_FXLONG : Completion stall due to a long latency fixed point instruction. event:0x2d016 counters:1 um:zero minimum:10000 name:PM_CMPLU_STALL_FXU : Completion stall due to FXU. event:0x30036 counters:2 um:zero minimum:10000 name:PM_CMPLU_STALL_HWSYNC : completion stall due to hwsync. event:0x4d014 counters:3 um:zero minimum:10000 name:PM_CMPLU_STALL_LOAD_FINISH : Completion stall due to a Load finish. event:0x2c010 counters:1 um:zero minimum:10000 name:PM_CMPLU_STALL_LSU : Completion stall by LSU instruction. event:0x10036 counters:0 um:zero minimum:10000 name:PM_CMPLU_STALL_LWSYNC : completion stall due to isync/lwsync. event:0x30028 counters:2 um:zero minimum:10000 name:PM_CMPLU_STALL_MEM_ECC_DELAY : Completion stall due to mem ECC delay. event:0x2e01e counters:1 um:zero minimum:10000 name:PM_CMPLU_STALL_NTCG_FLUSH : Completion stall due to reject (load hit store). event:0x30006 counters:2 um:zero minimum:10000 name:PM_CMPLU_STALL_OTHER_CMPL : Instructions core completed while this thread was stalled. event:0x4c010 counters:3 um:zero minimum:10000 name:PM_CMPLU_STALL_REJECT : Completion stall due to LSU reject. event:0x2c01a counters:1 um:zero minimum:10000 name:PM_CMPLU_STALL_REJECT_LHS : Completion stall due to reject (load hit store). event:0x4c014 counters:3 um:zero minimum:10000 name:PM_CMPLU_STALL_REJ_LMQ_FULL : Completion stall due to LSU reject LMQ full. event:0x4d010 counters:3 um:zero minimum:10000 name:PM_CMPLU_STALL_SCALAR : Completion stall due to VSU scalar instruction. event:0x2d010 counters:1 um:zero minimum:10000 name:PM_CMPLU_STALL_SCALAR_LONG : Completion stall due to VSU scalar long latency instruction. event:0x2c014 counters:1 um:zero minimum:10000 name:PM_CMPLU_STALL_STORE : Completion stall by stores. event:0x4c01c counters:3 um:zero minimum:10000 name:PM_CMPLU_STALL_ST_FWD : Completion stall due to store forward. event:0x1001c counters:0 um:zero minimum:10000 name:PM_CMPLU_STALL_THRD : Completion stall due to thread conflict. event:0x2d014 counters:1 um:zero minimum:10000 name:PM_CMPLU_STALL_VECTOR : Completion stall due to VSU vector instruction. event:0x4d012 counters:3 um:zero minimum:10000 name:PM_CMPLU_STALL_VECTOR_LONG : Completion stall due to VSU vector long instruction. event:0x2d012 counters:1 um:zero minimum:10000 name:PM_CMPLU_STALL_VSU : Completion stall due to VSU instruction. event:0x1c042 counters:0 um:zero minimum:10000 name:PM_DATA_FROM_L2 : The processor's data cache was reloaded from local core's L2 due to a demand load or demand load plus prefetch controlled by MMCR1[20]. event:0x1c040 counters:0 um:zero minimum:10000 name:PM_DATA_FROM_L2_NO_CONFLICT : The processor's data cache was reloaded from local core's L2 without conflict due to a demand load or demand load plus prefetch controlled by MMCR1[20] . event:0x4c042 counters:3 um:zero minimum:10000 name:PM_DATA_FROM_L3 : The processor's data cache was reloaded from local core's L3 due to a demand load. event:0x4c04e counters:3 um:zero minimum:10000 name:PM_DATA_FROM_L3MISS_MOD : The processor's data cache was reloaded from a localtion other than the local core's L3 due to a demand load. event:0x1c044 counters:0 um:zero minimum:10000 name:PM_DATA_FROM_L3_NO_CONFLICT : The processor's data cache was reloaded from local core's L3 without conflict due to a demand load or demand load plus prefetch controlled by MMCR1[20]. event:0x2c048 counters:1 um:zero minimum:10000 name:PM_DATA_FROM_LMEM : The processor's data cache was reloaded from the local chip's Memory due to a demand load. event:0x2c04c counters:1 um:zero minimum:10000 name:PM_DATA_FROM_MEMORY : The processor's data cache was reloaded from a memory location including L4 from local remote or distant due to a demand load. event:0x3e050 counters:2 um:zero minimum:10000 name:PM_DC_PREF_STREAM_STRIDED_CONF : A demand load referenced a line in an active strided prefetch stream. The stream could have been allocated through the hardware prefetch mechanism or through software.. event:0x4d01e counters:3 um:zero minimum:10000 name:PM_GCT_NOSLOT_BR_MPRED : Gct empty fo this thread due to branch mispred. event:0x4d01a counters:3 um:zero minimum:10000 name:PM_GCT_NOSLOT_BR_MPRED_ICMISS : Gct empty fo this thread due to Icache Miss and branch mispred. event:0x2d01e counters:1 um:zero minimum:10000 name:PM_GCT_NOSLOT_DISP_HELD_ISSQ : Gct empty fo this thread due to dispatch hold on this thread due to Issue q full. event:0x2e010 counters:1 um:zero minimum:10000 name:PM_GCT_NOSLOT_DISP_HELD_OTHER : Gct empty fo this thread due to dispatch hold on this thread due to sync. event:0x2d01c counters:1 um:zero minimum:10000 name:PM_GCT_NOSLOT_DISP_HELD_SRQ : Gct empty fo this thread due to dispatch hold on this thread due to SRQ full. event:0x4e010 counters:3 um:zero minimum:10000 name:PM_GCT_NOSLOT_IC_L3MISS : Gct empty fo this thread due to icach l3 miss. event:0x2d01a counters:1 um:zero minimum:10000 name:PM_GCT_NOSLOT_IC_MISS : Gct empty fo this thread due to Icache Miss. event:0x3000a counters:2 um:zero minimum:100000 name:PM_GRP_DISP : dispatch_success (Group Dispatched). event:0x10130 counters:0 um:zero minimum:10000 name:PM_GRP_MRK : Instruction marked in idu. event:0x2000a counters:1 um:zero minimum:10000 name:PM_HV_CYC : cycles in hypervisor mode . event:0x10002 counters:0 um:zero minimum:100000 name:PM_INST_CMPL : PPC Instructions Finished (completed). event:0x10014 counters:0 um:zero minimum:100000 name:PM_IOPS_CMPL : IOPS Completed. event:0x1002e counters:0 um:zero minimum:10000 name:PM_LD_CMPL : count of Loads completed. event:0x10062 counters:0 um:zero minimum:10000 name:PM_LD_L3MISS_PEND_CYC : Cycles L3 miss was pending for this thread. event:0x1d142 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2 : The processor's data cache was reloaded from local core's L2 due to a marked load. event:0x4c12e counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2MISS_CYC : Duration in cycles to reload from a localtion other than the local core's L2 due to a marked load. event:0x4c122 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2_CYC : Duration in cycles to reload from local core's L2 due to a marked load. event:0x1d140 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2_NO_CONFLICT : The processor's data cache was reloaded from local core's L2 without conflict due to a marked load. event:0x4c120 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2_NO_CONFLICT_CYC : Duration in cycles to reload from local core's L2 without conflict due to a marked load. event:0x4d142 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L3 : The processor's data cache was reloaded from local core's L3 due to a marked load. event:0x2d12e counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L3MISS_CYC : Duration in cycles to reload from a localtion other than the local core's L3 due to a marked load. event:0x2d122 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L3_CYC : Duration in cycles to reload from local core's L3 due to a marked load. event:0x1d144 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L3_NO_CONFLICT : The processor's data cache was reloaded from local core's L3 without conflict due to a marked load. event:0x4c124 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L3_NO_CONFLICT_CYC : Duration in cycles to reload from local core's L3 without conflict due to a marked load. event:0x1d14c counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_LL4 : The processor's data cache was reloaded from the local chip's L4 cache due to a marked load. event:0x4c12c counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_LL4_CYC : Duration in cycles to reload from the local chip's L4 cache due to a marked load. event:0x2d148 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_LMEM : The processor's data cache was reloaded from the local chip's Memory due to a marked load. event:0x4d128 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_LMEM_CYC : Duration in cycles to reload from the local chip's Memory due to a marked load. event:0x2d14c counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_MEMORY : The processor's data cache was reloaded from a memory location including L4 from local remote or distant due to a marked load. event:0x4d12c counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_MEMORY_CYC : Duration in cycles to reload from a memory location including L4 from local remote or distant due to a marked load. event:0x40130 counters:3 um:zero minimum:1000 name:PM_MRK_GRP_CMPL : marked instruction finished (completed). event:0x20130 counters:1 um:zero minimum:1000 name:PM_MRK_INST_DECODED : marked instruction decoded. Name from ISU? event:0x20114 counters:1 um:zero minimum:1000 name:PM_MRK_L2_RC_DISP : Marked Instruction RC dispatched in L2. event:0x4013e counters:3 um:zero minimum:1000 name:PM_MRK_LD_MISS_L1_CYC : Marked ld latency. event:0x3013e counters:2 um:zero minimum:1000 name:PM_MRK_STALL_CMPLU_CYC : Marked Group Completion Stall cycles (use edge detect to count ). event:0x3006e counters:2 um:zero minimum:10000 name:PM_NEST_REF_CLK : Nest reference clocks. event:0x20010 counters:1 um:zero minimum:10000 name:PM_PMC1_OVERFLOW : Overflow from counter 1. event:0x30010 counters:2 um:zero minimum:10000 name:PM_PMC2_OVERFLOW : Overflow from counter 2. event:0x40010 counters:3 um:zero minimum:10000 name:PM_PMC3_OVERFLOW : Overflow from counter 3. event:0x10010 counters:0 um:zero minimum:10000 name:PM_PMC4_OVERFLOW : Overflow from counter 4. event:0x30024 counters:2 um:zero minimum:10000 name:PM_PMC6_OVERFLOW : Overflow from counter 6. event:0x40002 counters:3 um:zero minimum:10000 name:PM_PPC_CMPL : PPC Instructions Finished (completed). event:0x2000c counters:1 um:zero minimum:100000 name:PM_THRD_ALL_RUN_CYC : All Threads in Run_cycles (was both threads in run_cycles). event:0x4016e counters:3 um:zero minimum:10000 name:PM_THRESH_NOT_MET : Threshold counter did not meet threshold. oprofile-0.9.9/events/ppc64/power8/unit_masks0000664000076400007640000000035412175510133016067 00000000000000# # Copyright OProfile authors # Copyright (c) International Business Machines, 2013. # Contributed by Maynard Johnson . # # ppc64 POWER8 possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/ppc64/970MP/0000775000076400007640000000000012175511557013410 500000000000000oprofile-0.9.9/events/ppc64/970MP/events0000664000076400007640000014536612175510133014563 00000000000000#PPC64 PowerPC970MP events # # Copyright OProfile authors # Copyright (c) International Business Machines, 2007. # Contributed by Dave Nomura . # # # Within each group the event names must be unique. Each event in a group is # assigned to a unique counter. The groups are from the groups defined in the # Performance Monitor Unit user guide for this processor. # # Only events within the same group can be selected simultaneously. # Each event is given a unique event number. The event number is used by the # OProfile code to resolve event names for the post-processing. This is done # to preserve compatibility with the rest of the OProfile code. The event # numbers are formatted as follows: concat(). #Group Default event:0X001 counters:1 um:zero minimum:10000 name:CYCLES : Processor Cycles #Group 1 pm_slice0, Time Slice 0 event:0X0010 counters:0 um:zero minimum:10000 name:PM_RUN_CYC_GRP1 : (Group 1 pm_slice0) Run cycles event:0X0011 counters:1 um:zero minimum:10000 name:PM_CYC_GRP1 : (Group 1 pm_slice0) Processor cycles event:0X0012 counters:2 um:zero minimum:1000 name:PM_STOP_COMPLETION_GRP1 : (Group 1 pm_slice0) Completion stopped event:0X0013 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP1 : (Group 1 pm_slice0) Instructions completed event:0X0014 counters:4 um:zero minimum:1000 name:PM_1PLUS_PPC_CMPL_GRP1 : (Group 1 pm_slice0) One or more PPC instruction completed event:0X0015 counters:5 um:zero minimum:10000 name:PM_CYC_GRP1 : (Group 1 pm_slice0) Processor cycles event:0X0016 counters:6 um:zero minimum:1000 name:PM_GRP_CMPL_GRP1 : (Group 1 pm_slice0) Group completed event:0X0017 counters:7 um:zero minimum:1000 name:PM_GRP_DISP_REJECT_GRP1 : (Group 1 pm_slice0) Group dispatch rejected #Group 2 pm_eprof, Group for use with eprof event:0X0020 counters:0 um:zero minimum:10000 name:PM_CYC_GRP2 : (Group 2 pm_eprof) Processor cycles event:0X0021 counters:1 um:zero minimum:10000 name:PM_CYC_GRP2 : (Group 2 pm_eprof) Processor cycles event:0X0022 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP2 : (Group 2 pm_eprof) L1 D cache load misses event:0X0023 counters:3 um:zero minimum:1000 name:PM_DC_INV_L2_GRP2 : (Group 2 pm_eprof) L1 D cache entries invalidated from L2 event:0X0024 counters:4 um:zero minimum:1000 name:PM_INST_DISP_GRP2 : (Group 2 pm_eprof) Instructions dispatched event:0X0025 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP2 : (Group 2 pm_eprof) Instructions completed event:0X0026 counters:6 um:zero minimum:1000 name:PM_ST_REF_L1_GRP2 : (Group 2 pm_eprof) L1 D cache store references event:0X0027 counters:7 um:zero minimum:1000 name:PM_LD_REF_L1_GRP2 : (Group 2 pm_eprof) L1 D cache load references #Group 3 pm_basic, Basic performance indicators event:0X0030 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP3 : (Group 3 pm_basic) Instructions completed event:0X0031 counters:1 um:zero minimum:10000 name:PM_CYC_GRP3 : (Group 3 pm_basic) Processor cycles event:0X0032 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP3 : (Group 3 pm_basic) L1 D cache load misses event:0X0033 counters:3 um:zero minimum:1000 name:PM_DC_INV_L2_GRP3 : (Group 3 pm_basic) L1 D cache entries invalidated from L2 event:0X0034 counters:4 um:zero minimum:1000 name:PM_INST_DISP_GRP3 : (Group 3 pm_basic) Instructions dispatched event:0X0035 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP3 : (Group 3 pm_basic) Instructions completed event:0X0036 counters:6 um:zero minimum:1000 name:PM_ST_REF_L1_GRP3 : (Group 3 pm_basic) L1 D cache store references event:0X0037 counters:7 um:zero minimum:1000 name:PM_LD_REF_L1_GRP3 : (Group 3 pm_basic) L1 D cache load references #Group 4 pm_lsu, Information on the Load Store Unit event:0X0040 counters:0 um:zero minimum:1000 name:PM_LSU_FLUSH_ULD_GRP4 : (Group 4 pm_lsu) LRQ unaligned load flushes event:0X0041 counters:1 um:zero minimum:1000 name:PM_LSU_FLUSH_UST_GRP4 : (Group 4 pm_lsu) SRQ unaligned store flushes event:0X0042 counters:2 um:zero minimum:10000 name:PM_CYC_GRP4 : (Group 4 pm_lsu) Processor cycles event:0X0043 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP4 : (Group 4 pm_lsu) Instructions completed event:0X0044 counters:4 um:zero minimum:1000 name:PM_LSU_FLUSH_SRQ_GRP4 : (Group 4 pm_lsu) SRQ flushes event:0X0045 counters:5 um:zero minimum:1000 name:PM_LSU_FLUSH_LRQ_GRP4 : (Group 4 pm_lsu) LRQ flushes event:0X0046 counters:6 um:zero minimum:1000 name:PM_ST_REF_L1_GRP4 : (Group 4 pm_lsu) L1 D cache store references event:0X0047 counters:7 um:zero minimum:1000 name:PM_LD_REF_L1_GRP4 : (Group 4 pm_lsu) L1 D cache load references #Group 5 pm_fpu1, Floating Point events event:0X0050 counters:0 um:zero minimum:1000 name:PM_FPU_FDIV_GRP5 : (Group 5 pm_fpu1) FPU executed FDIV instruction event:0X0051 counters:1 um:zero minimum:1000 name:PM_FPU_FMA_GRP5 : (Group 5 pm_fpu1) FPU executed multiply-add instruction event:0X0052 counters:2 um:zero minimum:1000 name:PM_FPU_FEST_GRP5 : (Group 5 pm_fpu1) FPU executed FEST instruction event:0X0053 counters:3 um:zero minimum:1000 name:PM_FPU_FIN_GRP5 : (Group 5 pm_fpu1) FPU produced a result event:0X0054 counters:4 um:zero minimum:10000 name:PM_CYC_GRP5 : (Group 5 pm_fpu1) Processor cycles event:0X0055 counters:5 um:zero minimum:1000 name:PM_FPU_FSQRT_GRP5 : (Group 5 pm_fpu1) FPU executed FSQRT instruction event:0X0056 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP5 : (Group 5 pm_fpu1) Instructions completed event:0X0057 counters:7 um:zero minimum:1000 name:PM_FPU_FMOV_FEST_GRP5 : (Group 5 pm_fpu1) FPU executing FMOV or FEST instructions #Group 6 pm_fpu2, Floating Point events event:0X0060 counters:0 um:zero minimum:1000 name:PM_FPU_DENORM_GRP6 : (Group 6 pm_fpu2) FPU received denormalized data event:0X0061 counters:1 um:zero minimum:1000 name:PM_FPU_STALL3_GRP6 : (Group 6 pm_fpu2) FPU stalled in pipe3 event:0X0062 counters:2 um:zero minimum:10000 name:PM_CYC_GRP6 : (Group 6 pm_fpu2) Processor cycles event:0X0063 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP6 : (Group 6 pm_fpu2) Instructions completed event:0X0064 counters:4 um:zero minimum:1000 name:PM_FPU_ALL_GRP6 : (Group 6 pm_fpu2) FPU executed add, mult, sub, cmp or sel instruction event:0X0065 counters:5 um:zero minimum:1000 name:PM_FPU_STF_GRP6 : (Group 6 pm_fpu2) FPU executed store instruction event:0X0066 counters:6 um:zero minimum:1000 name:PM_FPU_FRSP_FCONV_GRP6 : (Group 6 pm_fpu2) FPU executed FRSP or FCONV instructions event:0X0067 counters:7 um:zero minimum:1000 name:PM_LSU_LDF_GRP6 : (Group 6 pm_fpu2) LSU executed Floating Point load instruction #Group 7 pm_isu_rename, ISU Rename Pool Events event:0X0070 counters:0 um:zero minimum:1000 name:PM_XER_MAP_FULL_CYC_GRP7 : (Group 7 pm_isu_rename) Cycles XER mapper full event:0X0071 counters:1 um:zero minimum:1000 name:PM_CR_MAP_FULL_CYC_GRP7 : (Group 7 pm_isu_rename) Cycles CR logical operation mapper full event:0X0072 counters:2 um:zero minimum:1000 name:PM_CRQ_FULL_CYC_GRP7 : (Group 7 pm_isu_rename) Cycles CR issue queue full event:0X0073 counters:3 um:zero minimum:1000 name:PM_GRP_DISP_BLK_SB_CYC_GRP7 : (Group 7 pm_isu_rename) Cycles group dispatch blocked by scoreboard event:0X0074 counters:4 um:zero minimum:1000 name:PM_LR_CTR_MAP_FULL_CYC_GRP7 : (Group 7 pm_isu_rename) Cycles LR/CTR mapper full event:0X0075 counters:5 um:zero minimum:1000 name:PM_INST_DISP_GRP7 : (Group 7 pm_isu_rename) Instructions dispatched event:0X0076 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP7 : (Group 7 pm_isu_rename) Instructions completed event:0X0077 counters:7 um:zero minimum:10000 name:PM_CYC_GRP7 : (Group 7 pm_isu_rename) Processor cycles #Group 8 pm_isu_queues1, ISU Rename Pool Events event:0X0080 counters:0 um:zero minimum:1000 name:PM_FPU0_FULL_CYC_GRP8 : (Group 8 pm_isu_queues1) Cycles FPU0 issue queue full event:0X0081 counters:1 um:zero minimum:1000 name:PM_FPU1_FULL_CYC_GRP8 : (Group 8 pm_isu_queues1) Cycles FPU1 issue queue full event:0X0082 counters:2 um:zero minimum:1000 name:PM_FXLS0_FULL_CYC_GRP8 : (Group 8 pm_isu_queues1) Cycles FXU0/LS0 queue full event:0X0083 counters:3 um:zero minimum:1000 name:PM_FXLS1_FULL_CYC_GRP8 : (Group 8 pm_isu_queues1) Cycles FXU1/LS1 queue full event:0X0084 counters:4 um:zero minimum:10000 name:PM_CYC_GRP8 : (Group 8 pm_isu_queues1) Processor cycles event:0X0085 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP8 : (Group 8 pm_isu_queues1) Instructions completed event:0X0086 counters:6 um:zero minimum:1000 name:PM_LSU_LRQ_FULL_CYC_GRP8 : (Group 8 pm_isu_queues1) Cycles LRQ full event:0X0087 counters:7 um:zero minimum:1000 name:PM_LSU_SRQ_FULL_CYC_GRP8 : (Group 8 pm_isu_queues1) Cycles SRQ full #Group 9 pm_isu_flow, ISU Instruction Flow Events event:0X0090 counters:0 um:zero minimum:1000 name:PM_INST_DISP_GRP9 : (Group 9 pm_isu_flow) Instructions dispatched event:0X0091 counters:1 um:zero minimum:10000 name:PM_CYC_GRP9 : (Group 9 pm_isu_flow) Processor cycles event:0X0092 counters:2 um:zero minimum:1000 name:PM_FXU0_FIN_GRP9 : (Group 9 pm_isu_flow) FXU0 produced a result event:0X0093 counters:3 um:zero minimum:1000 name:PM_FXU1_FIN_GRP9 : (Group 9 pm_isu_flow) FXU1 produced a result event:0X0094 counters:4 um:zero minimum:1000 name:PM_GRP_DISP_VALID_GRP9 : (Group 9 pm_isu_flow) Group dispatch valid event:0X0095 counters:5 um:zero minimum:1000 name:PM_GRP_DISP_REJECT_GRP9 : (Group 9 pm_isu_flow) Group dispatch rejected event:0X0096 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP9 : (Group 9 pm_isu_flow) Instructions completed event:0X0097 counters:7 um:zero minimum:10000 name:PM_CYC_GRP9 : (Group 9 pm_isu_flow) Processor cycles #Group 10 pm_isu_work, ISU Indicators of Work Blockage event:0X00A0 counters:0 um:zero minimum:1000 name:PM_GCT_EMPTY_CYC_GRP10 : (Group 10 pm_isu_work) Cycles GCT empty event:0X00A1 counters:1 um:zero minimum:1000 name:PM_WORK_HELD_GRP10 : (Group 10 pm_isu_work) Work held event:0X00A2 counters:2 um:zero minimum:1000 name:PM_STOP_COMPLETION_GRP10 : (Group 10 pm_isu_work) Completion stopped event:0X00A3 counters:3 um:zero minimum:1000 name:PM_EE_OFF_EXT_INT_GRP10 : (Group 10 pm_isu_work) Cycles MSR(EE) bit off and external interrupt pending event:0X00A4 counters:4 um:zero minimum:10000 name:PM_CYC_GRP10 : (Group 10 pm_isu_work) Processor cycles event:0X00A5 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP10 : (Group 10 pm_isu_work) Instructions completed event:0X00A6 counters:6 um:zero minimum:1000 name:PM_EE_OFF_GRP10 : (Group 10 pm_isu_work) Cycles MSR(EE) bit off event:0X00A7 counters:7 um:zero minimum:1000 name:PM_EXT_INT_GRP10 : (Group 10 pm_isu_work) External interrupts #Group 11 pm_fpu3, Floating Point events by unit event:0X00B0 counters:0 um:zero minimum:1000 name:PM_FPU0_FDIV_GRP11 : (Group 11 pm_fpu3) FPU0 executed FDIV instruction event:0X00B1 counters:1 um:zero minimum:1000 name:PM_FPU1_FDIV_GRP11 : (Group 11 pm_fpu3) FPU1 executed FDIV instruction event:0X00B2 counters:2 um:zero minimum:1000 name:PM_FPU0_FRSP_FCONV_GRP11 : (Group 11 pm_fpu3) FPU0 executed FRSP or FCONV instructions event:0X00B3 counters:3 um:zero minimum:1000 name:PM_FPU1_FRSP_FCONV_GRP11 : (Group 11 pm_fpu3) FPU1 executed FRSP or FCONV instructions event:0X00B4 counters:4 um:zero minimum:1000 name:PM_FPU0_FMA_GRP11 : (Group 11 pm_fpu3) FPU0 executed multiply-add instruction event:0X00B5 counters:5 um:zero minimum:1000 name:PM_FPU1_FMA_GRP11 : (Group 11 pm_fpu3) FPU1 executed multiply-add instruction event:0X00B6 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP11 : (Group 11 pm_fpu3) Instructions completed event:0X00B7 counters:7 um:zero minimum:10000 name:PM_CYC_GRP11 : (Group 11 pm_fpu3) Processor cycles #Group 12 pm_fpu4, Floating Point events by unit event:0X00C0 counters:0 um:zero minimum:1000 name:PM_FPU0_FSQRT_GRP12 : (Group 12 pm_fpu4) FPU0 executed FSQRT instruction event:0X00C1 counters:1 um:zero minimum:1000 name:PM_FPU1_FSQRT_GRP12 : (Group 12 pm_fpu4) FPU1 executed FSQRT instruction event:0X00C2 counters:2 um:zero minimum:1000 name:PM_FPU0_FIN_GRP12 : (Group 12 pm_fpu4) FPU0 produced a result event:0X00C3 counters:3 um:zero minimum:1000 name:PM_FPU1_FIN_GRP12 : (Group 12 pm_fpu4) FPU1 produced a result event:0X00C4 counters:4 um:zero minimum:1000 name:PM_FPU0_ALL_GRP12 : (Group 12 pm_fpu4) FPU0 executed add, mult, sub, cmp or sel instruction event:0X00C5 counters:5 um:zero minimum:1000 name:PM_FPU1_ALL_GRP12 : (Group 12 pm_fpu4) FPU1 executed add, mult, sub, cmp or sel instruction event:0X00C6 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP12 : (Group 12 pm_fpu4) Instructions completed event:0X00C7 counters:7 um:zero minimum:10000 name:PM_CYC_GRP12 : (Group 12 pm_fpu4) Processor cycles #Group 13 pm_fpu5, Floating Point events by unit event:0X00D0 counters:0 um:zero minimum:1000 name:PM_FPU0_DENORM_GRP13 : (Group 13 pm_fpu5) FPU0 received denormalized data event:0X00D1 counters:1 um:zero minimum:1000 name:PM_FPU1_DENORM_GRP13 : (Group 13 pm_fpu5) FPU1 received denormalized data event:0X00D2 counters:2 um:zero minimum:1000 name:PM_FPU0_FMOV_FEST_GRP13 : (Group 13 pm_fpu5) FPU0 executed FMOV or FEST instructions event:0X00D3 counters:3 um:zero minimum:1000 name:PM_FPU1_FMOV_FEST_GRP13 : (Group 13 pm_fpu5) FPU1 executing FMOV or FEST instructions event:0X00D4 counters:4 um:zero minimum:10000 name:PM_CYC_GRP13 : (Group 13 pm_fpu5) Processor cycles event:0X00D5 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP13 : (Group 13 pm_fpu5) Instructions completed event:0X00D6 counters:6 um:zero minimum:1000 name:PM_FPU0_FEST_GRP13 : (Group 13 pm_fpu5) FPU0 executed FEST instruction event:0X00D7 counters:7 um:zero minimum:1000 name:PM_FPU1_FEST_GRP13 : (Group 13 pm_fpu5) FPU1 executed FEST instruction #Group 14 pm_fpu7, Floating Point events by unit event:0X00E0 counters:0 um:zero minimum:1000 name:PM_FPU0_STALL3_GRP14 : (Group 14 pm_fpu7) FPU0 stalled in pipe3 event:0X00E1 counters:1 um:zero minimum:1000 name:PM_FPU1_STALL3_GRP14 : (Group 14 pm_fpu7) FPU1 stalled in pipe3 event:0X00E2 counters:2 um:zero minimum:1000 name:PM_FPU0_FIN_GRP14 : (Group 14 pm_fpu7) FPU0 produced a result event:0X00E3 counters:3 um:zero minimum:1000 name:PM_FPU1_FIN_GRP14 : (Group 14 pm_fpu7) FPU1 produced a result event:0X00E4 counters:4 um:zero minimum:10000 name:PM_CYC_GRP14 : (Group 14 pm_fpu7) Processor cycles event:0X00E5 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP14 : (Group 14 pm_fpu7) Instructions completed event:0X00E6 counters:6 um:zero minimum:10000 name:PM_CYC_GRP14 : (Group 14 pm_fpu7) Processor cycles event:0X00E7 counters:7 um:zero minimum:1000 name:PM_FPU0_FPSCR_GRP14 : (Group 14 pm_fpu7) FPU0 executed FPSCR instruction #Group 15 pm_lsu_flush, LSU Flush Events event:0X00F0 counters:0 um:zero minimum:1000 name:PM_LSU0_FLUSH_LRQ_GRP15 : (Group 15 pm_lsu_flush) LSU0 LRQ flushes event:0X00F1 counters:1 um:zero minimum:1000 name:PM_LSU1_FLUSH_LRQ_GRP15 : (Group 15 pm_lsu_flush) LSU1 LRQ flushes event:0X00F2 counters:2 um:zero minimum:10000 name:PM_CYC_GRP15 : (Group 15 pm_lsu_flush) Processor cycles event:0X00F3 counters:3 um:zero minimum:10000 name:PM_CYC_GRP15 : (Group 15 pm_lsu_flush) Processor cycles event:0X00F4 counters:4 um:zero minimum:1000 name:PM_LSU0_FLUSH_SRQ_GRP15 : (Group 15 pm_lsu_flush) LSU0 SRQ flushes event:0X00F5 counters:5 um:zero minimum:1000 name:PM_LSU1_FLUSH_SRQ_GRP15 : (Group 15 pm_lsu_flush) LSU1 SRQ flushes event:0X00F6 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP15 : (Group 15 pm_lsu_flush) Instructions completed event:0X00F7 counters:7 um:zero minimum:10000 name:PM_CYC_GRP15 : (Group 15 pm_lsu_flush) Processor cycles #Group 16 pm_lsu_load1, LSU Load Events event:0X0100 counters:0 um:zero minimum:1000 name:PM_LSU0_FLUSH_ULD_GRP16 : (Group 16 pm_lsu_load1) LSU0 unaligned load flushes event:0X0101 counters:1 um:zero minimum:1000 name:PM_LSU1_FLUSH_ULD_GRP16 : (Group 16 pm_lsu_load1) LSU1 unaligned load flushes event:0X0102 counters:2 um:zero minimum:1000 name:PM_LD_REF_L1_LSU0_GRP16 : (Group 16 pm_lsu_load1) LSU0 L1 D cache load references event:0X0103 counters:3 um:zero minimum:1000 name:PM_LD_REF_L1_LSU1_GRP16 : (Group 16 pm_lsu_load1) LSU1 L1 D cache load references event:0X0104 counters:4 um:zero minimum:10000 name:PM_CYC_GRP16 : (Group 16 pm_lsu_load1) Processor cycles event:0X0105 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP16 : (Group 16 pm_lsu_load1) Instructions completed event:0X0106 counters:6 um:zero minimum:1000 name:PM_LD_MISS_L1_LSU0_GRP16 : (Group 16 pm_lsu_load1) LSU0 L1 D cache load misses event:0X0107 counters:7 um:zero minimum:1000 name:PM_LD_MISS_L1_LSU1_GRP16 : (Group 16 pm_lsu_load1) LSU1 L1 D cache load misses #Group 17 pm_lsu_store1, LSU Store Events event:0X0110 counters:0 um:zero minimum:1000 name:PM_LSU0_FLUSH_UST_GRP17 : (Group 17 pm_lsu_store1) LSU0 unaligned store flushes event:0X0111 counters:1 um:zero minimum:1000 name:PM_LSU1_FLUSH_UST_GRP17 : (Group 17 pm_lsu_store1) LSU1 unaligned store flushes event:0X0112 counters:2 um:zero minimum:1000 name:PM_ST_REF_L1_LSU0_GRP17 : (Group 17 pm_lsu_store1) LSU0 L1 D cache store references event:0X0113 counters:3 um:zero minimum:1000 name:PM_ST_REF_L1_LSU1_GRP17 : (Group 17 pm_lsu_store1) LSU1 L1 D cache store references event:0X0114 counters:4 um:zero minimum:10000 name:PM_CYC_GRP17 : (Group 17 pm_lsu_store1) Processor cycles event:0X0115 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP17 : (Group 17 pm_lsu_store1) Instructions completed event:0X0116 counters:6 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP17 : (Group 17 pm_lsu_store1) L1 D cache store misses event:0X0117 counters:7 um:zero minimum:1000 name:PM_DC_INV_L2_GRP17 : (Group 17 pm_lsu_store1) L1 D cache entries invalidated from L2 #Group 18 pm_lsu_store2, LSU Store Events event:0X0120 counters:0 um:zero minimum:1000 name:PM_LSU0_SRQ_STFWD_GRP18 : (Group 18 pm_lsu_store2) LSU0 SRQ store forwarded event:0X0121 counters:1 um:zero minimum:1000 name:PM_LSU1_SRQ_STFWD_GRP18 : (Group 18 pm_lsu_store2) LSU1 SRQ store forwarded event:0X0122 counters:2 um:zero minimum:1000 name:PM_ST_REF_L1_LSU0_GRP18 : (Group 18 pm_lsu_store2) LSU0 L1 D cache store references event:0X0123 counters:3 um:zero minimum:1000 name:PM_ST_REF_L1_LSU1_GRP18 : (Group 18 pm_lsu_store2) LSU1 L1 D cache store references event:0X0124 counters:4 um:zero minimum:1000 name:PM_LSU0_BUSY_GRP18 : (Group 18 pm_lsu_store2) LSU0 busy event:0X0125 counters:5 um:zero minimum:10000 name:PM_CYC_GRP18 : (Group 18 pm_lsu_store2) Processor cycles event:0X0126 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP18 : (Group 18 pm_lsu_store2) Instructions completed event:0X0127 counters:7 um:zero minimum:10000 name:PM_CYC_GRP18 : (Group 18 pm_lsu_store2) Processor cycles #Group 19 pm_lsu7, Information on the Load Store Unit event:0X0130 counters:0 um:zero minimum:1000 name:PM_LSU0_DERAT_MISS_GRP19 : (Group 19 pm_lsu7) LSU0 DERAT misses event:0X0131 counters:1 um:zero minimum:1000 name:PM_LSU1_DERAT_MISS_GRP19 : (Group 19 pm_lsu7) LSU1 DERAT misses event:0X0132 counters:2 um:zero minimum:10000 name:PM_CYC_GRP19 : (Group 19 pm_lsu7) Processor cycles event:0X0133 counters:3 um:zero minimum:10000 name:PM_CYC_GRP19 : (Group 19 pm_lsu7) Processor cycles event:0X0134 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP19 : (Group 19 pm_lsu7) Instructions completed event:0X0135 counters:5 um:zero minimum:10000 name:PM_CYC_GRP19 : (Group 19 pm_lsu7) Processor cycles event:0X0136 counters:6 um:zero minimum:1000 name:PM_L1_DCACHE_RELOAD_VALID_GRP19 : (Group 19 pm_lsu7) L1 reload data source valid event:0X0137 counters:7 um:zero minimum:10000 name:PM_CYC_GRP19 : (Group 19 pm_lsu7) Processor cycles #Group 20 pm_misc, Misc Events for testing event:0X0140 counters:0 um:zero minimum:1000 name:PM_GCT_EMPTY_CYC_GRP20 : (Group 20 pm_misc) Cycles GCT empty event:0X0141 counters:1 um:zero minimum:1000 name:PM_LSU_LMQ_SRQ_EMPTY_CYC_GRP20 : (Group 20 pm_misc) Cycles LMQ and SRQ empty event:0X0142 counters:2 um:zero minimum:1000 name:PM_HV_CYC_GRP20 : (Group 20 pm_misc) Hypervisor Cycles event:0X0143 counters:3 um:zero minimum:10000 name:PM_CYC_GRP20 : (Group 20 pm_misc) Processor cycles event:0X0144 counters:4 um:zero minimum:1000 name:PM_1PLUS_PPC_CMPL_GRP20 : (Group 20 pm_misc) One or more PPC instruction completed event:0X0145 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP20 : (Group 20 pm_misc) Instructions completed event:0X0146 counters:6 um:zero minimum:1000 name:PM_GRP_CMPL_GRP20 : (Group 20 pm_misc) Group completed event:0X0147 counters:7 um:zero minimum:1000 name:PM_TB_BIT_TRANS_GRP20 : (Group 20 pm_misc) Time Base bit transition #Group 21 pm_pe_bench1, PE Benchmarker group for FP analysis event:0X0150 counters:0 um:zero minimum:1000 name:PM_FPU_FDIV_GRP21 : (Group 21 pm_pe_bench1) FPU executed FDIV instruction event:0X0151 counters:1 um:zero minimum:1000 name:PM_FPU_FMA_GRP21 : (Group 21 pm_pe_bench1) FPU executed multiply-add instruction event:0X0152 counters:2 um:zero minimum:1000 name:PM_FXU_FIN_GRP21 : (Group 21 pm_pe_bench1) FXU produced a result event:0X0153 counters:3 um:zero minimum:1000 name:PM_FPU_FIN_GRP21 : (Group 21 pm_pe_bench1) FPU produced a result event:0X0154 counters:4 um:zero minimum:10000 name:PM_CYC_GRP21 : (Group 21 pm_pe_bench1) Processor cycles event:0X0155 counters:5 um:zero minimum:1000 name:PM_FPU_FSQRT_GRP21 : (Group 21 pm_pe_bench1) FPU executed FSQRT instruction event:0X0156 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP21 : (Group 21 pm_pe_bench1) Instructions completed event:0X0157 counters:7 um:zero minimum:1000 name:PM_FPU_FMOV_FEST_GRP21 : (Group 21 pm_pe_bench1) FPU executing FMOV or FEST instructions #Group 22 pm_pe_bench4, PE Benchmarker group for L1 and TLB event:0X0160 counters:0 um:zero minimum:1000 name:PM_DTLB_MISS_GRP22 : (Group 22 pm_pe_bench4) Data TLB misses event:0X0161 counters:1 um:zero minimum:1000 name:PM_ITLB_MISS_GRP22 : (Group 22 pm_pe_bench4) Instruction TLB misses event:0X0162 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP22 : (Group 22 pm_pe_bench4) L1 D cache load misses event:0X0163 counters:3 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP22 : (Group 22 pm_pe_bench4) L1 D cache store misses event:0X0164 counters:4 um:zero minimum:10000 name:PM_CYC_GRP22 : (Group 22 pm_pe_bench4) Processor cycles event:0X0165 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP22 : (Group 22 pm_pe_bench4) Instructions completed event:0X0166 counters:6 um:zero minimum:1000 name:PM_ST_REF_L1_GRP22 : (Group 22 pm_pe_bench4) L1 D cache store references event:0X0167 counters:7 um:zero minimum:1000 name:PM_LD_REF_L1_GRP22 : (Group 22 pm_pe_bench4) L1 D cache load references #Group 23 pm_hpmcount1, Hpmcount group for L1 and TLB behavior event:0X0170 counters:0 um:zero minimum:1000 name:PM_DTLB_MISS_GRP23 : (Group 23 pm_hpmcount1) Data TLB misses event:0X0171 counters:1 um:zero minimum:1000 name:PM_LSU_LMQ_SRQ_EMPTY_CYC_GRP23 : (Group 23 pm_hpmcount1) Cycles LMQ and SRQ empty event:0X0172 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP23 : (Group 23 pm_hpmcount1) L1 D cache load misses event:0X0173 counters:3 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP23 : (Group 23 pm_hpmcount1) L1 D cache store misses event:0X0174 counters:4 um:zero minimum:10000 name:PM_CYC_GRP23 : (Group 23 pm_hpmcount1) Processor cycles event:0X0175 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP23 : (Group 23 pm_hpmcount1) Instructions completed event:0X0176 counters:6 um:zero minimum:1000 name:PM_ST_REF_L1_GRP23 : (Group 23 pm_hpmcount1) L1 D cache store references event:0X0177 counters:7 um:zero minimum:1000 name:PM_LD_REF_L1_GRP23 : (Group 23 pm_hpmcount1) L1 D cache load references #Group 24 pm_hpmcount2, Hpmcount group for computation event:0X0180 counters:0 um:zero minimum:1000 name:PM_FPU_FDIV_GRP24 : (Group 24 pm_hpmcount2) FPU executed FDIV instruction event:0X0181 counters:1 um:zero minimum:1000 name:PM_FPU_FMA_GRP24 : (Group 24 pm_hpmcount2) FPU executed multiply-add instruction event:0X0182 counters:2 um:zero minimum:1000 name:PM_FPU0_FIN_GRP24 : (Group 24 pm_hpmcount2) FPU0 produced a result event:0X0183 counters:3 um:zero minimum:1000 name:PM_FPU1_FIN_GRP24 : (Group 24 pm_hpmcount2) FPU1 produced a result event:0X0184 counters:4 um:zero minimum:10000 name:PM_CYC_GRP24 : (Group 24 pm_hpmcount2) Processor cycles event:0X0185 counters:5 um:zero minimum:1000 name:PM_FPU_STF_GRP24 : (Group 24 pm_hpmcount2) FPU executed store instruction event:0X0186 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP24 : (Group 24 pm_hpmcount2) Instructions completed event:0X0187 counters:7 um:zero minimum:1000 name:PM_LSU_LDF_GRP24 : (Group 24 pm_hpmcount2) LSU executed Floating Point load instruction #Group 25 pm_l1andbr, L1 misses and branch misspredict analysis event:0X0190 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP25 : (Group 25 pm_l1andbr) Instructions completed event:0X0191 counters:1 um:zero minimum:10000 name:PM_CYC_GRP25 : (Group 25 pm_l1andbr) Processor cycles event:0X0192 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP25 : (Group 25 pm_l1andbr) L1 D cache load misses event:0X0193 counters:3 um:zero minimum:1000 name:PM_BR_ISSUED_GRP25 : (Group 25 pm_l1andbr) Branches issued event:0X0194 counters:4 um:zero minimum:1000 name:PM_LSU0_BUSY_GRP25 : (Group 25 pm_l1andbr) LSU0 busy event:0X0195 counters:5 um:zero minimum:10000 name:PM_CYC_GRP25 : (Group 25 pm_l1andbr) Processor cycles event:0X0196 counters:6 um:zero minimum:1000 name:PM_BR_MPRED_CR_GRP25 : (Group 25 pm_l1andbr) Branch mispredictions due to CR bit setting event:0X0197 counters:7 um:zero minimum:1000 name:PM_BR_MPRED_TA_GRP25 : (Group 25 pm_l1andbr) Branch mispredictions due to target address #Group 26 pm_imix, Instruction mix: loads, stores and branches event:0X01A0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP26 : (Group 26 pm_imix) Instructions completed event:0X01A1 counters:1 um:zero minimum:10000 name:PM_CYC_GRP26 : (Group 26 pm_imix) Processor cycles event:0X01A2 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP26 : (Group 26 pm_imix) L1 D cache load misses event:0X01A3 counters:3 um:zero minimum:1000 name:PM_BR_ISSUED_GRP26 : (Group 26 pm_imix) Branches issued event:0X01A4 counters:4 um:zero minimum:10000 name:PM_CYC_GRP26 : (Group 26 pm_imix) Processor cycles event:0X01A5 counters:5 um:zero minimum:1000 name:PM_LSU0_BUSY_GRP26 : (Group 26 pm_imix) LSU0 busy event:0X01A6 counters:6 um:zero minimum:1000 name:PM_ST_REF_L1_GRP26 : (Group 26 pm_imix) L1 D cache store references event:0X01A7 counters:7 um:zero minimum:1000 name:PM_LD_REF_L1_GRP26 : (Group 26 pm_imix) L1 D cache load references #Group 27 pm_branch, SLB and branch misspredict analysis event:0X01B0 counters:0 um:zero minimum:10000 name:PM_RUN_CYC_GRP27 : (Group 27 pm_branch) Run cycles event:0X01B1 counters:1 um:zero minimum:1000 name:PM_DSLB_MISS_GRP27 : (Group 27 pm_branch) Data SLB misses event:0X01B2 counters:2 um:zero minimum:1000 name:PM_BR_ISSUED_GRP27 : (Group 27 pm_branch) Branches issued event:0X01B3 counters:3 um:zero minimum:1000 name:PM_BR_MPRED_CR_GRP27 : (Group 27 pm_branch) Branch mispredictions due to CR bit setting event:0X01B4 counters:4 um:zero minimum:1000 name:PM_ISLB_MISS_GRP27 : (Group 27 pm_branch) Instruction SLB misses event:0X01B5 counters:5 um:zero minimum:10000 name:PM_CYC_GRP27 : (Group 27 pm_branch) Processor cycles event:0X01B6 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP27 : (Group 27 pm_branch) Instructions completed event:0X01B7 counters:7 um:zero minimum:1000 name:PM_BR_MPRED_TA_GRP27 : (Group 27 pm_branch) Branch mispredictions due to target address #Group 28 pm_data, data source and LMQ event:0X01C0 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L2_GRP28 : (Group 28 pm_data) Data loaded from L2 event:0X01C1 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_MEM_GRP28 : (Group 28 pm_data) Data loaded from memory event:0X01C2 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP28 : (Group 28 pm_data) Instructions completed event:0X01C3 counters:3 um:zero minimum:10000 name:PM_CYC_GRP28 : (Group 28 pm_data) Processor cycles event:0X01C4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP28 : (Group 28 pm_data) Instructions completed event:0X01C5 counters:5 um:zero minimum:10000 name:PM_CYC_GRP28 : (Group 28 pm_data) Processor cycles event:0X01C6 counters:6 um:zero minimum:1000 name:PM_LSU_LMQ_S0_ALLOC_GRP28 : (Group 28 pm_data) LMQ slot 0 allocated event:0X01C7 counters:7 um:zero minimum:1000 name:PM_LSU_LMQ_S0_VALID_GRP28 : (Group 28 pm_data) LMQ slot 0 valid #Group 29 pm_tlb, TLB and LRQ plus data prefetch event:0X01D0 counters:0 um:zero minimum:1000 name:PM_DTLB_MISS_GRP29 : (Group 29 pm_tlb) Data TLB misses event:0X01D1 counters:1 um:zero minimum:1000 name:PM_ITLB_MISS_GRP29 : (Group 29 pm_tlb) Instruction TLB misses event:0X01D2 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP29 : (Group 29 pm_tlb) Instructions completed event:0X01D3 counters:3 um:zero minimum:10000 name:PM_CYC_GRP29 : (Group 29 pm_tlb) Processor cycles event:0X01D4 counters:4 um:zero minimum:1000 name:PM_LSU_LRQ_S0_ALLOC_GRP29 : (Group 29 pm_tlb) LRQ slot 0 allocated event:0X01D5 counters:5 um:zero minimum:1000 name:PM_LSU_LRQ_S0_VALID_GRP29 : (Group 29 pm_tlb) LRQ slot 0 valid event:0X01D6 counters:6 um:zero minimum:1000 name:PM_L1_PREF_GRP29 : (Group 29 pm_tlb) L1 cache data prefetches event:0X01D7 counters:7 um:zero minimum:1000 name:PM_L2_PREF_GRP29 : (Group 29 pm_tlb) L2 cache prefetches #Group 30 pm_isource, inst source and tablewalk event:0X01E0 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L2_GRP30 : (Group 30 pm_isource) Instructions fetched from L2 event:0X01E1 counters:1 um:zero minimum:1000 name:PM_INST_FROM_MEM_GRP30 : (Group 30 pm_isource) Instruction fetched from memory event:0X01E2 counters:2 um:zero minimum:1000 name:PM_HV_CYC_GRP30 : (Group 30 pm_isource) Hypervisor Cycles event:0X01E3 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP30 : (Group 30 pm_isource) Instructions completed event:0X01E4 counters:4 um:zero minimum:1000 name:PM_DATA_TABLEWALK_CYC_GRP30 : (Group 30 pm_isource) Cycles doing data tablewalks event:0X01E5 counters:5 um:zero minimum:10000 name:PM_CYC_GRP30 : (Group 30 pm_isource) Processor cycles event:0X01E6 counters:6 um:zero minimum:1000 name:PM_GRP_CMPL_GRP30 : (Group 30 pm_isource) Group completed event:0X01E7 counters:7 um:zero minimum:1000 name:PM_DC_INV_L2_GRP30 : (Group 30 pm_isource) L1 D cache entries invalidated from L2 #Group 31 pm_sync, Sync and SRQ event:0X01F0 counters:0 um:zero minimum:1000 name:PM_LSU_SRQ_S0_ALLOC_GRP31 : (Group 31 pm_sync) SRQ slot 0 allocated event:0X01F1 counters:1 um:zero minimum:1000 name:PM_LSU_SRQ_S0_VALID_GRP31 : (Group 31 pm_sync) SRQ slot 0 valid event:0X01F2 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP31 : (Group 31 pm_sync) L1 D cache load misses event:0X01F3 counters:3 um:zero minimum:1000 name:PM_LSU_SRQ_SYNC_CYC_GRP31 : (Group 31 pm_sync) SRQ sync duration event:0X01F4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP31 : (Group 31 pm_sync) Instructions completed event:0X01F5 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP31 : (Group 31 pm_sync) Instructions completed event:0X01F6 counters:6 um:zero minimum:10000 name:PM_CYC_GRP31 : (Group 31 pm_sync) Processor cycles event:0X01F7 counters:7 um:zero minimum:1000 name:PM_LD_REF_L1_GRP31 : (Group 31 pm_sync) L1 D cache load references #Group 32 pm_ierat, IERAT event:0X0200 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L1_GRP32 : (Group 32 pm_ierat) Instruction fetched from L1 event:0X0201 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP32 : (Group 32 pm_ierat) Instructions completed event:0X0202 counters:2 um:zero minimum:1000 name:PM_IERAT_XLATE_WR_GRP32 : (Group 32 pm_ierat) Translation written to ierat event:0X0203 counters:3 um:zero minimum:10000 name:PM_CYC_GRP32 : (Group 32 pm_ierat) Processor cycles event:0X0204 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP32 : (Group 32 pm_ierat) Instructions completed event:0X0205 counters:5 um:zero minimum:10000 name:PM_CYC_GRP32 : (Group 32 pm_ierat) Processor cycles event:0X0206 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP32 : (Group 32 pm_ierat) Instructions completed event:0X0207 counters:7 um:zero minimum:10000 name:PM_CYC_GRP32 : (Group 32 pm_ierat) Processor cycles #Group 33 pm_derat, DERAT event:0X0210 counters:0 um:zero minimum:1000 name:PM_GCT_EMPTY_CYC_GRP33 : (Group 33 pm_derat) Cycles GCT empty event:0X0211 counters:1 um:zero minimum:1000 name:PM_GRP_DISP_VALID_GRP33 : (Group 33 pm_derat) Group dispatch valid event:0X0212 counters:2 um:zero minimum:1000 name:PM_L1_DCACHE_RELOAD_VALID_GRP33 : (Group 33 pm_derat) L1 reload data source valid event:0X0213 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP33 : (Group 33 pm_derat) Instructions completed event:0X0214 counters:4 um:zero minimum:1000 name:PM_INST_DISP_GRP33 : (Group 33 pm_derat) Instructions dispatched event:0X0215 counters:5 um:zero minimum:1000 name:PM_LSU_DERAT_MISS_GRP33 : (Group 33 pm_derat) DERAT misses event:0X0216 counters:6 um:zero minimum:1000 name:PM_ST_REF_L1_GRP33 : (Group 33 pm_derat) L1 D cache store references event:0X0217 counters:7 um:zero minimum:10000 name:PM_CYC_GRP33 : (Group 33 pm_derat) Processor cycles #Group 34 pm_mark1, Information on marked instructions event:0X0220 counters:0 um:zero minimum:1000 name:PM_MRK_LD_MISS_L1_GRP34 : (Group 34 pm_mark1) Marked L1 D cache load misses event:0X0221 counters:1 um:zero minimum:1000 name:PM_THRESH_TIMEO_GRP34 : (Group 34 pm_mark1) Threshold timeout event:0X0222 counters:2 um:zero minimum:10000 name:PM_CYC_GRP34 : (Group 34 pm_mark1) Processor cycles event:0X0223 counters:3 um:zero minimum:1000 name:PM_MRK_GRP_CMPL_GRP34 : (Group 34 pm_mark1) Marked group completed event:0X0224 counters:4 um:zero minimum:1000 name:PM_GRP_MRK_GRP34 : (Group 34 pm_mark1) Group marked in IDU event:0X0225 counters:5 um:zero minimum:1000 name:PM_MRK_GRP_ISSUED_GRP34 : (Group 34 pm_mark1) Marked group issued event:0X0226 counters:6 um:zero minimum:1000 name:PM_MRK_INST_FIN_GRP34 : (Group 34 pm_mark1) Marked instruction finished event:0X0227 counters:7 um:zero minimum:10000 name:PM_INST_CMPL_GRP34 : (Group 34 pm_mark1) Instructions completed #Group 35 pm_mark2, Marked Instructions Processing Flow event:0X0230 counters:0 um:zero minimum:1000 name:PM_MRK_GRP_DISP_GRP35 : (Group 35 pm_mark2) Marked group dispatched event:0X0231 counters:1 um:zero minimum:1000 name:PM_MRK_BRU_FIN_GRP35 : (Group 35 pm_mark2) Marked instruction BRU processing finished event:0X0232 counters:2 um:zero minimum:10000 name:PM_CYC_GRP35 : (Group 35 pm_mark2) Processor cycles event:0X0233 counters:3 um:zero minimum:1000 name:PM_MRK_CRU_FIN_GRP35 : (Group 35 pm_mark2) Marked instruction CRU processing finished event:0X0234 counters:4 um:zero minimum:1000 name:PM_GRP_MRK_GRP35 : (Group 35 pm_mark2) Group marked in IDU event:0X0235 counters:5 um:zero minimum:1000 name:PM_MRK_FXU_FIN_GRP35 : (Group 35 pm_mark2) Marked instruction FXU processing finished event:0X0236 counters:6 um:zero minimum:1000 name:PM_MRK_FPU_FIN_GRP35 : (Group 35 pm_mark2) Marked instruction FPU processing finished event:0X0237 counters:7 um:zero minimum:1000 name:PM_MRK_LSU_FIN_GRP35 : (Group 35 pm_mark2) Marked instruction LSU processing finished #Group 36 pm_mark3, Marked Stores Processing Flow event:0X0240 counters:0 um:zero minimum:1000 name:PM_MRK_ST_CMPL_GRP36 : (Group 36 pm_mark3) Marked store instruction completed event:0X0241 counters:1 um:zero minimum:10000 name:PM_CYC_GRP36 : (Group 36 pm_mark3) Processor cycles event:0X0242 counters:2 um:zero minimum:1000 name:PM_MRK_ST_CMPL_INT_GRP36 : (Group 36 pm_mark3) Marked store completed with intervention event:0X0243 counters:3 um:zero minimum:1000 name:PM_MRK_GRP_CMPL_GRP36 : (Group 36 pm_mark3) Marked group completed event:0X0244 counters:4 um:zero minimum:1000 name:PM_MRK_GRP_TIMEO_GRP36 : (Group 36 pm_mark3) Marked group completion timeout event:0X0245 counters:5 um:zero minimum:1000 name:PM_MRK_ST_GPS_GRP36 : (Group 36 pm_mark3) Marked store sent to GPS event:0X0246 counters:6 um:zero minimum:1000 name:PM_MRK_LSU_SRQ_INST_VALID_GRP36 : (Group 36 pm_mark3) Marked instruction valid in SRQ event:0X0247 counters:7 um:zero minimum:10000 name:PM_INST_CMPL_GRP36 : (Group 36 pm_mark3) Instructions completed #Group 37 pm_lsu_mark1, Load Store Unit Marked Events event:0X0250 counters:0 um:zero minimum:1000 name:PM_MRK_ST_MISS_L1_GRP37 : (Group 37 pm_lsu_mark1) Marked L1 D cache store misses event:0X0251 counters:1 um:zero minimum:1000 name:PM_MRK_IMR_RELOAD_GRP37 : (Group 37 pm_lsu_mark1) Marked IMR reloaded event:0X0252 counters:2 um:zero minimum:1000 name:PM_MRK_LSU0_FLUSH_UST_GRP37 : (Group 37 pm_lsu_mark1) LSU0 marked unaligned store flushes event:0X0253 counters:3 um:zero minimum:1000 name:PM_MRK_LSU1_FLUSH_UST_GRP37 : (Group 37 pm_lsu_mark1) LSU1 marked unaligned store flushes event:0X0254 counters:4 um:zero minimum:10000 name:PM_CYC_GRP37 : (Group 37 pm_lsu_mark1) Processor cycles event:0X0255 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP37 : (Group 37 pm_lsu_mark1) Instructions completed event:0X0256 counters:6 um:zero minimum:1000 name:PM_MRK_LSU0_FLUSH_ULD_GRP37 : (Group 37 pm_lsu_mark1) LSU0 marked unaligned load flushes event:0X0257 counters:7 um:zero minimum:1000 name:PM_MRK_LSU1_FLUSH_ULD_GRP37 : (Group 37 pm_lsu_mark1) LSU1 marked unaligned load flushes #Group 38 pm_lsu_mark2, Load Store Unit Marked Events event:0X0260 counters:0 um:zero minimum:1000 name:PM_MRK_LD_MISS_L1_LSU0_GRP38 : (Group 38 pm_lsu_mark2) LSU0 L1 D cache load misses event:0X0261 counters:1 um:zero minimum:1000 name:PM_MRK_LD_MISS_L1_LSU1_GRP38 : (Group 38 pm_lsu_mark2) LSU1 L1 D cache load misses event:0X0262 counters:2 um:zero minimum:1000 name:PM_MRK_LSU0_FLUSH_LRQ_GRP38 : (Group 38 pm_lsu_mark2) LSU0 marked LRQ flushes event:0X0263 counters:3 um:zero minimum:1000 name:PM_MRK_LSU1_FLUSH_LRQ_GRP38 : (Group 38 pm_lsu_mark2) LSU1 marked LRQ flushes event:0X0264 counters:4 um:zero minimum:10000 name:PM_CYC_GRP38 : (Group 38 pm_lsu_mark2) Processor cycles event:0X0265 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP38 : (Group 38 pm_lsu_mark2) Instructions completed event:0X0266 counters:6 um:zero minimum:1000 name:PM_MRK_LSU0_FLUSH_SRQ_GRP38 : (Group 38 pm_lsu_mark2) LSU0 marked SRQ flushes event:0X0267 counters:7 um:zero minimum:1000 name:PM_MRK_LSU1_FLUSH_SRQ_GRP38 : (Group 38 pm_lsu_mark2) LSU1 marked SRQ flushes #Group 39 pm_fxu1, Fixed Point events by unit event:0X0270 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP39 : (Group 39 pm_fxu1) Instructions completed event:0X0271 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP39 : (Group 39 pm_fxu1) Instructions completed event:0X0272 counters:2 um:zero minimum:1000 name:PM_FXU_FIN_GRP39 : (Group 39 pm_fxu1) FXU produced a result event:0X0273 counters:3 um:zero minimum:1000 name:PM_FXU1_BUSY_FXU0_IDLE_GRP39 : (Group 39 pm_fxu1) FXU1 busy FXU0 idle event:0X0274 counters:4 um:zero minimum:1000 name:PM_FXU_IDLE_GRP39 : (Group 39 pm_fxu1) FXU idle event:0X0275 counters:5 um:zero minimum:1000 name:PM_FXU_BUSY_GRP39 : (Group 39 pm_fxu1) FXU busy event:0X0276 counters:6 um:zero minimum:1000 name:PM_FXU0_BUSY_FXU1_IDLE_GRP39 : (Group 39 pm_fxu1) FXU0 busy FXU1 idle event:0X0277 counters:7 um:zero minimum:10000 name:PM_CYC_GRP39 : (Group 39 pm_fxu1) Processor cycles #Group 40 pm_fxu2, Fixed Point events by unit event:0X0280 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP40 : (Group 40 pm_fxu2) Instructions completed event:0X0281 counters:1 um:zero minimum:10000 name:PM_CYC_GRP40 : (Group 40 pm_fxu2) Processor cycles event:0X0282 counters:2 um:zero minimum:1000 name:PM_FXLS1_FULL_CYC_GRP40 : (Group 40 pm_fxu2) Cycles FXU1/LS1 queue full event:0X0283 counters:3 um:zero minimum:1000 name:PM_FXLS0_FULL_CYC_GRP40 : (Group 40 pm_fxu2) Cycles FXU0/LS0 queue full event:0X0284 counters:4 um:zero minimum:1000 name:PM_FXU_IDLE_GRP40 : (Group 40 pm_fxu2) FXU idle event:0X0285 counters:5 um:zero minimum:1000 name:PM_FXU_BUSY_GRP40 : (Group 40 pm_fxu2) FXU busy event:0X0286 counters:6 um:zero minimum:1000 name:PM_FXU0_FIN_GRP40 : (Group 40 pm_fxu2) FXU0 produced a result event:0X0287 counters:7 um:zero minimum:1000 name:PM_FXU1_FIN_GRP40 : (Group 40 pm_fxu2) FXU1 produced a result #Group 41 pm_ifu, pm_ifu event:0X0290 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L1_GRP41 : (Group 41 pm_ifu) Instruction fetched from L1 event:0X0291 counters:1 um:zero minimum:1000 name:PM_INST_FROM_MEM_GRP41 : (Group 41 pm_ifu) Instruction fetched from memory event:0X0292 counters:2 um:zero minimum:1000 name:PM_INST_FROM_PREF_GRP41 : (Group 41 pm_ifu) Instructions fetched from prefetch event:0X0293 counters:3 um:zero minimum:1000 name:PM_0INST_FETCH_GRP41 : (Group 41 pm_ifu) No instructions fetched event:0X0294 counters:4 um:zero minimum:1000 name:PM_INST_FETCH_CYC_GRP41 : (Group 41 pm_ifu) Cycles at least 1 instruction fetched event:0X0295 counters:5 um:zero minimum:1000 name:PM_INST_FROM_L25_MOD_GRP41 : (Group 41 pm_ifu) Instruction fetched from L2.5 modified event:0X0296 counters:6 um:zero minimum:10000 name:PM_CYC_GRP41 : (Group 41 pm_ifu) Processor cycles event:0X0297 counters:7 um:zero minimum:10000 name:PM_INST_CMPL_GRP41 : (Group 41 pm_ifu) Instructions completed #Group 42 pm_cpi_stack1, CPI stack analysis event:0X02A0 counters:0 um:zero minimum:1000 name:PM_LSU0_BUSY_GRP42 : (Group 42 pm_cpi_stack1) LSU0 busy event:0X02A1 counters:1 um:zero minimum:1000 name:PM_LSU1_BUSY_GRP42 : (Group 42 pm_cpi_stack1) LSU1 busy event:0X02A2 counters:2 um:zero minimum:1000 name:PM_LSU_FLUSH_GRP42 : (Group 42 pm_cpi_stack1) Flush initiated by LSU event:0X02A3 counters:3 um:zero minimum:1000 name:PM_FLUSH_LSU_BR_MPRED_GRP42 : (Group 42 pm_cpi_stack1) Flush caused by LSU or branch mispredict event:0X02A4 counters:4 um:zero minimum:1000 name:PM_CMPLU_STALL_LSU_GRP42 : (Group 42 pm_cpi_stack1) Completion stall caused by LSU instruction event:0X02A5 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP42 : (Group 42 pm_cpi_stack1) Instructions completed event:0X02A6 counters:6 um:zero minimum:1000 name:PM_CMPLU_STALL_ERAT_MISS_GRP42 : (Group 42 pm_cpi_stack1) Completion stall caused by ERAT miss event:0X02A7 counters:7 um:zero minimum:10000 name:PM_CYC_GRP42 : (Group 42 pm_cpi_stack1) Processor cycles #Group 43 pm_cpi_stack2, CPI stack analysis event:0X02B0 counters:0 um:zero minimum:1000 name:PM_CMPLU_STALL_OTHER_GRP43 : (Group 43 pm_cpi_stack2) Completion stall caused by other reason event:0X02B1 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP43 : (Group 43 pm_cpi_stack2) Instructions completed event:0X02B2 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP43 : (Group 43 pm_cpi_stack2) L1 D cache load misses event:0X02B3 counters:3 um:zero minimum:10000 name:PM_CYC_GRP43 : (Group 43 pm_cpi_stack2) Processor cycles event:0X02B4 counters:4 um:zero minimum:1000 name:PM_CMPLU_STALL_DCACHE_MISS_GRP43 : (Group 43 pm_cpi_stack2) Completion stall caused by D cache miss event:0X02B5 counters:5 um:zero minimum:1000 name:PM_LSU_DERAT_MISS_GRP43 : (Group 43 pm_cpi_stack2) DERAT misses event:0X02B6 counters:6 um:zero minimum:1000 name:PM_CMPLU_STALL_REJECT_GRP43 : (Group 43 pm_cpi_stack2) Completion stall caused by reject event:0X02B7 counters:7 um:zero minimum:1000 name:PM_LD_REF_L1_GRP43 : (Group 43 pm_cpi_stack2) L1 D cache load references #Group 44 pm_cpi_stack3, CPI stack analysis event:0X02C0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP44 : (Group 44 pm_cpi_stack3) Instructions completed event:0X02C1 counters:1 um:zero minimum:1000 name:PM_GCT_EMPTY_SRQ_FULL_GRP44 : (Group 44 pm_cpi_stack3) GCT empty caused by SRQ full event:0X02C2 counters:2 um:zero minimum:1000 name:PM_FXU_FIN_GRP44 : (Group 44 pm_cpi_stack3) FXU produced a result event:0X02C3 counters:3 um:zero minimum:1000 name:PM_FPU_FIN_GRP44 : (Group 44 pm_cpi_stack3) FPU produced a result event:0X02C4 counters:4 um:zero minimum:1000 name:PM_CMPLU_STALL_FXU_GRP44 : (Group 44 pm_cpi_stack3) Completion stall caused by FXU instruction event:0X02C5 counters:5 um:zero minimum:1000 name:PM_FXU_BUSY_GRP44 : (Group 44 pm_cpi_stack3) FXU busy event:0X02C6 counters:6 um:zero minimum:1000 name:PM_CMPLU_STALL_DIV_GRP44 : (Group 44 pm_cpi_stack3) Completion stall caused by DIV instruction event:0X02C7 counters:7 um:zero minimum:10000 name:PM_CYC_GRP44 : (Group 44 pm_cpi_stack3) Processor cycles #Group 45 pm_cpi_stack4, CPI stack analysis event:0X02D0 counters:0 um:zero minimum:1000 name:PM_FPU_FDIV_GRP45 : (Group 45 pm_cpi_stack4) FPU executed FDIV instruction event:0X02D1 counters:1 um:zero minimum:1000 name:PM_FPU_FMA_GRP45 : (Group 45 pm_cpi_stack4) FPU executed multiply-add instruction event:0X02D2 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP45 : (Group 45 pm_cpi_stack4) Instructions completed event:0X02D3 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP45 : (Group 45 pm_cpi_stack4) IOPS instructions completed event:0X02D4 counters:4 um:zero minimum:1000 name:PM_CMPLU_STALL_FDIV_GRP45 : (Group 45 pm_cpi_stack4) Completion stall caused by FDIV or FQRT instruction event:0X02D5 counters:5 um:zero minimum:1000 name:PM_FPU_FSQRT_GRP45 : (Group 45 pm_cpi_stack4) FPU executed FSQRT instruction event:0X02D6 counters:6 um:zero minimum:1000 name:PM_CMPLU_STALL_FPU_GRP45 : (Group 45 pm_cpi_stack4) Completion stall caused by FPU instruction event:0X02D7 counters:7 um:zero minimum:10000 name:PM_CYC_GRP45 : (Group 45 pm_cpi_stack4) Processor cycles #Group 46 pm_cpi_stack5, CPI stack analysis event:0X02E0 counters:0 um:zero minimum:1000 name:PM_GCT_EMPTY_CYC_GRP46 : (Group 46 pm_cpi_stack5) Cycles GCT empty event:0X02E1 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP46 : (Group 46 pm_cpi_stack5) Instructions completed event:0X02E2 counters:2 um:zero minimum:1000 name:PM_FLUSH_BR_MPRED_GRP46 : (Group 46 pm_cpi_stack5) Flush caused by branch mispredict event:0X02E3 counters:3 um:zero minimum:1000 name:PM_BR_MPRED_TA_GRP46 : (Group 46 pm_cpi_stack5) Branch mispredictions due to target address event:0X02E4 counters:4 um:zero minimum:1000 name:PM_GCT_EMPTY_IC_MISS_GRP46 : (Group 46 pm_cpi_stack5) GCT empty due to I cache miss event:0X02E5 counters:5 um:zero minimum:10000 name:PM_CYC_GRP46 : (Group 46 pm_cpi_stack5) Processor cycles event:0X02E6 counters:6 um:zero minimum:1000 name:PM_GCT_EMPTY_BR_MPRED_GRP46 : (Group 46 pm_cpi_stack5) GCT empty due to branch mispredict event:0X02E7 counters:7 um:zero minimum:1000 name:PM_L1_WRITE_CYC_GRP46 : (Group 46 pm_cpi_stack5) Cycles writing to instruction L1 #Group 47 pm_data2, data source and LMQ event:0X02F0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP47 : (Group 47 pm_data2) Instructions completed event:0X02F1 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP47 : (Group 47 pm_data2) Instructions completed event:0X02F2 counters:2 um:zero minimum:10000 name:PM_CYC_GRP47 : (Group 47 pm_data2) Processor cycles event:0X02F3 counters:3 um:zero minimum:10000 name:PM_CYC_GRP47 : (Group 47 pm_data2) Processor cycles event:0X02F4 counters:4 um:zero minimum:1000 name:PM_DATA_FROM_L25_SHR_GRP47 : (Group 47 pm_data2) Data loaded from L2.5 shared event:0X02F5 counters:5 um:zero minimum:1000 name:PM_DATA_FROM_L25_MOD_GRP47 : (Group 47 pm_data2) Data loaded from L2.5 modified event:0X02F6 counters:6 um:zero minimum:1000 name:PM_LSU_LMQ_S0_ALLOC_GRP47 : (Group 47 pm_data2) LMQ slot 0 allocated event:0X02F7 counters:7 um:zero minimum:1000 name:PM_LSU_LMQ_S0_VALID_GRP47 : (Group 47 pm_data2) LMQ slot 0 valid #Group 48 pm_fetch_branch, Instruction fetch and branch events event:0X0300 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L2_GRP48 : (Group 48 pm_fetch_branch) Instructions fetched from L2 event:0X0301 counters:1 um:zero minimum:1000 name:PM_INST_FROM_MEM_GRP48 : (Group 48 pm_fetch_branch) Instruction fetched from memory event:0X0302 counters:2 um:zero minimum:1000 name:PM_INST_FROM_PREF_GRP48 : (Group 48 pm_fetch_branch) Instructions fetched from prefetch event:0X0303 counters:3 um:zero minimum:1000 name:PM_BR_ISSUED_GRP48 : (Group 48 pm_fetch_branch) Branches issued event:0X0304 counters:4 um:zero minimum:10000 name:PM_CYC_GRP48 : (Group 48 pm_fetch_branch) Processor cycles event:0X0305 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP48 : (Group 48 pm_fetch_branch) Instructions completed event:0X0306 counters:6 um:zero minimum:1000 name:PM_BR_MPRED_CR_GRP48 : (Group 48 pm_fetch_branch) Branch mispredictions due to CR bit setting event:0X0307 counters:7 um:zero minimum:1000 name:PM_BR_MPRED_TA_GRP48 : (Group 48 pm_fetch_branch) Branch mispredictions due to target address #Group 49 pm_l1l2_miss, L1 and L2 miss events event:0X0310 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L2_GRP49 : (Group 49 pm_l1l2_miss) Data loaded from L2 event:0X0311 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_MEM_GRP49 : (Group 49 pm_l1l2_miss) Data loaded from memory event:0X0312 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP49 : (Group 49 pm_l1l2_miss) Instructions completed event:0X0313 counters:3 um:zero minimum:1000 name:PM_LD_MISS_L1_LSU0_GRP49 : (Group 49 pm_l1l2_miss) LSU0 L1 D cache load misses event:0X0314 counters:4 um:zero minimum:1000 name:PM_1PLUS_PPC_CMPL_GRP49 : (Group 49 pm_l1l2_miss) One or more PPC instruction completed event:0X0315 counters:5 um:zero minimum:10000 name:PM_CYC_GRP49 : (Group 49 pm_l1l2_miss) Processor cycles event:0X0316 counters:6 um:zero minimum:1000 name:PM_LD_MISS_L1_LSU1_GRP49 : (Group 49 pm_l1l2_miss) LSU1 L1 D cache load misses event:0X0317 counters:7 um:zero minimum:1000 name:PM_LD_REF_L1_GRP49 : (Group 49 pm_l1l2_miss) L1 D cache load references #Group 50 pm_data_from, Data From L2 instructions event:0X0320 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L2_GRP50 : (Group 50 pm_data_from) Data loaded from L2 event:0X0321 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_MEM_GRP50 : (Group 50 pm_data_from) Data loaded from memory event:0X0322 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP50 : (Group 50 pm_data_from) Instructions completed event:0X0323 counters:3 um:zero minimum:10000 name:PM_CYC_GRP50 : (Group 50 pm_data_from) Processor cycles event:0X0324 counters:4 um:zero minimum:1000 name:PM_DATA_FROM_L25_SHR_GRP50 : (Group 50 pm_data_from) Data loaded from L2.5 shared event:0X0325 counters:5 um:zero minimum:1000 name:PM_DATA_FROM_L25_MOD_GRP50 : (Group 50 pm_data_from) Data loaded from L2.5 modified event:0X0326 counters:6 um:zero minimum:1000 name:PM_LD_MISS_L1_LSU1_GRP50 : (Group 50 pm_data_from) LSU1 L1 D cache load misses event:0X0327 counters:7 um:zero minimum:1000 name:PM_LD_REF_L1_GRP50 : (Group 50 pm_data_from) L1 D cache load references #Group 51 pm_mark_data_from, Marked Data From L2 instructions event:0X0330 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2_GRP51 : (Group 51 pm_mark_data_from) Marked data loaded from L2 event:0X0331 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_MEM_GRP51 : (Group 51 pm_mark_data_from) Marked data loaded from memory event:0X0332 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP51 : (Group 51 pm_mark_data_from) Instructions completed event:0X0333 counters:3 um:zero minimum:10000 name:PM_CYC_GRP51 : (Group 51 pm_mark_data_from) Processor cycles event:0X0334 counters:4 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L25_SHR_GRP51 : (Group 51 pm_mark_data_from) Marked data loaded from L2.5 shared event:0X0335 counters:5 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L25_MOD_GRP51 : (Group 51 pm_mark_data_from) Marked data loaded from L2.5 modified event:0X0336 counters:6 um:zero minimum:1000 name:PM_MRK_INST_FIN_GRP51 : (Group 51 pm_mark_data_from) Marked instruction finished event:0X0337 counters:7 um:zero minimum:1000 name:PM_MRK_L1_RELOAD_VALID_GRP51 : (Group 51 pm_mark_data_from) Marked L1 reload data source valid oprofile-0.9.9/events/ppc64/970MP/unit_masks0000664000076400007640000000034512175510133015417 00000000000000# # Copyright OProfile authors # Copyright (c) International Business Machines, 2006. # Contributed by Dave Nomura . # # ppc64 970 possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/ppc64/970MP/event_mappings0000664000076400007640000007656512175510133016302 00000000000000# # Copyright OProfile authors # Copyright (c) International Business Machines, 2007. # Contributed by Dave Nomura . # #Mapping of event groups to MMCR values #Group Default event:0X001 mmcr0:0X0400C51F mmcr1:0X000000000A46F18C mmcra:0X00002001 #Group 1 pm_slice0, Time Slice 0 event:0X0010 mmcr0:0X0000051F mmcr1:0X000000000A46F18C mmcra:0X00002000 event:0X0011 mmcr0:0X0000051F mmcr1:0X000000000A46F18C mmcra:0X00002000 event:0X0012 mmcr0:0X0000051F mmcr1:0X000000000A46F18C mmcra:0X00002000 event:0X0013 mmcr0:0X0000051F mmcr1:0X000000000A46F18C mmcra:0X00002000 event:0X0014 mmcr0:0X0000051F mmcr1:0X000000000A46F18C mmcra:0X00002000 event:0X0015 mmcr0:0X0000051F mmcr1:0X000000000A46F18C mmcra:0X00002000 event:0X0016 mmcr0:0X0000051F mmcr1:0X000000000A46F18C mmcra:0X00002000 event:0X0017 mmcr0:0X0000051F mmcr1:0X000000000A46F18C mmcra:0X00002000 #Group 2 pm_eprof, Group for use with eprof event:0X0020 mmcr0:0X00000F1F mmcr1:0X4003001005F09000 mmcra:0X00002000 event:0X0021 mmcr0:0X00000F1F mmcr1:0X4003001005F09000 mmcra:0X00002000 event:0X0022 mmcr0:0X00000F1F mmcr1:0X4003001005F09000 mmcra:0X00002000 event:0X0023 mmcr0:0X00000F1F mmcr1:0X4003001005F09000 mmcra:0X00002000 event:0X0024 mmcr0:0X00000F1F mmcr1:0X4003001005F09000 mmcra:0X00002000 event:0X0025 mmcr0:0X00000F1F mmcr1:0X4003001005F09000 mmcra:0X00002000 event:0X0026 mmcr0:0X00000F1F mmcr1:0X4003001005F09000 mmcra:0X00002000 event:0X0027 mmcr0:0X00000F1F mmcr1:0X4003001005F09000 mmcra:0X00002000 #Group 3 pm_basic, Basic performance indicators event:0X0030 mmcr0:0X0000091F mmcr1:0X4003001005F09000 mmcra:0X00002000 event:0X0031 mmcr0:0X0000091F mmcr1:0X4003001005F09000 mmcra:0X00002000 event:0X0032 mmcr0:0X0000091F mmcr1:0X4003001005F09000 mmcra:0X00002000 event:0X0033 mmcr0:0X0000091F mmcr1:0X4003001005F09000 mmcra:0X00002000 event:0X0034 mmcr0:0X0000091F mmcr1:0X4003001005F09000 mmcra:0X00002000 event:0X0035 mmcr0:0X0000091F mmcr1:0X4003001005F09000 mmcra:0X00002000 event:0X0036 mmcr0:0X0000091F mmcr1:0X4003001005F09000 mmcra:0X00002000 event:0X0037 mmcr0:0X0000091F mmcr1:0X4003001005F09000 mmcra:0X00002000 #Group 4 pm_lsu, Information on the Load Store Unit event:0X0040 mmcr0:0X00000001 mmcr1:0X000F00007A400000 mmcra:0X00002000 event:0X0041 mmcr0:0X00000001 mmcr1:0X000F00007A400000 mmcra:0X00002000 event:0X0042 mmcr0:0X00000001 mmcr1:0X000F00007A400000 mmcra:0X00002000 event:0X0043 mmcr0:0X00000001 mmcr1:0X000F00007A400000 mmcra:0X00002000 event:0X0044 mmcr0:0X00000001 mmcr1:0X000F00007A400000 mmcra:0X00002000 event:0X0045 mmcr0:0X00000001 mmcr1:0X000F00007A400000 mmcra:0X00002000 event:0X0046 mmcr0:0X00000001 mmcr1:0X000F00007A400000 mmcra:0X00002000 event:0X0047 mmcr0:0X00000001 mmcr1:0X000F00007A400000 mmcra:0X00002000 #Group 5 pm_fpu1, Floating Point events event:0X0050 mmcr0:0X00000001 mmcr1:0X00000000001E0480 mmcra:0X00002000 event:0X0051 mmcr0:0X00000001 mmcr1:0X00000000001E0480 mmcra:0X00002000 event:0X0052 mmcr0:0X00000001 mmcr1:0X00000000001E0480 mmcra:0X00002000 event:0X0053 mmcr0:0X00000001 mmcr1:0X00000000001E0480 mmcra:0X00002000 event:0X0054 mmcr0:0X00000001 mmcr1:0X00000000001E0480 mmcra:0X00002000 event:0X0055 mmcr0:0X00000001 mmcr1:0X00000000001E0480 mmcra:0X00002000 event:0X0056 mmcr0:0X00000001 mmcr1:0X00000000001E0480 mmcra:0X00002000 event:0X0057 mmcr0:0X00000001 mmcr1:0X00000000001E0480 mmcra:0X00002000 #Group 6 pm_fpu2, Floating Point events event:0X0060 mmcr0:0X00000001 mmcr1:0X000020E87A400000 mmcra:0X00002000 event:0X0061 mmcr0:0X00000001 mmcr1:0X000020E87A400000 mmcra:0X00002000 event:0X0062 mmcr0:0X00000001 mmcr1:0X000020E87A400000 mmcra:0X00002000 event:0X0063 mmcr0:0X00000001 mmcr1:0X000020E87A400000 mmcra:0X00002000 event:0X0064 mmcr0:0X00000001 mmcr1:0X000020E87A400000 mmcra:0X00002000 event:0X0065 mmcr0:0X00000001 mmcr1:0X000020E87A400000 mmcra:0X00002000 event:0X0066 mmcr0:0X00000001 mmcr1:0X000020E87A400000 mmcra:0X00002000 event:0X0067 mmcr0:0X00000001 mmcr1:0X000020E87A400000 mmcra:0X00002000 #Group 7 pm_isu_rename, ISU Rename Pool Events event:0X0070 mmcr0:0X00001229 mmcr1:0X400000218E6D84BC mmcra:0X00002000 event:0X0071 mmcr0:0X00001229 mmcr1:0X400000218E6D84BC mmcra:0X00002000 event:0X0072 mmcr0:0X00001229 mmcr1:0X400000218E6D84BC mmcra:0X00002000 event:0X0073 mmcr0:0X00001229 mmcr1:0X400000218E6D84BC mmcra:0X00002000 event:0X0074 mmcr0:0X00001229 mmcr1:0X400000218E6D84BC mmcra:0X00002000 event:0X0075 mmcr0:0X00001229 mmcr1:0X400000218E6D84BC mmcra:0X00002000 event:0X0076 mmcr0:0X00001229 mmcr1:0X400000218E6D84BC mmcra:0X00002000 event:0X0077 mmcr0:0X00001229 mmcr1:0X400000218E6D84BC mmcra:0X00002000 #Group 8 pm_isu_queues1, ISU Rename Pool Events event:0X0080 mmcr0:0X0000132F mmcr1:0X40000000851E994C mmcra:0X00002000 event:0X0081 mmcr0:0X0000132F mmcr1:0X40000000851E994C mmcra:0X00002000 event:0X0082 mmcr0:0X0000132F mmcr1:0X40000000851E994C mmcra:0X00002000 event:0X0083 mmcr0:0X0000132F mmcr1:0X40000000851E994C mmcra:0X00002000 event:0X0084 mmcr0:0X0000132F mmcr1:0X40000000851E994C mmcra:0X00002000 event:0X0085 mmcr0:0X0000132F mmcr1:0X40000000851E994C mmcra:0X00002000 event:0X0086 mmcr0:0X0000132F mmcr1:0X40000000851E994C mmcra:0X00002000 event:0X0087 mmcr0:0X0000132F mmcr1:0X40000000851E994C mmcra:0X00002000 #Group 9 pm_isu_flow, ISU Instruction Flow Events event:0X0090 mmcr0:0X0000181F mmcr1:0X400000B3D7B7C4BC mmcra:0X00002000 event:0X0091 mmcr0:0X0000181F mmcr1:0X400000B3D7B7C4BC mmcra:0X00002000 event:0X0092 mmcr0:0X0000181F mmcr1:0X400000B3D7B7C4BC mmcra:0X00002000 event:0X0093 mmcr0:0X0000181F mmcr1:0X400000B3D7B7C4BC mmcra:0X00002000 event:0X0094 mmcr0:0X0000181F mmcr1:0X400000B3D7B7C4BC mmcra:0X00002000 event:0X0095 mmcr0:0X0000181F mmcr1:0X400000B3D7B7C4BC mmcra:0X00002000 event:0X0096 mmcr0:0X0000181F mmcr1:0X400000B3D7B7C4BC mmcra:0X00002000 event:0X0097 mmcr0:0X0000181F mmcr1:0X400000B3D7B7C4BC mmcra:0X00002000 #Group 10 pm_isu_work, ISU Indicators of Work Blockage event:0X00A0 mmcr0:0X00000403 mmcr1:0X400000050FDE9D88 mmcra:0X00002000 event:0X00A1 mmcr0:0X00000403 mmcr1:0X400000050FDE9D88 mmcra:0X00002000 event:0X00A2 mmcr0:0X00000403 mmcr1:0X400000050FDE9D88 mmcra:0X00002000 event:0X00A3 mmcr0:0X00000403 mmcr1:0X400000050FDE9D88 mmcra:0X00002000 event:0X00A4 mmcr0:0X00000403 mmcr1:0X400000050FDE9D88 mmcra:0X00002000 event:0X00A5 mmcr0:0X00000403 mmcr1:0X400000050FDE9D88 mmcra:0X00002000 event:0X00A6 mmcr0:0X00000403 mmcr1:0X400000050FDE9D88 mmcra:0X00002000 event:0X00A7 mmcr0:0X00000403 mmcr1:0X400000050FDE9D88 mmcra:0X00002000 #Group 11 pm_fpu3, Floating Point events by unit event:0X00B0 mmcr0:0X00001029 mmcr1:0X000000008D6354BC mmcra:0X00002000 event:0X00B1 mmcr0:0X00001029 mmcr1:0X000000008D6354BC mmcra:0X00002000 event:0X00B2 mmcr0:0X00001029 mmcr1:0X000000008D6354BC mmcra:0X00002000 event:0X00B3 mmcr0:0X00001029 mmcr1:0X000000008D6354BC mmcra:0X00002000 event:0X00B4 mmcr0:0X00001029 mmcr1:0X000000008D6354BC mmcra:0X00002000 event:0X00B5 mmcr0:0X00001029 mmcr1:0X000000008D6354BC mmcra:0X00002000 event:0X00B6 mmcr0:0X00001029 mmcr1:0X000000008D6354BC mmcra:0X00002000 event:0X00B7 mmcr0:0X00001029 mmcr1:0X000000008D6354BC mmcra:0X00002000 #Group 12 pm_fpu4, Floating Point events by unit event:0X00C0 mmcr0:0X0000122D mmcr1:0X000000009DE774BC mmcra:0X00002000 event:0X00C1 mmcr0:0X0000122D mmcr1:0X000000009DE774BC mmcra:0X00002000 event:0X00C2 mmcr0:0X0000122D mmcr1:0X000000009DE774BC mmcra:0X00002000 event:0X00C3 mmcr0:0X0000122D mmcr1:0X000000009DE774BC mmcra:0X00002000 event:0X00C4 mmcr0:0X0000122D mmcr1:0X000000009DE774BC mmcra:0X00002000 event:0X00C5 mmcr0:0X0000122D mmcr1:0X000000009DE774BC mmcra:0X00002000 event:0X00C6 mmcr0:0X0000122D mmcr1:0X000000009DE774BC mmcra:0X00002000 event:0X00C7 mmcr0:0X0000122D mmcr1:0X000000009DE774BC mmcra:0X00002000 #Group 13 pm_fpu5, Floating Point events by unit event:0X00D0 mmcr0:0X00001839 mmcr1:0X000000C0851E9958 mmcra:0X00002000 event:0X00D1 mmcr0:0X00001839 mmcr1:0X000000C0851E9958 mmcra:0X00002000 event:0X00D2 mmcr0:0X00001839 mmcr1:0X000000C0851E9958 mmcra:0X00002000 event:0X00D3 mmcr0:0X00001839 mmcr1:0X000000C0851E9958 mmcra:0X00002000 event:0X00D4 mmcr0:0X00001839 mmcr1:0X000000C0851E9958 mmcra:0X00002000 event:0X00D5 mmcr0:0X00001839 mmcr1:0X000000C0851E9958 mmcra:0X00002000 event:0X00D6 mmcr0:0X00001839 mmcr1:0X000000C0851E9958 mmcra:0X00002000 event:0X00D7 mmcr0:0X00001839 mmcr1:0X000000C0851E9958 mmcra:0X00002000 #Group 14 pm_fpu7, Floating Point events by unit event:0X00E0 mmcr0:0X0000193B mmcr1:0X000000C89DDE97E0 mmcra:0X00002000 event:0X00E1 mmcr0:0X0000193B mmcr1:0X000000C89DDE97E0 mmcra:0X00002000 event:0X00E2 mmcr0:0X0000193B mmcr1:0X000000C89DDE97E0 mmcra:0X00002000 event:0X00E3 mmcr0:0X0000193B mmcr1:0X000000C89DDE97E0 mmcra:0X00002000 event:0X00E4 mmcr0:0X0000193B mmcr1:0X000000C89DDE97E0 mmcra:0X00002000 event:0X00E5 mmcr0:0X0000193B mmcr1:0X000000C89DDE97E0 mmcra:0X00002000 event:0X00E6 mmcr0:0X0000193B mmcr1:0X000000C89DDE97E0 mmcra:0X00002000 event:0X00E7 mmcr0:0X0000193B mmcr1:0X000000C89DDE97E0 mmcra:0X00002000 #Group 15 pm_lsu_flush, LSU Flush Events event:0X00F0 mmcr0:0X0000122D mmcr1:0X000C00007BE774BC mmcra:0X00002000 event:0X00F1 mmcr0:0X0000122D mmcr1:0X000C00007BE774BC mmcra:0X00002000 event:0X00F2 mmcr0:0X0000122D mmcr1:0X000C00007BE774BC mmcra:0X00002000 event:0X00F3 mmcr0:0X0000122D mmcr1:0X000C00007BE774BC mmcra:0X00002000 event:0X00F4 mmcr0:0X0000122D mmcr1:0X000C00007BE774BC mmcra:0X00002000 event:0X00F5 mmcr0:0X0000122D mmcr1:0X000C00007BE774BC mmcra:0X00002000 event:0X00F6 mmcr0:0X0000122D mmcr1:0X000C00007BE774BC mmcra:0X00002000 event:0X00F7 mmcr0:0X0000122D mmcr1:0X000C00007BE774BC mmcra:0X00002000 #Group 16 pm_lsu_load1, LSU Load Events event:0X0100 mmcr0:0X00001029 mmcr1:0X000F0000851E9958 mmcra:0X00002000 event:0X0101 mmcr0:0X00001029 mmcr1:0X000F0000851E9958 mmcra:0X00002000 event:0X0102 mmcr0:0X00001029 mmcr1:0X000F0000851E9958 mmcra:0X00002000 event:0X0103 mmcr0:0X00001029 mmcr1:0X000F0000851E9958 mmcra:0X00002000 event:0X0104 mmcr0:0X00001029 mmcr1:0X000F0000851E9958 mmcra:0X00002000 event:0X0105 mmcr0:0X00001029 mmcr1:0X000F0000851E9958 mmcra:0X00002000 event:0X0106 mmcr0:0X00001029 mmcr1:0X000F0000851E9958 mmcra:0X00002000 event:0X0107 mmcr0:0X00001029 mmcr1:0X000F0000851E9958 mmcra:0X00002000 #Group 17 pm_lsu_store1, LSU Store Events event:0X0110 mmcr0:0X0000112B mmcr1:0X000F00008D5E99DC mmcra:0X00002000 event:0X0111 mmcr0:0X0000112B mmcr1:0X000F00008D5E99DC mmcra:0X00002000 event:0X0112 mmcr0:0X0000112B mmcr1:0X000F00008D5E99DC mmcra:0X00002000 event:0X0113 mmcr0:0X0000112B mmcr1:0X000F00008D5E99DC mmcra:0X00002000 event:0X0114 mmcr0:0X0000112B mmcr1:0X000F00008D5E99DC mmcra:0X00002000 event:0X0115 mmcr0:0X0000112B mmcr1:0X000F00008D5E99DC mmcra:0X00002000 event:0X0116 mmcr0:0X0000112B mmcr1:0X000F00008D5E99DC mmcra:0X00002000 event:0X0117 mmcr0:0X0000112B mmcr1:0X000F00008D5E99DC mmcra:0X00002000 #Group 18 pm_lsu_store2, LSU Store Events event:0X0120 mmcr0:0X00001839 mmcr1:0X0003C0D08D76F4BC mmcra:0X00002000 event:0X0121 mmcr0:0X00001839 mmcr1:0X0003C0D08D76F4BC mmcra:0X00002000 event:0X0122 mmcr0:0X00001839 mmcr1:0X0003C0D08D76F4BC mmcra:0X00002000 event:0X0123 mmcr0:0X00001839 mmcr1:0X0003C0D08D76F4BC mmcra:0X00002000 event:0X0124 mmcr0:0X00001839 mmcr1:0X0003C0D08D76F4BC mmcra:0X00002000 event:0X0125 mmcr0:0X00001839 mmcr1:0X0003C0D08D76F4BC mmcra:0X00002000 event:0X0126 mmcr0:0X00001839 mmcr1:0X0003C0D08D76F4BC mmcra:0X00002000 event:0X0127 mmcr0:0X00001839 mmcr1:0X0003C0D08D76F4BC mmcra:0X00002000 #Group 19 pm_lsu7, Information on the Load Store Unit event:0X0130 mmcr0:0X0000122D mmcr1:0X000830047BD2FE3C mmcra:0X00002000 event:0X0131 mmcr0:0X0000122D mmcr1:0X000830047BD2FE3C mmcra:0X00002000 event:0X0132 mmcr0:0X0000122D mmcr1:0X000830047BD2FE3C mmcra:0X00002000 event:0X0133 mmcr0:0X0000122D mmcr1:0X000830047BD2FE3C mmcra:0X00002000 event:0X0134 mmcr0:0X0000122D mmcr1:0X000830047BD2FE3C mmcra:0X00002000 event:0X0135 mmcr0:0X0000122D mmcr1:0X000830047BD2FE3C mmcra:0X00002000 event:0X0136 mmcr0:0X0000122D mmcr1:0X000830047BD2FE3C mmcra:0X00002000 event:0X0137 mmcr0:0X0000122D mmcr1:0X000830047BD2FE3C mmcra:0X00002000 #Group 20 pm_misc, Misc Events for testing event:0X0140 mmcr0:0X00000405 mmcr1:0X0000000023C69194 mmcra:0X00002000 event:0X0141 mmcr0:0X00000405 mmcr1:0X0000000023C69194 mmcra:0X00002000 event:0X0142 mmcr0:0X00000405 mmcr1:0X0000000023C69194 mmcra:0X00002000 event:0X0143 mmcr0:0X00000405 mmcr1:0X0000000023C69194 mmcra:0X00002000 event:0X0144 mmcr0:0X00000405 mmcr1:0X0000000023C69194 mmcra:0X00002000 event:0X0145 mmcr0:0X00000405 mmcr1:0X0000000023C69194 mmcra:0X00002000 event:0X0146 mmcr0:0X00000405 mmcr1:0X0000000023C69194 mmcra:0X00002000 event:0X0147 mmcr0:0X00000405 mmcr1:0X0000000023C69194 mmcra:0X00002000 #Group 21 pm_pe_bench1, PE Benchmarker group for FP analysis event:0X0150 mmcr0:0X00000001 mmcr1:0X10001002001E0480 mmcra:0X00002000 event:0X0151 mmcr0:0X00000001 mmcr1:0X10001002001E0480 mmcra:0X00002000 event:0X0152 mmcr0:0X00000001 mmcr1:0X10001002001E0480 mmcra:0X00002000 event:0X0153 mmcr0:0X00000001 mmcr1:0X10001002001E0480 mmcra:0X00002000 event:0X0154 mmcr0:0X00000001 mmcr1:0X10001002001E0480 mmcra:0X00002000 event:0X0155 mmcr0:0X00000001 mmcr1:0X10001002001E0480 mmcra:0X00002000 event:0X0156 mmcr0:0X00000001 mmcr1:0X10001002001E0480 mmcra:0X00002000 event:0X0157 mmcr0:0X00000001 mmcr1:0X10001002001E0480 mmcra:0X00002000 #Group 22 pm_pe_bench4, PE Benchmarker group for L1 and TLB event:0X0160 mmcr0:0X00001421 mmcr1:0X000B000004DE9000 mmcra:0X00002000 event:0X0161 mmcr0:0X00001421 mmcr1:0X000B000004DE9000 mmcra:0X00002000 event:0X0162 mmcr0:0X00001421 mmcr1:0X000B000004DE9000 mmcra:0X00002000 event:0X0163 mmcr0:0X00001421 mmcr1:0X000B000004DE9000 mmcra:0X00002000 event:0X0164 mmcr0:0X00001421 mmcr1:0X000B000004DE9000 mmcra:0X00002000 event:0X0165 mmcr0:0X00001421 mmcr1:0X000B000004DE9000 mmcra:0X00002000 event:0X0166 mmcr0:0X00001421 mmcr1:0X000B000004DE9000 mmcra:0X00002000 event:0X0167 mmcr0:0X00001421 mmcr1:0X000B000004DE9000 mmcra:0X00002000 #Group 23 pm_hpmcount1, Hpmcount group for L1 and TLB behavior event:0X0170 mmcr0:0X00001405 mmcr1:0X000B000004DE9000 mmcra:0X00002000 event:0X0171 mmcr0:0X00001405 mmcr1:0X000B000004DE9000 mmcra:0X00002000 event:0X0172 mmcr0:0X00001405 mmcr1:0X000B000004DE9000 mmcra:0X00002000 event:0X0173 mmcr0:0X00001405 mmcr1:0X000B000004DE9000 mmcra:0X00002000 event:0X0174 mmcr0:0X00001405 mmcr1:0X000B000004DE9000 mmcra:0X00002000 event:0X0175 mmcr0:0X00001405 mmcr1:0X000B000004DE9000 mmcra:0X00002000 event:0X0176 mmcr0:0X00001405 mmcr1:0X000B000004DE9000 mmcra:0X00002000 event:0X0177 mmcr0:0X00001405 mmcr1:0X000B000004DE9000 mmcra:0X00002000 #Group 24 pm_hpmcount2, Hpmcount group for computation event:0X0180 mmcr0:0X00000001 mmcr1:0X000020289DDE0480 mmcra:0X00002000 event:0X0181 mmcr0:0X00000001 mmcr1:0X000020289DDE0480 mmcra:0X00002000 event:0X0182 mmcr0:0X00000001 mmcr1:0X000020289DDE0480 mmcra:0X00002000 event:0X0183 mmcr0:0X00000001 mmcr1:0X000020289DDE0480 mmcra:0X00002000 event:0X0184 mmcr0:0X00000001 mmcr1:0X000020289DDE0480 mmcra:0X00002000 event:0X0185 mmcr0:0X00000001 mmcr1:0X000020289DDE0480 mmcra:0X00002000 event:0X0186 mmcr0:0X00000001 mmcr1:0X000020289DDE0480 mmcra:0X00002000 event:0X0187 mmcr0:0X00000001 mmcr1:0X000020289DDE0480 mmcra:0X00002000 #Group 25 pm_l1andbr, L1 misses and branch misspredict analysis event:0X0190 mmcr0:0X0000091F mmcr1:0X8003C01D0676FD6C mmcra:0X00002000 event:0X0191 mmcr0:0X0000091F mmcr1:0X8003C01D0676FD6C mmcra:0X00002000 event:0X0192 mmcr0:0X0000091F mmcr1:0X8003C01D0676FD6C mmcra:0X00002000 event:0X0193 mmcr0:0X0000091F mmcr1:0X8003C01D0676FD6C mmcra:0X00002000 event:0X0194 mmcr0:0X0000091F mmcr1:0X8003C01D0676FD6C mmcra:0X00002000 event:0X0195 mmcr0:0X0000091F mmcr1:0X8003C01D0676FD6C mmcra:0X00002000 event:0X0196 mmcr0:0X0000091F mmcr1:0X8003C01D0676FD6C mmcra:0X00002000 event:0X0197 mmcr0:0X0000091F mmcr1:0X8003C01D0676FD6C mmcra:0X00002000 #Group 26 pm_imix, Instruction mix: loads, stores and branches event:0X01A0 mmcr0:0X0000091F mmcr1:0X8003C021065FB000 mmcra:0X00002000 event:0X01A1 mmcr0:0X0000091F mmcr1:0X8003C021065FB000 mmcra:0X00002000 event:0X01A2 mmcr0:0X0000091F mmcr1:0X8003C021065FB000 mmcra:0X00002000 event:0X01A3 mmcr0:0X0000091F mmcr1:0X8003C021065FB000 mmcra:0X00002000 event:0X01A4 mmcr0:0X0000091F mmcr1:0X8003C021065FB000 mmcra:0X00002000 event:0X01A5 mmcr0:0X0000091F mmcr1:0X8003C021065FB000 mmcra:0X00002000 event:0X01A6 mmcr0:0X0000091F mmcr1:0X8003C021065FB000 mmcra:0X00002000 event:0X01A7 mmcr0:0X0000091F mmcr1:0X8003C021065FB000 mmcra:0X00002000 #Group 27 pm_branch, SLB and branch misspredict analysis event:0X01B0 mmcr0:0X0000052B mmcr1:0X8008000BCEA2F4EC mmcra:0X00002000 event:0X01B1 mmcr0:0X0000052B mmcr1:0X8008000BCEA2F4EC mmcra:0X00002000 event:0X01B2 mmcr0:0X0000052B mmcr1:0X8008000BCEA2F4EC mmcra:0X00002000 event:0X01B3 mmcr0:0X0000052B mmcr1:0X8008000BCEA2F4EC mmcra:0X00002000 event:0X01B4 mmcr0:0X0000052B mmcr1:0X8008000BCEA2F4EC mmcra:0X00002000 event:0X01B5 mmcr0:0X0000052B mmcr1:0X8008000BCEA2F4EC mmcra:0X00002000 event:0X01B6 mmcr0:0X0000052B mmcr1:0X8008000BCEA2F4EC mmcra:0X00002000 event:0X01B7 mmcr0:0X0000052B mmcr1:0X8008000BCEA2F4EC mmcra:0X00002000 #Group 28 pm_data, data source and LMQ event:0X01C0 mmcr0:0X0000070F mmcr1:0X0000300C4BD2FF74 mmcra:0X00002000 event:0X01C1 mmcr0:0X0000070F mmcr1:0X0000300C4BD2FF74 mmcra:0X00002000 event:0X01C2 mmcr0:0X0000070F mmcr1:0X0000300C4BD2FF74 mmcra:0X00002000 event:0X01C3 mmcr0:0X0000070F mmcr1:0X0000300C4BD2FF74 mmcra:0X00002000 event:0X01C4 mmcr0:0X0000070F mmcr1:0X0000300C4BD2FF74 mmcra:0X00002000 event:0X01C5 mmcr0:0X0000070F mmcr1:0X0000300C4BD2FF74 mmcra:0X00002000 event:0X01C6 mmcr0:0X0000070F mmcr1:0X0000300C4BD2FF74 mmcra:0X00002000 event:0X01C7 mmcr0:0X0000070F mmcr1:0X0000300C4BD2FF74 mmcra:0X00002000 #Group 29 pm_tlb, TLB and LRQ plus data prefetch event:0X01D0 mmcr0:0X00001421 mmcr1:0X0008E03C4BFDACEC mmcra:0X00002000 event:0X01D1 mmcr0:0X00001421 mmcr1:0X0008E03C4BFDACEC mmcra:0X00002000 event:0X01D2 mmcr0:0X00001421 mmcr1:0X0008E03C4BFDACEC mmcra:0X00002000 event:0X01D3 mmcr0:0X00001421 mmcr1:0X0008E03C4BFDACEC mmcra:0X00002000 event:0X01D4 mmcr0:0X00001421 mmcr1:0X0008E03C4BFDACEC mmcra:0X00002000 event:0X01D5 mmcr0:0X00001421 mmcr1:0X0008E03C4BFDACEC mmcra:0X00002000 event:0X01D6 mmcr0:0X00001421 mmcr1:0X0008E03C4BFDACEC mmcra:0X00002000 event:0X01D7 mmcr0:0X00001421 mmcr1:0X0008E03C4BFDACEC mmcra:0X00002000 #Group 30 pm_isource, inst source and tablewalk event:0X01E0 mmcr0:0X0000060D mmcr1:0X800B00C0226EF1DC mmcra:0X00002000 event:0X01E1 mmcr0:0X0000060D mmcr1:0X800B00C0226EF1DC mmcra:0X00002000 event:0X01E2 mmcr0:0X0000060D mmcr1:0X800B00C0226EF1DC mmcra:0X00002000 event:0X01E3 mmcr0:0X0000060D mmcr1:0X800B00C0226EF1DC mmcra:0X00002000 event:0X01E4 mmcr0:0X0000060D mmcr1:0X800B00C0226EF1DC mmcra:0X00002000 event:0X01E5 mmcr0:0X0000060D mmcr1:0X800B00C0226EF1DC mmcra:0X00002000 event:0X01E6 mmcr0:0X0000060D mmcr1:0X800B00C0226EF1DC mmcra:0X00002000 event:0X01E7 mmcr0:0X0000060D mmcr1:0X800B00C0226EF1DC mmcra:0X00002000 #Group 31 pm_sync, Sync and SRQ event:0X01F0 mmcr0:0X00001D33 mmcr1:0X0003E0C107529780 mmcra:0X00002000 event:0X01F1 mmcr0:0X00001D33 mmcr1:0X0003E0C107529780 mmcra:0X00002000 event:0X01F2 mmcr0:0X00001D33 mmcr1:0X0003E0C107529780 mmcra:0X00002000 event:0X01F3 mmcr0:0X00001D33 mmcr1:0X0003E0C107529780 mmcra:0X00002000 event:0X01F4 mmcr0:0X00001D33 mmcr1:0X0003E0C107529780 mmcra:0X00002000 event:0X01F5 mmcr0:0X00001D33 mmcr1:0X0003E0C107529780 mmcra:0X00002000 event:0X01F6 mmcr0:0X00001D33 mmcr1:0X0003E0C107529780 mmcra:0X00002000 event:0X01F7 mmcr0:0X00001D33 mmcr1:0X0003E0C107529780 mmcra:0X00002000 #Group 32 pm_ierat, IERAT event:0X0200 mmcr0:0X00000D13 mmcr1:0X80000082C3D2F4BC mmcra:0X00002000 event:0X0201 mmcr0:0X00000D13 mmcr1:0X80000082C3D2F4BC mmcra:0X00002000 event:0X0202 mmcr0:0X00000D13 mmcr1:0X80000082C3D2F4BC mmcra:0X00002000 event:0X0203 mmcr0:0X00000D13 mmcr1:0X80000082C3D2F4BC mmcra:0X00002000 event:0X0204 mmcr0:0X00000D13 mmcr1:0X80000082C3D2F4BC mmcra:0X00002000 event:0X0205 mmcr0:0X00000D13 mmcr1:0X80000082C3D2F4BC mmcra:0X00002000 event:0X0206 mmcr0:0X00000D13 mmcr1:0X80000082C3D2F4BC mmcra:0X00002000 event:0X0207 mmcr0:0X00000D13 mmcr1:0X80000082C3D2F4BC mmcra:0X00002000 #Group 33 pm_derat, DERAT event:0X0210 mmcr0:0X00000437 mmcr1:0X100B7052E274003C mmcra:0X00002000 event:0X0211 mmcr0:0X00000437 mmcr1:0X100B7052E274003C mmcra:0X00002000 event:0X0212 mmcr0:0X00000437 mmcr1:0X100B7052E274003C mmcra:0X00002000 event:0X0213 mmcr0:0X00000437 mmcr1:0X100B7052E274003C mmcra:0X00002000 event:0X0214 mmcr0:0X00000437 mmcr1:0X100B7052E274003C mmcra:0X00002000 event:0X0215 mmcr0:0X00000437 mmcr1:0X100B7052E274003C mmcra:0X00002000 event:0X0216 mmcr0:0X00000437 mmcr1:0X100B7052E274003C mmcra:0X00002000 event:0X0217 mmcr0:0X00000437 mmcr1:0X100B7052E274003C mmcra:0X00002000 #Group 34 pm_mark1, Information on marked instructions event:0X0220 mmcr0:0X00000007 mmcr1:0X00008080790852A4 mmcra:0X00002001 event:0X0221 mmcr0:0X00000007 mmcr1:0X00008080790852A4 mmcra:0X00002001 event:0X0222 mmcr0:0X00000007 mmcr1:0X00008080790852A4 mmcra:0X00002001 event:0X0223 mmcr0:0X00000007 mmcr1:0X00008080790852A4 mmcra:0X00002001 event:0X0224 mmcr0:0X00000007 mmcr1:0X00008080790852A4 mmcra:0X00002001 event:0X0225 mmcr0:0X00000007 mmcr1:0X00008080790852A4 mmcra:0X00002001 event:0X0226 mmcr0:0X00000007 mmcr1:0X00008080790852A4 mmcra:0X00002001 event:0X0227 mmcr0:0X00000007 mmcr1:0X00008080790852A4 mmcra:0X00002001 #Group 35 pm_mark2, Marked Instructions Processing Flow event:0X0230 mmcr0:0X0000020B mmcr1:0X0000000079484210 mmcra:0X00002001 event:0X0231 mmcr0:0X0000020B mmcr1:0X0000000079484210 mmcra:0X00002001 event:0X0232 mmcr0:0X0000020B mmcr1:0X0000000079484210 mmcra:0X00002001 event:0X0233 mmcr0:0X0000020B mmcr1:0X0000000079484210 mmcra:0X00002001 event:0X0234 mmcr0:0X0000020B mmcr1:0X0000000079484210 mmcra:0X00002001 event:0X0235 mmcr0:0X0000020B mmcr1:0X0000000079484210 mmcra:0X00002001 event:0X0236 mmcr0:0X0000020B mmcr1:0X0000000079484210 mmcra:0X00002001 event:0X0237 mmcr0:0X0000020B mmcr1:0X0000000079484210 mmcra:0X00002001 #Group 36 pm_mark3, Marked Stores Processing Flow event:0X0240 mmcr0:0X0000031F mmcr1:0X00203004190A3F24 mmcra:0X00002001 event:0X0241 mmcr0:0X0000031F mmcr1:0X00203004190A3F24 mmcra:0X00002001 event:0X0242 mmcr0:0X0000031F mmcr1:0X00203004190A3F24 mmcra:0X00002001 event:0X0243 mmcr0:0X0000031F mmcr1:0X00203004190A3F24 mmcra:0X00002001 event:0X0244 mmcr0:0X0000031F mmcr1:0X00203004190A3F24 mmcra:0X00002001 event:0X0245 mmcr0:0X0000031F mmcr1:0X00203004190A3F24 mmcra:0X00002001 event:0X0246 mmcr0:0X0000031F mmcr1:0X00203004190A3F24 mmcra:0X00002001 event:0X0247 mmcr0:0X0000031F mmcr1:0X00203004190A3F24 mmcra:0X00002001 #Group 37 pm_lsu_mark1, Load Store Unit Marked Events event:0X0250 mmcr0:0X00001B35 mmcr1:0X000280C08D5E9850 mmcra:0X00002001 event:0X0251 mmcr0:0X00001B35 mmcr1:0X000280C08D5E9850 mmcra:0X00002001 event:0X0252 mmcr0:0X00001B35 mmcr1:0X000280C08D5E9850 mmcra:0X00002001 event:0X0253 mmcr0:0X00001B35 mmcr1:0X000280C08D5E9850 mmcra:0X00002001 event:0X0254 mmcr0:0X00001B35 mmcr1:0X000280C08D5E9850 mmcra:0X00002001 event:0X0255 mmcr0:0X00001B35 mmcr1:0X000280C08D5E9850 mmcra:0X00002001 event:0X0256 mmcr0:0X00001B35 mmcr1:0X000280C08D5E9850 mmcra:0X00002001 event:0X0257 mmcr0:0X00001B35 mmcr1:0X000280C08D5E9850 mmcra:0X00002001 #Group 38 pm_lsu_mark2, Load Store Unit Marked Events event:0X0260 mmcr0:0X00001839 mmcr1:0X000280C0959E99DC mmcra:0X00002001 event:0X0261 mmcr0:0X00001839 mmcr1:0X000280C0959E99DC mmcra:0X00002001 event:0X0262 mmcr0:0X00001839 mmcr1:0X000280C0959E99DC mmcra:0X00002001 event:0X0263 mmcr0:0X00001839 mmcr1:0X000280C0959E99DC mmcra:0X00002001 event:0X0264 mmcr0:0X00001839 mmcr1:0X000280C0959E99DC mmcra:0X00002001 event:0X0265 mmcr0:0X00001839 mmcr1:0X000280C0959E99DC mmcra:0X00002001 event:0X0266 mmcr0:0X00001839 mmcr1:0X000280C0959E99DC mmcra:0X00002001 event:0X0267 mmcr0:0X00001839 mmcr1:0X000280C0959E99DC mmcra:0X00002001 #Group 39 pm_fxu1, Fixed Point events by unit event:0X0270 mmcr0:0X00000913 mmcr1:0X100010020084213C mmcra:0X00002000 event:0X0271 mmcr0:0X00000913 mmcr1:0X100010020084213C mmcra:0X00002000 event:0X0272 mmcr0:0X00000913 mmcr1:0X100010020084213C mmcra:0X00002000 event:0X0273 mmcr0:0X00000913 mmcr1:0X100010020084213C mmcra:0X00002000 event:0X0274 mmcr0:0X00000913 mmcr1:0X100010020084213C mmcra:0X00002000 event:0X0275 mmcr0:0X00000913 mmcr1:0X100010020084213C mmcra:0X00002000 event:0X0276 mmcr0:0X00000913 mmcr1:0X100010020084213C mmcra:0X00002000 event:0X0277 mmcr0:0X00000913 mmcr1:0X100010020084213C mmcra:0X00002000 #Group 40 pm_fxu2, Fixed Point events by unit event:0X0280 mmcr0:0X0000091F mmcr1:0X4000000CA4042D78 mmcra:0X00002000 event:0X0281 mmcr0:0X0000091F mmcr1:0X4000000CA4042D78 mmcra:0X00002000 event:0X0282 mmcr0:0X0000091F mmcr1:0X4000000CA4042D78 mmcra:0X00002000 event:0X0283 mmcr0:0X0000091F mmcr1:0X4000000CA4042D78 mmcra:0X00002000 event:0X0284 mmcr0:0X0000091F mmcr1:0X4000000CA4042D78 mmcra:0X00002000 event:0X0285 mmcr0:0X0000091F mmcr1:0X4000000CA4042D78 mmcra:0X00002000 event:0X0286 mmcr0:0X0000091F mmcr1:0X4000000CA4042D78 mmcra:0X00002000 event:0X0287 mmcr0:0X0000091F mmcr1:0X4000000CA4042D78 mmcra:0X00002000 #Group 41 pm_ifu, pm_ifu event:0X0290 mmcr0:0X00000D0D mmcr1:0X800000F06B7867A4 mmcra:0X00002000 event:0X0291 mmcr0:0X00000D0D mmcr1:0X800000F06B7867A4 mmcra:0X00002000 event:0X0292 mmcr0:0X00000D0D mmcr1:0X800000F06B7867A4 mmcra:0X00002000 event:0X0293 mmcr0:0X00000D0D mmcr1:0X800000F06B7867A4 mmcra:0X00002000 event:0X0294 mmcr0:0X00000D0D mmcr1:0X800000F06B7867A4 mmcra:0X00002000 event:0X0295 mmcr0:0X00000D0D mmcr1:0X800000F06B7867A4 mmcra:0X00002000 event:0X0296 mmcr0:0X00000D0D mmcr1:0X800000F06B7867A4 mmcra:0X00002000 event:0X0297 mmcr0:0X00000D0D mmcr1:0X800000F06B7867A4 mmcra:0X00002000 #Group 42 pm_cpi_stack1, CPI stack analysis event:0X02A0 mmcr0:0X00001B3F mmcr1:0X4000C0C0ADD6963D mmcra:0X00002000 event:0X02A1 mmcr0:0X00001B3F mmcr1:0X4000C0C0ADD6963D mmcra:0X00002000 event:0X02A2 mmcr0:0X00001B3F mmcr1:0X4000C0C0ADD6963D mmcra:0X00002000 event:0X02A3 mmcr0:0X00001B3F mmcr1:0X4000C0C0ADD6963D mmcra:0X00002000 event:0X02A4 mmcr0:0X00001B3F mmcr1:0X4000C0C0ADD6963D mmcra:0X00002000 event:0X02A5 mmcr0:0X00001B3F mmcr1:0X4000C0C0ADD6963D mmcra:0X00002000 event:0X02A6 mmcr0:0X00001B3F mmcr1:0X4000C0C0ADD6963D mmcra:0X00002000 event:0X02A7 mmcr0:0X00001B3F mmcr1:0X4000C0C0ADD6963D mmcra:0X00002000 #Group 43 pm_cpi_stack2, CPI stack analysis event:0X02B0 mmcr0:0X00000B13 mmcr1:0X000B000003D60583 mmcra:0X00002000 event:0X02B1 mmcr0:0X00000B13 mmcr1:0X000B000003D60583 mmcra:0X00002000 event:0X02B2 mmcr0:0X00000B13 mmcr1:0X000B000003D60583 mmcra:0X00002000 event:0X02B3 mmcr0:0X00000B13 mmcr1:0X000B000003D60583 mmcra:0X00002000 event:0X02B4 mmcr0:0X00000B13 mmcr1:0X000B000003D60583 mmcra:0X00002000 event:0X02B5 mmcr0:0X00000B13 mmcr1:0X000B000003D60583 mmcra:0X00002000 event:0X02B6 mmcr0:0X00000B13 mmcr1:0X000B000003D60583 mmcra:0X00002000 event:0X02B7 mmcr0:0X00000B13 mmcr1:0X000B000003D60583 mmcra:0X00002000 #Group 44 pm_cpi_stack3, CPI stack analysis event:0X02C0 mmcr0:0X00000917 mmcr1:0X10001002001625BE mmcra:0X00002000 event:0X02C1 mmcr0:0X00000917 mmcr1:0X10001002001625BE mmcra:0X00002000 event:0X02C2 mmcr0:0X00000917 mmcr1:0X10001002001625BE mmcra:0X00002000 event:0X02C3 mmcr0:0X00000917 mmcr1:0X10001002001625BE mmcra:0X00002000 event:0X02C4 mmcr0:0X00000917 mmcr1:0X10001002001625BE mmcra:0X00002000 event:0X02C5 mmcr0:0X00000917 mmcr1:0X10001002001625BE mmcra:0X00002000 event:0X02C6 mmcr0:0X00000917 mmcr1:0X10001002001625BE mmcra:0X00002000 event:0X02C7 mmcr0:0X00000917 mmcr1:0X10001002001625BE mmcra:0X00002000 #Group 45 pm_cpi_stack4, CPI stack analysis event:0X02D0 mmcr0:0X00000001 mmcr1:0X00000000485805BD mmcra:0X00002000 event:0X02D1 mmcr0:0X00000001 mmcr1:0X00000000485805BD mmcra:0X00002000 event:0X02D2 mmcr0:0X00000001 mmcr1:0X00000000485805BD mmcra:0X00002000 event:0X02D3 mmcr0:0X00000001 mmcr1:0X00000000485805BD mmcra:0X00002000 event:0X02D4 mmcr0:0X00000001 mmcr1:0X00000000485805BD mmcra:0X00002000 event:0X02D5 mmcr0:0X00000001 mmcr1:0X00000000485805BD mmcra:0X00002000 event:0X02D6 mmcr0:0X00000001 mmcr1:0X00000000485805BD mmcra:0X00002000 event:0X02D7 mmcr0:0X00000001 mmcr1:0X00000000485805BD mmcra:0X00002000 #Group 46 pm_cpi_stack5, CPI stack analysis event:0X02E0 mmcr0:0X00000413 mmcr1:0X90014009B6D8F672 mmcra:0X00002000 event:0X02E1 mmcr0:0X00000413 mmcr1:0X90014009B6D8F672 mmcra:0X00002000 event:0X02E2 mmcr0:0X00000413 mmcr1:0X90014009B6D8F672 mmcra:0X00002000 event:0X02E3 mmcr0:0X00000413 mmcr1:0X90014009B6D8F672 mmcra:0X00002000 event:0X02E4 mmcr0:0X00000413 mmcr1:0X90014009B6D8F672 mmcra:0X00002000 event:0X02E5 mmcr0:0X00000413 mmcr1:0X90014009B6D8F672 mmcra:0X00002000 event:0X02E6 mmcr0:0X00000413 mmcr1:0X90014009B6D8F672 mmcra:0X00002000 event:0X02E7 mmcr0:0X00000413 mmcr1:0X90014009B6D8F672 mmcra:0X00002000 #Group 47 pm_data2, data source and LMQ event:0X02F0 mmcr0:0X00000913 mmcr1:0X0000300C7BCE7F74 mmcra:0X00002000 event:0X02F1 mmcr0:0X00000913 mmcr1:0X0000300C7BCE7F74 mmcra:0X00002000 event:0X02F2 mmcr0:0X00000913 mmcr1:0X0000300C7BCE7F74 mmcra:0X00002000 event:0X02F3 mmcr0:0X00000913 mmcr1:0X0000300C7BCE7F74 mmcra:0X00002000 event:0X02F4 mmcr0:0X00000913 mmcr1:0X0000300C7BCE7F74 mmcra:0X00002000 event:0X02F5 mmcr0:0X00000913 mmcr1:0X0000300C7BCE7F74 mmcra:0X00002000 event:0X02F6 mmcr0:0X00000913 mmcr1:0X0000300C7BCE7F74 mmcra:0X00002000 event:0X02F7 mmcr0:0X00000913 mmcr1:0X0000300C7BCE7F74 mmcra:0X00002000 #Group 48 pm_fetch_branch, Instruction fetch and branch events event:0X0300 mmcr0:0X0000060D mmcr1:0X800000CD6E5E9D6C mmcra:0X00002000 event:0X0301 mmcr0:0X0000060D mmcr1:0X800000CD6E5E9D6C mmcra:0X00002000 event:0X0302 mmcr0:0X0000060D mmcr1:0X800000CD6E5E9D6C mmcra:0X00002000 event:0X0303 mmcr0:0X0000060D mmcr1:0X800000CD6E5E9D6C mmcra:0X00002000 event:0X0304 mmcr0:0X0000060D mmcr1:0X800000CD6E5E9D6C mmcra:0X00002000 event:0X0305 mmcr0:0X0000060D mmcr1:0X800000CD6E5E9D6C mmcra:0X00002000 event:0X0306 mmcr0:0X0000060D mmcr1:0X800000CD6E5E9D6C mmcra:0X00002000 event:0X0307 mmcr0:0X0000060D mmcr1:0X800000CD6E5E9D6C mmcra:0X00002000 #Group 49 pm_l1l2_miss, L1 and L2 miss events event:0X0310 mmcr0:0X0000070F mmcr1:0X000330004C86FB00 mmcra:0X00002000 event:0X0311 mmcr0:0X0000070F mmcr1:0X000330004C86FB00 mmcra:0X00002000 event:0X0312 mmcr0:0X0000070F mmcr1:0X000330004C86FB00 mmcra:0X00002000 event:0X0313 mmcr0:0X0000070F mmcr1:0X000330004C86FB00 mmcra:0X00002000 event:0X0314 mmcr0:0X0000070F mmcr1:0X000330004C86FB00 mmcra:0X00002000 event:0X0315 mmcr0:0X0000070F mmcr1:0X000330004C86FB00 mmcra:0X00002000 event:0X0316 mmcr0:0X0000070F mmcr1:0X000330004C86FB00 mmcra:0X00002000 event:0X0317 mmcr0:0X0000070F mmcr1:0X000330004C86FB00 mmcra:0X00002000 #Group 50 pm_data_from, Data From L2 instructions event:0X0320 mmcr0:0X0000070F mmcr1:0X000330004BCE7B00 mmcra:0X00002000 event:0X0321 mmcr0:0X0000070F mmcr1:0X000330004BCE7B00 mmcra:0X00002000 event:0X0322 mmcr0:0X0000070F mmcr1:0X000330004BCE7B00 mmcra:0X00002000 event:0X0323 mmcr0:0X0000070F mmcr1:0X000330004BCE7B00 mmcra:0X00002000 event:0X0324 mmcr0:0X0000070F mmcr1:0X000330004BCE7B00 mmcra:0X00002000 event:0X0325 mmcr0:0X0000070F mmcr1:0X000330004BCE7B00 mmcra:0X00002000 event:0X0326 mmcr0:0X0000070F mmcr1:0X000330004BCE7B00 mmcra:0X00002000 event:0X0327 mmcr0:0X0000070F mmcr1:0X000330004BCE7B00 mmcra:0X00002000 #Group 51 pm_mark_data_from, Marked Data From L2 instructions event:0X0330 mmcr0:0X0000070F mmcr1:0X002030084BCE72F0 mmcra:0X00002001 event:0X0331 mmcr0:0X0000070F mmcr1:0X002030084BCE72F0 mmcra:0X00002001 event:0X0332 mmcr0:0X0000070F mmcr1:0X002030084BCE72F0 mmcra:0X00002001 event:0X0333 mmcr0:0X0000070F mmcr1:0X002030084BCE72F0 mmcra:0X00002001 event:0X0334 mmcr0:0X0000070F mmcr1:0X002030084BCE72F0 mmcra:0X00002001 event:0X0335 mmcr0:0X0000070F mmcr1:0X002030084BCE72F0 mmcra:0X00002001 event:0X0336 mmcr0:0X0000070F mmcr1:0X002030084BCE72F0 mmcra:0X00002001 event:0X0337 mmcr0:0X0000070F mmcr1:0X002030084BCE72F0 mmcra:0X00002001 oprofile-0.9.9/events/ppc64/power7/0000775000076400007640000000000012175511557014057 500000000000000oprofile-0.9.9/events/ppc64/power7/events0000664000076400007640000116250412175510133015224 00000000000000#PPC64 POWER7 events # # Copyright OProfile authors # Copyright (c) International Business Machines, 2009, 2011. # Contributed by Maynard Johnson . # # # Only events within the same group can be selected simultaneously when # using legacy opcontrol to do profiling. When profiling with operf, # events from different groups may be specified, and the Linux Performance # Events Kernel Subsystem code will handle the necessary multiplexing. # # Each event is given a unique event number. The event number is used by the # OProfile code to resolve event names for the post-processing. This is done # to preserve compatibility with the rest of the OProfile code. The event # numbers are formatted as follows: concat(). #Group Default event:0X001 counters:0 um:zero minimum:10000 name:CYCLES : Processor Cycles #Group 1 pm_utilization, CPI and utilization data event:0X0010 counters:0 um:zero minimum:10000 name:PM_CYC_GRP1 : (Group 1 pm_utilization) Processor Cycles event:0X0011 counters:1 um:zero minimum:10000 name:PM_RUN_CYC_GRP1 : (Group 1 pm_utilization) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. event:0X0012 counters:2 um:zero minimum:1000 name:PM_INST_DISP_GRP1 : (Group 1 pm_utilization) Number of PowerPC instructions successfully dispatched. event:0X0013 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP1 : (Group 1 pm_utilization) Number of PowerPC Instructions that completed. event:0X0014 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP1 : (Group 1 pm_utilization) Number of run instructions completed. event:0X0015 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP1 : (Group 1 pm_utilization) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 2 pm_branch1, Branch operations event:0X0020 counters:0 um:zero minimum:1000 name:PM_BR_PRED_CCACHE_GRP2 : (Group 2 pm_branch1) The count value of a Branch and Count instruction was predicted event:0X0021 counters:1 um:zero minimum:1000 name:PM_BR_PRED_LSTACK_GRP2 : (Group 2 pm_branch1) The target address of a Branch to Link instruction was predicted by the link stack. event:0X0022 counters:2 um:zero minimum:1000 name:PM_BR_MPRED_CCACHE_GRP2 : (Group 2 pm_branch1) A branch instruction target was incorrectly predicted by the count cache. This will result in a branch redirect flush if not overwritten by a flush of an older instruction. event:0X0023 counters:3 um:zero minimum:1000 name:PM_BR_MPRED_TA_GRP2 : (Group 2 pm_branch1) A branch instruction target was incorrectly predicted. This will result in a branch mispredict flush unless a flush is detected from an older instruction. event:0X0024 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP2 : (Group 2 pm_branch1) Number of run instructions completed. event:0X0025 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP2 : (Group 2 pm_branch1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 3 pm_branch2, Branch operations event:0X0030 counters:0 um:zero minimum:1000 name:PM_BR_PRED_GRP3 : (Group 3 pm_branch2) A branch prediction was made. This could have been a target prediction, a condition prediction, or both event:0X0031 counters:1 um:zero minimum:1000 name:PM_BR_PRED_CR_GRP3 : (Group 3 pm_branch2) A conditional branch instruction was predicted as taken or not taken. event:0X0032 counters:2 um:zero minimum:1000 name:PM_BR_PRED_CCACHE_GRP3 : (Group 3 pm_branch2) The count value of a Branch and Count instruction was predicted event:0X0033 counters:3 um:zero minimum:1000 name:PM_BR_PRED_LSTACK_GRP3 : (Group 3 pm_branch2) The target address of a Branch to Link instruction was predicted by the link stack. event:0X0034 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP3 : (Group 3 pm_branch2) Number of run instructions completed. event:0X0035 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP3 : (Group 3 pm_branch2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 4 pm_branch3, Branch operations event:0X0040 counters:0 um:zero minimum:1000 name:PM_BRU_FIN_GRP4 : (Group 4 pm_branch3) The Branch execution unit finished an instruction event:0X0041 counters:1 um:zero minimum:1000 name:PM_BR_TAKEN_GRP4 : (Group 4 pm_branch3) A branch instruction was taken. This could have been a conditional branch or an unconditional branch event:0X0042 counters:2 um:zero minimum:1000 name:PM_BR_PRED_GRP4 : (Group 4 pm_branch3) A branch prediction was made. This could have been a target prediction, a condition prediction, or both event:0X0043 counters:3 um:zero minimum:1000 name:PM_BR_MPRED_GRP4 : (Group 4 pm_branch3) A branch instruction was incorrectly predicted. This could have been a target prediction, a condition prediction, or both event:0X0044 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP4 : (Group 4 pm_branch3) Number of run instructions completed. event:0X0045 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP4 : (Group 4 pm_branch3) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 5 pm_branch4, Branch operations event:0X0050 counters:0 um:zero minimum:1000 name:PM_BR_MPRED_CR_GRP5 : (Group 5 pm_branch4) A conditional branch instruction was incorrectly predicted as taken or not taken. The branch execution unit detects a branch mispredict because the CR value is opposite of the predicted value. This will result in a branch redirect flush if not overfidden by a flush of an older instruction. event:0X0051 counters:1 um:zero minimum:1000 name:PM_BR_UNCOND_GRP5 : (Group 5 pm_branch4) An unconditional branch was executed. event:0X0052 counters:2 um:zero minimum:1000 name:PM_BR_MPRED_TA_GRP5 : (Group 5 pm_branch4) A branch instruction target was incorrectly predicted. This will result in a branch mispredict flush unless a flush is detected from an older instruction. event:0X0053 counters:3 um:zero minimum:1000 name:PM_BR_MPRED_CCACHE_GRP5 : (Group 5 pm_branch4) A branch instruction target was incorrectly predicted by the count cache. This will result in a branch redirect flush if not overwritten by a flush of an older instruction. event:0X0054 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP5 : (Group 5 pm_branch4) Number of run instructions completed. event:0X0055 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP5 : (Group 5 pm_branch4) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 6 pm_branch5, Branch operations event:0X0060 counters:0 um:zero minimum:1000 name:PM_BR_PRED_CR_TA_GRP6 : (Group 6 pm_branch5) Both the condition (taken or not taken) and the target address of a branch instruction was predicted. event:0X0061 counters:1 um:zero minimum:1000 name:PM_BR_MPRED_CR_TA_GRP6 : (Group 6 pm_branch5) Branch mispredict - taken/not taken and target event:0X0062 counters:2 um:zero minimum:1000 name:PM_BR_PRED_GRP6 : (Group 6 pm_branch5) A branch prediction was made. This could have been a target prediction, a condition prediction, or both event:0X0063 counters:3 um:zero minimum:1000 name:PM_BR_PRED_CR_GRP6 : (Group 6 pm_branch5) A conditional branch instruction was predicted as taken or not taken. event:0X0064 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP6 : (Group 6 pm_branch5) Number of run instructions completed. event:0X0065 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP6 : (Group 6 pm_branch5) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 7 pm_branch6, Branch operations event:0X0070 counters:0 um:zero minimum:1000 name:PM_BR_PRED_CCACHE_GRP7 : (Group 7 pm_branch6) The count value of a Branch and Count instruction was predicted event:0X0071 counters:1 um:zero minimum:1000 name:PM_BR_PRED_LSTACK_GRP7 : (Group 7 pm_branch6) The target address of a Branch to Link instruction was predicted by the link stack. event:0X0072 counters:2 um:zero minimum:1000 name:PM_BR_PRED_CR_GRP7 : (Group 7 pm_branch6) A conditional branch instruction was predicted as taken or not taken. event:0X0073 counters:3 um:zero minimum:1000 name:PM_BR_PRED_TA_GRP7 : (Group 7 pm_branch6) The target address of a branch instruction was predicted. event:0X0074 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP7 : (Group 7 pm_branch6) Number of run instructions completed. event:0X0075 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP7 : (Group 7 pm_branch6) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 8 pm_branch7, Branch operations event:0X0080 counters:0 um:zero minimum:1000 name:PM_BR_MPRED_CR_GRP8 : (Group 8 pm_branch7) A conditional branch instruction was incorrectly predicted as taken or not taken. The branch execution unit detects a branch mispredict because the CR value is opposite of the predicted value. This will result in a branch redirect flush if not overfidden by a flush of an older instruction. event:0X0081 counters:1 um:zero minimum:1000 name:PM_BR_PRED_CR_GRP8 : (Group 8 pm_branch7) A conditional branch instruction was predicted as taken or not taken. event:0X0082 counters:2 um:zero minimum:1000 name:PM_BR_PRED_CCACHE_GRP8 : (Group 8 pm_branch7) The count value of a Branch and Count instruction was predicted event:0X0083 counters:3 um:zero minimum:1000 name:PM_BR_PRED_LSTACK_GRP8 : (Group 8 pm_branch7) The target address of a Branch to Link instruction was predicted by the link stack. event:0X0084 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP8 : (Group 8 pm_branch7) Number of run instructions completed. event:0X0085 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP8 : (Group 8 pm_branch7) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 9 pm_branch8, Branch operations event:0X0090 counters:0 um:zero minimum:1000 name:PM_BR_MPRED_TA_GRP9 : (Group 9 pm_branch8) A branch instruction target was incorrectly predicted. This will result in a branch mispredict flush unless a flush is detected from an older instruction. event:0X0091 counters:1 um:zero minimum:1000 name:PM_BR_PRED_CR_GRP9 : (Group 9 pm_branch8) A conditional branch instruction was predicted as taken or not taken. event:0X0092 counters:2 um:zero minimum:1000 name:PM_BR_PRED_CCACHE_GRP9 : (Group 9 pm_branch8) The count value of a Branch and Count instruction was predicted event:0X0093 counters:3 um:zero minimum:1000 name:PM_BR_PRED_LSTACK_GRP9 : (Group 9 pm_branch8) The target address of a Branch to Link instruction was predicted by the link stack. event:0X0094 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP9 : (Group 9 pm_branch8) Number of run instructions completed. event:0X0095 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP9 : (Group 9 pm_branch8) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 10 pm_branch9, Branch operations event:0X00A0 counters:0 um:zero minimum:1000 name:PM_BR_MPRED_CCACHE_GRP10 : (Group 10 pm_branch9) A branch instruction target was incorrectly predicted by the count cache. This will result in a branch redirect flush if not overwritten by a flush of an older instruction. event:0X00A1 counters:1 um:zero minimum:1000 name:PM_BR_PRED_CR_GRP10 : (Group 10 pm_branch9) A conditional branch instruction was predicted as taken or not taken. event:0X00A2 counters:2 um:zero minimum:1000 name:PM_BR_PRED_CCACHE_GRP10 : (Group 10 pm_branch9) The count value of a Branch and Count instruction was predicted event:0X00A3 counters:3 um:zero minimum:1000 name:PM_BR_PRED_LSTACK_GRP10 : (Group 10 pm_branch9) The target address of a Branch to Link instruction was predicted by the link stack. event:0X00A4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP10 : (Group 10 pm_branch9) Number of run instructions completed. event:0X00A5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP10 : (Group 10 pm_branch9) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 11 pm_slb_miss, SLB Misses event:0X00B0 counters:0 um:zero minimum:1000 name:PM_IERAT_MISS_GRP11 : (Group 11 pm_slb_miss) A translation request missed the Instruction Effective to Real Address Translation (ERAT) table event:0X00B1 counters:1 um:zero minimum:1000 name:PM_DSLB_MISS_GRP11 : (Group 11 pm_slb_miss) A SLB miss for a data request occurred. SLB misses trap to the operating system to resolve. event:0X00B2 counters:2 um:zero minimum:1000 name:PM_ISLB_MISS_GRP11 : (Group 11 pm_slb_miss) A SLB miss for an instruction fetch as occurred event:0X00B3 counters:3 um:zero minimum:1000 name:PM_SLB_MISS_GRP11 : (Group 11 pm_slb_miss) Total of all Segment Lookaside Buffer (SLB) misses, Instructions + Data. event:0X00B4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP11 : (Group 11 pm_slb_miss) Number of run instructions completed. event:0X00B5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP11 : (Group 11 pm_slb_miss) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 12 pm_tlb_miss, TLB Misses event:0X00C0 counters:0 um:zero minimum:1000 name:PM_BTAC_MISS_GRP12 : (Group 12 pm_tlb_miss) BTAC Mispredicted event:0X00C1 counters:1 um:zero minimum:1000 name:PM_TLB_MISS_GRP12 : (Group 12 pm_tlb_miss) Total of Data TLB mises + Instruction TLB misses event:0X00C2 counters:2 um:zero minimum:1000 name:PM_DTLB_MISS_GRP12 : (Group 12 pm_tlb_miss) Data TLB misses, all page sizes. event:0X00C3 counters:3 um:zero minimum:1000 name:PM_ITLB_MISS_GRP12 : (Group 12 pm_tlb_miss) A TLB miss for an Instruction Fetch has occurred event:0X00C4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP12 : (Group 12 pm_tlb_miss) Number of run instructions completed. event:0X00C5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP12 : (Group 12 pm_tlb_miss) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 13 pm_dtlb_miss, DTLB Misses event:0X00D0 counters:0 um:zero minimum:1000 name:PM_DTLB_MISS_16G_GRP13 : (Group 13 pm_dtlb_miss) Data TLB references to 16GB pages that missed the TLB. Page size is determined at TLB reload time. event:0X00D1 counters:1 um:zero minimum:1000 name:PM_DTLB_MISS_4K_GRP13 : (Group 13 pm_dtlb_miss) Data TLB references to 4KB pages that missed the TLB. Page size is determined at TLB reload time. event:0X00D2 counters:2 um:zero minimum:1000 name:PM_DTLB_MISS_64K_GRP13 : (Group 13 pm_dtlb_miss) Data TLB references to 64KB pages that missed the TLB. Page size is determined at TLB reload time. event:0X00D3 counters:3 um:zero minimum:1000 name:PM_DTLB_MISS_16M_GRP13 : (Group 13 pm_dtlb_miss) Data TLB references to 16MB pages that missed the TLB. Page size is determined at TLB reload time. event:0X00D4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP13 : (Group 13 pm_dtlb_miss) Number of run instructions completed. event:0X00D5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP13 : (Group 13 pm_dtlb_miss) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 14 pm_derat_miss1, DERAT misses event:0X00E0 counters:0 um:zero minimum:1000 name:PM_DERAT_MISS_4K_GRP14 : (Group 14 pm_derat_miss1) A data request (load or store) missed the ERAT for 4K page and resulted in an ERAT reload. event:0X00E1 counters:1 um:zero minimum:1000 name:PM_DERAT_MISS_64K_GRP14 : (Group 14 pm_derat_miss1) A data request (load or store) missed the ERAT for 64K page and resulted in an ERAT reload. event:0X00E2 counters:2 um:zero minimum:1000 name:PM_DERAT_MISS_16M_GRP14 : (Group 14 pm_derat_miss1) A data request (load or store) missed the ERAT for 16M page and resulted in an ERAT reload. event:0X00E3 counters:3 um:zero minimum:1000 name:PM_DERAT_MISS_16G_GRP14 : (Group 14 pm_derat_miss1) A data request (load or store) missed the ERAT for 16G page and resulted in an ERAT reload. event:0X00E4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP14 : (Group 14 pm_derat_miss1) Number of run instructions completed. event:0X00E5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP14 : (Group 14 pm_derat_miss1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 15 pm_derat_miss2, DERAT misses event:0X00F0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP15 : (Group 15 pm_derat_miss2) Number of PowerPC Instructions that completed. event:0X00F1 counters:1 um:zero minimum:1000 name:PM_DERAT_MISS_64K_GRP15 : (Group 15 pm_derat_miss2) A data request (load or store) missed the ERAT for 64K page and resulted in an ERAT reload. event:0X00F2 counters:2 um:zero minimum:1000 name:PM_DERAT_MISS_16M_GRP15 : (Group 15 pm_derat_miss2) A data request (load or store) missed the ERAT for 16M page and resulted in an ERAT reload. event:0X00F3 counters:3 um:zero minimum:1000 name:PM_DERAT_MISS_16G_GRP15 : (Group 15 pm_derat_miss2) A data request (load or store) missed the ERAT for 16G page and resulted in an ERAT reload. event:0X00F4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP15 : (Group 15 pm_derat_miss2) Number of run instructions completed. event:0X00F5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP15 : (Group 15 pm_derat_miss2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 16 pm_misc_miss1, Misses event:0X0100 counters:0 um:zero minimum:1000 name:PM_DSLB_MISS_GRP16 : (Group 16 pm_misc_miss1) A SLB miss for a data request occurred. SLB misses trap to the operating system to resolve. event:0X0101 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_L2MISS_GRP16 : (Group 16 pm_misc_miss1) The processor's Data Cache was reloaded but not from the local L2. event:0X0102 counters:2 um:zero minimum:1000 name:PM_LSU_DERAT_MISS_GRP16 : (Group 16 pm_misc_miss1) Total D-ERAT Misses. Requests that miss the Derat are rejected and retried until the request hits in the Erat. This may result in multiple erat misses for the same instruction. Combined Unit 0 + 1. event:0X0103 counters:3 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP16 : (Group 16 pm_misc_miss1) Load references that miss the Level 1 Data cache. Combined unit 0 + 1. event:0X0104 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP16 : (Group 16 pm_misc_miss1) Number of run instructions completed. event:0X0105 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP16 : (Group 16 pm_misc_miss1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 17 pm_misc_miss2, Misses event:0X0110 counters:0 um:zero minimum:10000 name:PM_CYC_GRP17 : (Group 17 pm_misc_miss2) Processor Cycles event:0X0111 counters:1 um:zero minimum:1000 name:PM_PTEG_FROM_L3MISS_GRP17 : (Group 17 pm_misc_miss2) Page Table Entry was loaded into the ERAT from beyond the L3 due to a demand load or store. event:0X0112 counters:2 um:zero minimum:1000 name:PM_LSU_DERAT_MISS_GRP17 : (Group 17 pm_misc_miss2) Total D-ERAT Misses. Requests that miss the Derat are rejected and retried until the request hits in the Erat. This may result in multiple erat misses for the same instruction. Combined Unit 0 + 1. event:0X0113 counters:3 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP17 : (Group 17 pm_misc_miss2) Number of run instructions completed. event:0X0114 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP17 : (Group 17 pm_misc_miss2) Number of run instructions completed. event:0X0115 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP17 : (Group 17 pm_misc_miss2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 18 pm_misc_miss3, Misses event:0X0120 counters:0 um:zero minimum:10000 name:PM_CYC_GRP18 : (Group 18 pm_misc_miss3) Processor Cycles event:0X0121 counters:1 um:zero minimum:1000 name:PM_PTEG_FROM_L3MISS_GRP18 : (Group 18 pm_misc_miss3) Page Table Entry was loaded into the ERAT from beyond the L3 due to a demand load or store. event:0X0122 counters:2 um:zero minimum:1000 name:PM_LSU_DERAT_MISS_GRP18 : (Group 18 pm_misc_miss3) Total D-ERAT Misses. Requests that miss the Derat are rejected and retried until the request hits in the Erat. This may result in multiple erat misses for the same instruction. Combined Unit 0 + 1. event:0X0123 counters:3 um:zero minimum:1000 name:PM_PTEG_FROM_L2MISS_GRP18 : (Group 18 pm_misc_miss3) A Page Table Entry was loaded into the TLB but not from the local L2. event:0X0124 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP18 : (Group 18 pm_misc_miss3) Number of run instructions completed. event:0X0125 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP18 : (Group 18 pm_misc_miss3) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 19 pm_misc_miss4, Misses event:0X0130 counters:0 um:zero minimum:1000 name:PM_DSLB_MISS_GRP19 : (Group 19 pm_misc_miss4) A SLB miss for a data request occurred. SLB misses trap to the operating system to resolve. event:0X0131 counters:1 um:zero minimum:1000 name:PM_INST_FROM_L3MISS_GRP19 : (Group 19 pm_misc_miss4) An instruction fetch group was fetched from beyond L3. Fetch groups can contain up to 8 instructions. event:0X0132 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP19 : (Group 19 pm_misc_miss4) Number of PowerPC Instructions that completed. event:0X0133 counters:3 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP19 : (Group 19 pm_misc_miss4) Number of run instructions completed. event:0X0134 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP19 : (Group 19 pm_misc_miss4) Number of run instructions completed. event:0X0135 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP19 : (Group 19 pm_misc_miss4) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 20 pm_misc_miss5, Misses event:0X0140 counters:0 um:zero minimum:1000 name:PM_IERAT_MISS_GRP20 : (Group 20 pm_misc_miss5) A translation request missed the Instruction Effective to Real Address Translation (ERAT) table event:0X0141 counters:1 um:zero minimum:1000 name:PM_DSLB_MISS_GRP20 : (Group 20 pm_misc_miss5) A SLB miss for a data request occurred. SLB misses trap to the operating system to resolve. event:0X0142 counters:2 um:zero minimum:1000 name:PM_ISLB_MISS_GRP20 : (Group 20 pm_misc_miss5) A SLB miss for an instruction fetch as occurred event:0X0143 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP20 : (Group 20 pm_misc_miss5) Number of PowerPC Instructions that completed. event:0X0144 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP20 : (Group 20 pm_misc_miss5) Number of run instructions completed. event:0X0145 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP20 : (Group 20 pm_misc_miss5) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 21 pm_pteg1, PTEG sources event:0X0150 counters:0 um:zero minimum:1000 name:PM_PTEG_FROM_L2_GRP21 : (Group 21 pm_pteg1) A Page Table Entry was loaded into the ERAT from the local L2 due to a demand load or store. event:0X0151 counters:1 um:zero minimum:1000 name:PM_INST_PTEG_FROM_L3_GRP21 : (Group 21 pm_pteg1) Instruction PTEG loaded from L3 event:0X0152 counters:2 um:zero minimum:1000 name:PM_PTEG_FROM_L21_MOD_GRP21 : (Group 21 pm_pteg1) PTEG loaded from another L2 on same chip modified event:0X0153 counters:3 um:zero minimum:1000 name:PM_INST_PTEG_FROM_DL2L3_MOD_GRP21 : (Group 21 pm_pteg1) Instruction PTEG loaded from distant L2 or L3 modified event:0X0154 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP21 : (Group 21 pm_pteg1) Number of run instructions completed. event:0X0155 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP21 : (Group 21 pm_pteg1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 22 pm_pteg2, PTEG sources event:0X0160 counters:0 um:zero minimum:1000 name:PM_INST_PTEG_FROM_L2_GRP22 : (Group 22 pm_pteg2) Instruction PTEG loaded from L2 event:0X0161 counters:1 um:zero minimum:1000 name:PM_INST_PTEG_FROM_RL2L3_SHR_GRP22 : (Group 22 pm_pteg2) Instruction PTEG loaded from remote L2 or L3 shared event:0X0162 counters:2 um:zero minimum:1000 name:PM_INST_PTEG_FROM_DL2L3_SHR_GRP22 : (Group 22 pm_pteg2) Instruction PTEG loaded from remote L2 or L3 shared event:0X0163 counters:3 um:zero minimum:1000 name:PM_PTEG_FROM_DL2L3_MOD_GRP22 : (Group 22 pm_pteg2) A Page Table Entry was loaded into the ERAT with modified (M) data from an L2 or L3 on a distant module due to a demand load or store. event:0X0164 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP22 : (Group 22 pm_pteg2) Number of run instructions completed. event:0X0165 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP22 : (Group 22 pm_pteg2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 23 pm_pteg3, PTEG sources event:0X0170 counters:0 um:zero minimum:1000 name:PM_PTEG_FROM_L31_MOD_GRP23 : (Group 23 pm_pteg3) PTEG loaded from another L3 on same chip modified event:0X0171 counters:1 um:zero minimum:1000 name:PM_PTEG_FROM_L3MISS_GRP23 : (Group 23 pm_pteg3) Page Table Entry was loaded into the ERAT from beyond the L3 due to a demand load or store. event:0X0172 counters:2 um:zero minimum:1000 name:PM_INST_PTEG_FROM_RMEM_GRP23 : (Group 23 pm_pteg3) Instruction PTEG loaded from remote memory event:0X0173 counters:3 um:zero minimum:1000 name:PM_PTEG_FROM_LMEM_GRP23 : (Group 23 pm_pteg3) A Page Table Entry was loaded into the TLB from memory attached to the same module this processor is located on. event:0X0174 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP23 : (Group 23 pm_pteg3) Number of run instructions completed. event:0X0175 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP23 : (Group 23 pm_pteg3) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 24 pm_pteg4, PTEG sources event:0X0180 counters:0 um:zero minimum:1000 name:PM_INST_PTEG_FROM_RL2L3_MOD_GRP24 : (Group 24 pm_pteg4) Instruction PTEG loaded from remote L2 or L3 modified event:0X0181 counters:1 um:zero minimum:1000 name:PM_PTEG_FROM_DMEM_GRP24 : (Group 24 pm_pteg4) A Page Table Entry was loaded into the ERAT with data from memory attached to a distant module due to a demand load or store. event:0X0182 counters:2 um:zero minimum:1000 name:PM_PTEG_FROM_RMEM_GRP24 : (Group 24 pm_pteg4) A Page Table Entry was loaded into the TLB from memory attached to a different module than this processor is located on. event:0X0183 counters:3 um:zero minimum:1000 name:PM_PTEG_FROM_LMEM_GRP24 : (Group 24 pm_pteg4) A Page Table Entry was loaded into the TLB from memory attached to the same module this processor is located on. event:0X0184 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP24 : (Group 24 pm_pteg4) Number of run instructions completed. event:0X0185 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP24 : (Group 24 pm_pteg4) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 25 pm_pteg5, PTEG sources event:0X0190 counters:0 um:zero minimum:1000 name:PM_PTEG_FROM_RL2L3_MOD_GRP25 : (Group 25 pm_pteg5) A Page Table Entry was loaded into the ERAT with modified (M) data from an L2 or L3 on a remote module due to a demand load or store. event:0X0191 counters:1 um:zero minimum:1000 name:PM_PTEG_FROM_L31_SHR_GRP25 : (Group 25 pm_pteg5) PTEG loaded from another L3 on same chip shared event:0X0192 counters:2 um:zero minimum:1000 name:PM_PTEG_FROM_DL2L3_SHR_GRP25 : (Group 25 pm_pteg5) A Page Table Entry was loaded into the ERAT with shared (T or SL) data from an L2 or L3 on a remote module due to a demand load or store. event:0X0193 counters:3 um:zero minimum:1000 name:PM_PTEG_FROM_L21_SHR_GRP25 : (Group 25 pm_pteg5) PTEG loaded from another L2 on same chip shared event:0X0194 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP25 : (Group 25 pm_pteg5) Number of run instructions completed. event:0X0195 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP25 : (Group 25 pm_pteg5) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 26 pm_pteg6, PTEG sources event:0X01A0 counters:0 um:zero minimum:1000 name:PM_INST_PTEG_FROM_L31_MOD_GRP26 : (Group 26 pm_pteg6) Instruction PTEG loaded from another L3 on same chip modified event:0X01A1 counters:1 um:zero minimum:1000 name:PM_INST_PTEG_FROM_DMEM_GRP26 : (Group 26 pm_pteg6) Instruction PTEG loaded from distant memory event:0X01A2 counters:2 um:zero minimum:1000 name:PM_INST_PTEG_FROM_L21_MOD_GRP26 : (Group 26 pm_pteg6) Instruction PTEG loaded from another L2 on same chip modified event:0X01A3 counters:3 um:zero minimum:1000 name:PM_INST_PTEG_FROM_LMEM_GRP26 : (Group 26 pm_pteg6) Instruction PTEG loaded from local memory event:0X01A4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP26 : (Group 26 pm_pteg6) Number of run instructions completed. event:0X01A5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP26 : (Group 26 pm_pteg6) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 27 pm_pteg7, PTEG sources event:0X01B0 counters:0 um:zero minimum:1000 name:PM_INST_PTEG_FROM_L31_MOD_GRP27 : (Group 27 pm_pteg7) Instruction PTEG loaded from another L3 on same chip modified event:0X01B1 counters:1 um:zero minimum:1000 name:PM_INST_PTEG_FROM_L31_SHR_GRP27 : (Group 27 pm_pteg7) Instruction PTEG loaded from another L3 on same chip shared event:0X01B2 counters:2 um:zero minimum:1000 name:PM_INST_PTEG_FROM_L21_MOD_GRP27 : (Group 27 pm_pteg7) Instruction PTEG loaded from another L2 on same chip modified event:0X01B3 counters:3 um:zero minimum:1000 name:PM_INST_PTEG_FROM_L21_SHR_GRP27 : (Group 27 pm_pteg7) Instruction PTEG loaded from another L2 on same chip shared event:0X01B4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP27 : (Group 27 pm_pteg7) Number of run instructions completed. event:0X01B5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP27 : (Group 27 pm_pteg7) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 28 pm_pteg8, PTEG sources event:0X01C0 counters:0 um:zero minimum:1000 name:PM_INST_PTEG_FROM_L2_GRP28 : (Group 28 pm_pteg8) Instruction PTEG loaded from L2 event:0X01C1 counters:1 um:zero minimum:1000 name:PM_INST_PTEG_FROM_L3MISS_GRP28 : (Group 28 pm_pteg8) Instruction PTEG loaded from L3 miss event:0X01C2 counters:2 um:zero minimum:1000 name:PM_INST_PTEG_FROM_RMEM_GRP28 : (Group 28 pm_pteg8) Instruction PTEG loaded from remote memory event:0X01C3 counters:3 um:zero minimum:1000 name:PM_INST_PTEG_FROM_L2MISS_GRP28 : (Group 28 pm_pteg8) Instruction PTEG loaded from L2 miss event:0X01C4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP28 : (Group 28 pm_pteg8) Number of run instructions completed. event:0X01C5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP28 : (Group 28 pm_pteg8) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 29 pm_pteg9, PTEG sources event:0X01D0 counters:0 um:zero minimum:1000 name:PM_PTEG_FROM_L2_GRP29 : (Group 29 pm_pteg9) A Page Table Entry was loaded into the ERAT from the local L2 due to a demand load or store. event:0X01D1 counters:1 um:zero minimum:1000 name:PM_PTEG_FROM_L3_GRP29 : (Group 29 pm_pteg9) A Page Table Entry was loaded into the TLB from the local L3 due to a demand load. event:0X01D2 counters:2 um:zero minimum:1000 name:PM_PTEG_FROM_RMEM_GRP29 : (Group 29 pm_pteg9) A Page Table Entry was loaded into the TLB from memory attached to a different module than this processor is located on. event:0X01D3 counters:3 um:zero minimum:1000 name:PM_PTEG_FROM_L2MISS_GRP29 : (Group 29 pm_pteg9) A Page Table Entry was loaded into the TLB but not from the local L2. event:0X01D4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP29 : (Group 29 pm_pteg9) Number of run instructions completed. event:0X01D5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP29 : (Group 29 pm_pteg9) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 30 pm_pteg10, PTEG sources event:0X01E0 counters:0 um:zero minimum:1000 name:PM_PTEG_FROM_L2_GRP30 : (Group 30 pm_pteg10) A Page Table Entry was loaded into the ERAT from the local L2 due to a demand load or store. event:0X01E1 counters:1 um:zero minimum:1000 name:PM_PTEG_FROM_L3_GRP30 : (Group 30 pm_pteg10) A Page Table Entry was loaded into the TLB from the local L3 due to a demand load. event:0X01E2 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP30 : (Group 30 pm_pteg10) Number of PowerPC Instructions that completed. event:0X01E3 counters:3 um:zero minimum:10000 name:PM_CYC_GRP30 : (Group 30 pm_pteg10) Processor Cycles event:0X01E4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP30 : (Group 30 pm_pteg10) Number of run instructions completed. event:0X01E5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP30 : (Group 30 pm_pteg10) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 31 pm_pteg11, PTEG sources event:0X01F0 counters:0 um:zero minimum:1000 name:PM_PTEG_FROM_RL2L3_MOD_GRP31 : (Group 31 pm_pteg11) A Page Table Entry was loaded into the ERAT with modified (M) data from an L2 or L3 on a remote module due to a demand load or store. event:0X01F1 counters:1 um:zero minimum:1000 name:PM_PTEG_FROM_RL2L3_SHR_GRP31 : (Group 31 pm_pteg11) A Page Table Entry was loaded into the ERAT with shared (T or SL) data from an L2 or L3 on a remote module due to a demand load or store. event:0X01F2 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP31 : (Group 31 pm_pteg11) Number of PowerPC Instructions that completed. event:0X01F3 counters:3 um:zero minimum:1000 name:PM_PTEG_FROM_DL2L3_MOD_GRP31 : (Group 31 pm_pteg11) A Page Table Entry was loaded into the ERAT with modified (M) data from an L2 or L3 on a distant module due to a demand load or store. event:0X01F4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP31 : (Group 31 pm_pteg11) Number of run instructions completed. event:0X01F5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP31 : (Group 31 pm_pteg11) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 32 pm_pteg12, PTEG sources event:0X0200 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP32 : (Group 32 pm_pteg12) Number of PowerPC Instructions that completed. event:0X0201 counters:1 um:zero minimum:1000 name:PM_PTEG_FROM_DMEM_GRP32 : (Group 32 pm_pteg12) A Page Table Entry was loaded into the ERAT with data from memory attached to a distant module due to a demand load or store. event:0X0202 counters:2 um:zero minimum:1000 name:PM_PTEG_FROM_RMEM_GRP32 : (Group 32 pm_pteg12) A Page Table Entry was loaded into the TLB from memory attached to a different module than this processor is located on. event:0X0203 counters:3 um:zero minimum:1000 name:PM_PTEG_FROM_LMEM_GRP32 : (Group 32 pm_pteg12) A Page Table Entry was loaded into the TLB from memory attached to the same module this processor is located on. event:0X0204 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP32 : (Group 32 pm_pteg12) Number of run instructions completed. event:0X0205 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP32 : (Group 32 pm_pteg12) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 33 pm_freq1, Frequency events event:0X0210 counters:0 um:zero minimum:1000 name:PM_POWER_EVENT1_GRP33 : (Group 33 pm_freq1) Power Management Event 1 event:0X0211 counters:1 um:zero minimum:1000 name:PM_DPU_HELD_POWER_GRP33 : (Group 33 pm_freq1) Cycles that Instruction Dispatch was held due to power management. More than one hold condition can exist at the same time event:0X0212 counters:2 um:zero minimum:1000 name:PM_FREQ_DOWN_GRP33 : (Group 33 pm_freq1) Processor frequency was slowed down due to power management event:0X0213 counters:3 um:zero minimum:1000 name:PM_FREQ_UP_GRP33 : (Group 33 pm_freq1) Processor frequency was sped up due to power management event:0X0214 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP33 : (Group 33 pm_freq1) Number of run instructions completed. event:0X0215 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP33 : (Group 33 pm_freq1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 34 pm_freq2, Frequency events event:0X0220 counters:0 um:zero minimum:1000 name:PM_POWER_EVENT1_GRP34 : (Group 34 pm_freq2) Power Management Event 1 event:0X0221 counters:1 um:zero minimum:1000 name:PM_DPU_HELD_POWER_GRP34 : (Group 34 pm_freq2) Cycles that Instruction Dispatch was held due to power management. More than one hold condition can exist at the same time event:0X0222 counters:2 um:zero minimum:1000 name:PM_DISP_HELD_THERMAL_GRP34 : (Group 34 pm_freq2) Dispatch Held due to Thermal event:0X0223 counters:3 um:zero minimum:1000 name:PM_FREQ_UP_GRP34 : (Group 34 pm_freq2) Processor frequency was sped up due to power management event:0X0224 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP34 : (Group 34 pm_freq2) Number of run instructions completed. event:0X0225 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP34 : (Group 34 pm_freq2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 35 pm_L1_ref, L1 references event:0X0230 counters:0 um:zero minimum:1000 name:PM_LD_REF_L1_GRP35 : (Group 35 pm_L1_ref) L1 D cache load references counted at finish event:0X0231 counters:1 um:zero minimum:1000 name:PM_LD_REF_L1_LSU0_GRP35 : (Group 35 pm_L1_ref) Load references to Level 1 Data Cache, by unit 0. event:0X0232 counters:2 um:zero minimum:1000 name:PM_LD_REF_L1_LSU1_GRP35 : (Group 35 pm_L1_ref) Load references to Level 1 Data Cache, by unit 1. event:0X0233 counters:3 um:zero minimum:1000 name:PM_LSU_TWO_TABLEWALK_CYC_GRP35 : (Group 35 pm_L1_ref) Cycles when two tablewalks pending on this thread event:0X0234 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP35 : (Group 35 pm_L1_ref) Number of run instructions completed. event:0X0235 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP35 : (Group 35 pm_L1_ref) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 36 pm_flush1, Flushes event:0X0240 counters:0 um:zero minimum:1000 name:PM_FLUSH_DISP_SYNC_GRP36 : (Group 36 pm_flush1) Dispatch Flush: Sync event:0X0241 counters:1 um:zero minimum:1000 name:PM_FLUSH_DISP_TLBIE_GRP36 : (Group 36 pm_flush1) Dispatch Flush: TLBIE event:0X0242 counters:2 um:zero minimum:1000 name:PM_FLUSH_DISP_SB_GRP36 : (Group 36 pm_flush1) Dispatch Flush: Scoreboard event:0X0243 counters:3 um:zero minimum:1000 name:PM_FLUSH_GRP36 : (Group 36 pm_flush1) Flushes occurred including LSU and Branch flushes. event:0X0244 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP36 : (Group 36 pm_flush1) Number of run instructions completed. event:0X0245 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP36 : (Group 36 pm_flush1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 37 pm_flush2, Flushes event:0X0250 counters:0 um:zero minimum:1000 name:PM_FLUSH_PARTIAL_GRP37 : (Group 37 pm_flush2) Partial flush event:0X0251 counters:1 um:zero minimum:1000 name:PM_FLUSH_DISP_GRP37 : (Group 37 pm_flush2) Dispatch flush event:0X0252 counters:2 um:zero minimum:1000 name:PM_LSU_FLUSH_GRP37 : (Group 37 pm_flush2) A flush was initiated by the Load Store Unit. event:0X0253 counters:3 um:zero minimum:1000 name:PM_LSU_PARTIAL_CDF_GRP37 : (Group 37 pm_flush2) A partial cacheline was returned from the L3 event:0X0254 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP37 : (Group 37 pm_flush2) Number of run instructions completed. event:0X0255 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP37 : (Group 37 pm_flush2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 38 pm_flush, Flushes event:0X0260 counters:0 um:zero minimum:1000 name:PM_FLUSH_DISP_GRP38 : (Group 38 pm_flush) Dispatch flush event:0X0261 counters:1 um:zero minimum:10000 name:PM_CYC_GRP38 : (Group 38 pm_flush) Processor Cycles event:0X0262 counters:2 um:zero minimum:1000 name:PM_FLUSH_COMPLETION_GRP38 : (Group 38 pm_flush) Completion Flush event:0X0263 counters:3 um:zero minimum:1000 name:PM_FLUSH_GRP38 : (Group 38 pm_flush) Flushes occurred including LSU and Branch flushes. event:0X0264 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP38 : (Group 38 pm_flush) Number of run instructions completed. event:0X0265 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP38 : (Group 38 pm_flush) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 39 pm_lsu_flush1, LSU Flush event:0X0270 counters:0 um:zero minimum:1000 name:PM_LSU_FLUSH_ULD_GRP39 : (Group 39 pm_lsu_flush1) A load was flushed because it was unaligned (crossed a 64byte boundary, or 32 byte if it missed the L1). Combined Unit 0 + 1. event:0X0271 counters:1 um:zero minimum:1000 name:PM_LSU_FLUSH_UST_GRP39 : (Group 39 pm_lsu_flush1) A store was flushed because it was unaligned (crossed a 4K boundary). Combined Unit 0 + 1. event:0X0272 counters:2 um:zero minimum:1000 name:PM_LSU_FLUSH_LRQ_GRP39 : (Group 39 pm_lsu_flush1) Load Hit Load or Store Hit Load flush. A younger load was flushed because it executed before an older store and they had overlapping data OR two loads executed out of order and they have byte overlap and there was a snoop in between to an overlapped byte. Combined Unit 0 + 1. event:0X0273 counters:3 um:zero minimum:1000 name:PM_LSU_FLUSH_SRQ_GRP39 : (Group 39 pm_lsu_flush1) Load Hit Store flush. A younger load was flushed because it hits (overlaps) an older store that is already in the SRQ or in the same group. If the real addresses match but the effective addresses do not, an alias condition exists that prevents store forwarding. If the load and store are in the same group the load must be flushed to separate the two instructions. Combined Unit 0 + 1. event:0X0274 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP39 : (Group 39 pm_lsu_flush1) Number of run instructions completed. event:0X0275 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP39 : (Group 39 pm_lsu_flush1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 40 pm_lsu_flush2, LSU Flush ULD event:0X0280 counters:0 um:zero minimum:1000 name:PM_LSU_FLUSH_ULD_GRP40 : (Group 40 pm_lsu_flush2) A load was flushed because it was unaligned (crossed a 64byte boundary, or 32 byte if it missed the L1). Combined Unit 0 + 1. event:0X0281 counters:1 um:zero minimum:1000 name:PM_LSU0_FLUSH_ULD_GRP40 : (Group 40 pm_lsu_flush2) A load was flushed from unit 0 because it was unaligned (crossed a 64 byte boundary, or 32 byte if it missed the L1) event:0X0282 counters:2 um:zero minimum:1000 name:PM_LSU1_FLUSH_ULD_GRP40 : (Group 40 pm_lsu_flush2) A load was flushed from unit 1 because it was unaligned (crossed a 64 byte boundary, or 32 byte if it missed the L1). event:0X0283 counters:3 um:zero minimum:1000 name:PM_FLUSH_GRP40 : (Group 40 pm_lsu_flush2) Flushes occurred including LSU and Branch flushes. event:0X0284 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP40 : (Group 40 pm_lsu_flush2) Number of run instructions completed. event:0X0285 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP40 : (Group 40 pm_lsu_flush2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 41 pm_lsu_flush3, LSU Flush UST event:0X0290 counters:0 um:zero minimum:1000 name:PM_LSU_FLUSH_UST_GRP41 : (Group 41 pm_lsu_flush3) A store was flushed because it was unaligned (crossed a 4K boundary). Combined Unit 0 + 1. event:0X0291 counters:1 um:zero minimum:1000 name:PM_LSU0_FLUSH_UST_GRP41 : (Group 41 pm_lsu_flush3) A store was flushed from unit 0 because it was unaligned (crossed a 4K boundary). event:0X0292 counters:2 um:zero minimum:1000 name:PM_LSU1_FLUSH_UST_GRP41 : (Group 41 pm_lsu_flush3) A store was flushed from unit 1 because it was unaligned (crossed a 4K boundary) event:0X0293 counters:3 um:zero minimum:1000 name:PM_FLUSH_GRP41 : (Group 41 pm_lsu_flush3) Flushes occurred including LSU and Branch flushes. event:0X0294 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP41 : (Group 41 pm_lsu_flush3) Number of run instructions completed. event:0X0295 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP41 : (Group 41 pm_lsu_flush3) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 42 pm_lsu_flush4, LSU Flush LRQ event:0X02A0 counters:0 um:zero minimum:1000 name:PM_LSU_FLUSH_LRQ_GRP42 : (Group 42 pm_lsu_flush4) Load Hit Load or Store Hit Load flush. A younger load was flushed because it executed before an older store and they had overlapping data OR two loads executed out of order and they have byte overlap and there was a snoop in between to an overlapped byte. Combined Unit 0 + 1. event:0X02A1 counters:1 um:zero minimum:1000 name:PM_LSU0_FLUSH_LRQ_GRP42 : (Group 42 pm_lsu_flush4) Load Hit Load or Store Hit Load flush. A younger load was flushed from unit 0 because it executed before an older store and they had overlapping data OR two loads executed out of order and they have byte overlap and there was a snoop in between to an overlapped byte. event:0X02A2 counters:2 um:zero minimum:1000 name:PM_LSU1_FLUSH_LRQ_GRP42 : (Group 42 pm_lsu_flush4) Load Hit Load or Store Hit Load flush. A younger load was flushed from unit 1 because it executed before an older store and they had overlapping data OR two loads executed out of order and they have byte overlap and there was a snoop in between to an overlapped byte. event:0X02A3 counters:3 um:zero minimum:1000 name:PM_FLUSH_GRP42 : (Group 42 pm_lsu_flush4) Flushes occurred including LSU and Branch flushes. event:0X02A4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP42 : (Group 42 pm_lsu_flush4) Number of run instructions completed. event:0X02A5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP42 : (Group 42 pm_lsu_flush4) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 43 pm_lsu_flush5, LSU Flush SRQ event:0X02B0 counters:0 um:zero minimum:1000 name:PM_LSU_FLUSH_SRQ_GRP43 : (Group 43 pm_lsu_flush5) Load Hit Store flush. A younger load was flushed because it hits (overlaps) an older store that is already in the SRQ or in the same group. If the real addresses match but the effective addresses do not, an alias condition exists that prevents store forwarding. If the load and store are in the same group the load must be flushed to separate the two instructions. Combined Unit 0 + 1. event:0X02B1 counters:1 um:zero minimum:1000 name:PM_LSU0_FLUSH_SRQ_GRP43 : (Group 43 pm_lsu_flush5) Load Hit Store flush. A younger load was flushed from unit 0 because it hits (overlaps) an older store that is already in the SRQ or in the same group. If the real addresses match but the effective addresses do not, an alias condition exists that prevents store forwarding. If the load and store are in the same group the load must be flushed to separate the two instructions. event:0X02B2 counters:2 um:zero minimum:1000 name:PM_LSU1_FLUSH_SRQ_GRP43 : (Group 43 pm_lsu_flush5) Load Hit Store flush. A younger load was flushed from unit 1 because it hits (overlaps) an older store that is already in the SRQ or in the same group. If the real addresses match but the effective addresses do not, an alias condition exists that prevents store forwarding. If the load and store are in the same group the load must be flushed to separate the two instructions. event:0X02B3 counters:3 um:zero minimum:1000 name:PM_FLUSH_GRP43 : (Group 43 pm_lsu_flush5) Flushes occurred including LSU and Branch flushes. event:0X02B4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP43 : (Group 43 pm_lsu_flush5) Number of run instructions completed. event:0X02B5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP43 : (Group 43 pm_lsu_flush5) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 44 pm_prefetch, I cache Prefetches event:0X02C0 counters:0 um:zero minimum:1000 name:PM_IC_DEMAND_CYC_GRP44 : (Group 44 pm_prefetch) Cycles when a demand ifetch was pending event:0X02C1 counters:1 um:zero minimum:1000 name:PM_IC_PREF_REQ_GRP44 : (Group 44 pm_prefetch) An instruction prefetch request has been made. event:0X02C2 counters:2 um:zero minimum:1000 name:PM_IC_RELOAD_SHR_GRP44 : (Group 44 pm_prefetch) An Instruction Cache request was made by this thread and the cache line was already in the cache for the other thread. The line is marked valid for all threads. event:0X02C3 counters:3 um:zero minimum:1000 name:PM_IC_PREF_WRITE_GRP44 : (Group 44 pm_prefetch) Number of Instruction Cache entries written because of prefetch. Prefetch entries are marked least recently used and are candidates for eviction if they are not needed to satify a demand fetch. event:0X02C4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP44 : (Group 44 pm_prefetch) Number of run instructions completed. event:0X02C5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP44 : (Group 44 pm_prefetch) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 45 pm_thread_cyc1, Thread cycles event:0X02D0 counters:0 um:zero minimum:1000 name:PM_ANY_THRD_RUN_CYC_GRP45 : (Group 45 pm_thread_cyc1) One of threads in run_cycles event:0X02D1 counters:1 um:zero minimum:1000 name:PM_THRD_ALL_RUN_CYC_GRP45 : (Group 45 pm_thread_cyc1) Cycles when all threads had their run latches set. Operating systems use the run latch to indicate when they are doing useful work. event:0X02D2 counters:2 um:zero minimum:1000 name:PM_THRD_CONC_RUN_INST_GRP45 : (Group 45 pm_thread_cyc1) Instructions completed by this thread when both threads had their run latches set. event:0X02D3 counters:3 um:zero minimum:1000 name:PM_THRD_4_RUN_CYC_GRP45 : (Group 45 pm_thread_cyc1) 4 thread in Run Cycles event:0X02D4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP45 : (Group 45 pm_thread_cyc1) Number of run instructions completed. event:0X02D5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP45 : (Group 45 pm_thread_cyc1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 46 pm_thread_cyc2, Thread cycles event:0X02E0 counters:0 um:zero minimum:1000 name:PM_THRD_GRP_CMPL_BOTH_CYC_GRP46 : (Group 46 pm_thread_cyc2) Cycles that both threads completed. event:0X02E1 counters:1 um:zero minimum:1000 name:PM_THRD_ALL_RUN_CYC_GRP46 : (Group 46 pm_thread_cyc2) Cycles when all threads had their run latches set. Operating systems use the run latch to indicate when they are doing useful work. event:0X02E2 counters:2 um:zero minimum:1000 name:PM_THRD_CONC_RUN_INST_GRP46 : (Group 46 pm_thread_cyc2) Instructions completed by this thread when both threads had their run latches set. event:0X02E3 counters:3 um:zero minimum:1000 name:PM_THRD_PRIO_0_1_CYC_GRP46 : (Group 46 pm_thread_cyc2) Cycles thread running at priority level 0 or 1 event:0X02E4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP46 : (Group 46 pm_thread_cyc2) Number of run instructions completed. event:0X02E5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP46 : (Group 46 pm_thread_cyc2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 47 pm_thread_cyc3, Thread cycles event:0X02F0 counters:0 um:zero minimum:1000 name:PM_THRD_3_CONC_RUN_INST_GRP47 : (Group 47 pm_thread_cyc3) 3 thread Concurrent Run Instructions event:0X02F1 counters:1 um:zero minimum:1000 name:PM_THRD_2_RUN_CYC_GRP47 : (Group 47 pm_thread_cyc3) 2 thread in Run Cycles event:0X02F2 counters:2 um:zero minimum:1000 name:PM_THRD_3_RUN_CYC_GRP47 : (Group 47 pm_thread_cyc3) 3 thread in Run Cycles event:0X02F3 counters:3 um:zero minimum:1000 name:PM_THRD_PRIO_4_5_CYC_GRP47 : (Group 47 pm_thread_cyc3) Cycles thread running at priority level 4 or 5 event:0X02F4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP47 : (Group 47 pm_thread_cyc3) Number of run instructions completed. event:0X02F5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP47 : (Group 47 pm_thread_cyc3) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 48 pm_thread_cyc4, Thread cycles event:0X0300 counters:0 um:zero minimum:1000 name:PM_THRD_PRIO_2_3_CYC_GRP48 : (Group 48 pm_thread_cyc4) Cycles thread running at priority level 2 or 3 event:0X0301 counters:1 um:zero minimum:1000 name:PM_THRD_4_CONC_RUN_INST_GRP48 : (Group 48 pm_thread_cyc4) 4 thread Concurrent Run Instructions event:0X0302 counters:2 um:zero minimum:1000 name:PM_1THRD_CON_RUN_INSTR_GRP48 : (Group 48 pm_thread_cyc4) 1 thread Concurrent Run Instructions event:0X0303 counters:3 um:zero minimum:1000 name:PM_THRD_2_CONC_RUN_INSTR_GRP48 : (Group 48 pm_thread_cyc4) 2 thread Concurrent Run Instructions event:0X0304 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP48 : (Group 48 pm_thread_cyc4) Number of run instructions completed. event:0X0305 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP48 : (Group 48 pm_thread_cyc4) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 49 pm_thread_cyc5, Thread cycles event:0X0310 counters:0 um:zero minimum:1000 name:PM_THRD_PRIO_0_1_CYC_GRP49 : (Group 49 pm_thread_cyc5) Cycles thread running at priority level 0 or 1 event:0X0311 counters:1 um:zero minimum:1000 name:PM_THRD_PRIO_2_3_CYC_GRP49 : (Group 49 pm_thread_cyc5) Cycles thread running at priority level 2 or 3 event:0X0312 counters:2 um:zero minimum:1000 name:PM_THRD_PRIO_4_5_CYC_GRP49 : (Group 49 pm_thread_cyc5) Cycles thread running at priority level 4 or 5 event:0X0313 counters:3 um:zero minimum:1000 name:PM_THRD_PRIO_6_7_CYC_GRP49 : (Group 49 pm_thread_cyc5) Cycles thread running at priority level 6 or 7 event:0X0314 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP49 : (Group 49 pm_thread_cyc5) Number of run instructions completed. event:0X0315 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP49 : (Group 49 pm_thread_cyc5) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 50 pm_thread_cyc6, Thread cycles event:0X0320 counters:0 um:zero minimum:1000 name:PM_THRD_1_RUN_CYC_GRP50 : (Group 50 pm_thread_cyc6) At least one thread has set its run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. This event does not respect FCWAIT. event:0X0321 counters:1 um:zero minimum:1000 name:PM_THRD_ALL_RUN_CYC_GRP50 : (Group 50 pm_thread_cyc6) Cycles when all threads had their run latches set. Operating systems use the run latch to indicate when they are doing useful work. event:0X0322 counters:2 um:zero minimum:1000 name:PM_THRD_CONC_RUN_INST_GRP50 : (Group 50 pm_thread_cyc6) Instructions completed by this thread when both threads had their run latches set. event:0X0323 counters:3 um:zero minimum:1000 name:PM_THRD_4_RUN_CYC_GRP50 : (Group 50 pm_thread_cyc6) 4 thread in Run Cycles event:0X0324 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP50 : (Group 50 pm_thread_cyc6) Number of run instructions completed. event:0X0325 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP50 : (Group 50 pm_thread_cyc6) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 51 pm_fxu1, FXU events event:0X0330 counters:0 um:zero minimum:1000 name:PM_FXU_IDLE_GRP51 : (Group 51 pm_fxu1) FXU0 and FXU1 are both idle. event:0X0331 counters:1 um:zero minimum:1000 name:PM_FXU_BUSY_GRP51 : (Group 51 pm_fxu1) Cycles when both FXU0 and FXU1 are busy. event:0X0332 counters:2 um:zero minimum:1000 name:PM_FXU0_BUSY_FXU1_IDLE_GRP51 : (Group 51 pm_fxu1) FXU0 is busy while FXU1 was idle event:0X0333 counters:3 um:zero minimum:1000 name:PM_FXU1_BUSY_FXU0_IDLE_GRP51 : (Group 51 pm_fxu1) FXU0 was idle while FXU1 was busy event:0X0334 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP51 : (Group 51 pm_fxu1) Number of run instructions completed. event:0X0335 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP51 : (Group 51 pm_fxu1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 52 pm_fxu2, FXU events event:0X0340 counters:0 um:zero minimum:1000 name:PM_FXU0_FIN_GRP52 : (Group 52 pm_fxu2) The Fixed Point unit 0 finished an instruction and produced a result. Instructions that finish may not necessary complete. event:0X0341 counters:1 um:zero minimum:10000 name:PM_RUN_CYC_GRP52 : (Group 52 pm_fxu2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. event:0X0342 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP52 : (Group 52 pm_fxu2) Number of PowerPC Instructions that completed. event:0X0343 counters:3 um:zero minimum:1000 name:PM_FXU1_FIN_GRP52 : (Group 52 pm_fxu2) The Fixed Point unit 1 finished an instruction and produced a result. Instructions that finish may not necessary complete. event:0X0344 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP52 : (Group 52 pm_fxu2) Number of run instructions completed. event:0X0345 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP52 : (Group 52 pm_fxu2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 53 pm_fxu3, FXU events event:0X0350 counters:0 um:zero minimum:10000 name:PM_CYC_GRP53 : (Group 53 pm_fxu3) Processor Cycles event:0X0351 counters:1 um:zero minimum:1000 name:PM_FXU_BUSY_GRP53 : (Group 53 pm_fxu3) Cycles when both FXU0 and FXU1 are busy. event:0X0352 counters:2 um:zero minimum:1000 name:PM_FXU0_BUSY_FXU1_IDLE_GRP53 : (Group 53 pm_fxu3) FXU0 is busy while FXU1 was idle event:0X0353 counters:3 um:zero minimum:1000 name:PM_FXU1_BUSY_FXU0_IDLE_GRP53 : (Group 53 pm_fxu3) FXU0 was idle while FXU1 was busy event:0X0354 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP53 : (Group 53 pm_fxu3) Number of run instructions completed. event:0X0355 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP53 : (Group 53 pm_fxu3) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 54 pm_fxu4, FXU events event:0X0360 counters:0 um:zero minimum:1000 name:PM_FXU_IDLE_GRP54 : (Group 54 pm_fxu4) FXU0 and FXU1 are both idle. event:0X0361 counters:1 um:zero minimum:1000 name:PM_FXU_BUSY_GRP54 : (Group 54 pm_fxu4) Cycles when both FXU0 and FXU1 are busy. event:0X0362 counters:2 um:zero minimum:10000 name:PM_CYC_GRP54 : (Group 54 pm_fxu4) Processor Cycles event:0X0363 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP54 : (Group 54 pm_fxu4) Number of PowerPC Instructions that completed. event:0X0364 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP54 : (Group 54 pm_fxu4) Number of run instructions completed. event:0X0365 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP54 : (Group 54 pm_fxu4) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 55 pm_L2_RCLD, L2 RC load events event:0X0370 counters:0 um:zero minimum:1000 name:PM_L2_RCLD_DISP_GRP55 : (Group 55 pm_L2_RCLD) L2 RC load dispatch attempt event:0X0371 counters:1 um:zero minimum:1000 name:PM_L2_RCLD_DISP_FAIL_OTHER_GRP55 : (Group 55 pm_L2_RCLD) L2 RC load dispatch attempt failed due to other reasons event:0X0372 counters:2 um:zero minimum:1000 name:PM_L2_RCST_DISP_GRP55 : (Group 55 pm_L2_RCLD) L2 RC store dispatch attempt event:0X0373 counters:3 um:zero minimum:1000 name:PM_L2_RCLD_BUSY_RC_FULL_GRP55 : (Group 55 pm_L2_RCLD) L2 activated Busy to the core for loads due to all RC full event:0X0374 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP55 : (Group 55 pm_L2_RCLD) Number of run instructions completed. event:0X0375 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP55 : (Group 55 pm_L2_RCLD) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 56 pm_L2_RC, RC related events event:0X0380 counters:0 um:zero minimum:1000 name:PM_L2_CO_FAIL_BUSY_GRP56 : (Group 56 pm_L2_RC) L2 RC Cast Out dispatch attempt failed due to all CO machines busy event:0X0381 counters:1 um:zero minimum:10000 name:PM_CYC_GRP56 : (Group 56 pm_L2_RC) Processor Cycles event:0X0382 counters:2 um:zero minimum:1000 name:PM_L2_RC_ST_DONE_GRP56 : (Group 56 pm_L2_RC) RC did st to line that was Tx or Sx event:0X0383 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP56 : (Group 56 pm_L2_RC) Number of PowerPC Instructions that completed. event:0X0384 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP56 : (Group 56 pm_L2_RC) Number of run instructions completed. event:0X0385 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP56 : (Group 56 pm_L2_RC) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 57 pm_L2_RCST, L2 RC Store Events event:0X0390 counters:0 um:zero minimum:1000 name:PM_L2_RCLD_DISP_GRP57 : (Group 57 pm_L2_RCST) L2 RC load dispatch attempt event:0X0391 counters:1 um:zero minimum:1000 name:PM_L2_RCLD_DISP_FAIL_OTHER_GRP57 : (Group 57 pm_L2_RCST) L2 RC load dispatch attempt failed due to other reasons event:0X0392 counters:2 um:zero minimum:1000 name:PM_L2_RCST_DISP_FAIL_ADDR_GRP57 : (Group 57 pm_L2_RCST) L2 RC store dispatch attempt failed due to address collision with RC/CO/SN/SQ event:0X0393 counters:3 um:zero minimum:1000 name:PM_L2_RCST_DISP_FAIL_OTHER_GRP57 : (Group 57 pm_L2_RCST) L2 RC store dispatch attempt failed due to other reasons event:0X0394 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP57 : (Group 57 pm_L2_RCST) Number of run instructions completed. event:0X0395 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP57 : (Group 57 pm_L2_RCST) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 58 pm_L2_ldst_1, L2 load/store event:0X03A0 counters:0 um:zero minimum:1000 name:PM_L2_ST_GRP58 : (Group 58 pm_L2_ldst_1) Data Store Count event:0X03A1 counters:1 um:zero minimum:1000 name:PM_L2_LD_MISS_GRP58 : (Group 58 pm_L2_ldst_1) Data Load Miss event:0X03A2 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP58 : (Group 58 pm_L2_ldst_1) Number of PowerPC Instructions that completed. event:0X03A3 counters:3 um:zero minimum:10000 name:PM_CYC_GRP58 : (Group 58 pm_L2_ldst_1) Processor Cycles event:0X03A4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP58 : (Group 58 pm_L2_ldst_1) Number of run instructions completed. event:0X03A5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP58 : (Group 58 pm_L2_ldst_1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 59 pm_L2_ldst_2, L2 load/store event:0X03B0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP59 : (Group 59 pm_L2_ldst_2) Number of PowerPC Instructions that completed. event:0X03B1 counters:1 um:zero minimum:10000 name:PM_CYC_GRP59 : (Group 59 pm_L2_ldst_2) Processor Cycles event:0X03B2 counters:2 um:zero minimum:1000 name:PM_L2_LD_HIT_GRP59 : (Group 59 pm_L2_ldst_2) A load request (data or instruction) hit in the L2 directory. Includes speculative, prefetched, and demand requests. This event includes all requests to this L2 from all sources. Total for all slices event:0X03B3 counters:3 um:zero minimum:1000 name:PM_L2_ST_HIT_GRP59 : (Group 59 pm_L2_ldst_2) A store request hit in the L2 directory. This event includes all requests to this L2 from all sources. Total for all slices. event:0X03B4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP59 : (Group 59 pm_L2_ldst_2) Number of run instructions completed. event:0X03B5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP59 : (Group 59 pm_L2_ldst_2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 60 pm_L2_ldst_3, L2 load/store event:0X03C0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP60 : (Group 60 pm_L2_ldst_3) Number of PowerPC Instructions that completed. event:0X03C1 counters:1 um:zero minimum:10000 name:PM_CYC_GRP60 : (Group 60 pm_L2_ldst_3) Processor Cycles event:0X03C2 counters:2 um:zero minimum:1000 name:PM_L2_LD_DISP_GRP60 : (Group 60 pm_L2_ldst_3) All successful load dispatches event:0X03C3 counters:3 um:zero minimum:1000 name:PM_L2_ST_DISP_GRP60 : (Group 60 pm_L2_ldst_3) All successful store dispatches event:0X03C4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP60 : (Group 60 pm_L2_ldst_3) Number of run instructions completed. event:0X03C5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP60 : (Group 60 pm_L2_ldst_3) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 61 pm_L2_RCSTLD, L2 RC Load/Store Events event:0X03D0 counters:0 um:zero minimum:1000 name:PM_L2_RCLD_DISP_FAIL_ADDR_GRP61 : (Group 61 pm_L2_RCSTLD) L2 RC load dispatch attempt failed due to address collision with RC/CO/SN/SQ event:0X03D1 counters:1 um:zero minimum:1000 name:PM_L2_RCST_BUSY_RC_FULL_GRP61 : (Group 61 pm_L2_RCSTLD) L2 activated Busy to the core for stores due to all RC full event:0X03D2 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP61 : (Group 61 pm_L2_RCSTLD) Number of PowerPC Instructions that completed. event:0X03D3 counters:3 um:zero minimum:10000 name:PM_CYC_GRP61 : (Group 61 pm_L2_RCSTLD) Processor Cycles event:0X03D4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP61 : (Group 61 pm_L2_RCSTLD) Number of run instructions completed. event:0X03D5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP61 : (Group 61 pm_L2_RCSTLD) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 62 pm_nest1, Nest Events event:0X03E0 counters:0 um:zero minimum:1000 name:PM_PB_NODE_PUMP_GRP62 : (Group 62 pm_nest1) Nest events (MC0/MC1/PB/GX), Pair0 Bit0 event:0X03E1 counters:1 um:zero minimum:1000 name:PM_PB_SYS_PUMP_GRP62 : (Group 62 pm_nest1) Nest events (MC0/MC1/PB/GX), Pair1 Bit0 event:0X03E2 counters:2 um:zero minimum:1000 name:PM_PB_RETRY_NODE_PUMP_GRP62 : (Group 62 pm_nest1) Nest events (MC0/MC1/PB/GX), Pair2 Bit0 event:0X03E3 counters:3 um:zero minimum:1000 name:PM_PB_RETRY_SYS_PUMP_GRP62 : (Group 62 pm_nest1) Nest events (MC0/MC1/PB/GX), Pair3 Bit0 event:0X03E4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP62 : (Group 62 pm_nest1) Number of run instructions completed. event:0X03E5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP62 : (Group 62 pm_nest1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 63 pm_nest2, Nest Events event:0X03F0 counters:0 um:zero minimum:1000 name:PM_MEM0_RQ_DISP_GRP63 : (Group 63 pm_nest2) Nest events (MC0/MC1/PB/GX), Pair0 Bit1 event:0X03F1 counters:1 um:zero minimum:1000 name:PM_MEM0_PREFETCH_DISP_GRP63 : (Group 63 pm_nest2) Nest events (MC0/MC1/PB/GX), Pair1 Bit1 event:0X03F2 counters:2 um:zero minimum:1000 name:PM_MEM0_PB_RD_CL_GRP63 : (Group 63 pm_nest2) Nest events (MC0/MC1/PB/GX), Pair2 Bit1 event:0X03F3 counters:3 um:zero minimum:1000 name:PM_MEM0_WQ_DISP_GRP63 : (Group 63 pm_nest2) Nest events (MC0/MC1/PB/GX), Pair3 Bit1 event:0X03F4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP63 : (Group 63 pm_nest2) Number of run instructions completed. event:0X03F5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP63 : (Group 63 pm_nest2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 64 pm_nest3, Nest Events event:0X0400 counters:0 um:zero minimum:1000 name:PM_NEST_PAIR0_ADD_GRP64 : (Group 64 pm_nest3) Nest events (MC0/MC1/PB/GX), Pair0 ADD event:0X0401 counters:1 um:zero minimum:1000 name:PM_NEST_PAIR1_ADD_GRP64 : (Group 64 pm_nest3) Nest events (MC0/MC1/PB/GX), Pair1 ADD event:0X0402 counters:2 um:zero minimum:1000 name:PM_NEST_PAIR2_ADD_GRP64 : (Group 64 pm_nest3) Nest events (MC0/MC1/PB/GX), Pair2 ADD event:0X0403 counters:3 um:zero minimum:1000 name:PM_NEST_PAIR3_ADD_GRP64 : (Group 64 pm_nest3) Nest events (MC0/MC1/PB/GX), Pair3 ADD event:0X0404 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP64 : (Group 64 pm_nest3) Number of run instructions completed. event:0X0405 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP64 : (Group 64 pm_nest3) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 65 pm_nest4, Nest Events event:0X0410 counters:0 um:zero minimum:1000 name:PM_NEST_PAIR0_AND_GRP65 : (Group 65 pm_nest4) Nest events (MC0/MC1/PB/GX), Pair0 AND event:0X0411 counters:1 um:zero minimum:1000 name:PM_NEST_PAIR1_AND_GRP65 : (Group 65 pm_nest4) Nest events (MC0/MC1/PB/GX), Pair1 AND event:0X0412 counters:2 um:zero minimum:1000 name:PM_NEST_PAIR2_AND_GRP65 : (Group 65 pm_nest4) Nest events (MC0/MC1/PB/GX), Pair2 AND event:0X0413 counters:3 um:zero minimum:1000 name:PM_NEST_PAIR3_AND_GRP65 : (Group 65 pm_nest4) Nest events (MC0/MC1/PB/GX), Pair3 AND event:0X0414 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP65 : (Group 65 pm_nest4) Number of run instructions completed. event:0X0415 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP65 : (Group 65 pm_nest4) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 66 pm_L2_redir_pref, L2 redirect and prefetch event:0X0420 counters:0 um:zero minimum:1000 name:PM_IC_DEMAND_L2_BHT_REDIRECT_GRP66 : (Group 66 pm_L2_redir_pref) A demand (not prefetch) miss to the instruction cache was sent to the L2 as a result of a branch prediction redirect (CR mispredict). event:0X0421 counters:1 um:zero minimum:1000 name:PM_IC_DEMAND_L2_BR_REDIRECT_GRP66 : (Group 66 pm_L2_redir_pref) A demand (not prefetch) miss to the instruction cache was sent to the L2 as a result of a branch prediction redirect (either ALL mispredicted or Target). event:0X0422 counters:2 um:zero minimum:1000 name:PM_IC_DEMAND_REQ_GRP66 : (Group 66 pm_L2_redir_pref) Demand Instruction fetch request event:0X0423 counters:3 um:zero minimum:1000 name:PM_IC_BANK_CONFLICT_GRP66 : (Group 66 pm_L2_redir_pref) Read blocked due to interleave conflict. event:0X0424 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP66 : (Group 66 pm_L2_redir_pref) Number of run instructions completed. event:0X0425 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP66 : (Group 66 pm_L2_redir_pref) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 67 pm_dlatencies1, Data latencies event:0X0430 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L2_GRP67 : (Group 67 pm_dlatencies1) The processor's Data Cache was reloaded from the local L2 due to a demand load. event:0X0431 counters:1 um:zero minimum:1000 name:PM_INST_DISP_GRP67 : (Group 67 pm_dlatencies1) Number of PowerPC instructions successfully dispatched. event:0X0432 counters:2 um:zero minimum:1000 name:PM_L1_DCACHE_RELOAD_VALID_GRP67 : (Group 67 pm_dlatencies1) The data source information is valid,the data cache has been reloaded. Prior to POWER5+ this included data cache reloads due to prefetch activity. With POWER5+ this now only includes reloads due to demand loads. event:0X0433 counters:3 um:zero minimum:1000 name:PM_1PLUS_PPC_DISP_GRP67 : (Group 67 pm_dlatencies1) A group containing at least one PPC instruction was dispatched. For microcoded instructions that span multiple groups, this will only occur once. event:0X0434 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP67 : (Group 67 pm_dlatencies1) Number of run instructions completed. event:0X0435 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP67 : (Group 67 pm_dlatencies1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 68 pm_dlatencies2, Data latencies event:0X0440 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L3_GRP68 : (Group 68 pm_dlatencies2) The processor's Data Cache was reloaded from the local L3 due to a demand load. event:0X0441 counters:1 um:zero minimum:10000 name:PM_CYC_GRP68 : (Group 68 pm_dlatencies2) Processor Cycles event:0X0442 counters:2 um:zero minimum:1000 name:PM_L1_DCACHE_RELOAD_VALID_GRP68 : (Group 68 pm_dlatencies2) The data source information is valid,the data cache has been reloaded. Prior to POWER5+ this included data cache reloads due to prefetch activity. With POWER5+ this now only includes reloads due to demand loads. event:0X0443 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP68 : (Group 68 pm_dlatencies2) Number of PowerPC Instructions that completed. event:0X0444 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP68 : (Group 68 pm_dlatencies2) Number of run instructions completed. event:0X0445 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP68 : (Group 68 pm_dlatencies2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 69 pm_dlatencies3, Data latencies event:0X0450 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_RL2L3_MOD_GRP69 : (Group 69 pm_dlatencies3) The processor's Data Cache was reloaded with modified (M) data from an L2 or L3 on a remote module due to a demand load event:0X0451 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_RL2L3_SHR_GRP69 : (Group 69 pm_dlatencies3) The processor's Data Cache was reloaded with shared (T or SL) data from an L2 or L3 on a remote module due to a demand load event:0X0452 counters:2 um:zero minimum:1000 name:PM_L1_DCACHE_RELOAD_VALID_GRP69 : (Group 69 pm_dlatencies3) The data source information is valid,the data cache has been reloaded. Prior to POWER5+ this included data cache reloads due to prefetch activity. With POWER5+ this now only includes reloads due to demand loads. event:0X0453 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP69 : (Group 69 pm_dlatencies3) Number of PowerPC Instructions that completed. event:0X0454 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP69 : (Group 69 pm_dlatencies3) Number of run instructions completed. event:0X0455 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP69 : (Group 69 pm_dlatencies3) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 70 pm_rejects1, Reject event event:0X0460 counters:0 um:zero minimum:1000 name:PM_LSU_REJECT_GRP70 : (Group 70 pm_rejects1) The Load Store Unit rejected an instruction. Combined Unit 0 + 1 event:0X0461 counters:1 um:zero minimum:1000 name:PM_LSU0_REJECT_LHS_GRP70 : (Group 70 pm_rejects1) Load Store Unit 0 rejected a load instruction that had an address overlap with an older store in the store queue. The store must be committed and de-allocated from the Store Queue before the load can execute successfully. event:0X0462 counters:2 um:zero minimum:1000 name:PM_LSU1_REJECT_LHS_GRP70 : (Group 70 pm_rejects1) Load Store Unit 1 rejected a load instruction that had an address overlap with an older store in the store queue. The store must be committed and de-allocated from the Store Queue before the load can execute successfully. event:0X0463 counters:3 um:zero minimum:1000 name:PM_LSU_REJECT_LHS_GRP70 : (Group 70 pm_rejects1) The Load Store Unit rejected a load instruction that had an address overlap with an older store in the store queue. The store must be committed and de-allocated from the Store Queue before the load can execute successfully. Combined Unit 0 + 1 event:0X0464 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP70 : (Group 70 pm_rejects1) Number of run instructions completed. event:0X0465 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP70 : (Group 70 pm_rejects1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 71 pm_rejects2, Reject events event:0X0470 counters:0 um:zero minimum:1000 name:PM_LSU_REJECT_GRP71 : (Group 71 pm_rejects2) The Load Store Unit rejected an instruction. Combined Unit 0 + 1 event:0X0471 counters:1 um:zero minimum:1000 name:PM_LSU_REJECT_ERAT_MISS_GRP71 : (Group 71 pm_rejects2) Total cycles the Load Store Unit is busy rejecting instructions due to an ERAT miss. Combined unit 0 + 1. Requests that miss the Derat are rejected and retried until the request hits in the Erat. event:0X0472 counters:2 um:zero minimum:1000 name:PM_LSU_REJECT_SET_MPRED_GRP71 : (Group 71 pm_rejects2) The Load Store Unit rejected an instruction because the cache set was improperly predicted. This is a fast reject and will be immediately redispatched. Combined Unit 0 + 1 event:0X0473 counters:3 um:zero minimum:1000 name:PM_LSU_SRQ_EMPTY_CYC_GRP71 : (Group 71 pm_rejects2) The Store Request Queue is empty event:0X0474 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP71 : (Group 71 pm_rejects2) Number of run instructions completed. event:0X0475 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP71 : (Group 71 pm_rejects2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 72 pm_rejects3, Set mispredictions rejects event:0X0480 counters:0 um:zero minimum:1000 name:PM_LSU_REJECT_SET_MPRED_GRP72 : (Group 72 pm_rejects3) The Load Store Unit rejected an instruction because the cache set was improperly predicted. This is a fast reject and will be immediately redispatched. Combined Unit 0 + 1 event:0X0481 counters:1 um:zero minimum:1000 name:PM_LSU_SET_MPRED_GRP72 : (Group 72 pm_rejects3) Line already in cache at reload time event:0X0482 counters:2 um:zero minimum:10000 name:PM_CYC_GRP72 : (Group 72 pm_rejects3) Processor Cycles event:0X0483 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP72 : (Group 72 pm_rejects3) Number of PowerPC Instructions that completed. event:0X0484 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP72 : (Group 72 pm_rejects3) Number of run instructions completed. event:0X0485 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP72 : (Group 72 pm_rejects3) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 73 pm_lsu_reject, LSU Reject Event event:0X0490 counters:0 um:zero minimum:1000 name:PM_LSU_REJECT_LMQ_FULL_GRP73 : (Group 73 pm_lsu_reject) Total cycles the Load Store Unit is busy rejecting instructions because the Load Miss Queue was full. The LMQ has eight entries. If all the eight entries are full, subsequent load instructions are rejected. Combined unit 0 + 1. event:0X0491 counters:1 um:zero minimum:1000 name:PM_LSU0_REJECT_LMQ_FULL_GRP73 : (Group 73 pm_lsu_reject) Total cycles the Load Store Unit 0 is busy rejecting instructions because the Load Miss Queue was full. The LMQ has eight entries. If all eight entries are full, subsequent load instructions are rejected. event:0X0492 counters:2 um:zero minimum:1000 name:PM_LSU1_REJECT_LMQ_FULL_GRP73 : (Group 73 pm_lsu_reject) Total cycles the Load Store Unit 1 is busy rejecting instructions because the Load Miss Queue was full. The LMQ has eight entries. If all eight entries are full, subsequent load instructions are rejected. event:0X0493 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP73 : (Group 73 pm_lsu_reject) Number of PowerPC Instructions that completed. event:0X0494 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP73 : (Group 73 pm_lsu_reject) Number of run instructions completed. event:0X0495 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP73 : (Group 73 pm_lsu_reject) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 74 pm_lsu_ncld, Non cachable loads event:0X04A0 counters:0 um:zero minimum:1000 name:PM_LSU_NCLD_GRP74 : (Group 74 pm_lsu_ncld) A non-cacheable load was executed. Combined Unit 0 + 1. event:0X04A1 counters:1 um:zero minimum:1000 name:PM_LSU0_NCLD_GRP74 : (Group 74 pm_lsu_ncld) A non-cacheable load was executed by unit 0. event:0X04A2 counters:2 um:zero minimum:1000 name:PM_LSU1_NCLD_GRP74 : (Group 74 pm_lsu_ncld) A non-cacheable load was executed by Unit 0. event:0X04A3 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP74 : (Group 74 pm_lsu_ncld) Number of PowerPC Instructions that completed. event:0X04A4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP74 : (Group 74 pm_lsu_ncld) Number of run instructions completed. event:0X04A5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP74 : (Group 74 pm_lsu_ncld) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 75 pm_gct1, GCT events event:0X04B0 counters:0 um:zero minimum:1000 name:PM_GCT_NOSLOT_CYC_GRP75 : (Group 75 pm_gct1) Cycles when the Global Completion Table has no slots from this thread. event:0X04B1 counters:1 um:zero minimum:1000 name:PM_GCT_EMPTY_CYC_GRP75 : (Group 75 pm_gct1) Cycles when the Global Completion Table was completely empty. No thread had an entry allocated. event:0X04B2 counters:2 um:zero minimum:1000 name:PM_GCT_FULL_CYC_GRP75 : (Group 75 pm_gct1) The Global Completion Table is completely full. event:0X04B3 counters:3 um:zero minimum:10000 name:PM_CYC_GRP75 : (Group 75 pm_gct1) Processor Cycles event:0X04B4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP75 : (Group 75 pm_gct1) Number of run instructions completed. event:0X04B5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP75 : (Group 75 pm_gct1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 76 pm_gct2, GCT Events event:0X04C0 counters:0 um:zero minimum:1000 name:PM_GCT_UTIL_1_TO_2_SLOTS_GRP76 : (Group 76 pm_gct2) GCT Utilization 1-2 entries event:0X04C1 counters:1 um:zero minimum:1000 name:PM_GCT_UTIL_3_TO_6_SLOTS_GRP76 : (Group 76 pm_gct2) GCT Utilization 3-6 entries event:0X04C2 counters:2 um:zero minimum:1000 name:PM_GCT_UTIL_7_TO_10_SLOTS_GRP76 : (Group 76 pm_gct2) GCT Utilization 7-10 entries event:0X04C3 counters:3 um:zero minimum:1000 name:PM_GCT_UTIL_11_PLUS_SLOTS_GRP76 : (Group 76 pm_gct2) GCT Utilization 11+ entries event:0X04C4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP76 : (Group 76 pm_gct2) Number of run instructions completed. event:0X04C5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP76 : (Group 76 pm_gct2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 77 pm_L2_castout_invalidate_1, L2 castout and invalidate events event:0X04D0 counters:0 um:zero minimum:1000 name:PM_L2_CASTOUT_MOD_GRP77 : (Group 77 pm_L2_castout_invalidate_1) An L2 line in the Modified state was castout. Total for all slices. event:0X04D1 counters:1 um:zero minimum:1000 name:PM_L2_DC_INV_GRP77 : (Group 77 pm_L2_castout_invalidate_1) The L2 invalidated a line in processor's data cache. This is caused by the L2 line being cast out or invalidated. Total for all slices event:0X04D2 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP77 : (Group 77 pm_L2_castout_invalidate_1) Number of PowerPC Instructions that completed. event:0X04D3 counters:3 um:zero minimum:10000 name:PM_CYC_GRP77 : (Group 77 pm_L2_castout_invalidate_1) Processor Cycles event:0X04D4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP77 : (Group 77 pm_L2_castout_invalidate_1) Number of run instructions completed. event:0X04D5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP77 : (Group 77 pm_L2_castout_invalidate_1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 78 pm_L2_castout_invalidate_2, L2 castout and invalidate events event:0X04E0 counters:0 um:zero minimum:1000 name:PM_L2_CASTOUT_SHR_GRP78 : (Group 78 pm_L2_castout_invalidate_2) An L2 line in the Shared state was castout. Total for all slices. event:0X04E1 counters:1 um:zero minimum:1000 name:PM_L2_IC_INV_GRP78 : (Group 78 pm_L2_castout_invalidate_2) Icache Invalidates from L2 event:0X04E2 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP78 : (Group 78 pm_L2_castout_invalidate_2) Number of PowerPC Instructions that completed. event:0X04E3 counters:3 um:zero minimum:10000 name:PM_CYC_GRP78 : (Group 78 pm_L2_castout_invalidate_2) Processor Cycles event:0X04E4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP78 : (Group 78 pm_L2_castout_invalidate_2) Number of run instructions completed. event:0X04E5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP78 : (Group 78 pm_L2_castout_invalidate_2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 79 pm_disp_held1, Dispatch held conditions event:0X04F0 counters:0 um:zero minimum:1000 name:PM_DISP_HELD_GRP79 : (Group 79 pm_disp_held1) Dispatch Held event:0X04F1 counters:1 um:zero minimum:1000 name:PM_DPU_HELD_POWER_GRP79 : (Group 79 pm_disp_held1) Cycles that Instruction Dispatch was held due to power management. More than one hold condition can exist at the same time event:0X04F2 counters:2 um:zero minimum:1000 name:PM_DISP_HELD_THERMAL_GRP79 : (Group 79 pm_disp_held1) Dispatch Held due to Thermal event:0X04F3 counters:3 um:zero minimum:1000 name:PM_1PLUS_PPC_DISP_GRP79 : (Group 79 pm_disp_held1) A group containing at least one PPC instruction was dispatched. For microcoded instructions that span multiple groups, this will only occur once. event:0X04F4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP79 : (Group 79 pm_disp_held1) Number of run instructions completed. event:0X04F5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP79 : (Group 79 pm_disp_held1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 80 pm_disp_held2, Dispatch held conditions event:0X0500 counters:0 um:zero minimum:1000 name:PM_THERMAL_WARN_GRP80 : (Group 80 pm_disp_held2) Processor in Thermal Warning event:0X0501 counters:1 um:zero minimum:1000 name:PM_DPU_HELD_POWER_GRP80 : (Group 80 pm_disp_held2) Cycles that Instruction Dispatch was held due to power management. More than one hold condition can exist at the same time event:0X0502 counters:2 um:zero minimum:1000 name:PM_DISP_HELD_THERMAL_GRP80 : (Group 80 pm_disp_held2) Dispatch Held due to Thermal event:0X0503 counters:3 um:zero minimum:1000 name:PM_THERMAL_MAX_GRP80 : (Group 80 pm_disp_held2) The processor experienced a thermal overload condition. This bit is sticky, it remains set until cleared by software. event:0X0504 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP80 : (Group 80 pm_disp_held2) Number of run instructions completed. event:0X0505 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP80 : (Group 80 pm_disp_held2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 81 pm_disp_clb_held, Display CLB held conditions event:0X0510 counters:0 um:zero minimum:1000 name:PM_DISP_CLB_HELD_BAL_GRP81 : (Group 81 pm_disp_clb_held) Dispatch/CLB Hold: Balance event:0X0511 counters:1 um:zero minimum:1000 name:PM_DISP_CLB_HELD_RES_GRP81 : (Group 81 pm_disp_clb_held) Dispatch/CLB Hold: Resource event:0X0512 counters:2 um:zero minimum:1000 name:PM_DISP_CLB_HELD_TLBIE_GRP81 : (Group 81 pm_disp_clb_held) Dispatch Hold: Due to TLBIE event:0X0513 counters:3 um:zero minimum:1000 name:PM_DISP_CLB_HELD_SYNC_GRP81 : (Group 81 pm_disp_clb_held) Dispatch/CLB Hold: Sync type instruction event:0X0514 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP81 : (Group 81 pm_disp_clb_held) Number of run instructions completed. event:0X0515 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP81 : (Group 81 pm_disp_clb_held) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 82 pm_power, Power Events event:0X0520 counters:0 um:zero minimum:1000 name:PM_POWER_EVENT1_GRP82 : (Group 82 pm_power) Power Management Event 1 event:0X0521 counters:1 um:zero minimum:1000 name:PM_POWER_EVENT2_GRP82 : (Group 82 pm_power) Power Management Event 2 event:0X0522 counters:2 um:zero minimum:1000 name:PM_POWER_EVENT3_GRP82 : (Group 82 pm_power) Power Management Event 3 event:0X0523 counters:3 um:zero minimum:1000 name:PM_POWER_EVENT4_GRP82 : (Group 82 pm_power) Power Management Event 4 event:0X0524 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP82 : (Group 82 pm_power) Number of run instructions completed. event:0X0525 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP82 : (Group 82 pm_power) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 83 pm_dispatch1, Groups and instructions dispatched event:0X0530 counters:0 um:zero minimum:1000 name:PM_1PLUS_PPC_CMPL_GRP83 : (Group 83 pm_dispatch1) A group containing at least one PPC instruction completed. For microcoded instructions that span multiple groups, this will only occur once. event:0X0531 counters:1 um:zero minimum:1000 name:PM_INST_DISP_GRP83 : (Group 83 pm_dispatch1) Number of PowerPC instructions successfully dispatched. event:0X0532 counters:2 um:zero minimum:1000 name:PM_GRP_DISP_GRP83 : (Group 83 pm_dispatch1) A group was dispatched event:0X0533 counters:3 um:zero minimum:1000 name:PM_1PLUS_PPC_DISP_GRP83 : (Group 83 pm_dispatch1) A group containing at least one PPC instruction was dispatched. For microcoded instructions that span multiple groups, this will only occur once. event:0X0534 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP83 : (Group 83 pm_dispatch1) Number of run instructions completed. event:0X0535 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP83 : (Group 83 pm_dispatch1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 84 pm_dispatch2, Groups and instructions dispatched event:0X0540 counters:0 um:zero minimum:1000 name:PM_1PLUS_PPC_CMPL_GRP84 : (Group 84 pm_dispatch2) A group containing at least one PPC instruction completed. For microcoded instructions that span multiple groups, this will only occur once. event:0X0541 counters:1 um:zero minimum:10000 name:PM_CYC_GRP84 : (Group 84 pm_dispatch2) Processor Cycles event:0X0542 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP84 : (Group 84 pm_dispatch2) Number of PowerPC Instructions that completed. event:0X0543 counters:3 um:zero minimum:1000 name:PM_1PLUS_PPC_DISP_GRP84 : (Group 84 pm_dispatch2) A group containing at least one PPC instruction was dispatched. For microcoded instructions that span multiple groups, this will only occur once. event:0X0544 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP84 : (Group 84 pm_dispatch2) Number of run instructions completed. event:0X0545 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP84 : (Group 84 pm_dispatch2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 85 pm_ic, I cache operations event:0X0550 counters:0 um:zero minimum:1000 name:PM_IC_REQ_ALL_GRP85 : (Group 85 pm_ic) Icache requests, prefetch + demand event:0X0551 counters:1 um:zero minimum:1000 name:PM_IC_WRITE_ALL_GRP85 : (Group 85 pm_ic) Icache sectors written, prefetch + demand event:0X0552 counters:2 um:zero minimum:1000 name:PM_IC_PREF_CANCEL_ALL_GRP85 : (Group 85 pm_ic) Prefetch Canceled due to page boundary or icache hit event:0X0553 counters:3 um:zero minimum:1000 name:PM_IC_DEMAND_L2_BR_ALL_GRP85 : (Group 85 pm_ic) L2 I cache demand request due to BHT or redirect event:0X0554 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP85 : (Group 85 pm_ic) Number of run instructions completed. event:0X0555 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP85 : (Group 85 pm_ic) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 86 pm_ic_pref_cancel, Instruction pre-fetched cancelled event:0X0560 counters:0 um:zero minimum:1000 name:PM_IC_PREF_CANCEL_PAGE_GRP86 : (Group 86 pm_ic_pref_cancel) Prefetch Canceled due to page boundary event:0X0561 counters:1 um:zero minimum:1000 name:PM_IC_PREF_CANCEL_HIT_GRP86 : (Group 86 pm_ic_pref_cancel) Prefetch Canceled due to icache hit event:0X0562 counters:2 um:zero minimum:1000 name:PM_IC_PREF_CANCEL_L2_GRP86 : (Group 86 pm_ic_pref_cancel) L2 Squashed request event:0X0563 counters:3 um:zero minimum:1000 name:PM_IC_PREF_CANCEL_ALL_GRP86 : (Group 86 pm_ic_pref_cancel) Prefetch Canceled due to page boundary or icache hit event:0X0564 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP86 : (Group 86 pm_ic_pref_cancel) Number of run instructions completed. event:0X0565 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP86 : (Group 86 pm_ic_pref_cancel) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 87 pm_ic_miss, Icache and Ierat miss events event:0X0570 counters:0 um:zero minimum:1000 name:PM_IERAT_MISS_GRP87 : (Group 87 pm_ic_miss) A translation request missed the Instruction Effective to Real Address Translation (ERAT) table event:0X0571 counters:1 um:zero minimum:1000 name:PM_L1_ICACHE_MISS_GRP87 : (Group 87 pm_ic_miss) An instruction fetch request missed the L1 cache. event:0X0572 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP87 : (Group 87 pm_ic_miss) Number of PowerPC Instructions that completed. event:0X0573 counters:3 um:zero minimum:10000 name:PM_CYC_GRP87 : (Group 87 pm_ic_miss) Processor Cycles event:0X0574 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP87 : (Group 87 pm_ic_miss) Number of run instructions completed. event:0X0575 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP87 : (Group 87 pm_ic_miss) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 88 pm_cpi_stack1, CPI stack breakdown event:0X0580 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L2_GRP88 : (Group 88 pm_cpi_stack1) The processor's Data Cache was reloaded from the local L2 due to a demand load. event:0X0581 counters:1 um:zero minimum:1000 name:PM_CMPLU_STALL_DCACHE_MISS_GRP88 : (Group 88 pm_cpi_stack1) Following a completion stall (any period when no groups completed) the last instruction to finish before completion resumes suffered a Data Cache Miss. Data Cache Miss has higher priority than any other Load/Store delay, so if an instruction encounters multiple delays only the Data Cache Miss will be reported and the entire delay period will be charged to Data Cache Miss. This is a subset of PM_CMPLU_STALL_LSU. event:0X0582 counters:2 um:zero minimum:1000 name:PM_L1_DCACHE_RELOAD_VALID_GRP88 : (Group 88 pm_cpi_stack1) The data source information is valid,the data cache has been reloaded. Prior to POWER5+ this included data cache reloads due to prefetch activity. With POWER5+ this now only includes reloads due to demand loads. event:0X0583 counters:3 um:zero minimum:1000 name:PM_CMPLU_STALL_ERAT_MISS_GRP88 : (Group 88 pm_cpi_stack1) Following a completion stall (any period when no groups completed) the last instruction to finish before completion resumes suffered an ERAT miss. This is a subset of PM_CMPLU_STALL_REJECT. event:0X0584 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP88 : (Group 88 pm_cpi_stack1) Number of run instructions completed. event:0X0585 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP88 : (Group 88 pm_cpi_stack1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 89 pm_cpi_stack2, CPI stack breakdown event:0X0590 counters:0 um:zero minimum:1000 name:PM_FXU_IDLE_GRP89 : (Group 89 pm_cpi_stack2) FXU0 and FXU1 are both idle. event:0X0591 counters:1 um:zero minimum:1000 name:PM_CMPLU_STALL_FXU_GRP89 : (Group 89 pm_cpi_stack2) Following a completion stall (any period when no groups completed) the last instruction to finish before completion resumes was a fixed point instruction. event:0X0592 counters:2 um:zero minimum:1000 name:PM_GRP_CMPL_GRP89 : (Group 89 pm_cpi_stack2) A group completed. Microcoded instructions that span multiple groups will generate this event once per group. event:0X0593 counters:3 um:zero minimum:1000 name:PM_CMPLU_STALL_DIV_GRP89 : (Group 89 pm_cpi_stack2) Following a completion stall (any period when no groups completed) the last instruction to finish before completion resumes was a fixed point divide instruction. This is a subset of PM_CMPLU_STALL_FXU. event:0X0594 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP89 : (Group 89 pm_cpi_stack2) Number of run instructions completed. event:0X0595 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP89 : (Group 89 pm_cpi_stack2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 90 pm_cpi_stack3, CPI stack breakdown event:0X05A0 counters:0 um:zero minimum:1000 name:PM_TABLEWALK_CYC_GRP90 : (Group 90 pm_cpi_stack3) Cycles doing instruction or data tablewalks event:0X05A1 counters:1 um:zero minimum:1000 name:PM_CMPLU_STALL_LSU_GRP90 : (Group 90 pm_cpi_stack3) Following a completion stall (any period when no groups completed) the last instruction to finish before completion resumes was a load/store instruction. event:0X05A2 counters:2 um:zero minimum:1000 name:PM_DATA_TABLEWALK_CYC_GRP90 : (Group 90 pm_cpi_stack3) Cycles a translation tablewalk is active. While a tablewalk is active any request attempting to access the TLB will be rejected and retried. event:0X05A3 counters:3 um:zero minimum:1000 name:PM_CMPLU_STALL_REJECT_GRP90 : (Group 90 pm_cpi_stack3) Following a completion stall (any period when no groups completed) the last instruction to finish before completion resumes suffered a load/store reject. This is a subset of PM_CMPLU_STALL_LSU. event:0X05A4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP90 : (Group 90 pm_cpi_stack3) Number of run instructions completed. event:0X05A5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP90 : (Group 90 pm_cpi_stack3) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 91 pm_cpi_stack4, CPI stack breakdown event:0X05B0 counters:0 um:zero minimum:1000 name:PM_FLOP_GRP91 : (Group 91 pm_cpi_stack4) A floating point operation has completed event:0X05B1 counters:1 um:zero minimum:1000 name:PM_CMPLU_STALL_SCALAR_LONG_GRP91 : (Group 91 pm_cpi_stack4) Completion stall caused by long latency scalar instruction event:0X05B2 counters:2 um:zero minimum:1000 name:PM_MRK_STALL_CMPLU_CYC_GRP91 : (Group 91 pm_cpi_stack4) Marked Group Completion Stall cycles event:0X05B3 counters:3 um:zero minimum:1000 name:PM_CMPLU_STALL_SCALAR_GRP91 : (Group 91 pm_cpi_stack4) Completion stall caused by FPU instruction event:0X05B4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP91 : (Group 91 pm_cpi_stack4) Number of run instructions completed. event:0X05B5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP91 : (Group 91 pm_cpi_stack4) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 92 pm_cpi_stack5, CPI stack breakdown event:0X05C0 counters:0 um:zero minimum:1000 name:PM_CMPLU_STALL_END_GCT_NOSLOT_GRP92 : (Group 92 pm_cpi_stack5) Count ended because GCT went empty event:0X05C1 counters:1 um:zero minimum:1000 name:PM_CMPLU_STALL_VECTOR_GRP92 : (Group 92 pm_cpi_stack5) Completion stall caused by Vector instruction event:0X05C2 counters:2 um:zero minimum:1000 name:PM_MRK_STALL_CMPLU_CYC_COUNT_GRP92 : (Group 92 pm_cpi_stack5) Marked Group Completion Stall cycles (use edge detect to count #) event:0X05C3 counters:3 um:zero minimum:1000 name:PM_CMPLU_STALL_GRP92 : (Group 92 pm_cpi_stack5) No groups completed, GCT not empty event:0X05C4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP92 : (Group 92 pm_cpi_stack5) Number of run instructions completed. event:0X05C5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP92 : (Group 92 pm_cpi_stack5) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 93 pm_cpi_stack6, CPI stack breakdown event:0X05D0 counters:0 um:zero minimum:1000 name:PM_CMPLU_STALL_THRD_GRP93 : (Group 93 pm_cpi_stack6) Completion Stalled due to thread conflict. Group ready to complete but it was another thread's turn event:0X05D1 counters:1 um:zero minimum:1000 name:PM_CMPLU_STALL_DFU_GRP93 : (Group 93 pm_cpi_stack6) Completion stall caused by Decimal Floating Point Unit event:0X05D2 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP93 : (Group 93 pm_cpi_stack6) Number of PowerPC Instructions that completed. event:0X05D3 counters:3 um:zero minimum:1000 name:PM_GCT_NOSLOT_BR_MPRED_IC_MISS_GRP93 : (Group 93 pm_cpi_stack6) No slot in GCT caused by branch mispredict or I cache miss event:0X05D4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP93 : (Group 93 pm_cpi_stack6) Number of run instructions completed. event:0X05D5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP93 : (Group 93 pm_cpi_stack6) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 94 pm_cpi_stack7, CPI stack breakdown event:0X05E0 counters:0 um:zero minimum:1000 name:PM_GCT_NOSLOT_CYC_GRP94 : (Group 94 pm_cpi_stack7) Cycles when the Global Completion Table has no slots from this thread. event:0X05E1 counters:1 um:zero minimum:1000 name:PM_GCT_NOSLOT_IC_MISS_GRP94 : (Group 94 pm_cpi_stack7) Cycles when the Global Completion Table has no slots from this thread because of an Instruction Cache miss. event:0X05E2 counters:2 um:zero minimum:1000 name:PM_IOPS_DISP_GRP94 : (Group 94 pm_cpi_stack7) IOPS dispatched event:0X05E3 counters:3 um:zero minimum:1000 name:PM_GCT_NOSLOT_BR_MPRED_GRP94 : (Group 94 pm_cpi_stack7) Cycles when the Global Completion Table has no slots from this thread because of a branch misprediction. event:0X05E4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP94 : (Group 94 pm_cpi_stack7) Number of run instructions completed. event:0X05E5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP94 : (Group 94 pm_cpi_stack7) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 95 pm_cpi_stack8, CPI stack breakdown event:0X05F0 counters:0 um:zero minimum:1000 name:PM_1PLUS_PPC_CMPL_GRP95 : (Group 95 pm_cpi_stack8) A group containing at least one PPC instruction completed. For microcoded instructions that span multiple groups, this will only occur once. event:0X05F1 counters:1 um:zero minimum:1000 name:PM_CMPLU_STALL_STORE_GRP95 : (Group 95 pm_cpi_stack8) Completion stall due to store instruction event:0X05F2 counters:2 um:zero minimum:1000 name:PM_INST_DISP_GRP95 : (Group 95 pm_cpi_stack8) Number of PowerPC instructions successfully dispatched. event:0X05F3 counters:3 um:zero minimum:1000 name:PM_CMPLU_STALL_VECTOR_LONG_GRP95 : (Group 95 pm_cpi_stack8) completion stall due to long latency vector instruction event:0X05F4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP95 : (Group 95 pm_cpi_stack8) Number of run instructions completed. event:0X05F5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP95 : (Group 95 pm_cpi_stack8) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 96 pm_cpi_stack9, CPI stack breakdown event:0X0600 counters:0 um:zero minimum:1000 name:PM_CMPLU_STALL_THRD_GRP96 : (Group 96 pm_cpi_stack9) Completion Stalled due to thread conflict. Group ready to complete but it was another thread's turn event:0X0601 counters:1 um:zero minimum:1000 name:PM_CMPLU_STALL_DFU_GRP96 : (Group 96 pm_cpi_stack9) Completion stall caused by Decimal Floating Point Unit event:0X0602 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP96 : (Group 96 pm_cpi_stack9) Number of PowerPC Instructions that completed. event:0X0603 counters:3 um:zero minimum:1000 name:PM_CMPLU_STALL_COUNT_GRP96 : (Group 96 pm_cpi_stack9) Count of Cycles where a thread was not completing any groups , when the group completion table had entries for that thread. event:0X0604 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP96 : (Group 96 pm_cpi_stack9) Number of run instructions completed. event:0X0605 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP96 : (Group 96 pm_cpi_stack9) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 97 pm_cpi_stack10, CPI stack breakdown event:0X0610 counters:0 um:zero minimum:1000 name:PM_1PLUS_PPC_CMPL_GRP97 : (Group 97 pm_cpi_stack10) A group containing at least one PPC instruction completed. For microcoded instructions that span multiple groups, this will only occur once. event:0X0611 counters:1 um:zero minimum:1000 name:PM_CMPLU_STALL_DCACHE_MISS_GRP97 : (Group 97 pm_cpi_stack10) Following a completion stall (any period when no groups completed) the last instruction to finish before completion resumes suffered a Data Cache Miss. Data Cache Miss has higher priority than any other Load/Store delay, so if an instruction encounters multiple delays only the Data Cache Miss will be reported and the entire delay period will be charged to Data Cache Miss. This is a subset of PM_CMPLU_STALL_LSU. event:0X0612 counters:2 um:zero minimum:1000 name:PM_L1_DCACHE_RELOAD_VALID_GRP97 : (Group 97 pm_cpi_stack10) The data source information is valid,the data cache has been reloaded. Prior to POWER5+ this included data cache reloads due to prefetch activity. With POWER5+ this now only includes reloads due to demand loads. event:0X0613 counters:3 um:zero minimum:1000 name:PM_CMPLU_STALL_ERAT_MISS_GRP97 : (Group 97 pm_cpi_stack10) Following a completion stall (any period when no groups completed) the last instruction to finish before completion resumes suffered an ERAT miss. This is a subset of PM_CMPLU_STALL_REJECT. event:0X0614 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP97 : (Group 97 pm_cpi_stack10) Number of run instructions completed. event:0X0615 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP97 : (Group 97 pm_cpi_stack10) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 98 pm_dsource1, Data source information event:0X0620 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L2_GRP98 : (Group 98 pm_dsource1) The processor's Data Cache was reloaded from the local L2 due to a demand load. event:0X0621 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_L3_GRP98 : (Group 98 pm_dsource1) The processor's Data Cache was reloaded from the local L3 due to a demand load. event:0X0622 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_RMEM_GRP98 : (Group 98 pm_dsource1) The processor's Data Cache was reloaded from memory attached to a different module than this processor is located on. event:0X0623 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_LMEM_GRP98 : (Group 98 pm_dsource1) The processor's Data Cache was reloaded from memory attached to the same module this processor is located on. event:0X0624 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP98 : (Group 98 pm_dsource1) Number of run instructions completed. event:0X0625 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP98 : (Group 98 pm_dsource1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 99 pm_dsource2, Data source information event:0X0630 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L3_GRP99 : (Group 99 pm_dsource2) The processor's Data Cache was reloaded from the local L3 due to a demand load. event:0X0631 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_L31_SHR_GRP99 : (Group 99 pm_dsource2) Data loaded from another L3 on same chip shared event:0X0632 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_LMEM_GRP99 : (Group 99 pm_dsource2) The processor's Data Cache was reloaded from memory attached to the same module this processor is located on. event:0X0633 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_L2MISS_GRP99 : (Group 99 pm_dsource2) The processor's Data Cache was reloaded but not from the local L2. event:0X0634 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP99 : (Group 99 pm_dsource2) Number of run instructions completed. event:0X0635 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP99 : (Group 99 pm_dsource2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 100 pm_dsource3, Data source information event:0X0640 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_DMEM_GRP100 : (Group 100 pm_dsource3) The processor's Data Cache was reloaded with data from memory attached to a distant module due to a demand load event:0X0641 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_L3MISS_GRP100 : (Group 100 pm_dsource3) The processor's Data Cache was reloaded from beyond L3 due to a demand load event:0X0642 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_L21_MOD_GRP100 : (Group 100 pm_dsource3) Data loaded from another L2 on same chip modified event:0X0643 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_L2MISS_GRP100 : (Group 100 pm_dsource3) The processor's Data Cache was reloaded but not from the local L2. event:0X0644 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP100 : (Group 100 pm_dsource3) Number of run instructions completed. event:0X0645 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP100 : (Group 100 pm_dsource3) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 101 pm_dsource4, Data source information event:0X0650 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L31_MOD_GRP101 : (Group 101 pm_dsource4) Data loaded from another L3 on same chip modified event:0X0651 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_RL2L3_SHR_GRP101 : (Group 101 pm_dsource4) The processor's Data Cache was reloaded with shared (T or SL) data from an L2 or L3 on a remote module due to a demand load event:0X0652 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_DL2L3_MOD_GRP101 : (Group 101 pm_dsource4) The processor's Data Cache was reloaded with modified (M) data from an L2 or L3 on a distant module due to a demand load event:0X0653 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_DL2L3_MOD_GRP101 : (Group 101 pm_dsource4) The processor's Data Cache was reloaded with modified (M) data from an L2 or L3 on a distant module due to a demand load event:0X0654 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP101 : (Group 101 pm_dsource4) Number of run instructions completed. event:0X0655 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP101 : (Group 101 pm_dsource4) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 102 pm_dsource5, Data source information event:0X0660 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L31_SHR_GRP102 : (Group 102 pm_dsource5) Data loaded from another L3 on same chip shared event:0X0661 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_DMEM_GRP102 : (Group 102 pm_dsource5) The processor's Data Cache was reloaded with data from memory attached to a distant module due to a demand load event:0X0662 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_DL2L3_SHR_GRP102 : (Group 102 pm_dsource5) The processor's Data Cache was reloaded with shared (T or SL) data from an L2 or L3 on a distant module due to a demand load event:0X0663 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_L21_SHR_GRP102 : (Group 102 pm_dsource5) Data loaded from another L2 on same chip shared event:0X0664 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP102 : (Group 102 pm_dsource5) Number of run instructions completed. event:0X0665 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP102 : (Group 102 pm_dsource5) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 103 pm_dsource6, Data source information event:0X0670 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_RL2L3_MOD_GRP103 : (Group 103 pm_dsource6) The processor's Data Cache was reloaded with modified (M) data from an L2 or L3 on a remote module due to a demand load event:0X0671 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_RL2L3_SHR_GRP103 : (Group 103 pm_dsource6) The processor's Data Cache was reloaded with shared (T or SL) data from an L2 or L3 on a remote module due to a demand load event:0X0672 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_L21_SHR_GRP103 : (Group 103 pm_dsource6) Data loaded from another L2 on same chip shared event:0X0673 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_L2MISS_GRP103 : (Group 103 pm_dsource6) The processor's Data Cache was reloaded but not from the local L2. event:0X0674 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP103 : (Group 103 pm_dsource6) Number of run instructions completed. event:0X0675 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP103 : (Group 103 pm_dsource6) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 104 pm_dsource7, Data source information event:0X0680 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_RL2L3_SHR_GRP104 : (Group 104 pm_dsource7) The processor's Data Cache was reloaded with shared (T or SL) data from an L2 or L3 on a remote module due to a demand load event:0X0681 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_L3MISS_GRP104 : (Group 104 pm_dsource7) The processor's Data Cache was reloaded from beyond L3 due to a demand load event:0X0682 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_DL2L3_MOD_GRP104 : (Group 104 pm_dsource7) The processor's Data Cache was reloaded with modified (M) data from an L2 or L3 on a distant module due to a demand load event:0X0683 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_DL2L3_MOD_GRP104 : (Group 104 pm_dsource7) The processor's Data Cache was reloaded with modified (M) data from an L2 or L3 on a distant module due to a demand load event:0X0684 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP104 : (Group 104 pm_dsource7) Number of run instructions completed. event:0X0685 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP104 : (Group 104 pm_dsource7) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 105 pm_dsource8, Data source information event:0X0690 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP105 : (Group 105 pm_dsource8) Number of PowerPC Instructions that completed. event:0X0691 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_L3_GRP105 : (Group 105 pm_dsource8) The processor's Data Cache was reloaded from the local L3 due to a demand load. event:0X0692 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_L3MISS_GRP105 : (Group 105 pm_dsource8) The processor's Data Cache was reloaded from beyond L3 due to a demand load event:0X0693 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_LMEM_GRP105 : (Group 105 pm_dsource8) The processor's Data Cache was reloaded from memory attached to the same module this processor is located on. event:0X0694 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP105 : (Group 105 pm_dsource8) Number of run instructions completed. event:0X0695 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP105 : (Group 105 pm_dsource8) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 106 pm_dsource9, Data source information event:0X06A0 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L2_GRP106 : (Group 106 pm_dsource9) The processor's Data Cache was reloaded from the local L2 due to a demand load. event:0X06A1 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_L2MISS_GRP106 : (Group 106 pm_dsource9) The processor's Data Cache was reloaded but not from the local L2. event:0X06A2 counters:2 um:zero minimum:1000 name:PM_L1_DCACHE_RELOAD_VALID_GRP106 : (Group 106 pm_dsource9) The data source information is valid,the data cache has been reloaded. Prior to POWER5+ this included data cache reloads due to prefetch activity. With POWER5+ this now only includes reloads due to demand loads. event:0X06A3 counters:3 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP106 : (Group 106 pm_dsource9) Load references that miss the Level 1 Data cache. Combined unit 0 + 1. event:0X06A4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP106 : (Group 106 pm_dsource9) Number of run instructions completed. event:0X06A5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP106 : (Group 106 pm_dsource9) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 107 pm_dsource10, Data source information event:0X06B0 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_RL2L3_MOD_GRP107 : (Group 107 pm_dsource10) The processor's Data Cache was reloaded with modified (M) data from an L2 or L3 on a remote module due to a demand load event:0X06B1 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_RL2L3_SHR_GRP107 : (Group 107 pm_dsource10) The processor's Data Cache was reloaded with shared (T or SL) data from an L2 or L3 on a remote module due to a demand load event:0X06B2 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_DL2L3_SHR_GRP107 : (Group 107 pm_dsource10) The processor's Data Cache was reloaded with shared (T or SL) data from an L2 or L3 on a distant module due to a demand load event:0X06B3 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_DL2L3_MOD_GRP107 : (Group 107 pm_dsource10) The processor's Data Cache was reloaded with modified (M) data from an L2 or L3 on a distant module due to a demand load event:0X06B4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP107 : (Group 107 pm_dsource10) Number of run instructions completed. event:0X06B5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP107 : (Group 107 pm_dsource10) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 108 pm_dsource11, Data source information event:0X06C0 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L2_GRP108 : (Group 108 pm_dsource11) The processor's Data Cache was reloaded from the local L2 due to a demand load. event:0X06C1 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_L2MISS_GRP108 : (Group 108 pm_dsource11) The processor's Data Cache was reloaded but not from the local L2. event:0X06C2 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_L3MISS_GRP108 : (Group 108 pm_dsource11) The processor's Data Cache was reloaded from beyond L3 due to a demand load event:0X06C3 counters:3 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP108 : (Group 108 pm_dsource11) Number of run instructions completed. event:0X06C4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP108 : (Group 108 pm_dsource11) Number of run instructions completed. event:0X06C5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP108 : (Group 108 pm_dsource11) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 109 pm_dsource12, Data source information event:0X06D0 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_RL2L3_MOD_GRP109 : (Group 109 pm_dsource12) The processor's Data Cache was reloaded with modified (M) data from an L2 or L3 on a remote module due to a demand load event:0X06D1 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_DMEM_GRP109 : (Group 109 pm_dsource12) The processor's Data Cache was reloaded with data from memory attached to a distant module due to a demand load event:0X06D2 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_RMEM_GRP109 : (Group 109 pm_dsource12) The processor's Data Cache was reloaded from memory attached to a different module than this processor is located on. event:0X06D3 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_LMEM_GRP109 : (Group 109 pm_dsource12) The processor's Data Cache was reloaded from memory attached to the same module this processor is located on. event:0X06D4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP109 : (Group 109 pm_dsource12) Number of run instructions completed. event:0X06D5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP109 : (Group 109 pm_dsource12) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 110 pm_dsource13, Data source information event:0X06E0 counters:0 um:zero minimum:1000 name:PM_DERAT_MISS_4K_GRP110 : (Group 110 pm_dsource13) A data request (load or store) missed the ERAT for 4K page and resulted in an ERAT reload. event:0X06E1 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP110 : (Group 110 pm_dsource13) Number of PowerPC Instructions that completed. event:0X06E2 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_DL2L3_SHR_GRP110 : (Group 110 pm_dsource13) The processor's Data Cache was reloaded with shared (T or SL) data from an L2 or L3 on a distant module due to a demand load event:0X06E3 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_DL2L3_MOD_GRP110 : (Group 110 pm_dsource13) The processor's Data Cache was reloaded with modified (M) data from an L2 or L3 on a distant module due to a demand load event:0X06E4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP110 : (Group 110 pm_dsource13) Number of run instructions completed. event:0X06E5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP110 : (Group 110 pm_dsource13) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 111 pm_dsource14, Data source information event:0X06F0 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_DMEM_GRP111 : (Group 111 pm_dsource14) The processor's Data Cache was reloaded with data from memory attached to a distant module due to a demand load event:0X06F1 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP111 : (Group 111 pm_dsource14) Number of PowerPC Instructions that completed. event:0X06F2 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_RMEM_GRP111 : (Group 111 pm_dsource14) The processor's Data Cache was reloaded from memory attached to a different module than this processor is located on. event:0X06F3 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_LMEM_GRP111 : (Group 111 pm_dsource14) The processor's Data Cache was reloaded from memory attached to the same module this processor is located on. event:0X06F4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP111 : (Group 111 pm_dsource14) Number of run instructions completed. event:0X06F5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP111 : (Group 111 pm_dsource14) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 112 pm_dsource15, Data source information event:0X0700 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_DMEM_GRP112 : (Group 112 pm_dsource15) The processor's Data Cache was reloaded with data from memory attached to a distant module due to a demand load event:0X0701 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP112 : (Group 112 pm_dsource15) Number of PowerPC Instructions that completed. event:0X0702 counters:2 um:zero minimum:1000 name:PM_L1_DCACHE_RELOAD_VALID_GRP112 : (Group 112 pm_dsource15) The data source information is valid,the data cache has been reloaded. Prior to POWER5+ this included data cache reloads due to prefetch activity. With POWER5+ this now only includes reloads due to demand loads. event:0X0703 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_LMEM_GRP112 : (Group 112 pm_dsource15) The processor's Data Cache was reloaded from memory attached to the same module this processor is located on. event:0X0704 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP112 : (Group 112 pm_dsource15) Number of run instructions completed. event:0X0705 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP112 : (Group 112 pm_dsource15) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 113 pm_isource1, Instruction source information event:0X0710 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L2_GRP113 : (Group 113 pm_isource1) An instruction fetch group was fetched from L2. Fetch Groups can contain up to 8 instructions event:0X0711 counters:1 um:zero minimum:1000 name:PM_INST_FROM_L3_GRP113 : (Group 113 pm_isource1) An instruction fetch group was fetched from L3. Fetch Groups can contain up to 8 instructions event:0X0712 counters:2 um:zero minimum:1000 name:PM_INST_FROM_LMEM_GRP113 : (Group 113 pm_isource1) An instruction fetch group was fetched from memory attached to the same module this processor is located on. Fetch groups can contain up to 8 instructions event:0X0713 counters:3 um:zero minimum:1000 name:PM_INST_FROM_L2MISS_GRP113 : (Group 113 pm_isource1) An instruction fetch group was fetched from beyond the local L2. event:0X0714 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP113 : (Group 113 pm_isource1) Number of run instructions completed. event:0X0715 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP113 : (Group 113 pm_isource1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 114 pm_isource2, Instruction source information event:0X0720 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L3_GRP114 : (Group 114 pm_isource2) An instruction fetch group was fetched from L3. Fetch Groups can contain up to 8 instructions event:0X0721 counters:1 um:zero minimum:1000 name:PM_INST_FROM_DMEM_GRP114 : (Group 114 pm_isource2) An instruction fetch group was fetched from memory attached to a distant module. Fetch groups can contain up to 8 instructions event:0X0722 counters:2 um:zero minimum:1000 name:PM_INST_FROM_DL2L3_MOD_GRP114 : (Group 114 pm_isource2) An instruction fetch group was fetched with modified (M) data from an L2 or L3 on a distant module. Fetch groups can contain up to 8 instructions event:0X0723 counters:3 um:zero minimum:1000 name:PM_INST_FROM_LMEM_GRP114 : (Group 114 pm_isource2) An instruction fetch group was fetched from memory attached to the same module this processor is located on. Fetch groups can contain up to 8 instructions event:0X0724 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP114 : (Group 114 pm_isource2) Number of run instructions completed. event:0X0725 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP114 : (Group 114 pm_isource2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 115 pm_isource3, Instruction source information event:0X0730 counters:0 um:zero minimum:1000 name:PM_INST_FROM_DMEM_GRP115 : (Group 115 pm_isource3) An instruction fetch group was fetched from memory attached to a distant module. Fetch groups can contain up to 8 instructions event:0X0731 counters:1 um:zero minimum:1000 name:PM_INST_FROM_L3MISS_GRP115 : (Group 115 pm_isource3) An instruction fetch group was fetched from beyond L3. Fetch groups can contain up to 8 instructions. event:0X0732 counters:2 um:zero minimum:1000 name:PM_INST_FROM_DL2L3_SHR_GRP115 : (Group 115 pm_isource3) An instruction fetch group was fetched with shared (S) data from the L2 or L3 on a distant module. Fetch groups can contain up to 8 instructions event:0X0733 counters:3 um:zero minimum:1000 name:PM_INST_FROM_DL2L3_MOD_GRP115 : (Group 115 pm_isource3) An instruction fetch group was fetched with modified (M) data from an L2 or L3 on a distant module. Fetch groups can contain up to 8 instructions event:0X0734 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP115 : (Group 115 pm_isource3) Number of run instructions completed. event:0X0735 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP115 : (Group 115 pm_isource3) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 116 pm_isource4, Instruction source information event:0X0740 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L31_MOD_GRP116 : (Group 116 pm_isource4) Instruction fetched from another L3 on same chip modified event:0X0741 counters:1 um:zero minimum:1000 name:PM_INST_FROM_L31_SHR_GRP116 : (Group 116 pm_isource4) Instruction fetched from another L3 on same chip shared event:0X0742 counters:2 um:zero minimum:1000 name:PM_INST_FROM_L21_MOD_GRP116 : (Group 116 pm_isource4) Instruction fetched from another L2 on same chip modified event:0X0743 counters:3 um:zero minimum:1000 name:PM_INST_FROM_L21_SHR_GRP116 : (Group 116 pm_isource4) Instruction fetched from another L2 on same chip shared event:0X0744 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP116 : (Group 116 pm_isource4) Number of run instructions completed. event:0X0745 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP116 : (Group 116 pm_isource4) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 117 pm_isource5, Instruction source information event:0X0750 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L31_SHR_GRP117 : (Group 117 pm_isource5) Instruction fetched from another L3 on same chip shared event:0X0751 counters:1 um:zero minimum:1000 name:PM_INST_FROM_RL2L3_SHR_GRP117 : (Group 117 pm_isource5) An instruction fetch group was fetched with shared (S) data from the L2 or L3 on a remote module. Fetch groups can contain up to 8 instructions event:0X0752 counters:2 um:zero minimum:1000 name:PM_INST_FROM_L21_SHR_GRP117 : (Group 117 pm_isource5) Instruction fetched from another L2 on same chip shared event:0X0753 counters:3 um:zero minimum:1000 name:PM_INST_FROM_L2MISS_GRP117 : (Group 117 pm_isource5) An instruction fetch group was fetched from beyond the local L2. event:0X0754 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP117 : (Group 117 pm_isource5) Number of run instructions completed. event:0X0755 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP117 : (Group 117 pm_isource5) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 118 pm_isource6, Instruction source information event:0X0760 counters:0 um:zero minimum:1000 name:PM_INST_FROM_PREF_GRP118 : (Group 118 pm_isource6) An instruction fetch group was fetched from the prefetch buffer. Fetch groups can contain up to 8 instructions event:0X0761 counters:1 um:zero minimum:1000 name:PM_INST_FROM_L3MISS_GRP118 : (Group 118 pm_isource6) An instruction fetch group was fetched from beyond L3. Fetch groups can contain up to 8 instructions. event:0X0762 counters:2 um:zero minimum:1000 name:PM_INST_FROM_LMEM_GRP118 : (Group 118 pm_isource6) An instruction fetch group was fetched from memory attached to the same module this processor is located on. Fetch groups can contain up to 8 instructions event:0X0763 counters:3 um:zero minimum:1000 name:PM_INST_FROM_L2MISS_GRP118 : (Group 118 pm_isource6) An instruction fetch group was fetched from beyond the local L2. event:0X0764 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP118 : (Group 118 pm_isource6) Number of run instructions completed. event:0X0765 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP118 : (Group 118 pm_isource6) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 119 pm_isource7, Instruction source information event:0X0770 counters:0 um:zero minimum:1000 name:PM_INST_FROM_RL2L3_MOD_GRP119 : (Group 119 pm_isource7) An instruction fetch group was fetched with modified (M) data from an L2 or L3 on a remote module. Fetch groups can contain up to 8 instructions event:0X0771 counters:1 um:zero minimum:1000 name:PM_INST_FROM_RL2L3_SHR_GRP119 : (Group 119 pm_isource7) An instruction fetch group was fetched with shared (S) data from the L2 or L3 on a remote module. Fetch groups can contain up to 8 instructions event:0X0772 counters:2 um:zero minimum:1000 name:PM_INST_FROM_DL2L3_SHR_GRP119 : (Group 119 pm_isource7) An instruction fetch group was fetched with shared (S) data from the L2 or L3 on a distant module. Fetch groups can contain up to 8 instructions event:0X0773 counters:3 um:zero minimum:1000 name:PM_INST_FROM_DL2L3_MOD_GRP119 : (Group 119 pm_isource7) An instruction fetch group was fetched with modified (M) data from an L2 or L3 on a distant module. Fetch groups can contain up to 8 instructions event:0X0774 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP119 : (Group 119 pm_isource7) Number of run instructions completed. event:0X0775 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP119 : (Group 119 pm_isource7) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 120 pm_isource8, Instruction source information event:0X0780 counters:0 um:zero minimum:1000 name:PM_INST_FROM_RL2L3_SHR_GRP120 : (Group 120 pm_isource8) An instruction fetch group was fetched with shared (S) data from the L2 or L3 on a remote module. Fetch groups can contain up to 8 instructions event:0X0781 counters:1 um:zero minimum:1000 name:PM_INST_FROM_L3MISS_GRP120 : (Group 120 pm_isource8) An instruction fetch group was fetched from beyond L3. Fetch groups can contain up to 8 instructions. event:0X0782 counters:2 um:zero minimum:1000 name:PM_INST_FROM_LMEM_GRP120 : (Group 120 pm_isource8) An instruction fetch group was fetched from memory attached to the same module this processor is located on. Fetch groups can contain up to 8 instructions event:0X0783 counters:3 um:zero minimum:1000 name:PM_INST_FROM_L2MISS_GRP120 : (Group 120 pm_isource8) An instruction fetch group was fetched from beyond the local L2. event:0X0784 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP120 : (Group 120 pm_isource8) Number of run instructions completed. event:0X0785 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP120 : (Group 120 pm_isource8) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 121 pm_isource9, Instruction source information event:0X0790 counters:0 um:zero minimum:1000 name:PM_INST_FROM_PREF_GRP121 : (Group 121 pm_isource9) An instruction fetch group was fetched from the prefetch buffer. Fetch groups can contain up to 8 instructions event:0X0791 counters:1 um:zero minimum:1000 name:PM_INST_FROM_DMEM_GRP121 : (Group 121 pm_isource9) An instruction fetch group was fetched from memory attached to a distant module. Fetch groups can contain up to 8 instructions event:0X0792 counters:2 um:zero minimum:1000 name:PM_INST_FROM_RMEM_GRP121 : (Group 121 pm_isource9) An instruction fetch group was fetched from memory attached to a different module than this processor is located on. Fetch groups can contain up to 8 instructions event:0X0793 counters:3 um:zero minimum:1000 name:PM_INST_FROM_LMEM_GRP121 : (Group 121 pm_isource9) An instruction fetch group was fetched from memory attached to the same module this processor is located on. Fetch groups can contain up to 8 instructions event:0X0794 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP121 : (Group 121 pm_isource9) Number of run instructions completed. event:0X0795 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP121 : (Group 121 pm_isource9) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 122 pm_isource10, Instruction source information event:0X07A0 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L2_GRP122 : (Group 122 pm_isource10) An instruction fetch group was fetched from L2. Fetch Groups can contain up to 8 instructions event:0X07A1 counters:1 um:zero minimum:1000 name:PM_INST_FROM_L3_GRP122 : (Group 122 pm_isource10) An instruction fetch group was fetched from L3. Fetch Groups can contain up to 8 instructions event:0X07A2 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP122 : (Group 122 pm_isource10) Number of PowerPC Instructions that completed. event:0X07A3 counters:3 um:zero minimum:10000 name:PM_CYC_GRP122 : (Group 122 pm_isource10) Processor Cycles event:0X07A4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP122 : (Group 122 pm_isource10) Number of run instructions completed. event:0X07A5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP122 : (Group 122 pm_isource10) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 123 pm_isource11, Instruction source information event:0X07B0 counters:0 um:zero minimum:1000 name:PM_INST_FROM_RL2L3_MOD_GRP123 : (Group 123 pm_isource11) An instruction fetch group was fetched with modified (M) data from an L2 or L3 on a remote module. Fetch groups can contain up to 8 instructions event:0X07B1 counters:1 um:zero minimum:1000 name:PM_INST_FROM_RL2L3_SHR_GRP123 : (Group 123 pm_isource11) An instruction fetch group was fetched with shared (S) data from the L2 or L3 on a remote module. Fetch groups can contain up to 8 instructions event:0X07B2 counters:2 um:zero minimum:1000 name:PM_INST_FROM_LMEM_GRP123 : (Group 123 pm_isource11) An instruction fetch group was fetched from memory attached to the same module this processor is located on. Fetch groups can contain up to 8 instructions event:0X07B3 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP123 : (Group 123 pm_isource11) Number of PowerPC Instructions that completed. event:0X07B4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP123 : (Group 123 pm_isource11) Number of run instructions completed. event:0X07B5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP123 : (Group 123 pm_isource11) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 124 pm_isource12, Instruction source information event:0X07C0 counters:0 um:zero minimum:10000 name:PM_CYC_GRP124 : (Group 124 pm_isource12) Processor Cycles event:0X07C1 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP124 : (Group 124 pm_isource12) Number of PowerPC Instructions that completed. event:0X07C2 counters:2 um:zero minimum:1000 name:PM_INST_FROM_DL2L3_SHR_GRP124 : (Group 124 pm_isource12) An instruction fetch group was fetched with shared (S) data from the L2 or L3 on a distant module. Fetch groups can contain up to 8 instructions event:0X07C3 counters:3 um:zero minimum:1000 name:PM_INST_FROM_DL2L3_MOD_GRP124 : (Group 124 pm_isource12) An instruction fetch group was fetched with modified (M) data from an L2 or L3 on a distant module. Fetch groups can contain up to 8 instructions event:0X07C4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP124 : (Group 124 pm_isource12) Number of run instructions completed. event:0X07C5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP124 : (Group 124 pm_isource12) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 125 pm_isource13, Instruction source information event:0X07D0 counters:0 um:zero minimum:1000 name:PM_INST_FROM_DMEM_GRP125 : (Group 125 pm_isource13) An instruction fetch group was fetched from memory attached to a distant module. Fetch groups can contain up to 8 instructions event:0X07D1 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP125 : (Group 125 pm_isource13) Number of PowerPC Instructions that completed. event:0X07D2 counters:2 um:zero minimum:1000 name:PM_INST_FROM_RMEM_GRP125 : (Group 125 pm_isource13) An instruction fetch group was fetched from memory attached to a different module than this processor is located on. Fetch groups can contain up to 8 instructions event:0X07D3 counters:3 um:zero minimum:1000 name:PM_INST_FROM_LMEM_GRP125 : (Group 125 pm_isource13) An instruction fetch group was fetched from memory attached to the same module this processor is located on. Fetch groups can contain up to 8 instructions event:0X07D4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP125 : (Group 125 pm_isource13) Number of run instructions completed. event:0X07D5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP125 : (Group 125 pm_isource13) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 126 pm_prefetch1, Prefetch events event:0X07E0 counters:0 um:zero minimum:1000 name:PM_LSU_DC_PREF_STREAM_ALLOC_GRP126 : (Group 126 pm_prefetch1) D cache new prefetch stream allocated event:0X07E1 counters:1 um:zero minimum:1000 name:PM_L3_PREF_LDST_GRP126 : (Group 126 pm_prefetch1) L3 cache prefetches LD + ST event:0X07E2 counters:2 um:zero minimum:1000 name:PM_LSU_DC_PREF_STREAM_CONFIRM_GRP126 : (Group 126 pm_prefetch1) Dcache new prefetch stream confirmed event:0X07E3 counters:3 um:zero minimum:1000 name:PM_L1_PREF_GRP126 : (Group 126 pm_prefetch1) A request to prefetch data into the L1 was made event:0X07E4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP126 : (Group 126 pm_prefetch1) Number of run instructions completed. event:0X07E5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP126 : (Group 126 pm_prefetch1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 127 pm_prefetch2, Prefetch events event:0X07F0 counters:0 um:zero minimum:1000 name:PM_LSU_DC_PREF_STRIDED_STREAM_CONFIRM_GRP127 : (Group 127 pm_prefetch2) Dcache Strided prefetch stream confirmed (software + hardware) event:0X07F1 counters:1 um:zero minimum:1000 name:PM_LD_REF_L1_GRP127 : (Group 127 pm_prefetch2) L1 D cache load references counted at finish event:0X07F2 counters:2 um:zero minimum:1000 name:PM_LSU_FIN_GRP127 : (Group 127 pm_prefetch2) LSU Finished an instruction (up to 2 per cycle) event:0X07F3 counters:3 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP127 : (Group 127 pm_prefetch2) Load references that miss the Level 1 Data cache. Combined unit 0 + 1. event:0X07F4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP127 : (Group 127 pm_prefetch2) Number of run instructions completed. event:0X07F5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP127 : (Group 127 pm_prefetch2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 128 pm_vsu0, VSU Execution event:0X0800 counters:0 um:zero minimum:1000 name:PM_VSU0_1FLOP_GRP128 : (Group 128 pm_vsu0) one flop (fadd, fmul, fsub, fcmp, fsel, fabs, fnabs, fres, fsqrte, fneg, xsadd, xsmul, xssub, xscmp, xssel, xsabs, xsnabs, xsre, xssqrte, xsneg) operation finished event:0X0801 counters:1 um:zero minimum:1000 name:PM_VSU1_1FLOP_GRP128 : (Group 128 pm_vsu0) one flop (fadd, fmul, fsub, fcmp, fsel, fabs, fnabs, fres, fsqrte, fneg, xsadd, xsmul, xssub, xscmp, xssel, xsabs, xsnabs, xsre, xssqrte, xsneg) operation finished event:0X0802 counters:2 um:zero minimum:1000 name:PM_VSU0_2FLOP_GRP128 : (Group 128 pm_vsu0) two flops operation (scalar fmadd, fnmadd, fmsub, fnmsub and DP vector versions of single flop instructions) event:0X0803 counters:3 um:zero minimum:1000 name:PM_VSU1_2FLOP_GRP128 : (Group 128 pm_vsu0) two flops operation (scalar fmadd, fnmadd, fmsub, fnmsub and DP vector versions of single flop instructions) event:0X0804 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP128 : (Group 128 pm_vsu0) Number of run instructions completed. event:0X0805 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP128 : (Group 128 pm_vsu0) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 129 pm_vsu1, VSU Execution event:0X0810 counters:0 um:zero minimum:1000 name:PM_VSU0_4FLOP_GRP129 : (Group 129 pm_vsu1) four flops operation (scalar fdiv, fsqrt; DP vector version of fmadd, fnmadd, fmsub, fnmsub; SP vector versions of single flop instructions) event:0X0811 counters:1 um:zero minimum:1000 name:PM_VSU1_4FLOP_GRP129 : (Group 129 pm_vsu1) four flops operation (scalar fdiv, fsqrt; DP vector version of fmadd, fnmadd, fmsub, fnmsub; SP vector versions of single flop instructions) event:0X0812 counters:2 um:zero minimum:1000 name:PM_VSU0_8FLOP_GRP129 : (Group 129 pm_vsu1) eight flops operation (DP vector versions of fdiv,fsqrt and SP vector versions of fmadd,fnmadd,fmsub,fnmsub) event:0X0813 counters:3 um:zero minimum:1000 name:PM_VSU1_8FLOP_GRP129 : (Group 129 pm_vsu1) eight flops operation (DP vector versions of fdiv,fsqrt and SP vector versions of fmadd,fnmadd,fmsub,fnmsub) event:0X0814 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP129 : (Group 129 pm_vsu1) Number of run instructions completed. event:0X0815 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP129 : (Group 129 pm_vsu1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 130 pm_vsu2, VSU Execution event:0X0820 counters:0 um:zero minimum:1000 name:PM_VSU_2FLOP_GRP130 : (Group 130 pm_vsu2) two flops operation (scalar fmadd, fnmadd, fmsub, fnmsub and DP vector versions of single flop instructions) event:0X0821 counters:1 um:zero minimum:1000 name:PM_VSU_2FLOP_DOUBLE_GRP130 : (Group 130 pm_vsu2) DP vector version of fmul, fsub, fcmp, fsel, fabs, fnabs, fres ,fsqrte, fneg event:0X0822 counters:2 um:zero minimum:1000 name:PM_VSU0_2FLOP_DOUBLE_GRP130 : (Group 130 pm_vsu2) two flop DP vector operation (xvadddp, xvmuldp, xvsubdp, xvcmpdp, xvseldp, xvabsdp, xvnabsdp, xvredp ,xvsqrtedp, vxnegdp) event:0X0823 counters:3 um:zero minimum:1000 name:PM_VSU1_2FLOP_DOUBLE_GRP130 : (Group 130 pm_vsu2) two flop DP vector operation (xvadddp, xvmuldp, xvsubdp, xvcmpdp, xvseldp, xvabsdp, xvnabsdp, xvredp ,xvsqrtedp, vxnegdp) event:0X0824 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP130 : (Group 130 pm_vsu2) Number of run instructions completed. event:0X0825 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP130 : (Group 130 pm_vsu2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 131 pm_vsu3, VSU Execution event:0X0830 counters:0 um:zero minimum:1000 name:PM_VSU0_FMA_GRP131 : (Group 131 pm_vsu3) two flops operation (fmadd, fnmadd, fmsub, fnmsub, xsmadd, xsnmadd, xsmsub, xsnmsub) Scalar instructions only! event:0X0831 counters:1 um:zero minimum:1000 name:PM_VSU1_FMA_GRP131 : (Group 131 pm_vsu3) two flops operation (fmadd, fnmadd, fmsub, fnmsub, xsmadd, xsnmadd, xsmsub, xsnmsub) Scalar instructions only! event:0X0832 counters:2 um:zero minimum:1000 name:PM_VSU_FMA_GRP131 : (Group 131 pm_vsu3) two flops operation (fmadd, fnmadd, fmsub, fnmsub) Scalar instructions only! event:0X0833 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP131 : (Group 131 pm_vsu3) Number of PowerPC Instructions that completed. event:0X0834 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP131 : (Group 131 pm_vsu3) Number of run instructions completed. event:0X0835 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP131 : (Group 131 pm_vsu3) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 132 pm_vsu4, VSU Execution event:0X0840 counters:0 um:zero minimum:1000 name:PM_VSU0_FMA_DOUBLE_GRP132 : (Group 132 pm_vsu4) four flop DP vector operations (xvmadddp, xvnmadddp, xvmsubdp, xvmsubdp) event:0X0841 counters:1 um:zero minimum:1000 name:PM_VSU1_FMA_DOUBLE_GRP132 : (Group 132 pm_vsu4) four flop DP vector operations (xvmadddp, xvnmadddp, xvmsubdp, xvmsubdp) event:0X0842 counters:2 um:zero minimum:1000 name:PM_VSU_FMA_DOUBLE_GRP132 : (Group 132 pm_vsu4) DP vector version of fmadd,fnmadd,fmsub,fnmsub event:0X0843 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP132 : (Group 132 pm_vsu4) Number of PowerPC Instructions that completed. event:0X0844 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP132 : (Group 132 pm_vsu4) Number of run instructions completed. event:0X0845 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP132 : (Group 132 pm_vsu4) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 133 pm_vsu5, VSU Execution event:0X0850 counters:0 um:zero minimum:1000 name:PM_VSU_VECTOR_DOUBLE_ISSUED_GRP133 : (Group 133 pm_vsu5) Double Precision vector instruction issued on Pipe0 event:0X0851 counters:1 um:zero minimum:1000 name:PM_VSU0_VECT_DOUBLE_ISSUED_GRP133 : (Group 133 pm_vsu5) Double Precision vector instruction issued on Pipe0 event:0X0852 counters:2 um:zero minimum:1000 name:PM_VSU1_VECT_DOUBLE_ISSUED_GRP133 : (Group 133 pm_vsu5) Double Precision vector instruction issued on Pipe1 event:0X0853 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP133 : (Group 133 pm_vsu5) Number of PowerPC Instructions that completed. event:0X0854 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP133 : (Group 133 pm_vsu5) Number of run instructions completed. event:0X0855 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP133 : (Group 133 pm_vsu5) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 134 pm_vsu6, VSU Execution event:0X0860 counters:0 um:zero minimum:1000 name:PM_VSU_DENORM_GRP134 : (Group 134 pm_vsu6) Vector or Scalar denorm operand event:0X0861 counters:1 um:zero minimum:1000 name:PM_VSU0_DENORM_GRP134 : (Group 134 pm_vsu6) VSU0 received denormalized data event:0X0862 counters:2 um:zero minimum:1000 name:PM_VSU1_DENORM_GRP134 : (Group 134 pm_vsu6) VSU1 received denormalized data event:0X0863 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP134 : (Group 134 pm_vsu6) Number of PowerPC Instructions that completed. event:0X0864 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP134 : (Group 134 pm_vsu6) Number of run instructions completed. event:0X0865 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP134 : (Group 134 pm_vsu6) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 135 pm_vsu7, VSU Execution event:0X0870 counters:0 um:zero minimum:1000 name:PM_VSU_FIN_GRP135 : (Group 135 pm_vsu7) VSU0 Finished an instruction event:0X0871 counters:1 um:zero minimum:1000 name:PM_VSU0_FIN_GRP135 : (Group 135 pm_vsu7) VSU0 Finished an instruction event:0X0872 counters:2 um:zero minimum:1000 name:PM_VSU1_FIN_GRP135 : (Group 135 pm_vsu7) VSU1 Finished an instruction event:0X0873 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP135 : (Group 135 pm_vsu7) Number of PowerPC Instructions that completed. event:0X0874 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP135 : (Group 135 pm_vsu7) Number of run instructions completed. event:0X0875 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP135 : (Group 135 pm_vsu7) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 136 pm_vsu8, VSU Execution event:0X0880 counters:0 um:zero minimum:1000 name:PM_VSU_STF_GRP136 : (Group 136 pm_vsu8) FPU store (SP or DP) issued on Pipe0 event:0X0881 counters:1 um:zero minimum:1000 name:PM_VSU0_STF_GRP136 : (Group 136 pm_vsu8) FPU store (SP or DP) issued on Pipe0 event:0X0882 counters:2 um:zero minimum:1000 name:PM_VSU1_STF_GRP136 : (Group 136 pm_vsu8) FPU store (SP or DP) issued on Pipe1 event:0X0883 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP136 : (Group 136 pm_vsu8) Number of PowerPC Instructions that completed. event:0X0884 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP136 : (Group 136 pm_vsu8) Number of run instructions completed. event:0X0885 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP136 : (Group 136 pm_vsu8) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 137 pm_vsu9, VSU Execution event:0X0890 counters:0 um:zero minimum:1000 name:PM_VSU_SINGLE_GRP137 : (Group 137 pm_vsu9) Vector or Scalar single precision event:0X0891 counters:1 um:zero minimum:1000 name:PM_VSU0_SINGLE_GRP137 : (Group 137 pm_vsu9) VSU0 executed single precision instruction event:0X0892 counters:2 um:zero minimum:1000 name:PM_VSU1_SINGLE_GRP137 : (Group 137 pm_vsu9) VSU1 executed single precision instruction event:0X0893 counters:3 um:zero minimum:1000 name:PM_VSU0_16FLOP_GRP137 : (Group 137 pm_vsu9) Sixteen flops operation (SP vector versions of fdiv,fsqrt) event:0X0894 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP137 : (Group 137 pm_vsu9) Number of run instructions completed. event:0X0895 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP137 : (Group 137 pm_vsu9) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 138 pm_vsu10, VSU Execution event:0X08A0 counters:0 um:zero minimum:1000 name:PM_VSU_FSQRT_FDIV_GRP138 : (Group 138 pm_vsu10) DP vector versions of fdiv,fsqrt event:0X08A1 counters:1 um:zero minimum:1000 name:PM_VSU0_FSQRT_FDIV_GRP138 : (Group 138 pm_vsu10) four flops operation (fdiv,fsqrt,xsdiv,xssqrt) Scalar Instructions only! event:0X08A2 counters:2 um:zero minimum:1000 name:PM_VSU1_FSQRT_FDIV_GRP138 : (Group 138 pm_vsu10) four flops operation (fdiv,fsqrt,xsdiv,xssqrt) Scalar Instructions only! event:0X08A3 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP138 : (Group 138 pm_vsu10) Number of PowerPC Instructions that completed. event:0X08A4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP138 : (Group 138 pm_vsu10) Number of run instructions completed. event:0X08A5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP138 : (Group 138 pm_vsu10) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 139 pm_vsu11, VSU Execution event:0X08B0 counters:0 um:zero minimum:1000 name:PM_VSU_FSQRT_FDIV_DOUBLE_GRP139 : (Group 139 pm_vsu11) DP vector versions of fdiv,fsqrt event:0X08B1 counters:1 um:zero minimum:1000 name:PM_VSU0_FSQRT_FDIV_DOUBLE_GRP139 : (Group 139 pm_vsu11) eight flop DP vector operations (xvfdivdp, xvsqrtdp event:0X08B2 counters:2 um:zero minimum:1000 name:PM_VSU1_FSQRT_FDIV_DOUBLE_GRP139 : (Group 139 pm_vsu11) eight flop DP vector operations (xvfdivdp, xvsqrtdp event:0X08B3 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP139 : (Group 139 pm_vsu11) Number of PowerPC Instructions that completed. event:0X08B4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP139 : (Group 139 pm_vsu11) Number of run instructions completed. event:0X08B5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP139 : (Group 139 pm_vsu11) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 140 pm_vsu12, VSU Execution event:0X08C0 counters:0 um:zero minimum:1000 name:PM_VSU_SCALAR_DOUBLE_ISSUED_GRP140 : (Group 140 pm_vsu12) Double Precision scalar instruction issued on Pipe0 event:0X08C1 counters:1 um:zero minimum:1000 name:PM_VSU0_SCAL_DOUBLE_ISSUED_GRP140 : (Group 140 pm_vsu12) Double Precision scalar instruction issued on Pipe0 event:0X08C2 counters:2 um:zero minimum:1000 name:PM_VSU1_SCAL_DOUBLE_ISSUED_GRP140 : (Group 140 pm_vsu12) Double Precision scalar instruction issued on Pipe1 event:0X08C3 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP140 : (Group 140 pm_vsu12) Number of PowerPC Instructions that completed. event:0X08C4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP140 : (Group 140 pm_vsu12) Number of run instructions completed. event:0X08C5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP140 : (Group 140 pm_vsu12) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 141 pm_vsu13, VSU Execution event:0X08D0 counters:0 um:zero minimum:1000 name:PM_VSU_SCALAR_SINGLE_ISSUED_GRP141 : (Group 141 pm_vsu13) Single Precision scalar instruction issued on Pipe0 event:0X08D1 counters:1 um:zero minimum:1000 name:PM_VSU0_SCAL_SINGLE_ISSUED_GRP141 : (Group 141 pm_vsu13) Single Precision scalar instruction issued on Pipe0 event:0X08D2 counters:2 um:zero minimum:1000 name:PM_VSU1_SCAL_SINGLE_ISSUED_GRP141 : (Group 141 pm_vsu13) Single Precision scalar instruction issued on Pipe1 event:0X08D3 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP141 : (Group 141 pm_vsu13) Number of PowerPC Instructions that completed. event:0X08D4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP141 : (Group 141 pm_vsu13) Number of run instructions completed. event:0X08D5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP141 : (Group 141 pm_vsu13) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 142 pm_vsu14, VSU Execution event:0X08E0 counters:0 um:zero minimum:1000 name:PM_VSU_1FLOP_GRP142 : (Group 142 pm_vsu14) one flop (fadd, fmul, fsub, fcmp, fsel, fabs, fnabs, fres, fsqrte, fneg) operation finished event:0X08E1 counters:1 um:zero minimum:1000 name:PM_VSU_4FLOP_GRP142 : (Group 142 pm_vsu14) four flops operation (scalar fdiv, fsqrt; DP vector version of fmadd, fnmadd, fmsub, fnmsub; SP vector versions of single flop instructions) event:0X08E2 counters:2 um:zero minimum:1000 name:PM_VSU_8FLOP_GRP142 : (Group 142 pm_vsu14) eight flops operation (DP vector versions of fdiv,fsqrt and SP vector versions of fmadd,fnmadd,fmsub,fnmsub) event:0X08E3 counters:3 um:zero minimum:1000 name:PM_VSU_2FLOP_GRP142 : (Group 142 pm_vsu14) two flops operation (scalar fmadd, fnmadd, fmsub, fnmsub and DP vector versions of single flop instructions) event:0X08E4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP142 : (Group 142 pm_vsu14) Number of run instructions completed. event:0X08E5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP142 : (Group 142 pm_vsu14) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 143 pm_vsu15, VSU Execution event:0X08F0 counters:0 um:zero minimum:1000 name:PM_VSU_VECTOR_SINGLE_ISSUED_GRP143 : (Group 143 pm_vsu15) Single Precision vector instruction issued (executed) event:0X08F1 counters:1 um:zero minimum:1000 name:PM_VSU0_VECTOR_SP_ISSUED_GRP143 : (Group 143 pm_vsu15) Single Precision vector instruction issued (executed) event:0X08F2 counters:2 um:zero minimum:1000 name:PM_VSU0_FPSCR_GRP143 : (Group 143 pm_vsu15) Move to/from FPSCR type instruction issued on Pipe 0 event:0X08F3 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP143 : (Group 143 pm_vsu15) Number of PowerPC Instructions that completed. event:0X08F4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP143 : (Group 143 pm_vsu15) Number of run instructions completed. event:0X08F5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP143 : (Group 143 pm_vsu15) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 144 pm_vsu16, VSU Execution event:0X0900 counters:0 um:zero minimum:1000 name:PM_VSU_SIMPLE_ISSUED_GRP144 : (Group 144 pm_vsu16) Simple VMX instruction issued event:0X0901 counters:1 um:zero minimum:1000 name:PM_VSU0_SIMPLE_ISSUED_GRP144 : (Group 144 pm_vsu16) Simple VMX instruction issued event:0X0902 counters:2 um:zero minimum:1000 name:PM_VSU0_COMPLEX_ISSUED_GRP144 : (Group 144 pm_vsu16) Complex VMX instruction issued event:0X0903 counters:3 um:zero minimum:1000 name:PM_VMX_RESULT_SAT_1_GRP144 : (Group 144 pm_vsu16) Valid result with sat=1 event:0X0904 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP144 : (Group 144 pm_vsu16) Number of run instructions completed. event:0X0905 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP144 : (Group 144 pm_vsu16) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 145 pm_vsu17, VSU Execution event:0X0910 counters:0 um:zero minimum:1000 name:PM_VSU1_DD_ISSUED_GRP145 : (Group 145 pm_vsu17) 64BIT Decimal Issued on Pipe1 event:0X0911 counters:1 um:zero minimum:1000 name:PM_VSU1_DQ_ISSUED_GRP145 : (Group 145 pm_vsu17) 128BIT Decimal Issued on Pipe1 event:0X0912 counters:2 um:zero minimum:1000 name:PM_VSU1_PERMUTE_ISSUED_GRP145 : (Group 145 pm_vsu17) Permute VMX Instruction Issued event:0X0913 counters:3 um:zero minimum:1000 name:PM_VSU1_SQ_GRP145 : (Group 145 pm_vsu17) Store Vector Issued on Pipe1 event:0X0914 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP145 : (Group 145 pm_vsu17) Number of run instructions completed. event:0X0915 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP145 : (Group 145 pm_vsu17) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 146 pm_vsu18, VSU Execution event:0X0920 counters:0 um:zero minimum:1000 name:PM_VSU_FCONV_GRP146 : (Group 146 pm_vsu18) Convert instruction executed event:0X0921 counters:1 um:zero minimum:1000 name:PM_VSU0_FCONV_GRP146 : (Group 146 pm_vsu18) Convert instruction executed event:0X0922 counters:2 um:zero minimum:1000 name:PM_VSU1_FCONV_GRP146 : (Group 146 pm_vsu18) Convert instruction executed event:0X0923 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP146 : (Group 146 pm_vsu18) Number of PowerPC Instructions that completed. event:0X0924 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP146 : (Group 146 pm_vsu18) Number of run instructions completed. event:0X0925 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP146 : (Group 146 pm_vsu18) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 147 pm_vsu19, VSU Execution event:0X0930 counters:0 um:zero minimum:1000 name:PM_VSU_FRSP_GRP147 : (Group 147 pm_vsu19) Round to single precision instruction executed event:0X0931 counters:1 um:zero minimum:1000 name:PM_VSU0_FRSP_GRP147 : (Group 147 pm_vsu19) Round to single precision instruction executed event:0X0932 counters:2 um:zero minimum:1000 name:PM_VSU1_FRSP_GRP147 : (Group 147 pm_vsu19) Round to single precision instruction executed event:0X0933 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP147 : (Group 147 pm_vsu19) Number of PowerPC Instructions that completed. event:0X0934 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP147 : (Group 147 pm_vsu19) Number of run instructions completed. event:0X0935 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP147 : (Group 147 pm_vsu19) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 148 pm_vsu20, VSU Execution event:0X0940 counters:0 um:zero minimum:1000 name:PM_VSU_FEST_GRP148 : (Group 148 pm_vsu20) Estimate instruction executed event:0X0941 counters:1 um:zero minimum:1000 name:PM_VSU0_FEST_GRP148 : (Group 148 pm_vsu20) Estimate instruction executed event:0X0942 counters:2 um:zero minimum:1000 name:PM_VSU1_FEST_GRP148 : (Group 148 pm_vsu20) Estimate instruction executed event:0X0943 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP148 : (Group 148 pm_vsu20) Number of PowerPC Instructions that completed. event:0X0944 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP148 : (Group 148 pm_vsu20) Number of run instructions completed. event:0X0945 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP148 : (Group 148 pm_vsu20) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 149 pm_vsu21, VSU Execution event:0X0950 counters:0 um:zero minimum:1000 name:PM_BRU_FIN_GRP149 : (Group 149 pm_vsu21) The Branch execution unit finished an instruction event:0X0951 counters:1 um:zero minimum:10000 name:PM_RUN_CYC_GRP149 : (Group 149 pm_vsu21) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. event:0X0952 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP149 : (Group 149 pm_vsu21) Number of PowerPC Instructions that completed. event:0X0953 counters:3 um:zero minimum:1000 name:PM_VSU_FIN_GRP149 : (Group 149 pm_vsu21) VSU0 Finished an instruction event:0X0954 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP149 : (Group 149 pm_vsu21) Number of run instructions completed. event:0X0955 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP149 : (Group 149 pm_vsu21) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 150 pm_vsu22, VSU Execution event:0X0960 counters:0 um:zero minimum:1000 name:PM_LSU_LDF_GRP150 : (Group 150 pm_vsu22) LSU executed Floating Point load instruction. Combined Unit 0 + 1. event:0X0961 counters:1 um:zero minimum:1000 name:PM_VSU_STF_GRP150 : (Group 150 pm_vsu22) FPU store (SP or DP) issued on Pipe0 event:0X0962 counters:2 um:zero minimum:1000 name:PM_VSU_FMA_GRP150 : (Group 150 pm_vsu22) two flops operation (fmadd, fnmadd, fmsub, fnmsub) Scalar instructions only! event:0X0963 counters:3 um:zero minimum:1000 name:PM_VSU_1FLOP_GRP150 : (Group 150 pm_vsu22) one flop (fadd, fmul, fsub, fcmp, fsel, fabs, fnabs, fres, fsqrte, fneg) operation finished event:0X0964 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP150 : (Group 150 pm_vsu22) Number of run instructions completed. event:0X0965 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP150 : (Group 150 pm_vsu22) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 151 pm_vsu23, VSU Execution event:0X0970 counters:0 um:zero minimum:1000 name:PM_VSU_FSQRT_FDIV_GRP151 : (Group 151 pm_vsu23) DP vector versions of fdiv,fsqrt event:0X0971 counters:1 um:zero minimum:1000 name:PM_VSU_FIN_GRP151 : (Group 151 pm_vsu23) VSU0 Finished an instruction event:0X0972 counters:2 um:zero minimum:1000 name:PM_VSU_FMA_GRP151 : (Group 151 pm_vsu23) two flops operation (fmadd, fnmadd, fmsub, fnmsub) Scalar instructions only! event:0X0973 counters:3 um:zero minimum:1000 name:PM_VSU_1FLOP_GRP151 : (Group 151 pm_vsu23) one flop (fadd, fmul, fsub, fcmp, fsel, fabs, fnabs, fres, fsqrte, fneg) operation finished event:0X0974 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP151 : (Group 151 pm_vsu23) Number of run instructions completed. event:0X0975 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP151 : (Group 151 pm_vsu23) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 152 pm_vsu24, VSU Execution event:0X0980 counters:0 um:zero minimum:1000 name:PM_FLOP_GRP152 : (Group 152 pm_vsu24) A floating point operation has completed event:0X0981 counters:1 um:zero minimum:1000 name:PM_VSU_FIN_GRP152 : (Group 152 pm_vsu24) VSU0 Finished an instruction event:0X0982 counters:2 um:zero minimum:1000 name:PM_VSU_FEST_GRP152 : (Group 152 pm_vsu24) Estimate instruction executed event:0X0983 counters:3 um:zero minimum:1000 name:PM_VSU_1FLOP_GRP152 : (Group 152 pm_vsu24) one flop (fadd, fmul, fsub, fcmp, fsel, fabs, fnabs, fres, fsqrte, fneg) operation finished event:0X0984 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP152 : (Group 152 pm_vsu24) Number of run instructions completed. event:0X0985 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP152 : (Group 152 pm_vsu24) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 153 pm_vsu25, VSU Execution event:0X0990 counters:0 um:zero minimum:1000 name:PM_VSU_STF_GRP153 : (Group 153 pm_vsu25) FPU store (SP or DP) issued on Pipe0 event:0X0991 counters:1 um:zero minimum:1000 name:PM_VSU_FIN_GRP153 : (Group 153 pm_vsu25) VSU0 Finished an instruction event:0X0992 counters:2 um:zero minimum:1000 name:PM_VSU_FRSP_GRP153 : (Group 153 pm_vsu25) Round to single precision instruction executed event:0X0993 counters:3 um:zero minimum:1000 name:PM_VSU_FCONV_GRP153 : (Group 153 pm_vsu25) Convert instruction executed event:0X0994 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP153 : (Group 153 pm_vsu25) Number of run instructions completed. event:0X0995 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP153 : (Group 153 pm_vsu25) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 154 pm_lsu1, LSU LMQ SRQ events event:0X09A0 counters:0 um:zero minimum:1000 name:PM_LSU_LMQ_FULL_CYC_GRP154 : (Group 154 pm_lsu1) The Load Miss Queue was full. event:0X09A1 counters:1 um:zero minimum:1000 name:PM_LSU_LMQ_SRQ_EMPTY_CYC_GRP154 : (Group 154 pm_lsu1) Cycles when both the LMQ and SRQ are empty (LSU is idle) event:0X09A2 counters:2 um:zero minimum:1000 name:PM_LSU_LMQ_SRQ_EMPTY_ALL_CYC_GRP154 : (Group 154 pm_lsu1) ALL threads lsu empty (lmq and srq empty) event:0X09A3 counters:3 um:zero minimum:1000 name:PM_LSU_SRQ_EMPTY_CYC_GRP154 : (Group 154 pm_lsu1) The Store Request Queue is empty event:0X09A4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP154 : (Group 154 pm_lsu1) Number of run instructions completed. event:0X09A5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP154 : (Group 154 pm_lsu1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 155 pm_lsu2, LSU events event:0X09B0 counters:0 um:zero minimum:1000 name:PM_LSU_FX_FIN_GRP155 : (Group 155 pm_lsu2) LSU Finished a FX operation (up to 2 per cycle) event:0X09B1 counters:1 um:zero minimum:1000 name:PM_LSU_NCST_GRP155 : (Group 155 pm_lsu2) Non-cachable Stores sent to nest event:0X09B2 counters:2 um:zero minimum:1000 name:PM_LSU_FIN_GRP155 : (Group 155 pm_lsu2) LSU Finished an instruction (up to 2 per cycle) event:0X09B3 counters:3 um:zero minimum:1000 name:PM_LSU_FLUSH_GRP155 : (Group 155 pm_lsu2) A flush was initiated by the Load Store Unit. event:0X09B4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP155 : (Group 155 pm_lsu2) Number of run instructions completed. event:0X09B5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP155 : (Group 155 pm_lsu2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 156 pm_lsu_lmq, LSU LMQ Events event:0X09C0 counters:0 um:zero minimum:1000 name:PM_LSU0_LMQ_LHR_MERGE_GRP156 : (Group 156 pm_lsu_lmq) LS0 Load Merged with another cacheline request event:0X09C1 counters:1 um:zero minimum:1000 name:PM_LSU1_LMQ_LHR_MERGE_GRP156 : (Group 156 pm_lsu_lmq) LS1 Load Merge with another cacheline request event:0X09C2 counters:2 um:zero minimum:1000 name:PM_LSU_LMQ_S0_VALID_GRP156 : (Group 156 pm_lsu_lmq) This signal is asserted every cycle that the Load Request Queue slot zero is valid. The SRQ is 32 entries long and is allocated round-robin. In SMT mode the LRQ is split between the two threads (16 entries each). event:0X09C3 counters:3 um:zero minimum:1000 name:PM_LSU_LMQ_FULL_CYC_GRP156 : (Group 156 pm_lsu_lmq) The Load Miss Queue was full. event:0X09C4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP156 : (Group 156 pm_lsu_lmq) Number of run instructions completed. event:0X09C5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP156 : (Group 156 pm_lsu_lmq) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 157 pm_lsu_srq1, Store Request Queue Info event:0X09D0 counters:0 um:zero minimum:1000 name:PM_LSU_SRQ_STFWD_GRP157 : (Group 157 pm_lsu_srq1) Data from a store instruction was forwarded to a load. A load that misses L1 but becomes a store forward is treated as a load miss and it causes the DL1 load miss event to be counted. It does not go into the LMQ. If a load that hits L1 but becomes a store forward, then it's not treated as a load miss. Combined Unit 0 + 1. event:0X09D1 counters:1 um:zero minimum:1000 name:PM_LSU0_SRQ_STFWD_GRP157 : (Group 157 pm_lsu_srq1) Data from a store instruction was forwarded to a load on unit 0. A load that misses L1 but becomes a store forward is treated as a load miss and it causes the DL1 load miss event to be counted. It does not go into the LMQ. If a load that hits L1 but becomes a store forward, then it's not treated as a load miss. event:0X09D2 counters:2 um:zero minimum:1000 name:PM_LSU1_SRQ_STFWD_GRP157 : (Group 157 pm_lsu_srq1) Data from a store instruction was forwarded to a load on unit 1. A load that misses L1 but becomes a store forward is treated as a load miss and it causes the DL1 load miss event to be counted. It does not go into the LMQ. If a load that hits L1 but becomes a store forward, then it's not treated as a load miss. event:0X09D3 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP157 : (Group 157 pm_lsu_srq1) Number of PowerPC Instructions that completed. event:0X09D4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP157 : (Group 157 pm_lsu_srq1) Number of run instructions completed. event:0X09D5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP157 : (Group 157 pm_lsu_srq1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 158 pm_lsu_srq2, Store Request Queue Info event:0X09E0 counters:0 um:zero minimum:1000 name:PM_LSU_SRQ_SYNC_CYC_GRP158 : (Group 158 pm_lsu_srq2) Cycles that a sync instruction is active in the Store Request Queue. event:0X09E1 counters:1 um:zero minimum:1000 name:PM_LSU_SRQ_SYNC_COUNT_GRP158 : (Group 158 pm_lsu_srq2) SRQ sync count (edge of PM_LSU_SRQ_SYNC_CYC) event:0X09E2 counters:2 um:zero minimum:1000 name:PM_LSU_SRQ_S0_VALID_GRP158 : (Group 158 pm_lsu_srq2) This signal is asserted every cycle that the Store Request Queue slot zero is valid. The SRQ is 32 entries long and is allocated round-robin. In SMT mode the SRQ is split between the two threads (16 entries each). event:0X09E3 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP158 : (Group 158 pm_lsu_srq2) Number of PowerPC Instructions that completed. event:0X09E4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP158 : (Group 158 pm_lsu_srq2) Number of run instructions completed. event:0X09E5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP158 : (Group 158 pm_lsu_srq2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 159 pm_lsu_s0_valid, LSU Events event:0X09F0 counters:0 um:zero minimum:1000 name:PM_LSU_SRQ_S0_VALID_GRP159 : (Group 159 pm_lsu_s0_valid) This signal is asserted every cycle that the Store Request Queue slot zero is valid. The SRQ is 32 entries long and is allocated round-robin. In SMT mode the SRQ is split between the two threads (16 entries each). event:0X09F1 counters:1 um:zero minimum:1000 name:PM_LSU_LRQ_S0_VALID_GRP159 : (Group 159 pm_lsu_s0_valid) This signal is asserted every cycle that the Load Request Queue slot zero is valid. The SRQ is 32 entries long and is allocated round-robin. In SMT mode the LRQ is split between the two threads (16 entries each). event:0X09F2 counters:2 um:zero minimum:1000 name:PM_LSU_LMQ_S0_VALID_GRP159 : (Group 159 pm_lsu_s0_valid) This signal is asserted every cycle that the Load Request Queue slot zero is valid. The SRQ is 32 entries long and is allocated round-robin. In SMT mode the LRQ is split between the two threads (16 entries each). event:0X09F3 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP159 : (Group 159 pm_lsu_s0_valid) Number of PowerPC Instructions that completed. event:0X09F4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP159 : (Group 159 pm_lsu_s0_valid) Number of run instructions completed. event:0X09F5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP159 : (Group 159 pm_lsu_s0_valid) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 160 pm_lsu_s0_alloc, LSU Events event:0X0A00 counters:0 um:zero minimum:1000 name:PM_LSU_LMQ_S0_ALLOC_GRP160 : (Group 160 pm_lsu_s0_alloc) Slot 0 of LMQ valid event:0X0A01 counters:1 um:zero minimum:1000 name:PM_LSU_LRQ_S0_ALLOC_GRP160 : (Group 160 pm_lsu_s0_alloc) Slot 0 of LRQ valid event:0X0A02 counters:2 um:zero minimum:1000 name:PM_LSU_SRQ_S0_ALLOC_GRP160 : (Group 160 pm_lsu_s0_alloc) Slot 0 of SRQ valid event:0X0A03 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP160 : (Group 160 pm_lsu_s0_alloc) Number of PowerPC Instructions that completed. event:0X0A04 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP160 : (Group 160 pm_lsu_s0_alloc) Number of run instructions completed. event:0X0A05 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP160 : (Group 160 pm_lsu_s0_alloc) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 161 pm_l1_pref, L1 pref Events event:0X0A10 counters:0 um:zero minimum:1000 name:PM_L1_PREF_GRP161 : (Group 161 pm_l1_pref) A request to prefetch data into the L1 was made event:0X0A11 counters:1 um:zero minimum:1000 name:PM_LSU0_L1_PREF_GRP161 : (Group 161 pm_l1_pref) LS0 L1 cache data prefetches event:0X0A12 counters:2 um:zero minimum:1000 name:PM_LSU1_L1_PREF_GRP161 : (Group 161 pm_l1_pref) LS1 L1 cache data prefetches event:0X0A13 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP161 : (Group 161 pm_l1_pref) Number of PowerPC Instructions that completed. event:0X0A14 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP161 : (Group 161 pm_l1_pref) Number of run instructions completed. event:0X0A15 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP161 : (Group 161 pm_l1_pref) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 162 pm_l2_guess_1, L2_Guess_events event:0X0A20 counters:0 um:zero minimum:1000 name:PM_L2_LOC_GUESS_CORRECT_GRP162 : (Group 162 pm_l2_guess_1) L2 guess loc and guess was correct (ie data local) event:0X0A21 counters:1 um:zero minimum:1000 name:PM_L2_LOC_GUESS_WRONG_GRP162 : (Group 162 pm_l2_guess_1) L2 guess loc and guess was not correct (ie data remote) event:0X0A22 counters:2 um:zero minimum:10000 name:PM_CYC_GRP162 : (Group 162 pm_l2_guess_1) Processor Cycles event:0X0A23 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP162 : (Group 162 pm_l2_guess_1) Number of PowerPC Instructions that completed. event:0X0A24 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP162 : (Group 162 pm_l2_guess_1) Number of run instructions completed. event:0X0A25 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP162 : (Group 162 pm_l2_guess_1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 163 pm_l2_guess_2, L2_Guess_events event:0X0A30 counters:0 um:zero minimum:1000 name:PM_L2_GLOB_GUESS_CORRECT_GRP163 : (Group 163 pm_l2_guess_2) L2 guess glb and guess was correct (ie data remote) event:0X0A31 counters:1 um:zero minimum:1000 name:PM_L2_GLOB_GUESS_WRONG_GRP163 : (Group 163 pm_l2_guess_2) L2 guess glb and guess was not correct (ie data local) event:0X0A32 counters:2 um:zero minimum:10000 name:PM_CYC_GRP163 : (Group 163 pm_l2_guess_2) Processor Cycles event:0X0A33 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP163 : (Group 163 pm_l2_guess_2) Number of PowerPC Instructions that completed. event:0X0A34 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP163 : (Group 163 pm_l2_guess_2) Number of run instructions completed. event:0X0A35 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP163 : (Group 163 pm_l2_guess_2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 164 pm_misc1, Misc events event:0X0A40 counters:0 um:zero minimum:1000 name:PM_INST_IMC_MATCH_CMPL_GRP164 : (Group 164 pm_misc1) Number of instructions resulting from the marked instructions expansion that completed. event:0X0A41 counters:1 um:zero minimum:1000 name:PM_INST_FROM_L1_GRP164 : (Group 164 pm_misc1) An instruction fetch group was fetched from L1. Fetch Groups can contain up to 8 instructions event:0X0A42 counters:2 um:zero minimum:1000 name:PM_INST_IMC_MATCH_DISP_GRP164 : (Group 164 pm_misc1) IMC Matches dispatched event:0X0A43 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP164 : (Group 164 pm_misc1) Number of PowerPC Instructions that completed. event:0X0A44 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP164 : (Group 164 pm_misc1) Number of run instructions completed. event:0X0A45 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP164 : (Group 164 pm_misc1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 165 pm_misc2, Misc events event:0X0A50 counters:0 um:zero minimum:1000 name:PM_EE_OFF_EXT_INT_GRP165 : (Group 165 pm_misc2) Cycles when an interrupt due to an external exception is pending but external exceptions were masked. event:0X0A51 counters:1 um:zero minimum:1000 name:PM_EXT_INT_GRP165 : (Group 165 pm_misc2) An interrupt due to an external exception occurred event:0X0A52 counters:2 um:zero minimum:1000 name:PM_TB_BIT_TRANS_GRP165 : (Group 165 pm_misc2) When the selected time base bit (as specified in MMCR0[TBSEL])transitions from 0 to 1 event:0X0A53 counters:3 um:zero minimum:10000 name:PM_CYC_GRP165 : (Group 165 pm_misc2) Processor Cycles event:0X0A54 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP165 : (Group 165 pm_misc2) Number of run instructions completed. event:0X0A55 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP165 : (Group 165 pm_misc2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 166 pm_misc3, Misc events event:0X0A60 counters:0 um:zero minimum:1000 name:PM_1PLUS_PPC_CMPL_GRP166 : (Group 166 pm_misc3) A group containing at least one PPC instruction completed. For microcoded instructions that span multiple groups, this will only occur once. event:0X0A61 counters:1 um:zero minimum:1000 name:PM_HV_CYC_GRP166 : (Group 166 pm_misc3) Cycles when the processor is executing in Hypervisor (MSR[HV] = 1 and MSR[PR]=0) event:0X0A62 counters:2 um:zero minimum:1000 name:PM_INST_DISP_GRP166 : (Group 166 pm_misc3) Number of PowerPC instructions successfully dispatched. event:0X0A63 counters:3 um:zero minimum:1000 name:PM_1PLUS_PPC_DISP_GRP166 : (Group 166 pm_misc3) A group containing at least one PPC instruction was dispatched. For microcoded instructions that span multiple groups, this will only occur once. event:0X0A64 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP166 : (Group 166 pm_misc3) Number of run instructions completed. event:0X0A65 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP166 : (Group 166 pm_misc3) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 167 pm_misc4, Misc events event:0X0A70 counters:0 um:zero minimum:1000 name:PM_GRP_IC_MISS_NONSPEC_GRP167 : (Group 167 pm_misc4) Number of groups, counted at completion, that have encountered an instruction cache miss. event:0X0A71 counters:1 um:zero minimum:1000 name:PM_GCT_NOSLOT_IC_MISS_GRP167 : (Group 167 pm_misc4) Cycles when the Global Completion Table has no slots from this thread because of an Instruction Cache miss. event:0X0A72 counters:2 um:zero minimum:10000 name:PM_CYC_GRP167 : (Group 167 pm_misc4) Processor Cycles event:0X0A73 counters:3 um:zero minimum:1000 name:PM_GCT_NOSLOT_BR_MPRED_IC_MISS_GRP167 : (Group 167 pm_misc4) No slot in GCT caused by branch mispredict or I cache miss event:0X0A74 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP167 : (Group 167 pm_misc4) Number of run instructions completed. event:0X0A75 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP167 : (Group 167 pm_misc4) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 168 pm_misc5, Misc events event:0X0A80 counters:0 um:zero minimum:1000 name:PM_GRP_BR_MPRED_NONSPEC_GRP168 : (Group 168 pm_misc5) Group experienced non-speculative branch redirect event:0X0A81 counters:1 um:zero minimum:1000 name:PM_BR_MPRED_CR_TA_GRP168 : (Group 168 pm_misc5) Branch mispredict - taken/not taken and target event:0X0A82 counters:2 um:zero minimum:1000 name:PM_BR_MPRED_CCACHE_GRP168 : (Group 168 pm_misc5) A branch instruction target was incorrectly predicted by the count cache. This will result in a branch redirect flush if not overwritten by a flush of an older instruction. event:0X0A83 counters:3 um:zero minimum:1000 name:PM_BR_MPRED_GRP168 : (Group 168 pm_misc5) A branch instruction was incorrectly predicted. This could have been a target prediction, a condition prediction, or both event:0X0A84 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP168 : (Group 168 pm_misc5) Number of run instructions completed. event:0X0A85 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP168 : (Group 168 pm_misc5) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 169 pm_misc6, Misc events event:0X0A90 counters:0 um:zero minimum:1000 name:PM_L1_DEMAND_WRITE_GRP169 : (Group 169 pm_misc6) Instruction Demand sectors wriittent into IL1 event:0X0A91 counters:1 um:zero minimum:1000 name:PM_IC_PREF_WRITE_GRP169 : (Group 169 pm_misc6) Number of Instruction Cache entries written because of prefetch. Prefetch entries are marked least recently used and are candidates for eviction if they are not needed to satify a demand fetch. event:0X0A92 counters:2 um:zero minimum:1000 name:PM_IC_WRITE_ALL_GRP169 : (Group 169 pm_misc6) Icache sectors written, prefetch + demand event:0X0A93 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP169 : (Group 169 pm_misc6) Number of PowerPC Instructions that completed. event:0X0A94 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP169 : (Group 169 pm_misc6) Number of run instructions completed. event:0X0A95 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP169 : (Group 169 pm_misc6) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 170 pm_misc7, Misc events event:0X0AA0 counters:0 um:zero minimum:1000 name:PM_THRESH_TIMEO_GRP170 : (Group 170 pm_misc7) The threshold timer expired event:0X0AA1 counters:1 um:zero minimum:1000 name:PM_HV_CYC_GRP170 : (Group 170 pm_misc7) Cycles when the processor is executing in Hypervisor (MSR[HV] = 1 and MSR[PR]=0) event:0X0AA2 counters:2 um:zero minimum:10000 name:PM_CYC_GRP170 : (Group 170 pm_misc7) Processor Cycles event:0X0AA3 counters:3 um:zero minimum:1000 name:PM_IFU_FIN_GRP170 : (Group 170 pm_misc7) The Instruction Fetch Unit finished an instruction event:0X0AA4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP170 : (Group 170 pm_misc7) Number of run instructions completed. event:0X0AA5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP170 : (Group 170 pm_misc7) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 171 pm_misc8, Misc events event:0X0AB0 counters:0 um:zero minimum:1000 name:PM_BR_MPRED_LSTACK_GRP171 : (Group 171 pm_misc8) Branch Mispredict due to Link Stack event:0X0AB1 counters:1 um:zero minimum:1000 name:PM_EXT_INT_GRP171 : (Group 171 pm_misc8) An interrupt due to an external exception occurred event:0X0AB2 counters:2 um:zero minimum:1000 name:PM_L1_DCACHE_RELOAD_VALID_GRP171 : (Group 171 pm_misc8) The data source information is valid,the data cache has been reloaded. Prior to POWER5+ this included data cache reloads due to prefetch activity. With POWER5+ this now only includes reloads due to demand loads. event:0X0AB3 counters:3 um:zero minimum:1000 name:PM_BR_MPRED_GRP171 : (Group 171 pm_misc8) A branch instruction was incorrectly predicted. This could have been a target prediction, a condition prediction, or both event:0X0AB4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP171 : (Group 171 pm_misc8) Number of run instructions completed. event:0X0AB5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP171 : (Group 171 pm_misc8) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 172 pm_misc9, Misc events event:0X0AC0 counters:0 um:zero minimum:1000 name:PM_FLUSH_BR_MPRED_GRP172 : (Group 172 pm_misc9) A flush was caused by a branch mispredict. event:0X0AC1 counters:1 um:zero minimum:1000 name:PM_FLUSH_PARTIAL_GRP172 : (Group 172 pm_misc9) Partial flush event:0X0AC2 counters:2 um:zero minimum:1000 name:PM_LSU_SET_MPRED_GRP172 : (Group 172 pm_misc9) Line already in cache at reload time event:0X0AC3 counters:3 um:zero minimum:1000 name:PM_BR_MPRED_GRP172 : (Group 172 pm_misc9) A branch instruction was incorrectly predicted. This could have been a target prediction, a condition prediction, or both event:0X0AC4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP172 : (Group 172 pm_misc9) Number of run instructions completed. event:0X0AC5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP172 : (Group 172 pm_misc9) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 173 pm_misc10, Misc events event:0X0AD0 counters:0 um:zero minimum:1000 name:PM_LSU_SRQ_FULL_CYC_GRP173 : (Group 173 pm_misc10) Cycles the Store Request Queue is full. event:0X0AD1 counters:1 um:zero minimum:1000 name:PM_LSU_DC_PREF_STREAM_ALLOC_GRP173 : (Group 173 pm_misc10) D cache new prefetch stream allocated event:0X0AD2 counters:2 um:zero minimum:1000 name:PM_L1_PREF_GRP173 : (Group 173 pm_misc10) A request to prefetch data into the L1 was made event:0X0AD3 counters:3 um:zero minimum:1000 name:PM_IBUF_FULL_CYC_GRP173 : (Group 173 pm_misc10) Cycles with the Instruction Buffer was full. The Instruction Buffer is a circular queue of 64 instructions per thread, organized as 16 groups of 4 instructions. event:0X0AD4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP173 : (Group 173 pm_misc10) Number of run instructions completed. event:0X0AD5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP173 : (Group 173 pm_misc10) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 174 pm_misc11, Misc events event:0X0AE0 counters:0 um:zero minimum:1000 name:PM_FLOP_GRP174 : (Group 174 pm_misc11) A floating point operation has completed event:0X0AE1 counters:1 um:zero minimum:10000 name:PM_CYC_GRP174 : (Group 174 pm_misc11) Processor Cycles event:0X0AE2 counters:2 um:zero minimum:1000 name:PM_GRP_CMPL_GRP174 : (Group 174 pm_misc11) A group completed. Microcoded instructions that span multiple groups will generate this event once per group. event:0X0AE3 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP174 : (Group 174 pm_misc11) Number of PowerPC Instructions that completed. event:0X0AE4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP174 : (Group 174 pm_misc11) Number of run instructions completed. event:0X0AE5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP174 : (Group 174 pm_misc11) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 175 pm_misc_12, Misc Events event:0X0AF0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP175 : (Group 175 pm_misc_12) Number of PowerPC Instructions that completed. event:0X0AF1 counters:1 um:zero minimum:1000 name:PM_ST_FIN_GRP175 : (Group 175 pm_misc_12) Store requests sent to the nest. event:0X0AF2 counters:2 um:zero minimum:1000 name:PM_TB_BIT_TRANS_GRP175 : (Group 175 pm_misc_12) When the selected time base bit (as specified in MMCR0[TBSEL])transitions from 0 to 1 event:0X0AF3 counters:3 um:zero minimum:1000 name:PM_FLUSH_GRP175 : (Group 175 pm_misc_12) Flushes occurred including LSU and Branch flushes. event:0X0AF4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP175 : (Group 175 pm_misc_12) Number of run instructions completed. event:0X0AF5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP175 : (Group 175 pm_misc_12) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 176 pm_misc_13, Misc Events event:0X0B00 counters:0 um:zero minimum:1000 name:PM_GCT_NOSLOT_CYC_GRP176 : (Group 176 pm_misc_13) Cycles when the Global Completion Table has no slots from this thread. event:0X0B01 counters:1 um:zero minimum:1000 name:PM_ST_FIN_GRP176 : (Group 176 pm_misc_13) Store requests sent to the nest. event:0X0B02 counters:2 um:zero minimum:1000 name:PM_DTLB_MISS_GRP176 : (Group 176 pm_misc_13) Data TLB misses, all page sizes. event:0X0B03 counters:3 um:zero minimum:1000 name:PM_BR_MPRED_GRP176 : (Group 176 pm_misc_13) A branch instruction was incorrectly predicted. This could have been a target prediction, a condition prediction, or both event:0X0B04 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP176 : (Group 176 pm_misc_13) Number of run instructions completed. event:0X0B05 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP176 : (Group 176 pm_misc_13) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 177 pm_misc_14, Misc Events event:0X0B10 counters:0 um:zero minimum:10000 name:PM_CYC_GRP177 : (Group 177 pm_misc_14) Processor Cycles event:0X0B11 counters:1 um:zero minimum:10000 name:PM_CYC_GRP177 : (Group 177 pm_misc_14) Processor Cycles event:0X0B12 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP177 : (Group 177 pm_misc_14) Number of PowerPC Instructions that completed. event:0X0B13 counters:3 um:zero minimum:1000 name:PM_IFU_FIN_GRP177 : (Group 177 pm_misc_14) The Instruction Fetch Unit finished an instruction event:0X0B14 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP177 : (Group 177 pm_misc_14) Number of run instructions completed. event:0X0B15 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP177 : (Group 177 pm_misc_14) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 178 pm_misc_15, Misc Events event:0X0B20 counters:0 um:zero minimum:1000 name:PM_LSU_DCACHE_RELOAD_VALID_GRP178 : (Group 178 pm_misc_15) count per sector of lines reloaded in L1 (demand + prefetch) event:0X0B21 counters:1 um:zero minimum:1000 name:PM_CMPLU_STALL_STORE_GRP178 : (Group 178 pm_misc_15) Completion stall due to store instruction event:0X0B22 counters:2 um:zero minimum:1000 name:PM_L1_DCACHE_RELOAD_VALID_GRP178 : (Group 178 pm_misc_15) The data source information is valid,the data cache has been reloaded. Prior to POWER5+ this included data cache reloads due to prefetch activity. With POWER5+ this now only includes reloads due to demand loads. event:0X0B23 counters:3 um:zero minimum:1000 name:PM_CMPLU_STALL_VECTOR_LONG_GRP178 : (Group 178 pm_misc_15) completion stall due to long latency vector instruction event:0X0B24 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP178 : (Group 178 pm_misc_15) Number of run instructions completed. event:0X0B25 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP178 : (Group 178 pm_misc_15) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 179 pm_misc_16, Misc Events event:0X0B30 counters:0 um:zero minimum:1000 name:PM_CMPLU_STALL_END_GCT_NOSLOT_GRP179 : (Group 179 pm_misc_16) Count ended because GCT went empty event:0X0B31 counters:1 um:zero minimum:1000 name:PM_LSU0_L1_SW_PREF_GRP179 : (Group 179 pm_misc_16) LSU0 Software L1 Prefetches, including SW Transient Prefetches event:0X0B32 counters:2 um:zero minimum:1000 name:PM_LSU1_L1_SW_PREF_GRP179 : (Group 179 pm_misc_16) LSU1 Software L1 Prefetches, including SW Transient Prefetches event:0X0B33 counters:3 um:zero minimum:1000 name:PM_CMPLU_STALL_IFU_GRP179 : (Group 179 pm_misc_16) Completion stall due to IFU event:0X0B34 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP179 : (Group 179 pm_misc_16) Number of run instructions completed. event:0X0B35 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP179 : (Group 179 pm_misc_16) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 180 pm_misc_17, Misc Events event:0X0B40 counters:0 um:zero minimum:1000 name:PM_BRU_FIN_GRP180 : (Group 180 pm_misc_17) The Branch execution unit finished an instruction event:0X0B41 counters:1 um:zero minimum:1000 name:PM_ST_FIN_GRP180 : (Group 180 pm_misc_17) Store requests sent to the nest. event:0X0B42 counters:2 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_DL2L3_SHR_GRP180 : (Group 180 pm_misc_17) A Page Table Entry was loaded into the ERAT from memory attached to a different module than this processor is located on due to a marked load or store. event:0X0B43 counters:3 um:zero minimum:1000 name:PM_CMPLU_STALL_BRU_GRP180 : (Group 180 pm_misc_17) Completion stall due to BRU event:0X0B44 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP180 : (Group 180 pm_misc_17) Number of run instructions completed. event:0X0B45 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP180 : (Group 180 pm_misc_17) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 181 pm_suspend, SUSPENDED events event:0X0B50 counters:0 um:zero minimum:1000 name:PM_SUSPENDED_GRP181 : (Group 181 pm_suspend) The counter is suspended (does not count) event:0X0B51 counters:1 um:zero minimum:10000 name:PM_CYC_GRP181 : (Group 181 pm_suspend) Processor Cycles event:0X0B52 counters:2 um:zero minimum:1000 name:PM_LWSYNC_GRP181 : (Group 181 pm_suspend) lwsync count (easier to use than IMC) event:0X0B53 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP181 : (Group 181 pm_suspend) Number of PowerPC Instructions that completed. event:0X0B54 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP181 : (Group 181 pm_suspend) Number of run instructions completed. event:0X0B55 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP181 : (Group 181 pm_suspend) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 182 pm_iops, Internal Operations events event:0X0B60 counters:0 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP182 : (Group 182 pm_iops) Number of internal operations that completed. event:0X0B61 counters:1 um:zero minimum:10000 name:PM_CYC_GRP182 : (Group 182 pm_iops) Processor Cycles event:0X0B62 counters:2 um:zero minimum:1000 name:PM_IOPS_DISP_GRP182 : (Group 182 pm_iops) IOPS dispatched event:0X0B63 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP182 : (Group 182 pm_iops) Number of PowerPC Instructions that completed. event:0X0B64 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP182 : (Group 182 pm_iops) Number of run instructions completed. event:0X0B65 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP182 : (Group 182 pm_iops) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 183 pm_sync, sync event:0X0B70 counters:0 um:zero minimum:1000 name:PM_LWSYNC_GRP183 : (Group 183 pm_sync) lwsync count (easier to use than IMC) event:0X0B71 counters:1 um:zero minimum:10000 name:PM_CYC_GRP183 : (Group 183 pm_sync) Processor Cycles event:0X0B72 counters:2 um:zero minimum:1000 name:PM_LWSYNC_HELD_GRP183 : (Group 183 pm_sync) Cycles a LWSYNC instruction was held at dispatch. LWSYNC instructions are held at dispatch until all previous loads are done and all previous stores have issued. LWSYNC enters the Store Request Queue and is sent to the storage subsystem but does not wait for a response. event:0X0B73 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP183 : (Group 183 pm_sync) Number of PowerPC Instructions that completed. event:0X0B74 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP183 : (Group 183 pm_sync) Number of run instructions completed. event:0X0B75 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP183 : (Group 183 pm_sync) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 184 pm_seg, Segment events event:0X0B80 counters:0 um:zero minimum:10000 name:PM_CYC_GRP184 : (Group 184 pm_seg) Processor Cycles event:0X0B81 counters:1 um:zero minimum:1000 name:PM_SEG_EXCEPTION_GRP184 : (Group 184 pm_seg) ISEG + DSEG Exception event:0X0B82 counters:2 um:zero minimum:1000 name:PM_ISEG_GRP184 : (Group 184 pm_seg) ISEG Exception event:0X0B83 counters:3 um:zero minimum:1000 name:PM_DSEG_GRP184 : (Group 184 pm_seg) DSEG Exception event:0X0B84 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP184 : (Group 184 pm_seg) Number of run instructions completed. event:0X0B85 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP184 : (Group 184 pm_seg) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 185 pm_l3_hit, L3 Hit Events event:0X0B90 counters:0 um:zero minimum:1000 name:PM_L3_HIT_GRP185 : (Group 185 pm_l3_hit) L3 Hits event:0X0B91 counters:1 um:zero minimum:1000 name:PM_L3_LD_HIT_GRP185 : (Group 185 pm_l3_hit) L3 demand LD Hits event:0X0B92 counters:2 um:zero minimum:1000 name:PM_L3_PREF_HIT_GRP185 : (Group 185 pm_l3_hit) L3 Prefetch Directory Hit event:0X0B93 counters:3 um:zero minimum:1000 name:PM_L3_CO_L31_GRP185 : (Group 185 pm_l3_hit) L3 Castouts to L3.1 event:0X0B94 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP185 : (Group 185 pm_l3_hit) Number of run instructions completed. event:0X0B95 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP185 : (Group 185 pm_l3_hit) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 186 pm_shl, Shell Events event:0X0BA0 counters:0 um:zero minimum:1000 name:PM_SHL_DEALLOCATED_GRP186 : (Group 186 pm_shl) SHL Table entry deallocated event:0X0BA1 counters:1 um:zero minimum:1000 name:PM_SHL_CREATED_GRP186 : (Group 186 pm_shl) SHL table entry Created event:0X0BA2 counters:2 um:zero minimum:1000 name:PM_SHL_MERGED_GRP186 : (Group 186 pm_shl) SHL table entry merged with existing event:0X0BA3 counters:3 um:zero minimum:1000 name:PM_SHL_MATCH_GRP186 : (Group 186 pm_shl) SHL Table Match event:0X0BA4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP186 : (Group 186 pm_shl) Number of run instructions completed. event:0X0BA5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP186 : (Group 186 pm_shl) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 187 pm_l3_pref, L3 Prefetch events event:0X0BB0 counters:0 um:zero minimum:1000 name:PM_L3_PREF_LD_GRP187 : (Group 187 pm_l3_pref) L3 cache LD prefetches event:0X0BB1 counters:1 um:zero minimum:1000 name:PM_L3_PREF_ST_GRP187 : (Group 187 pm_l3_pref) L3 cache ST prefetches event:0X0BB2 counters:2 um:zero minimum:1000 name:PM_L3_PREF_LDST_GRP187 : (Group 187 pm_l3_pref) L3 cache prefetches LD + ST event:0X0BB3 counters:3 um:zero minimum:1000 name:PM_L1_PREF_GRP187 : (Group 187 pm_l3_pref) A request to prefetch data into the L1 was made event:0X0BB4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP187 : (Group 187 pm_l3_pref) Number of run instructions completed. event:0X0BB5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP187 : (Group 187 pm_l3_pref) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 188 pm_l3, L3 events event:0X0BC0 counters:0 um:zero minimum:1000 name:PM_L3_MISS_GRP188 : (Group 188 pm_l3) L3 Misses event:0X0BC1 counters:1 um:zero minimum:1000 name:PM_L3_LD_MISS_GRP188 : (Group 188 pm_l3) L3 demand LD Miss event:0X0BC2 counters:2 um:zero minimum:1000 name:PM_L3_PREF_MISS_GRP188 : (Group 188 pm_l3) L3 Prefetch Directory Miss event:0X0BC3 counters:3 um:zero minimum:1000 name:PM_L3_CO_MEM_GRP188 : (Group 188 pm_l3) L3 Castouts to Memory event:0X0BC4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP188 : (Group 188 pm_l3) Number of run instructions completed. event:0X0BC5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP188 : (Group 188 pm_l3) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 189 pm_streams1, Streams event:0X0BD0 counters:0 um:zero minimum:10000 name:PM_CYC_GRP189 : (Group 189 pm_streams1) Processor Cycles event:0X0BD1 counters:1 um:zero minimum:1000 name:PM_LSU_DC_PREF_STREAM_CONFIRM_GRP189 : (Group 189 pm_streams1) Dcache new prefetch stream confirmed event:0X0BD2 counters:2 um:zero minimum:1000 name:PM_LSU0_DC_PREF_STREAM_CONFIRM_GRP189 : (Group 189 pm_streams1) LS0 Dcache prefetch stream confirmed event:0X0BD3 counters:3 um:zero minimum:1000 name:PM_LSU1_DC_PREF_STREAM_CONFIRM_GRP189 : (Group 189 pm_streams1) LS1 'Dcache prefetch stream confirmed event:0X0BD4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP189 : (Group 189 pm_streams1) Number of run instructions completed. event:0X0BD5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP189 : (Group 189 pm_streams1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 190 pm_streams2, Streams event:0X0BE0 counters:0 um:zero minimum:10000 name:PM_CYC_GRP190 : (Group 190 pm_streams2) Processor Cycles event:0X0BE1 counters:1 um:zero minimum:1000 name:PM_LSU_DC_PREF_STRIDED_STREAM_CONFIRM_GRP190 : (Group 190 pm_streams2) Dcache Strided prefetch stream confirmed (software + hardware) event:0X0BE2 counters:2 um:zero minimum:1000 name:PM_LSU0_DC_PREF_STREAM_CONFIRM_STRIDE_GRP190 : (Group 190 pm_streams2) LS0 Dcache Strided prefetch stream confirmed event:0X0BE3 counters:3 um:zero minimum:1000 name:PM_LSU1_DC_PREF_STREAM_CONFIRM_STRIDE_GRP190 : (Group 190 pm_streams2) LS1 Dcache Strided prefetch stream confirmed event:0X0BE4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP190 : (Group 190 pm_streams2) Number of run instructions completed. event:0X0BE5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP190 : (Group 190 pm_streams2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 191 pm_streams3, Streams event:0X0BF0 counters:0 um:zero minimum:1000 name:PM_DC_PREF_DST_GRP191 : (Group 191 pm_streams3) A prefetch stream was started using the DST instruction. event:0X0BF1 counters:1 um:zero minimum:1000 name:PM_LSU_DC_PREF_STREAM_ALLOC_GRP191 : (Group 191 pm_streams3) D cache new prefetch stream allocated event:0X0BF2 counters:2 um:zero minimum:1000 name:PM_LSU0_DC_PREF_STREAM_ALLOC_GRP191 : (Group 191 pm_streams3) LS0 D cache new prefetch stream allocated event:0X0BF3 counters:3 um:zero minimum:1000 name:PM_LSU1_DC_PREF_STREAM_ALLOC_GRP191 : (Group 191 pm_streams3) LS 1 D cache new prefetch stream allocated event:0X0BF4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP191 : (Group 191 pm_streams3) Number of run instructions completed. event:0X0BF5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP191 : (Group 191 pm_streams3) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 192 pm_larx, LARX event:0X0C00 counters:0 um:zero minimum:1000 name:PM_LARX_LSU0_GRP192 : (Group 192 pm_larx) A larx (lwarx or ldarx) was executed on side 0 event:0X0C01 counters:1 um:zero minimum:1000 name:PM_LARX_LSU1_GRP192 : (Group 192 pm_larx) A larx (lwarx or ldarx) was executed on side 1 event:0X0C02 counters:2 um:zero minimum:10000 name:PM_CYC_GRP192 : (Group 192 pm_larx) Processor Cycles event:0X0C03 counters:3 um:zero minimum:1000 name:PM_LARX_LSU_GRP192 : (Group 192 pm_larx) Larx Finished event:0X0C04 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP192 : (Group 192 pm_larx) Number of run instructions completed. event:0X0C05 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP192 : (Group 192 pm_larx) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 193 pm_ldf, Floating Point loads event:0X0C10 counters:0 um:zero minimum:10000 name:PM_CYC_GRP193 : (Group 193 pm_ldf) Processor Cycles event:0X0C11 counters:1 um:zero minimum:1000 name:PM_LSU_LDF_GRP193 : (Group 193 pm_ldf) LSU executed Floating Point load instruction. Combined Unit 0 + 1. event:0X0C12 counters:2 um:zero minimum:1000 name:PM_LSU0_LDF_GRP193 : (Group 193 pm_ldf) A floating point load was executed by LSU0 event:0X0C13 counters:3 um:zero minimum:1000 name:PM_LSU1_LDF_GRP193 : (Group 193 pm_ldf) A floating point load was executed by LSU1 event:0X0C14 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP193 : (Group 193 pm_ldf) Number of run instructions completed. event:0X0C15 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP193 : (Group 193 pm_ldf) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 194 pm_ldx, Vector Load event:0X0C20 counters:0 um:zero minimum:10000 name:PM_CYC_GRP194 : (Group 194 pm_ldx) Processor Cycles event:0X0C21 counters:1 um:zero minimum:1000 name:PM_LSU_LDX_GRP194 : (Group 194 pm_ldx) All Vector loads (vsx vector + vmx vector) event:0X0C22 counters:2 um:zero minimum:1000 name:PM_LSU0_LDX_GRP194 : (Group 194 pm_ldx) LS0 Vector Loads event:0X0C23 counters:3 um:zero minimum:1000 name:PM_LSU1_LDX_GRP194 : (Group 194 pm_ldx) LS1 Vector Loads event:0X0C24 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP194 : (Group 194 pm_ldx) Number of run instructions completed. event:0X0C25 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP194 : (Group 194 pm_ldx) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 195 pm_l2_ld_st, L2 load and store events event:0X0C30 counters:0 um:zero minimum:1000 name:PM_L2_LD_GRP195 : (Group 195 pm_l2_ld_st) Data Load Count event:0X0C31 counters:1 um:zero minimum:1000 name:PM_L2_ST_MISS_GRP195 : (Group 195 pm_l2_ld_st) Data Store Miss event:0X0C32 counters:2 um:zero minimum:1000 name:PM_L3_PREF_HIT_GRP195 : (Group 195 pm_l2_ld_st) L3 Prefetch Directory Hit event:0X0C33 counters:3 um:zero minimum:10000 name:PM_CYC_GRP195 : (Group 195 pm_l2_ld_st) Processor Cycles event:0X0C34 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP195 : (Group 195 pm_l2_ld_st) Number of run instructions completed. event:0X0C35 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP195 : (Group 195 pm_l2_ld_st) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 196 pm_stcx, STCX event:0X0C40 counters:0 um:zero minimum:1000 name:PM_LARX_LSU_GRP196 : (Group 196 pm_stcx) Larx Finished event:0X0C41 counters:1 um:zero minimum:1000 name:PM_LSU_REJECT_LHS_GRP196 : (Group 196 pm_stcx) The Load Store Unit rejected a load instruction that had an address overlap with an older store in the store queue. The store must be committed and de-allocated from the Store Queue before the load can execute successfully. Combined Unit 0 + 1 event:0X0C42 counters:2 um:zero minimum:1000 name:PM_STCX_CMPL_GRP196 : (Group 196 pm_stcx) Conditional stores with reservation completed event:0X0C43 counters:3 um:zero minimum:1000 name:PM_STCX_FAIL_GRP196 : (Group 196 pm_stcx) A stcx (stwcx or stdcx) failed event:0X0C44 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP196 : (Group 196 pm_stcx) Number of run instructions completed. event:0X0C45 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP196 : (Group 196 pm_stcx) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 197 pm_btac, BTAC event:0X0C50 counters:0 um:zero minimum:1000 name:PM_BTAC_HIT_GRP197 : (Group 197 pm_btac) BTAC Correct Prediction event:0X0C51 counters:1 um:zero minimum:1000 name:PM_BTAC_MISS_GRP197 : (Group 197 pm_btac) BTAC Mispredicted event:0X0C52 counters:2 um:zero minimum:1000 name:PM_STCX_CMPL_GRP197 : (Group 197 pm_btac) Conditional stores with reservation completed event:0X0C53 counters:3 um:zero minimum:1000 name:PM_STCX_FAIL_GRP197 : (Group 197 pm_btac) A stcx (stwcx or stdcx) failed event:0X0C54 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP197 : (Group 197 pm_btac) Number of run instructions completed. event:0X0C55 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP197 : (Group 197 pm_btac) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 198 pm_br_bc, Branch BC events event:0X0C60 counters:0 um:zero minimum:1000 name:PM_BC_PLUS_8_CONV_GRP198 : (Group 198 pm_br_bc) BC+8 Converted event:0X0C61 counters:1 um:zero minimum:1000 name:PM_BC_PLUS_8_RSLV_TAKEN_GRP198 : (Group 198 pm_br_bc) BC+8 Resolve outcome was Taken, resulting in the conditional instruction being canceled event:0X0C62 counters:2 um:zero minimum:10000 name:PM_CYC_GRP198 : (Group 198 pm_br_bc) Processor Cycles event:0X0C63 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP198 : (Group 198 pm_br_bc) Number of PowerPC Instructions that completed. event:0X0C64 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP198 : (Group 198 pm_br_bc) Number of run instructions completed. event:0X0C65 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP198 : (Group 198 pm_br_bc) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 199 pm_inst_imc, inst imc events event:0X0C70 counters:0 um:zero minimum:1000 name:PM_INST_IMC_MATCH_CMPL_GRP199 : (Group 199 pm_inst_imc) Number of instructions resulting from the marked instructions expansion that completed. event:0X0C71 counters:1 um:zero minimum:1000 name:PM_INST_DISP_GRP199 : (Group 199 pm_inst_imc) Number of PowerPC instructions successfully dispatched. event:0X0C72 counters:2 um:zero minimum:1000 name:PM_INST_IMC_MATCH_DISP_GRP199 : (Group 199 pm_inst_imc) IMC Matches dispatched event:0X0C73 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP199 : (Group 199 pm_inst_imc) Number of PowerPC Instructions that completed. event:0X0C74 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP199 : (Group 199 pm_inst_imc) Number of run instructions completed. event:0X0C75 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP199 : (Group 199 pm_inst_imc) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 200 pm_l2_misc1, L2 load/store Miss events event:0X0C80 counters:0 um:zero minimum:1000 name:PM_L2_LDST_GRP200 : (Group 200 pm_l2_misc1) Data Load+Store Count event:0X0C81 counters:1 um:zero minimum:1000 name:PM_L2_LDST_MISS_GRP200 : (Group 200 pm_l2_misc1) Data Load+Store Miss event:0X0C82 counters:2 um:zero minimum:1000 name:PM_L2_INST_MISS_GRP200 : (Group 200 pm_l2_misc1) Instruction Load Misses event:0X0C83 counters:3 um:zero minimum:1000 name:PM_L2_DISP_ALL_GRP200 : (Group 200 pm_l2_misc1) All successful LD/ST dispatches for this thread(i+d) event:0X0C84 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP200 : (Group 200 pm_l2_misc1) Number of run instructions completed. event:0X0C85 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP200 : (Group 200 pm_l2_misc1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 201 pm_l2_misc2, L2 Events event:0X0C90 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP201 : (Group 201 pm_l2_misc2) Number of PowerPC Instructions that completed. event:0X0C91 counters:1 um:zero minimum:10000 name:PM_CYC_GRP201 : (Group 201 pm_l2_misc2) Processor Cycles event:0X0C92 counters:2 um:zero minimum:1000 name:PM_L2_INST_GRP201 : (Group 201 pm_l2_misc2) Instruction Load Count event:0X0C93 counters:3 um:zero minimum:1000 name:PM_L2_DISP_ALL_GRP201 : (Group 201 pm_l2_misc2) All successful LD/ST dispatches for this thread(i+d) event:0X0C94 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP201 : (Group 201 pm_l2_misc2) Number of run instructions completed. event:0X0C95 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP201 : (Group 201 pm_l2_misc2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 202 pm_l2_misc3, L2 Events event:0X0CA0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP202 : (Group 202 pm_l2_misc3) Number of PowerPC Instructions that completed. event:0X0CA1 counters:1 um:zero minimum:10000 name:PM_CYC_GRP202 : (Group 202 pm_l2_misc3) Processor Cycles event:0X0CA2 counters:2 um:zero minimum:1000 name:PM_L2_SYS_PUMP_GRP202 : (Group 202 pm_l2_misc3) RC req that was a global (aka system) pump attempt event:0X0CA3 counters:3 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP202 : (Group 202 pm_l2_misc3) Number of run instructions completed. event:0X0CA4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP202 : (Group 202 pm_l2_misc3) Number of run instructions completed. event:0X0CA5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP202 : (Group 202 pm_l2_misc3) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 203 pm_l2_misc4, L2 Events event:0X0CB0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP203 : (Group 203 pm_l2_misc4) Number of PowerPC Instructions that completed. event:0X0CB1 counters:1 um:zero minimum:10000 name:PM_CYC_GRP203 : (Group 203 pm_l2_misc4) Processor Cycles event:0X0CB2 counters:2 um:zero minimum:1000 name:PM_L2_SN_SX_I_DONE_GRP203 : (Group 203 pm_l2_misc4) SNP dispatched and went from Sx or Tx to Ix event:0X0CB3 counters:3 um:zero minimum:1000 name:PM_L2_SN_M_WR_DONE_GRP203 : (Group 203 pm_l2_misc4) SNP dispatched for a write and was M event:0X0CB4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP203 : (Group 203 pm_l2_misc4) Number of run instructions completed. event:0X0CB5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP203 : (Group 203 pm_l2_misc4) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 204 pm_l2_misc5, L2 Events event:0X0CC0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP204 : (Group 204 pm_l2_misc5) Number of PowerPC Instructions that completed. event:0X0CC1 counters:1 um:zero minimum:10000 name:PM_CYC_GRP204 : (Group 204 pm_l2_misc5) Processor Cycles event:0X0CC2 counters:2 um:zero minimum:1000 name:PM_L2_NODE_PUMP_GRP204 : (Group 204 pm_l2_misc5) RC req that was a local (aka node) pump attempt event:0X0CC3 counters:3 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP204 : (Group 204 pm_l2_misc5) Number of run instructions completed. event:0X0CC4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP204 : (Group 204 pm_l2_misc5) Number of run instructions completed. event:0X0CC5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP204 : (Group 204 pm_l2_misc5) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 205 pm_l2_misc6, L2 Events event:0X0CD0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP205 : (Group 205 pm_l2_misc6) Number of PowerPC Instructions that completed. event:0X0CD1 counters:1 um:zero minimum:10000 name:PM_RUN_CYC_GRP205 : (Group 205 pm_l2_misc6) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. event:0X0CD2 counters:2 um:zero minimum:10000 name:PM_CYC_GRP205 : (Group 205 pm_l2_misc6) Processor Cycles event:0X0CD3 counters:3 um:zero minimum:1000 name:PM_L2_SN_M_RD_DONE_GRP205 : (Group 205 pm_l2_misc6) SNP dispatched for a read and was M event:0X0CD4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP205 : (Group 205 pm_l2_misc6) Number of run instructions completed. event:0X0CD5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP205 : (Group 205 pm_l2_misc6) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 206 pm_ierat, IERAT Events event:0X0CE0 counters:0 um:zero minimum:1000 name:PM_IERAT_MISS_GRP206 : (Group 206 pm_ierat) A translation request missed the Instruction Effective to Real Address Translation (ERAT) table event:0X0CE1 counters:1 um:zero minimum:1000 name:PM_IERAT_XLATE_WR_16MPLUS_GRP206 : (Group 206 pm_ierat) large page 16M+ event:0X0CE2 counters:2 um:zero minimum:1000 name:PM_IERAT_WR_64K_GRP206 : (Group 206 pm_ierat) large page 64k event:0X0CE3 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP206 : (Group 206 pm_ierat) Number of PowerPC Instructions that completed. event:0X0CE4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP206 : (Group 206 pm_ierat) Number of run instructions completed. event:0X0CE5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP206 : (Group 206 pm_ierat) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 207 pm_disp_clb, Dispatch CLB Events event:0X0CF0 counters:0 um:zero minimum:1000 name:PM_DISP_CLB_HELD_GRP207 : (Group 207 pm_disp_clb) CLB Hold: Any Reason event:0X0CF1 counters:1 um:zero minimum:1000 name:PM_DISP_CLB_HELD_SB_GRP207 : (Group 207 pm_disp_clb) Dispatch/CLB Hold: Scoreboard event:0X0CF2 counters:2 um:zero minimum:10000 name:PM_CYC_GRP207 : (Group 207 pm_disp_clb) Processor Cycles event:0X0CF3 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP207 : (Group 207 pm_disp_clb) Number of PowerPC Instructions that completed. event:0X0CF4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP207 : (Group 207 pm_disp_clb) Number of run instructions completed. event:0X0CF5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP207 : (Group 207 pm_disp_clb) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 208 pm_dpu, DPU Events event:0X0D00 counters:0 um:zero minimum:10000 name:PM_CYC_GRP208 : (Group 208 pm_dpu) Processor Cycles event:0X0D01 counters:1 um:zero minimum:1000 name:PM_DPU_HELD_POWER_GRP208 : (Group 208 pm_dpu) Cycles that Instruction Dispatch was held due to power management. More than one hold condition can exist at the same time event:0X0D02 counters:2 um:zero minimum:1000 name:PM_DISP_WT_GRP208 : (Group 208 pm_dpu) Dispatched Starved (not held, nothing to dispatch) event:0X0D03 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP208 : (Group 208 pm_dpu) Number of PowerPC Instructions that completed. event:0X0D04 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP208 : (Group 208 pm_dpu) Number of run instructions completed. event:0X0D05 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP208 : (Group 208 pm_dpu) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 209 pm_cpu_util, Basic CPU utilization event:0X0D10 counters:0 um:zero minimum:1000 name:PM_RUN_SPURR_GRP209 : (Group 209 pm_cpu_util) Run SPURR event:0X0D11 counters:1 um:zero minimum:10000 name:PM_RUN_CYC_GRP209 : (Group 209 pm_cpu_util) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. event:0X0D12 counters:2 um:zero minimum:10000 name:PM_CYC_GRP209 : (Group 209 pm_cpu_util) Processor Cycles event:0X0D13 counters:3 um:zero minimum:1000 name:PM_RUN_PURR_GRP209 : (Group 209 pm_cpu_util) The Processor Utilization of Resources Register was incremented while the run latch was set. The PURR registers will be incremented roughly in the ratio in which the instructions are dispatched from the two threads. event:0X0D14 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP209 : (Group 209 pm_cpu_util) Number of run instructions completed. event:0X0D15 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP209 : (Group 209 pm_cpu_util) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 210 pm_overflow1, Overflow events event:0X0D20 counters:0 um:zero minimum:1000 name:PM_PMC4_OVERFLOW_GRP210 : (Group 210 pm_overflow1) Overflows from PMC4 are counted. This effectively widens the PMC. The Overflow from the original PMC will not trigger an exception even if the PMU is configured to generate exceptions on overflow. event:0X0D21 counters:1 um:zero minimum:1000 name:PM_PMC1_OVERFLOW_GRP210 : (Group 210 pm_overflow1) Overflows from PMC1 are counted. This effectively widens the PMC. The Overflow from the original PMC will not trigger an exception even if the PMU is configured to generate exceptions on overflow. event:0X0D22 counters:2 um:zero minimum:1000 name:PM_PMC2_OVERFLOW_GRP210 : (Group 210 pm_overflow1) Overflows from PMC2 are counted. This effectively widens the PMC. The Overflow from the original PMC will not trigger an exception even if the PMU is configured to generate exceptions on overflow. event:0X0D23 counters:3 um:zero minimum:1000 name:PM_PMC3_OVERFLOW_GRP210 : (Group 210 pm_overflow1) Overflows from PMC3 are counted. This effectively widens the PMC. The Overflow from the original PMC will not trigger an exception even if the PMU is configured to generate exceptions on overflow. event:0X0D24 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP210 : (Group 210 pm_overflow1) Number of run instructions completed. event:0X0D25 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP210 : (Group 210 pm_overflow1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 211 pm_overflow2, Overflow events event:0X0D30 counters:0 um:zero minimum:1000 name:PM_PMC5_OVERFLOW_GRP211 : (Group 211 pm_overflow2) Overflows from PMC5 are counted. This effectively widens the PMC. The Overflow from the original PMC will not trigger an exception even if the PMU is configured to generate exceptions on overflow. event:0X0D31 counters:1 um:zero minimum:1000 name:PM_PMC1_OVERFLOW_GRP211 : (Group 211 pm_overflow2) Overflows from PMC1 are counted. This effectively widens the PMC. The Overflow from the original PMC will not trigger an exception even if the PMU is configured to generate exceptions on overflow. event:0X0D32 counters:2 um:zero minimum:1000 name:PM_PMC6_OVERFLOW_GRP211 : (Group 211 pm_overflow2) Overflows from PMC6 are counted. This effectively widens the PMC. The Overflow from the original PMC will not trigger an exception even if the PMU is configured to generate exceptions on overflow. event:0X0D33 counters:3 um:zero minimum:1000 name:PM_PMC3_OVERFLOW_GRP211 : (Group 211 pm_overflow2) Overflows from PMC3 are counted. This effectively widens the PMC. The Overflow from the original PMC will not trigger an exception even if the PMU is configured to generate exceptions on overflow. event:0X0D34 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP211 : (Group 211 pm_overflow2) Number of run instructions completed. event:0X0D35 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP211 : (Group 211 pm_overflow2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 212 pm_rewind, Rewind events event:0X0D40 counters:0 um:zero minimum:1000 name:PM_PMC4_REWIND_GRP212 : (Group 212 pm_rewind) PMC4 was counting speculatively. The speculative condition was not met and the counter was restored to its previous value. event:0X0D41 counters:1 um:zero minimum:10000 name:PM_RUN_CYC_GRP212 : (Group 212 pm_rewind) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. event:0X0D42 counters:2 um:zero minimum:1000 name:PM_PMC2_REWIND_GRP212 : (Group 212 pm_rewind) PMC2 was counting speculatively. The speculative condition was not met and the counter was restored to its previous value. event:0X0D43 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP212 : (Group 212 pm_rewind) Number of PowerPC Instructions that completed. event:0X0D44 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP212 : (Group 212 pm_rewind) Number of run instructions completed. event:0X0D45 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP212 : (Group 212 pm_rewind) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 213 pm_saved, Saved Events event:0X0D50 counters:0 um:zero minimum:1000 name:PM_PMC2_SAVED_GRP213 : (Group 213 pm_saved) PMC2 was counting speculatively. The speculative condition was met and the counter value was committed by copying it to the backup register. event:0X0D51 counters:1 um:zero minimum:10000 name:PM_RUN_CYC_GRP213 : (Group 213 pm_saved) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. event:0X0D52 counters:2 um:zero minimum:1000 name:PM_PMC4_SAVED_GRP213 : (Group 213 pm_saved) PMC4 was counting speculatively. The speculative condition was met and the counter value was committed by copying it to the backup register. event:0X0D53 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP213 : (Group 213 pm_saved) Number of PowerPC Instructions that completed. event:0X0D54 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP213 : (Group 213 pm_saved) Number of run instructions completed. event:0X0D55 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP213 : (Group 213 pm_saved) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 214 pm_tlbie, TLBIE Events event:0X0D60 counters:0 um:zero minimum:1000 name:PM_FLUSH_DISP_TLBIE_GRP214 : (Group 214 pm_tlbie) Dispatch Flush: TLBIE event:0X0D61 counters:1 um:zero minimum:1000 name:PM_DISP_CLB_HELD_TLBIE_GRP214 : (Group 214 pm_tlbie) Dispatch Hold: Due to TLBIE event:0X0D62 counters:2 um:zero minimum:1000 name:PM_SNOOP_TLBIE_GRP214 : (Group 214 pm_tlbie) A tlbie was snooped from another processor. event:0X0D63 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP214 : (Group 214 pm_tlbie) Number of PowerPC Instructions that completed. event:0X0D64 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP214 : (Group 214 pm_tlbie) Number of run instructions completed. event:0X0D65 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP214 : (Group 214 pm_tlbie) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 215 pm_id_miss_erat_l1, Instruction/Data miss from ERAT/L1 cache event:0X0D70 counters:0 um:zero minimum:1000 name:PM_IERAT_MISS_GRP215 : (Group 215 pm_id_miss_erat_l1) A translation request missed the Instruction Effective to Real Address Translation (ERAT) table event:0X0D71 counters:1 um:zero minimum:1000 name:PM_L1_ICACHE_MISS_GRP215 : (Group 215 pm_id_miss_erat_l1) An instruction fetch request missed the L1 cache. event:0X0D72 counters:2 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP215 : (Group 215 pm_id_miss_erat_l1) A store missed the dcache. Combined Unit 0 + 1. event:0X0D73 counters:3 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP215 : (Group 215 pm_id_miss_erat_l1) Load references that miss the Level 1 Data cache. Combined unit 0 + 1. event:0X0D74 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP215 : (Group 215 pm_id_miss_erat_l1) Number of run instructions completed. event:0X0D75 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP215 : (Group 215 pm_id_miss_erat_l1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 216 pm_id_miss_erat_tlab, Instruction/Data miss from ERAT/TLB event:0X0D80 counters:0 um:zero minimum:10000 name:PM_CYC_GRP216 : (Group 216 pm_id_miss_erat_tlab) Processor Cycles event:0X0D81 counters:1 um:zero minimum:1000 name:PM_LSU_DERAT_MISS_GRP216 : (Group 216 pm_id_miss_erat_tlab) Total D-ERAT Misses. Requests that miss the Derat are rejected and retried until the request hits in the Erat. This may result in multiple erat misses for the same instruction. Combined Unit 0 + 1. event:0X0D82 counters:2 um:zero minimum:1000 name:PM_DTLB_MISS_GRP216 : (Group 216 pm_id_miss_erat_tlab) Data TLB misses, all page sizes. event:0X0D83 counters:3 um:zero minimum:1000 name:PM_ITLB_MISS_GRP216 : (Group 216 pm_id_miss_erat_tlab) A TLB miss for an Instruction Fetch has occurred event:0X0D84 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP216 : (Group 216 pm_id_miss_erat_tlab) Number of run instructions completed. event:0X0D85 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP216 : (Group 216 pm_id_miss_erat_tlab) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 217 pm_compat_utilization1, Basic CPU utilization event:0X0D90 counters:0 um:zero minimum:1000 name:PM_ANY_THRD_RUN_CYC_GRP217 : (Group 217 pm_compat_utilization1) One of threads in run_cycles event:0X0D91 counters:1 um:zero minimum:10000 name:PM_RUN_CYC_GRP217 : (Group 217 pm_compat_utilization1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. event:0X0D92 counters:2 um:zero minimum:10000 name:PM_CYC_GRP217 : (Group 217 pm_compat_utilization1) Processor Cycles event:0X0D93 counters:3 um:zero minimum:1000 name:PM_RUN_PURR_GRP217 : (Group 217 pm_compat_utilization1) The Processor Utilization of Resources Register was incremented while the run latch was set. The PURR registers will be incremented roughly in the ratio in which the instructions are dispatched from the two threads. event:0X0D94 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP217 : (Group 217 pm_compat_utilization1) Number of run instructions completed. event:0X0D95 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP217 : (Group 217 pm_compat_utilization1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 218 pm_compat_utilization2, CPI and utilization data event:0X0DA0 counters:0 um:zero minimum:1000 name:PM_FLOP_GRP218 : (Group 218 pm_compat_utilization2) A floating point operation has completed event:0X0DA1 counters:1 um:zero minimum:10000 name:PM_RUN_CYC_GRP218 : (Group 218 pm_compat_utilization2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. event:0X0DA2 counters:2 um:zero minimum:10000 name:PM_CYC_GRP218 : (Group 218 pm_compat_utilization2) Processor Cycles event:0X0DA3 counters:3 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP218 : (Group 218 pm_compat_utilization2) Number of run instructions completed. event:0X0DA4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP218 : (Group 218 pm_compat_utilization2) Number of run instructions completed. event:0X0DA5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP218 : (Group 218 pm_compat_utilization2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 219 pm_compat_cpi_1plus_ppc, Misc CPI and utilization data event:0X0DB0 counters:0 um:zero minimum:1000 name:PM_1PLUS_PPC_CMPL_GRP219 : (Group 219 pm_compat_cpi_1plus_ppc) A group containing at least one PPC instruction completed. For microcoded instructions that span multiple groups, this will only occur once. event:0X0DB1 counters:1 um:zero minimum:10000 name:PM_RUN_CYC_GRP219 : (Group 219 pm_compat_cpi_1plus_ppc) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. event:0X0DB2 counters:2 um:zero minimum:1000 name:PM_INST_DISP_GRP219 : (Group 219 pm_compat_cpi_1plus_ppc) Number of PowerPC instructions successfully dispatched. event:0X0DB3 counters:3 um:zero minimum:1000 name:PM_1PLUS_PPC_DISP_GRP219 : (Group 219 pm_compat_cpi_1plus_ppc) A group containing at least one PPC instruction was dispatched. For microcoded instructions that span multiple groups, this will only occur once. event:0X0DB4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP219 : (Group 219 pm_compat_cpi_1plus_ppc) Number of run instructions completed. event:0X0DB5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP219 : (Group 219 pm_compat_cpi_1plus_ppc) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 220 pm_compat_l1_dcache_load_store_miss, L1 D-Cache load/store miss event:0X0DC0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP220 : (Group 220 pm_compat_l1_dcache_load_store_miss) Number of PowerPC Instructions that completed. event:0X0DC1 counters:1 um:zero minimum:1000 name:PM_ST_FIN_GRP220 : (Group 220 pm_compat_l1_dcache_load_store_miss) Store requests sent to the nest. event:0X0DC2 counters:2 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP220 : (Group 220 pm_compat_l1_dcache_load_store_miss) A store missed the dcache. Combined Unit 0 + 1. event:0X0DC3 counters:3 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP220 : (Group 220 pm_compat_l1_dcache_load_store_miss) Load references that miss the Level 1 Data cache. Combined unit 0 + 1. event:0X0DC4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP220 : (Group 220 pm_compat_l1_dcache_load_store_miss) Number of run instructions completed. event:0X0DC5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP220 : (Group 220 pm_compat_l1_dcache_load_store_miss) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 221 pm_compat_l1_cache_load, L1 Cache loads event:0X0DD0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP221 : (Group 221 pm_compat_l1_cache_load) Number of PowerPC Instructions that completed. event:0X0DD1 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_L2MISS_GRP221 : (Group 221 pm_compat_l1_cache_load) The processor's Data Cache was reloaded but not from the local L2. event:0X0DD2 counters:2 um:zero minimum:1000 name:PM_L1_DCACHE_RELOAD_VALID_GRP221 : (Group 221 pm_compat_l1_cache_load) The data source information is valid,the data cache has been reloaded. Prior to POWER5+ this included data cache reloads due to prefetch activity. With POWER5+ this now only includes reloads due to demand loads. event:0X0DD3 counters:3 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP221 : (Group 221 pm_compat_l1_cache_load) Load references that miss the Level 1 Data cache. Combined unit 0 + 1. event:0X0DD4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP221 : (Group 221 pm_compat_l1_cache_load) Number of run instructions completed. event:0X0DD5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP221 : (Group 221 pm_compat_l1_cache_load) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 222 pm_compat_instruction_directory, Instruction Directory event:0X0DE0 counters:0 um:zero minimum:1000 name:PM_IERAT_MISS_GRP222 : (Group 222 pm_compat_instruction_directory) A translation request missed the Instruction Effective to Real Address Translation (ERAT) table event:0X0DE1 counters:1 um:zero minimum:1000 name:PM_L1_ICACHE_MISS_GRP222 : (Group 222 pm_compat_instruction_directory) An instruction fetch request missed the L1 cache. event:0X0DE2 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP222 : (Group 222 pm_compat_instruction_directory) Number of PowerPC Instructions that completed. event:0X0DE3 counters:3 um:zero minimum:1000 name:PM_ITLB_MISS_GRP222 : (Group 222 pm_compat_instruction_directory) A TLB miss for an Instruction Fetch has occurred event:0X0DE4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP222 : (Group 222 pm_compat_instruction_directory) Number of run instructions completed. event:0X0DE5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP222 : (Group 222 pm_compat_instruction_directory) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 223 pm_compat_suspend, Suspend Events event:0X0DF0 counters:0 um:zero minimum:1000 name:PM_SUSPENDED_GRP223 : (Group 223 pm_compat_suspend) The counter is suspended (does not count) event:0X0DF1 counters:1 um:zero minimum:1000 name:PM_SUSPENDED_GRP223 : (Group 223 pm_compat_suspend) The counter is suspended (does not count) event:0X0DF2 counters:2 um:zero minimum:1000 name:PM_SUSPENDED_GRP223 : (Group 223 pm_compat_suspend) The counter is suspended (does not count) event:0X0DF3 counters:3 um:zero minimum:1000 name:PM_SUSPENDED_GRP223 : (Group 223 pm_compat_suspend) The counter is suspended (does not count) event:0X0DF4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP223 : (Group 223 pm_compat_suspend) Number of run instructions completed. event:0X0DF5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP223 : (Group 223 pm_compat_suspend) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 224 pm_compat_misc_events1, Misc Events event:0X0E00 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP224 : (Group 224 pm_compat_misc_events1) Number of PowerPC Instructions that completed. event:0X0E01 counters:1 um:zero minimum:1000 name:PM_EXT_INT_GRP224 : (Group 224 pm_compat_misc_events1) An interrupt due to an external exception occurred event:0X0E02 counters:2 um:zero minimum:1000 name:PM_TB_BIT_TRANS_GRP224 : (Group 224 pm_compat_misc_events1) When the selected time base bit (as specified in MMCR0[TBSEL])transitions from 0 to 1 event:0X0E03 counters:3 um:zero minimum:10000 name:PM_CYC_GRP224 : (Group 224 pm_compat_misc_events1) Processor Cycles event:0X0E04 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP224 : (Group 224 pm_compat_misc_events1) Number of run instructions completed. event:0X0E05 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP224 : (Group 224 pm_compat_misc_events1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 225 pm_compat_misc_events2, Misc Events event:0X0E10 counters:0 um:zero minimum:1000 name:PM_INST_IMC_MATCH_CMPL_GRP225 : (Group 225 pm_compat_misc_events2) Number of instructions resulting from the marked instructions expansion that completed. event:0X0E11 counters:1 um:zero minimum:1000 name:PM_INST_DISP_GRP225 : (Group 225 pm_compat_misc_events2) Number of PowerPC instructions successfully dispatched. event:0X0E12 counters:2 um:zero minimum:1000 name:PM_THRD_CONC_RUN_INST_GRP225 : (Group 225 pm_compat_misc_events2) Instructions completed by this thread when both threads had their run latches set. event:0X0E13 counters:3 um:zero minimum:1000 name:PM_FLUSH_GRP225 : (Group 225 pm_compat_misc_events2) Flushes occurred including LSU and Branch flushes. event:0X0E14 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP225 : (Group 225 pm_compat_misc_events2) Number of run instructions completed. event:0X0E15 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP225 : (Group 225 pm_compat_misc_events2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 226 pm_compat_misc_events3, Misc Events event:0X0E20 counters:0 um:zero minimum:1000 name:PM_GCT_NOSLOT_CYC_GRP226 : (Group 226 pm_compat_misc_events3) Cycles when the Global Completion Table has no slots from this thread. event:0X0E21 counters:1 um:zero minimum:1000 name:PM_INST_DISP_GRP226 : (Group 226 pm_compat_misc_events3) Number of PowerPC instructions successfully dispatched. event:0X0E22 counters:2 um:zero minimum:10000 name:PM_CYC_GRP226 : (Group 226 pm_compat_misc_events3) Processor Cycles event:0X0E23 counters:3 um:zero minimum:1000 name:PM_BR_MPRED_GRP226 : (Group 226 pm_compat_misc_events3) A branch instruction was incorrectly predicted. This could have been a target prediction, a condition prediction, or both event:0X0E24 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP226 : (Group 226 pm_compat_misc_events3) Number of run instructions completed. event:0X0E25 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP226 : (Group 226 pm_compat_misc_events3) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 227 pm_mrk_br, Marked Branch events event:0X0E30 counters:0 um:zero minimum:1000 name:PM_MRK_BR_TAKEN_GRP227 : (Group 227 pm_mrk_br) A marked branch was taken event:0X0E31 counters:1 um:zero minimum:1000 name:PM_MRK_LD_MISS_L1_GRP227 : (Group 227 pm_mrk_br) Marked L1 D cache load misses event:0X0E32 counters:2 um:zero minimum:1000 name:PM_MRK_BR_MPRED_GRP227 : (Group 227 pm_mrk_br) A marked branch was mispredicted event:0X0E33 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP227 : (Group 227 pm_mrk_br) Number of PowerPC Instructions that completed. event:0X0E34 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP227 : (Group 227 pm_mrk_br) Number of run instructions completed. event:0X0E35 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP227 : (Group 227 pm_mrk_br) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 228 pm_mrk_dsource1, Marked data sources event:0X0E40 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_DMEM_GRP228 : (Group 228 pm_mrk_dsource1) The processor's Data Cache was reloaded with data from memory attached to a distant module due to a marked load. event:0X0E41 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_DMEM_CYC_GRP228 : (Group 228 pm_mrk_dsource1) Marked ld latency Data Source 1110 (Distant Memory) event:0X0E42 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP228 : (Group 228 pm_mrk_dsource1) Number of PowerPC Instructions that completed. event:0X0E43 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2MISS_GRP228 : (Group 228 pm_mrk_dsource1) DL1 was reloaded from beyond L2 due to a marked demand load. event:0X0E44 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP228 : (Group 228 pm_mrk_dsource1) Number of run instructions completed. event:0X0E45 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP228 : (Group 228 pm_mrk_dsource1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 229 pm_mrk_dsource2, Marked data sources event:0X0E50 counters:0 um:zero minimum:1000 name:PM_MRK_LD_MISS_EXPOSED_CYC_GRP229 : (Group 229 pm_mrk_dsource2) Marked Load exposed Miss event:0X0E51 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP229 : (Group 229 pm_mrk_dsource2) Number of PowerPC Instructions that completed. event:0X0E52 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L21_MOD_GRP229 : (Group 229 pm_mrk_dsource2) Marked data loaded from another L2 on same chip modified event:0X0E53 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L21_MOD_CYC_GRP229 : (Group 229 pm_mrk_dsource2) Marked ld latency Data source 0101 (L2.1 M same chip) event:0X0E54 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP229 : (Group 229 pm_mrk_dsource2) Number of run instructions completed. event:0X0E55 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP229 : (Group 229 pm_mrk_dsource2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 230 pm_mrk_dsource3, Marked data sources event:0X0E60 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L3_GRP230 : (Group 230 pm_mrk_dsource3) The processor's Data Cache was reloaded from the local L3 due to a marked load. event:0X0E61 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L3MISS_GRP230 : (Group 230 pm_mrk_dsource3) DL1 was reloaded from beyond L3 due to a marked load. event:0X0E62 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP230 : (Group 230 pm_mrk_dsource3) Number of PowerPC Instructions that completed. event:0X0E63 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L3_CYC_GRP230 : (Group 230 pm_mrk_dsource3) Cycles a marked load waited for data from this level of the storage system. Counting begins when a marked load misses the data cache and ends when the data is reloaded into the data cache. To calculate average latency divide this count by the number of marked misses to the same level. event:0X0E64 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP230 : (Group 230 pm_mrk_dsource3) Number of run instructions completed. event:0X0E65 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP230 : (Group 230 pm_mrk_dsource3) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 231 pm_mrk_dsource4, Marked data sources event:0X0E70 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP231 : (Group 231 pm_mrk_dsource4) Number of PowerPC Instructions that completed. event:0X0E71 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_LMEM_CYC_GRP231 : (Group 231 pm_mrk_dsource4) Cycles a marked load waited for data from this level of the storage system. Counting begins when a marked load misses the data cache and ends when the data is reloaded into the data cache. To calculate average latency divide this count by the number of marked misses to the same level. event:0X0E72 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_LMEM_GRP231 : (Group 231 pm_mrk_dsource4) The processor's Data Cache was reloaded due to a marked load from memory attached to the same module this processor is located on. event:0X0E73 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_LMEM_GRP231 : (Group 231 pm_mrk_dsource4) The processor's Data Cache was reloaded from memory attached to the same module this processor is located on. event:0X0E74 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP231 : (Group 231 pm_mrk_dsource4) Number of run instructions completed. event:0X0E75 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP231 : (Group 231 pm_mrk_dsource4) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 232 pm_mrk_dsource5, Marked data sources event:0X0E80 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L31_MOD_GRP232 : (Group 232 pm_mrk_dsource5) Marked data loaded from another L3 on same chip modified event:0X0E81 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP232 : (Group 232 pm_mrk_dsource5) Number of PowerPC Instructions that completed. event:0X0E82 counters:2 um:zero minimum:1000 name:PM_MRK_INST_FIN_GRP232 : (Group 232 pm_mrk_dsource5) One of the execution units finished a marked instruction. Instructions that finish may not necessary complete event:0X0E83 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L31_MOD_CYC_GRP232 : (Group 232 pm_mrk_dsource5) Marked ld latency Data source 0111 (L3.1 M same chip) event:0X0E84 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP232 : (Group 232 pm_mrk_dsource5) Number of run instructions completed. event:0X0E85 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP232 : (Group 232 pm_mrk_dsource5) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 233 pm_mrk_dsource6, Marked data sources event:0X0E90 counters:0 um:zero minimum:1000 name:PM_MRK_LD_MISS_EXPOSED_CYC_COUNT_GRP233 : (Group 233 pm_mrk_dsource6) Marked Load exposed Miss (use edge detect to count #) event:0X0E91 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L21_SHR_CYC_GRP233 : (Group 233 pm_mrk_dsource6) Marked load latency Data source 0100 (L2.1 S) event:0X0E92 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L21_SHR_GRP233 : (Group 233 pm_mrk_dsource6) Marked data loaded from another L2 on same chip shared event:0X0E93 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP233 : (Group 233 pm_mrk_dsource6) Number of PowerPC Instructions that completed. event:0X0E94 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP233 : (Group 233 pm_mrk_dsource6) Number of run instructions completed. event:0X0E95 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP233 : (Group 233 pm_mrk_dsource6) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 234 pm_mrk_dsource7, Marked data sources event:0X0EA0 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2_GRP234 : (Group 234 pm_mrk_dsource7) The processor's Data Cache was reloaded from the local L2 due to a marked load. event:0X0EA1 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2_CYC_GRP234 : (Group 234 pm_mrk_dsource7) Cycles a marked load waited for data from this level of the storage system. Counting begins when a marked load misses the data cache and ends when the data is reloaded into the data cache. To calculate average latency divide this count by the number of marked misses to the same level. event:0X0EA2 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP234 : (Group 234 pm_mrk_dsource7) Number of PowerPC Instructions that completed. event:0X0EA3 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2MISS_GRP234 : (Group 234 pm_mrk_dsource7) DL1 was reloaded from beyond L2 due to a marked demand load. event:0X0EA4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP234 : (Group 234 pm_mrk_dsource7) Number of run instructions completed. event:0X0EA5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP234 : (Group 234 pm_mrk_dsource7) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 235 pm_mrk_dsource8, Marked data sources event:0X0EB0 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_RL2L3_MOD_GRP235 : (Group 235 pm_mrk_dsource8) The processor's Data Cache was reloaded with modified (M) data from an L2 or L3 on a remote module due to a marked load. event:0X0EB1 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L3MISS_GRP235 : (Group 235 pm_mrk_dsource8) DL1 was reloaded from beyond L3 due to a marked load. event:0X0EB2 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP235 : (Group 235 pm_mrk_dsource8) Number of PowerPC Instructions that completed. event:0X0EB3 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_RL2L3_MOD_CYC_GRP235 : (Group 235 pm_mrk_dsource8) Marked ld latency Data source 1001 (L2.5/L3.5 M same 4 chip node) event:0X0EB4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP235 : (Group 235 pm_mrk_dsource8) Number of run instructions completed. event:0X0EB5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP235 : (Group 235 pm_mrk_dsource8) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 236 pm_mrk_dsource9, Marked data sources event:0X0EC0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP236 : (Group 236 pm_mrk_dsource9) Number of PowerPC Instructions that completed. event:0X0EC1 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_DL2L3_SHR_CYC_GRP236 : (Group 236 pm_mrk_dsource9) Marked ld latency Data Source 1010 (Distant L2.75/L3.75 S) event:0X0EC2 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_DL2L3_SHR_GRP236 : (Group 236 pm_mrk_dsource9) The processor's Data Cache was reloaded with shared (T or SL) data from an L2 or L3 on a distant module due to a marked load. event:0X0EC3 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2MISS_GRP236 : (Group 236 pm_mrk_dsource9) DL1 was reloaded from beyond L2 due to a marked demand load. event:0X0EC4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP236 : (Group 236 pm_mrk_dsource9) Number of run instructions completed. event:0X0EC5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP236 : (Group 236 pm_mrk_dsource9) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 237 pm_mrk_dsource10, Marked data sources event:0X0ED0 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_RL2L3_SHR_GRP237 : (Group 237 pm_mrk_dsource10) The processor's Data Cache was reloaded with shared (T or SL) data from an L2 or L3 on a remote module due to a marked load event:0X0ED1 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_RL2L3_SHR_CYC_GRP237 : (Group 237 pm_mrk_dsource10) Marked load latency Data Source 1000 (Remote L2.5/L3.5 S) event:0X0ED2 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_RMEM_GRP237 : (Group 237 pm_mrk_dsource10) The processor's Data Cache was reloaded from memory attached to a different module than this processor is located on. event:0X0ED3 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP237 : (Group 237 pm_mrk_dsource10) Number of PowerPC Instructions that completed. event:0X0ED4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP237 : (Group 237 pm_mrk_dsource10) Number of run instructions completed. event:0X0ED5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP237 : (Group 237 pm_mrk_dsource10) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 238 pm_mrk_dsource11, Marked data sources event:0X0EE0 counters:0 um:zero minimum:1000 name:PM_MRK_LD_MISS_EXPOSED_CYC_GRP238 : (Group 238 pm_mrk_dsource11) Marked Load exposed Miss event:0X0EE1 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP238 : (Group 238 pm_mrk_dsource11) Number of PowerPC Instructions that completed. event:0X0EE2 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_RMEM_GRP238 : (Group 238 pm_mrk_dsource11) The processor's Data Cache was reloaded due to a marked load from memory attached to a different module than this processor is located on. event:0X0EE3 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_RMEM_CYC_GRP238 : (Group 238 pm_mrk_dsource11) Cycles a marked load waited for data from this level of the storage system. Counting begins when a marked load misses the data cache and ends when the data is reloaded into the data cache. To calculate average latency divide this count by the number of marked misses to the same level. event:0X0EE4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP238 : (Group 238 pm_mrk_dsource11) Number of run instructions completed. event:0X0EE5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP238 : (Group 238 pm_mrk_dsource11) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 239 pm_mrk_dsource12, Marked data sources event:0X0EF0 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L31_SHR_GRP239 : (Group 239 pm_mrk_dsource12) Marked data loaded from another L3 on same chip shared event:0X0EF1 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L31_SHR_CYC_GRP239 : (Group 239 pm_mrk_dsource12) Marked load latency Data source 0110 (L3.1 S) event:0X0EF2 counters:2 um:zero minimum:1000 name:PM_MRK_INST_FIN_GRP239 : (Group 239 pm_mrk_dsource12) One of the execution units finished a marked instruction. Instructions that finish may not necessary complete event:0X0EF3 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP239 : (Group 239 pm_mrk_dsource12) Number of PowerPC Instructions that completed. event:0X0EF4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP239 : (Group 239 pm_mrk_dsource12) Number of run instructions completed. event:0X0EF5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP239 : (Group 239 pm_mrk_dsource12) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 240 pm_mrk_dsource13, Marked data sources event:0X0F00 counters:0 um:zero minimum:1000 name:PM_MRK_LD_MISS_EXPOSED_CYC_COUNT_GRP240 : (Group 240 pm_mrk_dsource13) Marked Load exposed Miss (use edge detect to count #) event:0X0F01 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP240 : (Group 240 pm_mrk_dsource13) Number of PowerPC Instructions that completed. event:0X0F02 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_DL2L3_MOD_GRP240 : (Group 240 pm_mrk_dsource13) The processor's Data Cache was reloaded with modified (M) data from an L2 or L3 on a distant module due to a marked load. event:0X0F03 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_DL2L3_MOD_CYC_GRP240 : (Group 240 pm_mrk_dsource13) Marked ld latency Data source 1011 (L2.75/L3.75 M different 4 chip node) event:0X0F04 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP240 : (Group 240 pm_mrk_dsource13) Number of run instructions completed. event:0X0F05 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP240 : (Group 240 pm_mrk_dsource13) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 241 pm_mrk_lsu_flush1, Marked LSU Flush event:0X0F10 counters:0 um:zero minimum:1000 name:PM_MRK_LSU_FLUSH_ULD_GRP241 : (Group 241 pm_mrk_lsu_flush1) A marked load was flushed because it was unaligned (crossed a 64byte boundary, or 32 byte if it missed the L1) event:0X0F11 counters:1 um:zero minimum:1000 name:PM_MRK_LSU_FLUSH_UST_GRP241 : (Group 241 pm_mrk_lsu_flush1) A marked store was flushed because it was unaligned event:0X0F12 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP241 : (Group 241 pm_mrk_lsu_flush1) Number of PowerPC Instructions that completed. event:0X0F13 counters:3 um:zero minimum:10000 name:PM_CYC_GRP241 : (Group 241 pm_mrk_lsu_flush1) Processor Cycles event:0X0F14 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP241 : (Group 241 pm_mrk_lsu_flush1) Number of run instructions completed. event:0X0F15 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP241 : (Group 241 pm_mrk_lsu_flush1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 242 pm_mrk_lsu_flush2, Marked LSU Flush event:0X0F20 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP242 : (Group 242 pm_mrk_lsu_flush2) Number of PowerPC Instructions that completed. event:0X0F21 counters:1 um:zero minimum:10000 name:PM_CYC_GRP242 : (Group 242 pm_mrk_lsu_flush2) Processor Cycles event:0X0F22 counters:2 um:zero minimum:1000 name:PM_MRK_LSU_FLUSH_LRQ_GRP242 : (Group 242 pm_mrk_lsu_flush2) Load Hit Load or Store Hit Load flush. A marked load was flushed because it executed before an older store and they had overlapping data OR two loads executed out of order and they have byte overlap and there was a snoop in between to an overlapped byte. event:0X0F23 counters:3 um:zero minimum:1000 name:PM_MRK_LSU_FLUSH_SRQ_GRP242 : (Group 242 pm_mrk_lsu_flush2) Load Hit Store flush. A marked load was flushed because it hits (overlaps) an older store that is already in the SRQ or in the same group. If the real addresses match but the effective addresses do not, an alias condition exists that prevents store forwarding. If the load and store are in the same group the load must be flushed to separate the two instructions. event:0X0F24 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP242 : (Group 242 pm_mrk_lsu_flush2) Number of run instructions completed. event:0X0F25 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP242 : (Group 242 pm_mrk_lsu_flush2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 243 pm_mrk_rejects, Marked rejects event:0X0F30 counters:0 um:zero minimum:1000 name:PM_MRK_LSU_REJECT_LHS_GRP243 : (Group 243 pm_mrk_rejects) The Load Store Unit rejected a marked load instruction that had an address overlap with an older store in the store queue. The store must be committed and de-allocated from the Store Queue before the load can execute successfully event:0X0F31 counters:1 um:zero minimum:1000 name:PM_MRK_LSU_FLUSH_GRP243 : (Group 243 pm_mrk_rejects) Marked flush initiated by LSU event:0X0F32 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP243 : (Group 243 pm_mrk_rejects) Number of PowerPC Instructions that completed. event:0X0F33 counters:3 um:zero minimum:1000 name:PM_MRK_LSU_REJECT_GRP243 : (Group 243 pm_mrk_rejects) LSU marked reject (up to 2 per cycle) event:0X0F34 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP243 : (Group 243 pm_mrk_rejects) Number of run instructions completed. event:0X0F35 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP243 : (Group 243 pm_mrk_rejects) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 244 pm_mrk_inst, Marked instruction events event:0X0F40 counters:0 um:zero minimum:1000 name:PM_MRK_INST_ISSUED_GRP244 : (Group 244 pm_mrk_inst) A marked instruction was issued to an execution unit. event:0X0F41 counters:1 um:zero minimum:1000 name:PM_MRK_INST_DISP_GRP244 : (Group 244 pm_mrk_inst) A marked instruction was dispatched event:0X0F42 counters:2 um:zero minimum:1000 name:PM_MRK_INST_FIN_GRP244 : (Group 244 pm_mrk_inst) One of the execution units finished a marked instruction. Instructions that finish may not necessary complete event:0X0F43 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP244 : (Group 244 pm_mrk_inst) Number of PowerPC Instructions that completed. event:0X0F44 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP244 : (Group 244 pm_mrk_inst) Number of run instructions completed. event:0X0F45 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP244 : (Group 244 pm_mrk_inst) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 245 pm_mrk_st, Marked stores events event:0X0F50 counters:0 um:zero minimum:1000 name:PM_MRK_ST_CMPL_GRP245 : (Group 245 pm_mrk_st) A sampled store has completed (data home) event:0X0F51 counters:1 um:zero minimum:1000 name:PM_MRK_ST_NEST_GRP245 : (Group 245 pm_mrk_st) A sampled store has been sent to the memory subsystem event:0X0F52 counters:2 um:zero minimum:1000 name:PM_MRK_ST_CMPL_INT_GRP245 : (Group 245 pm_mrk_st) A marked store previously sent to the memory subsystem completed (data home) after requiring intervention event:0X0F53 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP245 : (Group 245 pm_mrk_st) Number of PowerPC Instructions that completed. event:0X0F54 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP245 : (Group 245 pm_mrk_st) Number of run instructions completed. event:0X0F55 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP245 : (Group 245 pm_mrk_st) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 246 pm_mrk_dtlb_miss1, Marked Data TLB Miss event:0X0F60 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP246 : (Group 246 pm_mrk_dtlb_miss1) Number of PowerPC Instructions that completed. event:0X0F61 counters:1 um:zero minimum:1000 name:PM_MRK_DTLB_MISS_4K_GRP246 : (Group 246 pm_mrk_dtlb_miss1) Data TLB references to 4KB pages by a marked instruction that missed the TLB. Page size is determined at TLB reload time. event:0X0F62 counters:2 um:zero minimum:1000 name:PM_MRK_DTLB_MISS_64K_GRP246 : (Group 246 pm_mrk_dtlb_miss1) Data TLB references to 64KB pages by a marked instruction that missed the TLB. Page size is determined at TLB reload time. event:0X0F63 counters:3 um:zero minimum:1000 name:PM_MRK_DTLB_MISS_16M_GRP246 : (Group 246 pm_mrk_dtlb_miss1) Data TLB references to 16M pages by a marked instruction that missed the TLB. Page size is determined at TLB reload time. event:0X0F64 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP246 : (Group 246 pm_mrk_dtlb_miss1) Number of run instructions completed. event:0X0F65 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP246 : (Group 246 pm_mrk_dtlb_miss1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 247 pm_mrk_dtlb_miss2, Marked Data TLB Miss event:0X0F70 counters:0 um:zero minimum:1000 name:PM_MRK_DTLB_MISS_16G_GRP247 : (Group 247 pm_mrk_dtlb_miss2) Data TLB references to 16GB pages by a marked instruction that missed the TLB. Page size is determined at TLB reload time. event:0X0F71 counters:1 um:zero minimum:1000 name:PM_MRK_DTLB_MISS_4K_GRP247 : (Group 247 pm_mrk_dtlb_miss2) Data TLB references to 4KB pages by a marked instruction that missed the TLB. Page size is determined at TLB reload time. event:0X0F72 counters:2 um:zero minimum:1000 name:PM_MRK_DTLB_MISS_64K_GRP247 : (Group 247 pm_mrk_dtlb_miss2) Data TLB references to 64KB pages by a marked instruction that missed the TLB. Page size is determined at TLB reload time. event:0X0F73 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP247 : (Group 247 pm_mrk_dtlb_miss2) Number of PowerPC Instructions that completed. event:0X0F74 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP247 : (Group 247 pm_mrk_dtlb_miss2) Number of run instructions completed. event:0X0F75 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP247 : (Group 247 pm_mrk_dtlb_miss2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 248 pm_mrk_derat_miss1, Marked DERAT Miss events event:0X0F80 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP248 : (Group 248 pm_mrk_derat_miss1) Number of PowerPC Instructions that completed. event:0X0F81 counters:1 um:zero minimum:1000 name:PM_MRK_DERAT_MISS_64K_GRP248 : (Group 248 pm_mrk_derat_miss1) A marked data request (load or store) missed the ERAT for 64K page and resulted in an ERAT reload. event:0X0F82 counters:2 um:zero minimum:1000 name:PM_MRK_DERAT_MISS_16M_GRP248 : (Group 248 pm_mrk_derat_miss1) A marked data request (load or store) missed the ERAT for 16M page and resulted in an ERAT reload. event:0X0F83 counters:3 um:zero minimum:1000 name:PM_MRK_DERAT_MISS_16G_GRP248 : (Group 248 pm_mrk_derat_miss1) A marked data request (load or store) missed the ERAT for 16G page and resulted in an ERAT reload. event:0X0F84 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP248 : (Group 248 pm_mrk_derat_miss1) Number of run instructions completed. event:0X0F85 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP248 : (Group 248 pm_mrk_derat_miss1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 249 pm_mrk_derat_miss2, Marked DERAT Miss events event:0X0F90 counters:0 um:zero minimum:1000 name:PM_MRK_DERAT_MISS_4K_GRP249 : (Group 249 pm_mrk_derat_miss2) A marked data request (load or store) missed the ERAT for 4K page and resulted in an ERAT reload. event:0X0F91 counters:1 um:zero minimum:1000 name:PM_MRK_DERAT_MISS_64K_GRP249 : (Group 249 pm_mrk_derat_miss2) A marked data request (load or store) missed the ERAT for 64K page and resulted in an ERAT reload. event:0X0F92 counters:2 um:zero minimum:1000 name:PM_MRK_DERAT_MISS_16M_GRP249 : (Group 249 pm_mrk_derat_miss2) A marked data request (load or store) missed the ERAT for 16M page and resulted in an ERAT reload. event:0X0F93 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP249 : (Group 249 pm_mrk_derat_miss2) Number of PowerPC Instructions that completed. event:0X0F94 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP249 : (Group 249 pm_mrk_derat_miss2) Number of run instructions completed. event:0X0F95 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP249 : (Group 249 pm_mrk_derat_miss2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 250 pm_mrk_misc_miss, marked Miss Events event:0X0FA0 counters:0 um:zero minimum:1000 name:PM_MRK_LD_MISS_EXPOSED_CYC_GRP250 : (Group 250 pm_mrk_misc_miss) Marked Load exposed Miss event:0X0FA1 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP250 : (Group 250 pm_mrk_misc_miss) Number of PowerPC Instructions that completed. event:0X0FA2 counters:2 um:zero minimum:1000 name:PM_MRK_LSU_DERAT_MISS_GRP250 : (Group 250 pm_mrk_misc_miss) Marked DERAT Miss event:0X0FA3 counters:3 um:zero minimum:1000 name:PM_MRK_LD_MISS_L1_CYC_GRP250 : (Group 250 pm_mrk_misc_miss) L1 data load miss cycles event:0X0FA4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP250 : (Group 250 pm_mrk_misc_miss) Number of run instructions completed. event:0X0FA5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP250 : (Group 250 pm_mrk_misc_miss) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 251 pm_mrk_pteg1, Marked PTEG event:0X0FB0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP251 : (Group 251 pm_mrk_pteg1) Number of PowerPC Instructions that completed. event:0X0FB1 counters:1 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_DMEM_GRP251 : (Group 251 pm_mrk_pteg1) A Page Table Entry was loaded into the ERAT from memory attached to a different module than this processor is located on due to a marked load or store. event:0X0FB2 counters:2 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_L21_MOD_GRP251 : (Group 251 pm_mrk_pteg1) Marked PTEG loaded from another L2 on same chip modified event:0X0FB3 counters:3 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_L21_SHR_GRP251 : (Group 251 pm_mrk_pteg1) Marked PTEG loaded from another L2 on same chip shared event:0X0FB4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP251 : (Group 251 pm_mrk_pteg1) Number of run instructions completed. event:0X0FB5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP251 : (Group 251 pm_mrk_pteg1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 252 pm_mrk_pteg2, Marked PTEG event:0X0FC0 counters:0 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_L2_GRP252 : (Group 252 pm_mrk_pteg2) A Page Table Entry was loaded into the ERAT from the local L2 due to a marked load or store. event:0X0FC1 counters:1 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_RL2L3_SHR_GRP252 : (Group 252 pm_mrk_pteg2) A Page Table Entry was loaded into the ERAT from memory attached to a different module than this processor is located on due to a marked load or store. event:0X0FC2 counters:2 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_RMEM_GRP252 : (Group 252 pm_mrk_pteg2) A Page Table Entry was loaded into the ERAT. POWER6 does not have a TLB event:0X0FC3 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP252 : (Group 252 pm_mrk_pteg2) Number of PowerPC Instructions that completed. event:0X0FC4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP252 : (Group 252 pm_mrk_pteg2) Number of run instructions completed. event:0X0FC5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP252 : (Group 252 pm_mrk_pteg2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 253 pm_mrk_pteg3, Marked PTEG event:0X0FD0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP253 : (Group 253 pm_mrk_pteg3) Number of PowerPC Instructions that completed. event:0X0FD1 counters:1 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_L31_SHR_GRP253 : (Group 253 pm_mrk_pteg3) Marked PTEG loaded from another L3 on same chip shared event:0X0FD2 counters:2 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_L21_MOD_GRP253 : (Group 253 pm_mrk_pteg3) Marked PTEG loaded from another L2 on same chip modified event:0X0FD3 counters:3 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_DL2L3_MOD_GRP253 : (Group 253 pm_mrk_pteg3) A Page Table Entry was loaded into the ERAT with modified (M) data from an L2 or L3 on a distant module due to a marked load or store. event:0X0FD4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP253 : (Group 253 pm_mrk_pteg3) Number of run instructions completed. event:0X0FD5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP253 : (Group 253 pm_mrk_pteg3) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 254 pm_mrk_pteg4, Marked PTEG event:0X0FE0 counters:0 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_L31_MOD_GRP254 : (Group 254 pm_mrk_pteg4) Marked PTEG loaded from another L3 on same chip modified event:0X0FE1 counters:1 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_L3_GRP254 : (Group 254 pm_mrk_pteg4) A Page Table Entry was loaded into the ERAT from the local L3 due to a marked load or store. event:0X0FE2 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP254 : (Group 254 pm_mrk_pteg4) Number of PowerPC Instructions that completed. event:0X0FE3 counters:3 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_L2MISS_GRP254 : (Group 254 pm_mrk_pteg4) A Page Table Entry was loaded into the ERAT but not from the local L2 due to a marked load or store. event:0X0FE4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP254 : (Group 254 pm_mrk_pteg4) Number of run instructions completed. event:0X0FE5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP254 : (Group 254 pm_mrk_pteg4) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 255 pm_mrk_pteg5, Marked PTEG event:0X0FF0 counters:0 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_RL2L3_MOD_GRP255 : (Group 255 pm_mrk_pteg5) A Page Table Entry was loaded into the ERAT with shared (T or SL) data from an L2 or L3 on a remote module due to a marked load or store. event:0X0FF1 counters:1 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_L3MISS_GRP255 : (Group 255 pm_mrk_pteg5) A Page Table Entry was loaded into the ERAT from beyond the L3 due to a marked load or store event:0X0FF2 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP255 : (Group 255 pm_mrk_pteg5) Number of PowerPC Instructions that completed. event:0X0FF3 counters:3 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_LMEM_GRP255 : (Group 255 pm_mrk_pteg5) A Page Table Entry was loaded into the ERAT from memory attached to the same module this processor is located on due to a marked load or store. event:0X0FF4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP255 : (Group 255 pm_mrk_pteg5) Number of run instructions completed. event:0X0FF5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP255 : (Group 255 pm_mrk_pteg5) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 256 pm_mrk_misc1, Marked misc events event:0X1000 counters:0 um:zero minimum:1000 name:PM_MRK_STCX_FAIL_GRP256 : (Group 256 pm_mrk_misc1) A marked stcx (stwcx or stdcx) failed event:0X1001 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP256 : (Group 256 pm_mrk_misc1) Number of PowerPC Instructions that completed. event:0X1002 counters:2 um:zero minimum:1000 name:PM_MRK_IFU_FIN_GRP256 : (Group 256 pm_mrk_misc1) The Instruction Fetch Unit finished a marked instruction. event:0X1003 counters:3 um:zero minimum:1000 name:PM_MRK_INST_TIMEO_GRP256 : (Group 256 pm_mrk_misc1) The number of instructions finished since the last progress indicator from a marked instruction exceeded the threshold. The marked instruction was flushed. event:0X1004 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP256 : (Group 256 pm_mrk_misc1) Number of run instructions completed. event:0X1005 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP256 : (Group 256 pm_mrk_misc1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 257 pm_mrk_misc2, Marked misc events event:0X1010 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP257 : (Group 257 pm_mrk_misc2) Number of PowerPC Instructions that completed. event:0X1011 counters:1 um:zero minimum:1000 name:PM_MRK_FXU_FIN_GRP257 : (Group 257 pm_mrk_misc2) One of the Fixed Point Units finished a marked instruction. Instructions that finish may not necessary complete. event:0X1012 counters:2 um:zero minimum:1000 name:PM_MRK_IFU_FIN_GRP257 : (Group 257 pm_mrk_misc2) The Instruction Fetch Unit finished a marked instruction. event:0X1013 counters:3 um:zero minimum:1000 name:PM_MRK_LSU_FIN_GRP257 : (Group 257 pm_mrk_misc2) One of the Load/Store Units finished a marked instruction. Instructions that finish may not necessary complete event:0X1014 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP257 : (Group 257 pm_mrk_misc2) Number of run instructions completed. event:0X1015 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP257 : (Group 257 pm_mrk_misc2) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 258 pm_mrk_misc3, Marked misc events event:0X1020 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP258 : (Group 258 pm_mrk_misc3) Number of PowerPC Instructions that completed. event:0X1021 counters:1 um:zero minimum:1000 name:PM_MRK_BRU_FIN_GRP258 : (Group 258 pm_mrk_misc3) The branch unit finished a marked instruction. Instructions that finish may not necessary complete. event:0X1022 counters:2 um:zero minimum:1000 name:PM_MRK_LSU_PARTIAL_CDF_GRP258 : (Group 258 pm_mrk_misc3) A partial cacheline was returned from the L3 for a marked load event:0X1023 counters:3 um:zero minimum:1000 name:PM_MRK_LSU_FIN_GRP258 : (Group 258 pm_mrk_misc3) One of the Load/Store Units finished a marked instruction. Instructions that finish may not necessary complete event:0X1024 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP258 : (Group 258 pm_mrk_misc3) Number of run instructions completed. event:0X1025 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP258 : (Group 258 pm_mrk_misc3) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 259 pm_mrk_misc4, Marked misc events event:0X1030 counters:0 um:zero minimum:1000 name:PM_MRK_FIN_STALL_CYC_GRP259 : (Group 259 pm_mrk_misc4) Marked instruction Finish Stall cycles (marked finish after NTC) event:0X1031 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP259 : (Group 259 pm_mrk_misc4) Number of PowerPC Instructions that completed. event:0X1032 counters:2 um:zero minimum:1000 name:PM_MRK_VSU_FIN_GRP259 : (Group 259 pm_mrk_misc4) vsu (fpu) marked instr finish event:0X1033 counters:3 um:zero minimum:1000 name:PM_MRK_GRP_IC_MISS_GRP259 : (Group 259 pm_mrk_misc4) A group containing a marked (sampled) instruction experienced an instruction cache miss. event:0X1034 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP259 : (Group 259 pm_mrk_misc4) Number of run instructions completed. event:0X1035 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP259 : (Group 259 pm_mrk_misc4) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 260 pm_mrk_misc5, Marked misc events event:0X1040 counters:0 um:zero minimum:1000 name:PM_MRK_FIN_STALL_CYC_COUNT_GRP260 : (Group 260 pm_mrk_misc5) Marked instruction Finish Stall cycles (marked finish after NTC) (use edge detect to count #) event:0X1041 counters:1 um:zero minimum:1000 name:PM_MRK_DFU_FIN_GRP260 : (Group 260 pm_mrk_misc5) The Decimal Floating Point Unit finished a marked instruction. event:0X1042 counters:2 um:zero minimum:1000 name:PM_MRK_STALL_CMPLU_CYC_COUNT_GRP260 : (Group 260 pm_mrk_misc5) Marked Group Completion Stall cycles (use edge detect to count #) event:0X1043 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP260 : (Group 260 pm_mrk_misc5) Number of PowerPC Instructions that completed. event:0X1044 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP260 : (Group 260 pm_mrk_misc5) Number of run instructions completed. event:0X1045 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP260 : (Group 260 pm_mrk_misc5) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 261 pm_mrk_misc6, Marked misc events event:0X1050 counters:0 um:zero minimum:1000 name:PM_GRP_MRK_CYC_GRP261 : (Group 261 pm_mrk_misc6) cycles IDU marked instruction before dispatch event:0X1051 counters:1 um:zero minimum:10000 name:PM_RUN_CYC_GRP261 : (Group 261 pm_mrk_misc6) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. event:0X1052 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP261 : (Group 261 pm_mrk_misc6) Number of PowerPC Instructions that completed. event:0X1053 counters:3 um:zero minimum:1000 name:PM_MRK_GRP_CMPL_GRP261 : (Group 261 pm_mrk_misc6) A group containing a sampled instruction completed. Microcoded instructions that span multiple groups will generate this event once per group. event:0X1054 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP261 : (Group 261 pm_mrk_misc6) Number of run instructions completed. event:0X1055 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP261 : (Group 261 pm_mrk_misc6) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 262 pm_mrk_misc7, Marked misc events event:0X1060 counters:0 um:zero minimum:1000 name:PM_MRK_LSU_REJECT_LHS_GRP262 : (Group 262 pm_mrk_misc7) The Load Store Unit rejected a marked load instruction that had an address overlap with an older store in the store queue. The store must be committed and de-allocated from the Store Queue before the load can execute successfully event:0X1061 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP262 : (Group 262 pm_mrk_misc7) Number of PowerPC Instructions that completed. event:0X1062 counters:2 um:zero minimum:1000 name:PM_MRK_LSU_REJECT_ERAT_MISS_GRP262 : (Group 262 pm_mrk_misc7) LSU marked reject due to ERAT (up to 2 per cycle) event:0X1063 counters:3 um:zero minimum:1000 name:PM_MRK_LSU_REJECT_GRP262 : (Group 262 pm_mrk_misc7) LSU marked reject (up to 2 per cycle) event:0X1064 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP262 : (Group 262 pm_mrk_misc7) Number of run instructions completed. event:0X1065 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP262 : (Group 262 pm_mrk_misc7) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. #Group 263 pm_mrk_misc8, Marked misc events event:0X1070 counters:0 um:zero minimum:10000 name:PM_CYC_GRP263 : (Group 263 pm_mrk_misc8) Processor Cycles event:0X1071 counters:1 um:zero minimum:10000 name:PM_CYC_GRP263 : (Group 263 pm_mrk_misc8) Processor Cycles event:0X1072 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP263 : (Group 263 pm_mrk_misc8) Number of PowerPC Instructions that completed. event:0X1073 counters:3 um:zero minimum:1000 name:PM_MRK_LSU_FIN_GRP263 : (Group 263 pm_mrk_misc8) One of the Load/Store Units finished a marked instruction. Instructions that finish may not necessary complete event:0X1074 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP263 : (Group 263 pm_mrk_misc8) Number of run instructions completed. event:0X1075 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP263 : (Group 263 pm_mrk_misc8) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop. oprofile-0.9.9/events/ppc64/power7/unit_masks0000664000076400007640000000035412175510133016066 00000000000000# # Copyright OProfile authors # Copyright (c) International Business Machines, 2009. # Contributed by Maynard Johnson . # # ppc64 POWER7 possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/ppc64/power7/event_mappings0000664000076400007640000036412212175510133016736 00000000000000# # Copyright OProfile authors # Copyright (c) International Business Machines, 2009, 2011. # Contributed by Maynard Johnson . # #Mapping of event groups to MMCR values #Group Default event:0X001 mmcr0:0X00000000 mmcr1:0X000000001EF4F202 mmcra:0X00000000 #Group 1 pm_utilization, CPI and utilization data event:0X0010 mmcr0:0X00000000 mmcr1:0X000000001EF4F202 mmcra:0X00000000 event:0X0011 mmcr0:0X00000000 mmcr1:0X000000001EF4F202 mmcra:0X00000000 event:0X0012 mmcr0:0X00000000 mmcr1:0X000000001EF4F202 mmcra:0X00000000 event:0X0013 mmcr0:0X00000000 mmcr1:0X000000001EF4F202 mmcra:0X00000000 event:0X0014 mmcr0:0X00000000 mmcr1:0X000000001EF4F202 mmcra:0X00000000 event:0X0015 mmcr0:0X00000000 mmcr1:0X000000001EF4F202 mmcra:0X00000000 #Group 2 pm_branch1, Branch operations event:0X0020 mmcr0:0X00000000 mmcr1:0X44440000A0A2A4AE mmcra:0X00000000 event:0X0021 mmcr0:0X00000000 mmcr1:0X44440000A0A2A4AE mmcra:0X00000000 event:0X0022 mmcr0:0X00000000 mmcr1:0X44440000A0A2A4AE mmcra:0X00000000 event:0X0023 mmcr0:0X00000000 mmcr1:0X44440000A0A2A4AE mmcra:0X00000000 event:0X0024 mmcr0:0X00000000 mmcr1:0X44440000A0A2A4AE mmcra:0X00000000 event:0X0025 mmcr0:0X00000000 mmcr1:0X44440000A0A2A4AE mmcra:0X00000000 #Group 3 pm_branch2, Branch operations event:0X0030 mmcr0:0X00000000 mmcr1:0X444400009CA8A0A2 mmcra:0X00000000 event:0X0031 mmcr0:0X00000000 mmcr1:0X444400009CA8A0A2 mmcra:0X00000000 event:0X0032 mmcr0:0X00000000 mmcr1:0X444400009CA8A0A2 mmcra:0X00000000 event:0X0033 mmcr0:0X00000000 mmcr1:0X444400009CA8A0A2 mmcra:0X00000000 event:0X0034 mmcr0:0X00000000 mmcr1:0X444400009CA8A0A2 mmcra:0X00000000 event:0X0035 mmcr0:0X00000000 mmcr1:0X444400009CA8A0A2 mmcra:0X00000000 #Group 4 pm_branch3, Branch operations event:0X0040 mmcr0:0X00000000 mmcr1:0X0040000068049CF6 mmcra:0X00000000 event:0X0041 mmcr0:0X00000000 mmcr1:0X0040000068049CF6 mmcra:0X00000000 event:0X0042 mmcr0:0X00000000 mmcr1:0X0040000068049CF6 mmcra:0X00000000 event:0X0043 mmcr0:0X00000000 mmcr1:0X0040000068049CF6 mmcra:0X00000000 event:0X0044 mmcr0:0X00000000 mmcr1:0X0040000068049CF6 mmcra:0X00000000 event:0X0045 mmcr0:0X00000000 mmcr1:0X0040000068049CF6 mmcra:0X00000000 #Group 5 pm_branch4, Branch operations event:0X0050 mmcr0:0X00000000 mmcr1:0X44440000AC9EAEA4 mmcra:0X00000000 event:0X0051 mmcr0:0X00000000 mmcr1:0X44440000AC9EAEA4 mmcra:0X00000000 event:0X0052 mmcr0:0X00000000 mmcr1:0X44440000AC9EAEA4 mmcra:0X00000000 event:0X0053 mmcr0:0X00000000 mmcr1:0X44440000AC9EAEA4 mmcra:0X00000000 event:0X0054 mmcr0:0X00000000 mmcr1:0X44440000AC9EAEA4 mmcra:0X00000000 event:0X0055 mmcr0:0X00000000 mmcr1:0X44440000AC9EAEA4 mmcra:0X00000000 #Group 6 pm_branch5, Branch operations event:0X0060 mmcr0:0X00000000 mmcr1:0X4444000CAAAE9CA8 mmcra:0X00000000 event:0X0061 mmcr0:0X00000000 mmcr1:0X4444000CAAAE9CA8 mmcra:0X00000000 event:0X0062 mmcr0:0X00000000 mmcr1:0X4444000CAAAE9CA8 mmcra:0X00000000 event:0X0063 mmcr0:0X00000000 mmcr1:0X4444000CAAAE9CA8 mmcra:0X00000000 event:0X0064 mmcr0:0X00000000 mmcr1:0X4444000CAAAE9CA8 mmcra:0X00000000 event:0X0065 mmcr0:0X00000000 mmcr1:0X4444000CAAAE9CA8 mmcra:0X00000000 #Group 7 pm_branch6, Branch operations event:0X0070 mmcr0:0X00000000 mmcr1:0X44440000A0A2A8AA mmcra:0X00000000 event:0X0071 mmcr0:0X00000000 mmcr1:0X44440000A0A2A8AA mmcra:0X00000000 event:0X0072 mmcr0:0X00000000 mmcr1:0X44440000A0A2A8AA mmcra:0X00000000 event:0X0073 mmcr0:0X00000000 mmcr1:0X44440000A0A2A8AA mmcra:0X00000000 event:0X0074 mmcr0:0X00000000 mmcr1:0X44440000A0A2A8AA mmcra:0X00000000 event:0X0075 mmcr0:0X00000000 mmcr1:0X44440000A0A2A8AA mmcra:0X00000000 #Group 8 pm_branch7, Branch operations event:0X0080 mmcr0:0X00000000 mmcr1:0X44440000ACA8A0A2 mmcra:0X00000000 event:0X0081 mmcr0:0X00000000 mmcr1:0X44440000ACA8A0A2 mmcra:0X00000000 event:0X0082 mmcr0:0X00000000 mmcr1:0X44440000ACA8A0A2 mmcra:0X00000000 event:0X0083 mmcr0:0X00000000 mmcr1:0X44440000ACA8A0A2 mmcra:0X00000000 event:0X0084 mmcr0:0X00000000 mmcr1:0X44440000ACA8A0A2 mmcra:0X00000000 event:0X0085 mmcr0:0X00000000 mmcr1:0X44440000ACA8A0A2 mmcra:0X00000000 #Group 9 pm_branch8, Branch operations event:0X0090 mmcr0:0X00000000 mmcr1:0X44440000AEA8A0A2 mmcra:0X00000000 event:0X0091 mmcr0:0X00000000 mmcr1:0X44440000AEA8A0A2 mmcra:0X00000000 event:0X0092 mmcr0:0X00000000 mmcr1:0X44440000AEA8A0A2 mmcra:0X00000000 event:0X0093 mmcr0:0X00000000 mmcr1:0X44440000AEA8A0A2 mmcra:0X00000000 event:0X0094 mmcr0:0X00000000 mmcr1:0X44440000AEA8A0A2 mmcra:0X00000000 event:0X0095 mmcr0:0X00000000 mmcr1:0X44440000AEA8A0A2 mmcra:0X00000000 #Group 10 pm_branch9, Branch operations event:0X00A0 mmcr0:0X00000000 mmcr1:0X44440000A4A8A0A2 mmcra:0X00000000 event:0X00A1 mmcr0:0X00000000 mmcr1:0X44440000A4A8A0A2 mmcra:0X00000000 event:0X00A2 mmcr0:0X00000000 mmcr1:0X44440000A4A8A0A2 mmcra:0X00000000 event:0X00A3 mmcr0:0X00000000 mmcr1:0X44440000A4A8A0A2 mmcra:0X00000000 event:0X00A4 mmcr0:0X00000000 mmcr1:0X44440000A4A8A0A2 mmcra:0X00000000 event:0X00A5 mmcr0:0X00000000 mmcr1:0X44440000A4A8A0A2 mmcra:0X00000000 #Group 11 pm_slb_miss, SLB Misses event:0X00B0 mmcr0:0X00000000 mmcr1:0X0DDD0001F6909290 mmcra:0X00000000 event:0X00B1 mmcr0:0X00000000 mmcr1:0X0DDD0001F6909290 mmcra:0X00000000 event:0X00B2 mmcr0:0X00000000 mmcr1:0X0DDD0001F6909290 mmcra:0X00000000 event:0X00B3 mmcr0:0X00000000 mmcr1:0X0DDD0001F6909290 mmcra:0X00000000 event:0X00B4 mmcr0:0X00000000 mmcr1:0X0DDD0001F6909290 mmcra:0X00000000 event:0X00B5 mmcr0:0X00000000 mmcr1:0X0DDD0001F6909290 mmcra:0X00000000 #Group 12 pm_tlb_miss, TLB Misses event:0X00C0 mmcr0:0X00000000 mmcr1:0X500000008866FCFC mmcra:0X00000000 event:0X00C1 mmcr0:0X00000000 mmcr1:0X500000008866FCFC mmcra:0X00000000 event:0X00C2 mmcr0:0X00000000 mmcr1:0X500000008866FCFC mmcra:0X00000000 event:0X00C3 mmcr0:0X00000000 mmcr1:0X500000008866FCFC mmcra:0X00000000 event:0X00C4 mmcr0:0X00000000 mmcr1:0X500000008866FCFC mmcra:0X00000000 event:0X00C5 mmcr0:0X00000000 mmcr1:0X500000008866FCFC mmcra:0X00000000 #Group 13 pm_dtlb_miss, DTLB Misses event:0X00D0 mmcr0:0X00000000 mmcr1:0XCCCC00005E5E5E5E mmcra:0X00000000 event:0X00D1 mmcr0:0X00000000 mmcr1:0XCCCC00005E5E5E5E mmcra:0X00000000 event:0X00D2 mmcr0:0X00000000 mmcr1:0XCCCC00005E5E5E5E mmcra:0X00000000 event:0X00D3 mmcr0:0X00000000 mmcr1:0XCCCC00005E5E5E5E mmcra:0X00000000 event:0X00D4 mmcr0:0X00000000 mmcr1:0XCCCC00005E5E5E5E mmcra:0X00000000 event:0X00D5 mmcr0:0X00000000 mmcr1:0XCCCC00005E5E5E5E mmcra:0X00000000 #Group 14 pm_derat_miss1, DERAT misses event:0X00E0 mmcr0:0X00000000 mmcr1:0XCCCC00005C5C5C5C mmcra:0X00000000 event:0X00E1 mmcr0:0X00000000 mmcr1:0XCCCC00005C5C5C5C mmcra:0X00000000 event:0X00E2 mmcr0:0X00000000 mmcr1:0XCCCC00005C5C5C5C mmcra:0X00000000 event:0X00E3 mmcr0:0X00000000 mmcr1:0XCCCC00005C5C5C5C mmcra:0X00000000 event:0X00E4 mmcr0:0X00000000 mmcr1:0XCCCC00005C5C5C5C mmcra:0X00000000 event:0X00E5 mmcr0:0X00000000 mmcr1:0XCCCC00005C5C5C5C mmcra:0X00000000 #Group 15 pm_derat_miss2, DERAT misses event:0X00F0 mmcr0:0X00000000 mmcr1:0X0CCC0000025C5C5C mmcra:0X00000000 event:0X00F1 mmcr0:0X00000000 mmcr1:0X0CCC0000025C5C5C mmcra:0X00000000 event:0X00F2 mmcr0:0X00000000 mmcr1:0X0CCC0000025C5C5C mmcra:0X00000000 event:0X00F3 mmcr0:0X00000000 mmcr1:0X0CCC0000025C5C5C mmcra:0X00000000 event:0X00F4 mmcr0:0X00000000 mmcr1:0X0CCC0000025C5C5C mmcra:0X00000000 event:0X00F5 mmcr0:0X00000000 mmcr1:0X0CCC0000025C5C5C mmcra:0X00000000 #Group 16 pm_misc_miss1, Misses event:0X0100 mmcr0:0X00000000 mmcr1:0XD0C0000090FE5AF0 mmcra:0X00000000 event:0X0101 mmcr0:0X00000000 mmcr1:0XD0C0000090FE5AF0 mmcra:0X00000000 event:0X0102 mmcr0:0X00000000 mmcr1:0XD0C0000090FE5AF0 mmcra:0X00000000 event:0X0103 mmcr0:0X00000000 mmcr1:0XD0C0000090FE5AF0 mmcra:0X00000000 event:0X0104 mmcr0:0X00000000 mmcr1:0XD0C0000090FE5AF0 mmcra:0X00000000 event:0X0105 mmcr0:0X00000000 mmcr1:0XD0C0000090FE5AF0 mmcra:0X00000000 #Group 17 pm_misc_miss2, Misses event:0X0110 mmcr0:0X00000000 mmcr1:0X0CC000001E585AFA mmcra:0X00000000 event:0X0111 mmcr0:0X00000000 mmcr1:0X0CC000001E585AFA mmcra:0X00000000 event:0X0112 mmcr0:0X00000000 mmcr1:0X0CC000001E585AFA mmcra:0X00000000 event:0X0113 mmcr0:0X00000000 mmcr1:0X0CC000001E585AFA mmcra:0X00000000 event:0X0114 mmcr0:0X00000000 mmcr1:0X0CC000001E585AFA mmcra:0X00000000 event:0X0115 mmcr0:0X00000000 mmcr1:0X0CC000001E585AFA mmcra:0X00000000 #Group 18 pm_misc_miss3, Misses event:0X0120 mmcr0:0X00000000 mmcr1:0X0CCC00001E585A58 mmcra:0X00000000 event:0X0121 mmcr0:0X00000000 mmcr1:0X0CCC00001E585A58 mmcra:0X00000000 event:0X0122 mmcr0:0X00000000 mmcr1:0X0CCC00001E585A58 mmcra:0X00000000 event:0X0123 mmcr0:0X00000000 mmcr1:0X0CCC00001E585A58 mmcra:0X00000000 event:0X0124 mmcr0:0X00000000 mmcr1:0X0CCC00001E585A58 mmcra:0X00000000 event:0X0125 mmcr0:0X00000000 mmcr1:0X0CCC00001E585A58 mmcra:0X00000000 #Group 19 pm_misc_miss4, Misses event:0X0130 mmcr0:0X00000000 mmcr1:0XD4000000904802FA mmcra:0X00000000 event:0X0131 mmcr0:0X00000000 mmcr1:0XD4000000904802FA mmcra:0X00000000 event:0X0132 mmcr0:0X00000000 mmcr1:0XD4000000904802FA mmcra:0X00000000 event:0X0133 mmcr0:0X00000000 mmcr1:0XD4000000904802FA mmcra:0X00000000 event:0X0134 mmcr0:0X00000000 mmcr1:0XD4000000904802FA mmcra:0X00000000 event:0X0135 mmcr0:0X00000000 mmcr1:0XD4000000904802FA mmcra:0X00000000 #Group 20 pm_misc_miss5, Misses event:0X0140 mmcr0:0X00000000 mmcr1:0X0DD00000F6909202 mmcra:0X00000000 event:0X0141 mmcr0:0X00000000 mmcr1:0X0DD00000F6909202 mmcra:0X00000000 event:0X0142 mmcr0:0X00000000 mmcr1:0X0DD00000F6909202 mmcra:0X00000000 event:0X0143 mmcr0:0X00000000 mmcr1:0X0DD00000F6909202 mmcra:0X00000000 event:0X0144 mmcr0:0X00000000 mmcr1:0X0DD00000F6909202 mmcra:0X00000000 event:0X0145 mmcr0:0X00000000 mmcr1:0X0DD00000F6909202 mmcra:0X00000000 #Group 21 pm_pteg1, PTEG sources event:0X0150 mmcr0:0X00000000 mmcr1:0XCECE000050505654 mmcra:0X00000000 event:0X0151 mmcr0:0X00000000 mmcr1:0XCECE000050505654 mmcra:0X00000000 event:0X0152 mmcr0:0X00000000 mmcr1:0XCECE000050505654 mmcra:0X00000000 event:0X0153 mmcr0:0X00000000 mmcr1:0XCECE000050505654 mmcra:0X00000000 event:0X0154 mmcr0:0X00000000 mmcr1:0XCECE000050505654 mmcra:0X00000000 event:0X0155 mmcr0:0X00000000 mmcr1:0XCECE000050505654 mmcra:0X00000000 #Group 22 pm_pteg2, PTEG sources event:0X0160 mmcr0:0X00000000 mmcr1:0XEEEC000050545454 mmcra:0X00000000 event:0X0161 mmcr0:0X00000000 mmcr1:0XEEEC000050545454 mmcra:0X00000000 event:0X0162 mmcr0:0X00000000 mmcr1:0XEEEC000050545454 mmcra:0X00000000 event:0X0163 mmcr0:0X00000000 mmcr1:0XEEEC000050545454 mmcra:0X00000000 event:0X0164 mmcr0:0X00000000 mmcr1:0XEEEC000050545454 mmcra:0X00000000 event:0X0165 mmcr0:0X00000000 mmcr1:0XEEEC000050545454 mmcra:0X00000000 #Group 23 pm_pteg3, PTEG sources event:0X0170 mmcr0:0X00000000 mmcr1:0XCCEC000054585252 mmcra:0X00000000 event:0X0171 mmcr0:0X00000000 mmcr1:0XCCEC000054585252 mmcra:0X00000000 event:0X0172 mmcr0:0X00000000 mmcr1:0XCCEC000054585252 mmcra:0X00000000 event:0X0173 mmcr0:0X00000000 mmcr1:0XCCEC000054585252 mmcra:0X00000000 event:0X0174 mmcr0:0X00000000 mmcr1:0XCCEC000054585252 mmcra:0X00000000 event:0X0175 mmcr0:0X00000000 mmcr1:0XCCEC000054585252 mmcra:0X00000000 #Group 24 pm_pteg4, PTEG sources event:0X0180 mmcr0:0X00000000 mmcr1:0XECCC000052525252 mmcra:0X00000000 event:0X0181 mmcr0:0X00000000 mmcr1:0XECCC000052525252 mmcra:0X00000000 event:0X0182 mmcr0:0X00000000 mmcr1:0XECCC000052525252 mmcra:0X00000000 event:0X0183 mmcr0:0X00000000 mmcr1:0XECCC000052525252 mmcra:0X00000000 event:0X0184 mmcr0:0X00000000 mmcr1:0XECCC000052525252 mmcra:0X00000000 event:0X0185 mmcr0:0X00000000 mmcr1:0XECCC000052525252 mmcra:0X00000000 #Group 25 pm_pteg5, PTEG sources event:0X0190 mmcr0:0X00000000 mmcr1:0XCCCC000052565456 mmcra:0X00000000 event:0X0191 mmcr0:0X00000000 mmcr1:0XCCCC000052565456 mmcra:0X00000000 event:0X0192 mmcr0:0X00000000 mmcr1:0XCCCC000052565456 mmcra:0X00000000 event:0X0193 mmcr0:0X00000000 mmcr1:0XCCCC000052565456 mmcra:0X00000000 event:0X0194 mmcr0:0X00000000 mmcr1:0XCCCC000052565456 mmcra:0X00000000 event:0X0195 mmcr0:0X00000000 mmcr1:0XCCCC000052565456 mmcra:0X00000000 #Group 26 pm_pteg6, PTEG sources event:0X01A0 mmcr0:0X00000000 mmcr1:0XEEEE000054525652 mmcra:0X00000000 event:0X01A1 mmcr0:0X00000000 mmcr1:0XEEEE000054525652 mmcra:0X00000000 event:0X01A2 mmcr0:0X00000000 mmcr1:0XEEEE000054525652 mmcra:0X00000000 event:0X01A3 mmcr0:0X00000000 mmcr1:0XEEEE000054525652 mmcra:0X00000000 event:0X01A4 mmcr0:0X00000000 mmcr1:0XEEEE000054525652 mmcra:0X00000000 event:0X01A5 mmcr0:0X00000000 mmcr1:0XEEEE000054525652 mmcra:0X00000000 #Group 27 pm_pteg7, PTEG sources event:0X01B0 mmcr0:0X00000000 mmcr1:0XEEEE000054565656 mmcra:0X00000000 event:0X01B1 mmcr0:0X00000000 mmcr1:0XEEEE000054565656 mmcra:0X00000000 event:0X01B2 mmcr0:0X00000000 mmcr1:0XEEEE000054565656 mmcra:0X00000000 event:0X01B3 mmcr0:0X00000000 mmcr1:0XEEEE000054565656 mmcra:0X00000000 event:0X01B4 mmcr0:0X00000000 mmcr1:0XEEEE000054565656 mmcra:0X00000000 event:0X01B5 mmcr0:0X00000000 mmcr1:0XEEEE000054565656 mmcra:0X00000000 #Group 28 pm_pteg8, PTEG sources event:0X01C0 mmcr0:0X00000000 mmcr1:0XEEEE000050585258 mmcra:0X00000000 event:0X01C1 mmcr0:0X00000000 mmcr1:0XEEEE000050585258 mmcra:0X00000000 event:0X01C2 mmcr0:0X00000000 mmcr1:0XEEEE000050585258 mmcra:0X00000000 event:0X01C3 mmcr0:0X00000000 mmcr1:0XEEEE000050585258 mmcra:0X00000000 event:0X01C4 mmcr0:0X00000000 mmcr1:0XEEEE000050585258 mmcra:0X00000000 event:0X01C5 mmcr0:0X00000000 mmcr1:0XEEEE000050585258 mmcra:0X00000000 #Group 29 pm_pteg9, PTEG sources event:0X01D0 mmcr0:0X00000000 mmcr1:0XCCCC000050505258 mmcra:0X00000000 event:0X01D1 mmcr0:0X00000000 mmcr1:0XCCCC000050505258 mmcra:0X00000000 event:0X01D2 mmcr0:0X00000000 mmcr1:0XCCCC000050505258 mmcra:0X00000000 event:0X01D3 mmcr0:0X00000000 mmcr1:0XCCCC000050505258 mmcra:0X00000000 event:0X01D4 mmcr0:0X00000000 mmcr1:0XCCCC000050505258 mmcra:0X00000000 event:0X01D5 mmcr0:0X00000000 mmcr1:0XCCCC000050505258 mmcra:0X00000000 #Group 30 pm_pteg10, PTEG sources event:0X01E0 mmcr0:0X00000000 mmcr1:0XCC0000005050021E mmcra:0X00000000 event:0X01E1 mmcr0:0X00000000 mmcr1:0XCC0000005050021E mmcra:0X00000000 event:0X01E2 mmcr0:0X00000000 mmcr1:0XCC0000005050021E mmcra:0X00000000 event:0X01E3 mmcr0:0X00000000 mmcr1:0XCC0000005050021E mmcra:0X00000000 event:0X01E4 mmcr0:0X00000000 mmcr1:0XCC0000005050021E mmcra:0X00000000 event:0X01E5 mmcr0:0X00000000 mmcr1:0XCC0000005050021E mmcra:0X00000000 #Group 31 pm_pteg11, PTEG sources event:0X01F0 mmcr0:0X00000000 mmcr1:0XCC0C000052540254 mmcra:0X00000000 event:0X01F1 mmcr0:0X00000000 mmcr1:0XCC0C000052540254 mmcra:0X00000000 event:0X01F2 mmcr0:0X00000000 mmcr1:0XCC0C000052540254 mmcra:0X00000000 event:0X01F3 mmcr0:0X00000000 mmcr1:0XCC0C000052540254 mmcra:0X00000000 event:0X01F4 mmcr0:0X00000000 mmcr1:0XCC0C000052540254 mmcra:0X00000000 event:0X01F5 mmcr0:0X00000000 mmcr1:0XCC0C000052540254 mmcra:0X00000000 #Group 32 pm_pteg12, PTEG sources event:0X0200 mmcr0:0X00000000 mmcr1:0X0CCC000002525252 mmcra:0X00000000 event:0X0201 mmcr0:0X00000000 mmcr1:0X0CCC000002525252 mmcra:0X00000000 event:0X0202 mmcr0:0X00000000 mmcr1:0X0CCC000002525252 mmcra:0X00000000 event:0X0203 mmcr0:0X00000000 mmcr1:0X0CCC000002525252 mmcra:0X00000000 event:0X0204 mmcr0:0X00000000 mmcr1:0X0CCC000002525252 mmcra:0X00000000 event:0X0205 mmcr0:0X00000000 mmcr1:0X0CCC000002525252 mmcra:0X00000000 #Group 33 pm_freq1, Frequency events event:0X0210 mmcr0:0X00000000 mmcr1:0X000000006E060C0C mmcra:0X00000000 event:0X0211 mmcr0:0X00000000 mmcr1:0X000000006E060C0C mmcra:0X00000000 event:0X0212 mmcr0:0X00000000 mmcr1:0X000000006E060C0C mmcra:0X00000000 event:0X0213 mmcr0:0X00000000 mmcr1:0X000000006E060C0C mmcra:0X00000000 event:0X0214 mmcr0:0X00000000 mmcr1:0X000000006E060C0C mmcra:0X00000000 event:0X0215 mmcr0:0X00000000 mmcr1:0X000000006E060C0C mmcra:0X00000000 #Group 34 pm_freq2, Frequency events event:0X0220 mmcr0:0X00000000 mmcr1:0X000000006E06060C mmcra:0X00000000 event:0X0221 mmcr0:0X00000000 mmcr1:0X000000006E06060C mmcra:0X00000000 event:0X0222 mmcr0:0X00000000 mmcr1:0X000000006E06060C mmcra:0X00000000 event:0X0223 mmcr0:0X00000000 mmcr1:0X000000006E06060C mmcra:0X00000000 event:0X0224 mmcr0:0X00000000 mmcr1:0X000000006E06060C mmcra:0X00000000 event:0X0225 mmcr0:0X00000000 mmcr1:0X000000006E06060C mmcra:0X00000000 #Group 35 pm_L1_ref, L1 references event:0X0230 mmcr0:0X00000000 mmcr1:0XCCCD0008808082A6 mmcra:0X00000000 event:0X0231 mmcr0:0X00000000 mmcr1:0XCCCD0008808082A6 mmcra:0X00000000 event:0X0232 mmcr0:0X00000000 mmcr1:0XCCCD0008808082A6 mmcra:0X00000000 event:0X0233 mmcr0:0X00000000 mmcr1:0XCCCD0008808082A6 mmcra:0X00000000 event:0X0234 mmcr0:0X00000000 mmcr1:0XCCCD0008808082A6 mmcra:0X00000000 event:0X0235 mmcr0:0X00000000 mmcr1:0XCCCD0008808082A6 mmcra:0X00000000 #Group 36 pm_flush1, Flushes event:0X0240 mmcr0:0X00000000 mmcr1:0X22200000888A8CF8 mmcra:0X00000000 event:0X0241 mmcr0:0X00000000 mmcr1:0X22200000888A8CF8 mmcra:0X00000000 event:0X0242 mmcr0:0X00000000 mmcr1:0X22200000888A8CF8 mmcra:0X00000000 event:0X0243 mmcr0:0X00000000 mmcr1:0X22200000888A8CF8 mmcra:0X00000000 event:0X0244 mmcr0:0X00000000 mmcr1:0X22200000888A8CF8 mmcra:0X00000000 event:0X0245 mmcr0:0X00000000 mmcr1:0X22200000888A8CF8 mmcra:0X00000000 #Group 37 pm_flush2, Flushes event:0X0250 mmcr0:0X00000000 mmcr1:0X222C000086828EAA mmcra:0X00000000 event:0X0251 mmcr0:0X00000000 mmcr1:0X222C000086828EAA mmcra:0X00000000 event:0X0252 mmcr0:0X00000000 mmcr1:0X222C000086828EAA mmcra:0X00000000 event:0X0253 mmcr0:0X00000000 mmcr1:0X222C000086828EAA mmcra:0X00000000 event:0X0254 mmcr0:0X00000000 mmcr1:0X222C000086828EAA mmcra:0X00000000 event:0X0255 mmcr0:0X00000000 mmcr1:0X222C000086828EAA mmcra:0X00000000 #Group 38 pm_flush, Flushes event:0X0260 mmcr0:0X00000000 mmcr1:0X20000000821E12F8 mmcra:0X00000000 event:0X0261 mmcr0:0X00000000 mmcr1:0X20000000821E12F8 mmcra:0X00000000 event:0X0262 mmcr0:0X00000000 mmcr1:0X20000000821E12F8 mmcra:0X00000000 event:0X0263 mmcr0:0X00000000 mmcr1:0X20000000821E12F8 mmcra:0X00000000 event:0X0264 mmcr0:0X00000000 mmcr1:0X20000000821E12F8 mmcra:0X00000000 event:0X0265 mmcr0:0X00000000 mmcr1:0X20000000821E12F8 mmcra:0X00000000 #Group 39 pm_lsu_flush1, LSU Flush event:0X0270 mmcr0:0X00000000 mmcr1:0XCCCC000FB0B4B8BC mmcra:0X00000000 event:0X0271 mmcr0:0X00000000 mmcr1:0XCCCC000FB0B4B8BC mmcra:0X00000000 event:0X0272 mmcr0:0X00000000 mmcr1:0XCCCC000FB0B4B8BC mmcra:0X00000000 event:0X0273 mmcr0:0X00000000 mmcr1:0XCCCC000FB0B4B8BC mmcra:0X00000000 event:0X0274 mmcr0:0X00000000 mmcr1:0XCCCC000FB0B4B8BC mmcra:0X00000000 event:0X0275 mmcr0:0X00000000 mmcr1:0XCCCC000FB0B4B8BC mmcra:0X00000000 #Group 40 pm_lsu_flush2, LSU Flush ULD event:0X0280 mmcr0:0X00000000 mmcr1:0XCCC00008B0B0B2F8 mmcra:0X00000000 event:0X0281 mmcr0:0X00000000 mmcr1:0XCCC00008B0B0B2F8 mmcra:0X00000000 event:0X0282 mmcr0:0X00000000 mmcr1:0XCCC00008B0B0B2F8 mmcra:0X00000000 event:0X0283 mmcr0:0X00000000 mmcr1:0XCCC00008B0B0B2F8 mmcra:0X00000000 event:0X0284 mmcr0:0X00000000 mmcr1:0XCCC00008B0B0B2F8 mmcra:0X00000000 event:0X0285 mmcr0:0X00000000 mmcr1:0XCCC00008B0B0B2F8 mmcra:0X00000000 #Group 41 pm_lsu_flush3, LSU Flush UST event:0X0290 mmcr0:0X00000000 mmcr1:0XCCC00008B4B4B6F8 mmcra:0X00000000 event:0X0291 mmcr0:0X00000000 mmcr1:0XCCC00008B4B4B6F8 mmcra:0X00000000 event:0X0292 mmcr0:0X00000000 mmcr1:0XCCC00008B4B4B6F8 mmcra:0X00000000 event:0X0293 mmcr0:0X00000000 mmcr1:0XCCC00008B4B4B6F8 mmcra:0X00000000 event:0X0294 mmcr0:0X00000000 mmcr1:0XCCC00008B4B4B6F8 mmcra:0X00000000 event:0X0295 mmcr0:0X00000000 mmcr1:0XCCC00008B4B4B6F8 mmcra:0X00000000 #Group 42 pm_lsu_flush4, LSU Flush LRQ event:0X02A0 mmcr0:0X00000000 mmcr1:0XCCC00008B8B8BAF8 mmcra:0X00000000 event:0X02A1 mmcr0:0X00000000 mmcr1:0XCCC00008B8B8BAF8 mmcra:0X00000000 event:0X02A2 mmcr0:0X00000000 mmcr1:0XCCC00008B8B8BAF8 mmcra:0X00000000 event:0X02A3 mmcr0:0X00000000 mmcr1:0XCCC00008B8B8BAF8 mmcra:0X00000000 event:0X02A4 mmcr0:0X00000000 mmcr1:0XCCC00008B8B8BAF8 mmcra:0X00000000 event:0X02A5 mmcr0:0X00000000 mmcr1:0XCCC00008B8B8BAF8 mmcra:0X00000000 #Group 43 pm_lsu_flush5, LSU Flush SRQ event:0X02B0 mmcr0:0X00000000 mmcr1:0XCCC00008BCBCBEF8 mmcra:0X00000000 event:0X02B1 mmcr0:0X00000000 mmcr1:0XCCC00008BCBCBEF8 mmcra:0X00000000 event:0X02B2 mmcr0:0X00000000 mmcr1:0XCCC00008BCBCBEF8 mmcra:0X00000000 event:0X02B3 mmcr0:0X00000000 mmcr1:0XCCC00008BCBCBEF8 mmcra:0X00000000 event:0X02B4 mmcr0:0X00000000 mmcr1:0XCCC00008BCBCBEF8 mmcra:0X00000000 event:0X02B5 mmcr0:0X00000000 mmcr1:0XCCC00008BCBCBEF8 mmcra:0X00000000 #Group 44 pm_prefetch, I cache Prefetches event:0X02C0 mmcr0:0X00000000 mmcr1:0X04440000188A968E mmcra:0X00000000 event:0X02C1 mmcr0:0X00000000 mmcr1:0X04440000188A968E mmcra:0X00000000 event:0X02C2 mmcr0:0X00000000 mmcr1:0X04440000188A968E mmcra:0X00000000 event:0X02C3 mmcr0:0X00000000 mmcr1:0X04440000188A968E mmcra:0X00000000 event:0X02C4 mmcr0:0X00000000 mmcr1:0X04440000188A968E mmcra:0X00000000 event:0X02C5 mmcr0:0X00000000 mmcr1:0X04440000188A968E mmcra:0X00000000 #Group 45 pm_thread_cyc1, Thread cycles event:0X02D0 mmcr0:0X00000000 mmcr1:0X00000000FA0CF460 mmcra:0X00000000 event:0X02D1 mmcr0:0X00000000 mmcr1:0X00000000FA0CF460 mmcra:0X00000000 event:0X02D2 mmcr0:0X00000000 mmcr1:0X00000000FA0CF460 mmcra:0X00000000 event:0X02D3 mmcr0:0X00000000 mmcr1:0X00000000FA0CF460 mmcra:0X00000000 event:0X02D4 mmcr0:0X00000000 mmcr1:0X00000000FA0CF460 mmcra:0X00000000 event:0X02D5 mmcr0:0X00000000 mmcr1:0X00000000FA0CF460 mmcra:0X00000000 #Group 46 pm_thread_cyc2, Thread cycles event:0X02E0 mmcr0:0X00000000 mmcr1:0X00040000120CF4B0 mmcra:0X00000000 event:0X02E1 mmcr0:0X00000000 mmcr1:0X00040000120CF4B0 mmcra:0X00000000 event:0X02E2 mmcr0:0X00000000 mmcr1:0X00040000120CF4B0 mmcra:0X00000000 event:0X02E3 mmcr0:0X00000000 mmcr1:0X00040000120CF4B0 mmcra:0X00000000 event:0X02E4 mmcr0:0X00000000 mmcr1:0X00040000120CF4B0 mmcra:0X00000000 event:0X02E5 mmcr0:0X00000000 mmcr1:0X00040000120CF4B0 mmcra:0X00000000 #Group 47 pm_thread_cyc3, Thread cycles event:0X02F0 mmcr0:0X00000000 mmcr1:0X00040000626060B4 mmcra:0X00000000 event:0X02F1 mmcr0:0X00000000 mmcr1:0X00040000626060B4 mmcra:0X00000000 event:0X02F2 mmcr0:0X00000000 mmcr1:0X00040000626060B4 mmcra:0X00000000 event:0X02F3 mmcr0:0X00000000 mmcr1:0X00040000626060B4 mmcra:0X00000000 event:0X02F4 mmcr0:0X00000000 mmcr1:0X00040000626060B4 mmcra:0X00000000 event:0X02F5 mmcr0:0X00000000 mmcr1:0X00040000626060B4 mmcra:0X00000000 #Group 48 pm_thread_cyc4, Thread cycles event:0X0300 mmcr0:0X00000000 mmcr1:0X40000000B2626262 mmcra:0X00000000 event:0X0301 mmcr0:0X00000000 mmcr1:0X40000000B2626262 mmcra:0X00000000 event:0X0302 mmcr0:0X00000000 mmcr1:0X40000000B2626262 mmcra:0X00000000 event:0X0303 mmcr0:0X00000000 mmcr1:0X40000000B2626262 mmcra:0X00000000 event:0X0304 mmcr0:0X00000000 mmcr1:0X40000000B2626262 mmcra:0X00000000 event:0X0305 mmcr0:0X00000000 mmcr1:0X40000000B2626262 mmcra:0X00000000 #Group 49 pm_thread_cyc5, Thread cycles event:0X0310 mmcr0:0X00000000 mmcr1:0X44440000B0B2B4B6 mmcra:0X00000000 event:0X0311 mmcr0:0X00000000 mmcr1:0X44440000B0B2B4B6 mmcra:0X00000000 event:0X0312 mmcr0:0X00000000 mmcr1:0X44440000B0B2B4B6 mmcra:0X00000000 event:0X0313 mmcr0:0X00000000 mmcr1:0X44440000B0B2B4B6 mmcra:0X00000000 event:0X0314 mmcr0:0X00000000 mmcr1:0X44440000B0B2B4B6 mmcra:0X00000000 event:0X0315 mmcr0:0X00000000 mmcr1:0X44440000B0B2B4B6 mmcra:0X00000000 #Group 50 pm_thread_cyc6, Thread cycles event:0X0320 mmcr0:0X00000000 mmcr1:0X00000000600CF460 mmcra:0X00000000 event:0X0321 mmcr0:0X00000000 mmcr1:0X00000000600CF460 mmcra:0X00000000 event:0X0322 mmcr0:0X00000000 mmcr1:0X00000000600CF460 mmcra:0X00000000 event:0X0323 mmcr0:0X00000000 mmcr1:0X00000000600CF460 mmcra:0X00000000 event:0X0324 mmcr0:0X00000000 mmcr1:0X00000000600CF460 mmcra:0X00000000 event:0X0325 mmcr0:0X00000000 mmcr1:0X00000000600CF460 mmcra:0X00000000 #Group 51 pm_fxu1, FXU events event:0X0330 mmcr0:0X00000000 mmcr1:0X000000000E0E0E0E mmcra:0X00000000 event:0X0331 mmcr0:0X00000000 mmcr1:0X000000000E0E0E0E mmcra:0X00000000 event:0X0332 mmcr0:0X00000000 mmcr1:0X000000000E0E0E0E mmcra:0X00000000 event:0X0333 mmcr0:0X00000000 mmcr1:0X000000000E0E0E0E mmcra:0X00000000 event:0X0334 mmcr0:0X00000000 mmcr1:0X000000000E0E0E0E mmcra:0X00000000 event:0X0335 mmcr0:0X00000000 mmcr1:0X000000000E0E0E0E mmcra:0X00000000 #Group 52 pm_fxu2, FXU events event:0X0340 mmcr0:0X00000000 mmcr1:0X0000000004F40204 mmcra:0X00000000 event:0X0341 mmcr0:0X00000000 mmcr1:0X0000000004F40204 mmcra:0X00000000 event:0X0342 mmcr0:0X00000000 mmcr1:0X0000000004F40204 mmcra:0X00000000 event:0X0343 mmcr0:0X00000000 mmcr1:0X0000000004F40204 mmcra:0X00000000 event:0X0344 mmcr0:0X00000000 mmcr1:0X0000000004F40204 mmcra:0X00000000 event:0X0345 mmcr0:0X00000000 mmcr1:0X0000000004F40204 mmcra:0X00000000 #Group 53 pm_fxu3, FXU events event:0X0350 mmcr0:0X00000000 mmcr1:0X000000001E0E0E0E mmcra:0X00000000 event:0X0351 mmcr0:0X00000000 mmcr1:0X000000001E0E0E0E mmcra:0X00000000 event:0X0352 mmcr0:0X00000000 mmcr1:0X000000001E0E0E0E mmcra:0X00000000 event:0X0353 mmcr0:0X00000000 mmcr1:0X000000001E0E0E0E mmcra:0X00000000 event:0X0354 mmcr0:0X00000000 mmcr1:0X000000001E0E0E0E mmcra:0X00000000 event:0X0355 mmcr0:0X00000000 mmcr1:0X000000001E0E0E0E mmcra:0X00000000 #Group 54 pm_fxu4, FXU events event:0X0360 mmcr0:0X00000000 mmcr1:0X000000000E0E1E02 mmcra:0X00000000 event:0X0361 mmcr0:0X00000000 mmcr1:0X000000000E0E1E02 mmcra:0X00000000 event:0X0362 mmcr0:0X00000000 mmcr1:0X000000000E0E1E02 mmcra:0X00000000 event:0X0363 mmcr0:0X00000000 mmcr1:0X000000000E0E1E02 mmcra:0X00000000 event:0X0364 mmcr0:0X00000000 mmcr1:0X000000000E0E1E02 mmcra:0X00000000 event:0X0365 mmcr0:0X00000000 mmcr1:0X000000000E0E1E02 mmcra:0X00000000 #Group 55 pm_L2_RCLD, L2 RC load events event:0X0370 mmcr0:0X00000000 mmcr1:0X6666400080808082 mmcra:0X00000000 event:0X0371 mmcr0:0X00000000 mmcr1:0X6666400080808082 mmcra:0X00000000 event:0X0372 mmcr0:0X00000000 mmcr1:0X6666400080808082 mmcra:0X00000000 event:0X0373 mmcr0:0X00000000 mmcr1:0X6666400080808082 mmcra:0X00000000 event:0X0374 mmcr0:0X00000000 mmcr1:0X6666400080808082 mmcra:0X00000000 event:0X0375 mmcr0:0X00000000 mmcr1:0X6666400080808082 mmcra:0X00000000 #Group 56 pm_L2_RC, RC related events event:0X0380 mmcr0:0X00000000 mmcr1:0X60606000821E8002 mmcra:0X00000000 event:0X0381 mmcr0:0X00000000 mmcr1:0X60606000821E8002 mmcra:0X00000000 event:0X0382 mmcr0:0X00000000 mmcr1:0X60606000821E8002 mmcra:0X00000000 event:0X0383 mmcr0:0X00000000 mmcr1:0X60606000821E8002 mmcra:0X00000000 event:0X0384 mmcr0:0X00000000 mmcr1:0X60606000821E8002 mmcra:0X00000000 event:0X0385 mmcr0:0X00000000 mmcr1:0X60606000821E8002 mmcra:0X00000000 #Group 57 pm_L2_RCST, L2 RC Store Events event:0X0390 mmcr0:0X00000000 mmcr1:0X6666400080808280 mmcra:0X00000000 event:0X0391 mmcr0:0X00000000 mmcr1:0X6666400080808280 mmcra:0X00000000 event:0X0392 mmcr0:0X00000000 mmcr1:0X6666400080808280 mmcra:0X00000000 event:0X0393 mmcr0:0X00000000 mmcr1:0X6666400080808280 mmcra:0X00000000 event:0X0394 mmcr0:0X00000000 mmcr1:0X6666400080808280 mmcra:0X00000000 event:0X0395 mmcr0:0X00000000 mmcr1:0X6666400080808280 mmcra:0X00000000 #Group 58 pm_L2_ldst_1, L2 load/store event:0X03A0 mmcr0:0X00000000 mmcr1:0X660000008280021E mmcra:0X00000000 event:0X03A1 mmcr0:0X00000000 mmcr1:0X660000008280021E mmcra:0X00000000 event:0X03A2 mmcr0:0X00000000 mmcr1:0X660000008280021E mmcra:0X00000000 event:0X03A3 mmcr0:0X00000000 mmcr1:0X660000008280021E mmcra:0X00000000 event:0X03A4 mmcr0:0X00000000 mmcr1:0X660000008280021E mmcra:0X00000000 event:0X03A5 mmcr0:0X00000000 mmcr1:0X660000008280021E mmcra:0X00000000 #Group 59 pm_L2_ldst_2, L2 load/store event:0X03B0 mmcr0:0X00000000 mmcr1:0X00662000021E8282 mmcra:0X00000000 event:0X03B1 mmcr0:0X00000000 mmcr1:0X00662000021E8282 mmcra:0X00000000 event:0X03B2 mmcr0:0X00000000 mmcr1:0X00662000021E8282 mmcra:0X00000000 event:0X03B3 mmcr0:0X00000000 mmcr1:0X00662000021E8282 mmcra:0X00000000 event:0X03B4 mmcr0:0X00000000 mmcr1:0X00662000021E8282 mmcra:0X00000000 event:0X03B5 mmcr0:0X00000000 mmcr1:0X00662000021E8282 mmcra:0X00000000 #Group 60 pm_L2_ldst_3, L2 load/store event:0X03C0 mmcr0:0X00000000 mmcr1:0X00662000021E8080 mmcra:0X00000000 event:0X03C1 mmcr0:0X00000000 mmcr1:0X00662000021E8080 mmcra:0X00000000 event:0X03C2 mmcr0:0X00000000 mmcr1:0X00662000021E8080 mmcra:0X00000000 event:0X03C3 mmcr0:0X00000000 mmcr1:0X00662000021E8080 mmcra:0X00000000 event:0X03C4 mmcr0:0X00000000 mmcr1:0X00662000021E8080 mmcra:0X00000000 event:0X03C5 mmcr0:0X00000000 mmcr1:0X00662000021E8080 mmcra:0X00000000 #Group 61 pm_L2_RCSTLD, L2 RC Load/Store Events event:0X03D0 mmcr0:0X00000000 mmcr1:0X660040008282021E mmcra:0X00000000 event:0X03D1 mmcr0:0X00000000 mmcr1:0X660040008282021E mmcra:0X00000000 event:0X03D2 mmcr0:0X00000000 mmcr1:0X660040008282021E mmcra:0X00000000 event:0X03D3 mmcr0:0X00000000 mmcr1:0X660040008282021E mmcra:0X00000000 event:0X03D4 mmcr0:0X00000000 mmcr1:0X660040008282021E mmcra:0X00000000 event:0X03D5 mmcr0:0X00000000 mmcr1:0X660040008282021E mmcra:0X00000000 #Group 62 pm_nest1, Nest Events event:0X03E0 mmcr0:0X00000000 mmcr1:0X0000000081818181 mmcra:0X00000000 event:0X03E1 mmcr0:0X00000000 mmcr1:0X0000000081818181 mmcra:0X00000000 event:0X03E2 mmcr0:0X00000000 mmcr1:0X0000000081818181 mmcra:0X00000000 event:0X03E3 mmcr0:0X00000000 mmcr1:0X0000000081818181 mmcra:0X00000000 event:0X03E4 mmcr0:0X00000000 mmcr1:0X0000000081818181 mmcra:0X00000000 event:0X03E5 mmcr0:0X00000000 mmcr1:0X0000000081818181 mmcra:0X00000000 #Group 63 pm_nest2, Nest Events event:0X03F0 mmcr0:0X00000000 mmcr1:0X0000000083838383 mmcra:0X00000000 event:0X03F1 mmcr0:0X00000000 mmcr1:0X0000000083838383 mmcra:0X00000000 event:0X03F2 mmcr0:0X00000000 mmcr1:0X0000000083838383 mmcra:0X00000000 event:0X03F3 mmcr0:0X00000000 mmcr1:0X0000000083838383 mmcra:0X00000000 event:0X03F4 mmcr0:0X00000000 mmcr1:0X0000000083838383 mmcra:0X00000000 event:0X03F5 mmcr0:0X00000000 mmcr1:0X0000000083838383 mmcra:0X00000000 #Group 64 pm_nest3, Nest Events event:0X0400 mmcr0:0X00000000 mmcr1:0X0000000F81818181 mmcra:0X00000000 event:0X0401 mmcr0:0X00000000 mmcr1:0X0000000F81818181 mmcra:0X00000000 event:0X0402 mmcr0:0X00000000 mmcr1:0X0000000F81818181 mmcra:0X00000000 event:0X0403 mmcr0:0X00000000 mmcr1:0X0000000F81818181 mmcra:0X00000000 event:0X0404 mmcr0:0X00000000 mmcr1:0X0000000F81818181 mmcra:0X00000000 event:0X0405 mmcr0:0X00000000 mmcr1:0X0000000F81818181 mmcra:0X00000000 #Group 65 pm_nest4, Nest Events event:0X0410 mmcr0:0X00000000 mmcr1:0X0000000F83838383 mmcra:0X00000000 event:0X0411 mmcr0:0X00000000 mmcr1:0X0000000F83838383 mmcra:0X00000000 event:0X0412 mmcr0:0X00000000 mmcr1:0X0000000F83838383 mmcra:0X00000000 event:0X0413 mmcr0:0X00000000 mmcr1:0X0000000F83838383 mmcra:0X00000000 event:0X0414 mmcr0:0X00000000 mmcr1:0X0000000F83838383 mmcra:0X00000000 event:0X0415 mmcr0:0X00000000 mmcr1:0X0000000F83838383 mmcra:0X00000000 #Group 66 pm_L2_redir_pref, L2 redirect and prefetch event:0X0420 mmcr0:0X00000000 mmcr1:0X44440000989A8882 mmcra:0X00000000 event:0X0421 mmcr0:0X00000000 mmcr1:0X44440000989A8882 mmcra:0X00000000 event:0X0422 mmcr0:0X00000000 mmcr1:0X44440000989A8882 mmcra:0X00000000 event:0X0423 mmcr0:0X00000000 mmcr1:0X44440000989A8882 mmcra:0X00000000 event:0X0424 mmcr0:0X00000000 mmcr1:0X44440000989A8882 mmcra:0X00000000 event:0X0425 mmcr0:0X00000000 mmcr1:0X44440000989A8882 mmcra:0X00000000 #Group 67 pm_dlatencies1, Data latencies event:0X0430 mmcr0:0X00000000 mmcr1:0XC000000040F2F6F2 mmcra:0X00000000 event:0X0431 mmcr0:0X00000000 mmcr1:0XC000000040F2F6F2 mmcra:0X00000000 event:0X0432 mmcr0:0X00000000 mmcr1:0XC000000040F2F6F2 mmcra:0X00000000 event:0X0433 mmcr0:0X00000000 mmcr1:0XC000000040F2F6F2 mmcra:0X00000000 event:0X0434 mmcr0:0X00000000 mmcr1:0XC000000040F2F6F2 mmcra:0X00000000 event:0X0435 mmcr0:0X00000000 mmcr1:0XC000000040F2F6F2 mmcra:0X00000000 #Group 68 pm_dlatencies2, Data latencies event:0X0440 mmcr0:0X00000000 mmcr1:0XC0000000481EF602 mmcra:0X00000000 event:0X0441 mmcr0:0X00000000 mmcr1:0XC0000000481EF602 mmcra:0X00000000 event:0X0442 mmcr0:0X00000000 mmcr1:0XC0000000481EF602 mmcra:0X00000000 event:0X0443 mmcr0:0X00000000 mmcr1:0XC0000000481EF602 mmcra:0X00000000 event:0X0444 mmcr0:0X00000000 mmcr1:0XC0000000481EF602 mmcra:0X00000000 event:0X0445 mmcr0:0X00000000 mmcr1:0XC0000000481EF602 mmcra:0X00000000 #Group 69 pm_dlatencies3, Data latencies event:0X0450 mmcr0:0X00000000 mmcr1:0XCC0000004244F602 mmcra:0X00000000 event:0X0451 mmcr0:0X00000000 mmcr1:0XCC0000004244F602 mmcra:0X00000000 event:0X0452 mmcr0:0X00000000 mmcr1:0XCC0000004244F602 mmcra:0X00000000 event:0X0453 mmcr0:0X00000000 mmcr1:0XCC0000004244F602 mmcra:0X00000000 event:0X0454 mmcr0:0X00000000 mmcr1:0XCC0000004244F602 mmcra:0X00000000 event:0X0455 mmcr0:0X00000000 mmcr1:0XCC0000004244F602 mmcra:0X00000000 #Group 70 pm_rejects1, Reject event event:0X0460 mmcr0:0X00000000 mmcr1:0X0CCC000164ACAEAC mmcra:0X00000000 event:0X0461 mmcr0:0X00000000 mmcr1:0X0CCC000164ACAEAC mmcra:0X00000000 event:0X0462 mmcr0:0X00000000 mmcr1:0X0CCC000164ACAEAC mmcra:0X00000000 event:0X0463 mmcr0:0X00000000 mmcr1:0X0CCC000164ACAEAC mmcra:0X00000000 event:0X0464 mmcr0:0X00000000 mmcr1:0X0CCC000164ACAEAC mmcra:0X00000000 event:0X0465 mmcr0:0X00000000 mmcr1:0X0CCC000164ACAEAC mmcra:0X00000000 #Group 71 pm_rejects2, Reject events event:0X0470 mmcr0:0X00000000 mmcr1:0X00C000026464A808 mmcra:0X00000000 event:0X0471 mmcr0:0X00000000 mmcr1:0X00C000026464A808 mmcra:0X00000000 event:0X0472 mmcr0:0X00000000 mmcr1:0X00C000026464A808 mmcra:0X00000000 event:0X0473 mmcr0:0X00000000 mmcr1:0X00C000026464A808 mmcra:0X00000000 event:0X0474 mmcr0:0X00000000 mmcr1:0X00C000026464A808 mmcra:0X00000000 event:0X0475 mmcr0:0X00000000 mmcr1:0X00C000026464A808 mmcra:0X00000000 #Group 72 pm_rejects3, Set mispredictions rejects event:0X0480 mmcr0:0X00000000 mmcr1:0XCC000008A8A81E02 mmcra:0X00000000 event:0X0481 mmcr0:0X00000000 mmcr1:0XCC000008A8A81E02 mmcra:0X00000000 event:0X0482 mmcr0:0X00000000 mmcr1:0XCC000008A8A81E02 mmcra:0X00000000 event:0X0483 mmcr0:0X00000000 mmcr1:0XCC000008A8A81E02 mmcra:0X00000000 event:0X0484 mmcr0:0X00000000 mmcr1:0XCC000008A8A81E02 mmcra:0X00000000 event:0X0485 mmcr0:0X00000000 mmcr1:0XCC000008A8A81E02 mmcra:0X00000000 #Group 73 pm_lsu_reject, LSU Reject Event event:0X0490 mmcr0:0X00000000 mmcr1:0XCCC00008A4A4A602 mmcra:0X00000000 event:0X0491 mmcr0:0X00000000 mmcr1:0XCCC00008A4A4A602 mmcra:0X00000000 event:0X0492 mmcr0:0X00000000 mmcr1:0XCCC00008A4A4A602 mmcra:0X00000000 event:0X0493 mmcr0:0X00000000 mmcr1:0XCCC00008A4A4A602 mmcra:0X00000000 event:0X0494 mmcr0:0X00000000 mmcr1:0XCCC00008A4A4A602 mmcra:0X00000000 event:0X0495 mmcr0:0X00000000 mmcr1:0XCCC00008A4A4A602 mmcra:0X00000000 #Group 74 pm_lsu_ncld, Non cachable loads event:0X04A0 mmcr0:0X00000000 mmcr1:0XCCC000088C8C8E02 mmcra:0X00000000 event:0X04A1 mmcr0:0X00000000 mmcr1:0XCCC000088C8C8E02 mmcra:0X00000000 event:0X04A2 mmcr0:0X00000000 mmcr1:0XCCC000088C8C8E02 mmcra:0X00000000 event:0X04A3 mmcr0:0X00000000 mmcr1:0XCCC000088C8C8E02 mmcra:0X00000000 event:0X04A4 mmcr0:0X00000000 mmcr1:0XCCC000088C8C8E02 mmcra:0X00000000 event:0X04A5 mmcr0:0X00000000 mmcr1:0XCCC000088C8C8E02 mmcra:0X00000000 #Group 75 pm_gct1, GCT events event:0X04B0 mmcr0:0X00000000 mmcr1:0X00400000F808861E mmcra:0X00000000 event:0X04B1 mmcr0:0X00000000 mmcr1:0X00400000F808861E mmcra:0X00000000 event:0X04B2 mmcr0:0X00000000 mmcr1:0X00400000F808861E mmcra:0X00000000 event:0X04B3 mmcr0:0X00000000 mmcr1:0X00400000F808861E mmcra:0X00000000 event:0X04B4 mmcr0:0X00000000 mmcr1:0X00400000F808861E mmcra:0X00000000 event:0X04B5 mmcr0:0X00000000 mmcr1:0X00400000F808861E mmcra:0X00000000 #Group 76 pm_gct2, GCT Events event:0X04C0 mmcr0:0X00000000 mmcr1:0X222200009C9EA0A2 mmcra:0X00000000 event:0X04C1 mmcr0:0X00000000 mmcr1:0X222200009C9EA0A2 mmcra:0X00000000 event:0X04C2 mmcr0:0X00000000 mmcr1:0X222200009C9EA0A2 mmcra:0X00000000 event:0X04C3 mmcr0:0X00000000 mmcr1:0X222200009C9EA0A2 mmcra:0X00000000 event:0X04C4 mmcr0:0X00000000 mmcr1:0X222200009C9EA0A2 mmcra:0X00000000 event:0X04C5 mmcr0:0X00000000 mmcr1:0X222200009C9EA0A2 mmcra:0X00000000 #Group 77 pm_L2_castout_invalidate_1, L2 castout and invalidate events event:0X04D0 mmcr0:0X00000000 mmcr1:0X660020008082021E mmcra:0X00000000 event:0X04D1 mmcr0:0X00000000 mmcr1:0X660020008082021E mmcra:0X00000000 event:0X04D2 mmcr0:0X00000000 mmcr1:0X660020008082021E mmcra:0X00000000 event:0X04D3 mmcr0:0X00000000 mmcr1:0X660020008082021E mmcra:0X00000000 event:0X04D4 mmcr0:0X00000000 mmcr1:0X660020008082021E mmcra:0X00000000 event:0X04D5 mmcr0:0X00000000 mmcr1:0X660020008082021E mmcra:0X00000000 #Group 78 pm_L2_castout_invalidate_2, L2 castout and invalidate events event:0X04E0 mmcr0:0X00000000 mmcr1:0X660020008280021E mmcra:0X00000000 event:0X04E1 mmcr0:0X00000000 mmcr1:0X660020008280021E mmcra:0X00000000 event:0X04E2 mmcr0:0X00000000 mmcr1:0X660020008280021E mmcra:0X00000000 event:0X04E3 mmcr0:0X00000000 mmcr1:0X660020008280021E mmcra:0X00000000 event:0X04E4 mmcr0:0X00000000 mmcr1:0X660020008280021E mmcra:0X00000000 event:0X04E5 mmcr0:0X00000000 mmcr1:0X660020008280021E mmcra:0X00000000 #Group 79 pm_disp_held1, Dispatch held conditions event:0X04F0 mmcr0:0X00000000 mmcr1:0X00000000060606F2 mmcra:0X00000000 event:0X04F1 mmcr0:0X00000000 mmcr1:0X00000000060606F2 mmcra:0X00000000 event:0X04F2 mmcr0:0X00000000 mmcr1:0X00000000060606F2 mmcra:0X00000000 event:0X04F3 mmcr0:0X00000000 mmcr1:0X00000000060606F2 mmcra:0X00000000 event:0X04F4 mmcr0:0X00000000 mmcr1:0X00000000060606F2 mmcra:0X00000000 event:0X04F5 mmcr0:0X00000000 mmcr1:0X00000000060606F2 mmcra:0X00000000 #Group 80 pm_disp_held2, Dispatch held conditions event:0X0500 mmcr0:0X00000000 mmcr1:0X0000000016060606 mmcra:0X00000000 event:0X0501 mmcr0:0X00000000 mmcr1:0X0000000016060606 mmcra:0X00000000 event:0X0502 mmcr0:0X00000000 mmcr1:0X0000000016060606 mmcra:0X00000000 event:0X0503 mmcr0:0X00000000 mmcr1:0X0000000016060606 mmcra:0X00000000 event:0X0504 mmcr0:0X00000000 mmcr1:0X0000000016060606 mmcra:0X00000000 event:0X0505 mmcr0:0X00000000 mmcr1:0X0000000016060606 mmcra:0X00000000 #Group 81 pm_disp_clb_held, Display CLB held conditions event:0X0510 mmcr0:0X00000000 mmcr1:0X2222000092949698 mmcra:0X00000000 event:0X0511 mmcr0:0X00000000 mmcr1:0X2222000092949698 mmcra:0X00000000 event:0X0512 mmcr0:0X00000000 mmcr1:0X2222000092949698 mmcra:0X00000000 event:0X0513 mmcr0:0X00000000 mmcr1:0X2222000092949698 mmcra:0X00000000 event:0X0514 mmcr0:0X00000000 mmcr1:0X2222000092949698 mmcra:0X00000000 event:0X0515 mmcr0:0X00000000 mmcr1:0X2222000092949698 mmcra:0X00000000 #Group 82 pm_power, Power Events event:0X0520 mmcr0:0X00000000 mmcr1:0X000000006E6E6E6E mmcra:0X00000000 event:0X0521 mmcr0:0X00000000 mmcr1:0X000000006E6E6E6E mmcra:0X00000000 event:0X0522 mmcr0:0X00000000 mmcr1:0X000000006E6E6E6E mmcra:0X00000000 event:0X0523 mmcr0:0X00000000 mmcr1:0X000000006E6E6E6E mmcra:0X00000000 event:0X0524 mmcr0:0X00000000 mmcr1:0X000000006E6E6E6E mmcra:0X00000000 event:0X0525 mmcr0:0X00000000 mmcr1:0X000000006E6E6E6E mmcra:0X00000000 #Group 83 pm_dispatch1, Groups and instructions dispatched event:0X0530 mmcr0:0X00000000 mmcr1:0X00000000F2F20AF2 mmcra:0X00000000 event:0X0531 mmcr0:0X00000000 mmcr1:0X00000000F2F20AF2 mmcra:0X00000000 event:0X0532 mmcr0:0X00000000 mmcr1:0X00000000F2F20AF2 mmcra:0X00000000 event:0X0533 mmcr0:0X00000000 mmcr1:0X00000000F2F20AF2 mmcra:0X00000000 event:0X0534 mmcr0:0X00000000 mmcr1:0X00000000F2F20AF2 mmcra:0X00000000 event:0X0535 mmcr0:0X00000000 mmcr1:0X00000000F2F20AF2 mmcra:0X00000000 #Group 84 pm_dispatch2, Groups and instructions dispatched event:0X0540 mmcr0:0X00000000 mmcr1:0X00000000F21E02F2 mmcra:0X00000000 event:0X0541 mmcr0:0X00000000 mmcr1:0X00000000F21E02F2 mmcra:0X00000000 event:0X0542 mmcr0:0X00000000 mmcr1:0X00000000F21E02F2 mmcra:0X00000000 event:0X0543 mmcr0:0X00000000 mmcr1:0X00000000F21E02F2 mmcra:0X00000000 event:0X0544 mmcr0:0X00000000 mmcr1:0X00000000F21E02F2 mmcra:0X00000000 event:0X0545 mmcr0:0X00000000 mmcr1:0X00000000F21E02F2 mmcra:0X00000000 #Group 85 pm_ic, I cache operations event:0X0550 mmcr0:0X00000000 mmcr1:0X4444000F888C9098 mmcra:0X00000000 event:0X0551 mmcr0:0X00000000 mmcr1:0X4444000F888C9098 mmcra:0X00000000 event:0X0552 mmcr0:0X00000000 mmcr1:0X4444000F888C9098 mmcra:0X00000000 event:0X0553 mmcr0:0X00000000 mmcr1:0X4444000F888C9098 mmcra:0X00000000 event:0X0554 mmcr0:0X00000000 mmcr1:0X4444000F888C9098 mmcra:0X00000000 event:0X0555 mmcr0:0X00000000 mmcr1:0X4444000F888C9098 mmcra:0X00000000 #Group 86 pm_ic_pref_cancel, Instruction pre-fetched cancelled event:0X0560 mmcr0:0X00000000 mmcr1:0X4444000190929490 mmcra:0X00000000 event:0X0561 mmcr0:0X00000000 mmcr1:0X4444000190929490 mmcra:0X00000000 event:0X0562 mmcr0:0X00000000 mmcr1:0X4444000190929490 mmcra:0X00000000 event:0X0563 mmcr0:0X00000000 mmcr1:0X4444000190929490 mmcra:0X00000000 event:0X0564 mmcr0:0X00000000 mmcr1:0X4444000190929490 mmcra:0X00000000 event:0X0565 mmcr0:0X00000000 mmcr1:0X4444000190929490 mmcra:0X00000000 #Group 87 pm_ic_miss, Icache and Ierat miss events event:0X0570 mmcr0:0X00000000 mmcr1:0X00000000F6FC021E mmcra:0X00000000 event:0X0571 mmcr0:0X00000000 mmcr1:0X00000000F6FC021E mmcra:0X00000000 event:0X0572 mmcr0:0X00000000 mmcr1:0X00000000F6FC021E mmcra:0X00000000 event:0X0573 mmcr0:0X00000000 mmcr1:0X00000000F6FC021E mmcra:0X00000000 event:0X0574 mmcr0:0X00000000 mmcr1:0X00000000F6FC021E mmcra:0X00000000 event:0X0575 mmcr0:0X00000000 mmcr1:0X00000000F6FC021E mmcra:0X00000000 #Group 88 pm_cpi_stack1, CPI stack breakdown event:0X0580 mmcr0:0X00000000 mmcr1:0XC00000004016F618 mmcra:0X00000000 event:0X0581 mmcr0:0X00000000 mmcr1:0XC00000004016F618 mmcra:0X00000000 event:0X0582 mmcr0:0X00000000 mmcr1:0XC00000004016F618 mmcra:0X00000000 event:0X0583 mmcr0:0X00000000 mmcr1:0XC00000004016F618 mmcra:0X00000000 event:0X0584 mmcr0:0X00000000 mmcr1:0XC00000004016F618 mmcra:0X00000000 event:0X0585 mmcr0:0X00000000 mmcr1:0XC00000004016F618 mmcra:0X00000000 #Group 89 pm_cpi_stack2, CPI stack breakdown event:0X0590 mmcr0:0X00000000 mmcr1:0X000000000E140414 mmcra:0X00000000 event:0X0591 mmcr0:0X00000000 mmcr1:0X000000000E140414 mmcra:0X00000000 event:0X0592 mmcr0:0X00000000 mmcr1:0X000000000E140414 mmcra:0X00000000 event:0X0593 mmcr0:0X00000000 mmcr1:0X000000000E140414 mmcra:0X00000000 event:0X0594 mmcr0:0X00000000 mmcr1:0X000000000E140414 mmcra:0X00000000 event:0X0595 mmcr0:0X00000000 mmcr1:0X000000000E140414 mmcra:0X00000000 #Group 90 pm_cpi_stack3, CPI stack breakdown event:0X05A0 mmcr0:0X00000000 mmcr1:0X0000000026121A16 mmcra:0X00000000 event:0X05A1 mmcr0:0X00000000 mmcr1:0X0000000026121A16 mmcra:0X00000000 event:0X05A2 mmcr0:0X00000000 mmcr1:0X0000000026121A16 mmcra:0X00000000 event:0X05A3 mmcr0:0X00000000 mmcr1:0X0000000026121A16 mmcra:0X00000000 event:0X05A4 mmcr0:0X00000000 mmcr1:0X0000000026121A16 mmcra:0X00000000 event:0X05A5 mmcr0:0X00000000 mmcr1:0X0000000026121A16 mmcra:0X00000000 #Group 91 pm_cpi_stack4, CPI stack breakdown event:0X05B0 mmcr0:0X00000000 mmcr1:0X00000000F4183E12 mmcra:0X00000000 event:0X05B1 mmcr0:0X00000000 mmcr1:0X00000000F4183E12 mmcra:0X00000000 event:0X05B2 mmcr0:0X00000000 mmcr1:0X00000000F4183E12 mmcra:0X00000000 event:0X05B3 mmcr0:0X00000000 mmcr1:0X00000000F4183E12 mmcra:0X00000000 event:0X05B4 mmcr0:0X00000000 mmcr1:0X00000000F4183E12 mmcra:0X00000000 event:0X05B5 mmcr0:0X00000000 mmcr1:0X00000000F4183E12 mmcra:0X00000000 #Group 92 pm_cpi_stack5, CPI stack breakdown event:0X05C0 mmcr0:0X00000000 mmcr1:0X00000000281C3F0A mmcra:0X00000000 event:0X05C1 mmcr0:0X00000000 mmcr1:0X00000000281C3F0A mmcra:0X00000000 event:0X05C2 mmcr0:0X00000000 mmcr1:0X00000000281C3F0A mmcra:0X00000000 event:0X05C3 mmcr0:0X00000000 mmcr1:0X00000000281C3F0A mmcra:0X00000000 event:0X05C4 mmcr0:0X00000000 mmcr1:0X00000000281C3F0A mmcra:0X00000000 event:0X05C5 mmcr0:0X00000000 mmcr1:0X00000000281C3F0A mmcra:0X00000000 #Group 93 pm_cpi_stack6, CPI stack breakdown event:0X05D0 mmcr0:0X00000000 mmcr1:0X000000001C3C021C mmcra:0X00000000 event:0X05D1 mmcr0:0X00000000 mmcr1:0X000000001C3C021C mmcra:0X00000000 event:0X05D2 mmcr0:0X00000000 mmcr1:0X000000001C3C021C mmcra:0X00000000 event:0X05D3 mmcr0:0X00000000 mmcr1:0X000000001C3C021C mmcra:0X00000000 event:0X05D4 mmcr0:0X00000000 mmcr1:0X000000001C3C021C mmcra:0X00000000 event:0X05D5 mmcr0:0X00000000 mmcr1:0X000000001C3C021C mmcra:0X00000000 #Group 94 pm_cpi_stack7, CPI stack breakdown event:0X05E0 mmcr0:0X00000000 mmcr1:0X00000000F81A141A mmcra:0X00000000 event:0X05E1 mmcr0:0X00000000 mmcr1:0X00000000F81A141A mmcra:0X00000000 event:0X05E2 mmcr0:0X00000000 mmcr1:0X00000000F81A141A mmcra:0X00000000 event:0X05E3 mmcr0:0X00000000 mmcr1:0X00000000F81A141A mmcra:0X00000000 event:0X05E4 mmcr0:0X00000000 mmcr1:0X00000000F81A141A mmcra:0X00000000 event:0X05E5 mmcr0:0X00000000 mmcr1:0X00000000F81A141A mmcra:0X00000000 #Group 95 pm_cpi_stack8, CPI stack breakdown event:0X05F0 mmcr0:0X00000000 mmcr1:0X00000000F24AF24A mmcra:0X00000000 event:0X05F1 mmcr0:0X00000000 mmcr1:0X00000000F24AF24A mmcra:0X00000000 event:0X05F2 mmcr0:0X00000000 mmcr1:0X00000000F24AF24A mmcra:0X00000000 event:0X05F3 mmcr0:0X00000000 mmcr1:0X00000000F24AF24A mmcra:0X00000000 event:0X05F4 mmcr0:0X00000000 mmcr1:0X00000000F24AF24A mmcra:0X00000000 event:0X05F5 mmcr0:0X00000000 mmcr1:0X00000000F24AF24A mmcra:0X00000000 #Group 96 pm_cpi_stack9, CPI stack breakdown event:0X0600 mmcr0:0X00000000 mmcr1:0X000000001C3C020B mmcra:0X00000000 event:0X0601 mmcr0:0X00000000 mmcr1:0X000000001C3C020B mmcra:0X00000000 event:0X0602 mmcr0:0X00000000 mmcr1:0X000000001C3C020B mmcra:0X00000000 event:0X0603 mmcr0:0X00000000 mmcr1:0X000000001C3C020B mmcra:0X00000000 event:0X0604 mmcr0:0X00000000 mmcr1:0X000000001C3C020B mmcra:0X00000000 event:0X0605 mmcr0:0X00000000 mmcr1:0X000000001C3C020B mmcra:0X00000000 #Group 97 pm_cpi_stack10, CPI stack breakdown event:0X0610 mmcr0:0X00000000 mmcr1:0X00000000F216F618 mmcra:0X00000000 event:0X0611 mmcr0:0X00000000 mmcr1:0X00000000F216F618 mmcra:0X00000000 event:0X0612 mmcr0:0X00000000 mmcr1:0X00000000F216F618 mmcra:0X00000000 event:0X0613 mmcr0:0X00000000 mmcr1:0X00000000F216F618 mmcra:0X00000000 event:0X0614 mmcr0:0X00000000 mmcr1:0X00000000F216F618 mmcra:0X00000000 event:0X0615 mmcr0:0X00000000 mmcr1:0X00000000F216F618 mmcra:0X00000000 #Group 98 pm_dsource1, Data source information event:0X0620 mmcr0:0X00000000 mmcr1:0XCCCC000040404242 mmcra:0X00000000 event:0X0621 mmcr0:0X00000000 mmcr1:0XCCCC000040404242 mmcra:0X00000000 event:0X0622 mmcr0:0X00000000 mmcr1:0XCCCC000040404242 mmcra:0X00000000 event:0X0623 mmcr0:0X00000000 mmcr1:0XCCCC000040404242 mmcra:0X00000000 event:0X0624 mmcr0:0X00000000 mmcr1:0XCCCC000040404242 mmcra:0X00000000 event:0X0625 mmcr0:0X00000000 mmcr1:0XCCCC000040404242 mmcra:0X00000000 #Group 99 pm_dsource2, Data source information event:0X0630 mmcr0:0X00000000 mmcr1:0XCCCC000048464A48 mmcra:0X00000000 event:0X0631 mmcr0:0X00000000 mmcr1:0XCCCC000048464A48 mmcra:0X00000000 event:0X0632 mmcr0:0X00000000 mmcr1:0XCCCC000048464A48 mmcra:0X00000000 event:0X0633 mmcr0:0X00000000 mmcr1:0XCCCC000048464A48 mmcra:0X00000000 event:0X0634 mmcr0:0X00000000 mmcr1:0XCCCC000048464A48 mmcra:0X00000000 event:0X0635 mmcr0:0X00000000 mmcr1:0XCCCC000048464A48 mmcra:0X00000000 #Group 100 pm_dsource3, Data source information event:0X0640 mmcr0:0X00000000 mmcr1:0XCCCC00004A484648 mmcra:0X00000000 event:0X0641 mmcr0:0X00000000 mmcr1:0XCCCC00004A484648 mmcra:0X00000000 event:0X0642 mmcr0:0X00000000 mmcr1:0XCCCC00004A484648 mmcra:0X00000000 event:0X0643 mmcr0:0X00000000 mmcr1:0XCCCC00004A484648 mmcra:0X00000000 event:0X0644 mmcr0:0X00000000 mmcr1:0XCCCC00004A484648 mmcra:0X00000000 event:0X0645 mmcr0:0X00000000 mmcr1:0XCCCC00004A484648 mmcra:0X00000000 #Group 101 pm_dsource4, Data source information event:0X0650 mmcr0:0X00000000 mmcr1:0XCCCC000044444C44 mmcra:0X00000000 event:0X0651 mmcr0:0X00000000 mmcr1:0XCCCC000044444C44 mmcra:0X00000000 event:0X0652 mmcr0:0X00000000 mmcr1:0XCCCC000044444C44 mmcra:0X00000000 event:0X0653 mmcr0:0X00000000 mmcr1:0XCCCC000044444C44 mmcra:0X00000000 event:0X0654 mmcr0:0X00000000 mmcr1:0XCCCC000044444C44 mmcra:0X00000000 event:0X0655 mmcr0:0X00000000 mmcr1:0XCCCC000044444C44 mmcra:0X00000000 #Group 102 pm_dsource5, Data source information event:0X0660 mmcr0:0X00000000 mmcr1:0XCCCC00004E424446 mmcra:0X00000000 event:0X0661 mmcr0:0X00000000 mmcr1:0XCCCC00004E424446 mmcra:0X00000000 event:0X0662 mmcr0:0X00000000 mmcr1:0XCCCC00004E424446 mmcra:0X00000000 event:0X0663 mmcr0:0X00000000 mmcr1:0XCCCC00004E424446 mmcra:0X00000000 event:0X0664 mmcr0:0X00000000 mmcr1:0XCCCC00004E424446 mmcra:0X00000000 event:0X0665 mmcr0:0X00000000 mmcr1:0XCCCC00004E424446 mmcra:0X00000000 #Group 103 pm_dsource6, Data source information event:0X0670 mmcr0:0X00000000 mmcr1:0XCCCC000042444E48 mmcra:0X00000000 event:0X0671 mmcr0:0X00000000 mmcr1:0XCCCC000042444E48 mmcra:0X00000000 event:0X0672 mmcr0:0X00000000 mmcr1:0XCCCC000042444E48 mmcra:0X00000000 event:0X0673 mmcr0:0X00000000 mmcr1:0XCCCC000042444E48 mmcra:0X00000000 event:0X0674 mmcr0:0X00000000 mmcr1:0XCCCC000042444E48 mmcra:0X00000000 event:0X0675 mmcr0:0X00000000 mmcr1:0XCCCC000042444E48 mmcra:0X00000000 #Group 104 pm_dsource7, Data source information event:0X0680 mmcr0:0X00000000 mmcr1:0XCCCC00004C484C44 mmcra:0X00000000 event:0X0681 mmcr0:0X00000000 mmcr1:0XCCCC00004C484C44 mmcra:0X00000000 event:0X0682 mmcr0:0X00000000 mmcr1:0XCCCC00004C484C44 mmcra:0X00000000 event:0X0683 mmcr0:0X00000000 mmcr1:0XCCCC00004C484C44 mmcra:0X00000000 event:0X0684 mmcr0:0X00000000 mmcr1:0XCCCC00004C484C44 mmcra:0X00000000 event:0X0685 mmcr0:0X00000000 mmcr1:0XCCCC00004C484C44 mmcra:0X00000000 #Group 105 pm_dsource8, Data source information event:0X0690 mmcr0:0X00000000 mmcr1:0X0C0C00000240FE42 mmcra:0X00000000 event:0X0691 mmcr0:0X00000000 mmcr1:0X0C0C00000240FE42 mmcra:0X00000000 event:0X0692 mmcr0:0X00000000 mmcr1:0X0C0C00000240FE42 mmcra:0X00000000 event:0X0693 mmcr0:0X00000000 mmcr1:0X0C0C00000240FE42 mmcra:0X00000000 event:0X0694 mmcr0:0X00000000 mmcr1:0X0C0C00000240FE42 mmcra:0X00000000 event:0X0695 mmcr0:0X00000000 mmcr1:0X0C0C00000240FE42 mmcra:0X00000000 #Group 106 pm_dsource9, Data source information event:0X06A0 mmcr0:0X00000000 mmcr1:0XC000000040FEF6F0 mmcra:0X00000000 event:0X06A1 mmcr0:0X00000000 mmcr1:0XC000000040FEF6F0 mmcra:0X00000000 event:0X06A2 mmcr0:0X00000000 mmcr1:0XC000000040FEF6F0 mmcra:0X00000000 event:0X06A3 mmcr0:0X00000000 mmcr1:0XC000000040FEF6F0 mmcra:0X00000000 event:0X06A4 mmcr0:0X00000000 mmcr1:0XC000000040FEF6F0 mmcra:0X00000000 event:0X06A5 mmcr0:0X00000000 mmcr1:0XC000000040FEF6F0 mmcra:0X00000000 #Group 107 pm_dsource10, Data source information event:0X06B0 mmcr0:0X00000000 mmcr1:0XCCCC000042444444 mmcra:0X00000000 event:0X06B1 mmcr0:0X00000000 mmcr1:0XCCCC000042444444 mmcra:0X00000000 event:0X06B2 mmcr0:0X00000000 mmcr1:0XCCCC000042444444 mmcra:0X00000000 event:0X06B3 mmcr0:0X00000000 mmcr1:0XCCCC000042444444 mmcra:0X00000000 event:0X06B4 mmcr0:0X00000000 mmcr1:0XCCCC000042444444 mmcra:0X00000000 event:0X06B5 mmcr0:0X00000000 mmcr1:0XCCCC000042444444 mmcra:0X00000000 #Group 108 pm_dsource11, Data source information event:0X06C0 mmcr0:0X00000000 mmcr1:0XC000000040FEFEFA mmcra:0X00000000 event:0X06C1 mmcr0:0X00000000 mmcr1:0XC000000040FEFEFA mmcra:0X00000000 event:0X06C2 mmcr0:0X00000000 mmcr1:0XC000000040FEFEFA mmcra:0X00000000 event:0X06C3 mmcr0:0X00000000 mmcr1:0XC000000040FEFEFA mmcra:0X00000000 event:0X06C4 mmcr0:0X00000000 mmcr1:0XC000000040FEFEFA mmcra:0X00000000 event:0X06C5 mmcr0:0X00000000 mmcr1:0XC000000040FEFEFA mmcra:0X00000000 #Group 109 pm_dsource12, Data source information event:0X06D0 mmcr0:0X00000000 mmcr1:0XCCCC000042424242 mmcra:0X00000000 event:0X06D1 mmcr0:0X00000000 mmcr1:0XCCCC000042424242 mmcra:0X00000000 event:0X06D2 mmcr0:0X00000000 mmcr1:0XCCCC000042424242 mmcra:0X00000000 event:0X06D3 mmcr0:0X00000000 mmcr1:0XCCCC000042424242 mmcra:0X00000000 event:0X06D4 mmcr0:0X00000000 mmcr1:0XCCCC000042424242 mmcra:0X00000000 event:0X06D5 mmcr0:0X00000000 mmcr1:0XCCCC000042424242 mmcra:0X00000000 #Group 110 pm_dsource13, Data source information event:0X06E0 mmcr0:0X00000000 mmcr1:0XC0CC00005C024444 mmcra:0X00000000 event:0X06E1 mmcr0:0X00000000 mmcr1:0XC0CC00005C024444 mmcra:0X00000000 event:0X06E2 mmcr0:0X00000000 mmcr1:0XC0CC00005C024444 mmcra:0X00000000 event:0X06E3 mmcr0:0X00000000 mmcr1:0XC0CC00005C024444 mmcra:0X00000000 event:0X06E4 mmcr0:0X00000000 mmcr1:0XC0CC00005C024444 mmcra:0X00000000 event:0X06E5 mmcr0:0X00000000 mmcr1:0XC0CC00005C024444 mmcra:0X00000000 #Group 111 pm_dsource14, Data source information event:0X06F0 mmcr0:0X00000000 mmcr1:0XC0CC00004A024242 mmcra:0X00000000 event:0X06F1 mmcr0:0X00000000 mmcr1:0XC0CC00004A024242 mmcra:0X00000000 event:0X06F2 mmcr0:0X00000000 mmcr1:0XC0CC00004A024242 mmcra:0X00000000 event:0X06F3 mmcr0:0X00000000 mmcr1:0XC0CC00004A024242 mmcra:0X00000000 event:0X06F4 mmcr0:0X00000000 mmcr1:0XC0CC00004A024242 mmcra:0X00000000 event:0X06F5 mmcr0:0X00000000 mmcr1:0XC0CC00004A024242 mmcra:0X00000000 #Group 112 pm_dsource15, Data source information event:0X0700 mmcr0:0X00000000 mmcr1:0XC00C00004A02F642 mmcra:0X00000000 event:0X0701 mmcr0:0X00000000 mmcr1:0XC00C00004A02F642 mmcra:0X00000000 event:0X0702 mmcr0:0X00000000 mmcr1:0XC00C00004A02F642 mmcra:0X00000000 event:0X0703 mmcr0:0X00000000 mmcr1:0XC00C00004A02F642 mmcra:0X00000000 event:0X0704 mmcr0:0X00000000 mmcr1:0XC00C00004A02F642 mmcra:0X00000000 event:0X0705 mmcr0:0X00000000 mmcr1:0XC00C00004A02F642 mmcra:0X00000000 #Group 113 pm_isource1, Instruction source information event:0X0710 mmcr0:0X00000000 mmcr1:0X4444000040404A48 mmcra:0X00000000 event:0X0711 mmcr0:0X00000000 mmcr1:0X4444000040404A48 mmcra:0X00000000 event:0X0712 mmcr0:0X00000000 mmcr1:0X4444000040404A48 mmcra:0X00000000 event:0X0713 mmcr0:0X00000000 mmcr1:0X4444000040404A48 mmcra:0X00000000 event:0X0714 mmcr0:0X00000000 mmcr1:0X4444000040404A48 mmcra:0X00000000 event:0X0715 mmcr0:0X00000000 mmcr1:0X4444000040404A48 mmcra:0X00000000 #Group 114 pm_isource2, Instruction source information event:0X0720 mmcr0:0X00000000 mmcr1:0X4444000048424C42 mmcra:0X00000000 event:0X0721 mmcr0:0X00000000 mmcr1:0X4444000048424C42 mmcra:0X00000000 event:0X0722 mmcr0:0X00000000 mmcr1:0X4444000048424C42 mmcra:0X00000000 event:0X0723 mmcr0:0X00000000 mmcr1:0X4444000048424C42 mmcra:0X00000000 event:0X0724 mmcr0:0X00000000 mmcr1:0X4444000048424C42 mmcra:0X00000000 event:0X0725 mmcr0:0X00000000 mmcr1:0X4444000048424C42 mmcra:0X00000000 #Group 115 pm_isource3, Instruction source information event:0X0730 mmcr0:0X00000000 mmcr1:0X444400004A484444 mmcra:0X00000000 event:0X0731 mmcr0:0X00000000 mmcr1:0X444400004A484444 mmcra:0X00000000 event:0X0732 mmcr0:0X00000000 mmcr1:0X444400004A484444 mmcra:0X00000000 event:0X0733 mmcr0:0X00000000 mmcr1:0X444400004A484444 mmcra:0X00000000 event:0X0734 mmcr0:0X00000000 mmcr1:0X444400004A484444 mmcra:0X00000000 event:0X0735 mmcr0:0X00000000 mmcr1:0X444400004A484444 mmcra:0X00000000 #Group 116 pm_isource4, Instruction source information event:0X0740 mmcr0:0X00000000 mmcr1:0X4444000044464646 mmcra:0X00000000 event:0X0741 mmcr0:0X00000000 mmcr1:0X4444000044464646 mmcra:0X00000000 event:0X0742 mmcr0:0X00000000 mmcr1:0X4444000044464646 mmcra:0X00000000 event:0X0743 mmcr0:0X00000000 mmcr1:0X4444000044464646 mmcra:0X00000000 event:0X0744 mmcr0:0X00000000 mmcr1:0X4444000044464646 mmcra:0X00000000 event:0X0745 mmcr0:0X00000000 mmcr1:0X4444000044464646 mmcra:0X00000000 #Group 117 pm_isource5, Instruction source information event:0X0750 mmcr0:0X00000000 mmcr1:0X444400004E444E48 mmcra:0X00000000 event:0X0751 mmcr0:0X00000000 mmcr1:0X444400004E444E48 mmcra:0X00000000 event:0X0752 mmcr0:0X00000000 mmcr1:0X444400004E444E48 mmcra:0X00000000 event:0X0753 mmcr0:0X00000000 mmcr1:0X444400004E444E48 mmcra:0X00000000 event:0X0754 mmcr0:0X00000000 mmcr1:0X444400004E444E48 mmcra:0X00000000 event:0X0755 mmcr0:0X00000000 mmcr1:0X444400004E444E48 mmcra:0X00000000 #Group 118 pm_isource6, Instruction source information event:0X0760 mmcr0:0X00000000 mmcr1:0X4444000046484A48 mmcra:0X00000000 event:0X0761 mmcr0:0X00000000 mmcr1:0X4444000046484A48 mmcra:0X00000000 event:0X0762 mmcr0:0X00000000 mmcr1:0X4444000046484A48 mmcra:0X00000000 event:0X0763 mmcr0:0X00000000 mmcr1:0X4444000046484A48 mmcra:0X00000000 event:0X0764 mmcr0:0X00000000 mmcr1:0X4444000046484A48 mmcra:0X00000000 event:0X0765 mmcr0:0X00000000 mmcr1:0X4444000046484A48 mmcra:0X00000000 #Group 119 pm_isource7, Instruction source information event:0X0770 mmcr0:0X00000000 mmcr1:0X4444000042444444 mmcra:0X00000000 event:0X0771 mmcr0:0X00000000 mmcr1:0X4444000042444444 mmcra:0X00000000 event:0X0772 mmcr0:0X00000000 mmcr1:0X4444000042444444 mmcra:0X00000000 event:0X0773 mmcr0:0X00000000 mmcr1:0X4444000042444444 mmcra:0X00000000 event:0X0774 mmcr0:0X00000000 mmcr1:0X4444000042444444 mmcra:0X00000000 event:0X0775 mmcr0:0X00000000 mmcr1:0X4444000042444444 mmcra:0X00000000 #Group 120 pm_isource8, Instruction source information event:0X0780 mmcr0:0X00000000 mmcr1:0X444400004C484A48 mmcra:0X00000000 event:0X0781 mmcr0:0X00000000 mmcr1:0X444400004C484A48 mmcra:0X00000000 event:0X0782 mmcr0:0X00000000 mmcr1:0X444400004C484A48 mmcra:0X00000000 event:0X0783 mmcr0:0X00000000 mmcr1:0X444400004C484A48 mmcra:0X00000000 event:0X0784 mmcr0:0X00000000 mmcr1:0X444400004C484A48 mmcra:0X00000000 event:0X0785 mmcr0:0X00000000 mmcr1:0X444400004C484A48 mmcra:0X00000000 #Group 121 pm_isource9, Instruction source information event:0X0790 mmcr0:0X00000000 mmcr1:0X4444000046424242 mmcra:0X00000000 event:0X0791 mmcr0:0X00000000 mmcr1:0X4444000046424242 mmcra:0X00000000 event:0X0792 mmcr0:0X00000000 mmcr1:0X4444000046424242 mmcra:0X00000000 event:0X0793 mmcr0:0X00000000 mmcr1:0X4444000046424242 mmcra:0X00000000 event:0X0794 mmcr0:0X00000000 mmcr1:0X4444000046424242 mmcra:0X00000000 event:0X0795 mmcr0:0X00000000 mmcr1:0X4444000046424242 mmcra:0X00000000 #Group 122 pm_isource10, Instruction source information event:0X07A0 mmcr0:0X00000000 mmcr1:0X440000004040021E mmcra:0X00000000 event:0X07A1 mmcr0:0X00000000 mmcr1:0X440000004040021E mmcra:0X00000000 event:0X07A2 mmcr0:0X00000000 mmcr1:0X440000004040021E mmcra:0X00000000 event:0X07A3 mmcr0:0X00000000 mmcr1:0X440000004040021E mmcra:0X00000000 event:0X07A4 mmcr0:0X00000000 mmcr1:0X440000004040021E mmcra:0X00000000 event:0X07A5 mmcr0:0X00000000 mmcr1:0X440000004040021E mmcra:0X00000000 #Group 123 pm_isource11, Instruction source information event:0X07B0 mmcr0:0X00000000 mmcr1:0X4440000042444A02 mmcra:0X00000000 event:0X07B1 mmcr0:0X00000000 mmcr1:0X4440000042444A02 mmcra:0X00000000 event:0X07B2 mmcr0:0X00000000 mmcr1:0X4440000042444A02 mmcra:0X00000000 event:0X07B3 mmcr0:0X00000000 mmcr1:0X4440000042444A02 mmcra:0X00000000 event:0X07B4 mmcr0:0X00000000 mmcr1:0X4440000042444A02 mmcra:0X00000000 event:0X07B5 mmcr0:0X00000000 mmcr1:0X4440000042444A02 mmcra:0X00000000 #Group 124 pm_isource12, Instruction source information event:0X07C0 mmcr0:0X00000000 mmcr1:0X004400001E024444 mmcra:0X00000000 event:0X07C1 mmcr0:0X00000000 mmcr1:0X004400001E024444 mmcra:0X00000000 event:0X07C2 mmcr0:0X00000000 mmcr1:0X004400001E024444 mmcra:0X00000000 event:0X07C3 mmcr0:0X00000000 mmcr1:0X004400001E024444 mmcra:0X00000000 event:0X07C4 mmcr0:0X00000000 mmcr1:0X004400001E024444 mmcra:0X00000000 event:0X07C5 mmcr0:0X00000000 mmcr1:0X004400001E024444 mmcra:0X00000000 #Group 125 pm_isource13, Instruction source information event:0X07D0 mmcr0:0X00000000 mmcr1:0X404400004A024242 mmcra:0X00000000 event:0X07D1 mmcr0:0X00000000 mmcr1:0X404400004A024242 mmcra:0X00000000 event:0X07D2 mmcr0:0X00000000 mmcr1:0X404400004A024242 mmcra:0X00000000 event:0X07D3 mmcr0:0X00000000 mmcr1:0X404400004A024242 mmcra:0X00000000 event:0X07D4 mmcr0:0X00000000 mmcr1:0X404400004A024242 mmcra:0X00000000 event:0X07D5 mmcr0:0X00000000 mmcr1:0X404400004A024242 mmcra:0X00000000 #Group 126 pm_prefetch1, Prefetch events event:0X07E0 mmcr0:0X00000000 mmcr1:0XDDDD000FA8ACB4B8 mmcra:0X00000000 event:0X07E1 mmcr0:0X00000000 mmcr1:0XDDDD000FA8ACB4B8 mmcra:0X00000000 event:0X07E2 mmcr0:0X00000000 mmcr1:0XDDDD000FA8ACB4B8 mmcra:0X00000000 event:0X07E3 mmcr0:0X00000000 mmcr1:0XDDDD000FA8ACB4B8 mmcra:0X00000000 event:0X07E4 mmcr0:0X00000000 mmcr1:0XDDDD000FA8ACB4B8 mmcra:0X00000000 event:0X07E5 mmcr0:0X00000000 mmcr1:0XDDDD000FA8ACB4B8 mmcra:0X00000000 #Group 127 pm_prefetch2, Prefetch events event:0X07F0 mmcr0:0X00000000 mmcr1:0XDC00000CBC8066F0 mmcra:0X00000000 event:0X07F1 mmcr0:0X00000000 mmcr1:0XDC00000CBC8066F0 mmcra:0X00000000 event:0X07F2 mmcr0:0X00000000 mmcr1:0XDC00000CBC8066F0 mmcra:0X00000000 event:0X07F3 mmcr0:0X00000000 mmcr1:0XDC00000CBC8066F0 mmcra:0X00000000 event:0X07F4 mmcr0:0X00000000 mmcr1:0XDC00000CBC8066F0 mmcra:0X00000000 event:0X07F5 mmcr0:0X00000000 mmcr1:0XDC00000CBC8066F0 mmcra:0X00000000 #Group 128 pm_vsu0, VSU Execution event:0X0800 mmcr0:0X00000000 mmcr1:0XAAAA00008082989A mmcra:0X00000000 event:0X0801 mmcr0:0X00000000 mmcr1:0XAAAA00008082989A mmcra:0X00000000 event:0X0802 mmcr0:0X00000000 mmcr1:0XAAAA00008082989A mmcra:0X00000000 event:0X0803 mmcr0:0X00000000 mmcr1:0XAAAA00008082989A mmcra:0X00000000 event:0X0804 mmcr0:0X00000000 mmcr1:0XAAAA00008082989A mmcra:0X00000000 event:0X0805 mmcr0:0X00000000 mmcr1:0XAAAA00008082989A mmcra:0X00000000 #Group 129 pm_vsu1, VSU Execution event:0X0810 mmcr0:0X00000000 mmcr1:0XAAAA00009C9EA0A2 mmcra:0X00000000 event:0X0811 mmcr0:0X00000000 mmcr1:0XAAAA00009C9EA0A2 mmcra:0X00000000 event:0X0812 mmcr0:0X00000000 mmcr1:0XAAAA00009C9EA0A2 mmcra:0X00000000 event:0X0813 mmcr0:0X00000000 mmcr1:0XAAAA00009C9EA0A2 mmcra:0X00000000 event:0X0814 mmcr0:0X00000000 mmcr1:0XAAAA00009C9EA0A2 mmcra:0X00000000 event:0X0815 mmcr0:0X00000000 mmcr1:0XAAAA00009C9EA0A2 mmcra:0X00000000 #Group 130 pm_vsu2, VSU Execution event:0X0820 mmcr0:0X00000000 mmcr1:0XAAAA000C988C8C8E mmcra:0X00000000 event:0X0821 mmcr0:0X00000000 mmcr1:0XAAAA000C988C8C8E mmcra:0X00000000 event:0X0822 mmcr0:0X00000000 mmcr1:0XAAAA000C988C8C8E mmcra:0X00000000 event:0X0823 mmcr0:0X00000000 mmcr1:0XAAAA000C988C8C8E mmcra:0X00000000 event:0X0824 mmcr0:0X00000000 mmcr1:0XAAAA000C988C8C8E mmcra:0X00000000 event:0X0825 mmcr0:0X00000000 mmcr1:0XAAAA000C988C8C8E mmcra:0X00000000 #Group 131 pm_vsu3, VSU Execution event:0X0830 mmcr0:0X00000000 mmcr1:0XAAA0000284868402 mmcra:0X00000000 event:0X0831 mmcr0:0X00000000 mmcr1:0XAAA0000284868402 mmcra:0X00000000 event:0X0832 mmcr0:0X00000000 mmcr1:0XAAA0000284868402 mmcra:0X00000000 event:0X0833 mmcr0:0X00000000 mmcr1:0XAAA0000284868402 mmcra:0X00000000 event:0X0834 mmcr0:0X00000000 mmcr1:0XAAA0000284868402 mmcra:0X00000000 event:0X0835 mmcr0:0X00000000 mmcr1:0XAAA0000284868402 mmcra:0X00000000 #Group 132 pm_vsu4, VSU Execution event:0X0840 mmcr0:0X00000000 mmcr1:0XAAA0000290929002 mmcra:0X00000000 event:0X0841 mmcr0:0X00000000 mmcr1:0XAAA0000290929002 mmcra:0X00000000 event:0X0842 mmcr0:0X00000000 mmcr1:0XAAA0000290929002 mmcra:0X00000000 event:0X0843 mmcr0:0X00000000 mmcr1:0XAAA0000290929002 mmcra:0X00000000 event:0X0844 mmcr0:0X00000000 mmcr1:0XAAA0000290929002 mmcra:0X00000000 event:0X0845 mmcr0:0X00000000 mmcr1:0XAAA0000290929002 mmcra:0X00000000 #Group 133 pm_vsu5, VSU Execution event:0X0850 mmcr0:0X00000000 mmcr1:0XBBB0000880808202 mmcra:0X00000000 event:0X0851 mmcr0:0X00000000 mmcr1:0XBBB0000880808202 mmcra:0X00000000 event:0X0852 mmcr0:0X00000000 mmcr1:0XBBB0000880808202 mmcra:0X00000000 event:0X0853 mmcr0:0X00000000 mmcr1:0XBBB0000880808202 mmcra:0X00000000 event:0X0854 mmcr0:0X00000000 mmcr1:0XBBB0000880808202 mmcra:0X00000000 event:0X0855 mmcr0:0X00000000 mmcr1:0XBBB0000880808202 mmcra:0X00000000 #Group 134 pm_vsu6, VSU Execution event:0X0860 mmcr0:0X00000000 mmcr1:0XAAA00008ACACAE02 mmcra:0X00000000 event:0X0861 mmcr0:0X00000000 mmcr1:0XAAA00008ACACAE02 mmcra:0X00000000 event:0X0862 mmcr0:0X00000000 mmcr1:0XAAA00008ACACAE02 mmcra:0X00000000 event:0X0863 mmcr0:0X00000000 mmcr1:0XAAA00008ACACAE02 mmcra:0X00000000 event:0X0864 mmcr0:0X00000000 mmcr1:0XAAA00008ACACAE02 mmcra:0X00000000 event:0X0865 mmcr0:0X00000000 mmcr1:0XAAA00008ACACAE02 mmcra:0X00000000 #Group 135 pm_vsu7, VSU Execution event:0X0870 mmcr0:0X00000000 mmcr1:0XAAA00008BCBCBE02 mmcra:0X00000000 event:0X0871 mmcr0:0X00000000 mmcr1:0XAAA00008BCBCBE02 mmcra:0X00000000 event:0X0872 mmcr0:0X00000000 mmcr1:0XAAA00008BCBCBE02 mmcra:0X00000000 event:0X0873 mmcr0:0X00000000 mmcr1:0XAAA00008BCBCBE02 mmcra:0X00000000 event:0X0874 mmcr0:0X00000000 mmcr1:0XAAA00008BCBCBE02 mmcra:0X00000000 event:0X0875 mmcr0:0X00000000 mmcr1:0XAAA00008BCBCBE02 mmcra:0X00000000 #Group 136 pm_vsu8, VSU Execution event:0X0880 mmcr0:0X00000000 mmcr1:0XBBB000088C8C8E02 mmcra:0X00000000 event:0X0881 mmcr0:0X00000000 mmcr1:0XBBB000088C8C8E02 mmcra:0X00000000 event:0X0882 mmcr0:0X00000000 mmcr1:0XBBB000088C8C8E02 mmcra:0X00000000 event:0X0883 mmcr0:0X00000000 mmcr1:0XBBB000088C8C8E02 mmcra:0X00000000 event:0X0884 mmcr0:0X00000000 mmcr1:0XBBB000088C8C8E02 mmcra:0X00000000 event:0X0885 mmcr0:0X00000000 mmcr1:0XBBB000088C8C8E02 mmcra:0X00000000 #Group 137 pm_vsu9, VSU Execution event:0X0890 mmcr0:0X00000000 mmcr1:0XAAAA0008A8A8AAA4 mmcra:0X00000000 event:0X0891 mmcr0:0X00000000 mmcr1:0XAAAA0008A8A8AAA4 mmcra:0X00000000 event:0X0892 mmcr0:0X00000000 mmcr1:0XAAAA0008A8A8AAA4 mmcra:0X00000000 event:0X0893 mmcr0:0X00000000 mmcr1:0XAAAA0008A8A8AAA4 mmcra:0X00000000 event:0X0894 mmcr0:0X00000000 mmcr1:0XAAAA0008A8A8AAA4 mmcra:0X00000000 event:0X0895 mmcr0:0X00000000 mmcr1:0XAAAA0008A8A8AAA4 mmcra:0X00000000 #Group 138 pm_vsu10, VSU Execution event:0X08A0 mmcr0:0X00000000 mmcr1:0XAAA0000888888A02 mmcra:0X00000000 event:0X08A1 mmcr0:0X00000000 mmcr1:0XAAA0000888888A02 mmcra:0X00000000 event:0X08A2 mmcr0:0X00000000 mmcr1:0XAAA0000888888A02 mmcra:0X00000000 event:0X08A3 mmcr0:0X00000000 mmcr1:0XAAA0000888888A02 mmcra:0X00000000 event:0X08A4 mmcr0:0X00000000 mmcr1:0XAAA0000888888A02 mmcra:0X00000000 event:0X08A5 mmcr0:0X00000000 mmcr1:0XAAA0000888888A02 mmcra:0X00000000 #Group 139 pm_vsu11, VSU Execution event:0X08B0 mmcr0:0X00000000 mmcr1:0XAAA0000894949602 mmcra:0X00000000 event:0X08B1 mmcr0:0X00000000 mmcr1:0XAAA0000894949602 mmcra:0X00000000 event:0X08B2 mmcr0:0X00000000 mmcr1:0XAAA0000894949602 mmcra:0X00000000 event:0X08B3 mmcr0:0X00000000 mmcr1:0XAAA0000894949602 mmcra:0X00000000 event:0X08B4 mmcr0:0X00000000 mmcr1:0XAAA0000894949602 mmcra:0X00000000 event:0X08B5 mmcr0:0X00000000 mmcr1:0XAAA0000894949602 mmcra:0X00000000 #Group 140 pm_vsu12, VSU Execution event:0X08C0 mmcr0:0X00000000 mmcr1:0XBBB0000888888A02 mmcra:0X00000000 event:0X08C1 mmcr0:0X00000000 mmcr1:0XBBB0000888888A02 mmcra:0X00000000 event:0X08C2 mmcr0:0X00000000 mmcr1:0XBBB0000888888A02 mmcra:0X00000000 event:0X08C3 mmcr0:0X00000000 mmcr1:0XBBB0000888888A02 mmcra:0X00000000 event:0X08C4 mmcr0:0X00000000 mmcr1:0XBBB0000888888A02 mmcra:0X00000000 event:0X08C5 mmcr0:0X00000000 mmcr1:0XBBB0000888888A02 mmcra:0X00000000 #Group 141 pm_vsu13, VSU Execution event:0X08D0 mmcr0:0X00000000 mmcr1:0XBBB0000884848602 mmcra:0X00000000 event:0X08D1 mmcr0:0X00000000 mmcr1:0XBBB0000884848602 mmcra:0X00000000 event:0X08D2 mmcr0:0X00000000 mmcr1:0XBBB0000884848602 mmcra:0X00000000 event:0X08D3 mmcr0:0X00000000 mmcr1:0XBBB0000884848602 mmcra:0X00000000 event:0X08D4 mmcr0:0X00000000 mmcr1:0XBBB0000884848602 mmcra:0X00000000 event:0X08D5 mmcr0:0X00000000 mmcr1:0XBBB0000884848602 mmcra:0X00000000 #Group 142 pm_vsu14, VSU Execution event:0X08E0 mmcr0:0X00000000 mmcr1:0XAAAA000F809CA098 mmcra:0X00000000 event:0X08E1 mmcr0:0X00000000 mmcr1:0XAAAA000F809CA098 mmcra:0X00000000 event:0X08E2 mmcr0:0X00000000 mmcr1:0XAAAA000F809CA098 mmcra:0X00000000 event:0X08E3 mmcr0:0X00000000 mmcr1:0XAAAA000F809CA098 mmcra:0X00000000 event:0X08E4 mmcr0:0X00000000 mmcr1:0XAAAA000F809CA098 mmcra:0X00000000 event:0X08E5 mmcr0:0X00000000 mmcr1:0XAAAA000F809CA098 mmcra:0X00000000 #Group 143 pm_vsu15, VSU Execution event:0X08F0 mmcr0:0X00000000 mmcr1:0XBBB0000890909C02 mmcra:0X00000000 event:0X08F1 mmcr0:0X00000000 mmcr1:0XBBB0000890909C02 mmcra:0X00000000 event:0X08F2 mmcr0:0X00000000 mmcr1:0XBBB0000890909C02 mmcra:0X00000000 event:0X08F3 mmcr0:0X00000000 mmcr1:0XBBB0000890909C02 mmcra:0X00000000 event:0X08F4 mmcr0:0X00000000 mmcr1:0XBBB0000890909C02 mmcra:0X00000000 event:0X08F5 mmcr0:0X00000000 mmcr1:0XBBB0000890909C02 mmcra:0X00000000 #Group 144 pm_vsu16, VSU Execution event:0X0900 mmcr0:0X00000000 mmcr1:0XBBBB0008949496A0 mmcra:0X00000000 event:0X0901 mmcr0:0X00000000 mmcr1:0XBBBB0008949496A0 mmcra:0X00000000 event:0X0902 mmcr0:0X00000000 mmcr1:0XBBBB0008949496A0 mmcra:0X00000000 event:0X0903 mmcr0:0X00000000 mmcr1:0XBBBB0008949496A0 mmcra:0X00000000 event:0X0904 mmcr0:0X00000000 mmcr1:0XBBBB0008949496A0 mmcra:0X00000000 event:0X0905 mmcr0:0X00000000 mmcr1:0XBBBB0008949496A0 mmcra:0X00000000 #Group 145 pm_vsu17, VSU Execution event:0X0910 mmcr0:0X00000000 mmcr1:0XBBBB0000989A929E mmcra:0X00000000 event:0X0911 mmcr0:0X00000000 mmcr1:0XBBBB0000989A929E mmcra:0X00000000 event:0X0912 mmcr0:0X00000000 mmcr1:0XBBBB0000989A929E mmcra:0X00000000 event:0X0913 mmcr0:0X00000000 mmcr1:0XBBBB0000989A929E mmcra:0X00000000 event:0X0914 mmcr0:0X00000000 mmcr1:0XBBBB0000989A929E mmcra:0X00000000 event:0X0915 mmcr0:0X00000000 mmcr1:0XBBBB0000989A929E mmcra:0X00000000 #Group 146 pm_vsu18, VSU Execution event:0X0920 mmcr0:0X00000000 mmcr1:0XAAA00008B0B0B202 mmcra:0X00000000 event:0X0921 mmcr0:0X00000000 mmcr1:0XAAA00008B0B0B202 mmcra:0X00000000 event:0X0922 mmcr0:0X00000000 mmcr1:0XAAA00008B0B0B202 mmcra:0X00000000 event:0X0923 mmcr0:0X00000000 mmcr1:0XAAA00008B0B0B202 mmcra:0X00000000 event:0X0924 mmcr0:0X00000000 mmcr1:0XAAA00008B0B0B202 mmcra:0X00000000 event:0X0925 mmcr0:0X00000000 mmcr1:0XAAA00008B0B0B202 mmcra:0X00000000 #Group 147 pm_vsu19, VSU Execution event:0X0930 mmcr0:0X00000000 mmcr1:0XAAA00008B4B4B602 mmcra:0X00000000 event:0X0931 mmcr0:0X00000000 mmcr1:0XAAA00008B4B4B602 mmcra:0X00000000 event:0X0932 mmcr0:0X00000000 mmcr1:0XAAA00008B4B4B602 mmcra:0X00000000 event:0X0933 mmcr0:0X00000000 mmcr1:0XAAA00008B4B4B602 mmcra:0X00000000 event:0X0934 mmcr0:0X00000000 mmcr1:0XAAA00008B4B4B602 mmcra:0X00000000 event:0X0935 mmcr0:0X00000000 mmcr1:0XAAA00008B4B4B602 mmcra:0X00000000 #Group 148 pm_vsu20, VSU Execution event:0X0940 mmcr0:0X00000000 mmcr1:0XAAA00008B8B8BA02 mmcra:0X00000000 event:0X0941 mmcr0:0X00000000 mmcr1:0XAAA00008B8B8BA02 mmcra:0X00000000 event:0X0942 mmcr0:0X00000000 mmcr1:0XAAA00008B8B8BA02 mmcra:0X00000000 event:0X0943 mmcr0:0X00000000 mmcr1:0XAAA00008B8B8BA02 mmcra:0X00000000 event:0X0944 mmcr0:0X00000000 mmcr1:0XAAA00008B8B8BA02 mmcra:0X00000000 event:0X0945 mmcr0:0X00000000 mmcr1:0XAAA00008B8B8BA02 mmcra:0X00000000 #Group 149 pm_vsu21, VSU Execution event:0X0950 mmcr0:0X00000000 mmcr1:0X000A000168F402BC mmcra:0X00000000 event:0X0951 mmcr0:0X00000000 mmcr1:0X000A000168F402BC mmcra:0X00000000 event:0X0952 mmcr0:0X00000000 mmcr1:0X000A000168F402BC mmcra:0X00000000 event:0X0953 mmcr0:0X00000000 mmcr1:0X000A000168F402BC mmcra:0X00000000 event:0X0954 mmcr0:0X00000000 mmcr1:0X000A000168F402BC mmcra:0X00000000 event:0X0955 mmcr0:0X00000000 mmcr1:0X000A000168F402BC mmcra:0X00000000 #Group 150 pm_vsu22, VSU Execution event:0X0960 mmcr0:0X00000000 mmcr1:0XCBAA000F848C8480 mmcra:0X00000000 event:0X0961 mmcr0:0X00000000 mmcr1:0XCBAA000F848C8480 mmcra:0X00000000 event:0X0962 mmcr0:0X00000000 mmcr1:0XCBAA000F848C8480 mmcra:0X00000000 event:0X0963 mmcr0:0X00000000 mmcr1:0XCBAA000F848C8480 mmcra:0X00000000 event:0X0964 mmcr0:0X00000000 mmcr1:0XCBAA000F848C8480 mmcra:0X00000000 event:0X0965 mmcr0:0X00000000 mmcr1:0XCBAA000F848C8480 mmcra:0X00000000 #Group 151 pm_vsu23, VSU Execution event:0X0970 mmcr0:0X00000000 mmcr1:0XAAAA000F88BC8480 mmcra:0X00000000 event:0X0971 mmcr0:0X00000000 mmcr1:0XAAAA000F88BC8480 mmcra:0X00000000 event:0X0972 mmcr0:0X00000000 mmcr1:0XAAAA000F88BC8480 mmcra:0X00000000 event:0X0973 mmcr0:0X00000000 mmcr1:0XAAAA000F88BC8480 mmcra:0X00000000 event:0X0974 mmcr0:0X00000000 mmcr1:0XAAAA000F88BC8480 mmcra:0X00000000 event:0X0975 mmcr0:0X00000000 mmcr1:0XAAAA000F88BC8480 mmcra:0X00000000 #Group 152 pm_vsu24, VSU Execution event:0X0980 mmcr0:0X00000000 mmcr1:0X0AAA0007F4BCB880 mmcra:0X00000000 event:0X0981 mmcr0:0X00000000 mmcr1:0X0AAA0007F4BCB880 mmcra:0X00000000 event:0X0982 mmcr0:0X00000000 mmcr1:0X0AAA0007F4BCB880 mmcra:0X00000000 event:0X0983 mmcr0:0X00000000 mmcr1:0X0AAA0007F4BCB880 mmcra:0X00000000 event:0X0984 mmcr0:0X00000000 mmcr1:0X0AAA0007F4BCB880 mmcra:0X00000000 event:0X0985 mmcr0:0X00000000 mmcr1:0X0AAA0007F4BCB880 mmcra:0X00000000 #Group 153 pm_vsu25, VSU Execution event:0X0990 mmcr0:0X00000000 mmcr1:0XBAAA000F8CBCB4B0 mmcra:0X00000000 event:0X0991 mmcr0:0X00000000 mmcr1:0XBAAA000F8CBCB4B0 mmcra:0X00000000 event:0X0992 mmcr0:0X00000000 mmcr1:0XBAAA000F8CBCB4B0 mmcra:0X00000000 event:0X0993 mmcr0:0X00000000 mmcr1:0XBAAA000F8CBCB4B0 mmcra:0X00000000 event:0X0994 mmcr0:0X00000000 mmcr1:0XBAAA000F8CBCB4B0 mmcra:0X00000000 event:0X0995 mmcr0:0X00000000 mmcr1:0XBAAA000F8CBCB4B0 mmcra:0X00000000 #Group 154 pm_lsu1, LSU LMQ SRQ events event:0X09A0 mmcr0:0X00000000 mmcr1:0XD0000000A43E1C08 mmcra:0X00000000 event:0X09A1 mmcr0:0X00000000 mmcr1:0XD0000000A43E1C08 mmcra:0X00000000 event:0X09A2 mmcr0:0X00000000 mmcr1:0XD0000000A43E1C08 mmcra:0X00000000 event:0X09A3 mmcr0:0X00000000 mmcr1:0XD0000000A43E1C08 mmcra:0X00000000 event:0X09A4 mmcr0:0X00000000 mmcr1:0XD0000000A43E1C08 mmcra:0X00000000 event:0X09A5 mmcr0:0X00000000 mmcr1:0XD0000000A43E1C08 mmcra:0X00000000 #Group 155 pm_lsu2, LSU events event:0X09B0 mmcr0:0X00000000 mmcr1:0X0C0200006690668E mmcra:0X00000000 event:0X09B1 mmcr0:0X00000000 mmcr1:0X0C0200006690668E mmcra:0X00000000 event:0X09B2 mmcr0:0X00000000 mmcr1:0X0C0200006690668E mmcra:0X00000000 event:0X09B3 mmcr0:0X00000000 mmcr1:0X0C0200006690668E mmcra:0X00000000 event:0X09B4 mmcr0:0X00000000 mmcr1:0X0C0200006690668E mmcra:0X00000000 event:0X09B5 mmcr0:0X00000000 mmcr1:0X0C0200006690668E mmcra:0X00000000 #Group 156 pm_lsu_lmq, LSU LMQ Events event:0X09C0 mmcr0:0X00000000 mmcr1:0XDDDD0000989AA0A4 mmcra:0X00000000 event:0X09C1 mmcr0:0X00000000 mmcr1:0XDDDD0000989AA0A4 mmcra:0X00000000 event:0X09C2 mmcr0:0X00000000 mmcr1:0XDDDD0000989AA0A4 mmcra:0X00000000 event:0X09C3 mmcr0:0X00000000 mmcr1:0XDDDD0000989AA0A4 mmcra:0X00000000 event:0X09C4 mmcr0:0X00000000 mmcr1:0XDDDD0000989AA0A4 mmcra:0X00000000 event:0X09C5 mmcr0:0X00000000 mmcr1:0XDDDD0000989AA0A4 mmcra:0X00000000 #Group 157 pm_lsu_srq1, Store Request Queue Info event:0X09D0 mmcr0:0X00000000 mmcr1:0XCCC00008A0A0A202 mmcra:0X00000000 event:0X09D1 mmcr0:0X00000000 mmcr1:0XCCC00008A0A0A202 mmcra:0X00000000 event:0X09D2 mmcr0:0X00000000 mmcr1:0XCCC00008A0A0A202 mmcra:0X00000000 event:0X09D3 mmcr0:0X00000000 mmcr1:0XCCC00008A0A0A202 mmcra:0X00000000 event:0X09D4 mmcr0:0X00000000 mmcr1:0XCCC00008A0A0A202 mmcra:0X00000000 event:0X09D5 mmcr0:0X00000000 mmcr1:0XCCC00008A0A0A202 mmcra:0X00000000 #Group 158 pm_lsu_srq2, Store Request Queue Info event:0X09E0 mmcr0:0X00000000 mmcr1:0XDDD0000096979C02 mmcra:0X00000000 event:0X09E1 mmcr0:0X00000000 mmcr1:0XDDD0000096979C02 mmcra:0X00000000 event:0X09E2 mmcr0:0X00000000 mmcr1:0XDDD0000096979C02 mmcra:0X00000000 event:0X09E3 mmcr0:0X00000000 mmcr1:0XDDD0000096979C02 mmcra:0X00000000 event:0X09E4 mmcr0:0X00000000 mmcr1:0XDDD0000096979C02 mmcra:0X00000000 event:0X09E5 mmcr0:0X00000000 mmcr1:0XDDD0000096979C02 mmcra:0X00000000 #Group 159 pm_lsu_s0_valid, LSU Events event:0X09F0 mmcr0:0X00000000 mmcr1:0XDDD000009C9EA002 mmcra:0X00000000 event:0X09F1 mmcr0:0X00000000 mmcr1:0XDDD000009C9EA002 mmcra:0X00000000 event:0X09F2 mmcr0:0X00000000 mmcr1:0XDDD000009C9EA002 mmcra:0X00000000 event:0X09F3 mmcr0:0X00000000 mmcr1:0XDDD000009C9EA002 mmcra:0X00000000 event:0X09F4 mmcr0:0X00000000 mmcr1:0XDDD000009C9EA002 mmcra:0X00000000 event:0X09F5 mmcr0:0X00000000 mmcr1:0XDDD000009C9EA002 mmcra:0X00000000 #Group 160 pm_lsu_s0_alloc, LSU Events event:0X0A00 mmcr0:0X00000000 mmcr1:0XDDD00000A19F9D02 mmcra:0X00000000 event:0X0A01 mmcr0:0X00000000 mmcr1:0XDDD00000A19F9D02 mmcra:0X00000000 event:0X0A02 mmcr0:0X00000000 mmcr1:0XDDD00000A19F9D02 mmcra:0X00000000 event:0X0A03 mmcr0:0X00000000 mmcr1:0XDDD00000A19F9D02 mmcra:0X00000000 event:0X0A04 mmcr0:0X00000000 mmcr1:0XDDD00000A19F9D02 mmcra:0X00000000 event:0X0A05 mmcr0:0X00000000 mmcr1:0XDDD00000A19F9D02 mmcra:0X00000000 #Group 161 pm_l1_pref, L1 pref Events event:0X0A10 mmcr0:0X00000000 mmcr1:0XDDD00008B8B8BA02 mmcra:0X00000000 event:0X0A11 mmcr0:0X00000000 mmcr1:0XDDD00008B8B8BA02 mmcra:0X00000000 event:0X0A12 mmcr0:0X00000000 mmcr1:0XDDD00008B8B8BA02 mmcra:0X00000000 event:0X0A13 mmcr0:0X00000000 mmcr1:0XDDD00008B8B8BA02 mmcra:0X00000000 event:0X0A14 mmcr0:0X00000000 mmcr1:0XDDD00008B8B8BA02 mmcra:0X00000000 event:0X0A15 mmcr0:0X00000000 mmcr1:0XDDD00008B8B8BA02 mmcra:0X00000000 #Group 162 pm_l2_guess_1, L2_Guess_events event:0X0A20 mmcr0:0X00000000 mmcr1:0X6600800080801E02 mmcra:0X00000000 event:0X0A21 mmcr0:0X00000000 mmcr1:0X6600800080801E02 mmcra:0X00000000 event:0X0A22 mmcr0:0X00000000 mmcr1:0X6600800080801E02 mmcra:0X00000000 event:0X0A23 mmcr0:0X00000000 mmcr1:0X6600800080801E02 mmcra:0X00000000 event:0X0A24 mmcr0:0X00000000 mmcr1:0X6600800080801E02 mmcra:0X00000000 event:0X0A25 mmcr0:0X00000000 mmcr1:0X6600800080801E02 mmcra:0X00000000 #Group 163 pm_l2_guess_2, L2_Guess_events event:0X0A30 mmcr0:0X00000000 mmcr1:0X6600800082821E02 mmcra:0X00000000 event:0X0A31 mmcr0:0X00000000 mmcr1:0X6600800082821E02 mmcra:0X00000000 event:0X0A32 mmcr0:0X00000000 mmcr1:0X6600800082821E02 mmcra:0X00000000 event:0X0A33 mmcr0:0X00000000 mmcr1:0X6600800082821E02 mmcra:0X00000000 event:0X0A34 mmcr0:0X00000000 mmcr1:0X6600800082821E02 mmcra:0X00000000 event:0X0A35 mmcr0:0X00000000 mmcr1:0X6600800082821E02 mmcra:0X00000000 #Group 164 pm_misc1, Misc events event:0X0A40 mmcr0:0X00000000 mmcr1:0X04000000F0801602 mmcra:0X00000000 event:0X0A41 mmcr0:0X00000000 mmcr1:0X04000000F0801602 mmcra:0X00000000 event:0X0A42 mmcr0:0X00000000 mmcr1:0X04000000F0801602 mmcra:0X00000000 event:0X0A43 mmcr0:0X00000000 mmcr1:0X04000000F0801602 mmcra:0X00000000 event:0X0A44 mmcr0:0X00000000 mmcr1:0X04000000F0801602 mmcra:0X00000000 event:0X0A45 mmcr0:0X00000000 mmcr1:0X04000000F0801602 mmcra:0X00000000 #Group 165 pm_misc2, Misc events event:0X0A50 mmcr0:0X00000000 mmcr1:0X2000000080F8F81E mmcra:0X00000000 event:0X0A51 mmcr0:0X00000000 mmcr1:0X2000000080F8F81E mmcra:0X00000000 event:0X0A52 mmcr0:0X00000000 mmcr1:0X2000000080F8F81E mmcra:0X00000000 event:0X0A53 mmcr0:0X00000000 mmcr1:0X2000000080F8F81E mmcra:0X00000000 event:0X0A54 mmcr0:0X00000000 mmcr1:0X2000000080F8F81E mmcra:0X00000000 event:0X0A55 mmcr0:0X00000000 mmcr1:0X2000000080F8F81E mmcra:0X00000000 #Group 166 pm_misc3, Misc events event:0X0A60 mmcr0:0X00000000 mmcr1:0X00000000F20AF2F2 mmcra:0X00000000 event:0X0A61 mmcr0:0X00000000 mmcr1:0X00000000F20AF2F2 mmcra:0X00000000 event:0X0A62 mmcr0:0X00000000 mmcr1:0X00000000F20AF2F2 mmcra:0X00000000 event:0X0A63 mmcr0:0X00000000 mmcr1:0X00000000F20AF2F2 mmcra:0X00000000 event:0X0A64 mmcr0:0X00000000 mmcr1:0X00000000F20AF2F2 mmcra:0X00000000 event:0X0A65 mmcr0:0X00000000 mmcr1:0X00000000F20AF2F2 mmcra:0X00000000 #Group 167 pm_misc4, Misc events event:0X0A70 mmcr0:0X00000000 mmcr1:0X000000000C1A1E1C mmcra:0X00000000 event:0X0A71 mmcr0:0X00000000 mmcr1:0X000000000C1A1E1C mmcra:0X00000000 event:0X0A72 mmcr0:0X00000000 mmcr1:0X000000000C1A1E1C mmcra:0X00000000 event:0X0A73 mmcr0:0X00000000 mmcr1:0X000000000C1A1E1C mmcra:0X00000000 event:0X0A74 mmcr0:0X00000000 mmcr1:0X000000000C1A1E1C mmcra:0X00000000 event:0X0A75 mmcr0:0X00000000 mmcr1:0X000000000C1A1E1C mmcra:0X00000000 #Group 168 pm_misc5, Misc events event:0X0A80 mmcr0:0X00000000 mmcr1:0X044000040AAEA4F6 mmcra:0X00000000 event:0X0A81 mmcr0:0X00000000 mmcr1:0X044000040AAEA4F6 mmcra:0X00000000 event:0X0A82 mmcr0:0X00000000 mmcr1:0X044000040AAEA4F6 mmcra:0X00000000 event:0X0A83 mmcr0:0X00000000 mmcr1:0X044000040AAEA4F6 mmcra:0X00000000 event:0X0A84 mmcr0:0X00000000 mmcr1:0X044000040AAEA4F6 mmcra:0X00000000 event:0X0A85 mmcr0:0X00000000 mmcr1:0X044000040AAEA4F6 mmcra:0X00000000 #Group 169 pm_misc6, Misc events event:0X0A90 mmcr0:0X00000000 mmcr1:0X444000028C8E8C02 mmcra:0X00000000 event:0X0A91 mmcr0:0X00000000 mmcr1:0X444000028C8E8C02 mmcra:0X00000000 event:0X0A92 mmcr0:0X00000000 mmcr1:0X444000028C8E8C02 mmcra:0X00000000 event:0X0A93 mmcr0:0X00000000 mmcr1:0X444000028C8E8C02 mmcra:0X00000000 event:0X0A94 mmcr0:0X00000000 mmcr1:0X444000028C8E8C02 mmcra:0X00000000 event:0X0A95 mmcr0:0X00000000 mmcr1:0X444000028C8E8C02 mmcra:0X00000000 #Group 170 pm_misc7, Misc events event:0X0AA0 mmcr0:0X00000000 mmcr1:0X00000000380A1E66 mmcra:0X00000000 event:0X0AA1 mmcr0:0X00000000 mmcr1:0X00000000380A1E66 mmcra:0X00000000 event:0X0AA2 mmcr0:0X00000000 mmcr1:0X00000000380A1E66 mmcra:0X00000000 event:0X0AA3 mmcr0:0X00000000 mmcr1:0X00000000380A1E66 mmcra:0X00000000 event:0X0AA4 mmcr0:0X00000000 mmcr1:0X00000000380A1E66 mmcra:0X00000000 event:0X0AA5 mmcr0:0X00000000 mmcr1:0X00000000380A1E66 mmcra:0X00000000 #Group 171 pm_misc8, Misc events event:0X0AB0 mmcr0:0X00000000 mmcr1:0X40000000A6F8F6F6 mmcra:0X00000000 event:0X0AB1 mmcr0:0X00000000 mmcr1:0X40000000A6F8F6F6 mmcra:0X00000000 event:0X0AB2 mmcr0:0X00000000 mmcr1:0X40000000A6F8F6F6 mmcra:0X00000000 event:0X0AB3 mmcr0:0X00000000 mmcr1:0X40000000A6F8F6F6 mmcra:0X00000000 event:0X0AB4 mmcr0:0X00000000 mmcr1:0X40000000A6F8F6F6 mmcra:0X00000000 event:0X0AB5 mmcr0:0X00000000 mmcr1:0X40000000A6F8F6F6 mmcra:0X00000000 #Group 172 pm_misc9, Misc events event:0X0AC0 mmcr0:0X00000000 mmcr1:0X22C000008486A8F6 mmcra:0X00000000 event:0X0AC1 mmcr0:0X00000000 mmcr1:0X22C000008486A8F6 mmcra:0X00000000 event:0X0AC2 mmcr0:0X00000000 mmcr1:0X22C000008486A8F6 mmcra:0X00000000 event:0X0AC3 mmcr0:0X00000000 mmcr1:0X22C000008486A8F6 mmcra:0X00000000 event:0X0AC4 mmcr0:0X00000000 mmcr1:0X22C000008486A8F6 mmcra:0X00000000 event:0X0AC5 mmcr0:0X00000000 mmcr1:0X22C000008486A8F6 mmcra:0X00000000 #Group 173 pm_misc10, Misc events event:0X0AD0 mmcr0:0X00000000 mmcr1:0X0DD400061AA8B884 mmcra:0X00000000 event:0X0AD1 mmcr0:0X00000000 mmcr1:0X0DD400061AA8B884 mmcra:0X00000000 event:0X0AD2 mmcr0:0X00000000 mmcr1:0X0DD400061AA8B884 mmcra:0X00000000 event:0X0AD3 mmcr0:0X00000000 mmcr1:0X0DD400061AA8B884 mmcra:0X00000000 event:0X0AD4 mmcr0:0X00000000 mmcr1:0X0DD400061AA8B884 mmcra:0X00000000 event:0X0AD5 mmcr0:0X00000000 mmcr1:0X0DD400061AA8B884 mmcra:0X00000000 #Group 174 pm_misc11, Misc events event:0X0AE0 mmcr0:0X00000000 mmcr1:0X00000000F41E0402 mmcra:0X00000000 event:0X0AE1 mmcr0:0X00000000 mmcr1:0X00000000F41E0402 mmcra:0X00000000 event:0X0AE2 mmcr0:0X00000000 mmcr1:0X00000000F41E0402 mmcra:0X00000000 event:0X0AE3 mmcr0:0X00000000 mmcr1:0X00000000F41E0402 mmcra:0X00000000 event:0X0AE4 mmcr0:0X00000000 mmcr1:0X00000000F41E0402 mmcra:0X00000000 event:0X0AE5 mmcr0:0X00000000 mmcr1:0X00000000F41E0402 mmcra:0X00000000 #Group 175 pm_misc_12, Misc Events event:0X0AF0 mmcr0:0X00000000 mmcr1:0X0000000002F0F8F8 mmcra:0X00000000 event:0X0AF1 mmcr0:0X00000000 mmcr1:0X0000000002F0F8F8 mmcra:0X00000000 event:0X0AF2 mmcr0:0X00000000 mmcr1:0X0000000002F0F8F8 mmcra:0X00000000 event:0X0AF3 mmcr0:0X00000000 mmcr1:0X0000000002F0F8F8 mmcra:0X00000000 event:0X0AF4 mmcr0:0X00000000 mmcr1:0X0000000002F0F8F8 mmcra:0X00000000 event:0X0AF5 mmcr0:0X00000000 mmcr1:0X0000000002F0F8F8 mmcra:0X00000000 #Group 176 pm_misc_13, Misc Events event:0X0B00 mmcr0:0X00000000 mmcr1:0X00000000F8F0FCF6 mmcra:0X00000000 event:0X0B01 mmcr0:0X00000000 mmcr1:0X00000000F8F0FCF6 mmcra:0X00000000 event:0X0B02 mmcr0:0X00000000 mmcr1:0X00000000F8F0FCF6 mmcra:0X00000000 event:0X0B03 mmcr0:0X00000000 mmcr1:0X00000000F8F0FCF6 mmcra:0X00000000 event:0X0B04 mmcr0:0X00000000 mmcr1:0X00000000F8F0FCF6 mmcra:0X00000000 event:0X0B05 mmcr0:0X00000000 mmcr1:0X00000000F8F0FCF6 mmcra:0X00000000 #Group 177 pm_misc_14, Misc Events event:0X0B10 mmcr0:0X00000000 mmcr1:0X000000001E1E0266 mmcra:0X00000000 event:0X0B11 mmcr0:0X00000000 mmcr1:0X000000001E1E0266 mmcra:0X00000000 event:0X0B12 mmcr0:0X00000000 mmcr1:0X000000001E1E0266 mmcra:0X00000000 event:0X0B13 mmcr0:0X00000000 mmcr1:0X000000001E1E0266 mmcra:0X00000000 event:0X0B14 mmcr0:0X00000000 mmcr1:0X000000001E1E0266 mmcra:0X00000000 event:0X0B15 mmcr0:0X00000000 mmcr1:0X000000001E1E0266 mmcra:0X00000000 #Group 178 pm_misc_15, Misc Events event:0X0B20 mmcr0:0X00000000 mmcr1:0XD0000000A24AF64A mmcra:0X00000000 event:0X0B21 mmcr0:0X00000000 mmcr1:0XD0000000A24AF64A mmcra:0X00000000 event:0X0B22 mmcr0:0X00000000 mmcr1:0XD0000000A24AF64A mmcra:0X00000000 event:0X0B23 mmcr0:0X00000000 mmcr1:0XD0000000A24AF64A mmcra:0X00000000 event:0X0B24 mmcr0:0X00000000 mmcr1:0XD0000000A24AF64A mmcra:0X00000000 event:0X0B25 mmcr0:0X00000000 mmcr1:0XD0000000A24AF64A mmcra:0X00000000 #Group 179 pm_misc_16, Misc Events event:0X0B30 mmcr0:0X00000000 mmcr1:0X0CC00000289C9E4C mmcra:0X00000000 event:0X0B31 mmcr0:0X00000000 mmcr1:0X0CC00000289C9E4C mmcra:0X00000000 event:0X0B32 mmcr0:0X00000000 mmcr1:0X0CC00000289C9E4C mmcra:0X00000000 event:0X0B33 mmcr0:0X00000000 mmcr1:0X0CC00000289C9E4C mmcra:0X00000000 event:0X0B34 mmcr0:0X00000000 mmcr1:0X0CC00000289C9E4C mmcra:0X00000000 event:0X0B35 mmcr0:0X00000000 mmcr1:0X0CC00000289C9E4C mmcra:0X00000000 #Group 180 pm_misc_17, Misc Events event:0X0B40 mmcr0:0X00000000 mmcr1:0X00D0000068F0544E mmcra:0X00000000 event:0X0B41 mmcr0:0X00000000 mmcr1:0X00D0000068F0544E mmcra:0X00000000 event:0X0B42 mmcr0:0X00000000 mmcr1:0X00D0000068F0544E mmcra:0X00000000 event:0X0B43 mmcr0:0X00000000 mmcr1:0X00D0000068F0544E mmcra:0X00000000 event:0X0B44 mmcr0:0X00000000 mmcr1:0X00D0000068F0544E mmcra:0X00000000 event:0X0B45 mmcr0:0X00000000 mmcr1:0X00D0000068F0544E mmcra:0X00000000 #Group 181 pm_suspend, SUSPENDED events event:0X0B50 mmcr0:0X00000000 mmcr1:0X00D00000001E9402 mmcra:0X00000000 event:0X0B51 mmcr0:0X00000000 mmcr1:0X00D00000001E9402 mmcra:0X00000000 event:0X0B52 mmcr0:0X00000000 mmcr1:0X00D00000001E9402 mmcra:0X00000000 event:0X0B53 mmcr0:0X00000000 mmcr1:0X00D00000001E9402 mmcra:0X00000000 event:0X0B54 mmcr0:0X00000000 mmcr1:0X00D00000001E9402 mmcra:0X00000000 event:0X0B55 mmcr0:0X00000000 mmcr1:0X00D00000001E9402 mmcra:0X00000000 #Group 182 pm_iops, Internal Operations events event:0X0B60 mmcr0:0X00000000 mmcr1:0X00000000141E1402 mmcra:0X00000000 event:0X0B61 mmcr0:0X00000000 mmcr1:0X00000000141E1402 mmcra:0X00000000 event:0X0B62 mmcr0:0X00000000 mmcr1:0X00000000141E1402 mmcra:0X00000000 event:0X0B63 mmcr0:0X00000000 mmcr1:0X00000000141E1402 mmcra:0X00000000 event:0X0B64 mmcr0:0X00000000 mmcr1:0X00000000141E1402 mmcra:0X00000000 event:0X0B65 mmcr0:0X00000000 mmcr1:0X00000000141E1402 mmcra:0X00000000 #Group 183 pm_sync, sync event:0X0B70 mmcr0:0X00000000 mmcr1:0XD0200000941E9A02 mmcra:0X00000000 event:0X0B71 mmcr0:0X00000000 mmcr1:0XD0200000941E9A02 mmcra:0X00000000 event:0X0B72 mmcr0:0X00000000 mmcr1:0XD0200000941E9A02 mmcra:0X00000000 event:0X0B73 mmcr0:0X00000000 mmcr1:0XD0200000941E9A02 mmcra:0X00000000 event:0X0B74 mmcr0:0X00000000 mmcr1:0XD0200000941E9A02 mmcra:0X00000000 event:0X0B75 mmcr0:0X00000000 mmcr1:0XD0200000941E9A02 mmcra:0X00000000 #Group 184 pm_seg, Segment events event:0X0B80 mmcr0:0X00000000 mmcr1:0X022200041EA4A4A6 mmcra:0X00000000 event:0X0B81 mmcr0:0X00000000 mmcr1:0X022200041EA4A4A6 mmcra:0X00000000 event:0X0B82 mmcr0:0X00000000 mmcr1:0X022200041EA4A4A6 mmcra:0X00000000 event:0X0B83 mmcr0:0X00000000 mmcr1:0X022200041EA4A4A6 mmcra:0X00000000 event:0X0B84 mmcr0:0X00000000 mmcr1:0X022200041EA4A4A6 mmcra:0X00000000 event:0X0B85 mmcr0:0X00000000 mmcr1:0X022200041EA4A4A6 mmcra:0X00000000 #Group 185 pm_l3_hit, L3 Hit Events event:0X0B90 mmcr0:0X00000000 mmcr1:0XFFFF000080808080 mmcra:0X00000000 event:0X0B91 mmcr0:0X00000000 mmcr1:0XFFFF000080808080 mmcra:0X00000000 event:0X0B92 mmcr0:0X00000000 mmcr1:0XFFFF000080808080 mmcra:0X00000000 event:0X0B93 mmcr0:0X00000000 mmcr1:0XFFFF000080808080 mmcra:0X00000000 event:0X0B94 mmcr0:0X00000000 mmcr1:0XFFFF000080808080 mmcra:0X00000000 event:0X0B95 mmcr0:0X00000000 mmcr1:0XFFFF000080808080 mmcra:0X00000000 #Group 186 pm_shl, Shell Events event:0X0BA0 mmcr0:0X00000000 mmcr1:0X5555000080828486 mmcra:0X00000000 event:0X0BA1 mmcr0:0X00000000 mmcr1:0X5555000080828486 mmcra:0X00000000 event:0X0BA2 mmcr0:0X00000000 mmcr1:0X5555000080828486 mmcra:0X00000000 event:0X0BA3 mmcr0:0X00000000 mmcr1:0X5555000080828486 mmcra:0X00000000 event:0X0BA4 mmcr0:0X00000000 mmcr1:0X5555000080828486 mmcra:0X00000000 event:0X0BA5 mmcr0:0X00000000 mmcr1:0X5555000080828486 mmcra:0X00000000 #Group 187 pm_l3_pref, L3 Prefetch events event:0X0BB0 mmcr0:0X00000000 mmcr1:0XDDDD0003ACAEACB8 mmcra:0X00000000 event:0X0BB1 mmcr0:0X00000000 mmcr1:0XDDDD0003ACAEACB8 mmcra:0X00000000 event:0X0BB2 mmcr0:0X00000000 mmcr1:0XDDDD0003ACAEACB8 mmcra:0X00000000 event:0X0BB3 mmcr0:0X00000000 mmcr1:0XDDDD0003ACAEACB8 mmcra:0X00000000 event:0X0BB4 mmcr0:0X00000000 mmcr1:0XDDDD0003ACAEACB8 mmcra:0X00000000 event:0X0BB5 mmcr0:0X00000000 mmcr1:0XDDDD0003ACAEACB8 mmcra:0X00000000 #Group 188 pm_l3, L3 events event:0X0BC0 mmcr0:0X00000000 mmcr1:0XFFFF000082828282 mmcra:0X00000000 event:0X0BC1 mmcr0:0X00000000 mmcr1:0XFFFF000082828282 mmcra:0X00000000 event:0X0BC2 mmcr0:0X00000000 mmcr1:0XFFFF000082828282 mmcra:0X00000000 event:0X0BC3 mmcr0:0X00000000 mmcr1:0XFFFF000082828282 mmcra:0X00000000 event:0X0BC4 mmcr0:0X00000000 mmcr1:0XFFFF000082828282 mmcra:0X00000000 event:0X0BC5 mmcr0:0X00000000 mmcr1:0XFFFF000082828282 mmcra:0X00000000 #Group 189 pm_streams1, Streams event:0X0BD0 mmcr0:0X00000000 mmcr1:0X0DDD00041EB4B4B6 mmcra:0X00000000 event:0X0BD1 mmcr0:0X00000000 mmcr1:0X0DDD00041EB4B4B6 mmcra:0X00000000 event:0X0BD2 mmcr0:0X00000000 mmcr1:0X0DDD00041EB4B4B6 mmcra:0X00000000 event:0X0BD3 mmcr0:0X00000000 mmcr1:0X0DDD00041EB4B4B6 mmcra:0X00000000 event:0X0BD4 mmcr0:0X00000000 mmcr1:0X0DDD00041EB4B4B6 mmcra:0X00000000 event:0X0BD5 mmcr0:0X00000000 mmcr1:0X0DDD00041EB4B4B6 mmcra:0X00000000 #Group 190 pm_streams2, Streams event:0X0BE0 mmcr0:0X00000000 mmcr1:0X0DDD00041EBCBCBE mmcra:0X00000000 event:0X0BE1 mmcr0:0X00000000 mmcr1:0X0DDD00041EBCBCBE mmcra:0X00000000 event:0X0BE2 mmcr0:0X00000000 mmcr1:0X0DDD00041EBCBCBE mmcra:0X00000000 event:0X0BE3 mmcr0:0X00000000 mmcr1:0X0DDD00041EBCBCBE mmcra:0X00000000 event:0X0BE4 mmcr0:0X00000000 mmcr1:0X0DDD00041EBCBCBE mmcra:0X00000000 event:0X0BE5 mmcr0:0X00000000 mmcr1:0X0DDD00041EBCBCBE mmcra:0X00000000 #Group 191 pm_streams3, Streams event:0X0BF0 mmcr0:0X00000000 mmcr1:0XDDDD0004B0A8A8AA mmcra:0X00000000 event:0X0BF1 mmcr0:0X00000000 mmcr1:0XDDDD0004B0A8A8AA mmcra:0X00000000 event:0X0BF2 mmcr0:0X00000000 mmcr1:0XDDDD0004B0A8A8AA mmcra:0X00000000 event:0X0BF3 mmcr0:0X00000000 mmcr1:0XDDDD0004B0A8A8AA mmcra:0X00000000 event:0X0BF4 mmcr0:0X00000000 mmcr1:0XDDDD0004B0A8A8AA mmcra:0X00000000 event:0X0BF5 mmcr0:0X00000000 mmcr1:0XDDDD0004B0A8A8AA mmcra:0X00000000 #Group 192 pm_larx, LARX event:0X0C00 mmcr0:0X00000000 mmcr1:0XCC0C000194961E94 mmcra:0X00000000 event:0X0C01 mmcr0:0X00000000 mmcr1:0XCC0C000194961E94 mmcra:0X00000000 event:0X0C02 mmcr0:0X00000000 mmcr1:0XCC0C000194961E94 mmcra:0X00000000 event:0X0C03 mmcr0:0X00000000 mmcr1:0XCC0C000194961E94 mmcra:0X00000000 event:0X0C04 mmcr0:0X00000000 mmcr1:0XCC0C000194961E94 mmcra:0X00000000 event:0X0C05 mmcr0:0X00000000 mmcr1:0XCC0C000194961E94 mmcra:0X00000000 #Group 193 pm_ldf, Floating Point loads event:0X0C10 mmcr0:0X00000000 mmcr1:0X0CCC00041E848486 mmcra:0X00000000 event:0X0C11 mmcr0:0X00000000 mmcr1:0X0CCC00041E848486 mmcra:0X00000000 event:0X0C12 mmcr0:0X00000000 mmcr1:0X0CCC00041E848486 mmcra:0X00000000 event:0X0C13 mmcr0:0X00000000 mmcr1:0X0CCC00041E848486 mmcra:0X00000000 event:0X0C14 mmcr0:0X00000000 mmcr1:0X0CCC00041E848486 mmcra:0X00000000 event:0X0C15 mmcr0:0X00000000 mmcr1:0X0CCC00041E848486 mmcra:0X00000000 #Group 194 pm_ldx, Vector Load event:0X0C20 mmcr0:0X00000000 mmcr1:0X0CCC00041E88888A mmcra:0X00000000 event:0X0C21 mmcr0:0X00000000 mmcr1:0X0CCC00041E88888A mmcra:0X00000000 event:0X0C22 mmcr0:0X00000000 mmcr1:0X0CCC00041E88888A mmcra:0X00000000 event:0X0C23 mmcr0:0X00000000 mmcr1:0X0CCC00041E88888A mmcra:0X00000000 event:0X0C24 mmcr0:0X00000000 mmcr1:0X0CCC00041E88888A mmcra:0X00000000 event:0X0C25 mmcr0:0X00000000 mmcr1:0X0CCC00041E88888A mmcra:0X00000000 #Group 195 pm_l2_ld_st, L2 load and store events event:0X0C30 mmcr0:0X00000000 mmcr1:0X66F000008082801E mmcra:0X00000000 event:0X0C31 mmcr0:0X00000000 mmcr1:0X66F000008082801E mmcra:0X00000000 event:0X0C32 mmcr0:0X00000000 mmcr1:0X66F000008082801E mmcra:0X00000000 event:0X0C33 mmcr0:0X00000000 mmcr1:0X66F000008082801E mmcra:0X00000000 event:0X0C34 mmcr0:0X00000000 mmcr1:0X66F000008082801E mmcra:0X00000000 event:0X0C35 mmcr0:0X00000000 mmcr1:0X66F000008082801E mmcra:0X00000000 #Group 196 pm_stcx, STCX event:0X0C40 mmcr0:0X00000000 mmcr1:0XCCCC000C94AC989A mmcra:0X00000000 event:0X0C41 mmcr0:0X00000000 mmcr1:0XCCCC000C94AC989A mmcra:0X00000000 event:0X0C42 mmcr0:0X00000000 mmcr1:0XCCCC000C94AC989A mmcra:0X00000000 event:0X0C43 mmcr0:0X00000000 mmcr1:0XCCCC000C94AC989A mmcra:0X00000000 event:0X0C44 mmcr0:0X00000000 mmcr1:0XCCCC000C94AC989A mmcra:0X00000000 event:0X0C45 mmcr0:0X00000000 mmcr1:0XCCCC000C94AC989A mmcra:0X00000000 #Group 197 pm_btac, BTAC event:0X0C50 mmcr0:0X00000000 mmcr1:0X55CC00008A88989A mmcra:0X00000000 event:0X0C51 mmcr0:0X00000000 mmcr1:0X55CC00008A88989A mmcra:0X00000000 event:0X0C52 mmcr0:0X00000000 mmcr1:0X55CC00008A88989A mmcra:0X00000000 event:0X0C53 mmcr0:0X00000000 mmcr1:0X55CC00008A88989A mmcra:0X00000000 event:0X0C54 mmcr0:0X00000000 mmcr1:0X55CC00008A88989A mmcra:0X00000000 event:0X0C55 mmcr0:0X00000000 mmcr1:0X55CC00008A88989A mmcra:0X00000000 #Group 198 pm_br_bc, Branch BC events event:0X0C60 mmcr0:0X00000000 mmcr1:0X44000000B8BA1E02 mmcra:0X00000000 event:0X0C61 mmcr0:0X00000000 mmcr1:0X44000000B8BA1E02 mmcra:0X00000000 event:0X0C62 mmcr0:0X00000000 mmcr1:0X44000000B8BA1E02 mmcra:0X00000000 event:0X0C63 mmcr0:0X00000000 mmcr1:0X44000000B8BA1E02 mmcra:0X00000000 event:0X0C64 mmcr0:0X00000000 mmcr1:0X44000000B8BA1E02 mmcra:0X00000000 event:0X0C65 mmcr0:0X00000000 mmcr1:0X44000000B8BA1E02 mmcra:0X00000000 #Group 199 pm_inst_imc, inst imc events event:0X0C70 mmcr0:0X00000000 mmcr1:0X00000000F0F21602 mmcra:0X00000000 event:0X0C71 mmcr0:0X00000000 mmcr1:0X00000000F0F21602 mmcra:0X00000000 event:0X0C72 mmcr0:0X00000000 mmcr1:0X00000000F0F21602 mmcra:0X00000000 event:0X0C73 mmcr0:0X00000000 mmcr1:0X00000000F0F21602 mmcra:0X00000000 event:0X0C74 mmcr0:0X00000000 mmcr1:0X00000000F0F21602 mmcra:0X00000000 event:0X0C75 mmcr0:0X00000000 mmcr1:0X00000000F0F21602 mmcra:0X00000000 #Group 200 pm_l2_misc1, L2 load/store Miss events event:0X0C80 mmcr0:0X00000000 mmcr1:0X6666000C80808280 mmcra:0X00000000 event:0X0C81 mmcr0:0X00000000 mmcr1:0X6666000C80808280 mmcra:0X00000000 event:0X0C82 mmcr0:0X00000000 mmcr1:0X6666000C80808280 mmcra:0X00000000 event:0X0C83 mmcr0:0X00000000 mmcr1:0X6666000C80808280 mmcra:0X00000000 event:0X0C84 mmcr0:0X00000000 mmcr1:0X6666000C80808280 mmcra:0X00000000 event:0X0C85 mmcr0:0X00000000 mmcr1:0X6666000C80808280 mmcra:0X00000000 #Group 201 pm_l2_misc2, L2 Events event:0X0C90 mmcr0:0X00000000 mmcr1:0X00660000021E8080 mmcra:0X00000000 event:0X0C91 mmcr0:0X00000000 mmcr1:0X00660000021E8080 mmcra:0X00000000 event:0X0C92 mmcr0:0X00000000 mmcr1:0X00660000021E8080 mmcra:0X00000000 event:0X0C93 mmcr0:0X00000000 mmcr1:0X00660000021E8080 mmcra:0X00000000 event:0X0C94 mmcr0:0X00000000 mmcr1:0X00660000021E8080 mmcra:0X00000000 event:0X0C95 mmcr0:0X00000000 mmcr1:0X00660000021E8080 mmcra:0X00000000 #Group 202 pm_l2_misc3, L2 Events event:0X0CA0 mmcr0:0X00000000 mmcr1:0X00608000021E82FA mmcra:0X00000000 event:0X0CA1 mmcr0:0X00000000 mmcr1:0X00608000021E82FA mmcra:0X00000000 event:0X0CA2 mmcr0:0X00000000 mmcr1:0X00608000021E82FA mmcra:0X00000000 event:0X0CA3 mmcr0:0X00000000 mmcr1:0X00608000021E82FA mmcra:0X00000000 event:0X0CA4 mmcr0:0X00000000 mmcr1:0X00608000021E82FA mmcra:0X00000000 event:0X0CA5 mmcr0:0X00000000 mmcr1:0X00608000021E82FA mmcra:0X00000000 #Group 203 pm_l2_misc4, L2 Events event:0X0CB0 mmcr0:0X00000000 mmcr1:0X00666000021E8282 mmcra:0X00000000 event:0X0CB1 mmcr0:0X00000000 mmcr1:0X00666000021E8282 mmcra:0X00000000 event:0X0CB2 mmcr0:0X00000000 mmcr1:0X00666000021E8282 mmcra:0X00000000 event:0X0CB3 mmcr0:0X00000000 mmcr1:0X00666000021E8282 mmcra:0X00000000 event:0X0CB4 mmcr0:0X00000000 mmcr1:0X00666000021E8282 mmcra:0X00000000 event:0X0CB5 mmcr0:0X00000000 mmcr1:0X00666000021E8282 mmcra:0X00000000 #Group 204 pm_l2_misc5, L2 Events event:0X0CC0 mmcr0:0X00000000 mmcr1:0X00608000021E80FA mmcra:0X00000000 event:0X0CC1 mmcr0:0X00000000 mmcr1:0X00608000021E80FA mmcra:0X00000000 event:0X0CC2 mmcr0:0X00000000 mmcr1:0X00608000021E80FA mmcra:0X00000000 event:0X0CC3 mmcr0:0X00000000 mmcr1:0X00608000021E80FA mmcra:0X00000000 event:0X0CC4 mmcr0:0X00000000 mmcr1:0X00608000021E80FA mmcra:0X00000000 event:0X0CC5 mmcr0:0X00000000 mmcr1:0X00608000021E80FA mmcra:0X00000000 #Group 205 pm_l2_misc6, L2 Events event:0X0CD0 mmcr0:0X00000000 mmcr1:0X0006600002F41E80 mmcra:0X00000000 event:0X0CD1 mmcr0:0X00000000 mmcr1:0X0006600002F41E80 mmcra:0X00000000 event:0X0CD2 mmcr0:0X00000000 mmcr1:0X0006600002F41E80 mmcra:0X00000000 event:0X0CD3 mmcr0:0X00000000 mmcr1:0X0006600002F41E80 mmcra:0X00000000 event:0X0CD4 mmcr0:0X00000000 mmcr1:0X0006600002F41E80 mmcra:0X00000000 event:0X0CD5 mmcr0:0X00000000 mmcr1:0X0006600002F41E80 mmcra:0X00000000 #Group 206 pm_ierat, IERAT Events event:0X0CE0 mmcr0:0X00000000 mmcr1:0X04400000F6BCBE02 mmcra:0X00000000 event:0X0CE1 mmcr0:0X00000000 mmcr1:0X04400000F6BCBE02 mmcra:0X00000000 event:0X0CE2 mmcr0:0X00000000 mmcr1:0X04400000F6BCBE02 mmcra:0X00000000 event:0X0CE3 mmcr0:0X00000000 mmcr1:0X04400000F6BCBE02 mmcra:0X00000000 event:0X0CE4 mmcr0:0X00000000 mmcr1:0X04400000F6BCBE02 mmcra:0X00000000 event:0X0CE5 mmcr0:0X00000000 mmcr1:0X04400000F6BCBE02 mmcra:0X00000000 #Group 207 pm_disp_clb, Dispatch CLB Events event:0X0CF0 mmcr0:0X00000000 mmcr1:0X2200000090A81E02 mmcra:0X00000000 event:0X0CF1 mmcr0:0X00000000 mmcr1:0X2200000090A81E02 mmcra:0X00000000 event:0X0CF2 mmcr0:0X00000000 mmcr1:0X2200000090A81E02 mmcra:0X00000000 event:0X0CF3 mmcr0:0X00000000 mmcr1:0X2200000090A81E02 mmcra:0X00000000 event:0X0CF4 mmcr0:0X00000000 mmcr1:0X2200000090A81E02 mmcra:0X00000000 event:0X0CF5 mmcr0:0X00000000 mmcr1:0X2200000090A81E02 mmcra:0X00000000 #Group 208 pm_dpu, DPU Events event:0X0D00 mmcr0:0X00000000 mmcr1:0X000000001E060802 mmcra:0X00000000 event:0X0D01 mmcr0:0X00000000 mmcr1:0X000000001E060802 mmcra:0X00000000 event:0X0D02 mmcr0:0X00000000 mmcr1:0X000000001E060802 mmcra:0X00000000 event:0X0D03 mmcr0:0X00000000 mmcr1:0X000000001E060802 mmcra:0X00000000 event:0X0D04 mmcr0:0X00000000 mmcr1:0X000000001E060802 mmcra:0X00000000 event:0X0D05 mmcr0:0X00000000 mmcr1:0X000000001E060802 mmcra:0X00000000 #Group 209 pm_cpu_util, Basic CPU utilization event:0X0D10 mmcr0:0X00000000 mmcr1:0X0000000008F41EF4 mmcra:0X00000000 event:0X0D11 mmcr0:0X00000000 mmcr1:0X0000000008F41EF4 mmcra:0X00000000 event:0X0D12 mmcr0:0X00000000 mmcr1:0X0000000008F41EF4 mmcra:0X00000000 event:0X0D13 mmcr0:0X00000000 mmcr1:0X0000000008F41EF4 mmcra:0X00000000 event:0X0D14 mmcr0:0X00000000 mmcr1:0X0000000008F41EF4 mmcra:0X00000000 event:0X0D15 mmcr0:0X00000000 mmcr1:0X0000000008F41EF4 mmcra:0X00000000 #Group 210 pm_overflow1, Overflow events event:0X0D20 mmcr0:0X00000000 mmcr1:0X0000000010101010 mmcra:0X00000000 event:0X0D21 mmcr0:0X00000000 mmcr1:0X0000000010101010 mmcra:0X00000000 event:0X0D22 mmcr0:0X00000000 mmcr1:0X0000000010101010 mmcra:0X00000000 event:0X0D23 mmcr0:0X00000000 mmcr1:0X0000000010101010 mmcra:0X00000000 event:0X0D24 mmcr0:0X00000000 mmcr1:0X0000000010101010 mmcra:0X00000000 event:0X0D25 mmcr0:0X00000000 mmcr1:0X0000000010101010 mmcra:0X00000000 #Group 211 pm_overflow2, Overflow events event:0X0D30 mmcr0:0X00000000 mmcr1:0X0000000024102410 mmcra:0X00000000 event:0X0D31 mmcr0:0X00000000 mmcr1:0X0000000024102410 mmcra:0X00000000 event:0X0D32 mmcr0:0X00000000 mmcr1:0X0000000024102410 mmcra:0X00000000 event:0X0D33 mmcr0:0X00000000 mmcr1:0X0000000024102410 mmcra:0X00000000 event:0X0D34 mmcr0:0X00000000 mmcr1:0X0000000024102410 mmcra:0X00000000 event:0X0D35 mmcr0:0X00000000 mmcr1:0X0000000024102410 mmcra:0X00000000 #Group 212 pm_rewind, Rewind events event:0X0D40 mmcr0:0X00000000 mmcr1:0X0000000020F42002 mmcra:0X00000000 event:0X0D41 mmcr0:0X00000000 mmcr1:0X0000000020F42002 mmcra:0X00000000 event:0X0D42 mmcr0:0X00000000 mmcr1:0X0000000020F42002 mmcra:0X00000000 event:0X0D43 mmcr0:0X00000000 mmcr1:0X0000000020F42002 mmcra:0X00000000 event:0X0D44 mmcr0:0X00000000 mmcr1:0X0000000020F42002 mmcra:0X00000000 event:0X0D45 mmcr0:0X00000000 mmcr1:0X0000000020F42002 mmcra:0X00000000 #Group 213 pm_saved, Saved Events event:0X0D50 mmcr0:0X00000000 mmcr1:0X0000000022F42202 mmcra:0X00000000 event:0X0D51 mmcr0:0X00000000 mmcr1:0X0000000022F42202 mmcra:0X00000000 event:0X0D52 mmcr0:0X00000000 mmcr1:0X0000000022F42202 mmcra:0X00000000 event:0X0D53 mmcr0:0X00000000 mmcr1:0X0000000022F42202 mmcra:0X00000000 event:0X0D54 mmcr0:0X00000000 mmcr1:0X0000000022F42202 mmcra:0X00000000 event:0X0D55 mmcr0:0X00000000 mmcr1:0X0000000022F42202 mmcra:0X00000000 #Group 214 pm_tlbie, TLBIE Events event:0X0D60 mmcr0:0X00000000 mmcr1:0X22D000008A96B202 mmcra:0X00000000 event:0X0D61 mmcr0:0X00000000 mmcr1:0X22D000008A96B202 mmcra:0X00000000 event:0X0D62 mmcr0:0X00000000 mmcr1:0X22D000008A96B202 mmcra:0X00000000 event:0X0D63 mmcr0:0X00000000 mmcr1:0X22D000008A96B202 mmcra:0X00000000 event:0X0D64 mmcr0:0X00000000 mmcr1:0X22D000008A96B202 mmcra:0X00000000 event:0X0D65 mmcr0:0X00000000 mmcr1:0X22D000008A96B202 mmcra:0X00000000 #Group 215 pm_id_miss_erat_l1, Instruction/Data miss from ERAT/L1 cache event:0X0D70 mmcr0:0X00000000 mmcr1:0X00000000F6FCF0F0 mmcra:0X00000000 event:0X0D71 mmcr0:0X00000000 mmcr1:0X00000000F6FCF0F0 mmcra:0X00000000 event:0X0D72 mmcr0:0X00000000 mmcr1:0X00000000F6FCF0F0 mmcra:0X00000000 event:0X0D73 mmcr0:0X00000000 mmcr1:0X00000000F6FCF0F0 mmcra:0X00000000 event:0X0D74 mmcr0:0X00000000 mmcr1:0X00000000F6FCF0F0 mmcra:0X00000000 event:0X0D75 mmcr0:0X00000000 mmcr1:0X00000000F6FCF0F0 mmcra:0X00000000 #Group 216 pm_id_miss_erat_tlab, Instruction/Data miss from ERAT/TLB event:0X0D80 mmcr0:0X00000000 mmcr1:0X000000001EF6FCFC mmcra:0X00000000 event:0X0D81 mmcr0:0X00000000 mmcr1:0X000000001EF6FCFC mmcra:0X00000000 event:0X0D82 mmcr0:0X00000000 mmcr1:0X000000001EF6FCFC mmcra:0X00000000 event:0X0D83 mmcr0:0X00000000 mmcr1:0X000000001EF6FCFC mmcra:0X00000000 event:0X0D84 mmcr0:0X00000000 mmcr1:0X000000001EF6FCFC mmcra:0X00000000 event:0X0D85 mmcr0:0X00000000 mmcr1:0X000000001EF6FCFC mmcra:0X00000000 #Group 217 pm_compat_utilization1, Basic CPU utilization event:0X0D90 mmcr0:0X00000000 mmcr1:0X00000000FAF41EF4 mmcra:0X00000000 event:0X0D91 mmcr0:0X00000000 mmcr1:0X00000000FAF41EF4 mmcra:0X00000000 event:0X0D92 mmcr0:0X00000000 mmcr1:0X00000000FAF41EF4 mmcra:0X00000000 event:0X0D93 mmcr0:0X00000000 mmcr1:0X00000000FAF41EF4 mmcra:0X00000000 event:0X0D94 mmcr0:0X00000000 mmcr1:0X00000000FAF41EF4 mmcra:0X00000000 event:0X0D95 mmcr0:0X00000000 mmcr1:0X00000000FAF41EF4 mmcra:0X00000000 #Group 218 pm_compat_utilization2, CPI and utilization data event:0X0DA0 mmcr0:0X00000000 mmcr1:0X00000000F4F41EFA mmcra:0X00000000 event:0X0DA1 mmcr0:0X00000000 mmcr1:0X00000000F4F41EFA mmcra:0X00000000 event:0X0DA2 mmcr0:0X00000000 mmcr1:0X00000000F4F41EFA mmcra:0X00000000 event:0X0DA3 mmcr0:0X00000000 mmcr1:0X00000000F4F41EFA mmcra:0X00000000 event:0X0DA4 mmcr0:0X00000000 mmcr1:0X00000000F4F41EFA mmcra:0X00000000 event:0X0DA5 mmcr0:0X00000000 mmcr1:0X00000000F4F41EFA mmcra:0X00000000 #Group 219 pm_compat_cpi_1plus_ppc, Misc CPI and utilization data event:0X0DB0 mmcr0:0X00000000 mmcr1:0X00000000F2F4F2F2 mmcra:0X00000000 event:0X0DB1 mmcr0:0X00000000 mmcr1:0X00000000F2F4F2F2 mmcra:0X00000000 event:0X0DB2 mmcr0:0X00000000 mmcr1:0X00000000F2F4F2F2 mmcra:0X00000000 event:0X0DB3 mmcr0:0X00000000 mmcr1:0X00000000F2F4F2F2 mmcra:0X00000000 event:0X0DB4 mmcr0:0X00000000 mmcr1:0X00000000F2F4F2F2 mmcra:0X00000000 event:0X0DB5 mmcr0:0X00000000 mmcr1:0X00000000F2F4F2F2 mmcra:0X00000000 #Group 220 pm_compat_l1_dcache_load_store_miss, L1 D-Cache load/store miss event:0X0DC0 mmcr0:0X00000000 mmcr1:0X0000000002F0F0F0 mmcra:0X00000000 event:0X0DC1 mmcr0:0X00000000 mmcr1:0X0000000002F0F0F0 mmcra:0X00000000 event:0X0DC2 mmcr0:0X00000000 mmcr1:0X0000000002F0F0F0 mmcra:0X00000000 event:0X0DC3 mmcr0:0X00000000 mmcr1:0X0000000002F0F0F0 mmcra:0X00000000 event:0X0DC4 mmcr0:0X00000000 mmcr1:0X0000000002F0F0F0 mmcra:0X00000000 event:0X0DC5 mmcr0:0X00000000 mmcr1:0X0000000002F0F0F0 mmcra:0X00000000 #Group 221 pm_compat_l1_cache_load, L1 Cache loads event:0X0DD0 mmcr0:0X00000000 mmcr1:0X0000000002FEF6F0 mmcra:0X00000000 event:0X0DD1 mmcr0:0X00000000 mmcr1:0X0000000002FEF6F0 mmcra:0X00000000 event:0X0DD2 mmcr0:0X00000000 mmcr1:0X0000000002FEF6F0 mmcra:0X00000000 event:0X0DD3 mmcr0:0X00000000 mmcr1:0X0000000002FEF6F0 mmcra:0X00000000 event:0X0DD4 mmcr0:0X00000000 mmcr1:0X0000000002FEF6F0 mmcra:0X00000000 event:0X0DD5 mmcr0:0X00000000 mmcr1:0X0000000002FEF6F0 mmcra:0X00000000 #Group 222 pm_compat_instruction_directory, Instruction Directory event:0X0DE0 mmcr0:0X00000000 mmcr1:0X00000000F6FC02FC mmcra:0X00000000 event:0X0DE1 mmcr0:0X00000000 mmcr1:0X00000000F6FC02FC mmcra:0X00000000 event:0X0DE2 mmcr0:0X00000000 mmcr1:0X00000000F6FC02FC mmcra:0X00000000 event:0X0DE3 mmcr0:0X00000000 mmcr1:0X00000000F6FC02FC mmcra:0X00000000 event:0X0DE4 mmcr0:0X00000000 mmcr1:0X00000000F6FC02FC mmcra:0X00000000 event:0X0DE5 mmcr0:0X00000000 mmcr1:0X00000000F6FC02FC mmcra:0X00000000 #Group 223 pm_compat_suspend, Suspend Events event:0X0DF0 mmcr0:0X00000000 mmcr1:0X0000000000000000 mmcra:0X00000000 event:0X0DF1 mmcr0:0X00000000 mmcr1:0X0000000000000000 mmcra:0X00000000 event:0X0DF2 mmcr0:0X00000000 mmcr1:0X0000000000000000 mmcra:0X00000000 event:0X0DF3 mmcr0:0X00000000 mmcr1:0X0000000000000000 mmcra:0X00000000 event:0X0DF4 mmcr0:0X00000000 mmcr1:0X0000000000000000 mmcra:0X00000000 event:0X0DF5 mmcr0:0X00000000 mmcr1:0X0000000000000000 mmcra:0X00000000 #Group 224 pm_compat_misc_events1, Misc Events event:0X0E00 mmcr0:0X00000000 mmcr1:0X0000000002F8F81E mmcra:0X00000000 event:0X0E01 mmcr0:0X00000000 mmcr1:0X0000000002F8F81E mmcra:0X00000000 event:0X0E02 mmcr0:0X00000000 mmcr1:0X0000000002F8F81E mmcra:0X00000000 event:0X0E03 mmcr0:0X00000000 mmcr1:0X0000000002F8F81E mmcra:0X00000000 event:0X0E04 mmcr0:0X00000000 mmcr1:0X0000000002F8F81E mmcra:0X00000000 event:0X0E05 mmcr0:0X00000000 mmcr1:0X0000000002F8F81E mmcra:0X00000000 #Group 225 pm_compat_misc_events2, Misc Events event:0X0E10 mmcr0:0X00000000 mmcr1:0X00000000F0F2F4F8 mmcra:0X00000000 event:0X0E11 mmcr0:0X00000000 mmcr1:0X00000000F0F2F4F8 mmcra:0X00000000 event:0X0E12 mmcr0:0X00000000 mmcr1:0X00000000F0F2F4F8 mmcra:0X00000000 event:0X0E13 mmcr0:0X00000000 mmcr1:0X00000000F0F2F4F8 mmcra:0X00000000 event:0X0E14 mmcr0:0X00000000 mmcr1:0X00000000F0F2F4F8 mmcra:0X00000000 event:0X0E15 mmcr0:0X00000000 mmcr1:0X00000000F0F2F4F8 mmcra:0X00000000 #Group 226 pm_compat_misc_events3, Misc Events event:0X0E20 mmcr0:0X00000000 mmcr1:0X00000000F8F21EF6 mmcra:0X00000000 event:0X0E21 mmcr0:0X00000000 mmcr1:0X00000000F8F21EF6 mmcra:0X00000000 event:0X0E22 mmcr0:0X00000000 mmcr1:0X00000000F8F21EF6 mmcra:0X00000000 event:0X0E23 mmcr0:0X00000000 mmcr1:0X00000000F8F21EF6 mmcra:0X00000000 event:0X0E24 mmcr0:0X00000000 mmcr1:0X00000000F8F21EF6 mmcra:0X00000000 event:0X0E25 mmcr0:0X00000000 mmcr1:0X00000000F8F21EF6 mmcra:0X00000000 #Group 227 pm_mrk_br, Marked Branch events event:0X0E30 mmcr0:0X00000000 mmcr1:0X0000000036363602 mmcra:0X00000001 event:0X0E31 mmcr0:0X00000000 mmcr1:0X0000000036363602 mmcra:0X00000001 event:0X0E32 mmcr0:0X00000000 mmcr1:0X0000000036363602 mmcra:0X00000001 event:0X0E33 mmcr0:0X00000000 mmcr1:0X0000000036363602 mmcra:0X00000001 event:0X0E34 mmcr0:0X00000000 mmcr1:0X0000000036363602 mmcra:0X00000001 event:0X0E35 mmcr0:0X00000000 mmcr1:0X0000000036363602 mmcra:0X00000001 #Group 228 pm_mrk_dsource1, Marked data sources event:0X0E40 mmcr0:0X00000000 mmcr1:0XD00D00004A2E0248 mmcra:0X00000001 event:0X0E41 mmcr0:0X00000000 mmcr1:0XD00D00004A2E0248 mmcra:0X00000001 event:0X0E42 mmcr0:0X00000000 mmcr1:0XD00D00004A2E0248 mmcra:0X00000001 event:0X0E43 mmcr0:0X00000000 mmcr1:0XD00D00004A2E0248 mmcra:0X00000001 event:0X0E44 mmcr0:0X00000000 mmcr1:0XD00D00004A2E0248 mmcra:0X00000001 event:0X0E45 mmcr0:0X00000000 mmcr1:0XD00D00004A2E0248 mmcra:0X00000001 #Group 229 pm_mrk_dsource2, Marked data sources event:0X0E50 mmcr0:0X00000000 mmcr1:0X00D000003E024624 mmcra:0X00000001 event:0X0E51 mmcr0:0X00000000 mmcr1:0X00D000003E024624 mmcra:0X00000001 event:0X0E52 mmcr0:0X00000000 mmcr1:0X00D000003E024624 mmcra:0X00000001 event:0X0E53 mmcr0:0X00000000 mmcr1:0X00D000003E024624 mmcra:0X00000001 event:0X0E54 mmcr0:0X00000000 mmcr1:0X00D000003E024624 mmcra:0X00000001 event:0X0E55 mmcr0:0X00000000 mmcr1:0X00D000003E024624 mmcra:0X00000001 #Group 230 pm_mrk_dsource3, Marked data sources event:0X0E60 mmcr0:0X00000000 mmcr1:0XDD00000048480220 mmcra:0X00000001 event:0X0E61 mmcr0:0X00000000 mmcr1:0XDD00000048480220 mmcra:0X00000001 event:0X0E62 mmcr0:0X00000000 mmcr1:0XDD00000048480220 mmcra:0X00000001 event:0X0E63 mmcr0:0X00000000 mmcr1:0XDD00000048480220 mmcra:0X00000001 event:0X0E64 mmcr0:0X00000000 mmcr1:0XDD00000048480220 mmcra:0X00000001 event:0X0E65 mmcr0:0X00000000 mmcr1:0XDD00000048480220 mmcra:0X00000001 #Group 231 pm_mrk_dsource4, Marked data sources event:0X0E70 mmcr0:0X00000000 mmcr1:0X00DC0000022C4A42 mmcra:0X00000001 event:0X0E71 mmcr0:0X00000000 mmcr1:0X00DC0000022C4A42 mmcra:0X00000001 event:0X0E72 mmcr0:0X00000000 mmcr1:0X00DC0000022C4A42 mmcra:0X00000001 event:0X0E73 mmcr0:0X00000000 mmcr1:0X00DC0000022C4A42 mmcra:0X00000001 event:0X0E74 mmcr0:0X00000000 mmcr1:0X00DC0000022C4A42 mmcra:0X00000001 event:0X0E75 mmcr0:0X00000000 mmcr1:0X00DC0000022C4A42 mmcra:0X00000001 #Group 232 pm_mrk_dsource5, Marked data sources event:0X0E80 mmcr0:0X00000000 mmcr1:0XD000000044023026 mmcra:0X00000001 event:0X0E81 mmcr0:0X00000000 mmcr1:0XD000000044023026 mmcra:0X00000001 event:0X0E82 mmcr0:0X00000000 mmcr1:0XD000000044023026 mmcra:0X00000001 event:0X0E83 mmcr0:0X00000000 mmcr1:0XD000000044023026 mmcra:0X00000001 event:0X0E84 mmcr0:0X00000000 mmcr1:0XD000000044023026 mmcra:0X00000001 event:0X0E85 mmcr0:0X00000000 mmcr1:0XD000000044023026 mmcra:0X00000001 #Group 233 pm_mrk_dsource6, Marked data sources event:0X0E90 mmcr0:0X00000000 mmcr1:0X00D000003F244E02 mmcra:0X00000001 event:0X0E91 mmcr0:0X00000000 mmcr1:0X00D000003F244E02 mmcra:0X00000001 event:0X0E92 mmcr0:0X00000000 mmcr1:0X00D000003F244E02 mmcra:0X00000001 event:0X0E93 mmcr0:0X00000000 mmcr1:0X00D000003F244E02 mmcra:0X00000001 event:0X0E94 mmcr0:0X00000000 mmcr1:0X00D000003F244E02 mmcra:0X00000001 event:0X0E95 mmcr0:0X00000000 mmcr1:0X00D000003F244E02 mmcra:0X00000001 #Group 234 pm_mrk_dsource7, Marked data sources event:0X0EA0 mmcr0:0X00000000 mmcr1:0XD00D000040200248 mmcra:0X00000001 event:0X0EA1 mmcr0:0X00000000 mmcr1:0XD00D000040200248 mmcra:0X00000001 event:0X0EA2 mmcr0:0X00000000 mmcr1:0XD00D000040200248 mmcra:0X00000001 event:0X0EA3 mmcr0:0X00000000 mmcr1:0XD00D000040200248 mmcra:0X00000001 event:0X0EA4 mmcr0:0X00000000 mmcr1:0XD00D000040200248 mmcra:0X00000001 event:0X0EA5 mmcr0:0X00000000 mmcr1:0XD00D000040200248 mmcra:0X00000001 #Group 235 pm_mrk_dsource8, Marked data sources event:0X0EB0 mmcr0:0X00000000 mmcr1:0XDD00000042480228 mmcra:0X00000001 event:0X0EB1 mmcr0:0X00000000 mmcr1:0XDD00000042480228 mmcra:0X00000001 event:0X0EB2 mmcr0:0X00000000 mmcr1:0XDD00000042480228 mmcra:0X00000001 event:0X0EB3 mmcr0:0X00000000 mmcr1:0XDD00000042480228 mmcra:0X00000001 event:0X0EB4 mmcr0:0X00000000 mmcr1:0XDD00000042480228 mmcra:0X00000001 event:0X0EB5 mmcr0:0X00000000 mmcr1:0XDD00000042480228 mmcra:0X00000001 #Group 236 pm_mrk_dsource9, Marked data sources event:0X0EC0 mmcr0:0X00000000 mmcr1:0X00DD0000022A4448 mmcra:0X00000001 event:0X0EC1 mmcr0:0X00000000 mmcr1:0X00DD0000022A4448 mmcra:0X00000001 event:0X0EC2 mmcr0:0X00000000 mmcr1:0X00DD0000022A4448 mmcra:0X00000001 event:0X0EC3 mmcr0:0X00000000 mmcr1:0X00DD0000022A4448 mmcra:0X00000001 event:0X0EC4 mmcr0:0X00000000 mmcr1:0X00DD0000022A4448 mmcra:0X00000001 event:0X0EC5 mmcr0:0X00000000 mmcr1:0X00DD0000022A4448 mmcra:0X00000001 #Group 237 pm_mrk_dsource10, Marked data sources event:0X0ED0 mmcr0:0X00000000 mmcr1:0XD0C000004C284202 mmcra:0X00000001 event:0X0ED1 mmcr0:0X00000000 mmcr1:0XD0C000004C284202 mmcra:0X00000001 event:0X0ED2 mmcr0:0X00000000 mmcr1:0XD0C000004C284202 mmcra:0X00000001 event:0X0ED3 mmcr0:0X00000000 mmcr1:0XD0C000004C284202 mmcra:0X00000001 event:0X0ED4 mmcr0:0X00000000 mmcr1:0XD0C000004C284202 mmcra:0X00000001 event:0X0ED5 mmcr0:0X00000000 mmcr1:0XD0C000004C284202 mmcra:0X00000001 #Group 238 pm_mrk_dsource11, Marked data sources event:0X0EE0 mmcr0:0X00000000 mmcr1:0X00D000003E02422C mmcra:0X00000001 event:0X0EE1 mmcr0:0X00000000 mmcr1:0X00D000003E02422C mmcra:0X00000001 event:0X0EE2 mmcr0:0X00000000 mmcr1:0X00D000003E02422C mmcra:0X00000001 event:0X0EE3 mmcr0:0X00000000 mmcr1:0X00D000003E02422C mmcra:0X00000001 event:0X0EE4 mmcr0:0X00000000 mmcr1:0X00D000003E02422C mmcra:0X00000001 event:0X0EE5 mmcr0:0X00000000 mmcr1:0X00D000003E02422C mmcra:0X00000001 #Group 239 pm_mrk_dsource12, Marked data sources event:0X0EF0 mmcr0:0X00000000 mmcr1:0XD00000004E263002 mmcra:0X00000001 event:0X0EF1 mmcr0:0X00000000 mmcr1:0XD00000004E263002 mmcra:0X00000001 event:0X0EF2 mmcr0:0X00000000 mmcr1:0XD00000004E263002 mmcra:0X00000001 event:0X0EF3 mmcr0:0X00000000 mmcr1:0XD00000004E263002 mmcra:0X00000001 event:0X0EF4 mmcr0:0X00000000 mmcr1:0XD00000004E263002 mmcra:0X00000001 event:0X0EF5 mmcr0:0X00000000 mmcr1:0XD00000004E263002 mmcra:0X00000001 #Group 240 pm_mrk_dsource13, Marked data sources event:0X0F00 mmcr0:0X00000000 mmcr1:0X00D000003F024C2A mmcra:0X00000001 event:0X0F01 mmcr0:0X00000000 mmcr1:0X00D000003F024C2A mmcra:0X00000001 event:0X0F02 mmcr0:0X00000000 mmcr1:0X00D000003F024C2A mmcra:0X00000001 event:0X0F03 mmcr0:0X00000000 mmcr1:0X00D000003F024C2A mmcra:0X00000001 event:0X0F04 mmcr0:0X00000000 mmcr1:0X00D000003F024C2A mmcra:0X00000001 event:0X0F05 mmcr0:0X00000000 mmcr1:0X00D000003F024C2A mmcra:0X00000001 #Group 241 pm_mrk_lsu_flush1, Marked LSU Flush event:0X0F10 mmcr0:0X00000000 mmcr1:0XDD0000008486021E mmcra:0X00000001 event:0X0F11 mmcr0:0X00000000 mmcr1:0XDD0000008486021E mmcra:0X00000001 event:0X0F12 mmcr0:0X00000000 mmcr1:0XDD0000008486021E mmcra:0X00000001 event:0X0F13 mmcr0:0X00000000 mmcr1:0XDD0000008486021E mmcra:0X00000001 event:0X0F14 mmcr0:0X00000000 mmcr1:0XDD0000008486021E mmcra:0X00000001 event:0X0F15 mmcr0:0X00000000 mmcr1:0XDD0000008486021E mmcra:0X00000001 #Group 242 pm_mrk_lsu_flush2, Marked LSU Flush event:0X0F20 mmcr0:0X00000000 mmcr1:0X00DD0000021E888A mmcra:0X00000001 event:0X0F21 mmcr0:0X00000000 mmcr1:0X00DD0000021E888A mmcra:0X00000001 event:0X0F22 mmcr0:0X00000000 mmcr1:0X00DD0000021E888A mmcra:0X00000001 event:0X0F23 mmcr0:0X00000000 mmcr1:0X00DD0000021E888A mmcra:0X00000001 event:0X0F24 mmcr0:0X00000000 mmcr1:0X00DD0000021E888A mmcra:0X00000001 event:0X0F25 mmcr0:0X00000000 mmcr1:0X00DD0000021E888A mmcra:0X00000001 #Group 243 pm_mrk_rejects, Marked rejects event:0X0F30 mmcr0:0X00000000 mmcr1:0XDD000000828C0264 mmcra:0X00000001 event:0X0F31 mmcr0:0X00000000 mmcr1:0XDD000000828C0264 mmcra:0X00000001 event:0X0F32 mmcr0:0X00000000 mmcr1:0XDD000000828C0264 mmcra:0X00000001 event:0X0F33 mmcr0:0X00000000 mmcr1:0XDD000000828C0264 mmcra:0X00000001 event:0X0F34 mmcr0:0X00000000 mmcr1:0XDD000000828C0264 mmcra:0X00000001 event:0X0F35 mmcr0:0X00000000 mmcr1:0XDD000000828C0264 mmcra:0X00000001 #Group 244 pm_mrk_inst, Marked instruction events event:0X0F40 mmcr0:0X00000000 mmcr1:0X0000000032303002 mmcra:0X00000001 event:0X0F41 mmcr0:0X00000000 mmcr1:0X0000000032303002 mmcra:0X00000001 event:0X0F42 mmcr0:0X00000000 mmcr1:0X0000000032303002 mmcra:0X00000001 event:0X0F43 mmcr0:0X00000000 mmcr1:0X0000000032303002 mmcra:0X00000001 event:0X0F44 mmcr0:0X00000000 mmcr1:0X0000000032303002 mmcra:0X00000001 event:0X0F45 mmcr0:0X00000000 mmcr1:0X0000000032303002 mmcra:0X00000001 #Group 245 pm_mrk_st, Marked stores events event:0X0F50 mmcr0:0X00000000 mmcr1:0X0000000034343402 mmcra:0X00000001 event:0X0F51 mmcr0:0X00000000 mmcr1:0X0000000034343402 mmcra:0X00000001 event:0X0F52 mmcr0:0X00000000 mmcr1:0X0000000034343402 mmcra:0X00000001 event:0X0F53 mmcr0:0X00000000 mmcr1:0X0000000034343402 mmcra:0X00000001 event:0X0F54 mmcr0:0X00000000 mmcr1:0X0000000034343402 mmcra:0X00000001 event:0X0F55 mmcr0:0X00000000 mmcr1:0X0000000034343402 mmcra:0X00000001 #Group 246 pm_mrk_dtlb_miss1, Marked Data TLB Miss event:0X0F60 mmcr0:0X00000000 mmcr1:0X0DDD0000025E5E5E mmcra:0X00000001 event:0X0F61 mmcr0:0X00000000 mmcr1:0X0DDD0000025E5E5E mmcra:0X00000001 event:0X0F62 mmcr0:0X00000000 mmcr1:0X0DDD0000025E5E5E mmcra:0X00000001 event:0X0F63 mmcr0:0X00000000 mmcr1:0X0DDD0000025E5E5E mmcra:0X00000001 event:0X0F64 mmcr0:0X00000000 mmcr1:0X0DDD0000025E5E5E mmcra:0X00000001 event:0X0F65 mmcr0:0X00000000 mmcr1:0X0DDD0000025E5E5E mmcra:0X00000001 #Group 247 pm_mrk_dtlb_miss2, Marked Data TLB Miss event:0X0F70 mmcr0:0X00000000 mmcr1:0XDDD000005E5E5E02 mmcra:0X00000001 event:0X0F71 mmcr0:0X00000000 mmcr1:0XDDD000005E5E5E02 mmcra:0X00000001 event:0X0F72 mmcr0:0X00000000 mmcr1:0XDDD000005E5E5E02 mmcra:0X00000001 event:0X0F73 mmcr0:0X00000000 mmcr1:0XDDD000005E5E5E02 mmcra:0X00000001 event:0X0F74 mmcr0:0X00000000 mmcr1:0XDDD000005E5E5E02 mmcra:0X00000001 event:0X0F75 mmcr0:0X00000000 mmcr1:0XDDD000005E5E5E02 mmcra:0X00000001 #Group 248 pm_mrk_derat_miss1, Marked DERAT Miss events event:0X0F80 mmcr0:0X00000000 mmcr1:0X0DDD0000025C5C5C mmcra:0X00000001 event:0X0F81 mmcr0:0X00000000 mmcr1:0X0DDD0000025C5C5C mmcra:0X00000001 event:0X0F82 mmcr0:0X00000000 mmcr1:0X0DDD0000025C5C5C mmcra:0X00000001 event:0X0F83 mmcr0:0X00000000 mmcr1:0X0DDD0000025C5C5C mmcra:0X00000001 event:0X0F84 mmcr0:0X00000000 mmcr1:0X0DDD0000025C5C5C mmcra:0X00000001 event:0X0F85 mmcr0:0X00000000 mmcr1:0X0DDD0000025C5C5C mmcra:0X00000001 #Group 249 pm_mrk_derat_miss2, Marked DERAT Miss events event:0X0F90 mmcr0:0X00000000 mmcr1:0XDDD000005C5C5C02 mmcra:0X00000001 event:0X0F91 mmcr0:0X00000000 mmcr1:0XDDD000005C5C5C02 mmcra:0X00000001 event:0X0F92 mmcr0:0X00000000 mmcr1:0XDDD000005C5C5C02 mmcra:0X00000001 event:0X0F93 mmcr0:0X00000000 mmcr1:0XDDD000005C5C5C02 mmcra:0X00000001 event:0X0F94 mmcr0:0X00000000 mmcr1:0XDDD000005C5C5C02 mmcra:0X00000001 event:0X0F95 mmcr0:0X00000000 mmcr1:0XDDD000005C5C5C02 mmcra:0X00000001 #Group 250 pm_mrk_misc_miss, marked Miss Events event:0X0FA0 mmcr0:0X00000000 mmcr1:0X00D000003E025A3E mmcra:0X00000001 event:0X0FA1 mmcr0:0X00000000 mmcr1:0X00D000003E025A3E mmcra:0X00000001 event:0X0FA2 mmcr0:0X00000000 mmcr1:0X00D000003E025A3E mmcra:0X00000001 event:0X0FA3 mmcr0:0X00000000 mmcr1:0X00D000003E025A3E mmcra:0X00000001 event:0X0FA4 mmcr0:0X00000000 mmcr1:0X00D000003E025A3E mmcra:0X00000001 event:0X0FA5 mmcr0:0X00000000 mmcr1:0X00D000003E025A3E mmcra:0X00000001 #Group 251 pm_mrk_pteg1, Marked PTEG event:0X0FB0 mmcr0:0X00000000 mmcr1:0X0DDD000002525656 mmcra:0X00000001 event:0X0FB1 mmcr0:0X00000000 mmcr1:0X0DDD000002525656 mmcra:0X00000001 event:0X0FB2 mmcr0:0X00000000 mmcr1:0X0DDD000002525656 mmcra:0X00000001 event:0X0FB3 mmcr0:0X00000000 mmcr1:0X0DDD000002525656 mmcra:0X00000001 event:0X0FB4 mmcr0:0X00000000 mmcr1:0X0DDD000002525656 mmcra:0X00000001 event:0X0FB5 mmcr0:0X00000000 mmcr1:0X0DDD000002525656 mmcra:0X00000001 #Group 252 pm_mrk_pteg2, Marked PTEG event:0X0FC0 mmcr0:0X00000000 mmcr1:0XDDD0000050545202 mmcra:0X00000001 event:0X0FC1 mmcr0:0X00000000 mmcr1:0XDDD0000050545202 mmcra:0X00000001 event:0X0FC2 mmcr0:0X00000000 mmcr1:0XDDD0000050545202 mmcra:0X00000001 event:0X0FC3 mmcr0:0X00000000 mmcr1:0XDDD0000050545202 mmcra:0X00000001 event:0X0FC4 mmcr0:0X00000000 mmcr1:0XDDD0000050545202 mmcra:0X00000001 event:0X0FC5 mmcr0:0X00000000 mmcr1:0XDDD0000050545202 mmcra:0X00000001 #Group 253 pm_mrk_pteg3, Marked PTEG event:0X0FD0 mmcr0:0X00000000 mmcr1:0X0DDD000002565654 mmcra:0X00000001 event:0X0FD1 mmcr0:0X00000000 mmcr1:0X0DDD000002565654 mmcra:0X00000001 event:0X0FD2 mmcr0:0X00000000 mmcr1:0X0DDD000002565654 mmcra:0X00000001 event:0X0FD3 mmcr0:0X00000000 mmcr1:0X0DDD000002565654 mmcra:0X00000001 event:0X0FD4 mmcr0:0X00000000 mmcr1:0X0DDD000002565654 mmcra:0X00000001 event:0X0FD5 mmcr0:0X00000000 mmcr1:0X0DDD000002565654 mmcra:0X00000001 #Group 254 pm_mrk_pteg4, Marked PTEG event:0X0FE0 mmcr0:0X00000000 mmcr1:0XDD0D000054500258 mmcra:0X00000001 event:0X0FE1 mmcr0:0X00000000 mmcr1:0XDD0D000054500258 mmcra:0X00000001 event:0X0FE2 mmcr0:0X00000000 mmcr1:0XDD0D000054500258 mmcra:0X00000001 event:0X0FE3 mmcr0:0X00000000 mmcr1:0XDD0D000054500258 mmcra:0X00000001 event:0X0FE4 mmcr0:0X00000000 mmcr1:0XDD0D000054500258 mmcra:0X00000001 event:0X0FE5 mmcr0:0X00000000 mmcr1:0XDD0D000054500258 mmcra:0X00000001 #Group 255 pm_mrk_pteg5, Marked PTEG event:0X0FF0 mmcr0:0X00000000 mmcr1:0XDD0D000052580252 mmcra:0X00000001 event:0X0FF1 mmcr0:0X00000000 mmcr1:0XDD0D000052580252 mmcra:0X00000001 event:0X0FF2 mmcr0:0X00000000 mmcr1:0XDD0D000052580252 mmcra:0X00000001 event:0X0FF3 mmcr0:0X00000000 mmcr1:0XDD0D000052580252 mmcra:0X00000001 event:0X0FF4 mmcr0:0X00000000 mmcr1:0XDD0D000052580252 mmcra:0X00000001 event:0X0FF5 mmcr0:0X00000000 mmcr1:0XDD0D000052580252 mmcra:0X00000001 #Group 256 pm_mrk_misc1, Marked misc events event:0X1000 mmcr0:0X00000000 mmcr1:0XD00000008E023A34 mmcra:0X00000001 event:0X1001 mmcr0:0X00000000 mmcr1:0XD00000008E023A34 mmcra:0X00000001 event:0X1002 mmcr0:0X00000000 mmcr1:0XD00000008E023A34 mmcra:0X00000001 event:0X1003 mmcr0:0X00000000 mmcr1:0XD00000008E023A34 mmcra:0X00000001 event:0X1004 mmcr0:0X00000000 mmcr1:0XD00000008E023A34 mmcra:0X00000001 event:0X1005 mmcr0:0X00000000 mmcr1:0XD00000008E023A34 mmcra:0X00000001 #Group 257 pm_mrk_misc2, Marked misc events event:0X1010 mmcr0:0X00000000 mmcr1:0X0000000002383A32 mmcra:0X00000001 event:0X1011 mmcr0:0X00000000 mmcr1:0X0000000002383A32 mmcra:0X00000001 event:0X1012 mmcr0:0X00000000 mmcr1:0X0000000002383A32 mmcra:0X00000001 event:0X1013 mmcr0:0X00000000 mmcr1:0X0000000002383A32 mmcra:0X00000001 event:0X1014 mmcr0:0X00000000 mmcr1:0X0000000002383A32 mmcra:0X00000001 event:0X1015 mmcr0:0X00000000 mmcr1:0X0000000002383A32 mmcra:0X00000001 #Group 258 pm_mrk_misc3, Marked misc events event:0X1020 mmcr0:0X00000000 mmcr1:0X00D00000023A8032 mmcra:0X00000001 event:0X1021 mmcr0:0X00000000 mmcr1:0X00D00000023A8032 mmcra:0X00000001 event:0X1022 mmcr0:0X00000000 mmcr1:0X00D00000023A8032 mmcra:0X00000001 event:0X1023 mmcr0:0X00000000 mmcr1:0X00D00000023A8032 mmcra:0X00000001 event:0X1024 mmcr0:0X00000000 mmcr1:0X00D00000023A8032 mmcra:0X00000001 event:0X1025 mmcr0:0X00000000 mmcr1:0X00D00000023A8032 mmcra:0X00000001 #Group 259 pm_mrk_misc4, Marked misc events event:0X1030 mmcr0:0X00000000 mmcr1:0X000000003C023238 mmcra:0X00000001 event:0X1031 mmcr0:0X00000000 mmcr1:0X000000003C023238 mmcra:0X00000001 event:0X1032 mmcr0:0X00000000 mmcr1:0X000000003C023238 mmcra:0X00000001 event:0X1033 mmcr0:0X00000000 mmcr1:0X000000003C023238 mmcra:0X00000001 event:0X1034 mmcr0:0X00000000 mmcr1:0X000000003C023238 mmcra:0X00000001 event:0X1035 mmcr0:0X00000000 mmcr1:0X000000003C023238 mmcra:0X00000001 #Group 260 pm_mrk_misc5, Marked misc events event:0X1040 mmcr0:0X00000000 mmcr1:0X000000003D323F02 mmcra:0X00000001 event:0X1041 mmcr0:0X00000000 mmcr1:0X000000003D323F02 mmcra:0X00000001 event:0X1042 mmcr0:0X00000000 mmcr1:0X000000003D323F02 mmcra:0X00000001 event:0X1043 mmcr0:0X00000000 mmcr1:0X000000003D323F02 mmcra:0X00000001 event:0X1044 mmcr0:0X00000000 mmcr1:0X000000003D323F02 mmcra:0X00000001 event:0X1045 mmcr0:0X00000000 mmcr1:0X000000003D323F02 mmcra:0X00000001 #Group 261 pm_mrk_misc6, Marked misc events event:0X1050 mmcr0:0X00000000 mmcr1:0X0000000030F40230 mmcra:0X00000001 event:0X1051 mmcr0:0X00000000 mmcr1:0X0000000030F40230 mmcra:0X00000001 event:0X1052 mmcr0:0X00000000 mmcr1:0X0000000030F40230 mmcra:0X00000001 event:0X1053 mmcr0:0X00000000 mmcr1:0X0000000030F40230 mmcra:0X00000001 event:0X1054 mmcr0:0X00000000 mmcr1:0X0000000030F40230 mmcra:0X00000001 event:0X1055 mmcr0:0X00000000 mmcr1:0X0000000030F40230 mmcra:0X00000001 #Group 262 pm_mrk_misc7, Marked misc events event:0X1060 mmcr0:0X00000000 mmcr1:0XD000000082026464 mmcra:0X00000001 event:0X1061 mmcr0:0X00000000 mmcr1:0XD000000082026464 mmcra:0X00000001 event:0X1062 mmcr0:0X00000000 mmcr1:0XD000000082026464 mmcra:0X00000001 event:0X1063 mmcr0:0X00000000 mmcr1:0XD000000082026464 mmcra:0X00000001 event:0X1064 mmcr0:0X00000000 mmcr1:0XD000000082026464 mmcra:0X00000001 event:0X1065 mmcr0:0X00000000 mmcr1:0XD000000082026464 mmcra:0X00000001 #Group 263 pm_mrk_misc8, Marked misc events event:0X1070 mmcr0:0X00000000 mmcr1:0X000000001E1E0232 mmcra:0X00000001 event:0X1071 mmcr0:0X00000000 mmcr1:0X000000001E1E0232 mmcra:0X00000001 event:0X1072 mmcr0:0X00000000 mmcr1:0X000000001E1E0232 mmcra:0X00000001 event:0X1073 mmcr0:0X00000000 mmcr1:0X000000001E1E0232 mmcra:0X00000001 event:0X1074 mmcr0:0X00000000 mmcr1:0X000000001E1E0232 mmcra:0X00000001 event:0X1075 mmcr0:0X00000000 mmcr1:0X000000001E1E0232 mmcra:0X00000001 oprofile-0.9.9/events/ppc64/power5/0000775000076400007640000000000012175511556014054 500000000000000oprofile-0.9.9/events/ppc64/power5/events0000664000076400007640000035157312175510133015227 00000000000000#PPC64 POWER5 events # # Within each group the event names must be unique. Each event in a group is # assigned to a unique counter. The groups are from the groups defined in the # Performance Monitor Unit user guide for this processor. # # Only events within the same group can be selected simultaneously when # using legacy opcontrol to do profiling. When profiling with operf, # events from different groups may be specified, and the Linux Performance # Events Kernel Subsystem code will handle the necessary multiplexing. # # Each event is given a unique event number. The event number is used by the # OProfile code to resolve event names for the post-processing. This is done # to preserve compatibility with the rest of the OProfile code. The event # numbers are formatted as follows: concat(). #Group Default event:0X001 counters:3 um:zero minimum:10000 name:CYCLES : Processor Cycles using continuous sampling #Group 1 pm_utilization, CPI and utilization data event:0X010 counters:0 um:zero minimum:10000 name:PM_RUN_CYC_GRP1 : (Group 1 pm_utilization) Run cycles event:0X011 counters:1 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP1 : (Group 1 pm_utilization) IOPS instructions completed event:0X012 counters:2 um:zero minimum:1000 name:PM_INST_DISP_GRP1 : (Group 1 pm_utilization) Instructions dispatched event:0X013 counters:3 um:zero minimum:10000 name:PM_CYC_GRP1 : (Group 1 pm_utilization) Processor cycles event:0X014 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP1 : (Group 1 pm_utilization) Instructions completed event:0X015 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP1 : (Group 1 pm_utilization) Run cycles #Group 2 pm_completion, Completion and cycle counts event:0X020 counters:0 um:zero minimum:1000 name:PM_1PLUS_PPC_CMPL_GRP2 : (Group 2 pm_completion) One or more PPC instruction completed event:0X021 counters:1 um:zero minimum:1000 name:PM_GCT_EMPTY_CYC_GRP2 : (Group 2 pm_completion) Cycles GCT empty event:0X022 counters:2 um:zero minimum:1000 name:PM_GRP_CMPL_GRP2 : (Group 2 pm_completion) Group completed event:0X023 counters:3 um:zero minimum:10000 name:PM_CYC_GRP2 : (Group 2 pm_completion) Processor cycles event:0X024 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP2 : (Group 2 pm_completion) Instructions completed event:0X025 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP2 : (Group 2 pm_completion) Run cycles #Group 3 pm_group_dispatch, Group dispatch events event:0X030 counters:0 um:zero minimum:1000 name:PM_GRP_DISP_VALID_GRP3 : (Group 3 pm_group_dispatch) Group dispatch valid event:0X031 counters:1 um:zero minimum:1000 name:PM_GRP_DISP_REJECT_GRP3 : (Group 3 pm_group_dispatch) Group dispatch rejected event:0X032 counters:2 um:zero minimum:1000 name:PM_GRP_DISP_BLK_SB_CYC_GRP3 : (Group 3 pm_group_dispatch) Cycles group dispatch blocked by scoreboard event:0X033 counters:3 um:zero minimum:1000 name:PM_INST_DISP_GRP3 : (Group 3 pm_group_dispatch) Instructions dispatched event:0X034 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP3 : (Group 3 pm_group_dispatch) Instructions completed event:0X035 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP3 : (Group 3 pm_group_dispatch) Run cycles #Group 4 pm_clb1, CLB fullness event:0X040 counters:0 um:zero minimum:1000 name:PM_0INST_CLB_CYC_GRP4 : (Group 4 pm_clb1) Cycles no instructions in CLB event:0X041 counters:1 um:zero minimum:1000 name:PM_2INST_CLB_CYC_GRP4 : (Group 4 pm_clb1) Cycles 2 instructions in CLB event:0X042 counters:2 um:zero minimum:1000 name:PM_CLB_EMPTY_CYC_GRP4 : (Group 4 pm_clb1) Cycles CLB empty event:0X043 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L35_MOD_CYC_GRP4 : (Group 4 pm_clb1) Marked load latency from L3.5 modified event:0X044 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP4 : (Group 4 pm_clb1) Instructions completed event:0X045 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP4 : (Group 4 pm_clb1) Run cycles #Group 5 pm_clb2, CLB fullness event:0X050 counters:0 um:zero minimum:1000 name:PM_5INST_CLB_CYC_GRP5 : (Group 5 pm_clb2) Cycles 5 instructions in CLB event:0X051 counters:1 um:zero minimum:1000 name:PM_6INST_CLB_CYC_GRP5 : (Group 5 pm_clb2) Cycles 6 instructions in CLB event:0X052 counters:2 um:zero minimum:1000 name:PM_MRK_LSU_SRQ_INST_VALID_GRP5 : (Group 5 pm_clb2) Marked instruction valid in SRQ event:0X053 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP5 : (Group 5 pm_clb2) IOPS instructions completed event:0X054 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP5 : (Group 5 pm_clb2) Instructions completed event:0X055 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP5 : (Group 5 pm_clb2) Run cycles #Group 6 pm_gct_empty, GCT empty reasons event:0X060 counters:0 um:zero minimum:1000 name:PM_GCT_NOSLOT_CYC_GRP6 : (Group 6 pm_gct_empty) Cycles no GCT slot allocated event:0X061 counters:1 um:zero minimum:1000 name:PM_GCT_NOSLOT_IC_MISS_GRP6 : (Group 6 pm_gct_empty) No slot in GCT caused by I cache miss event:0X062 counters:2 um:zero minimum:1000 name:PM_GCT_NOSLOT_SRQ_FULL_GRP6 : (Group 6 pm_gct_empty) No slot in GCT caused by SRQ full event:0X063 counters:3 um:zero minimum:1000 name:PM_GCT_NOSLOT_BR_MPRED_GRP6 : (Group 6 pm_gct_empty) No slot in GCT caused by branch mispredict event:0X064 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP6 : (Group 6 pm_gct_empty) Instructions completed event:0X065 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP6 : (Group 6 pm_gct_empty) Run cycles #Group 7 pm_gct_usage, GCT Usage event:0X070 counters:0 um:zero minimum:1000 name:PM_GCT_USAGE_00to59_CYC_GRP7 : (Group 7 pm_gct_usage) Cycles GCT less than 60% full event:0X071 counters:1 um:zero minimum:1000 name:PM_GCT_USAGE_60to79_CYC_GRP7 : (Group 7 pm_gct_usage) Cycles GCT 60-79% full event:0X072 counters:2 um:zero minimum:1000 name:PM_GCT_USAGE_80to99_CYC_GRP7 : (Group 7 pm_gct_usage) Cycles GCT 80-99% full event:0X073 counters:3 um:zero minimum:1000 name:PM_GCT_FULL_CYC_GRP7 : (Group 7 pm_gct_usage) Cycles GCT full event:0X074 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP7 : (Group 7 pm_gct_usage) Instructions completed event:0X075 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP7 : (Group 7 pm_gct_usage) Run cycles #Group 8 pm_lsu1, LSU LRQ and LMQ events event:0X080 counters:0 um:zero minimum:1000 name:PM_LSU_LRQ_S0_ALLOC_GRP8 : (Group 8 pm_lsu1) LRQ slot 0 allocated event:0X081 counters:1 um:zero minimum:1000 name:PM_LSU_LRQ_S0_VALID_GRP8 : (Group 8 pm_lsu1) LRQ slot 0 valid event:0X082 counters:2 um:zero minimum:1000 name:PM_LSU_LMQ_S0_ALLOC_GRP8 : (Group 8 pm_lsu1) LMQ slot 0 allocated event:0X083 counters:3 um:zero minimum:1000 name:PM_LSU_LMQ_S0_VALID_GRP8 : (Group 8 pm_lsu1) LMQ slot 0 valid event:0X084 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP8 : (Group 8 pm_lsu1) Instructions completed event:0X085 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP8 : (Group 8 pm_lsu1) Run cycles #Group 9 pm_lsu2, LSU SRQ events event:0X090 counters:0 um:zero minimum:1000 name:PM_LSU_SRQ_S0_ALLOC_GRP9 : (Group 9 pm_lsu2) SRQ slot 0 allocated event:0X091 counters:1 um:zero minimum:1000 name:PM_LSU_SRQ_S0_VALID_GRP9 : (Group 9 pm_lsu2) SRQ slot 0 valid event:0X092 counters:2 um:zero minimum:1000 name:PM_LSU_SRQ_SYNC_CYC_GRP9 : (Group 9 pm_lsu2) SRQ sync duration event:0X093 counters:3 um:zero minimum:1000 name:PM_LSU_SRQ_FULL_CYC_GRP9 : (Group 9 pm_lsu2) Cycles SRQ full event:0X094 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP9 : (Group 9 pm_lsu2) Instructions completed event:0X095 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP9 : (Group 9 pm_lsu2) Run cycles #Group 10 pm_lsu3, LSU SRQ and LMQ events event:0X0A0 counters:0 um:zero minimum:1000 name:PM_LSU_SRQ_STFWD_GRP10 : (Group 10 pm_lsu3) SRQ store forwarded event:0X0A1 counters:1 um:zero minimum:1000 name:PM_LSU_LMQ_SRQ_EMPTY_CYC_GRP10 : (Group 10 pm_lsu3) Cycles LMQ and SRQ empty event:0X0A2 counters:2 um:zero minimum:1000 name:PM_LSU_LMQ_LHR_MERGE_GRP10 : (Group 10 pm_lsu3) LMQ LHR merges event:0X0A3 counters:3 um:zero minimum:1000 name:PM_LSU_SRQ_EMPTY_CYC_GRP10 : (Group 10 pm_lsu3) Cycles SRQ empty event:0X0A4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP10 : (Group 10 pm_lsu3) Instructions completed event:0X0A5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP10 : (Group 10 pm_lsu3) Run cycles #Group 11 pm_prefetch1, Prefetch stream allocation event:0X0B0 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L2MISS_GRP11 : (Group 11 pm_prefetch1) Instructions fetched missed L2 event:0X0B1 counters:1 um:zero minimum:1000 name:PM_INST_FETCH_CYC_GRP11 : (Group 11 pm_prefetch1) Cycles at least 1 instruction fetched event:0X0B2 counters:2 um:zero minimum:1000 name:PM_DC_PREF_STREAM_ALLOC_BLK_GRP11 : (Group 11 pm_prefetch1) D cache out of prefech streams event:0X0B3 counters:3 um:zero minimum:1000 name:PM_DC_PREF_STREAM_ALLOC_GRP11 : (Group 11 pm_prefetch1) D cache new prefetch stream allocated event:0X0B4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP11 : (Group 11 pm_prefetch1) Instructions completed event:0X0B5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP11 : (Group 11 pm_prefetch1) Run cycles #Group 12 pm_prefetch2, Prefetch events event:0X0C0 counters:0 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP12 : (Group 12 pm_prefetch2) IOPS instructions completed event:0X0C1 counters:1 um:zero minimum:1000 name:PM_CLB_FULL_CYC_GRP12 : (Group 12 pm_prefetch2) Cycles CLB full event:0X0C2 counters:2 um:zero minimum:1000 name:PM_L1_PREF_GRP12 : (Group 12 pm_prefetch2) L1 cache data prefetches event:0X0C3 counters:3 um:zero minimum:1000 name:PM_IC_PREF_INSTALL_GRP12 : (Group 12 pm_prefetch2) Instruction prefetched installed in prefetch event:0X0C4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP12 : (Group 12 pm_prefetch2) Instructions completed event:0X0C5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP12 : (Group 12 pm_prefetch2) Run cycles #Group 13 pm_prefetch3, L2 prefetch and misc events event:0X0D0 counters:0 um:zero minimum:1000 name:PM_LSU_BUSY_REJECT_GRP13 : (Group 13 pm_prefetch3) LSU busy due to reject event:0X0D1 counters:1 um:zero minimum:1000 name:PM_1INST_CLB_CYC_GRP13 : (Group 13 pm_prefetch3) Cycles 1 instruction in CLB event:0X0D2 counters:2 um:zero minimum:1000 name:PM_L2_PREF_GRP13 : (Group 13 pm_prefetch3) L2 cache prefetches event:0X0D3 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP13 : (Group 13 pm_prefetch3) IOPS instructions completed event:0X0D4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP13 : (Group 13 pm_prefetch3) Instructions completed event:0X0D5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP13 : (Group 13 pm_prefetch3) Run cycles #Group 14 pm_prefetch4, Misc prefetch and reject events event:0X0E0 counters:0 um:zero minimum:1000 name:PM_LSU0_REJECT_SRQ_LHS_GRP14 : (Group 14 pm_prefetch4) LSU0 SRQ rejects event:0X0E1 counters:1 um:zero minimum:1000 name:PM_LSU1_REJECT_SRQ_LHS_GRP14 : (Group 14 pm_prefetch4) LSU1 SRQ rejects event:0X0E2 counters:2 um:zero minimum:1000 name:PM_DC_PREF_DST_GRP14 : (Group 14 pm_prefetch4) DST (Data Stream Touch) stream start event:0X0E3 counters:3 um:zero minimum:1000 name:PM_L2_PREF_GRP14 : (Group 14 pm_prefetch4) L2 cache prefetches event:0X0E4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP14 : (Group 14 pm_prefetch4) Instructions completed event:0X0E5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP14 : (Group 14 pm_prefetch4) Run cycles #Group 15 pm_lsu_reject1, LSU reject events event:0X0F0 counters:0 um:zero minimum:1000 name:PM_LSU_REJECT_ERAT_MISS_GRP15 : (Group 15 pm_lsu_reject1) LSU reject due to ERAT miss event:0X0F1 counters:1 um:zero minimum:1000 name:PM_LSU_REJECT_LMQ_FULL_GRP15 : (Group 15 pm_lsu_reject1) LSU reject due to LMQ full or missed data coming event:0X0F2 counters:2 um:zero minimum:1000 name:PM_FLUSH_IMBAL_GRP15 : (Group 15 pm_lsu_reject1) Flush caused by thread GCT imbalance event:0X0F3 counters:3 um:zero minimum:1000 name:PM_MRK_LSU_FLUSH_SRQ_GRP15 : (Group 15 pm_lsu_reject1) Marked SRQ flushes event:0X0F4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP15 : (Group 15 pm_lsu_reject1) Instructions completed event:0X0F5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP15 : (Group 15 pm_lsu_reject1) Run cycles #Group 16 pm_lsu_reject2, LSU rejects due to reload CDF or tag update collision event:0X100 counters:0 um:zero minimum:1000 name:PM_LSU0_REJECT_RELOAD_CDF_GRP16 : (Group 16 pm_lsu_reject2) LSU0 reject due to reload CDF or tag update collision event:0X101 counters:1 um:zero minimum:1000 name:PM_LSU1_REJECT_RELOAD_CDF_GRP16 : (Group 16 pm_lsu_reject2) LSU1 reject due to reload CDF or tag update collision event:0X102 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP16 : (Group 16 pm_lsu_reject2) IOPS instructions completed event:0X103 counters:3 um:zero minimum:1000 name:PM_L1_WRITE_CYC_GRP16 : (Group 16 pm_lsu_reject2) Cycles writing to instruction L1 event:0X104 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP16 : (Group 16 pm_lsu_reject2) Instructions completed event:0X105 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP16 : (Group 16 pm_lsu_reject2) Run cycles #Group 17 pm_lsu_reject3, LSU rejects due to ERAT, held instuctions event:0X110 counters:0 um:zero minimum:1000 name:PM_LSU0_REJECT_ERAT_MISS_GRP17 : (Group 17 pm_lsu_reject3) LSU0 reject due to ERAT miss event:0X111 counters:1 um:zero minimum:1000 name:PM_LSU1_REJECT_ERAT_MISS_GRP17 : (Group 17 pm_lsu_reject3) LSU1 reject due to ERAT miss event:0X112 counters:2 um:zero minimum:1000 name:PM_LWSYNC_HELD_GRP17 : (Group 17 pm_lsu_reject3) LWSYNC held at dispatch event:0X113 counters:3 um:zero minimum:1000 name:PM_TLBIE_HELD_GRP17 : (Group 17 pm_lsu_reject3) TLBIE held at dispatch event:0X114 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP17 : (Group 17 pm_lsu_reject3) Instructions completed event:0X115 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP17 : (Group 17 pm_lsu_reject3) Run cycles #Group 18 pm_lsu_reject4, LSU0/1 reject LMQ full event:0X120 counters:0 um:zero minimum:1000 name:PM_LSU0_REJECT_LMQ_FULL_GRP18 : (Group 18 pm_lsu_reject4) LSU0 reject due to LMQ full or missed data coming event:0X121 counters:1 um:zero minimum:1000 name:PM_LSU1_REJECT_LMQ_FULL_GRP18 : (Group 18 pm_lsu_reject4) LSU1 reject due to LMQ full or missed data coming event:0X122 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP18 : (Group 18 pm_lsu_reject4) IOPS instructions completed event:0X123 counters:3 um:zero minimum:1000 name:PM_BR_ISSUED_GRP18 : (Group 18 pm_lsu_reject4) Branches issued event:0X124 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP18 : (Group 18 pm_lsu_reject4) Instructions completed event:0X125 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP18 : (Group 18 pm_lsu_reject4) Run cycles #Group 19 pm_lsu_reject5, LSU misc reject and flush events event:0X130 counters:0 um:zero minimum:1000 name:PM_LSU_REJECT_SRQ_LHS_GRP19 : (Group 19 pm_lsu_reject5) LSU SRQ rejects event:0X131 counters:1 um:zero minimum:1000 name:PM_LSU_REJECT_RELOAD_CDF_GRP19 : (Group 19 pm_lsu_reject5) LSU reject due to reload CDF or tag update collision event:0X132 counters:2 um:zero minimum:1000 name:PM_LSU_FLUSH_GRP19 : (Group 19 pm_lsu_reject5) Flush initiated by LSU event:0X133 counters:3 um:zero minimum:1000 name:PM_FLUSH_GRP19 : (Group 19 pm_lsu_reject5) Flushes event:0X134 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP19 : (Group 19 pm_lsu_reject5) Instructions completed event:0X135 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP19 : (Group 19 pm_lsu_reject5) Run cycles #Group 20 pm_flush1, Misc flush events event:0X140 counters:0 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP20 : (Group 20 pm_flush1) IOPS instructions completed event:0X141 counters:1 um:zero minimum:1000 name:PM_LSU_FLUSH_UST_GRP20 : (Group 20 pm_flush1) SRQ unaligned store flushes event:0X142 counters:2 um:zero minimum:1000 name:PM_FLUSH_IMBAL_GRP20 : (Group 20 pm_flush1) Flush caused by thread GCT imbalance event:0X143 counters:3 um:zero minimum:1000 name:PM_DC_INV_L2_GRP20 : (Group 20 pm_flush1) L1 D cache entries invalidated from L2 event:0X144 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP20 : (Group 20 pm_flush1) Instructions completed event:0X145 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP20 : (Group 20 pm_flush1) Run cycles #Group 21 pm_flush2, Flushes due to scoreboard and sync event:0X150 counters:0 um:zero minimum:1000 name:PM_ITLB_MISS_GRP21 : (Group 21 pm_flush2) Instruction TLB misses event:0X151 counters:1 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP21 : (Group 21 pm_flush2) IOPS instructions completed event:0X152 counters:2 um:zero minimum:1000 name:PM_FLUSH_SB_GRP21 : (Group 21 pm_flush2) Flush caused by scoreboard operation event:0X153 counters:3 um:zero minimum:1000 name:PM_FLUSH_SYNC_GRP21 : (Group 21 pm_flush2) Flush caused by sync event:0X154 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP21 : (Group 21 pm_flush2) Instructions completed event:0X155 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP21 : (Group 21 pm_flush2) Run cycles #Group 22 pm_lsu_flush_srq_lrq, LSU flush by SRQ and LRQ events event:0X160 counters:0 um:zero minimum:1000 name:PM_LSU_FLUSH_SRQ_GRP22 : (Group 22 pm_lsu_flush_srq_lrq) SRQ flushes event:0X161 counters:1 um:zero minimum:1000 name:PM_LSU_FLUSH_LRQ_GRP22 : (Group 22 pm_lsu_flush_srq_lrq) LRQ flushes event:0X162 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP22 : (Group 22 pm_lsu_flush_srq_lrq) IOPS instructions completed event:0X163 counters:3 um:zero minimum:1000 name:PM_LSU_FLUSH_GRP22 : (Group 22 pm_lsu_flush_srq_lrq) Flush initiated by LSU event:0X164 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP22 : (Group 22 pm_lsu_flush_srq_lrq) Instructions completed event:0X165 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP22 : (Group 22 pm_lsu_flush_srq_lrq) Run cycles #Group 23 pm_lsu_flush_lrq, LSU0/1 flush due to LRQ event:0X170 counters:0 um:zero minimum:1000 name:PM_LSU0_FLUSH_LRQ_GRP23 : (Group 23 pm_lsu_flush_lrq) LSU0 LRQ flushes event:0X171 counters:1 um:zero minimum:1000 name:PM_LSU1_FLUSH_LRQ_GRP23 : (Group 23 pm_lsu_flush_lrq) LSU1 LRQ flushes event:0X172 counters:2 um:zero minimum:1000 name:PM_LSU_FLUSH_GRP23 : (Group 23 pm_lsu_flush_lrq) Flush initiated by LSU event:0X173 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP23 : (Group 23 pm_lsu_flush_lrq) IOPS instructions completed event:0X174 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP23 : (Group 23 pm_lsu_flush_lrq) Instructions completed event:0X175 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP23 : (Group 23 pm_lsu_flush_lrq) Run cycles #Group 24 pm_lsu_flush_srq, LSU0/1 flush due to SRQ event:0X180 counters:0 um:zero minimum:1000 name:PM_LSU0_FLUSH_SRQ_GRP24 : (Group 24 pm_lsu_flush_srq) LSU0 SRQ flushes event:0X181 counters:1 um:zero minimum:1000 name:PM_LSU1_FLUSH_SRQ_GRP24 : (Group 24 pm_lsu_flush_srq) LSU1 SRQ flushes event:0X182 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP24 : (Group 24 pm_lsu_flush_srq) IOPS instructions completed event:0X183 counters:3 um:zero minimum:1000 name:PM_LSU_FLUSH_GRP24 : (Group 24 pm_lsu_flush_srq) Flush initiated by LSU event:0X184 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP24 : (Group 24 pm_lsu_flush_srq) Instructions completed event:0X185 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP24 : (Group 24 pm_lsu_flush_srq) Run cycles #Group 25 pm_lsu_flush_unaligned, LSU flush due to unaligned data event:0X190 counters:0 um:zero minimum:1000 name:PM_LSU_FLUSH_ULD_GRP25 : (Group 25 pm_lsu_flush_unaligned) LRQ unaligned load flushes event:0X191 counters:1 um:zero minimum:1000 name:PM_LSU_FLUSH_UST_GRP25 : (Group 25 pm_lsu_flush_unaligned) SRQ unaligned store flushes event:0X192 counters:2 um:zero minimum:1000 name:PM_BR_ISSUED_GRP25 : (Group 25 pm_lsu_flush_unaligned) Branches issued event:0X193 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP25 : (Group 25 pm_lsu_flush_unaligned) IOPS instructions completed event:0X194 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP25 : (Group 25 pm_lsu_flush_unaligned) Instructions completed event:0X195 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP25 : (Group 25 pm_lsu_flush_unaligned) Run cycles #Group 26 pm_lsu_flush_uld, LSU0/1 flush due to unaligned load event:0X1A0 counters:0 um:zero minimum:1000 name:PM_LSU0_FLUSH_ULD_GRP26 : (Group 26 pm_lsu_flush_uld) LSU0 unaligned load flushes event:0X1A1 counters:1 um:zero minimum:1000 name:PM_LSU1_FLUSH_ULD_GRP26 : (Group 26 pm_lsu_flush_uld) LSU1 unaligned load flushes event:0X1A2 counters:2 um:zero minimum:1000 name:PM_LSU_FLUSH_GRP26 : (Group 26 pm_lsu_flush_uld) Flush initiated by LSU event:0X1A3 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP26 : (Group 26 pm_lsu_flush_uld) IOPS instructions completed event:0X1A4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP26 : (Group 26 pm_lsu_flush_uld) Instructions completed event:0X1A5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP26 : (Group 26 pm_lsu_flush_uld) Run cycles #Group 27 pm_lsu_flush_ust, LSU0/1 flush due to unaligned store event:0X1B0 counters:0 um:zero minimum:1000 name:PM_LSU0_FLUSH_UST_GRP27 : (Group 27 pm_lsu_flush_ust) LSU0 unaligned store flushes event:0X1B1 counters:1 um:zero minimum:1000 name:PM_LSU1_FLUSH_UST_GRP27 : (Group 27 pm_lsu_flush_ust) LSU1 unaligned store flushes event:0X1B2 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP27 : (Group 27 pm_lsu_flush_ust) IOPS instructions completed event:0X1B3 counters:3 um:zero minimum:1000 name:PM_LSU_FLUSH_GRP27 : (Group 27 pm_lsu_flush_ust) Flush initiated by LSU event:0X1B4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP27 : (Group 27 pm_lsu_flush_ust) Instructions completed event:0X1B5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP27 : (Group 27 pm_lsu_flush_ust) Run cycles #Group 28 pm_lsu_flush_full, LSU flush due to LRQ/SRQ full event:0X1C0 counters:0 um:zero minimum:1000 name:PM_LSU_FLUSH_LRQ_FULL_GRP28 : (Group 28 pm_lsu_flush_full) Flush caused by LRQ full event:0X1C1 counters:1 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP28 : (Group 28 pm_lsu_flush_full) IOPS instructions completed event:0X1C2 counters:2 um:zero minimum:1000 name:PM_MRK_LSU_FLUSH_LRQ_GRP28 : (Group 28 pm_lsu_flush_full) Marked LRQ flushes event:0X1C3 counters:3 um:zero minimum:1000 name:PM_LSU_FLUSH_SRQ_FULL_GRP28 : (Group 28 pm_lsu_flush_full) Flush caused by SRQ full event:0X1C4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP28 : (Group 28 pm_lsu_flush_full) Instructions completed event:0X1C5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP28 : (Group 28 pm_lsu_flush_full) Run cycles #Group 29 pm_lsu_stall1, LSU Stalls event:0X1D0 counters:0 um:zero minimum:1000 name:PM_GRP_MRK_GRP29 : (Group 29 pm_lsu_stall1) Group marked in IDU event:0X1D1 counters:1 um:zero minimum:1000 name:PM_CMPLU_STALL_LSU_GRP29 : (Group 29 pm_lsu_stall1) Completion stall caused by LSU instruction event:0X1D2 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP29 : (Group 29 pm_lsu_stall1) IOPS instructions completed event:0X1D3 counters:3 um:zero minimum:1000 name:PM_CMPLU_STALL_REJECT_GRP29 : (Group 29 pm_lsu_stall1) Completion stall caused by reject event:0X1D4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP29 : (Group 29 pm_lsu_stall1) Instructions completed event:0X1D5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP29 : (Group 29 pm_lsu_stall1) Run cycles #Group 30 pm_lsu_stall2, LSU Stalls event:0X1E0 counters:0 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP30 : (Group 30 pm_lsu_stall2) IOPS instructions completed event:0X1E1 counters:1 um:zero minimum:1000 name:PM_CMPLU_STALL_DCACHE_MISS_GRP30 : (Group 30 pm_lsu_stall2) Completion stall caused by D cache miss event:0X1E2 counters:2 um:zero minimum:10000 name:PM_CYC_GRP30 : (Group 30 pm_lsu_stall2) Processor cycles event:0X1E3 counters:3 um:zero minimum:1000 name:PM_CMPLU_STALL_ERAT_MISS_GRP30 : (Group 30 pm_lsu_stall2) Completion stall caused by ERAT miss event:0X1E4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP30 : (Group 30 pm_lsu_stall2) Instructions completed event:0X1E5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP30 : (Group 30 pm_lsu_stall2) Run cycles #Group 31 pm_fxu_stall, FXU Stalls event:0X1F0 counters:0 um:zero minimum:1000 name:PM_GRP_IC_MISS_BR_REDIR_NONSPEC_GRP31 : (Group 31 pm_fxu_stall) Group experienced non-speculative I cache miss or branch redirect event:0X1F1 counters:1 um:zero minimum:1000 name:PM_CMPLU_STALL_FXU_GRP31 : (Group 31 pm_fxu_stall) Completion stall caused by FXU instruction event:0X1F2 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP31 : (Group 31 pm_fxu_stall) IOPS instructions completed event:0X1F3 counters:3 um:zero minimum:1000 name:PM_CMPLU_STALL_DIV_GRP31 : (Group 31 pm_fxu_stall) Completion stall caused by DIV instruction event:0X1F4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP31 : (Group 31 pm_fxu_stall) Instructions completed event:0X1F5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP31 : (Group 31 pm_fxu_stall) Run cycles #Group 32 pm_fpu_stall, FPU Stalls event:0X200 counters:0 um:zero minimum:1000 name:PM_FPU_FULL_CYC_GRP32 : (Group 32 pm_fpu_stall) Cycles FPU issue queue full event:0X201 counters:1 um:zero minimum:1000 name:PM_CMPLU_STALL_FDIV_GRP32 : (Group 32 pm_fpu_stall) Completion stall caused by FDIV or FQRT instruction event:0X202 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP32 : (Group 32 pm_fpu_stall) IOPS instructions completed event:0X203 counters:3 um:zero minimum:1000 name:PM_CMPLU_STALL_FPU_GRP32 : (Group 32 pm_fpu_stall) Completion stall caused by FPU instruction event:0X204 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP32 : (Group 32 pm_fpu_stall) Instructions completed event:0X205 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP32 : (Group 32 pm_fpu_stall) Run cycles #Group 33 pm_queue_full, BRQ LRQ LMQ queue full event:0X210 counters:0 um:zero minimum:1000 name:PM_LARX_LSU0_GRP33 : (Group 33 pm_queue_full) Larx executed on LSU0 event:0X211 counters:1 um:zero minimum:1000 name:PM_BRQ_FULL_CYC_GRP33 : (Group 33 pm_queue_full) Cycles branch queue full event:0X212 counters:2 um:zero minimum:1000 name:PM_LSU_LRQ_FULL_CYC_GRP33 : (Group 33 pm_queue_full) Cycles LRQ full event:0X213 counters:3 um:zero minimum:1000 name:PM_LSU_LMQ_FULL_CYC_GRP33 : (Group 33 pm_queue_full) Cycles LMQ full event:0X214 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP33 : (Group 33 pm_queue_full) Instructions completed event:0X215 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP33 : (Group 33 pm_queue_full) Run cycles #Group 34 pm_issueq_full, FPU FX full event:0X220 counters:0 um:zero minimum:1000 name:PM_FPU0_FULL_CYC_GRP34 : (Group 34 pm_issueq_full) Cycles FPU0 issue queue full event:0X221 counters:1 um:zero minimum:1000 name:PM_FPU1_FULL_CYC_GRP34 : (Group 34 pm_issueq_full) Cycles FPU1 issue queue full event:0X222 counters:2 um:zero minimum:1000 name:PM_FXLS0_FULL_CYC_GRP34 : (Group 34 pm_issueq_full) Cycles FXU0/LS0 queue full event:0X223 counters:3 um:zero minimum:1000 name:PM_FXLS1_FULL_CYC_GRP34 : (Group 34 pm_issueq_full) Cycles FXU1/LS1 queue full event:0X224 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP34 : (Group 34 pm_issueq_full) Instructions completed event:0X225 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP34 : (Group 34 pm_issueq_full) Run cycles #Group 35 pm_mapper_full1, CR CTR GPR mapper full event:0X230 counters:0 um:zero minimum:1000 name:PM_CR_MAP_FULL_CYC_GRP35 : (Group 35 pm_mapper_full1) Cycles CR logical operation mapper full event:0X231 counters:1 um:zero minimum:1000 name:PM_LR_CTR_MAP_FULL_CYC_GRP35 : (Group 35 pm_mapper_full1) Cycles LR/CTR mapper full event:0X232 counters:2 um:zero minimum:1000 name:PM_GPR_MAP_FULL_CYC_GRP35 : (Group 35 pm_mapper_full1) Cycles GPR mapper full event:0X233 counters:3 um:zero minimum:1000 name:PM_CRQ_FULL_CYC_GRP35 : (Group 35 pm_mapper_full1) Cycles CR issue queue full event:0X234 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP35 : (Group 35 pm_mapper_full1) Instructions completed event:0X235 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP35 : (Group 35 pm_mapper_full1) Run cycles #Group 36 pm_mapper_full2, FPR XER mapper full event:0X240 counters:0 um:zero minimum:1000 name:PM_FPR_MAP_FULL_CYC_GRP36 : (Group 36 pm_mapper_full2) Cycles FPR mapper full event:0X241 counters:1 um:zero minimum:1000 name:PM_XER_MAP_FULL_CYC_GRP36 : (Group 36 pm_mapper_full2) Cycles XER mapper full event:0X242 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2MISS_GRP36 : (Group 36 pm_mapper_full2) Marked data loaded missed L2 event:0X243 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP36 : (Group 36 pm_mapper_full2) IOPS instructions completed event:0X244 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP36 : (Group 36 pm_mapper_full2) Instructions completed event:0X245 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP36 : (Group 36 pm_mapper_full2) Run cycles #Group 37 pm_misc_load, Non-cachable loads and stcx events event:0X250 counters:0 um:zero minimum:1000 name:PM_STCX_FAIL_GRP37 : (Group 37 pm_misc_load) STCX failed event:0X251 counters:1 um:zero minimum:1000 name:PM_STCX_PASS_GRP37 : (Group 37 pm_misc_load) Stcx passes event:0X252 counters:2 um:zero minimum:1000 name:PM_LSU0_NCLD_GRP37 : (Group 37 pm_misc_load) LSU0 non-cacheable loads event:0X253 counters:3 um:zero minimum:1000 name:PM_LSU1_NCLD_GRP37 : (Group 37 pm_misc_load) LSU1 non-cacheable loads event:0X254 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP37 : (Group 37 pm_misc_load) Instructions completed event:0X255 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP37 : (Group 37 pm_misc_load) Run cycles #Group 38 pm_ic_demand, ICache demand from BR redirect event:0X260 counters:0 um:zero minimum:1000 name:PM_LSU0_BUSY_REJECT_GRP38 : (Group 38 pm_ic_demand) LSU0 busy due to reject event:0X261 counters:1 um:zero minimum:1000 name:PM_LSU1_BUSY_REJECT_GRP38 : (Group 38 pm_ic_demand) LSU1 busy due to reject event:0X262 counters:2 um:zero minimum:1000 name:PM_IC_DEMAND_L2_BHT_REDIRECT_GRP38 : (Group 38 pm_ic_demand) L2 I cache demand request due to BHT redirect event:0X263 counters:3 um:zero minimum:1000 name:PM_IC_DEMAND_L2_BR_REDIRECT_GRP38 : (Group 38 pm_ic_demand) L2 I cache demand request due to branch redirect event:0X264 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP38 : (Group 38 pm_ic_demand) Instructions completed event:0X265 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP38 : (Group 38 pm_ic_demand) Run cycles #Group 39 pm_ic_pref, ICache prefetch event:0X270 counters:0 um:zero minimum:1000 name:PM_IERAT_XLATE_WR_GRP39 : (Group 39 pm_ic_pref) Translation written to ierat event:0X271 counters:1 um:zero minimum:1000 name:PM_IC_PREF_REQ_GRP39 : (Group 39 pm_ic_pref) Instruction prefetch requests event:0X272 counters:2 um:zero minimum:1000 name:PM_IC_PREF_INSTALL_GRP39 : (Group 39 pm_ic_pref) Instruction prefetched installed in prefetch event:0X273 counters:3 um:zero minimum:1000 name:PM_0INST_FETCH_GRP39 : (Group 39 pm_ic_pref) No instructions fetched event:0X274 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP39 : (Group 39 pm_ic_pref) Instructions completed event:0X275 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP39 : (Group 39 pm_ic_pref) Run cycles #Group 40 pm_ic_miss, ICache misses event:0X280 counters:0 um:zero minimum:1000 name:PM_GRP_IC_MISS_NONSPEC_GRP40 : (Group 40 pm_ic_miss) Group experienced non-speculative I cache miss event:0X281 counters:1 um:zero minimum:1000 name:PM_GRP_IC_MISS_GRP40 : (Group 40 pm_ic_miss) Group experienced I cache miss event:0X282 counters:2 um:zero minimum:1000 name:PM_L1_DCACHE_RELOAD_VALID_GRP40 : (Group 40 pm_ic_miss) L1 reload data source valid event:0X283 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP40 : (Group 40 pm_ic_miss) IOPS instructions completed event:0X284 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP40 : (Group 40 pm_ic_miss) Instructions completed event:0X285 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP40 : (Group 40 pm_ic_miss) Run cycles #Group 41 pm_branch_miss, Branch mispredict, TLB and SLB misses event:0X290 counters:0 um:zero minimum:1000 name:PM_TLB_MISS_GRP41 : (Group 41 pm_branch_miss) TLB misses event:0X291 counters:1 um:zero minimum:1000 name:PM_SLB_MISS_GRP41 : (Group 41 pm_branch_miss) SLB misses event:0X292 counters:2 um:zero minimum:1000 name:PM_BR_MPRED_CR_GRP41 : (Group 41 pm_branch_miss) Branch mispredictions due to CR bit setting event:0X293 counters:3 um:zero minimum:1000 name:PM_BR_MPRED_TA_GRP41 : (Group 41 pm_branch_miss) Branch mispredictions due to target address event:0X294 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP41 : (Group 41 pm_branch_miss) Instructions completed event:0X295 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP41 : (Group 41 pm_branch_miss) Run cycles #Group 42 pm_branch1, Branch operations event:0X2A0 counters:0 um:zero minimum:1000 name:PM_BR_UNCOND_GRP42 : (Group 42 pm_branch1) Unconditional branch event:0X2A1 counters:1 um:zero minimum:1000 name:PM_BR_PRED_TA_GRP42 : (Group 42 pm_branch1) A conditional branch was predicted, target prediction event:0X2A2 counters:2 um:zero minimum:1000 name:PM_BR_PRED_CR_GRP42 : (Group 42 pm_branch1) A conditional branch was predicted, CR prediction event:0X2A3 counters:3 um:zero minimum:1000 name:PM_BR_PRED_CR_TA_GRP42 : (Group 42 pm_branch1) A conditional branch was predicted, CR and target prediction event:0X2A4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP42 : (Group 42 pm_branch1) Instructions completed event:0X2A5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP42 : (Group 42 pm_branch1) Run cycles #Group 43 pm_branch2, Branch operations event:0X2B0 counters:0 um:zero minimum:1000 name:PM_GRP_BR_REDIR_NONSPEC_GRP43 : (Group 43 pm_branch2) Group experienced non-speculative branch redirect event:0X2B1 counters:1 um:zero minimum:1000 name:PM_GRP_BR_REDIR_GRP43 : (Group 43 pm_branch2) Group experienced branch redirect event:0X2B2 counters:2 um:zero minimum:1000 name:PM_FLUSH_BR_MPRED_GRP43 : (Group 43 pm_branch2) Flush caused by branch mispredict event:0X2B3 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP43 : (Group 43 pm_branch2) IOPS instructions completed event:0X2B4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP43 : (Group 43 pm_branch2) Instructions completed event:0X2B5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP43 : (Group 43 pm_branch2) Run cycles #Group 44 pm_L1_tlbmiss, L1 load and TLB misses event:0X2C0 counters:0 um:zero minimum:1000 name:PM_DATA_TABLEWALK_CYC_GRP44 : (Group 44 pm_L1_tlbmiss) Cycles doing data tablewalks event:0X2C1 counters:1 um:zero minimum:1000 name:PM_DTLB_MISS_GRP44 : (Group 44 pm_L1_tlbmiss) Data TLB misses event:0X2C2 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP44 : (Group 44 pm_L1_tlbmiss) L1 D cache load misses event:0X2C3 counters:3 um:zero minimum:1000 name:PM_LD_REF_L1_GRP44 : (Group 44 pm_L1_tlbmiss) L1 D cache load references event:0X2C4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP44 : (Group 44 pm_L1_tlbmiss) Instructions completed event:0X2C5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP44 : (Group 44 pm_L1_tlbmiss) Run cycles #Group 45 pm_L1_DERAT_miss, L1 store and DERAT misses event:0X2D0 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L2_GRP45 : (Group 45 pm_L1_DERAT_miss) Data loaded from L2 event:0X2D1 counters:1 um:zero minimum:1000 name:PM_LSU_DERAT_MISS_GRP45 : (Group 45 pm_L1_DERAT_miss) DERAT misses event:0X2D2 counters:2 um:zero minimum:1000 name:PM_ST_REF_L1_GRP45 : (Group 45 pm_L1_DERAT_miss) L1 D cache store references event:0X2D3 counters:3 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP45 : (Group 45 pm_L1_DERAT_miss) L1 D cache store misses event:0X2D4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP45 : (Group 45 pm_L1_DERAT_miss) Instructions completed event:0X2D5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP45 : (Group 45 pm_L1_DERAT_miss) Run cycles #Group 46 pm_L1_slbmiss, L1 load and SLB misses event:0X2E0 counters:0 um:zero minimum:1000 name:PM_DSLB_MISS_GRP46 : (Group 46 pm_L1_slbmiss) Data SLB misses event:0X2E1 counters:1 um:zero minimum:1000 name:PM_ISLB_MISS_GRP46 : (Group 46 pm_L1_slbmiss) Instruction SLB misses event:0X2E2 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_LSU0_GRP46 : (Group 46 pm_L1_slbmiss) LSU0 L1 D cache load misses event:0X2E3 counters:3 um:zero minimum:1000 name:PM_LD_MISS_L1_LSU1_GRP46 : (Group 46 pm_L1_slbmiss) LSU1 L1 D cache load misses event:0X2E4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP46 : (Group 46 pm_L1_slbmiss) Instructions completed event:0X2E5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP46 : (Group 46 pm_L1_slbmiss) Run cycles #Group 47 pm_L1_dtlbmiss_4K, L1 load references and 4K Data TLB references and misses event:0X2F0 counters:0 um:zero minimum:1000 name:PM_DTLB_REF_4K_GRP47 : (Group 47 pm_L1_dtlbmiss_4K) Data TLB reference for 4K page event:0X2F1 counters:1 um:zero minimum:1000 name:PM_DTLB_MISS_4K_GRP47 : (Group 47 pm_L1_dtlbmiss_4K) Data TLB miss for 4K page event:0X2F2 counters:2 um:zero minimum:1000 name:PM_LD_REF_L1_LSU0_GRP47 : (Group 47 pm_L1_dtlbmiss_4K) LSU0 L1 D cache load references event:0X2F3 counters:3 um:zero minimum:1000 name:PM_LD_REF_L1_LSU1_GRP47 : (Group 47 pm_L1_dtlbmiss_4K) LSU1 L1 D cache load references event:0X2F4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP47 : (Group 47 pm_L1_dtlbmiss_4K) Instructions completed event:0X2F5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP47 : (Group 47 pm_L1_dtlbmiss_4K) Run cycles #Group 48 pm_L1_dtlbmiss_16M, L1 store references and 16M Data TLB references and misses event:0X300 counters:0 um:zero minimum:1000 name:PM_DTLB_REF_16M_GRP48 : (Group 48 pm_L1_dtlbmiss_16M) Data TLB reference for 16M page event:0X301 counters:1 um:zero minimum:1000 name:PM_DTLB_MISS_16M_GRP48 : (Group 48 pm_L1_dtlbmiss_16M) Data TLB miss for 16M page event:0X302 counters:2 um:zero minimum:1000 name:PM_ST_REF_L1_LSU0_GRP48 : (Group 48 pm_L1_dtlbmiss_16M) LSU0 L1 D cache store references event:0X303 counters:3 um:zero minimum:1000 name:PM_ST_REF_L1_LSU1_GRP48 : (Group 48 pm_L1_dtlbmiss_16M) LSU1 L1 D cache store references event:0X304 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP48 : (Group 48 pm_L1_dtlbmiss_16M) Instructions completed event:0X305 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP48 : (Group 48 pm_L1_dtlbmiss_16M) Run cycles #Group 49 pm_dsource1, L3 cache and memory data access event:0X310 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L3_GRP49 : (Group 49 pm_dsource1) Data loaded from L3 event:0X311 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_LMEM_GRP49 : (Group 49 pm_dsource1) Data loaded from local memory event:0X312 counters:2 um:zero minimum:1000 name:PM_FLUSH_GRP49 : (Group 49 pm_dsource1) Flushes event:0X313 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP49 : (Group 49 pm_dsource1) IOPS instructions completed event:0X314 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP49 : (Group 49 pm_dsource1) Instructions completed event:0X315 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP49 : (Group 49 pm_dsource1) Run cycles #Group 50 pm_dsource2, L3 cache and memory data access event:0X320 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L3_GRP50 : (Group 50 pm_dsource2) Data loaded from L3 event:0X321 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_LMEM_GRP50 : (Group 50 pm_dsource2) Data loaded from local memory event:0X322 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_L2MISS_GRP50 : (Group 50 pm_dsource2) Data loaded missed L2 event:0X323 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_RMEM_GRP50 : (Group 50 pm_dsource2) Data loaded from remote memory event:0X324 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP50 : (Group 50 pm_dsource2) Instructions completed event:0X325 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP50 : (Group 50 pm_dsource2) Run cycles #Group 51 pm_dsource_L2, L2 cache data access event:0X330 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L25_SHR_GRP51 : (Group 51 pm_dsource_L2) Data loaded from L2.5 shared event:0X331 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_L25_MOD_GRP51 : (Group 51 pm_dsource_L2) Data loaded from L2.5 modified event:0X332 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_L275_SHR_GRP51 : (Group 51 pm_dsource_L2) Data loaded from L2.75 shared event:0X333 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_L275_MOD_GRP51 : (Group 51 pm_dsource_L2) Data loaded from L2.75 modified event:0X334 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP51 : (Group 51 pm_dsource_L2) Instructions completed event:0X335 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP51 : (Group 51 pm_dsource_L2) Run cycles #Group 52 pm_dsource_L3, L3 cache data access event:0X340 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L35_SHR_GRP52 : (Group 52 pm_dsource_L3) Data loaded from L3.5 shared event:0X341 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_L35_MOD_GRP52 : (Group 52 pm_dsource_L3) Data loaded from L3.5 modified event:0X342 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_L375_SHR_GRP52 : (Group 52 pm_dsource_L3) Data loaded from L3.75 shared event:0X343 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_L375_MOD_GRP52 : (Group 52 pm_dsource_L3) Data loaded from L3.75 modified event:0X344 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP52 : (Group 52 pm_dsource_L3) Instructions completed event:0X345 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP52 : (Group 52 pm_dsource_L3) Run cycles #Group 53 pm_isource1, Instruction source information event:0X350 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L3_GRP53 : (Group 53 pm_isource1) Instruction fetched from L3 event:0X351 counters:1 um:zero minimum:1000 name:PM_INST_FROM_L1_GRP53 : (Group 53 pm_isource1) Instruction fetched from L1 event:0X352 counters:2 um:zero minimum:1000 name:PM_INST_FROM_PREF_GRP53 : (Group 53 pm_isource1) Instructions fetched from prefetch event:0X353 counters:3 um:zero minimum:1000 name:PM_INST_FROM_RMEM_GRP53 : (Group 53 pm_isource1) Instruction fetched from remote memory event:0X354 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP53 : (Group 53 pm_isource1) Instructions completed event:0X355 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP53 : (Group 53 pm_isource1) Run cycles #Group 54 pm_isource2, Instruction source information event:0X360 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L2_GRP54 : (Group 54 pm_isource2) Instructions fetched from L2 event:0X361 counters:1 um:zero minimum:1000 name:PM_INST_FROM_LMEM_GRP54 : (Group 54 pm_isource2) Instruction fetched from local memory event:0X362 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP54 : (Group 54 pm_isource2) IOPS instructions completed event:0X363 counters:3 um:zero minimum:1000 name:PM_0INST_FETCH_GRP54 : (Group 54 pm_isource2) No instructions fetched event:0X364 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP54 : (Group 54 pm_isource2) Instructions completed event:0X365 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP54 : (Group 54 pm_isource2) Run cycles #Group 55 pm_isource_L2, L2 instruction source information event:0X370 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L25_SHR_GRP55 : (Group 55 pm_isource_L2) Instruction fetched from L2.5 shared event:0X371 counters:1 um:zero minimum:1000 name:PM_INST_FROM_L25_MOD_GRP55 : (Group 55 pm_isource_L2) Instruction fetched from L2.5 modified event:0X372 counters:2 um:zero minimum:1000 name:PM_INST_FROM_L275_SHR_GRP55 : (Group 55 pm_isource_L2) Instruction fetched from L2.75 shared event:0X373 counters:3 um:zero minimum:1000 name:PM_INST_FROM_L275_MOD_GRP55 : (Group 55 pm_isource_L2) Instruction fetched from L2.75 modified event:0X374 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP55 : (Group 55 pm_isource_L2) Instructions completed event:0X375 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP55 : (Group 55 pm_isource_L2) Run cycles #Group 56 pm_isource_L3, L3 instruction source information event:0X380 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L35_SHR_GRP56 : (Group 56 pm_isource_L3) Instruction fetched from L3.5 shared event:0X381 counters:1 um:zero minimum:1000 name:PM_INST_FROM_L35_MOD_GRP56 : (Group 56 pm_isource_L3) Instruction fetched from L3.5 modified event:0X382 counters:2 um:zero minimum:1000 name:PM_INST_FROM_L375_SHR_GRP56 : (Group 56 pm_isource_L3) Instruction fetched from L3.75 shared event:0X383 counters:3 um:zero minimum:1000 name:PM_INST_FROM_L375_MOD_GRP56 : (Group 56 pm_isource_L3) Instruction fetched from L3.75 modified event:0X384 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP56 : (Group 56 pm_isource_L3) Instructions completed event:0X385 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP56 : (Group 56 pm_isource_L3) Run cycles #Group 57 pm_pteg_source1, PTEG source information event:0X390 counters:0 um:zero minimum:1000 name:PM_PTEG_FROM_L25_SHR_GRP57 : (Group 57 pm_pteg_source1) PTEG loaded from L2.5 shared event:0X391 counters:1 um:zero minimum:1000 name:PM_PTEG_FROM_L25_MOD_GRP57 : (Group 57 pm_pteg_source1) PTEG loaded from L2.5 modified event:0X392 counters:2 um:zero minimum:1000 name:PM_PTEG_FROM_L275_SHR_GRP57 : (Group 57 pm_pteg_source1) PTEG loaded from L2.75 shared event:0X393 counters:3 um:zero minimum:1000 name:PM_PTEG_FROM_L275_MOD_GRP57 : (Group 57 pm_pteg_source1) PTEG loaded from L2.75 modified event:0X394 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP57 : (Group 57 pm_pteg_source1) Instructions completed event:0X395 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP57 : (Group 57 pm_pteg_source1) Run cycles #Group 58 pm_pteg_source2, PTEG source information event:0X3A0 counters:0 um:zero minimum:1000 name:PM_PTEG_FROM_L35_SHR_GRP58 : (Group 58 pm_pteg_source2) PTEG loaded from L3.5 shared event:0X3A1 counters:1 um:zero minimum:1000 name:PM_PTEG_FROM_L35_MOD_GRP58 : (Group 58 pm_pteg_source2) PTEG loaded from L3.5 modified event:0X3A2 counters:2 um:zero minimum:1000 name:PM_PTEG_FROM_L375_SHR_GRP58 : (Group 58 pm_pteg_source2) PTEG loaded from L3.75 shared event:0X3A3 counters:3 um:zero minimum:1000 name:PM_PTEG_FROM_L375_MOD_GRP58 : (Group 58 pm_pteg_source2) PTEG loaded from L3.75 modified event:0X3A4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP58 : (Group 58 pm_pteg_source2) Instructions completed event:0X3A5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP58 : (Group 58 pm_pteg_source2) Run cycles #Group 59 pm_pteg_source3, PTEG source information event:0X3B0 counters:0 um:zero minimum:1000 name:PM_PTEG_FROM_L2_GRP59 : (Group 59 pm_pteg_source3) PTEG loaded from L2 event:0X3B1 counters:1 um:zero minimum:1000 name:PM_PTEG_FROM_LMEM_GRP59 : (Group 59 pm_pteg_source3) PTEG loaded from local memory event:0X3B2 counters:2 um:zero minimum:1000 name:PM_PTEG_FROM_L2MISS_GRP59 : (Group 59 pm_pteg_source3) PTEG loaded from L2 miss event:0X3B3 counters:3 um:zero minimum:1000 name:PM_PTEG_FROM_RMEM_GRP59 : (Group 59 pm_pteg_source3) PTEG loaded from remote memory event:0X3B4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP59 : (Group 59 pm_pteg_source3) Instructions completed event:0X3B5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP59 : (Group 59 pm_pteg_source3) Run cycles #Group 60 pm_pteg_source4, L3 PTEG and group disptach events event:0X3C0 counters:0 um:zero minimum:1000 name:PM_PTEG_FROM_L3_GRP60 : (Group 60 pm_pteg_source4) PTEG loaded from L3 event:0X3C1 counters:1 um:zero minimum:1000 name:PM_GRP_DISP_GRP60 : (Group 60 pm_pteg_source4) Group dispatches event:0X3C2 counters:2 um:zero minimum:1000 name:PM_GRP_DISP_SUCCESS_GRP60 : (Group 60 pm_pteg_source4) Group dispatch success event:0X3C3 counters:3 um:zero minimum:1000 name:PM_DC_INV_L2_GRP60 : (Group 60 pm_pteg_source4) L1 D cache entries invalidated from L2 event:0X3C4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP60 : (Group 60 pm_pteg_source4) Instructions completed event:0X3C5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP60 : (Group 60 pm_pteg_source4) Run cycles #Group 61 pm_L2SA_ld, L2 slice A load events event:0X3D0 counters:0 um:zero minimum:1000 name:PM_L2SA_RCLD_DISP_GRP61 : (Group 61 pm_L2SA_ld) L2 Slice A RC load dispatch attempt event:0X3D1 counters:1 um:zero minimum:1000 name:PM_L2SA_RCLD_DISP_FAIL_RC_FULL_GRP61 : (Group 61 pm_L2SA_ld) L2 Slice A RC load dispatch attempt failed due to all RC full event:0X3D2 counters:2 um:zero minimum:1000 name:PM_L2SA_RCLD_DISP_FAIL_ADDR_GRP61 : (Group 61 pm_L2SA_ld) L2 Slice A RC load dispatch attempt failed due to address collision with RC/CO/SN/SQ event:0X3D3 counters:3 um:zero minimum:1000 name:PM_L2SA_RCLD_DISP_FAIL_OTHER_GRP61 : (Group 61 pm_L2SA_ld) L2 Slice A RC load dispatch attempt failed due to other reasons event:0X3D4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP61 : (Group 61 pm_L2SA_ld) Instructions completed event:0X3D5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP61 : (Group 61 pm_L2SA_ld) Run cycles #Group 62 pm_L2SA_st, L2 slice A store events event:0X3E0 counters:0 um:zero minimum:1000 name:PM_L2SA_RCST_DISP_GRP62 : (Group 62 pm_L2SA_st) L2 Slice A RC store dispatch attempt event:0X3E1 counters:1 um:zero minimum:1000 name:PM_L2SA_RCST_DISP_FAIL_RC_FULL_GRP62 : (Group 62 pm_L2SA_st) L2 Slice A RC store dispatch attempt failed due to all RC full event:0X3E2 counters:2 um:zero minimum:1000 name:PM_L2SA_RCST_DISP_FAIL_ADDR_GRP62 : (Group 62 pm_L2SA_st) L2 Slice A RC store dispatch attempt failed due to address collision with RC/CO/SN/SQ event:0X3E3 counters:3 um:zero minimum:1000 name:PM_L2SA_RCST_DISP_FAIL_OTHER_GRP62 : (Group 62 pm_L2SA_st) L2 Slice A RC store dispatch attempt failed due to other reasons event:0X3E4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP62 : (Group 62 pm_L2SA_st) Instructions completed event:0X3E5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP62 : (Group 62 pm_L2SA_st) Run cycles #Group 63 pm_L2SA_st2, L2 slice A store events event:0X3F0 counters:0 um:zero minimum:1000 name:PM_L2SA_RC_DISP_FAIL_CO_BUSY_GRP63 : (Group 63 pm_L2SA_st2) L2 Slice A RC dispatch attempt failed due to RC/CO pair chosen was miss and CO already busy event:0X3F1 counters:1 um:zero minimum:1000 name:PM_L2SA_ST_REQ_GRP63 : (Group 63 pm_L2SA_st2) L2 slice A store requests event:0X3F2 counters:2 um:zero minimum:1000 name:PM_L2SA_RC_DISP_FAIL_CO_BUSY_ALL_GRP63 : (Group 63 pm_L2SA_st2) L2 Slice A RC dispatch attempt failed due to all CO busy event:0X3F3 counters:3 um:zero minimum:1000 name:PM_L2SA_ST_HIT_GRP63 : (Group 63 pm_L2SA_st2) L2 slice A store hits event:0X3F4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP63 : (Group 63 pm_L2SA_st2) Instructions completed event:0X3F5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP63 : (Group 63 pm_L2SA_st2) Run cycles #Group 64 pm_L2SB_ld, L2 slice B load events event:0X400 counters:0 um:zero minimum:1000 name:PM_L2SB_RCLD_DISP_GRP64 : (Group 64 pm_L2SB_ld) L2 Slice B RC load dispatch attempt event:0X401 counters:1 um:zero minimum:1000 name:PM_L2SB_RCLD_DISP_FAIL_RC_FULL_GRP64 : (Group 64 pm_L2SB_ld) L2 Slice B RC load dispatch attempt failed due to all RC full event:0X402 counters:2 um:zero minimum:1000 name:PM_L2SB_RCLD_DISP_FAIL_ADDR_GRP64 : (Group 64 pm_L2SB_ld) L2 Slice B RC load dispatch attempt failed due to address collision with RC/CO/SN/SQ event:0X403 counters:3 um:zero minimum:1000 name:PM_L2SB_RCLD_DISP_FAIL_OTHER_GRP64 : (Group 64 pm_L2SB_ld) L2 Slice B RC load dispatch attempt failed due to other reasons event:0X404 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP64 : (Group 64 pm_L2SB_ld) Instructions completed event:0X405 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP64 : (Group 64 pm_L2SB_ld) Run cycles #Group 65 pm_L2SB_st, L2 slice B store events event:0X410 counters:0 um:zero minimum:1000 name:PM_L2SB_RCST_DISP_GRP65 : (Group 65 pm_L2SB_st) L2 Slice B RC store dispatch attempt event:0X411 counters:1 um:zero minimum:1000 name:PM_L2SB_RCST_DISP_FAIL_RC_FULL_GRP65 : (Group 65 pm_L2SB_st) L2 Slice B RC store dispatch attempt failed due to all RC full event:0X412 counters:2 um:zero minimum:1000 name:PM_L2SB_RCST_DISP_FAIL_ADDR_GRP65 : (Group 65 pm_L2SB_st) L2 Slice B RC store dispatch attempt failed due to address collision with RC/CO/SN/SQ event:0X413 counters:3 um:zero minimum:1000 name:PM_L2SB_RCST_DISP_FAIL_OTHER_GRP65 : (Group 65 pm_L2SB_st) L2 Slice B RC store dispatch attempt failed due to other reasons event:0X414 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP65 : (Group 65 pm_L2SB_st) Instructions completed event:0X415 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP65 : (Group 65 pm_L2SB_st) Run cycles #Group 66 pm_L2SB_st2, L2 slice B store events event:0X420 counters:0 um:zero minimum:1000 name:PM_L2SB_RC_DISP_FAIL_CO_BUSY_GRP66 : (Group 66 pm_L2SB_st2) L2 Slice B RC dispatch attempt failed due to RC/CO pair chosen was miss and CO already busy event:0X421 counters:1 um:zero minimum:1000 name:PM_L2SB_ST_REQ_GRP66 : (Group 66 pm_L2SB_st2) L2 slice B store requests event:0X422 counters:2 um:zero minimum:1000 name:PM_L2SB_RC_DISP_FAIL_CO_BUSY_ALL_GRP66 : (Group 66 pm_L2SB_st2) L2 Slice B RC dispatch attempt failed due to all CO busy event:0X423 counters:3 um:zero minimum:1000 name:PM_L2SB_ST_HIT_GRP66 : (Group 66 pm_L2SB_st2) L2 slice B store hits event:0X424 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP66 : (Group 66 pm_L2SB_st2) Instructions completed event:0X425 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP66 : (Group 66 pm_L2SB_st2) Run cycles #Group 67 pm_L2SB_ld, L2 slice C load events event:0X430 counters:0 um:zero minimum:1000 name:PM_L2SC_RCLD_DISP_GRP67 : (Group 67 pm_L2SB_ld) L2 Slice C RC load dispatch attempt event:0X431 counters:1 um:zero minimum:1000 name:PM_L2SC_RCLD_DISP_FAIL_RC_FULL_GRP67 : (Group 67 pm_L2SB_ld) L2 Slice C RC load dispatch attempt failed due to all RC full event:0X432 counters:2 um:zero minimum:1000 name:PM_L2SC_RCLD_DISP_FAIL_ADDR_GRP67 : (Group 67 pm_L2SB_ld) L2 Slice C RC load dispatch attempt failed due to address collision with RC/CO/SN/SQ event:0X433 counters:3 um:zero minimum:1000 name:PM_L2SC_RCLD_DISP_FAIL_OTHER_GRP67 : (Group 67 pm_L2SB_ld) L2 Slice C RC load dispatch attempt failed due to other reasons event:0X434 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP67 : (Group 67 pm_L2SB_ld) Instructions completed event:0X435 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP67 : (Group 67 pm_L2SB_ld) Run cycles #Group 68 pm_L2SB_st, L2 slice C store events event:0X440 counters:0 um:zero minimum:1000 name:PM_L2SC_RCST_DISP_GRP68 : (Group 68 pm_L2SB_st) L2 Slice C RC store dispatch attempt event:0X441 counters:1 um:zero minimum:1000 name:PM_L2SC_RCST_DISP_FAIL_RC_FULL_GRP68 : (Group 68 pm_L2SB_st) L2 Slice C RC store dispatch attempt failed due to all RC full event:0X442 counters:2 um:zero minimum:1000 name:PM_L2SC_RCST_DISP_FAIL_ADDR_GRP68 : (Group 68 pm_L2SB_st) L2 Slice C RC store dispatch attempt failed due to address collision with RC/CO/SN/SQ event:0X443 counters:3 um:zero minimum:1000 name:PM_L2SC_RCST_DISP_FAIL_OTHER_GRP68 : (Group 68 pm_L2SB_st) L2 Slice C RC store dispatch attempt failed due to other reasons event:0X444 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP68 : (Group 68 pm_L2SB_st) Instructions completed event:0X445 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP68 : (Group 68 pm_L2SB_st) Run cycles #Group 69 pm_L2SB_st2, L2 slice C store events event:0X450 counters:0 um:zero minimum:1000 name:PM_L2SC_RC_DISP_FAIL_CO_BUSY_GRP69 : (Group 69 pm_L2SB_st2) L2 Slice C RC dispatch attempt failed due to RC/CO pair chosen was miss and CO already busy event:0X451 counters:1 um:zero minimum:1000 name:PM_L2SC_ST_REQ_GRP69 : (Group 69 pm_L2SB_st2) L2 slice C store requests event:0X452 counters:2 um:zero minimum:1000 name:PM_L2SC_RC_DISP_FAIL_CO_BUSY_ALL_GRP69 : (Group 69 pm_L2SB_st2) L2 Slice C RC dispatch attempt failed due to all CO busy event:0X453 counters:3 um:zero minimum:1000 name:PM_L2SC_ST_HIT_GRP69 : (Group 69 pm_L2SB_st2) L2 slice C store hits event:0X454 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP69 : (Group 69 pm_L2SB_st2) Instructions completed event:0X455 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP69 : (Group 69 pm_L2SB_st2) Run cycles #Group 70 pm_L3SA_trans, L3 slice A state transistions event:0X460 counters:0 um:zero minimum:1000 name:PM_L3SA_MOD_TAG_GRP70 : (Group 70 pm_L3SA_trans) L3 slice A transition from modified to TAG event:0X461 counters:1 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP70 : (Group 70 pm_L3SA_trans) IOPS instructions completed event:0X462 counters:2 um:zero minimum:1000 name:PM_L3SA_MOD_INV_GRP70 : (Group 70 pm_L3SA_trans) L3 slice A transition from modified to invalid event:0X463 counters:3 um:zero minimum:1000 name:PM_L3SA_SHR_INV_GRP70 : (Group 70 pm_L3SA_trans) L3 slice A transition from shared to invalid event:0X464 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP70 : (Group 70 pm_L3SA_trans) Instructions completed event:0X465 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP70 : (Group 70 pm_L3SA_trans) Run cycles #Group 71 pm_L3SB_trans, L3 slice B state transistions event:0X470 counters:0 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP71 : (Group 71 pm_L3SB_trans) IOPS instructions completed event:0X471 counters:1 um:zero minimum:1000 name:PM_L3SB_MOD_TAG_GRP71 : (Group 71 pm_L3SB_trans) L3 slice B transition from modified to TAG event:0X472 counters:2 um:zero minimum:1000 name:PM_L3SB_MOD_INV_GRP71 : (Group 71 pm_L3SB_trans) L3 slice B transition from modified to invalid event:0X473 counters:3 um:zero minimum:1000 name:PM_L3SB_SHR_INV_GRP71 : (Group 71 pm_L3SB_trans) L3 slice B transition from shared to invalid event:0X474 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP71 : (Group 71 pm_L3SB_trans) Instructions completed event:0X475 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP71 : (Group 71 pm_L3SB_trans) Run cycles #Group 72 pm_L3SC_trans, L3 slice C state transistions event:0X480 counters:0 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP72 : (Group 72 pm_L3SC_trans) IOPS instructions completed event:0X481 counters:1 um:zero minimum:1000 name:PM_L3SC_MOD_TAG_GRP72 : (Group 72 pm_L3SC_trans) L3 slice C transition from modified to TAG event:0X482 counters:2 um:zero minimum:1000 name:PM_L3SC_MOD_INV_GRP72 : (Group 72 pm_L3SC_trans) L3 slice C transition from modified to invalid event:0X483 counters:3 um:zero minimum:1000 name:PM_L3SC_SHR_INV_GRP72 : (Group 72 pm_L3SC_trans) L3 slice C transition from shared to invalid event:0X484 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP72 : (Group 72 pm_L3SC_trans) Instructions completed event:0X485 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP72 : (Group 72 pm_L3SC_trans) Run cycles #Group 73 pm_L2SA_trans, L2 slice A state transistions event:0X490 counters:0 um:zero minimum:1000 name:PM_L2SA_MOD_TAG_GRP73 : (Group 73 pm_L2SA_trans) L2 slice A transition from modified to tagged event:0X491 counters:1 um:zero minimum:1000 name:PM_L2SA_SHR_MOD_GRP73 : (Group 73 pm_L2SA_trans) L2 slice A transition from shared to modified event:0X492 counters:2 um:zero minimum:1000 name:PM_L2SA_MOD_INV_GRP73 : (Group 73 pm_L2SA_trans) L2 slice A transition from modified to invalid event:0X493 counters:3 um:zero minimum:1000 name:PM_L2SA_SHR_INV_GRP73 : (Group 73 pm_L2SA_trans) L2 slice A transition from shared to invalid event:0X494 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP73 : (Group 73 pm_L2SA_trans) Instructions completed event:0X495 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP73 : (Group 73 pm_L2SA_trans) Run cycles #Group 74 pm_L2SB_trans, L2 slice B state transistions event:0X4A0 counters:0 um:zero minimum:1000 name:PM_L2SB_MOD_TAG_GRP74 : (Group 74 pm_L2SB_trans) L2 slice B transition from modified to tagged event:0X4A1 counters:1 um:zero minimum:1000 name:PM_L2SB_SHR_MOD_GRP74 : (Group 74 pm_L2SB_trans) L2 slice B transition from shared to modified event:0X4A2 counters:2 um:zero minimum:1000 name:PM_L2SB_MOD_INV_GRP74 : (Group 74 pm_L2SB_trans) L2 slice B transition from modified to invalid event:0X4A3 counters:3 um:zero minimum:1000 name:PM_L2SB_SHR_INV_GRP74 : (Group 74 pm_L2SB_trans) L2 slice B transition from shared to invalid event:0X4A4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP74 : (Group 74 pm_L2SB_trans) Instructions completed event:0X4A5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP74 : (Group 74 pm_L2SB_trans) Run cycles #Group 75 pm_L2SC_trans, L2 slice C state transistions event:0X4B0 counters:0 um:zero minimum:1000 name:PM_L2SC_MOD_TAG_GRP75 : (Group 75 pm_L2SC_trans) L2 slice C transition from modified to tagged event:0X4B1 counters:1 um:zero minimum:1000 name:PM_L2SC_SHR_MOD_GRP75 : (Group 75 pm_L2SC_trans) L2 slice C transition from shared to modified event:0X4B2 counters:2 um:zero minimum:1000 name:PM_L2SC_MOD_INV_GRP75 : (Group 75 pm_L2SC_trans) L2 slice C transition from modified to invalid event:0X4B3 counters:3 um:zero minimum:1000 name:PM_L2SC_SHR_INV_GRP75 : (Group 75 pm_L2SC_trans) L2 slice C transition from shared to invalid event:0X4B4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP75 : (Group 75 pm_L2SC_trans) Instructions completed event:0X4B5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP75 : (Group 75 pm_L2SC_trans) Run cycles #Group 76 pm_L3SAB_retry, L3 slice A/B snoop retry and all CI/CO busy event:0X4C0 counters:0 um:zero minimum:1000 name:PM_L3SA_ALL_BUSY_GRP76 : (Group 76 pm_L3SAB_retry) L3 slice A active for every cycle all CI/CO machines busy event:0X4C1 counters:1 um:zero minimum:1000 name:PM_L3SB_ALL_BUSY_GRP76 : (Group 76 pm_L3SAB_retry) L3 slice B active for every cycle all CI/CO machines busy event:0X4C2 counters:2 um:zero minimum:1000 name:PM_L3SA_SNOOP_RETRY_GRP76 : (Group 76 pm_L3SAB_retry) L3 slice A snoop retries event:0X4C3 counters:3 um:zero minimum:1000 name:PM_L3SB_SNOOP_RETRY_GRP76 : (Group 76 pm_L3SAB_retry) L3 slice B snoop retries event:0X4C4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP76 : (Group 76 pm_L3SAB_retry) Instructions completed event:0X4C5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP76 : (Group 76 pm_L3SAB_retry) Run cycles #Group 77 pm_L3SAB_hit, L3 slice A/B hit and reference event:0X4D0 counters:0 um:zero minimum:1000 name:PM_L3SA_REF_GRP77 : (Group 77 pm_L3SAB_hit) L3 slice A references event:0X4D1 counters:1 um:zero minimum:1000 name:PM_L3SB_REF_GRP77 : (Group 77 pm_L3SAB_hit) L3 slice B references event:0X4D2 counters:2 um:zero minimum:1000 name:PM_L3SA_HIT_GRP77 : (Group 77 pm_L3SAB_hit) L3 slice A hits event:0X4D3 counters:3 um:zero minimum:1000 name:PM_L3SB_HIT_GRP77 : (Group 77 pm_L3SAB_hit) L3 slice B hits event:0X4D4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP77 : (Group 77 pm_L3SAB_hit) Instructions completed event:0X4D5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP77 : (Group 77 pm_L3SAB_hit) Run cycles #Group 78 pm_L3SC_retry_hit, L3 slice C hit & snoop retry event:0X4E0 counters:0 um:zero minimum:1000 name:PM_L3SC_ALL_BUSY_GRP78 : (Group 78 pm_L3SC_retry_hit) L3 slice C active for every cycle all CI/CO machines busy event:0X4E1 counters:1 um:zero minimum:1000 name:PM_L3SC_REF_GRP78 : (Group 78 pm_L3SC_retry_hit) L3 slice C references event:0X4E2 counters:2 um:zero minimum:1000 name:PM_L3SC_SNOOP_RETRY_GRP78 : (Group 78 pm_L3SC_retry_hit) L3 slice C snoop retries event:0X4E3 counters:3 um:zero minimum:1000 name:PM_L3SC_HIT_GRP78 : (Group 78 pm_L3SC_retry_hit) L3 Slice C hits event:0X4E4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP78 : (Group 78 pm_L3SC_retry_hit) Instructions completed event:0X4E5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP78 : (Group 78 pm_L3SC_retry_hit) Run cycles #Group 79 pm_fpu1, Floating Point events event:0X4F0 counters:0 um:zero minimum:1000 name:PM_FPU_FDIV_GRP79 : (Group 79 pm_fpu1) FPU executed FDIV instruction event:0X4F1 counters:1 um:zero minimum:1000 name:PM_FPU_FMA_GRP79 : (Group 79 pm_fpu1) FPU executed multiply-add instruction event:0X4F2 counters:2 um:zero minimum:1000 name:PM_FPU_FMOV_FEST_GRP79 : (Group 79 pm_fpu1) FPU executing FMOV or FEST instructions event:0X4F3 counters:3 um:zero minimum:1000 name:PM_FPU_FEST_GRP79 : (Group 79 pm_fpu1) FPU executed FEST instruction event:0X4F4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP79 : (Group 79 pm_fpu1) Instructions completed event:0X4F5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP79 : (Group 79 pm_fpu1) Run cycles #Group 80 pm_fpu2, Floating Point events event:0X500 counters:0 um:zero minimum:1000 name:PM_FPU_1FLOP_GRP80 : (Group 80 pm_fpu2) FPU executed one flop instruction event:0X501 counters:1 um:zero minimum:1000 name:PM_FPU_FSQRT_GRP80 : (Group 80 pm_fpu2) FPU executed FSQRT instruction event:0X502 counters:2 um:zero minimum:1000 name:PM_FPU_FRSP_FCONV_GRP80 : (Group 80 pm_fpu2) FPU executed FRSP or FCONV instructions event:0X503 counters:3 um:zero minimum:1000 name:PM_FPU_FIN_GRP80 : (Group 80 pm_fpu2) FPU produced a result event:0X504 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP80 : (Group 80 pm_fpu2) Instructions completed event:0X505 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP80 : (Group 80 pm_fpu2) Run cycles #Group 81 pm_fpu3, Floating point events event:0X510 counters:0 um:zero minimum:1000 name:PM_FPU_DENORM_GRP81 : (Group 81 pm_fpu3) FPU received denormalized data event:0X511 counters:1 um:zero minimum:1000 name:PM_FPU_STALL3_GRP81 : (Group 81 pm_fpu3) FPU stalled in pipe3 event:0X512 counters:2 um:zero minimum:1000 name:PM_FPU0_FIN_GRP81 : (Group 81 pm_fpu3) FPU0 produced a result event:0X513 counters:3 um:zero minimum:1000 name:PM_FPU1_FIN_GRP81 : (Group 81 pm_fpu3) FPU1 produced a result event:0X514 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP81 : (Group 81 pm_fpu3) Instructions completed event:0X515 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP81 : (Group 81 pm_fpu3) Run cycles #Group 82 pm_fpu4, Floating point events event:0X520 counters:0 um:zero minimum:1000 name:PM_FPU_SINGLE_GRP82 : (Group 82 pm_fpu4) FPU executed single precision instruction event:0X521 counters:1 um:zero minimum:1000 name:PM_FPU_STF_GRP82 : (Group 82 pm_fpu4) FPU executed store instruction event:0X522 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP82 : (Group 82 pm_fpu4) IOPS instructions completed event:0X523 counters:3 um:zero minimum:1000 name:PM_LSU_LDF_GRP82 : (Group 82 pm_fpu4) LSU executed Floating Point load instruction event:0X524 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP82 : (Group 82 pm_fpu4) Instructions completed event:0X525 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP82 : (Group 82 pm_fpu4) Run cycles #Group 83 pm_fpu5, Floating point events by unit event:0X530 counters:0 um:zero minimum:1000 name:PM_FPU0_FSQRT_GRP83 : (Group 83 pm_fpu5) FPU0 executed FSQRT instruction event:0X531 counters:1 um:zero minimum:1000 name:PM_FPU1_FSQRT_GRP83 : (Group 83 pm_fpu5) FPU1 executed FSQRT instruction event:0X532 counters:2 um:zero minimum:1000 name:PM_FPU0_FEST_GRP83 : (Group 83 pm_fpu5) FPU0 executed FEST instruction event:0X533 counters:3 um:zero minimum:1000 name:PM_FPU1_FEST_GRP83 : (Group 83 pm_fpu5) FPU1 executed FEST instruction event:0X534 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP83 : (Group 83 pm_fpu5) Instructions completed event:0X535 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP83 : (Group 83 pm_fpu5) Run cycles #Group 84 pm_fpu6, Floating point events by unit event:0X540 counters:0 um:zero minimum:1000 name:PM_FPU0_DENORM_GRP84 : (Group 84 pm_fpu6) FPU0 received denormalized data event:0X541 counters:1 um:zero minimum:1000 name:PM_FPU1_DENORM_GRP84 : (Group 84 pm_fpu6) FPU1 received denormalized data event:0X542 counters:2 um:zero minimum:1000 name:PM_FPU0_FMOV_FEST_GRP84 : (Group 84 pm_fpu6) FPU0 executed FMOV or FEST instructions event:0X543 counters:3 um:zero minimum:1000 name:PM_FPU1_FMOV_FEST_GRP84 : (Group 84 pm_fpu6) FPU1 executing FMOV or FEST instructions event:0X544 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP84 : (Group 84 pm_fpu6) Instructions completed event:0X545 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP84 : (Group 84 pm_fpu6) Run cycles #Group 85 pm_fpu7, Floating point events by unit event:0X550 counters:0 um:zero minimum:1000 name:PM_FPU0_FDIV_GRP85 : (Group 85 pm_fpu7) FPU0 executed FDIV instruction event:0X551 counters:1 um:zero minimum:1000 name:PM_FPU1_FDIV_GRP85 : (Group 85 pm_fpu7) FPU1 executed FDIV instruction event:0X552 counters:2 um:zero minimum:1000 name:PM_FPU0_FRSP_FCONV_GRP85 : (Group 85 pm_fpu7) FPU0 executed FRSP or FCONV instructions event:0X553 counters:3 um:zero minimum:1000 name:PM_FPU1_FRSP_FCONV_GRP85 : (Group 85 pm_fpu7) FPU1 executed FRSP or FCONV instructions event:0X554 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP85 : (Group 85 pm_fpu7) Instructions completed event:0X555 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP85 : (Group 85 pm_fpu7) Run cycles #Group 86 pm_fpu8, Floating point events by unit event:0X560 counters:0 um:zero minimum:1000 name:PM_FPU0_STALL3_GRP86 : (Group 86 pm_fpu8) FPU0 stalled in pipe3 event:0X561 counters:1 um:zero minimum:1000 name:PM_FPU1_STALL3_GRP86 : (Group 86 pm_fpu8) FPU1 stalled in pipe3 event:0X562 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP86 : (Group 86 pm_fpu8) IOPS instructions completed event:0X563 counters:3 um:zero minimum:1000 name:PM_FPU0_FPSCR_GRP86 : (Group 86 pm_fpu8) FPU0 executed FPSCR instruction event:0X564 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP86 : (Group 86 pm_fpu8) Instructions completed event:0X565 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP86 : (Group 86 pm_fpu8) Run cycles #Group 87 pm_fpu9, Floating point events by unit event:0X570 counters:0 um:zero minimum:1000 name:PM_FPU0_SINGLE_GRP87 : (Group 87 pm_fpu9) FPU0 executed single precision instruction event:0X571 counters:1 um:zero minimum:1000 name:PM_FPU1_SINGLE_GRP87 : (Group 87 pm_fpu9) FPU1 executed single precision instruction event:0X572 counters:2 um:zero minimum:1000 name:PM_LSU0_LDF_GRP87 : (Group 87 pm_fpu9) LSU0 executed Floating Point load instruction event:0X573 counters:3 um:zero minimum:1000 name:PM_LSU1_LDF_GRP87 : (Group 87 pm_fpu9) LSU1 executed Floating Point load instruction event:0X574 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP87 : (Group 87 pm_fpu9) Instructions completed event:0X575 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP87 : (Group 87 pm_fpu9) Run cycles #Group 88 pm_fpu10, Floating point events by unit event:0X580 counters:0 um:zero minimum:1000 name:PM_FPU0_FMA_GRP88 : (Group 88 pm_fpu10) FPU0 executed multiply-add instruction event:0X581 counters:1 um:zero minimum:1000 name:PM_FPU1_FMA_GRP88 : (Group 88 pm_fpu10) FPU1 executed multiply-add instruction event:0X582 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP88 : (Group 88 pm_fpu10) IOPS instructions completed event:0X583 counters:3 um:zero minimum:1000 name:PM_FPU1_FRSP_FCONV_GRP88 : (Group 88 pm_fpu10) FPU1 executed FRSP or FCONV instructions event:0X584 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP88 : (Group 88 pm_fpu10) Instructions completed event:0X585 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP88 : (Group 88 pm_fpu10) Run cycles #Group 89 pm_fpu11, Floating point events by unit event:0X590 counters:0 um:zero minimum:1000 name:PM_FPU0_1FLOP_GRP89 : (Group 89 pm_fpu11) FPU0 executed add, mult, sub, cmp or sel instruction event:0X591 counters:1 um:zero minimum:1000 name:PM_FPU1_1FLOP_GRP89 : (Group 89 pm_fpu11) FPU1 executed add, mult, sub, cmp or sel instruction event:0X592 counters:2 um:zero minimum:1000 name:PM_FPU0_FIN_GRP89 : (Group 89 pm_fpu11) FPU0 produced a result event:0X593 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP89 : (Group 89 pm_fpu11) IOPS instructions completed event:0X594 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP89 : (Group 89 pm_fpu11) Instructions completed event:0X595 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP89 : (Group 89 pm_fpu11) Run cycles #Group 90 pm_fpu12, Floating point events by unit event:0X5A0 counters:0 um:zero minimum:1000 name:PM_FPU0_STF_GRP90 : (Group 90 pm_fpu12) FPU0 executed store instruction event:0X5A1 counters:1 um:zero minimum:1000 name:PM_FPU1_STF_GRP90 : (Group 90 pm_fpu12) FPU1 executed store instruction event:0X5A2 counters:2 um:zero minimum:1000 name:PM_LSU0_LDF_GRP90 : (Group 90 pm_fpu12) LSU0 executed Floating Point load instruction event:0X5A3 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP90 : (Group 90 pm_fpu12) IOPS instructions completed event:0X5A4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP90 : (Group 90 pm_fpu12) Instructions completed event:0X5A5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP90 : (Group 90 pm_fpu12) Run cycles #Group 91 pm_fxu1, Fixed Point events event:0X5B0 counters:0 um:zero minimum:1000 name:PM_FXU_IDLE_GRP91 : (Group 91 pm_fxu1) FXU idle event:0X5B1 counters:1 um:zero minimum:1000 name:PM_FXU_BUSY_GRP91 : (Group 91 pm_fxu1) FXU busy event:0X5B2 counters:2 um:zero minimum:1000 name:PM_FXU0_BUSY_FXU1_IDLE_GRP91 : (Group 91 pm_fxu1) FXU0 busy FXU1 idle event:0X5B3 counters:3 um:zero minimum:1000 name:PM_FXU1_BUSY_FXU0_IDLE_GRP91 : (Group 91 pm_fxu1) FXU1 busy FXU0 idle event:0X5B4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP91 : (Group 91 pm_fxu1) Instructions completed event:0X5B5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP91 : (Group 91 pm_fxu1) Run cycles #Group 92 pm_fxu2, Fixed Point events event:0X5C0 counters:0 um:zero minimum:1000 name:PM_MRK_GRP_DISP_GRP92 : (Group 92 pm_fxu2) Marked group dispatched event:0X5C1 counters:1 um:zero minimum:1000 name:PM_MRK_GRP_BR_REDIR_GRP92 : (Group 92 pm_fxu2) Group experienced marked branch redirect event:0X5C2 counters:2 um:zero minimum:1000 name:PM_FXU_FIN_GRP92 : (Group 92 pm_fxu2) FXU produced a result event:0X5C3 counters:3 um:zero minimum:1000 name:PM_FXLS_FULL_CYC_GRP92 : (Group 92 pm_fxu2) Cycles FXLS queue is full event:0X5C4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP92 : (Group 92 pm_fxu2) Instructions completed event:0X5C5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP92 : (Group 92 pm_fxu2) Run cycles #Group 93 pm_fxu3, Fixed Point events event:0X5D0 counters:0 um:zero minimum:1000 name:PM_3INST_CLB_CYC_GRP93 : (Group 93 pm_fxu3) Cycles 3 instructions in CLB event:0X5D1 counters:1 um:zero minimum:1000 name:PM_4INST_CLB_CYC_GRP93 : (Group 93 pm_fxu3) Cycles 4 instructions in CLB event:0X5D2 counters:2 um:zero minimum:1000 name:PM_FXU0_FIN_GRP93 : (Group 93 pm_fxu3) FXU0 produced a result event:0X5D3 counters:3 um:zero minimum:1000 name:PM_FXU1_FIN_GRP93 : (Group 93 pm_fxu3) FXU1 produced a result event:0X5D4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP93 : (Group 93 pm_fxu3) Instructions completed event:0X5D5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP93 : (Group 93 pm_fxu3) Run cycles #Group 94 pm_smt_priorities1, Thread priority events event:0X5E0 counters:0 um:zero minimum:1000 name:PM_THRD_PRIO_4_CYC_GRP94 : (Group 94 pm_smt_priorities1) Cycles thread running at priority level 4 event:0X5E1 counters:1 um:zero minimum:1000 name:PM_THRD_PRIO_7_CYC_GRP94 : (Group 94 pm_smt_priorities1) Cycles thread running at priority level 7 event:0X5E2 counters:2 um:zero minimum:1000 name:PM_THRD_PRIO_DIFF_0_CYC_GRP94 : (Group 94 pm_smt_priorities1) Cycles no thread priority difference event:0X5E3 counters:3 um:zero minimum:1000 name:PM_THRD_PRIO_DIFF_1or2_CYC_GRP94 : (Group 94 pm_smt_priorities1) Cycles thread priority difference is 1 or 2 event:0X5E4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP94 : (Group 94 pm_smt_priorities1) Instructions completed event:0X5E5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP94 : (Group 94 pm_smt_priorities1) Run cycles #Group 95 pm_smt_priorities2, Thread priority events event:0X5F0 counters:0 um:zero minimum:1000 name:PM_THRD_PRIO_3_CYC_GRP95 : (Group 95 pm_smt_priorities2) Cycles thread running at priority level 3 event:0X5F1 counters:1 um:zero minimum:1000 name:PM_THRD_PRIO_6_CYC_GRP95 : (Group 95 pm_smt_priorities2) Cycles thread running at priority level 6 event:0X5F2 counters:2 um:zero minimum:1000 name:PM_THRD_PRIO_DIFF_3or4_CYC_GRP95 : (Group 95 pm_smt_priorities2) Cycles thread priority difference is 3 or 4 event:0X5F3 counters:3 um:zero minimum:1000 name:PM_THRD_PRIO_DIFF_5or6_CYC_GRP95 : (Group 95 pm_smt_priorities2) Cycles thread priority difference is 5 or 6 event:0X5F4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP95 : (Group 95 pm_smt_priorities2) Instructions completed event:0X5F5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP95 : (Group 95 pm_smt_priorities2) Run cycles #Group 96 pm_smt_priorities3, Thread priority events event:0X600 counters:0 um:zero minimum:1000 name:PM_THRD_PRIO_2_CYC_GRP96 : (Group 96 pm_smt_priorities3) Cycles thread running at priority level 2 event:0X601 counters:1 um:zero minimum:1000 name:PM_THRD_PRIO_5_CYC_GRP96 : (Group 96 pm_smt_priorities3) Cycles thread running at priority level 5 event:0X602 counters:2 um:zero minimum:1000 name:PM_THRD_PRIO_DIFF_minus1or2_CYC_GRP96 : (Group 96 pm_smt_priorities3) Cycles thread priority difference is -1 or -2 event:0X603 counters:3 um:zero minimum:1000 name:PM_THRD_PRIO_DIFF_minus3or4_CYC_GRP96 : (Group 96 pm_smt_priorities3) Cycles thread priority difference is -3 or -4 event:0X604 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP96 : (Group 96 pm_smt_priorities3) Instructions completed event:0X605 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP96 : (Group 96 pm_smt_priorities3) Run cycles #Group 97 pm_smt_priorities4, Thread priority events event:0X610 counters:0 um:zero minimum:1000 name:PM_THRD_PRIO_1_CYC_GRP97 : (Group 97 pm_smt_priorities4) Cycles thread running at priority level 1 event:0X611 counters:1 um:zero minimum:1000 name:PM_HV_CYC_GRP97 : (Group 97 pm_smt_priorities4) Hypervisor Cycles event:0X612 counters:2 um:zero minimum:1000 name:PM_THRD_PRIO_DIFF_minus5or6_CYC_GRP97 : (Group 97 pm_smt_priorities4) Cycles thread priority difference is -5 or -6 event:0X613 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP97 : (Group 97 pm_smt_priorities4) IOPS instructions completed event:0X614 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP97 : (Group 97 pm_smt_priorities4) Instructions completed event:0X615 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP97 : (Group 97 pm_smt_priorities4) Run cycles #Group 98 pm_smt_both, Thread common events event:0X620 counters:0 um:zero minimum:1000 name:PM_THRD_ONE_RUN_CYC_GRP98 : (Group 98 pm_smt_both) One of the threads in run cycles event:0X621 counters:1 um:zero minimum:1000 name:PM_THRD_GRP_CMPL_BOTH_CYC_GRP98 : (Group 98 pm_smt_both) Cycles group completed by both threads event:0X622 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP98 : (Group 98 pm_smt_both) IOPS instructions completed event:0X623 counters:3 um:zero minimum:1000 name:PM_THRD_L2MISS_BOTH_CYC_GRP98 : (Group 98 pm_smt_both) Cycles both threads in L2 misses event:0X624 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP98 : (Group 98 pm_smt_both) Instructions completed event:0X625 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP98 : (Group 98 pm_smt_both) Run cycles #Group 99 pm_smt_selection, Thread selection event:0X630 counters:0 um:zero minimum:1000 name:PM_SNOOP_TLBIE_GRP99 : (Group 99 pm_smt_selection) Snoop TLBIE event:0X631 counters:1 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP99 : (Group 99 pm_smt_selection) IOPS instructions completed event:0X632 counters:2 um:zero minimum:1000 name:PM_THRD_SEL_T0_GRP99 : (Group 99 pm_smt_selection) Decode selected thread 0 event:0X633 counters:3 um:zero minimum:1000 name:PM_THRD_SEL_T1_GRP99 : (Group 99 pm_smt_selection) Decode selected thread 1 event:0X634 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP99 : (Group 99 pm_smt_selection) Instructions completed event:0X635 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP99 : (Group 99 pm_smt_selection) Run cycles #Group 100 pm_smt_selectover1, Thread selection overide event:0X640 counters:0 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP100 : (Group 100 pm_smt_selectover1) IOPS instructions completed event:0X641 counters:1 um:zero minimum:1000 name:PM_0INST_CLB_CYC_GRP100 : (Group 100 pm_smt_selectover1) Cycles no instructions in CLB event:0X642 counters:2 um:zero minimum:1000 name:PM_THRD_SEL_OVER_CLB_EMPTY_GRP100 : (Group 100 pm_smt_selectover1) Thread selection overides caused by CLB empty event:0X643 counters:3 um:zero minimum:1000 name:PM_THRD_SEL_OVER_GCT_IMBAL_GRP100 : (Group 100 pm_smt_selectover1) Thread selection overides caused by GCT imbalance event:0X644 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP100 : (Group 100 pm_smt_selectover1) Instructions completed event:0X645 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP100 : (Group 100 pm_smt_selectover1) Run cycles #Group 101 pm_smt_selectover2, Thread selection overide event:0X650 counters:0 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP101 : (Group 101 pm_smt_selectover2) IOPS instructions completed event:0X651 counters:1 um:zero minimum:10000 name:PM_CYC_GRP101 : (Group 101 pm_smt_selectover2) Processor cycles event:0X652 counters:2 um:zero minimum:1000 name:PM_THRD_SEL_OVER_ISU_HOLD_GRP101 : (Group 101 pm_smt_selectover2) Thread selection overides caused by ISU holds event:0X653 counters:3 um:zero minimum:1000 name:PM_THRD_SEL_OVER_L2MISS_GRP101 : (Group 101 pm_smt_selectover2) Thread selection overides caused by L2 misses event:0X654 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP101 : (Group 101 pm_smt_selectover2) Instructions completed event:0X655 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP101 : (Group 101 pm_smt_selectover2) Run cycles #Group 102 pm_fabric1, Fabric events event:0X660 counters:0 um:zero minimum:1000 name:PM_FAB_CMD_ISSUED_GRP102 : (Group 102 pm_fabric1) Fabric command issued event:0X661 counters:1 um:zero minimum:1000 name:PM_FAB_DCLAIM_ISSUED_GRP102 : (Group 102 pm_fabric1) dclaim issued event:0X662 counters:2 um:zero minimum:1000 name:PM_FAB_CMD_RETRIED_GRP102 : (Group 102 pm_fabric1) Fabric command retried event:0X663 counters:3 um:zero minimum:1000 name:PM_FAB_DCLAIM_RETRIED_GRP102 : (Group 102 pm_fabric1) dclaim retried event:0X664 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP102 : (Group 102 pm_fabric1) Instructions completed event:0X665 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP102 : (Group 102 pm_fabric1) Run cycles #Group 103 pm_fabric2, Fabric data movement event:0X670 counters:0 um:zero minimum:1000 name:PM_FAB_P1toM1_SIDECAR_EMPTY_GRP103 : (Group 103 pm_fabric2) P1 to M1 sidecar empty event:0X671 counters:1 um:zero minimum:1000 name:PM_FAB_HOLDtoVN_EMPTY_GRP103 : (Group 103 pm_fabric2) Hold buffer to VN empty event:0X672 counters:2 um:zero minimum:1000 name:PM_FAB_P1toVNorNN_SIDECAR_EMPTY_GRP103 : (Group 103 pm_fabric2) P1 to VN/NN sidecar empty event:0X673 counters:3 um:zero minimum:1000 name:PM_FAB_VBYPASS_EMPTY_GRP103 : (Group 103 pm_fabric2) Vertical bypass buffer empty event:0X674 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP103 : (Group 103 pm_fabric2) Instructions completed event:0X675 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP103 : (Group 103 pm_fabric2) Run cycles #Group 104 pm_fabric3, Fabric data movement event:0X680 counters:0 um:zero minimum:1000 name:PM_FAB_PNtoNN_DIRECT_GRP104 : (Group 104 pm_fabric3) PN to NN beat went straight to its destination event:0X681 counters:1 um:zero minimum:1000 name:PM_FAB_PNtoVN_DIRECT_GRP104 : (Group 104 pm_fabric3) PN to VN beat went straight to its destination event:0X682 counters:2 um:zero minimum:1000 name:PM_FAB_PNtoNN_SIDECAR_GRP104 : (Group 104 pm_fabric3) PN to NN beat went to sidecar first event:0X683 counters:3 um:zero minimum:1000 name:PM_FAB_PNtoVN_SIDECAR_GRP104 : (Group 104 pm_fabric3) PN to VN beat went to sidecar first event:0X684 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP104 : (Group 104 pm_fabric3) Instructions completed event:0X685 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP104 : (Group 104 pm_fabric3) Run cycles #Group 105 pm_fabric4, Fabric data movement event:0X690 counters:0 um:zero minimum:1000 name:PM_FAB_M1toP1_SIDECAR_EMPTY_GRP105 : (Group 105 pm_fabric4) M1 to P1 sidecar empty event:0X691 counters:1 um:zero minimum:1000 name:PM_FAB_HOLDtoNN_EMPTY_GRP105 : (Group 105 pm_fabric4) Hold buffer to NN empty event:0X692 counters:2 um:zero minimum:1000 name:PM_EE_OFF_GRP105 : (Group 105 pm_fabric4) Cycles MSR(EE) bit off event:0X693 counters:3 um:zero minimum:1000 name:PM_FAB_M1toVNorNN_SIDECAR_EMPTY_GRP105 : (Group 105 pm_fabric4) M1 to VN/NN sidecar empty event:0X694 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP105 : (Group 105 pm_fabric4) Instructions completed event:0X695 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP105 : (Group 105 pm_fabric4) Run cycles #Group 106 pm_snoop1, Snoop retry event:0X6A0 counters:0 um:zero minimum:1000 name:PM_SNOOP_RD_RETRY_QFULL_GRP106 : (Group 106 pm_snoop1) Snoop read retry due to read queue full event:0X6A1 counters:1 um:zero minimum:1000 name:PM_SNOOP_DCLAIM_RETRY_QFULL_GRP106 : (Group 106 pm_snoop1) Snoop dclaim/flush retry due to write/dclaim queues full event:0X6A2 counters:2 um:zero minimum:1000 name:PM_SNOOP_WR_RETRY_QFULL_GRP106 : (Group 106 pm_snoop1) Snoop read retry due to read queue full event:0X6A3 counters:3 um:zero minimum:1000 name:PM_SNOOP_PARTIAL_RTRY_QFULL_GRP106 : (Group 106 pm_snoop1) Snoop partial write retry due to partial-write queues full event:0X6A4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP106 : (Group 106 pm_snoop1) Instructions completed event:0X6A5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP106 : (Group 106 pm_snoop1) Run cycles #Group 107 pm_snoop2, Snoop read retry event:0X6B0 counters:0 um:zero minimum:1000 name:PM_SNOOP_RD_RETRY_RQ_GRP107 : (Group 107 pm_snoop2) Snoop read retry due to collision with active read queue event:0X6B1 counters:1 um:zero minimum:1000 name:PM_SNOOP_RETRY_1AHEAD_GRP107 : (Group 107 pm_snoop2) Snoop retry due to one ahead collision event:0X6B2 counters:2 um:zero minimum:1000 name:PM_SNOOP_RD_RETRY_WQ_GRP107 : (Group 107 pm_snoop2) Snoop read retry due to collision with active write queue event:0X6B3 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP107 : (Group 107 pm_snoop2) IOPS instructions completed event:0X6B4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP107 : (Group 107 pm_snoop2) Instructions completed event:0X6B5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP107 : (Group 107 pm_snoop2) Run cycles #Group 108 pm_snoop3, Snoop write retry event:0X6C0 counters:0 um:zero minimum:1000 name:PM_SNOOP_WR_RETRY_RQ_GRP108 : (Group 108 pm_snoop3) Snoop write/dclaim retry due to collision with active read queue event:0X6C1 counters:1 um:zero minimum:1000 name:PM_MEM_HI_PRIO_WR_CMPL_GRP108 : (Group 108 pm_snoop3) High priority write completed event:0X6C2 counters:2 um:zero minimum:1000 name:PM_SNOOP_WR_RETRY_WQ_GRP108 : (Group 108 pm_snoop3) Snoop write/dclaim retry due to collision with active write queue event:0X6C3 counters:3 um:zero minimum:1000 name:PM_MEM_LO_PRIO_WR_CMPL_GRP108 : (Group 108 pm_snoop3) Low priority write completed event:0X6C4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP108 : (Group 108 pm_snoop3) Instructions completed event:0X6C5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP108 : (Group 108 pm_snoop3) Run cycles #Group 109 pm_snoop4, Snoop partial write retry event:0X6D0 counters:0 um:zero minimum:1000 name:PM_SNOOP_PW_RETRY_RQ_GRP109 : (Group 109 pm_snoop4) Snoop partial-write retry due to collision with active read queue event:0X6D1 counters:1 um:zero minimum:1000 name:PM_MEM_HI_PRIO_PW_CMPL_GRP109 : (Group 109 pm_snoop4) High priority partial-write completed event:0X6D2 counters:2 um:zero minimum:1000 name:PM_SNOOP_PW_RETRY_WQ_PWQ_GRP109 : (Group 109 pm_snoop4) Snoop partial-write retry due to collision with active write or partial-write queue event:0X6D3 counters:3 um:zero minimum:1000 name:PM_MEM_LO_PRIO_PW_CMPL_GRP109 : (Group 109 pm_snoop4) Low priority partial-write completed event:0X6D4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP109 : (Group 109 pm_snoop4) Instructions completed event:0X6D5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP109 : (Group 109 pm_snoop4) Run cycles #Group 110 pm_mem_rq, Memory read queue dispatch event:0X6E0 counters:0 um:zero minimum:1000 name:PM_MEM_RQ_DISP_GRP110 : (Group 110 pm_mem_rq) Memory read queue dispatched event:0X6E1 counters:1 um:zero minimum:1000 name:PM_MEM_RQ_DISP_BUSY8to15_GRP110 : (Group 110 pm_mem_rq) Memory read queue dispatched with 8-15 queues busy event:0X6E2 counters:2 um:zero minimum:1000 name:PM_MEM_RQ_DISP_BUSY1to7_GRP110 : (Group 110 pm_mem_rq) Memory read queue dispatched with 1-7 queues busy event:0X6E3 counters:3 um:zero minimum:1000 name:PM_EE_OFF_EXT_INT_GRP110 : (Group 110 pm_mem_rq) Cycles MSR(EE) bit off and external interrupt pending event:0X6E4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP110 : (Group 110 pm_mem_rq) Instructions completed event:0X6E5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP110 : (Group 110 pm_mem_rq) Run cycles #Group 111 pm_mem_read, Memory read complete and cancel event:0X6F0 counters:0 um:zero minimum:1000 name:PM_MEM_READ_CMPL_GRP111 : (Group 111 pm_mem_read) Memory read completed or canceled event:0X6F1 counters:1 um:zero minimum:1000 name:PM_MEM_FAST_PATH_RD_CMPL_GRP111 : (Group 111 pm_mem_read) Fast path memory read completed event:0X6F2 counters:2 um:zero minimum:1000 name:PM_MEM_SPEC_RD_CANCEL_GRP111 : (Group 111 pm_mem_read) Speculative memory read canceled event:0X6F3 counters:3 um:zero minimum:1000 name:PM_EXT_INT_GRP111 : (Group 111 pm_mem_read) External interrupts event:0X6F4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP111 : (Group 111 pm_mem_read) Instructions completed event:0X6F5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP111 : (Group 111 pm_mem_read) Run cycles #Group 112 pm_mem_wq, Memory write queue dispatch event:0X700 counters:0 um:zero minimum:1000 name:PM_MEM_WQ_DISP_WRITE_GRP112 : (Group 112 pm_mem_wq) Memory write queue dispatched due to write event:0X701 counters:1 um:zero minimum:1000 name:PM_MEM_WQ_DISP_BUSY1to7_GRP112 : (Group 112 pm_mem_wq) Memory write queue dispatched with 1-7 queues busy event:0X702 counters:2 um:zero minimum:1000 name:PM_MEM_WQ_DISP_DCLAIM_GRP112 : (Group 112 pm_mem_wq) Memory write queue dispatched due to dclaim/flush event:0X703 counters:3 um:zero minimum:1000 name:PM_MEM_WQ_DISP_BUSY8to15_GRP112 : (Group 112 pm_mem_wq) Memory write queue dispatched with 8-15 queues busy event:0X704 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP112 : (Group 112 pm_mem_wq) Instructions completed event:0X705 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP112 : (Group 112 pm_mem_wq) Run cycles #Group 113 pm_mem_pwq, Memory partial write queue event:0X710 counters:0 um:zero minimum:1000 name:PM_MEM_PWQ_DISP_GRP113 : (Group 113 pm_mem_pwq) Memory partial-write queue dispatched event:0X711 counters:1 um:zero minimum:1000 name:PM_MEM_PWQ_DISP_BUSY2or3_GRP113 : (Group 113 pm_mem_pwq) Memory partial-write queue dispatched with 2-3 queues busy event:0X712 counters:2 um:zero minimum:1000 name:PM_MEM_PW_GATH_GRP113 : (Group 113 pm_mem_pwq) Memory partial-write gathered event:0X713 counters:3 um:zero minimum:1000 name:PM_MEM_PW_CMPL_GRP113 : (Group 113 pm_mem_pwq) Memory partial-write completed event:0X714 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP113 : (Group 113 pm_mem_pwq) Instructions completed event:0X715 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP113 : (Group 113 pm_mem_pwq) Run cycles #Group 114 pm_threshold, Thresholding event:0X720 counters:0 um:zero minimum:1000 name:PM_MRK_GRP_DISP_GRP114 : (Group 114 pm_threshold) Marked group dispatched event:0X721 counters:1 um:zero minimum:1000 name:PM_MRK_IMR_RELOAD_GRP114 : (Group 114 pm_threshold) Marked IMR reloaded event:0X722 counters:2 um:zero minimum:1000 name:PM_THRESH_TIMEO_GRP114 : (Group 114 pm_threshold) Threshold timeout event:0X723 counters:3 um:zero minimum:1000 name:PM_MRK_LSU_FIN_GRP114 : (Group 114 pm_threshold) Marked instruction LSU processing finished event:0X724 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP114 : (Group 114 pm_threshold) Instructions completed event:0X725 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP114 : (Group 114 pm_threshold) Run cycles #Group 115 pm_mrk_grp1, Marked group events event:0X730 counters:0 um:zero minimum:1000 name:PM_MRK_GRP_DISP_GRP115 : (Group 115 pm_mrk_grp1) Marked group dispatched event:0X731 counters:1 um:zero minimum:1000 name:PM_MRK_ST_MISS_L1_GRP115 : (Group 115 pm_mrk_grp1) Marked L1 D cache store misses event:0X732 counters:2 um:zero minimum:1000 name:PM_MRK_INST_FIN_GRP115 : (Group 115 pm_mrk_grp1) Marked instruction finished event:0X733 counters:3 um:zero minimum:1000 name:PM_MRK_GRP_CMPL_GRP115 : (Group 115 pm_mrk_grp1) Marked group completed event:0X734 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP115 : (Group 115 pm_mrk_grp1) Instructions completed event:0X735 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP115 : (Group 115 pm_mrk_grp1) Run cycles #Group 116 pm_mrk_grp2, Marked group events event:0X740 counters:0 um:zero minimum:1000 name:PM_MRK_GRP_ISSUED_GRP116 : (Group 116 pm_mrk_grp2) Marked group issued event:0X741 counters:1 um:zero minimum:1000 name:PM_MRK_BRU_FIN_GRP116 : (Group 116 pm_mrk_grp2) Marked instruction BRU processing finished event:0X742 counters:2 um:zero minimum:1000 name:PM_MRK_L1_RELOAD_VALID_GRP116 : (Group 116 pm_mrk_grp2) Marked L1 reload data source valid event:0X743 counters:3 um:zero minimum:1000 name:PM_MRK_GRP_IC_MISS_GRP116 : (Group 116 pm_mrk_grp2) Group experienced marked I cache miss event:0X744 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP116 : (Group 116 pm_mrk_grp2) Instructions completed event:0X745 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP116 : (Group 116 pm_mrk_grp2) Run cycles #Group 117 pm_mrk_dsource1, Marked data from event:0X750 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2_GRP117 : (Group 117 pm_mrk_dsource1) Marked data loaded from L2 event:0X751 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2_CYC_GRP117 : (Group 117 pm_mrk_dsource1) Marked load latency from L2 event:0X752 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L25_MOD_GRP117 : (Group 117 pm_mrk_dsource1) Marked data loaded from L2.5 modified event:0X753 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L25_MOD_CYC_GRP117 : (Group 117 pm_mrk_dsource1) Marked load latency from L2.5 modified event:0X754 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP117 : (Group 117 pm_mrk_dsource1) Instructions completed event:0X755 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP117 : (Group 117 pm_mrk_dsource1) Run cycles #Group 118 pm_mrk_dsource2, Marked data from event:0X760 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L25_SHR_GRP118 : (Group 118 pm_mrk_dsource2) Marked data loaded from L2.5 shared event:0X761 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L25_SHR_CYC_GRP118 : (Group 118 pm_mrk_dsource2) Marked load latency from L2.5 shared event:0X762 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP118 : (Group 118 pm_mrk_dsource2) IOPS instructions completed event:0X763 counters:3 um:zero minimum:1000 name:PM_FPU_FIN_GRP118 : (Group 118 pm_mrk_dsource2) FPU produced a result event:0X764 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP118 : (Group 118 pm_mrk_dsource2) Instructions completed event:0X765 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP118 : (Group 118 pm_mrk_dsource2) Run cycles #Group 119 pm_mrk_dsource3, Marked data from event:0X770 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L3_GRP119 : (Group 119 pm_mrk_dsource3) Marked data loaded from L3 event:0X771 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L3_CYC_GRP119 : (Group 119 pm_mrk_dsource3) Marked load latency from L3 event:0X772 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L35_MOD_GRP119 : (Group 119 pm_mrk_dsource3) Marked data loaded from L3.5 modified event:0X773 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L35_MOD_CYC_GRP119 : (Group 119 pm_mrk_dsource3) Marked load latency from L3.5 modified event:0X774 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP119 : (Group 119 pm_mrk_dsource3) Instructions completed event:0X775 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP119 : (Group 119 pm_mrk_dsource3) Run cycles #Group 120 pm_mrk_dsource4, Marked data from event:0X780 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_RMEM_GRP120 : (Group 120 pm_mrk_dsource4) Marked data loaded from remote memory event:0X781 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L275_SHR_CYC_GRP120 : (Group 120 pm_mrk_dsource4) Marked load latency from L2.75 shared event:0X782 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L275_SHR_GRP120 : (Group 120 pm_mrk_dsource4) Marked data loaded from L2.75 shared event:0X783 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_RMEM_CYC_GRP120 : (Group 120 pm_mrk_dsource4) Marked load latency from remote memory event:0X784 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP120 : (Group 120 pm_mrk_dsource4) Instructions completed event:0X785 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP120 : (Group 120 pm_mrk_dsource4) Run cycles #Group 121 pm_mrk_dsource5, Marked data from event:0X790 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L35_SHR_GRP121 : (Group 121 pm_mrk_dsource5) Marked data loaded from L3.5 shared event:0X791 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L35_SHR_CYC_GRP121 : (Group 121 pm_mrk_dsource5) Marked load latency from L3.5 shared event:0X792 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_LMEM_GRP121 : (Group 121 pm_mrk_dsource5) Marked data loaded from local memory event:0X793 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_LMEM_CYC_GRP121 : (Group 121 pm_mrk_dsource5) Marked load latency from local memory event:0X794 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP121 : (Group 121 pm_mrk_dsource5) Instructions completed event:0X795 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP121 : (Group 121 pm_mrk_dsource5) Run cycles #Group 122 pm_mrk_dsource6, Marked data from event:0X7A0 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L275_MOD_GRP122 : (Group 122 pm_mrk_dsource6) Marked data loaded from L2.75 modified event:0X7A1 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L275_SHR_CYC_GRP122 : (Group 122 pm_mrk_dsource6) Marked load latency from L2.75 shared event:0X7A2 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP122 : (Group 122 pm_mrk_dsource6) IOPS instructions completed event:0X7A3 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L275_MOD_CYC_GRP122 : (Group 122 pm_mrk_dsource6) Marked load latency from L2.75 modified event:0X7A4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP122 : (Group 122 pm_mrk_dsource6) Instructions completed event:0X7A5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP122 : (Group 122 pm_mrk_dsource6) Run cycles #Group 123 pm_mrk_dsource7, Marked data from event:0X7B0 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L375_MOD_GRP123 : (Group 123 pm_mrk_dsource7) Marked data loaded from L3.75 modified event:0X7B1 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L375_SHR_CYC_GRP123 : (Group 123 pm_mrk_dsource7) Marked load latency from L3.75 shared event:0X7B2 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L375_SHR_GRP123 : (Group 123 pm_mrk_dsource7) Marked data loaded from L3.75 shared event:0X7B3 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L375_MOD_CYC_GRP123 : (Group 123 pm_mrk_dsource7) Marked load latency from L3.75 modified event:0X7B4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP123 : (Group 123 pm_mrk_dsource7) Instructions completed event:0X7B5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP123 : (Group 123 pm_mrk_dsource7) Run cycles #Group 124 pm_mrk_lbmiss, Marked TLB and SLB misses event:0X7C0 counters:0 um:zero minimum:1000 name:PM_MRK_DTLB_MISS_4K_GRP124 : (Group 124 pm_mrk_lbmiss) Marked Data TLB misses for 4K page event:0X7C1 counters:1 um:zero minimum:1000 name:PM_MRK_DTLB_MISS_16M_GRP124 : (Group 124 pm_mrk_lbmiss) Marked Data TLB misses for 16M page event:0X7C2 counters:2 um:zero minimum:1000 name:PM_MRK_DTLB_MISS_GRP124 : (Group 124 pm_mrk_lbmiss) Marked Data TLB misses event:0X7C3 counters:3 um:zero minimum:1000 name:PM_MRK_DSLB_MISS_GRP124 : (Group 124 pm_mrk_lbmiss) Marked Data SLB misses event:0X7C4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP124 : (Group 124 pm_mrk_lbmiss) Instructions completed event:0X7C5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP124 : (Group 124 pm_mrk_lbmiss) Run cycles #Group 125 pm_mrk_lbref, Marked TLB and SLB references event:0X7D0 counters:0 um:zero minimum:1000 name:PM_MRK_DTLB_REF_4K_GRP125 : (Group 125 pm_mrk_lbref) Marked Data TLB reference for 4K page event:0X7D1 counters:1 um:zero minimum:1000 name:PM_MRK_DTLB_REF_16M_GRP125 : (Group 125 pm_mrk_lbref) Marked Data TLB reference for 16M page event:0X7D2 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP125 : (Group 125 pm_mrk_lbref) IOPS instructions completed event:0X7D3 counters:3 um:zero minimum:1000 name:PM_MRK_DSLB_MISS_GRP125 : (Group 125 pm_mrk_lbref) Marked Data SLB misses event:0X7D4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP125 : (Group 125 pm_mrk_lbref) Instructions completed event:0X7D5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP125 : (Group 125 pm_mrk_lbref) Run cycles #Group 126 pm_mrk_lsmiss, Marked load and store miss event:0X7E0 counters:0 um:zero minimum:1000 name:PM_MRK_LD_MISS_L1_GRP126 : (Group 126 pm_mrk_lsmiss) Marked L1 D cache load misses event:0X7E1 counters:1 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP126 : (Group 126 pm_mrk_lsmiss) IOPS instructions completed event:0X7E2 counters:2 um:zero minimum:1000 name:PM_MRK_ST_CMPL_INT_GRP126 : (Group 126 pm_mrk_lsmiss) Marked store completed with intervention event:0X7E3 counters:3 um:zero minimum:1000 name:PM_MRK_CRU_FIN_GRP126 : (Group 126 pm_mrk_lsmiss) Marked instruction CRU processing finished event:0X7E4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP126 : (Group 126 pm_mrk_lsmiss) Instructions completed event:0X7E5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP126 : (Group 126 pm_mrk_lsmiss) Run cycles #Group 127 pm_mrk_ulsflush, Mark unaligned load and store flushes event:0X7F0 counters:0 um:zero minimum:1000 name:PM_MRK_ST_CMPL_GRP127 : (Group 127 pm_mrk_ulsflush) Marked store instruction completed event:0X7F1 counters:1 um:zero minimum:1000 name:PM_MRK_ST_MISS_L1_GRP127 : (Group 127 pm_mrk_ulsflush) Marked L1 D cache store misses event:0X7F2 counters:2 um:zero minimum:1000 name:PM_MRK_LSU_FLUSH_UST_GRP127 : (Group 127 pm_mrk_ulsflush) Marked unaligned store flushes event:0X7F3 counters:3 um:zero minimum:1000 name:PM_MRK_LSU_FLUSH_ULD_GRP127 : (Group 127 pm_mrk_ulsflush) Marked unaligned load flushes event:0X7F4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP127 : (Group 127 pm_mrk_ulsflush) Instructions completed event:0X7F5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP127 : (Group 127 pm_mrk_ulsflush) Run cycles #Group 128 pm_mrk_misc, Misc marked instructions event:0X800 counters:0 um:zero minimum:1000 name:PM_MRK_STCX_FAIL_GRP128 : (Group 128 pm_mrk_misc) Marked STCX failed event:0X801 counters:1 um:zero minimum:1000 name:PM_MRK_ST_GPS_GRP128 : (Group 128 pm_mrk_misc) Marked store sent to GPS event:0X802 counters:2 um:zero minimum:1000 name:PM_MRK_FPU_FIN_GRP128 : (Group 128 pm_mrk_misc) Marked instruction FPU processing finished event:0X803 counters:3 um:zero minimum:1000 name:PM_MRK_GRP_TIMEO_GRP128 : (Group 128 pm_mrk_misc) Marked group completion timeout event:0X804 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP128 : (Group 128 pm_mrk_misc) Instructions completed event:0X805 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP128 : (Group 128 pm_mrk_misc) Run cycles #Group 129 pm_lsref_L1, Load/Store operations and L1 activity event:0X810 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L2_GRP129 : (Group 129 pm_lsref_L1) Data loaded from L2 event:0X811 counters:1 um:zero minimum:1000 name:PM_INST_FROM_L1_GRP129 : (Group 129 pm_lsref_L1) Instruction fetched from L1 event:0X812 counters:2 um:zero minimum:1000 name:PM_ST_REF_L1_GRP129 : (Group 129 pm_lsref_L1) L1 D cache store references event:0X813 counters:3 um:zero minimum:1000 name:PM_LD_REF_L1_GRP129 : (Group 129 pm_lsref_L1) L1 D cache load references event:0X814 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP129 : (Group 129 pm_lsref_L1) Instructions completed event:0X815 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP129 : (Group 129 pm_lsref_L1) Run cycles #Group 130 pm_lsref_L2L3, Load/Store operations and L2,L3 activity event:0X820 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L3_GRP130 : (Group 130 pm_lsref_L2L3) Data loaded from L3 event:0X821 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_LMEM_GRP130 : (Group 130 pm_lsref_L2L3) Data loaded from local memory event:0X822 counters:2 um:zero minimum:1000 name:PM_ST_REF_L1_GRP130 : (Group 130 pm_lsref_L2L3) L1 D cache store references event:0X823 counters:3 um:zero minimum:1000 name:PM_LD_REF_L1_GRP130 : (Group 130 pm_lsref_L2L3) L1 D cache load references event:0X824 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP130 : (Group 130 pm_lsref_L2L3) Instructions completed event:0X825 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP130 : (Group 130 pm_lsref_L2L3) Run cycles #Group 131 pm_lsref_tlbmiss, Load/Store operations and TLB misses event:0X830 counters:0 um:zero minimum:1000 name:PM_ITLB_MISS_GRP131 : (Group 131 pm_lsref_tlbmiss) Instruction TLB misses event:0X831 counters:1 um:zero minimum:1000 name:PM_DTLB_MISS_GRP131 : (Group 131 pm_lsref_tlbmiss) Data TLB misses event:0X832 counters:2 um:zero minimum:1000 name:PM_ST_REF_L1_GRP131 : (Group 131 pm_lsref_tlbmiss) L1 D cache store references event:0X833 counters:3 um:zero minimum:1000 name:PM_LD_REF_L1_GRP131 : (Group 131 pm_lsref_tlbmiss) L1 D cache load references event:0X834 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP131 : (Group 131 pm_lsref_tlbmiss) Instructions completed event:0X835 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP131 : (Group 131 pm_lsref_tlbmiss) Run cycles #Group 132 pm_Dmiss, Data cache misses event:0X840 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L3_GRP132 : (Group 132 pm_Dmiss) Data loaded from L3 event:0X841 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_LMEM_GRP132 : (Group 132 pm_Dmiss) Data loaded from local memory event:0X842 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP132 : (Group 132 pm_Dmiss) L1 D cache load misses event:0X843 counters:3 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP132 : (Group 132 pm_Dmiss) L1 D cache store misses event:0X844 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP132 : (Group 132 pm_Dmiss) Instructions completed event:0X845 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP132 : (Group 132 pm_Dmiss) Run cycles #Group 133 pm_prefetchX, Prefetch events event:0X850 counters:0 um:zero minimum:10000 name:PM_CYC_GRP133 : (Group 133 pm_prefetchX) Processor cycles event:0X851 counters:1 um:zero minimum:1000 name:PM_IC_PREF_REQ_GRP133 : (Group 133 pm_prefetchX) Instruction prefetch requests event:0X852 counters:2 um:zero minimum:1000 name:PM_L1_PREF_GRP133 : (Group 133 pm_prefetchX) L1 cache data prefetches event:0X853 counters:3 um:zero minimum:1000 name:PM_L2_PREF_GRP133 : (Group 133 pm_prefetchX) L2 cache prefetches event:0X854 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP133 : (Group 133 pm_prefetchX) Instructions completed event:0X855 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP133 : (Group 133 pm_prefetchX) Run cycles #Group 134 pm_branchX, Branch operations event:0X860 counters:0 um:zero minimum:1000 name:PM_BR_UNCOND_GRP134 : (Group 134 pm_branchX) Unconditional branch event:0X861 counters:1 um:zero minimum:1000 name:PM_BR_PRED_TA_GRP134 : (Group 134 pm_branchX) A conditional branch was predicted, target prediction event:0X862 counters:2 um:zero minimum:1000 name:PM_BR_PRED_CR_GRP134 : (Group 134 pm_branchX) A conditional branch was predicted, CR prediction event:0X863 counters:3 um:zero minimum:1000 name:PM_BR_ISSUED_GRP134 : (Group 134 pm_branchX) Branches issued event:0X864 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP134 : (Group 134 pm_branchX) Instructions completed event:0X865 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP134 : (Group 134 pm_branchX) Run cycles #Group 135 pm_fpuX1, Floating point events by unit event:0X870 counters:0 um:zero minimum:1000 name:PM_FPU0_STALL3_GRP135 : (Group 135 pm_fpuX1) FPU0 stalled in pipe3 event:0X871 counters:1 um:zero minimum:1000 name:PM_FPU1_STALL3_GRP135 : (Group 135 pm_fpuX1) FPU1 stalled in pipe3 event:0X872 counters:2 um:zero minimum:1000 name:PM_FPU0_FIN_GRP135 : (Group 135 pm_fpuX1) FPU0 produced a result event:0X873 counters:3 um:zero minimum:1000 name:PM_FPU0_FPSCR_GRP135 : (Group 135 pm_fpuX1) FPU0 executed FPSCR instruction event:0X874 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP135 : (Group 135 pm_fpuX1) Instructions completed event:0X875 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP135 : (Group 135 pm_fpuX1) Run cycles #Group 136 pm_fpuX2, Floating point events by unit event:0X880 counters:0 um:zero minimum:1000 name:PM_FPU0_FMA_GRP136 : (Group 136 pm_fpuX2) FPU0 executed multiply-add instruction event:0X881 counters:1 um:zero minimum:1000 name:PM_FPU1_FMA_GRP136 : (Group 136 pm_fpuX2) FPU1 executed multiply-add instruction event:0X882 counters:2 um:zero minimum:1000 name:PM_FPU0_FRSP_FCONV_GRP136 : (Group 136 pm_fpuX2) FPU0 executed FRSP or FCONV instructions event:0X883 counters:3 um:zero minimum:1000 name:PM_FPU1_FRSP_FCONV_GRP136 : (Group 136 pm_fpuX2) FPU1 executed FRSP or FCONV instructions event:0X884 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP136 : (Group 136 pm_fpuX2) Instructions completed event:0X885 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP136 : (Group 136 pm_fpuX2) Run cycles #Group 137 pm_fpuX3, Floating point events by unit event:0X890 counters:0 um:zero minimum:1000 name:PM_FPU0_1FLOP_GRP137 : (Group 137 pm_fpuX3) FPU0 executed add, mult, sub, cmp or sel instruction event:0X891 counters:1 um:zero minimum:1000 name:PM_FPU1_1FLOP_GRP137 : (Group 137 pm_fpuX3) FPU1 executed add, mult, sub, cmp or sel instruction event:0X892 counters:2 um:zero minimum:1000 name:PM_FPU0_FIN_GRP137 : (Group 137 pm_fpuX3) FPU0 produced a result event:0X893 counters:3 um:zero minimum:1000 name:PM_FPU1_FIN_GRP137 : (Group 137 pm_fpuX3) FPU1 produced a result event:0X894 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP137 : (Group 137 pm_fpuX3) Instructions completed event:0X895 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP137 : (Group 137 pm_fpuX3) Run cycles #Group 138 pm_fpuX4, Floating point and L1 events event:0X8A0 counters:0 um:zero minimum:1000 name:PM_FPU_1FLOP_GRP138 : (Group 138 pm_fpuX4) FPU executed one flop instruction event:0X8A1 counters:1 um:zero minimum:1000 name:PM_FPU_FMA_GRP138 : (Group 138 pm_fpuX4) FPU executed multiply-add instruction event:0X8A2 counters:2 um:zero minimum:1000 name:PM_ST_REF_L1_GRP138 : (Group 138 pm_fpuX4) L1 D cache store references event:0X8A3 counters:3 um:zero minimum:1000 name:PM_LD_REF_L1_GRP138 : (Group 138 pm_fpuX4) L1 D cache load references event:0X8A4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP138 : (Group 138 pm_fpuX4) Instructions completed event:0X8A5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP138 : (Group 138 pm_fpuX4) Run cycles #Group 139 pm_fpuX5, Floating point events event:0X8B0 counters:0 um:zero minimum:1000 name:PM_FPU_SINGLE_GRP139 : (Group 139 pm_fpuX5) FPU executed single precision instruction event:0X8B1 counters:1 um:zero minimum:1000 name:PM_FPU_STF_GRP139 : (Group 139 pm_fpuX5) FPU executed store instruction event:0X8B2 counters:2 um:zero minimum:1000 name:PM_FPU0_FIN_GRP139 : (Group 139 pm_fpuX5) FPU0 produced a result event:0X8B3 counters:3 um:zero minimum:1000 name:PM_FPU1_FIN_GRP139 : (Group 139 pm_fpuX5) FPU1 produced a result event:0X8B4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP139 : (Group 139 pm_fpuX5) Instructions completed event:0X8B5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP139 : (Group 139 pm_fpuX5) Run cycles #Group 140 pm_fpuX6, Floating point events event:0X8C0 counters:0 um:zero minimum:1000 name:PM_FPU_FDIV_GRP140 : (Group 140 pm_fpuX6) FPU executed FDIV instruction event:0X8C1 counters:1 um:zero minimum:1000 name:PM_FPU_FSQRT_GRP140 : (Group 140 pm_fpuX6) FPU executed FSQRT instruction event:0X8C2 counters:2 um:zero minimum:1000 name:PM_FPU_FRSP_FCONV_GRP140 : (Group 140 pm_fpuX6) FPU executed FRSP or FCONV instructions event:0X8C3 counters:3 um:zero minimum:1000 name:PM_FPU_FIN_GRP140 : (Group 140 pm_fpuX6) FPU produced a result event:0X8C4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP140 : (Group 140 pm_fpuX6) Instructions completed event:0X8C5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP140 : (Group 140 pm_fpuX6) Run cycles #Group 141 pm_hpmcount1, HPM group for set 1 event:0X8D0 counters:0 um:zero minimum:1000 name:PM_FPU_1FLOP_GRP141 : (Group 141 pm_hpmcount1) FPU executed one flop instruction event:0X8D1 counters:1 um:zero minimum:10000 name:PM_CYC_GRP141 : (Group 141 pm_hpmcount1) Processor cycles event:0X8D2 counters:2 um:zero minimum:1000 name:PM_MRK_FPU_FIN_GRP141 : (Group 141 pm_hpmcount1) Marked instruction FPU processing finished event:0X8D3 counters:3 um:zero minimum:1000 name:PM_FPU_FIN_GRP141 : (Group 141 pm_hpmcount1) FPU produced a result event:0X8D4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP141 : (Group 141 pm_hpmcount1) Instructions completed event:0X8D5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP141 : (Group 141 pm_hpmcount1) Run cycles #Group 142 pm_hpmcount2, HPM group for set 2 event:0X8E0 counters:0 um:zero minimum:10000 name:PM_CYC_GRP142 : (Group 142 pm_hpmcount2) Processor cycles event:0X8E1 counters:1 um:zero minimum:1000 name:PM_FPU_STF_GRP142 : (Group 142 pm_hpmcount2) FPU executed store instruction event:0X8E2 counters:2 um:zero minimum:1000 name:PM_INST_DISP_GRP142 : (Group 142 pm_hpmcount2) Instructions dispatched event:0X8E3 counters:3 um:zero minimum:1000 name:PM_LSU_LDF_GRP142 : (Group 142 pm_hpmcount2) LSU executed Floating Point load instruction event:0X8E4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP142 : (Group 142 pm_hpmcount2) Instructions completed event:0X8E5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP142 : (Group 142 pm_hpmcount2) Run cycles #Group 143 pm_hpmcount3, HPM group for set 3 event:0X8F0 counters:0 um:zero minimum:10000 name:PM_CYC_GRP143 : (Group 143 pm_hpmcount3) Processor cycles event:0X8F1 counters:1 um:zero minimum:1000 name:PM_INST_DISP_ATTEMPT_GRP143 : (Group 143 pm_hpmcount3) Instructions dispatch attempted event:0X8F2 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP143 : (Group 143 pm_hpmcount3) L1 D cache load misses event:0X8F3 counters:3 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP143 : (Group 143 pm_hpmcount3) L1 D cache store misses event:0X8F4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP143 : (Group 143 pm_hpmcount3) Instructions completed event:0X8F5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP143 : (Group 143 pm_hpmcount3) Run cycles #Group 144 pm_hpmcount4, HPM group for set 7 event:0X900 counters:0 um:zero minimum:1000 name:PM_TLB_MISS_GRP144 : (Group 144 pm_hpmcount4) TLB misses event:0X901 counters:1 um:zero minimum:10000 name:PM_CYC_GRP144 : (Group 144 pm_hpmcount4) Processor cycles event:0X902 counters:2 um:zero minimum:1000 name:PM_ST_REF_L1_GRP144 : (Group 144 pm_hpmcount4) L1 D cache store references event:0X903 counters:3 um:zero minimum:1000 name:PM_LD_REF_L1_GRP144 : (Group 144 pm_hpmcount4) L1 D cache load references event:0X904 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP144 : (Group 144 pm_hpmcount4) Instructions completed event:0X905 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP144 : (Group 144 pm_hpmcount4) Run cycles #Group 145 pm_hpmcount5, HPM group for set 9 event:0X910 counters:0 um:zero minimum:10000 name:PM_CYC_GRP145 : (Group 145 pm_hpmcount5) Processor cycles event:0X911 counters:1 um:zero minimum:1000 name:PM_MRK_FXU_FIN_GRP145 : (Group 145 pm_hpmcount5) Marked instruction FXU processing finished event:0X912 counters:2 um:zero minimum:1000 name:PM_FXU_FIN_GRP145 : (Group 145 pm_hpmcount5) FXU produced a result event:0X913 counters:3 um:zero minimum:1000 name:PM_FXU0_FIN_GRP145 : (Group 145 pm_hpmcount5) FXU0 produced a result event:0X914 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP145 : (Group 145 pm_hpmcount5) Instructions completed event:0X915 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP145 : (Group 145 pm_hpmcount5) Run cycles #Group 146 pm_eprof1, Group for use with eprof event:0X920 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP146 : (Group 146 pm_eprof1) Instructions completed event:0X921 counters:1 um:zero minimum:10000 name:PM_CYC_GRP146 : (Group 146 pm_eprof1) Processor cycles event:0X922 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP146 : (Group 146 pm_eprof1) L1 D cache load misses event:0X923 counters:3 um:zero minimum:1000 name:PM_DC_INV_L2_GRP146 : (Group 146 pm_eprof1) L1 D cache entries invalidated from L2 event:0X924 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP146 : (Group 146 pm_eprof1) Instructions completed event:0X925 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP146 : (Group 146 pm_eprof1) Run cycles #Group 147 pm_eprof2, Group for use with eprof event:0X930 counters:0 um:zero minimum:1000 name:PM_MRK_LD_MISS_L1_GRP147 : (Group 147 pm_eprof2) Marked L1 D cache load misses event:0X931 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP147 : (Group 147 pm_eprof2) Instructions completed event:0X932 counters:2 um:zero minimum:1000 name:PM_ST_REF_L1_GRP147 : (Group 147 pm_eprof2) L1 D cache store references event:0X933 counters:3 um:zero minimum:1000 name:PM_LD_REF_L1_GRP147 : (Group 147 pm_eprof2) L1 D cache load references event:0X934 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP147 : (Group 147 pm_eprof2) Instructions completed event:0X935 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP147 : (Group 147 pm_eprof2) Run cycles #Group 148 pm_eprof3, Group for use with eprof event:0X940 counters:0 um:zero minimum:1000 name:PM_MRK_ST_MISS_L1_GRP148 : (Group 148 pm_eprof3) Marked L1 D cache store misses event:0X941 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP148 : (Group 148 pm_eprof3) Instructions completed event:0X942 counters:2 um:zero minimum:1000 name:PM_INST_DISP_GRP148 : (Group 148 pm_eprof3) Instructions dispatched event:0X943 counters:3 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP148 : (Group 148 pm_eprof3) L1 D cache store misses event:0X944 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP148 : (Group 148 pm_eprof3) Instructions completed event:0X945 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP148 : (Group 148 pm_eprof3) Run cycles oprofile-0.9.9/events/ppc64/power5/unit_masks0000664000076400007640000000013412175510133016060 00000000000000# ppc64 POWER5 possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/ppc64/power5/event_mappings0000664000076400007640000021171412175510133016732 00000000000000#Mapping of event groups to MMCR values #Group Default event:0X001 mmcr0:0X00000000 mmcr1:0X000000000A02121E mmcra:0X00000000 #Group 1 pm_utilization, CPI and utilization data event:0X010 mmcr0:0X00000000 mmcr1:0X000000000A02121E mmcra:0X00000000 event:0X011 mmcr0:0X00000000 mmcr1:0X000000000A02121E mmcra:0X00000000 event:0X012 mmcr0:0X00000000 mmcr1:0X000000000A02121E mmcra:0X00000000 event:0X013 mmcr0:0X00000000 mmcr1:0X000000000A02121E mmcra:0X00000000 event:0X014 mmcr0:0X00000000 mmcr1:0X000000000A02121E mmcra:0X00000000 event:0X015 mmcr0:0X00000000 mmcr1:0X000000000A02121E mmcra:0X00000000 #Group 2 pm_completion, Completion and cycle counts event:0X020 mmcr0:0X00000000 mmcr1:0X000000002608261E mmcra:0X00000000 event:0X021 mmcr0:0X00000000 mmcr1:0X000000002608261E mmcra:0X00000000 event:0X022 mmcr0:0X00000000 mmcr1:0X000000002608261E mmcra:0X00000000 event:0X023 mmcr0:0X00000000 mmcr1:0X000000002608261E mmcra:0X00000000 event:0X024 mmcr0:0X00000000 mmcr1:0X000000002608261E mmcra:0X00000000 event:0X025 mmcr0:0X00000000 mmcr1:0X000000002608261E mmcra:0X00000000 #Group 3 pm_group_dispatch, Group dispatch events event:0X030 mmcr0:0X00000000 mmcr1:0X4000000EC6C8C212 mmcra:0X00000000 event:0X031 mmcr0:0X00000000 mmcr1:0X4000000EC6C8C212 mmcra:0X00000000 event:0X032 mmcr0:0X00000000 mmcr1:0X4000000EC6C8C212 mmcra:0X00000000 event:0X033 mmcr0:0X00000000 mmcr1:0X4000000EC6C8C212 mmcra:0X00000000 event:0X034 mmcr0:0X00000000 mmcr1:0X4000000EC6C8C212 mmcra:0X00000000 event:0X035 mmcr0:0X00000000 mmcr1:0X4000000EC6C8C212 mmcra:0X00000000 #Group 4 pm_clb1, CLB fullness event:0X040 mmcr0:0X00000000 mmcr1:0X015B000180848C4C mmcra:0X00000001 event:0X041 mmcr0:0X00000000 mmcr1:0X015B000180848C4C mmcra:0X00000001 event:0X042 mmcr0:0X00000000 mmcr1:0X015B000180848C4C mmcra:0X00000001 event:0X043 mmcr0:0X00000000 mmcr1:0X015B000180848C4C mmcra:0X00000001 event:0X044 mmcr0:0X00000000 mmcr1:0X015B000180848C4C mmcra:0X00000001 event:0X045 mmcr0:0X00000000 mmcr1:0X015B000180848C4C mmcra:0X00000001 #Group 5 pm_clb2, CLB fullness event:0X050 mmcr0:0X00000000 mmcr1:0X014300028A8CCC02 mmcra:0X00000001 event:0X051 mmcr0:0X00000000 mmcr1:0X014300028A8CCC02 mmcra:0X00000001 event:0X052 mmcr0:0X00000000 mmcr1:0X014300028A8CCC02 mmcra:0X00000001 event:0X053 mmcr0:0X00000000 mmcr1:0X014300028A8CCC02 mmcra:0X00000001 event:0X054 mmcr0:0X00000000 mmcr1:0X014300028A8CCC02 mmcra:0X00000001 event:0X055 mmcr0:0X00000000 mmcr1:0X014300028A8CCC02 mmcra:0X00000001 #Group 6 pm_gct_empty, GCT empty reasons event:0X060 mmcr0:0X00000000 mmcr1:0X4000000008380838 mmcra:0X00000000 event:0X061 mmcr0:0X00000000 mmcr1:0X4000000008380838 mmcra:0X00000000 event:0X062 mmcr0:0X00000000 mmcr1:0X4000000008380838 mmcra:0X00000000 event:0X063 mmcr0:0X00000000 mmcr1:0X4000000008380838 mmcra:0X00000000 event:0X064 mmcr0:0X00000000 mmcr1:0X4000000008380838 mmcra:0X00000000 event:0X065 mmcr0:0X00000000 mmcr1:0X4000000008380838 mmcra:0X00000000 #Group 7 pm_gct_usage, GCT Usage event:0X070 mmcr0:0X00000000 mmcr1:0X000000003E3E3E3E mmcra:0X00000000 event:0X071 mmcr0:0X00000000 mmcr1:0X000000003E3E3E3E mmcra:0X00000000 event:0X072 mmcr0:0X00000000 mmcr1:0X000000003E3E3E3E mmcra:0X00000000 event:0X073 mmcr0:0X00000000 mmcr1:0X000000003E3E3E3E mmcra:0X00000000 event:0X074 mmcr0:0X00000000 mmcr1:0X000000003E3E3E3E mmcra:0X00000000 event:0X075 mmcr0:0X00000000 mmcr1:0X000000003E3E3E3E mmcra:0X00000000 #Group 8 pm_lsu1, LSU LRQ and LMQ events event:0X080 mmcr0:0X00000000 mmcr1:0X000F000FCCC4CCCA mmcra:0X00000000 event:0X081 mmcr0:0X00000000 mmcr1:0X000F000FCCC4CCCA mmcra:0X00000000 event:0X082 mmcr0:0X00000000 mmcr1:0X000F000FCCC4CCCA mmcra:0X00000000 event:0X083 mmcr0:0X00000000 mmcr1:0X000F000FCCC4CCCA mmcra:0X00000000 event:0X084 mmcr0:0X00000000 mmcr1:0X000F000FCCC4CCCA mmcra:0X00000000 event:0X085 mmcr0:0X00000000 mmcr1:0X000F000FCCC4CCCA mmcra:0X00000000 #Group 9 pm_lsu2, LSU SRQ events event:0X090 mmcr0:0X00000000 mmcr1:0X400E000ECAC2CA86 mmcra:0X00000000 event:0X091 mmcr0:0X00000000 mmcr1:0X400E000ECAC2CA86 mmcra:0X00000000 event:0X092 mmcr0:0X00000000 mmcr1:0X400E000ECAC2CA86 mmcra:0X00000000 event:0X093 mmcr0:0X00000000 mmcr1:0X400E000ECAC2CA86 mmcra:0X00000000 event:0X094 mmcr0:0X00000000 mmcr1:0X400E000ECAC2CA86 mmcra:0X00000000 event:0X095 mmcr0:0X00000000 mmcr1:0X400E000ECAC2CA86 mmcra:0X00000000 #Group 10 pm_lsu3, LSU SRQ and LMQ events event:0X0A0 mmcr0:0X00000000 mmcr1:0X010F000A102ACA2A mmcra:0X00000000 event:0X0A1 mmcr0:0X00000000 mmcr1:0X010F000A102ACA2A mmcra:0X00000000 event:0X0A2 mmcr0:0X00000000 mmcr1:0X010F000A102ACA2A mmcra:0X00000000 event:0X0A3 mmcr0:0X00000000 mmcr1:0X010F000A102ACA2A mmcra:0X00000000 event:0X0A4 mmcr0:0X00000000 mmcr1:0X010F000A102ACA2A mmcra:0X00000000 event:0X0A5 mmcr0:0X00000000 mmcr1:0X010F000A102ACA2A mmcra:0X00000000 #Group 11 pm_prefetch1, Prefetch stream allocation event:0X0B0 mmcr0:0X00000000 mmcr1:0X8432000D36C884CE mmcra:0X00000000 event:0X0B1 mmcr0:0X00000000 mmcr1:0X8432000D36C884CE mmcra:0X00000000 event:0X0B2 mmcr0:0X00000000 mmcr1:0X8432000D36C884CE mmcra:0X00000000 event:0X0B3 mmcr0:0X00000000 mmcr1:0X8432000D36C884CE mmcra:0X00000000 event:0X0B4 mmcr0:0X00000000 mmcr1:0X8432000D36C884CE mmcra:0X00000000 event:0X0B5 mmcr0:0X00000000 mmcr1:0X8432000D36C884CE mmcra:0X00000000 #Group 12 pm_prefetch2, Prefetch events event:0X0C0 mmcr0:0X00000000 mmcr1:0X8103000602CACE8E mmcra:0X00000001 event:0X0C1 mmcr0:0X00000000 mmcr1:0X8103000602CACE8E mmcra:0X00000001 event:0X0C2 mmcr0:0X00000000 mmcr1:0X8103000602CACE8E mmcra:0X00000001 event:0X0C3 mmcr0:0X00000000 mmcr1:0X8103000602CACE8E mmcra:0X00000001 event:0X0C4 mmcr0:0X00000000 mmcr1:0X8103000602CACE8E mmcra:0X00000001 event:0X0C5 mmcr0:0X00000000 mmcr1:0X8103000602CACE8E mmcra:0X00000001 #Group 13 pm_prefetch3, L2 prefetch and misc events event:0X0D0 mmcr0:0X00000000 mmcr1:0X047C000820828602 mmcra:0X00000001 event:0X0D1 mmcr0:0X00000000 mmcr1:0X047C000820828602 mmcra:0X00000001 event:0X0D2 mmcr0:0X00000000 mmcr1:0X047C000820828602 mmcra:0X00000001 event:0X0D3 mmcr0:0X00000000 mmcr1:0X047C000820828602 mmcra:0X00000001 event:0X0D4 mmcr0:0X00000000 mmcr1:0X047C000820828602 mmcra:0X00000001 event:0X0D5 mmcr0:0X00000000 mmcr1:0X047C000820828602 mmcra:0X00000001 #Group 14 pm_prefetch4, Misc prefetch and reject events event:0X0E0 mmcr0:0X00000000 mmcr1:0X063E000EC0C8CC86 mmcra:0X00000000 event:0X0E1 mmcr0:0X00000000 mmcr1:0X063E000EC0C8CC86 mmcra:0X00000000 event:0X0E2 mmcr0:0X00000000 mmcr1:0X063E000EC0C8CC86 mmcra:0X00000000 event:0X0E3 mmcr0:0X00000000 mmcr1:0X063E000EC0C8CC86 mmcra:0X00000000 event:0X0E4 mmcr0:0X00000000 mmcr1:0X063E000EC0C8CC86 mmcra:0X00000000 event:0X0E5 mmcr0:0X00000000 mmcr1:0X063E000EC0C8CC86 mmcra:0X00000000 #Group 15 pm_lsu_reject1, LSU reject events event:0X0F0 mmcr0:0X00000000 mmcr1:0XC22C000E2010C610 mmcra:0X00000001 event:0X0F1 mmcr0:0X00000000 mmcr1:0XC22C000E2010C610 mmcra:0X00000001 event:0X0F2 mmcr0:0X00000000 mmcr1:0XC22C000E2010C610 mmcra:0X00000001 event:0X0F3 mmcr0:0X00000000 mmcr1:0XC22C000E2010C610 mmcra:0X00000001 event:0X0F4 mmcr0:0X00000000 mmcr1:0XC22C000E2010C610 mmcra:0X00000001 event:0X0F5 mmcr0:0X00000000 mmcr1:0XC22C000E2010C610 mmcra:0X00000001 #Group 16 pm_lsu_reject2, LSU rejects due to reload CDF or tag update collision event:0X100 mmcr0:0X00000000 mmcr1:0X820C000DC4CC02CE mmcra:0X00000001 event:0X101 mmcr0:0X00000000 mmcr1:0X820C000DC4CC02CE mmcra:0X00000001 event:0X102 mmcr0:0X00000000 mmcr1:0X820C000DC4CC02CE mmcra:0X00000001 event:0X103 mmcr0:0X00000000 mmcr1:0X820C000DC4CC02CE mmcra:0X00000001 event:0X104 mmcr0:0X00000000 mmcr1:0X820C000DC4CC02CE mmcra:0X00000001 event:0X105 mmcr0:0X00000000 mmcr1:0X820C000DC4CC02CE mmcra:0X00000001 #Group 17 pm_lsu_reject3, LSU rejects due to ERAT, held instuctions event:0X110 mmcr0:0X00000000 mmcr1:0X420C000FC6CEC0C8 mmcra:0X00000000 event:0X111 mmcr0:0X00000000 mmcr1:0X420C000FC6CEC0C8 mmcra:0X00000000 event:0X112 mmcr0:0X00000000 mmcr1:0X420C000FC6CEC0C8 mmcra:0X00000000 event:0X113 mmcr0:0X00000000 mmcr1:0X420C000FC6CEC0C8 mmcra:0X00000000 event:0X114 mmcr0:0X00000000 mmcr1:0X420C000FC6CEC0C8 mmcra:0X00000000 event:0X115 mmcr0:0X00000000 mmcr1:0X420C000FC6CEC0C8 mmcra:0X00000000 #Group 18 pm_lsu_reject4, LSU0/1 reject LMQ full event:0X120 mmcr0:0X00000000 mmcr1:0X820C000DC2CA02C8 mmcra:0X00000001 event:0X121 mmcr0:0X00000000 mmcr1:0X820C000DC2CA02C8 mmcra:0X00000001 event:0X122 mmcr0:0X00000000 mmcr1:0X820C000DC2CA02C8 mmcra:0X00000001 event:0X123 mmcr0:0X00000000 mmcr1:0X820C000DC2CA02C8 mmcra:0X00000001 event:0X124 mmcr0:0X00000000 mmcr1:0X820C000DC2CA02C8 mmcra:0X00000001 event:0X125 mmcr0:0X00000000 mmcr1:0X820C000DC2CA02C8 mmcra:0X00000001 #Group 19 pm_lsu_reject5, LSU misc reject and flush events event:0X130 mmcr0:0X00000000 mmcr1:0X420C000C10208A8E mmcra:0X00000000 event:0X131 mmcr0:0X00000000 mmcr1:0X420C000C10208A8E mmcra:0X00000000 event:0X132 mmcr0:0X00000000 mmcr1:0X420C000C10208A8E mmcra:0X00000000 event:0X133 mmcr0:0X00000000 mmcr1:0X420C000C10208A8E mmcra:0X00000000 event:0X134 mmcr0:0X00000000 mmcr1:0X420C000C10208A8E mmcra:0X00000000 event:0X135 mmcr0:0X00000000 mmcr1:0X420C000C10208A8E mmcra:0X00000000 #Group 20 pm_flush1, Misc flush events event:0X140 mmcr0:0X00000000 mmcr1:0XC0F000020210C68E mmcra:0X00000001 event:0X141 mmcr0:0X00000000 mmcr1:0XC0F000020210C68E mmcra:0X00000001 event:0X142 mmcr0:0X00000000 mmcr1:0XC0F000020210C68E mmcra:0X00000001 event:0X143 mmcr0:0X00000000 mmcr1:0XC0F000020210C68E mmcra:0X00000001 event:0X144 mmcr0:0X00000000 mmcr1:0XC0F000020210C68E mmcra:0X00000001 event:0X145 mmcr0:0X00000000 mmcr1:0XC0F000020210C68E mmcra:0X00000001 #Group 21 pm_flush2, Flushes due to scoreboard and sync event:0X150 mmcr0:0X00000000 mmcr1:0XC08000038002C4C2 mmcra:0X00000001 event:0X151 mmcr0:0X00000000 mmcr1:0XC08000038002C4C2 mmcra:0X00000001 event:0X152 mmcr0:0X00000000 mmcr1:0XC08000038002C4C2 mmcra:0X00000001 event:0X153 mmcr0:0X00000000 mmcr1:0XC08000038002C4C2 mmcra:0X00000001 event:0X154 mmcr0:0X00000000 mmcr1:0XC08000038002C4C2 mmcra:0X00000001 event:0X155 mmcr0:0X00000000 mmcr1:0XC08000038002C4C2 mmcra:0X00000001 #Group 22 pm_lsu_flush_srq_lrq, LSU flush by SRQ and LRQ events event:0X160 mmcr0:0X00000000 mmcr1:0X40C000002020028A mmcra:0X00000001 event:0X161 mmcr0:0X00000000 mmcr1:0X40C000002020028A mmcra:0X00000001 event:0X162 mmcr0:0X00000000 mmcr1:0X40C000002020028A mmcra:0X00000001 event:0X163 mmcr0:0X00000000 mmcr1:0X40C000002020028A mmcra:0X00000001 event:0X164 mmcr0:0X00000000 mmcr1:0X40C000002020028A mmcra:0X00000001 event:0X165 mmcr0:0X00000000 mmcr1:0X40C000002020028A mmcra:0X00000001 #Group 23 pm_lsu_flush_lrq, LSU0/1 flush due to LRQ event:0X170 mmcr0:0X00000000 mmcr1:0X40C00000848C8A02 mmcra:0X00000001 event:0X171 mmcr0:0X00000000 mmcr1:0X40C00000848C8A02 mmcra:0X00000001 event:0X172 mmcr0:0X00000000 mmcr1:0X40C00000848C8A02 mmcra:0X00000001 event:0X173 mmcr0:0X00000000 mmcr1:0X40C00000848C8A02 mmcra:0X00000001 event:0X174 mmcr0:0X00000000 mmcr1:0X40C00000848C8A02 mmcra:0X00000001 event:0X175 mmcr0:0X00000000 mmcr1:0X40C00000848C8A02 mmcra:0X00000001 #Group 24 pm_lsu_flush_srq, LSU0/1 flush due to SRQ event:0X180 mmcr0:0X00000000 mmcr1:0X40C00000868E028A mmcra:0X00000001 event:0X181 mmcr0:0X00000000 mmcr1:0X40C00000868E028A mmcra:0X00000001 event:0X182 mmcr0:0X00000000 mmcr1:0X40C00000868E028A mmcra:0X00000001 event:0X183 mmcr0:0X00000000 mmcr1:0X40C00000868E028A mmcra:0X00000001 event:0X184 mmcr0:0X00000000 mmcr1:0X40C00000868E028A mmcra:0X00000001 event:0X185 mmcr0:0X00000000 mmcr1:0X40C00000868E028A mmcra:0X00000001 #Group 25 pm_lsu_flush_unaligned, LSU flush due to unaligned data event:0X190 mmcr0:0X00000000 mmcr1:0X80C000021010C802 mmcra:0X00000001 event:0X191 mmcr0:0X00000000 mmcr1:0X80C000021010C802 mmcra:0X00000001 event:0X192 mmcr0:0X00000000 mmcr1:0X80C000021010C802 mmcra:0X00000001 event:0X193 mmcr0:0X00000000 mmcr1:0X80C000021010C802 mmcra:0X00000001 event:0X194 mmcr0:0X00000000 mmcr1:0X80C000021010C802 mmcra:0X00000001 event:0X195 mmcr0:0X00000000 mmcr1:0X80C000021010C802 mmcra:0X00000001 #Group 26 pm_lsu_flush_uld, LSU0/1 flush due to unaligned load event:0X1A0 mmcr0:0X00000000 mmcr1:0X40C0000080888A02 mmcra:0X00000001 event:0X1A1 mmcr0:0X00000000 mmcr1:0X40C0000080888A02 mmcra:0X00000001 event:0X1A2 mmcr0:0X00000000 mmcr1:0X40C0000080888A02 mmcra:0X00000001 event:0X1A3 mmcr0:0X00000000 mmcr1:0X40C0000080888A02 mmcra:0X00000001 event:0X1A4 mmcr0:0X00000000 mmcr1:0X40C0000080888A02 mmcra:0X00000001 event:0X1A5 mmcr0:0X00000000 mmcr1:0X40C0000080888A02 mmcra:0X00000001 #Group 27 pm_lsu_flush_ust, LSU0/1 flush due to unaligned store event:0X1B0 mmcr0:0X00000000 mmcr1:0X40C00000828A028A mmcra:0X00000001 event:0X1B1 mmcr0:0X00000000 mmcr1:0X40C00000828A028A mmcra:0X00000001 event:0X1B2 mmcr0:0X00000000 mmcr1:0X40C00000828A028A mmcra:0X00000001 event:0X1B3 mmcr0:0X00000000 mmcr1:0X40C00000828A028A mmcra:0X00000001 event:0X1B4 mmcr0:0X00000000 mmcr1:0X40C00000828A028A mmcra:0X00000001 event:0X1B5 mmcr0:0X00000000 mmcr1:0X40C00000828A028A mmcra:0X00000001 #Group 28 pm_lsu_flush_full, LSU flush due to LRQ/SRQ full event:0X1C0 mmcr0:0X00000000 mmcr1:0XC0200009CE0210C0 mmcra:0X00000001 event:0X1C1 mmcr0:0X00000000 mmcr1:0XC0200009CE0210C0 mmcra:0X00000001 event:0X1C2 mmcr0:0X00000000 mmcr1:0XC0200009CE0210C0 mmcra:0X00000001 event:0X1C3 mmcr0:0X00000000 mmcr1:0XC0200009CE0210C0 mmcra:0X00000001 event:0X1C4 mmcr0:0X00000000 mmcr1:0XC0200009CE0210C0 mmcra:0X00000001 event:0X1C5 mmcr0:0X00000000 mmcr1:0XC0200009CE0210C0 mmcra:0X00000001 #Group 29 pm_lsu_stall1, LSU Stalls event:0X1D0 mmcr0:0X00000000 mmcr1:0X4000000028300234 mmcra:0X00000001 event:0X1D1 mmcr0:0X00000000 mmcr1:0X4000000028300234 mmcra:0X00000001 event:0X1D2 mmcr0:0X00000000 mmcr1:0X4000000028300234 mmcra:0X00000001 event:0X1D3 mmcr0:0X00000000 mmcr1:0X4000000028300234 mmcra:0X00000001 event:0X1D4 mmcr0:0X00000000 mmcr1:0X4000000028300234 mmcra:0X00000001 event:0X1D5 mmcr0:0X00000000 mmcr1:0X4000000028300234 mmcra:0X00000001 #Group 30 pm_lsu_stall2, LSU Stalls event:0X1E0 mmcr0:0X00000000 mmcr1:0X4000000002341E36 mmcra:0X00000001 event:0X1E1 mmcr0:0X00000000 mmcr1:0X4000000002341E36 mmcra:0X00000001 event:0X1E2 mmcr0:0X00000000 mmcr1:0X4000000002341E36 mmcra:0X00000001 event:0X1E3 mmcr0:0X00000000 mmcr1:0X4000000002341E36 mmcra:0X00000001 event:0X1E4 mmcr0:0X00000000 mmcr1:0X4000000002341E36 mmcra:0X00000001 event:0X1E5 mmcr0:0X00000000 mmcr1:0X4000000002341E36 mmcra:0X00000001 #Group 31 pm_fxu_stall, FXU Stalls event:0X1F0 mmcr0:0X00000000 mmcr1:0X4000000822320232 mmcra:0X00000001 event:0X1F1 mmcr0:0X00000000 mmcr1:0X4000000822320232 mmcra:0X00000001 event:0X1F2 mmcr0:0X00000000 mmcr1:0X4000000822320232 mmcra:0X00000001 event:0X1F3 mmcr0:0X00000000 mmcr1:0X4000000822320232 mmcra:0X00000001 event:0X1F4 mmcr0:0X00000000 mmcr1:0X4000000822320232 mmcra:0X00000001 event:0X1F5 mmcr0:0X00000000 mmcr1:0X4000000822320232 mmcra:0X00000001 #Group 32 pm_fpu_stall, FPU Stalls event:0X200 mmcr0:0X00000000 mmcr1:0X4000000020360230 mmcra:0X00000001 event:0X201 mmcr0:0X00000000 mmcr1:0X4000000020360230 mmcra:0X00000001 event:0X202 mmcr0:0X00000000 mmcr1:0X4000000020360230 mmcra:0X00000001 event:0X203 mmcr0:0X00000000 mmcr1:0X4000000020360230 mmcra:0X00000001 event:0X204 mmcr0:0X00000000 mmcr1:0X4000000020360230 mmcra:0X00000001 event:0X205 mmcr0:0X00000000 mmcr1:0X4000000020360230 mmcra:0X00000001 #Group 33 pm_queue_full, BRQ LRQ LMQ queue full event:0X210 mmcr0:0X00000000 mmcr1:0X400B0009CE8A84CE mmcra:0X00000000 event:0X211 mmcr0:0X00000000 mmcr1:0X400B0009CE8A84CE mmcra:0X00000000 event:0X212 mmcr0:0X00000000 mmcr1:0X400B0009CE8A84CE mmcra:0X00000000 event:0X213 mmcr0:0X00000000 mmcr1:0X400B0009CE8A84CE mmcra:0X00000000 event:0X214 mmcr0:0X00000000 mmcr1:0X400B0009CE8A84CE mmcra:0X00000000 event:0X215 mmcr0:0X00000000 mmcr1:0X400B0009CE8A84CE mmcra:0X00000000 #Group 34 pm_issueq_full, FPU FX full event:0X220 mmcr0:0X00000000 mmcr1:0X40000000868E8088 mmcra:0X00000000 event:0X221 mmcr0:0X00000000 mmcr1:0X40000000868E8088 mmcra:0X00000000 event:0X222 mmcr0:0X00000000 mmcr1:0X40000000868E8088 mmcra:0X00000000 event:0X223 mmcr0:0X00000000 mmcr1:0X40000000868E8088 mmcra:0X00000000 event:0X224 mmcr0:0X00000000 mmcr1:0X40000000868E8088 mmcra:0X00000000 event:0X225 mmcr0:0X00000000 mmcr1:0X40000000868E8088 mmcra:0X00000000 #Group 35 pm_mapper_full1, CR CTR GPR mapper full event:0X230 mmcr0:0X00000000 mmcr1:0X40000002888CCA82 mmcra:0X00000000 event:0X231 mmcr0:0X00000000 mmcr1:0X40000002888CCA82 mmcra:0X00000000 event:0X232 mmcr0:0X00000000 mmcr1:0X40000002888CCA82 mmcra:0X00000000 event:0X233 mmcr0:0X00000000 mmcr1:0X40000002888CCA82 mmcra:0X00000000 event:0X234 mmcr0:0X00000000 mmcr1:0X40000002888CCA82 mmcra:0X00000000 event:0X235 mmcr0:0X00000000 mmcr1:0X40000002888CCA82 mmcra:0X00000000 #Group 36 pm_mapper_full2, FPR XER mapper full event:0X240 mmcr0:0X00000000 mmcr1:0X4103000282843602 mmcra:0X00000001 event:0X241 mmcr0:0X00000000 mmcr1:0X4103000282843602 mmcra:0X00000001 event:0X242 mmcr0:0X00000000 mmcr1:0X4103000282843602 mmcra:0X00000001 event:0X243 mmcr0:0X00000000 mmcr1:0X4103000282843602 mmcra:0X00000001 event:0X244 mmcr0:0X00000000 mmcr1:0X4103000282843602 mmcra:0X00000001 event:0X245 mmcr0:0X00000000 mmcr1:0X4103000282843602 mmcra:0X00000001 #Group 37 pm_misc_load, Non-cachable loads and stcx events event:0X250 mmcr0:0X00000000 mmcr1:0X0438000CC2CA828A mmcra:0X00000001 event:0X251 mmcr0:0X00000000 mmcr1:0X0438000CC2CA828A mmcra:0X00000001 event:0X252 mmcr0:0X00000000 mmcr1:0X0438000CC2CA828A mmcra:0X00000001 event:0X253 mmcr0:0X00000000 mmcr1:0X0438000CC2CA828A mmcra:0X00000001 event:0X254 mmcr0:0X00000000 mmcr1:0X0438000CC2CA828A mmcra:0X00000001 event:0X255 mmcr0:0X00000000 mmcr1:0X0438000CC2CA828A mmcra:0X00000001 #Group 38 pm_ic_demand, ICache demand from BR redirect event:0X260 mmcr0:0X00000000 mmcr1:0X800C000FC6CEC0C2 mmcra:0X00000000 event:0X261 mmcr0:0X00000000 mmcr1:0X800C000FC6CEC0C2 mmcra:0X00000000 event:0X262 mmcr0:0X00000000 mmcr1:0X800C000FC6CEC0C2 mmcra:0X00000000 event:0X263 mmcr0:0X00000000 mmcr1:0X800C000FC6CEC0C2 mmcra:0X00000000 event:0X264 mmcr0:0X00000000 mmcr1:0X800C000FC6CEC0C2 mmcra:0X00000000 event:0X265 mmcr0:0X00000000 mmcr1:0X800C000FC6CEC0C2 mmcra:0X00000000 #Group 39 pm_ic_pref, ICache prefetch event:0X270 mmcr0:0X00000000 mmcr1:0X8000000CCECC8E1A mmcra:0X00000000 event:0X271 mmcr0:0X00000000 mmcr1:0X8000000CCECC8E1A mmcra:0X00000000 event:0X272 mmcr0:0X00000000 mmcr1:0X8000000CCECC8E1A mmcra:0X00000000 event:0X273 mmcr0:0X00000000 mmcr1:0X8000000CCECC8E1A mmcra:0X00000000 event:0X274 mmcr0:0X00000000 mmcr1:0X8000000CCECC8E1A mmcra:0X00000000 event:0X275 mmcr0:0X00000000 mmcr1:0X8000000CCECC8E1A mmcra:0X00000000 #Group 40 pm_ic_miss, ICache misses event:0X280 mmcr0:0X00000000 mmcr1:0X4003000E32CEC802 mmcra:0X00000001 event:0X281 mmcr0:0X00000000 mmcr1:0X4003000E32CEC802 mmcra:0X00000001 event:0X282 mmcr0:0X00000000 mmcr1:0X4003000E32CEC802 mmcra:0X00000001 event:0X283 mmcr0:0X00000000 mmcr1:0X4003000E32CEC802 mmcra:0X00000001 event:0X284 mmcr0:0X00000000 mmcr1:0X4003000E32CEC802 mmcra:0X00000001 event:0X285 mmcr0:0X00000000 mmcr1:0X4003000E32CEC802 mmcra:0X00000001 #Group 41 pm_branch_miss, Branch mispredict, TLB and SLB misses event:0X290 mmcr0:0X00000000 mmcr1:0X808000031010CACC mmcra:0X00000000 event:0X291 mmcr0:0X00000000 mmcr1:0X808000031010CACC mmcra:0X00000000 event:0X292 mmcr0:0X00000000 mmcr1:0X808000031010CACC mmcra:0X00000000 event:0X293 mmcr0:0X00000000 mmcr1:0X808000031010CACC mmcra:0X00000000 event:0X294 mmcr0:0X00000000 mmcr1:0X808000031010CACC mmcra:0X00000000 event:0X295 mmcr0:0X00000000 mmcr1:0X808000031010CACC mmcra:0X00000000 #Group 42 pm_branch1, Branch operations event:0X2A0 mmcr0:0X00000000 mmcr1:0X800000030E0E0E0E mmcra:0X00000000 event:0X2A1 mmcr0:0X00000000 mmcr1:0X800000030E0E0E0E mmcra:0X00000000 event:0X2A2 mmcr0:0X00000000 mmcr1:0X800000030E0E0E0E mmcra:0X00000000 event:0X2A3 mmcr0:0X00000000 mmcr1:0X800000030E0E0E0E mmcra:0X00000000 event:0X2A4 mmcr0:0X00000000 mmcr1:0X800000030E0E0E0E mmcra:0X00000000 event:0X2A5 mmcr0:0X00000000 mmcr1:0X800000030E0E0E0E mmcra:0X00000000 #Group 43 pm_branch2, Branch operations event:0X2B0 mmcr0:0X00000000 mmcr1:0X4000000CCACC8C02 mmcra:0X00000001 event:0X2B1 mmcr0:0X00000000 mmcr1:0X4000000CCACC8C02 mmcra:0X00000001 event:0X2B2 mmcr0:0X00000000 mmcr1:0X4000000CCACC8C02 mmcra:0X00000001 event:0X2B3 mmcr0:0X00000000 mmcr1:0X4000000CCACC8C02 mmcra:0X00000001 event:0X2B4 mmcr0:0X00000000 mmcr1:0X4000000CCACC8C02 mmcra:0X00000001 event:0X2B5 mmcr0:0X00000000 mmcr1:0X4000000CCACC8C02 mmcra:0X00000001 #Group 44 pm_L1_tlbmiss, L1 load and TLB misses event:0X2C0 mmcr0:0X00000000 mmcr1:0X00B000008E881020 mmcra:0X00000000 event:0X2C1 mmcr0:0X00000000 mmcr1:0X00B000008E881020 mmcra:0X00000000 event:0X2C2 mmcr0:0X00000000 mmcr1:0X00B000008E881020 mmcra:0X00000000 event:0X2C3 mmcr0:0X00000000 mmcr1:0X00B000008E881020 mmcra:0X00000000 event:0X2C4 mmcr0:0X00000000 mmcr1:0X00B000008E881020 mmcra:0X00000000 event:0X2C5 mmcr0:0X00000000 mmcr1:0X00B000008E881020 mmcra:0X00000000 #Group 45 pm_L1_DERAT_miss, L1 store and DERAT misses event:0X2D0 mmcr0:0X00000000 mmcr1:0X00B300000E202086 mmcra:0X00000000 event:0X2D1 mmcr0:0X00000000 mmcr1:0X00B300000E202086 mmcra:0X00000000 event:0X2D2 mmcr0:0X00000000 mmcr1:0X00B300000E202086 mmcra:0X00000000 event:0X2D3 mmcr0:0X00000000 mmcr1:0X00B300000E202086 mmcra:0X00000000 event:0X2D4 mmcr0:0X00000000 mmcr1:0X00B300000E202086 mmcra:0X00000000 event:0X2D5 mmcr0:0X00000000 mmcr1:0X00B300000E202086 mmcra:0X00000000 #Group 46 pm_L1_slbmiss, L1 load and SLB misses event:0X2E0 mmcr0:0X00000000 mmcr1:0X00B000008A82848C mmcra:0X00000000 event:0X2E1 mmcr0:0X00000000 mmcr1:0X00B000008A82848C mmcra:0X00000000 event:0X2E2 mmcr0:0X00000000 mmcr1:0X00B000008A82848C mmcra:0X00000000 event:0X2E3 mmcr0:0X00000000 mmcr1:0X00B000008A82848C mmcra:0X00000000 event:0X2E4 mmcr0:0X00000000 mmcr1:0X00B000008A82848C mmcra:0X00000000 event:0X2E5 mmcr0:0X00000000 mmcr1:0X00B000008A82848C mmcra:0X00000000 #Group 47 pm_L1_dtlbmiss_4K, L1 load references and 4K Data TLB references and misses event:0X2F0 mmcr0:0X00000000 mmcr1:0X08F0000084808088 mmcra:0X00000000 event:0X2F1 mmcr0:0X00000000 mmcr1:0X08F0000084808088 mmcra:0X00000000 event:0X2F2 mmcr0:0X00000000 mmcr1:0X08F0000084808088 mmcra:0X00000000 event:0X2F3 mmcr0:0X00000000 mmcr1:0X08F0000084808088 mmcra:0X00000000 event:0X2F4 mmcr0:0X00000000 mmcr1:0X08F0000084808088 mmcra:0X00000000 event:0X2F5 mmcr0:0X00000000 mmcr1:0X08F0000084808088 mmcra:0X00000000 #Group 48 pm_L1_dtlbmiss_16M, L1 store references and 16M Data TLB references and misses event:0X300 mmcr0:0X00000000 mmcr1:0X08F000008C88828A mmcra:0X00000000 event:0X301 mmcr0:0X00000000 mmcr1:0X08F000008C88828A mmcra:0X00000000 event:0X302 mmcr0:0X00000000 mmcr1:0X08F000008C88828A mmcra:0X00000000 event:0X303 mmcr0:0X00000000 mmcr1:0X08F000008C88828A mmcra:0X00000000 event:0X304 mmcr0:0X00000000 mmcr1:0X08F000008C88828A mmcra:0X00000000 event:0X305 mmcr0:0X00000000 mmcr1:0X08F000008C88828A mmcra:0X00000000 #Group 49 pm_dsource1, L3 cache and memory data access event:0X310 mmcr0:0X00000000 mmcr1:0X400300001C0E8E02 mmcra:0X00000001 event:0X311 mmcr0:0X00000000 mmcr1:0X400300001C0E8E02 mmcra:0X00000001 event:0X312 mmcr0:0X00000000 mmcr1:0X400300001C0E8E02 mmcra:0X00000001 event:0X313 mmcr0:0X00000000 mmcr1:0X400300001C0E8E02 mmcra:0X00000001 event:0X314 mmcr0:0X00000000 mmcr1:0X400300001C0E8E02 mmcra:0X00000001 event:0X315 mmcr0:0X00000000 mmcr1:0X400300001C0E8E02 mmcra:0X00000001 #Group 50 pm_dsource2, L3 cache and memory data access event:0X320 mmcr0:0X00000000 mmcr1:0X000300031C0E360E mmcra:0X00000000 event:0X321 mmcr0:0X00000000 mmcr1:0X000300031C0E360E mmcra:0X00000000 event:0X322 mmcr0:0X00000000 mmcr1:0X000300031C0E360E mmcra:0X00000000 event:0X323 mmcr0:0X00000000 mmcr1:0X000300031C0E360E mmcra:0X00000000 event:0X324 mmcr0:0X00000000 mmcr1:0X000300031C0E360E mmcra:0X00000000 event:0X325 mmcr0:0X00000000 mmcr1:0X000300031C0E360E mmcra:0X00000000 #Group 51 pm_dsource_L2, L2 cache data access event:0X330 mmcr0:0X00000000 mmcr1:0X000300032E2E2E2E mmcra:0X00000000 event:0X331 mmcr0:0X00000000 mmcr1:0X000300032E2E2E2E mmcra:0X00000000 event:0X332 mmcr0:0X00000000 mmcr1:0X000300032E2E2E2E mmcra:0X00000000 event:0X333 mmcr0:0X00000000 mmcr1:0X000300032E2E2E2E mmcra:0X00000000 event:0X334 mmcr0:0X00000000 mmcr1:0X000300032E2E2E2E mmcra:0X00000000 event:0X335 mmcr0:0X00000000 mmcr1:0X000300032E2E2E2E mmcra:0X00000000 #Group 52 pm_dsource_L3, L3 cache data access event:0X340 mmcr0:0X00000000 mmcr1:0X000300033C3C3C3C mmcra:0X00000000 event:0X341 mmcr0:0X00000000 mmcr1:0X000300033C3C3C3C mmcra:0X00000000 event:0X342 mmcr0:0X00000000 mmcr1:0X000300033C3C3C3C mmcra:0X00000000 event:0X343 mmcr0:0X00000000 mmcr1:0X000300033C3C3C3C mmcra:0X00000000 event:0X344 mmcr0:0X00000000 mmcr1:0X000300033C3C3C3C mmcra:0X00000000 event:0X345 mmcr0:0X00000000 mmcr1:0X000300033C3C3C3C mmcra:0X00000000 #Group 53 pm_isource1, Instruction source information event:0X350 mmcr0:0X00000000 mmcr1:0X8000000C1A1A1A0C mmcra:0X00000000 event:0X351 mmcr0:0X00000000 mmcr1:0X8000000C1A1A1A0C mmcra:0X00000000 event:0X352 mmcr0:0X00000000 mmcr1:0X8000000C1A1A1A0C mmcra:0X00000000 event:0X353 mmcr0:0X00000000 mmcr1:0X8000000C1A1A1A0C mmcra:0X00000000 event:0X354 mmcr0:0X00000000 mmcr1:0X8000000C1A1A1A0C mmcra:0X00000000 event:0X355 mmcr0:0X00000000 mmcr1:0X8000000C1A1A1A0C mmcra:0X00000000 #Group 54 pm_isource2, Instruction source information event:0X360 mmcr0:0X00000000 mmcr1:0X8000000C0C0C021A mmcra:0X00000001 event:0X361 mmcr0:0X00000000 mmcr1:0X8000000C0C0C021A mmcra:0X00000001 event:0X362 mmcr0:0X00000000 mmcr1:0X8000000C0C0C021A mmcra:0X00000001 event:0X363 mmcr0:0X00000000 mmcr1:0X8000000C0C0C021A mmcra:0X00000001 event:0X364 mmcr0:0X00000000 mmcr1:0X8000000C0C0C021A mmcra:0X00000001 event:0X365 mmcr0:0X00000000 mmcr1:0X8000000C0C0C021A mmcra:0X00000001 #Group 55 pm_isource_L2, L2 instruction source information event:0X370 mmcr0:0X00000000 mmcr1:0X8000000C2C2C2C2C mmcra:0X00000000 event:0X371 mmcr0:0X00000000 mmcr1:0X8000000C2C2C2C2C mmcra:0X00000000 event:0X372 mmcr0:0X00000000 mmcr1:0X8000000C2C2C2C2C mmcra:0X00000000 event:0X373 mmcr0:0X00000000 mmcr1:0X8000000C2C2C2C2C mmcra:0X00000000 event:0X374 mmcr0:0X00000000 mmcr1:0X8000000C2C2C2C2C mmcra:0X00000000 event:0X375 mmcr0:0X00000000 mmcr1:0X8000000C2C2C2C2C mmcra:0X00000000 #Group 56 pm_isource_L3, L3 instruction source information event:0X380 mmcr0:0X00000000 mmcr1:0X8000000C3A3A3A3A mmcra:0X00000000 event:0X381 mmcr0:0X00000000 mmcr1:0X8000000C3A3A3A3A mmcra:0X00000000 event:0X382 mmcr0:0X00000000 mmcr1:0X8000000C3A3A3A3A mmcra:0X00000000 event:0X383 mmcr0:0X00000000 mmcr1:0X8000000C3A3A3A3A mmcra:0X00000000 event:0X384 mmcr0:0X00000000 mmcr1:0X8000000C3A3A3A3A mmcra:0X00000000 event:0X385 mmcr0:0X00000000 mmcr1:0X8000000C3A3A3A3A mmcra:0X00000000 #Group 57 pm_pteg_source1, PTEG source information event:0X390 mmcr0:0X00000000 mmcr1:0X000200032E2E2E2E mmcra:0X00000000 event:0X391 mmcr0:0X00000000 mmcr1:0X000200032E2E2E2E mmcra:0X00000000 event:0X392 mmcr0:0X00000000 mmcr1:0X000200032E2E2E2E mmcra:0X00000000 event:0X393 mmcr0:0X00000000 mmcr1:0X000200032E2E2E2E mmcra:0X00000000 event:0X394 mmcr0:0X00000000 mmcr1:0X000200032E2E2E2E mmcra:0X00000000 event:0X395 mmcr0:0X00000000 mmcr1:0X000200032E2E2E2E mmcra:0X00000000 #Group 58 pm_pteg_source2, PTEG source information event:0X3A0 mmcr0:0X00000000 mmcr1:0X000200033C3C3C3C mmcra:0X00000000 event:0X3A1 mmcr0:0X00000000 mmcr1:0X000200033C3C3C3C mmcra:0X00000000 event:0X3A2 mmcr0:0X00000000 mmcr1:0X000200033C3C3C3C mmcra:0X00000000 event:0X3A3 mmcr0:0X00000000 mmcr1:0X000200033C3C3C3C mmcra:0X00000000 event:0X3A4 mmcr0:0X00000000 mmcr1:0X000200033C3C3C3C mmcra:0X00000000 event:0X3A5 mmcr0:0X00000000 mmcr1:0X000200033C3C3C3C mmcra:0X00000000 #Group 59 pm_pteg_source3, PTEG source information event:0X3B0 mmcr0:0X00000000 mmcr1:0X000200030E0E360E mmcra:0X00000000 event:0X3B1 mmcr0:0X00000000 mmcr1:0X000200030E0E360E mmcra:0X00000000 event:0X3B2 mmcr0:0X00000000 mmcr1:0X000200030E0E360E mmcra:0X00000000 event:0X3B3 mmcr0:0X00000000 mmcr1:0X000200030E0E360E mmcra:0X00000000 event:0X3B4 mmcr0:0X00000000 mmcr1:0X000200030E0E360E mmcra:0X00000000 event:0X3B5 mmcr0:0X00000000 mmcr1:0X000200030E0E360E mmcra:0X00000000 #Group 60 pm_pteg_source4, L3 PTEG and group disptach events event:0X3C0 mmcr0:0X00000000 mmcr1:0X003200001C04048E mmcra:0X00000000 event:0X3C1 mmcr0:0X00000000 mmcr1:0X003200001C04048E mmcra:0X00000000 event:0X3C2 mmcr0:0X00000000 mmcr1:0X003200001C04048E mmcra:0X00000000 event:0X3C3 mmcr0:0X00000000 mmcr1:0X003200001C04048E mmcra:0X00000000 event:0X3C4 mmcr0:0X00000000 mmcr1:0X003200001C04048E mmcra:0X00000000 event:0X3C5 mmcr0:0X00000000 mmcr1:0X003200001C04048E mmcra:0X00000000 #Group 61 pm_L2SA_ld, L2 slice A load events event:0X3D0 mmcr0:0X00000000 mmcr1:0X3055400580C080C0 mmcra:0X00000000 event:0X3D1 mmcr0:0X00000000 mmcr1:0X3055400580C080C0 mmcra:0X00000000 event:0X3D2 mmcr0:0X00000000 mmcr1:0X3055400580C080C0 mmcra:0X00000000 event:0X3D3 mmcr0:0X00000000 mmcr1:0X3055400580C080C0 mmcra:0X00000000 event:0X3D4 mmcr0:0X00000000 mmcr1:0X3055400580C080C0 mmcra:0X00000000 event:0X3D5 mmcr0:0X00000000 mmcr1:0X3055400580C080C0 mmcra:0X00000000 #Group 62 pm_L2SA_st, L2 slice A store events event:0X3E0 mmcr0:0X00000000 mmcr1:0X3055800580C080C0 mmcra:0X00000000 event:0X3E1 mmcr0:0X00000000 mmcr1:0X3055800580C080C0 mmcra:0X00000000 event:0X3E2 mmcr0:0X00000000 mmcr1:0X3055800580C080C0 mmcra:0X00000000 event:0X3E3 mmcr0:0X00000000 mmcr1:0X3055800580C080C0 mmcra:0X00000000 event:0X3E4 mmcr0:0X00000000 mmcr1:0X3055800580C080C0 mmcra:0X00000000 event:0X3E5 mmcr0:0X00000000 mmcr1:0X3055800580C080C0 mmcra:0X00000000 #Group 63 pm_L2SA_st2, L2 slice A store events event:0X3F0 mmcr0:0X00000000 mmcr1:0X3055C00580C080C0 mmcra:0X00000000 event:0X3F1 mmcr0:0X00000000 mmcr1:0X3055C00580C080C0 mmcra:0X00000000 event:0X3F2 mmcr0:0X00000000 mmcr1:0X3055C00580C080C0 mmcra:0X00000000 event:0X3F3 mmcr0:0X00000000 mmcr1:0X3055C00580C080C0 mmcra:0X00000000 event:0X3F4 mmcr0:0X00000000 mmcr1:0X3055C00580C080C0 mmcra:0X00000000 event:0X3F5 mmcr0:0X00000000 mmcr1:0X3055C00580C080C0 mmcra:0X00000000 #Group 64 pm_L2SB_ld, L2 slice B load events event:0X400 mmcr0:0X00000000 mmcr1:0X3055400582C282C2 mmcra:0X00000000 event:0X401 mmcr0:0X00000000 mmcr1:0X3055400582C282C2 mmcra:0X00000000 event:0X402 mmcr0:0X00000000 mmcr1:0X3055400582C282C2 mmcra:0X00000000 event:0X403 mmcr0:0X00000000 mmcr1:0X3055400582C282C2 mmcra:0X00000000 event:0X404 mmcr0:0X00000000 mmcr1:0X3055400582C282C2 mmcra:0X00000000 event:0X405 mmcr0:0X00000000 mmcr1:0X3055400582C282C2 mmcra:0X00000000 #Group 65 pm_L2SB_st, L2 slice B store events event:0X410 mmcr0:0X00000000 mmcr1:0X3055800582C282C2 mmcra:0X00000000 event:0X411 mmcr0:0X00000000 mmcr1:0X3055800582C282C2 mmcra:0X00000000 event:0X412 mmcr0:0X00000000 mmcr1:0X3055800582C282C2 mmcra:0X00000000 event:0X413 mmcr0:0X00000000 mmcr1:0X3055800582C282C2 mmcra:0X00000000 event:0X414 mmcr0:0X00000000 mmcr1:0X3055800582C282C2 mmcra:0X00000000 event:0X415 mmcr0:0X00000000 mmcr1:0X3055800582C282C2 mmcra:0X00000000 #Group 66 pm_L2SB_st2, L2 slice B store events event:0X420 mmcr0:0X00000000 mmcr1:0X3055C00582C282C2 mmcra:0X00000000 event:0X421 mmcr0:0X00000000 mmcr1:0X3055C00582C282C2 mmcra:0X00000000 event:0X422 mmcr0:0X00000000 mmcr1:0X3055C00582C282C2 mmcra:0X00000000 event:0X423 mmcr0:0X00000000 mmcr1:0X3055C00582C282C2 mmcra:0X00000000 event:0X424 mmcr0:0X00000000 mmcr1:0X3055C00582C282C2 mmcra:0X00000000 event:0X425 mmcr0:0X00000000 mmcr1:0X3055C00582C282C2 mmcra:0X00000000 #Group 67 pm_L2SB_ld, L2 slice C load events event:0X430 mmcr0:0X00000000 mmcr1:0X3055400584C484C4 mmcra:0X00000000 event:0X431 mmcr0:0X00000000 mmcr1:0X3055400584C484C4 mmcra:0X00000000 event:0X432 mmcr0:0X00000000 mmcr1:0X3055400584C484C4 mmcra:0X00000000 event:0X433 mmcr0:0X00000000 mmcr1:0X3055400584C484C4 mmcra:0X00000000 event:0X434 mmcr0:0X00000000 mmcr1:0X3055400584C484C4 mmcra:0X00000000 event:0X435 mmcr0:0X00000000 mmcr1:0X3055400584C484C4 mmcra:0X00000000 #Group 68 pm_L2SB_st, L2 slice C store events event:0X440 mmcr0:0X00000000 mmcr1:0X3055800584C484C4 mmcra:0X00000000 event:0X441 mmcr0:0X00000000 mmcr1:0X3055800584C484C4 mmcra:0X00000000 event:0X442 mmcr0:0X00000000 mmcr1:0X3055800584C484C4 mmcra:0X00000000 event:0X443 mmcr0:0X00000000 mmcr1:0X3055800584C484C4 mmcra:0X00000000 event:0X444 mmcr0:0X00000000 mmcr1:0X3055800584C484C4 mmcra:0X00000000 event:0X445 mmcr0:0X00000000 mmcr1:0X3055800584C484C4 mmcra:0X00000000 #Group 69 pm_L2SB_st2, L2 slice C store events event:0X450 mmcr0:0X00000000 mmcr1:0X3055C00584C484C4 mmcra:0X00000000 event:0X451 mmcr0:0X00000000 mmcr1:0X3055C00584C484C4 mmcra:0X00000000 event:0X452 mmcr0:0X00000000 mmcr1:0X3055C00584C484C4 mmcra:0X00000000 event:0X453 mmcr0:0X00000000 mmcr1:0X3055C00584C484C4 mmcra:0X00000000 event:0X454 mmcr0:0X00000000 mmcr1:0X3055C00584C484C4 mmcra:0X00000000 event:0X455 mmcr0:0X00000000 mmcr1:0X3055C00584C484C4 mmcra:0X00000000 #Group 70 pm_L3SA_trans, L3 slice A state transistions event:0X460 mmcr0:0X00000000 mmcr1:0X3015000AC602C686 mmcra:0X00000001 event:0X461 mmcr0:0X00000000 mmcr1:0X3015000AC602C686 mmcra:0X00000001 event:0X462 mmcr0:0X00000000 mmcr1:0X3015000AC602C686 mmcra:0X00000001 event:0X463 mmcr0:0X00000000 mmcr1:0X3015000AC602C686 mmcra:0X00000001 event:0X464 mmcr0:0X00000000 mmcr1:0X3015000AC602C686 mmcra:0X00000001 event:0X465 mmcr0:0X00000000 mmcr1:0X3015000AC602C686 mmcra:0X00000001 #Group 71 pm_L3SB_trans, L3 slice B state transistions event:0X470 mmcr0:0X00000000 mmcr1:0X3015000602C8C888 mmcra:0X00000001 event:0X471 mmcr0:0X00000000 mmcr1:0X3015000602C8C888 mmcra:0X00000001 event:0X472 mmcr0:0X00000000 mmcr1:0X3015000602C8C888 mmcra:0X00000001 event:0X473 mmcr0:0X00000000 mmcr1:0X3015000602C8C888 mmcra:0X00000001 event:0X474 mmcr0:0X00000000 mmcr1:0X3015000602C8C888 mmcra:0X00000001 event:0X475 mmcr0:0X00000000 mmcr1:0X3015000602C8C888 mmcra:0X00000001 #Group 72 pm_L3SC_trans, L3 slice C state transistions event:0X480 mmcr0:0X00000000 mmcr1:0X3015000602CACA8A mmcra:0X00000001 event:0X481 mmcr0:0X00000000 mmcr1:0X3015000602CACA8A mmcra:0X00000001 event:0X482 mmcr0:0X00000000 mmcr1:0X3015000602CACA8A mmcra:0X00000001 event:0X483 mmcr0:0X00000000 mmcr1:0X3015000602CACA8A mmcra:0X00000001 event:0X484 mmcr0:0X00000000 mmcr1:0X3015000602CACA8A mmcra:0X00000001 event:0X485 mmcr0:0X00000000 mmcr1:0X3015000602CACA8A mmcra:0X00000001 #Group 73 pm_L2SA_trans, L2 slice A state transistions event:0X490 mmcr0:0X00000000 mmcr1:0X3055000AC080C080 mmcra:0X00000000 event:0X491 mmcr0:0X00000000 mmcr1:0X3055000AC080C080 mmcra:0X00000000 event:0X492 mmcr0:0X00000000 mmcr1:0X3055000AC080C080 mmcra:0X00000000 event:0X493 mmcr0:0X00000000 mmcr1:0X3055000AC080C080 mmcra:0X00000000 event:0X494 mmcr0:0X00000000 mmcr1:0X3055000AC080C080 mmcra:0X00000000 event:0X495 mmcr0:0X00000000 mmcr1:0X3055000AC080C080 mmcra:0X00000000 #Group 74 pm_L2SB_trans, L2 slice B state transistions event:0X4A0 mmcr0:0X00000000 mmcr1:0X3055000AC282C282 mmcra:0X00000000 event:0X4A1 mmcr0:0X00000000 mmcr1:0X3055000AC282C282 mmcra:0X00000000 event:0X4A2 mmcr0:0X00000000 mmcr1:0X3055000AC282C282 mmcra:0X00000000 event:0X4A3 mmcr0:0X00000000 mmcr1:0X3055000AC282C282 mmcra:0X00000000 event:0X4A4 mmcr0:0X00000000 mmcr1:0X3055000AC282C282 mmcra:0X00000000 event:0X4A5 mmcr0:0X00000000 mmcr1:0X3055000AC282C282 mmcra:0X00000000 #Group 75 pm_L2SC_trans, L2 slice C state transistions event:0X4B0 mmcr0:0X00000000 mmcr1:0X3055000AC484C484 mmcra:0X00000000 event:0X4B1 mmcr0:0X00000000 mmcr1:0X3055000AC484C484 mmcra:0X00000000 event:0X4B2 mmcr0:0X00000000 mmcr1:0X3055000AC484C484 mmcra:0X00000000 event:0X4B3 mmcr0:0X00000000 mmcr1:0X3055000AC484C484 mmcra:0X00000000 event:0X4B4 mmcr0:0X00000000 mmcr1:0X3055000AC484C484 mmcra:0X00000000 event:0X4B5 mmcr0:0X00000000 mmcr1:0X3055000AC484C484 mmcra:0X00000000 #Group 76 pm_L3SAB_retry, L3 slice A/B snoop retry and all CI/CO busy event:0X4C0 mmcr0:0X00000000 mmcr1:0X3005100FC6C8C6C8 mmcra:0X00000000 event:0X4C1 mmcr0:0X00000000 mmcr1:0X3005100FC6C8C6C8 mmcra:0X00000000 event:0X4C2 mmcr0:0X00000000 mmcr1:0X3005100FC6C8C6C8 mmcra:0X00000000 event:0X4C3 mmcr0:0X00000000 mmcr1:0X3005100FC6C8C6C8 mmcra:0X00000000 event:0X4C4 mmcr0:0X00000000 mmcr1:0X3005100FC6C8C6C8 mmcra:0X00000000 event:0X4C5 mmcr0:0X00000000 mmcr1:0X3005100FC6C8C6C8 mmcra:0X00000000 #Group 77 pm_L3SAB_hit, L3 slice A/B hit and reference event:0X4D0 mmcr0:0X00000000 mmcr1:0X3050100086888688 mmcra:0X00000000 event:0X4D1 mmcr0:0X00000000 mmcr1:0X3050100086888688 mmcra:0X00000000 event:0X4D2 mmcr0:0X00000000 mmcr1:0X3050100086888688 mmcra:0X00000000 event:0X4D3 mmcr0:0X00000000 mmcr1:0X3050100086888688 mmcra:0X00000000 event:0X4D4 mmcr0:0X00000000 mmcr1:0X3050100086888688 mmcra:0X00000000 event:0X4D5 mmcr0:0X00000000 mmcr1:0X3050100086888688 mmcra:0X00000000 #Group 78 pm_L3SC_retry_hit, L3 slice C hit & snoop retry event:0X4E0 mmcr0:0X00000000 mmcr1:0X3055100ACA8ACA8A mmcra:0X00000000 event:0X4E1 mmcr0:0X00000000 mmcr1:0X3055100ACA8ACA8A mmcra:0X00000000 event:0X4E2 mmcr0:0X00000000 mmcr1:0X3055100ACA8ACA8A mmcra:0X00000000 event:0X4E3 mmcr0:0X00000000 mmcr1:0X3055100ACA8ACA8A mmcra:0X00000000 event:0X4E4 mmcr0:0X00000000 mmcr1:0X3055100ACA8ACA8A mmcra:0X00000000 event:0X4E5 mmcr0:0X00000000 mmcr1:0X3055100ACA8ACA8A mmcra:0X00000000 #Group 79 pm_fpu1, Floating Point events event:0X4F0 mmcr0:0X00000000 mmcr1:0X0000000010101020 mmcra:0X00000000 event:0X4F1 mmcr0:0X00000000 mmcr1:0X0000000010101020 mmcra:0X00000000 event:0X4F2 mmcr0:0X00000000 mmcr1:0X0000000010101020 mmcra:0X00000000 event:0X4F3 mmcr0:0X00000000 mmcr1:0X0000000010101020 mmcra:0X00000000 event:0X4F4 mmcr0:0X00000000 mmcr1:0X0000000010101020 mmcra:0X00000000 event:0X4F5 mmcr0:0X00000000 mmcr1:0X0000000010101020 mmcra:0X00000000 #Group 80 pm_fpu2, Floating Point events event:0X500 mmcr0:0X00000000 mmcr1:0X0000000020202010 mmcra:0X00000000 event:0X501 mmcr0:0X00000000 mmcr1:0X0000000020202010 mmcra:0X00000000 event:0X502 mmcr0:0X00000000 mmcr1:0X0000000020202010 mmcra:0X00000000 event:0X503 mmcr0:0X00000000 mmcr1:0X0000000020202010 mmcra:0X00000000 event:0X504 mmcr0:0X00000000 mmcr1:0X0000000020202010 mmcra:0X00000000 event:0X505 mmcr0:0X00000000 mmcr1:0X0000000020202010 mmcra:0X00000000 #Group 81 pm_fpu3, Floating point events event:0X510 mmcr0:0X00000000 mmcr1:0X0000000C1010868E mmcra:0X00000000 event:0X511 mmcr0:0X00000000 mmcr1:0X0000000C1010868E mmcra:0X00000000 event:0X512 mmcr0:0X00000000 mmcr1:0X0000000C1010868E mmcra:0X00000000 event:0X513 mmcr0:0X00000000 mmcr1:0X0000000C1010868E mmcra:0X00000000 event:0X514 mmcr0:0X00000000 mmcr1:0X0000000C1010868E mmcra:0X00000000 event:0X515 mmcr0:0X00000000 mmcr1:0X0000000C1010868E mmcra:0X00000000 #Group 82 pm_fpu4, Floating point events event:0X520 mmcr0:0X00000000 mmcr1:0X0430000C20200220 mmcra:0X00000001 event:0X521 mmcr0:0X00000000 mmcr1:0X0430000C20200220 mmcra:0X00000001 event:0X522 mmcr0:0X00000000 mmcr1:0X0430000C20200220 mmcra:0X00000001 event:0X523 mmcr0:0X00000000 mmcr1:0X0430000C20200220 mmcra:0X00000001 event:0X524 mmcr0:0X00000000 mmcr1:0X0430000C20200220 mmcra:0X00000001 event:0X525 mmcr0:0X00000000 mmcr1:0X0430000C20200220 mmcra:0X00000001 #Group 83 pm_fpu5, Floating point events by unit event:0X530 mmcr0:0X00000000 mmcr1:0X00000000848C848C mmcra:0X00000000 event:0X531 mmcr0:0X00000000 mmcr1:0X00000000848C848C mmcra:0X00000000 event:0X532 mmcr0:0X00000000 mmcr1:0X00000000848C848C mmcra:0X00000000 event:0X533 mmcr0:0X00000000 mmcr1:0X00000000848C848C mmcra:0X00000000 event:0X534 mmcr0:0X00000000 mmcr1:0X00000000848C848C mmcra:0X00000000 event:0X535 mmcr0:0X00000000 mmcr1:0X00000000848C848C mmcra:0X00000000 #Group 84 pm_fpu6, Floating point events by unit event:0X540 mmcr0:0X00000000 mmcr1:0X0000000CC0C88088 mmcra:0X00000000 event:0X541 mmcr0:0X00000000 mmcr1:0X0000000CC0C88088 mmcra:0X00000000 event:0X542 mmcr0:0X00000000 mmcr1:0X0000000CC0C88088 mmcra:0X00000000 event:0X543 mmcr0:0X00000000 mmcr1:0X0000000CC0C88088 mmcra:0X00000000 event:0X544 mmcr0:0X00000000 mmcr1:0X0000000CC0C88088 mmcra:0X00000000 event:0X545 mmcr0:0X00000000 mmcr1:0X0000000CC0C88088 mmcra:0X00000000 #Group 85 pm_fpu7, Floating point events by unit event:0X550 mmcr0:0X00000000 mmcr1:0X000000008088828A mmcra:0X00000000 event:0X551 mmcr0:0X00000000 mmcr1:0X000000008088828A mmcra:0X00000000 event:0X552 mmcr0:0X00000000 mmcr1:0X000000008088828A mmcra:0X00000000 event:0X553 mmcr0:0X00000000 mmcr1:0X000000008088828A mmcra:0X00000000 event:0X554 mmcr0:0X00000000 mmcr1:0X000000008088828A mmcra:0X00000000 event:0X555 mmcr0:0X00000000 mmcr1:0X000000008088828A mmcra:0X00000000 #Group 86 pm_fpu8, Floating point events by unit event:0X560 mmcr0:0X00000000 mmcr1:0X0000000DC2CA02C0 mmcra:0X00000001 event:0X561 mmcr0:0X00000000 mmcr1:0X0000000DC2CA02C0 mmcra:0X00000001 event:0X562 mmcr0:0X00000000 mmcr1:0X0000000DC2CA02C0 mmcra:0X00000001 event:0X563 mmcr0:0X00000000 mmcr1:0X0000000DC2CA02C0 mmcra:0X00000001 event:0X564 mmcr0:0X00000000 mmcr1:0X0000000DC2CA02C0 mmcra:0X00000001 event:0X565 mmcr0:0X00000000 mmcr1:0X0000000DC2CA02C0 mmcra:0X00000001 #Group 87 pm_fpu9, Floating point events by unit event:0X570 mmcr0:0X00000000 mmcr1:0X0430000CC6CE8088 mmcra:0X00000000 event:0X571 mmcr0:0X00000000 mmcr1:0X0430000CC6CE8088 mmcra:0X00000000 event:0X572 mmcr0:0X00000000 mmcr1:0X0430000CC6CE8088 mmcra:0X00000000 event:0X573 mmcr0:0X00000000 mmcr1:0X0430000CC6CE8088 mmcra:0X00000000 event:0X574 mmcr0:0X00000000 mmcr1:0X0430000CC6CE8088 mmcra:0X00000000 event:0X575 mmcr0:0X00000000 mmcr1:0X0430000CC6CE8088 mmcra:0X00000000 #Group 88 pm_fpu10, Floating point events by unit event:0X580 mmcr0:0X00000000 mmcr1:0X00000000828A028A mmcra:0X00000001 event:0X581 mmcr0:0X00000000 mmcr1:0X00000000828A028A mmcra:0X00000001 event:0X582 mmcr0:0X00000000 mmcr1:0X00000000828A028A mmcra:0X00000001 event:0X583 mmcr0:0X00000000 mmcr1:0X00000000828A028A mmcra:0X00000001 event:0X584 mmcr0:0X00000000 mmcr1:0X00000000828A028A mmcra:0X00000001 event:0X585 mmcr0:0X00000000 mmcr1:0X00000000828A028A mmcra:0X00000001 #Group 89 pm_fpu11, Floating point events by unit event:0X590 mmcr0:0X00000000 mmcr1:0X00000000868E8602 mmcra:0X00000001 event:0X591 mmcr0:0X00000000 mmcr1:0X00000000868E8602 mmcra:0X00000001 event:0X592 mmcr0:0X00000000 mmcr1:0X00000000868E8602 mmcra:0X00000001 event:0X593 mmcr0:0X00000000 mmcr1:0X00000000868E8602 mmcra:0X00000001 event:0X594 mmcr0:0X00000000 mmcr1:0X00000000868E8602 mmcra:0X00000001 event:0X595 mmcr0:0X00000000 mmcr1:0X00000000868E8602 mmcra:0X00000001 #Group 90 pm_fpu12, Floating point events by unit event:0X5A0 mmcr0:0X00000000 mmcr1:0X0430000CC4CC8002 mmcra:0X00000001 event:0X5A1 mmcr0:0X00000000 mmcr1:0X0430000CC4CC8002 mmcra:0X00000001 event:0X5A2 mmcr0:0X00000000 mmcr1:0X0430000CC4CC8002 mmcra:0X00000001 event:0X5A3 mmcr0:0X00000000 mmcr1:0X0430000CC4CC8002 mmcra:0X00000001 event:0X5A4 mmcr0:0X00000000 mmcr1:0X0430000CC4CC8002 mmcra:0X00000001 event:0X5A5 mmcr0:0X00000000 mmcr1:0X0430000CC4CC8002 mmcra:0X00000001 #Group 91 pm_fxu1, Fixed Point events event:0X5B0 mmcr0:0X00000000 mmcr1:0X0000000024242424 mmcra:0X00000000 event:0X5B1 mmcr0:0X00000000 mmcr1:0X0000000024242424 mmcra:0X00000000 event:0X5B2 mmcr0:0X00000000 mmcr1:0X0000000024242424 mmcra:0X00000000 event:0X5B3 mmcr0:0X00000000 mmcr1:0X0000000024242424 mmcra:0X00000000 event:0X5B4 mmcr0:0X00000000 mmcr1:0X0000000024242424 mmcra:0X00000000 event:0X5B5 mmcr0:0X00000000 mmcr1:0X0000000024242424 mmcra:0X00000000 #Group 92 pm_fxu2, Fixed Point events event:0X5C0 mmcr0:0X00000000 mmcr1:0X4000000604221020 mmcra:0X00000001 event:0X5C1 mmcr0:0X00000000 mmcr1:0X4000000604221020 mmcra:0X00000001 event:0X5C2 mmcr0:0X00000000 mmcr1:0X4000000604221020 mmcra:0X00000001 event:0X5C3 mmcr0:0X00000000 mmcr1:0X4000000604221020 mmcra:0X00000001 event:0X5C4 mmcr0:0X00000000 mmcr1:0X4000000604221020 mmcra:0X00000001 event:0X5C5 mmcr0:0X00000000 mmcr1:0X4000000604221020 mmcra:0X00000001 #Group 93 pm_fxu3, Fixed Point events event:0X5D0 mmcr0:0X00000000 mmcr1:0X404000038688C4CC mmcra:0X00000000 event:0X5D1 mmcr0:0X00000000 mmcr1:0X404000038688C4CC mmcra:0X00000000 event:0X5D2 mmcr0:0X00000000 mmcr1:0X404000038688C4CC mmcra:0X00000000 event:0X5D3 mmcr0:0X00000000 mmcr1:0X404000038688C4CC mmcra:0X00000000 event:0X5D4 mmcr0:0X00000000 mmcr1:0X404000038688C4CC mmcra:0X00000000 event:0X5D5 mmcr0:0X00000000 mmcr1:0X404000038688C4CC mmcra:0X00000000 #Group 94 pm_smt_priorities1, Thread priority events event:0X5E0 mmcr0:0X00000000 mmcr1:0X0005000FC6CCC6C8 mmcra:0X00000000 event:0X5E1 mmcr0:0X00000000 mmcr1:0X0005000FC6CCC6C8 mmcra:0X00000000 event:0X5E2 mmcr0:0X00000000 mmcr1:0X0005000FC6CCC6C8 mmcra:0X00000000 event:0X5E3 mmcr0:0X00000000 mmcr1:0X0005000FC6CCC6C8 mmcra:0X00000000 event:0X5E4 mmcr0:0X00000000 mmcr1:0X0005000FC6CCC6C8 mmcra:0X00000000 event:0X5E5 mmcr0:0X00000000 mmcr1:0X0005000FC6CCC6C8 mmcra:0X00000000 #Group 95 pm_smt_priorities2, Thread priority events event:0X5F0 mmcr0:0X00000000 mmcr1:0X0005000FC4CACACC mmcra:0X00000000 event:0X5F1 mmcr0:0X00000000 mmcr1:0X0005000FC4CACACC mmcra:0X00000000 event:0X5F2 mmcr0:0X00000000 mmcr1:0X0005000FC4CACACC mmcra:0X00000000 event:0X5F3 mmcr0:0X00000000 mmcr1:0X0005000FC4CACACC mmcra:0X00000000 event:0X5F4 mmcr0:0X00000000 mmcr1:0X0005000FC4CACACC mmcra:0X00000000 event:0X5F5 mmcr0:0X00000000 mmcr1:0X0005000FC4CACACC mmcra:0X00000000 #Group 96 pm_smt_priorities3, Thread priority events event:0X600 mmcr0:0X00000000 mmcr1:0X0005000FC2C8C4C2 mmcra:0X00000000 event:0X601 mmcr0:0X00000000 mmcr1:0X0005000FC2C8C4C2 mmcra:0X00000000 event:0X602 mmcr0:0X00000000 mmcr1:0X0005000FC2C8C4C2 mmcra:0X00000000 event:0X603 mmcr0:0X00000000 mmcr1:0X0005000FC2C8C4C2 mmcra:0X00000000 event:0X604 mmcr0:0X00000000 mmcr1:0X0005000FC2C8C4C2 mmcra:0X00000000 event:0X605 mmcr0:0X00000000 mmcr1:0X0005000FC2C8C4C2 mmcra:0X00000000 #Group 97 pm_smt_priorities4, Thread priority events event:0X610 mmcr0:0X00000000 mmcr1:0X0005000AC016C002 mmcra:0X00000001 event:0X611 mmcr0:0X00000000 mmcr1:0X0005000AC016C002 mmcra:0X00000001 event:0X612 mmcr0:0X00000000 mmcr1:0X0005000AC016C002 mmcra:0X00000001 event:0X613 mmcr0:0X00000000 mmcr1:0X0005000AC016C002 mmcra:0X00000001 event:0X614 mmcr0:0X00000000 mmcr1:0X0005000AC016C002 mmcra:0X00000001 event:0X615 mmcr0:0X00000000 mmcr1:0X0005000AC016C002 mmcra:0X00000001 #Group 98 pm_smt_both, Thread common events event:0X620 mmcr0:0X00000000 mmcr1:0X0010000016260208 mmcra:0X00000001 event:0X621 mmcr0:0X00000000 mmcr1:0X0010000016260208 mmcra:0X00000001 event:0X622 mmcr0:0X00000000 mmcr1:0X0010000016260208 mmcra:0X00000001 event:0X623 mmcr0:0X00000000 mmcr1:0X0010000016260208 mmcra:0X00000001 event:0X624 mmcr0:0X00000000 mmcr1:0X0010000016260208 mmcra:0X00000001 event:0X625 mmcr0:0X00000000 mmcr1:0X0010000016260208 mmcra:0X00000001 #Group 99 pm_smt_selection, Thread selection event:0X630 mmcr0:0X00000000 mmcr1:0X0090000086028082 mmcra:0X00000001 event:0X631 mmcr0:0X00000000 mmcr1:0X0090000086028082 mmcra:0X00000001 event:0X632 mmcr0:0X00000000 mmcr1:0X0090000086028082 mmcra:0X00000001 event:0X633 mmcr0:0X00000000 mmcr1:0X0090000086028082 mmcra:0X00000001 event:0X634 mmcr0:0X00000000 mmcr1:0X0090000086028082 mmcra:0X00000001 event:0X635 mmcr0:0X00000000 mmcr1:0X0090000086028082 mmcra:0X00000001 #Group 100 pm_smt_selectover1, Thread selection overide event:0X640 mmcr0:0X00000000 mmcr1:0X0050000002808488 mmcra:0X00000001 event:0X641 mmcr0:0X00000000 mmcr1:0X0050000002808488 mmcra:0X00000001 event:0X642 mmcr0:0X00000000 mmcr1:0X0050000002808488 mmcra:0X00000001 event:0X643 mmcr0:0X00000000 mmcr1:0X0050000002808488 mmcra:0X00000001 event:0X644 mmcr0:0X00000000 mmcr1:0X0050000002808488 mmcra:0X00000001 event:0X645 mmcr0:0X00000000 mmcr1:0X0050000002808488 mmcra:0X00000001 #Group 101 pm_smt_selectover2, Thread selection overide event:0X650 mmcr0:0X00000000 mmcr1:0X00100000021E8A86 mmcra:0X00000001 event:0X651 mmcr0:0X00000000 mmcr1:0X00100000021E8A86 mmcra:0X00000001 event:0X652 mmcr0:0X00000000 mmcr1:0X00100000021E8A86 mmcra:0X00000001 event:0X653 mmcr0:0X00000000 mmcr1:0X00100000021E8A86 mmcra:0X00000001 event:0X654 mmcr0:0X00000000 mmcr1:0X00100000021E8A86 mmcra:0X00000001 event:0X655 mmcr0:0X00000000 mmcr1:0X00100000021E8A86 mmcra:0X00000001 #Group 102 pm_fabric1, Fabric events event:0X660 mmcr0:0X00000000 mmcr1:0X305500058ECE8ECE mmcra:0X00000000 event:0X661 mmcr0:0X00000000 mmcr1:0X305500058ECE8ECE mmcra:0X00000000 event:0X662 mmcr0:0X00000000 mmcr1:0X305500058ECE8ECE mmcra:0X00000000 event:0X663 mmcr0:0X00000000 mmcr1:0X305500058ECE8ECE mmcra:0X00000000 event:0X664 mmcr0:0X00000000 mmcr1:0X305500058ECE8ECE mmcra:0X00000000 event:0X665 mmcr0:0X00000000 mmcr1:0X305500058ECE8ECE mmcra:0X00000000 #Group 103 pm_fabric2, Fabric data movement event:0X670 mmcr0:0X00000000 mmcr1:0X305500858ECE8ECE mmcra:0X00000000 event:0X671 mmcr0:0X00000000 mmcr1:0X305500858ECE8ECE mmcra:0X00000000 event:0X672 mmcr0:0X00000000 mmcr1:0X305500858ECE8ECE mmcra:0X00000000 event:0X673 mmcr0:0X00000000 mmcr1:0X305500858ECE8ECE mmcra:0X00000000 event:0X674 mmcr0:0X00000000 mmcr1:0X305500858ECE8ECE mmcra:0X00000000 event:0X675 mmcr0:0X00000000 mmcr1:0X305500858ECE8ECE mmcra:0X00000000 #Group 104 pm_fabric3, Fabric data movement event:0X680 mmcr0:0X00000000 mmcr1:0X305501858ECE8ECE mmcra:0X00000000 event:0X681 mmcr0:0X00000000 mmcr1:0X305501858ECE8ECE mmcra:0X00000000 event:0X682 mmcr0:0X00000000 mmcr1:0X305501858ECE8ECE mmcra:0X00000000 event:0X683 mmcr0:0X00000000 mmcr1:0X305501858ECE8ECE mmcra:0X00000000 event:0X684 mmcr0:0X00000000 mmcr1:0X305501858ECE8ECE mmcra:0X00000000 event:0X685 mmcr0:0X00000000 mmcr1:0X305501858ECE8ECE mmcra:0X00000000 #Group 105 pm_fabric4, Fabric data movement event:0X690 mmcr0:0X00000000 mmcr1:0X705401068ECEC68E mmcra:0X00000000 event:0X691 mmcr0:0X00000000 mmcr1:0X705401068ECEC68E mmcra:0X00000000 event:0X692 mmcr0:0X00000000 mmcr1:0X705401068ECEC68E mmcra:0X00000000 event:0X693 mmcr0:0X00000000 mmcr1:0X705401068ECEC68E mmcra:0X00000000 event:0X694 mmcr0:0X00000000 mmcr1:0X705401068ECEC68E mmcra:0X00000000 event:0X695 mmcr0:0X00000000 mmcr1:0X705401068ECEC68E mmcra:0X00000000 #Group 106 pm_snoop1, Snoop retry event:0X6A0 mmcr0:0X00000000 mmcr1:0X305500058CCC8CCC mmcra:0X00000000 event:0X6A1 mmcr0:0X00000000 mmcr1:0X305500058CCC8CCC mmcra:0X00000000 event:0X6A2 mmcr0:0X00000000 mmcr1:0X305500058CCC8CCC mmcra:0X00000000 event:0X6A3 mmcr0:0X00000000 mmcr1:0X305500058CCC8CCC mmcra:0X00000000 event:0X6A4 mmcr0:0X00000000 mmcr1:0X305500058CCC8CCC mmcra:0X00000000 event:0X6A5 mmcr0:0X00000000 mmcr1:0X305500058CCC8CCC mmcra:0X00000000 #Group 107 pm_snoop2, Snoop read retry event:0X6B0 mmcr0:0X00000000 mmcr1:0X30540A048CCC8C02 mmcra:0X00000001 event:0X6B1 mmcr0:0X00000000 mmcr1:0X30540A048CCC8C02 mmcra:0X00000001 event:0X6B2 mmcr0:0X00000000 mmcr1:0X30540A048CCC8C02 mmcra:0X00000001 event:0X6B3 mmcr0:0X00000000 mmcr1:0X30540A048CCC8C02 mmcra:0X00000001 event:0X6B4 mmcr0:0X00000000 mmcr1:0X30540A048CCC8C02 mmcra:0X00000001 event:0X6B5 mmcr0:0X00000000 mmcr1:0X30540A048CCC8C02 mmcra:0X00000001 #Group 108 pm_snoop3, Snoop write retry event:0X6C0 mmcr0:0X00000000 mmcr1:0X30550C058CCC8CCC mmcra:0X00000000 event:0X6C1 mmcr0:0X00000000 mmcr1:0X30550C058CCC8CCC mmcra:0X00000000 event:0X6C2 mmcr0:0X00000000 mmcr1:0X30550C058CCC8CCC mmcra:0X00000000 event:0X6C3 mmcr0:0X00000000 mmcr1:0X30550C058CCC8CCC mmcra:0X00000000 event:0X6C4 mmcr0:0X00000000 mmcr1:0X30550C058CCC8CCC mmcra:0X00000000 event:0X6C5 mmcr0:0X00000000 mmcr1:0X30550C058CCC8CCC mmcra:0X00000000 #Group 109 pm_snoop4, Snoop partial write retry event:0X6D0 mmcr0:0X00000000 mmcr1:0X30550E058CCC8CCC mmcra:0X00000000 event:0X6D1 mmcr0:0X00000000 mmcr1:0X30550E058CCC8CCC mmcra:0X00000000 event:0X6D2 mmcr0:0X00000000 mmcr1:0X30550E058CCC8CCC mmcra:0X00000000 event:0X6D3 mmcr0:0X00000000 mmcr1:0X30550E058CCC8CCC mmcra:0X00000000 event:0X6D4 mmcr0:0X00000000 mmcr1:0X30550E058CCC8CCC mmcra:0X00000000 event:0X6D5 mmcr0:0X00000000 mmcr1:0X30550E058CCC8CCC mmcra:0X00000000 #Group 110 pm_mem_rq, Memory read queue dispatch event:0X6E0 mmcr0:0X00000000 mmcr1:0X705402058CCC8CCE mmcra:0X00000000 event:0X6E1 mmcr0:0X00000000 mmcr1:0X705402058CCC8CCE mmcra:0X00000000 event:0X6E2 mmcr0:0X00000000 mmcr1:0X705402058CCC8CCE mmcra:0X00000000 event:0X6E3 mmcr0:0X00000000 mmcr1:0X705402058CCC8CCE mmcra:0X00000000 event:0X6E4 mmcr0:0X00000000 mmcr1:0X705402058CCC8CCE mmcra:0X00000000 event:0X6E5 mmcr0:0X00000000 mmcr1:0X705402058CCC8CCE mmcra:0X00000000 #Group 111 pm_mem_read, Memory read complete and cancel event:0X6F0 mmcr0:0X00000000 mmcr1:0X305404048CCC8C06 mmcra:0X00000000 event:0X6F1 mmcr0:0X00000000 mmcr1:0X305404048CCC8C06 mmcra:0X00000000 event:0X6F2 mmcr0:0X00000000 mmcr1:0X305404048CCC8C06 mmcra:0X00000000 event:0X6F3 mmcr0:0X00000000 mmcr1:0X305404048CCC8C06 mmcra:0X00000000 event:0X6F4 mmcr0:0X00000000 mmcr1:0X305404048CCC8C06 mmcra:0X00000000 event:0X6F5 mmcr0:0X00000000 mmcr1:0X305404048CCC8C06 mmcra:0X00000000 #Group 112 pm_mem_wq, Memory write queue dispatch event:0X700 mmcr0:0X00000000 mmcr1:0X305506058CCC8CCC mmcra:0X00000000 event:0X701 mmcr0:0X00000000 mmcr1:0X305506058CCC8CCC mmcra:0X00000000 event:0X702 mmcr0:0X00000000 mmcr1:0X305506058CCC8CCC mmcra:0X00000000 event:0X703 mmcr0:0X00000000 mmcr1:0X305506058CCC8CCC mmcra:0X00000000 event:0X704 mmcr0:0X00000000 mmcr1:0X305506058CCC8CCC mmcra:0X00000000 event:0X705 mmcr0:0X00000000 mmcr1:0X305506058CCC8CCC mmcra:0X00000000 #Group 113 pm_mem_pwq, Memory partial write queue event:0X710 mmcr0:0X00000000 mmcr1:0X305508058CCC8CCC mmcra:0X00000000 event:0X711 mmcr0:0X00000000 mmcr1:0X305508058CCC8CCC mmcra:0X00000000 event:0X712 mmcr0:0X00000000 mmcr1:0X305508058CCC8CCC mmcra:0X00000000 event:0X713 mmcr0:0X00000000 mmcr1:0X305508058CCC8CCC mmcra:0X00000000 event:0X714 mmcr0:0X00000000 mmcr1:0X305508058CCC8CCC mmcra:0X00000000 event:0X715 mmcr0:0X00000000 mmcr1:0X305508058CCC8CCC mmcra:0X00000000 #Group 114 pm_threshold, Thresholding event:0X720 mmcr0:0X00000000 mmcr1:0X0008000404C41628 mmcra:0X00000001 event:0X721 mmcr0:0X00000000 mmcr1:0X0008000404C41628 mmcra:0X00000001 event:0X722 mmcr0:0X00000000 mmcr1:0X0008000404C41628 mmcra:0X00000001 event:0X723 mmcr0:0X00000000 mmcr1:0X0008000404C41628 mmcra:0X00000001 event:0X724 mmcr0:0X00000000 mmcr1:0X0008000404C41628 mmcra:0X00000001 event:0X725 mmcr0:0X00000000 mmcr1:0X0008000404C41628 mmcra:0X00000001 #Group 115 pm_mrk_grp1, Marked group events event:0X730 mmcr0:0X00000000 mmcr1:0X0008000404C60A26 mmcra:0X00000001 event:0X731 mmcr0:0X00000000 mmcr1:0X0008000404C60A26 mmcra:0X00000001 event:0X732 mmcr0:0X00000000 mmcr1:0X0008000404C60A26 mmcra:0X00000001 event:0X733 mmcr0:0X00000000 mmcr1:0X0008000404C60A26 mmcra:0X00000001 event:0X734 mmcr0:0X00000000 mmcr1:0X0008000404C60A26 mmcra:0X00000001 event:0X735 mmcr0:0X00000000 mmcr1:0X0008000404C60A26 mmcra:0X00000001 #Group 116 pm_mrk_grp2, Marked group events event:0X740 mmcr0:0X00000000 mmcr1:0X410300022A0AC822 mmcra:0X00000001 event:0X741 mmcr0:0X00000000 mmcr1:0X410300022A0AC822 mmcra:0X00000001 event:0X742 mmcr0:0X00000000 mmcr1:0X410300022A0AC822 mmcra:0X00000001 event:0X743 mmcr0:0X00000000 mmcr1:0X410300022A0AC822 mmcra:0X00000001 event:0X744 mmcr0:0X00000000 mmcr1:0X410300022A0AC822 mmcra:0X00000001 event:0X745 mmcr0:0X00000000 mmcr1:0X410300022A0AC822 mmcra:0X00000001 #Group 117 pm_mrk_dsource1, Marked data from event:0X750 mmcr0:0X00000000 mmcr1:0X010B00030E404444 mmcra:0X00000001 event:0X751 mmcr0:0X00000000 mmcr1:0X010B00030E404444 mmcra:0X00000001 event:0X752 mmcr0:0X00000000 mmcr1:0X010B00030E404444 mmcra:0X00000001 event:0X753 mmcr0:0X00000000 mmcr1:0X010B00030E404444 mmcra:0X00000001 event:0X754 mmcr0:0X00000000 mmcr1:0X010B00030E404444 mmcra:0X00000001 event:0X755 mmcr0:0X00000000 mmcr1:0X010B00030E404444 mmcra:0X00000001 #Group 118 pm_mrk_dsource2, Marked data from event:0X760 mmcr0:0X00000000 mmcr1:0X010B00002E440210 mmcra:0X00000001 event:0X761 mmcr0:0X00000000 mmcr1:0X010B00002E440210 mmcra:0X00000001 event:0X762 mmcr0:0X00000000 mmcr1:0X010B00002E440210 mmcra:0X00000001 event:0X763 mmcr0:0X00000000 mmcr1:0X010B00002E440210 mmcra:0X00000001 event:0X764 mmcr0:0X00000000 mmcr1:0X010B00002E440210 mmcra:0X00000001 event:0X765 mmcr0:0X00000000 mmcr1:0X010B00002E440210 mmcra:0X00000001 #Group 119 pm_mrk_dsource3, Marked data from event:0X770 mmcr0:0X00000000 mmcr1:0X010B00031C484C4C mmcra:0X00000001 event:0X771 mmcr0:0X00000000 mmcr1:0X010B00031C484C4C mmcra:0X00000001 event:0X772 mmcr0:0X00000000 mmcr1:0X010B00031C484C4C mmcra:0X00000001 event:0X773 mmcr0:0X00000000 mmcr1:0X010B00031C484C4C mmcra:0X00000001 event:0X774 mmcr0:0X00000000 mmcr1:0X010B00031C484C4C mmcra:0X00000001 event:0X775 mmcr0:0X00000000 mmcr1:0X010B00031C484C4C mmcra:0X00000001 #Group 120 pm_mrk_dsource4, Marked data from event:0X780 mmcr0:0X00000000 mmcr1:0X010B000342462E42 mmcra:0X00000001 event:0X781 mmcr0:0X00000000 mmcr1:0X010B000342462E42 mmcra:0X00000001 event:0X782 mmcr0:0X00000000 mmcr1:0X010B000342462E42 mmcra:0X00000001 event:0X783 mmcr0:0X00000000 mmcr1:0X010B000342462E42 mmcra:0X00000001 event:0X784 mmcr0:0X00000000 mmcr1:0X010B000342462E42 mmcra:0X00000001 event:0X785 mmcr0:0X00000000 mmcr1:0X010B000342462E42 mmcra:0X00000001 #Group 121 pm_mrk_dsource5, Marked data from event:0X790 mmcr0:0X00000000 mmcr1:0X010B00033C4C4040 mmcra:0X00000001 event:0X791 mmcr0:0X00000000 mmcr1:0X010B00033C4C4040 mmcra:0X00000001 event:0X792 mmcr0:0X00000000 mmcr1:0X010B00033C4C4040 mmcra:0X00000001 event:0X793 mmcr0:0X00000000 mmcr1:0X010B00033C4C4040 mmcra:0X00000001 event:0X794 mmcr0:0X00000000 mmcr1:0X010B00033C4C4040 mmcra:0X00000001 event:0X795 mmcr0:0X00000000 mmcr1:0X010B00033C4C4040 mmcra:0X00000001 #Group 122 pm_mrk_dsource6, Marked data from event:0X7A0 mmcr0:0X00000000 mmcr1:0X010B000146460246 mmcra:0X00000001 event:0X7A1 mmcr0:0X00000000 mmcr1:0X010B000146460246 mmcra:0X00000001 event:0X7A2 mmcr0:0X00000000 mmcr1:0X010B000146460246 mmcra:0X00000001 event:0X7A3 mmcr0:0X00000000 mmcr1:0X010B000146460246 mmcra:0X00000001 event:0X7A4 mmcr0:0X00000000 mmcr1:0X010B000146460246 mmcra:0X00000001 event:0X7A5 mmcr0:0X00000000 mmcr1:0X010B000146460246 mmcra:0X00000001 #Group 123 pm_mrk_dsource7, Marked data from event:0X7B0 mmcr0:0X00000000 mmcr1:0X010B00034E4E3C4E mmcra:0X00000001 event:0X7B1 mmcr0:0X00000000 mmcr1:0X010B00034E4E3C4E mmcra:0X00000001 event:0X7B2 mmcr0:0X00000000 mmcr1:0X010B00034E4E3C4E mmcra:0X00000001 event:0X7B3 mmcr0:0X00000000 mmcr1:0X010B00034E4E3C4E mmcra:0X00000001 event:0X7B4 mmcr0:0X00000000 mmcr1:0X010B00034E4E3C4E mmcra:0X00000001 event:0X7B5 mmcr0:0X00000000 mmcr1:0X010B00034E4E3C4E mmcra:0X00000001 #Group 124 pm_mrk_lbmiss, Marked TLB and SLB misses event:0X7C0 mmcr0:0X00000000 mmcr1:0X0CF00000828A8C8E mmcra:0X00000001 event:0X7C1 mmcr0:0X00000000 mmcr1:0X0CF00000828A8C8E mmcra:0X00000001 event:0X7C2 mmcr0:0X00000000 mmcr1:0X0CF00000828A8C8E mmcra:0X00000001 event:0X7C3 mmcr0:0X00000000 mmcr1:0X0CF00000828A8C8E mmcra:0X00000001 event:0X7C4 mmcr0:0X00000000 mmcr1:0X0CF00000828A8C8E mmcra:0X00000001 event:0X7C5 mmcr0:0X00000000 mmcr1:0X0CF00000828A8C8E mmcra:0X00000001 #Group 125 pm_mrk_lbref, Marked TLB and SLB references event:0X7D0 mmcr0:0X00000000 mmcr1:0X0CF00000868E028E mmcra:0X00000001 event:0X7D1 mmcr0:0X00000000 mmcr1:0X0CF00000868E028E mmcra:0X00000001 event:0X7D2 mmcr0:0X00000000 mmcr1:0X0CF00000868E028E mmcra:0X00000001 event:0X7D3 mmcr0:0X00000000 mmcr1:0X0CF00000868E028E mmcra:0X00000001 event:0X7D4 mmcr0:0X00000000 mmcr1:0X0CF00000868E028E mmcra:0X00000001 event:0X7D5 mmcr0:0X00000000 mmcr1:0X0CF00000868E028E mmcra:0X00000001 #Group 126 pm_mrk_lsmiss, Marked load and store miss event:0X7E0 mmcr0:0X00000000 mmcr1:0X000800081002060A mmcra:0X00000001 event:0X7E1 mmcr0:0X00000000 mmcr1:0X000800081002060A mmcra:0X00000001 event:0X7E2 mmcr0:0X00000000 mmcr1:0X000800081002060A mmcra:0X00000001 event:0X7E3 mmcr0:0X00000000 mmcr1:0X000800081002060A mmcra:0X00000001 event:0X7E4 mmcr0:0X00000000 mmcr1:0X000800081002060A mmcra:0X00000001 event:0X7E5 mmcr0:0X00000000 mmcr1:0X000800081002060A mmcra:0X00000001 #Group 127 pm_mrk_ulsflush, Mark unaligned load and store flushes event:0X7F0 mmcr0:0X00000000 mmcr1:0X0028000406C62020 mmcra:0X00000001 event:0X7F1 mmcr0:0X00000000 mmcr1:0X0028000406C62020 mmcra:0X00000001 event:0X7F2 mmcr0:0X00000000 mmcr1:0X0028000406C62020 mmcra:0X00000001 event:0X7F3 mmcr0:0X00000000 mmcr1:0X0028000406C62020 mmcra:0X00000001 event:0X7F4 mmcr0:0X00000000 mmcr1:0X0028000406C62020 mmcra:0X00000001 event:0X7F5 mmcr0:0X00000000 mmcr1:0X0028000406C62020 mmcra:0X00000001 #Group 128 pm_mrk_misc, Misc marked instructions event:0X800 mmcr0:0X00000000 mmcr1:0X00080008CC062816 mmcra:0X00000001 event:0X801 mmcr0:0X00000000 mmcr1:0X00080008CC062816 mmcra:0X00000001 event:0X802 mmcr0:0X00000000 mmcr1:0X00080008CC062816 mmcra:0X00000001 event:0X803 mmcr0:0X00000000 mmcr1:0X00080008CC062816 mmcra:0X00000001 event:0X804 mmcr0:0X00000000 mmcr1:0X00080008CC062816 mmcra:0X00000001 event:0X805 mmcr0:0X00000000 mmcr1:0X00080008CC062816 mmcra:0X00000001 #Group 129 pm_lsref_L1, Load/Store operations and L1 activity event:0X810 mmcr0:0X00000000 mmcr1:0X803300040E1A2020 mmcra:0X00000000 event:0X811 mmcr0:0X00000000 mmcr1:0X803300040E1A2020 mmcra:0X00000000 event:0X812 mmcr0:0X00000000 mmcr1:0X803300040E1A2020 mmcra:0X00000000 event:0X813 mmcr0:0X00000000 mmcr1:0X803300040E1A2020 mmcra:0X00000000 event:0X814 mmcr0:0X00000000 mmcr1:0X803300040E1A2020 mmcra:0X00000000 event:0X815 mmcr0:0X00000000 mmcr1:0X803300040E1A2020 mmcra:0X00000000 #Group 130 pm_lsref_L2L3, Load/Store operations and L2,L3 activity event:0X820 mmcr0:0X00000000 mmcr1:0X003300001C0E2020 mmcra:0X00000000 event:0X821 mmcr0:0X00000000 mmcr1:0X003300001C0E2020 mmcra:0X00000000 event:0X822 mmcr0:0X00000000 mmcr1:0X003300001C0E2020 mmcra:0X00000000 event:0X823 mmcr0:0X00000000 mmcr1:0X003300001C0E2020 mmcra:0X00000000 event:0X824 mmcr0:0X00000000 mmcr1:0X003300001C0E2020 mmcra:0X00000000 event:0X825 mmcr0:0X00000000 mmcr1:0X003300001C0E2020 mmcra:0X00000000 #Group 131 pm_lsref_tlbmiss, Load/Store operations and TLB misses event:0X830 mmcr0:0X00000000 mmcr1:0X00B0000080882020 mmcra:0X00000000 event:0X831 mmcr0:0X00000000 mmcr1:0X00B0000080882020 mmcra:0X00000000 event:0X832 mmcr0:0X00000000 mmcr1:0X00B0000080882020 mmcra:0X00000000 event:0X833 mmcr0:0X00000000 mmcr1:0X00B0000080882020 mmcra:0X00000000 event:0X834 mmcr0:0X00000000 mmcr1:0X00B0000080882020 mmcra:0X00000000 event:0X835 mmcr0:0X00000000 mmcr1:0X00B0000080882020 mmcra:0X00000000 #Group 132 pm_Dmiss, Data cache misses event:0X840 mmcr0:0X00000000 mmcr1:0X003300001C0E1086 mmcra:0X00000000 event:0X841 mmcr0:0X00000000 mmcr1:0X003300001C0E1086 mmcra:0X00000000 event:0X842 mmcr0:0X00000000 mmcr1:0X003300001C0E1086 mmcra:0X00000000 event:0X843 mmcr0:0X00000000 mmcr1:0X003300001C0E1086 mmcra:0X00000000 event:0X844 mmcr0:0X00000000 mmcr1:0X003300001C0E1086 mmcra:0X00000000 event:0X845 mmcr0:0X00000000 mmcr1:0X003300001C0E1086 mmcra:0X00000000 #Group 133 pm_prefetchX, Prefetch events event:0X850 mmcr0:0X00000000 mmcr1:0X853300061ECCCE86 mmcra:0X00000000 event:0X851 mmcr0:0X00000000 mmcr1:0X853300061ECCCE86 mmcra:0X00000000 event:0X852 mmcr0:0X00000000 mmcr1:0X853300061ECCCE86 mmcra:0X00000000 event:0X853 mmcr0:0X00000000 mmcr1:0X853300061ECCCE86 mmcra:0X00000000 event:0X854 mmcr0:0X00000000 mmcr1:0X853300061ECCCE86 mmcra:0X00000000 event:0X855 mmcr0:0X00000000 mmcr1:0X853300061ECCCE86 mmcra:0X00000000 #Group 134 pm_branchX, Branch operations event:0X860 mmcr0:0X00000000 mmcr1:0X800000030E0E0EC8 mmcra:0X00000000 event:0X861 mmcr0:0X00000000 mmcr1:0X800000030E0E0EC8 mmcra:0X00000000 event:0X862 mmcr0:0X00000000 mmcr1:0X800000030E0E0EC8 mmcra:0X00000000 event:0X863 mmcr0:0X00000000 mmcr1:0X800000030E0E0EC8 mmcra:0X00000000 event:0X864 mmcr0:0X00000000 mmcr1:0X800000030E0E0EC8 mmcra:0X00000000 event:0X865 mmcr0:0X00000000 mmcr1:0X800000030E0E0EC8 mmcra:0X00000000 #Group 135 pm_fpuX1, Floating point events by unit event:0X870 mmcr0:0X00000000 mmcr1:0X0000000DC2CA86C0 mmcra:0X00000000 event:0X871 mmcr0:0X00000000 mmcr1:0X0000000DC2CA86C0 mmcra:0X00000000 event:0X872 mmcr0:0X00000000 mmcr1:0X0000000DC2CA86C0 mmcra:0X00000000 event:0X873 mmcr0:0X00000000 mmcr1:0X0000000DC2CA86C0 mmcra:0X00000000 event:0X874 mmcr0:0X00000000 mmcr1:0X0000000DC2CA86C0 mmcra:0X00000000 event:0X875 mmcr0:0X00000000 mmcr1:0X0000000DC2CA86C0 mmcra:0X00000000 #Group 136 pm_fpuX2, Floating point events by unit event:0X880 mmcr0:0X00000000 mmcr1:0X00000000828A828A mmcra:0X00000000 event:0X881 mmcr0:0X00000000 mmcr1:0X00000000828A828A mmcra:0X00000000 event:0X882 mmcr0:0X00000000 mmcr1:0X00000000828A828A mmcra:0X00000000 event:0X883 mmcr0:0X00000000 mmcr1:0X00000000828A828A mmcra:0X00000000 event:0X884 mmcr0:0X00000000 mmcr1:0X00000000828A828A mmcra:0X00000000 event:0X885 mmcr0:0X00000000 mmcr1:0X00000000828A828A mmcra:0X00000000 #Group 137 pm_fpuX3, Floating point events by unit event:0X890 mmcr0:0X00000000 mmcr1:0X00000000868E868E mmcra:0X00000000 event:0X891 mmcr0:0X00000000 mmcr1:0X00000000868E868E mmcra:0X00000000 event:0X892 mmcr0:0X00000000 mmcr1:0X00000000868E868E mmcra:0X00000000 event:0X893 mmcr0:0X00000000 mmcr1:0X00000000868E868E mmcra:0X00000000 event:0X894 mmcr0:0X00000000 mmcr1:0X00000000868E868E mmcra:0X00000000 event:0X895 mmcr0:0X00000000 mmcr1:0X00000000868E868E mmcra:0X00000000 #Group 138 pm_fpuX4, Floating point and L1 events event:0X8A0 mmcr0:0X00000000 mmcr1:0X0030000020102020 mmcra:0X00000000 event:0X8A1 mmcr0:0X00000000 mmcr1:0X0030000020102020 mmcra:0X00000000 event:0X8A2 mmcr0:0X00000000 mmcr1:0X0030000020102020 mmcra:0X00000000 event:0X8A3 mmcr0:0X00000000 mmcr1:0X0030000020102020 mmcra:0X00000000 event:0X8A4 mmcr0:0X00000000 mmcr1:0X0030000020102020 mmcra:0X00000000 event:0X8A5 mmcr0:0X00000000 mmcr1:0X0030000020102020 mmcra:0X00000000 #Group 139 pm_fpuX5, Floating point events event:0X8B0 mmcr0:0X00000000 mmcr1:0X0000000C2020868E mmcra:0X00000000 event:0X8B1 mmcr0:0X00000000 mmcr1:0X0000000C2020868E mmcra:0X00000000 event:0X8B2 mmcr0:0X00000000 mmcr1:0X0000000C2020868E mmcra:0X00000000 event:0X8B3 mmcr0:0X00000000 mmcr1:0X0000000C2020868E mmcra:0X00000000 event:0X8B4 mmcr0:0X00000000 mmcr1:0X0000000C2020868E mmcra:0X00000000 event:0X8B5 mmcr0:0X00000000 mmcr1:0X0000000C2020868E mmcra:0X00000000 #Group 140 pm_fpuX6, Floating point events event:0X8C0 mmcr0:0X00000000 mmcr1:0X0000000010202010 mmcra:0X00000000 event:0X8C1 mmcr0:0X00000000 mmcr1:0X0000000010202010 mmcra:0X00000000 event:0X8C2 mmcr0:0X00000000 mmcr1:0X0000000010202010 mmcra:0X00000000 event:0X8C3 mmcr0:0X00000000 mmcr1:0X0000000010202010 mmcra:0X00000000 event:0X8C4 mmcr0:0X00000000 mmcr1:0X0000000010202010 mmcra:0X00000000 event:0X8C5 mmcr0:0X00000000 mmcr1:0X0000000010202010 mmcra:0X00000000 #Group 141 pm_hpmcount1, HPM group for set 1 event:0X8D0 mmcr0:0X00000000 mmcr1:0X00000000201E2810 mmcra:0X00000000 event:0X8D1 mmcr0:0X00000000 mmcr1:0X00000000201E2810 mmcra:0X00000000 event:0X8D2 mmcr0:0X00000000 mmcr1:0X00000000201E2810 mmcra:0X00000000 event:0X8D3 mmcr0:0X00000000 mmcr1:0X00000000201E2810 mmcra:0X00000000 event:0X8D4 mmcr0:0X00000000 mmcr1:0X00000000201E2810 mmcra:0X00000000 event:0X8D5 mmcr0:0X00000000 mmcr1:0X00000000201E2810 mmcra:0X00000000 #Group 142 pm_hpmcount2, HPM group for set 2 event:0X8E0 mmcr0:0X00000000 mmcr1:0X043000041E201220 mmcra:0X00000000 event:0X8E1 mmcr0:0X00000000 mmcr1:0X043000041E201220 mmcra:0X00000000 event:0X8E2 mmcr0:0X00000000 mmcr1:0X043000041E201220 mmcra:0X00000000 event:0X8E3 mmcr0:0X00000000 mmcr1:0X043000041E201220 mmcra:0X00000000 event:0X8E4 mmcr0:0X00000000 mmcr1:0X043000041E201220 mmcra:0X00000000 event:0X8E5 mmcr0:0X00000000 mmcr1:0X043000041E201220 mmcra:0X00000000 #Group 143 pm_hpmcount3, HPM group for set 3 event:0X8F0 mmcr0:0X00000000 mmcr1:0X403000041EC21086 mmcra:0X00000000 event:0X8F1 mmcr0:0X00000000 mmcr1:0X403000041EC21086 mmcra:0X00000000 event:0X8F2 mmcr0:0X00000000 mmcr1:0X403000041EC21086 mmcra:0X00000000 event:0X8F3 mmcr0:0X00000000 mmcr1:0X403000041EC21086 mmcra:0X00000000 event:0X8F4 mmcr0:0X00000000 mmcr1:0X403000041EC21086 mmcra:0X00000000 event:0X8F5 mmcr0:0X00000000 mmcr1:0X403000041EC21086 mmcra:0X00000000 #Group 144 pm_hpmcount4, HPM group for set 7 event:0X900 mmcr0:0X00000000 mmcr1:0X00B00000101E2020 mmcra:0X00000000 event:0X901 mmcr0:0X00000000 mmcr1:0X00B00000101E2020 mmcra:0X00000000 event:0X902 mmcr0:0X00000000 mmcr1:0X00B00000101E2020 mmcra:0X00000000 event:0X903 mmcr0:0X00000000 mmcr1:0X00B00000101E2020 mmcra:0X00000000 event:0X904 mmcr0:0X00000000 mmcr1:0X00B00000101E2020 mmcra:0X00000000 event:0X905 mmcr0:0X00000000 mmcr1:0X00B00000101E2020 mmcra:0X00000000 #Group 145 pm_hpmcount5, HPM group for set 9 event:0X910 mmcr0:0X00000000 mmcr1:0X400000031E2810C4 mmcra:0X00000000 event:0X911 mmcr0:0X00000000 mmcr1:0X400000031E2810C4 mmcra:0X00000000 event:0X912 mmcr0:0X00000000 mmcr1:0X400000031E2810C4 mmcra:0X00000000 event:0X913 mmcr0:0X00000000 mmcr1:0X400000031E2810C4 mmcra:0X00000000 event:0X914 mmcr0:0X00000000 mmcr1:0X400000031E2810C4 mmcra:0X00000000 event:0X915 mmcr0:0X00000000 mmcr1:0X400000031E2810C4 mmcra:0X00000000 #Group 146 pm_eprof1, Group for use with eprof event:0X920 mmcr0:0X00000000 mmcr1:0X00300000121E108E mmcra:0X00000000 event:0X921 mmcr0:0X00000000 mmcr1:0X00300000121E108E mmcra:0X00000000 event:0X922 mmcr0:0X00000000 mmcr1:0X00300000121E108E mmcra:0X00000000 event:0X923 mmcr0:0X00000000 mmcr1:0X00300000121E108E mmcra:0X00000000 event:0X924 mmcr0:0X00000000 mmcr1:0X00300000121E108E mmcra:0X00000000 event:0X925 mmcr0:0X00000000 mmcr1:0X00300000121E108E mmcra:0X00000000 #Group 147 pm_eprof2, Group for use with eprof event:0X930 mmcr0:0X00000000 mmcr1:0X0038000810122020 mmcra:0X00000000 event:0X931 mmcr0:0X00000000 mmcr1:0X0038000810122020 mmcra:0X00000000 event:0X932 mmcr0:0X00000000 mmcr1:0X0038000810122020 mmcra:0X00000000 event:0X933 mmcr0:0X00000000 mmcr1:0X0038000810122020 mmcra:0X00000000 event:0X934 mmcr0:0X00000000 mmcr1:0X0038000810122020 mmcra:0X00000000 event:0X935 mmcr0:0X00000000 mmcr1:0X0038000810122020 mmcra:0X00000000 #Group 148 pm_eprof3, Group for use with eprof event:0X940 mmcr0:0X00000000 mmcr1:0X00380008C6121286 mmcra:0X00000000 event:0X941 mmcr0:0X00000000 mmcr1:0X00380008C6121286 mmcra:0X00000000 event:0X942 mmcr0:0X00000000 mmcr1:0X00380008C6121286 mmcra:0X00000000 event:0X943 mmcr0:0X00000000 mmcr1:0X00380008C6121286 mmcra:0X00000000 event:0X944 mmcr0:0X00000000 mmcr1:0X00380008C6121286 mmcra:0X00000000 event:0X945 mmcr0:0X00000000 mmcr1:0X00380008C6121286 mmcra:0X00000000 oprofile-0.9.9/events/ppc64/970/0000775000076400007640000000000012175511557013153 500000000000000oprofile-0.9.9/events/ppc64/970/events0000664000076400007640000014013112175510133014307 00000000000000#PPC64 PowerPC970 events # # Within each group the event names must be unique. Each event in a group is # assigned to a unique counter. The groups are from the groups defined in the # Performance Monitor Unit user guide for this processor. # # Only events within the same group can be selected simultaneously. # Each event is given a unique event number. The event number is used by the # OProfile code to resolve event names for the post-processing. This is done # to preserve compatibility with the rest of the OProfile code. The event # numbers are formatted as follows: concat(). #Group Default event:0X001 counters:1 um:zero minimum:10000 name:CYCLES : Processor Cycles #Group 1 pm_slice0, Time Slice 0 event:0X010 counters:0 um:zero minimum:10000 name:PM_RUN_CYC_GRP1 : (Group 1 pm_slice0) Run cycles event:0X011 counters:1 um:zero minimum:10000 name:PM_CYC_GRP1 : (Group 1 pm_slice0) Processor cycles event:0X012 counters:2 um:zero minimum:1000 name:PM_STOP_COMPLETION_GRP1 : (Group 1 pm_slice0) Completion stopped event:0X013 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP1 : (Group 1 pm_slice0) Instructions completed event:0X014 counters:4 um:zero minimum:1000 name:PM_1PLUS_PPC_CMPL_GRP1 : (Group 1 pm_slice0) One or more PPC instruction completed event:0X015 counters:5 um:zero minimum:10000 name:PM_CYC_GRP1 : (Group 1 pm_slice0) Processor cycles event:0X016 counters:6 um:zero minimum:1000 name:PM_GRP_CMPL_GRP1 : (Group 1 pm_slice0) Group completed event:0X017 counters:7 um:zero minimum:1000 name:PM_GRP_DISP_REJECT_GRP1 : (Group 1 pm_slice0) Group dispatch rejected #Group 2 pm_eprof, Group for use with eprof event:0X020 counters:0 um:zero minimum:10000 name:PM_CYC_GRP2 : (Group 2 pm_eprof) Processor cycles event:0X021 counters:1 um:zero minimum:10000 name:PM_CYC_GRP2 : (Group 2 pm_eprof) Processor cycles event:0X022 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP2 : (Group 2 pm_eprof) L1 D cache load misses event:0X023 counters:3 um:zero minimum:1000 name:PM_DC_INV_L2_GRP2 : (Group 2 pm_eprof) L1 D cache entries invalidated from L2 event:0X024 counters:4 um:zero minimum:1000 name:PM_INST_DISP_GRP2 : (Group 2 pm_eprof) Instructions dispatched event:0X025 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP2 : (Group 2 pm_eprof) Instructions completed event:0X026 counters:6 um:zero minimum:1000 name:PM_ST_REF_L1_GRP2 : (Group 2 pm_eprof) L1 D cache store references event:0X027 counters:7 um:zero minimum:1000 name:PM_LD_REF_L1_GRP2 : (Group 2 pm_eprof) L1 D cache load references #Group 3 pm_basic, Basic performance indicators event:0X030 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP3 : (Group 3 pm_basic) Instructions completed event:0X031 counters:1 um:zero minimum:10000 name:PM_CYC_GRP3 : (Group 3 pm_basic) Processor cycles event:0X032 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP3 : (Group 3 pm_basic) L1 D cache load misses event:0X033 counters:3 um:zero minimum:1000 name:PM_DC_INV_L2_GRP3 : (Group 3 pm_basic) L1 D cache entries invalidated from L2 event:0X034 counters:4 um:zero minimum:1000 name:PM_INST_DISP_GRP3 : (Group 3 pm_basic) Instructions dispatched event:0X035 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP3 : (Group 3 pm_basic) Instructions completed event:0X036 counters:6 um:zero minimum:1000 name:PM_ST_REF_L1_GRP3 : (Group 3 pm_basic) L1 D cache store references event:0X037 counters:7 um:zero minimum:1000 name:PM_LD_REF_L1_GRP3 : (Group 3 pm_basic) L1 D cache load references #Group 4 pm_lsu, Information on the Load Store Unit event:0X040 counters:0 um:zero minimum:1000 name:PM_LSU_FLUSH_ULD_GRP4 : (Group 4 pm_lsu) LRQ unaligned load flushes event:0X041 counters:1 um:zero minimum:1000 name:PM_LSU_FLUSH_UST_GRP4 : (Group 4 pm_lsu) SRQ unaligned store flushes event:0X042 counters:2 um:zero minimum:10000 name:PM_CYC_GRP4 : (Group 4 pm_lsu) Processor cycles event:0X043 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP4 : (Group 4 pm_lsu) Instructions completed event:0X044 counters:4 um:zero minimum:1000 name:PM_LSU_FLUSH_SRQ_GRP4 : (Group 4 pm_lsu) SRQ flushes event:0X045 counters:5 um:zero minimum:1000 name:PM_LSU_FLUSH_LRQ_GRP4 : (Group 4 pm_lsu) LRQ flushes event:0X046 counters:6 um:zero minimum:1000 name:PM_ST_REF_L1_GRP4 : (Group 4 pm_lsu) L1 D cache store references event:0X047 counters:7 um:zero minimum:1000 name:PM_LD_REF_L1_GRP4 : (Group 4 pm_lsu) L1 D cache load references #Group 5 pm_fpu1, Floating Point events event:0X050 counters:0 um:zero minimum:1000 name:PM_FPU_FDIV_GRP5 : (Group 5 pm_fpu1) FPU executed FDIV instruction event:0X051 counters:1 um:zero minimum:1000 name:PM_FPU_FMA_GRP5 : (Group 5 pm_fpu1) FPU executed multiply-add instruction event:0X052 counters:2 um:zero minimum:1000 name:PM_FPU_FEST_GRP5 : (Group 5 pm_fpu1) FPU executed FEST instruction event:0X053 counters:3 um:zero minimum:1000 name:PM_FPU_FIN_GRP5 : (Group 5 pm_fpu1) FPU produced a result event:0X054 counters:4 um:zero minimum:10000 name:PM_CYC_GRP5 : (Group 5 pm_fpu1) Processor cycles event:0X055 counters:5 um:zero minimum:1000 name:PM_FPU_FSQRT_GRP5 : (Group 5 pm_fpu1) FPU executed FSQRT instruction event:0X056 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP5 : (Group 5 pm_fpu1) Instructions completed event:0X057 counters:7 um:zero minimum:1000 name:PM_FPU_FMOV_FEST_GRP5 : (Group 5 pm_fpu1) FPU executing FMOV or FEST instructions #Group 6 pm_fpu2, Floating Point events event:0X060 counters:0 um:zero minimum:1000 name:PM_FPU_DENORM_GRP6 : (Group 6 pm_fpu2) FPU received denormalized data event:0X061 counters:1 um:zero minimum:1000 name:PM_FPU_STALL3_GRP6 : (Group 6 pm_fpu2) FPU stalled in pipe3 event:0X062 counters:2 um:zero minimum:10000 name:PM_CYC_GRP6 : (Group 6 pm_fpu2) Processor cycles event:0X063 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP6 : (Group 6 pm_fpu2) Instructions completed event:0X064 counters:4 um:zero minimum:1000 name:PM_FPU_ALL_GRP6 : (Group 6 pm_fpu2) FPU executed add, mult, sub, cmp or sel instruction event:0X065 counters:5 um:zero minimum:1000 name:PM_FPU_STF_GRP6 : (Group 6 pm_fpu2) FPU executed store instruction event:0X066 counters:6 um:zero minimum:1000 name:PM_FPU_FRSP_FCONV_GRP6 : (Group 6 pm_fpu2) FPU executed FRSP or FCONV instructions event:0X067 counters:7 um:zero minimum:1000 name:PM_LSU_LDF_GRP6 : (Group 6 pm_fpu2) LSU executed Floating Point load instruction #Group 7 pm_isu_rename, ISU Rename Pool Events event:0X070 counters:0 um:zero minimum:1000 name:PM_XER_MAP_FULL_CYC_GRP7 : (Group 7 pm_isu_rename) Cycles XER mapper full event:0X071 counters:1 um:zero minimum:1000 name:PM_CR_MAP_FULL_CYC_GRP7 : (Group 7 pm_isu_rename) Cycles CR logical operation mapper full event:0X072 counters:2 um:zero minimum:1000 name:PM_CRQ_FULL_CYC_GRP7 : (Group 7 pm_isu_rename) Cycles CR issue queue full event:0X073 counters:3 um:zero minimum:1000 name:PM_GRP_DISP_BLK_SB_CYC_GRP7 : (Group 7 pm_isu_rename) Cycles group dispatch blocked by scoreboard event:0X074 counters:4 um:zero minimum:1000 name:PM_LR_CTR_MAP_FULL_CYC_GRP7 : (Group 7 pm_isu_rename) Cycles LR/CTR mapper full event:0X075 counters:5 um:zero minimum:1000 name:PM_INST_DISP_GRP7 : (Group 7 pm_isu_rename) Instructions dispatched event:0X076 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP7 : (Group 7 pm_isu_rename) Instructions completed event:0X077 counters:7 um:zero minimum:10000 name:PM_CYC_GRP7 : (Group 7 pm_isu_rename) Processor cycles #Group 8 pm_isu_queues1, ISU Rename Pool Events event:0X080 counters:0 um:zero minimum:1000 name:PM_FPU0_FULL_CYC_GRP8 : (Group 8 pm_isu_queues1) Cycles FPU0 issue queue full event:0X081 counters:1 um:zero minimum:1000 name:PM_FPU1_FULL_CYC_GRP8 : (Group 8 pm_isu_queues1) Cycles FPU1 issue queue full event:0X082 counters:2 um:zero minimum:1000 name:PM_FXLS0_FULL_CYC_GRP8 : (Group 8 pm_isu_queues1) Cycles FXU0/LS0 queue full event:0X083 counters:3 um:zero minimum:1000 name:PM_FXLS1_FULL_CYC_GRP8 : (Group 8 pm_isu_queues1) Cycles FXU1/LS1 queue full event:0X084 counters:4 um:zero minimum:10000 name:PM_CYC_GRP8 : (Group 8 pm_isu_queues1) Processor cycles event:0X085 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP8 : (Group 8 pm_isu_queues1) Instructions completed event:0X086 counters:6 um:zero minimum:1000 name:PM_LSU_LRQ_FULL_CYC_GRP8 : (Group 8 pm_isu_queues1) Cycles LRQ full event:0X087 counters:7 um:zero minimum:1000 name:PM_LSU_SRQ_FULL_CYC_GRP8 : (Group 8 pm_isu_queues1) Cycles SRQ full #Group 9 pm_isu_flow, ISU Instruction Flow Events event:0X090 counters:0 um:zero minimum:1000 name:PM_INST_DISP_GRP9 : (Group 9 pm_isu_flow) Instructions dispatched event:0X091 counters:1 um:zero minimum:10000 name:PM_CYC_GRP9 : (Group 9 pm_isu_flow) Processor cycles event:0X092 counters:2 um:zero minimum:1000 name:PM_FXU0_FIN_GRP9 : (Group 9 pm_isu_flow) FXU0 produced a result event:0X093 counters:3 um:zero minimum:1000 name:PM_FXU1_FIN_GRP9 : (Group 9 pm_isu_flow) FXU1 produced a result event:0X094 counters:4 um:zero minimum:1000 name:PM_GRP_DISP_VALID_GRP9 : (Group 9 pm_isu_flow) Group dispatch valid event:0X095 counters:5 um:zero minimum:1000 name:PM_GRP_DISP_REJECT_GRP9 : (Group 9 pm_isu_flow) Group dispatch rejected event:0X096 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP9 : (Group 9 pm_isu_flow) Instructions completed event:0X097 counters:7 um:zero minimum:10000 name:PM_CYC_GRP9 : (Group 9 pm_isu_flow) Processor cycles #Group 10 pm_isu_work, ISU Indicators of Work Blockage event:0X0A0 counters:0 um:zero minimum:1000 name:PM_GCT_EMPTY_CYC_GRP10 : (Group 10 pm_isu_work) Cycles GCT empty event:0X0A1 counters:1 um:zero minimum:1000 name:PM_WORK_HELD_GRP10 : (Group 10 pm_isu_work) Work held event:0X0A2 counters:2 um:zero minimum:1000 name:PM_STOP_COMPLETION_GRP10 : (Group 10 pm_isu_work) Completion stopped event:0X0A3 counters:3 um:zero minimum:1000 name:PM_EE_OFF_EXT_INT_GRP10 : (Group 10 pm_isu_work) Cycles MSR(EE) bit off and external interrupt pending event:0X0A4 counters:4 um:zero minimum:10000 name:PM_CYC_GRP10 : (Group 10 pm_isu_work) Processor cycles event:0X0A5 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP10 : (Group 10 pm_isu_work) Instructions completed event:0X0A6 counters:6 um:zero minimum:1000 name:PM_EE_OFF_GRP10 : (Group 10 pm_isu_work) Cycles MSR(EE) bit off event:0X0A7 counters:7 um:zero minimum:1000 name:PM_EXT_INT_GRP10 : (Group 10 pm_isu_work) External interrupts #Group 11 pm_fpu3, Floating Point events by unit event:0X0B0 counters:0 um:zero minimum:1000 name:PM_FPU0_FDIV_GRP11 : (Group 11 pm_fpu3) FPU0 executed FDIV instruction event:0X0B1 counters:1 um:zero minimum:1000 name:PM_FPU1_FDIV_GRP11 : (Group 11 pm_fpu3) FPU1 executed FDIV instruction event:0X0B2 counters:2 um:zero minimum:1000 name:PM_FPU0_FRSP_FCONV_GRP11 : (Group 11 pm_fpu3) FPU0 executed FRSP or FCONV instructions event:0X0B3 counters:3 um:zero minimum:1000 name:PM_FPU1_FRSP_FCONV_GRP11 : (Group 11 pm_fpu3) FPU1 executed FRSP or FCONV instructions event:0X0B4 counters:4 um:zero minimum:1000 name:PM_FPU0_FMA_GRP11 : (Group 11 pm_fpu3) FPU0 executed multiply-add instruction event:0X0B5 counters:5 um:zero minimum:1000 name:PM_FPU1_FMA_GRP11 : (Group 11 pm_fpu3) FPU1 executed multiply-add instruction event:0X0B6 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP11 : (Group 11 pm_fpu3) Instructions completed event:0X0B7 counters:7 um:zero minimum:10000 name:PM_CYC_GRP11 : (Group 11 pm_fpu3) Processor cycles #Group 12 pm_fpu4, Floating Point events by unit event:0X0C0 counters:0 um:zero minimum:1000 name:PM_FPU0_FSQRT_GRP12 : (Group 12 pm_fpu4) FPU0 executed FSQRT instruction event:0X0C1 counters:1 um:zero minimum:1000 name:PM_FPU1_FSQRT_GRP12 : (Group 12 pm_fpu4) FPU1 executed FSQRT instruction event:0X0C2 counters:2 um:zero minimum:1000 name:PM_FPU0_FIN_GRP12 : (Group 12 pm_fpu4) FPU0 produced a result event:0X0C3 counters:3 um:zero minimum:1000 name:PM_FPU1_FIN_GRP12 : (Group 12 pm_fpu4) FPU1 produced a result event:0X0C4 counters:4 um:zero minimum:1000 name:PM_FPU0_ALL_GRP12 : (Group 12 pm_fpu4) FPU0 executed add, mult, sub, cmp or sel instruction event:0X0C5 counters:5 um:zero minimum:1000 name:PM_FPU1_ALL_GRP12 : (Group 12 pm_fpu4) FPU1 executed add, mult, sub, cmp or sel instruction event:0X0C6 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP12 : (Group 12 pm_fpu4) Instructions completed event:0X0C7 counters:7 um:zero minimum:10000 name:PM_CYC_GRP12 : (Group 12 pm_fpu4) Processor cycles #Group 13 pm_fpu5, Floating Point events by unit event:0X0D0 counters:0 um:zero minimum:1000 name:PM_FPU0_DENORM_GRP13 : (Group 13 pm_fpu5) FPU0 received denormalized data event:0X0D1 counters:1 um:zero minimum:1000 name:PM_FPU1_DENORM_GRP13 : (Group 13 pm_fpu5) FPU1 received denormalized data event:0X0D2 counters:2 um:zero minimum:1000 name:PM_FPU0_FMOV_FEST_GRP13 : (Group 13 pm_fpu5) FPU0 executed FMOV or FEST instructions event:0X0D3 counters:3 um:zero minimum:1000 name:PM_FPU1_FMOV_FEST_GRP13 : (Group 13 pm_fpu5) FPU1 executing FMOV or FEST instructions event:0X0D4 counters:4 um:zero minimum:10000 name:PM_CYC_GRP13 : (Group 13 pm_fpu5) Processor cycles event:0X0D5 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP13 : (Group 13 pm_fpu5) Instructions completed event:0X0D6 counters:6 um:zero minimum:1000 name:PM_FPU0_FEST_GRP13 : (Group 13 pm_fpu5) FPU0 executed FEST instruction event:0X0D7 counters:7 um:zero minimum:1000 name:PM_FPU1_FEST_GRP13 : (Group 13 pm_fpu5) FPU1 executed FEST instruction #Group 14 pm_fpu7, Floating Point events by unit event:0X0E0 counters:0 um:zero minimum:1000 name:PM_FPU0_STALL3_GRP14 : (Group 14 pm_fpu7) FPU0 stalled in pipe3 event:0X0E1 counters:1 um:zero minimum:1000 name:PM_FPU1_STALL3_GRP14 : (Group 14 pm_fpu7) FPU1 stalled in pipe3 event:0X0E2 counters:2 um:zero minimum:1000 name:PM_FPU0_FIN_GRP14 : (Group 14 pm_fpu7) FPU0 produced a result event:0X0E3 counters:3 um:zero minimum:1000 name:PM_FPU1_FIN_GRP14 : (Group 14 pm_fpu7) FPU1 produced a result event:0X0E4 counters:4 um:zero minimum:10000 name:PM_CYC_GRP14 : (Group 14 pm_fpu7) Processor cycles event:0X0E5 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP14 : (Group 14 pm_fpu7) Instructions completed event:0X0E6 counters:6 um:zero minimum:10000 name:PM_CYC_GRP14 : (Group 14 pm_fpu7) Processor cycles event:0X0E7 counters:7 um:zero minimum:1000 name:PM_FPU0_FPSCR_GRP14 : (Group 14 pm_fpu7) FPU0 executed FPSCR instruction #Group 15 pm_lsu_flush, LSU Flush Events event:0X0F0 counters:0 um:zero minimum:1000 name:PM_LSU0_FLUSH_LRQ_GRP15 : (Group 15 pm_lsu_flush) LSU0 LRQ flushes event:0X0F1 counters:1 um:zero minimum:1000 name:PM_LSU1_FLUSH_LRQ_GRP15 : (Group 15 pm_lsu_flush) LSU1 LRQ flushes event:0X0F2 counters:2 um:zero minimum:10000 name:PM_CYC_GRP15 : (Group 15 pm_lsu_flush) Processor cycles event:0X0F3 counters:3 um:zero minimum:10000 name:PM_CYC_GRP15 : (Group 15 pm_lsu_flush) Processor cycles event:0X0F4 counters:4 um:zero minimum:1000 name:PM_LSU0_FLUSH_SRQ_GRP15 : (Group 15 pm_lsu_flush) LSU0 SRQ flushes event:0X0F5 counters:5 um:zero minimum:1000 name:PM_LSU1_FLUSH_SRQ_GRP15 : (Group 15 pm_lsu_flush) LSU1 SRQ flushes event:0X0F6 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP15 : (Group 15 pm_lsu_flush) Instructions completed event:0X0F7 counters:7 um:zero minimum:10000 name:PM_CYC_GRP15 : (Group 15 pm_lsu_flush) Processor cycles #Group 16 pm_lsu_load1, LSU Load Events event:0X100 counters:0 um:zero minimum:1000 name:PM_LSU0_FLUSH_ULD_GRP16 : (Group 16 pm_lsu_load1) LSU0 unaligned load flushes event:0X101 counters:1 um:zero minimum:1000 name:PM_LSU1_FLUSH_ULD_GRP16 : (Group 16 pm_lsu_load1) LSU1 unaligned load flushes event:0X102 counters:2 um:zero minimum:1000 name:PM_LD_REF_L1_LSU0_GRP16 : (Group 16 pm_lsu_load1) LSU0 L1 D cache load references event:0X103 counters:3 um:zero minimum:1000 name:PM_LD_REF_L1_LSU1_GRP16 : (Group 16 pm_lsu_load1) LSU1 L1 D cache load references event:0X104 counters:4 um:zero minimum:10000 name:PM_CYC_GRP16 : (Group 16 pm_lsu_load1) Processor cycles event:0X105 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP16 : (Group 16 pm_lsu_load1) Instructions completed event:0X106 counters:6 um:zero minimum:1000 name:PM_LD_MISS_L1_LSU0_GRP16 : (Group 16 pm_lsu_load1) LSU0 L1 D cache load misses event:0X107 counters:7 um:zero minimum:1000 name:PM_LD_MISS_L1_LSU1_GRP16 : (Group 16 pm_lsu_load1) LSU1 L1 D cache load misses #Group 17 pm_lsu_store1, LSU Store Events event:0X110 counters:0 um:zero minimum:1000 name:PM_LSU0_FLUSH_UST_GRP17 : (Group 17 pm_lsu_store1) LSU0 unaligned store flushes event:0X111 counters:1 um:zero minimum:1000 name:PM_LSU1_FLUSH_UST_GRP17 : (Group 17 pm_lsu_store1) LSU1 unaligned store flushes event:0X112 counters:2 um:zero minimum:1000 name:PM_ST_REF_L1_LSU0_GRP17 : (Group 17 pm_lsu_store1) LSU0 L1 D cache store references event:0X113 counters:3 um:zero minimum:1000 name:PM_ST_REF_L1_LSU1_GRP17 : (Group 17 pm_lsu_store1) LSU1 L1 D cache store references event:0X114 counters:4 um:zero minimum:10000 name:PM_CYC_GRP17 : (Group 17 pm_lsu_store1) Processor cycles event:0X115 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP17 : (Group 17 pm_lsu_store1) Instructions completed event:0X116 counters:6 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP17 : (Group 17 pm_lsu_store1) L1 D cache store misses event:0X117 counters:7 um:zero minimum:1000 name:PM_DC_INV_L2_GRP17 : (Group 17 pm_lsu_store1) L1 D cache entries invalidated from L2 #Group 18 pm_lsu_store2, LSU Store Events event:0X120 counters:0 um:zero minimum:1000 name:PM_LSU0_SRQ_STFWD_GRP18 : (Group 18 pm_lsu_store2) LSU0 SRQ store forwarded event:0X121 counters:1 um:zero minimum:1000 name:PM_LSU1_SRQ_STFWD_GRP18 : (Group 18 pm_lsu_store2) LSU1 SRQ store forwarded event:0X122 counters:2 um:zero minimum:1000 name:PM_ST_REF_L1_LSU0_GRP18 : (Group 18 pm_lsu_store2) LSU0 L1 D cache store references event:0X123 counters:3 um:zero minimum:1000 name:PM_ST_REF_L1_LSU1_GRP18 : (Group 18 pm_lsu_store2) LSU1 L1 D cache store references event:0X124 counters:4 um:zero minimum:1000 name:PM_LSU0_BUSY_GRP18 : (Group 18 pm_lsu_store2) LSU0 busy event:0X125 counters:5 um:zero minimum:10000 name:PM_CYC_GRP18 : (Group 18 pm_lsu_store2) Processor cycles event:0X126 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP18 : (Group 18 pm_lsu_store2) Instructions completed event:0X127 counters:7 um:zero minimum:10000 name:PM_CYC_GRP18 : (Group 18 pm_lsu_store2) Processor cycles #Group 19 pm_lsu7, Information on the Load Store Unit event:0X130 counters:0 um:zero minimum:1000 name:PM_LSU0_DERAT_MISS_GRP19 : (Group 19 pm_lsu7) LSU0 DERAT misses event:0X131 counters:1 um:zero minimum:1000 name:PM_LSU1_DERAT_MISS_GRP19 : (Group 19 pm_lsu7) LSU1 DERAT misses event:0X132 counters:2 um:zero minimum:10000 name:PM_CYC_GRP19 : (Group 19 pm_lsu7) Processor cycles event:0X133 counters:3 um:zero minimum:10000 name:PM_CYC_GRP19 : (Group 19 pm_lsu7) Processor cycles event:0X134 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP19 : (Group 19 pm_lsu7) Instructions completed event:0X135 counters:5 um:zero minimum:10000 name:PM_CYC_GRP19 : (Group 19 pm_lsu7) Processor cycles event:0X136 counters:6 um:zero minimum:1000 name:PM_L1_DCACHE_RELOAD_VALID_GRP19 : (Group 19 pm_lsu7) L1 reload data source valid event:0X137 counters:7 um:zero minimum:10000 name:PM_CYC_GRP19 : (Group 19 pm_lsu7) Processor cycles #Group 20 pm_misc, Misc Events for testing event:0X140 counters:0 um:zero minimum:1000 name:PM_GCT_EMPTY_CYC_GRP20 : (Group 20 pm_misc) Cycles GCT empty event:0X141 counters:1 um:zero minimum:1000 name:PM_LSU_LMQ_SRQ_EMPTY_CYC_GRP20 : (Group 20 pm_misc) Cycles LMQ and SRQ empty event:0X142 counters:2 um:zero minimum:1000 name:PM_HV_CYC_GRP20 : (Group 20 pm_misc) Hypervisor Cycles event:0X143 counters:3 um:zero minimum:10000 name:PM_CYC_GRP20 : (Group 20 pm_misc) Processor cycles event:0X144 counters:4 um:zero minimum:1000 name:PM_1PLUS_PPC_CMPL_GRP20 : (Group 20 pm_misc) One or more PPC instruction completed event:0X145 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP20 : (Group 20 pm_misc) Instructions completed event:0X146 counters:6 um:zero minimum:1000 name:PM_GRP_CMPL_GRP20 : (Group 20 pm_misc) Group completed event:0X147 counters:7 um:zero minimum:1000 name:PM_TB_BIT_TRANS_GRP20 : (Group 20 pm_misc) Time Base bit transition #Group 21 pm_pe_bench1, PE Benchmarker group for FP analysis event:0X150 counters:0 um:zero minimum:1000 name:PM_FPU_FDIV_GRP21 : (Group 21 pm_pe_bench1) FPU executed FDIV instruction event:0X151 counters:1 um:zero minimum:1000 name:PM_FPU_FMA_GRP21 : (Group 21 pm_pe_bench1) FPU executed multiply-add instruction event:0X152 counters:2 um:zero minimum:1000 name:PM_FXU_FIN_GRP21 : (Group 21 pm_pe_bench1) FXU produced a result event:0X153 counters:3 um:zero minimum:1000 name:PM_FPU_FIN_GRP21 : (Group 21 pm_pe_bench1) FPU produced a result event:0X154 counters:4 um:zero minimum:10000 name:PM_CYC_GRP21 : (Group 21 pm_pe_bench1) Processor cycles event:0X155 counters:5 um:zero minimum:1000 name:PM_FPU_FSQRT_GRP21 : (Group 21 pm_pe_bench1) FPU executed FSQRT instruction event:0X156 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP21 : (Group 21 pm_pe_bench1) Instructions completed event:0X157 counters:7 um:zero minimum:1000 name:PM_FPU_FMOV_FEST_GRP21 : (Group 21 pm_pe_bench1) FPU executing FMOV or FEST instructions #Group 22 pm_pe_bench4, PE Benchmarker group for L1 and TLB event:0X160 counters:0 um:zero minimum:1000 name:PM_DTLB_MISS_GRP22 : (Group 22 pm_pe_bench4) Data TLB misses event:0X161 counters:1 um:zero minimum:1000 name:PM_ITLB_MISS_GRP22 : (Group 22 pm_pe_bench4) Instruction TLB misses event:0X162 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP22 : (Group 22 pm_pe_bench4) L1 D cache load misses event:0X163 counters:3 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP22 : (Group 22 pm_pe_bench4) L1 D cache store misses event:0X164 counters:4 um:zero minimum:10000 name:PM_CYC_GRP22 : (Group 22 pm_pe_bench4) Processor cycles event:0X165 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP22 : (Group 22 pm_pe_bench4) Instructions completed event:0X166 counters:6 um:zero minimum:1000 name:PM_ST_REF_L1_GRP22 : (Group 22 pm_pe_bench4) L1 D cache store references event:0X167 counters:7 um:zero minimum:1000 name:PM_LD_REF_L1_GRP22 : (Group 22 pm_pe_bench4) L1 D cache load references #Group 23 pm_hpmcount1, Hpmcount group for L1 and TLB behavior event:0X170 counters:0 um:zero minimum:1000 name:PM_DTLB_MISS_GRP23 : (Group 23 pm_hpmcount1) Data TLB misses event:0X171 counters:1 um:zero minimum:1000 name:PM_LSU_LMQ_SRQ_EMPTY_CYC_GRP23 : (Group 23 pm_hpmcount1) Cycles LMQ and SRQ empty event:0X172 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP23 : (Group 23 pm_hpmcount1) L1 D cache load misses event:0X173 counters:3 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP23 : (Group 23 pm_hpmcount1) L1 D cache store misses event:0X174 counters:4 um:zero minimum:10000 name:PM_CYC_GRP23 : (Group 23 pm_hpmcount1) Processor cycles event:0X175 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP23 : (Group 23 pm_hpmcount1) Instructions completed event:0X176 counters:6 um:zero minimum:1000 name:PM_ST_REF_L1_GRP23 : (Group 23 pm_hpmcount1) L1 D cache store references event:0X177 counters:7 um:zero minimum:1000 name:PM_LD_REF_L1_GRP23 : (Group 23 pm_hpmcount1) L1 D cache load references #Group 24 pm_hpmcount2, Hpmcount group for computation event:0X180 counters:0 um:zero minimum:1000 name:PM_FPU_FDIV_GRP24 : (Group 24 pm_hpmcount2) FPU executed FDIV instruction event:0X181 counters:1 um:zero minimum:1000 name:PM_FPU_FMA_GRP24 : (Group 24 pm_hpmcount2) FPU executed multiply-add instruction event:0X182 counters:2 um:zero minimum:1000 name:PM_FPU0_FIN_GRP24 : (Group 24 pm_hpmcount2) FPU0 produced a result event:0X183 counters:3 um:zero minimum:1000 name:PM_FPU1_FIN_GRP24 : (Group 24 pm_hpmcount2) FPU1 produced a result event:0X184 counters:4 um:zero minimum:10000 name:PM_CYC_GRP24 : (Group 24 pm_hpmcount2) Processor cycles event:0X185 counters:5 um:zero minimum:1000 name:PM_FPU_STF_GRP24 : (Group 24 pm_hpmcount2) FPU executed store instruction event:0X186 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP24 : (Group 24 pm_hpmcount2) Instructions completed event:0X187 counters:7 um:zero minimum:1000 name:PM_LSU_LDF_GRP24 : (Group 24 pm_hpmcount2) LSU executed Floating Point load instruction #Group 25 pm_l1andbr, L1 misses and branch misspredict analysis event:0X190 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP25 : (Group 25 pm_l1andbr) Instructions completed event:0X191 counters:1 um:zero minimum:10000 name:PM_CYC_GRP25 : (Group 25 pm_l1andbr) Processor cycles event:0X192 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP25 : (Group 25 pm_l1andbr) L1 D cache load misses event:0X193 counters:3 um:zero minimum:1000 name:PM_BR_ISSUED_GRP25 : (Group 25 pm_l1andbr) Branches issued event:0X194 counters:4 um:zero minimum:1000 name:PM_LSU0_BUSY_GRP25 : (Group 25 pm_l1andbr) LSU0 busy event:0X195 counters:5 um:zero minimum:10000 name:PM_CYC_GRP25 : (Group 25 pm_l1andbr) Processor cycles event:0X196 counters:6 um:zero minimum:1000 name:PM_BR_MPRED_CR_GRP25 : (Group 25 pm_l1andbr) Branch mispredictions due to CR bit setting event:0X197 counters:7 um:zero minimum:1000 name:PM_BR_MPRED_TA_GRP25 : (Group 25 pm_l1andbr) Branch mispredictions due to target address #Group 26 pm_imix, Instruction mix: loads, stores and branches event:0X1A0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP26 : (Group 26 pm_imix) Instructions completed event:0X1A1 counters:1 um:zero minimum:10000 name:PM_CYC_GRP26 : (Group 26 pm_imix) Processor cycles event:0X1A2 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP26 : (Group 26 pm_imix) L1 D cache load misses event:0X1A3 counters:3 um:zero minimum:1000 name:PM_BR_ISSUED_GRP26 : (Group 26 pm_imix) Branches issued event:0X1A4 counters:4 um:zero minimum:10000 name:PM_CYC_GRP26 : (Group 26 pm_imix) Processor cycles event:0X1A5 counters:5 um:zero minimum:1000 name:PM_LSU0_BUSY_GRP26 : (Group 26 pm_imix) LSU0 busy event:0X1A6 counters:6 um:zero minimum:1000 name:PM_ST_REF_L1_GRP26 : (Group 26 pm_imix) L1 D cache store references event:0X1A7 counters:7 um:zero minimum:1000 name:PM_LD_REF_L1_GRP26 : (Group 26 pm_imix) L1 D cache load references #Group 27 pm_branch, SLB and branch misspredict analysis event:0X1B0 counters:0 um:zero minimum:10000 name:PM_RUN_CYC_GRP27 : (Group 27 pm_branch) Run cycles event:0X1B1 counters:1 um:zero minimum:1000 name:PM_DSLB_MISS_GRP27 : (Group 27 pm_branch) Data SLB misses event:0X1B2 counters:2 um:zero minimum:1000 name:PM_BR_ISSUED_GRP27 : (Group 27 pm_branch) Branches issued event:0X1B3 counters:3 um:zero minimum:1000 name:PM_BR_MPRED_CR_GRP27 : (Group 27 pm_branch) Branch mispredictions due to CR bit setting event:0X1B4 counters:4 um:zero minimum:1000 name:PM_ISLB_MISS_GRP27 : (Group 27 pm_branch) Instruction SLB misses event:0X1B5 counters:5 um:zero minimum:10000 name:PM_CYC_GRP27 : (Group 27 pm_branch) Processor cycles event:0X1B6 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP27 : (Group 27 pm_branch) Instructions completed event:0X1B7 counters:7 um:zero minimum:1000 name:PM_BR_MPRED_TA_GRP27 : (Group 27 pm_branch) Branch mispredictions due to target address #Group 28 pm_data, data source and LMQ event:0X1C0 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L2_GRP28 : (Group 28 pm_data) Data loaded from L2 event:0X1C1 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP28 : (Group 28 pm_data) Instructions completed event:0X1C2 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_MEM_GRP28 : (Group 28 pm_data) Data loaded from memory event:0X1C3 counters:3 um:zero minimum:10000 name:PM_CYC_GRP28 : (Group 28 pm_data) Processor cycles event:0X1C4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP28 : (Group 28 pm_data) Instructions completed event:0X1C5 counters:5 um:zero minimum:10000 name:PM_CYC_GRP28 : (Group 28 pm_data) Processor cycles event:0X1C6 counters:6 um:zero minimum:1000 name:PM_LSU_LMQ_S0_ALLOC_GRP28 : (Group 28 pm_data) LMQ slot 0 allocated event:0X1C7 counters:7 um:zero minimum:1000 name:PM_LSU_LMQ_S0_VALID_GRP28 : (Group 28 pm_data) LMQ slot 0 valid #Group 29 pm_tlb, TLB and LRQ plus data prefetch event:0X1D0 counters:0 um:zero minimum:1000 name:PM_DTLB_MISS_GRP29 : (Group 29 pm_tlb) Data TLB misses event:0X1D1 counters:1 um:zero minimum:1000 name:PM_ITLB_MISS_GRP29 : (Group 29 pm_tlb) Instruction TLB misses event:0X1D2 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP29 : (Group 29 pm_tlb) Instructions completed event:0X1D3 counters:3 um:zero minimum:10000 name:PM_CYC_GRP29 : (Group 29 pm_tlb) Processor cycles event:0X1D4 counters:4 um:zero minimum:1000 name:PM_LSU_LRQ_S0_ALLOC_GRP29 : (Group 29 pm_tlb) LRQ slot 0 allocated event:0X1D5 counters:5 um:zero minimum:1000 name:PM_LSU_LRQ_S0_VALID_GRP29 : (Group 29 pm_tlb) LRQ slot 0 valid event:0X1D6 counters:6 um:zero minimum:1000 name:PM_L1_PREF_GRP29 : (Group 29 pm_tlb) L1 cache data prefetches event:0X1D7 counters:7 um:zero minimum:1000 name:PM_L2_PREF_GRP29 : (Group 29 pm_tlb) L2 cache prefetches #Group 30 pm_isource, inst source and tablewalk event:0X1E0 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L2_GRP30 : (Group 30 pm_isource) Instructions fetched from L2 event:0X1E1 counters:1 um:zero minimum:1000 name:PM_INST_FROM_MEM_GRP30 : (Group 30 pm_isource) Instruction fetched from memory event:0X1E2 counters:2 um:zero minimum:1000 name:PM_HV_CYC_GRP30 : (Group 30 pm_isource) Hypervisor Cycles event:0X1E3 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP30 : (Group 30 pm_isource) Instructions completed event:0X1E4 counters:4 um:zero minimum:1000 name:PM_DATA_TABLEWALK_CYC_GRP30 : (Group 30 pm_isource) Cycles doing data tablewalks event:0X1E5 counters:5 um:zero minimum:10000 name:PM_CYC_GRP30 : (Group 30 pm_isource) Processor cycles event:0X1E6 counters:6 um:zero minimum:1000 name:PM_GRP_CMPL_GRP30 : (Group 30 pm_isource) Group completed event:0X1E7 counters:7 um:zero minimum:1000 name:PM_DC_INV_L2_GRP30 : (Group 30 pm_isource) L1 D cache entries invalidated from L2 #Group 31 pm_sync, Sync and SRQ event:0X1F0 counters:0 um:zero minimum:1000 name:PM_LSU_SRQ_S0_ALLOC_GRP31 : (Group 31 pm_sync) SRQ slot 0 allocated event:0X1F1 counters:1 um:zero minimum:1000 name:PM_LSU_SRQ_S0_VALID_GRP31 : (Group 31 pm_sync) SRQ slot 0 valid event:0X1F2 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP31 : (Group 31 pm_sync) L1 D cache load misses event:0X1F3 counters:3 um:zero minimum:1000 name:PM_LSU_SRQ_SYNC_CYC_GRP31 : (Group 31 pm_sync) SRQ sync duration event:0X1F4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP31 : (Group 31 pm_sync) Instructions completed event:0X1F5 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP31 : (Group 31 pm_sync) Instructions completed event:0X1F6 counters:6 um:zero minimum:10000 name:PM_CYC_GRP31 : (Group 31 pm_sync) Processor cycles event:0X1F7 counters:7 um:zero minimum:1000 name:PM_LD_REF_L1_GRP31 : (Group 31 pm_sync) L1 D cache load references #Group 32 pm_ierat, IERAT event:0X200 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L1_GRP32 : (Group 32 pm_ierat) Instruction fetched from L1 event:0X201 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP32 : (Group 32 pm_ierat) Instructions completed event:0X202 counters:2 um:zero minimum:1000 name:PM_IERAT_XLATE_WR_GRP32 : (Group 32 pm_ierat) Translation written to ierat event:0X203 counters:3 um:zero minimum:10000 name:PM_CYC_GRP32 : (Group 32 pm_ierat) Processor cycles event:0X204 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP32 : (Group 32 pm_ierat) Instructions completed event:0X205 counters:5 um:zero minimum:10000 name:PM_CYC_GRP32 : (Group 32 pm_ierat) Processor cycles event:0X206 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP32 : (Group 32 pm_ierat) Instructions completed event:0X207 counters:7 um:zero minimum:10000 name:PM_CYC_GRP32 : (Group 32 pm_ierat) Processor cycles #Group 33 pm_derat, DERAT event:0X210 counters:0 um:zero minimum:1000 name:PM_GCT_EMPTY_CYC_GRP33 : (Group 33 pm_derat) Cycles GCT empty event:0X211 counters:1 um:zero minimum:1000 name:PM_GRP_DISP_VALID_GRP33 : (Group 33 pm_derat) Group dispatch valid event:0X212 counters:2 um:zero minimum:1000 name:PM_L1_DCACHE_RELOAD_VALID_GRP33 : (Group 33 pm_derat) L1 reload data source valid event:0X213 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP33 : (Group 33 pm_derat) Instructions completed event:0X214 counters:4 um:zero minimum:1000 name:PM_INST_DISP_GRP33 : (Group 33 pm_derat) Instructions dispatched event:0X215 counters:5 um:zero minimum:1000 name:PM_LSU_DERAT_MISS_GRP33 : (Group 33 pm_derat) DERAT misses event:0X216 counters:6 um:zero minimum:1000 name:PM_ST_REF_L1_GRP33 : (Group 33 pm_derat) L1 D cache store references event:0X217 counters:7 um:zero minimum:10000 name:PM_CYC_GRP33 : (Group 33 pm_derat) Processor cycles #Group 34 pm_mark1, Information on marked instructions event:0X220 counters:0 um:zero minimum:1000 name:PM_MRK_LD_MISS_L1_GRP34 : (Group 34 pm_mark1) Marked L1 D cache load misses event:0X221 counters:1 um:zero minimum:1000 name:PM_THRESH_TIMEO_GRP34 : (Group 34 pm_mark1) Threshold timeout event:0X222 counters:2 um:zero minimum:10000 name:PM_CYC_GRP34 : (Group 34 pm_mark1) Processor cycles event:0X223 counters:3 um:zero minimum:1000 name:PM_MRK_GRP_CMPL_GRP34 : (Group 34 pm_mark1) Marked group completed event:0X224 counters:4 um:zero minimum:1000 name:PM_GRP_MRK_GRP34 : (Group 34 pm_mark1) Group marked in IDU event:0X225 counters:5 um:zero minimum:1000 name:PM_MRK_GRP_ISSUED_GRP34 : (Group 34 pm_mark1) Marked group issued event:0X226 counters:6 um:zero minimum:1000 name:PM_MRK_INST_FIN_GRP34 : (Group 34 pm_mark1) Marked instruction finished event:0X227 counters:7 um:zero minimum:10000 name:PM_INST_CMPL_GRP34 : (Group 34 pm_mark1) Instructions completed #Group 35 pm_mark2, Marked Instructions Processing Flow event:0X230 counters:0 um:zero minimum:1000 name:PM_MRK_GRP_DISP_GRP35 : (Group 35 pm_mark2) Marked group dispatched event:0X231 counters:1 um:zero minimum:1000 name:PM_MRK_BRU_FIN_GRP35 : (Group 35 pm_mark2) Marked instruction BRU processing finished event:0X232 counters:2 um:zero minimum:10000 name:PM_CYC_GRP35 : (Group 35 pm_mark2) Processor cycles event:0X233 counters:3 um:zero minimum:1000 name:PM_MRK_CRU_FIN_GRP35 : (Group 35 pm_mark2) Marked instruction CRU processing finished event:0X234 counters:4 um:zero minimum:1000 name:PM_GRP_MRK_GRP35 : (Group 35 pm_mark2) Group marked in IDU event:0X235 counters:5 um:zero minimum:1000 name:PM_MRK_FXU_FIN_GRP35 : (Group 35 pm_mark2) Marked instruction FXU processing finished event:0X236 counters:6 um:zero minimum:1000 name:PM_MRK_FPU_FIN_GRP35 : (Group 35 pm_mark2) Marked instruction FPU processing finished event:0X237 counters:7 um:zero minimum:1000 name:PM_MRK_LSU_FIN_GRP35 : (Group 35 pm_mark2) Marked instruction LSU processing finished #Group 36 pm_mark3, Marked Stores Processing Flow event:0X240 counters:0 um:zero minimum:1000 name:PM_MRK_ST_CMPL_GRP36 : (Group 36 pm_mark3) Marked store instruction completed event:0X241 counters:1 um:zero minimum:10000 name:PM_CYC_GRP36 : (Group 36 pm_mark3) Processor cycles event:0X242 counters:2 um:zero minimum:1000 name:PM_MRK_ST_CMPL_INT_GRP36 : (Group 36 pm_mark3) Marked store completed with intervention event:0X243 counters:3 um:zero minimum:1000 name:PM_MRK_GRP_CMPL_GRP36 : (Group 36 pm_mark3) Marked group completed event:0X244 counters:4 um:zero minimum:1000 name:PM_MRK_GRP_TIMEO_GRP36 : (Group 36 pm_mark3) Marked group completion timeout event:0X245 counters:5 um:zero minimum:1000 name:PM_MRK_ST_GPS_GRP36 : (Group 36 pm_mark3) Marked store sent to GPS event:0X246 counters:6 um:zero minimum:1000 name:PM_MRK_LSU_SRQ_INST_VALID_GRP36 : (Group 36 pm_mark3) Marked instruction valid in SRQ event:0X247 counters:7 um:zero minimum:10000 name:PM_INST_CMPL_GRP36 : (Group 36 pm_mark3) Instructions completed #Group 37 pm_lsu_mark1, Load Store Unit Marked Events event:0X250 counters:0 um:zero minimum:1000 name:PM_MRK_ST_MISS_L1_GRP37 : (Group 37 pm_lsu_mark1) Marked L1 D cache store misses event:0X251 counters:1 um:zero minimum:1000 name:PM_MRK_IMR_RELOAD_GRP37 : (Group 37 pm_lsu_mark1) Marked IMR reloaded event:0X252 counters:2 um:zero minimum:1000 name:PM_MRK_LSU0_FLUSH_UST_GRP37 : (Group 37 pm_lsu_mark1) LSU0 marked unaligned store flushes event:0X253 counters:3 um:zero minimum:1000 name:PM_MRK_LSU1_FLUSH_UST_GRP37 : (Group 37 pm_lsu_mark1) LSU1 marked unaligned store flushes event:0X254 counters:4 um:zero minimum:10000 name:PM_CYC_GRP37 : (Group 37 pm_lsu_mark1) Processor cycles event:0X255 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP37 : (Group 37 pm_lsu_mark1) Instructions completed event:0X256 counters:6 um:zero minimum:1000 name:PM_MRK_LSU0_FLUSH_ULD_GRP37 : (Group 37 pm_lsu_mark1) LSU0 marked unaligned load flushes event:0X257 counters:7 um:zero minimum:1000 name:PM_MRK_LSU1_FLUSH_ULD_GRP37 : (Group 37 pm_lsu_mark1) LSU1 marked unaligned load flushes #Group 38 pm_lsu_mark2, Load Store Unit Marked Events event:0X260 counters:0 um:zero minimum:1000 name:PM_MRK_LD_MISS_L1_LSU0_GRP38 : (Group 38 pm_lsu_mark2) LSU0 L1 D cache load misses event:0X261 counters:1 um:zero minimum:1000 name:PM_MRK_LD_MISS_L1_LSU1_GRP38 : (Group 38 pm_lsu_mark2) LSU1 L1 D cache load misses event:0X262 counters:2 um:zero minimum:1000 name:PM_MRK_LSU0_FLUSH_LRQ_GRP38 : (Group 38 pm_lsu_mark2) LSU0 marked LRQ flushes event:0X263 counters:3 um:zero minimum:1000 name:PM_MRK_LSU1_FLUSH_LRQ_GRP38 : (Group 38 pm_lsu_mark2) LSU1 marked LRQ flushes event:0X264 counters:4 um:zero minimum:10000 name:PM_CYC_GRP38 : (Group 38 pm_lsu_mark2) Processor cycles event:0X265 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP38 : (Group 38 pm_lsu_mark2) Instructions completed event:0X266 counters:6 um:zero minimum:1000 name:PM_MRK_LSU0_FLUSH_SRQ_GRP38 : (Group 38 pm_lsu_mark2) LSU0 marked SRQ flushes event:0X267 counters:7 um:zero minimum:1000 name:PM_MRK_LSU1_FLUSH_SRQ_GRP38 : (Group 38 pm_lsu_mark2) LSU1 marked SRQ flushes #Group 39 pm_fxu1, Fixed Point events by unit event:0X270 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP39 : (Group 39 pm_fxu1) Instructions completed event:0X271 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP39 : (Group 39 pm_fxu1) Instructions completed event:0X272 counters:2 um:zero minimum:1000 name:PM_FXU_FIN_GRP39 : (Group 39 pm_fxu1) FXU produced a result event:0X273 counters:3 um:zero minimum:1000 name:PM_FXU1_BUSY_FXU0_IDLE_GRP39 : (Group 39 pm_fxu1) FXU1 busy FXU0 idle event:0X274 counters:4 um:zero minimum:1000 name:PM_FXU_IDLE_GRP39 : (Group 39 pm_fxu1) FXU idle event:0X275 counters:5 um:zero minimum:1000 name:PM_FXU_BUSY_GRP39 : (Group 39 pm_fxu1) FXU busy event:0X276 counters:6 um:zero minimum:1000 name:PM_FXU0_BUSY_FXU1_IDLE_GRP39 : (Group 39 pm_fxu1) FXU0 busy FXU1 idle event:0X277 counters:7 um:zero minimum:10000 name:PM_CYC_GRP39 : (Group 39 pm_fxu1) Processor cycles #Group 40 pm_fxu2, Fixed Point events by unit event:0X280 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP40 : (Group 40 pm_fxu2) Instructions completed event:0X281 counters:1 um:zero minimum:10000 name:PM_CYC_GRP40 : (Group 40 pm_fxu2) Processor cycles event:0X282 counters:2 um:zero minimum:1000 name:PM_FXLS1_FULL_CYC_GRP40 : (Group 40 pm_fxu2) Cycles FXU1/LS1 queue full event:0X283 counters:3 um:zero minimum:1000 name:PM_FXLS0_FULL_CYC_GRP40 : (Group 40 pm_fxu2) Cycles FXU0/LS0 queue full event:0X284 counters:4 um:zero minimum:1000 name:PM_FXU_IDLE_GRP40 : (Group 40 pm_fxu2) FXU idle event:0X285 counters:5 um:zero minimum:1000 name:PM_FXU_BUSY_GRP40 : (Group 40 pm_fxu2) FXU busy event:0X286 counters:6 um:zero minimum:1000 name:PM_FXU0_FIN_GRP40 : (Group 40 pm_fxu2) FXU0 produced a result event:0X287 counters:7 um:zero minimum:1000 name:PM_FXU1_FIN_GRP40 : (Group 40 pm_fxu2) FXU1 produced a result #Group 41 pm_ifu, pm_ifu event:0X290 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L1_GRP41 : (Group 41 pm_ifu) Instruction fetched from L1 event:0X291 counters:1 um:zero minimum:1000 name:PM_INST_FROM_MEM_GRP41 : (Group 41 pm_ifu) Instruction fetched from memory event:0X292 counters:2 um:zero minimum:1000 name:PM_INST_FROM_PREF_GRP41 : (Group 41 pm_ifu) Instructions fetched from prefetch event:0X293 counters:3 um:zero minimum:1000 name:PM_0INST_FETCH_GRP41 : (Group 41 pm_ifu) No instructions fetched event:0X294 counters:4 um:zero minimum:1000 name:PM_INST_FETCH_CYC_GRP41 : (Group 41 pm_ifu) Cycles at least 1 instruction fetched event:0X295 counters:5 um:zero minimum:1000 name:PM_INST_FROM_L25_MOD_GRP41 : (Group 41 pm_ifu) Instruction fetched from L2.5 modified event:0X296 counters:6 um:zero minimum:10000 name:PM_CYC_GRP41 : (Group 41 pm_ifu) Processor cycles event:0X297 counters:7 um:zero minimum:10000 name:PM_INST_CMPL_GRP41 : (Group 41 pm_ifu) Instructions completed #Group 42 pm_cpi_stack1, CPI stack analysis event:0X2A0 counters:0 um:zero minimum:1000 name:PM_LSU0_BUSY_GRP42 : (Group 42 pm_cpi_stack1) LSU0 busy event:0X2A1 counters:1 um:zero minimum:1000 name:PM_LSU1_BUSY_GRP42 : (Group 42 pm_cpi_stack1) LSU1 busy event:0X2A2 counters:2 um:zero minimum:1000 name:PM_LSU_FLUSH_GRP42 : (Group 42 pm_cpi_stack1) Flush initiated by LSU event:0X2A3 counters:3 um:zero minimum:1000 name:PM_FLUSH_LSU_BR_MPRED_GRP42 : (Group 42 pm_cpi_stack1) Flush caused by LSU or branch mispredict event:0X2A4 counters:4 um:zero minimum:1000 name:PM_CMPLU_STALL_LSU_GRP42 : (Group 42 pm_cpi_stack1) Completion stall caused by LSU instruction event:0X2A5 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP42 : (Group 42 pm_cpi_stack1) Instructions completed event:0X2A6 counters:6 um:zero minimum:1000 name:PM_CMPLU_STALL_ERAT_MISS_GRP42 : (Group 42 pm_cpi_stack1) Completion stall caused by ERAT miss event:0X2A7 counters:7 um:zero minimum:10000 name:PM_CYC_GRP42 : (Group 42 pm_cpi_stack1) Processor cycles #Group 43 pm_cpi_stack2, CPI stack analysis event:0X2B0 counters:0 um:zero minimum:1000 name:PM_CMPLU_STALL_OTHER_GRP43 : (Group 43 pm_cpi_stack2) Completion stall caused by other reason event:0X2B1 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP43 : (Group 43 pm_cpi_stack2) Instructions completed event:0X2B2 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP43 : (Group 43 pm_cpi_stack2) L1 D cache load misses event:0X2B3 counters:3 um:zero minimum:10000 name:PM_CYC_GRP43 : (Group 43 pm_cpi_stack2) Processor cycles event:0X2B4 counters:4 um:zero minimum:1000 name:PM_CMPLU_STALL_DCACHE_MISS_GRP43 : (Group 43 pm_cpi_stack2) Completion stall caused by D cache miss event:0X2B5 counters:5 um:zero minimum:1000 name:PM_LSU_DERAT_MISS_GRP43 : (Group 43 pm_cpi_stack2) DERAT misses event:0X2B6 counters:6 um:zero minimum:1000 name:PM_CMPLU_STALL_REJECT_GRP43 : (Group 43 pm_cpi_stack2) Completion stall caused by reject event:0X2B7 counters:7 um:zero minimum:1000 name:PM_LD_REF_L1_GRP43 : (Group 43 pm_cpi_stack2) L1 D cache load references #Group 44 pm_cpi_stack3, CPI stack analysis event:0X2C0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP44 : (Group 44 pm_cpi_stack3) Instructions completed event:0X2C1 counters:1 um:zero minimum:1000 name:PM_GCT_EMPTY_SRQ_FULL_GRP44 : (Group 44 pm_cpi_stack3) GCT empty caused by SRQ full event:0X2C2 counters:2 um:zero minimum:1000 name:PM_FXU_FIN_GRP44 : (Group 44 pm_cpi_stack3) FXU produced a result event:0X2C3 counters:3 um:zero minimum:1000 name:PM_FPU_FIN_GRP44 : (Group 44 pm_cpi_stack3) FPU produced a result event:0X2C4 counters:4 um:zero minimum:1000 name:PM_CMPLU_STALL_FXU_GRP44 : (Group 44 pm_cpi_stack3) Completion stall caused by FXU instruction event:0X2C5 counters:5 um:zero minimum:1000 name:PM_FXU_BUSY_GRP44 : (Group 44 pm_cpi_stack3) FXU busy event:0X2C6 counters:6 um:zero minimum:1000 name:PM_CMPLU_STALL_DIV_GRP44 : (Group 44 pm_cpi_stack3) Completion stall caused by DIV instruction event:0X2C7 counters:7 um:zero minimum:10000 name:PM_CYC_GRP44 : (Group 44 pm_cpi_stack3) Processor cycles #Group 45 pm_cpi_stack4, CPI stack analysis event:0X2D0 counters:0 um:zero minimum:1000 name:PM_FPU_FDIV_GRP45 : (Group 45 pm_cpi_stack4) FPU executed FDIV instruction event:0X2D1 counters:1 um:zero minimum:1000 name:PM_FPU_FMA_GRP45 : (Group 45 pm_cpi_stack4) FPU executed multiply-add instruction event:0X2D2 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP45 : (Group 45 pm_cpi_stack4) Instructions completed event:0X2D3 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP45 : (Group 45 pm_cpi_stack4) Instructions completed event:0X2D4 counters:4 um:zero minimum:1000 name:PM_CMPLU_STALL_FDIV_GRP45 : (Group 45 pm_cpi_stack4) Completion stall caused by FDIV or FQRT instruction event:0X2D5 counters:5 um:zero minimum:1000 name:PM_FPU_FSQRT_GRP45 : (Group 45 pm_cpi_stack4) FPU executed FSQRT instruction event:0X2D6 counters:6 um:zero minimum:1000 name:PM_CMPLU_STALL_FPU_GRP45 : (Group 45 pm_cpi_stack4) Completion stall caused by FPU instruction event:0X2D7 counters:7 um:zero minimum:10000 name:PM_CYC_GRP45 : (Group 45 pm_cpi_stack4) Processor cycles #Group 46 pm_cpi_stack5, CPI stack analysis event:0X2E0 counters:0 um:zero minimum:1000 name:PM_GCT_EMPTY_CYC_GRP46 : (Group 46 pm_cpi_stack5) Cycles GCT empty event:0X2E1 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP46 : (Group 46 pm_cpi_stack5) Instructions completed event:0X2E2 counters:2 um:zero minimum:1000 name:PM_FLUSH_BR_MPRED_GRP46 : (Group 46 pm_cpi_stack5) Flush caused by branch mispredict event:0X2E3 counters:3 um:zero minimum:1000 name:PM_BR_MPRED_TA_GRP46 : (Group 46 pm_cpi_stack5) Branch mispredictions due to target address event:0X2E4 counters:4 um:zero minimum:1000 name:PM_GCT_EMPTY_IC_MISS_GRP46 : (Group 46 pm_cpi_stack5) GCT empty due to I cache miss event:0X2E5 counters:5 um:zero minimum:10000 name:PM_CYC_GRP46 : (Group 46 pm_cpi_stack5) Processor cycles event:0X2E6 counters:6 um:zero minimum:1000 name:PM_GCT_EMPTY_BR_MPRED_GRP46 : (Group 46 pm_cpi_stack5) GCT empty due to branch mispredict event:0X2E7 counters:7 um:zero minimum:1000 name:PM_L1_WRITE_CYC_GRP46 : (Group 46 pm_cpi_stack5) Cycles writing to instruction L1 #Group 47 pm_data2, data source and LMQ event:0X2F0 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L25_SHR_GRP47 : (Group 47 pm_data2) Data loaded from L2.5 shared event:0X2F1 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP47 : (Group 47 pm_data2) Instructions completed event:0X2F2 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_L25_MOD_GRP47 : (Group 47 pm_data2) Data loaded from L2.5 modified event:0X2F3 counters:3 um:zero minimum:10000 name:PM_CYC_GRP47 : (Group 47 pm_data2) Processor cycles event:0X2F4 counters:4 um:zero minimum:10000 name:PM_INST_CMPL_GRP47 : (Group 47 pm_data2) Instructions completed event:0X2F5 counters:5 um:zero minimum:10000 name:PM_CYC_GRP47 : (Group 47 pm_data2) Processor cycles event:0X2F6 counters:6 um:zero minimum:1000 name:PM_LSU_LMQ_S0_ALLOC_GRP47 : (Group 47 pm_data2) LMQ slot 0 allocated event:0X2F7 counters:7 um:zero minimum:1000 name:PM_LSU_LMQ_S0_VALID_GRP47 : (Group 47 pm_data2) LMQ slot 0 valid #Group 48 pm_fetch_branch, Instruction fetch and branch events event:0X300 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L2_GRP48 : (Group 48 pm_fetch_branch) Instructions fetched from L2 event:0X301 counters:1 um:zero minimum:1000 name:PM_INST_FROM_MEM_GRP48 : (Group 48 pm_fetch_branch) Instruction fetched from memory event:0X302 counters:2 um:zero minimum:1000 name:PM_INST_FROM_PREF_GRP48 : (Group 48 pm_fetch_branch) Instructions fetched from prefetch event:0X303 counters:3 um:zero minimum:1000 name:PM_BR_ISSUED_GRP48 : (Group 48 pm_fetch_branch) Branches issued event:0X304 counters:4 um:zero minimum:10000 name:PM_CYC_GRP48 : (Group 48 pm_fetch_branch) Processor cycles event:0X305 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP48 : (Group 48 pm_fetch_branch) Instructions completed event:0X306 counters:6 um:zero minimum:1000 name:PM_BR_MPRED_CR_GRP48 : (Group 48 pm_fetch_branch) Branch mispredictions due to CR bit setting event:0X307 counters:7 um:zero minimum:1000 name:PM_BR_MPRED_TA_GRP48 : (Group 48 pm_fetch_branch) Branch mispredictions due to target address #Group 49 pm_l1l2_miss, L1 and L2 miss events event:0X310 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L2_GRP49 : (Group 49 pm_l1l2_miss) Data loaded from L2 event:0X311 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP49 : (Group 49 pm_l1l2_miss) Instructions completed event:0X312 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_MEM_GRP49 : (Group 49 pm_l1l2_miss) Data loaded from memory event:0X313 counters:3 um:zero minimum:1000 name:PM_LD_MISS_L1_LSU0_GRP49 : (Group 49 pm_l1l2_miss) LSU0 L1 D cache load misses event:0X314 counters:4 um:zero minimum:1000 name:PM_1PLUS_PPC_CMPL_GRP49 : (Group 49 pm_l1l2_miss) One or more PPC instruction completed event:0X315 counters:5 um:zero minimum:10000 name:PM_CYC_GRP49 : (Group 49 pm_l1l2_miss) Processor cycles event:0X316 counters:6 um:zero minimum:1000 name:PM_LD_MISS_L1_LSU1_GRP49 : (Group 49 pm_l1l2_miss) LSU1 L1 D cache load misses event:0X317 counters:7 um:zero minimum:1000 name:PM_LD_REF_L1_GRP49 : (Group 49 pm_l1l2_miss) L1 D cache load references oprofile-0.9.9/events/ppc64/970/unit_masks0000664000076400007640000000013312175510133015155 00000000000000# ppc64 970 possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/ppc64/970/event_mappings0000664000076400007640000007316112175510133016032 00000000000000#Mapping of event groups to MMCR values #Group Default event:0X001 mmcr0:0X0400C51E mmcr1:0X000000000A46F18C mmcra:0X00002001 #Group 1 pm_slice0, Time Slice 0 event:0X010 mmcr0:0X0000051E mmcr1:0X000000000A46F18C mmcra:0X00002001 event:0X011 mmcr0:0X0000051E mmcr1:0X000000000A46F18C mmcra:0X00002001 event:0X012 mmcr0:0X0000051E mmcr1:0X000000000A46F18C mmcra:0X00002001 event:0X013 mmcr0:0X0000051E mmcr1:0X000000000A46F18C mmcra:0X00002001 event:0X014 mmcr0:0X0000051E mmcr1:0X000000000A46F18C mmcra:0X00002001 event:0X015 mmcr0:0X0000051E mmcr1:0X000000000A46F18C mmcra:0X00002001 event:0X016 mmcr0:0X0000051E mmcr1:0X000000000A46F18C mmcra:0X00002001 event:0X017 mmcr0:0X0000051E mmcr1:0X000000000A46F18C mmcra:0X00002001 #Group 2 pm_eprof, Group for use with eprof event:0X020 mmcr0:0X00000F1E mmcr1:0X4003001005F09000 mmcra:0X00002001 event:0X021 mmcr0:0X00000F1E mmcr1:0X4003001005F09000 mmcra:0X00002001 event:0X022 mmcr0:0X00000F1E mmcr1:0X4003001005F09000 mmcra:0X00002001 event:0X023 mmcr0:0X00000F1E mmcr1:0X4003001005F09000 mmcra:0X00002001 event:0X024 mmcr0:0X00000F1E mmcr1:0X4003001005F09000 mmcra:0X00002001 event:0X025 mmcr0:0X00000F1E mmcr1:0X4003001005F09000 mmcra:0X00002001 event:0X026 mmcr0:0X00000F1E mmcr1:0X4003001005F09000 mmcra:0X00002001 event:0X027 mmcr0:0X00000F1E mmcr1:0X4003001005F09000 mmcra:0X00002001 #Group 3 pm_basic, Basic performance indicators event:0X030 mmcr0:0X0000091E mmcr1:0X4003001005F09000 mmcra:0X00002001 event:0X031 mmcr0:0X0000091E mmcr1:0X4003001005F09000 mmcra:0X00002001 event:0X032 mmcr0:0X0000091E mmcr1:0X4003001005F09000 mmcra:0X00002001 event:0X033 mmcr0:0X0000091E mmcr1:0X4003001005F09000 mmcra:0X00002001 event:0X034 mmcr0:0X0000091E mmcr1:0X4003001005F09000 mmcra:0X00002001 event:0X035 mmcr0:0X0000091E mmcr1:0X4003001005F09000 mmcra:0X00002001 event:0X036 mmcr0:0X0000091E mmcr1:0X4003001005F09000 mmcra:0X00002001 event:0X037 mmcr0:0X0000091E mmcr1:0X4003001005F09000 mmcra:0X00002001 #Group 4 pm_lsu, Information on the Load Store Unit event:0X040 mmcr0:0X00000000 mmcr1:0X000F00007A400000 mmcra:0X00002001 event:0X041 mmcr0:0X00000000 mmcr1:0X000F00007A400000 mmcra:0X00002001 event:0X042 mmcr0:0X00000000 mmcr1:0X000F00007A400000 mmcra:0X00002001 event:0X043 mmcr0:0X00000000 mmcr1:0X000F00007A400000 mmcra:0X00002001 event:0X044 mmcr0:0X00000000 mmcr1:0X000F00007A400000 mmcra:0X00002001 event:0X045 mmcr0:0X00000000 mmcr1:0X000F00007A400000 mmcra:0X00002001 event:0X046 mmcr0:0X00000000 mmcr1:0X000F00007A400000 mmcra:0X00002001 event:0X047 mmcr0:0X00000000 mmcr1:0X000F00007A400000 mmcra:0X00002001 #Group 5 pm_fpu1, Floating Point events event:0X050 mmcr0:0X00000000 mmcr1:0X00000000001E0480 mmcra:0X00002001 event:0X051 mmcr0:0X00000000 mmcr1:0X00000000001E0480 mmcra:0X00002001 event:0X052 mmcr0:0X00000000 mmcr1:0X00000000001E0480 mmcra:0X00002001 event:0X053 mmcr0:0X00000000 mmcr1:0X00000000001E0480 mmcra:0X00002001 event:0X054 mmcr0:0X00000000 mmcr1:0X00000000001E0480 mmcra:0X00002001 event:0X055 mmcr0:0X00000000 mmcr1:0X00000000001E0480 mmcra:0X00002001 event:0X056 mmcr0:0X00000000 mmcr1:0X00000000001E0480 mmcra:0X00002001 event:0X057 mmcr0:0X00000000 mmcr1:0X00000000001E0480 mmcra:0X00002001 #Group 6 pm_fpu2, Floating Point events event:0X060 mmcr0:0X00000000 mmcr1:0X000020E87A400000 mmcra:0X00002001 event:0X061 mmcr0:0X00000000 mmcr1:0X000020E87A400000 mmcra:0X00002001 event:0X062 mmcr0:0X00000000 mmcr1:0X000020E87A400000 mmcra:0X00002001 event:0X063 mmcr0:0X00000000 mmcr1:0X000020E87A400000 mmcra:0X00002001 event:0X064 mmcr0:0X00000000 mmcr1:0X000020E87A400000 mmcra:0X00002001 event:0X065 mmcr0:0X00000000 mmcr1:0X000020E87A400000 mmcra:0X00002001 event:0X066 mmcr0:0X00000000 mmcr1:0X000020E87A400000 mmcra:0X00002001 event:0X067 mmcr0:0X00000000 mmcr1:0X000020E87A400000 mmcra:0X00002001 #Group 7 pm_isu_rename, ISU Rename Pool Events event:0X070 mmcr0:0X00001228 mmcr1:0X400000218E6D84BC mmcra:0X00002001 event:0X071 mmcr0:0X00001228 mmcr1:0X400000218E6D84BC mmcra:0X00002001 event:0X072 mmcr0:0X00001228 mmcr1:0X400000218E6D84BC mmcra:0X00002001 event:0X073 mmcr0:0X00001228 mmcr1:0X400000218E6D84BC mmcra:0X00002001 event:0X074 mmcr0:0X00001228 mmcr1:0X400000218E6D84BC mmcra:0X00002001 event:0X075 mmcr0:0X00001228 mmcr1:0X400000218E6D84BC mmcra:0X00002001 event:0X076 mmcr0:0X00001228 mmcr1:0X400000218E6D84BC mmcra:0X00002001 event:0X077 mmcr0:0X00001228 mmcr1:0X400000218E6D84BC mmcra:0X00002001 #Group 8 pm_isu_queues1, ISU Rename Pool Events event:0X080 mmcr0:0X0000132E mmcr1:0X40000000851E994C mmcra:0X00002001 event:0X081 mmcr0:0X0000132E mmcr1:0X40000000851E994C mmcra:0X00002001 event:0X082 mmcr0:0X0000132E mmcr1:0X40000000851E994C mmcra:0X00002001 event:0X083 mmcr0:0X0000132E mmcr1:0X40000000851E994C mmcra:0X00002001 event:0X084 mmcr0:0X0000132E mmcr1:0X40000000851E994C mmcra:0X00002001 event:0X085 mmcr0:0X0000132E mmcr1:0X40000000851E994C mmcra:0X00002001 event:0X086 mmcr0:0X0000132E mmcr1:0X40000000851E994C mmcra:0X00002001 event:0X087 mmcr0:0X0000132E mmcr1:0X40000000851E994C mmcra:0X00002001 #Group 9 pm_isu_flow, ISU Instruction Flow Events event:0X090 mmcr0:0X0000181E mmcr1:0X400000B3D7B7C4BC mmcra:0X00002001 event:0X091 mmcr0:0X0000181E mmcr1:0X400000B3D7B7C4BC mmcra:0X00002001 event:0X092 mmcr0:0X0000181E mmcr1:0X400000B3D7B7C4BC mmcra:0X00002001 event:0X093 mmcr0:0X0000181E mmcr1:0X400000B3D7B7C4BC mmcra:0X00002001 event:0X094 mmcr0:0X0000181E mmcr1:0X400000B3D7B7C4BC mmcra:0X00002001 event:0X095 mmcr0:0X0000181E mmcr1:0X400000B3D7B7C4BC mmcra:0X00002001 event:0X096 mmcr0:0X0000181E mmcr1:0X400000B3D7B7C4BC mmcra:0X00002001 event:0X097 mmcr0:0X0000181E mmcr1:0X400000B3D7B7C4BC mmcra:0X00002001 #Group 10 pm_isu_work, ISU Indicators of Work Blockage event:0X0A0 mmcr0:0X00000402 mmcr1:0X400000050FDE9D88 mmcra:0X00002001 event:0X0A1 mmcr0:0X00000402 mmcr1:0X400000050FDE9D88 mmcra:0X00002001 event:0X0A2 mmcr0:0X00000402 mmcr1:0X400000050FDE9D88 mmcra:0X00002001 event:0X0A3 mmcr0:0X00000402 mmcr1:0X400000050FDE9D88 mmcra:0X00002001 event:0X0A4 mmcr0:0X00000402 mmcr1:0X400000050FDE9D88 mmcra:0X00002001 event:0X0A5 mmcr0:0X00000402 mmcr1:0X400000050FDE9D88 mmcra:0X00002001 event:0X0A6 mmcr0:0X00000402 mmcr1:0X400000050FDE9D88 mmcra:0X00002001 event:0X0A7 mmcr0:0X00000402 mmcr1:0X400000050FDE9D88 mmcra:0X00002001 #Group 11 pm_fpu3, Floating Point events by unit event:0X0B0 mmcr0:0X00001028 mmcr1:0X000000008D6354BC mmcra:0X00002001 event:0X0B1 mmcr0:0X00001028 mmcr1:0X000000008D6354BC mmcra:0X00002001 event:0X0B2 mmcr0:0X00001028 mmcr1:0X000000008D6354BC mmcra:0X00002001 event:0X0B3 mmcr0:0X00001028 mmcr1:0X000000008D6354BC mmcra:0X00002001 event:0X0B4 mmcr0:0X00001028 mmcr1:0X000000008D6354BC mmcra:0X00002001 event:0X0B5 mmcr0:0X00001028 mmcr1:0X000000008D6354BC mmcra:0X00002001 event:0X0B6 mmcr0:0X00001028 mmcr1:0X000000008D6354BC mmcra:0X00002001 event:0X0B7 mmcr0:0X00001028 mmcr1:0X000000008D6354BC mmcra:0X00002001 #Group 12 pm_fpu4, Floating Point events by unit event:0X0C0 mmcr0:0X0000122C mmcr1:0X000000009DE774BC mmcra:0X00002001 event:0X0C1 mmcr0:0X0000122C mmcr1:0X000000009DE774BC mmcra:0X00002001 event:0X0C2 mmcr0:0X0000122C mmcr1:0X000000009DE774BC mmcra:0X00002001 event:0X0C3 mmcr0:0X0000122C mmcr1:0X000000009DE774BC mmcra:0X00002001 event:0X0C4 mmcr0:0X0000122C mmcr1:0X000000009DE774BC mmcra:0X00002001 event:0X0C5 mmcr0:0X0000122C mmcr1:0X000000009DE774BC mmcra:0X00002001 event:0X0C6 mmcr0:0X0000122C mmcr1:0X000000009DE774BC mmcra:0X00002001 event:0X0C7 mmcr0:0X0000122C mmcr1:0X000000009DE774BC mmcra:0X00002001 #Group 13 pm_fpu5, Floating Point events by unit event:0X0D0 mmcr0:0X00001838 mmcr1:0X000000C0851E9958 mmcra:0X00002001 event:0X0D1 mmcr0:0X00001838 mmcr1:0X000000C0851E9958 mmcra:0X00002001 event:0X0D2 mmcr0:0X00001838 mmcr1:0X000000C0851E9958 mmcra:0X00002001 event:0X0D3 mmcr0:0X00001838 mmcr1:0X000000C0851E9958 mmcra:0X00002001 event:0X0D4 mmcr0:0X00001838 mmcr1:0X000000C0851E9958 mmcra:0X00002001 event:0X0D5 mmcr0:0X00001838 mmcr1:0X000000C0851E9958 mmcra:0X00002001 event:0X0D6 mmcr0:0X00001838 mmcr1:0X000000C0851E9958 mmcra:0X00002001 event:0X0D7 mmcr0:0X00001838 mmcr1:0X000000C0851E9958 mmcra:0X00002001 #Group 14 pm_fpu7, Floating Point events by unit event:0X0E0 mmcr0:0X0000193A mmcr1:0X000000C89DDE97E0 mmcra:0X00002001 event:0X0E1 mmcr0:0X0000193A mmcr1:0X000000C89DDE97E0 mmcra:0X00002001 event:0X0E2 mmcr0:0X0000193A mmcr1:0X000000C89DDE97E0 mmcra:0X00002001 event:0X0E3 mmcr0:0X0000193A mmcr1:0X000000C89DDE97E0 mmcra:0X00002001 event:0X0E4 mmcr0:0X0000193A mmcr1:0X000000C89DDE97E0 mmcra:0X00002001 event:0X0E5 mmcr0:0X0000193A mmcr1:0X000000C89DDE97E0 mmcra:0X00002001 event:0X0E6 mmcr0:0X0000193A mmcr1:0X000000C89DDE97E0 mmcra:0X00002001 event:0X0E7 mmcr0:0X0000193A mmcr1:0X000000C89DDE97E0 mmcra:0X00002001 #Group 15 pm_lsu_flush, LSU Flush Events event:0X0F0 mmcr0:0X0000122C mmcr1:0X000C00007BE774BC mmcra:0X00002001 event:0X0F1 mmcr0:0X0000122C mmcr1:0X000C00007BE774BC mmcra:0X00002001 event:0X0F2 mmcr0:0X0000122C mmcr1:0X000C00007BE774BC mmcra:0X00002001 event:0X0F3 mmcr0:0X0000122C mmcr1:0X000C00007BE774BC mmcra:0X00002001 event:0X0F4 mmcr0:0X0000122C mmcr1:0X000C00007BE774BC mmcra:0X00002001 event:0X0F5 mmcr0:0X0000122C mmcr1:0X000C00007BE774BC mmcra:0X00002001 event:0X0F6 mmcr0:0X0000122C mmcr1:0X000C00007BE774BC mmcra:0X00002001 event:0X0F7 mmcr0:0X0000122C mmcr1:0X000C00007BE774BC mmcra:0X00002001 #Group 16 pm_lsu_load1, LSU Load Events event:0X100 mmcr0:0X00001028 mmcr1:0X000F0000851E9958 mmcra:0X00002001 event:0X101 mmcr0:0X00001028 mmcr1:0X000F0000851E9958 mmcra:0X00002001 event:0X102 mmcr0:0X00001028 mmcr1:0X000F0000851E9958 mmcra:0X00002001 event:0X103 mmcr0:0X00001028 mmcr1:0X000F0000851E9958 mmcra:0X00002001 event:0X104 mmcr0:0X00001028 mmcr1:0X000F0000851E9958 mmcra:0X00002001 event:0X105 mmcr0:0X00001028 mmcr1:0X000F0000851E9958 mmcra:0X00002001 event:0X106 mmcr0:0X00001028 mmcr1:0X000F0000851E9958 mmcra:0X00002001 event:0X107 mmcr0:0X00001028 mmcr1:0X000F0000851E9958 mmcra:0X00002001 #Group 17 pm_lsu_store1, LSU Store Events event:0X110 mmcr0:0X0000112A mmcr1:0X000F00008D5E99DC mmcra:0X00002001 event:0X111 mmcr0:0X0000112A mmcr1:0X000F00008D5E99DC mmcra:0X00002001 event:0X112 mmcr0:0X0000112A mmcr1:0X000F00008D5E99DC mmcra:0X00002001 event:0X113 mmcr0:0X0000112A mmcr1:0X000F00008D5E99DC mmcra:0X00002001 event:0X114 mmcr0:0X0000112A mmcr1:0X000F00008D5E99DC mmcra:0X00002001 event:0X115 mmcr0:0X0000112A mmcr1:0X000F00008D5E99DC mmcra:0X00002001 event:0X116 mmcr0:0X0000112A mmcr1:0X000F00008D5E99DC mmcra:0X00002001 event:0X117 mmcr0:0X0000112A mmcr1:0X000F00008D5E99DC mmcra:0X00002001 #Group 18 pm_lsu_store2, LSU Store Events event:0X120 mmcr0:0X00001838 mmcr1:0X0003C0D08D76F4BC mmcra:0X00002001 event:0X121 mmcr0:0X00001838 mmcr1:0X0003C0D08D76F4BC mmcra:0X00002001 event:0X122 mmcr0:0X00001838 mmcr1:0X0003C0D08D76F4BC mmcra:0X00002001 event:0X123 mmcr0:0X00001838 mmcr1:0X0003C0D08D76F4BC mmcra:0X00002001 event:0X124 mmcr0:0X00001838 mmcr1:0X0003C0D08D76F4BC mmcra:0X00002001 event:0X125 mmcr0:0X00001838 mmcr1:0X0003C0D08D76F4BC mmcra:0X00002001 event:0X126 mmcr0:0X00001838 mmcr1:0X0003C0D08D76F4BC mmcra:0X00002001 event:0X127 mmcr0:0X00001838 mmcr1:0X0003C0D08D76F4BC mmcra:0X00002001 #Group 19 pm_lsu7, Information on the Load Store Unit event:0X130 mmcr0:0X0000122C mmcr1:0X000830047BD2FE3C mmcra:0X00002001 event:0X131 mmcr0:0X0000122C mmcr1:0X000830047BD2FE3C mmcra:0X00002001 event:0X132 mmcr0:0X0000122C mmcr1:0X000830047BD2FE3C mmcra:0X00002001 event:0X133 mmcr0:0X0000122C mmcr1:0X000830047BD2FE3C mmcra:0X00002001 event:0X134 mmcr0:0X0000122C mmcr1:0X000830047BD2FE3C mmcra:0X00002001 event:0X135 mmcr0:0X0000122C mmcr1:0X000830047BD2FE3C mmcra:0X00002001 event:0X136 mmcr0:0X0000122C mmcr1:0X000830047BD2FE3C mmcra:0X00002001 event:0X137 mmcr0:0X0000122C mmcr1:0X000830047BD2FE3C mmcra:0X00002001 #Group 20 pm_misc, Misc Events for testing event:0X140 mmcr0:0X00000404 mmcr1:0X0000000023C69194 mmcra:0X00002001 event:0X141 mmcr0:0X00000404 mmcr1:0X0000000023C69194 mmcra:0X00002001 event:0X142 mmcr0:0X00000404 mmcr1:0X0000000023C69194 mmcra:0X00002001 event:0X143 mmcr0:0X00000404 mmcr1:0X0000000023C69194 mmcra:0X00002001 event:0X144 mmcr0:0X00000404 mmcr1:0X0000000023C69194 mmcra:0X00002001 event:0X145 mmcr0:0X00000404 mmcr1:0X0000000023C69194 mmcra:0X00002001 event:0X146 mmcr0:0X00000404 mmcr1:0X0000000023C69194 mmcra:0X00002001 event:0X147 mmcr0:0X00000404 mmcr1:0X0000000023C69194 mmcra:0X00002001 #Group 21 pm_pe_bench1, PE Benchmarker group for FP analysis event:0X150 mmcr0:0X00000000 mmcr1:0X10001002001E0480 mmcra:0X00002001 event:0X151 mmcr0:0X00000000 mmcr1:0X10001002001E0480 mmcra:0X00002001 event:0X152 mmcr0:0X00000000 mmcr1:0X10001002001E0480 mmcra:0X00002001 event:0X153 mmcr0:0X00000000 mmcr1:0X10001002001E0480 mmcra:0X00002001 event:0X154 mmcr0:0X00000000 mmcr1:0X10001002001E0480 mmcra:0X00002001 event:0X155 mmcr0:0X00000000 mmcr1:0X10001002001E0480 mmcra:0X00002001 event:0X156 mmcr0:0X00000000 mmcr1:0X10001002001E0480 mmcra:0X00002001 event:0X157 mmcr0:0X00000000 mmcr1:0X10001002001E0480 mmcra:0X00002001 #Group 22 pm_pe_bench4, PE Benchmarker group for L1 and TLB event:0X160 mmcr0:0X00001420 mmcr1:0X000B000004DE9000 mmcra:0X00002001 event:0X161 mmcr0:0X00001420 mmcr1:0X000B000004DE9000 mmcra:0X00002001 event:0X162 mmcr0:0X00001420 mmcr1:0X000B000004DE9000 mmcra:0X00002001 event:0X163 mmcr0:0X00001420 mmcr1:0X000B000004DE9000 mmcra:0X00002001 event:0X164 mmcr0:0X00001420 mmcr1:0X000B000004DE9000 mmcra:0X00002001 event:0X165 mmcr0:0X00001420 mmcr1:0X000B000004DE9000 mmcra:0X00002001 event:0X166 mmcr0:0X00001420 mmcr1:0X000B000004DE9000 mmcra:0X00002001 event:0X167 mmcr0:0X00001420 mmcr1:0X000B000004DE9000 mmcra:0X00002001 #Group 23 pm_hpmcount1, Hpmcount group for L1 and TLB behavior event:0X170 mmcr0:0X00001404 mmcr1:0X000B000004DE9000 mmcra:0X00002001 event:0X171 mmcr0:0X00001404 mmcr1:0X000B000004DE9000 mmcra:0X00002001 event:0X172 mmcr0:0X00001404 mmcr1:0X000B000004DE9000 mmcra:0X00002001 event:0X173 mmcr0:0X00001404 mmcr1:0X000B000004DE9000 mmcra:0X00002001 event:0X174 mmcr0:0X00001404 mmcr1:0X000B000004DE9000 mmcra:0X00002001 event:0X175 mmcr0:0X00001404 mmcr1:0X000B000004DE9000 mmcra:0X00002001 event:0X176 mmcr0:0X00001404 mmcr1:0X000B000004DE9000 mmcra:0X00002001 event:0X177 mmcr0:0X00001404 mmcr1:0X000B000004DE9000 mmcra:0X00002001 #Group 24 pm_hpmcount2, Hpmcount group for computation event:0X180 mmcr0:0X00000000 mmcr1:0X000020289DDE0480 mmcra:0X00002001 event:0X181 mmcr0:0X00000000 mmcr1:0X000020289DDE0480 mmcra:0X00002001 event:0X182 mmcr0:0X00000000 mmcr1:0X000020289DDE0480 mmcra:0X00002001 event:0X183 mmcr0:0X00000000 mmcr1:0X000020289DDE0480 mmcra:0X00002001 event:0X184 mmcr0:0X00000000 mmcr1:0X000020289DDE0480 mmcra:0X00002001 event:0X185 mmcr0:0X00000000 mmcr1:0X000020289DDE0480 mmcra:0X00002001 event:0X186 mmcr0:0X00000000 mmcr1:0X000020289DDE0480 mmcra:0X00002001 event:0X187 mmcr0:0X00000000 mmcr1:0X000020289DDE0480 mmcra:0X00002001 #Group 25 pm_l1andbr, L1 misses and branch misspredict analysis event:0X190 mmcr0:0X0000091E mmcr1:0X8003C01D0676FD6C mmcra:0X00002001 event:0X191 mmcr0:0X0000091E mmcr1:0X8003C01D0676FD6C mmcra:0X00002001 event:0X192 mmcr0:0X0000091E mmcr1:0X8003C01D0676FD6C mmcra:0X00002001 event:0X193 mmcr0:0X0000091E mmcr1:0X8003C01D0676FD6C mmcra:0X00002001 event:0X194 mmcr0:0X0000091E mmcr1:0X8003C01D0676FD6C mmcra:0X00002001 event:0X195 mmcr0:0X0000091E mmcr1:0X8003C01D0676FD6C mmcra:0X00002001 event:0X196 mmcr0:0X0000091E mmcr1:0X8003C01D0676FD6C mmcra:0X00002001 event:0X197 mmcr0:0X0000091E mmcr1:0X8003C01D0676FD6C mmcra:0X00002001 #Group 26 pm_imix, Instruction mix: loads, stores and branches event:0X1A0 mmcr0:0X0000091E mmcr1:0X8003C021065FB000 mmcra:0X00002001 event:0X1A1 mmcr0:0X0000091E mmcr1:0X8003C021065FB000 mmcra:0X00002001 event:0X1A2 mmcr0:0X0000091E mmcr1:0X8003C021065FB000 mmcra:0X00002001 event:0X1A3 mmcr0:0X0000091E mmcr1:0X8003C021065FB000 mmcra:0X00002001 event:0X1A4 mmcr0:0X0000091E mmcr1:0X8003C021065FB000 mmcra:0X00002001 event:0X1A5 mmcr0:0X0000091E mmcr1:0X8003C021065FB000 mmcra:0X00002001 event:0X1A6 mmcr0:0X0000091E mmcr1:0X8003C021065FB000 mmcra:0X00002001 event:0X1A7 mmcr0:0X0000091E mmcr1:0X8003C021065FB000 mmcra:0X00002001 #Group 27 pm_branch, SLB and branch misspredict analysis event:0X1B0 mmcr0:0X0000052A mmcr1:0X8008000BCEA2F4EC mmcra:0X00002001 event:0X1B1 mmcr0:0X0000052A mmcr1:0X8008000BCEA2F4EC mmcra:0X00002001 event:0X1B2 mmcr0:0X0000052A mmcr1:0X8008000BCEA2F4EC mmcra:0X00002001 event:0X1B3 mmcr0:0X0000052A mmcr1:0X8008000BCEA2F4EC mmcra:0X00002001 event:0X1B4 mmcr0:0X0000052A mmcr1:0X8008000BCEA2F4EC mmcra:0X00002001 event:0X1B5 mmcr0:0X0000052A mmcr1:0X8008000BCEA2F4EC mmcra:0X00002001 event:0X1B6 mmcr0:0X0000052A mmcr1:0X8008000BCEA2F4EC mmcra:0X00002001 event:0X1B7 mmcr0:0X0000052A mmcr1:0X8008000BCEA2F4EC mmcra:0X00002001 #Group 28 pm_data, data source and LMQ event:0X1C0 mmcr0:0X00000712 mmcr1:0X0000300E3BD2FF74 mmcra:0X00002001 event:0X1C1 mmcr0:0X00000712 mmcr1:0X0000300E3BD2FF74 mmcra:0X00002001 event:0X1C2 mmcr0:0X00000712 mmcr1:0X0000300E3BD2FF74 mmcra:0X00002001 event:0X1C3 mmcr0:0X00000712 mmcr1:0X0000300E3BD2FF74 mmcra:0X00002001 event:0X1C4 mmcr0:0X00000712 mmcr1:0X0000300E3BD2FF74 mmcra:0X00002001 event:0X1C5 mmcr0:0X00000712 mmcr1:0X0000300E3BD2FF74 mmcra:0X00002001 event:0X1C6 mmcr0:0X00000712 mmcr1:0X0000300E3BD2FF74 mmcra:0X00002001 event:0X1C7 mmcr0:0X00000712 mmcr1:0X0000300E3BD2FF74 mmcra:0X00002001 #Group 29 pm_tlb, TLB and LRQ plus data prefetch event:0X1D0 mmcr0:0X00001420 mmcr1:0X0008E03C4BFDACEC mmcra:0X00002001 event:0X1D1 mmcr0:0X00001420 mmcr1:0X0008E03C4BFDACEC mmcra:0X00002001 event:0X1D2 mmcr0:0X00001420 mmcr1:0X0008E03C4BFDACEC mmcra:0X00002001 event:0X1D3 mmcr0:0X00001420 mmcr1:0X0008E03C4BFDACEC mmcra:0X00002001 event:0X1D4 mmcr0:0X00001420 mmcr1:0X0008E03C4BFDACEC mmcra:0X00002001 event:0X1D5 mmcr0:0X00001420 mmcr1:0X0008E03C4BFDACEC mmcra:0X00002001 event:0X1D6 mmcr0:0X00001420 mmcr1:0X0008E03C4BFDACEC mmcra:0X00002001 event:0X1D7 mmcr0:0X00001420 mmcr1:0X0008E03C4BFDACEC mmcra:0X00002001 #Group 30 pm_isource, inst source and tablewalk event:0X1E0 mmcr0:0X0000060C mmcr1:0X800B00C0226EF1DC mmcra:0X00002001 event:0X1E1 mmcr0:0X0000060C mmcr1:0X800B00C0226EF1DC mmcra:0X00002001 event:0X1E2 mmcr0:0X0000060C mmcr1:0X800B00C0226EF1DC mmcra:0X00002001 event:0X1E3 mmcr0:0X0000060C mmcr1:0X800B00C0226EF1DC mmcra:0X00002001 event:0X1E4 mmcr0:0X0000060C mmcr1:0X800B00C0226EF1DC mmcra:0X00002001 event:0X1E5 mmcr0:0X0000060C mmcr1:0X800B00C0226EF1DC mmcra:0X00002001 event:0X1E6 mmcr0:0X0000060C mmcr1:0X800B00C0226EF1DC mmcra:0X00002001 event:0X1E7 mmcr0:0X0000060C mmcr1:0X800B00C0226EF1DC mmcra:0X00002001 #Group 31 pm_sync, Sync and SRQ event:0X1F0 mmcr0:0X00001D32 mmcr1:0X0003E0C107529780 mmcra:0X00002001 event:0X1F1 mmcr0:0X00001D32 mmcr1:0X0003E0C107529780 mmcra:0X00002001 event:0X1F2 mmcr0:0X00001D32 mmcr1:0X0003E0C107529780 mmcra:0X00002001 event:0X1F3 mmcr0:0X00001D32 mmcr1:0X0003E0C107529780 mmcra:0X00002001 event:0X1F4 mmcr0:0X00001D32 mmcr1:0X0003E0C107529780 mmcra:0X00002001 event:0X1F5 mmcr0:0X00001D32 mmcr1:0X0003E0C107529780 mmcra:0X00002001 event:0X1F6 mmcr0:0X00001D32 mmcr1:0X0003E0C107529780 mmcra:0X00002001 event:0X1F7 mmcr0:0X00001D32 mmcr1:0X0003E0C107529780 mmcra:0X00002001 #Group 32 pm_ierat, IERAT event:0X200 mmcr0:0X00000D12 mmcr1:0X80000082C3D2F4BC mmcra:0X00002001 event:0X201 mmcr0:0X00000D12 mmcr1:0X80000082C3D2F4BC mmcra:0X00002001 event:0X202 mmcr0:0X00000D12 mmcr1:0X80000082C3D2F4BC mmcra:0X00002001 event:0X203 mmcr0:0X00000D12 mmcr1:0X80000082C3D2F4BC mmcra:0X00002001 event:0X204 mmcr0:0X00000D12 mmcr1:0X80000082C3D2F4BC mmcra:0X00002001 event:0X205 mmcr0:0X00000D12 mmcr1:0X80000082C3D2F4BC mmcra:0X00002001 event:0X206 mmcr0:0X00000D12 mmcr1:0X80000082C3D2F4BC mmcra:0X00002001 event:0X207 mmcr0:0X00000D12 mmcr1:0X80000082C3D2F4BC mmcra:0X00002001 #Group 33 pm_derat, DERAT event:0X210 mmcr0:0X00000436 mmcr1:0X100B7052E274003C mmcra:0X00002001 event:0X211 mmcr0:0X00000436 mmcr1:0X100B7052E274003C mmcra:0X00002001 event:0X212 mmcr0:0X00000436 mmcr1:0X100B7052E274003C mmcra:0X00002001 event:0X213 mmcr0:0X00000436 mmcr1:0X100B7052E274003C mmcra:0X00002001 event:0X214 mmcr0:0X00000436 mmcr1:0X100B7052E274003C mmcra:0X00002001 event:0X215 mmcr0:0X00000436 mmcr1:0X100B7052E274003C mmcra:0X00002001 event:0X216 mmcr0:0X00000436 mmcr1:0X100B7052E274003C mmcra:0X00002001 event:0X217 mmcr0:0X00000436 mmcr1:0X100B7052E274003C mmcra:0X00002001 #Group 34 pm_mark1, Information on marked instructions event:0X220 mmcr0:0X00000006 mmcr1:0X00008080790852A4 mmcra:0X00002001 event:0X221 mmcr0:0X00000006 mmcr1:0X00008080790852A4 mmcra:0X00002001 event:0X222 mmcr0:0X00000006 mmcr1:0X00008080790852A4 mmcra:0X00002001 event:0X223 mmcr0:0X00000006 mmcr1:0X00008080790852A4 mmcra:0X00002001 event:0X224 mmcr0:0X00000006 mmcr1:0X00008080790852A4 mmcra:0X00002001 event:0X225 mmcr0:0X00000006 mmcr1:0X00008080790852A4 mmcra:0X00002001 event:0X226 mmcr0:0X00000006 mmcr1:0X00008080790852A4 mmcra:0X00002001 event:0X227 mmcr0:0X00000006 mmcr1:0X00008080790852A4 mmcra:0X00002001 #Group 35 pm_mark2, Marked Instructions Processing Flow event:0X230 mmcr0:0X0000020A mmcr1:0X0000000079484210 mmcra:0X00002001 event:0X231 mmcr0:0X0000020A mmcr1:0X0000000079484210 mmcra:0X00002001 event:0X232 mmcr0:0X0000020A mmcr1:0X0000000079484210 mmcra:0X00002001 event:0X233 mmcr0:0X0000020A mmcr1:0X0000000079484210 mmcra:0X00002001 event:0X234 mmcr0:0X0000020A mmcr1:0X0000000079484210 mmcra:0X00002001 event:0X235 mmcr0:0X0000020A mmcr1:0X0000000079484210 mmcra:0X00002001 event:0X236 mmcr0:0X0000020A mmcr1:0X0000000079484210 mmcra:0X00002001 event:0X237 mmcr0:0X0000020A mmcr1:0X0000000079484210 mmcra:0X00002001 #Group 36 pm_mark3, Marked Stores Processing Flow event:0X240 mmcr0:0X0000031E mmcr1:0X00203004190A3F24 mmcra:0X00002001 event:0X241 mmcr0:0X0000031E mmcr1:0X00203004190A3F24 mmcra:0X00002001 event:0X242 mmcr0:0X0000031E mmcr1:0X00203004190A3F24 mmcra:0X00002001 event:0X243 mmcr0:0X0000031E mmcr1:0X00203004190A3F24 mmcra:0X00002001 event:0X244 mmcr0:0X0000031E mmcr1:0X00203004190A3F24 mmcra:0X00002001 event:0X245 mmcr0:0X0000031E mmcr1:0X00203004190A3F24 mmcra:0X00002001 event:0X246 mmcr0:0X0000031E mmcr1:0X00203004190A3F24 mmcra:0X00002001 event:0X247 mmcr0:0X0000031E mmcr1:0X00203004190A3F24 mmcra:0X00002001 #Group 37 pm_lsu_mark1, Load Store Unit Marked Events event:0X250 mmcr0:0X00001B34 mmcr1:0X000280C08D5E9850 mmcra:0X00002001 event:0X251 mmcr0:0X00001B34 mmcr1:0X000280C08D5E9850 mmcra:0X00002001 event:0X252 mmcr0:0X00001B34 mmcr1:0X000280C08D5E9850 mmcra:0X00002001 event:0X253 mmcr0:0X00001B34 mmcr1:0X000280C08D5E9850 mmcra:0X00002001 event:0X254 mmcr0:0X00001B34 mmcr1:0X000280C08D5E9850 mmcra:0X00002001 event:0X255 mmcr0:0X00001B34 mmcr1:0X000280C08D5E9850 mmcra:0X00002001 event:0X256 mmcr0:0X00001B34 mmcr1:0X000280C08D5E9850 mmcra:0X00002001 event:0X257 mmcr0:0X00001B34 mmcr1:0X000280C08D5E9850 mmcra:0X00002001 #Group 38 pm_lsu_mark2, Load Store Unit Marked Events event:0X260 mmcr0:0X00001838 mmcr1:0X000280C0959E99DC mmcra:0X00002001 event:0X261 mmcr0:0X00001838 mmcr1:0X000280C0959E99DC mmcra:0X00002001 event:0X262 mmcr0:0X00001838 mmcr1:0X000280C0959E99DC mmcra:0X00002001 event:0X263 mmcr0:0X00001838 mmcr1:0X000280C0959E99DC mmcra:0X00002001 event:0X264 mmcr0:0X00001838 mmcr1:0X000280C0959E99DC mmcra:0X00002001 event:0X265 mmcr0:0X00001838 mmcr1:0X000280C0959E99DC mmcra:0X00002001 event:0X266 mmcr0:0X00001838 mmcr1:0X000280C0959E99DC mmcra:0X00002001 event:0X267 mmcr0:0X00001838 mmcr1:0X000280C0959E99DC mmcra:0X00002001 #Group 39 pm_fxu1, Fixed Point events by unit event:0X270 mmcr0:0X00000912 mmcr1:0X100010020084213C mmcra:0X00002001 event:0X271 mmcr0:0X00000912 mmcr1:0X100010020084213C mmcra:0X00002001 event:0X272 mmcr0:0X00000912 mmcr1:0X100010020084213C mmcra:0X00002001 event:0X273 mmcr0:0X00000912 mmcr1:0X100010020084213C mmcra:0X00002001 event:0X274 mmcr0:0X00000912 mmcr1:0X100010020084213C mmcra:0X00002001 event:0X275 mmcr0:0X00000912 mmcr1:0X100010020084213C mmcra:0X00002001 event:0X276 mmcr0:0X00000912 mmcr1:0X100010020084213C mmcra:0X00002001 event:0X277 mmcr0:0X00000912 mmcr1:0X100010020084213C mmcra:0X00002001 #Group 40 pm_fxu2, Fixed Point events by unit event:0X280 mmcr0:0X0000091E mmcr1:0X4000000CA4042D78 mmcra:0X00002001 event:0X281 mmcr0:0X0000091E mmcr1:0X4000000CA4042D78 mmcra:0X00002001 event:0X282 mmcr0:0X0000091E mmcr1:0X4000000CA4042D78 mmcra:0X00002001 event:0X283 mmcr0:0X0000091E mmcr1:0X4000000CA4042D78 mmcra:0X00002001 event:0X284 mmcr0:0X0000091E mmcr1:0X4000000CA4042D78 mmcra:0X00002001 event:0X285 mmcr0:0X0000091E mmcr1:0X4000000CA4042D78 mmcra:0X00002001 event:0X286 mmcr0:0X0000091E mmcr1:0X4000000CA4042D78 mmcra:0X00002001 event:0X287 mmcr0:0X0000091E mmcr1:0X4000000CA4042D78 mmcra:0X00002001 #Group 41 pm_ifu, pm_ifu event:0X290 mmcr0:0X00000D0C mmcr1:0X800000F06B7867A4 mmcra:0X00002001 event:0X291 mmcr0:0X00000D0C mmcr1:0X800000F06B7867A4 mmcra:0X00002001 event:0X292 mmcr0:0X00000D0C mmcr1:0X800000F06B7867A4 mmcra:0X00002001 event:0X293 mmcr0:0X00000D0C mmcr1:0X800000F06B7867A4 mmcra:0X00002001 event:0X294 mmcr0:0X00000D0C mmcr1:0X800000F06B7867A4 mmcra:0X00002001 event:0X295 mmcr0:0X00000D0C mmcr1:0X800000F06B7867A4 mmcra:0X00002001 event:0X296 mmcr0:0X00000D0C mmcr1:0X800000F06B7867A4 mmcra:0X00002001 event:0X297 mmcr0:0X00000D0C mmcr1:0X800000F06B7867A4 mmcra:0X00002001 #Group 42 pm_cpi_stack1, CPI stack analysis event:0X2A0 mmcr0:0X00001B3E mmcr1:0X4000C0C0ADD6963D mmcra:0X00002001 event:0X2A1 mmcr0:0X00001B3E mmcr1:0X4000C0C0ADD6963D mmcra:0X00002001 event:0X2A2 mmcr0:0X00001B3E mmcr1:0X4000C0C0ADD6963D mmcra:0X00002001 event:0X2A3 mmcr0:0X00001B3E mmcr1:0X4000C0C0ADD6963D mmcra:0X00002001 event:0X2A4 mmcr0:0X00001B3E mmcr1:0X4000C0C0ADD6963D mmcra:0X00002001 event:0X2A5 mmcr0:0X00001B3E mmcr1:0X4000C0C0ADD6963D mmcra:0X00002001 event:0X2A6 mmcr0:0X00001B3E mmcr1:0X4000C0C0ADD6963D mmcra:0X00002001 event:0X2A7 mmcr0:0X00001B3E mmcr1:0X4000C0C0ADD6963D mmcra:0X00002001 #Group 43 pm_cpi_stack2, CPI stack analysis event:0X2B0 mmcr0:0X00000B12 mmcr1:0X000B000003D60583 mmcra:0X00002001 event:0X2B1 mmcr0:0X00000B12 mmcr1:0X000B000003D60583 mmcra:0X00002001 event:0X2B2 mmcr0:0X00000B12 mmcr1:0X000B000003D60583 mmcra:0X00002001 event:0X2B3 mmcr0:0X00000B12 mmcr1:0X000B000003D60583 mmcra:0X00002001 event:0X2B4 mmcr0:0X00000B12 mmcr1:0X000B000003D60583 mmcra:0X00002001 event:0X2B5 mmcr0:0X00000B12 mmcr1:0X000B000003D60583 mmcra:0X00002001 event:0X2B6 mmcr0:0X00000B12 mmcr1:0X000B000003D60583 mmcra:0X00002001 event:0X2B7 mmcr0:0X00000B12 mmcr1:0X000B000003D60583 mmcra:0X00002001 #Group 44 pm_cpi_stack3, CPI stack analysis event:0X2C0 mmcr0:0X00000916 mmcr1:0X10001002001625BE mmcra:0X00002001 event:0X2C1 mmcr0:0X00000916 mmcr1:0X10001002001625BE mmcra:0X00002001 event:0X2C2 mmcr0:0X00000916 mmcr1:0X10001002001625BE mmcra:0X00002001 event:0X2C3 mmcr0:0X00000916 mmcr1:0X10001002001625BE mmcra:0X00002001 event:0X2C4 mmcr0:0X00000916 mmcr1:0X10001002001625BE mmcra:0X00002001 event:0X2C5 mmcr0:0X00000916 mmcr1:0X10001002001625BE mmcra:0X00002001 event:0X2C6 mmcr0:0X00000916 mmcr1:0X10001002001625BE mmcra:0X00002001 event:0X2C7 mmcr0:0X00000916 mmcr1:0X10001002001625BE mmcra:0X00002001 #Group 45 pm_cpi_stack4, CPI stack analysis event:0X2D0 mmcr0:0X00000000 mmcr1:0X00000000485805BD mmcra:0X00002001 event:0X2D1 mmcr0:0X00000000 mmcr1:0X00000000485805BD mmcra:0X00002001 event:0X2D2 mmcr0:0X00000000 mmcr1:0X00000000485805BD mmcra:0X00002001 event:0X2D3 mmcr0:0X00000000 mmcr1:0X00000000485805BD mmcra:0X00002001 event:0X2D4 mmcr0:0X00000000 mmcr1:0X00000000485805BD mmcra:0X00002001 event:0X2D5 mmcr0:0X00000000 mmcr1:0X00000000485805BD mmcra:0X00002001 event:0X2D6 mmcr0:0X00000000 mmcr1:0X00000000485805BD mmcra:0X00002001 event:0X2D7 mmcr0:0X00000000 mmcr1:0X00000000485805BD mmcra:0X00002001 #Group 46 pm_cpi_stack5, CPI stack analysis event:0X2E0 mmcr0:0X00000412 mmcr1:0X90010009B6D8F672 mmcra:0X00002001 event:0X2E1 mmcr0:0X00000412 mmcr1:0X90010009B6D8F672 mmcra:0X00002001 event:0X2E2 mmcr0:0X00000412 mmcr1:0X90010009B6D8F672 mmcra:0X00002001 event:0X2E3 mmcr0:0X00000412 mmcr1:0X90010009B6D8F672 mmcra:0X00002001 event:0X2E4 mmcr0:0X00000412 mmcr1:0X90010009B6D8F672 mmcra:0X00002001 event:0X2E5 mmcr0:0X00000412 mmcr1:0X90010009B6D8F672 mmcra:0X00002001 event:0X2E6 mmcr0:0X00000412 mmcr1:0X90010009B6D8F672 mmcra:0X00002001 event:0X2E7 mmcr0:0X00000412 mmcr1:0X90010009B6D8F672 mmcra:0X00002001 #Group 47 pm_data2, data source and LMQ event:0X2F0 mmcr0:0X00000D12 mmcr1:0X0000300E6BD2FF74 mmcra:0X00002001 event:0X2F1 mmcr0:0X00000D12 mmcr1:0X0000300E6BD2FF74 mmcra:0X00002001 event:0X2F2 mmcr0:0X00000D12 mmcr1:0X0000300E6BD2FF74 mmcra:0X00002001 event:0X2F3 mmcr0:0X00000D12 mmcr1:0X0000300E6BD2FF74 mmcra:0X00002001 event:0X2F4 mmcr0:0X00000D12 mmcr1:0X0000300E6BD2FF74 mmcra:0X00002001 event:0X2F5 mmcr0:0X00000D12 mmcr1:0X0000300E6BD2FF74 mmcra:0X00002001 event:0X2F6 mmcr0:0X00000D12 mmcr1:0X0000300E6BD2FF74 mmcra:0X00002001 event:0X2F7 mmcr0:0X00000D12 mmcr1:0X0000300E6BD2FF74 mmcra:0X00002001 #Group 48 pm_fetch_branch, Instruction fetch and branch events event:0X300 mmcr0:0X0000060C mmcr1:0X800000CD6E5E9D6C mmcra:0X00002001 event:0X301 mmcr0:0X0000060C mmcr1:0X800000CD6E5E9D6C mmcra:0X00002001 event:0X302 mmcr0:0X0000060C mmcr1:0X800000CD6E5E9D6C mmcra:0X00002001 event:0X303 mmcr0:0X0000060C mmcr1:0X800000CD6E5E9D6C mmcra:0X00002001 event:0X304 mmcr0:0X0000060C mmcr1:0X800000CD6E5E9D6C mmcra:0X00002001 event:0X305 mmcr0:0X0000060C mmcr1:0X800000CD6E5E9D6C mmcra:0X00002001 event:0X306 mmcr0:0X0000060C mmcr1:0X800000CD6E5E9D6C mmcra:0X00002001 event:0X307 mmcr0:0X0000060C mmcr1:0X800000CD6E5E9D6C mmcra:0X00002001 #Group 49 pm_l1l2_miss, L1 and L2 miss events event:0X310 mmcr0:0X00000712 mmcr1:0X000330023C86FB00 mmcra:0X00002001 event:0X311 mmcr0:0X00000712 mmcr1:0X000330023C86FB00 mmcra:0X00002001 event:0X312 mmcr0:0X00000712 mmcr1:0X000330023C86FB00 mmcra:0X00002001 event:0X313 mmcr0:0X00000712 mmcr1:0X000330023C86FB00 mmcra:0X00002001 event:0X314 mmcr0:0X00000712 mmcr1:0X000330023C86FB00 mmcra:0X00002001 event:0X315 mmcr0:0X00000712 mmcr1:0X000330023C86FB00 mmcra:0X00002001 event:0X316 mmcr0:0X00000712 mmcr1:0X000330023C86FB00 mmcra:0X00002001 event:0X317 mmcr0:0X00000712 mmcr1:0X000330023C86FB00 mmcra:0X00002001 oprofile-0.9.9/events/ppc64/power4/0000775000076400007640000000000012175511556014053 500000000000000oprofile-0.9.9/events/ppc64/power4/events0000664000076400007640000017511112175510133015216 00000000000000#PPC64 POWER4 events # # Within each group the event names must be unique. Each event in a group is # assigned to a unique counter. The groups are from the groups defined in the # Performance Monitor Unit user guide for this processor. # # Only events within the same group can be selected simultaneously. # Each event is given a unique event number. The event number is used by the # OProfile code to resolve event names for the post-processing. This is done # to preserve compatibility with the rest of the OProfile code. The event # numbers are formatted as follows: concat(). #Group Default event:0X001 counters:1 um:zero minimum:10000 name:CYCLES : Processor Cycles #Group 1 pm_slice0, Time Slice 0 event:0X010 counters:0 um:zero minimum:10000 name:PM_RUN_CYC_GRP1 : (Group 1 pm_slice0) Run cycles event:0X011 counters:1 um:zero minimum:10000 name:PM_CYC_GRP1 : (Group 1 pm_slice0) Processor cycles event:0X012 counters:2 um:zero minimum:1000 name:PM_STOP_COMPLETION_GRP1 : (Group 1 pm_slice0) Completion stopped event:0X013 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP1 : (Group 1 pm_slice0) Instructions completed event:0X014 counters:4 um:zero minimum:1000 name:PM_1PLUS_PPC_CMPL_GRP1 : (Group 1 pm_slice0) One or more PPC instruction completed event:0X015 counters:5 um:zero minimum:10000 name:PM_CYC_GRP1 : (Group 1 pm_slice0) Processor cycles event:0X016 counters:6 um:zero minimum:1000 name:PM_GRP_CMPL_GRP1 : (Group 1 pm_slice0) Group completed event:0X017 counters:7 um:zero minimum:1000 name:PM_GRP_DISP_REJECT_GRP1 : (Group 1 pm_slice0) Group dispatch rejected #Group 2 pm_eprof, Group for use with eprof event:0X020 counters:0 um:zero minimum:10000 name:PM_CYC_GRP2 : (Group 2 pm_eprof) Processor cycles event:0X021 counters:1 um:zero minimum:10000 name:PM_CYC_GRP2 : (Group 2 pm_eprof) Processor cycles event:0X022 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP2 : (Group 2 pm_eprof) L1 D cache load misses event:0X023 counters:3 um:zero minimum:1000 name:PM_DC_INV_L2_GRP2 : (Group 2 pm_eprof) L1 D cache entries invalidated from L2 event:0X024 counters:4 um:zero minimum:1000 name:PM_INST_DISP_GRP2 : (Group 2 pm_eprof) Instructions dispatched event:0X025 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP2 : (Group 2 pm_eprof) Instructions completed event:0X026 counters:6 um:zero minimum:1000 name:PM_ST_REF_L1_GRP2 : (Group 2 pm_eprof) L1 D cache store references event:0X027 counters:7 um:zero minimum:1000 name:PM_LD_REF_L1_GRP2 : (Group 2 pm_eprof) L1 D cache load references #Group 3 pm_basic, Basic performance indicators event:0X030 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP3 : (Group 3 pm_basic) Instructions completed event:0X031 counters:1 um:zero minimum:10000 name:PM_CYC_GRP3 : (Group 3 pm_basic) Processor cycles event:0X032 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP3 : (Group 3 pm_basic) L1 D cache load misses event:0X033 counters:3 um:zero minimum:1000 name:PM_DC_INV_L2_GRP3 : (Group 3 pm_basic) L1 D cache entries invalidated from L2 event:0X034 counters:4 um:zero minimum:1000 name:PM_INST_DISP_GRP3 : (Group 3 pm_basic) Instructions dispatched event:0X035 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP3 : (Group 3 pm_basic) Instructions completed event:0X036 counters:6 um:zero minimum:1000 name:PM_ST_REF_L1_GRP3 : (Group 3 pm_basic) L1 D cache store references event:0X037 counters:7 um:zero minimum:1000 name:PM_LD_REF_L1_GRP3 : (Group 3 pm_basic) L1 D cache load references #Group 4 pm_ifu, IFU events event:0X040 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP4 : (Group 4 pm_ifu) Instructions completed event:0X041 counters:1 um:zero minimum:1000 name:PM_BIQ_IDU_FULL_CYC_GRP4 : (Group 4 pm_ifu) Cycles BIQ or IDU full event:0X042 counters:2 um:zero minimum:1000 name:PM_BR_ISSUED_GRP4 : (Group 4 pm_ifu) Branches issued event:0X043 counters:3 um:zero minimum:1000 name:PM_BR_MPRED_CR_GRP4 : (Group 4 pm_ifu) Branch mispredictions due CR bit setting event:0X044 counters:4 um:zero minimum:1000 name:PM_INST_FETCH_CYC_GRP4 : (Group 4 pm_ifu) Cycles at least 1 instruction fetched event:0X045 counters:5 um:zero minimum:10000 name:PM_CYC_GRP4 : (Group 4 pm_ifu) Processor cycles event:0X046 counters:6 um:zero minimum:1000 name:PM_BR_MPRED_TA_GRP4 : (Group 4 pm_ifu) Branch mispredictions due to target address event:0X047 counters:7 um:zero minimum:1000 name:PM_L1_WRITE_CYC_GRP4 : (Group 4 pm_ifu) Cycles writing to instruction L1 #Group 5 pm_isu, ISU Queue full events event:0X050 counters:0 um:zero minimum:1000 name:PM_FPR_MAP_FULL_CYC_GRP5 : (Group 5 pm_isu) Cycles FPR mapper full event:0X051 counters:1 um:zero minimum:1000 name:PM_BRQ_FULL_CYC_GRP5 : (Group 5 pm_isu) Cycles branch queue full event:0X052 counters:2 um:zero minimum:1000 name:PM_GPR_MAP_FULL_CYC_GRP5 : (Group 5 pm_isu) Cycles GPR mapper full event:0X053 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP5 : (Group 5 pm_isu) Instructions completed event:0X054 counters:4 um:zero minimum:1000 name:PM_FPU_FULL_CYC_GRP5 : (Group 5 pm_isu) Cycles FPU issue queue full event:0X055 counters:5 um:zero minimum:1000 name:PM_GCT_FULL_CYC_GRP5 : (Group 5 pm_isu) Cycles GCT full event:0X056 counters:6 um:zero minimum:10000 name:PM_CYC_GRP5 : (Group 5 pm_isu) Processor cycles event:0X057 counters:7 um:zero minimum:1000 name:PM_FXLS_FULL_CYC_GRP5 : (Group 5 pm_isu) Cycles FXLS queue is full #Group 6 pm_lsource, Information on data source event:0X060 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L3_GRP6 : (Group 6 pm_lsource) Data loaded from L3 event:0X061 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_MEM_GRP6 : (Group 6 pm_lsource) Data loaded from memory event:0X062 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_L35_GRP6 : (Group 6 pm_lsource) Data loaded from L3.5 event:0X063 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_L2_GRP6 : (Group 6 pm_lsource) Data loaded from L2 event:0X064 counters:4 um:zero minimum:1000 name:PM_DATA_FROM_L25_SHR_GRP6 : (Group 6 pm_lsource) Data loaded from L2.5 shared event:0X065 counters:5 um:zero minimum:1000 name:PM_DATA_FROM_L275_SHR_GRP6 : (Group 6 pm_lsource) Data loaded from L2.75 shared event:0X066 counters:6 um:zero minimum:1000 name:PM_DATA_FROM_L275_MOD_GRP6 : (Group 6 pm_lsource) Data loaded from L2.75 modified event:0X067 counters:7 um:zero minimum:1000 name:PM_DATA_FROM_L25_MOD_GRP6 : (Group 6 pm_lsource) Data loaded from L2.5 modified #Group 7 pm_isource, Instruction Source information event:0X070 counters:0 um:zero minimum:1000 name:PM_INST_FROM_MEM_GRP7 : (Group 7 pm_isource) Instruction fetched from memory event:0X071 counters:1 um:zero minimum:1000 name:PM_INST_FROM_L25_L275_GRP7 : (Group 7 pm_isource) Instruction fetched from L2.5/L2.75 event:0X072 counters:2 um:zero minimum:1000 name:PM_INST_FROM_L2_GRP7 : (Group 7 pm_isource) Instructions fetched from L2 event:0X073 counters:3 um:zero minimum:1000 name:PM_INST_FROM_L35_GRP7 : (Group 7 pm_isource) Instructions fetched from L3.5 event:0X074 counters:4 um:zero minimum:1000 name:PM_INST_FROM_L3_GRP7 : (Group 7 pm_isource) Instruction fetched from L3 event:0X075 counters:5 um:zero minimum:1000 name:PM_INST_FROM_L1_GRP7 : (Group 7 pm_isource) Instruction fetched from L1 event:0X076 counters:6 um:zero minimum:1000 name:PM_INST_FROM_PREF_GRP7 : (Group 7 pm_isource) Instructions fetched from prefetch event:0X077 counters:7 um:zero minimum:1000 name:PM_0INST_FETCH_GRP7 : (Group 7 pm_isource) No instructions fetched #Group 8 pm_lsu, Information on the Load Store Unit event:0X080 counters:0 um:zero minimum:1000 name:PM_LSU_FLUSH_ULD_GRP8 : (Group 8 pm_lsu) LRQ unaligned load flushes event:0X081 counters:1 um:zero minimum:1000 name:PM_LSU_FLUSH_UST_GRP8 : (Group 8 pm_lsu) SRQ unaligned store flushes event:0X082 counters:2 um:zero minimum:10000 name:PM_CYC_GRP8 : (Group 8 pm_lsu) Processor cycles event:0X083 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP8 : (Group 8 pm_lsu) Instructions completed event:0X084 counters:4 um:zero minimum:1000 name:PM_LSU_FLUSH_SRQ_GRP8 : (Group 8 pm_lsu) SRQ flushes event:0X085 counters:5 um:zero minimum:1000 name:PM_LSU_FLUSH_LRQ_GRP8 : (Group 8 pm_lsu) LRQ flushes event:0X086 counters:6 um:zero minimum:1000 name:PM_ST_REF_L1_GRP8 : (Group 8 pm_lsu) L1 D cache store references event:0X087 counters:7 um:zero minimum:1000 name:PM_LD_REF_L1_GRP8 : (Group 8 pm_lsu) L1 D cache load references #Group 9 pm_xlate1, Translation Events event:0X090 counters:0 um:zero minimum:1000 name:PM_ITLB_MISS_GRP9 : (Group 9 pm_xlate1) Instruction TLB misses event:0X091 counters:1 um:zero minimum:1000 name:PM_DTLB_MISS_GRP9 : (Group 9 pm_xlate1) Data TLB misses event:0X092 counters:2 um:zero minimum:1000 name:PM_DATA_TABLEWALK_CYC_GRP9 : (Group 9 pm_xlate1) Cycles doing data tablewalks event:0X093 counters:3 um:zero minimum:1000 name:PM_LSU_LMQ_S0_VALID_GRP9 : (Group 9 pm_xlate1) LMQ slot 0 valid event:0X094 counters:4 um:zero minimum:1000 name:PM_IERAT_XLATE_WR_GRP9 : (Group 9 pm_xlate1) Translation written to ierat event:0X095 counters:5 um:zero minimum:1000 name:PM_LSU_DERAT_MISS_GRP9 : (Group 9 pm_xlate1) DERAT misses event:0X096 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP9 : (Group 9 pm_xlate1) Instructions completed event:0X097 counters:7 um:zero minimum:10000 name:PM_CYC_GRP9 : (Group 9 pm_xlate1) Processor cycles #Group 10 pm_xlate2, Translation Events event:0X0A0 counters:0 um:zero minimum:1000 name:PM_ISLB_MISS_GRP10 : (Group 10 pm_xlate2) Instruction SLB misses event:0X0A1 counters:1 um:zero minimum:1000 name:PM_DSLB_MISS_GRP10 : (Group 10 pm_xlate2) Data SLB misses event:0X0A2 counters:2 um:zero minimum:1000 name:PM_LSU_SRQ_SYNC_CYC_GRP10 : (Group 10 pm_xlate2) SRQ sync duration event:0X0A3 counters:3 um:zero minimum:1000 name:PM_LSU_LMQ_S0_ALLOC_GRP10 : (Group 10 pm_xlate2) LMQ slot 0 allocated event:0X0A4 counters:4 um:zero minimum:1000 name:PM_IERAT_XLATE_WR_GRP10 : (Group 10 pm_xlate2) Translation written to ierat event:0X0A5 counters:5 um:zero minimum:1000 name:PM_LSU_DERAT_MISS_GRP10 : (Group 10 pm_xlate2) DERAT misses event:0X0A6 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP10 : (Group 10 pm_xlate2) Instructions completed event:0X0A7 counters:7 um:zero minimum:10000 name:PM_CYC_GRP10 : (Group 10 pm_xlate2) Processor cycles #Group 11 pm_gps1, L3 Events event:0X0B0 counters:0 um:zero minimum:1000 name:PM_L3B0_DIR_REF_GRP11 : (Group 11 pm_gps1) L3 bank 0 directory references event:0X0B1 counters:1 um:zero minimum:1000 name:PM_L3B0_DIR_MIS_GRP11 : (Group 11 pm_gps1) L3 bank 0 directory misses event:0X0B2 counters:2 um:zero minimum:1000 name:PM_FAB_CMD_ISSUED_GRP11 : (Group 11 pm_gps1) Fabric command issued event:0X0B3 counters:3 um:zero minimum:1000 name:PM_FAB_CMD_RETRIED_GRP11 : (Group 11 pm_gps1) Fabric command retried event:0X0B4 counters:4 um:zero minimum:1000 name:PM_L3B1_DIR_REF_GRP11 : (Group 11 pm_gps1) L3 bank 1 directory references event:0X0B5 counters:5 um:zero minimum:1000 name:PM_L3B1_DIR_MIS_GRP11 : (Group 11 pm_gps1) L3 bank 1 directory misses event:0X0B6 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP11 : (Group 11 pm_gps1) Instructions completed event:0X0B7 counters:7 um:zero minimum:10000 name:PM_CYC_GRP11 : (Group 11 pm_gps1) Processor cycles #Group 12 pm_l2a, L2 SliceA events event:0X0C0 counters:0 um:zero minimum:1000 name:PM_L2SA_MOD_TAG_GRP12 : (Group 12 pm_l2a) L2 slice A transition from modified to tagged event:0X0C1 counters:1 um:zero minimum:1000 name:PM_L2SA_SHR_INV_GRP12 : (Group 12 pm_l2a) L2 slice A transition from shared to invalid event:0X0C2 counters:2 um:zero minimum:1000 name:PM_L2SA_ST_REQ_GRP12 : (Group 12 pm_l2a) L2 slice A store requests event:0X0C3 counters:3 um:zero minimum:1000 name:PM_L2SA_ST_HIT_GRP12 : (Group 12 pm_l2a) L2 slice A store hits event:0X0C4 counters:4 um:zero minimum:1000 name:PM_L2SA_SHR_MOD_GRP12 : (Group 12 pm_l2a) L2 slice A transition from shared to modified event:0X0C5 counters:5 um:zero minimum:1000 name:PM_L2SA_MOD_INV_GRP12 : (Group 12 pm_l2a) L2 slice A transition from modified to invalid event:0X0C6 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP12 : (Group 12 pm_l2a) Instructions completed event:0X0C7 counters:7 um:zero minimum:10000 name:PM_CYC_GRP12 : (Group 12 pm_l2a) Processor cycles #Group 13 pm_l2b, L2 SliceB events event:0X0D0 counters:0 um:zero minimum:1000 name:PM_L2SB_MOD_TAG_GRP13 : (Group 13 pm_l2b) L2 slice B transition from modified to tagged event:0X0D1 counters:1 um:zero minimum:1000 name:PM_L2SB_SHR_INV_GRP13 : (Group 13 pm_l2b) L2 slice B transition from shared to invalid event:0X0D2 counters:2 um:zero minimum:1000 name:PM_L2SB_ST_REQ_GRP13 : (Group 13 pm_l2b) L2 slice B store requests event:0X0D3 counters:3 um:zero minimum:1000 name:PM_L2SB_ST_HIT_GRP13 : (Group 13 pm_l2b) L2 slice B store hits event:0X0D4 counters:4 um:zero minimum:1000 name:PM_L2SB_SHR_MOD_GRP13 : (Group 13 pm_l2b) L2 slice B transition from shared to modified event:0X0D5 counters:5 um:zero minimum:1000 name:PM_L2SB_MOD_INV_GRP13 : (Group 13 pm_l2b) L2 slice B transition from modified to invalid event:0X0D6 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP13 : (Group 13 pm_l2b) Instructions completed event:0X0D7 counters:7 um:zero minimum:10000 name:PM_CYC_GRP13 : (Group 13 pm_l2b) Processor cycles #Group 14 pm_l2c, L2 SliceC events event:0X0E0 counters:0 um:zero minimum:1000 name:PM_L2SC_MOD_TAG_GRP14 : (Group 14 pm_l2c) L2 slice C transition from modified to tagged event:0X0E1 counters:1 um:zero minimum:1000 name:PM_L2SC_SHR_INV_GRP14 : (Group 14 pm_l2c) L2 slice C transition from shared to invalid event:0X0E2 counters:2 um:zero minimum:1000 name:PM_L2SC_ST_REQ_GRP14 : (Group 14 pm_l2c) L2 slice C store requests event:0X0E3 counters:3 um:zero minimum:1000 name:PM_L2SC_ST_HIT_GRP14 : (Group 14 pm_l2c) L2 slice C store hits event:0X0E4 counters:4 um:zero minimum:1000 name:PM_L2SC_SHR_MOD_GRP14 : (Group 14 pm_l2c) L2 slice C transition from shared to modified event:0X0E5 counters:5 um:zero minimum:1000 name:PM_L2SC_MOD_INV_GRP14 : (Group 14 pm_l2c) L2 slice C transition from modified to invalid event:0X0E6 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP14 : (Group 14 pm_l2c) Instructions completed event:0X0E7 counters:7 um:zero minimum:10000 name:PM_CYC_GRP14 : (Group 14 pm_l2c) Processor cycles #Group 15 pm_fpu1, Floating Point events event:0X0F0 counters:0 um:zero minimum:1000 name:PM_FPU_FDIV_GRP15 : (Group 15 pm_fpu1) FPU executed FDIV instruction event:0X0F1 counters:1 um:zero minimum:1000 name:PM_FPU_FMA_GRP15 : (Group 15 pm_fpu1) FPU executed multiply-add instruction event:0X0F2 counters:2 um:zero minimum:1000 name:PM_FPU_FEST_GRP15 : (Group 15 pm_fpu1) FPU executed FEST instruction event:0X0F3 counters:3 um:zero minimum:1000 name:PM_FPU_FIN_GRP15 : (Group 15 pm_fpu1) FPU produced a result event:0X0F4 counters:4 um:zero minimum:10000 name:PM_CYC_GRP15 : (Group 15 pm_fpu1) Processor cycles event:0X0F5 counters:5 um:zero minimum:1000 name:PM_FPU_FSQRT_GRP15 : (Group 15 pm_fpu1) FPU executed FSQRT instruction event:0X0F6 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP15 : (Group 15 pm_fpu1) Instructions completed event:0X0F7 counters:7 um:zero minimum:1000 name:PM_FPU_FMOV_FEST_GRP15 : (Group 15 pm_fpu1) FPU executing FMOV or FEST instructions #Group 16 pm_fpu2, Floating Point events event:0X100 counters:0 um:zero minimum:1000 name:PM_FPU_DENORM_GRP16 : (Group 16 pm_fpu2) FPU received denormalized data event:0X101 counters:1 um:zero minimum:1000 name:PM_FPU_STALL3_GRP16 : (Group 16 pm_fpu2) FPU stalled in pipe3 event:0X102 counters:2 um:zero minimum:10000 name:PM_CYC_GRP16 : (Group 16 pm_fpu2) Processor cycles event:0X103 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP16 : (Group 16 pm_fpu2) Instructions completed event:0X104 counters:4 um:zero minimum:1000 name:PM_FPU_ALL_GRP16 : (Group 16 pm_fpu2) FPU executed add, mult, sub, cmp or sel instruction event:0X105 counters:5 um:zero minimum:1000 name:PM_FPU_STF_GRP16 : (Group 16 pm_fpu2) FPU executed store instruction event:0X106 counters:6 um:zero minimum:1000 name:PM_FPU_FRSP_FCONV_GRP16 : (Group 16 pm_fpu2) FPU executed FRSP or FCONV instructions event:0X107 counters:7 um:zero minimum:1000 name:PM_LSU_LDF_GRP16 : (Group 16 pm_fpu2) LSU executed Floating Point load instruction #Group 17 pm_idu1, Instruction Decode Unit events event:0X110 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP17 : (Group 17 pm_idu1) Instructions completed event:0X111 counters:1 um:zero minimum:10000 name:PM_CYC_GRP17 : (Group 17 pm_idu1) Processor cycles event:0X112 counters:2 um:zero minimum:1000 name:PM_1INST_CLB_CYC_GRP17 : (Group 17 pm_idu1) Cycles 1 instruction in CLB event:0X113 counters:3 um:zero minimum:1000 name:PM_2INST_CLB_CYC_GRP17 : (Group 17 pm_idu1) Cycles 2 instructions in CLB event:0X114 counters:4 um:zero minimum:1000 name:PM_1PLUS_PPC_CMPL_GRP17 : (Group 17 pm_idu1) One or more PPC instruction completed event:0X115 counters:5 um:zero minimum:10000 name:PM_CYC_GRP17 : (Group 17 pm_idu1) Processor cycles event:0X116 counters:6 um:zero minimum:1000 name:PM_3INST_CLB_CYC_GRP17 : (Group 17 pm_idu1) Cycles 3 instructions in CLB event:0X117 counters:7 um:zero minimum:1000 name:PM_4INST_CLB_CYC_GRP17 : (Group 17 pm_idu1) Cycles 4 instructions in CLB #Group 18 pm_idu2, Instruction Decode Unit events event:0X120 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP18 : (Group 18 pm_idu2) Instructions completed event:0X121 counters:1 um:zero minimum:10000 name:PM_CYC_GRP18 : (Group 18 pm_idu2) Processor cycles event:0X122 counters:2 um:zero minimum:1000 name:PM_5INST_CLB_CYC_GRP18 : (Group 18 pm_idu2) Cycles 5 instructions in CLB event:0X123 counters:3 um:zero minimum:1000 name:PM_6INST_CLB_CYC_GRP18 : (Group 18 pm_idu2) Cycles 6 instructions in CLB event:0X124 counters:4 um:zero minimum:1000 name:PM_GRP_DISP_SUCCESS_GRP18 : (Group 18 pm_idu2) Group dispatch success event:0X125 counters:5 um:zero minimum:10000 name:PM_CYC_GRP18 : (Group 18 pm_idu2) Processor cycles event:0X126 counters:6 um:zero minimum:1000 name:PM_7INST_CLB_CYC_GRP18 : (Group 18 pm_idu2) Cycles 7 instructions in CLB event:0X127 counters:7 um:zero minimum:1000 name:PM_8INST_CLB_CYC_GRP18 : (Group 18 pm_idu2) Cycles 8 instructions in CLB #Group 19 pm_isu_rename, ISU Rename Pool Events event:0X130 counters:0 um:zero minimum:1000 name:PM_XER_MAP_FULL_CYC_GRP19 : (Group 19 pm_isu_rename) Cycles XER mapper full event:0X131 counters:1 um:zero minimum:1000 name:PM_CR_MAP_FULL_CYC_GRP19 : (Group 19 pm_isu_rename) Cycles CR logical operation mapper full event:0X132 counters:2 um:zero minimum:1000 name:PM_CRQ_FULL_CYC_GRP19 : (Group 19 pm_isu_rename) Cycles CR issue queue full event:0X133 counters:3 um:zero minimum:1000 name:PM_GRP_DISP_BLK_SB_CYC_GRP19 : (Group 19 pm_isu_rename) Cycles group dispatch blocked by scoreboard event:0X134 counters:4 um:zero minimum:1000 name:PM_LR_CTR_MAP_FULL_CYC_GRP19 : (Group 19 pm_isu_rename) Cycles LR/CTR mapper full event:0X135 counters:5 um:zero minimum:1000 name:PM_INST_DISP_GRP19 : (Group 19 pm_isu_rename) Instructions dispatched event:0X136 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP19 : (Group 19 pm_isu_rename) Instructions completed event:0X137 counters:7 um:zero minimum:10000 name:PM_CYC_GRP19 : (Group 19 pm_isu_rename) Processor cycles #Group 20 pm_isu_queues1, ISU Queue Full Events event:0X140 counters:0 um:zero minimum:1000 name:PM_FPU0_FULL_CYC_GRP20 : (Group 20 pm_isu_queues1) Cycles FPU0 issue queue full event:0X141 counters:1 um:zero minimum:1000 name:PM_FPU1_FULL_CYC_GRP20 : (Group 20 pm_isu_queues1) Cycles FPU1 issue queue full event:0X142 counters:2 um:zero minimum:1000 name:PM_FXLS0_FULL_CYC_GRP20 : (Group 20 pm_isu_queues1) Cycles FXU0/LS0 queue full event:0X143 counters:3 um:zero minimum:1000 name:PM_FXLS1_FULL_CYC_GRP20 : (Group 20 pm_isu_queues1) Cycles FXU1/LS1 queue full event:0X144 counters:4 um:zero minimum:10000 name:PM_CYC_GRP20 : (Group 20 pm_isu_queues1) Processor cycles event:0X145 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP20 : (Group 20 pm_isu_queues1) Instructions completed event:0X146 counters:6 um:zero minimum:1000 name:PM_LSU_LRQ_FULL_CYC_GRP20 : (Group 20 pm_isu_queues1) Cycles LRQ full event:0X147 counters:7 um:zero minimum:1000 name:PM_LSU_SRQ_FULL_CYC_GRP20 : (Group 20 pm_isu_queues1) Cycles SRQ full #Group 21 pm_isu_flow, ISU Instruction Flow Events event:0X150 counters:0 um:zero minimum:1000 name:PM_INST_DISP_GRP21 : (Group 21 pm_isu_flow) Instructions dispatched event:0X151 counters:1 um:zero minimum:10000 name:PM_CYC_GRP21 : (Group 21 pm_isu_flow) Processor cycles event:0X152 counters:2 um:zero minimum:1000 name:PM_FXU0_FIN_GRP21 : (Group 21 pm_isu_flow) FXU0 produced a result event:0X153 counters:3 um:zero minimum:1000 name:PM_FXU1_FIN_GRP21 : (Group 21 pm_isu_flow) FXU1 produced a result event:0X154 counters:4 um:zero minimum:1000 name:PM_GRP_DISP_VALID_GRP21 : (Group 21 pm_isu_flow) Group dispatch valid event:0X155 counters:5 um:zero minimum:1000 name:PM_GRP_DISP_REJECT_GRP21 : (Group 21 pm_isu_flow) Group dispatch rejected event:0X156 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP21 : (Group 21 pm_isu_flow) Instructions completed event:0X157 counters:7 um:zero minimum:10000 name:PM_CYC_GRP21 : (Group 21 pm_isu_flow) Processor cycles #Group 22 pm_isu_work, ISU Indicators of Work Blockage event:0X160 counters:0 um:zero minimum:1000 name:PM_GCT_EMPTY_CYC_GRP22 : (Group 22 pm_isu_work) Cycles GCT empty event:0X161 counters:1 um:zero minimum:1000 name:PM_WORK_HELD_GRP22 : (Group 22 pm_isu_work) Work held event:0X162 counters:2 um:zero minimum:1000 name:PM_STOP_COMPLETION_GRP22 : (Group 22 pm_isu_work) Completion stopped event:0X163 counters:3 um:zero minimum:1000 name:PM_EE_OFF_EXT_INT_GRP22 : (Group 22 pm_isu_work) Cycles MSR(EE) bit off and external interrupt pending event:0X164 counters:4 um:zero minimum:10000 name:PM_CYC_GRP22 : (Group 22 pm_isu_work) Processor cycles event:0X165 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP22 : (Group 22 pm_isu_work) Instructions completed event:0X166 counters:6 um:zero minimum:1000 name:PM_EE_OFF_GRP22 : (Group 22 pm_isu_work) Cycles MSR(EE) bit off event:0X167 counters:7 um:zero minimum:1000 name:PM_EXT_INT_GRP22 : (Group 22 pm_isu_work) External interrupts #Group 23 pm_serialize, LSU Serializing Events event:0X170 counters:0 um:zero minimum:1000 name:PM_SNOOP_TLBIE_GRP23 : (Group 23 pm_serialize) Snoop TLBIE event:0X171 counters:1 um:zero minimum:1000 name:PM_STCX_FAIL_GRP23 : (Group 23 pm_serialize) STCX failed event:0X172 counters:2 um:zero minimum:1000 name:PM_STCX_PASS_GRP23 : (Group 23 pm_serialize) Stcx passes event:0X173 counters:3 um:zero minimum:10000 name:PM_CYC_GRP23 : (Group 23 pm_serialize) Processor cycles event:0X174 counters:4 um:zero minimum:1000 name:PM_1PLUS_PPC_CMPL_GRP23 : (Group 23 pm_serialize) One or more PPC instruction completed event:0X175 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP23 : (Group 23 pm_serialize) Instructions completed event:0X176 counters:6 um:zero minimum:1000 name:PM_LARX_LSU0_GRP23 : (Group 23 pm_serialize) Larx executed on LSU0 event:0X177 counters:7 um:zero minimum:1000 name:PM_LARX_LSU1_GRP23 : (Group 23 pm_serialize) Larx executed on LSU1 #Group 24 pm_lsubusy, LSU Busy Events event:0X180 counters:0 um:zero minimum:1000 name:PM_LSU_SRQ_S0_VALID_GRP24 : (Group 24 pm_lsubusy) SRQ slot 0 valid event:0X181 counters:1 um:zero minimum:1000 name:PM_LSU_SRQ_S0_ALLOC_GRP24 : (Group 24 pm_lsubusy) SRQ slot 0 allocated event:0X182 counters:2 um:zero minimum:1000 name:PM_LSU0_BUSY_GRP24 : (Group 24 pm_lsubusy) LSU0 busy event:0X183 counters:3 um:zero minimum:1000 name:PM_LSU1_BUSY_GRP24 : (Group 24 pm_lsubusy) LSU1 busy event:0X184 counters:4 um:zero minimum:1000 name:PM_LSU_LRQ_S0_VALID_GRP24 : (Group 24 pm_lsubusy) LRQ slot 0 valid event:0X185 counters:5 um:zero minimum:1000 name:PM_LSU_LRQ_S0_ALLOC_GRP24 : (Group 24 pm_lsubusy) LRQ slot 0 allocated event:0X186 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP24 : (Group 24 pm_lsubusy) Instructions completed event:0X187 counters:7 um:zero minimum:10000 name:PM_CYC_GRP24 : (Group 24 pm_lsubusy) Processor cycles #Group 25 pm_lsource2, Information on data source event:0X190 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP25 : (Group 25 pm_lsource2) Instructions completed event:0X191 counters:1 um:zero minimum:1000 name:PM_L1_DCACHE_RELOAD_VALID_GRP25 : (Group 25 pm_lsource2) L1 reload data source valid event:0X192 counters:2 um:zero minimum:10000 name:PM_CYC_GRP25 : (Group 25 pm_lsource2) Processor cycles event:0X193 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_L2_GRP25 : (Group 25 pm_lsource2) Data loaded from L2 event:0X194 counters:4 um:zero minimum:1000 name:PM_DATA_FROM_L25_SHR_GRP25 : (Group 25 pm_lsource2) Data loaded from L2.5 shared event:0X195 counters:5 um:zero minimum:1000 name:PM_DATA_FROM_L275_SHR_GRP25 : (Group 25 pm_lsource2) Data loaded from L2.75 shared event:0X196 counters:6 um:zero minimum:1000 name:PM_DATA_FROM_L275_MOD_GRP25 : (Group 25 pm_lsource2) Data loaded from L2.75 modified event:0X197 counters:7 um:zero minimum:1000 name:PM_DATA_FROM_L25_MOD_GRP25 : (Group 25 pm_lsource2) Data loaded from L2.5 modified #Group 26 pm_lsource3, Information on data source event:0X1A0 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L3_GRP26 : (Group 26 pm_lsource3) Data loaded from L3 event:0X1A1 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_MEM_GRP26 : (Group 26 pm_lsource3) Data loaded from memory event:0X1A2 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_L35_GRP26 : (Group 26 pm_lsource3) Data loaded from L3.5 event:0X1A3 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_L2_GRP26 : (Group 26 pm_lsource3) Data loaded from L2 event:0X1A4 counters:4 um:zero minimum:1000 name:PM_L1_DCACHE_RELOAD_VALID_GRP26 : (Group 26 pm_lsource3) L1 reload data source valid event:0X1A5 counters:5 um:zero minimum:10000 name:PM_CYC_GRP26 : (Group 26 pm_lsource3) Processor cycles event:0X1A6 counters:6 um:zero minimum:1000 name:PM_DATA_FROM_L275_MOD_GRP26 : (Group 26 pm_lsource3) Data loaded from L2.75 modified event:0X1A7 counters:7 um:zero minimum:10000 name:PM_INST_CMPL_GRP26 : (Group 26 pm_lsource3) Instructions completed #Group 27 pm_isource2, Instruction Source information event:0X1B0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP27 : (Group 27 pm_isource2) Instructions completed event:0X1B1 counters:1 um:zero minimum:10000 name:PM_CYC_GRP27 : (Group 27 pm_isource2) Processor cycles event:0X1B2 counters:2 um:zero minimum:1000 name:PM_INST_FROM_L2_GRP27 : (Group 27 pm_isource2) Instructions fetched from L2 event:0X1B3 counters:3 um:zero minimum:1000 name:PM_INST_FROM_L35_GRP27 : (Group 27 pm_isource2) Instructions fetched from L3.5 event:0X1B4 counters:4 um:zero minimum:1000 name:PM_INST_FROM_L3_GRP27 : (Group 27 pm_isource2) Instruction fetched from L3 event:0X1B5 counters:5 um:zero minimum:1000 name:PM_INST_FROM_L1_GRP27 : (Group 27 pm_isource2) Instruction fetched from L1 event:0X1B6 counters:6 um:zero minimum:1000 name:PM_INST_FROM_PREF_GRP27 : (Group 27 pm_isource2) Instructions fetched from prefetch event:0X1B7 counters:7 um:zero minimum:1000 name:PM_0INST_FETCH_GRP27 : (Group 27 pm_isource2) No instructions fetched #Group 28 pm_isource3, Instruction Source information event:0X1C0 counters:0 um:zero minimum:1000 name:PM_INST_FROM_MEM_GRP28 : (Group 28 pm_isource3) Instruction fetched from memory event:0X1C1 counters:1 um:zero minimum:1000 name:PM_INST_FROM_L25_L275_GRP28 : (Group 28 pm_isource3) Instruction fetched from L2.5/L2.75 event:0X1C2 counters:2 um:zero minimum:1000 name:PM_INST_FROM_L2_GRP28 : (Group 28 pm_isource3) Instructions fetched from L2 event:0X1C3 counters:3 um:zero minimum:1000 name:PM_INST_FROM_L35_GRP28 : (Group 28 pm_isource3) Instructions fetched from L3.5 event:0X1C4 counters:4 um:zero minimum:1000 name:PM_INST_FROM_L3_GRP28 : (Group 28 pm_isource3) Instruction fetched from L3 event:0X1C5 counters:5 um:zero minimum:1000 name:PM_INST_FROM_L1_GRP28 : (Group 28 pm_isource3) Instruction fetched from L1 event:0X1C6 counters:6 um:zero minimum:10000 name:PM_CYC_GRP28 : (Group 28 pm_isource3) Processor cycles event:0X1C7 counters:7 um:zero minimum:10000 name:PM_INST_CMPL_GRP28 : (Group 28 pm_isource3) Instructions completed #Group 29 pm_fpu3, Floating Point events by unit event:0X1D0 counters:0 um:zero minimum:1000 name:PM_FPU0_FDIV_GRP29 : (Group 29 pm_fpu3) FPU0 executed FDIV instruction event:0X1D1 counters:1 um:zero minimum:1000 name:PM_FPU1_FDIV_GRP29 : (Group 29 pm_fpu3) FPU1 executed FDIV instruction event:0X1D2 counters:2 um:zero minimum:1000 name:PM_FPU0_FRSP_FCONV_GRP29 : (Group 29 pm_fpu3) FPU0 executed FRSP or FCONV instructions event:0X1D3 counters:3 um:zero minimum:1000 name:PM_FPU1_FRSP_FCONV_GRP29 : (Group 29 pm_fpu3) FPU1 executed FRSP or FCONV instructions event:0X1D4 counters:4 um:zero minimum:1000 name:PM_FPU0_FMA_GRP29 : (Group 29 pm_fpu3) FPU0 executed multiply-add instruction event:0X1D5 counters:5 um:zero minimum:1000 name:PM_FPU1_FMA_GRP29 : (Group 29 pm_fpu3) FPU1 executed multiply-add instruction event:0X1D6 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP29 : (Group 29 pm_fpu3) Instructions completed event:0X1D7 counters:7 um:zero minimum:10000 name:PM_CYC_GRP29 : (Group 29 pm_fpu3) Processor cycles #Group 30 pm_fpu4, Floating Point events by unit event:0X1E0 counters:0 um:zero minimum:1000 name:PM_FPU0_FSQRT_GRP30 : (Group 30 pm_fpu4) FPU0 executed FSQRT instruction event:0X1E1 counters:1 um:zero minimum:1000 name:PM_FPU1_FSQRT_GRP30 : (Group 30 pm_fpu4) FPU1 executed FSQRT instruction event:0X1E2 counters:2 um:zero minimum:1000 name:PM_FPU0_FIN_GRP30 : (Group 30 pm_fpu4) FPU0 produced a result event:0X1E3 counters:3 um:zero minimum:1000 name:PM_FPU1_FIN_GRP30 : (Group 30 pm_fpu4) FPU1 produced a result event:0X1E4 counters:4 um:zero minimum:1000 name:PM_FPU0_ALL_GRP30 : (Group 30 pm_fpu4) FPU0 executed add, mult, sub, cmp or sel instruction event:0X1E5 counters:5 um:zero minimum:1000 name:PM_FPU1_ALL_GRP30 : (Group 30 pm_fpu4) FPU1 executed add, mult, sub, cmp or sel instruction event:0X1E6 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP30 : (Group 30 pm_fpu4) Instructions completed event:0X1E7 counters:7 um:zero minimum:10000 name:PM_CYC_GRP30 : (Group 30 pm_fpu4) Processor cycles #Group 31 pm_fpu5, Floating Point events by unit event:0X1F0 counters:0 um:zero minimum:1000 name:PM_FPU0_DENORM_GRP31 : (Group 31 pm_fpu5) FPU0 received denormalized data event:0X1F1 counters:1 um:zero minimum:1000 name:PM_FPU1_DENORM_GRP31 : (Group 31 pm_fpu5) FPU1 received denormalized data event:0X1F2 counters:2 um:zero minimum:1000 name:PM_FPU0_FMOV_FEST_GRP31 : (Group 31 pm_fpu5) FPU0 executed FMOV or FEST instructions event:0X1F3 counters:3 um:zero minimum:1000 name:PM_FPU1_FMOV_FEST_GRP31 : (Group 31 pm_fpu5) FPU1 executing FMOV or FEST instructions event:0X1F4 counters:4 um:zero minimum:10000 name:PM_CYC_GRP31 : (Group 31 pm_fpu5) Processor cycles event:0X1F5 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP31 : (Group 31 pm_fpu5) Instructions completed event:0X1F6 counters:6 um:zero minimum:1000 name:PM_FPU0_FEST_GRP31 : (Group 31 pm_fpu5) FPU0 executed FEST instruction event:0X1F7 counters:7 um:zero minimum:1000 name:PM_FPU1_FEST_GRP31 : (Group 31 pm_fpu5) FPU1 executed FEST instruction #Group 32 pm_fpu6, Floating Point events by unit event:0X200 counters:0 um:zero minimum:1000 name:PM_FPU0_SINGLE_GRP32 : (Group 32 pm_fpu6) FPU0 executed single precision instruction event:0X201 counters:1 um:zero minimum:1000 name:PM_FPU1_SINGLE_GRP32 : (Group 32 pm_fpu6) FPU1 executed single precision instruction event:0X202 counters:2 um:zero minimum:1000 name:PM_LSU0_LDF_GRP32 : (Group 32 pm_fpu6) LSU0 executed Floating Point load instruction event:0X203 counters:3 um:zero minimum:1000 name:PM_LSU1_LDF_GRP32 : (Group 32 pm_fpu6) LSU1 executed Floating Point load instruction event:0X204 counters:4 um:zero minimum:1000 name:PM_FPU0_STF_GRP32 : (Group 32 pm_fpu6) FPU0 executed store instruction event:0X205 counters:5 um:zero minimum:1000 name:PM_FPU1_STF_GRP32 : (Group 32 pm_fpu6) FPU1 executed store instruction event:0X206 counters:6 um:zero minimum:10000 name:PM_CYC_GRP32 : (Group 32 pm_fpu6) Processor cycles event:0X207 counters:7 um:zero minimum:10000 name:PM_INST_CMPL_GRP32 : (Group 32 pm_fpu6) Instructions completed #Group 33 pm_fpu7, Floating Point events by unit event:0X210 counters:0 um:zero minimum:1000 name:PM_FPU0_STALL3_GRP33 : (Group 33 pm_fpu7) FPU0 stalled in pipe3 event:0X211 counters:1 um:zero minimum:1000 name:PM_FPU1_STALL3_GRP33 : (Group 33 pm_fpu7) FPU1 stalled in pipe3 event:0X212 counters:2 um:zero minimum:1000 name:PM_FPU0_FIN_GRP33 : (Group 33 pm_fpu7) FPU0 produced a result event:0X213 counters:3 um:zero minimum:1000 name:PM_FPU1_FIN_GRP33 : (Group 33 pm_fpu7) FPU1 produced a result event:0X214 counters:4 um:zero minimum:10000 name:PM_CYC_GRP33 : (Group 33 pm_fpu7) Processor cycles event:0X215 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP33 : (Group 33 pm_fpu7) Instructions completed event:0X216 counters:6 um:zero minimum:10000 name:PM_CYC_GRP33 : (Group 33 pm_fpu7) Processor cycles event:0X217 counters:7 um:zero minimum:1000 name:PM_FPU0_FPSCR_GRP33 : (Group 33 pm_fpu7) FPU0 executed FPSCR instruction #Group 34 pm_fxu, Fix Point Unit events event:0X220 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP34 : (Group 34 pm_fxu) Instructions completed event:0X221 counters:1 um:zero minimum:10000 name:PM_CYC_GRP34 : (Group 34 pm_fxu) Processor cycles event:0X222 counters:2 um:zero minimum:1000 name:PM_FXU_FIN_GRP34 : (Group 34 pm_fxu) FXU produced a result event:0X223 counters:3 um:zero minimum:1000 name:PM_FXU1_BUSY_FXU0_IDLE_GRP34 : (Group 34 pm_fxu) FXU1 busy FXU0 idle event:0X224 counters:4 um:zero minimum:1000 name:PM_FXU_IDLE_GRP34 : (Group 34 pm_fxu) FXU idle event:0X225 counters:5 um:zero minimum:1000 name:PM_FXU_BUSY_GRP34 : (Group 34 pm_fxu) FXU busy event:0X226 counters:6 um:zero minimum:1000 name:PM_FXU0_BUSY_FXU1_IDLE_GRP34 : (Group 34 pm_fxu) FXU0 busy FXU1 idle event:0X227 counters:7 um:zero minimum:1000 name:PM_FXLS_FULL_CYC_GRP34 : (Group 34 pm_fxu) Cycles FXLS queue is full #Group 35 pm_lsu_lmq, LSU Load Miss Queue Events event:0X230 counters:0 um:zero minimum:1000 name:PM_LSU_LMQ_LHR_MERGE_GRP35 : (Group 35 pm_lsu_lmq) LMQ LHR merges event:0X231 counters:1 um:zero minimum:1000 name:PM_LSU_LMQ_FULL_CYC_GRP35 : (Group 35 pm_lsu_lmq) Cycles LMQ full event:0X232 counters:2 um:zero minimum:1000 name:PM_LSU_LMQ_S0_ALLOC_GRP35 : (Group 35 pm_lsu_lmq) LMQ slot 0 allocated event:0X233 counters:3 um:zero minimum:1000 name:PM_LSU_LMQ_S0_VALID_GRP35 : (Group 35 pm_lsu_lmq) LMQ slot 0 valid event:0X234 counters:4 um:zero minimum:10000 name:PM_CYC_GRP35 : (Group 35 pm_lsu_lmq) Processor cycles event:0X235 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP35 : (Group 35 pm_lsu_lmq) Instructions completed event:0X236 counters:6 um:zero minimum:1000 name:PM_LSU_SRQ_SYNC_CYC_GRP35 : (Group 35 pm_lsu_lmq) SRQ sync duration event:0X237 counters:7 um:zero minimum:1000 name:PM_DATA_TABLEWALK_CYC_GRP35 : (Group 35 pm_lsu_lmq) Cycles doing data tablewalks #Group 36 pm_lsu_flush, LSU Flush Events event:0X240 counters:0 um:zero minimum:1000 name:PM_LSU0_FLUSH_LRQ_GRP36 : (Group 36 pm_lsu_flush) LSU0 LRQ flushes event:0X241 counters:1 um:zero minimum:1000 name:PM_LSU1_FLUSH_LRQ_GRP36 : (Group 36 pm_lsu_flush) LSU1 LRQ flushes event:0X242 counters:2 um:zero minimum:10000 name:PM_CYC_GRP36 : (Group 36 pm_lsu_flush) Processor cycles event:0X243 counters:3 um:zero minimum:10000 name:PM_CYC_GRP36 : (Group 36 pm_lsu_flush) Processor cycles event:0X244 counters:4 um:zero minimum:1000 name:PM_LSU0_FLUSH_SRQ_GRP36 : (Group 36 pm_lsu_flush) LSU0 SRQ flushes event:0X245 counters:5 um:zero minimum:1000 name:PM_LSU1_FLUSH_SRQ_GRP36 : (Group 36 pm_lsu_flush) LSU1 SRQ flushes event:0X246 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP36 : (Group 36 pm_lsu_flush) Instructions completed event:0X247 counters:7 um:zero minimum:10000 name:PM_CYC_GRP36 : (Group 36 pm_lsu_flush) Processor cycles #Group 37 pm_lsu_load1, LSU Load Events event:0X250 counters:0 um:zero minimum:1000 name:PM_LSU0_FLUSH_ULD_GRP37 : (Group 37 pm_lsu_load1) LSU0 unaligned load flushes event:0X251 counters:1 um:zero minimum:1000 name:PM_LSU1_FLUSH_ULD_GRP37 : (Group 37 pm_lsu_load1) LSU1 unaligned load flushes event:0X252 counters:2 um:zero minimum:1000 name:PM_LD_REF_L1_LSU0_GRP37 : (Group 37 pm_lsu_load1) LSU0 L1 D cache load references event:0X253 counters:3 um:zero minimum:1000 name:PM_LD_REF_L1_LSU1_GRP37 : (Group 37 pm_lsu_load1) LSU1 L1 D cache load references event:0X254 counters:4 um:zero minimum:10000 name:PM_CYC_GRP37 : (Group 37 pm_lsu_load1) Processor cycles event:0X255 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP37 : (Group 37 pm_lsu_load1) Instructions completed event:0X256 counters:6 um:zero minimum:1000 name:PM_LD_MISS_L1_LSU0_GRP37 : (Group 37 pm_lsu_load1) LSU0 L1 D cache load misses event:0X257 counters:7 um:zero minimum:1000 name:PM_LD_MISS_L1_LSU1_GRP37 : (Group 37 pm_lsu_load1) LSU1 L1 D cache load misses #Group 38 pm_lsu_store1, LSU Store Events event:0X260 counters:0 um:zero minimum:1000 name:PM_LSU0_FLUSH_UST_GRP38 : (Group 38 pm_lsu_store1) LSU0 unaligned store flushes event:0X261 counters:1 um:zero minimum:1000 name:PM_LSU1_FLUSH_UST_GRP38 : (Group 38 pm_lsu_store1) LSU1 unaligned store flushes event:0X262 counters:2 um:zero minimum:1000 name:PM_ST_REF_L1_LSU0_GRP38 : (Group 38 pm_lsu_store1) LSU0 L1 D cache store references event:0X263 counters:3 um:zero minimum:1000 name:PM_ST_REF_L1_LSU1_GRP38 : (Group 38 pm_lsu_store1) LSU1 L1 D cache store references event:0X264 counters:4 um:zero minimum:10000 name:PM_CYC_GRP38 : (Group 38 pm_lsu_store1) Processor cycles event:0X265 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP38 : (Group 38 pm_lsu_store1) Instructions completed event:0X266 counters:6 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP38 : (Group 38 pm_lsu_store1) L1 D cache store misses event:0X267 counters:7 um:zero minimum:1000 name:PM_DC_INV_L2_GRP38 : (Group 38 pm_lsu_store1) L1 D cache entries invalidated from L2 #Group 39 pm_lsu_store2, LSU Store Events event:0X270 counters:0 um:zero minimum:1000 name:PM_LSU0_SRQ_STFWD_GRP39 : (Group 39 pm_lsu_store2) LSU0 SRQ store forwarded event:0X271 counters:1 um:zero minimum:1000 name:PM_LSU1_SRQ_STFWD_GRP39 : (Group 39 pm_lsu_store2) LSU1 SRQ store forwarded event:0X272 counters:2 um:zero minimum:1000 name:PM_ST_REF_L1_LSU0_GRP39 : (Group 39 pm_lsu_store2) LSU0 L1 D cache store references event:0X273 counters:3 um:zero minimum:1000 name:PM_ST_REF_L1_LSU1_GRP39 : (Group 39 pm_lsu_store2) LSU1 L1 D cache store references event:0X274 counters:4 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP39 : (Group 39 pm_lsu_store2) L1 D cache store misses event:0X275 counters:5 um:zero minimum:10000 name:PM_CYC_GRP39 : (Group 39 pm_lsu_store2) Processor cycles event:0X276 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP39 : (Group 39 pm_lsu_store2) Instructions completed event:0X277 counters:7 um:zero minimum:10000 name:PM_CYC_GRP39 : (Group 39 pm_lsu_store2) Processor cycles #Group 40 pm_lsu7, Information on the Load Store Unit event:0X280 counters:0 um:zero minimum:1000 name:PM_LSU0_DERAT_MISS_GRP40 : (Group 40 pm_lsu7) LSU0 DERAT misses event:0X281 counters:1 um:zero minimum:1000 name:PM_LSU1_DERAT_MISS_GRP40 : (Group 40 pm_lsu7) LSU1 DERAT misses event:0X282 counters:2 um:zero minimum:10000 name:PM_CYC_GRP40 : (Group 40 pm_lsu7) Processor cycles event:0X283 counters:3 um:zero minimum:10000 name:PM_CYC_GRP40 : (Group 40 pm_lsu7) Processor cycles event:0X284 counters:4 um:zero minimum:1000 name:PM_L1_DCACHE_RELOAD_VALID_GRP40 : (Group 40 pm_lsu7) L1 reload data source valid event:0X285 counters:5 um:zero minimum:10000 name:PM_CYC_GRP40 : (Group 40 pm_lsu7) Processor cycles event:0X286 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP40 : (Group 40 pm_lsu7) Instructions completed event:0X287 counters:7 um:zero minimum:10000 name:PM_CYC_GRP40 : (Group 40 pm_lsu7) Processor cycles #Group 41 pm_dpfetch, Data Prefetch Events event:0X290 counters:0 um:zero minimum:1000 name:PM_DC_PREF_STREAM_ALLOC_GRP41 : (Group 41 pm_dpfetch) D cache new prefetch stream allocated event:0X291 counters:1 um:zero minimum:1000 name:PM_DC_PREF_L2_CLONE_L3_GRP41 : (Group 41 pm_dpfetch) L2 prefetch cloned with L3 event:0X292 counters:2 um:zero minimum:1000 name:PM_L2_PREF_GRP41 : (Group 41 pm_dpfetch) L2 cache prefetches event:0X293 counters:3 um:zero minimum:1000 name:PM_L1_PREF_GRP41 : (Group 41 pm_dpfetch) L1 cache data prefetches event:0X294 counters:4 um:zero minimum:10000 name:PM_CYC_GRP41 : (Group 41 pm_dpfetch) Processor cycles event:0X295 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP41 : (Group 41 pm_dpfetch) Instructions completed event:0X296 counters:6 um:zero minimum:10000 name:PM_CYC_GRP41 : (Group 41 pm_dpfetch) Processor cycles event:0X297 counters:7 um:zero minimum:1000 name:PM_DC_PREF_OUT_STREAMS_GRP41 : (Group 41 pm_dpfetch) Out of prefetch streams #Group 42 pm_misc, Misc Events for testing event:0X2A0 counters:0 um:zero minimum:1000 name:PM_GCT_EMPTY_CYC_GRP42 : (Group 42 pm_misc) Cycles GCT empty event:0X2A1 counters:1 um:zero minimum:1000 name:PM_LSU_LMQ_SRQ_EMPTY_CYC_GRP42 : (Group 42 pm_misc) Cycles LMQ and SRQ empty event:0X2A2 counters:2 um:zero minimum:1000 name:PM_HV_CYC_GRP42 : (Group 42 pm_misc) Hypervisor Cycles event:0X2A3 counters:3 um:zero minimum:10000 name:PM_CYC_GRP42 : (Group 42 pm_misc) Processor cycles event:0X2A4 counters:4 um:zero minimum:1000 name:PM_1PLUS_PPC_CMPL_GRP42 : (Group 42 pm_misc) One or more PPC instruction completed event:0X2A5 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP42 : (Group 42 pm_misc) Instructions completed event:0X2A6 counters:6 um:zero minimum:1000 name:PM_GRP_CMPL_GRP42 : (Group 42 pm_misc) Group completed event:0X2A7 counters:7 um:zero minimum:1000 name:PM_TB_BIT_TRANS_GRP42 : (Group 42 pm_misc) Time Base bit transition #Group 43 pm_mark1, Information on marked instructions event:0X2B0 counters:0 um:zero minimum:1000 name:PM_MRK_LD_MISS_L1_GRP43 : (Group 43 pm_mark1) Marked L1 D cache load misses event:0X2B1 counters:1 um:zero minimum:1000 name:PM_THRESH_TIMEO_GRP43 : (Group 43 pm_mark1) Threshold timeout event:0X2B2 counters:2 um:zero minimum:10000 name:PM_CYC_GRP43 : (Group 43 pm_mark1) Processor cycles event:0X2B3 counters:3 um:zero minimum:1000 name:PM_MRK_GRP_CMPL_GRP43 : (Group 43 pm_mark1) Marked group completed event:0X2B4 counters:4 um:zero minimum:1000 name:PM_GRP_MRK_GRP43 : (Group 43 pm_mark1) Group marked in IDU event:0X2B5 counters:5 um:zero minimum:1000 name:PM_MRK_GRP_ISSUED_GRP43 : (Group 43 pm_mark1) Marked group issued event:0X2B6 counters:6 um:zero minimum:1000 name:PM_MRK_INST_FIN_GRP43 : (Group 43 pm_mark1) Marked instruction finished event:0X2B7 counters:7 um:zero minimum:10000 name:PM_INST_CMPL_GRP43 : (Group 43 pm_mark1) Instructions completed #Group 44 pm_mark2, Marked Instructions Processing Flow event:0X2C0 counters:0 um:zero minimum:1000 name:PM_MRK_GRP_DISP_GRP44 : (Group 44 pm_mark2) Marked group dispatched event:0X2C1 counters:1 um:zero minimum:1000 name:PM_MRK_BRU_FIN_GRP44 : (Group 44 pm_mark2) Marked instruction BRU processing finished event:0X2C2 counters:2 um:zero minimum:10000 name:PM_CYC_GRP44 : (Group 44 pm_mark2) Processor cycles event:0X2C3 counters:3 um:zero minimum:1000 name:PM_MRK_CRU_FIN_GRP44 : (Group 44 pm_mark2) Marked instruction CRU processing finished event:0X2C4 counters:4 um:zero minimum:1000 name:PM_GRP_MRK_GRP44 : (Group 44 pm_mark2) Group marked in IDU event:0X2C5 counters:5 um:zero minimum:1000 name:PM_MRK_FXU_FIN_GRP44 : (Group 44 pm_mark2) Marked instruction FXU processing finished event:0X2C6 counters:6 um:zero minimum:1000 name:PM_MRK_FPU_FIN_GRP44 : (Group 44 pm_mark2) Marked instruction FPU processing finished event:0X2C7 counters:7 um:zero minimum:1000 name:PM_MRK_LSU_FIN_GRP44 : (Group 44 pm_mark2) Marked instruction LSU processing finished #Group 45 pm_mark3, Marked Stores Processing Flow event:0X2D0 counters:0 um:zero minimum:1000 name:PM_MRK_ST_CMPL_GRP45 : (Group 45 pm_mark3) Marked store instruction completed event:0X2D1 counters:1 um:zero minimum:10000 name:PM_CYC_GRP45 : (Group 45 pm_mark3) Processor cycles event:0X2D2 counters:2 um:zero minimum:1000 name:PM_MRK_ST_CMPL_INT_GRP45 : (Group 45 pm_mark3) Marked store completed with intervention event:0X2D3 counters:3 um:zero minimum:1000 name:PM_MRK_GRP_CMPL_GRP45 : (Group 45 pm_mark3) Marked group completed event:0X2D4 counters:4 um:zero minimum:1000 name:PM_MRK_GRP_TIMEO_GRP45 : (Group 45 pm_mark3) Marked group completion timeout event:0X2D5 counters:5 um:zero minimum:1000 name:PM_MRK_ST_GPS_GRP45 : (Group 45 pm_mark3) Marked store sent to GPS event:0X2D6 counters:6 um:zero minimum:1000 name:PM_MRK_LSU_SRQ_INST_VALID_GRP45 : (Group 45 pm_mark3) Marked instruction valid in SRQ event:0X2D7 counters:7 um:zero minimum:10000 name:PM_INST_CMPL_GRP45 : (Group 45 pm_mark3) Instructions completed #Group 46 pm_mark4, Marked Loads Processing FLow event:0X2E0 counters:0 um:zero minimum:1000 name:PM_MRK_LD_MISS_L1_GRP46 : (Group 46 pm_mark4) Marked L1 D cache load misses event:0X2E1 counters:1 um:zero minimum:10000 name:PM_CYC_GRP46 : (Group 46 pm_mark4) Processor cycles event:0X2E2 counters:2 um:zero minimum:1000 name:PM_MRK_LSU_FLUSH_LRQ_GRP46 : (Group 46 pm_mark4) Marked LRQ flushes event:0X2E3 counters:3 um:zero minimum:1000 name:PM_MRK_LSU_FLUSH_SRQ_GRP46 : (Group 46 pm_mark4) Marked SRQ flushes event:0X2E4 counters:4 um:zero minimum:1000 name:PM_MRK_GRP_TIMEO_GRP46 : (Group 46 pm_mark4) Marked group completion timeout event:0X2E5 counters:5 um:zero minimum:1000 name:PM_MRK_GRP_ISSUED_GRP46 : (Group 46 pm_mark4) Marked group issued event:0X2E6 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP46 : (Group 46 pm_mark4) Instructions completed event:0X2E7 counters:7 um:zero minimum:1000 name:PM_MRK_LSU_FLUSH_ULD_GRP46 : (Group 46 pm_mark4) Marked unaligned load flushes #Group 47 pm_mark_lsource, Information on marked data source event:0X2F0 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L3_GRP47 : (Group 47 pm_mark_lsource) Marked data loaded from L3 event:0X2F1 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_MEM_GRP47 : (Group 47 pm_mark_lsource) Marked data loaded from memory event:0X2F2 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L35_GRP47 : (Group 47 pm_mark_lsource) Marked data loaded from L3.5 event:0X2F3 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2_GRP47 : (Group 47 pm_mark_lsource) Marked data loaded from L2 event:0X2F4 counters:4 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L25_SHR_GRP47 : (Group 47 pm_mark_lsource) Marked data loaded from L2.5 shared event:0X2F5 counters:5 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L275_SHR_GRP47 : (Group 47 pm_mark_lsource) Marked data loaded from L2.75 shared event:0X2F6 counters:6 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L275_MOD_GRP47 : (Group 47 pm_mark_lsource) Marked data loaded from L2.75 modified event:0X2F7 counters:7 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L25_MOD_GRP47 : (Group 47 pm_mark_lsource) Marked data loaded from L2.5 modified #Group 48 pm_mark_lsource2, Information on marked data source event:0X300 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP48 : (Group 48 pm_mark_lsource2) Instructions completed event:0X301 counters:1 um:zero minimum:10000 name:PM_CYC_GRP48 : (Group 48 pm_mark_lsource2) Processor cycles event:0X302 counters:2 um:zero minimum:1000 name:PM_MRK_L1_RELOAD_VALID_GRP48 : (Group 48 pm_mark_lsource2) Marked L1 reload data source valid event:0X303 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2_GRP48 : (Group 48 pm_mark_lsource2) Marked data loaded from L2 event:0X304 counters:4 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L25_SHR_GRP48 : (Group 48 pm_mark_lsource2) Marked data loaded from L2.5 shared event:0X305 counters:5 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L275_SHR_GRP48 : (Group 48 pm_mark_lsource2) Marked data loaded from L2.75 shared event:0X306 counters:6 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L275_MOD_GRP48 : (Group 48 pm_mark_lsource2) Marked data loaded from L2.75 modified event:0X307 counters:7 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L25_MOD_GRP48 : (Group 48 pm_mark_lsource2) Marked data loaded from L2.5 modified #Group 49 pm_mark_lsource3, Information on marked data source event:0X310 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L3_GRP49 : (Group 49 pm_mark_lsource3) Marked data loaded from L3 event:0X311 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_MEM_GRP49 : (Group 49 pm_mark_lsource3) Marked data loaded from memory event:0X312 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L35_GRP49 : (Group 49 pm_mark_lsource3) Marked data loaded from L3.5 event:0X313 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2_GRP49 : (Group 49 pm_mark_lsource3) Marked data loaded from L2 event:0X314 counters:4 um:zero minimum:10000 name:PM_CYC_GRP49 : (Group 49 pm_mark_lsource3) Processor cycles event:0X315 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP49 : (Group 49 pm_mark_lsource3) Instructions completed event:0X316 counters:6 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L275_MOD_GRP49 : (Group 49 pm_mark_lsource3) Marked data loaded from L2.75 modified event:0X317 counters:7 um:zero minimum:1000 name:PM_MRK_L1_RELOAD_VALID_GRP49 : (Group 49 pm_mark_lsource3) Marked L1 reload data source valid #Group 50 pm_lsu_mark1, Load Store Unit Marked Events event:0X320 counters:0 um:zero minimum:1000 name:PM_MRK_ST_MISS_L1_GRP50 : (Group 50 pm_lsu_mark1) Marked L1 D cache store misses event:0X321 counters:1 um:zero minimum:1000 name:PM_MRK_IMR_RELOAD_GRP50 : (Group 50 pm_lsu_mark1) Marked IMR reloaded event:0X322 counters:2 um:zero minimum:1000 name:PM_MRK_LSU0_FLUSH_ULD_GRP50 : (Group 50 pm_lsu_mark1) LSU0 marked unaligned load flushes event:0X323 counters:3 um:zero minimum:1000 name:PM_MRK_LSU1_FLUSH_ULD_GRP50 : (Group 50 pm_lsu_mark1) LSU1 marked unaligned load flushes event:0X324 counters:4 um:zero minimum:10000 name:PM_CYC_GRP50 : (Group 50 pm_lsu_mark1) Processor cycles event:0X325 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP50 : (Group 50 pm_lsu_mark1) Instructions completed event:0X326 counters:6 um:zero minimum:1000 name:PM_MRK_LSU0_FLUSH_UST_GRP50 : (Group 50 pm_lsu_mark1) LSU0 marked unaligned store flushes event:0X327 counters:7 um:zero minimum:1000 name:PM_MRK_LSU1_FLUSH_UST_GRP50 : (Group 50 pm_lsu_mark1) LSU1 marked unaligned store flushes #Group 51 pm_lsu_mark2, Load Store Unit Marked Events event:0X330 counters:0 um:zero minimum:1000 name:PM_MRK_LD_MISS_L1_LSU0_GRP51 : (Group 51 pm_lsu_mark2) LSU0 L1 D cache load misses event:0X331 counters:1 um:zero minimum:1000 name:PM_MRK_LD_MISS_L1_LSU1_GRP51 : (Group 51 pm_lsu_mark2) LSU1 L1 D cache load misses event:0X332 counters:2 um:zero minimum:1000 name:PM_MRK_LSU0_FLUSH_LRQ_GRP51 : (Group 51 pm_lsu_mark2) LSU0 marked LRQ flushes event:0X333 counters:3 um:zero minimum:1000 name:PM_MRK_LSU1_FLUSH_LRQ_GRP51 : (Group 51 pm_lsu_mark2) LSU1 marked LRQ flushes event:0X334 counters:4 um:zero minimum:10000 name:PM_CYC_GRP51 : (Group 51 pm_lsu_mark2) Processor cycles event:0X335 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP51 : (Group 51 pm_lsu_mark2) Instructions completed event:0X336 counters:6 um:zero minimum:1000 name:PM_MRK_LSU0_FLUSH_SRQ_GRP51 : (Group 51 pm_lsu_mark2) LSU0 marked SRQ flushes event:0X337 counters:7 um:zero minimum:1000 name:PM_MRK_LSU1_FLUSH_SRQ_GRP51 : (Group 51 pm_lsu_mark2) LSU1 marked SRQ flushes #Group 52 pm_lsu_mark3, Load Store Unit Marked Events event:0X340 counters:0 um:zero minimum:1000 name:PM_MRK_STCX_FAIL_GRP52 : (Group 52 pm_lsu_mark3) Marked STCX failed event:0X341 counters:1 um:zero minimum:10000 name:PM_CYC_GRP52 : (Group 52 pm_lsu_mark3) Processor cycles event:0X342 counters:2 um:zero minimum:1000 name:PM_MRK_LSU0_INST_FIN_GRP52 : (Group 52 pm_lsu_mark3) LSU0 finished a marked instruction event:0X343 counters:3 um:zero minimum:1000 name:PM_MRK_LSU1_INST_FIN_GRP52 : (Group 52 pm_lsu_mark3) LSU1 finished a marked instruction event:0X344 counters:4 um:zero minimum:10000 name:PM_CYC_GRP52 : (Group 52 pm_lsu_mark3) Processor cycles event:0X345 counters:5 um:zero minimum:1000 name:PM_MRK_GRP_ISSUED_GRP52 : (Group 52 pm_lsu_mark3) Marked group issued event:0X346 counters:6 um:zero minimum:1000 name:PM_MRK_INST_FIN_GRP52 : (Group 52 pm_lsu_mark3) Marked instruction finished event:0X347 counters:7 um:zero minimum:10000 name:PM_INST_CMPL_GRP52 : (Group 52 pm_lsu_mark3) Instructions completed #Group 53 pm_threshold, Group for pipeline threshold studies event:0X350 counters:0 um:zero minimum:1000 name:PM_LSU_LMQ_LHR_MERGE_GRP53 : (Group 53 pm_threshold) LMQ LHR merges event:0X351 counters:1 um:zero minimum:1000 name:PM_THRESH_TIMEO_GRP53 : (Group 53 pm_threshold) Threshold timeout event:0X352 counters:2 um:zero minimum:1000 name:PM_LSU_LMQ_S0_VALID_GRP53 : (Group 53 pm_threshold) LMQ slot 0 valid event:0X353 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP53 : (Group 53 pm_threshold) Instructions completed event:0X354 counters:4 um:zero minimum:10000 name:PM_CYC_GRP53 : (Group 53 pm_threshold) Processor cycles event:0X355 counters:5 um:zero minimum:1000 name:PM_MRK_GRP_ISSUED_GRP53 : (Group 53 pm_threshold) Marked group issued event:0X356 counters:6 um:zero minimum:1000 name:PM_GRP_CMPL_GRP53 : (Group 53 pm_threshold) Group completed event:0X357 counters:7 um:zero minimum:1000 name:PM_LSU_LMQ_S0_ALLOC_GRP53 : (Group 53 pm_threshold) LMQ slot 0 allocated #Group 54 pm_pe_bench1, PE Benchmarker group for FP analysis event:0X360 counters:0 um:zero minimum:1000 name:PM_FPU_FDIV_GRP54 : (Group 54 pm_pe_bench1) FPU executed FDIV instruction event:0X361 counters:1 um:zero minimum:1000 name:PM_FPU_FMA_GRP54 : (Group 54 pm_pe_bench1) FPU executed multiply-add instruction event:0X362 counters:2 um:zero minimum:1000 name:PM_FXU_FIN_GRP54 : (Group 54 pm_pe_bench1) FXU produced a result event:0X363 counters:3 um:zero minimum:1000 name:PM_FPU_FIN_GRP54 : (Group 54 pm_pe_bench1) FPU produced a result event:0X364 counters:4 um:zero minimum:10000 name:PM_CYC_GRP54 : (Group 54 pm_pe_bench1) Processor cycles event:0X365 counters:5 um:zero minimum:1000 name:PM_FPU_FSQRT_GRP54 : (Group 54 pm_pe_bench1) FPU executed FSQRT instruction event:0X366 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP54 : (Group 54 pm_pe_bench1) Instructions completed event:0X367 counters:7 um:zero minimum:1000 name:PM_FPU_FMOV_FEST_GRP54 : (Group 54 pm_pe_bench1) FPU executing FMOV or FEST instructions #Group 55 pm_pe_bench2, PE Benchmarker group for FP stalls analysis event:0X370 counters:0 um:zero minimum:10000 name:PM_CYC_GRP55 : (Group 55 pm_pe_bench2) Processor cycles event:0X371 counters:1 um:zero minimum:1000 name:PM_FPU_STALL3_GRP55 : (Group 55 pm_pe_bench2) FPU stalled in pipe3 event:0X372 counters:2 um:zero minimum:1000 name:PM_FPU0_FIN_GRP55 : (Group 55 pm_pe_bench2) FPU0 produced a result event:0X373 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP55 : (Group 55 pm_pe_bench2) Instructions completed event:0X374 counters:4 um:zero minimum:1000 name:PM_FPU_FULL_CYC_GRP55 : (Group 55 pm_pe_bench2) Cycles FPU issue queue full event:0X375 counters:5 um:zero minimum:1000 name:PM_FPU_STF_GRP55 : (Group 55 pm_pe_bench2) FPU executed store instruction event:0X376 counters:6 um:zero minimum:1000 name:PM_FPU1_FIN_GRP55 : (Group 55 pm_pe_bench2) FPU1 produced a result event:0X377 counters:7 um:zero minimum:1000 name:PM_LSU_LDF_GRP55 : (Group 55 pm_pe_bench2) LSU executed Floating Point load instruction #Group 56 pm_pe_bench3, PE Benchmarker group for branch analysis event:0X380 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP56 : (Group 56 pm_pe_bench3) Instructions completed event:0X381 counters:1 um:zero minimum:1000 name:PM_BIQ_IDU_FULL_CYC_GRP56 : (Group 56 pm_pe_bench3) Cycles BIQ or IDU full event:0X382 counters:2 um:zero minimum:1000 name:PM_BR_ISSUED_GRP56 : (Group 56 pm_pe_bench3) Branches issued event:0X383 counters:3 um:zero minimum:1000 name:PM_BR_MPRED_CR_GRP56 : (Group 56 pm_pe_bench3) Branch mispredictions due CR bit setting event:0X384 counters:4 um:zero minimum:1000 name:PM_BRQ_FULL_CYC_GRP56 : (Group 56 pm_pe_bench3) Cycles branch queue full event:0X385 counters:5 um:zero minimum:10000 name:PM_CYC_GRP56 : (Group 56 pm_pe_bench3) Processor cycles event:0X386 counters:6 um:zero minimum:1000 name:PM_BR_MPRED_TA_GRP56 : (Group 56 pm_pe_bench3) Branch mispredictions due to target address event:0X387 counters:7 um:zero minimum:1000 name:PM_L1_WRITE_CYC_GRP56 : (Group 56 pm_pe_bench3) Cycles writing to instruction L1 #Group 57 pm_pe_bench4, PE Benchmarker group for L1 and TLB analysis event:0X390 counters:0 um:zero minimum:1000 name:PM_DTLB_MISS_GRP57 : (Group 57 pm_pe_bench4) Data TLB misses event:0X391 counters:1 um:zero minimum:1000 name:PM_ITLB_MISS_GRP57 : (Group 57 pm_pe_bench4) Instruction TLB misses event:0X392 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP57 : (Group 57 pm_pe_bench4) L1 D cache load misses event:0X393 counters:3 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP57 : (Group 57 pm_pe_bench4) L1 D cache store misses event:0X394 counters:4 um:zero minimum:10000 name:PM_CYC_GRP57 : (Group 57 pm_pe_bench4) Processor cycles event:0X395 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP57 : (Group 57 pm_pe_bench4) Instructions completed event:0X396 counters:6 um:zero minimum:1000 name:PM_ST_REF_L1_GRP57 : (Group 57 pm_pe_bench4) L1 D cache store references event:0X397 counters:7 um:zero minimum:1000 name:PM_LD_REF_L1_GRP57 : (Group 57 pm_pe_bench4) L1 D cache load references #Group 58 pm_pe_bench5, PE Benchmarker group for L2 analysis event:0X3A0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP58 : (Group 58 pm_pe_bench5) Instructions completed event:0X3A1 counters:1 um:zero minimum:10000 name:PM_CYC_GRP58 : (Group 58 pm_pe_bench5) Processor cycles event:0X3A2 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_L35_GRP58 : (Group 58 pm_pe_bench5) Data loaded from L3.5 event:0X3A3 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_L2_GRP58 : (Group 58 pm_pe_bench5) Data loaded from L2 event:0X3A4 counters:4 um:zero minimum:1000 name:PM_DATA_FROM_L25_SHR_GRP58 : (Group 58 pm_pe_bench5) Data loaded from L2.5 shared event:0X3A5 counters:5 um:zero minimum:1000 name:PM_DATA_FROM_L275_SHR_GRP58 : (Group 58 pm_pe_bench5) Data loaded from L2.75 shared event:0X3A6 counters:6 um:zero minimum:1000 name:PM_DATA_FROM_L275_MOD_GRP58 : (Group 58 pm_pe_bench5) Data loaded from L2.75 modified event:0X3A7 counters:7 um:zero minimum:1000 name:PM_DATA_FROM_L25_MOD_GRP58 : (Group 58 pm_pe_bench5) Data loaded from L2.5 modified #Group 59 pm_pe_bench6, PE Benchmarker group for L3 analysis event:0X3B0 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L3_GRP59 : (Group 59 pm_pe_bench6) Data loaded from L3 event:0X3B1 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_MEM_GRP59 : (Group 59 pm_pe_bench6) Data loaded from memory event:0X3B2 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_L35_GRP59 : (Group 59 pm_pe_bench6) Data loaded from L3.5 event:0X3B3 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_L2_GRP59 : (Group 59 pm_pe_bench6) Data loaded from L2 event:0X3B4 counters:4 um:zero minimum:1000 name:PM_DATA_FROM_L25_SHR_GRP59 : (Group 59 pm_pe_bench6) Data loaded from L2.5 shared event:0X3B5 counters:5 um:zero minimum:10000 name:PM_CYC_GRP59 : (Group 59 pm_pe_bench6) Processor cycles event:0X3B6 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP59 : (Group 59 pm_pe_bench6) Instructions completed event:0X3B7 counters:7 um:zero minimum:1000 name:PM_DATA_FROM_L25_MOD_GRP59 : (Group 59 pm_pe_bench6) Data loaded from L2.5 modified #Group 60 pm_hpmcount1, Hpmcount group for L1 and TLB behavior analysis event:0X3C0 counters:0 um:zero minimum:1000 name:PM_DTLB_MISS_GRP60 : (Group 60 pm_hpmcount1) Data TLB misses event:0X3C1 counters:1 um:zero minimum:1000 name:PM_LSU_LMQ_SRQ_EMPTY_CYC_GRP60 : (Group 60 pm_hpmcount1) Cycles LMQ and SRQ empty event:0X3C2 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP60 : (Group 60 pm_hpmcount1) L1 D cache load misses event:0X3C3 counters:3 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP60 : (Group 60 pm_hpmcount1) L1 D cache store misses event:0X3C4 counters:4 um:zero minimum:10000 name:PM_CYC_GRP60 : (Group 60 pm_hpmcount1) Processor cycles event:0X3C5 counters:5 um:zero minimum:10000 name:PM_INST_CMPL_GRP60 : (Group 60 pm_hpmcount1) Instructions completed event:0X3C6 counters:6 um:zero minimum:1000 name:PM_ST_REF_L1_GRP60 : (Group 60 pm_hpmcount1) L1 D cache store references event:0X3C7 counters:7 um:zero minimum:1000 name:PM_LD_REF_L1_GRP60 : (Group 60 pm_hpmcount1) L1 D cache load references #Group 61 pm_hpmcount2, Hpmcount group for computation intensity analysis event:0X3D0 counters:0 um:zero minimum:1000 name:PM_FPU_FDIV_GRP61 : (Group 61 pm_hpmcount2) FPU executed FDIV instruction event:0X3D1 counters:1 um:zero minimum:1000 name:PM_FPU_FMA_GRP61 : (Group 61 pm_hpmcount2) FPU executed multiply-add instruction event:0X3D2 counters:2 um:zero minimum:1000 name:PM_FPU0_FIN_GRP61 : (Group 61 pm_hpmcount2) FPU0 produced a result event:0X3D3 counters:3 um:zero minimum:1000 name:PM_FPU1_FIN_GRP61 : (Group 61 pm_hpmcount2) FPU1 produced a result event:0X3D4 counters:4 um:zero minimum:10000 name:PM_CYC_GRP61 : (Group 61 pm_hpmcount2) Processor cycles event:0X3D5 counters:5 um:zero minimum:1000 name:PM_FPU_STF_GRP61 : (Group 61 pm_hpmcount2) FPU executed store instruction event:0X3D6 counters:6 um:zero minimum:10000 name:PM_INST_CMPL_GRP61 : (Group 61 pm_hpmcount2) Instructions completed event:0X3D7 counters:7 um:zero minimum:1000 name:PM_LSU_LDF_GRP61 : (Group 61 pm_hpmcount2) LSU executed Floating Point load instruction #Group 62 pm_l1andbr, L1 misses and branch misspredict analysis event:0X3E0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP62 : (Group 62 pm_l1andbr) Instructions completed event:0X3E1 counters:1 um:zero minimum:10000 name:PM_CYC_GRP62 : (Group 62 pm_l1andbr) Processor cycles event:0X3E2 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP62 : (Group 62 pm_l1andbr) L1 D cache load misses event:0X3E3 counters:3 um:zero minimum:1000 name:PM_BR_ISSUED_GRP62 : (Group 62 pm_l1andbr) Branches issued event:0X3E4 counters:4 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP62 : (Group 62 pm_l1andbr) L1 D cache store misses event:0X3E5 counters:5 um:zero minimum:10000 name:PM_CYC_GRP62 : (Group 62 pm_l1andbr) Processor cycles event:0X3E6 counters:6 um:zero minimum:1000 name:PM_BR_MPRED_CR_GRP62 : (Group 62 pm_l1andbr) Branch mispredictions due CR bit setting event:0X3E7 counters:7 um:zero minimum:1000 name:PM_BR_MPRED_TA_GRP62 : (Group 62 pm_l1andbr) Branch mispredictions due to target address #Group 63 pm_imix, Instruction mix: loads, stores and branches event:0X3F0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP63 : (Group 63 pm_imix) Instructions completed event:0X3F1 counters:1 um:zero minimum:10000 name:PM_CYC_GRP63 : (Group 63 pm_imix) Processor cycles event:0X3F2 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP63 : (Group 63 pm_imix) L1 D cache load misses event:0X3F3 counters:3 um:zero minimum:1000 name:PM_BR_ISSUED_GRP63 : (Group 63 pm_imix) Branches issued event:0X3F4 counters:4 um:zero minimum:10000 name:PM_CYC_GRP63 : (Group 63 pm_imix) Processor cycles event:0X3F5 counters:5 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP63 : (Group 63 pm_imix) L1 D cache store misses event:0X3F6 counters:6 um:zero minimum:1000 name:PM_ST_REF_L1_GRP63 : (Group 63 pm_imix) L1 D cache store references event:0X3F7 counters:7 um:zero minimum:1000 name:PM_LD_REF_L1_GRP63 : (Group 63 pm_imix) L1 D cache load references oprofile-0.9.9/events/ppc64/power4/unit_masks0000664000076400007640000000013512175510133016060 00000000000000# ppc64 POWER4 possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/ppc64/power4/event_mappings0000664000076400007640000011432312175510133016727 00000000000000#Mapping of event groups to MMCR values #Group Default event:0X001 mmcr0:0X00000D0E mmcr1:0X000000004A5675AC mmcra:0X00022001 #Group 1 pm_slice0, Time Slice 0 event:0X010 mmcr0:0X00000D0E mmcr1:0X000000004A5675AC mmcra:0X00022001 event:0X011 mmcr0:0X00000D0E mmcr1:0X000000004A5675AC mmcra:0X00022001 event:0X012 mmcr0:0X00000D0E mmcr1:0X000000004A5675AC mmcra:0X00022001 event:0X013 mmcr0:0X00000D0E mmcr1:0X000000004A5675AC mmcra:0X00022001 event:0X014 mmcr0:0X00000D0E mmcr1:0X000000004A5675AC mmcra:0X00022001 event:0X015 mmcr0:0X00000D0E mmcr1:0X000000004A5675AC mmcra:0X00022001 event:0X016 mmcr0:0X00000D0E mmcr1:0X000000004A5675AC mmcra:0X00022001 event:0X017 mmcr0:0X00000D0E mmcr1:0X000000004A5675AC mmcra:0X00022001 #Group 2 pm_eprof, Group for use with eprof event:0X020 mmcr0:0X0000070E mmcr1:0X1003400045F29420 mmcra:0X00002001 event:0X021 mmcr0:0X0000070E mmcr1:0X1003400045F29420 mmcra:0X00002001 event:0X022 mmcr0:0X0000070E mmcr1:0X1003400045F29420 mmcra:0X00002001 event:0X023 mmcr0:0X0000070E mmcr1:0X1003400045F29420 mmcra:0X00002001 event:0X024 mmcr0:0X0000070E mmcr1:0X1003400045F29420 mmcra:0X00002001 event:0X025 mmcr0:0X0000070E mmcr1:0X1003400045F29420 mmcra:0X00002001 event:0X026 mmcr0:0X0000070E mmcr1:0X1003400045F29420 mmcra:0X00002001 event:0X027 mmcr0:0X0000070E mmcr1:0X1003400045F29420 mmcra:0X00002001 #Group 3 pm_basic, Basic performance indicators event:0X030 mmcr0:0X0000090E mmcr1:0X1003400045F29420 mmcra:0X00002001 event:0X031 mmcr0:0X0000090E mmcr1:0X1003400045F29420 mmcra:0X00002001 event:0X032 mmcr0:0X0000090E mmcr1:0X1003400045F29420 mmcra:0X00002001 event:0X033 mmcr0:0X0000090E mmcr1:0X1003400045F29420 mmcra:0X00002001 event:0X034 mmcr0:0X0000090E mmcr1:0X1003400045F29420 mmcra:0X00002001 event:0X035 mmcr0:0X0000090E mmcr1:0X1003400045F29420 mmcra:0X00002001 event:0X036 mmcr0:0X0000090E mmcr1:0X1003400045F29420 mmcra:0X00002001 event:0X037 mmcr0:0X0000090E mmcr1:0X1003400045F29420 mmcra:0X00002001 #Group 4 pm_ifu, IFU events event:0X040 mmcr0:0X00000938 mmcr1:0X80000000C6767D6C mmcra:0X00022001 event:0X041 mmcr0:0X00000938 mmcr1:0X80000000C6767D6C mmcra:0X00022001 event:0X042 mmcr0:0X00000938 mmcr1:0X80000000C6767D6C mmcra:0X00022001 event:0X043 mmcr0:0X00000938 mmcr1:0X80000000C6767D6C mmcra:0X00022001 event:0X044 mmcr0:0X00000938 mmcr1:0X80000000C6767D6C mmcra:0X00022001 event:0X045 mmcr0:0X00000938 mmcr1:0X80000000C6767D6C mmcra:0X00022001 event:0X046 mmcr0:0X00000938 mmcr1:0X80000000C6767D6C mmcra:0X00022001 event:0X047 mmcr0:0X00000938 mmcr1:0X80000000C6767D6C mmcra:0X00022001 #Group 5 pm_isu, ISU Queue full events event:0X050 mmcr0:0X0000112A mmcr1:0X50041000EA5103A0 mmcra:0X00002001 event:0X051 mmcr0:0X0000112A mmcr1:0X50041000EA5103A0 mmcra:0X00002001 event:0X052 mmcr0:0X0000112A mmcr1:0X50041000EA5103A0 mmcra:0X00002001 event:0X053 mmcr0:0X0000112A mmcr1:0X50041000EA5103A0 mmcra:0X00002001 event:0X054 mmcr0:0X0000112A mmcr1:0X50041000EA5103A0 mmcra:0X00002001 event:0X055 mmcr0:0X0000112A mmcr1:0X50041000EA5103A0 mmcra:0X00002001 event:0X056 mmcr0:0X0000112A mmcr1:0X50041000EA5103A0 mmcra:0X00002001 event:0X057 mmcr0:0X0000112A mmcr1:0X50041000EA5103A0 mmcra:0X00002001 #Group 6 pm_lsource, Information on data source event:0X060 mmcr0:0X00000E1C mmcr1:0X0010C000739CE738 mmcra:0X00002001 event:0X061 mmcr0:0X00000E1C mmcr1:0X0010C000739CE738 mmcra:0X00002001 event:0X062 mmcr0:0X00000E1C mmcr1:0X0010C000739CE738 mmcra:0X00002001 event:0X063 mmcr0:0X00000E1C mmcr1:0X0010C000739CE738 mmcra:0X00002001 event:0X064 mmcr0:0X00000E1C mmcr1:0X0010C000739CE738 mmcra:0X00002001 event:0X065 mmcr0:0X00000E1C mmcr1:0X0010C000739CE738 mmcra:0X00002001 event:0X066 mmcr0:0X00000E1C mmcr1:0X0010C000739CE738 mmcra:0X00002001 event:0X067 mmcr0:0X00000E1C mmcr1:0X0010C000739CE738 mmcra:0X00002001 #Group 7 pm_isource, Instruction Source information event:0X070 mmcr0:0X00000F1E mmcr1:0X800000007BDEF7BC mmcra:0X00022001 event:0X071 mmcr0:0X00000F1E mmcr1:0X800000007BDEF7BC mmcra:0X00022001 event:0X072 mmcr0:0X00000F1E mmcr1:0X800000007BDEF7BC mmcra:0X00022001 event:0X073 mmcr0:0X00000F1E mmcr1:0X800000007BDEF7BC mmcra:0X00022001 event:0X074 mmcr0:0X00000F1E mmcr1:0X800000007BDEF7BC mmcra:0X00022001 event:0X075 mmcr0:0X00000F1E mmcr1:0X800000007BDEF7BC mmcra:0X00022001 event:0X076 mmcr0:0X00000F1E mmcr1:0X800000007BDEF7BC mmcra:0X00022001 event:0X077 mmcr0:0X00000F1E mmcr1:0X800000007BDEF7BC mmcra:0X00022001 #Group 8 pm_lsu, Information on the Load Store Unit event:0X080 mmcr0:0X00000810 mmcr1:0X000F00003A508420 mmcra:0X00002001 event:0X081 mmcr0:0X00000810 mmcr1:0X000F00003A508420 mmcra:0X00002001 event:0X082 mmcr0:0X00000810 mmcr1:0X000F00003A508420 mmcra:0X00002001 event:0X083 mmcr0:0X00000810 mmcr1:0X000F00003A508420 mmcra:0X00002001 event:0X084 mmcr0:0X00000810 mmcr1:0X000F00003A508420 mmcra:0X00002001 event:0X085 mmcr0:0X00000810 mmcr1:0X000F00003A508420 mmcra:0X00002001 event:0X086 mmcr0:0X00000810 mmcr1:0X000F00003A508420 mmcra:0X00002001 event:0X087 mmcr0:0X00000810 mmcr1:0X000F00003A508420 mmcra:0X00002001 #Group 9 pm_xlate1, Translation Events event:0X090 mmcr0:0X00001028 mmcr1:0X81082000F67E849C mmcra:0X00022001 event:0X091 mmcr0:0X00001028 mmcr1:0X81082000F67E849C mmcra:0X00022001 event:0X092 mmcr0:0X00001028 mmcr1:0X81082000F67E849C mmcra:0X00022001 event:0X093 mmcr0:0X00001028 mmcr1:0X81082000F67E849C mmcra:0X00022001 event:0X094 mmcr0:0X00001028 mmcr1:0X81082000F67E849C mmcra:0X00022001 event:0X095 mmcr0:0X00001028 mmcr1:0X81082000F67E849C mmcra:0X00022001 event:0X096 mmcr0:0X00001028 mmcr1:0X81082000F67E849C mmcra:0X00022001 event:0X097 mmcr0:0X00001028 mmcr1:0X81082000F67E849C mmcra:0X00022001 #Group 10 pm_xlate2, Translation Events event:0X0A0 mmcr0:0X0000112A mmcr1:0X81082000D77E849C mmcra:0X00022001 event:0X0A1 mmcr0:0X0000112A mmcr1:0X81082000D77E849C mmcra:0X00022001 event:0X0A2 mmcr0:0X0000112A mmcr1:0X81082000D77E849C mmcra:0X00022001 event:0X0A3 mmcr0:0X0000112A mmcr1:0X81082000D77E849C mmcra:0X00022001 event:0X0A4 mmcr0:0X0000112A mmcr1:0X81082000D77E849C mmcra:0X00022001 event:0X0A5 mmcr0:0X0000112A mmcr1:0X81082000D77E849C mmcra:0X00022001 event:0X0A6 mmcr0:0X0000112A mmcr1:0X81082000D77E849C mmcra:0X00022001 event:0X0A7 mmcr0:0X0000112A mmcr1:0X81082000D77E849C mmcra:0X00022001 #Group 11 pm_gps1, L3 Events event:0X0B0 mmcr0:0X00001022 mmcr1:0X00000C00B5E5349C mmcra:0X00022001 event:0X0B1 mmcr0:0X00001022 mmcr1:0X00000C00B5E5349C mmcra:0X00022001 event:0X0B2 mmcr0:0X00001022 mmcr1:0X00000C00B5E5349C mmcra:0X00022001 event:0X0B3 mmcr0:0X00001022 mmcr1:0X00000C00B5E5349C mmcra:0X00022001 event:0X0B4 mmcr0:0X00001022 mmcr1:0X00000C00B5E5349C mmcra:0X00022001 event:0X0B5 mmcr0:0X00001022 mmcr1:0X00000C00B5E5349C mmcra:0X00022001 event:0X0B6 mmcr0:0X00001022 mmcr1:0X00000C00B5E5349C mmcra:0X00022001 event:0X0B7 mmcr0:0X00001022 mmcr1:0X00000C00B5E5349C mmcra:0X00022001 #Group 12 pm_l2a, L2 SliceA events event:0X0C0 mmcr0:0X0000162A mmcr1:0X00000C008469749C mmcra:0X00022001 event:0X0C1 mmcr0:0X0000162A mmcr1:0X00000C008469749C mmcra:0X00022001 event:0X0C2 mmcr0:0X0000162A mmcr1:0X00000C008469749C mmcra:0X00022001 event:0X0C3 mmcr0:0X0000162A mmcr1:0X00000C008469749C mmcra:0X00022001 event:0X0C4 mmcr0:0X0000162A mmcr1:0X00000C008469749C mmcra:0X00022001 event:0X0C5 mmcr0:0X0000162A mmcr1:0X00000C008469749C mmcra:0X00022001 event:0X0C6 mmcr0:0X0000162A mmcr1:0X00000C008469749C mmcra:0X00022001 event:0X0C7 mmcr0:0X0000162A mmcr1:0X00000C008469749C mmcra:0X00022001 #Group 13 pm_l2b, L2 SliceB events event:0X0D0 mmcr0:0X00001A32 mmcr1:0X0000060094F1B49C mmcra:0X00022001 event:0X0D1 mmcr0:0X00001A32 mmcr1:0X0000060094F1B49C mmcra:0X00022001 event:0X0D2 mmcr0:0X00001A32 mmcr1:0X0000060094F1B49C mmcra:0X00022001 event:0X0D3 mmcr0:0X00001A32 mmcr1:0X0000060094F1B49C mmcra:0X00022001 event:0X0D4 mmcr0:0X00001A32 mmcr1:0X0000060094F1B49C mmcra:0X00022001 event:0X0D5 mmcr0:0X00001A32 mmcr1:0X0000060094F1B49C mmcra:0X00022001 event:0X0D6 mmcr0:0X00001A32 mmcr1:0X0000060094F1B49C mmcra:0X00022001 event:0X0D7 mmcr0:0X00001A32 mmcr1:0X0000060094F1B49C mmcra:0X00022001 #Group 14 pm_l2c, L2 SliceC events event:0X0E0 mmcr0:0X00001E3A mmcr1:0X00000600A579F49C mmcra:0X00022001 event:0X0E1 mmcr0:0X00001E3A mmcr1:0X00000600A579F49C mmcra:0X00022001 event:0X0E2 mmcr0:0X00001E3A mmcr1:0X00000600A579F49C mmcra:0X00022001 event:0X0E3 mmcr0:0X00001E3A mmcr1:0X00000600A579F49C mmcra:0X00022001 event:0X0E4 mmcr0:0X00001E3A mmcr1:0X00000600A579F49C mmcra:0X00022001 event:0X0E5 mmcr0:0X00001E3A mmcr1:0X00000600A579F49C mmcra:0X00022001 event:0X0E6 mmcr0:0X00001E3A mmcr1:0X00000600A579F49C mmcra:0X00022001 event:0X0E7 mmcr0:0X00001E3A mmcr1:0X00000600A579F49C mmcra:0X00022001 #Group 15 pm_fpu1, Floating Point events event:0X0F0 mmcr0:0X00000810 mmcr1:0X00000000420E84A0 mmcra:0X00002001 event:0X0F1 mmcr0:0X00000810 mmcr1:0X00000000420E84A0 mmcra:0X00002001 event:0X0F2 mmcr0:0X00000810 mmcr1:0X00000000420E84A0 mmcra:0X00002001 event:0X0F3 mmcr0:0X00000810 mmcr1:0X00000000420E84A0 mmcra:0X00002001 event:0X0F4 mmcr0:0X00000810 mmcr1:0X00000000420E84A0 mmcra:0X00002001 event:0X0F5 mmcr0:0X00000810 mmcr1:0X00000000420E84A0 mmcra:0X00002001 event:0X0F6 mmcr0:0X00000810 mmcr1:0X00000000420E84A0 mmcra:0X00002001 event:0X0F7 mmcr0:0X00000810 mmcr1:0X00000000420E84A0 mmcra:0X00002001 #Group 16 pm_fpu2, Floating Point events event:0X100 mmcr0:0X00000810 mmcr1:0X010020E83A508420 mmcra:0X00002001 event:0X101 mmcr0:0X00000810 mmcr1:0X010020E83A508420 mmcra:0X00002001 event:0X102 mmcr0:0X00000810 mmcr1:0X010020E83A508420 mmcra:0X00002001 event:0X103 mmcr0:0X00000810 mmcr1:0X010020E83A508420 mmcra:0X00002001 event:0X104 mmcr0:0X00000810 mmcr1:0X010020E83A508420 mmcra:0X00002001 event:0X105 mmcr0:0X00000810 mmcr1:0X010020E83A508420 mmcra:0X00002001 event:0X106 mmcr0:0X00000810 mmcr1:0X010020E83A508420 mmcra:0X00002001 event:0X107 mmcr0:0X00000810 mmcr1:0X010020E83A508420 mmcra:0X00002001 #Group 17 pm_idu1, Instruction Decode Unit events event:0X110 mmcr0:0X0000090E mmcr1:0X040100008456794C mmcra:0X00022001 event:0X111 mmcr0:0X0000090E mmcr1:0X040100008456794C mmcra:0X00022001 event:0X112 mmcr0:0X0000090E mmcr1:0X040100008456794C mmcra:0X00022001 event:0X113 mmcr0:0X0000090E mmcr1:0X040100008456794C mmcra:0X00022001 event:0X114 mmcr0:0X0000090E mmcr1:0X040100008456794C mmcra:0X00022001 event:0X115 mmcr0:0X0000090E mmcr1:0X040100008456794C mmcra:0X00022001 event:0X116 mmcr0:0X0000090E mmcr1:0X040100008456794C mmcra:0X00022001 event:0X117 mmcr0:0X0000090E mmcr1:0X040100008456794C mmcra:0X00022001 #Group 18 pm_idu2, Instruction Decode Unit events event:0X120 mmcr0:0X0000090E mmcr1:0X04010000A5527B5C mmcra:0X00022001 event:0X121 mmcr0:0X0000090E mmcr1:0X04010000A5527B5C mmcra:0X00022001 event:0X122 mmcr0:0X0000090E mmcr1:0X04010000A5527B5C mmcra:0X00022001 event:0X123 mmcr0:0X0000090E mmcr1:0X04010000A5527B5C mmcra:0X00022001 event:0X124 mmcr0:0X0000090E mmcr1:0X04010000A5527B5C mmcra:0X00022001 event:0X125 mmcr0:0X0000090E mmcr1:0X04010000A5527B5C mmcra:0X00022001 event:0X126 mmcr0:0X0000090E mmcr1:0X04010000A5527B5C mmcra:0X00022001 event:0X127 mmcr0:0X0000090E mmcr1:0X04010000A5527B5C mmcra:0X00022001 #Group 19 pm_isu_rename, ISU Rename Pool Events event:0X130 mmcr0:0X00001228 mmcr1:0X100550008E6D949C mmcra:0X00022001 event:0X131 mmcr0:0X00001228 mmcr1:0X100550008E6D949C mmcra:0X00022001 event:0X132 mmcr0:0X00001228 mmcr1:0X100550008E6D949C mmcra:0X00022001 event:0X133 mmcr0:0X00001228 mmcr1:0X100550008E6D949C mmcra:0X00022001 event:0X134 mmcr0:0X00001228 mmcr1:0X100550008E6D949C mmcra:0X00022001 event:0X135 mmcr0:0X00001228 mmcr1:0X100550008E6D949C mmcra:0X00022001 event:0X136 mmcr0:0X00001228 mmcr1:0X100550008E6D949C mmcra:0X00022001 event:0X137 mmcr0:0X00001228 mmcr1:0X100550008E6D949C mmcra:0X00022001 #Group 20 pm_isu_queues1, ISU Queue Full Events event:0X140 mmcr0:0X0000132E mmcr1:0X10050000850E994C mmcra:0X00022001 event:0X141 mmcr0:0X0000132E mmcr1:0X10050000850E994C mmcra:0X00022001 event:0X142 mmcr0:0X0000132E mmcr1:0X10050000850E994C mmcra:0X00022001 event:0X143 mmcr0:0X0000132E mmcr1:0X10050000850E994C mmcra:0X00022001 event:0X144 mmcr0:0X0000132E mmcr1:0X10050000850E994C mmcra:0X00022001 event:0X145 mmcr0:0X0000132E mmcr1:0X10050000850E994C mmcra:0X00022001 event:0X146 mmcr0:0X0000132E mmcr1:0X10050000850E994C mmcra:0X00022001 event:0X147 mmcr0:0X0000132E mmcr1:0X10050000850E994C mmcra:0X00022001 #Group 21 pm_isu_flow, ISU Instruction Flow Events event:0X150 mmcr0:0X0000190E mmcr1:0X10005000D7B7C49C mmcra:0X00022001 event:0X151 mmcr0:0X0000190E mmcr1:0X10005000D7B7C49C mmcra:0X00022001 event:0X152 mmcr0:0X0000190E mmcr1:0X10005000D7B7C49C mmcra:0X00022001 event:0X153 mmcr0:0X0000190E mmcr1:0X10005000D7B7C49C mmcra:0X00022001 event:0X154 mmcr0:0X0000190E mmcr1:0X10005000D7B7C49C mmcra:0X00022001 event:0X155 mmcr0:0X0000190E mmcr1:0X10005000D7B7C49C mmcra:0X00022001 event:0X156 mmcr0:0X0000190E mmcr1:0X10005000D7B7C49C mmcra:0X00022001 event:0X157 mmcr0:0X0000190E mmcr1:0X10005000D7B7C49C mmcra:0X00022001 #Group 22 pm_isu_work, ISU Indicators of Work Blockage event:0X160 mmcr0:0X00000C12 mmcr1:0X100010004FCE9DA8 mmcra:0X00002001 event:0X161 mmcr0:0X00000C12 mmcr1:0X100010004FCE9DA8 mmcra:0X00002001 event:0X162 mmcr0:0X00000C12 mmcr1:0X100010004FCE9DA8 mmcra:0X00002001 event:0X163 mmcr0:0X00000C12 mmcr1:0X100010004FCE9DA8 mmcra:0X00002001 event:0X164 mmcr0:0X00000C12 mmcr1:0X100010004FCE9DA8 mmcra:0X00002001 event:0X165 mmcr0:0X00000C12 mmcr1:0X100010004FCE9DA8 mmcra:0X00002001 event:0X166 mmcr0:0X00000C12 mmcr1:0X100010004FCE9DA8 mmcra:0X00002001 event:0X167 mmcr0:0X00000C12 mmcr1:0X100010004FCE9DA8 mmcra:0X00002001 #Group 23 pm_serialize, LSU Serializing Events event:0X170 mmcr0:0X00001332 mmcr1:0X0118B000E9D69DFC mmcra:0X00022001 event:0X171 mmcr0:0X00001332 mmcr1:0X0118B000E9D69DFC mmcra:0X00022001 event:0X172 mmcr0:0X00001332 mmcr1:0X0118B000E9D69DFC mmcra:0X00022001 event:0X173 mmcr0:0X00001332 mmcr1:0X0118B000E9D69DFC mmcra:0X00022001 event:0X174 mmcr0:0X00001332 mmcr1:0X0118B000E9D69DFC mmcra:0X00022001 event:0X175 mmcr0:0X00001332 mmcr1:0X0118B000E9D69DFC mmcra:0X00022001 event:0X176 mmcr0:0X00001332 mmcr1:0X0118B000E9D69DFC mmcra:0X00022001 event:0X177 mmcr0:0X00001332 mmcr1:0X0118B000E9D69DFC mmcra:0X00022001 #Group 24 pm_lsubusy, LSU Busy Events event:0X180 mmcr0:0X0000193A mmcr1:0X0000F000DFF5E49C mmcra:0X00022001 event:0X181 mmcr0:0X0000193A mmcr1:0X0000F000DFF5E49C mmcra:0X00022001 event:0X182 mmcr0:0X0000193A mmcr1:0X0000F000DFF5E49C mmcra:0X00022001 event:0X183 mmcr0:0X0000193A mmcr1:0X0000F000DFF5E49C mmcra:0X00022001 event:0X184 mmcr0:0X0000193A mmcr1:0X0000F000DFF5E49C mmcra:0X00022001 event:0X185 mmcr0:0X0000193A mmcr1:0X0000F000DFF5E49C mmcra:0X00022001 event:0X186 mmcr0:0X0000193A mmcr1:0X0000F000DFF5E49C mmcra:0X00022001 event:0X187 mmcr0:0X0000193A mmcr1:0X0000F000DFF5E49C mmcra:0X00022001 #Group 25 pm_lsource2, Information on data source event:0X190 mmcr0:0X00000938 mmcr1:0X0010C0003B9CE738 mmcra:0X00002001 event:0X191 mmcr0:0X00000938 mmcr1:0X0010C0003B9CE738 mmcra:0X00002001 event:0X192 mmcr0:0X00000938 mmcr1:0X0010C0003B9CE738 mmcra:0X00002001 event:0X193 mmcr0:0X00000938 mmcr1:0X0010C0003B9CE738 mmcra:0X00002001 event:0X194 mmcr0:0X00000938 mmcr1:0X0010C0003B9CE738 mmcra:0X00002001 event:0X195 mmcr0:0X00000938 mmcr1:0X0010C0003B9CE738 mmcra:0X00002001 event:0X196 mmcr0:0X00000938 mmcr1:0X0010C0003B9CE738 mmcra:0X00002001 event:0X197 mmcr0:0X00000938 mmcr1:0X0010C0003B9CE738 mmcra:0X00002001 #Group 26 pm_lsource3, Information on data source event:0X1A0 mmcr0:0X00000E1C mmcr1:0X0010C00073B87724 mmcra:0X00022001 event:0X1A1 mmcr0:0X00000E1C mmcr1:0X0010C00073B87724 mmcra:0X00022001 event:0X1A2 mmcr0:0X00000E1C mmcr1:0X0010C00073B87724 mmcra:0X00022001 event:0X1A3 mmcr0:0X00000E1C mmcr1:0X0010C00073B87724 mmcra:0X00022001 event:0X1A4 mmcr0:0X00000E1C mmcr1:0X0010C00073B87724 mmcra:0X00022001 event:0X1A5 mmcr0:0X00000E1C mmcr1:0X0010C00073B87724 mmcra:0X00022001 event:0X1A6 mmcr0:0X00000E1C mmcr1:0X0010C00073B87724 mmcra:0X00022001 event:0X1A7 mmcr0:0X00000E1C mmcr1:0X0010C00073B87724 mmcra:0X00022001 #Group 27 pm_isource2, Instruction Source information event:0X1B0 mmcr0:0X0000090E mmcr1:0X800000007BDEF7BC mmcra:0X00022001 event:0X1B1 mmcr0:0X0000090E mmcr1:0X800000007BDEF7BC mmcra:0X00022001 event:0X1B2 mmcr0:0X0000090E mmcr1:0X800000007BDEF7BC mmcra:0X00022001 event:0X1B3 mmcr0:0X0000090E mmcr1:0X800000007BDEF7BC mmcra:0X00022001 event:0X1B4 mmcr0:0X0000090E mmcr1:0X800000007BDEF7BC mmcra:0X00022001 event:0X1B5 mmcr0:0X0000090E mmcr1:0X800000007BDEF7BC mmcra:0X00022001 event:0X1B6 mmcr0:0X0000090E mmcr1:0X800000007BDEF7BC mmcra:0X00022001 event:0X1B7 mmcr0:0X0000090E mmcr1:0X800000007BDEF7BC mmcra:0X00022001 #Group 28 pm_isource3, Instruction Source information event:0X1C0 mmcr0:0X00000F1E mmcr1:0X800000007BDEF3A4 mmcra:0X00022001 event:0X1C1 mmcr0:0X00000F1E mmcr1:0X800000007BDEF3A4 mmcra:0X00022001 event:0X1C2 mmcr0:0X00000F1E mmcr1:0X800000007BDEF3A4 mmcra:0X00022001 event:0X1C3 mmcr0:0X00000F1E mmcr1:0X800000007BDEF3A4 mmcra:0X00022001 event:0X1C4 mmcr0:0X00000F1E mmcr1:0X800000007BDEF3A4 mmcra:0X00022001 event:0X1C5 mmcr0:0X00000F1E mmcr1:0X800000007BDEF3A4 mmcra:0X00022001 event:0X1C6 mmcr0:0X00000F1E mmcr1:0X800000007BDEF3A4 mmcra:0X00022001 event:0X1C7 mmcr0:0X00000F1E mmcr1:0X800000007BDEF3A4 mmcra:0X00022001 #Group 29 pm_fpu3, Floating Point events by unit event:0X1D0 mmcr0:0X00001028 mmcr1:0X000000008D63549C mmcra:0X00022001 event:0X1D1 mmcr0:0X00001028 mmcr1:0X000000008D63549C mmcra:0X00022001 event:0X1D2 mmcr0:0X00001028 mmcr1:0X000000008D63549C mmcra:0X00022001 event:0X1D3 mmcr0:0X00001028 mmcr1:0X000000008D63549C mmcra:0X00022001 event:0X1D4 mmcr0:0X00001028 mmcr1:0X000000008D63549C mmcra:0X00022001 event:0X1D5 mmcr0:0X00001028 mmcr1:0X000000008D63549C mmcra:0X00022001 event:0X1D6 mmcr0:0X00001028 mmcr1:0X000000008D63549C mmcra:0X00022001 event:0X1D7 mmcr0:0X00001028 mmcr1:0X000000008D63549C mmcra:0X00022001 #Group 30 pm_fpu4, Floating Point events by unit event:0X1E0 mmcr0:0X0000122C mmcr1:0X000000009DE7749C mmcra:0X00022001 event:0X1E1 mmcr0:0X0000122C mmcr1:0X000000009DE7749C mmcra:0X00022001 event:0X1E2 mmcr0:0X0000122C mmcr1:0X000000009DE7749C mmcra:0X00022001 event:0X1E3 mmcr0:0X0000122C mmcr1:0X000000009DE7749C mmcra:0X00022001 event:0X1E4 mmcr0:0X0000122C mmcr1:0X000000009DE7749C mmcra:0X00022001 event:0X1E5 mmcr0:0X0000122C mmcr1:0X000000009DE7749C mmcra:0X00022001 event:0X1E6 mmcr0:0X0000122C mmcr1:0X000000009DE7749C mmcra:0X00022001 event:0X1E7 mmcr0:0X0000122C mmcr1:0X000000009DE7749C mmcra:0X00022001 #Group 31 pm_fpu5, Floating Point events by unit event:0X1F0 mmcr0:0X00001838 mmcr1:0X00000000850E9958 mmcra:0X00002001 event:0X1F1 mmcr0:0X00001838 mmcr1:0X00000000850E9958 mmcra:0X00002001 event:0X1F2 mmcr0:0X00001838 mmcr1:0X00000000850E9958 mmcra:0X00002001 event:0X1F3 mmcr0:0X00001838 mmcr1:0X00000000850E9958 mmcra:0X00002001 event:0X1F4 mmcr0:0X00001838 mmcr1:0X00000000850E9958 mmcra:0X00002001 event:0X1F5 mmcr0:0X00001838 mmcr1:0X00000000850E9958 mmcra:0X00002001 event:0X1F6 mmcr0:0X00001838 mmcr1:0X00000000850E9958 mmcra:0X00002001 event:0X1F7 mmcr0:0X00001838 mmcr1:0X00000000850E9958 mmcra:0X00002001 #Group 32 pm_fpu6, Floating Point events by unit event:0X200 mmcr0:0X00001B3E mmcr1:0X01002000C735E3A4 mmcra:0X00022001 event:0X201 mmcr0:0X00001B3E mmcr1:0X01002000C735E3A4 mmcra:0X00022001 event:0X202 mmcr0:0X00001B3E mmcr1:0X01002000C735E3A4 mmcra:0X00022001 event:0X203 mmcr0:0X00001B3E mmcr1:0X01002000C735E3A4 mmcra:0X00022001 event:0X204 mmcr0:0X00001B3E mmcr1:0X01002000C735E3A4 mmcra:0X00022001 event:0X205 mmcr0:0X00001B3E mmcr1:0X01002000C735E3A4 mmcra:0X00022001 event:0X206 mmcr0:0X00001B3E mmcr1:0X01002000C735E3A4 mmcra:0X00022001 event:0X207 mmcr0:0X00001B3E mmcr1:0X01002000C735E3A4 mmcra:0X00022001 #Group 33 pm_fpu7, Floating Point events by unit event:0X210 mmcr0:0X0000193A mmcr1:0X000000009DCE93E0 mmcra:0X00002001 event:0X211 mmcr0:0X0000193A mmcr1:0X000000009DCE93E0 mmcra:0X00002001 event:0X212 mmcr0:0X0000193A mmcr1:0X000000009DCE93E0 mmcra:0X00002001 event:0X213 mmcr0:0X0000193A mmcr1:0X000000009DCE93E0 mmcra:0X00002001 event:0X214 mmcr0:0X0000193A mmcr1:0X000000009DCE93E0 mmcra:0X00002001 event:0X215 mmcr0:0X0000193A mmcr1:0X000000009DCE93E0 mmcra:0X00002001 event:0X216 mmcr0:0X0000193A mmcr1:0X000000009DCE93E0 mmcra:0X00002001 event:0X217 mmcr0:0X0000193A mmcr1:0X000000009DCE93E0 mmcra:0X00002001 #Group 34 pm_fxu, Fix Point Unit events event:0X220 mmcr0:0X0000090E mmcr1:0X400000024294A520 mmcra:0X00002001 event:0X221 mmcr0:0X0000090E mmcr1:0X400000024294A520 mmcra:0X00002001 event:0X222 mmcr0:0X0000090E mmcr1:0X400000024294A520 mmcra:0X00002001 event:0X223 mmcr0:0X0000090E mmcr1:0X400000024294A520 mmcra:0X00002001 event:0X224 mmcr0:0X0000090E mmcr1:0X400000024294A520 mmcra:0X00002001 event:0X225 mmcr0:0X0000090E mmcr1:0X400000024294A520 mmcra:0X00002001 event:0X226 mmcr0:0X0000090E mmcr1:0X400000024294A520 mmcra:0X00002001 event:0X227 mmcr0:0X0000090E mmcr1:0X400000024294A520 mmcra:0X00002001 #Group 35 pm_lsu_lmq, LSU Load Miss Queue Events event:0X230 mmcr0:0X00001E3E mmcr1:0X0100A000EE4E9D78 mmcra:0X00002001 event:0X231 mmcr0:0X00001E3E mmcr1:0X0100A000EE4E9D78 mmcra:0X00002001 event:0X232 mmcr0:0X00001E3E mmcr1:0X0100A000EE4E9D78 mmcra:0X00002001 event:0X233 mmcr0:0X00001E3E mmcr1:0X0100A000EE4E9D78 mmcra:0X00002001 event:0X234 mmcr0:0X00001E3E mmcr1:0X0100A000EE4E9D78 mmcra:0X00002001 event:0X235 mmcr0:0X00001E3E mmcr1:0X0100A000EE4E9D78 mmcra:0X00002001 event:0X236 mmcr0:0X00001E3E mmcr1:0X0100A000EE4E9D78 mmcra:0X00002001 event:0X237 mmcr0:0X00001E3E mmcr1:0X0100A000EE4E9D78 mmcra:0X00002001 #Group 36 pm_lsu_flush, LSU Flush Events event:0X240 mmcr0:0X0000122C mmcr1:0X000C000039E7749C mmcra:0X00022001 event:0X241 mmcr0:0X0000122C mmcr1:0X000C000039E7749C mmcra:0X00022001 event:0X242 mmcr0:0X0000122C mmcr1:0X000C000039E7749C mmcra:0X00022001 event:0X243 mmcr0:0X0000122C mmcr1:0X000C000039E7749C mmcra:0X00022001 event:0X244 mmcr0:0X0000122C mmcr1:0X000C000039E7749C mmcra:0X00022001 event:0X245 mmcr0:0X0000122C mmcr1:0X000C000039E7749C mmcra:0X00022001 event:0X246 mmcr0:0X0000122C mmcr1:0X000C000039E7749C mmcra:0X00022001 event:0X247 mmcr0:0X0000122C mmcr1:0X000C000039E7749C mmcra:0X00022001 #Group 37 pm_lsu_load1, LSU Load Events event:0X250 mmcr0:0X00001028 mmcr1:0X000F0000850E9958 mmcra:0X00002001 event:0X251 mmcr0:0X00001028 mmcr1:0X000F0000850E9958 mmcra:0X00002001 event:0X252 mmcr0:0X00001028 mmcr1:0X000F0000850E9958 mmcra:0X00002001 event:0X253 mmcr0:0X00001028 mmcr1:0X000F0000850E9958 mmcra:0X00002001 event:0X254 mmcr0:0X00001028 mmcr1:0X000F0000850E9958 mmcra:0X00002001 event:0X255 mmcr0:0X00001028 mmcr1:0X000F0000850E9958 mmcra:0X00002001 event:0X256 mmcr0:0X00001028 mmcr1:0X000F0000850E9958 mmcra:0X00002001 event:0X257 mmcr0:0X00001028 mmcr1:0X000F0000850E9958 mmcra:0X00002001 #Group 38 pm_lsu_store1, LSU Store Events event:0X260 mmcr0:0X0000112A mmcr1:0X000F00008D4E99DC mmcra:0X00022001 event:0X261 mmcr0:0X0000112A mmcr1:0X000F00008D4E99DC mmcra:0X00022001 event:0X262 mmcr0:0X0000112A mmcr1:0X000F00008D4E99DC mmcra:0X00022001 event:0X263 mmcr0:0X0000112A mmcr1:0X000F00008D4E99DC mmcra:0X00022001 event:0X264 mmcr0:0X0000112A mmcr1:0X000F00008D4E99DC mmcra:0X00022001 event:0X265 mmcr0:0X0000112A mmcr1:0X000F00008D4E99DC mmcra:0X00022001 event:0X266 mmcr0:0X0000112A mmcr1:0X000F00008D4E99DC mmcra:0X00022001 event:0X267 mmcr0:0X0000112A mmcr1:0X000F00008D4E99DC mmcra:0X00022001 #Group 39 pm_lsu_store2, LSU Store Events event:0X270 mmcr0:0X00001838 mmcr1:0X0003C0008D76749C mmcra:0X00022001 event:0X271 mmcr0:0X00001838 mmcr1:0X0003C0008D76749C mmcra:0X00022001 event:0X272 mmcr0:0X00001838 mmcr1:0X0003C0008D76749C mmcra:0X00022001 event:0X273 mmcr0:0X00001838 mmcr1:0X0003C0008D76749C mmcra:0X00022001 event:0X274 mmcr0:0X00001838 mmcr1:0X0003C0008D76749C mmcra:0X00022001 event:0X275 mmcr0:0X00001838 mmcr1:0X0003C0008D76749C mmcra:0X00022001 event:0X276 mmcr0:0X00001838 mmcr1:0X0003C0008D76749C mmcra:0X00022001 event:0X277 mmcr0:0X00001838 mmcr1:0X0003C0008D76749C mmcra:0X00022001 #Group 40 pm_lsu7, Information on the Load Store Unit event:0X280 mmcr0:0X0000122C mmcr1:0X0118C00039F8749C mmcra:0X00022001 event:0X281 mmcr0:0X0000122C mmcr1:0X0118C00039F8749C mmcra:0X00022001 event:0X282 mmcr0:0X0000122C mmcr1:0X0118C00039F8749C mmcra:0X00022001 event:0X283 mmcr0:0X0000122C mmcr1:0X0118C00039F8749C mmcra:0X00022001 event:0X284 mmcr0:0X0000122C mmcr1:0X0118C00039F8749C mmcra:0X00022001 event:0X285 mmcr0:0X0000122C mmcr1:0X0118C00039F8749C mmcra:0X00022001 event:0X286 mmcr0:0X0000122C mmcr1:0X0118C00039F8749C mmcra:0X00022001 event:0X287 mmcr0:0X0000122C mmcr1:0X0118C00039F8749C mmcra:0X00022001 #Group 41 pm_dpfetch, Data Prefetch Events event:0X290 mmcr0:0X0000173E mmcr1:0X0108F000E74E93F8 mmcra:0X00002001 event:0X291 mmcr0:0X0000173E mmcr1:0X0108F000E74E93F8 mmcra:0X00002001 event:0X292 mmcr0:0X0000173E mmcr1:0X0108F000E74E93F8 mmcra:0X00002001 event:0X293 mmcr0:0X0000173E mmcr1:0X0108F000E74E93F8 mmcra:0X00002001 event:0X294 mmcr0:0X0000173E mmcr1:0X0108F000E74E93F8 mmcra:0X00002001 event:0X295 mmcr0:0X0000173E mmcr1:0X0108F000E74E93F8 mmcra:0X00002001 event:0X296 mmcr0:0X0000173E mmcr1:0X0108F000E74E93F8 mmcra:0X00002001 event:0X297 mmcr0:0X0000173E mmcr1:0X0108F000E74E93F8 mmcra:0X00002001 #Group 42 pm_misc, Misc Events for testing event:0X2A0 mmcr0:0X00000C14 mmcr1:0X0000000061D695B4 mmcra:0X00022001 event:0X2A1 mmcr0:0X00000C14 mmcr1:0X0000000061D695B4 mmcra:0X00022001 event:0X2A2 mmcr0:0X00000C14 mmcr1:0X0000000061D695B4 mmcra:0X00022001 event:0X2A3 mmcr0:0X00000C14 mmcr1:0X0000000061D695B4 mmcra:0X00022001 event:0X2A4 mmcr0:0X00000C14 mmcr1:0X0000000061D695B4 mmcra:0X00022001 event:0X2A5 mmcr0:0X00000C14 mmcr1:0X0000000061D695B4 mmcra:0X00022001 event:0X2A6 mmcr0:0X00000C14 mmcr1:0X0000000061D695B4 mmcra:0X00022001 event:0X2A7 mmcr0:0X00000C14 mmcr1:0X0000000061D695B4 mmcra:0X00022001 #Group 43 pm_mark1, Information on marked instructions event:0X2B0 mmcr0:0X00000816 mmcr1:0X010080803B18D6A4 mmcra:0X00722001 event:0X2B1 mmcr0:0X00000816 mmcr1:0X010080803B18D6A4 mmcra:0X00722001 event:0X2B2 mmcr0:0X00000816 mmcr1:0X010080803B18D6A4 mmcra:0X00722001 event:0X2B3 mmcr0:0X00000816 mmcr1:0X010080803B18D6A4 mmcra:0X00722001 event:0X2B4 mmcr0:0X00000816 mmcr1:0X010080803B18D6A4 mmcra:0X00722001 event:0X2B5 mmcr0:0X00000816 mmcr1:0X010080803B18D6A4 mmcra:0X00722001 event:0X2B6 mmcr0:0X00000816 mmcr1:0X010080803B18D6A4 mmcra:0X00722001 event:0X2B7 mmcr0:0X00000816 mmcr1:0X010080803B18D6A4 mmcra:0X00722001 #Group 44 pm_mark2, Marked Instructions Processing Flow event:0X2C0 mmcr0:0X00000A1A mmcr1:0X000000003B58C630 mmcra:0X00002001 event:0X2C1 mmcr0:0X00000A1A mmcr1:0X000000003B58C630 mmcra:0X00002001 event:0X2C2 mmcr0:0X00000A1A mmcr1:0X000000003B58C630 mmcra:0X00002001 event:0X2C3 mmcr0:0X00000A1A mmcr1:0X000000003B58C630 mmcra:0X00002001 event:0X2C4 mmcr0:0X00000A1A mmcr1:0X000000003B58C630 mmcra:0X00002001 event:0X2C5 mmcr0:0X00000A1A mmcr1:0X000000003B58C630 mmcra:0X00002001 event:0X2C6 mmcr0:0X00000A1A mmcr1:0X000000003B58C630 mmcra:0X00002001 event:0X2C7 mmcr0:0X00000A1A mmcr1:0X000000003B58C630 mmcra:0X00002001 #Group 45 pm_mark3, Marked Stores Processing Flow event:0X2D0 mmcr0:0X00000B0E mmcr1:0X010020005B1ABDA4 mmcra:0X00022001 event:0X2D1 mmcr0:0X00000B0E mmcr1:0X010020005B1ABDA4 mmcra:0X00022001 event:0X2D2 mmcr0:0X00000B0E mmcr1:0X010020005B1ABDA4 mmcra:0X00022001 event:0X2D3 mmcr0:0X00000B0E mmcr1:0X010020005B1ABDA4 mmcra:0X00022001 event:0X2D4 mmcr0:0X00000B0E mmcr1:0X010020005B1ABDA4 mmcra:0X00022001 event:0X2D5 mmcr0:0X00000B0E mmcr1:0X010020005B1ABDA4 mmcra:0X00022001 event:0X2D6 mmcr0:0X00000B0E mmcr1:0X010020005B1ABDA4 mmcra:0X00022001 event:0X2D7 mmcr0:0X00000B0E mmcr1:0X010020005B1ABDA4 mmcra:0X00022001 #Group 46 pm_mark4, Marked Loads Processing FLow event:0X2E0 mmcr0:0X0000080E mmcr1:0X01028080421AD4A0 mmcra:0X00002001 event:0X2E1 mmcr0:0X0000080E mmcr1:0X01028080421AD4A0 mmcra:0X00002001 event:0X2E2 mmcr0:0X0000080E mmcr1:0X01028080421AD4A0 mmcra:0X00002001 event:0X2E3 mmcr0:0X0000080E mmcr1:0X01028080421AD4A0 mmcra:0X00002001 event:0X2E4 mmcr0:0X0000080E mmcr1:0X01028080421AD4A0 mmcra:0X00002001 event:0X2E5 mmcr0:0X0000080E mmcr1:0X01028080421AD4A0 mmcra:0X00002001 event:0X2E6 mmcr0:0X0000080E mmcr1:0X01028080421AD4A0 mmcra:0X00002001 event:0X2E7 mmcr0:0X0000080E mmcr1:0X01028080421AD4A0 mmcra:0X00002001 #Group 47 pm_mark_lsource, Information on marked data source event:0X2F0 mmcr0:0X00000E1C mmcr1:0X00103000739CE738 mmcra:0X00002001 event:0X2F1 mmcr0:0X00000E1C mmcr1:0X00103000739CE738 mmcra:0X00002001 event:0X2F2 mmcr0:0X00000E1C mmcr1:0X00103000739CE738 mmcra:0X00002001 event:0X2F3 mmcr0:0X00000E1C mmcr1:0X00103000739CE738 mmcra:0X00002001 event:0X2F4 mmcr0:0X00000E1C mmcr1:0X00103000739CE738 mmcra:0X00002001 event:0X2F5 mmcr0:0X00000E1C mmcr1:0X00103000739CE738 mmcra:0X00002001 event:0X2F6 mmcr0:0X00000E1C mmcr1:0X00103000739CE738 mmcra:0X00002001 event:0X2F7 mmcr0:0X00000E1C mmcr1:0X00103000739CE738 mmcra:0X00002001 #Group 48 pm_mark_lsource2, Information on marked data source event:0X300 mmcr0:0X0000090E mmcr1:0X00103000E39CE738 mmcra:0X00002001 event:0X301 mmcr0:0X0000090E mmcr1:0X00103000E39CE738 mmcra:0X00002001 event:0X302 mmcr0:0X0000090E mmcr1:0X00103000E39CE738 mmcra:0X00002001 event:0X303 mmcr0:0X0000090E mmcr1:0X00103000E39CE738 mmcra:0X00002001 event:0X304 mmcr0:0X0000090E mmcr1:0X00103000E39CE738 mmcra:0X00002001 event:0X305 mmcr0:0X0000090E mmcr1:0X00103000E39CE738 mmcra:0X00002001 event:0X306 mmcr0:0X0000090E mmcr1:0X00103000E39CE738 mmcra:0X00002001 event:0X307 mmcr0:0X0000090E mmcr1:0X00103000E39CE738 mmcra:0X00002001 #Group 49 pm_mark_lsource3, Information on marked data source event:0X310 mmcr0:0X00000E1C mmcr1:0X00103000738E9770 mmcra:0X00002001 event:0X311 mmcr0:0X00000E1C mmcr1:0X00103000738E9770 mmcra:0X00002001 event:0X312 mmcr0:0X00000E1C mmcr1:0X00103000738E9770 mmcra:0X00002001 event:0X313 mmcr0:0X00000E1C mmcr1:0X00103000738E9770 mmcra:0X00002001 event:0X314 mmcr0:0X00000E1C mmcr1:0X00103000738E9770 mmcra:0X00002001 event:0X315 mmcr0:0X00000E1C mmcr1:0X00103000738E9770 mmcra:0X00002001 event:0X316 mmcr0:0X00000E1C mmcr1:0X00103000738E9770 mmcra:0X00002001 event:0X317 mmcr0:0X00000E1C mmcr1:0X00103000738E9770 mmcra:0X00002001 #Group 50 pm_lsu_mark1, Load Store Unit Marked Events event:0X320 mmcr0:0X00001B34 mmcr1:0X01028000850E98D4 mmcra:0X00022001 event:0X321 mmcr0:0X00001B34 mmcr1:0X01028000850E98D4 mmcra:0X00022001 event:0X322 mmcr0:0X00001B34 mmcr1:0X01028000850E98D4 mmcra:0X00022001 event:0X323 mmcr0:0X00001B34 mmcr1:0X01028000850E98D4 mmcra:0X00022001 event:0X324 mmcr0:0X00001B34 mmcr1:0X01028000850E98D4 mmcra:0X00022001 event:0X325 mmcr0:0X00001B34 mmcr1:0X01028000850E98D4 mmcra:0X00022001 event:0X326 mmcr0:0X00001B34 mmcr1:0X01028000850E98D4 mmcra:0X00022001 event:0X327 mmcr0:0X00001B34 mmcr1:0X01028000850E98D4 mmcra:0X00022001 #Group 51 pm_lsu_mark2, Load Store Unit Marked Events event:0X330 mmcr0:0X00001838 mmcr1:0X01028000958E99DC mmcra:0X00022001 event:0X331 mmcr0:0X00001838 mmcr1:0X01028000958E99DC mmcra:0X00022001 event:0X332 mmcr0:0X00001838 mmcr1:0X01028000958E99DC mmcra:0X00022001 event:0X333 mmcr0:0X00001838 mmcr1:0X01028000958E99DC mmcra:0X00022001 event:0X334 mmcr0:0X00001838 mmcr1:0X01028000958E99DC mmcra:0X00022001 event:0X335 mmcr0:0X00001838 mmcr1:0X01028000958E99DC mmcra:0X00022001 event:0X336 mmcr0:0X00001838 mmcr1:0X01028000958E99DC mmcra:0X00022001 event:0X337 mmcr0:0X00001838 mmcr1:0X01028000958E99DC mmcra:0X00022001 #Group 52 pm_lsu_mark3, Load Store Unit Marked Events event:0X340 mmcr0:0X00001D0E mmcr1:0X0100B000CE8ED6A4 mmcra:0X00022001 event:0X341 mmcr0:0X00001D0E mmcr1:0X0100B000CE8ED6A4 mmcra:0X00022001 event:0X342 mmcr0:0X00001D0E mmcr1:0X0100B000CE8ED6A4 mmcra:0X00022001 event:0X343 mmcr0:0X00001D0E mmcr1:0X0100B000CE8ED6A4 mmcra:0X00022001 event:0X344 mmcr0:0X00001D0E mmcr1:0X0100B000CE8ED6A4 mmcra:0X00022001 event:0X345 mmcr0:0X00001D0E mmcr1:0X0100B000CE8ED6A4 mmcra:0X00022001 event:0X346 mmcr0:0X00001D0E mmcr1:0X0100B000CE8ED6A4 mmcra:0X00022001 event:0X347 mmcr0:0X00001D0E mmcr1:0X0100B000CE8ED6A4 mmcra:0X00022001 #Group 53 pm_threshold, Group for pipeline threshold studies event:0X350 mmcr0:0X00001E16 mmcr1:0X0100A000CA4ED5F4 mmcra:0X00722001 event:0X351 mmcr0:0X00001E16 mmcr1:0X0100A000CA4ED5F4 mmcra:0X00722001 event:0X352 mmcr0:0X00001E16 mmcr1:0X0100A000CA4ED5F4 mmcra:0X00722001 event:0X353 mmcr0:0X00001E16 mmcr1:0X0100A000CA4ED5F4 mmcra:0X00722001 event:0X354 mmcr0:0X00001E16 mmcr1:0X0100A000CA4ED5F4 mmcra:0X00722001 event:0X355 mmcr0:0X00001E16 mmcr1:0X0100A000CA4ED5F4 mmcra:0X00722001 event:0X356 mmcr0:0X00001E16 mmcr1:0X0100A000CA4ED5F4 mmcra:0X00722001 event:0X357 mmcr0:0X00001E16 mmcr1:0X0100A000CA4ED5F4 mmcra:0X00722001 #Group 54 pm_pe_bench1, PE Benchmarker group for FP analysis event:0X360 mmcr0:0X00000810 mmcr1:0X10001002420E84A0 mmcra:0X00002001 event:0X361 mmcr0:0X00000810 mmcr1:0X10001002420E84A0 mmcra:0X00002001 event:0X362 mmcr0:0X00000810 mmcr1:0X10001002420E84A0 mmcra:0X00002001 event:0X363 mmcr0:0X00000810 mmcr1:0X10001002420E84A0 mmcra:0X00002001 event:0X364 mmcr0:0X00000810 mmcr1:0X10001002420E84A0 mmcra:0X00002001 event:0X365 mmcr0:0X00000810 mmcr1:0X10001002420E84A0 mmcra:0X00002001 event:0X366 mmcr0:0X00000810 mmcr1:0X10001002420E84A0 mmcra:0X00002001 event:0X367 mmcr0:0X00000810 mmcr1:0X10001002420E84A0 mmcra:0X00002001 #Group 55 pm_pe_bench2, PE Benchmarker group for FP stalls analysis event:0X370 mmcr0:0X00000710 mmcr1:0X110420689A508BA0 mmcra:0X00002001 event:0X371 mmcr0:0X00000710 mmcr1:0X110420689A508BA0 mmcra:0X00002001 event:0X372 mmcr0:0X00000710 mmcr1:0X110420689A508BA0 mmcra:0X00002001 event:0X373 mmcr0:0X00000710 mmcr1:0X110420689A508BA0 mmcra:0X00002001 event:0X374 mmcr0:0X00000710 mmcr1:0X110420689A508BA0 mmcra:0X00002001 event:0X375 mmcr0:0X00000710 mmcr1:0X110420689A508BA0 mmcra:0X00002001 event:0X376 mmcr0:0X00000710 mmcr1:0X110420689A508BA0 mmcra:0X00002001 event:0X377 mmcr0:0X00000710 mmcr1:0X110420689A508BA0 mmcra:0X00002001 #Group 56 pm_pe_bench3, PE Benchmarker group for branch analysis event:0X380 mmcr0:0X00000938 mmcr1:0X90040000C66A7D6C mmcra:0X00022001 event:0X381 mmcr0:0X00000938 mmcr1:0X90040000C66A7D6C mmcra:0X00022001 event:0X382 mmcr0:0X00000938 mmcr1:0X90040000C66A7D6C mmcra:0X00022001 event:0X383 mmcr0:0X00000938 mmcr1:0X90040000C66A7D6C mmcra:0X00022001 event:0X384 mmcr0:0X00000938 mmcr1:0X90040000C66A7D6C mmcra:0X00022001 event:0X385 mmcr0:0X00000938 mmcr1:0X90040000C66A7D6C mmcra:0X00022001 event:0X386 mmcr0:0X00000938 mmcr1:0X90040000C66A7D6C mmcra:0X00022001 event:0X387 mmcr0:0X00000938 mmcr1:0X90040000C66A7D6C mmcra:0X00022001 #Group 57 pm_pe_bench4, PE Benchmarker group for L1 and TLB analysis event:0X390 mmcr0:0X00001420 mmcr1:0X010B000044CE9420 mmcra:0X00002001 event:0X391 mmcr0:0X00001420 mmcr1:0X010B000044CE9420 mmcra:0X00002001 event:0X392 mmcr0:0X00001420 mmcr1:0X010B000044CE9420 mmcra:0X00002001 event:0X393 mmcr0:0X00001420 mmcr1:0X010B000044CE9420 mmcra:0X00002001 event:0X394 mmcr0:0X00001420 mmcr1:0X010B000044CE9420 mmcra:0X00002001 event:0X395 mmcr0:0X00001420 mmcr1:0X010B000044CE9420 mmcra:0X00002001 event:0X396 mmcr0:0X00001420 mmcr1:0X010B000044CE9420 mmcra:0X00002001 event:0X397 mmcr0:0X00001420 mmcr1:0X010B000044CE9420 mmcra:0X00002001 #Group 58 pm_pe_bench5, PE Benchmarker group for L2 analysis event:0X3A0 mmcr0:0X0000090E mmcr1:0X0010C000739CE738 mmcra:0X00002001 event:0X3A1 mmcr0:0X0000090E mmcr1:0X0010C000739CE738 mmcra:0X00002001 event:0X3A2 mmcr0:0X0000090E mmcr1:0X0010C000739CE738 mmcra:0X00002001 event:0X3A3 mmcr0:0X0000090E mmcr1:0X0010C000739CE738 mmcra:0X00002001 event:0X3A4 mmcr0:0X0000090E mmcr1:0X0010C000739CE738 mmcra:0X00002001 event:0X3A5 mmcr0:0X0000090E mmcr1:0X0010C000739CE738 mmcra:0X00002001 event:0X3A6 mmcr0:0X0000090E mmcr1:0X0010C000739CE738 mmcra:0X00002001 event:0X3A7 mmcr0:0X0000090E mmcr1:0X0010C000739CE738 mmcra:0X00002001 #Group 59 pm_pe_bench6, PE Benchmarker group for L3 analysis event:0X3B0 mmcr0:0X00000E1C mmcr1:0X0010C000739C74B8 mmcra:0X00002001 event:0X3B1 mmcr0:0X00000E1C mmcr1:0X0010C000739C74B8 mmcra:0X00002001 event:0X3B2 mmcr0:0X00000E1C mmcr1:0X0010C000739C74B8 mmcra:0X00002001 event:0X3B3 mmcr0:0X00000E1C mmcr1:0X0010C000739C74B8 mmcra:0X00002001 event:0X3B4 mmcr0:0X00000E1C mmcr1:0X0010C000739C74B8 mmcra:0X00002001 event:0X3B5 mmcr0:0X00000E1C mmcr1:0X0010C000739C74B8 mmcra:0X00002001 event:0X3B6 mmcr0:0X00000E1C mmcr1:0X0010C000739C74B8 mmcra:0X00002001 event:0X3B7 mmcr0:0X00000E1C mmcr1:0X0010C000739C74B8 mmcra:0X00002001 #Group 60 pm_hpmcount1, Hpmcount group for L1 and TLB behavior analysis event:0X3C0 mmcr0:0X00001414 mmcr1:0X010B000044CE9420 mmcra:0X00002001 event:0X3C1 mmcr0:0X00001414 mmcr1:0X010B000044CE9420 mmcra:0X00002001 event:0X3C2 mmcr0:0X00001414 mmcr1:0X010B000044CE9420 mmcra:0X00002001 event:0X3C3 mmcr0:0X00001414 mmcr1:0X010B000044CE9420 mmcra:0X00002001 event:0X3C4 mmcr0:0X00001414 mmcr1:0X010B000044CE9420 mmcra:0X00002001 event:0X3C5 mmcr0:0X00001414 mmcr1:0X010B000044CE9420 mmcra:0X00002001 event:0X3C6 mmcr0:0X00001414 mmcr1:0X010B000044CE9420 mmcra:0X00002001 event:0X3C7 mmcr0:0X00001414 mmcr1:0X010B000044CE9420 mmcra:0X00002001 #Group 61 pm_hpmcount2, Hpmcount group for computation intensity analysis event:0X3D0 mmcr0:0X00000810 mmcr1:0X010020289DCE84A0 mmcra:0X00002001 event:0X3D1 mmcr0:0X00000810 mmcr1:0X010020289DCE84A0 mmcra:0X00002001 event:0X3D2 mmcr0:0X00000810 mmcr1:0X010020289DCE84A0 mmcra:0X00002001 event:0X3D3 mmcr0:0X00000810 mmcr1:0X010020289DCE84A0 mmcra:0X00002001 event:0X3D4 mmcr0:0X00000810 mmcr1:0X010020289DCE84A0 mmcra:0X00002001 event:0X3D5 mmcr0:0X00000810 mmcr1:0X010020289DCE84A0 mmcra:0X00002001 event:0X3D6 mmcr0:0X00000810 mmcr1:0X010020289DCE84A0 mmcra:0X00002001 event:0X3D7 mmcr0:0X00000810 mmcr1:0X010020289DCE84A0 mmcra:0X00002001 #Group 62 pm_l1andbr, L1 misses and branch misspredict analysis event:0X3E0 mmcr0:0X0000090E mmcr1:0X8003C00046367CE8 mmcra:0X00002001 event:0X3E1 mmcr0:0X0000090E mmcr1:0X8003C00046367CE8 mmcra:0X00002001 event:0X3E2 mmcr0:0X0000090E mmcr1:0X8003C00046367CE8 mmcra:0X00002001 event:0X3E3 mmcr0:0X0000090E mmcr1:0X8003C00046367CE8 mmcra:0X00002001 event:0X3E4 mmcr0:0X0000090E mmcr1:0X8003C00046367CE8 mmcra:0X00002001 event:0X3E5 mmcr0:0X0000090E mmcr1:0X8003C00046367CE8 mmcra:0X00002001 event:0X3E6 mmcr0:0X0000090E mmcr1:0X8003C00046367CE8 mmcra:0X00002001 event:0X3E7 mmcr0:0X0000090E mmcr1:0X8003C00046367CE8 mmcra:0X00002001 #Group 63 pm_imix, Instruction mix: loads, stores and branches event:0X3F0 mmcr0:0X0000090E mmcr1:0X8003C000460FB420 mmcra:0X00002001 event:0X3F1 mmcr0:0X0000090E mmcr1:0X8003C000460FB420 mmcra:0X00002001 event:0X3F2 mmcr0:0X0000090E mmcr1:0X8003C000460FB420 mmcra:0X00002001 event:0X3F3 mmcr0:0X0000090E mmcr1:0X8003C000460FB420 mmcra:0X00002001 event:0X3F4 mmcr0:0X0000090E mmcr1:0X8003C000460FB420 mmcra:0X00002001 event:0X3F5 mmcr0:0X0000090E mmcr1:0X8003C000460FB420 mmcra:0X00002001 event:0X3F6 mmcr0:0X0000090E mmcr1:0X8003C000460FB420 mmcra:0X00002001 event:0X3F7 mmcr0:0X0000090E mmcr1:0X8003C000460FB420 mmcra:0X00002001 oprofile-0.9.9/events/ppc64/power5++/0000775000076400007640000000000012175511557014203 500000000000000oprofile-0.9.9/events/ppc64/power5++/events0000664000076400007640000033064712175510133015354 00000000000000#PPC64 POWER5++ events # # Copyright OProfile authors # Copyright (c) International Business Machines, 2007. # Contributed by Maynard Johnson . # # # Within each group the event names must be unique. Each event in a group is # assigned to a unique counter. The groups are from the groups defined in the # Performance Monitor Unit user guide for this processor. # # Only events within the same group can be selected simultaneously when # using legacy opcontrol to do profiling. When profiling with operf, # events from different groups may be specified, and the Linux Performance # Events Kernel Subsystem code will handle the necessary multiplexing. # # Each event is given a unique event number. The event number is used by the # OProfile code to resolve event names for the post-processing. This is done # to preserve compatibility with the rest of the OProfile code. The event # numbers are formatted as follows: concat(). #Group Default event:0X001 counters:1 um:zero minimum:10000 name:CYCLES : Processor Cycles #Group 1 pm_utilization, CPI and utilization data event:0X0010 counters:0 um:zero minimum:10000 name:PM_RUN_CYC_GRP1 : (Group 1 pm_utilization) Run cycles event:0X0011 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP1 : (Group 1 pm_utilization) Instructions completed event:0X0012 counters:2 um:zero minimum:1000 name:PM_INST_DISP_GRP1 : (Group 1 pm_utilization) Instructions dispatched event:0X0013 counters:3 um:zero minimum:10000 name:PM_CYC_GRP1 : (Group 1 pm_utilization) Processor cycles #Group 2 pm_completion, Completion and cycle counts event:0X0020 counters:0 um:zero minimum:1000 name:PM_1PLUS_PPC_CMPL_GRP2 : (Group 2 pm_completion) One or more PPC instruction completed event:0X0021 counters:1 um:zero minimum:1000 name:PM_GCT_EMPTY_CYC_GRP2 : (Group 2 pm_completion) Cycles GCT empty event:0X0022 counters:2 um:zero minimum:1000 name:PM_GRP_CMPL_GRP2 : (Group 2 pm_completion) Group completed event:0X0023 counters:3 um:zero minimum:10000 name:PM_CYC_GRP2 : (Group 2 pm_completion) Processor cycles #Group 3 pm_group_dispatch, Group dispatch events event:0X0030 counters:0 um:zero minimum:1000 name:PM_GRP_DISP_VALID_GRP3 : (Group 3 pm_group_dispatch) Group dispatch valid event:0X0031 counters:1 um:zero minimum:1000 name:PM_GRP_DISP_REJECT_GRP3 : (Group 3 pm_group_dispatch) Group dispatch rejected event:0X0032 counters:2 um:zero minimum:1000 name:PM_GRP_DISP_BLK_SB_CYC_GRP3 : (Group 3 pm_group_dispatch) Cycles group dispatch blocked by scoreboard event:0X0033 counters:3 um:zero minimum:1000 name:PM_INST_DISP_GRP3 : (Group 3 pm_group_dispatch) Instructions dispatched #Group 4 pm_clb1, CLB fullness event:0X0040 counters:0 um:zero minimum:1000 name:PM_0INST_CLB_CYC_GRP4 : (Group 4 pm_clb1) Cycles no instructions in CLB event:0X0041 counters:1 um:zero minimum:1000 name:PM_2INST_CLB_CYC_GRP4 : (Group 4 pm_clb1) Cycles 2 instructions in CLB event:0X0042 counters:2 um:zero minimum:1000 name:PM_CLB_EMPTY_CYC_GRP4 : (Group 4 pm_clb1) Cycles CLB empty event:0X0043 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L35_MOD_CYC_GRP4 : (Group 4 pm_clb1) Marked load latency from L3.5 modified #Group 5 pm_clb2, CLB fullness event:0X0050 counters:0 um:zero minimum:1000 name:PM_5INST_CLB_CYC_GRP5 : (Group 5 pm_clb2) Cycles 5 instructions in CLB event:0X0051 counters:1 um:zero minimum:1000 name:PM_6INST_CLB_CYC_GRP5 : (Group 5 pm_clb2) Cycles 6 instructions in CLB event:0X0052 counters:2 um:zero minimum:1000 name:PM_MRK_LSU_SRQ_INST_VALID_GRP5 : (Group 5 pm_clb2) Marked instruction valid in SRQ event:0X0053 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP5 : (Group 5 pm_clb2) Internal operations completed #Group 6 pm_gct_empty, GCT empty reasons event:0X0060 counters:0 um:zero minimum:1000 name:PM_GCT_NOSLOT_CYC_GRP6 : (Group 6 pm_gct_empty) Cycles no GCT slot allocated event:0X0061 counters:1 um:zero minimum:1000 name:PM_GCT_NOSLOT_IC_MISS_GRP6 : (Group 6 pm_gct_empty) No slot in GCT caused by I cache miss event:0X0062 counters:2 um:zero minimum:1000 name:PM_GCT_NOSLOT_SRQ_FULL_GRP6 : (Group 6 pm_gct_empty) No slot in GCT caused by SRQ full event:0X0063 counters:3 um:zero minimum:1000 name:PM_GCT_NOSLOT_BR_MPRED_GRP6 : (Group 6 pm_gct_empty) No slot in GCT caused by branch mispredict #Group 7 pm_gct_usage, GCT Usage event:0X0070 counters:0 um:zero minimum:1000 name:PM_GCT_USAGE_00to59_CYC_GRP7 : (Group 7 pm_gct_usage) Cycles GCT less than 60% full event:0X0071 counters:1 um:zero minimum:1000 name:PM_GCT_USAGE_60to79_CYC_GRP7 : (Group 7 pm_gct_usage) Cycles GCT 60-79% full event:0X0072 counters:2 um:zero minimum:1000 name:PM_GCT_USAGE_80to99_CYC_GRP7 : (Group 7 pm_gct_usage) Cycles GCT 80-99% full event:0X0073 counters:3 um:zero minimum:1000 name:PM_GCT_FULL_CYC_GRP7 : (Group 7 pm_gct_usage) Cycles GCT full #Group 8 pm_lsu1, LSU LRQ and LMQ events event:0X0080 counters:0 um:zero minimum:1000 name:PM_LSU_LRQ_S0_ALLOC_GRP8 : (Group 8 pm_lsu1) LRQ slot 0 allocated event:0X0081 counters:1 um:zero minimum:1000 name:PM_LSU_LRQ_S0_VALID_GRP8 : (Group 8 pm_lsu1) LRQ slot 0 valid event:0X0082 counters:2 um:zero minimum:1000 name:PM_LSU_LMQ_S0_ALLOC_GRP8 : (Group 8 pm_lsu1) LMQ slot 0 allocated event:0X0083 counters:3 um:zero minimum:1000 name:PM_LSU_LMQ_S0_VALID_GRP8 : (Group 8 pm_lsu1) LMQ slot 0 valid #Group 9 pm_lsu2, LSU SRQ events event:0X0090 counters:0 um:zero minimum:1000 name:PM_LSU_SRQ_S0_ALLOC_GRP9 : (Group 9 pm_lsu2) SRQ slot 0 allocated event:0X0091 counters:1 um:zero minimum:1000 name:PM_LSU_SRQ_S0_VALID_GRP9 : (Group 9 pm_lsu2) SRQ slot 0 valid event:0X0092 counters:2 um:zero minimum:1000 name:PM_LSU_SRQ_SYNC_CYC_GRP9 : (Group 9 pm_lsu2) SRQ sync duration event:0X0093 counters:3 um:zero minimum:1000 name:PM_LSU_SRQ_FULL_CYC_GRP9 : (Group 9 pm_lsu2) Cycles SRQ full #Group 10 pm_lsu3, LSU SRQ and LMQ events event:0X00A0 counters:0 um:zero minimum:1000 name:PM_LSU_LMQ_LHR_MERGE_GRP10 : (Group 10 pm_lsu3) LMQ LHR merges event:0X00A1 counters:1 um:zero minimum:1000 name:PM_LSU_SRQ_STFWD_GRP10 : (Group 10 pm_lsu3) SRQ store forwarded event:0X00A2 counters:2 um:zero minimum:1000 name:PM_LSU_LMQ_SRQ_EMPTY_CYC_GRP10 : (Group 10 pm_lsu3) Cycles LMQ and SRQ empty event:0X00A3 counters:3 um:zero minimum:1000 name:PM_LSU_SRQ_EMPTY_CYC_GRP10 : (Group 10 pm_lsu3) Cycles SRQ empty #Group 11 pm_lsu4, LSU SRQ and LMQ events event:0X00B0 counters:0 um:zero minimum:1000 name:PM_LSU_LMQ_FULL_CYC_GRP11 : (Group 11 pm_lsu4) Cycles LMQ full event:0X00B1 counters:1 um:zero minimum:1000 name:PM_LSU_SRQ_FULL_CYC_GRP11 : (Group 11 pm_lsu4) Cycles SRQ full event:0X00B2 counters:2 um:zero minimum:1000 name:PM_LSU_LMQ_SRQ_EMPTY_CYC_GRP11 : (Group 11 pm_lsu4) Cycles LMQ and SRQ empty event:0X00B3 counters:3 um:zero minimum:1000 name:PM_LSU_SRQ_EMPTY_CYC_GRP11 : (Group 11 pm_lsu4) Cycles SRQ empty #Group 12 pm_prefetch1, Prefetch stream allocation event:0X00C0 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L2MISS_GRP12 : (Group 12 pm_prefetch1) Instruction fetched missed L2 event:0X00C1 counters:1 um:zero minimum:1000 name:PM_INST_FETCH_CYC_GRP12 : (Group 12 pm_prefetch1) Cycles at least 1 instruction fetched event:0X00C2 counters:2 um:zero minimum:1000 name:PM_DC_PREF_OUT_OF_STREAMS_GRP12 : (Group 12 pm_prefetch1) D cache out of prefetch streams event:0X00C3 counters:3 um:zero minimum:1000 name:PM_DC_PREF_STREAM_ALLOC_GRP12 : (Group 12 pm_prefetch1) D cache new prefetch stream allocated #Group 13 pm_prefetch2, Prefetch events event:0X00D0 counters:0 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP13 : (Group 13 pm_prefetch2) Internal operations completed event:0X00D1 counters:1 um:zero minimum:1000 name:PM_CLB_FULL_CYC_GRP13 : (Group 13 pm_prefetch2) Cycles CLB full event:0X00D2 counters:2 um:zero minimum:1000 name:PM_L1_PREF_GRP13 : (Group 13 pm_prefetch2) L1 cache data prefetches event:0X00D3 counters:3 um:zero minimum:1000 name:PM_IC_PREF_INSTALL_GRP13 : (Group 13 pm_prefetch2) Instruction prefetched installed in prefetch buffer #Group 14 pm_prefetch3, L2 prefetch and misc events event:0X00E0 counters:0 um:zero minimum:1000 name:PM_1INST_CLB_CYC_GRP14 : (Group 14 pm_prefetch3) Cycles 1 instruction in CLB event:0X00E1 counters:1 um:zero minimum:1000 name:PM_LSU_BUSY_REJECT_GRP14 : (Group 14 pm_prefetch3) LSU busy due to reject event:0X00E2 counters:2 um:zero minimum:1000 name:PM_L2_PREF_GRP14 : (Group 14 pm_prefetch3) L2 cache prefetches event:0X00E3 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP14 : (Group 14 pm_prefetch3) Internal operations completed #Group 15 pm_prefetch4, Misc prefetch and reject events event:0X00F0 counters:0 um:zero minimum:1000 name:PM_LSU0_REJECT_SRQ_GRP15 : (Group 15 pm_prefetch4) LSU0 SRQ lhs rejects event:0X00F1 counters:1 um:zero minimum:1000 name:PM_LSU1_REJECT_SRQ_GRP15 : (Group 15 pm_prefetch4) LSU1 SRQ lhs rejects event:0X00F2 counters:2 um:zero minimum:1000 name:PM_DC_PREF_DST_GRP15 : (Group 15 pm_prefetch4) DST (Data Stream Touch) stream start event:0X00F3 counters:3 um:zero minimum:1000 name:PM_L2_PREF_GRP15 : (Group 15 pm_prefetch4) L2 cache prefetches #Group 16 pm_lsu_reject1, LSU reject events event:0X0100 counters:0 um:zero minimum:1000 name:PM_LSU_REJECT_ERAT_MISS_GRP16 : (Group 16 pm_lsu_reject1) LSU reject due to ERAT miss event:0X0101 counters:1 um:zero minimum:1000 name:PM_LSU_REJECT_LMQ_FULL_GRP16 : (Group 16 pm_lsu_reject1) LSU reject due to LMQ full or missed data coming event:0X0102 counters:2 um:zero minimum:1000 name:PM_FLUSH_IMBAL_GRP16 : (Group 16 pm_lsu_reject1) Flush caused by thread GCT imbalance event:0X0103 counters:3 um:zero minimum:1000 name:PM_MRK_LSU_FLUSH_SRQ_GRP16 : (Group 16 pm_lsu_reject1) Marked SRQ lhs flushes #Group 17 pm_lsu_reject2, LSU rejects due to reload CDF or tag update collision event:0X0110 counters:0 um:zero minimum:1000 name:PM_LSU0_REJECT_RELOAD_CDF_GRP17 : (Group 17 pm_lsu_reject2) LSU0 reject due to reload CDF or tag update collision event:0X0111 counters:1 um:zero minimum:1000 name:PM_LSU1_REJECT_RELOAD_CDF_GRP17 : (Group 17 pm_lsu_reject2) LSU1 reject due to reload CDF or tag update collision event:0X0112 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP17 : (Group 17 pm_lsu_reject2) Internal operations completed event:0X0113 counters:3 um:zero minimum:1000 name:PM_L1_WRITE_CYC_GRP17 : (Group 17 pm_lsu_reject2) Cycles writing to instruction L1 #Group 18 pm_lsu_reject3, LSU rejects due to ERAT, held instuctions event:0X0120 counters:0 um:zero minimum:1000 name:PM_LSU0_REJECT_ERAT_MISS_GRP18 : (Group 18 pm_lsu_reject3) LSU0 reject due to ERAT miss event:0X0121 counters:1 um:zero minimum:1000 name:PM_LSU1_REJECT_ERAT_MISS_GRP18 : (Group 18 pm_lsu_reject3) LSU1 reject due to ERAT miss event:0X0122 counters:2 um:zero minimum:1000 name:PM_LWSYNC_HELD_GRP18 : (Group 18 pm_lsu_reject3) LWSYNC held at dispatch event:0X0123 counters:3 um:zero minimum:1000 name:PM_TLBIE_HELD_GRP18 : (Group 18 pm_lsu_reject3) TLBIE held at dispatch #Group 19 pm_lsu_reject4, LSU0/1 reject LMQ full event:0X0130 counters:0 um:zero minimum:1000 name:PM_LSU0_REJECT_LMQ_FULL_GRP19 : (Group 19 pm_lsu_reject4) LSU0 reject due to LMQ full or missed data coming event:0X0131 counters:1 um:zero minimum:1000 name:PM_LSU1_REJECT_LMQ_FULL_GRP19 : (Group 19 pm_lsu_reject4) LSU1 reject due to LMQ full or missed data coming event:0X0132 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP19 : (Group 19 pm_lsu_reject4) Internal operations completed event:0X0133 counters:3 um:zero minimum:1000 name:PM_BR_ISSUED_GRP19 : (Group 19 pm_lsu_reject4) Branches issued #Group 20 pm_lsu_reject5, LSU misc reject and flush events event:0X0140 counters:0 um:zero minimum:1000 name:PM_LSU_REJECT_SRQ_GRP20 : (Group 20 pm_lsu_reject5) LSU SRQ lhs rejects event:0X0141 counters:1 um:zero minimum:1000 name:PM_LSU_REJECT_RELOAD_CDF_GRP20 : (Group 20 pm_lsu_reject5) LSU reject due to reload CDF or tag update collision event:0X0142 counters:2 um:zero minimum:1000 name:PM_LSU_FLUSH_GRP20 : (Group 20 pm_lsu_reject5) Flush initiated by LSU event:0X0143 counters:3 um:zero minimum:1000 name:PM_FLUSH_GRP20 : (Group 20 pm_lsu_reject5) Flushes #Group 21 pm_flush1, Misc flush events event:0X0150 counters:0 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP21 : (Group 21 pm_flush1) Internal operations completed event:0X0151 counters:1 um:zero minimum:1000 name:PM_LSU_FLUSH_UST_GRP21 : (Group 21 pm_flush1) SRQ unaligned store flushes event:0X0152 counters:2 um:zero minimum:1000 name:PM_FLUSH_IMBAL_GRP21 : (Group 21 pm_flush1) Flush caused by thread GCT imbalance event:0X0153 counters:3 um:zero minimum:1000 name:PM_DC_INV_L2_GRP21 : (Group 21 pm_flush1) L1 D cache entries invalidated from L2 #Group 22 pm_flush2, Flushes due to scoreboard and sync event:0X0160 counters:0 um:zero minimum:1000 name:PM_ITLB_MISS_GRP22 : (Group 22 pm_flush2) Instruction TLB misses event:0X0161 counters:1 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP22 : (Group 22 pm_flush2) Internal operations completed event:0X0162 counters:2 um:zero minimum:1000 name:PM_FLUSH_SB_GRP22 : (Group 22 pm_flush2) Flush caused by scoreboard operation event:0X0163 counters:3 um:zero minimum:1000 name:PM_FLUSH_SYNC_GRP22 : (Group 22 pm_flush2) Flush caused by sync #Group 23 pm_lsu_flush_srq_lrq, LSU flush by SRQ and LRQ events event:0X0170 counters:0 um:zero minimum:1000 name:PM_LSU_FLUSH_SRQ_GRP23 : (Group 23 pm_lsu_flush_srq_lrq) SRQ flushes event:0X0171 counters:1 um:zero minimum:1000 name:PM_LSU_FLUSH_LRQ_GRP23 : (Group 23 pm_lsu_flush_srq_lrq) LRQ flushes event:0X0172 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP23 : (Group 23 pm_lsu_flush_srq_lrq) Internal operations completed event:0X0173 counters:3 um:zero minimum:1000 name:PM_LSU_FLUSH_GRP23 : (Group 23 pm_lsu_flush_srq_lrq) Flush initiated by LSU #Group 24 pm_lsu_flush_lrq, LSU0/1 flush due to LRQ event:0X0180 counters:0 um:zero minimum:1000 name:PM_LSU0_FLUSH_LRQ_GRP24 : (Group 24 pm_lsu_flush_lrq) LSU0 LRQ flushes event:0X0181 counters:1 um:zero minimum:1000 name:PM_LSU1_FLUSH_LRQ_GRP24 : (Group 24 pm_lsu_flush_lrq) LSU1 LRQ flushes event:0X0182 counters:2 um:zero minimum:1000 name:PM_LSU_FLUSH_GRP24 : (Group 24 pm_lsu_flush_lrq) Flush initiated by LSU event:0X0183 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP24 : (Group 24 pm_lsu_flush_lrq) Internal operations completed #Group 25 pm_lsu_flush_srq, LSU0/1 flush due to SRQ event:0X0190 counters:0 um:zero minimum:1000 name:PM_LSU0_FLUSH_SRQ_GRP25 : (Group 25 pm_lsu_flush_srq) LSU0 SRQ lhs flushes event:0X0191 counters:1 um:zero minimum:1000 name:PM_LSU1_FLUSH_SRQ_GRP25 : (Group 25 pm_lsu_flush_srq) LSU1 SRQ lhs flushes event:0X0192 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP25 : (Group 25 pm_lsu_flush_srq) Internal operations completed event:0X0193 counters:3 um:zero minimum:1000 name:PM_LSU_FLUSH_GRP25 : (Group 25 pm_lsu_flush_srq) Flush initiated by LSU #Group 26 pm_lsu_flush_unaligned, LSU flush due to unaligned data event:0X01A0 counters:0 um:zero minimum:1000 name:PM_LSU_FLUSH_ULD_GRP26 : (Group 26 pm_lsu_flush_unaligned) LRQ unaligned load flushes event:0X01A1 counters:1 um:zero minimum:1000 name:PM_LSU_FLUSH_UST_GRP26 : (Group 26 pm_lsu_flush_unaligned) SRQ unaligned store flushes event:0X01A2 counters:2 um:zero minimum:1000 name:PM_BR_ISSUED_GRP26 : (Group 26 pm_lsu_flush_unaligned) Branches issued event:0X01A3 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP26 : (Group 26 pm_lsu_flush_unaligned) Internal operations completed #Group 27 pm_lsu_flush_uld, LSU0/1 flush due to unaligned load event:0X01B0 counters:0 um:zero minimum:1000 name:PM_LSU0_FLUSH_ULD_GRP27 : (Group 27 pm_lsu_flush_uld) LSU0 unaligned load flushes event:0X01B1 counters:1 um:zero minimum:1000 name:PM_LSU1_FLUSH_ULD_GRP27 : (Group 27 pm_lsu_flush_uld) LSU1 unaligned load flushes event:0X01B2 counters:2 um:zero minimum:1000 name:PM_LSU_FLUSH_GRP27 : (Group 27 pm_lsu_flush_uld) Flush initiated by LSU event:0X01B3 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP27 : (Group 27 pm_lsu_flush_uld) Internal operations completed #Group 28 pm_lsu_flush_ust, LSU0/1 flush due to unaligned store event:0X01C0 counters:0 um:zero minimum:1000 name:PM_LSU0_FLUSH_UST_GRP28 : (Group 28 pm_lsu_flush_ust) LSU0 unaligned store flushes event:0X01C1 counters:1 um:zero minimum:1000 name:PM_LSU1_FLUSH_UST_GRP28 : (Group 28 pm_lsu_flush_ust) LSU1 unaligned store flushes event:0X01C2 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP28 : (Group 28 pm_lsu_flush_ust) Internal operations completed event:0X01C3 counters:3 um:zero minimum:1000 name:PM_LSU_FLUSH_GRP28 : (Group 28 pm_lsu_flush_ust) Flush initiated by LSU #Group 29 pm_lsu_flush_full, LSU flush due to LRQ/SRQ full event:0X01D0 counters:0 um:zero minimum:1000 name:PM_LSU_FLUSH_LRQ_FULL_GRP29 : (Group 29 pm_lsu_flush_full) Flush caused by LRQ full event:0X01D1 counters:1 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP29 : (Group 29 pm_lsu_flush_full) Internal operations completed event:0X01D2 counters:2 um:zero minimum:1000 name:PM_MRK_LSU_FLUSH_LRQ_GRP29 : (Group 29 pm_lsu_flush_full) Marked LRQ flushes event:0X01D3 counters:3 um:zero minimum:1000 name:PM_LSU_FLUSH_SRQ_FULL_GRP29 : (Group 29 pm_lsu_flush_full) Flush caused by SRQ full #Group 30 pm_lsu_stall1, LSU Stalls event:0X01E0 counters:0 um:zero minimum:1000 name:PM_GRP_MRK_GRP30 : (Group 30 pm_lsu_stall1) Group marked in IDU event:0X01E1 counters:1 um:zero minimum:1000 name:PM_CMPLU_STALL_LSU_GRP30 : (Group 30 pm_lsu_stall1) Completion stall caused by LSU instruction event:0X01E2 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP30 : (Group 30 pm_lsu_stall1) Internal operations completed event:0X01E3 counters:3 um:zero minimum:1000 name:PM_CMPLU_STALL_REJECT_GRP30 : (Group 30 pm_lsu_stall1) Completion stall caused by reject #Group 31 pm_lsu_stall2, LSU Stalls event:0X01F0 counters:0 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP31 : (Group 31 pm_lsu_stall2) Internal operations completed event:0X01F1 counters:1 um:zero minimum:1000 name:PM_CMPLU_STALL_DCACHE_MISS_GRP31 : (Group 31 pm_lsu_stall2) Completion stall caused by D cache miss event:0X01F2 counters:2 um:zero minimum:10000 name:PM_CYC_GRP31 : (Group 31 pm_lsu_stall2) Processor cycles event:0X01F3 counters:3 um:zero minimum:1000 name:PM_CMPLU_STALL_ERAT_MISS_GRP31 : (Group 31 pm_lsu_stall2) Completion stall caused by ERAT miss #Group 32 pm_fxu_stall, FXU Stalls event:0X0200 counters:0 um:zero minimum:1000 name:PM_GRP_IC_MISS_BR_REDIR_NONSPEC_GRP32 : (Group 32 pm_fxu_stall) Group experienced non-speculative I cache miss or branch redirect event:0X0201 counters:1 um:zero minimum:1000 name:PM_CMPLU_STALL_FXU_GRP32 : (Group 32 pm_fxu_stall) Completion stall caused by FXU instruction event:0X0202 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP32 : (Group 32 pm_fxu_stall) Internal operations completed event:0X0203 counters:3 um:zero minimum:1000 name:PM_CMPLU_STALL_DIV_GRP32 : (Group 32 pm_fxu_stall) Completion stall caused by DIV instruction #Group 33 pm_fpu_stall, FPU Stalls event:0X0210 counters:0 um:zero minimum:1000 name:PM_FPU_FULL_CYC_GRP33 : (Group 33 pm_fpu_stall) Cycles FPU issue queue full event:0X0211 counters:1 um:zero minimum:1000 name:PM_CMPLU_STALL_FDIV_GRP33 : (Group 33 pm_fpu_stall) Completion stall caused by FDIV or FQRT instruction event:0X0212 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP33 : (Group 33 pm_fpu_stall) Internal operations completed event:0X0213 counters:3 um:zero minimum:1000 name:PM_CMPLU_STALL_FPU_GRP33 : (Group 33 pm_fpu_stall) Completion stall caused by FPU instruction #Group 34 pm_queue_full, BRQ LRQ LMQ queue full event:0X0220 counters:0 um:zero minimum:1000 name:PM_LARX_LSU0_GRP34 : (Group 34 pm_queue_full) Larx executed on LSU0 event:0X0221 counters:1 um:zero minimum:1000 name:PM_BRQ_FULL_CYC_GRP34 : (Group 34 pm_queue_full) Cycles branch queue full event:0X0222 counters:2 um:zero minimum:1000 name:PM_LSU_LRQ_FULL_CYC_GRP34 : (Group 34 pm_queue_full) Cycles LRQ full event:0X0223 counters:3 um:zero minimum:1000 name:PM_LSU_LMQ_FULL_CYC_GRP34 : (Group 34 pm_queue_full) Cycles LMQ full #Group 35 pm_issueq_full, FPU FX full event:0X0230 counters:0 um:zero minimum:1000 name:PM_FPU0_FULL_CYC_GRP35 : (Group 35 pm_issueq_full) Cycles FPU0 issue queue full event:0X0231 counters:1 um:zero minimum:1000 name:PM_FPU1_FULL_CYC_GRP35 : (Group 35 pm_issueq_full) Cycles FPU1 issue queue full event:0X0232 counters:2 um:zero minimum:1000 name:PM_FXLS0_FULL_CYC_GRP35 : (Group 35 pm_issueq_full) Cycles FXU0/LS0 queue full event:0X0233 counters:3 um:zero minimum:1000 name:PM_FXLS1_FULL_CYC_GRP35 : (Group 35 pm_issueq_full) Cycles FXU1/LS1 queue full #Group 36 pm_mapper_full1, CR CTR GPR mapper full event:0X0240 counters:0 um:zero minimum:1000 name:PM_CR_MAP_FULL_CYC_GRP36 : (Group 36 pm_mapper_full1) Cycles CR logical operation mapper full event:0X0241 counters:1 um:zero minimum:1000 name:PM_LR_CTR_MAP_FULL_CYC_GRP36 : (Group 36 pm_mapper_full1) Cycles LR/CTR mapper full event:0X0242 counters:2 um:zero minimum:1000 name:PM_GPR_MAP_FULL_CYC_GRP36 : (Group 36 pm_mapper_full1) Cycles GPR mapper full event:0X0243 counters:3 um:zero minimum:1000 name:PM_CRQ_FULL_CYC_GRP36 : (Group 36 pm_mapper_full1) Cycles CR issue queue full #Group 37 pm_mapper_full2, FPR XER mapper full event:0X0250 counters:0 um:zero minimum:1000 name:PM_FPR_MAP_FULL_CYC_GRP37 : (Group 37 pm_mapper_full2) Cycles FPR mapper full event:0X0251 counters:1 um:zero minimum:1000 name:PM_XER_MAP_FULL_CYC_GRP37 : (Group 37 pm_mapper_full2) Cycles XER mapper full event:0X0252 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2MISS_GRP37 : (Group 37 pm_mapper_full2) Marked data loaded missed L2 event:0X0253 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP37 : (Group 37 pm_mapper_full2) Internal operations completed #Group 38 pm_misc_load, Non-cachable loads and stcx events event:0X0260 counters:0 um:zero minimum:1000 name:PM_STCX_FAIL_GRP38 : (Group 38 pm_misc_load) STCX failed event:0X0261 counters:1 um:zero minimum:1000 name:PM_STCX_PASS_GRP38 : (Group 38 pm_misc_load) Stcx passes event:0X0262 counters:2 um:zero minimum:1000 name:PM_LSU0_NCLD_GRP38 : (Group 38 pm_misc_load) LSU0 non-cacheable loads event:0X0263 counters:3 um:zero minimum:1000 name:PM_LSU1_NCLD_GRP38 : (Group 38 pm_misc_load) LSU1 non-cacheable loads #Group 39 pm_ic_demand, ICache demand from BR redirect event:0X0270 counters:0 um:zero minimum:1000 name:PM_LSU0_BUSY_REJECT_GRP39 : (Group 39 pm_ic_demand) LSU0 busy due to reject event:0X0271 counters:1 um:zero minimum:1000 name:PM_LSU1_BUSY_REJECT_GRP39 : (Group 39 pm_ic_demand) LSU1 busy due to reject event:0X0272 counters:2 um:zero minimum:1000 name:PM_IC_DEMAND_L2_BHT_REDIRECT_GRP39 : (Group 39 pm_ic_demand) L2 I cache demand request due to BHT redirect event:0X0273 counters:3 um:zero minimum:1000 name:PM_IC_DEMAND_L2_BR_REDIRECT_GRP39 : (Group 39 pm_ic_demand) L2 I cache demand request due to branch redirect #Group 40 pm_ic_pref, ICache prefetch event:0X0280 counters:0 um:zero minimum:1000 name:PM_IERAT_XLATE_WR_GRP40 : (Group 40 pm_ic_pref) Translation written to ierat event:0X0281 counters:1 um:zero minimum:1000 name:PM_IC_PREF_REQ_GRP40 : (Group 40 pm_ic_pref) Instruction prefetch requests event:0X0282 counters:2 um:zero minimum:1000 name:PM_IC_PREF_INSTALL_GRP40 : (Group 40 pm_ic_pref) Instruction prefetched installed in prefetch buffer event:0X0283 counters:3 um:zero minimum:1000 name:PM_0INST_FETCH_GRP40 : (Group 40 pm_ic_pref) No instructions fetched #Group 41 pm_ic_miss, ICache misses event:0X0290 counters:0 um:zero minimum:1000 name:PM_GRP_IC_MISS_NONSPEC_GRP41 : (Group 41 pm_ic_miss) Group experienced non-speculative I cache miss event:0X0291 counters:1 um:zero minimum:1000 name:PM_GRP_IC_MISS_GRP41 : (Group 41 pm_ic_miss) Group experienced I cache miss event:0X0292 counters:2 um:zero minimum:1000 name:PM_L1_DCACHE_RELOAD_VALID_GRP41 : (Group 41 pm_ic_miss) L1 reload data source valid event:0X0293 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP41 : (Group 41 pm_ic_miss) Internal operations completed #Group 42 pm_branch_miss, Branch mispredict, TLB and SLB misses event:0X02A0 counters:0 um:zero minimum:1000 name:PM_TLB_MISS_GRP42 : (Group 42 pm_branch_miss) TLB misses event:0X02A1 counters:1 um:zero minimum:1000 name:PM_SLB_MISS_GRP42 : (Group 42 pm_branch_miss) SLB misses event:0X02A2 counters:2 um:zero minimum:1000 name:PM_BR_MPRED_CR_GRP42 : (Group 42 pm_branch_miss) Branch mispredictions due to CR bit setting event:0X02A3 counters:3 um:zero minimum:1000 name:PM_BR_MPRED_TA_GRP42 : (Group 42 pm_branch_miss) Branch mispredictions due to target address #Group 43 pm_branch1, Branch operations event:0X02B0 counters:0 um:zero minimum:1000 name:PM_BR_UNCOND_GRP43 : (Group 43 pm_branch1) Unconditional branch event:0X02B1 counters:1 um:zero minimum:1000 name:PM_BR_PRED_TA_GRP43 : (Group 43 pm_branch1) A conditional branch was predicted, target prediction event:0X02B2 counters:2 um:zero minimum:1000 name:PM_BR_PRED_CR_GRP43 : (Group 43 pm_branch1) A conditional branch was predicted, CR prediction event:0X02B3 counters:3 um:zero minimum:1000 name:PM_BR_PRED_CR_TA_GRP43 : (Group 43 pm_branch1) A conditional branch was predicted, CR and target prediction #Group 44 pm_branch2, Branch operations event:0X02C0 counters:0 um:zero minimum:1000 name:PM_GRP_BR_REDIR_NONSPEC_GRP44 : (Group 44 pm_branch2) Group experienced non-speculative branch redirect event:0X02C1 counters:1 um:zero minimum:1000 name:PM_GRP_BR_REDIR_GRP44 : (Group 44 pm_branch2) Group experienced branch redirect event:0X02C2 counters:2 um:zero minimum:1000 name:PM_FLUSH_BR_MPRED_GRP44 : (Group 44 pm_branch2) Flush caused by branch mispredict event:0X02C3 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP44 : (Group 44 pm_branch2) Internal operations completed #Group 45 pm_L1_tlbmiss, L1 load and TLB misses event:0X02D0 counters:0 um:zero minimum:1000 name:PM_DATA_TABLEWALK_CYC_GRP45 : (Group 45 pm_L1_tlbmiss) Cycles doing data tablewalks event:0X02D1 counters:1 um:zero minimum:1000 name:PM_DTLB_MISS_GRP45 : (Group 45 pm_L1_tlbmiss) Data TLB misses event:0X02D2 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP45 : (Group 45 pm_L1_tlbmiss) L1 D cache load misses event:0X02D3 counters:3 um:zero minimum:1000 name:PM_LD_REF_L1_GRP45 : (Group 45 pm_L1_tlbmiss) L1 D cache load references #Group 46 pm_L1_DERAT_miss, L1 store and DERAT misses event:0X02E0 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L2_GRP46 : (Group 46 pm_L1_DERAT_miss) Data loaded from L2 event:0X02E1 counters:1 um:zero minimum:1000 name:PM_LSU_DERAT_MISS_GRP46 : (Group 46 pm_L1_DERAT_miss) DERAT misses event:0X02E2 counters:2 um:zero minimum:1000 name:PM_ST_REF_L1_GRP46 : (Group 46 pm_L1_DERAT_miss) L1 D cache store references event:0X02E3 counters:3 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP46 : (Group 46 pm_L1_DERAT_miss) L1 D cache store misses #Group 47 pm_L1_slbmiss, L1 load and SLB misses event:0X02F0 counters:0 um:zero minimum:1000 name:PM_DSLB_MISS_GRP47 : (Group 47 pm_L1_slbmiss) Data SLB misses event:0X02F1 counters:1 um:zero minimum:1000 name:PM_ISLB_MISS_GRP47 : (Group 47 pm_L1_slbmiss) Instruction SLB misses event:0X02F2 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_LSU0_GRP47 : (Group 47 pm_L1_slbmiss) LSU0 L1 D cache load misses event:0X02F3 counters:3 um:zero minimum:1000 name:PM_LD_MISS_L1_LSU1_GRP47 : (Group 47 pm_L1_slbmiss) LSU1 L1 D cache load misses #Group 48 pm_dtlbref, Data TLB references event:0X0300 counters:0 um:zero minimum:1000 name:PM_DTLB_REF_4K_GRP48 : (Group 48 pm_dtlbref) Data TLB reference for 4K page event:0X0301 counters:1 um:zero minimum:1000 name:PM_DTLB_REF_64K_GRP48 : (Group 48 pm_dtlbref) Data TLB reference for 64K page event:0X0302 counters:2 um:zero minimum:1000 name:PM_DTLB_REF_16M_GRP48 : (Group 48 pm_dtlbref) Data TLB reference for 16M page event:0X0303 counters:3 um:zero minimum:1000 name:PM_DTLB_REF_16G_GRP48 : (Group 48 pm_dtlbref) Data TLB reference for 16G page #Group 49 pm_dtlbmiss, Data TLB misses event:0X0310 counters:0 um:zero minimum:1000 name:PM_DTLB_MISS_4K_GRP49 : (Group 49 pm_dtlbmiss) Data TLB miss for 4K page event:0X0311 counters:1 um:zero minimum:1000 name:PM_DTLB_MISS_64K_GRP49 : (Group 49 pm_dtlbmiss) Data TLB miss for 64K page event:0X0312 counters:2 um:zero minimum:1000 name:PM_DTLB_MISS_16M_GRP49 : (Group 49 pm_dtlbmiss) Data TLB miss for 16M page event:0X0313 counters:3 um:zero minimum:1000 name:PM_DTLB_MISS_16G_GRP49 : (Group 49 pm_dtlbmiss) Data TLB miss for 16G page #Group 50 pm_dtlb, Data TLB references and misses event:0X0320 counters:0 um:zero minimum:1000 name:PM_DTLB_REF_GRP50 : (Group 50 pm_dtlb) Data TLB references event:0X0321 counters:1 um:zero minimum:1000 name:PM_DTLB_MISS_GRP50 : (Group 50 pm_dtlb) Data TLB misses event:0X0322 counters:2 um:zero minimum:10000 name:PM_CYC_GRP50 : (Group 50 pm_dtlb) Processor cycles event:0X0323 counters:3 um:zero minimum:10000 name:PM_CYC_GRP50 : (Group 50 pm_dtlb) Processor cycles #Group 51 pm_L1_refmiss, L1 load references and misses and store references and misses event:0X0330 counters:0 um:zero minimum:1000 name:PM_LD_REF_L1_GRP51 : (Group 51 pm_L1_refmiss) L1 D cache load references event:0X0331 counters:1 um:zero minimum:1000 name:PM_ST_REF_L1_GRP51 : (Group 51 pm_L1_refmiss) L1 D cache store references event:0X0332 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP51 : (Group 51 pm_L1_refmiss) L1 D cache load misses event:0X0333 counters:3 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP51 : (Group 51 pm_L1_refmiss) L1 D cache store misses #Group 52 pm_dsource1, L3 cache and memory data access event:0X0340 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L3_GRP52 : (Group 52 pm_dsource1) Data loaded from L3 event:0X0341 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_LMEM_GRP52 : (Group 52 pm_dsource1) Data loaded from local memory event:0X0342 counters:2 um:zero minimum:1000 name:PM_FLUSH_GRP52 : (Group 52 pm_dsource1) Flushes event:0X0343 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP52 : (Group 52 pm_dsource1) Internal operations completed #Group 53 pm_dsource2, L3 cache and memory data access event:0X0350 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L3_GRP53 : (Group 53 pm_dsource2) Data loaded from L3 event:0X0351 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_LMEM_GRP53 : (Group 53 pm_dsource2) Data loaded from local memory event:0X0352 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_L2MISS_GRP53 : (Group 53 pm_dsource2) Data loaded missed L2 event:0X0353 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_RMEM_GRP53 : (Group 53 pm_dsource2) Data loaded from remote memory #Group 54 pm_dsource_L2, L2 cache data access event:0X0360 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L25_SHR_GRP54 : (Group 54 pm_dsource_L2) Data loaded from L2.5 shared event:0X0361 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_L25_MOD_GRP54 : (Group 54 pm_dsource_L2) Data loaded from L2.5 modified event:0X0362 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_L275_SHR_GRP54 : (Group 54 pm_dsource_L2) Data loaded from L2.75 shared event:0X0363 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_L275_MOD_GRP54 : (Group 54 pm_dsource_L2) Data loaded from L2.75 modified #Group 55 pm_dsource_L3, L3 cache data access event:0X0370 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L35_SHR_GRP55 : (Group 55 pm_dsource_L3) Data loaded from L3.5 shared event:0X0371 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_L35_MOD_GRP55 : (Group 55 pm_dsource_L3) Data loaded from L3.5 modified event:0X0372 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_L375_SHR_GRP55 : (Group 55 pm_dsource_L3) Data loaded from L3.75 shared event:0X0373 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_L375_MOD_GRP55 : (Group 55 pm_dsource_L3) Data loaded from L3.75 modified #Group 56 pm_isource1, Instruction source information event:0X0380 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L3_GRP56 : (Group 56 pm_isource1) Instruction fetched from L3 event:0X0381 counters:1 um:zero minimum:1000 name:PM_INST_FROM_L1_GRP56 : (Group 56 pm_isource1) Instruction fetched from L1 event:0X0382 counters:2 um:zero minimum:1000 name:PM_INST_FROM_PREF_GRP56 : (Group 56 pm_isource1) Instruction fetched from prefetch event:0X0383 counters:3 um:zero minimum:1000 name:PM_INST_FROM_RMEM_GRP56 : (Group 56 pm_isource1) Instruction fetched from remote memory #Group 57 pm_isource2, Instruction source information event:0X0390 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L2_GRP57 : (Group 57 pm_isource2) Instruction fetched from L2 event:0X0391 counters:1 um:zero minimum:1000 name:PM_INST_FROM_LMEM_GRP57 : (Group 57 pm_isource2) Instruction fetched from local memory event:0X0392 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP57 : (Group 57 pm_isource2) Internal operations completed event:0X0393 counters:3 um:zero minimum:1000 name:PM_0INST_FETCH_GRP57 : (Group 57 pm_isource2) No instructions fetched #Group 58 pm_isource_L2, L2 instruction source information event:0X03A0 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L25_SHR_GRP58 : (Group 58 pm_isource_L2) Instruction fetched from L2.5 shared event:0X03A1 counters:1 um:zero minimum:1000 name:PM_INST_FROM_L25_MOD_GRP58 : (Group 58 pm_isource_L2) Instruction fetched from L2.5 modified event:0X03A2 counters:2 um:zero minimum:1000 name:PM_INST_FROM_L275_SHR_GRP58 : (Group 58 pm_isource_L2) Instruction fetched from L2.75 shared event:0X03A3 counters:3 um:zero minimum:1000 name:PM_INST_FROM_L275_MOD_GRP58 : (Group 58 pm_isource_L2) Instruction fetched from L2.75 modified #Group 59 pm_isource_L3, L3 instruction source information event:0X03B0 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L35_SHR_GRP59 : (Group 59 pm_isource_L3) Instruction fetched from L3.5 shared event:0X03B1 counters:1 um:zero minimum:1000 name:PM_INST_FROM_L35_MOD_GRP59 : (Group 59 pm_isource_L3) Instruction fetched from L3.5 modified event:0X03B2 counters:2 um:zero minimum:1000 name:PM_INST_FROM_L375_SHR_GRP59 : (Group 59 pm_isource_L3) Instruction fetched from L3.75 shared event:0X03B3 counters:3 um:zero minimum:1000 name:PM_INST_FROM_L375_MOD_GRP59 : (Group 59 pm_isource_L3) Instruction fetched from L3.75 modified #Group 60 pm_pteg_source1, PTEG source information event:0X03C0 counters:0 um:zero minimum:1000 name:PM_PTEG_FROM_L25_SHR_GRP60 : (Group 60 pm_pteg_source1) PTEG loaded from L2.5 shared event:0X03C1 counters:1 um:zero minimum:1000 name:PM_PTEG_FROM_L25_MOD_GRP60 : (Group 60 pm_pteg_source1) PTEG loaded from L2.5 modified event:0X03C2 counters:2 um:zero minimum:1000 name:PM_PTEG_FROM_L275_SHR_GRP60 : (Group 60 pm_pteg_source1) PTEG loaded from L2.75 shared event:0X03C3 counters:3 um:zero minimum:1000 name:PM_PTEG_FROM_L275_MOD_GRP60 : (Group 60 pm_pteg_source1) PTEG loaded from L2.75 modified #Group 61 pm_pteg_source2, PTEG source information event:0X03D0 counters:0 um:zero minimum:1000 name:PM_PTEG_FROM_L35_SHR_GRP61 : (Group 61 pm_pteg_source2) PTEG loaded from L3.5 shared event:0X03D1 counters:1 um:zero minimum:1000 name:PM_PTEG_FROM_L35_MOD_GRP61 : (Group 61 pm_pteg_source2) PTEG loaded from L3.5 modified event:0X03D2 counters:2 um:zero minimum:1000 name:PM_PTEG_FROM_L375_SHR_GRP61 : (Group 61 pm_pteg_source2) PTEG loaded from L3.75 shared event:0X03D3 counters:3 um:zero minimum:1000 name:PM_PTEG_FROM_L375_MOD_GRP61 : (Group 61 pm_pteg_source2) PTEG loaded from L3.75 modified #Group 62 pm_pteg_source3, PTEG source information event:0X03E0 counters:0 um:zero minimum:1000 name:PM_PTEG_FROM_L2_GRP62 : (Group 62 pm_pteg_source3) PTEG loaded from L2 event:0X03E1 counters:1 um:zero minimum:1000 name:PM_PTEG_FROM_LMEM_GRP62 : (Group 62 pm_pteg_source3) PTEG loaded from local memory event:0X03E2 counters:2 um:zero minimum:1000 name:PM_PTEG_FROM_L2MISS_GRP62 : (Group 62 pm_pteg_source3) PTEG loaded from L2 miss event:0X03E3 counters:3 um:zero minimum:1000 name:PM_PTEG_FROM_RMEM_GRP62 : (Group 62 pm_pteg_source3) PTEG loaded from remote memory #Group 63 pm_pteg_source4, L3 PTEG and group disptach events event:0X03F0 counters:0 um:zero minimum:1000 name:PM_PTEG_FROM_L3_GRP63 : (Group 63 pm_pteg_source4) PTEG loaded from L3 event:0X03F1 counters:1 um:zero minimum:1000 name:PM_GRP_DISP_GRP63 : (Group 63 pm_pteg_source4) Group dispatches event:0X03F2 counters:2 um:zero minimum:1000 name:PM_GRP_DISP_SUCCESS_GRP63 : (Group 63 pm_pteg_source4) Group dispatch success event:0X03F3 counters:3 um:zero minimum:1000 name:PM_DC_INV_L2_GRP63 : (Group 63 pm_pteg_source4) L1 D cache entries invalidated from L2 #Group 64 pm_L2SA_ld, L2 slice A load events event:0X0400 counters:0 um:zero minimum:1000 name:PM_L2SA_RCLD_DISP_GRP64 : (Group 64 pm_L2SA_ld) L2 slice A RC load dispatch attempt event:0X0401 counters:1 um:zero minimum:1000 name:PM_L2SA_RCLD_DISP_FAIL_RC_FULL_GRP64 : (Group 64 pm_L2SA_ld) L2 slice A RC load dispatch attempt failed due to all RC full event:0X0402 counters:2 um:zero minimum:1000 name:PM_L2SA_RCLD_DISP_FAIL_ADDR_GRP64 : (Group 64 pm_L2SA_ld) L2 slice A RC load dispatch attempt failed due to address collision with RC/CO/SN/SQ event:0X0403 counters:3 um:zero minimum:1000 name:PM_L2SA_RCLD_DISP_FAIL_OTHER_GRP64 : (Group 64 pm_L2SA_ld) L2 slice A RC load dispatch attempt failed due to other reasons #Group 65 pm_L2SA_st, L2 slice A store events event:0X0410 counters:0 um:zero minimum:1000 name:PM_L2SA_RCST_DISP_GRP65 : (Group 65 pm_L2SA_st) L2 slice A RC store dispatch attempt event:0X0411 counters:1 um:zero minimum:1000 name:PM_L2SA_RCST_DISP_FAIL_RC_FULL_GRP65 : (Group 65 pm_L2SA_st) L2 slice A RC store dispatch attempt failed due to all RC full event:0X0412 counters:2 um:zero minimum:1000 name:PM_L2SA_RCST_DISP_FAIL_ADDR_GRP65 : (Group 65 pm_L2SA_st) L2 slice A RC store dispatch attempt failed due to address collision with RC/CO/SN/SQ event:0X0413 counters:3 um:zero minimum:1000 name:PM_L2SA_RCST_DISP_FAIL_OTHER_GRP65 : (Group 65 pm_L2SA_st) L2 slice A RC store dispatch attempt failed due to other reasons #Group 66 pm_L2SA_st2, L2 slice A store events event:0X0420 counters:0 um:zero minimum:1000 name:PM_L2SA_RC_DISP_FAIL_CO_BUSY_GRP66 : (Group 66 pm_L2SA_st2) L2 slice A RC dispatch attempt failed due to RC/CO pair chosen was miss and CO already busy event:0X0421 counters:1 um:zero minimum:1000 name:PM_L2SA_ST_REQ_GRP66 : (Group 66 pm_L2SA_st2) L2 slice A store requests event:0X0422 counters:2 um:zero minimum:1000 name:PM_L2SA_RC_DISP_FAIL_CO_BUSY_ALL_GRP66 : (Group 66 pm_L2SA_st2) L2 slice A RC dispatch attempt failed due to all CO busy event:0X0423 counters:3 um:zero minimum:1000 name:PM_L2SA_ST_HIT_GRP66 : (Group 66 pm_L2SA_st2) L2 slice A store hits #Group 67 pm_L2SB_ld, L2 slice B load events event:0X0430 counters:0 um:zero minimum:1000 name:PM_L2SB_RCLD_DISP_GRP67 : (Group 67 pm_L2SB_ld) L2 slice B RC load dispatch attempt event:0X0431 counters:1 um:zero minimum:1000 name:PM_L2SB_RCLD_DISP_FAIL_RC_FULL_GRP67 : (Group 67 pm_L2SB_ld) L2 slice B RC load dispatch attempt failed due to all RC full event:0X0432 counters:2 um:zero minimum:1000 name:PM_L2SB_RCLD_DISP_FAIL_ADDR_GRP67 : (Group 67 pm_L2SB_ld) L2 slice B RC load dispatch attempt failed due to address collision with RC/CO/SN/SQ event:0X0433 counters:3 um:zero minimum:1000 name:PM_L2SB_RCLD_DISP_FAIL_OTHER_GRP67 : (Group 67 pm_L2SB_ld) L2 slice B RC load dispatch attempt failed due to other reasons #Group 68 pm_L2SB_st, L2 slice B store events event:0X0440 counters:0 um:zero minimum:1000 name:PM_L2SB_RCST_DISP_GRP68 : (Group 68 pm_L2SB_st) L2 slice B RC store dispatch attempt event:0X0441 counters:1 um:zero minimum:1000 name:PM_L2SB_RCST_DISP_FAIL_RC_FULL_GRP68 : (Group 68 pm_L2SB_st) L2 slice B RC store dispatch attempt failed due to all RC full event:0X0442 counters:2 um:zero minimum:1000 name:PM_L2SB_RCST_DISP_FAIL_ADDR_GRP68 : (Group 68 pm_L2SB_st) L2 slice B RC store dispatch attempt failed due to address collision with RC/CO/SN/SQ event:0X0443 counters:3 um:zero minimum:1000 name:PM_L2SB_RCST_DISP_FAIL_OTHER_GRP68 : (Group 68 pm_L2SB_st) L2 slice B RC store dispatch attempt failed due to other reasons #Group 69 pm_L2SB_st2, L2 slice B store events event:0X0450 counters:0 um:zero minimum:1000 name:PM_L2SB_RC_DISP_FAIL_CO_BUSY_GRP69 : (Group 69 pm_L2SB_st2) L2 slice B RC dispatch attempt failed due to RC/CO pair chosen was miss and CO already busy event:0X0451 counters:1 um:zero minimum:1000 name:PM_L2SB_ST_REQ_GRP69 : (Group 69 pm_L2SB_st2) L2 slice B store requests event:0X0452 counters:2 um:zero minimum:1000 name:PM_L2SB_RC_DISP_FAIL_CO_BUSY_ALL_GRP69 : (Group 69 pm_L2SB_st2) L2 slice B RC dispatch attempt failed due to all CO busy event:0X0453 counters:3 um:zero minimum:1000 name:PM_L2SB_ST_HIT_GRP69 : (Group 69 pm_L2SB_st2) L2 slice B store hits #Group 70 pm_L2SC_ld, L2 slice C load events event:0X0460 counters:0 um:zero minimum:1000 name:PM_L2SC_RCLD_DISP_GRP70 : (Group 70 pm_L2SC_ld) L2 slice C RC load dispatch attempt event:0X0461 counters:1 um:zero minimum:1000 name:PM_L2SC_RCLD_DISP_FAIL_RC_FULL_GRP70 : (Group 70 pm_L2SC_ld) L2 slice C RC load dispatch attempt failed due to all RC full event:0X0462 counters:2 um:zero minimum:1000 name:PM_L2SC_RCLD_DISP_FAIL_ADDR_GRP70 : (Group 70 pm_L2SC_ld) L2 slice C RC load dispatch attempt failed due to address collision with RC/CO/SN/SQ event:0X0463 counters:3 um:zero minimum:1000 name:PM_L2SC_RCLD_DISP_FAIL_OTHER_GRP70 : (Group 70 pm_L2SC_ld) L2 slice C RC load dispatch attempt failed due to other reasons #Group 71 pm_L2SC_st, L2 slice C store events event:0X0470 counters:0 um:zero minimum:1000 name:PM_L2SC_RCST_DISP_GRP71 : (Group 71 pm_L2SC_st) L2 slice C RC store dispatch attempt event:0X0471 counters:1 um:zero minimum:1000 name:PM_L2SC_RCST_DISP_FAIL_RC_FULL_GRP71 : (Group 71 pm_L2SC_st) L2 slice C RC store dispatch attempt failed due to all RC full event:0X0472 counters:2 um:zero minimum:1000 name:PM_L2SC_RCST_DISP_FAIL_ADDR_GRP71 : (Group 71 pm_L2SC_st) L2 slice C RC store dispatch attempt failed due to address collision with RC/CO/SN/SQ event:0X0473 counters:3 um:zero minimum:1000 name:PM_L2SC_RCST_DISP_FAIL_OTHER_GRP71 : (Group 71 pm_L2SC_st) L2 slice C RC store dispatch attempt failed due to other reasons #Group 72 pm_L2SC_st2, L2 slice C store events event:0X0480 counters:0 um:zero minimum:1000 name:PM_L2SC_RC_DISP_FAIL_CO_BUSY_GRP72 : (Group 72 pm_L2SC_st2) L2 slice C RC dispatch attempt failed due to RC/CO pair chosen was miss and CO already busy event:0X0481 counters:1 um:zero minimum:1000 name:PM_L2SC_ST_REQ_GRP72 : (Group 72 pm_L2SC_st2) L2 slice C store requests event:0X0482 counters:2 um:zero minimum:1000 name:PM_L2SC_RC_DISP_FAIL_CO_BUSY_ALL_GRP72 : (Group 72 pm_L2SC_st2) L2 slice C RC dispatch attempt failed due to all CO busy event:0X0483 counters:3 um:zero minimum:1000 name:PM_L2SC_ST_HIT_GRP72 : (Group 72 pm_L2SC_st2) L2 slice C store hits #Group 73 pm_L3SA_trans, L3 slice A state transistions event:0X0490 counters:0 um:zero minimum:1000 name:PM_L3SA_MOD_TAG_GRP73 : (Group 73 pm_L3SA_trans) L3 slice A transition from modified to TAG event:0X0491 counters:1 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP73 : (Group 73 pm_L3SA_trans) Internal operations completed event:0X0492 counters:2 um:zero minimum:1000 name:PM_L3SA_MOD_INV_GRP73 : (Group 73 pm_L3SA_trans) L3 slice A transition from modified to invalid event:0X0493 counters:3 um:zero minimum:1000 name:PM_L3SA_SHR_INV_GRP73 : (Group 73 pm_L3SA_trans) L3 slice A transition from shared to invalid #Group 74 pm_L3SB_trans, L3 slice B state transistions event:0X04A0 counters:0 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP74 : (Group 74 pm_L3SB_trans) Internal operations completed event:0X04A1 counters:1 um:zero minimum:1000 name:PM_L3SB_MOD_TAG_GRP74 : (Group 74 pm_L3SB_trans) L3 slice B transition from modified to TAG event:0X04A2 counters:2 um:zero minimum:1000 name:PM_L3SB_MOD_INV_GRP74 : (Group 74 pm_L3SB_trans) L3 slice B transition from modified to invalid event:0X04A3 counters:3 um:zero minimum:1000 name:PM_L3SB_SHR_INV_GRP74 : (Group 74 pm_L3SB_trans) L3 slice B transition from shared to invalid #Group 75 pm_L3SC_trans, L3 slice C state transistions event:0X04B0 counters:0 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP75 : (Group 75 pm_L3SC_trans) Internal operations completed event:0X04B1 counters:1 um:zero minimum:1000 name:PM_L3SC_MOD_TAG_GRP75 : (Group 75 pm_L3SC_trans) L3 slice C transition from modified to TAG event:0X04B2 counters:2 um:zero minimum:1000 name:PM_L3SC_MOD_INV_GRP75 : (Group 75 pm_L3SC_trans) L3 slice C transition from modified to invalid event:0X04B3 counters:3 um:zero minimum:1000 name:PM_L3SC_SHR_INV_GRP75 : (Group 75 pm_L3SC_trans) L3 slice C transition from shared to invalid #Group 76 pm_L2SA_trans, L2 slice A state transistions event:0X04C0 counters:0 um:zero minimum:1000 name:PM_L2SA_MOD_TAG_GRP76 : (Group 76 pm_L2SA_trans) L2 slice A transition from modified to tagged event:0X04C1 counters:1 um:zero minimum:1000 name:PM_L2SA_SHR_MOD_GRP76 : (Group 76 pm_L2SA_trans) L2 slice A transition from shared to modified event:0X04C2 counters:2 um:zero minimum:1000 name:PM_L2SA_MOD_INV_GRP76 : (Group 76 pm_L2SA_trans) L2 slice A transition from modified to invalid event:0X04C3 counters:3 um:zero minimum:1000 name:PM_L2SA_SHR_INV_GRP76 : (Group 76 pm_L2SA_trans) L2 slice A transition from shared to invalid #Group 77 pm_L2SB_trans, L2 slice B state transistions event:0X04D0 counters:0 um:zero minimum:1000 name:PM_L2SB_MOD_TAG_GRP77 : (Group 77 pm_L2SB_trans) L2 slice B transition from modified to tagged event:0X04D1 counters:1 um:zero minimum:1000 name:PM_L2SB_SHR_MOD_GRP77 : (Group 77 pm_L2SB_trans) L2 slice B transition from shared to modified event:0X04D2 counters:2 um:zero minimum:1000 name:PM_L2SB_MOD_INV_GRP77 : (Group 77 pm_L2SB_trans) L2 slice B transition from modified to invalid event:0X04D3 counters:3 um:zero minimum:1000 name:PM_L2SB_SHR_INV_GRP77 : (Group 77 pm_L2SB_trans) L2 slice B transition from shared to invalid #Group 78 pm_L2SC_trans, L2 slice C state transistions event:0X04E0 counters:0 um:zero minimum:1000 name:PM_L2SC_MOD_TAG_GRP78 : (Group 78 pm_L2SC_trans) L2 slice C transition from modified to tagged event:0X04E1 counters:1 um:zero minimum:1000 name:PM_L2SC_SHR_MOD_GRP78 : (Group 78 pm_L2SC_trans) L2 slice C transition from shared to modified event:0X04E2 counters:2 um:zero minimum:1000 name:PM_L2SC_MOD_INV_GRP78 : (Group 78 pm_L2SC_trans) L2 slice C transition from modified to invalid event:0X04E3 counters:3 um:zero minimum:1000 name:PM_L2SC_SHR_INV_GRP78 : (Group 78 pm_L2SC_trans) L2 slice C transition from shared to invalid #Group 79 pm_L3SAB_retry, L3 slice A/B snoop retry and all CI/CO busy event:0X04F0 counters:0 um:zero minimum:1000 name:PM_L3SA_ALL_BUSY_GRP79 : (Group 79 pm_L3SAB_retry) L3 slice A active for every cycle all CI/CO machines busy event:0X04F1 counters:1 um:zero minimum:1000 name:PM_L3SB_ALL_BUSY_GRP79 : (Group 79 pm_L3SAB_retry) L3 slice B active for every cycle all CI/CO machines busy event:0X04F2 counters:2 um:zero minimum:1000 name:PM_L3SA_SNOOP_RETRY_GRP79 : (Group 79 pm_L3SAB_retry) L3 slice A snoop retries event:0X04F3 counters:3 um:zero minimum:1000 name:PM_L3SB_SNOOP_RETRY_GRP79 : (Group 79 pm_L3SAB_retry) L3 slice B snoop retries #Group 80 pm_L3SAB_hit, L3 slice A/B hit and reference event:0X0500 counters:0 um:zero minimum:1000 name:PM_L3SA_REF_GRP80 : (Group 80 pm_L3SAB_hit) L3 slice A references event:0X0501 counters:1 um:zero minimum:1000 name:PM_L3SB_REF_GRP80 : (Group 80 pm_L3SAB_hit) L3 slice B references event:0X0502 counters:2 um:zero minimum:1000 name:PM_L3SA_HIT_GRP80 : (Group 80 pm_L3SAB_hit) L3 slice A hits event:0X0503 counters:3 um:zero minimum:1000 name:PM_L3SB_HIT_GRP80 : (Group 80 pm_L3SAB_hit) L3 slice B hits #Group 81 pm_L3SC_retry_hit, L3 slice C hit & snoop retry event:0X0510 counters:0 um:zero minimum:1000 name:PM_L3SC_ALL_BUSY_GRP81 : (Group 81 pm_L3SC_retry_hit) L3 slice C active for every cycle all CI/CO machines busy event:0X0511 counters:1 um:zero minimum:1000 name:PM_L3SC_REF_GRP81 : (Group 81 pm_L3SC_retry_hit) L3 slice C references event:0X0512 counters:2 um:zero minimum:1000 name:PM_L3SC_SNOOP_RETRY_GRP81 : (Group 81 pm_L3SC_retry_hit) L3 slice C snoop retries event:0X0513 counters:3 um:zero minimum:1000 name:PM_L3SC_HIT_GRP81 : (Group 81 pm_L3SC_retry_hit) L3 slice C hits #Group 82 pm_fpu1, Floating Point events event:0X0520 counters:0 um:zero minimum:1000 name:PM_FPU_FDIV_GRP82 : (Group 82 pm_fpu1) FPU executed FDIV instruction event:0X0521 counters:1 um:zero minimum:1000 name:PM_FPU_FMA_GRP82 : (Group 82 pm_fpu1) FPU executed multiply-add instruction event:0X0522 counters:2 um:zero minimum:1000 name:PM_FPU_FMOV_FEST_GRP82 : (Group 82 pm_fpu1) FPU executed FMOV or FEST instructions event:0X0523 counters:3 um:zero minimum:1000 name:PM_FPU_FEST_GRP82 : (Group 82 pm_fpu1) FPU executed FEST instruction #Group 83 pm_fpu2, Floating Point events event:0X0530 counters:0 um:zero minimum:1000 name:PM_FPU_1FLOP_GRP83 : (Group 83 pm_fpu2) FPU executed one flop instruction event:0X0531 counters:1 um:zero minimum:1000 name:PM_FPU_FSQRT_GRP83 : (Group 83 pm_fpu2) FPU executed FSQRT instruction event:0X0532 counters:2 um:zero minimum:1000 name:PM_FPU_FRSP_FCONV_GRP83 : (Group 83 pm_fpu2) FPU executed FRSP or FCONV instructions event:0X0533 counters:3 um:zero minimum:1000 name:PM_FPU_FIN_GRP83 : (Group 83 pm_fpu2) FPU produced a result #Group 84 pm_fpu3, Floating point events event:0X0540 counters:0 um:zero minimum:1000 name:PM_FPU_DENORM_GRP84 : (Group 84 pm_fpu3) FPU received denormalized data event:0X0541 counters:1 um:zero minimum:1000 name:PM_FPU_STALL3_GRP84 : (Group 84 pm_fpu3) FPU stalled in pipe3 event:0X0542 counters:2 um:zero minimum:1000 name:PM_FPU0_FIN_GRP84 : (Group 84 pm_fpu3) FPU0 produced a result event:0X0543 counters:3 um:zero minimum:1000 name:PM_FPU1_FIN_GRP84 : (Group 84 pm_fpu3) FPU1 produced a result #Group 85 pm_fpu4, Floating point events event:0X0550 counters:0 um:zero minimum:1000 name:PM_FPU_SINGLE_GRP85 : (Group 85 pm_fpu4) FPU executed single precision instruction event:0X0551 counters:1 um:zero minimum:1000 name:PM_FPU_STF_GRP85 : (Group 85 pm_fpu4) FPU executed store instruction event:0X0552 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP85 : (Group 85 pm_fpu4) Internal operations completed event:0X0553 counters:3 um:zero minimum:1000 name:PM_LSU_LDF_GRP85 : (Group 85 pm_fpu4) LSU executed Floating Point load instruction #Group 86 pm_fpu5, Floating point events by unit event:0X0560 counters:0 um:zero minimum:1000 name:PM_FPU0_FSQRT_GRP86 : (Group 86 pm_fpu5) FPU0 executed FSQRT instruction event:0X0561 counters:1 um:zero minimum:1000 name:PM_FPU1_FSQRT_GRP86 : (Group 86 pm_fpu5) FPU1 executed FSQRT instruction event:0X0562 counters:2 um:zero minimum:1000 name:PM_FPU0_FEST_GRP86 : (Group 86 pm_fpu5) FPU0 executed FEST instruction event:0X0563 counters:3 um:zero minimum:1000 name:PM_FPU1_FEST_GRP86 : (Group 86 pm_fpu5) FPU1 executed FEST instruction #Group 87 pm_fpu6, Floating point events by unit event:0X0570 counters:0 um:zero minimum:1000 name:PM_FPU0_DENORM_GRP87 : (Group 87 pm_fpu6) FPU0 received denormalized data event:0X0571 counters:1 um:zero minimum:1000 name:PM_FPU1_DENORM_GRP87 : (Group 87 pm_fpu6) FPU1 received denormalized data event:0X0572 counters:2 um:zero minimum:1000 name:PM_FPU0_FMOV_FEST_GRP87 : (Group 87 pm_fpu6) FPU0 executed FMOV or FEST instructions event:0X0573 counters:3 um:zero minimum:1000 name:PM_FPU1_FMOV_FEST_GRP87 : (Group 87 pm_fpu6) FPU1 executed FMOV or FEST instructions #Group 88 pm_fpu7, Floating point events by unit event:0X0580 counters:0 um:zero minimum:1000 name:PM_FPU0_FDIV_GRP88 : (Group 88 pm_fpu7) FPU0 executed FDIV instruction event:0X0581 counters:1 um:zero minimum:1000 name:PM_FPU1_FDIV_GRP88 : (Group 88 pm_fpu7) FPU1 executed FDIV instruction event:0X0582 counters:2 um:zero minimum:1000 name:PM_FPU0_FRSP_FCONV_GRP88 : (Group 88 pm_fpu7) FPU0 executed FRSP or FCONV instructions event:0X0583 counters:3 um:zero minimum:1000 name:PM_FPU1_FRSP_FCONV_GRP88 : (Group 88 pm_fpu7) FPU1 executed FRSP or FCONV instructions #Group 89 pm_fpu8, Floating point events by unit event:0X0590 counters:0 um:zero minimum:1000 name:PM_FPU0_STALL3_GRP89 : (Group 89 pm_fpu8) FPU0 stalled in pipe3 event:0X0591 counters:1 um:zero minimum:1000 name:PM_FPU1_STALL3_GRP89 : (Group 89 pm_fpu8) FPU1 stalled in pipe3 event:0X0592 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP89 : (Group 89 pm_fpu8) Internal operations completed event:0X0593 counters:3 um:zero minimum:1000 name:PM_FPU0_FPSCR_GRP89 : (Group 89 pm_fpu8) FPU0 executed FPSCR instruction #Group 90 pm_fpu9, Floating point events by unit event:0X05A0 counters:0 um:zero minimum:1000 name:PM_FPU0_SINGLE_GRP90 : (Group 90 pm_fpu9) FPU0 executed single precision instruction event:0X05A1 counters:1 um:zero minimum:1000 name:PM_FPU1_SINGLE_GRP90 : (Group 90 pm_fpu9) FPU1 executed single precision instruction event:0X05A2 counters:2 um:zero minimum:1000 name:PM_LSU0_LDF_GRP90 : (Group 90 pm_fpu9) LSU0 executed Floating Point load instruction event:0X05A3 counters:3 um:zero minimum:1000 name:PM_LSU1_LDF_GRP90 : (Group 90 pm_fpu9) LSU1 executed Floating Point load instruction #Group 91 pm_fpu10, Floating point events by unit event:0X05B0 counters:0 um:zero minimum:1000 name:PM_FPU0_FMA_GRP91 : (Group 91 pm_fpu10) FPU0 executed multiply-add instruction event:0X05B1 counters:1 um:zero minimum:1000 name:PM_FPU1_FMA_GRP91 : (Group 91 pm_fpu10) FPU1 executed multiply-add instruction event:0X05B2 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP91 : (Group 91 pm_fpu10) Internal operations completed event:0X05B3 counters:3 um:zero minimum:1000 name:PM_FPU1_FRSP_FCONV_GRP91 : (Group 91 pm_fpu10) FPU1 executed FRSP or FCONV instructions #Group 92 pm_fpu11, Floating point events by unit event:0X05C0 counters:0 um:zero minimum:1000 name:PM_FPU0_1FLOP_GRP92 : (Group 92 pm_fpu11) FPU0 executed add, mult, sub, cmp or sel instruction event:0X05C1 counters:1 um:zero minimum:1000 name:PM_FPU1_1FLOP_GRP92 : (Group 92 pm_fpu11) FPU1 executed add, mult, sub, cmp or sel instruction event:0X05C2 counters:2 um:zero minimum:1000 name:PM_FPU0_FIN_GRP92 : (Group 92 pm_fpu11) FPU0 produced a result event:0X05C3 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP92 : (Group 92 pm_fpu11) Internal operations completed #Group 93 pm_fpu12, Floating point events by unit event:0X05D0 counters:0 um:zero minimum:1000 name:PM_FPU0_STF_GRP93 : (Group 93 pm_fpu12) FPU0 executed store instruction event:0X05D1 counters:1 um:zero minimum:1000 name:PM_FPU1_STF_GRP93 : (Group 93 pm_fpu12) FPU1 executed store instruction event:0X05D2 counters:2 um:zero minimum:1000 name:PM_LSU0_LDF_GRP93 : (Group 93 pm_fpu12) LSU0 executed Floating Point load instruction event:0X05D3 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP93 : (Group 93 pm_fpu12) Internal operations completed #Group 94 pm_fxu1, Fixed Point events event:0X05E0 counters:0 um:zero minimum:1000 name:PM_FXU_IDLE_GRP94 : (Group 94 pm_fxu1) FXU idle event:0X05E1 counters:1 um:zero minimum:1000 name:PM_FXU_BUSY_GRP94 : (Group 94 pm_fxu1) FXU busy event:0X05E2 counters:2 um:zero minimum:1000 name:PM_FXU0_BUSY_FXU1_IDLE_GRP94 : (Group 94 pm_fxu1) FXU0 busy FXU1 idle event:0X05E3 counters:3 um:zero minimum:1000 name:PM_FXU1_BUSY_FXU0_IDLE_GRP94 : (Group 94 pm_fxu1) FXU1 busy FXU0 idle #Group 95 pm_fxu2, Fixed Point events event:0X05F0 counters:0 um:zero minimum:1000 name:PM_MRK_GRP_DISP_GRP95 : (Group 95 pm_fxu2) Marked group dispatched event:0X05F1 counters:1 um:zero minimum:1000 name:PM_MRK_GRP_BR_REDIR_GRP95 : (Group 95 pm_fxu2) Group experienced marked branch redirect event:0X05F2 counters:2 um:zero minimum:1000 name:PM_FXU_FIN_GRP95 : (Group 95 pm_fxu2) FXU produced a result event:0X05F3 counters:3 um:zero minimum:1000 name:PM_FXLS_FULL_CYC_GRP95 : (Group 95 pm_fxu2) Cycles FXLS queue is full #Group 96 pm_fxu3, Fixed Point events event:0X0600 counters:0 um:zero minimum:1000 name:PM_3INST_CLB_CYC_GRP96 : (Group 96 pm_fxu3) Cycles 3 instructions in CLB event:0X0601 counters:1 um:zero minimum:1000 name:PM_4INST_CLB_CYC_GRP96 : (Group 96 pm_fxu3) Cycles 4 instructions in CLB event:0X0602 counters:2 um:zero minimum:1000 name:PM_FXU0_FIN_GRP96 : (Group 96 pm_fxu3) FXU0 produced a result event:0X0603 counters:3 um:zero minimum:1000 name:PM_FXU1_FIN_GRP96 : (Group 96 pm_fxu3) FXU1 produced a result #Group 97 pm_smt_priorities1, Thread priority events event:0X0610 counters:0 um:zero minimum:1000 name:PM_THRD_PRIO_4_CYC_GRP97 : (Group 97 pm_smt_priorities1) Cycles thread running at priority level 4 event:0X0611 counters:1 um:zero minimum:1000 name:PM_THRD_PRIO_7_CYC_GRP97 : (Group 97 pm_smt_priorities1) Cycles thread running at priority level 7 event:0X0612 counters:2 um:zero minimum:1000 name:PM_THRD_PRIO_DIFF_0_CYC_GRP97 : (Group 97 pm_smt_priorities1) Cycles no thread priority difference event:0X0613 counters:3 um:zero minimum:1000 name:PM_THRD_PRIO_DIFF_1or2_CYC_GRP97 : (Group 97 pm_smt_priorities1) Cycles thread priority difference is 1 or 2 #Group 98 pm_smt_priorities2, Thread priority events event:0X0620 counters:0 um:zero minimum:1000 name:PM_THRD_PRIO_3_CYC_GRP98 : (Group 98 pm_smt_priorities2) Cycles thread running at priority level 3 event:0X0621 counters:1 um:zero minimum:1000 name:PM_THRD_PRIO_6_CYC_GRP98 : (Group 98 pm_smt_priorities2) Cycles thread running at priority level 6 event:0X0622 counters:2 um:zero minimum:1000 name:PM_THRD_PRIO_DIFF_3or4_CYC_GRP98 : (Group 98 pm_smt_priorities2) Cycles thread priority difference is 3 or 4 event:0X0623 counters:3 um:zero minimum:1000 name:PM_THRD_PRIO_DIFF_5or6_CYC_GRP98 : (Group 98 pm_smt_priorities2) Cycles thread priority difference is 5 or 6 #Group 99 pm_smt_priorities3, Thread priority events event:0X0630 counters:0 um:zero minimum:1000 name:PM_THRD_PRIO_2_CYC_GRP99 : (Group 99 pm_smt_priorities3) Cycles thread running at priority level 2 event:0X0631 counters:1 um:zero minimum:1000 name:PM_THRD_PRIO_5_CYC_GRP99 : (Group 99 pm_smt_priorities3) Cycles thread running at priority level 5 event:0X0632 counters:2 um:zero minimum:1000 name:PM_THRD_PRIO_DIFF_minus1or2_CYC_GRP99 : (Group 99 pm_smt_priorities3) Cycles thread priority difference is -1 or -2 event:0X0633 counters:3 um:zero minimum:1000 name:PM_THRD_PRIO_DIFF_minus3or4_CYC_GRP99 : (Group 99 pm_smt_priorities3) Cycles thread priority difference is -3 or -4 #Group 100 pm_smt_priorities4, Thread priority events event:0X0640 counters:0 um:zero minimum:1000 name:PM_THRD_PRIO_1_CYC_GRP100 : (Group 100 pm_smt_priorities4) Cycles thread running at priority level 1 event:0X0641 counters:1 um:zero minimum:1000 name:PM_HV_CYC_GRP100 : (Group 100 pm_smt_priorities4) Hypervisor Cycles event:0X0642 counters:2 um:zero minimum:1000 name:PM_THRD_PRIO_DIFF_minus5or6_CYC_GRP100 : (Group 100 pm_smt_priorities4) Cycles thread priority difference is -5 or -6 event:0X0643 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP100 : (Group 100 pm_smt_priorities4) Internal operations completed #Group 101 pm_smt_both, Thread common events event:0X0650 counters:0 um:zero minimum:1000 name:PM_THRD_ONE_RUN_CYC_GRP101 : (Group 101 pm_smt_both) One of the threads in run cycles event:0X0651 counters:1 um:zero minimum:1000 name:PM_THRD_GRP_CMPL_BOTH_CYC_GRP101 : (Group 101 pm_smt_both) Cycles group completed by both threads event:0X0652 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP101 : (Group 101 pm_smt_both) Internal operations completed event:0X0653 counters:3 um:zero minimum:1000 name:PM_THRD_L2MISS_BOTH_CYC_GRP101 : (Group 101 pm_smt_both) Cycles both threads in L2 misses #Group 102 pm_smt_selection, Thread selection event:0X0660 counters:0 um:zero minimum:1000 name:PM_SNOOP_TLBIE_GRP102 : (Group 102 pm_smt_selection) Snoop TLBIE event:0X0661 counters:1 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP102 : (Group 102 pm_smt_selection) Internal operations completed event:0X0662 counters:2 um:zero minimum:1000 name:PM_THRD_SEL_T0_GRP102 : (Group 102 pm_smt_selection) Decode selected thread 0 event:0X0663 counters:3 um:zero minimum:1000 name:PM_THRD_SEL_T1_GRP102 : (Group 102 pm_smt_selection) Decode selected thread 1 #Group 103 pm_smt_selectover1, Thread selection overide event:0X0670 counters:0 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP103 : (Group 103 pm_smt_selectover1) Internal operations completed event:0X0671 counters:1 um:zero minimum:1000 name:PM_0INST_CLB_CYC_GRP103 : (Group 103 pm_smt_selectover1) Cycles no instructions in CLB event:0X0672 counters:2 um:zero minimum:1000 name:PM_THRD_SEL_OVER_CLB_EMPTY_GRP103 : (Group 103 pm_smt_selectover1) Thread selection overrides caused by CLB empty event:0X0673 counters:3 um:zero minimum:1000 name:PM_THRD_SEL_OVER_GCT_IMBAL_GRP103 : (Group 103 pm_smt_selectover1) Thread selection overrides caused by GCT imbalance #Group 104 pm_smt_selectover2, Thread selection overide event:0X0680 counters:0 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP104 : (Group 104 pm_smt_selectover2) Internal operations completed event:0X0681 counters:1 um:zero minimum:10000 name:PM_CYC_GRP104 : (Group 104 pm_smt_selectover2) Processor cycles event:0X0682 counters:2 um:zero minimum:1000 name:PM_THRD_SEL_OVER_ISU_HOLD_GRP104 : (Group 104 pm_smt_selectover2) Thread selection overrides caused by ISU holds event:0X0683 counters:3 um:zero minimum:1000 name:PM_THRD_SEL_OVER_L2MISS_GRP104 : (Group 104 pm_smt_selectover2) Thread selection overrides caused by L2 misses #Group 105 pm_fabric1, Fabric events event:0X0690 counters:0 um:zero minimum:1000 name:PM_FAB_CMD_ISSUED_GRP105 : (Group 105 pm_fabric1) Fabric command issued event:0X0691 counters:1 um:zero minimum:1000 name:PM_FAB_DCLAIM_ISSUED_GRP105 : (Group 105 pm_fabric1) dclaim issued event:0X0692 counters:2 um:zero minimum:1000 name:PM_FAB_CMD_RETRIED_GRP105 : (Group 105 pm_fabric1) Fabric command retried event:0X0693 counters:3 um:zero minimum:1000 name:PM_FAB_DCLAIM_RETRIED_GRP105 : (Group 105 pm_fabric1) dclaim retried #Group 106 pm_fabric2, Fabric data movement event:0X06A0 counters:0 um:zero minimum:1000 name:PM_FAB_P1toM1_SIDECAR_EMPTY_GRP106 : (Group 106 pm_fabric2) P1 to M1 sidecar empty event:0X06A1 counters:1 um:zero minimum:1000 name:PM_FAB_HOLDtoVN_EMPTY_GRP106 : (Group 106 pm_fabric2) Hold buffer to VN empty event:0X06A2 counters:2 um:zero minimum:1000 name:PM_FAB_P1toVNorNN_SIDECAR_EMPTY_GRP106 : (Group 106 pm_fabric2) P1 to VN/NN sidecar empty event:0X06A3 counters:3 um:zero minimum:1000 name:PM_FAB_VBYPASS_EMPTY_GRP106 : (Group 106 pm_fabric2) Vertical bypass buffer empty #Group 107 pm_fabric3, Fabric data movement event:0X06B0 counters:0 um:zero minimum:1000 name:PM_FAB_PNtoNN_DIRECT_GRP107 : (Group 107 pm_fabric3) PN to NN beat went straight to its destination event:0X06B1 counters:1 um:zero minimum:1000 name:PM_FAB_PNtoVN_DIRECT_GRP107 : (Group 107 pm_fabric3) PN to VN beat went straight to its destination event:0X06B2 counters:2 um:zero minimum:1000 name:PM_FAB_PNtoNN_SIDECAR_GRP107 : (Group 107 pm_fabric3) PN to NN beat went to sidecar first event:0X06B3 counters:3 um:zero minimum:1000 name:PM_FAB_PNtoVN_SIDECAR_GRP107 : (Group 107 pm_fabric3) PN to VN beat went to sidecar first #Group 108 pm_fabric4, Fabric data movement event:0X06C0 counters:0 um:zero minimum:1000 name:PM_FAB_M1toP1_SIDECAR_EMPTY_GRP108 : (Group 108 pm_fabric4) M1 to P1 sidecar empty event:0X06C1 counters:1 um:zero minimum:1000 name:PM_FAB_HOLDtoNN_EMPTY_GRP108 : (Group 108 pm_fabric4) Hold buffer to NN empty event:0X06C2 counters:2 um:zero minimum:1000 name:PM_EE_OFF_GRP108 : (Group 108 pm_fabric4) Cycles MSR(EE) bit off event:0X06C3 counters:3 um:zero minimum:1000 name:PM_FAB_M1toVNorNN_SIDECAR_EMPTY_GRP108 : (Group 108 pm_fabric4) M1 to VN/NN sidecar empty #Group 109 pm_snoop1, Snoop retry event:0X06D0 counters:0 um:zero minimum:1000 name:PM_SNOOP_RD_RETRY_QFULL_GRP109 : (Group 109 pm_snoop1) Snoop read retry due to read queue full event:0X06D1 counters:1 um:zero minimum:1000 name:PM_SNOOP_DCLAIM_RETRY_QFULL_GRP109 : (Group 109 pm_snoop1) Snoop dclaim/flush retry due to write/dclaim queues full event:0X06D2 counters:2 um:zero minimum:1000 name:PM_SNOOP_WR_RETRY_QFULL_GRP109 : (Group 109 pm_snoop1) Snoop read retry due to read queue full event:0X06D3 counters:3 um:zero minimum:1000 name:PM_SNOOP_PARTIAL_RTRY_QFULL_GRP109 : (Group 109 pm_snoop1) Snoop partial write retry due to partial-write queues full #Group 110 pm_snoop2, Snoop read retry event:0X06E0 counters:0 um:zero minimum:1000 name:PM_SNOOP_RD_RETRY_RQ_GRP110 : (Group 110 pm_snoop2) Snoop read retry due to collision with active read queue event:0X06E1 counters:1 um:zero minimum:1000 name:PM_SNOOP_RETRY_1AHEAD_GRP110 : (Group 110 pm_snoop2) Snoop retry due to one ahead collision event:0X06E2 counters:2 um:zero minimum:1000 name:PM_SNOOP_RD_RETRY_WQ_GRP110 : (Group 110 pm_snoop2) Snoop read retry due to collision with active write queue event:0X06E3 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP110 : (Group 110 pm_snoop2) Internal operations completed #Group 111 pm_snoop3, Snoop write retry event:0X06F0 counters:0 um:zero minimum:1000 name:PM_SNOOP_WR_RETRY_RQ_GRP111 : (Group 111 pm_snoop3) Snoop write/dclaim retry due to collision with active read queue event:0X06F1 counters:1 um:zero minimum:1000 name:PM_MEM_HI_PRIO_WR_CMPL_GRP111 : (Group 111 pm_snoop3) High priority write completed event:0X06F2 counters:2 um:zero minimum:1000 name:PM_SNOOP_WR_RETRY_WQ_GRP111 : (Group 111 pm_snoop3) Snoop write/dclaim retry due to collision with active write queue event:0X06F3 counters:3 um:zero minimum:1000 name:PM_MEM_LO_PRIO_WR_CMPL_GRP111 : (Group 111 pm_snoop3) Low priority write completed #Group 112 pm_snoop4, Snoop partial write retry event:0X0700 counters:0 um:zero minimum:1000 name:PM_SNOOP_PW_RETRY_RQ_GRP112 : (Group 112 pm_snoop4) Snoop partial-write retry due to collision with active read queue event:0X0701 counters:1 um:zero minimum:1000 name:PM_MEM_RQ_DISP_Q16to19_GRP112 : (Group 112 pm_snoop4) Memory read queue dispatched to queues 16-19 event:0X0702 counters:2 um:zero minimum:1000 name:PM_SNOOP_PW_RETRY_WQ_PWQ_GRP112 : (Group 112 pm_snoop4) Snoop partial-write retry due to collision with active write or partial-write queue event:0X0703 counters:3 um:zero minimum:1000 name:PM_SNOOP_PW_RETRY_RQ_GRP112 : (Group 112 pm_snoop4) Snoop partial-write retry due to collision with active read queue #Group 113 pm_mem_rq, Memory read queue dispatch event:0X0710 counters:0 um:zero minimum:1000 name:PM_MEM_RQ_DISP_GRP113 : (Group 113 pm_mem_rq) Memory read queue dispatched event:0X0711 counters:1 um:zero minimum:1000 name:PM_MEM_SPEC_RD_CANCEL_GRP113 : (Group 113 pm_mem_rq) Speculative memory read cancelled event:0X0712 counters:2 um:zero minimum:1000 name:PM_MEM_NONSPEC_RD_CANCEL_GRP113 : (Group 113 pm_mem_rq) Non speculative memory read cancelled event:0X0713 counters:3 um:zero minimum:1000 name:PM_EE_OFF_EXT_INT_GRP113 : (Group 113 pm_mem_rq) Cycles MSR(EE) bit off and external interrupt pending #Group 114 pm_mem_read, Memory read complete and cancel event:0X0720 counters:0 um:zero minimum:1000 name:PM_MEM_RQ_DISP_Q0to3_GRP114 : (Group 114 pm_mem_read) Memory read queue dispatched to queues 0-3 event:0X0721 counters:1 um:zero minimum:1000 name:PM_MEM_RQ_DISP_Q8to11_GRP114 : (Group 114 pm_mem_read) Memory read queue dispatched to queues 8-11 event:0X0722 counters:2 um:zero minimum:1000 name:PM_MEM_RQ_DISP_Q4to7_GRP114 : (Group 114 pm_mem_read) Memory read queue dispatched to queues 4-7 event:0X0723 counters:3 um:zero minimum:1000 name:PM_EXT_INT_GRP114 : (Group 114 pm_mem_read) External interrupts #Group 115 pm_mem_wq, Memory write queue dispatch event:0X0730 counters:0 um:zero minimum:1000 name:PM_MEM_WQ_DISP_WRITE_GRP115 : (Group 115 pm_mem_wq) Memory write queue dispatched due to write event:0X0731 counters:1 um:zero minimum:1000 name:PM_MEM_WQ_DISP_Q0to7_GRP115 : (Group 115 pm_mem_wq) Memory write queue dispatched to queues 0-7 event:0X0732 counters:2 um:zero minimum:1000 name:PM_MEM_WQ_DISP_DCLAIM_GRP115 : (Group 115 pm_mem_wq) Memory write queue dispatched due to dclaim/flush event:0X0733 counters:3 um:zero minimum:1000 name:PM_MEM_WQ_DISP_Q8to15_GRP115 : (Group 115 pm_mem_wq) Memory write queue dispatched to queues 8-15 #Group 116 pm_mem_pwq, Memory partial write queue event:0X0740 counters:0 um:zero minimum:1000 name:PM_MEM_PWQ_DISP_GRP116 : (Group 116 pm_mem_pwq) Memory partial-write queue dispatched event:0X0741 counters:1 um:zero minimum:1000 name:PM_MEM_PW_CMPL_GRP116 : (Group 116 pm_mem_pwq) Memory partial-write completed event:0X0742 counters:2 um:zero minimum:1000 name:PM_MEM_PW_GATH_GRP116 : (Group 116 pm_mem_pwq) Memory partial-write gathered event:0X0743 counters:3 um:zero minimum:1000 name:PM_MEM_PWQ_DISP_Q2or3_GRP116 : (Group 116 pm_mem_pwq) Memory partial-write queue dispatched to Write Queue 2 or 3 #Group 117 pm_threshold, Thresholding event:0X0750 counters:0 um:zero minimum:1000 name:PM_MRK_GRP_DISP_GRP117 : (Group 117 pm_threshold) Marked group dispatched event:0X0751 counters:1 um:zero minimum:1000 name:PM_MRK_IMR_RELOAD_GRP117 : (Group 117 pm_threshold) Marked IMR reloaded event:0X0752 counters:2 um:zero minimum:1000 name:PM_THRESH_TIMEO_GRP117 : (Group 117 pm_threshold) Threshold timeout event:0X0753 counters:3 um:zero minimum:1000 name:PM_MRK_LSU_FIN_GRP117 : (Group 117 pm_threshold) Marked instruction LSU processing finished #Group 118 pm_mrk_grp1, Marked group events event:0X0760 counters:0 um:zero minimum:1000 name:PM_MRK_GRP_DISP_GRP118 : (Group 118 pm_mrk_grp1) Marked group dispatched event:0X0761 counters:1 um:zero minimum:1000 name:PM_MRK_ST_MISS_L1_GRP118 : (Group 118 pm_mrk_grp1) Marked L1 D cache store misses event:0X0762 counters:2 um:zero minimum:1000 name:PM_MRK_INST_FIN_GRP118 : (Group 118 pm_mrk_grp1) Marked instruction finished event:0X0763 counters:3 um:zero minimum:1000 name:PM_MRK_GRP_CMPL_GRP118 : (Group 118 pm_mrk_grp1) Marked group completed #Group 119 pm_mrk_grp2, Marked group events event:0X0770 counters:0 um:zero minimum:1000 name:PM_MRK_GRP_ISSUED_GRP119 : (Group 119 pm_mrk_grp2) Marked group issued event:0X0771 counters:1 um:zero minimum:1000 name:PM_MRK_BRU_FIN_GRP119 : (Group 119 pm_mrk_grp2) Marked instruction BRU processing finished event:0X0772 counters:2 um:zero minimum:1000 name:PM_MRK_L1_RELOAD_VALID_GRP119 : (Group 119 pm_mrk_grp2) Marked L1 reload data source valid event:0X0773 counters:3 um:zero minimum:1000 name:PM_MRK_GRP_IC_MISS_GRP119 : (Group 119 pm_mrk_grp2) Group experienced marked I cache miss #Group 120 pm_mrk_dsource1, Marked data from event:0X0780 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2_GRP120 : (Group 120 pm_mrk_dsource1) Marked data loaded from L2 event:0X0781 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2_CYC_GRP120 : (Group 120 pm_mrk_dsource1) Marked load latency from L2 event:0X0782 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L25_MOD_GRP120 : (Group 120 pm_mrk_dsource1) Marked data loaded from L2.5 modified event:0X0783 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L25_MOD_CYC_GRP120 : (Group 120 pm_mrk_dsource1) Marked load latency from L2.5 modified #Group 121 pm_mrk_dsource2, Marked data from event:0X0790 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L25_SHR_GRP121 : (Group 121 pm_mrk_dsource2) Marked data loaded from L2.5 shared event:0X0791 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L25_SHR_CYC_GRP121 : (Group 121 pm_mrk_dsource2) Marked load latency from L2.5 shared event:0X0792 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP121 : (Group 121 pm_mrk_dsource2) Internal operations completed event:0X0793 counters:3 um:zero minimum:1000 name:PM_FPU_FIN_GRP121 : (Group 121 pm_mrk_dsource2) FPU produced a result #Group 122 pm_mrk_dsource3, Marked data from event:0X07A0 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L3_GRP122 : (Group 122 pm_mrk_dsource3) Marked data loaded from L3 event:0X07A1 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L3_CYC_GRP122 : (Group 122 pm_mrk_dsource3) Marked load latency from L3 event:0X07A2 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L35_MOD_GRP122 : (Group 122 pm_mrk_dsource3) Marked data loaded from L3.5 modified event:0X07A3 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L35_MOD_CYC_GRP122 : (Group 122 pm_mrk_dsource3) Marked load latency from L3.5 modified #Group 123 pm_mrk_dsource4, Marked data from event:0X07B0 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_RMEM_GRP123 : (Group 123 pm_mrk_dsource4) Marked data loaded from remote memory event:0X07B1 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L275_SHR_CYC_GRP123 : (Group 123 pm_mrk_dsource4) Marked load latency from L2.75 shared event:0X07B2 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L275_SHR_GRP123 : (Group 123 pm_mrk_dsource4) Marked data loaded from L2.75 shared event:0X07B3 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_RMEM_CYC_GRP123 : (Group 123 pm_mrk_dsource4) Marked load latency from remote memory #Group 124 pm_mrk_dsource5, Marked data from event:0X07C0 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L35_SHR_GRP124 : (Group 124 pm_mrk_dsource5) Marked data loaded from L3.5 shared event:0X07C1 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L35_SHR_CYC_GRP124 : (Group 124 pm_mrk_dsource5) Marked load latency from L3.5 shared event:0X07C2 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_LMEM_GRP124 : (Group 124 pm_mrk_dsource5) Marked data loaded from local memory event:0X07C3 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_LMEM_CYC_GRP124 : (Group 124 pm_mrk_dsource5) Marked load latency from local memory #Group 125 pm_mrk_dsource6, Marked data from event:0X07D0 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L275_MOD_GRP125 : (Group 125 pm_mrk_dsource6) Marked data loaded from L2.75 modified event:0X07D1 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L275_SHR_CYC_GRP125 : (Group 125 pm_mrk_dsource6) Marked load latency from L2.75 shared event:0X07D2 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP125 : (Group 125 pm_mrk_dsource6) Internal operations completed event:0X07D3 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L275_MOD_CYC_GRP125 : (Group 125 pm_mrk_dsource6) Marked load latency from L2.75 modified #Group 126 pm_mrk_dsource7, Marked data from event:0X07E0 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L375_MOD_GRP126 : (Group 126 pm_mrk_dsource7) Marked data loaded from L3.75 modified event:0X07E1 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L375_SHR_CYC_GRP126 : (Group 126 pm_mrk_dsource7) Marked load latency from L3.75 shared event:0X07E2 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L375_SHR_GRP126 : (Group 126 pm_mrk_dsource7) Marked data loaded from L3.75 shared event:0X07E3 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L375_MOD_CYC_GRP126 : (Group 126 pm_mrk_dsource7) Marked load latency from L3.75 modified #Group 127 pm_mrk_dtlbref, Marked data TLB references event:0X07F0 counters:0 um:zero minimum:1000 name:PM_MRK_DTLB_REF_4K_GRP127 : (Group 127 pm_mrk_dtlbref) Marked Data TLB reference for 4K page event:0X07F1 counters:1 um:zero minimum:1000 name:PM_MRK_DTLB_REF_64K_GRP127 : (Group 127 pm_mrk_dtlbref) Marked Data TLB reference for 64K page event:0X07F2 counters:2 um:zero minimum:1000 name:PM_MRK_DTLB_REF_16M_GRP127 : (Group 127 pm_mrk_dtlbref) Marked Data TLB reference for 16M page event:0X07F3 counters:3 um:zero minimum:1000 name:PM_MRK_DTLB_REF_16G_GRP127 : (Group 127 pm_mrk_dtlbref) Marked Data TLB reference for 16G page #Group 128 pm_mrk_dtlbmiss, Marked data TLB misses event:0X0800 counters:0 um:zero minimum:1000 name:PM_MRK_DTLB_MISS_4K_GRP128 : (Group 128 pm_mrk_dtlbmiss) Marked Data TLB misses for 4K page event:0X0801 counters:1 um:zero minimum:1000 name:PM_MRK_DTLB_MISS_64K_GRP128 : (Group 128 pm_mrk_dtlbmiss) Marked Data TLB misses for 64K page event:0X0802 counters:2 um:zero minimum:1000 name:PM_MRK_DTLB_MISS_16M_GRP128 : (Group 128 pm_mrk_dtlbmiss) Marked Data TLB misses for 16M page event:0X0803 counters:3 um:zero minimum:1000 name:PM_MRK_DTLB_MISS_16G_GRP128 : (Group 128 pm_mrk_dtlbmiss) Marked Data TLB misses for 16G page #Group 129 pm_mrk_dtlb_dslb, Marked data TLB references and misses and marked data SLB misses event:0X0810 counters:0 um:zero minimum:1000 name:PM_MRK_DTLB_REF_GRP129 : (Group 129 pm_mrk_dtlb_dslb) Marked Data TLB reference event:0X0811 counters:1 um:zero minimum:1000 name:PM_MRK_DTLB_MISS_GRP129 : (Group 129 pm_mrk_dtlb_dslb) Marked Data TLB misses event:0X0812 counters:2 um:zero minimum:1000 name:PM_MRK_DSLB_MISS_GRP129 : (Group 129 pm_mrk_dtlb_dslb) Marked Data SLB misses event:0X0813 counters:3 um:zero minimum:10000 name:PM_CYC_GRP129 : (Group 129 pm_mrk_dtlb_dslb) Processor cycles #Group 130 pm_mrk_lbref, Marked TLB and SLB references event:0X0820 counters:0 um:zero minimum:1000 name:PM_MRK_DTLB_REF_4K_GRP130 : (Group 130 pm_mrk_lbref) Marked Data TLB reference for 4K page event:0X0821 counters:1 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP130 : (Group 130 pm_mrk_lbref) Internal operations completed event:0X0822 counters:2 um:zero minimum:1000 name:PM_MRK_DTLB_REF_16M_GRP130 : (Group 130 pm_mrk_lbref) Marked Data TLB reference for 16M page event:0X0823 counters:3 um:zero minimum:1000 name:PM_MRK_DSLB_MISS_GRP130 : (Group 130 pm_mrk_lbref) Marked Data SLB misses #Group 131 pm_mrk_lsmiss, Marked load and store miss event:0X0830 counters:0 um:zero minimum:1000 name:PM_MRK_LD_MISS_L1_GRP131 : (Group 131 pm_mrk_lsmiss) Marked L1 D cache load misses event:0X0831 counters:1 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP131 : (Group 131 pm_mrk_lsmiss) Internal operations completed event:0X0832 counters:2 um:zero minimum:1000 name:PM_MRK_ST_CMPL_INT_GRP131 : (Group 131 pm_mrk_lsmiss) Marked store completed with intervention event:0X0833 counters:3 um:zero minimum:1000 name:PM_MRK_CRU_FIN_GRP131 : (Group 131 pm_mrk_lsmiss) Marked instruction CRU processing finished #Group 132 pm_mrk_ulsflush, Mark unaligned load and store flushes event:0X0840 counters:0 um:zero minimum:1000 name:PM_MRK_ST_CMPL_GRP132 : (Group 132 pm_mrk_ulsflush) Marked store instruction completed event:0X0841 counters:1 um:zero minimum:1000 name:PM_MRK_ST_MISS_L1_GRP132 : (Group 132 pm_mrk_ulsflush) Marked L1 D cache store misses event:0X0842 counters:2 um:zero minimum:1000 name:PM_MRK_LSU_FLUSH_UST_GRP132 : (Group 132 pm_mrk_ulsflush) Marked unaligned store flushes event:0X0843 counters:3 um:zero minimum:1000 name:PM_MRK_LSU_FLUSH_ULD_GRP132 : (Group 132 pm_mrk_ulsflush) Marked unaligned load flushes #Group 133 pm_mrk_misc, Misc marked instructions event:0X0850 counters:0 um:zero minimum:1000 name:PM_MRK_STCX_FAIL_GRP133 : (Group 133 pm_mrk_misc) Marked STCX failed event:0X0851 counters:1 um:zero minimum:1000 name:PM_MRK_ST_GPS_GRP133 : (Group 133 pm_mrk_misc) Marked store sent to GPS event:0X0852 counters:2 um:zero minimum:1000 name:PM_MRK_FPU_FIN_GRP133 : (Group 133 pm_mrk_misc) Marked instruction FPU processing finished event:0X0853 counters:3 um:zero minimum:1000 name:PM_MRK_GRP_TIMEO_GRP133 : (Group 133 pm_mrk_misc) Marked group completion timeout #Group 134 pm_lsref_L1, Load/Store operations and L1 activity event:0X0860 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L2_GRP134 : (Group 134 pm_lsref_L1) Data loaded from L2 event:0X0861 counters:1 um:zero minimum:1000 name:PM_INST_FROM_L1_GRP134 : (Group 134 pm_lsref_L1) Instruction fetched from L1 event:0X0862 counters:2 um:zero minimum:1000 name:PM_ST_REF_L1_GRP134 : (Group 134 pm_lsref_L1) L1 D cache store references event:0X0863 counters:3 um:zero minimum:1000 name:PM_LD_REF_L1_GRP134 : (Group 134 pm_lsref_L1) L1 D cache load references #Group 135 pm_lsref_L2L3, Load/Store operations and L2, L3 activity event:0X0870 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L3_GRP135 : (Group 135 pm_lsref_L2L3) Data loaded from L3 event:0X0871 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_LMEM_GRP135 : (Group 135 pm_lsref_L2L3) Data loaded from local memory event:0X0872 counters:2 um:zero minimum:1000 name:PM_ST_REF_L1_GRP135 : (Group 135 pm_lsref_L2L3) L1 D cache store references event:0X0873 counters:3 um:zero minimum:1000 name:PM_LD_REF_L1_GRP135 : (Group 135 pm_lsref_L2L3) L1 D cache load references #Group 136 pm_lsref_tlbmiss, Load/Store operations and TLB misses event:0X0880 counters:0 um:zero minimum:1000 name:PM_ITLB_MISS_GRP136 : (Group 136 pm_lsref_tlbmiss) Instruction TLB misses event:0X0881 counters:1 um:zero minimum:1000 name:PM_DTLB_MISS_GRP136 : (Group 136 pm_lsref_tlbmiss) Data TLB misses event:0X0882 counters:2 um:zero minimum:1000 name:PM_ST_REF_L1_GRP136 : (Group 136 pm_lsref_tlbmiss) L1 D cache store references event:0X0883 counters:3 um:zero minimum:1000 name:PM_LD_REF_L1_GRP136 : (Group 136 pm_lsref_tlbmiss) L1 D cache load references #Group 137 pm_Dmiss, Data cache misses event:0X0890 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L3_GRP137 : (Group 137 pm_Dmiss) Data loaded from L3 event:0X0891 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_LMEM_GRP137 : (Group 137 pm_Dmiss) Data loaded from local memory event:0X0892 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP137 : (Group 137 pm_Dmiss) L1 D cache load misses event:0X0893 counters:3 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP137 : (Group 137 pm_Dmiss) L1 D cache store misses #Group 138 pm_prefetchX, Prefetch events event:0X08A0 counters:0 um:zero minimum:10000 name:PM_CYC_GRP138 : (Group 138 pm_prefetchX) Processor cycles event:0X08A1 counters:1 um:zero minimum:1000 name:PM_IC_PREF_REQ_GRP138 : (Group 138 pm_prefetchX) Instruction prefetch requests event:0X08A2 counters:2 um:zero minimum:1000 name:PM_L1_PREF_GRP138 : (Group 138 pm_prefetchX) L1 cache data prefetches event:0X08A3 counters:3 um:zero minimum:1000 name:PM_L2_PREF_GRP138 : (Group 138 pm_prefetchX) L2 cache prefetches #Group 139 pm_branchX, Branch operations event:0X08B0 counters:0 um:zero minimum:1000 name:PM_BR_UNCOND_GRP139 : (Group 139 pm_branchX) Unconditional branch event:0X08B1 counters:1 um:zero minimum:1000 name:PM_BR_PRED_TA_GRP139 : (Group 139 pm_branchX) A conditional branch was predicted, target prediction event:0X08B2 counters:2 um:zero minimum:1000 name:PM_BR_PRED_CR_GRP139 : (Group 139 pm_branchX) A conditional branch was predicted, CR prediction event:0X08B3 counters:3 um:zero minimum:1000 name:PM_BR_ISSUED_GRP139 : (Group 139 pm_branchX) Branches issued #Group 140 pm_fpuX1, Floating point events by unit event:0X08C0 counters:0 um:zero minimum:1000 name:PM_FPU0_STALL3_GRP140 : (Group 140 pm_fpuX1) FPU0 stalled in pipe3 event:0X08C1 counters:1 um:zero minimum:1000 name:PM_FPU1_STALL3_GRP140 : (Group 140 pm_fpuX1) FPU1 stalled in pipe3 event:0X08C2 counters:2 um:zero minimum:1000 name:PM_FPU0_FIN_GRP140 : (Group 140 pm_fpuX1) FPU0 produced a result event:0X08C3 counters:3 um:zero minimum:1000 name:PM_FPU0_FPSCR_GRP140 : (Group 140 pm_fpuX1) FPU0 executed FPSCR instruction #Group 141 pm_fpuX2, Floating point events by unit event:0X08D0 counters:0 um:zero minimum:1000 name:PM_FPU0_FMA_GRP141 : (Group 141 pm_fpuX2) FPU0 executed multiply-add instruction event:0X08D1 counters:1 um:zero minimum:1000 name:PM_FPU1_FMA_GRP141 : (Group 141 pm_fpuX2) FPU1 executed multiply-add instruction event:0X08D2 counters:2 um:zero minimum:1000 name:PM_FPU0_FRSP_FCONV_GRP141 : (Group 141 pm_fpuX2) FPU0 executed FRSP or FCONV instructions event:0X08D3 counters:3 um:zero minimum:1000 name:PM_FPU1_FRSP_FCONV_GRP141 : (Group 141 pm_fpuX2) FPU1 executed FRSP or FCONV instructions #Group 142 pm_fpuX3, Floating point events by unit event:0X08E0 counters:0 um:zero minimum:1000 name:PM_FPU0_1FLOP_GRP142 : (Group 142 pm_fpuX3) FPU0 executed add, mult, sub, cmp or sel instruction event:0X08E1 counters:1 um:zero minimum:1000 name:PM_FPU1_1FLOP_GRP142 : (Group 142 pm_fpuX3) FPU1 executed add, mult, sub, cmp or sel instruction event:0X08E2 counters:2 um:zero minimum:1000 name:PM_FPU0_FIN_GRP142 : (Group 142 pm_fpuX3) FPU0 produced a result event:0X08E3 counters:3 um:zero minimum:1000 name:PM_FPU1_FIN_GRP142 : (Group 142 pm_fpuX3) FPU1 produced a result #Group 143 pm_fpuX4, Floating point and L1 events event:0X08F0 counters:0 um:zero minimum:1000 name:PM_FPU_1FLOP_GRP143 : (Group 143 pm_fpuX4) FPU executed one flop instruction event:0X08F1 counters:1 um:zero minimum:1000 name:PM_FPU_FMA_GRP143 : (Group 143 pm_fpuX4) FPU executed multiply-add instruction event:0X08F2 counters:2 um:zero minimum:1000 name:PM_ST_REF_L1_GRP143 : (Group 143 pm_fpuX4) L1 D cache store references event:0X08F3 counters:3 um:zero minimum:1000 name:PM_LD_REF_L1_GRP143 : (Group 143 pm_fpuX4) L1 D cache load references #Group 144 pm_fpuX5, Floating point events event:0X0900 counters:0 um:zero minimum:1000 name:PM_FPU_SINGLE_GRP144 : (Group 144 pm_fpuX5) FPU executed single precision instruction event:0X0901 counters:1 um:zero minimum:1000 name:PM_FPU_STF_GRP144 : (Group 144 pm_fpuX5) FPU executed store instruction event:0X0902 counters:2 um:zero minimum:1000 name:PM_FPU0_FIN_GRP144 : (Group 144 pm_fpuX5) FPU0 produced a result event:0X0903 counters:3 um:zero minimum:1000 name:PM_FPU1_FIN_GRP144 : (Group 144 pm_fpuX5) FPU1 produced a result #Group 145 pm_fpuX6, Floating point events event:0X0910 counters:0 um:zero minimum:1000 name:PM_FPU_FDIV_GRP145 : (Group 145 pm_fpuX6) FPU executed FDIV instruction event:0X0911 counters:1 um:zero minimum:1000 name:PM_FPU_FSQRT_GRP145 : (Group 145 pm_fpuX6) FPU executed FSQRT instruction event:0X0912 counters:2 um:zero minimum:1000 name:PM_FPU_FRSP_FCONV_GRP145 : (Group 145 pm_fpuX6) FPU executed FRSP or FCONV instructions event:0X0913 counters:3 um:zero minimum:1000 name:PM_FPU_FIN_GRP145 : (Group 145 pm_fpuX6) FPU produced a result #Group 146 pm_fpuX7, Floating point events event:0X0920 counters:0 um:zero minimum:1000 name:PM_FPU_1FLOP_GRP146 : (Group 146 pm_fpuX7) FPU executed one flop instruction event:0X0921 counters:1 um:zero minimum:1000 name:PM_FPU_FMA_GRP146 : (Group 146 pm_fpuX7) FPU executed multiply-add instruction event:0X0922 counters:2 um:zero minimum:1000 name:PM_FPU_STF_GRP146 : (Group 146 pm_fpuX7) FPU executed store instruction event:0X0923 counters:3 um:zero minimum:1000 name:PM_FPU_FIN_GRP146 : (Group 146 pm_fpuX7) FPU produced a result #Group 147 pm_hpmcount8, HPM group for set 9 event:0X0930 counters:0 um:zero minimum:10000 name:PM_CYC_GRP147 : (Group 147 pm_hpmcount8) Processor cycles event:0X0931 counters:1 um:zero minimum:1000 name:PM_MRK_FXU_FIN_GRP147 : (Group 147 pm_hpmcount8) Marked instruction FXU processing finished event:0X0932 counters:2 um:zero minimum:10000 name:PM_CYC_GRP147 : (Group 147 pm_hpmcount8) Processor cycles event:0X0933 counters:3 um:zero minimum:1000 name:PM_FPU_FIN_GRP147 : (Group 147 pm_hpmcount8) FPU produced a result #Group 148 pm_hpmcount2, HPM group for set 2 event:0X0940 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP148 : (Group 148 pm_hpmcount2) Instructions completed event:0X0941 counters:1 um:zero minimum:1000 name:PM_FPU_STF_GRP148 : (Group 148 pm_hpmcount2) FPU executed store instruction event:0X0942 counters:2 um:zero minimum:1000 name:PM_INST_DISP_GRP148 : (Group 148 pm_hpmcount2) Instructions dispatched event:0X0943 counters:3 um:zero minimum:1000 name:PM_LSU_LDF_GRP148 : (Group 148 pm_hpmcount2) LSU executed Floating Point load instruction #Group 149 pm_hpmcount3, HPM group for set 3 event:0X0950 counters:0 um:zero minimum:10000 name:PM_CYC_GRP149 : (Group 149 pm_hpmcount3) Processor cycles event:0X0951 counters:1 um:zero minimum:1000 name:PM_INST_DISP_ATTEMPT_GRP149 : (Group 149 pm_hpmcount3) Instructions dispatch attempted event:0X0952 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP149 : (Group 149 pm_hpmcount3) L1 D cache load misses event:0X0953 counters:3 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP149 : (Group 149 pm_hpmcount3) L1 D cache store misses #Group 150 pm_hpmcount4, HPM group for set 7 event:0X0960 counters:0 um:zero minimum:1000 name:PM_TLB_MISS_GRP150 : (Group 150 pm_hpmcount4) TLB misses event:0X0961 counters:1 um:zero minimum:10000 name:PM_CYC_GRP150 : (Group 150 pm_hpmcount4) Processor cycles event:0X0962 counters:2 um:zero minimum:1000 name:PM_ST_REF_L1_GRP150 : (Group 150 pm_hpmcount4) L1 D cache store references event:0X0963 counters:3 um:zero minimum:1000 name:PM_LD_REF_L1_GRP150 : (Group 150 pm_hpmcount4) L1 D cache load references #Group 151 pm_flop, Floating point operations event:0X0970 counters:0 um:zero minimum:1000 name:PM_FPU_FDIV_GRP151 : (Group 151 pm_flop) FPU executed FDIV instruction event:0X0971 counters:1 um:zero minimum:1000 name:PM_FPU_FMA_GRP151 : (Group 151 pm_flop) FPU executed multiply-add instruction event:0X0972 counters:2 um:zero minimum:1000 name:PM_FPU_FSQRT_GRP151 : (Group 151 pm_flop) FPU executed FSQRT instruction event:0X0973 counters:3 um:zero minimum:1000 name:PM_FPU_1FLOP_GRP151 : (Group 151 pm_flop) FPU executed one flop instruction #Group 152 pm_eprof1, Group for use with eprof event:0X0980 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP152 : (Group 152 pm_eprof1) Instructions completed event:0X0981 counters:1 um:zero minimum:10000 name:PM_CYC_GRP152 : (Group 152 pm_eprof1) Processor cycles event:0X0982 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP152 : (Group 152 pm_eprof1) L1 D cache load misses event:0X0983 counters:3 um:zero minimum:1000 name:PM_DC_INV_L2_GRP152 : (Group 152 pm_eprof1) L1 D cache entries invalidated from L2 #Group 153 pm_eprof2, Group for use with eprof event:0X0990 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP153 : (Group 153 pm_eprof2) Instructions completed event:0X0991 counters:1 um:zero minimum:1000 name:PM_ST_REF_L1_GRP153 : (Group 153 pm_eprof2) L1 D cache store references event:0X0992 counters:2 um:zero minimum:1000 name:PM_INST_DISP_GRP153 : (Group 153 pm_eprof2) Instructions dispatched event:0X0993 counters:3 um:zero minimum:1000 name:PM_LD_REF_L1_GRP153 : (Group 153 pm_eprof2) L1 D cache load references #Group 154 pm_flip, Group for flips event:0X09A0 counters:0 um:zero minimum:10000 name:PM_CYC_GRP154 : (Group 154 pm_flip) Processor cycles event:0X09A1 counters:1 um:zero minimum:1000 name:PM_FPU_FMA_GRP154 : (Group 154 pm_flip) FPU executed multiply-add instruction event:0X09A2 counters:2 um:zero minimum:1000 name:PM_FPU_STF_GRP154 : (Group 154 pm_flip) FPU executed store instruction event:0X09A3 counters:3 um:zero minimum:1000 name:PM_FPU_FIN_GRP154 : (Group 154 pm_flip) FPU produced a result #Group 155 pm_hpmcount5, HPM group for set 5 event:0X09B0 counters:0 um:zero minimum:10000 name:PM_CYC_GRP155 : (Group 155 pm_hpmcount5) Processor cycles event:0X09B1 counters:1 um:zero minimum:1000 name:PM_DTLB_MISS_GRP155 : (Group 155 pm_hpmcount5) Data TLB misses event:0X09B2 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP155 : (Group 155 pm_hpmcount5) L1 D cache load misses event:0X09B3 counters:3 um:zero minimum:1000 name:PM_LD_REF_L1_GRP155 : (Group 155 pm_hpmcount5) L1 D cache load references #Group 156 pm_hpmcount6, HPM group for set 6 event:0X09C0 counters:0 um:zero minimum:10000 name:PM_CYC_GRP156 : (Group 156 pm_hpmcount6) Processor cycles event:0X09C1 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP156 : (Group 156 pm_hpmcount6) Instructions completed event:0X09C2 counters:2 um:zero minimum:1000 name:PM_ST_REF_L1_GRP156 : (Group 156 pm_hpmcount6) L1 D cache store references event:0X09C3 counters:3 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP156 : (Group 156 pm_hpmcount6) L1 D cache store misses #Group 157 pm_hpmcount7, HPM group for set 8 event:0X09D0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP157 : (Group 157 pm_hpmcount7) Instructions completed event:0X09D1 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_LMEM_GRP157 : (Group 157 pm_hpmcount7) Data loaded from local memory event:0X09D2 counters:2 um:zero minimum:10000 name:PM_CYC_GRP157 : (Group 157 pm_hpmcount7) Processor cycles event:0X09D3 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_RMEM_GRP157 : (Group 157 pm_hpmcount7) Data loaded from remote memory #Group 158 pm_ep_threshold, Thresholding event:0X09E0 counters:0 um:zero minimum:1000 name:PM_MRK_GRP_DISP_GRP158 : (Group 158 pm_ep_threshold) Marked group dispatched event:0X09E1 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP158 : (Group 158 pm_ep_threshold) Instructions completed event:0X09E2 counters:2 um:zero minimum:1000 name:PM_THRESH_TIMEO_GRP158 : (Group 158 pm_ep_threshold) Threshold timeout event:0X09E3 counters:3 um:zero minimum:1000 name:PM_MRK_LSU_FIN_GRP158 : (Group 158 pm_ep_threshold) Marked instruction LSU processing finished #Group 159 pm_ep_mrk_grp1, Marked group events event:0X09F0 counters:0 um:zero minimum:1000 name:PM_MRK_GRP_DISP_GRP159 : (Group 159 pm_ep_mrk_grp1) Marked group dispatched event:0X09F1 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP159 : (Group 159 pm_ep_mrk_grp1) Instructions completed event:0X09F2 counters:2 um:zero minimum:1000 name:PM_MRK_INST_FIN_GRP159 : (Group 159 pm_ep_mrk_grp1) Marked instruction finished event:0X09F3 counters:3 um:zero minimum:1000 name:PM_MRK_GRP_CMPL_GRP159 : (Group 159 pm_ep_mrk_grp1) Marked group completed #Group 160 pm_ep_mrk_grp2, Marked group events event:0X0A00 counters:0 um:zero minimum:1000 name:PM_MRK_GRP_ISSUED_GRP160 : (Group 160 pm_ep_mrk_grp2) Marked group issued event:0X0A01 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP160 : (Group 160 pm_ep_mrk_grp2) Instructions completed event:0X0A02 counters:2 um:zero minimum:1000 name:PM_MRK_L1_RELOAD_VALID_GRP160 : (Group 160 pm_ep_mrk_grp2) Marked L1 reload data source valid event:0X0A03 counters:3 um:zero minimum:1000 name:PM_MRK_GRP_IC_MISS_GRP160 : (Group 160 pm_ep_mrk_grp2) Group experienced marked I cache miss #Group 161 pm_ep_mrk_dsource1, Marked data from event:0X0A10 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2_GRP161 : (Group 161 pm_ep_mrk_dsource1) Marked data loaded from L2 event:0X0A11 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP161 : (Group 161 pm_ep_mrk_dsource1) Instructions completed event:0X0A12 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L25_MOD_GRP161 : (Group 161 pm_ep_mrk_dsource1) Marked data loaded from L2.5 modified event:0X0A13 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L25_MOD_CYC_GRP161 : (Group 161 pm_ep_mrk_dsource1) Marked load latency from L2.5 modified #Group 162 pm_ep_mrk_dsource2, Marked data from event:0X0A20 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L25_SHR_GRP162 : (Group 162 pm_ep_mrk_dsource2) Marked data loaded from L2.5 shared event:0X0A21 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP162 : (Group 162 pm_ep_mrk_dsource2) Instructions completed event:0X0A22 counters:2 um:zero minimum:1000 name:PM_MRK_IMR_RELOAD_GRP162 : (Group 162 pm_ep_mrk_dsource2) Marked IMR reloaded event:0X0A23 counters:3 um:zero minimum:1000 name:PM_FPU_FIN_GRP162 : (Group 162 pm_ep_mrk_dsource2) FPU produced a result #Group 163 pm_ep_mrk_dsource3, Marked data from event:0X0A30 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP163 : (Group 163 pm_ep_mrk_dsource3) Instructions completed event:0X0A31 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L3_CYC_GRP163 : (Group 163 pm_ep_mrk_dsource3) Marked load latency from L3 event:0X0A32 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L35_MOD_GRP163 : (Group 163 pm_ep_mrk_dsource3) Marked data loaded from L3.5 modified event:0X0A33 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L35_MOD_CYC_GRP163 : (Group 163 pm_ep_mrk_dsource3) Marked load latency from L3.5 modified #Group 164 pm_ep_mrk_dsource4, Marked data from event:0X0A40 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP164 : (Group 164 pm_ep_mrk_dsource4) Instructions completed event:0X0A41 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L275_SHR_CYC_GRP164 : (Group 164 pm_ep_mrk_dsource4) Marked load latency from L2.75 shared event:0X0A42 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L275_SHR_GRP164 : (Group 164 pm_ep_mrk_dsource4) Marked data loaded from L2.75 shared event:0X0A43 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_RMEM_CYC_GRP164 : (Group 164 pm_ep_mrk_dsource4) Marked load latency from remote memory #Group 165 pm_ep_mrk_dsource5, Marked data from event:0X0A50 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L35_SHR_GRP165 : (Group 165 pm_ep_mrk_dsource5) Marked data loaded from L3.5 shared event:0X0A51 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP165 : (Group 165 pm_ep_mrk_dsource5) Instructions completed event:0X0A52 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_LMEM_GRP165 : (Group 165 pm_ep_mrk_dsource5) Marked data loaded from local memory event:0X0A53 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_LMEM_CYC_GRP165 : (Group 165 pm_ep_mrk_dsource5) Marked load latency from local memory #Group 166 pm_ep_mrk_dsource6, Marked data from event:0X0A60 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP166 : (Group 166 pm_ep_mrk_dsource6) Instructions completed event:0X0A61 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L275_SHR_CYC_GRP166 : (Group 166 pm_ep_mrk_dsource6) Marked load latency from L2.75 shared event:0X0A62 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP166 : (Group 166 pm_ep_mrk_dsource6) Internal operations completed event:0X0A63 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L275_MOD_CYC_GRP166 : (Group 166 pm_ep_mrk_dsource6) Marked load latency from L2.75 modified #Group 167 pm_ep_mrk_dsource7, Marked data from event:0X0A70 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP167 : (Group 167 pm_ep_mrk_dsource7) Instructions completed event:0X0A71 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L375_SHR_CYC_GRP167 : (Group 167 pm_ep_mrk_dsource7) Marked load latency from L3.75 shared event:0X0A72 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L375_SHR_GRP167 : (Group 167 pm_ep_mrk_dsource7) Marked data loaded from L3.75 shared event:0X0A73 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L375_MOD_CYC_GRP167 : (Group 167 pm_ep_mrk_dsource7) Marked load latency from L3.75 modified #Group 168 pm_ep_mrk_lbmiss, Marked TLB and SLB misses event:0X0A80 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP168 : (Group 168 pm_ep_mrk_lbmiss) Instructions completed event:0X0A81 counters:1 um:zero minimum:1000 name:PM_MRK_DTLB_MISS_64K_GRP168 : (Group 168 pm_ep_mrk_lbmiss) Marked Data TLB misses for 64K page event:0X0A82 counters:2 um:zero minimum:1000 name:PM_MRK_DTLB_MISS_16M_GRP168 : (Group 168 pm_ep_mrk_lbmiss) Marked Data TLB misses for 16M page event:0X0A83 counters:3 um:zero minimum:1000 name:PM_MRK_DTLB_MISS_16G_GRP168 : (Group 168 pm_ep_mrk_lbmiss) Marked Data TLB misses for 16G page #Group 169 pm_ep_mrk_dtlbref, Marked data TLB references event:0X0A90 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP169 : (Group 169 pm_ep_mrk_dtlbref) Instructions completed event:0X0A91 counters:1 um:zero minimum:1000 name:PM_MRK_DTLB_REF_64K_GRP169 : (Group 169 pm_ep_mrk_dtlbref) Marked Data TLB reference for 64K page event:0X0A92 counters:2 um:zero minimum:1000 name:PM_MRK_DTLB_REF_16M_GRP169 : (Group 169 pm_ep_mrk_dtlbref) Marked Data TLB reference for 16M page event:0X0A93 counters:3 um:zero minimum:1000 name:PM_MRK_DTLB_REF_16G_GRP169 : (Group 169 pm_ep_mrk_dtlbref) Marked Data TLB reference for 16G page #Group 170 pm_ep_mrk_dtlbmiss, Marked data TLB misses event:0X0AA0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP170 : (Group 170 pm_ep_mrk_dtlbmiss) Instructions completed event:0X0AA1 counters:1 um:zero minimum:1000 name:PM_MRK_DTLB_MISS_64K_GRP170 : (Group 170 pm_ep_mrk_dtlbmiss) Marked Data TLB misses for 64K page event:0X0AA2 counters:2 um:zero minimum:1000 name:PM_MRK_DTLB_MISS_16M_GRP170 : (Group 170 pm_ep_mrk_dtlbmiss) Marked Data TLB misses for 16M page event:0X0AA3 counters:3 um:zero minimum:1000 name:PM_MRK_DTLB_MISS_16G_GRP170 : (Group 170 pm_ep_mrk_dtlbmiss) Marked Data TLB misses for 16G page #Group 171 pm_ep_mrk_lbref, Marked TLB and SLB references event:0X0AB0 counters:0 um:zero minimum:1000 name:PM_MRK_DTLB_REF_4K_GRP171 : (Group 171 pm_ep_mrk_lbref) Marked Data TLB reference for 4K page event:0X0AB1 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP171 : (Group 171 pm_ep_mrk_lbref) Instructions completed event:0X0AB2 counters:2 um:zero minimum:1000 name:PM_MRK_DTLB_REF_16M_GRP171 : (Group 171 pm_ep_mrk_lbref) Marked Data TLB reference for 16M page event:0X0AB3 counters:3 um:zero minimum:1000 name:PM_MRK_DSLB_MISS_GRP171 : (Group 171 pm_ep_mrk_lbref) Marked Data SLB misses #Group 172 pm_ep_mrk_lsmiss, Marked load and store miss event:0X0AC0 counters:0 um:zero minimum:1000 name:PM_MRK_LD_MISS_L1_GRP172 : (Group 172 pm_ep_mrk_lsmiss) Marked L1 D cache load misses event:0X0AC1 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP172 : (Group 172 pm_ep_mrk_lsmiss) Instructions completed event:0X0AC2 counters:2 um:zero minimum:1000 name:PM_MRK_ST_CMPL_INT_GRP172 : (Group 172 pm_ep_mrk_lsmiss) Marked store completed with intervention event:0X0AC3 counters:3 um:zero minimum:1000 name:PM_MRK_CRU_FIN_GRP172 : (Group 172 pm_ep_mrk_lsmiss) Marked instruction CRU processing finished #Group 173 pm_ep_mrk_ulsflush, Mark unaligned load and store flushes event:0X0AD0 counters:0 um:zero minimum:1000 name:PM_MRK_ST_CMPL_GRP173 : (Group 173 pm_ep_mrk_ulsflush) Marked store instruction completed event:0X0AD1 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP173 : (Group 173 pm_ep_mrk_ulsflush) Instructions completed event:0X0AD2 counters:2 um:zero minimum:1000 name:PM_MRK_LSU_FLUSH_UST_GRP173 : (Group 173 pm_ep_mrk_ulsflush) Marked unaligned store flushes event:0X0AD3 counters:3 um:zero minimum:1000 name:PM_MRK_LSU_FLUSH_ULD_GRP173 : (Group 173 pm_ep_mrk_ulsflush) Marked unaligned load flushes #Group 174 pm_ep_mrk_misc1, Misc marked instructions event:0X0AE0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP174 : (Group 174 pm_ep_mrk_misc1) Instructions completed event:0X0AE1 counters:1 um:zero minimum:1000 name:PM_MRK_ST_GPS_GRP174 : (Group 174 pm_ep_mrk_misc1) Marked store sent to GPS event:0X0AE2 counters:2 um:zero minimum:1000 name:PM_MRK_FPU_FIN_GRP174 : (Group 174 pm_ep_mrk_misc1) Marked instruction FPU processing finished event:0X0AE3 counters:3 um:zero minimum:1000 name:PM_MRK_GRP_TIMEO_GRP174 : (Group 174 pm_ep_mrk_misc1) Marked group completion timeout #Group 175 pm_ep_mrk_misc2, Misc marked instructions event:0X0AF0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP175 : (Group 175 pm_ep_mrk_misc2) Instructions completed event:0X0AF1 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L25_SHR_CYC_GRP175 : (Group 175 pm_ep_mrk_misc2) Marked load latency from L2.5 shared event:0X0AF2 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L3_GRP175 : (Group 175 pm_ep_mrk_misc2) Marked data loaded from L3 event:0X0AF3 counters:3 um:zero minimum:1000 name:PM_MRK_IMR_RELOAD_GRP175 : (Group 175 pm_ep_mrk_misc2) Marked IMR reloaded #Group 176 pm_ep_mrk_misc3, Misc marked instructions event:0X0B00 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP176 : (Group 176 pm_ep_mrk_misc3) Instructions completed event:0X0B01 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L35_SHR_CYC_GRP176 : (Group 176 pm_ep_mrk_misc3) Marked load latency from L3.5 shared event:0X0B02 counters:2 um:zero minimum:1000 name:PM_MRK_DTLB_MISS_GRP176 : (Group 176 pm_ep_mrk_misc3) Marked Data TLB misses event:0X0B03 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_RMEM_GRP176 : (Group 176 pm_ep_mrk_misc3) Marked data loaded from remote memory #Group 177 pm_ep_mrk_misc4, Misc marked instructions event:0X0B10 counters:0 um:zero minimum:1000 name:PM_MRK_DTLB_MISS_4K_GRP177 : (Group 177 pm_ep_mrk_misc4) Marked Data TLB misses for 4K page event:0X0B11 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP177 : (Group 177 pm_ep_mrk_misc4) Instructions completed event:0X0B12 counters:2 um:zero minimum:1000 name:PM_MRK_DTLB_REF_GRP177 : (Group 177 pm_ep_mrk_misc4) Marked Data TLB reference event:0X0B13 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L275_MOD_GRP177 : (Group 177 pm_ep_mrk_misc4) Marked data loaded from L2.75 modified #Group 178 pm_ep_mrk_misc5, Misc marked instructions event:0X0B20 counters:0 um:zero minimum:1000 name:PM_MRK_DTLB_REF_4K_GRP178 : (Group 178 pm_ep_mrk_misc5) Marked Data TLB reference for 4K page event:0X0B21 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP178 : (Group 178 pm_ep_mrk_misc5) Instructions completed event:0X0B22 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP178 : (Group 178 pm_ep_mrk_misc5) Internal operations completed event:0X0B23 counters:3 um:zero minimum:1000 name:PM_MRK_LSU0_FLUSH_SRQ_GRP178 : (Group 178 pm_ep_mrk_misc5) LSU0 marked SRQ lhs flushes #Group 179 pm_ep_mrk_misc6, Misc marked instructions event:0X0B30 counters:0 um:zero minimum:1000 name:PM_MRK_DTLB_MISS_4K_GRP179 : (Group 179 pm_ep_mrk_misc6) Marked Data TLB misses for 4K page event:0X0B31 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP179 : (Group 179 pm_ep_mrk_misc6) Instructions completed event:0X0B32 counters:2 um:zero minimum:1000 name:PM_MRK_LSU1_FLUSH_ULD_GRP179 : (Group 179 pm_ep_mrk_misc6) LSU1 marked unaligned load flushes event:0X0B33 counters:3 um:zero minimum:1000 name:PM_MRK_LSU1_FLUSH_UST_GRP179 : (Group 179 pm_ep_mrk_misc6) LSU1 marked unaligned store flushes #Group 180 pm_ep_mrk_misc7, Misc marked instructions event:0X0B40 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP180 : (Group 180 pm_ep_mrk_misc7) Instructions completed event:0X0B41 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2_CYC_GRP180 : (Group 180 pm_ep_mrk_misc7) Marked load latency from L2 event:0X0B42 counters:2 um:zero minimum:1000 name:PM_MRK_LSU0_FLUSH_ULD_GRP180 : (Group 180 pm_ep_mrk_misc7) LSU0 marked unaligned load flushes event:0X0B43 counters:3 um:zero minimum:1000 name:PM_MRK_LSU0_FLUSH_UST_GRP180 : (Group 180 pm_ep_mrk_misc7) LSU0 marked unaligned store flushes #Group 181 pm_ep_mrk_misc8, Misc marked instructions event:0X0B50 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP181 : (Group 181 pm_ep_mrk_misc8) Instructions completed event:0X0B51 counters:1 um:zero minimum:1000 name:PM_MRK_BRU_FIN_GRP181 : (Group 181 pm_ep_mrk_misc8) Marked instruction BRU processing finished event:0X0B52 counters:2 um:zero minimum:1000 name:PM_MRK_LSU0_FLUSH_LRQ_GRP181 : (Group 181 pm_ep_mrk_misc8) LSU0 marked LRQ flushes event:0X0B53 counters:3 um:zero minimum:1000 name:PM_MRK_LSU0_FLUSH_SRQ_GRP181 : (Group 181 pm_ep_mrk_misc8) LSU0 marked SRQ lhs flushes #Group 182 pm_ep_mrk_misc9, Misc marked instructions event:0X0B60 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP182 : (Group 182 pm_ep_mrk_misc9) Instructions completed event:0X0B61 counters:1 um:zero minimum:1000 name:PM_MRK_LSU1_FLUSH_LRQ_GRP182 : (Group 182 pm_ep_mrk_misc9) LSU1 marked LRQ flushes event:0X0B62 counters:2 um:zero minimum:1000 name:PM_MRK_LSU1_FLUSH_SRQ_GRP182 : (Group 182 pm_ep_mrk_misc9) LSU1 marked SRQ lhs flushes event:0X0B63 counters:3 um:zero minimum:1000 name:PM_MRK_STCX_FAIL_GRP182 : (Group 182 pm_ep_mrk_misc9) Marked STCX failed #Group 183 pm_ep_mrk_misc10, Misc marked instructions event:0X0B70 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP183 : (Group 183 pm_ep_mrk_misc10) Instructions completed event:0X0B71 counters:1 um:zero minimum:1000 name:PM_MRK_LD_MISS_L1_LSU0_GRP183 : (Group 183 pm_ep_mrk_misc10) LSU0 marked L1 D cache load misses event:0X0B72 counters:2 um:zero minimum:1000 name:PM_MRK_LD_MISS_L1_LSU1_GRP183 : (Group 183 pm_ep_mrk_misc10) LSU1 marked L1 D cache load misses event:0X0B73 counters:3 um:zero minimum:1000 name:PM_MRK_ST_MISS_L1_GRP183 : (Group 183 pm_ep_mrk_misc10) Marked L1 D cache store misses #Group 184 pm_ep_mrk_misc11, Misc marked instructions event:0X0B80 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP184 : (Group 184 pm_ep_mrk_misc11) Instructions completed event:0X0B81 counters:1 um:zero minimum:1000 name:PM_MRK_BRU_FIN_GRP184 : (Group 184 pm_ep_mrk_misc11) Marked instruction BRU processing finished event:0X0B82 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L25_MOD_GRP184 : (Group 184 pm_ep_mrk_misc11) Marked data loaded from L2.5 modified event:0X0B83 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L375_MOD_GRP184 : (Group 184 pm_ep_mrk_misc11) Marked data loaded from L3.75 modified #Group 185 pm_ep_mrk_misc12, Misc marked instructions event:0X0B90 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP185 : (Group 185 pm_ep_mrk_misc12) Instructions completed event:0X0B91 counters:1 um:zero minimum:1000 name:PM_MRK_LSU_FLUSH_UST_GRP185 : (Group 185 pm_ep_mrk_misc12) Marked unaligned store flushes event:0X0B92 counters:2 um:zero minimum:1000 name:PM_MRK_LSU_FLUSH_LRQ_GRP185 : (Group 185 pm_ep_mrk_misc12) Marked LRQ flushes event:0X0B93 counters:3 um:zero minimum:1000 name:PM_MRK_LSU_FLUSH_SRQ_GRP185 : (Group 185 pm_ep_mrk_misc12) Marked SRQ lhs flushes #Group 186 pm_ep_mrk_misc13, Misc marked instructions event:0X0BA0 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2_GRP186 : (Group 186 pm_ep_mrk_misc13) Marked data loaded from L2 event:0X0BA1 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP186 : (Group 186 pm_ep_mrk_misc13) Instructions completed event:0X0BA2 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2MISS_GRP186 : (Group 186 pm_ep_mrk_misc13) Marked data loaded missed L2 event:0X0BA3 counters:3 um:zero minimum:1000 name:PM_MRK_LSU_SRQ_INST_VALID_GRP186 : (Group 186 pm_ep_mrk_misc13) Marked instruction valid in SRQ #Group 187 pm_ep_mrk_misc14, Misc marked instructions event:0X0BB0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP187 : (Group 187 pm_ep_mrk_misc14) Instructions completed event:0X0BB1 counters:1 um:zero minimum:1000 name:PM_MRK_FXU_FIN_GRP187 : (Group 187 pm_ep_mrk_misc14) Marked instruction FXU processing finished event:0X0BB2 counters:2 um:zero minimum:1000 name:PM_MRK_FPU_FIN_GRP187 : (Group 187 pm_ep_mrk_misc14) Marked instruction FPU processing finished event:0X0BB3 counters:3 um:zero minimum:1000 name:PM_MRK_LSU_FIN_GRP187 : (Group 187 pm_ep_mrk_misc14) Marked instruction LSU processing finished #Group 188 pm_ep_mrk_misc15, Misc marked instructions event:0X0BC0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP188 : (Group 188 pm_ep_mrk_misc15) Instructions completed event:0X0BC1 counters:1 um:zero minimum:1000 name:PM_MRK_GRP_BR_REDIR_GRP188 : (Group 188 pm_ep_mrk_misc15) Group experienced marked branch redirect event:0X0BC2 counters:2 um:zero minimum:1000 name:PM_MRK_INST_FIN_GRP188 : (Group 188 pm_ep_mrk_misc15) Marked instruction finished event:0X0BC3 counters:3 um:zero minimum:1000 name:PM_MRK_GRP_CMPL_GRP188 : (Group 188 pm_ep_mrk_misc15) Marked group completed oprofile-0.9.9/events/ppc64/power5++/unit_masks0000664000076400007640000000013612175510133016210 00000000000000# ppc64 Power5++ possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/ppc64/power5++/event_mappings0000664000076400007640000017464412175510133017072 00000000000000# # Copyright OProfile authors # Copyright (c) International Business Machines, 2007. # Contributed by Maynard Johnson . # #Mapping of event groups to MMCR values #Group Default event:0X001 mmcr0:0X00000000 mmcr1:0X000000000A02121E mmcra:0X00000000 #Group 1 pm_utilization, CPI and utilization data event:0X0010 mmcr0:0X00000000 mmcr1:0X000000000A12121E mmcra:0X00000000 event:0X0011 mmcr0:0X00000000 mmcr1:0X000000000A12121E mmcra:0X00000000 event:0X0012 mmcr0:0X00000000 mmcr1:0X000000000A12121E mmcra:0X00000000 event:0X0013 mmcr0:0X00000000 mmcr1:0X000000000A12121E mmcra:0X00000000 #Group 2 pm_completion, Completion and cycle counts event:0X0020 mmcr0:0X00000000 mmcr1:0X000000002608261E mmcra:0X00000000 event:0X0021 mmcr0:0X00000000 mmcr1:0X000000002608261E mmcra:0X00000000 event:0X0022 mmcr0:0X00000000 mmcr1:0X000000002608261E mmcra:0X00000000 event:0X0023 mmcr0:0X00000000 mmcr1:0X000000002608261E mmcra:0X00000000 #Group 3 pm_group_dispatch, Group dispatch events event:0X0030 mmcr0:0X00000000 mmcr1:0X4000000EC6C8C212 mmcra:0X00000000 event:0X0031 mmcr0:0X00000000 mmcr1:0X4000000EC6C8C212 mmcra:0X00000000 event:0X0032 mmcr0:0X00000000 mmcr1:0X4000000EC6C8C212 mmcra:0X00000000 event:0X0033 mmcr0:0X00000000 mmcr1:0X4000000EC6C8C212 mmcra:0X00000000 #Group 4 pm_clb1, CLB fullness event:0X0040 mmcr0:0X00000000 mmcr1:0X015B000180848C4C mmcra:0X00000001 event:0X0041 mmcr0:0X00000000 mmcr1:0X015B000180848C4C mmcra:0X00000001 event:0X0042 mmcr0:0X00000000 mmcr1:0X015B000180848C4C mmcra:0X00000001 event:0X0043 mmcr0:0X00000000 mmcr1:0X015B000180848C4C mmcra:0X00000001 #Group 5 pm_clb2, CLB fullness event:0X0050 mmcr0:0X00000000 mmcr1:0X014300028A8CCC02 mmcra:0X00000001 event:0X0051 mmcr0:0X00000000 mmcr1:0X014300028A8CCC02 mmcra:0X00000001 event:0X0052 mmcr0:0X00000000 mmcr1:0X014300028A8CCC02 mmcra:0X00000001 event:0X0053 mmcr0:0X00000000 mmcr1:0X014300028A8CCC02 mmcra:0X00000001 #Group 6 pm_gct_empty, GCT empty reasons event:0X0060 mmcr0:0X00000000 mmcr1:0X4000000008380838 mmcra:0X00000000 event:0X0061 mmcr0:0X00000000 mmcr1:0X4000000008380838 mmcra:0X00000000 event:0X0062 mmcr0:0X00000000 mmcr1:0X4000000008380838 mmcra:0X00000000 event:0X0063 mmcr0:0X00000000 mmcr1:0X4000000008380838 mmcra:0X00000000 #Group 7 pm_gct_usage, GCT Usage event:0X0070 mmcr0:0X00000000 mmcr1:0X000000003E3E3E3E mmcra:0X00000000 event:0X0071 mmcr0:0X00000000 mmcr1:0X000000003E3E3E3E mmcra:0X00000000 event:0X0072 mmcr0:0X00000000 mmcr1:0X000000003E3E3E3E mmcra:0X00000000 event:0X0073 mmcr0:0X00000000 mmcr1:0X000000003E3E3E3E mmcra:0X00000000 #Group 8 pm_lsu1, LSU LRQ and LMQ events event:0X0080 mmcr0:0X00000000 mmcr1:0X020F000FCECCCCCA mmcra:0X00000000 event:0X0081 mmcr0:0X00000000 mmcr1:0X020F000FCECCCCCA mmcra:0X00000000 event:0X0082 mmcr0:0X00000000 mmcr1:0X020F000FCECCCCCA mmcra:0X00000000 event:0X0083 mmcr0:0X00000000 mmcr1:0X020F000FCECCCCCA mmcra:0X00000000 #Group 9 pm_lsu2, LSU SRQ events event:0X0090 mmcr0:0X00000000 mmcr1:0X400E000ECECCCA86 mmcra:0X00000000 event:0X0091 mmcr0:0X00000000 mmcr1:0X400E000ECECCCA86 mmcra:0X00000000 event:0X0092 mmcr0:0X00000000 mmcr1:0X400E000ECECCCA86 mmcra:0X00000000 event:0X0093 mmcr0:0X00000000 mmcr1:0X400E000ECECCCA86 mmcra:0X00000000 #Group 10 pm_lsu3, LSU SRQ and LMQ events event:0X00A0 mmcr0:0X00000000 mmcr1:0X030F0004EA102A2A mmcra:0X00000000 event:0X00A1 mmcr0:0X00000000 mmcr1:0X030F0004EA102A2A mmcra:0X00000000 event:0X00A2 mmcr0:0X00000000 mmcr1:0X030F0004EA102A2A mmcra:0X00000000 event:0X00A3 mmcr0:0X00000000 mmcr1:0X030F0004EA102A2A mmcra:0X00000000 #Group 11 pm_lsu4, LSU SRQ and LMQ events event:0X00B0 mmcr0:0X00000000 mmcr1:0X40030000EEA62A2A mmcra:0X00000000 event:0X00B1 mmcr0:0X00000000 mmcr1:0X40030000EEA62A2A mmcra:0X00000000 event:0X00B2 mmcr0:0X00000000 mmcr1:0X40030000EEA62A2A mmcra:0X00000000 event:0X00B3 mmcr0:0X00000000 mmcr1:0X40030000EEA62A2A mmcra:0X00000000 #Group 12 pm_prefetch1, Prefetch stream allocation event:0X00C0 mmcr0:0X00000000 mmcr1:0X8432000D36C884CE mmcra:0X00000000 event:0X00C1 mmcr0:0X00000000 mmcr1:0X8432000D36C884CE mmcra:0X00000000 event:0X00C2 mmcr0:0X00000000 mmcr1:0X8432000D36C884CE mmcra:0X00000000 event:0X00C3 mmcr0:0X00000000 mmcr1:0X8432000D36C884CE mmcra:0X00000000 #Group 13 pm_prefetch2, Prefetch events event:0X00D0 mmcr0:0X00000000 mmcr1:0X8103000602CACE8E mmcra:0X00000001 event:0X00D1 mmcr0:0X00000000 mmcr1:0X8103000602CACE8E mmcra:0X00000001 event:0X00D2 mmcr0:0X00000000 mmcr1:0X8103000602CACE8E mmcra:0X00000001 event:0X00D3 mmcr0:0X00000000 mmcr1:0X8103000602CACE8E mmcra:0X00000001 #Group 14 pm_prefetch3, L2 prefetch and misc events event:0X00E0 mmcr0:0X00000000 mmcr1:0X047C000482108602 mmcra:0X00000001 event:0X00E1 mmcr0:0X00000000 mmcr1:0X047C000482108602 mmcra:0X00000001 event:0X00E2 mmcr0:0X00000000 mmcr1:0X047C000482108602 mmcra:0X00000001 event:0X00E3 mmcr0:0X00000000 mmcr1:0X047C000482108602 mmcra:0X00000001 #Group 15 pm_prefetch4, Misc prefetch and reject events event:0X00F0 mmcr0:0X00000000 mmcr1:0X0CF200028088CC86 mmcra:0X00000000 event:0X00F1 mmcr0:0X00000000 mmcr1:0X0CF200028088CC86 mmcra:0X00000000 event:0X00F2 mmcr0:0X00000000 mmcr1:0X0CF200028088CC86 mmcra:0X00000000 event:0X00F3 mmcr0:0X00000000 mmcr1:0X0CF200028088CC86 mmcra:0X00000000 #Group 16 pm_lsu_reject1, LSU reject events event:0X0100 mmcr0:0X00000000 mmcr1:0XC8E000022010C610 mmcra:0X00000001 event:0X0101 mmcr0:0X00000000 mmcr1:0XC8E000022010C610 mmcra:0X00000001 event:0X0102 mmcr0:0X00000000 mmcr1:0XC8E000022010C610 mmcra:0X00000001 event:0X0103 mmcr0:0X00000000 mmcr1:0XC8E000022010C610 mmcra:0X00000001 #Group 17 pm_lsu_reject2, LSU rejects due to reload CDF or tag update collision event:0X0110 mmcr0:0X00000000 mmcr1:0X88C00001848C02CE mmcra:0X00000001 event:0X0111 mmcr0:0X00000000 mmcr1:0X88C00001848C02CE mmcra:0X00000001 event:0X0112 mmcr0:0X00000000 mmcr1:0X88C00001848C02CE mmcra:0X00000001 event:0X0113 mmcr0:0X00000000 mmcr1:0X88C00001848C02CE mmcra:0X00000001 #Group 18 pm_lsu_reject3, LSU rejects due to ERAT, held instuctions event:0X0120 mmcr0:0X00000000 mmcr1:0X48C00003868EC0C8 mmcra:0X00000000 event:0X0121 mmcr0:0X00000000 mmcr1:0X48C00003868EC0C8 mmcra:0X00000000 event:0X0122 mmcr0:0X00000000 mmcr1:0X48C00003868EC0C8 mmcra:0X00000000 event:0X0123 mmcr0:0X00000000 mmcr1:0X48C00003868EC0C8 mmcra:0X00000000 #Group 19 pm_lsu_reject4, LSU0/1 reject LMQ full event:0X0130 mmcr0:0X00000000 mmcr1:0X88C00001828A02C8 mmcra:0X00000001 event:0X0131 mmcr0:0X00000000 mmcr1:0X88C00001828A02C8 mmcra:0X00000001 event:0X0132 mmcr0:0X00000000 mmcr1:0X88C00001828A02C8 mmcra:0X00000001 event:0X0133 mmcr0:0X00000000 mmcr1:0X88C00001828A02C8 mmcra:0X00000001 #Group 20 pm_lsu_reject5, LSU misc reject and flush events event:0X0140 mmcr0:0X00000000 mmcr1:0X48C0000010208A8E mmcra:0X00000000 event:0X0141 mmcr0:0X00000000 mmcr1:0X48C0000010208A8E mmcra:0X00000000 event:0X0142 mmcr0:0X00000000 mmcr1:0X48C0000010208A8E mmcra:0X00000000 event:0X0143 mmcr0:0X00000000 mmcr1:0X48C0000010208A8E mmcra:0X00000000 #Group 21 pm_flush1, Misc flush events event:0X0150 mmcr0:0X00000000 mmcr1:0XC0F000020210C68E mmcra:0X00000001 event:0X0151 mmcr0:0X00000000 mmcr1:0XC0F000020210C68E mmcra:0X00000001 event:0X0152 mmcr0:0X00000000 mmcr1:0XC0F000020210C68E mmcra:0X00000001 event:0X0153 mmcr0:0X00000000 mmcr1:0XC0F000020210C68E mmcra:0X00000001 #Group 22 pm_flush2, Flushes due to scoreboard and sync event:0X0160 mmcr0:0X00000000 mmcr1:0XC08000038002C4C2 mmcra:0X00000001 event:0X0161 mmcr0:0X00000000 mmcr1:0XC08000038002C4C2 mmcra:0X00000001 event:0X0162 mmcr0:0X00000000 mmcr1:0XC08000038002C4C2 mmcra:0X00000001 event:0X0163 mmcr0:0X00000000 mmcr1:0XC08000038002C4C2 mmcra:0X00000001 #Group 23 pm_lsu_flush_srq_lrq, LSU flush by SRQ and LRQ events event:0X0170 mmcr0:0X00000000 mmcr1:0X40C000002020028A mmcra:0X00000001 event:0X0171 mmcr0:0X00000000 mmcr1:0X40C000002020028A mmcra:0X00000001 event:0X0172 mmcr0:0X00000000 mmcr1:0X40C000002020028A mmcra:0X00000001 event:0X0173 mmcr0:0X00000000 mmcr1:0X40C000002020028A mmcra:0X00000001 #Group 24 pm_lsu_flush_lrq, LSU0/1 flush due to LRQ event:0X0180 mmcr0:0X00000000 mmcr1:0X40C00000848C8A02 mmcra:0X00000001 event:0X0181 mmcr0:0X00000000 mmcr1:0X40C00000848C8A02 mmcra:0X00000001 event:0X0182 mmcr0:0X00000000 mmcr1:0X40C00000848C8A02 mmcra:0X00000001 event:0X0183 mmcr0:0X00000000 mmcr1:0X40C00000848C8A02 mmcra:0X00000001 #Group 25 pm_lsu_flush_srq, LSU0/1 flush due to SRQ event:0X0190 mmcr0:0X00000000 mmcr1:0X40C00000868E028A mmcra:0X00000001 event:0X0191 mmcr0:0X00000000 mmcr1:0X40C00000868E028A mmcra:0X00000001 event:0X0192 mmcr0:0X00000000 mmcr1:0X40C00000868E028A mmcra:0X00000001 event:0X0193 mmcr0:0X00000000 mmcr1:0X40C00000868E028A mmcra:0X00000001 #Group 26 pm_lsu_flush_unaligned, LSU flush due to unaligned data event:0X01A0 mmcr0:0X00000000 mmcr1:0X80C000021010C802 mmcra:0X00000001 event:0X01A1 mmcr0:0X00000000 mmcr1:0X80C000021010C802 mmcra:0X00000001 event:0X01A2 mmcr0:0X00000000 mmcr1:0X80C000021010C802 mmcra:0X00000001 event:0X01A3 mmcr0:0X00000000 mmcr1:0X80C000021010C802 mmcra:0X00000001 #Group 27 pm_lsu_flush_uld, LSU0/1 flush due to unaligned load event:0X01B0 mmcr0:0X00000000 mmcr1:0X40C0000080888A02 mmcra:0X00000001 event:0X01B1 mmcr0:0X00000000 mmcr1:0X40C0000080888A02 mmcra:0X00000001 event:0X01B2 mmcr0:0X00000000 mmcr1:0X40C0000080888A02 mmcra:0X00000001 event:0X01B3 mmcr0:0X00000000 mmcr1:0X40C0000080888A02 mmcra:0X00000001 #Group 28 pm_lsu_flush_ust, LSU0/1 flush due to unaligned store event:0X01C0 mmcr0:0X00000000 mmcr1:0X40C00000828A028A mmcra:0X00000001 event:0X01C1 mmcr0:0X00000000 mmcr1:0X40C00000828A028A mmcra:0X00000001 event:0X01C2 mmcr0:0X00000000 mmcr1:0X40C00000828A028A mmcra:0X00000001 event:0X01C3 mmcr0:0X00000000 mmcr1:0X40C00000828A028A mmcra:0X00000001 #Group 29 pm_lsu_flush_full, LSU flush due to LRQ/SRQ full event:0X01D0 mmcr0:0X00000000 mmcr1:0XC0200009CE0210C0 mmcra:0X00000001 event:0X01D1 mmcr0:0X00000000 mmcr1:0XC0200009CE0210C0 mmcra:0X00000001 event:0X01D2 mmcr0:0X00000000 mmcr1:0XC0200009CE0210C0 mmcra:0X00000001 event:0X01D3 mmcr0:0X00000000 mmcr1:0XC0200009CE0210C0 mmcra:0X00000001 #Group 30 pm_lsu_stall1, LSU Stalls event:0X01E0 mmcr0:0X00000000 mmcr1:0X4000000028300234 mmcra:0X00000001 event:0X01E1 mmcr0:0X00000000 mmcr1:0X4000000028300234 mmcra:0X00000001 event:0X01E2 mmcr0:0X00000000 mmcr1:0X4000000028300234 mmcra:0X00000001 event:0X01E3 mmcr0:0X00000000 mmcr1:0X4000000028300234 mmcra:0X00000001 #Group 31 pm_lsu_stall2, LSU Stalls event:0X01F0 mmcr0:0X00000000 mmcr1:0X4000000002341E36 mmcra:0X00000001 event:0X01F1 mmcr0:0X00000000 mmcr1:0X4000000002341E36 mmcra:0X00000001 event:0X01F2 mmcr0:0X00000000 mmcr1:0X4000000002341E36 mmcra:0X00000001 event:0X01F3 mmcr0:0X00000000 mmcr1:0X4000000002341E36 mmcra:0X00000001 #Group 32 pm_fxu_stall, FXU Stalls event:0X0200 mmcr0:0X00000000 mmcr1:0X40000008CA320232 mmcra:0X00000001 event:0X0201 mmcr0:0X00000000 mmcr1:0X40000008CA320232 mmcra:0X00000001 event:0X0202 mmcr0:0X00000000 mmcr1:0X40000008CA320232 mmcra:0X00000001 event:0X0203 mmcr0:0X00000000 mmcr1:0X40000008CA320232 mmcra:0X00000001 #Group 33 pm_fpu_stall, FPU Stalls event:0X0210 mmcr0:0X00000000 mmcr1:0X4000000020360230 mmcra:0X00000001 event:0X0211 mmcr0:0X00000000 mmcr1:0X4000000020360230 mmcra:0X00000001 event:0X0212 mmcr0:0X00000000 mmcr1:0X4000000020360230 mmcra:0X00000001 event:0X0213 mmcr0:0X00000000 mmcr1:0X4000000020360230 mmcra:0X00000001 #Group 34 pm_queue_full, BRQ LRQ LMQ queue full event:0X0220 mmcr0:0X00000000 mmcr1:0X400B0009CE8A84CE mmcra:0X00000000 event:0X0221 mmcr0:0X00000000 mmcr1:0X400B0009CE8A84CE mmcra:0X00000000 event:0X0222 mmcr0:0X00000000 mmcr1:0X400B0009CE8A84CE mmcra:0X00000000 event:0X0223 mmcr0:0X00000000 mmcr1:0X400B0009CE8A84CE mmcra:0X00000000 #Group 35 pm_issueq_full, FPU FX full event:0X0230 mmcr0:0X00000000 mmcr1:0X40000000868E8088 mmcra:0X00000000 event:0X0231 mmcr0:0X00000000 mmcr1:0X40000000868E8088 mmcra:0X00000000 event:0X0232 mmcr0:0X00000000 mmcr1:0X40000000868E8088 mmcra:0X00000000 event:0X0233 mmcr0:0X00000000 mmcr1:0X40000000868E8088 mmcra:0X00000000 #Group 36 pm_mapper_full1, CR CTR GPR mapper full event:0X0240 mmcr0:0X00000000 mmcr1:0X40000002888CCA82 mmcra:0X00000000 event:0X0241 mmcr0:0X00000000 mmcr1:0X40000002888CCA82 mmcra:0X00000000 event:0X0242 mmcr0:0X00000000 mmcr1:0X40000002888CCA82 mmcra:0X00000000 event:0X0243 mmcr0:0X00000000 mmcr1:0X40000002888CCA82 mmcra:0X00000000 #Group 37 pm_mapper_full2, FPR XER mapper full event:0X0250 mmcr0:0X00000000 mmcr1:0X4103000282843602 mmcra:0X00000001 event:0X0251 mmcr0:0X00000000 mmcr1:0X4103000282843602 mmcra:0X00000001 event:0X0252 mmcr0:0X00000000 mmcr1:0X4103000282843602 mmcra:0X00000001 event:0X0253 mmcr0:0X00000000 mmcr1:0X4103000282843602 mmcra:0X00000001 #Group 38 pm_misc_load, Non-cachable loads and stcx events event:0X0260 mmcr0:0X00000000 mmcr1:0X0438000CC2CA828A mmcra:0X00000001 event:0X0261 mmcr0:0X00000000 mmcr1:0X0438000CC2CA828A mmcra:0X00000001 event:0X0262 mmcr0:0X00000000 mmcr1:0X0438000CC2CA828A mmcra:0X00000001 event:0X0263 mmcr0:0X00000000 mmcr1:0X0438000CC2CA828A mmcra:0X00000001 #Group 39 pm_ic_demand, ICache demand from BR redirect event:0X0270 mmcr0:0X00000000 mmcr1:0X800C000FC2CAC0C2 mmcra:0X00000000 event:0X0271 mmcr0:0X00000000 mmcr1:0X800C000FC2CAC0C2 mmcra:0X00000000 event:0X0272 mmcr0:0X00000000 mmcr1:0X800C000FC2CAC0C2 mmcra:0X00000000 event:0X0273 mmcr0:0X00000000 mmcr1:0X800C000FC2CAC0C2 mmcra:0X00000000 #Group 40 pm_ic_pref, ICache prefetch event:0X0280 mmcr0:0X00000000 mmcr1:0X8000000DCECC8E1A mmcra:0X00000000 event:0X0281 mmcr0:0X00000000 mmcr1:0X8000000DCECC8E1A mmcra:0X00000000 event:0X0282 mmcr0:0X00000000 mmcr1:0X8000000DCECC8E1A mmcra:0X00000000 event:0X0283 mmcr0:0X00000000 mmcr1:0X8000000DCECC8E1A mmcra:0X00000000 #Group 41 pm_ic_miss, ICache misses event:0X0290 mmcr0:0X00000000 mmcr1:0X4003000E32CEC802 mmcra:0X00000001 event:0X0291 mmcr0:0X00000000 mmcr1:0X4003000E32CEC802 mmcra:0X00000001 event:0X0292 mmcr0:0X00000000 mmcr1:0X4003000E32CEC802 mmcra:0X00000001 event:0X0293 mmcr0:0X00000000 mmcr1:0X4003000E32CEC802 mmcra:0X00000001 #Group 42 pm_branch_miss, Branch mispredict, TLB and SLB misses event:0X02A0 mmcr0:0X00000000 mmcr1:0X808000031010CACC mmcra:0X00000000 event:0X02A1 mmcr0:0X00000000 mmcr1:0X808000031010CACC mmcra:0X00000000 event:0X02A2 mmcr0:0X00000000 mmcr1:0X808000031010CACC mmcra:0X00000000 event:0X02A3 mmcr0:0X00000000 mmcr1:0X808000031010CACC mmcra:0X00000000 #Group 43 pm_branch1, Branch operations event:0X02B0 mmcr0:0X00000000 mmcr1:0X8000000F0E0E0E0E mmcra:0X00000000 event:0X02B1 mmcr0:0X00000000 mmcr1:0X8000000F0E0E0E0E mmcra:0X00000000 event:0X02B2 mmcr0:0X00000000 mmcr1:0X8000000F0E0E0E0E mmcra:0X00000000 event:0X02B3 mmcr0:0X00000000 mmcr1:0X8000000F0E0E0E0E mmcra:0X00000000 #Group 44 pm_branch2, Branch operations event:0X02C0 mmcr0:0X00000000 mmcr1:0X4000000C22CC8C02 mmcra:0X00000001 event:0X02C1 mmcr0:0X00000000 mmcr1:0X4000000C22CC8C02 mmcra:0X00000001 event:0X02C2 mmcr0:0X00000000 mmcr1:0X4000000C22CC8C02 mmcra:0X00000001 event:0X02C3 mmcr0:0X00000000 mmcr1:0X4000000C22CC8C02 mmcra:0X00000001 #Group 45 pm_L1_tlbmiss, L1 load and TLB misses event:0X02D0 mmcr0:0X00000000 mmcr1:0X00B000008E881020 mmcra:0X00000000 event:0X02D1 mmcr0:0X00000000 mmcr1:0X00B000008E881020 mmcra:0X00000000 event:0X02D2 mmcr0:0X00000000 mmcr1:0X00B000008E881020 mmcra:0X00000000 event:0X02D3 mmcr0:0X00000000 mmcr1:0X00B000008E881020 mmcra:0X00000000 #Group 46 pm_L1_DERAT_miss, L1 store and DERAT misses event:0X02E0 mmcr0:0X00000000 mmcr1:0X00B300080E202086 mmcra:0X00000000 event:0X02E1 mmcr0:0X00000000 mmcr1:0X00B300080E202086 mmcra:0X00000000 event:0X02E2 mmcr0:0X00000000 mmcr1:0X00B300080E202086 mmcra:0X00000000 event:0X02E3 mmcr0:0X00000000 mmcr1:0X00B300080E202086 mmcra:0X00000000 #Group 47 pm_L1_slbmiss, L1 load and SLB misses event:0X02F0 mmcr0:0X00000000 mmcr1:0X00B000008A82848C mmcra:0X00000000 event:0X02F1 mmcr0:0X00000000 mmcr1:0X00B000008A82848C mmcra:0X00000000 event:0X02F2 mmcr0:0X00000000 mmcr1:0X00B000008A82848C mmcra:0X00000000 event:0X02F3 mmcr0:0X00000000 mmcr1:0X00B000008A82848C mmcra:0X00000000 #Group 48 pm_dtlbref, Data TLB references event:0X0300 mmcr0:0X00000000 mmcr1:0X000C000F0C0C0C0C mmcra:0X00000000 event:0X0301 mmcr0:0X00000000 mmcr1:0X000C000F0C0C0C0C mmcra:0X00000000 event:0X0302 mmcr0:0X00000000 mmcr1:0X000C000F0C0C0C0C mmcra:0X00000000 event:0X0303 mmcr0:0X00000000 mmcr1:0X000C000F0C0C0C0C mmcra:0X00000000 #Group 49 pm_dtlbmiss, Data TLB misses event:0X0310 mmcr0:0X00000000 mmcr1:0X000C000F1A1A1A1A mmcra:0X00000000 event:0X0311 mmcr0:0X00000000 mmcr1:0X000C000F1A1A1A1A mmcra:0X00000000 event:0X0312 mmcr0:0X00000000 mmcr1:0X000C000F1A1A1A1A mmcra:0X00000000 event:0X0313 mmcr0:0X00000000 mmcr1:0X000C000F1A1A1A1A mmcra:0X00000000 #Group 50 pm_dtlb, Data TLB references and misses event:0X0320 mmcr0:0X00000000 mmcr1:0X008C0008C8881E1E mmcra:0X00000000 event:0X0321 mmcr0:0X00000000 mmcr1:0X008C0008C8881E1E mmcra:0X00000000 event:0X0322 mmcr0:0X00000000 mmcr1:0X008C0008C8881E1E mmcra:0X00000000 event:0X0323 mmcr0:0X00000000 mmcr1:0X008C0008C8881E1E mmcra:0X00000000 #Group 51 pm_L1_refmiss, L1 load references and misses and store references and misses event:0X0330 mmcr0:0X00000000 mmcr1:0X0030000050501086 mmcra:0X00000000 event:0X0331 mmcr0:0X00000000 mmcr1:0X0030000050501086 mmcra:0X00000000 event:0X0332 mmcr0:0X00000000 mmcr1:0X0030000050501086 mmcra:0X00000000 event:0X0333 mmcr0:0X00000000 mmcr1:0X0030000050501086 mmcra:0X00000000 #Group 52 pm_dsource1, L3 cache and memory data access event:0X0340 mmcr0:0X00000000 mmcr1:0X4003000C1C0E8E02 mmcra:0X00000001 event:0X0341 mmcr0:0X00000000 mmcr1:0X4003000C1C0E8E02 mmcra:0X00000001 event:0X0342 mmcr0:0X00000000 mmcr1:0X4003000C1C0E8E02 mmcra:0X00000001 event:0X0343 mmcr0:0X00000000 mmcr1:0X4003000C1C0E8E02 mmcra:0X00000001 #Group 53 pm_dsource2, L3 cache and memory data access event:0X0350 mmcr0:0X00000000 mmcr1:0X0003000F1C0E360E mmcra:0X00000000 event:0X0351 mmcr0:0X00000000 mmcr1:0X0003000F1C0E360E mmcra:0X00000000 event:0X0352 mmcr0:0X00000000 mmcr1:0X0003000F1C0E360E mmcra:0X00000000 event:0X0353 mmcr0:0X00000000 mmcr1:0X0003000F1C0E360E mmcra:0X00000000 #Group 54 pm_dsource_L2, L2 cache data access event:0X0360 mmcr0:0X00000000 mmcr1:0X0003000F2E2E2E2E mmcra:0X00000000 event:0X0361 mmcr0:0X00000000 mmcr1:0X0003000F2E2E2E2E mmcra:0X00000000 event:0X0362 mmcr0:0X00000000 mmcr1:0X0003000F2E2E2E2E mmcra:0X00000000 event:0X0363 mmcr0:0X00000000 mmcr1:0X0003000F2E2E2E2E mmcra:0X00000000 #Group 55 pm_dsource_L3, L3 cache data access event:0X0370 mmcr0:0X00000000 mmcr1:0X0003000F3C3C3C3C mmcra:0X00000000 event:0X0371 mmcr0:0X00000000 mmcr1:0X0003000F3C3C3C3C mmcra:0X00000000 event:0X0372 mmcr0:0X00000000 mmcr1:0X0003000F3C3C3C3C mmcra:0X00000000 event:0X0373 mmcr0:0X00000000 mmcr1:0X0003000F3C3C3C3C mmcra:0X00000000 #Group 56 pm_isource1, Instruction source information event:0X0380 mmcr0:0X00000000 mmcr1:0X8000000F1A1A1A0C mmcra:0X00000000 event:0X0381 mmcr0:0X00000000 mmcr1:0X8000000F1A1A1A0C mmcra:0X00000000 event:0X0382 mmcr0:0X00000000 mmcr1:0X8000000F1A1A1A0C mmcra:0X00000000 event:0X0383 mmcr0:0X00000000 mmcr1:0X8000000F1A1A1A0C mmcra:0X00000000 #Group 57 pm_isource2, Instruction source information event:0X0390 mmcr0:0X00000000 mmcr1:0X8000000D0C0C021A mmcra:0X00000001 event:0X0391 mmcr0:0X00000000 mmcr1:0X8000000D0C0C021A mmcra:0X00000001 event:0X0392 mmcr0:0X00000000 mmcr1:0X8000000D0C0C021A mmcra:0X00000001 event:0X0393 mmcr0:0X00000000 mmcr1:0X8000000D0C0C021A mmcra:0X00000001 #Group 58 pm_isource_L2, L2 instruction source information event:0X03A0 mmcr0:0X00000000 mmcr1:0X8000000F2C2C2C2C mmcra:0X00000000 event:0X03A1 mmcr0:0X00000000 mmcr1:0X8000000F2C2C2C2C mmcra:0X00000000 event:0X03A2 mmcr0:0X00000000 mmcr1:0X8000000F2C2C2C2C mmcra:0X00000000 event:0X03A3 mmcr0:0X00000000 mmcr1:0X8000000F2C2C2C2C mmcra:0X00000000 #Group 59 pm_isource_L3, L3 instruction source information event:0X03B0 mmcr0:0X00000000 mmcr1:0X8000000F3A3A3A3A mmcra:0X00000000 event:0X03B1 mmcr0:0X00000000 mmcr1:0X8000000F3A3A3A3A mmcra:0X00000000 event:0X03B2 mmcr0:0X00000000 mmcr1:0X8000000F3A3A3A3A mmcra:0X00000000 event:0X03B3 mmcr0:0X00000000 mmcr1:0X8000000F3A3A3A3A mmcra:0X00000000 #Group 60 pm_pteg_source1, PTEG source information event:0X03C0 mmcr0:0X00000000 mmcr1:0X0002000F2E2E2E2E mmcra:0X00000000 event:0X03C1 mmcr0:0X00000000 mmcr1:0X0002000F2E2E2E2E mmcra:0X00000000 event:0X03C2 mmcr0:0X00000000 mmcr1:0X0002000F2E2E2E2E mmcra:0X00000000 event:0X03C3 mmcr0:0X00000000 mmcr1:0X0002000F2E2E2E2E mmcra:0X00000000 #Group 61 pm_pteg_source2, PTEG source information event:0X03D0 mmcr0:0X00000000 mmcr1:0X0002000F3C3C3C3C mmcra:0X00000000 event:0X03D1 mmcr0:0X00000000 mmcr1:0X0002000F3C3C3C3C mmcra:0X00000000 event:0X03D2 mmcr0:0X00000000 mmcr1:0X0002000F3C3C3C3C mmcra:0X00000000 event:0X03D3 mmcr0:0X00000000 mmcr1:0X0002000F3C3C3C3C mmcra:0X00000000 #Group 62 pm_pteg_source3, PTEG source information event:0X03E0 mmcr0:0X00000000 mmcr1:0X0002000F0E0E360E mmcra:0X00000000 event:0X03E1 mmcr0:0X00000000 mmcr1:0X0002000F0E0E360E mmcra:0X00000000 event:0X03E2 mmcr0:0X00000000 mmcr1:0X0002000F0E0E360E mmcra:0X00000000 event:0X03E3 mmcr0:0X00000000 mmcr1:0X0002000F0E0E360E mmcra:0X00000000 #Group 63 pm_pteg_source4, L3 PTEG and group disptach events event:0X03F0 mmcr0:0X00000000 mmcr1:0X003200081C04048E mmcra:0X00000000 event:0X03F1 mmcr0:0X00000000 mmcr1:0X003200081C04048E mmcra:0X00000000 event:0X03F2 mmcr0:0X00000000 mmcr1:0X003200081C04048E mmcra:0X00000000 event:0X03F3 mmcr0:0X00000000 mmcr1:0X003200081C04048E mmcra:0X00000000 #Group 64 pm_L2SA_ld, L2 slice A load events event:0X0400 mmcr0:0X00000000 mmcr1:0X3055400580C080C0 mmcra:0X00000000 event:0X0401 mmcr0:0X00000000 mmcr1:0X3055400580C080C0 mmcra:0X00000000 event:0X0402 mmcr0:0X00000000 mmcr1:0X3055400580C080C0 mmcra:0X00000000 event:0X0403 mmcr0:0X00000000 mmcr1:0X3055400580C080C0 mmcra:0X00000000 #Group 65 pm_L2SA_st, L2 slice A store events event:0X0410 mmcr0:0X00000000 mmcr1:0X3055800580C080C0 mmcra:0X00000000 event:0X0411 mmcr0:0X00000000 mmcr1:0X3055800580C080C0 mmcra:0X00000000 event:0X0412 mmcr0:0X00000000 mmcr1:0X3055800580C080C0 mmcra:0X00000000 event:0X0413 mmcr0:0X00000000 mmcr1:0X3055800580C080C0 mmcra:0X00000000 #Group 66 pm_L2SA_st2, L2 slice A store events event:0X0420 mmcr0:0X00000000 mmcr1:0X3055C00580C080C0 mmcra:0X00000000 event:0X0421 mmcr0:0X00000000 mmcr1:0X3055C00580C080C0 mmcra:0X00000000 event:0X0422 mmcr0:0X00000000 mmcr1:0X3055C00580C080C0 mmcra:0X00000000 event:0X0423 mmcr0:0X00000000 mmcr1:0X3055C00580C080C0 mmcra:0X00000000 #Group 67 pm_L2SB_ld, L2 slice B load events event:0X0430 mmcr0:0X00000000 mmcr1:0X3055400582C282C2 mmcra:0X00000000 event:0X0431 mmcr0:0X00000000 mmcr1:0X3055400582C282C2 mmcra:0X00000000 event:0X0432 mmcr0:0X00000000 mmcr1:0X3055400582C282C2 mmcra:0X00000000 event:0X0433 mmcr0:0X00000000 mmcr1:0X3055400582C282C2 mmcra:0X00000000 #Group 68 pm_L2SB_st, L2 slice B store events event:0X0440 mmcr0:0X00000000 mmcr1:0X3055800582C482C2 mmcra:0X00000000 event:0X0441 mmcr0:0X00000000 mmcr1:0X3055800582C482C2 mmcra:0X00000000 event:0X0442 mmcr0:0X00000000 mmcr1:0X3055800582C482C2 mmcra:0X00000000 event:0X0443 mmcr0:0X00000000 mmcr1:0X3055800582C482C2 mmcra:0X00000000 #Group 69 pm_L2SB_st2, L2 slice B store events event:0X0450 mmcr0:0X00000000 mmcr1:0X3055C00582C282C2 mmcra:0X00000000 event:0X0451 mmcr0:0X00000000 mmcr1:0X3055C00582C282C2 mmcra:0X00000000 event:0X0452 mmcr0:0X00000000 mmcr1:0X3055C00582C282C2 mmcra:0X00000000 event:0X0453 mmcr0:0X00000000 mmcr1:0X3055C00582C282C2 mmcra:0X00000000 #Group 70 pm_L2SC_ld, L2 slice C load events event:0X0460 mmcr0:0X00000000 mmcr1:0X3055400584C484C4 mmcra:0X00000000 event:0X0461 mmcr0:0X00000000 mmcr1:0X3055400584C484C4 mmcra:0X00000000 event:0X0462 mmcr0:0X00000000 mmcr1:0X3055400584C484C4 mmcra:0X00000000 event:0X0463 mmcr0:0X00000000 mmcr1:0X3055400584C484C4 mmcra:0X00000000 #Group 71 pm_L2SC_st, L2 slice C store events event:0X0470 mmcr0:0X00000000 mmcr1:0X3055800584C284C4 mmcra:0X00000000 event:0X0471 mmcr0:0X00000000 mmcr1:0X3055800584C284C4 mmcra:0X00000000 event:0X0472 mmcr0:0X00000000 mmcr1:0X3055800584C284C4 mmcra:0X00000000 event:0X0473 mmcr0:0X00000000 mmcr1:0X3055800584C284C4 mmcra:0X00000000 #Group 72 pm_L2SC_st2, L2 slice C store events event:0X0480 mmcr0:0X00000000 mmcr1:0X3055C00584C484C4 mmcra:0X00000000 event:0X0481 mmcr0:0X00000000 mmcr1:0X3055C00584C484C4 mmcra:0X00000000 event:0X0482 mmcr0:0X00000000 mmcr1:0X3055C00584C484C4 mmcra:0X00000000 event:0X0483 mmcr0:0X00000000 mmcr1:0X3055C00584C484C4 mmcra:0X00000000 #Group 73 pm_L3SA_trans, L3 slice A state transistions event:0X0490 mmcr0:0X00000000 mmcr1:0X3015000AC602C686 mmcra:0X00000001 event:0X0491 mmcr0:0X00000000 mmcr1:0X3015000AC602C686 mmcra:0X00000001 event:0X0492 mmcr0:0X00000000 mmcr1:0X3015000AC602C686 mmcra:0X00000001 event:0X0493 mmcr0:0X00000000 mmcr1:0X3015000AC602C686 mmcra:0X00000001 #Group 74 pm_L3SB_trans, L3 slice B state transistions event:0X04A0 mmcr0:0X00000000 mmcr1:0X3015000602C8C888 mmcra:0X00000001 event:0X04A1 mmcr0:0X00000000 mmcr1:0X3015000602C8C888 mmcra:0X00000001 event:0X04A2 mmcr0:0X00000000 mmcr1:0X3015000602C8C888 mmcra:0X00000001 event:0X04A3 mmcr0:0X00000000 mmcr1:0X3015000602C8C888 mmcra:0X00000001 #Group 75 pm_L3SC_trans, L3 slice C state transistions event:0X04B0 mmcr0:0X00000000 mmcr1:0X3015000602CACA8A mmcra:0X00000001 event:0X04B1 mmcr0:0X00000000 mmcr1:0X3015000602CACA8A mmcra:0X00000001 event:0X04B2 mmcr0:0X00000000 mmcr1:0X3015000602CACA8A mmcra:0X00000001 event:0X04B3 mmcr0:0X00000000 mmcr1:0X3015000602CACA8A mmcra:0X00000001 #Group 76 pm_L2SA_trans, L2 slice A state transistions event:0X04C0 mmcr0:0X00000000 mmcr1:0X3055000AC080C080 mmcra:0X00000000 event:0X04C1 mmcr0:0X00000000 mmcr1:0X3055000AC080C080 mmcra:0X00000000 event:0X04C2 mmcr0:0X00000000 mmcr1:0X3055000AC080C080 mmcra:0X00000000 event:0X04C3 mmcr0:0X00000000 mmcr1:0X3055000AC080C080 mmcra:0X00000000 #Group 77 pm_L2SB_trans, L2 slice B state transistions event:0X04D0 mmcr0:0X00000000 mmcr1:0X3055000AC282C282 mmcra:0X00000000 event:0X04D1 mmcr0:0X00000000 mmcr1:0X3055000AC282C282 mmcra:0X00000000 event:0X04D2 mmcr0:0X00000000 mmcr1:0X3055000AC282C282 mmcra:0X00000000 event:0X04D3 mmcr0:0X00000000 mmcr1:0X3055000AC282C282 mmcra:0X00000000 #Group 78 pm_L2SC_trans, L2 slice C state transistions event:0X04E0 mmcr0:0X00000000 mmcr1:0X3055000AC484C484 mmcra:0X00000000 event:0X04E1 mmcr0:0X00000000 mmcr1:0X3055000AC484C484 mmcra:0X00000000 event:0X04E2 mmcr0:0X00000000 mmcr1:0X3055000AC484C484 mmcra:0X00000000 event:0X04E3 mmcr0:0X00000000 mmcr1:0X3055000AC484C484 mmcra:0X00000000 #Group 79 pm_L3SAB_retry, L3 slice A/B snoop retry and all CI/CO busy event:0X04F0 mmcr0:0X00000000 mmcr1:0X3005100FC6C8C6C8 mmcra:0X00000000 event:0X04F1 mmcr0:0X00000000 mmcr1:0X3005100FC6C8C6C8 mmcra:0X00000000 event:0X04F2 mmcr0:0X00000000 mmcr1:0X3005100FC6C8C6C8 mmcra:0X00000000 event:0X04F3 mmcr0:0X00000000 mmcr1:0X3005100FC6C8C6C8 mmcra:0X00000000 #Group 80 pm_L3SAB_hit, L3 slice A/B hit and reference event:0X0500 mmcr0:0X00000000 mmcr1:0X3050100086888688 mmcra:0X00000000 event:0X0501 mmcr0:0X00000000 mmcr1:0X3050100086888688 mmcra:0X00000000 event:0X0502 mmcr0:0X00000000 mmcr1:0X3050100086888688 mmcra:0X00000000 event:0X0503 mmcr0:0X00000000 mmcr1:0X3050100086888688 mmcra:0X00000000 #Group 81 pm_L3SC_retry_hit, L3 slice C hit & snoop retry event:0X0510 mmcr0:0X00000000 mmcr1:0X3055100ACA8ACA8A mmcra:0X00000000 event:0X0511 mmcr0:0X00000000 mmcr1:0X3055100ACA8ACA8A mmcra:0X00000000 event:0X0512 mmcr0:0X00000000 mmcr1:0X3055100ACA8ACA8A mmcra:0X00000000 event:0X0513 mmcr0:0X00000000 mmcr1:0X3055100ACA8ACA8A mmcra:0X00000000 #Group 82 pm_fpu1, Floating Point events event:0X0520 mmcr0:0X00000000 mmcr1:0X0000000010101020 mmcra:0X00000000 event:0X0521 mmcr0:0X00000000 mmcr1:0X0000000010101020 mmcra:0X00000000 event:0X0522 mmcr0:0X00000000 mmcr1:0X0000000010101020 mmcra:0X00000000 event:0X0523 mmcr0:0X00000000 mmcr1:0X0000000010101020 mmcra:0X00000000 #Group 83 pm_fpu2, Floating Point events event:0X0530 mmcr0:0X00000000 mmcr1:0X0000000020202010 mmcra:0X00000000 event:0X0531 mmcr0:0X00000000 mmcr1:0X0000000020202010 mmcra:0X00000000 event:0X0532 mmcr0:0X00000000 mmcr1:0X0000000020202010 mmcra:0X00000000 event:0X0533 mmcr0:0X00000000 mmcr1:0X0000000020202010 mmcra:0X00000000 #Group 84 pm_fpu3, Floating point events event:0X0540 mmcr0:0X00000000 mmcr1:0X0000000C1010868E mmcra:0X00000000 event:0X0541 mmcr0:0X00000000 mmcr1:0X0000000C1010868E mmcra:0X00000000 event:0X0542 mmcr0:0X00000000 mmcr1:0X0000000C1010868E mmcra:0X00000000 event:0X0543 mmcr0:0X00000000 mmcr1:0X0000000C1010868E mmcra:0X00000000 #Group 85 pm_fpu4, Floating point events event:0X0550 mmcr0:0X00000000 mmcr1:0X0430000C20200220 mmcra:0X00000001 event:0X0551 mmcr0:0X00000000 mmcr1:0X0430000C20200220 mmcra:0X00000001 event:0X0552 mmcr0:0X00000000 mmcr1:0X0430000C20200220 mmcra:0X00000001 event:0X0553 mmcr0:0X00000000 mmcr1:0X0430000C20200220 mmcra:0X00000001 #Group 86 pm_fpu5, Floating point events by unit event:0X0560 mmcr0:0X00000000 mmcr1:0X00000000848C848C mmcra:0X00000000 event:0X0561 mmcr0:0X00000000 mmcr1:0X00000000848C848C mmcra:0X00000000 event:0X0562 mmcr0:0X00000000 mmcr1:0X00000000848C848C mmcra:0X00000000 event:0X0563 mmcr0:0X00000000 mmcr1:0X00000000848C848C mmcra:0X00000000 #Group 87 pm_fpu6, Floating point events by unit event:0X0570 mmcr0:0X00000000 mmcr1:0X0000000CC0C88088 mmcra:0X00000000 event:0X0571 mmcr0:0X00000000 mmcr1:0X0000000CC0C88088 mmcra:0X00000000 event:0X0572 mmcr0:0X00000000 mmcr1:0X0000000CC0C88088 mmcra:0X00000000 event:0X0573 mmcr0:0X00000000 mmcr1:0X0000000CC0C88088 mmcra:0X00000000 #Group 88 pm_fpu7, Floating point events by unit event:0X0580 mmcr0:0X00000000 mmcr1:0X000000008088828A mmcra:0X00000000 event:0X0581 mmcr0:0X00000000 mmcr1:0X000000008088828A mmcra:0X00000000 event:0X0582 mmcr0:0X00000000 mmcr1:0X000000008088828A mmcra:0X00000000 event:0X0583 mmcr0:0X00000000 mmcr1:0X000000008088828A mmcra:0X00000000 #Group 89 pm_fpu8, Floating point events by unit event:0X0590 mmcr0:0X00000000 mmcr1:0X0000000DC2CA02C0 mmcra:0X00000001 event:0X0591 mmcr0:0X00000000 mmcr1:0X0000000DC2CA02C0 mmcra:0X00000001 event:0X0592 mmcr0:0X00000000 mmcr1:0X0000000DC2CA02C0 mmcra:0X00000001 event:0X0593 mmcr0:0X00000000 mmcr1:0X0000000DC2CA02C0 mmcra:0X00000001 #Group 90 pm_fpu9, Floating point events by unit event:0X05A0 mmcr0:0X00000000 mmcr1:0X0430000CC6CE8088 mmcra:0X00000000 event:0X05A1 mmcr0:0X00000000 mmcr1:0X0430000CC6CE8088 mmcra:0X00000000 event:0X05A2 mmcr0:0X00000000 mmcr1:0X0430000CC6CE8088 mmcra:0X00000000 event:0X05A3 mmcr0:0X00000000 mmcr1:0X0430000CC6CE8088 mmcra:0X00000000 #Group 91 pm_fpu10, Floating point events by unit event:0X05B0 mmcr0:0X00000000 mmcr1:0X00000000828A028A mmcra:0X00000001 event:0X05B1 mmcr0:0X00000000 mmcr1:0X00000000828A028A mmcra:0X00000001 event:0X05B2 mmcr0:0X00000000 mmcr1:0X00000000828A028A mmcra:0X00000001 event:0X05B3 mmcr0:0X00000000 mmcr1:0X00000000828A028A mmcra:0X00000001 #Group 92 pm_fpu11, Floating point events by unit event:0X05C0 mmcr0:0X00000000 mmcr1:0X00000000868E8602 mmcra:0X00000001 event:0X05C1 mmcr0:0X00000000 mmcr1:0X00000000868E8602 mmcra:0X00000001 event:0X05C2 mmcr0:0X00000000 mmcr1:0X00000000868E8602 mmcra:0X00000001 event:0X05C3 mmcr0:0X00000000 mmcr1:0X00000000868E8602 mmcra:0X00000001 #Group 93 pm_fpu12, Floating point events by unit event:0X05D0 mmcr0:0X00000000 mmcr1:0X0430000CC4CC8002 mmcra:0X00000001 event:0X05D1 mmcr0:0X00000000 mmcr1:0X0430000CC4CC8002 mmcra:0X00000001 event:0X05D2 mmcr0:0X00000000 mmcr1:0X0430000CC4CC8002 mmcra:0X00000001 event:0X05D3 mmcr0:0X00000000 mmcr1:0X0430000CC4CC8002 mmcra:0X00000001 #Group 94 pm_fxu1, Fixed Point events event:0X05E0 mmcr0:0X00000000 mmcr1:0X0000000024242424 mmcra:0X00000000 event:0X05E1 mmcr0:0X00000000 mmcr1:0X0000000024242424 mmcra:0X00000000 event:0X05E2 mmcr0:0X00000000 mmcr1:0X0000000024242424 mmcra:0X00000000 event:0X05E3 mmcr0:0X00000000 mmcr1:0X0000000024242424 mmcra:0X00000000 #Group 95 pm_fxu2, Fixed Point events event:0X05F0 mmcr0:0X00000000 mmcr1:0X4000000604221020 mmcra:0X00000001 event:0X05F1 mmcr0:0X00000000 mmcr1:0X4000000604221020 mmcra:0X00000001 event:0X05F2 mmcr0:0X00000000 mmcr1:0X4000000604221020 mmcra:0X00000001 event:0X05F3 mmcr0:0X00000000 mmcr1:0X4000000604221020 mmcra:0X00000001 #Group 96 pm_fxu3, Fixed Point events event:0X0600 mmcr0:0X00000000 mmcr1:0X404000038688C4CC mmcra:0X00000000 event:0X0601 mmcr0:0X00000000 mmcr1:0X404000038688C4CC mmcra:0X00000000 event:0X0602 mmcr0:0X00000000 mmcr1:0X404000038688C4CC mmcra:0X00000000 event:0X0603 mmcr0:0X00000000 mmcr1:0X404000038688C4CC mmcra:0X00000000 #Group 97 pm_smt_priorities1, Thread priority events event:0X0610 mmcr0:0X00000000 mmcr1:0X0005000FC6CCC6C8 mmcra:0X00000000 event:0X0611 mmcr0:0X00000000 mmcr1:0X0005000FC6CCC6C8 mmcra:0X00000000 event:0X0612 mmcr0:0X00000000 mmcr1:0X0005000FC6CCC6C8 mmcra:0X00000000 event:0X0613 mmcr0:0X00000000 mmcr1:0X0005000FC6CCC6C8 mmcra:0X00000000 #Group 98 pm_smt_priorities2, Thread priority events event:0X0620 mmcr0:0X00000000 mmcr1:0X0005000FC4CACACC mmcra:0X00000000 event:0X0621 mmcr0:0X00000000 mmcr1:0X0005000FC4CACACC mmcra:0X00000000 event:0X0622 mmcr0:0X00000000 mmcr1:0X0005000FC4CACACC mmcra:0X00000000 event:0X0623 mmcr0:0X00000000 mmcr1:0X0005000FC4CACACC mmcra:0X00000000 #Group 99 pm_smt_priorities3, Thread priority events event:0X0630 mmcr0:0X00000000 mmcr1:0X0005000FC2C8C4C2 mmcra:0X00000000 event:0X0631 mmcr0:0X00000000 mmcr1:0X0005000FC2C8C4C2 mmcra:0X00000000 event:0X0632 mmcr0:0X00000000 mmcr1:0X0005000FC2C8C4C2 mmcra:0X00000000 event:0X0633 mmcr0:0X00000000 mmcr1:0X0005000FC2C8C4C2 mmcra:0X00000000 #Group 100 pm_smt_priorities4, Thread priority events event:0X0640 mmcr0:0X00000000 mmcr1:0X0005000AC016C002 mmcra:0X00000001 event:0X0641 mmcr0:0X00000000 mmcr1:0X0005000AC016C002 mmcra:0X00000001 event:0X0642 mmcr0:0X00000000 mmcr1:0X0005000AC016C002 mmcra:0X00000001 event:0X0643 mmcr0:0X00000000 mmcr1:0X0005000AC016C002 mmcra:0X00000001 #Group 101 pm_smt_both, Thread common events event:0X0650 mmcr0:0X00000000 mmcr1:0X0010000016260208 mmcra:0X00000001 event:0X0651 mmcr0:0X00000000 mmcr1:0X0010000016260208 mmcra:0X00000001 event:0X0652 mmcr0:0X00000000 mmcr1:0X0010000016260208 mmcra:0X00000001 event:0X0653 mmcr0:0X00000000 mmcr1:0X0010000016260208 mmcra:0X00000001 #Group 102 pm_smt_selection, Thread selection event:0X0660 mmcr0:0X00000000 mmcr1:0X0090000086028082 mmcra:0X00000001 event:0X0661 mmcr0:0X00000000 mmcr1:0X0090000086028082 mmcra:0X00000001 event:0X0662 mmcr0:0X00000000 mmcr1:0X0090000086028082 mmcra:0X00000001 event:0X0663 mmcr0:0X00000000 mmcr1:0X0090000086028082 mmcra:0X00000001 #Group 103 pm_smt_selectover1, Thread selection overide event:0X0670 mmcr0:0X00000000 mmcr1:0X0050000002808488 mmcra:0X00000001 event:0X0671 mmcr0:0X00000000 mmcr1:0X0050000002808488 mmcra:0X00000001 event:0X0672 mmcr0:0X00000000 mmcr1:0X0050000002808488 mmcra:0X00000001 event:0X0673 mmcr0:0X00000000 mmcr1:0X0050000002808488 mmcra:0X00000001 #Group 104 pm_smt_selectover2, Thread selection overide event:0X0680 mmcr0:0X00000000 mmcr1:0X00100000021E8A86 mmcra:0X00000001 event:0X0681 mmcr0:0X00000000 mmcr1:0X00100000021E8A86 mmcra:0X00000001 event:0X0682 mmcr0:0X00000000 mmcr1:0X00100000021E8A86 mmcra:0X00000001 event:0X0683 mmcr0:0X00000000 mmcr1:0X00100000021E8A86 mmcra:0X00000001 #Group 105 pm_fabric1, Fabric events event:0X0690 mmcr0:0X00000000 mmcr1:0X305500058ECE8ECE mmcra:0X00000000 event:0X0691 mmcr0:0X00000000 mmcr1:0X305500058ECE8ECE mmcra:0X00000000 event:0X0692 mmcr0:0X00000000 mmcr1:0X305500058ECE8ECE mmcra:0X00000000 event:0X0693 mmcr0:0X00000000 mmcr1:0X305500058ECE8ECE mmcra:0X00000000 #Group 106 pm_fabric2, Fabric data movement event:0X06A0 mmcr0:0X00000000 mmcr1:0X305500858ECE8ECE mmcra:0X00000000 event:0X06A1 mmcr0:0X00000000 mmcr1:0X305500858ECE8ECE mmcra:0X00000000 event:0X06A2 mmcr0:0X00000000 mmcr1:0X305500858ECE8ECE mmcra:0X00000000 event:0X06A3 mmcr0:0X00000000 mmcr1:0X305500858ECE8ECE mmcra:0X00000000 #Group 107 pm_fabric3, Fabric data movement event:0X06B0 mmcr0:0X00000000 mmcr1:0X305501858ECE8ECE mmcra:0X00000000 event:0X06B1 mmcr0:0X00000000 mmcr1:0X305501858ECE8ECE mmcra:0X00000000 event:0X06B2 mmcr0:0X00000000 mmcr1:0X305501858ECE8ECE mmcra:0X00000000 event:0X06B3 mmcr0:0X00000000 mmcr1:0X305501858ECE8ECE mmcra:0X00000000 #Group 108 pm_fabric4, Fabric data movement event:0X06C0 mmcr0:0X00000000 mmcr1:0X705401068ECEC68E mmcra:0X00000000 event:0X06C1 mmcr0:0X00000000 mmcr1:0X705401068ECEC68E mmcra:0X00000000 event:0X06C2 mmcr0:0X00000000 mmcr1:0X705401068ECEC68E mmcra:0X00000000 event:0X06C3 mmcr0:0X00000000 mmcr1:0X705401068ECEC68E mmcra:0X00000000 #Group 109 pm_snoop1, Snoop retry event:0X06D0 mmcr0:0X00000000 mmcr1:0X305500058CCC8CCC mmcra:0X00000000 event:0X06D1 mmcr0:0X00000000 mmcr1:0X305500058CCC8CCC mmcra:0X00000000 event:0X06D2 mmcr0:0X00000000 mmcr1:0X305500058CCC8CCC mmcra:0X00000000 event:0X06D3 mmcr0:0X00000000 mmcr1:0X305500058CCC8CCC mmcra:0X00000000 #Group 110 pm_snoop2, Snoop read retry event:0X06E0 mmcr0:0X00000000 mmcr1:0X30540A048CCC8C02 mmcra:0X00000001 event:0X06E1 mmcr0:0X00000000 mmcr1:0X30540A048CCC8C02 mmcra:0X00000001 event:0X06E2 mmcr0:0X00000000 mmcr1:0X30540A048CCC8C02 mmcra:0X00000001 event:0X06E3 mmcr0:0X00000000 mmcr1:0X30540A048CCC8C02 mmcra:0X00000001 #Group 111 pm_snoop3, Snoop write retry event:0X06F0 mmcr0:0X00000000 mmcr1:0X30550C058CCC8CCC mmcra:0X00000000 event:0X06F1 mmcr0:0X00000000 mmcr1:0X30550C058CCC8CCC mmcra:0X00000000 event:0X06F2 mmcr0:0X00000000 mmcr1:0X30550C058CCC8CCC mmcra:0X00000000 event:0X06F3 mmcr0:0X00000000 mmcr1:0X30550C058CCC8CCC mmcra:0X00000000 #Group 112 pm_snoop4, Snoop partial write retry event:0X0700 mmcr0:0X00000000 mmcr1:0X30540E048CCC8CAC mmcra:0X00000000 event:0X0701 mmcr0:0X00000000 mmcr1:0X30540E048CCC8CAC mmcra:0X00000000 event:0X0702 mmcr0:0X00000000 mmcr1:0X30540E048CCC8CAC mmcra:0X00000000 event:0X0703 mmcr0:0X00000000 mmcr1:0X30540E048CCC8CAC mmcra:0X00000000 #Group 113 pm_mem_rq, Memory read queue dispatch event:0X0710 mmcr0:0X00000000 mmcr1:0X705402058CCC8CCE mmcra:0X00000000 event:0X0711 mmcr0:0X00000000 mmcr1:0X705402058CCC8CCE mmcra:0X00000000 event:0X0712 mmcr0:0X00000000 mmcr1:0X705402058CCC8CCE mmcra:0X00000000 event:0X0713 mmcr0:0X00000000 mmcr1:0X705402058CCC8CCE mmcra:0X00000000 #Group 114 pm_mem_read, Memory read complete and cancel event:0X0720 mmcr0:0X00000000 mmcr1:0X305404048CCC8C06 mmcra:0X00000000 event:0X0721 mmcr0:0X00000000 mmcr1:0X305404048CCC8C06 mmcra:0X00000000 event:0X0722 mmcr0:0X00000000 mmcr1:0X305404048CCC8C06 mmcra:0X00000000 event:0X0723 mmcr0:0X00000000 mmcr1:0X305404048CCC8C06 mmcra:0X00000000 #Group 115 pm_mem_wq, Memory write queue dispatch event:0X0730 mmcr0:0X00000000 mmcr1:0X305506058CCC8CCC mmcra:0X00000000 event:0X0731 mmcr0:0X00000000 mmcr1:0X305506058CCC8CCC mmcra:0X00000000 event:0X0732 mmcr0:0X00000000 mmcr1:0X305506058CCC8CCC mmcra:0X00000000 event:0X0733 mmcr0:0X00000000 mmcr1:0X305506058CCC8CCC mmcra:0X00000000 #Group 116 pm_mem_pwq, Memory partial write queue event:0X0740 mmcr0:0X00000000 mmcr1:0X305508058CCC8CCC mmcra:0X00000000 event:0X0741 mmcr0:0X00000000 mmcr1:0X305508058CCC8CCC mmcra:0X00000000 event:0X0742 mmcr0:0X00000000 mmcr1:0X305508058CCC8CCC mmcra:0X00000000 event:0X0743 mmcr0:0X00000000 mmcr1:0X305508058CCC8CCC mmcra:0X00000000 #Group 117 pm_threshold, Thresholding event:0X0750 mmcr0:0X00000000 mmcr1:0X0008000404C41628 mmcra:0X00000001 event:0X0751 mmcr0:0X00000000 mmcr1:0X0008000404C41628 mmcra:0X00000001 event:0X0752 mmcr0:0X00000000 mmcr1:0X0008000404C41628 mmcra:0X00000001 event:0X0753 mmcr0:0X00000000 mmcr1:0X0008000404C41628 mmcra:0X00000001 #Group 118 pm_mrk_grp1, Marked group events event:0X0760 mmcr0:0X00000000 mmcr1:0X0008000404C60A26 mmcra:0X00000001 event:0X0761 mmcr0:0X00000000 mmcr1:0X0008000404C60A26 mmcra:0X00000001 event:0X0762 mmcr0:0X00000000 mmcr1:0X0008000404C60A26 mmcra:0X00000001 event:0X0763 mmcr0:0X00000000 mmcr1:0X0008000404C60A26 mmcra:0X00000001 #Group 119 pm_mrk_grp2, Marked group events event:0X0770 mmcr0:0X00000000 mmcr1:0X410300032A0AC822 mmcra:0X00000001 event:0X0771 mmcr0:0X00000000 mmcr1:0X410300032A0AC822 mmcra:0X00000001 event:0X0772 mmcr0:0X00000000 mmcr1:0X410300032A0AC822 mmcra:0X00000001 event:0X0773 mmcr0:0X00000000 mmcr1:0X410300032A0AC822 mmcra:0X00000001 #Group 120 pm_mrk_dsource1, Marked data from event:0X0780 mmcr0:0X00000000 mmcr1:0X010B000F0E404444 mmcra:0X00000001 event:0X0781 mmcr0:0X00000000 mmcr1:0X010B000F0E404444 mmcra:0X00000001 event:0X0782 mmcr0:0X00000000 mmcr1:0X010B000F0E404444 mmcra:0X00000001 event:0X0783 mmcr0:0X00000000 mmcr1:0X010B000F0E404444 mmcra:0X00000001 #Group 121 pm_mrk_dsource2, Marked data from event:0X0790 mmcr0:0X00000000 mmcr1:0X010B000C2E440210 mmcra:0X00000001 event:0X0791 mmcr0:0X00000000 mmcr1:0X010B000C2E440210 mmcra:0X00000001 event:0X0792 mmcr0:0X00000000 mmcr1:0X010B000C2E440210 mmcra:0X00000001 event:0X0793 mmcr0:0X00000000 mmcr1:0X010B000C2E440210 mmcra:0X00000001 #Group 122 pm_mrk_dsource3, Marked data from event:0X07A0 mmcr0:0X00000000 mmcr1:0X010B000F1C484C4C mmcra:0X00000001 event:0X07A1 mmcr0:0X00000000 mmcr1:0X010B000F1C484C4C mmcra:0X00000001 event:0X07A2 mmcr0:0X00000000 mmcr1:0X010B000F1C484C4C mmcra:0X00000001 event:0X07A3 mmcr0:0X00000000 mmcr1:0X010B000F1C484C4C mmcra:0X00000001 #Group 123 pm_mrk_dsource4, Marked data from event:0X07B0 mmcr0:0X00000000 mmcr1:0X010B000F42462E42 mmcra:0X00000001 event:0X07B1 mmcr0:0X00000000 mmcr1:0X010B000F42462E42 mmcra:0X00000001 event:0X07B2 mmcr0:0X00000000 mmcr1:0X010B000F42462E42 mmcra:0X00000001 event:0X07B3 mmcr0:0X00000000 mmcr1:0X010B000F42462E42 mmcra:0X00000001 #Group 124 pm_mrk_dsource5, Marked data from event:0X07C0 mmcr0:0X00000000 mmcr1:0X010B000F3C4C4040 mmcra:0X00000001 event:0X07C1 mmcr0:0X00000000 mmcr1:0X010B000F3C4C4040 mmcra:0X00000001 event:0X07C2 mmcr0:0X00000000 mmcr1:0X010B000F3C4C4040 mmcra:0X00000001 event:0X07C3 mmcr0:0X00000000 mmcr1:0X010B000F3C4C4040 mmcra:0X00000001 #Group 125 pm_mrk_dsource6, Marked data from event:0X07D0 mmcr0:0X00000000 mmcr1:0X010B000D46460246 mmcra:0X00000001 event:0X07D1 mmcr0:0X00000000 mmcr1:0X010B000D46460246 mmcra:0X00000001 event:0X07D2 mmcr0:0X00000000 mmcr1:0X010B000D46460246 mmcra:0X00000001 event:0X07D3 mmcr0:0X00000000 mmcr1:0X010B000D46460246 mmcra:0X00000001 #Group 126 pm_mrk_dsource7, Marked data from event:0X07E0 mmcr0:0X00000000 mmcr1:0X010B000F4E4E3C4E mmcra:0X00000001 event:0X07E1 mmcr0:0X00000000 mmcr1:0X010B000F4E4E3C4E mmcra:0X00000001 event:0X07E2 mmcr0:0X00000000 mmcr1:0X010B000F4E4E3C4E mmcra:0X00000001 event:0X07E3 mmcr0:0X00000000 mmcr1:0X010B000F4E4E3C4E mmcra:0X00000001 #Group 127 pm_mrk_dtlbref, Marked data TLB references event:0X07F0 mmcr0:0X00000000 mmcr1:0X020C000F0C0C0C0C mmcra:0X00000001 event:0X07F1 mmcr0:0X00000000 mmcr1:0X020C000F0C0C0C0C mmcra:0X00000001 event:0X07F2 mmcr0:0X00000000 mmcr1:0X020C000F0C0C0C0C mmcra:0X00000001 event:0X07F3 mmcr0:0X00000000 mmcr1:0X020C000F0C0C0C0C mmcra:0X00000001 #Group 128 pm_mrk_dtlbmiss, Marked data TLB misses event:0X0800 mmcr0:0X00000000 mmcr1:0X020C000F1A1A1A1A mmcra:0X00000001 event:0X0801 mmcr0:0X00000000 mmcr1:0X020C000F1A1A1A1A mmcra:0X00000001 event:0X0802 mmcr0:0X00000000 mmcr1:0X020C000F1A1A1A1A mmcra:0X00000001 event:0X0803 mmcr0:0X00000000 mmcr1:0X020C000F1A1A1A1A mmcra:0X00000001 #Group 129 pm_mrk_dtlb_dslb, Marked data TLB references and misses and marked data SLB misses event:0X0810 mmcr0:0X00000000 mmcr1:0X063C0008C8AC8E1E mmcra:0X00000001 event:0X0811 mmcr0:0X00000000 mmcr1:0X063C0008C8AC8E1E mmcra:0X00000001 event:0X0812 mmcr0:0X00000000 mmcr1:0X063C0008C8AC8E1E mmcra:0X00000001 event:0X0813 mmcr0:0X00000000 mmcr1:0X063C0008C8AC8E1E mmcra:0X00000001 #Group 130 pm_mrk_lbref, Marked TLB and SLB references event:0X0820 mmcr0:0X00000000 mmcr1:0X063C000A0C020C8E mmcra:0X00000001 event:0X0821 mmcr0:0X00000000 mmcr1:0X063C000A0C020C8E mmcra:0X00000001 event:0X0822 mmcr0:0X00000000 mmcr1:0X063C000A0C020C8E mmcra:0X00000001 event:0X0823 mmcr0:0X00000000 mmcr1:0X063C000A0C020C8E mmcra:0X00000001 #Group 131 pm_mrk_lsmiss, Marked load and store miss event:0X0830 mmcr0:0X00000000 mmcr1:0X000800081002060A mmcra:0X00000001 event:0X0831 mmcr0:0X00000000 mmcr1:0X000800081002060A mmcra:0X00000001 event:0X0832 mmcr0:0X00000000 mmcr1:0X000800081002060A mmcra:0X00000001 event:0X0833 mmcr0:0X00000000 mmcr1:0X000800081002060A mmcra:0X00000001 #Group 132 pm_mrk_ulsflush, Mark unaligned load and store flushes event:0X0840 mmcr0:0X00000000 mmcr1:0X0028000406C62020 mmcra:0X00000001 event:0X0841 mmcr0:0X00000000 mmcr1:0X0028000406C62020 mmcra:0X00000001 event:0X0842 mmcr0:0X00000000 mmcr1:0X0028000406C62020 mmcra:0X00000001 event:0X0843 mmcr0:0X00000000 mmcr1:0X0028000406C62020 mmcra:0X00000001 #Group 133 pm_mrk_misc, Misc marked instructions event:0X0850 mmcr0:0X00000000 mmcr1:0X00080008CC062816 mmcra:0X00000001 event:0X0851 mmcr0:0X00000000 mmcr1:0X00080008CC062816 mmcra:0X00000001 event:0X0852 mmcr0:0X00000000 mmcr1:0X00080008CC062816 mmcra:0X00000001 event:0X0853 mmcr0:0X00000000 mmcr1:0X00080008CC062816 mmcra:0X00000001 #Group 134 pm_lsref_L1, Load/Store operations and L1 activity event:0X0860 mmcr0:0X00000000 mmcr1:0X8033000C0E1A2020 mmcra:0X00000000 event:0X0861 mmcr0:0X00000000 mmcr1:0X8033000C0E1A2020 mmcra:0X00000000 event:0X0862 mmcr0:0X00000000 mmcr1:0X8033000C0E1A2020 mmcra:0X00000000 event:0X0863 mmcr0:0X00000000 mmcr1:0X8033000C0E1A2020 mmcra:0X00000000 #Group 135 pm_lsref_L2L3, Load/Store operations and L2, L3 activity event:0X0870 mmcr0:0X00000000 mmcr1:0X0033000C1C0E2020 mmcra:0X00000000 event:0X0871 mmcr0:0X00000000 mmcr1:0X0033000C1C0E2020 mmcra:0X00000000 event:0X0872 mmcr0:0X00000000 mmcr1:0X0033000C1C0E2020 mmcra:0X00000000 event:0X0873 mmcr0:0X00000000 mmcr1:0X0033000C1C0E2020 mmcra:0X00000000 #Group 136 pm_lsref_tlbmiss, Load/Store operations and TLB misses event:0X0880 mmcr0:0X00000000 mmcr1:0X00B0000080882020 mmcra:0X00000000 event:0X0881 mmcr0:0X00000000 mmcr1:0X00B0000080882020 mmcra:0X00000000 event:0X0882 mmcr0:0X00000000 mmcr1:0X00B0000080882020 mmcra:0X00000000 event:0X0883 mmcr0:0X00000000 mmcr1:0X00B0000080882020 mmcra:0X00000000 #Group 137 pm_Dmiss, Data cache misses event:0X0890 mmcr0:0X00000000 mmcr1:0X0033000C1C0E1086 mmcra:0X00000000 event:0X0891 mmcr0:0X00000000 mmcr1:0X0033000C1C0E1086 mmcra:0X00000000 event:0X0892 mmcr0:0X00000000 mmcr1:0X0033000C1C0E1086 mmcra:0X00000000 event:0X0893 mmcr0:0X00000000 mmcr1:0X0033000C1C0E1086 mmcra:0X00000000 #Group 138 pm_prefetchX, Prefetch events event:0X08A0 mmcr0:0X00000000 mmcr1:0X853300061ECCCE86 mmcra:0X00000000 event:0X08A1 mmcr0:0X00000000 mmcr1:0X853300061ECCCE86 mmcra:0X00000000 event:0X08A2 mmcr0:0X00000000 mmcr1:0X853300061ECCCE86 mmcra:0X00000000 event:0X08A3 mmcr0:0X00000000 mmcr1:0X853300061ECCCE86 mmcra:0X00000000 #Group 139 pm_branchX, Branch operations event:0X08B0 mmcr0:0X00000000 mmcr1:0X8000000F0E0E0EC8 mmcra:0X00000000 event:0X08B1 mmcr0:0X00000000 mmcr1:0X8000000F0E0E0EC8 mmcra:0X00000000 event:0X08B2 mmcr0:0X00000000 mmcr1:0X8000000F0E0E0EC8 mmcra:0X00000000 event:0X08B3 mmcr0:0X00000000 mmcr1:0X8000000F0E0E0EC8 mmcra:0X00000000 #Group 140 pm_fpuX1, Floating point events by unit event:0X08C0 mmcr0:0X00000000 mmcr1:0X0000000DC2CA86C0 mmcra:0X00000000 event:0X08C1 mmcr0:0X00000000 mmcr1:0X0000000DC2CA86C0 mmcra:0X00000000 event:0X08C2 mmcr0:0X00000000 mmcr1:0X0000000DC2CA86C0 mmcra:0X00000000 event:0X08C3 mmcr0:0X00000000 mmcr1:0X0000000DC2CA86C0 mmcra:0X00000000 #Group 141 pm_fpuX2, Floating point events by unit event:0X08D0 mmcr0:0X00000000 mmcr1:0X00000000828A828A mmcra:0X00000000 event:0X08D1 mmcr0:0X00000000 mmcr1:0X00000000828A828A mmcra:0X00000000 event:0X08D2 mmcr0:0X00000000 mmcr1:0X00000000828A828A mmcra:0X00000000 event:0X08D3 mmcr0:0X00000000 mmcr1:0X00000000828A828A mmcra:0X00000000 #Group 142 pm_fpuX3, Floating point events by unit event:0X08E0 mmcr0:0X00000000 mmcr1:0X00000000868E868E mmcra:0X00000000 event:0X08E1 mmcr0:0X00000000 mmcr1:0X00000000868E868E mmcra:0X00000000 event:0X08E2 mmcr0:0X00000000 mmcr1:0X00000000868E868E mmcra:0X00000000 event:0X08E3 mmcr0:0X00000000 mmcr1:0X00000000868E868E mmcra:0X00000000 #Group 143 pm_fpuX4, Floating point and L1 events event:0X08F0 mmcr0:0X00000000 mmcr1:0X0030000020102020 mmcra:0X00000000 event:0X08F1 mmcr0:0X00000000 mmcr1:0X0030000020102020 mmcra:0X00000000 event:0X08F2 mmcr0:0X00000000 mmcr1:0X0030000020102020 mmcra:0X00000000 event:0X08F3 mmcr0:0X00000000 mmcr1:0X0030000020102020 mmcra:0X00000000 #Group 144 pm_fpuX5, Floating point events event:0X0900 mmcr0:0X00000000 mmcr1:0X0000000C2020868E mmcra:0X00000000 event:0X0901 mmcr0:0X00000000 mmcr1:0X0000000C2020868E mmcra:0X00000000 event:0X0902 mmcr0:0X00000000 mmcr1:0X0000000C2020868E mmcra:0X00000000 event:0X0903 mmcr0:0X00000000 mmcr1:0X0000000C2020868E mmcra:0X00000000 #Group 145 pm_fpuX6, Floating point events event:0X0910 mmcr0:0X00000000 mmcr1:0X0000000010202010 mmcra:0X00000000 event:0X0911 mmcr0:0X00000000 mmcr1:0X0000000010202010 mmcra:0X00000000 event:0X0912 mmcr0:0X00000000 mmcr1:0X0000000010202010 mmcra:0X00000000 event:0X0913 mmcr0:0X00000000 mmcr1:0X0000000010202010 mmcra:0X00000000 #Group 146 pm_fpuX7, Floating point events event:0X0920 mmcr0:0X00000000 mmcr1:0X0000000220105010 mmcra:0X00000000 event:0X0921 mmcr0:0X00000000 mmcr1:0X0000000220105010 mmcra:0X00000000 event:0X0922 mmcr0:0X00000000 mmcr1:0X0000000220105010 mmcra:0X00000000 event:0X0923 mmcr0:0X00000000 mmcr1:0X0000000220105010 mmcra:0X00000000 #Group 147 pm_hpmcount8, HPM group for set 9 event:0X0930 mmcr0:0X00000000 mmcr1:0X000000001E281E10 mmcra:0X00000000 event:0X0931 mmcr0:0X00000000 mmcr1:0X000000001E281E10 mmcra:0X00000000 event:0X0932 mmcr0:0X00000000 mmcr1:0X000000001E281E10 mmcra:0X00000000 event:0X0933 mmcr0:0X00000000 mmcr1:0X000000001E281E10 mmcra:0X00000000 #Group 148 pm_hpmcount2, HPM group for set 2 event:0X0940 mmcr0:0X00000000 mmcr1:0X0430000412201220 mmcra:0X00000000 event:0X0941 mmcr0:0X00000000 mmcr1:0X0430000412201220 mmcra:0X00000000 event:0X0942 mmcr0:0X00000000 mmcr1:0X0430000412201220 mmcra:0X00000000 event:0X0943 mmcr0:0X00000000 mmcr1:0X0430000412201220 mmcra:0X00000000 #Group 149 pm_hpmcount3, HPM group for set 3 event:0X0950 mmcr0:0X00000000 mmcr1:0X403000041EC21086 mmcra:0X00000000 event:0X0951 mmcr0:0X00000000 mmcr1:0X403000041EC21086 mmcra:0X00000000 event:0X0952 mmcr0:0X00000000 mmcr1:0X403000041EC21086 mmcra:0X00000000 event:0X0953 mmcr0:0X00000000 mmcr1:0X403000041EC21086 mmcra:0X00000000 #Group 150 pm_hpmcount4, HPM group for set 7 event:0X0960 mmcr0:0X00000000 mmcr1:0X00B00000101E2020 mmcra:0X00000000 event:0X0961 mmcr0:0X00000000 mmcr1:0X00B00000101E2020 mmcra:0X00000000 event:0X0962 mmcr0:0X00000000 mmcr1:0X00B00000101E2020 mmcra:0X00000000 event:0X0963 mmcr0:0X00000000 mmcr1:0X00B00000101E2020 mmcra:0X00000000 #Group 151 pm_flop, Floating point operations event:0X0970 mmcr0:0X00000000 mmcr1:0X0000000010105050 mmcra:0X00000000 event:0X0971 mmcr0:0X00000000 mmcr1:0X0000000010105050 mmcra:0X00000000 event:0X0972 mmcr0:0X00000000 mmcr1:0X0000000010105050 mmcra:0X00000000 event:0X0973 mmcr0:0X00000000 mmcr1:0X0000000010105050 mmcra:0X00000000 #Group 152 pm_eprof1, Group for use with eprof event:0X0980 mmcr0:0X00000000 mmcr1:0X00300000121E108E mmcra:0X00000000 event:0X0981 mmcr0:0X00000000 mmcr1:0X00300000121E108E mmcra:0X00000000 event:0X0982 mmcr0:0X00000000 mmcr1:0X00300000121E108E mmcra:0X00000000 event:0X0983 mmcr0:0X00000000 mmcr1:0X00300000121E108E mmcra:0X00000000 #Group 153 pm_eprof2, Group for use with eprof event:0X0990 mmcr0:0X00000000 mmcr1:0X0030000012501220 mmcra:0X00000000 event:0X0991 mmcr0:0X00000000 mmcr1:0X0030000012501220 mmcra:0X00000000 event:0X0992 mmcr0:0X00000000 mmcr1:0X0030000012501220 mmcra:0X00000000 event:0X0993 mmcr0:0X00000000 mmcr1:0X0030000012501220 mmcra:0X00000000 #Group 154 pm_flip, Group for flips event:0X09A0 mmcr0:0X00000000 mmcr1:0X000000021E105010 mmcra:0X00000000 event:0X09A1 mmcr0:0X00000000 mmcr1:0X000000021E105010 mmcra:0X00000000 event:0X09A2 mmcr0:0X00000000 mmcr1:0X000000021E105010 mmcra:0X00000000 event:0X09A3 mmcr0:0X00000000 mmcr1:0X000000021E105010 mmcra:0X00000000 #Group 155 pm_hpmcount5, HPM group for set 5 event:0X09B0 mmcr0:0X00000000 mmcr1:0X00B000001E881020 mmcra:0X00000000 event:0X09B1 mmcr0:0X00000000 mmcr1:0X00B000001E881020 mmcra:0X00000000 event:0X09B2 mmcr0:0X00000000 mmcr1:0X00B000001E881020 mmcra:0X00000000 event:0X09B3 mmcr0:0X00000000 mmcr1:0X00B000001E881020 mmcra:0X00000000 #Group 156 pm_hpmcount6, HPM group for set 6 event:0X09C0 mmcr0:0X00000000 mmcr1:0X003000001E122086 mmcra:0X00000000 event:0X09C1 mmcr0:0X00000000 mmcr1:0X003000001E122086 mmcra:0X00000000 event:0X09C2 mmcr0:0X00000000 mmcr1:0X003000001E122086 mmcra:0X00000000 event:0X09C3 mmcr0:0X00000000 mmcr1:0X003000001E122086 mmcra:0X00000000 #Group 157 pm_hpmcount7, HPM group for set 8 event:0X09D0 mmcr0:0X00000000 mmcr1:0X00030005120E1E0E mmcra:0X00000000 event:0X09D1 mmcr0:0X00000000 mmcr1:0X00030005120E1E0E mmcra:0X00000000 event:0X09D2 mmcr0:0X00000000 mmcr1:0X00030005120E1E0E mmcra:0X00000000 event:0X09D3 mmcr0:0X00000000 mmcr1:0X00030005120E1E0E mmcra:0X00000000 #Group 158 pm_ep_threshold, Thresholding event:0X09E0 mmcr0:0X00000000 mmcr1:0X0000000004121628 mmcra:0X00000001 event:0X09E1 mmcr0:0X00000000 mmcr1:0X0000000004121628 mmcra:0X00000001 event:0X09E2 mmcr0:0X00000000 mmcr1:0X0000000004121628 mmcra:0X00000001 event:0X09E3 mmcr0:0X00000000 mmcr1:0X0000000004121628 mmcra:0X00000001 #Group 159 pm_ep_mrk_grp1, Marked group events event:0X09F0 mmcr0:0X00000000 mmcr1:0X0000000004120A26 mmcra:0X00000001 event:0X09F1 mmcr0:0X00000000 mmcr1:0X0000000004120A26 mmcra:0X00000001 event:0X09F2 mmcr0:0X00000000 mmcr1:0X0000000004120A26 mmcra:0X00000001 event:0X09F3 mmcr0:0X00000000 mmcr1:0X0000000004120A26 mmcra:0X00000001 #Group 160 pm_ep_mrk_grp2, Marked group events event:0X0A00 mmcr0:0X00000000 mmcr1:0X410300032A12C822 mmcra:0X00000001 event:0X0A01 mmcr0:0X00000000 mmcr1:0X410300032A12C822 mmcra:0X00000001 event:0X0A02 mmcr0:0X00000000 mmcr1:0X410300032A12C822 mmcra:0X00000001 event:0X0A03 mmcr0:0X00000000 mmcr1:0X410300032A12C822 mmcra:0X00000001 #Group 161 pm_ep_mrk_dsource1, Marked data from event:0X0A10 mmcr0:0X00000000 mmcr1:0X010B000B0E124444 mmcra:0X00000001 event:0X0A11 mmcr0:0X00000000 mmcr1:0X010B000B0E124444 mmcra:0X00000001 event:0X0A12 mmcr0:0X00000000 mmcr1:0X010B000B0E124444 mmcra:0X00000001 event:0X0A13 mmcr0:0X00000000 mmcr1:0X010B000B0E124444 mmcra:0X00000001 #Group 162 pm_ep_mrk_dsource2, Marked data from event:0X0A20 mmcr0:0X00000000 mmcr1:0X010B00082E12E410 mmcra:0X00000001 event:0X0A21 mmcr0:0X00000000 mmcr1:0X010B00082E12E410 mmcra:0X00000001 event:0X0A22 mmcr0:0X00000000 mmcr1:0X010B00082E12E410 mmcra:0X00000001 event:0X0A23 mmcr0:0X00000000 mmcr1:0X010B00082E12E410 mmcra:0X00000001 #Group 163 pm_ep_mrk_dsource3, Marked data from event:0X0A30 mmcr0:0X00000000 mmcr1:0X010B000712484C4C mmcra:0X00000001 event:0X0A31 mmcr0:0X00000000 mmcr1:0X010B000712484C4C mmcra:0X00000001 event:0X0A32 mmcr0:0X00000000 mmcr1:0X010B000712484C4C mmcra:0X00000001 event:0X0A33 mmcr0:0X00000000 mmcr1:0X010B000712484C4C mmcra:0X00000001 #Group 164 pm_ep_mrk_dsource4, Marked data from event:0X0A40 mmcr0:0X00000000 mmcr1:0X010B000712462E42 mmcra:0X00000001 event:0X0A41 mmcr0:0X00000000 mmcr1:0X010B000712462E42 mmcra:0X00000001 event:0X0A42 mmcr0:0X00000000 mmcr1:0X010B000712462E42 mmcra:0X00000001 event:0X0A43 mmcr0:0X00000000 mmcr1:0X010B000712462E42 mmcra:0X00000001 #Group 165 pm_ep_mrk_dsource5, Marked data from event:0X0A50 mmcr0:0X00000000 mmcr1:0X010B000B3C124040 mmcra:0X00000001 event:0X0A51 mmcr0:0X00000000 mmcr1:0X010B000B3C124040 mmcra:0X00000001 event:0X0A52 mmcr0:0X00000000 mmcr1:0X010B000B3C124040 mmcra:0X00000001 event:0X0A53 mmcr0:0X00000000 mmcr1:0X010B000B3C124040 mmcra:0X00000001 #Group 166 pm_ep_mrk_dsource6, Marked data from event:0X0A60 mmcr0:0X00000000 mmcr1:0X010B000512460246 mmcra:0X00000001 event:0X0A61 mmcr0:0X00000000 mmcr1:0X010B000512460246 mmcra:0X00000001 event:0X0A62 mmcr0:0X00000000 mmcr1:0X010B000512460246 mmcra:0X00000001 event:0X0A63 mmcr0:0X00000000 mmcr1:0X010B000512460246 mmcra:0X00000001 #Group 167 pm_ep_mrk_dsource7, Marked data from event:0X0A70 mmcr0:0X00000000 mmcr1:0X010B0007124E3C4E mmcra:0X00000001 event:0X0A71 mmcr0:0X00000000 mmcr1:0X010B0007124E3C4E mmcra:0X00000001 event:0X0A72 mmcr0:0X00000000 mmcr1:0X010B0007124E3C4E mmcra:0X00000001 event:0X0A73 mmcr0:0X00000000 mmcr1:0X010B0007124E3C4E mmcra:0X00000001 #Group 168 pm_ep_mrk_lbmiss, Marked TLB and SLB misses event:0X0A80 mmcr0:0X00000000 mmcr1:0X020C0007121A1A1A mmcra:0X00000001 event:0X0A81 mmcr0:0X00000000 mmcr1:0X020C0007121A1A1A mmcra:0X00000001 event:0X0A82 mmcr0:0X00000000 mmcr1:0X020C0007121A1A1A mmcra:0X00000001 event:0X0A83 mmcr0:0X00000000 mmcr1:0X020C0007121A1A1A mmcra:0X00000001 #Group 169 pm_ep_mrk_dtlbref, Marked data TLB references event:0X0A90 mmcr0:0X00000000 mmcr1:0X020C0007120C0C0C mmcra:0X00000001 event:0X0A91 mmcr0:0X00000000 mmcr1:0X020C0007120C0C0C mmcra:0X00000001 event:0X0A92 mmcr0:0X00000000 mmcr1:0X020C0007120C0C0C mmcra:0X00000001 event:0X0A93 mmcr0:0X00000000 mmcr1:0X020C0007120C0C0C mmcra:0X00000001 #Group 170 pm_ep_mrk_dtlbmiss, Marked data TLB misses event:0X0AA0 mmcr0:0X00000000 mmcr1:0X020C0007121A1A1A mmcra:0X00000001 event:0X0AA1 mmcr0:0X00000000 mmcr1:0X020C0007121A1A1A mmcra:0X00000001 event:0X0AA2 mmcr0:0X00000000 mmcr1:0X020C0007121A1A1A mmcra:0X00000001 event:0X0AA3 mmcr0:0X00000000 mmcr1:0X020C0007121A1A1A mmcra:0X00000001 #Group 171 pm_ep_mrk_lbref, Marked TLB and SLB references event:0X0AB0 mmcr0:0X00000000 mmcr1:0X063C000A0C120C8E mmcra:0X00000001 event:0X0AB1 mmcr0:0X00000000 mmcr1:0X063C000A0C120C8E mmcra:0X00000001 event:0X0AB2 mmcr0:0X00000000 mmcr1:0X063C000A0C120C8E mmcra:0X00000001 event:0X0AB3 mmcr0:0X00000000 mmcr1:0X063C000A0C120C8E mmcra:0X00000001 #Group 172 pm_ep_mrk_lsmiss, Marked load and store miss event:0X0AC0 mmcr0:0X00000000 mmcr1:0X000800081012060A mmcra:0X00000001 event:0X0AC1 mmcr0:0X00000000 mmcr1:0X000800081012060A mmcra:0X00000001 event:0X0AC2 mmcr0:0X00000000 mmcr1:0X000800081012060A mmcra:0X00000001 event:0X0AC3 mmcr0:0X00000000 mmcr1:0X000800081012060A mmcra:0X00000001 #Group 173 pm_ep_mrk_ulsflush, Mark unaligned load and store flushes event:0X0AD0 mmcr0:0X00000000 mmcr1:0X0020000006122020 mmcra:0X00000001 event:0X0AD1 mmcr0:0X00000000 mmcr1:0X0020000006122020 mmcra:0X00000001 event:0X0AD2 mmcr0:0X00000000 mmcr1:0X0020000006122020 mmcra:0X00000001 event:0X0AD3 mmcr0:0X00000000 mmcr1:0X0020000006122020 mmcra:0X00000001 #Group 174 pm_ep_mrk_misc1, Misc marked instructions event:0X0AE0 mmcr0:0X00000000 mmcr1:0X0000000012062816 mmcra:0X00000001 event:0X0AE1 mmcr0:0X00000000 mmcr1:0X0000000012062816 mmcra:0X00000001 event:0X0AE2 mmcr0:0X00000000 mmcr1:0X0000000012062816 mmcra:0X00000001 event:0X0AE3 mmcr0:0X00000000 mmcr1:0X0000000012062816 mmcra:0X00000001 #Group 175 pm_ep_mrk_misc2, Misc marked instructions event:0X0AF0 mmcr0:0X00000000 mmcr1:0X010B000612445EE4 mmcra:0X00000001 event:0X0AF1 mmcr0:0X00000000 mmcr1:0X010B000612445EE4 mmcra:0X00000001 event:0X0AF2 mmcr0:0X00000000 mmcr1:0X010B000612445EE4 mmcra:0X00000001 event:0X0AF3 mmcr0:0X00000000 mmcr1:0X010B000612445EE4 mmcra:0X00000001 #Group 176 pm_ep_mrk_misc3, Misc marked instructions event:0X0B00 mmcr0:0X00000000 mmcr1:0X053B0005124C8C0E mmcra:0X00000001 event:0X0B01 mmcr0:0X00000000 mmcr1:0X053B0005124C8C0E mmcra:0X00000001 event:0X0B02 mmcr0:0X00000000 mmcr1:0X053B0005124C8C0E mmcra:0X00000001 event:0X0B03 mmcr0:0X00000000 mmcr1:0X053B0005124C8C0E mmcra:0X00000001 #Group 177 pm_ep_mrk_misc4, Misc marked instructions event:0X0B10 mmcr0:0X00000000 mmcr1:0X030F00091A12E82E mmcra:0X00000001 event:0X0B11 mmcr0:0X00000000 mmcr1:0X030F00091A12E82E mmcra:0X00000001 event:0X0B12 mmcr0:0X00000000 mmcr1:0X030F00091A12E82E mmcra:0X00000001 event:0X0B13 mmcr0:0X00000000 mmcr1:0X030F00091A12E82E mmcra:0X00000001 #Group 178 pm_ep_mrk_misc5, Misc marked instructions event:0X0B20 mmcr0:0X00000000 mmcr1:0X022C00080C120286 mmcra:0X00000001 event:0X0B21 mmcr0:0X00000000 mmcr1:0X022C00080C120286 mmcra:0X00000001 event:0X0B22 mmcr0:0X00000000 mmcr1:0X022C00080C120286 mmcra:0X00000001 event:0X0B23 mmcr0:0X00000000 mmcr1:0X022C00080C120286 mmcra:0X00000001 #Group 179 pm_ep_mrk_misc6, Misc marked instructions event:0X0B30 mmcr0:0X00000000 mmcr1:0X022C00081A12888A mmcra:0X00000001 event:0X0B31 mmcr0:0X00000000 mmcr1:0X022C00081A12888A mmcra:0X00000001 event:0X0B32 mmcr0:0X00000000 mmcr1:0X022C00081A12888A mmcra:0X00000001 event:0X0B33 mmcr0:0X00000000 mmcr1:0X022C00081A12888A mmcra:0X00000001 #Group 180 pm_ep_mrk_misc7, Misc marked instructions event:0X0B40 mmcr0:0X00000000 mmcr1:0X012B000412408280 mmcra:0X00000001 event:0X0B41 mmcr0:0X00000000 mmcr1:0X012B000412408280 mmcra:0X00000001 event:0X0B42 mmcr0:0X00000000 mmcr1:0X012B000412408280 mmcra:0X00000001 event:0X0B43 mmcr0:0X00000000 mmcr1:0X012B000412408280 mmcra:0X00000001 #Group 181 pm_ep_mrk_misc8, Misc marked instructions event:0X0B50 mmcr0:0X00000000 mmcr1:0X00200000120A8486 mmcra:0X00000001 event:0X0B51 mmcr0:0X00000000 mmcr1:0X00200000120A8486 mmcra:0X00000001 event:0X0B52 mmcr0:0X00000000 mmcr1:0X00200000120A8486 mmcra:0X00000001 event:0X0B53 mmcr0:0X00000000 mmcr1:0X00200000120A8486 mmcra:0X00000001 #Group 182 pm_ep_mrk_misc9, Misc marked instructions event:0X0B60 mmcr0:0X00000000 mmcr1:0X0028000012AC8EEC mmcra:0X00000001 event:0X0B61 mmcr0:0X00000000 mmcr1:0X0028000012AC8EEC mmcra:0X00000001 event:0X0B62 mmcr0:0X00000000 mmcr1:0X0028000012AC8EEC mmcra:0X00000001 event:0X0B63 mmcr0:0X00000000 mmcr1:0X0028000012AC8EEC mmcra:0X00000001 #Group 183 pm_ep_mrk_misc10, Misc marked instructions event:0X0B70 mmcr0:0X00000000 mmcr1:0X0008000412C0E8E6 mmcra:0X00000001 event:0X0B71 mmcr0:0X00000000 mmcr1:0X0008000412C0E8E6 mmcra:0X00000001 event:0X0B72 mmcr0:0X00000000 mmcr1:0X0008000412C0E8E6 mmcra:0X00000001 event:0X0B73 mmcr0:0X00000000 mmcr1:0X0008000412C0E8E6 mmcra:0X00000001 #Group 184 pm_ep_mrk_misc11, Misc marked instructions event:0X0B80 mmcr0:0X00000000 mmcr1:0X01030003120A443C mmcra:0X00000001 event:0X0B81 mmcr0:0X00000000 mmcr1:0X01030003120A443C mmcra:0X00000001 event:0X0B82 mmcr0:0X00000000 mmcr1:0X01030003120A443C mmcra:0X00000001 event:0X0B83 mmcr0:0X00000000 mmcr1:0X01030003120A443C mmcra:0X00000001 #Group 185 pm_ep_mrk_misc12, Misc marked instructions event:0X0B90 mmcr0:0X00000000 mmcr1:0X0020000012501010 mmcra:0X00000001 event:0X0B91 mmcr0:0X00000000 mmcr1:0X0020000012501010 mmcra:0X00000001 event:0X0B92 mmcr0:0X00000000 mmcr1:0X0020000012501010 mmcra:0X00000001 event:0X0B93 mmcr0:0X00000000 mmcr1:0X0020000012501010 mmcra:0X00000001 #Group 186 pm_ep_mrk_misc13, Misc marked instructions event:0X0BA0 mmcr0:0X00000000 mmcr1:0X0103000B0E1236CC mmcra:0X00000001 event:0X0BA1 mmcr0:0X00000000 mmcr1:0X0103000B0E1236CC mmcra:0X00000001 event:0X0BA2 mmcr0:0X00000000 mmcr1:0X0103000B0E1236CC mmcra:0X00000001 event:0X0BA3 mmcr0:0X00000000 mmcr1:0X0103000B0E1236CC mmcra:0X00000001 #Group 187 pm_ep_mrk_misc14, Misc marked instructions event:0X0BB0 mmcr0:0X00000000 mmcr1:0X0000000012282828 mmcra:0X00000001 event:0X0BB1 mmcr0:0X00000000 mmcr1:0X0000000012282828 mmcra:0X00000001 event:0X0BB2 mmcr0:0X00000000 mmcr1:0X0000000012282828 mmcra:0X00000001 event:0X0BB3 mmcr0:0X00000000 mmcr1:0X0000000012282828 mmcra:0X00000001 #Group 188 pm_ep_mrk_misc15, Misc marked instructions event:0X0BC0 mmcr0:0X00000000 mmcr1:0X4000000412220A26 mmcra:0X00000001 event:0X0BC1 mmcr0:0X00000000 mmcr1:0X4000000412220A26 mmcra:0X00000001 event:0X0BC2 mmcr0:0X00000000 mmcr1:0X4000000412220A26 mmcra:0X00000001 event:0X0BC3 mmcr0:0X00000000 mmcr1:0X4000000412220A26 mmcra:0X00000001 oprofile-0.9.9/events/ppc64/architected_events_v1/0000775000076400007640000000000012175511556017104 500000000000000oprofile-0.9.9/events/ppc64/architected_events_v1/events0000664000076400007640000001603412175510133020245 00000000000000# # Copyright OProfile authors # Copyright (c) International Business Machines, 2013. # Contributed by Maynard Johnson . # # IBM Power Architected Events -- Version 1: Power ISA 2.07 # Manually add CYCLES for backward compatibility for default event event:0x100f0 counters:0 um:zero minimum:100000 name:CYCLES : Cycles event:0x100f2 counters:0 um:zero minimum:100000 name:PM_1PLUS_PPC_CMPL : one or more ppc instructions finished event:0x400f2 counters:3 um:zero minimum:100000 name:PM_1PLUS_PPC_DISP : Cycles at least one Instr Dispatched event:0x100fa counters:0 um:zero minimum:100000 name:PM_ANY_THRD_RUN_CYC : One of threads in run_cycles event:0x400f6 counters:3 um:zero minimum:10000 name:PM_BR_MPRED_CMPL : Number of Branch Mispredicts event:0x200fa counters:1 um:zero minimum:10000 name:PM_BR_TAKEN_CMPL : New event for Branch Taken event:0x100f0 counters:0 um:zero minimum:100000 name:PM_CYC : Cycles event:0x200fe counters:1 um:zero minimum:10000 name:PM_DATA_FROM_L2MISS : Demand LD - L2 Miss (not L2 hit) event:0x300fe counters:2 um:zero minimum:10000 name:PM_DATA_FROM_L3MISS : Demand LD - L3 Miss (not L2 hit and not L3 hit) event:0x400fe counters:3 um:zero minimum:10000 name:PM_DATA_FROM_MEM : data from Memory event:0x300fc counters:2 um:zero minimum:10000 name:PM_DTLB_MISS : Data PTEG reload event:0x200f8 counters:1 um:zero minimum:10000 name:PM_EXT_INT : external interrupt event:0x100f4 counters:0 um:zero minimum:10000 name:PM_FLOP : Floating Point Operations Finished event:0x400f8 counters:3 um:zero minimum:10000 name:PM_FLUSH : Flush (any type) event:0x100f8 counters:0 um:zero minimum:10000 name:PM_GCT_NOSLOT_CYC : No itags assigned event:0x100f6 counters:0 um:zero minimum:10000 name:PM_IERAT_MISS : Cycles Instruction ERAT was reloaded event:0x200f2 counters:1 um:zero minimum:100000 name:PM_INST_DISP : Number of PPC Dispatched event:0x300fa counters:2 um:zero minimum:10000 name:PM_INST_FROM_L3MISS : A Instruction cacheline request resolved from a location that was beyond the local L3 cache event:0x400fc counters:3 um:zero minimum:10000 name:PM_ITLB_MISS : ITLB Reloaded (always zero on POWER6) event:0x300f6 counters:2 um:zero minimum:10000 name:PM_L1_DCACHE_RELOAD_VALID : DL1 reloaded due to Demand Load event:0x200fc counters:1 um:zero minimum:10000 name:PM_L1_ICACHE_MISS : Demand iCache Miss event:0x400f0 counters:3 um:zero minimum:10000 name:PM_LD_MISS_L1 : Load Missed L1 event:0x200f6 counters:1 um:zero minimum:10000 name:PM_LSU_DERAT_MISS : DERAT Reloaded due to a DERAT miss event:0x300e4 counters:2 um:zero minimum:1000 name:PM_MRK_BR_MPRED_CMPL : Marked Branch Mispredicted event:0x100e2 counters:0 um:zero minimum:1000 name:PM_MRK_BR_TAKEN_CMPL : Marked Branch Taken completed event:0x400e8 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2MISS : sampled load resolved beyond L2 event:0x200e4 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L3MISS : sampled load resolved beyond L3 event:0x200e0 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_MEM : sampled load resolved from memory event:0x300e6 counters:2 um:zero minimum:1000 name:PM_MRK_DERAT_MISS : Erat Miss (TLB Access) All page sizes event:0x400e4 counters:3 um:zero minimum:1000 name:PM_MRK_DTLB_MISS : sampled Instruction dtlb miss event:0x400e0 counters:3 um:zero minimum:1000 name:PM_MRK_INST_CMPL : Marked group complete event:0x100e0 counters:0 um:zero minimum:1000 name:PM_MRK_INST_DISP : The thread has dispatched a randomly sampled marked instruction event:0x400e6 counters:3 um:zero minimum:1000 name:PM_MRK_INST_FROM_L3MISS : sampled instruction missed icache and came from beyond L3 A Instruction cacheline request for a marked/sampled instruction resolved from a location that was beyond the local L3 cache event:0x100e4 counters:0 um:zero minimum:1000 name:PM_MRK_L1_ICACHE_MISS : sampled Instruction suffered an icache Miss event:0x100ea counters:0 um:zero minimum:1000 name:PM_MRK_L1_RELOAD_VALID : Sampled Instruction had a data reload event:0x200e2 counters:1 um:zero minimum:1000 name:PM_MRK_LD_MISS_L1 : Marked DL1 Demand Miss event:0x300e2 counters:2 um:zero minimum:1000 name:PM_MRK_ST_CMPL : marked store completed and sent to nest event:0x600f4 counters:5 um:zero minimum:100000 name:PM_RUN_CYC : Run_cycles event:0x500fa counters:4 um:zero minimum:100000 name:PM_RUN_INST_CMPL : Run_Instructions event:0x400f4 counters:3 um:zero minimum:10000 name:PM_RUN_PURR : Run_PURR event:0x200f0 counters:1 um:zero minimum:10000 name:PM_ST_FIN : Store Instructions Finished event:0x300f0 counters:2 um:zero minimum:10000 name:PM_ST_MISS_L1 : Store Missed L1 event:0x300f8 counters:2 um:zero minimum:10000 name:PM_TB_BIT_TRANS : timebase event event:0x300f4 counters:2 um:zero minimum:100000 name:PM_THRD_CONC_RUN_INST : PPC Instructions Finished when both threads in run_cycles event:0x300ea counters:2 um:zero minimum:10000 name:PM_THRESH_EXC_1024 : Threshold counter exceeded a value of 1024 Architecture provides a thresholding counter in MMCRA, it has a start and stop events to configure and a programmable threshold, this event increments when the threshold exceeded a count of 1024 event:0x400ea counters:3 um:zero minimum:10000 name:PM_THRESH_EXC_128 : Architecture provides a thresholding counter in MMCRA, it has a start and stop events to configure and a programmable threshold, this event increments when the threshold exceeded a count of 128 event:0x400ec counters:3 um:zero minimum:10000 name:PM_THRESH_EXC_2048 : Architecture provides a thresholding counter in MMCRA, it has a start and stop events to configure and a programmable threshold, this event increments when the threshold exceeded a count of 2048 event:0x100e8 counters:0 um:zero minimum:10000 name:PM_THRESH_EXC_256 : Architecture provides a thresholding counter in MMCRA, it has a start and stop events to configure and a programmable threshold, this event increments when the threshold exceeded a count of 256 event:0x200e6 counters:1 um:zero minimum:10000 name:PM_THRESH_EXC_32 : Architecture provides a thresholding counter in MMCRA, it has a start and stop events to configure and a programmable threshold, this event increments when the threshold exceeded a count of 32 event:0x100e6 counters:0 um:zero minimum:10000 name:PM_THRESH_EXC_4096 : Architecture provides a thresholding counter in MMCRA, it has a start and stop events to configure and a programmable threshold, this event increments when the threshold exceeded a count of 4096 event:0x200e8 counters:1 um:zero minimum:10000 name:PM_THRESH_EXC_512 : Threshold counter exceeded a value of 512 Architecture provides a thresholding counter in MMCRA, it has a start and stop events to configure and a programmable threshold, this event increments when the threshold exceeded a count of 512 event:0x300e8 counters:2 um:zero minimum:10000 name:PM_THRESH_EXC_64 : Threshold counter exceeded a value of 64 Architecture provides a thresholding counter in MMCRA, it has a start and stop events to configure and a programmable threshold, this event increments when the threshold exceeded a count of 64 event:0x100ec counters:0 um:zero minimum:10000 name:PM_THRESH_MET : Threshold exceeded oprofile-0.9.9/events/ppc64/architected_events_v1/unit_masks0000664000076400007640000000037312175510133021115 00000000000000# # Copyright OProfile authors # Copyright (c) International Business Machines, 2013. # Contributed by Maynard Johnson . # # ppc64 compat mode version 1 possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/ppc64/pa6t/0000775000076400007640000000000012175511557013506 500000000000000oprofile-0.9.9/events/ppc64/pa6t/events0000664000076400007640000000672512175510133014654 00000000000000# ppc64 pa6t events # # Unlike the IBM ppc64 chips, any of pa6t's events can be programmed into any # of the counters (pmc2-5). The notion of groups on pa6t is thus # artificial. That said, we can still define useful aggregations to guide the # user in his choice of group for a profiling session. # Group Default event:0x1 counters:0 um:zero minimum:10000 name:CYCLES : Processor Cycles event:0x3 counters:3 um:zero minimum:10000 name:ISS_CYCLES : Processor Cycles with instructions issued event:0x4 counters:4 um:zero minimum:10000 name:RET_UOP : Retired Micro-operatioins # Group 1, Load/Store event:0x10 counters:0 um:zero minimum:10000 name:GRP1_CYCLES : Processor Cycles event:0x11 counters:1 um:zero minimum:10000 name:GRP1_INST_RETIRED : Instructions retired event:0x12 counters:2 um:zero minimum:1000 name:GRP1_DCACHE_RD_MISS__NS : Dcache read misses NS event:0x13 counters:3 um:zero minimum:500 name:GRP1_MRB_LD_MISS_L2__NS : Load misses filling from memory event:0x14 counters:4 um:zero minimum:500 name:GRP1_MRB_ST_MISS_ALLOC__NS : Store misses in L1D and allocates an MRB entry event:0x15 counters:5 um:zero minimum:500 name:GRP1_TLB_MISS_D__NS : TLB misses NS (D- only) # Group 2, Frontend event:0x20 counters:0 um:zero minimum:10000 name:GRP2_CYCLES : Processor Cycles event:0x21 counters:1 um:zero minimum:10000 name:GRP2_INST_RETIRED : Instructions retired event:0x22 counters:2 um:zero minimum:2000 name:GRP2_FETCH_REQ : Demand fetch requests made to the Icache event:0x23 counters:3 um:zero minimum:500 name:GRP2_ICACHE_MISS_DEM__NS : Demand fetch requests missing in the Icache event:0x24 counters:4 um:zero minimum:500 name:GRP2_ICACHE_MISS_ALL : Demand and spec fetch requests missing in the Icache event:0x25 counters:5 um:zero minimum:2000 name:GRP2_ICACHE_ACC : Icache accesses # Group 3, Branches event:0x30 counters:0 um:zero minimum:10000 name:GRP3_CYCLES : Processor Cycles event:0x31 counters:1 um:zero minimum:10000 name:GRP3_INST_RETIRED : Instructions retired event:0x32 counters:2 um:zero minimum:500 name:GRP3_NXT_LINE_MISPRED__NS : Next fetch address mispredict event:0x33 counters:3 um:zero minimum:500 name:GRP3_DIRN_MISPRED__NS : Branch direction mispredict event:0x34 counters:4 um:zero minimum:500 name:GRP3_TGT_ADDR_MISPRED__NS : Branch target address mispredict event:0x35 counters:5 um:zero minimum:2000 name:GRP3_BRA_TAKEN__NS : Taken branches # Group 4, Translation event:0x40 counters:0 um:zero minimum:10000 name:GRP4_CYCLES : Processor Cycles event:0x41 counters:1 um:zero minimum:10000 name:GRP4_INST_RETIRED : Instructions retired event:0x42 counters:2 um:zero minimum:500 name:GRP4_TLB_MISS_D__NS : TLB Misses (D-) event:0x43 counters:3 um:zero minimum:500 name:GRP4_TLB_MISS_I__NS : TLB MIsses (I-) event:0x44 counters:4 um:zero minimum:500 name:GRP4_DERAT_MISS__NS : DERAT Misses event:0x45 counters:5 um:zero minimum:500 name:GRP4_IERAT_MISS__NS : IERAT Misses # Group 5, Memory event:0x50 counters:0 um:zero minimum:10000 name:GRP5_CYCLES : Processor Cycles event:0x51 counters:1 um:zero minimum:10000 name:GRP5_INST_RETIRED : Instructions retired event:0x52 counters:2 um:zero minimum:500 name:GRP5_DCACHE_RD_MISS__NS : Dcache read misses NS event:0x53 counters:3 um:zero minimum:500 name:GRP5_MRB_LD_MISS_L2__NS : Load misses filling from memory event:0x54 counters:4 um:zero minimum:500 name:GRP5_DCACHE_VIC : Dcache line evicted (snoops not included) event:0x55 counters:5 um:zero minimum:500 name:GRP5_MRB_ST_MISS_ALLOC__NS : Store misses in L1D and allocates an MRB entry oprofile-0.9.9/events/ppc64/pa6t/unit_masks0000664000076400007640000000013412175510133015511 00000000000000# ppc64 pa6t possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/ppc64/pa6t/event_mappings0000664000076400007640000000506312175510133016361 00000000000000# pa6t does not have an mmcra. mmcr0 has all the enables and config # bits. mmcr1 contains the event selectors for the four programmable # events # Group Default event:0x1 mmcr0:0x000000000005b81b mmcr1:0x0000000000949f00 mmcra:0x0 event:0x3 mmcr0:0x000000000005b81b mmcr1:0x0000000000949f00 mmcra:0x0 event:0x4 mmcr0:0x000000000005b81b mmcr1:0x0000000000949f00 mmcra:0x0 # Group 1, Load/Store event:0x10 mmcr0:0x000000000007f83f mmcr1:0x00000000a8c0cab1 mmcra:0x0 event:0x11 mmcr0:0x000000000007f83f mmcr1:0x00000000a8c0cab1 mmcra:0x0 event:0x12 mmcr0:0x000000000007f83f mmcr1:0x00000000a8c0cab1 mmcra:0x0 event:0x13 mmcr0:0x000000000007f83f mmcr1:0x00000000a8c0cab1 mmcra:0x0 event:0x14 mmcr0:0x000000000007f83f mmcr1:0x00000000a8c0cab1 mmcra:0x0 event:0x15 mmcr0:0x000000000007f83f mmcr1:0x00000000a8c0cab1 mmcra:0x0 # Group 2, Frontend event:0x20 mmcr0:0x000000000007f83f mmcr1:0x0000000002058401 mmcra:0x0 event:0x21 mmcr0:0x000000000007f83f mmcr1:0x0000000002058401 mmcra:0x0 event:0x22 mmcr0:0x000000000007f83f mmcr1:0x0000000002058401 mmcra:0x0 event:0x23 mmcr0:0x000000000007f83f mmcr1:0x0000000002058401 mmcra:0x0 event:0x24 mmcr0:0x000000000007f83f mmcr1:0x0000000002058401 mmcra:0x0 event:0x25 mmcr0:0x000000000007f83f mmcr1:0x0000000002058401 mmcra:0x0 # Group 3, Branches event:0x30 mmcr0:0x000000000007f83f mmcr1:0x000000008d8b8988 mmcra:0x0 event:0x31 mmcr0:0x000000000007f83f mmcr1:0x000000008d8b8988 mmcra:0x0 event:0x32 mmcr0:0x000000000007f83f mmcr1:0x000000008d8b8988 mmcra:0x0 event:0x33 mmcr0:0x000000000007f83f mmcr1:0x000000008d8b8988 mmcra:0x0 event:0x34 mmcr0:0x000000000007f83f mmcr1:0x000000008d8b8988 mmcra:0x0 event:0x35 mmcr0:0x000000000007f83f mmcr1:0x000000008d8b8988 mmcra:0x0 # Group 4, Translation event:0x40 mmcr0:0x000000000007f83f mmcr1:0x0000000086baa7a8 mmcra:0x0 event:0x41 mmcr0:0x000000000007f83f mmcr1:0x0000000086baa7a8 mmcra:0x0 event:0x42 mmcr0:0x000000000007f83f mmcr1:0x0000000086baa7a8 mmcra:0x0 event:0x43 mmcr0:0x000000000007f83f mmcr1:0x0000000086baa7a8 mmcra:0x0 event:0x44 mmcr0:0x000000000007f83f mmcr1:0x0000000086baa7a8 mmcra:0x0 event:0x45 mmcr0:0x000000000007f83f mmcr1:0x0000000086baa7a8 mmcra:0x0 # Group 5, Memory event:0x50 mmcr0:0x000000000007f83f mmcr1:0x00000000c030cab1 mmcra:0x0 event:0x51 mmcr0:0x000000000007f83f mmcr1:0x00000000c030cab1 mmcra:0x0 event:0x52 mmcr0:0x000000000007f83f mmcr1:0x00000000c030cab1 mmcra:0x0 event:0x53 mmcr0:0x000000000007f83f mmcr1:0x00000000c030cab1 mmcra:0x0 event:0x54 mmcr0:0x000000000007f83f mmcr1:0x00000000c030cab1 mmcra:0x0 event:0x55 mmcr0:0x000000000007f83f mmcr1:0x00000000c030cab1 mmcra:0x0 oprofile-0.9.9/events/ppc64/ibm-compat-v1/0000775000076400007640000000000012175511557015210 500000000000000oprofile-0.9.9/events/ppc64/ibm-compat-v1/events0000664000076400007640000001670512175510133016355 00000000000000#PPC64 pmu-compat events, version 1 # # Copyright OProfile authors # Copyright (c) International Business Machines, 2009. # Contributed by Maynard Johnson . # # # Within each group, the event names must be unique. Each event in a group is # assigned to a unique counter. # # Only events within the same group can be selected simultaneously. # Each event is given a unique event number. The event number is used by the # OProfile code to resolve event names for the post-processing. This is done # to preserve compatibility with the rest of the OProfile code. The event # numbers are formatted as follows: concat(). #Group Default event:0X001 counters:2 um:zero minimum:10000 name:CYCLES : Processor Cycles #Group 1 pm_compat_utilization1, Basic CPU utilization event:0X0010 counters:0 um:zero minimum:1000 name:PM_THRD_ONE_RUN_CYC_GRP1 : (Group 1 pm_compat_utilization1) At least one thread in run cycles event:0X0011 counters:1 um:zero minimum:10000 name:PM_RUN_CYC_GRP1 : (Group 1 pm_compat_utilization1) Run cycles event:0X0012 counters:2 um:zero minimum:10000 name:PM_CYC_GRP1 : (Group 1 pm_compat_utilization1) Processor cycles event:0X0013 counters:3 um:zero minimum:1000 name:PM_RUN_PURR_GRP1 : (Group 1 pm_compat_utilization1) Run PURR Even #Group 2 pm_compat_utilization2, CPI and utilization data event:0X0020 counters:0 um:zero minimum:1000 name:PM_FPU_FLOP_GRP2 : (Group 2 pm_compat_utilization2) FPU executed 1FLOP, FMA, FSQRT or FDIV instruction event:0X0021 counters:1 um:zero minimum:10000 name:PM_RUN_CYC_GRP2 : (Group 2 pm_compat_utilization2) Run cycles event:0X0022 counters:2 um:zero minimum:10000 name:PM_CYC_GRP2 : (Group 2 pm_compat_utilization2) Processor cycles event:0X0023 counters:3 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP2 : (Group 2 pm_compat_utilization2) Run instructions completed #Group 3 pm_compat_dsource, Data Access sources event:0X0030 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L1-5_GRP3 : (Group 3 pm_compat_dsource) Data loaded from L1.5 event:0X0031 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_L2MISS_GRP3 : (Group 3 pm_compat_dsource) Data loaded missed L2 event:0X0032 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_L3MISS_GRP3 : (Group 3 pm_compat_dsource) Data loaded from private L3 miss event:0X0033 counters:3 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP3 : (Group 3 pm_compat_dsource) Run instructions completed #Group 4 pm_compat_l1_dcache_load_store_miss, L1 D-Cache load/store miss event:0X0040 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP4 : (Group 4 pm_compat_l1_dcache_load_store_miss) Instruction completed event:0X0041 counters:1 um:zero minimum:1000 name:PM_ST_FIN_GRP4 : (Group 4 pm_compat_l1_dcache_load_store_miss) Store instructions finished event:0X0042 counters:2 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP4 : (Group 4 pm_compat_l1_dcache_load_store_miss) L1 D cache store misses event:0X0043 counters:3 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP4 : (Group 4 pm_compat_l1_dcache_load_store_miss) L1 D cache load misses #Group 5 pm_compat_l1_cache_load, L1 Cache loads event:0X0050 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP5 : (Group 5 pm_compat_l1_cache_load) Instruction completed event:0X0051 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_L2MISS_GRP5 : (Group 5 pm_compat_l1_cache_load) Data loaded missed L2 event:0X0052 counters:2 um:zero minimum:1000 name:PM_L1_DCACHE_RELOAD_VALID_GRP5 : (Group 5 pm_compat_l1_cache_load) L1 reload data source valid event:0X0053 counters:3 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP5 : (Group 5 pm_compat_l1_cache_load) L1 D cache load misses #Group 6 pm_compat_instruction_directory, Instruction Directory event:0X0060 counters:0 um:zero minimum:1000 name:PM_IERAT_MISS_GRP6 : (Group 6 pm_compat_instruction_directory) IERAT miss coun event:0X0061 counters:1 um:zero minimum:1000 name:PM_L1_ICACHE_MISS_GRP6 : (Group 6 pm_compat_instruction_directory) L1 I cache miss coun event:0X0062 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP6 : (Group 6 pm_compat_instruction_directory) Instruction completed event:0X0063 counters:3 um:zero minimum:1000 name:PM_ITLB_MISS_GRP6 : (Group 6 pm_compat_instruction_directory) Instruction TLB misses #Group 7 pm_compat_data_directory, Data Directory event:0X0070 counters:0 um:zero minimum:1000 name:PM_LSU_DERAT_MISS_CYC_GRP7 : (Group 7 pm_compat_data_directory) DERAT miss latency event:0X0071 counters:1 um:zero minimum:1000 name:PM_LSU_DERAT_MISS_GRP7 : (Group 7 pm_compat_data_directory) DERAT misses event:0X0072 counters:2 um:zero minimum:1000 name:PM_DTLB_MISS_GRP7 : (Group 7 pm_compat_data_directory) Data TLB misses event:0X0073 counters:3 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP7 : (Group 7 pm_compat_data_directory) Run instructions completed #Group 8 pm_compat_cpi_1plus_ppc, Misc CPI and utilization data event:0X0080 counters:0 um:zero minimum:1000 name:PM_1PLUS_PPC_CMPL_GRP8 : (Group 8 pm_compat_cpi_1plus_ppc) One or more PPC instruction completed event:0X0081 counters:1 um:zero minimum:10000 name:PM_RUN_CYC_GRP8 : (Group 8 pm_compat_cpi_1plus_ppc) Run cycles event:0X0082 counters:2 um:zero minimum:1000 name:PM_INST_DISP_GRP8 : (Group 8 pm_compat_cpi_1plus_ppc) Instructions dispatched event:0X0083 counters:3 um:zero minimum:1000 name:PM_1PLUS_PPC_DISP_GRP8 : (Group 8 pm_compat_cpi_1plus_ppc) Cycles at least one instruction dispatched #Group 9 pm_compat_misc_events1, Misc Events event:0X0090 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP9 : (Group 9 pm_compat_misc_events1) Instruction completed event:0X0091 counters:1 um:zero minimum:1000 name:PM_EXT_INT_GRP9 : (Group 9 pm_compat_misc_events1) External interrupts event:0X0092 counters:2 um:zero minimum:1000 name:PM_TB_BIT_TRANS_GRP9 : (Group 9 pm_compat_misc_events1) Time Base bit transition event:0X0093 counters:3 um:zero minimum:10000 name:PM_CYC_GRP9 : (Group 9 pm_compat_misc_events1) Processor cycles #Group 10 pm_compat_misc_events2, Misc Events event:0X00A0 counters:0 um:zero minimum:1000 name:PM_INST_IMC_MATCH_CMPL_GRP10 : (Group 10 pm_compat_misc_events2) IMC matched instructions completed event:0X00A1 counters:1 um:zero minimum:1000 name:PM_INST_DISP_GRP10 : (Group 10 pm_compat_misc_events2) Instructions dispatched event:0X00A2 counters:2 um:zero minimum:1000 name:PM_THRD_CONC_RUN_INST_GRP10 : (Group 10 pm_compat_misc_events2) Concurrent run instructions event:0X00A3 counters:3 um:zero minimum:1000 name:PM_FLUSH_GRP10 : (Group 10 pm_compat_misc_events2) Flushes #Group 11 pm_compat_misc_events3, Misc Events event:0X00B0 counters:0 um:zero minimum:1000 name:PM_GCT_EMPTY_CYC_GRP11 : (Group 11 pm_compat_misc_events3) Cycles GCT empty event:0X00B1 counters:1 um:zero minimum:1000 name:PM_INST_DISP_GRP11 : (Group 11 pm_compat_misc_events3) Instructions dispatched event:0X00B2 counters:2 um:zero minimum:1000 name:PM_TB_BIT_TRANS_GRP11 : (Group 11 pm_compat_misc_events3) Time Base bit transition event:0X00B3 counters:3 um:zero minimum:1000 name:PM_BR_MPRED_GRP11 : (Group 11 pm_compat_misc_events3) Branches incorrectly predicted #Group 12 pm_compat_suspend, Suspend Events event:0X00C0 counters:0 um:zero minimum:1000 name:PM_SUSPENDED_GRP12 : (Group 12 pm_compat_suspend) Suspended event:0X00C1 counters:1 um:zero minimum:1000 name:PM_SUSPENDED_GRP12 : (Group 12 pm_compat_suspend) Suspended event:0X00C2 counters:2 um:zero minimum:1000 name:PM_SUSPENDED_GRP12 : (Group 12 pm_compat_suspend) Suspended event:0X00C3 counters:3 um:zero minimum:1000 name:PM_SUSPENDED_GRP12 : (Group 12 pm_compat_suspend) Suspended oprofile-0.9.9/events/ppc64/ibm-compat-v1/unit_masks0000664000076400007640000000037312175510133017220 00000000000000# # Copyright OProfile authors # Copyright (c) International Business Machines, 2009. # Contributed by Maynard Johnson . # # ppc64 compat mode version 1 possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/ppc64/ibm-compat-v1/event_mappings0000664000076400007640000001051112175510133020055 00000000000000#PPC64 pmu-compat event mappings, version 1 # # Copyright OProfile authors # Copyright (c) International Business Machines, 2009. # Contributed by Maynard Johnson . # #Mapping of event groups to MMCR values #Group Default event:0X001 mmcr0:0X00000000 mmcr1:0X00000000FAF41EF4 mmcra:0X00000000 #Group 1 pm_compat_utilization1, Basic CPU utilization event:0X0010 mmcr0:0X00000000 mmcr1:0X00000000FAF41EF4 mmcra:0X00000000 event:0X0011 mmcr0:0X00000000 mmcr1:0X00000000FAF41EF4 mmcra:0X00000000 event:0X0012 mmcr0:0X00000000 mmcr1:0X00000000FAF41EF4 mmcra:0X00000000 event:0X0013 mmcr0:0X00000000 mmcr1:0X00000000FAF41EF4 mmcra:0X00000000 #Group 2 pm_compat_utilization2, CPI and utilization data event:0X0020 mmcr0:0X00000000 mmcr1:0X00000000F4F41EFA mmcra:0X00000000 event:0X0021 mmcr0:0X00000000 mmcr1:0X00000000F4F41EFA mmcra:0X00000000 event:0X0022 mmcr0:0X00000000 mmcr1:0X00000000F4F41EFA mmcra:0X00000000 event:0X0023 mmcr0:0X00000000 mmcr1:0X00000000F4F41EFA mmcra:0X00000000 #Group 3 pm_compat_dsource, Data Access sources event:0X0030 mmcr0:0X00000000 mmcr1:0X00000000FEFEFEFA mmcra:0X00000000 event:0X0031 mmcr0:0X00000000 mmcr1:0X00000000FEFEFEFA mmcra:0X00000000 event:0X0032 mmcr0:0X00000000 mmcr1:0X00000000FEFEFEFA mmcra:0X00000000 event:0X0033 mmcr0:0X00000000 mmcr1:0X00000000FEFEFEFA mmcra:0X00000000 #Group 4 pm_compat_l1_dcache_load_store_miss, L1 D-Cache load/store miss event:0X0040 mmcr0:0X00000000 mmcr1:0X0000000002F0F0F0 mmcra:0X00000000 event:0X0041 mmcr0:0X00000000 mmcr1:0X0000000002F0F0F0 mmcra:0X00000000 event:0X0042 mmcr0:0X00000000 mmcr1:0X0000000002F0F0F0 mmcra:0X00000000 event:0X0043 mmcr0:0X00000000 mmcr1:0X0000000002F0F0F0 mmcra:0X00000000 #Group 5 pm_compat_l1_cache_load, L1 Cache loads event:0X0050 mmcr0:0X00000000 mmcr1:0X0000000002FEF6F0 mmcra:0X00000000 event:0X0051 mmcr0:0X00000000 mmcr1:0X0000000002FEF6F0 mmcra:0X00000000 event:0X0052 mmcr0:0X00000000 mmcr1:0X0000000002FEF6F0 mmcra:0X00000000 event:0X0053 mmcr0:0X00000000 mmcr1:0X0000000002FEF6F0 mmcra:0X00000000 #Group 6 pm_compat_instruction_directory, Instruction Directory event:0X0060 mmcr0:0X00000000 mmcr1:0X00000000F6FC02FC mmcra:0X00000000 event:0X0061 mmcr0:0X00000000 mmcr1:0X00000000F6FC02FC mmcra:0X00000000 event:0X0062 mmcr0:0X00000000 mmcr1:0X00000000F6FC02FC mmcra:0X00000000 event:0X0063 mmcr0:0X00000000 mmcr1:0X00000000F6FC02FC mmcra:0X00000000 #Group 7 pm_compat_data_directory, Data Directory event:0X0070 mmcr0:0X00000000 mmcr1:0X00000000FCF6FCFA mmcra:0X00000000 event:0X0071 mmcr0:0X00000000 mmcr1:0X00000000FCF6FCFA mmcra:0X00000000 event:0X0072 mmcr0:0X00000000 mmcr1:0X00000000FCF6FCFA mmcra:0X00000000 event:0X0073 mmcr0:0X00000000 mmcr1:0X00000000FCF6FCFA mmcra:0X00000000 #Group 8 pm_compat_cpi_1plus_ppc, Misc CPI and utilization data event:0X0080 mmcr0:0X00000000 mmcr1:0X00000000F2F4F2F2 mmcra:0X00000000 event:0X0081 mmcr0:0X00000000 mmcr1:0X00000000F2F4F2F2 mmcra:0X00000000 event:0X0082 mmcr0:0X00000000 mmcr1:0X00000000F2F4F2F2 mmcra:0X00000000 event:0X0083 mmcr0:0X00000000 mmcr1:0X00000000F2F4F2F2 mmcra:0X00000000 #Group 9 pm_compat_misc_events1, Misc Events event:0X0090 mmcr0:0X00000000 mmcr1:0X0000000002F8F81E mmcra:0X00000000 event:0X0091 mmcr0:0X00000000 mmcr1:0X0000000002F8F81E mmcra:0X00000000 event:0X0092 mmcr0:0X00000000 mmcr1:0X0000000002F8F81E mmcra:0X00000000 event:0X0093 mmcr0:0X00000000 mmcr1:0X0000000002F8F81E mmcra:0X00000000 #Group 10 pm_compat_misc_events2, Misc Events event:0X00A0 mmcr0:0X00000000 mmcr1:0X00000000F0F2F4F8 mmcra:0X00000000 event:0X00A1 mmcr0:0X00000000 mmcr1:0X00000000F0F2F4F8 mmcra:0X00000000 event:0X00A2 mmcr0:0X00000000 mmcr1:0X00000000F0F2F4F8 mmcra:0X00000000 event:0X00A3 mmcr0:0X00000000 mmcr1:0X00000000F0F2F4F8 mmcra:0X00000000 #Group 11 pm_compat_misc_events3, Misc Events event:0X00B0 mmcr0:0X00000000 mmcr1:0X00000000F8F2F8F6 mmcra:0X00000000 event:0X00B1 mmcr0:0X00000000 mmcr1:0X00000000F8F2F8F6 mmcra:0X00000000 event:0X00B2 mmcr0:0X00000000 mmcr1:0X00000000F8F2F8F6 mmcra:0X00000000 event:0X00B3 mmcr0:0X00000000 mmcr1:0X00000000F8F2F8F6 mmcra:0X00000000 #Group 12 pm_compat_suspend, Suspend Events event:0X00C0 mmcr0:0X00000000 mmcr1:0X0000000000000000 mmcra:0X00000000 event:0X00C1 mmcr0:0X00000000 mmcr1:0X0000000000000000 mmcra:0X00000000 event:0X00C2 mmcr0:0X00000000 mmcr1:0X0000000000000000 mmcra:0X00000000 event:0X00C3 mmcr0:0X00000000 mmcr1:0X0000000000000000 mmcra:0X00000000 oprofile-0.9.9/events/ppc64/power5+/0000775000076400007640000000000012175511557014130 500000000000000oprofile-0.9.9/events/ppc64/power5+/events0000664000076400007640000036300712175510133015275 00000000000000#PPC64 Power5+ events # # Within each group the event names must be unique. Each event in a group is # assigned to a unique counter. The groups are from the groups defined in the # Performance Monitor Unit user guide for this processor. # # Only events within the same group can be selected simultaneously when # using legacy opcontrol to do profiling. When profiling with operf, # events from different groups may be specified, and the Linux Performance # Events Kernel Subsystem code will handle the necessary multiplexing. # # Each event is given a unique event number. The event number is used by the # OProfile code to resolve event names for the post-processing. This is done # to preserve compatibility with the rest of the OProfile code. The event # numbers are formatted as follows: concat(). #Group Default event:0X001 counters:3 um:zero minimum:10000 name:CYCLES : Processor Cycles using continuous sampling #Group 1 pm_utilization, CPI and utilization data event:0X010 counters:0 um:zero minimum:10000 name:PM_RUN_CYC_GRP1 : (Group 1 pm_utilization) Run cycles event:0X011 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP1 : (Group 1 pm_utilization) Instructions completed event:0X012 counters:2 um:zero minimum:1000 name:PM_INST_DISP_GRP1 : (Group 1 pm_utilization) Instructions dispatched event:0X013 counters:3 um:zero minimum:10000 name:PM_CYC_GRP1 : (Group 1 pm_utilization) Processor cycles event:0X014 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP1 : (Group 1 pm_utilization) Run instructions completed event:0X015 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP1 : (Group 1 pm_utilization) Run cycles #Group 2 pm_completion, Completion and cycle counts event:0X020 counters:0 um:zero minimum:1000 name:PM_1PLUS_PPC_CMPL_GRP2 : (Group 2 pm_completion) One or more PPC instruction completed event:0X021 counters:1 um:zero minimum:1000 name:PM_GCT_EMPTY_CYC_GRP2 : (Group 2 pm_completion) Cycles GCT empty event:0X022 counters:2 um:zero minimum:1000 name:PM_GRP_CMPL_GRP2 : (Group 2 pm_completion) Group completed event:0X023 counters:3 um:zero minimum:10000 name:PM_CYC_GRP2 : (Group 2 pm_completion) Processor cycles event:0X024 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP2 : (Group 2 pm_completion) Run instructions completed event:0X025 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP2 : (Group 2 pm_completion) Run cycles #Group 3 pm_group_dispatch, Group dispatch events event:0X030 counters:0 um:zero minimum:1000 name:PM_GRP_DISP_VALID_GRP3 : (Group 3 pm_group_dispatch) Group dispatch valid event:0X031 counters:1 um:zero minimum:1000 name:PM_GRP_DISP_REJECT_GRP3 : (Group 3 pm_group_dispatch) Group dispatch rejected event:0X032 counters:2 um:zero minimum:1000 name:PM_GRP_DISP_BLK_SB_CYC_GRP3 : (Group 3 pm_group_dispatch) Cycles group dispatch blocked by scoreboard event:0X033 counters:3 um:zero minimum:1000 name:PM_INST_DISP_GRP3 : (Group 3 pm_group_dispatch) Instructions dispatched event:0X034 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP3 : (Group 3 pm_group_dispatch) Run instructions completed event:0X035 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP3 : (Group 3 pm_group_dispatch) Run cycles #Group 4 pm_clb1, CLB fullness event:0X040 counters:0 um:zero minimum:1000 name:PM_0INST_CLB_CYC_GRP4 : (Group 4 pm_clb1) Cycles no instructions in CLB event:0X041 counters:1 um:zero minimum:1000 name:PM_2INST_CLB_CYC_GRP4 : (Group 4 pm_clb1) Cycles 2 instructions in CLB event:0X042 counters:2 um:zero minimum:1000 name:PM_CLB_EMPTY_CYC_GRP4 : (Group 4 pm_clb1) Cycles CLB empty event:0X043 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L35_MOD_CYC_GRP4 : (Group 4 pm_clb1) Marked load latency from L3.5 modified event:0X044 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP4 : (Group 4 pm_clb1) Run instructions completed event:0X045 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP4 : (Group 4 pm_clb1) Run cycles #Group 5 pm_clb2, CLB fullness event:0X050 counters:0 um:zero minimum:1000 name:PM_5INST_CLB_CYC_GRP5 : (Group 5 pm_clb2) Cycles 5 instructions in CLB event:0X051 counters:1 um:zero minimum:1000 name:PM_6INST_CLB_CYC_GRP5 : (Group 5 pm_clb2) Cycles 6 instructions in CLB event:0X052 counters:2 um:zero minimum:1000 name:PM_MRK_LSU_SRQ_INST_VALID_GRP5 : (Group 5 pm_clb2) Marked instruction valid in SRQ event:0X053 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP5 : (Group 5 pm_clb2) IOPS instructions completed event:0X054 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP5 : (Group 5 pm_clb2) Run instructions completed event:0X055 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP5 : (Group 5 pm_clb2) Run cycles #Group 6 pm_gct_empty, GCT empty reasons event:0X060 counters:0 um:zero minimum:1000 name:PM_GCT_NOSLOT_CYC_GRP6 : (Group 6 pm_gct_empty) Cycles no GCT slot allocated event:0X061 counters:1 um:zero minimum:1000 name:PM_GCT_NOSLOT_IC_MISS_GRP6 : (Group 6 pm_gct_empty) No slot in GCT caused by I cache miss event:0X062 counters:2 um:zero minimum:1000 name:PM_GCT_NOSLOT_SRQ_FULL_GRP6 : (Group 6 pm_gct_empty) No slot in GCT caused by SRQ full event:0X063 counters:3 um:zero minimum:1000 name:PM_GCT_NOSLOT_BR_MPRED_GRP6 : (Group 6 pm_gct_empty) No slot in GCT caused by branch mispredict event:0X064 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP6 : (Group 6 pm_gct_empty) Run instructions completed event:0X065 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP6 : (Group 6 pm_gct_empty) Run cycles #Group 7 pm_gct_usage, GCT Usage event:0X070 counters:0 um:zero minimum:1000 name:PM_GCT_USAGE_00to59_CYC_GRP7 : (Group 7 pm_gct_usage) Cycles GCT less than 60% full event:0X071 counters:1 um:zero minimum:1000 name:PM_GCT_USAGE_60to79_CYC_GRP7 : (Group 7 pm_gct_usage) Cycles GCT 60-79% full event:0X072 counters:2 um:zero minimum:1000 name:PM_GCT_USAGE_80to99_CYC_GRP7 : (Group 7 pm_gct_usage) Cycles GCT 80-99% full event:0X073 counters:3 um:zero minimum:1000 name:PM_GCT_FULL_CYC_GRP7 : (Group 7 pm_gct_usage) Cycles GCT full event:0X074 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP7 : (Group 7 pm_gct_usage) Run instructions completed event:0X075 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP7 : (Group 7 pm_gct_usage) Run cycles #Group 8 pm_lsu1, LSU LRQ and LMQ events event:0X080 counters:0 um:zero minimum:1000 name:PM_LSU_LRQ_S0_ALLOC_GRP8 : (Group 8 pm_lsu1) LRQ slot 0 allocated event:0X081 counters:1 um:zero minimum:1000 name:PM_LSU_LRQ_S0_VALID_GRP8 : (Group 8 pm_lsu1) LRQ slot 0 valid event:0X082 counters:2 um:zero minimum:1000 name:PM_LSU_LMQ_S0_ALLOC_GRP8 : (Group 8 pm_lsu1) LMQ slot 0 allocated event:0X083 counters:3 um:zero minimum:1000 name:PM_LSU_LMQ_S0_VALID_GRP8 : (Group 8 pm_lsu1) LMQ slot 0 valid event:0X084 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP8 : (Group 8 pm_lsu1) Run instructions completed event:0X085 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP8 : (Group 8 pm_lsu1) Run cycles #Group 9 pm_lsu2, LSU SRQ events event:0X090 counters:0 um:zero minimum:1000 name:PM_LSU_SRQ_S0_ALLOC_GRP9 : (Group 9 pm_lsu2) SRQ slot 0 allocated event:0X091 counters:1 um:zero minimum:1000 name:PM_LSU_SRQ_S0_VALID_GRP9 : (Group 9 pm_lsu2) SRQ slot 0 valid event:0X092 counters:2 um:zero minimum:1000 name:PM_LSU_SRQ_SYNC_CYC_GRP9 : (Group 9 pm_lsu2) SRQ sync duration event:0X093 counters:3 um:zero minimum:1000 name:PM_LSU_SRQ_FULL_CYC_GRP9 : (Group 9 pm_lsu2) Cycles SRQ full event:0X094 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP9 : (Group 9 pm_lsu2) Run instructions completed event:0X095 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP9 : (Group 9 pm_lsu2) Run cycles #Group 10 pm_lsu3, LSU SRQ and LMQ events event:0X0A0 counters:0 um:zero minimum:1000 name:PM_LSU_LMQ_LHR_MERGE_GRP10 : (Group 10 pm_lsu3) LMQ LHR merges event:0X0A1 counters:1 um:zero minimum:1000 name:PM_LSU_SRQ_STFWD_GRP10 : (Group 10 pm_lsu3) SRQ store forwarded event:0X0A2 counters:2 um:zero minimum:1000 name:PM_LSU_LMQ_SRQ_EMPTY_CYC_GRP10 : (Group 10 pm_lsu3) Cycles LMQ and SRQ empty event:0X0A3 counters:3 um:zero minimum:1000 name:PM_LSU_SRQ_EMPTY_CYC_GRP10 : (Group 10 pm_lsu3) Cycles SRQ empty event:0X0A4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP10 : (Group 10 pm_lsu3) Run instructions completed event:0X0A5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP10 : (Group 10 pm_lsu3) Run cycles #Group 11 pm_lsu4, LSU SRQ and LMQ events event:0X0B0 counters:0 um:zero minimum:1000 name:PM_LSU_LMQ_FULL_CYC_GRP11 : (Group 11 pm_lsu4) Cycles LMQ full event:0X0B1 counters:1 um:zero minimum:1000 name:PM_LSU_SRQ_FULL_CYC_GRP11 : (Group 11 pm_lsu4) Cycles SRQ full event:0X0B2 counters:2 um:zero minimum:1000 name:PM_LSU_LMQ_SRQ_EMPTY_CYC_GRP11 : (Group 11 pm_lsu4) Cycles LMQ and SRQ empty event:0X0B3 counters:3 um:zero minimum:1000 name:PM_LSU_SRQ_EMPTY_CYC_GRP11 : (Group 11 pm_lsu4) Cycles SRQ empty event:0X0B4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP11 : (Group 11 pm_lsu4) Run instructions completed event:0X0B5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP11 : (Group 11 pm_lsu4) Run cycles #Group 12 pm_prefetch1, Prefetch stream allocation event:0X0C0 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L2MISS_GRP12 : (Group 12 pm_prefetch1) Instructions fetched missed L2 event:0X0C1 counters:1 um:zero minimum:1000 name:PM_INST_FETCH_CYC_GRP12 : (Group 12 pm_prefetch1) Cycles at least 1 instruction fetched event:0X0C2 counters:2 um:zero minimum:1000 name:PM_DC_OUT_OF_STREAMS_GRP12 : (Group 12 pm_prefetch1) LSU Data prefetch out of streams event:0X0C3 counters:3 um:zero minimum:1000 name:PM_DC_PREF_STREAM_ALLOC_GRP12 : (Group 12 pm_prefetch1) D cache new prefetch stream allocated event:0X0C4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP12 : (Group 12 pm_prefetch1) Run instructions completed event:0X0C5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP12 : (Group 12 pm_prefetch1) Run cycles #Group 13 pm_prefetch2, Prefetch events event:0X0D0 counters:0 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP13 : (Group 13 pm_prefetch2) IOPS instructions completed event:0X0D1 counters:1 um:zero minimum:1000 name:PM_CLB_FULL_CYC_GRP13 : (Group 13 pm_prefetch2) Cycles CLB full event:0X0D2 counters:2 um:zero minimum:1000 name:PM_L1_PREF_GRP13 : (Group 13 pm_prefetch2) L1 cache data prefetches event:0X0D3 counters:3 um:zero minimum:1000 name:PM_IC_PREF_INSTALL_GRP13 : (Group 13 pm_prefetch2) Instruction prefetched installed in prefetch event:0X0D4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP13 : (Group 13 pm_prefetch2) Run instructions completed event:0X0D5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP13 : (Group 13 pm_prefetch2) Run cycles #Group 14 pm_prefetch3, L2 prefetch and misc events event:0X0E0 counters:0 um:zero minimum:1000 name:PM_1INST_CLB_CYC_GRP14 : (Group 14 pm_prefetch3) Cycles 1 instruction in CLB event:0X0E1 counters:1 um:zero minimum:1000 name:PM_LSU_BUSY_REJECT_GRP14 : (Group 14 pm_prefetch3) LSU busy due to reject event:0X0E2 counters:2 um:zero minimum:1000 name:PM_L2_PREF_GRP14 : (Group 14 pm_prefetch3) L2 cache prefetches event:0X0E3 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP14 : (Group 14 pm_prefetch3) IOPS instructions completed event:0X0E4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP14 : (Group 14 pm_prefetch3) Run instructions completed event:0X0E5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP14 : (Group 14 pm_prefetch3) Run cycles #Group 15 pm_prefetch4, Misc prefetch and reject events event:0X0F0 counters:0 um:zero minimum:1000 name:PM_LSU0_REJECT_SRQ_LHS_GRP15 : (Group 15 pm_prefetch4) LSU0 SRQ rejects event:0X0F1 counters:1 um:zero minimum:1000 name:PM_LSU1_REJECT_SRQ_LHS_GRP15 : (Group 15 pm_prefetch4) LSU1 SRQ rejects event:0X0F2 counters:2 um:zero minimum:1000 name:PM_DC_PREF_DST_GRP15 : (Group 15 pm_prefetch4) DST (Data Stream Touch) stream start event:0X0F3 counters:3 um:zero minimum:1000 name:PM_L2_PREF_GRP15 : (Group 15 pm_prefetch4) L2 cache prefetches event:0X0F4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP15 : (Group 15 pm_prefetch4) Run instructions completed event:0X0F5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP15 : (Group 15 pm_prefetch4) Run cycles #Group 16 pm_lsu_reject1, LSU reject events event:0X100 counters:0 um:zero minimum:1000 name:PM_LSU_REJECT_ERAT_MISS_GRP16 : (Group 16 pm_lsu_reject1) LSU reject due to ERAT miss event:0X101 counters:1 um:zero minimum:1000 name:PM_LSU_REJECT_LMQ_FULL_GRP16 : (Group 16 pm_lsu_reject1) LSU reject due to LMQ full or missed data coming event:0X102 counters:2 um:zero minimum:1000 name:PM_FLUSH_IMBAL_GRP16 : (Group 16 pm_lsu_reject1) Flush caused by thread GCT imbalance event:0X103 counters:3 um:zero minimum:1000 name:PM_MRK_LSU_FLUSH_SRQ_GRP16 : (Group 16 pm_lsu_reject1) Marked SRQ flushes event:0X104 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP16 : (Group 16 pm_lsu_reject1) Run instructions completed event:0X105 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP16 : (Group 16 pm_lsu_reject1) Run cycles #Group 17 pm_lsu_reject2, LSU rejects due to reload CDF or tag update collision event:0X110 counters:0 um:zero minimum:1000 name:PM_LSU0_REJECT_RELOAD_CDF_GRP17 : (Group 17 pm_lsu_reject2) LSU0 reject due to reload CDF or tag update collision event:0X111 counters:1 um:zero minimum:1000 name:PM_LSU1_REJECT_RELOAD_CDF_GRP17 : (Group 17 pm_lsu_reject2) LSU1 reject due to reload CDF or tag update collision event:0X112 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP17 : (Group 17 pm_lsu_reject2) IOPS instructions completed event:0X113 counters:3 um:zero minimum:1000 name:PM_L1_WRITE_CYC_GRP17 : (Group 17 pm_lsu_reject2) Cycles writing to instruction L1 event:0X114 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP17 : (Group 17 pm_lsu_reject2) Run instructions completed event:0X115 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP17 : (Group 17 pm_lsu_reject2) Run cycles #Group 18 pm_lsu_reject3, LSU rejects due to ERAT, held instuctions event:0X120 counters:0 um:zero minimum:1000 name:PM_LSU0_REJECT_ERAT_MISS_GRP18 : (Group 18 pm_lsu_reject3) LSU0 reject due to ERAT miss event:0X121 counters:1 um:zero minimum:1000 name:PM_LSU1_REJECT_ERAT_MISS_GRP18 : (Group 18 pm_lsu_reject3) LSU1 reject due to ERAT miss event:0X122 counters:2 um:zero minimum:1000 name:PM_LWSYNC_HELD_GRP18 : (Group 18 pm_lsu_reject3) LWSYNC held at dispatch event:0X123 counters:3 um:zero minimum:1000 name:PM_TLBIE_HELD_GRP18 : (Group 18 pm_lsu_reject3) TLBIE held at dispatch event:0X124 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP18 : (Group 18 pm_lsu_reject3) Run instructions completed event:0X125 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP18 : (Group 18 pm_lsu_reject3) Run cycles #Group 19 pm_lsu_reject4, LSU0/1 reject LMQ full event:0X130 counters:0 um:zero minimum:1000 name:PM_LSU0_REJECT_LMQ_FULL_GRP19 : (Group 19 pm_lsu_reject4) LSU0 reject due to LMQ full or missed data coming event:0X131 counters:1 um:zero minimum:1000 name:PM_LSU1_REJECT_LMQ_FULL_GRP19 : (Group 19 pm_lsu_reject4) LSU1 reject due to LMQ full or missed data coming event:0X132 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP19 : (Group 19 pm_lsu_reject4) IOPS instructions completed event:0X133 counters:3 um:zero minimum:1000 name:PM_BR_ISSUED_GRP19 : (Group 19 pm_lsu_reject4) Branches issued event:0X134 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP19 : (Group 19 pm_lsu_reject4) Run instructions completed event:0X135 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP19 : (Group 19 pm_lsu_reject4) Run cycles #Group 20 pm_lsu_reject5, LSU misc reject and flush events event:0X140 counters:0 um:zero minimum:1000 name:PM_LSU_REJECT_SRQ_LHS_GRP20 : (Group 20 pm_lsu_reject5) LSU SRQ rejects event:0X141 counters:1 um:zero minimum:1000 name:PM_LSU_REJECT_RELOAD_CDF_GRP20 : (Group 20 pm_lsu_reject5) LSU reject due to reload CDF or tag update collision event:0X142 counters:2 um:zero minimum:1000 name:PM_LSU_FLUSH_GRP20 : (Group 20 pm_lsu_reject5) Flush initiated by LSU event:0X143 counters:3 um:zero minimum:1000 name:PM_FLUSH_GRP20 : (Group 20 pm_lsu_reject5) Flushes event:0X144 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP20 : (Group 20 pm_lsu_reject5) Run instructions completed event:0X145 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP20 : (Group 20 pm_lsu_reject5) Run cycles #Group 21 pm_flush1, Misc flush events event:0X150 counters:0 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP21 : (Group 21 pm_flush1) IOPS instructions completed event:0X151 counters:1 um:zero minimum:1000 name:PM_LSU_FLUSH_UST_GRP21 : (Group 21 pm_flush1) SRQ unaligned store flushes event:0X152 counters:2 um:zero minimum:1000 name:PM_FLUSH_IMBAL_GRP21 : (Group 21 pm_flush1) Flush caused by thread GCT imbalance event:0X153 counters:3 um:zero minimum:1000 name:PM_DC_INV_L2_GRP21 : (Group 21 pm_flush1) L1 D cache entries invalidated from L2 event:0X154 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP21 : (Group 21 pm_flush1) Run instructions completed event:0X155 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP21 : (Group 21 pm_flush1) Run cycles #Group 22 pm_flush2, Flushes due to scoreboard and sync event:0X160 counters:0 um:zero minimum:1000 name:PM_ITLB_MISS_GRP22 : (Group 22 pm_flush2) Instruction TLB misses event:0X161 counters:1 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP22 : (Group 22 pm_flush2) IOPS instructions completed event:0X162 counters:2 um:zero minimum:1000 name:PM_FLUSH_SB_GRP22 : (Group 22 pm_flush2) Flush caused by scoreboard operation event:0X163 counters:3 um:zero minimum:1000 name:PM_FLUSH_SYNC_GRP22 : (Group 22 pm_flush2) Flush caused by sync event:0X164 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP22 : (Group 22 pm_flush2) Run instructions completed event:0X165 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP22 : (Group 22 pm_flush2) Run cycles #Group 23 pm_lsu_flush_srq_lrq, LSU flush by SRQ and LRQ events event:0X170 counters:0 um:zero minimum:1000 name:PM_LSU_FLUSH_SRQ_GRP23 : (Group 23 pm_lsu_flush_srq_lrq) SRQ flushes event:0X171 counters:1 um:zero minimum:1000 name:PM_LSU_FLUSH_LRQ_GRP23 : (Group 23 pm_lsu_flush_srq_lrq) LRQ flushes event:0X172 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP23 : (Group 23 pm_lsu_flush_srq_lrq) IOPS instructions completed event:0X173 counters:3 um:zero minimum:1000 name:PM_LSU_FLUSH_GRP23 : (Group 23 pm_lsu_flush_srq_lrq) Flush initiated by LSU event:0X174 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP23 : (Group 23 pm_lsu_flush_srq_lrq) Run instructions completed event:0X175 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP23 : (Group 23 pm_lsu_flush_srq_lrq) Run cycles #Group 24 pm_lsu_flush_lrq, LSU0/1 flush due to LRQ event:0X180 counters:0 um:zero minimum:1000 name:PM_LSU0_FLUSH_LRQ_GRP24 : (Group 24 pm_lsu_flush_lrq) LSU0 LRQ flushes event:0X181 counters:1 um:zero minimum:1000 name:PM_LSU1_FLUSH_LRQ_GRP24 : (Group 24 pm_lsu_flush_lrq) LSU1 LRQ flushes event:0X182 counters:2 um:zero minimum:1000 name:PM_LSU_FLUSH_GRP24 : (Group 24 pm_lsu_flush_lrq) Flush initiated by LSU event:0X183 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP24 : (Group 24 pm_lsu_flush_lrq) IOPS instructions completed event:0X184 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP24 : (Group 24 pm_lsu_flush_lrq) Run instructions completed event:0X185 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP24 : (Group 24 pm_lsu_flush_lrq) Run cycles #Group 25 pm_lsu_flush_srq, LSU0/1 flush due to SRQ event:0X190 counters:0 um:zero minimum:1000 name:PM_LSU0_FLUSH_SRQ_GRP25 : (Group 25 pm_lsu_flush_srq) LSU0 SRQ flushes event:0X191 counters:1 um:zero minimum:1000 name:PM_LSU1_FLUSH_SRQ_GRP25 : (Group 25 pm_lsu_flush_srq) LSU1 SRQ flushes event:0X192 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP25 : (Group 25 pm_lsu_flush_srq) IOPS instructions completed event:0X193 counters:3 um:zero minimum:1000 name:PM_LSU_FLUSH_GRP25 : (Group 25 pm_lsu_flush_srq) Flush initiated by LSU event:0X194 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP25 : (Group 25 pm_lsu_flush_srq) Run instructions completed event:0X195 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP25 : (Group 25 pm_lsu_flush_srq) Run cycles #Group 26 pm_lsu_flush_unaligned, LSU flush due to unaligned data event:0X1A0 counters:0 um:zero minimum:1000 name:PM_LSU_FLUSH_ULD_GRP26 : (Group 26 pm_lsu_flush_unaligned) LRQ unaligned load flushes event:0X1A1 counters:1 um:zero minimum:1000 name:PM_LSU_FLUSH_UST_GRP26 : (Group 26 pm_lsu_flush_unaligned) SRQ unaligned store flushes event:0X1A2 counters:2 um:zero minimum:1000 name:PM_BR_ISSUED_GRP26 : (Group 26 pm_lsu_flush_unaligned) Branches issued event:0X1A3 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP26 : (Group 26 pm_lsu_flush_unaligned) IOPS instructions completed event:0X1A4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP26 : (Group 26 pm_lsu_flush_unaligned) Run instructions completed event:0X1A5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP26 : (Group 26 pm_lsu_flush_unaligned) Run cycles #Group 27 pm_lsu_flush_uld, LSU0/1 flush due to unaligned load event:0X1B0 counters:0 um:zero minimum:1000 name:PM_LSU0_FLUSH_ULD_GRP27 : (Group 27 pm_lsu_flush_uld) LSU0 unaligned load flushes event:0X1B1 counters:1 um:zero minimum:1000 name:PM_LSU1_FLUSH_ULD_GRP27 : (Group 27 pm_lsu_flush_uld) LSU1 unaligned load flushes event:0X1B2 counters:2 um:zero minimum:1000 name:PM_LSU_FLUSH_GRP27 : (Group 27 pm_lsu_flush_uld) Flush initiated by LSU event:0X1B3 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP27 : (Group 27 pm_lsu_flush_uld) IOPS instructions completed event:0X1B4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP27 : (Group 27 pm_lsu_flush_uld) Run instructions completed event:0X1B5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP27 : (Group 27 pm_lsu_flush_uld) Run cycles #Group 28 pm_lsu_flush_ust, LSU0/1 flush due to unaligned store event:0X1C0 counters:0 um:zero minimum:1000 name:PM_LSU0_FLUSH_UST_GRP28 : (Group 28 pm_lsu_flush_ust) LSU0 unaligned store flushes event:0X1C1 counters:1 um:zero minimum:1000 name:PM_LSU1_FLUSH_UST_GRP28 : (Group 28 pm_lsu_flush_ust) LSU1 unaligned store flushes event:0X1C2 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP28 : (Group 28 pm_lsu_flush_ust) IOPS instructions completed event:0X1C3 counters:3 um:zero minimum:1000 name:PM_LSU_FLUSH_GRP28 : (Group 28 pm_lsu_flush_ust) Flush initiated by LSU event:0X1C4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP28 : (Group 28 pm_lsu_flush_ust) Run instructions completed event:0X1C5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP28 : (Group 28 pm_lsu_flush_ust) Run cycles #Group 29 pm_lsu_flush_full, LSU flush due to LRQ/SRQ full event:0X1D0 counters:0 um:zero minimum:1000 name:PM_LSU_FLUSH_LRQ_FULL_GRP29 : (Group 29 pm_lsu_flush_full) Flush caused by LRQ full event:0X1D1 counters:1 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP29 : (Group 29 pm_lsu_flush_full) IOPS instructions completed event:0X1D2 counters:2 um:zero minimum:1000 name:PM_MRK_LSU_FLUSH_LRQ_GRP29 : (Group 29 pm_lsu_flush_full) Marked LRQ flushes event:0X1D3 counters:3 um:zero minimum:1000 name:PM_LSU_FLUSH_SRQ_FULL_GRP29 : (Group 29 pm_lsu_flush_full) Flush caused by SRQ full event:0X1D4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP29 : (Group 29 pm_lsu_flush_full) Run instructions completed event:0X1D5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP29 : (Group 29 pm_lsu_flush_full) Run cycles #Group 30 pm_lsu_stall1, LSU Stalls event:0X1E0 counters:0 um:zero minimum:1000 name:PM_GRP_MRK_GRP30 : (Group 30 pm_lsu_stall1) Group marked in IDU event:0X1E1 counters:1 um:zero minimum:1000 name:PM_CMPLU_STALL_LSU_GRP30 : (Group 30 pm_lsu_stall1) Completion stall caused by LSU instruction event:0X1E2 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP30 : (Group 30 pm_lsu_stall1) IOPS instructions completed event:0X1E3 counters:3 um:zero minimum:1000 name:PM_CMPLU_STALL_REJECT_GRP30 : (Group 30 pm_lsu_stall1) Completion stall caused by reject event:0X1E4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP30 : (Group 30 pm_lsu_stall1) Run instructions completed event:0X1E5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP30 : (Group 30 pm_lsu_stall1) Run cycles #Group 31 pm_lsu_stall2, LSU Stalls event:0X1F0 counters:0 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP31 : (Group 31 pm_lsu_stall2) IOPS instructions completed event:0X1F1 counters:1 um:zero minimum:1000 name:PM_CMPLU_STALL_DCACHE_MISS_GRP31 : (Group 31 pm_lsu_stall2) Completion stall caused by D cache miss event:0X1F2 counters:2 um:zero minimum:10000 name:PM_CYC_GRP31 : (Group 31 pm_lsu_stall2) Processor cycles event:0X1F3 counters:3 um:zero minimum:1000 name:PM_CMPLU_STALL_ERAT_MISS_GRP31 : (Group 31 pm_lsu_stall2) Completion stall caused by ERAT miss event:0X1F4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP31 : (Group 31 pm_lsu_stall2) Run instructions completed event:0X1F5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP31 : (Group 31 pm_lsu_stall2) Run cycles #Group 32 pm_fxu_stall, FXU Stalls event:0X200 counters:0 um:zero minimum:1000 name:PM_GRP_IC_MISS_BR_REDIR_NONSPEC_GRP32 : (Group 32 pm_fxu_stall) Group experienced non-speculative I cache miss or branch redirect event:0X201 counters:1 um:zero minimum:1000 name:PM_CMPLU_STALL_FXU_GRP32 : (Group 32 pm_fxu_stall) Completion stall caused by FXU instruction event:0X202 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP32 : (Group 32 pm_fxu_stall) IOPS instructions completed event:0X203 counters:3 um:zero minimum:1000 name:PM_CMPLU_STALL_DIV_GRP32 : (Group 32 pm_fxu_stall) Completion stall caused by DIV instruction event:0X204 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP32 : (Group 32 pm_fxu_stall) Run instructions completed event:0X205 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP32 : (Group 32 pm_fxu_stall) Run cycles #Group 33 pm_fpu_stall, FPU Stalls event:0X210 counters:0 um:zero minimum:1000 name:PM_FPU_FULL_CYC_GRP33 : (Group 33 pm_fpu_stall) Cycles FPU issue queue full event:0X211 counters:1 um:zero minimum:1000 name:PM_CMPLU_STALL_FDIV_GRP33 : (Group 33 pm_fpu_stall) Completion stall caused by FDIV or FQRT instruction event:0X212 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP33 : (Group 33 pm_fpu_stall) IOPS instructions completed event:0X213 counters:3 um:zero minimum:1000 name:PM_CMPLU_STALL_FPU_GRP33 : (Group 33 pm_fpu_stall) Completion stall caused by FPU instruction event:0X214 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP33 : (Group 33 pm_fpu_stall) Run instructions completed event:0X215 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP33 : (Group 33 pm_fpu_stall) Run cycles #Group 34 pm_queue_full, BRQ LRQ LMQ queue full event:0X220 counters:0 um:zero minimum:1000 name:PM_LARX_LSU0_GRP34 : (Group 34 pm_queue_full) Larx executed on LSU0 event:0X221 counters:1 um:zero minimum:1000 name:PM_BRQ_FULL_CYC_GRP34 : (Group 34 pm_queue_full) Cycles branch queue full event:0X222 counters:2 um:zero minimum:1000 name:PM_LSU_LRQ_FULL_CYC_GRP34 : (Group 34 pm_queue_full) Cycles LRQ full event:0X223 counters:3 um:zero minimum:1000 name:PM_LSU_LMQ_FULL_CYC_GRP34 : (Group 34 pm_queue_full) Cycles LMQ full event:0X224 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP34 : (Group 34 pm_queue_full) Run instructions completed event:0X225 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP34 : (Group 34 pm_queue_full) Run cycles #Group 35 pm_issueq_full, FPU FX full event:0X230 counters:0 um:zero minimum:1000 name:PM_FPU0_FULL_CYC_GRP35 : (Group 35 pm_issueq_full) Cycles FPU0 issue queue full event:0X231 counters:1 um:zero minimum:1000 name:PM_FPU1_FULL_CYC_GRP35 : (Group 35 pm_issueq_full) Cycles FPU1 issue queue full event:0X232 counters:2 um:zero minimum:1000 name:PM_FXLS0_FULL_CYC_GRP35 : (Group 35 pm_issueq_full) Cycles FXU0/LS0 queue full event:0X233 counters:3 um:zero minimum:1000 name:PM_FXLS1_FULL_CYC_GRP35 : (Group 35 pm_issueq_full) Cycles FXU1/LS1 queue full event:0X234 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP35 : (Group 35 pm_issueq_full) Run instructions completed event:0X235 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP35 : (Group 35 pm_issueq_full) Run cycles #Group 36 pm_mapper_full1, CR CTR GPR mapper full event:0X240 counters:0 um:zero minimum:1000 name:PM_CR_MAP_FULL_CYC_GRP36 : (Group 36 pm_mapper_full1) Cycles CR logical operation mapper full event:0X241 counters:1 um:zero minimum:1000 name:PM_LR_CTR_MAP_FULL_CYC_GRP36 : (Group 36 pm_mapper_full1) Cycles LR/CTR mapper full event:0X242 counters:2 um:zero minimum:1000 name:PM_GPR_MAP_FULL_CYC_GRP36 : (Group 36 pm_mapper_full1) Cycles GPR mapper full event:0X243 counters:3 um:zero minimum:1000 name:PM_CRQ_FULL_CYC_GRP36 : (Group 36 pm_mapper_full1) Cycles CR issue queue full event:0X244 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP36 : (Group 36 pm_mapper_full1) Run instructions completed event:0X245 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP36 : (Group 36 pm_mapper_full1) Run cycles #Group 37 pm_mapper_full2, FPR XER mapper full event:0X250 counters:0 um:zero minimum:1000 name:PM_FPR_MAP_FULL_CYC_GRP37 : (Group 37 pm_mapper_full2) Cycles FPR mapper full event:0X251 counters:1 um:zero minimum:1000 name:PM_XER_MAP_FULL_CYC_GRP37 : (Group 37 pm_mapper_full2) Cycles XER mapper full event:0X252 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2MISS_GRP37 : (Group 37 pm_mapper_full2) Marked data loaded missed L2 event:0X253 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP37 : (Group 37 pm_mapper_full2) IOPS instructions completed event:0X254 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP37 : (Group 37 pm_mapper_full2) Run instructions completed event:0X255 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP37 : (Group 37 pm_mapper_full2) Run cycles #Group 38 pm_misc_load, Non-cachable loads and stcx events event:0X260 counters:0 um:zero minimum:1000 name:PM_STCX_FAIL_GRP38 : (Group 38 pm_misc_load) STCX failed event:0X261 counters:1 um:zero minimum:1000 name:PM_STCX_PASS_GRP38 : (Group 38 pm_misc_load) Stcx passes event:0X262 counters:2 um:zero minimum:1000 name:PM_LSU0_NCLD_GRP38 : (Group 38 pm_misc_load) LSU0 non-cacheable loads event:0X263 counters:3 um:zero minimum:1000 name:PM_LSU1_NCLD_GRP38 : (Group 38 pm_misc_load) LSU1 non-cacheable loads event:0X264 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP38 : (Group 38 pm_misc_load) Run instructions completed event:0X265 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP38 : (Group 38 pm_misc_load) Run cycles #Group 39 pm_ic_demand, ICache demand from BR redirect event:0X270 counters:0 um:zero minimum:1000 name:PM_LSU0_BUSY_REJECT_GRP39 : (Group 39 pm_ic_demand) LSU0 busy due to reject event:0X271 counters:1 um:zero minimum:1000 name:PM_LSU1_BUSY_REJECT_GRP39 : (Group 39 pm_ic_demand) LSU1 busy due to reject event:0X272 counters:2 um:zero minimum:1000 name:PM_IC_DEMAND_L2_BHT_REDIRECT_GRP39 : (Group 39 pm_ic_demand) L2 I cache demand request due to BHT redirect event:0X273 counters:3 um:zero minimum:1000 name:PM_IC_DEMAND_L2_BR_REDIRECT_GRP39 : (Group 39 pm_ic_demand) L2 I cache demand request due to branch redirect event:0X274 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP39 : (Group 39 pm_ic_demand) Run instructions completed event:0X275 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP39 : (Group 39 pm_ic_demand) Run cycles #Group 40 pm_ic_pref, ICache prefetch event:0X280 counters:0 um:zero minimum:1000 name:PM_IERAT_XLATE_WR_GRP40 : (Group 40 pm_ic_pref) Translation written to ierat event:0X281 counters:1 um:zero minimum:1000 name:PM_IC_PREF_REQ_GRP40 : (Group 40 pm_ic_pref) Instruction prefetch requests event:0X282 counters:2 um:zero minimum:1000 name:PM_IC_PREF_INSTALL_GRP40 : (Group 40 pm_ic_pref) Instruction prefetched installed in prefetch event:0X283 counters:3 um:zero minimum:1000 name:PM_0INST_FETCH_GRP40 : (Group 40 pm_ic_pref) No instructions fetched event:0X284 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP40 : (Group 40 pm_ic_pref) Run instructions completed event:0X285 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP40 : (Group 40 pm_ic_pref) Run cycles #Group 41 pm_ic_miss, ICache misses event:0X290 counters:0 um:zero minimum:1000 name:PM_GRP_IC_MISS_NONSPEC_GRP41 : (Group 41 pm_ic_miss) Group experienced non-speculative I cache miss event:0X291 counters:1 um:zero minimum:1000 name:PM_GRP_IC_MISS_GRP41 : (Group 41 pm_ic_miss) Group experienced I cache miss event:0X292 counters:2 um:zero minimum:1000 name:PM_L1_DCACHE_RELOAD_VALID_GRP41 : (Group 41 pm_ic_miss) L1 reload data source valid event:0X293 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP41 : (Group 41 pm_ic_miss) IOPS instructions completed event:0X294 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP41 : (Group 41 pm_ic_miss) Run instructions completed event:0X295 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP41 : (Group 41 pm_ic_miss) Run cycles #Group 42 pm_branch_miss, Branch mispredict, TLB and SLB misses event:0X2A0 counters:0 um:zero minimum:1000 name:PM_TLB_MISS_GRP42 : (Group 42 pm_branch_miss) TLB misses event:0X2A1 counters:1 um:zero minimum:1000 name:PM_SLB_MISS_GRP42 : (Group 42 pm_branch_miss) SLB misses event:0X2A2 counters:2 um:zero minimum:1000 name:PM_BR_MPRED_CR_GRP42 : (Group 42 pm_branch_miss) Branch mispredictions due to CR bit setting event:0X2A3 counters:3 um:zero minimum:1000 name:PM_BR_MPRED_TA_GRP42 : (Group 42 pm_branch_miss) Branch mispredictions due to target address event:0X2A4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP42 : (Group 42 pm_branch_miss) Run instructions completed event:0X2A5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP42 : (Group 42 pm_branch_miss) Run cycles #Group 43 pm_branch1, Branch operations event:0X2B0 counters:0 um:zero minimum:1000 name:PM_BR_UNCOND_GRP43 : (Group 43 pm_branch1) Unconditional branch event:0X2B1 counters:1 um:zero minimum:1000 name:PM_BR_PRED_TA_GRP43 : (Group 43 pm_branch1) A conditional branch was predicted, target prediction event:0X2B2 counters:2 um:zero minimum:1000 name:PM_BR_PRED_CR_GRP43 : (Group 43 pm_branch1) A conditional branch was predicted, CR prediction event:0X2B3 counters:3 um:zero minimum:1000 name:PM_BR_PRED_CR_TA_GRP43 : (Group 43 pm_branch1) A conditional branch was predicted, CR and target prediction event:0X2B4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP43 : (Group 43 pm_branch1) Run instructions completed event:0X2B5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP43 : (Group 43 pm_branch1) Run cycles #Group 44 pm_branch2, Branch operations event:0X2C0 counters:0 um:zero minimum:1000 name:PM_GRP_BR_REDIR_NONSPEC_GRP44 : (Group 44 pm_branch2) Group experienced non-speculative branch redirect event:0X2C1 counters:1 um:zero minimum:1000 name:PM_GRP_BR_REDIR_GRP44 : (Group 44 pm_branch2) Group experienced branch redirect event:0X2C2 counters:2 um:zero minimum:1000 name:PM_FLUSH_BR_MPRED_GRP44 : (Group 44 pm_branch2) Flush caused by branch mispredict event:0X2C3 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP44 : (Group 44 pm_branch2) IOPS instructions completed event:0X2C4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP44 : (Group 44 pm_branch2) Run instructions completed event:0X2C5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP44 : (Group 44 pm_branch2) Run cycles #Group 45 pm_L1_tlbmiss, L1 load and TLB misses event:0X2D0 counters:0 um:zero minimum:1000 name:PM_DATA_TABLEWALK_CYC_GRP45 : (Group 45 pm_L1_tlbmiss) Cycles doing data tablewalks event:0X2D1 counters:1 um:zero minimum:1000 name:PM_DTLB_MISS_GRP45 : (Group 45 pm_L1_tlbmiss) Data TLB misses event:0X2D2 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP45 : (Group 45 pm_L1_tlbmiss) L1 D cache load misses event:0X2D3 counters:3 um:zero minimum:1000 name:PM_LD_REF_L1_GRP45 : (Group 45 pm_L1_tlbmiss) L1 D cache load references event:0X2D4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP45 : (Group 45 pm_L1_tlbmiss) Run instructions completed event:0X2D5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP45 : (Group 45 pm_L1_tlbmiss) Run cycles #Group 46 pm_L1_DERAT_miss, L1 store and DERAT misses event:0X2E0 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L2_GRP46 : (Group 46 pm_L1_DERAT_miss) Data loaded from L2 event:0X2E1 counters:1 um:zero minimum:1000 name:PM_LSU_DERAT_MISS_GRP46 : (Group 46 pm_L1_DERAT_miss) DERAT misses event:0X2E2 counters:2 um:zero minimum:1000 name:PM_ST_REF_L1_GRP46 : (Group 46 pm_L1_DERAT_miss) L1 D cache store references event:0X2E3 counters:3 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP46 : (Group 46 pm_L1_DERAT_miss) L1 D cache store misses event:0X2E4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP46 : (Group 46 pm_L1_DERAT_miss) Run instructions completed event:0X2E5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP46 : (Group 46 pm_L1_DERAT_miss) Run cycles #Group 47 pm_L1_slbmiss, L1 load and SLB misses event:0X2F0 counters:0 um:zero minimum:1000 name:PM_DSLB_MISS_GRP47 : (Group 47 pm_L1_slbmiss) Data SLB misses event:0X2F1 counters:1 um:zero minimum:1000 name:PM_ISLB_MISS_GRP47 : (Group 47 pm_L1_slbmiss) Instruction SLB misses event:0X2F2 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_LSU0_GRP47 : (Group 47 pm_L1_slbmiss) LSU0 L1 D cache load misses event:0X2F3 counters:3 um:zero minimum:1000 name:PM_LD_MISS_L1_LSU1_GRP47 : (Group 47 pm_L1_slbmiss) LSU1 L1 D cache load misses event:0X2F4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP47 : (Group 47 pm_L1_slbmiss) Run instructions completed event:0X2F5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP47 : (Group 47 pm_L1_slbmiss) Run cycles #Group 48 pm_dtlbref, Data TLB references event:0X300 counters:0 um:zero minimum:1000 name:PM_DTLB_REF_4K_GRP48 : (Group 48 pm_dtlbref) Data TLB reference for 4K page event:0X301 counters:1 um:zero minimum:1000 name:PM_DTLB_REF_64K_GRP48 : (Group 48 pm_dtlbref) Data TLB reference for 64K page event:0X302 counters:2 um:zero minimum:1000 name:PM_DTLB_REF_16M_GRP48 : (Group 48 pm_dtlbref) Data TLB reference for 16M page event:0X303 counters:3 um:zero minimum:1000 name:PM_DTLB_REF_16G_GRP48 : (Group 48 pm_dtlbref) Data TLB reference for 16G page event:0X304 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP48 : (Group 48 pm_dtlbref) Run instructions completed event:0X305 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP48 : (Group 48 pm_dtlbref) Run cycles #Group 49 pm_dtlbmiss, Data TLB misses event:0X310 counters:0 um:zero minimum:1000 name:PM_DTLB_MISS_4K_GRP49 : (Group 49 pm_dtlbmiss) Data TLB miss for 4K page event:0X311 counters:1 um:zero minimum:1000 name:PM_DTLB_MISS_64K_GRP49 : (Group 49 pm_dtlbmiss) Data TLB miss for 64K page event:0X312 counters:2 um:zero minimum:1000 name:PM_DTLB_MISS_16M_GRP49 : (Group 49 pm_dtlbmiss) Data TLB miss for 16M page event:0X313 counters:3 um:zero minimum:1000 name:PM_DTLB_MISS_16G_GRP49 : (Group 49 pm_dtlbmiss) Data TLB miss for 16G page event:0X314 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP49 : (Group 49 pm_dtlbmiss) Run instructions completed event:0X315 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP49 : (Group 49 pm_dtlbmiss) Run cycles #Group 50 pm_dtlb, Data TLB references and misses event:0X320 counters:0 um:zero minimum:1000 name:PM_DTLB_REF_GRP50 : (Group 50 pm_dtlb) Data TLB references event:0X321 counters:1 um:zero minimum:1000 name:PM_DTLB_MISS_GRP50 : (Group 50 pm_dtlb) Data TLB misses event:0X322 counters:2 um:zero minimum:10000 name:PM_CYC_GRP50 : (Group 50 pm_dtlb) Processor cycles event:0X323 counters:3 um:zero minimum:10000 name:PM_CYC_GRP50 : (Group 50 pm_dtlb) Processor cycles event:0X324 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP50 : (Group 50 pm_dtlb) Run instructions completed event:0X325 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP50 : (Group 50 pm_dtlb) Run cycles #Group 51 pm_L1_refmiss, L1 load references and misses and store references and misses event:0X330 counters:0 um:zero minimum:1000 name:PM_LD_REF_L1_GRP51 : (Group 51 pm_L1_refmiss) L1 D cache load references event:0X331 counters:1 um:zero minimum:1000 name:PM_ST_REF_L1_GRP51 : (Group 51 pm_L1_refmiss) L1 D cache store references event:0X332 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP51 : (Group 51 pm_L1_refmiss) L1 D cache load misses event:0X333 counters:3 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP51 : (Group 51 pm_L1_refmiss) L1 D cache store misses event:0X334 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP51 : (Group 51 pm_L1_refmiss) Run instructions completed event:0X335 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP51 : (Group 51 pm_L1_refmiss) Run cycles #Group 52 pm_dsource1, L3 cache and memory data access event:0X340 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L3_GRP52 : (Group 52 pm_dsource1) Data loaded from L3 event:0X341 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_LMEM_GRP52 : (Group 52 pm_dsource1) Data loaded from local memory event:0X342 counters:2 um:zero minimum:1000 name:PM_FLUSH_GRP52 : (Group 52 pm_dsource1) Flushes event:0X343 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP52 : (Group 52 pm_dsource1) IOPS instructions completed event:0X344 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP52 : (Group 52 pm_dsource1) Run instructions completed event:0X345 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP52 : (Group 52 pm_dsource1) Run cycles #Group 53 pm_dsource2, L3 cache and memory data access event:0X350 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L3_GRP53 : (Group 53 pm_dsource2) Data loaded from L3 event:0X351 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_LMEM_GRP53 : (Group 53 pm_dsource2) Data loaded from local memory event:0X352 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_L2MISS_GRP53 : (Group 53 pm_dsource2) Data loaded missed L2 event:0X353 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_RMEM_GRP53 : (Group 53 pm_dsource2) Data loaded from remote memory event:0X354 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP53 : (Group 53 pm_dsource2) Run instructions completed event:0X355 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP53 : (Group 53 pm_dsource2) Run cycles #Group 54 pm_dsource_L2, L2 cache data access event:0X360 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L25_SHR_GRP54 : (Group 54 pm_dsource_L2) Data loaded from L2.5 shared event:0X361 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_L25_MOD_GRP54 : (Group 54 pm_dsource_L2) Data loaded from L2.5 modified event:0X362 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_L275_SHR_GRP54 : (Group 54 pm_dsource_L2) Data loaded from L2.75 shared event:0X363 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_L275_MOD_GRP54 : (Group 54 pm_dsource_L2) Data loaded from L2.75 modified event:0X364 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP54 : (Group 54 pm_dsource_L2) Run instructions completed event:0X365 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP54 : (Group 54 pm_dsource_L2) Run cycles #Group 55 pm_dsource_L3, L3 cache data access event:0X370 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L35_SHR_GRP55 : (Group 55 pm_dsource_L3) Data loaded from L3.5 shared event:0X371 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_L35_MOD_GRP55 : (Group 55 pm_dsource_L3) Data loaded from L3.5 modified event:0X372 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_L375_SHR_GRP55 : (Group 55 pm_dsource_L3) Data loaded from L3.75 shared event:0X373 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_L375_MOD_GRP55 : (Group 55 pm_dsource_L3) Data loaded from L3.75 modified event:0X374 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP55 : (Group 55 pm_dsource_L3) Run instructions completed event:0X375 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP55 : (Group 55 pm_dsource_L3) Run cycles #Group 56 pm_isource1, Instruction source information event:0X380 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L3_GRP56 : (Group 56 pm_isource1) Instruction fetched from L3 event:0X381 counters:1 um:zero minimum:1000 name:PM_INST_FROM_L1_GRP56 : (Group 56 pm_isource1) Instruction fetched from L1 event:0X382 counters:2 um:zero minimum:1000 name:PM_INST_FROM_PREF_GRP56 : (Group 56 pm_isource1) Instructions fetched from prefetch event:0X383 counters:3 um:zero minimum:1000 name:PM_INST_FROM_RMEM_GRP56 : (Group 56 pm_isource1) Instruction fetched from remote memory event:0X384 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP56 : (Group 56 pm_isource1) Run instructions completed event:0X385 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP56 : (Group 56 pm_isource1) Run cycles #Group 57 pm_isource2, Instruction source information event:0X390 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L2_GRP57 : (Group 57 pm_isource2) Instructions fetched from L2 event:0X391 counters:1 um:zero minimum:1000 name:PM_INST_FROM_LMEM_GRP57 : (Group 57 pm_isource2) Instruction fetched from local memory event:0X392 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP57 : (Group 57 pm_isource2) IOPS instructions completed event:0X393 counters:3 um:zero minimum:1000 name:PM_0INST_FETCH_GRP57 : (Group 57 pm_isource2) No instructions fetched event:0X394 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP57 : (Group 57 pm_isource2) Run instructions completed event:0X395 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP57 : (Group 57 pm_isource2) Run cycles #Group 58 pm_isource_L2, L2 instruction source information event:0X3A0 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L25_SHR_GRP58 : (Group 58 pm_isource_L2) Instruction fetched from L2.5 shared event:0X3A1 counters:1 um:zero minimum:1000 name:PM_INST_FROM_L25_MOD_GRP58 : (Group 58 pm_isource_L2) Instruction fetched from L2.5 modified event:0X3A2 counters:2 um:zero minimum:1000 name:PM_INST_FROM_L275_SHR_GRP58 : (Group 58 pm_isource_L2) Instruction fetched from L2.75 shared event:0X3A3 counters:3 um:zero minimum:1000 name:PM_INST_FROM_L275_MOD_GRP58 : (Group 58 pm_isource_L2) Instruction fetched from L2.75 modified event:0X3A4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP58 : (Group 58 pm_isource_L2) Run instructions completed event:0X3A5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP58 : (Group 58 pm_isource_L2) Run cycles #Group 59 pm_isource_L3, L3 instruction source information event:0X3B0 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L2MISS_GRP59 : (Group 59 pm_isource_L3) Instructions fetched missed L2 event:0X3B1 counters:1 um:zero minimum:1000 name:PM_INST_FROM_L35_MOD_GRP59 : (Group 59 pm_isource_L3) Instruction fetched from L3.5 modified event:0X3B2 counters:2 um:zero minimum:1000 name:PM_INST_FROM_L375_SHR_GRP59 : (Group 59 pm_isource_L3) Instruction fetched from L3.75 shared event:0X3B3 counters:3 um:zero minimum:1000 name:PM_INST_FROM_L375_MOD_GRP59 : (Group 59 pm_isource_L3) Instruction fetched from L3.75 modified event:0X3B4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP59 : (Group 59 pm_isource_L3) Run instructions completed event:0X3B5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP59 : (Group 59 pm_isource_L3) Run cycles #Group 60 pm_pteg_source1, PTEG source information event:0X3C0 counters:0 um:zero minimum:1000 name:PM_PTEG_FROM_L25_SHR_GRP60 : (Group 60 pm_pteg_source1) PTEG loaded from L2.5 shared event:0X3C1 counters:1 um:zero minimum:1000 name:PM_PTEG_FROM_L25_MOD_GRP60 : (Group 60 pm_pteg_source1) PTEG loaded from L2.5 modified event:0X3C2 counters:2 um:zero minimum:1000 name:PM_PTEG_FROM_L275_SHR_GRP60 : (Group 60 pm_pteg_source1) PTEG loaded from L2.75 shared event:0X3C3 counters:3 um:zero minimum:1000 name:PM_PTEG_FROM_L275_MOD_GRP60 : (Group 60 pm_pteg_source1) PTEG loaded from L2.75 modified event:0X3C4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP60 : (Group 60 pm_pteg_source1) Run instructions completed event:0X3C5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP60 : (Group 60 pm_pteg_source1) Run cycles #Group 61 pm_pteg_source2, PTEG source information event:0X3D0 counters:0 um:zero minimum:1000 name:PM_PTEG_FROM_L35_SHR_GRP61 : (Group 61 pm_pteg_source2) PTEG loaded from L3.5 shared event:0X3D1 counters:1 um:zero minimum:1000 name:PM_PTEG_FROM_L35_MOD_GRP61 : (Group 61 pm_pteg_source2) PTEG loaded from L3.5 modified event:0X3D2 counters:2 um:zero minimum:1000 name:PM_PTEG_FROM_L375_SHR_GRP61 : (Group 61 pm_pteg_source2) PTEG loaded from L3.75 shared event:0X3D3 counters:3 um:zero minimum:1000 name:PM_PTEG_FROM_L375_MOD_GRP61 : (Group 61 pm_pteg_source2) PTEG loaded from L3.75 modified event:0X3D4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP61 : (Group 61 pm_pteg_source2) Run instructions completed event:0X3D5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP61 : (Group 61 pm_pteg_source2) Run cycles #Group 62 pm_pteg_source3, PTEG source information event:0X3E0 counters:0 um:zero minimum:1000 name:PM_PTEG_FROM_L2_GRP62 : (Group 62 pm_pteg_source3) PTEG loaded from L2 event:0X3E1 counters:1 um:zero minimum:1000 name:PM_PTEG_FROM_LMEM_GRP62 : (Group 62 pm_pteg_source3) PTEG loaded from local memory event:0X3E2 counters:2 um:zero minimum:1000 name:PM_PTEG_FROM_L2MISS_GRP62 : (Group 62 pm_pteg_source3) PTEG loaded from L2 miss event:0X3E3 counters:3 um:zero minimum:1000 name:PM_PTEG_FROM_RMEM_GRP62 : (Group 62 pm_pteg_source3) PTEG loaded from remote memory event:0X3E4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP62 : (Group 62 pm_pteg_source3) Run instructions completed event:0X3E5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP62 : (Group 62 pm_pteg_source3) Run cycles #Group 63 pm_pteg_source4, L3 PTEG and group disptach events event:0X3F0 counters:0 um:zero minimum:1000 name:PM_PTEG_FROM_L3_GRP63 : (Group 63 pm_pteg_source4) PTEG loaded from L3 event:0X3F1 counters:1 um:zero minimum:1000 name:PM_GRP_DISP_GRP63 : (Group 63 pm_pteg_source4) Group dispatches event:0X3F2 counters:2 um:zero minimum:1000 name:PM_GRP_DISP_SUCCESS_GRP63 : (Group 63 pm_pteg_source4) Group dispatch success event:0X3F3 counters:3 um:zero minimum:1000 name:PM_DC_INV_L2_GRP63 : (Group 63 pm_pteg_source4) L1 D cache entries invalidated from L2 event:0X3F4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP63 : (Group 63 pm_pteg_source4) Run instructions completed event:0X3F5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP63 : (Group 63 pm_pteg_source4) Run cycles #Group 64 pm_L2SA_ld, L2 slice A load events event:0X400 counters:0 um:zero minimum:1000 name:PM_L2SA_RCLD_DISP_GRP64 : (Group 64 pm_L2SA_ld) L2 Slice A RC load dispatch attempt event:0X401 counters:1 um:zero minimum:1000 name:PM_L2SA_RCLD_DISP_FAIL_RC_FULL_GRP64 : (Group 64 pm_L2SA_ld) L2 Slice A RC load dispatch attempt failed due to all RC full event:0X402 counters:2 um:zero minimum:1000 name:PM_L2SA_RCLD_DISP_FAIL_ADDR_GRP64 : (Group 64 pm_L2SA_ld) L2 Slice A RC load dispatch attempt failed due to address collision with RC/CO/SN/SQ event:0X403 counters:3 um:zero minimum:1000 name:PM_L2SA_RCLD_DISP_FAIL_OTHER_GRP64 : (Group 64 pm_L2SA_ld) L2 Slice A RC load dispatch attempt failed due to other reasons event:0X404 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP64 : (Group 64 pm_L2SA_ld) Run instructions completed event:0X405 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP64 : (Group 64 pm_L2SA_ld) Run cycles #Group 65 pm_L2SA_st, L2 slice A store events event:0X410 counters:0 um:zero minimum:1000 name:PM_L2SA_RCST_DISP_GRP65 : (Group 65 pm_L2SA_st) L2 Slice A RC store dispatch attempt event:0X411 counters:1 um:zero minimum:1000 name:PM_L2SA_RCST_DISP_FAIL_RC_FULL_GRP65 : (Group 65 pm_L2SA_st) L2 Slice A RC store dispatch attempt failed due to all RC full event:0X412 counters:2 um:zero minimum:1000 name:PM_L2SA_RCST_DISP_FAIL_ADDR_GRP65 : (Group 65 pm_L2SA_st) L2 Slice A RC store dispatch attempt failed due to address collision with RC/CO/SN/SQ event:0X413 counters:3 um:zero minimum:1000 name:PM_L2SA_RCST_DISP_FAIL_OTHER_GRP65 : (Group 65 pm_L2SA_st) L2 Slice A RC store dispatch attempt failed due to other reasons event:0X414 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP65 : (Group 65 pm_L2SA_st) Run instructions completed event:0X415 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP65 : (Group 65 pm_L2SA_st) Run cycles #Group 66 pm_L2SA_st2, L2 slice A store events event:0X420 counters:0 um:zero minimum:1000 name:PM_L2SA_RC_DISP_FAIL_CO_BUSY_GRP66 : (Group 66 pm_L2SA_st2) L2 Slice A RC dispatch attempt failed due to RC/CO pair chosen was miss and CO already busy event:0X421 counters:1 um:zero minimum:1000 name:PM_L2SA_ST_REQ_GRP66 : (Group 66 pm_L2SA_st2) L2 slice A store requests event:0X422 counters:2 um:zero minimum:1000 name:PM_L2SA_RC_DISP_FAIL_CO_BUSY_ALL_GRP66 : (Group 66 pm_L2SA_st2) L2 Slice A RC dispatch attempt failed due to all CO busy event:0X423 counters:3 um:zero minimum:1000 name:PM_L2SA_ST_HIT_GRP66 : (Group 66 pm_L2SA_st2) L2 slice A store hits event:0X424 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP66 : (Group 66 pm_L2SA_st2) Run instructions completed event:0X425 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP66 : (Group 66 pm_L2SA_st2) Run cycles #Group 67 pm_L2SB_ld, L2 slice B load events event:0X430 counters:0 um:zero minimum:1000 name:PM_L2SB_RCLD_DISP_GRP67 : (Group 67 pm_L2SB_ld) L2 Slice B RC load dispatch attempt event:0X431 counters:1 um:zero minimum:1000 name:PM_L2SB_RCLD_DISP_FAIL_RC_FULL_GRP67 : (Group 67 pm_L2SB_ld) L2 Slice B RC load dispatch attempt failed due to all RC full event:0X432 counters:2 um:zero minimum:1000 name:PM_L2SB_RCLD_DISP_FAIL_ADDR_GRP67 : (Group 67 pm_L2SB_ld) L2 Slice B RC load dispatch attempt failed due to address collision with RC/CO/SN/SQ event:0X433 counters:3 um:zero minimum:1000 name:PM_L2SB_RCLD_DISP_FAIL_OTHER_GRP67 : (Group 67 pm_L2SB_ld) L2 Slice B RC load dispatch attempt failed due to other reasons event:0X434 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP67 : (Group 67 pm_L2SB_ld) Run instructions completed event:0X435 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP67 : (Group 67 pm_L2SB_ld) Run cycles #Group 68 pm_L2SB_st, L2 slice B store events event:0X440 counters:0 um:zero minimum:1000 name:PM_L2SB_RCST_DISP_GRP68 : (Group 68 pm_L2SB_st) L2 Slice B RC store dispatch attempt event:0X441 counters:1 um:zero minimum:1000 name:PM_L2SB_RCST_DISP_FAIL_RC_FULL_GRP68 : (Group 68 pm_L2SB_st) L2 Slice B RC store dispatch attempt failed due to all RC full event:0X442 counters:2 um:zero minimum:1000 name:PM_L2SB_RCST_DISP_FAIL_ADDR_GRP68 : (Group 68 pm_L2SB_st) L2 Slice B RC store dispatch attempt failed due to address collision with RC/CO/SN/SQ event:0X443 counters:3 um:zero minimum:1000 name:PM_L2SB_RCST_DISP_FAIL_OTHER_GRP68 : (Group 68 pm_L2SB_st) L2 Slice B RC store dispatch attempt failed due to other reasons event:0X444 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP68 : (Group 68 pm_L2SB_st) Run instructions completed event:0X445 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP68 : (Group 68 pm_L2SB_st) Run cycles #Group 69 pm_L2SB_st2, L2 slice B store events event:0X450 counters:0 um:zero minimum:1000 name:PM_L2SB_RC_DISP_FAIL_CO_BUSY_GRP69 : (Group 69 pm_L2SB_st2) L2 Slice B RC dispatch attempt failed due to RC/CO pair chosen was miss and CO already busy event:0X451 counters:1 um:zero minimum:1000 name:PM_L2SB_ST_REQ_GRP69 : (Group 69 pm_L2SB_st2) L2 slice B store requests event:0X452 counters:2 um:zero minimum:1000 name:PM_L2SB_RC_DISP_FAIL_CO_BUSY_ALL_GRP69 : (Group 69 pm_L2SB_st2) L2 Slice B RC dispatch attempt failed due to all CO busy event:0X453 counters:3 um:zero minimum:1000 name:PM_L2SB_ST_HIT_GRP69 : (Group 69 pm_L2SB_st2) L2 slice B store hits event:0X454 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP69 : (Group 69 pm_L2SB_st2) Run instructions completed event:0X455 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP69 : (Group 69 pm_L2SB_st2) Run cycles #Group 70 pm_L2SB_ld, L2 slice C load events event:0X460 counters:0 um:zero minimum:1000 name:PM_L2SC_RCLD_DISP_GRP70 : (Group 70 pm_L2SB_ld) L2 Slice C RC load dispatch attempt event:0X461 counters:1 um:zero minimum:1000 name:PM_L2SC_RCLD_DISP_FAIL_RC_FULL_GRP70 : (Group 70 pm_L2SB_ld) L2 Slice C RC load dispatch attempt failed due to all RC full event:0X462 counters:2 um:zero minimum:1000 name:PM_L2SC_RCLD_DISP_FAIL_ADDR_GRP70 : (Group 70 pm_L2SB_ld) L2 Slice C RC load dispatch attempt failed due to address collision with RC/CO/SN/SQ event:0X463 counters:3 um:zero minimum:1000 name:PM_L2SC_RCLD_DISP_FAIL_OTHER_GRP70 : (Group 70 pm_L2SB_ld) L2 Slice C RC load dispatch attempt failed due to other reasons event:0X464 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP70 : (Group 70 pm_L2SB_ld) Run instructions completed event:0X465 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP70 : (Group 70 pm_L2SB_ld) Run cycles #Group 71 pm_L2SB_st, L2 slice C store events event:0X470 counters:0 um:zero minimum:1000 name:PM_L2SC_RCST_DISP_GRP71 : (Group 71 pm_L2SB_st) L2 Slice C RC store dispatch attempt event:0X471 counters:1 um:zero minimum:1000 name:PM_L2SC_RCST_DISP_FAIL_RC_FULL_GRP71 : (Group 71 pm_L2SB_st) L2 Slice C RC store dispatch attempt failed due to all RC full event:0X472 counters:2 um:zero minimum:1000 name:PM_L2SC_RCST_DISP_FAIL_ADDR_GRP71 : (Group 71 pm_L2SB_st) L2 Slice C RC store dispatch attempt failed due to address collision with RC/CO/SN/SQ event:0X473 counters:3 um:zero minimum:1000 name:PM_L2SC_RCST_DISP_FAIL_OTHER_GRP71 : (Group 71 pm_L2SB_st) L2 Slice C RC store dispatch attempt failed due to other reasons event:0X474 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP71 : (Group 71 pm_L2SB_st) Run instructions completed event:0X475 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP71 : (Group 71 pm_L2SB_st) Run cycles #Group 72 pm_L2SB_st2, L2 slice C store events event:0X480 counters:0 um:zero minimum:1000 name:PM_L2SC_RC_DISP_FAIL_CO_BUSY_GRP72 : (Group 72 pm_L2SB_st2) L2 Slice C RC dispatch attempt failed due to RC/CO pair chosen was miss and CO already busy event:0X481 counters:1 um:zero minimum:1000 name:PM_L2SC_ST_REQ_GRP72 : (Group 72 pm_L2SB_st2) L2 slice C store requests event:0X482 counters:2 um:zero minimum:1000 name:PM_L2SC_RC_DISP_FAIL_CO_BUSY_ALL_GRP72 : (Group 72 pm_L2SB_st2) L2 Slice C RC dispatch attempt failed due to all CO busy event:0X483 counters:3 um:zero minimum:1000 name:PM_L2SC_ST_HIT_GRP72 : (Group 72 pm_L2SB_st2) L2 slice C store hits event:0X484 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP72 : (Group 72 pm_L2SB_st2) Run instructions completed event:0X485 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP72 : (Group 72 pm_L2SB_st2) Run cycles #Group 73 pm_L3SA_trans, L3 slice A state transistions event:0X490 counters:0 um:zero minimum:1000 name:PM_L3SA_MOD_TAG_GRP73 : (Group 73 pm_L3SA_trans) L3 slice A transition from modified to TAG event:0X491 counters:1 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP73 : (Group 73 pm_L3SA_trans) IOPS instructions completed event:0X492 counters:2 um:zero minimum:1000 name:PM_L3SA_MOD_INV_GRP73 : (Group 73 pm_L3SA_trans) L3 slice A transition from modified to invalid event:0X493 counters:3 um:zero minimum:1000 name:PM_L3SA_SHR_INV_GRP73 : (Group 73 pm_L3SA_trans) L3 slice A transition from shared to invalid event:0X494 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP73 : (Group 73 pm_L3SA_trans) Run instructions completed event:0X495 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP73 : (Group 73 pm_L3SA_trans) Run cycles #Group 74 pm_L3SB_trans, L3 slice B state transistions event:0X4A0 counters:0 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP74 : (Group 74 pm_L3SB_trans) IOPS instructions completed event:0X4A1 counters:1 um:zero minimum:1000 name:PM_L3SB_MOD_TAG_GRP74 : (Group 74 pm_L3SB_trans) L3 slice B transition from modified to TAG event:0X4A2 counters:2 um:zero minimum:1000 name:PM_L3SB_MOD_INV_GRP74 : (Group 74 pm_L3SB_trans) L3 slice B transition from modified to invalid event:0X4A3 counters:3 um:zero minimum:1000 name:PM_L3SB_SHR_INV_GRP74 : (Group 74 pm_L3SB_trans) L3 slice B transition from shared to invalid event:0X4A4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP74 : (Group 74 pm_L3SB_trans) Run instructions completed event:0X4A5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP74 : (Group 74 pm_L3SB_trans) Run cycles #Group 75 pm_L3SC_trans, L3 slice C state transistions event:0X4B0 counters:0 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP75 : (Group 75 pm_L3SC_trans) IOPS instructions completed event:0X4B1 counters:1 um:zero minimum:1000 name:PM_L3SC_MOD_TAG_GRP75 : (Group 75 pm_L3SC_trans) L3 slice C transition from modified to TAG event:0X4B2 counters:2 um:zero minimum:1000 name:PM_L3SC_MOD_INV_GRP75 : (Group 75 pm_L3SC_trans) L3 slice C transition from modified to invalid event:0X4B3 counters:3 um:zero minimum:1000 name:PM_L3SC_SHR_INV_GRP75 : (Group 75 pm_L3SC_trans) L3 slice C transition from shared to invalid event:0X4B4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP75 : (Group 75 pm_L3SC_trans) Run instructions completed event:0X4B5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP75 : (Group 75 pm_L3SC_trans) Run cycles #Group 76 pm_L2SA_trans, L2 slice A state transistions event:0X4C0 counters:0 um:zero minimum:1000 name:PM_L2SA_MOD_TAG_GRP76 : (Group 76 pm_L2SA_trans) L2 slice A transition from modified to tagged event:0X4C1 counters:1 um:zero minimum:1000 name:PM_L2SA_SHR_MOD_GRP76 : (Group 76 pm_L2SA_trans) L2 slice A transition from shared to modified event:0X4C2 counters:2 um:zero minimum:1000 name:PM_L2SA_MOD_INV_GRP76 : (Group 76 pm_L2SA_trans) L2 slice A transition from modified to invalid event:0X4C3 counters:3 um:zero minimum:1000 name:PM_L2SA_SHR_INV_GRP76 : (Group 76 pm_L2SA_trans) L2 slice A transition from shared to invalid event:0X4C4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP76 : (Group 76 pm_L2SA_trans) Run instructions completed event:0X4C5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP76 : (Group 76 pm_L2SA_trans) Run cycles #Group 77 pm_L2SB_trans, L2 slice B state transistions event:0X4D0 counters:0 um:zero minimum:1000 name:PM_L2SB_MOD_TAG_GRP77 : (Group 77 pm_L2SB_trans) L2 slice B transition from modified to tagged event:0X4D1 counters:1 um:zero minimum:1000 name:PM_L2SB_SHR_MOD_GRP77 : (Group 77 pm_L2SB_trans) L2 slice B transition from shared to modified event:0X4D2 counters:2 um:zero minimum:1000 name:PM_L2SB_MOD_INV_GRP77 : (Group 77 pm_L2SB_trans) L2 slice B transition from modified to invalid event:0X4D3 counters:3 um:zero minimum:1000 name:PM_L2SB_SHR_INV_GRP77 : (Group 77 pm_L2SB_trans) L2 slice B transition from shared to invalid event:0X4D4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP77 : (Group 77 pm_L2SB_trans) Run instructions completed event:0X4D5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP77 : (Group 77 pm_L2SB_trans) Run cycles #Group 78 pm_L2SC_trans, L2 slice C state transistions event:0X4E0 counters:0 um:zero minimum:1000 name:PM_L2SC_MOD_TAG_GRP78 : (Group 78 pm_L2SC_trans) L2 slice C transition from modified to tagged event:0X4E1 counters:1 um:zero minimum:1000 name:PM_L2SC_SHR_MOD_GRP78 : (Group 78 pm_L2SC_trans) L2 slice C transition from shared to modified event:0X4E2 counters:2 um:zero minimum:1000 name:PM_L2SC_MOD_INV_GRP78 : (Group 78 pm_L2SC_trans) L2 slice C transition from modified to invalid event:0X4E3 counters:3 um:zero minimum:1000 name:PM_L2SC_SHR_INV_GRP78 : (Group 78 pm_L2SC_trans) L2 slice C transition from shared to invalid event:0X4E4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP78 : (Group 78 pm_L2SC_trans) Run instructions completed event:0X4E5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP78 : (Group 78 pm_L2SC_trans) Run cycles #Group 79 pm_L3SAB_retry, L3 slice A/B snoop retry and all CI/CO busy event:0X4F0 counters:0 um:zero minimum:1000 name:PM_L3SA_ALL_BUSY_GRP79 : (Group 79 pm_L3SAB_retry) L3 slice A active for every cycle all CI/CO machines busy event:0X4F1 counters:1 um:zero minimum:1000 name:PM_L3SB_ALL_BUSY_GRP79 : (Group 79 pm_L3SAB_retry) L3 slice B active for every cycle all CI/CO machines busy event:0X4F2 counters:2 um:zero minimum:1000 name:PM_L3SA_SNOOP_RETRY_GRP79 : (Group 79 pm_L3SAB_retry) L3 slice A snoop retries event:0X4F3 counters:3 um:zero minimum:1000 name:PM_L3SB_SNOOP_RETRY_GRP79 : (Group 79 pm_L3SAB_retry) L3 slice B snoop retries event:0X4F4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP79 : (Group 79 pm_L3SAB_retry) Run instructions completed event:0X4F5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP79 : (Group 79 pm_L3SAB_retry) Run cycles #Group 80 pm_L3SAB_hit, L3 slice A/B hit and reference event:0X500 counters:0 um:zero minimum:1000 name:PM_L3SA_REF_GRP80 : (Group 80 pm_L3SAB_hit) L3 slice A references event:0X501 counters:1 um:zero minimum:1000 name:PM_L3SB_REF_GRP80 : (Group 80 pm_L3SAB_hit) L3 slice B references event:0X502 counters:2 um:zero minimum:1000 name:PM_L3SA_HIT_GRP80 : (Group 80 pm_L3SAB_hit) L3 slice A hits event:0X503 counters:3 um:zero minimum:1000 name:PM_L3SB_HIT_GRP80 : (Group 80 pm_L3SAB_hit) L3 slice B hits event:0X504 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP80 : (Group 80 pm_L3SAB_hit) Run instructions completed event:0X505 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP80 : (Group 80 pm_L3SAB_hit) Run cycles #Group 81 pm_L3SC_retry_hit, L3 slice C hit & snoop retry event:0X510 counters:0 um:zero minimum:1000 name:PM_L3SC_ALL_BUSY_GRP81 : (Group 81 pm_L3SC_retry_hit) L3 slice C active for every cycle all CI/CO machines busy event:0X511 counters:1 um:zero minimum:1000 name:PM_L3SC_REF_GRP81 : (Group 81 pm_L3SC_retry_hit) L3 slice C references event:0X512 counters:2 um:zero minimum:1000 name:PM_L3SC_SNOOP_RETRY_GRP81 : (Group 81 pm_L3SC_retry_hit) L3 slice C snoop retries event:0X513 counters:3 um:zero minimum:1000 name:PM_L3SC_HIT_GRP81 : (Group 81 pm_L3SC_retry_hit) L3 Slice C hits event:0X514 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP81 : (Group 81 pm_L3SC_retry_hit) Run instructions completed event:0X515 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP81 : (Group 81 pm_L3SC_retry_hit) Run cycles #Group 82 pm_fpu1, Floating Point events event:0X520 counters:0 um:zero minimum:1000 name:PM_FPU_FDIV_GRP82 : (Group 82 pm_fpu1) FPU executed FDIV instruction event:0X521 counters:1 um:zero minimum:1000 name:PM_FPU_FMA_GRP82 : (Group 82 pm_fpu1) FPU executed multiply-add instruction event:0X522 counters:2 um:zero minimum:1000 name:PM_FPU_FMOV_FEST_GRP82 : (Group 82 pm_fpu1) FPU executing FMOV or FEST instructions event:0X523 counters:3 um:zero minimum:1000 name:PM_FPU_FEST_GRP82 : (Group 82 pm_fpu1) FPU executed FEST instruction event:0X524 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP82 : (Group 82 pm_fpu1) Run instructions completed event:0X525 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP82 : (Group 82 pm_fpu1) Run cycles #Group 83 pm_fpu2, Floating Point events event:0X530 counters:0 um:zero minimum:1000 name:PM_FPU_1FLOP_GRP83 : (Group 83 pm_fpu2) FPU executed one flop instruction event:0X531 counters:1 um:zero minimum:1000 name:PM_FPU_FSQRT_GRP83 : (Group 83 pm_fpu2) FPU executed FSQRT instruction event:0X532 counters:2 um:zero minimum:1000 name:PM_FPU_FRSP_FCONV_GRP83 : (Group 83 pm_fpu2) FPU executed FRSP or FCONV instructions event:0X533 counters:3 um:zero minimum:1000 name:PM_FPU_FIN_GRP83 : (Group 83 pm_fpu2) FPU produced a result event:0X534 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP83 : (Group 83 pm_fpu2) Run instructions completed event:0X535 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP83 : (Group 83 pm_fpu2) Run cycles #Group 84 pm_fpu3, Floating point events event:0X540 counters:0 um:zero minimum:1000 name:PM_FPU_DENORM_GRP84 : (Group 84 pm_fpu3) FPU received denormalized data event:0X541 counters:1 um:zero minimum:1000 name:PM_FPU_STALL3_GRP84 : (Group 84 pm_fpu3) FPU stalled in pipe3 event:0X542 counters:2 um:zero minimum:1000 name:PM_FPU0_FIN_GRP84 : (Group 84 pm_fpu3) FPU0 produced a result event:0X543 counters:3 um:zero minimum:1000 name:PM_FPU1_FIN_GRP84 : (Group 84 pm_fpu3) FPU1 produced a result event:0X544 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP84 : (Group 84 pm_fpu3) Run instructions completed event:0X545 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP84 : (Group 84 pm_fpu3) Run cycles #Group 85 pm_fpu4, Floating point events event:0X550 counters:0 um:zero minimum:1000 name:PM_FPU_SINGLE_GRP85 : (Group 85 pm_fpu4) FPU executed single precision instruction event:0X551 counters:1 um:zero minimum:1000 name:PM_FPU_STF_GRP85 : (Group 85 pm_fpu4) FPU executed store instruction event:0X552 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP85 : (Group 85 pm_fpu4) IOPS instructions completed event:0X553 counters:3 um:zero minimum:1000 name:PM_LSU_LDF_GRP85 : (Group 85 pm_fpu4) LSU executed Floating Point load instruction event:0X554 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP85 : (Group 85 pm_fpu4) Run instructions completed event:0X555 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP85 : (Group 85 pm_fpu4) Run cycles #Group 86 pm_fpu5, Floating point events by unit event:0X560 counters:0 um:zero minimum:1000 name:PM_FPU0_FSQRT_GRP86 : (Group 86 pm_fpu5) FPU0 executed FSQRT instruction event:0X561 counters:1 um:zero minimum:1000 name:PM_FPU1_FSQRT_GRP86 : (Group 86 pm_fpu5) FPU1 executed FSQRT instruction event:0X562 counters:2 um:zero minimum:1000 name:PM_FPU0_FEST_GRP86 : (Group 86 pm_fpu5) FPU0 executed FEST instruction event:0X563 counters:3 um:zero minimum:1000 name:PM_FPU1_FEST_GRP86 : (Group 86 pm_fpu5) FPU1 executed FEST instruction event:0X564 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP86 : (Group 86 pm_fpu5) Run instructions completed event:0X565 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP86 : (Group 86 pm_fpu5) Run cycles #Group 87 pm_fpu6, Floating point events by unit event:0X570 counters:0 um:zero minimum:1000 name:PM_FPU0_DENORM_GRP87 : (Group 87 pm_fpu6) FPU0 received denormalized data event:0X571 counters:1 um:zero minimum:1000 name:PM_FPU1_DENORM_GRP87 : (Group 87 pm_fpu6) FPU1 received denormalized data event:0X572 counters:2 um:zero minimum:1000 name:PM_FPU0_FMOV_FEST_GRP87 : (Group 87 pm_fpu6) FPU0 executed FMOV or FEST instructions event:0X573 counters:3 um:zero minimum:1000 name:PM_FPU1_FMOV_FEST_GRP87 : (Group 87 pm_fpu6) FPU1 executing FMOV or FEST instructions event:0X574 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP87 : (Group 87 pm_fpu6) Run instructions completed event:0X575 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP87 : (Group 87 pm_fpu6) Run cycles #Group 88 pm_fpu7, Floating point events by unit event:0X580 counters:0 um:zero minimum:1000 name:PM_FPU0_FDIV_GRP88 : (Group 88 pm_fpu7) FPU0 executed FDIV instruction event:0X581 counters:1 um:zero minimum:1000 name:PM_FPU1_FDIV_GRP88 : (Group 88 pm_fpu7) FPU1 executed FDIV instruction event:0X582 counters:2 um:zero minimum:1000 name:PM_FPU0_FRSP_FCONV_GRP88 : (Group 88 pm_fpu7) FPU0 executed FRSP or FCONV instructions event:0X583 counters:3 um:zero minimum:1000 name:PM_FPU1_FRSP_FCONV_GRP88 : (Group 88 pm_fpu7) FPU1 executed FRSP or FCONV instructions event:0X584 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP88 : (Group 88 pm_fpu7) Run instructions completed event:0X585 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP88 : (Group 88 pm_fpu7) Run cycles #Group 89 pm_fpu8, Floating point events by unit event:0X590 counters:0 um:zero minimum:1000 name:PM_FPU0_STALL3_GRP89 : (Group 89 pm_fpu8) FPU0 stalled in pipe3 event:0X591 counters:1 um:zero minimum:1000 name:PM_FPU1_STALL3_GRP89 : (Group 89 pm_fpu8) FPU1 stalled in pipe3 event:0X592 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP89 : (Group 89 pm_fpu8) IOPS instructions completed event:0X593 counters:3 um:zero minimum:1000 name:PM_FPU0_FPSCR_GRP89 : (Group 89 pm_fpu8) FPU0 executed FPSCR instruction event:0X594 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP89 : (Group 89 pm_fpu8) Run instructions completed event:0X595 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP89 : (Group 89 pm_fpu8) Run cycles #Group 90 pm_fpu9, Floating point events by unit event:0X5A0 counters:0 um:zero minimum:1000 name:PM_FPU0_SINGLE_GRP90 : (Group 90 pm_fpu9) FPU0 executed single precision instruction event:0X5A1 counters:1 um:zero minimum:1000 name:PM_FPU1_SINGLE_GRP90 : (Group 90 pm_fpu9) FPU1 executed single precision instruction event:0X5A2 counters:2 um:zero minimum:1000 name:PM_LSU0_LDF_GRP90 : (Group 90 pm_fpu9) LSU0 executed Floating Point load instruction event:0X5A3 counters:3 um:zero minimum:1000 name:PM_LSU1_LDF_GRP90 : (Group 90 pm_fpu9) LSU1 executed Floating Point load instruction event:0X5A4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP90 : (Group 90 pm_fpu9) Run instructions completed event:0X5A5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP90 : (Group 90 pm_fpu9) Run cycles #Group 91 pm_fpu10, Floating point events by unit event:0X5B0 counters:0 um:zero minimum:1000 name:PM_FPU0_FMA_GRP91 : (Group 91 pm_fpu10) FPU0 executed multiply-add instruction event:0X5B1 counters:1 um:zero minimum:1000 name:PM_FPU1_FMA_GRP91 : (Group 91 pm_fpu10) FPU1 executed multiply-add instruction event:0X5B2 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP91 : (Group 91 pm_fpu10) IOPS instructions completed event:0X5B3 counters:3 um:zero minimum:1000 name:PM_FPU1_FRSP_FCONV_GRP91 : (Group 91 pm_fpu10) FPU1 executed FRSP or FCONV instructions event:0X5B4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP91 : (Group 91 pm_fpu10) Run instructions completed event:0X5B5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP91 : (Group 91 pm_fpu10) Run cycles #Group 92 pm_fpu11, Floating point events by unit event:0X5C0 counters:0 um:zero minimum:1000 name:PM_FPU0_1FLOP_GRP92 : (Group 92 pm_fpu11) FPU0 executed add, mult, sub, cmp or sel instruction event:0X5C1 counters:1 um:zero minimum:1000 name:PM_FPU1_1FLOP_GRP92 : (Group 92 pm_fpu11) FPU1 executed add, mult, sub, cmp or sel instruction event:0X5C2 counters:2 um:zero minimum:1000 name:PM_FPU0_FIN_GRP92 : (Group 92 pm_fpu11) FPU0 produced a result event:0X5C3 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP92 : (Group 92 pm_fpu11) IOPS instructions completed event:0X5C4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP92 : (Group 92 pm_fpu11) Run instructions completed event:0X5C5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP92 : (Group 92 pm_fpu11) Run cycles #Group 93 pm_fpu12, Floating point events by unit event:0X5D0 counters:0 um:zero minimum:1000 name:PM_FPU0_STF_GRP93 : (Group 93 pm_fpu12) FPU0 executed store instruction event:0X5D1 counters:1 um:zero minimum:1000 name:PM_FPU1_STF_GRP93 : (Group 93 pm_fpu12) FPU1 executed store instruction event:0X5D2 counters:2 um:zero minimum:1000 name:PM_LSU0_LDF_GRP93 : (Group 93 pm_fpu12) LSU0 executed Floating Point load instruction event:0X5D3 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP93 : (Group 93 pm_fpu12) IOPS instructions completed event:0X5D4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP93 : (Group 93 pm_fpu12) Run instructions completed event:0X5D5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP93 : (Group 93 pm_fpu12) Run cycles #Group 94 pm_fxu1, Fixed Point events event:0X5E0 counters:0 um:zero minimum:1000 name:PM_FXU_IDLE_GRP94 : (Group 94 pm_fxu1) FXU idle event:0X5E1 counters:1 um:zero minimum:1000 name:PM_FXU_BUSY_GRP94 : (Group 94 pm_fxu1) FXU busy event:0X5E2 counters:2 um:zero minimum:1000 name:PM_FXU0_BUSY_FXU1_IDLE_GRP94 : (Group 94 pm_fxu1) FXU0 busy FXU1 idle event:0X5E3 counters:3 um:zero minimum:1000 name:PM_FXU1_BUSY_FXU0_IDLE_GRP94 : (Group 94 pm_fxu1) FXU1 busy FXU0 idle event:0X5E4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP94 : (Group 94 pm_fxu1) Run instructions completed event:0X5E5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP94 : (Group 94 pm_fxu1) Run cycles #Group 95 pm_fxu2, Fixed Point events event:0X5F0 counters:0 um:zero minimum:1000 name:PM_MRK_GRP_DISP_GRP95 : (Group 95 pm_fxu2) Marked group dispatched event:0X5F1 counters:1 um:zero minimum:1000 name:PM_MRK_GRP_BR_REDIR_GRP95 : (Group 95 pm_fxu2) Group experienced marked branch redirect event:0X5F2 counters:2 um:zero minimum:1000 name:PM_FXU_FIN_GRP95 : (Group 95 pm_fxu2) FXU produced a result event:0X5F3 counters:3 um:zero minimum:1000 name:PM_FXLS_FULL_CYC_GRP95 : (Group 95 pm_fxu2) Cycles FXLS queue is full event:0X5F4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP95 : (Group 95 pm_fxu2) Run instructions completed event:0X5F5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP95 : (Group 95 pm_fxu2) Run cycles #Group 96 pm_fxu3, Fixed Point events event:0X600 counters:0 um:zero minimum:1000 name:PM_3INST_CLB_CYC_GRP96 : (Group 96 pm_fxu3) Cycles 3 instructions in CLB event:0X601 counters:1 um:zero minimum:1000 name:PM_4INST_CLB_CYC_GRP96 : (Group 96 pm_fxu3) Cycles 4 instructions in CLB event:0X602 counters:2 um:zero minimum:1000 name:PM_FXU0_FIN_GRP96 : (Group 96 pm_fxu3) FXU0 produced a result event:0X603 counters:3 um:zero minimum:1000 name:PM_FXU1_FIN_GRP96 : (Group 96 pm_fxu3) FXU1 produced a result event:0X604 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP96 : (Group 96 pm_fxu3) Run instructions completed event:0X605 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP96 : (Group 96 pm_fxu3) Run cycles #Group 97 pm_smt_priorities1, Thread priority events event:0X610 counters:0 um:zero minimum:1000 name:PM_THRD_PRIO_4_CYC_GRP97 : (Group 97 pm_smt_priorities1) Cycles thread running at priority level 4 event:0X611 counters:1 um:zero minimum:1000 name:PM_THRD_PRIO_7_CYC_GRP97 : (Group 97 pm_smt_priorities1) Cycles thread running at priority level 7 event:0X612 counters:2 um:zero minimum:1000 name:PM_THRD_PRIO_DIFF_0_CYC_GRP97 : (Group 97 pm_smt_priorities1) Cycles no thread priority difference event:0X613 counters:3 um:zero minimum:1000 name:PM_THRD_PRIO_DIFF_1or2_CYC_GRP97 : (Group 97 pm_smt_priorities1) Cycles thread priority difference is 1 or 2 event:0X614 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP97 : (Group 97 pm_smt_priorities1) Run instructions completed event:0X615 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP97 : (Group 97 pm_smt_priorities1) Run cycles #Group 98 pm_smt_priorities2, Thread priority events event:0X620 counters:0 um:zero minimum:1000 name:PM_THRD_PRIO_3_CYC_GRP98 : (Group 98 pm_smt_priorities2) Cycles thread running at priority level 3 event:0X621 counters:1 um:zero minimum:1000 name:PM_THRD_PRIO_6_CYC_GRP98 : (Group 98 pm_smt_priorities2) Cycles thread running at priority level 6 event:0X622 counters:2 um:zero minimum:1000 name:PM_THRD_PRIO_DIFF_3or4_CYC_GRP98 : (Group 98 pm_smt_priorities2) Cycles thread priority difference is 3 or 4 event:0X623 counters:3 um:zero minimum:1000 name:PM_THRD_PRIO_DIFF_5or6_CYC_GRP98 : (Group 98 pm_smt_priorities2) Cycles thread priority difference is 5 or 6 event:0X624 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP98 : (Group 98 pm_smt_priorities2) Run instructions completed event:0X625 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP98 : (Group 98 pm_smt_priorities2) Run cycles #Group 99 pm_smt_priorities3, Thread priority events event:0X630 counters:0 um:zero minimum:1000 name:PM_THRD_PRIO_2_CYC_GRP99 : (Group 99 pm_smt_priorities3) Cycles thread running at priority level 2 event:0X631 counters:1 um:zero minimum:1000 name:PM_THRD_PRIO_5_CYC_GRP99 : (Group 99 pm_smt_priorities3) Cycles thread running at priority level 5 event:0X632 counters:2 um:zero minimum:1000 name:PM_THRD_PRIO_DIFF_minus1or2_CYC_GRP99 : (Group 99 pm_smt_priorities3) Cycles thread priority difference is -1 or -2 event:0X633 counters:3 um:zero minimum:1000 name:PM_THRD_PRIO_DIFF_minus3or4_CYC_GRP99 : (Group 99 pm_smt_priorities3) Cycles thread priority difference is -3 or -4 event:0X634 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP99 : (Group 99 pm_smt_priorities3) Run instructions completed event:0X635 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP99 : (Group 99 pm_smt_priorities3) Run cycles #Group 100 pm_smt_priorities4, Thread priority events event:0X640 counters:0 um:zero minimum:1000 name:PM_THRD_PRIO_1_CYC_GRP100 : (Group 100 pm_smt_priorities4) Cycles thread running at priority level 1 event:0X641 counters:1 um:zero minimum:1000 name:PM_HV_CYC_GRP100 : (Group 100 pm_smt_priorities4) Hypervisor Cycles event:0X642 counters:2 um:zero minimum:1000 name:PM_THRD_PRIO_DIFF_minus5or6_CYC_GRP100 : (Group 100 pm_smt_priorities4) Cycles thread priority difference is -5 or -6 event:0X643 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP100 : (Group 100 pm_smt_priorities4) IOPS instructions completed event:0X644 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP100 : (Group 100 pm_smt_priorities4) Run instructions completed event:0X645 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP100 : (Group 100 pm_smt_priorities4) Run cycles #Group 101 pm_smt_both, Thread common events event:0X650 counters:0 um:zero minimum:1000 name:PM_THRD_ONE_RUN_CYC_GRP101 : (Group 101 pm_smt_both) One of the threads in run cycles event:0X651 counters:1 um:zero minimum:1000 name:PM_THRD_GRP_CMPL_BOTH_CYC_GRP101 : (Group 101 pm_smt_both) Cycles group completed by both threads event:0X652 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP101 : (Group 101 pm_smt_both) IOPS instructions completed event:0X653 counters:3 um:zero minimum:1000 name:PM_THRD_L2MISS_BOTH_CYC_GRP101 : (Group 101 pm_smt_both) Cycles both threads in L2 misses event:0X654 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP101 : (Group 101 pm_smt_both) Run instructions completed event:0X655 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP101 : (Group 101 pm_smt_both) Run cycles #Group 102 pm_smt_selection, Thread selection event:0X660 counters:0 um:zero minimum:1000 name:PM_SNOOP_TLBIE_GRP102 : (Group 102 pm_smt_selection) Snoop TLBIE event:0X661 counters:1 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP102 : (Group 102 pm_smt_selection) IOPS instructions completed event:0X662 counters:2 um:zero minimum:1000 name:PM_THRD_SEL_T0_GRP102 : (Group 102 pm_smt_selection) Decode selected thread 0 event:0X663 counters:3 um:zero minimum:1000 name:PM_THRD_SEL_T1_GRP102 : (Group 102 pm_smt_selection) Decode selected thread 1 event:0X664 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP102 : (Group 102 pm_smt_selection) Run instructions completed event:0X665 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP102 : (Group 102 pm_smt_selection) Run cycles #Group 103 pm_smt_selectover1, Thread selection overide event:0X670 counters:0 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP103 : (Group 103 pm_smt_selectover1) IOPS instructions completed event:0X671 counters:1 um:zero minimum:1000 name:PM_0INST_CLB_CYC_GRP103 : (Group 103 pm_smt_selectover1) Cycles no instructions in CLB event:0X672 counters:2 um:zero minimum:1000 name:PM_THRD_SEL_OVER_CLB_EMPTY_GRP103 : (Group 103 pm_smt_selectover1) Thread selection overides caused by CLB empty event:0X673 counters:3 um:zero minimum:1000 name:PM_THRD_SEL_OVER_GCT_IMBAL_GRP103 : (Group 103 pm_smt_selectover1) Thread selection overides caused by GCT imbalance event:0X674 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP103 : (Group 103 pm_smt_selectover1) Run instructions completed event:0X675 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP103 : (Group 103 pm_smt_selectover1) Run cycles #Group 104 pm_smt_selectover2, Thread selection overide event:0X680 counters:0 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP104 : (Group 104 pm_smt_selectover2) IOPS instructions completed event:0X681 counters:1 um:zero minimum:10000 name:PM_CYC_GRP104 : (Group 104 pm_smt_selectover2) Processor cycles event:0X682 counters:2 um:zero minimum:1000 name:PM_THRD_SEL_OVER_ISU_HOLD_GRP104 : (Group 104 pm_smt_selectover2) Thread selection overides caused by ISU holds event:0X683 counters:3 um:zero minimum:1000 name:PM_THRD_SEL_OVER_L2MISS_GRP104 : (Group 104 pm_smt_selectover2) Thread selection overides caused by L2 misses event:0X684 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP104 : (Group 104 pm_smt_selectover2) Run instructions completed event:0X685 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP104 : (Group 104 pm_smt_selectover2) Run cycles #Group 105 pm_fabric1, Fabric events event:0X690 counters:0 um:zero minimum:1000 name:PM_FAB_CMD_ISSUED_GRP105 : (Group 105 pm_fabric1) Fabric command issued event:0X691 counters:1 um:zero minimum:1000 name:PM_FAB_DCLAIM_ISSUED_GRP105 : (Group 105 pm_fabric1) dclaim issued event:0X692 counters:2 um:zero minimum:1000 name:PM_FAB_CMD_RETRIED_GRP105 : (Group 105 pm_fabric1) Fabric command retried event:0X693 counters:3 um:zero minimum:1000 name:PM_FAB_DCLAIM_RETRIED_GRP105 : (Group 105 pm_fabric1) dclaim retried event:0X694 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP105 : (Group 105 pm_fabric1) Run instructions completed event:0X695 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP105 : (Group 105 pm_fabric1) Run cycles #Group 106 pm_fabric2, Fabric data movement event:0X6A0 counters:0 um:zero minimum:1000 name:PM_FAB_P1toM1_SIDECAR_EMPTY_GRP106 : (Group 106 pm_fabric2) P1 to M1 sidecar empty event:0X6A1 counters:1 um:zero minimum:1000 name:PM_FAB_HOLDtoVN_EMPTY_GRP106 : (Group 106 pm_fabric2) Hold buffer to VN empty event:0X6A2 counters:2 um:zero minimum:1000 name:PM_FAB_P1toVNorNN_SIDECAR_EMPTY_GRP106 : (Group 106 pm_fabric2) P1 to VN/NN sidecar empty event:0X6A3 counters:3 um:zero minimum:1000 name:PM_FAB_VBYPASS_EMPTY_GRP106 : (Group 106 pm_fabric2) Vertical bypass buffer empty event:0X6A4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP106 : (Group 106 pm_fabric2) Run instructions completed event:0X6A5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP106 : (Group 106 pm_fabric2) Run cycles #Group 107 pm_fabric3, Fabric data movement event:0X6B0 counters:0 um:zero minimum:1000 name:PM_FAB_PNtoNN_DIRECT_GRP107 : (Group 107 pm_fabric3) PN to NN beat went straight to its destination event:0X6B1 counters:1 um:zero minimum:1000 name:PM_FAB_PNtoVN_DIRECT_GRP107 : (Group 107 pm_fabric3) PN to VN beat went straight to its destination event:0X6B2 counters:2 um:zero minimum:1000 name:PM_FAB_PNtoNN_SIDECAR_GRP107 : (Group 107 pm_fabric3) PN to NN beat went to sidecar first event:0X6B3 counters:3 um:zero minimum:1000 name:PM_FAB_PNtoVN_SIDECAR_GRP107 : (Group 107 pm_fabric3) PN to VN beat went to sidecar first event:0X6B4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP107 : (Group 107 pm_fabric3) Run instructions completed event:0X6B5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP107 : (Group 107 pm_fabric3) Run cycles #Group 108 pm_fabric4, Fabric data movement event:0X6C0 counters:0 um:zero minimum:1000 name:PM_FAB_M1toP1_SIDECAR_EMPTY_GRP108 : (Group 108 pm_fabric4) M1 to P1 sidecar empty event:0X6C1 counters:1 um:zero minimum:1000 name:PM_FAB_HOLDtoNN_EMPTY_GRP108 : (Group 108 pm_fabric4) Hold buffer to NN empty event:0X6C2 counters:2 um:zero minimum:1000 name:PM_EE_OFF_GRP108 : (Group 108 pm_fabric4) Cycles MSR(EE) bit off event:0X6C3 counters:3 um:zero minimum:1000 name:PM_FAB_M1toVNorNN_SIDECAR_EMPTY_GRP108 : (Group 108 pm_fabric4) M1 to VN/NN sidecar empty event:0X6C4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP108 : (Group 108 pm_fabric4) Run instructions completed event:0X6C5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP108 : (Group 108 pm_fabric4) Run cycles #Group 109 pm_snoop1, Snoop retry event:0X6D0 counters:0 um:zero minimum:1000 name:PM_SNOOP_RD_RETRY_QFULL_GRP109 : (Group 109 pm_snoop1) Snoop read retry due to read queue full event:0X6D1 counters:1 um:zero minimum:1000 name:PM_SNOOP_DCLAIM_RETRY_QFULL_GRP109 : (Group 109 pm_snoop1) Snoop dclaim/flush retry due to write/dclaim queues full event:0X6D2 counters:2 um:zero minimum:1000 name:PM_SNOOP_WR_RETRY_QFULL_GRP109 : (Group 109 pm_snoop1) Snoop read retry due to read queue full event:0X6D3 counters:3 um:zero minimum:1000 name:PM_SNOOP_PARTIAL_RTRY_QFULL_GRP109 : (Group 109 pm_snoop1) Snoop partial write retry due to partial-write queues full event:0X6D4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP109 : (Group 109 pm_snoop1) Run instructions completed event:0X6D5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP109 : (Group 109 pm_snoop1) Run cycles #Group 110 pm_snoop2, Snoop read retry event:0X6E0 counters:0 um:zero minimum:1000 name:PM_SNOOP_RD_RETRY_RQ_GRP110 : (Group 110 pm_snoop2) Snoop read retry due to collision with active read queue event:0X6E1 counters:1 um:zero minimum:1000 name:PM_SNOOP_RETRY_1AHEAD_GRP110 : (Group 110 pm_snoop2) Snoop retry due to one ahead collision event:0X6E2 counters:2 um:zero minimum:1000 name:PM_SNOOP_RD_RETRY_WQ_GRP110 : (Group 110 pm_snoop2) Snoop read retry due to collision with active write queue event:0X6E3 counters:3 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP110 : (Group 110 pm_snoop2) IOPS instructions completed event:0X6E4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP110 : (Group 110 pm_snoop2) Run instructions completed event:0X6E5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP110 : (Group 110 pm_snoop2) Run cycles #Group 111 pm_snoop3, Snoop write retry event:0X6F0 counters:0 um:zero minimum:1000 name:PM_SNOOP_WR_RETRY_RQ_GRP111 : (Group 111 pm_snoop3) Snoop write/dclaim retry due to collision with active read queue event:0X6F1 counters:1 um:zero minimum:1000 name:PM_MEM_HI_PRIO_WR_CMPL_GRP111 : (Group 111 pm_snoop3) High priority write completed event:0X6F2 counters:2 um:zero minimum:1000 name:PM_SNOOP_WR_RETRY_WQ_GRP111 : (Group 111 pm_snoop3) Snoop write/dclaim retry due to collision with active write queue event:0X6F3 counters:3 um:zero minimum:1000 name:PM_MEM_LO_PRIO_WR_CMPL_GRP111 : (Group 111 pm_snoop3) Low priority write completed event:0X6F4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP111 : (Group 111 pm_snoop3) Run instructions completed event:0X6F5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP111 : (Group 111 pm_snoop3) Run cycles #Group 112 pm_snoop4, Snoop partial write retry event:0X700 counters:0 um:zero minimum:1000 name:PM_SNOOP_PW_RETRY_RQ_GRP112 : (Group 112 pm_snoop4) Snoop partial-write retry due to collision with active read queue event:0X701 counters:1 um:zero minimum:1000 name:PM_MEM_HI_PRIO_PW_CMPL_GRP112 : (Group 112 pm_snoop4) High priority partial-write completed event:0X702 counters:2 um:zero minimum:1000 name:PM_SNOOP_PW_RETRY_WQ_PWQ_GRP112 : (Group 112 pm_snoop4) Snoop partial-write retry due to collision with active write or partial-write queue event:0X703 counters:3 um:zero minimum:1000 name:PM_MEM_LO_PRIO_PW_CMPL_GRP112 : (Group 112 pm_snoop4) Low priority partial-write completed event:0X704 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP112 : (Group 112 pm_snoop4) Run instructions completed event:0X705 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP112 : (Group 112 pm_snoop4) Run cycles #Group 113 pm_mem_rq, Memory read queue dispatch event:0X710 counters:0 um:zero minimum:1000 name:PM_MEM_RQ_DISP_GRP113 : (Group 113 pm_mem_rq) Memory read queue dispatched event:0X711 counters:1 um:zero minimum:1000 name:PM_MEM_RQ_DISP_BUSY8to15_GRP113 : (Group 113 pm_mem_rq) Memory read queue dispatched with 8-15 queues busy event:0X712 counters:2 um:zero minimum:1000 name:PM_MEM_RQ_DISP_BUSY1to7_GRP113 : (Group 113 pm_mem_rq) Memory read queue dispatched with 1-7 queues busy event:0X713 counters:3 um:zero minimum:1000 name:PM_EE_OFF_EXT_INT_GRP113 : (Group 113 pm_mem_rq) Cycles MSR(EE) bit off and external interrupt pending event:0X714 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP113 : (Group 113 pm_mem_rq) Run instructions completed event:0X715 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP113 : (Group 113 pm_mem_rq) Run cycles #Group 114 pm_mem_read, Memory read complete and cancel event:0X720 counters:0 um:zero minimum:1000 name:PM_MEM_READ_CMPL_GRP114 : (Group 114 pm_mem_read) Memory read completed or canceled event:0X721 counters:1 um:zero minimum:1000 name:PM_MEM_FAST_PATH_RD_CMPL_GRP114 : (Group 114 pm_mem_read) Fast path memory read completed event:0X722 counters:2 um:zero minimum:1000 name:PM_MEM_SPEC_RD_CANCEL_GRP114 : (Group 114 pm_mem_read) Speculative memory read canceled event:0X723 counters:3 um:zero minimum:1000 name:PM_EXT_INT_GRP114 : (Group 114 pm_mem_read) External interrupts event:0X724 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP114 : (Group 114 pm_mem_read) Run instructions completed event:0X725 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP114 : (Group 114 pm_mem_read) Run cycles #Group 115 pm_mem_wq, Memory write queue dispatch event:0X730 counters:0 um:zero minimum:1000 name:PM_MEM_WQ_DISP_WRITE_GRP115 : (Group 115 pm_mem_wq) Memory write queue dispatched due to write event:0X731 counters:1 um:zero minimum:1000 name:PM_MEM_WQ_DISP_BUSY1to7_GRP115 : (Group 115 pm_mem_wq) Memory write queue dispatched with 1-7 queues busy event:0X732 counters:2 um:zero minimum:1000 name:PM_MEM_WQ_DISP_DCLAIM_GRP115 : (Group 115 pm_mem_wq) Memory write queue dispatched due to dclaim/flush event:0X733 counters:3 um:zero minimum:1000 name:PM_MEM_WQ_DISP_BUSY8to15_GRP115 : (Group 115 pm_mem_wq) Memory write queue dispatched with 8-15 queues busy event:0X734 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP115 : (Group 115 pm_mem_wq) Run instructions completed event:0X735 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP115 : (Group 115 pm_mem_wq) Run cycles #Group 116 pm_mem_pwq, Memory partial write queue event:0X740 counters:0 um:zero minimum:1000 name:PM_MEM_PWQ_DISP_GRP116 : (Group 116 pm_mem_pwq) Memory partial-write queue dispatched event:0X741 counters:1 um:zero minimum:1000 name:PM_MEM_PWQ_DISP_BUSY2or3_GRP116 : (Group 116 pm_mem_pwq) Memory partial-write queue dispatched with 2-3 queues busy event:0X742 counters:2 um:zero minimum:1000 name:PM_MEM_PW_GATH_GRP116 : (Group 116 pm_mem_pwq) Memory partial-write gathered event:0X743 counters:3 um:zero minimum:1000 name:PM_MEM_PW_CMPL_GRP116 : (Group 116 pm_mem_pwq) Memory partial-write completed event:0X744 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP116 : (Group 116 pm_mem_pwq) Run instructions completed event:0X745 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP116 : (Group 116 pm_mem_pwq) Run cycles #Group 117 pm_threshold, Thresholding event:0X750 counters:0 um:zero minimum:1000 name:PM_MRK_GRP_DISP_GRP117 : (Group 117 pm_threshold) Marked group dispatched event:0X751 counters:1 um:zero minimum:1000 name:PM_MRK_IMR_RELOAD_GRP117 : (Group 117 pm_threshold) Marked IMR reloaded event:0X752 counters:2 um:zero minimum:1000 name:PM_THRESH_TIMEO_GRP117 : (Group 117 pm_threshold) Threshold timeout event:0X753 counters:3 um:zero minimum:1000 name:PM_MRK_LSU_FIN_GRP117 : (Group 117 pm_threshold) Marked instruction LSU processing finished event:0X754 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP117 : (Group 117 pm_threshold) Run instructions completed event:0X755 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP117 : (Group 117 pm_threshold) Run cycles #Group 118 pm_mrk_grp1, Marked group events event:0X760 counters:0 um:zero minimum:1000 name:PM_MRK_GRP_DISP_GRP118 : (Group 118 pm_mrk_grp1) Marked group dispatched event:0X761 counters:1 um:zero minimum:1000 name:PM_MRK_ST_MISS_L1_GRP118 : (Group 118 pm_mrk_grp1) Marked L1 D cache store misses event:0X762 counters:2 um:zero minimum:1000 name:PM_MRK_INST_FIN_GRP118 : (Group 118 pm_mrk_grp1) Marked instruction finished event:0X763 counters:3 um:zero minimum:1000 name:PM_MRK_GRP_CMPL_GRP118 : (Group 118 pm_mrk_grp1) Marked group completed event:0X764 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP118 : (Group 118 pm_mrk_grp1) Run instructions completed event:0X765 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP118 : (Group 118 pm_mrk_grp1) Run cycles #Group 119 pm_mrk_grp2, Marked group events event:0X770 counters:0 um:zero minimum:1000 name:PM_MRK_GRP_ISSUED_GRP119 : (Group 119 pm_mrk_grp2) Marked group issued event:0X771 counters:1 um:zero minimum:1000 name:PM_MRK_BRU_FIN_GRP119 : (Group 119 pm_mrk_grp2) Marked instruction BRU processing finished event:0X772 counters:2 um:zero minimum:1000 name:PM_MRK_L1_RELOAD_VALID_GRP119 : (Group 119 pm_mrk_grp2) Marked L1 reload data source valid event:0X773 counters:3 um:zero minimum:1000 name:PM_MRK_GRP_IC_MISS_GRP119 : (Group 119 pm_mrk_grp2) Group experienced marked I cache miss event:0X774 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP119 : (Group 119 pm_mrk_grp2) Run instructions completed event:0X775 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP119 : (Group 119 pm_mrk_grp2) Run cycles #Group 120 pm_mrk_dsource1, Marked data from event:0X780 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2_GRP120 : (Group 120 pm_mrk_dsource1) Marked data loaded from L2 event:0X781 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2_CYC_GRP120 : (Group 120 pm_mrk_dsource1) Marked load latency from L2 event:0X782 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L25_MOD_GRP120 : (Group 120 pm_mrk_dsource1) Marked data loaded from L2.5 modified event:0X783 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L25_MOD_CYC_GRP120 : (Group 120 pm_mrk_dsource1) Marked load latency from L2.5 modified event:0X784 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP120 : (Group 120 pm_mrk_dsource1) Run instructions completed event:0X785 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP120 : (Group 120 pm_mrk_dsource1) Run cycles #Group 121 pm_mrk_dsource2, Marked data from event:0X790 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L25_SHR_GRP121 : (Group 121 pm_mrk_dsource2) Marked data loaded from L2.5 shared event:0X791 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L25_SHR_CYC_GRP121 : (Group 121 pm_mrk_dsource2) Marked load latency from L2.5 shared event:0X792 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP121 : (Group 121 pm_mrk_dsource2) IOPS instructions completed event:0X793 counters:3 um:zero minimum:1000 name:PM_FPU_FIN_GRP121 : (Group 121 pm_mrk_dsource2) FPU produced a result event:0X794 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP121 : (Group 121 pm_mrk_dsource2) Run instructions completed event:0X795 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP121 : (Group 121 pm_mrk_dsource2) Run cycles #Group 122 pm_mrk_dsource3, Marked data from event:0X7A0 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L3_GRP122 : (Group 122 pm_mrk_dsource3) Marked data loaded from L3 event:0X7A1 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L3_CYC_GRP122 : (Group 122 pm_mrk_dsource3) Marked load latency from L3 event:0X7A2 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L35_MOD_GRP122 : (Group 122 pm_mrk_dsource3) Marked data loaded from L3.5 modified event:0X7A3 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L35_MOD_CYC_GRP122 : (Group 122 pm_mrk_dsource3) Marked load latency from L3.5 modified event:0X7A4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP122 : (Group 122 pm_mrk_dsource3) Run instructions completed event:0X7A5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP122 : (Group 122 pm_mrk_dsource3) Run cycles #Group 123 pm_mrk_dsource4, Marked data from event:0X7B0 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_RMEM_GRP123 : (Group 123 pm_mrk_dsource4) Marked data loaded from remote memory event:0X7B1 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L275_SHR_CYC_GRP123 : (Group 123 pm_mrk_dsource4) Marked load latency from L2.75 shared event:0X7B2 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L275_SHR_GRP123 : (Group 123 pm_mrk_dsource4) Marked data loaded from L2.75 shared event:0X7B3 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_RMEM_CYC_GRP123 : (Group 123 pm_mrk_dsource4) Marked load latency from remote memory event:0X7B4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP123 : (Group 123 pm_mrk_dsource4) Run instructions completed event:0X7B5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP123 : (Group 123 pm_mrk_dsource4) Run cycles #Group 124 pm_mrk_dsource5, Marked data from event:0X7C0 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L35_SHR_GRP124 : (Group 124 pm_mrk_dsource5) Marked data loaded from L3.5 shared event:0X7C1 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L35_SHR_CYC_GRP124 : (Group 124 pm_mrk_dsource5) Marked load latency from L3.5 shared event:0X7C2 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_LMEM_GRP124 : (Group 124 pm_mrk_dsource5) Marked data loaded from local memory event:0X7C3 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_LMEM_CYC_GRP124 : (Group 124 pm_mrk_dsource5) Marked load latency from local memory event:0X7C4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP124 : (Group 124 pm_mrk_dsource5) Run instructions completed event:0X7C5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP124 : (Group 124 pm_mrk_dsource5) Run cycles #Group 125 pm_mrk_dsource6, Marked data from event:0X7D0 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L275_MOD_GRP125 : (Group 125 pm_mrk_dsource6) Marked data loaded from L2.75 modified event:0X7D1 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L275_SHR_CYC_GRP125 : (Group 125 pm_mrk_dsource6) Marked load latency from L2.75 shared event:0X7D2 counters:2 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP125 : (Group 125 pm_mrk_dsource6) IOPS instructions completed event:0X7D3 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L275_MOD_CYC_GRP125 : (Group 125 pm_mrk_dsource6) Marked load latency from L2.75 modified event:0X7D4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP125 : (Group 125 pm_mrk_dsource6) Run instructions completed event:0X7D5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP125 : (Group 125 pm_mrk_dsource6) Run cycles #Group 126 pm_mrk_dsource7, Marked data from event:0X7E0 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L375_MOD_GRP126 : (Group 126 pm_mrk_dsource7) Marked data loaded from L3.75 modified event:0X7E1 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L375_SHR_CYC_GRP126 : (Group 126 pm_mrk_dsource7) Marked load latency from L3.75 shared event:0X7E2 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L375_SHR_GRP126 : (Group 126 pm_mrk_dsource7) Marked data loaded from L3.75 shared event:0X7E3 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L375_MOD_CYC_GRP126 : (Group 126 pm_mrk_dsource7) Marked load latency from L3.75 modified event:0X7E4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP126 : (Group 126 pm_mrk_dsource7) Run instructions completed event:0X7E5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP126 : (Group 126 pm_mrk_dsource7) Run cycles #Group 127 pm_mrk_dtlbref, Marked data TLB references event:0X7F0 counters:0 um:zero minimum:1000 name:PM_MRK_DTLB_REF_4K_GRP127 : (Group 127 pm_mrk_dtlbref) Marked Data TLB reference for 4K page event:0X7F1 counters:1 um:zero minimum:1000 name:PM_MRK_DTLB_REF_64K_GRP127 : (Group 127 pm_mrk_dtlbref) Marked Data TLB reference for 64K page event:0X7F2 counters:2 um:zero minimum:1000 name:PM_MRK_DTLB_REF_16M_GRP127 : (Group 127 pm_mrk_dtlbref) Marked Data TLB reference for 16M page event:0X7F3 counters:3 um:zero minimum:1000 name:PM_MRK_DTLB_REF_16G_GRP127 : (Group 127 pm_mrk_dtlbref) Marked Data TLB reference for 16G page event:0X7F4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP127 : (Group 127 pm_mrk_dtlbref) Run instructions completed event:0X7F5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP127 : (Group 127 pm_mrk_dtlbref) Run cycles #Group 128 pm_mrk_dtlbmiss, Marked data TLB misses event:0X800 counters:0 um:zero minimum:1000 name:PM_MRK_DTLB_MISS_4K_GRP128 : (Group 128 pm_mrk_dtlbmiss) Marked Data TLB misses for 4K page event:0X801 counters:1 um:zero minimum:1000 name:PM_MRK_DTLB_MISS_64K_GRP128 : (Group 128 pm_mrk_dtlbmiss) Marked Data TLB misses for 64K page event:0X802 counters:2 um:zero minimum:1000 name:PM_MRK_DTLB_MISS_16M_GRP128 : (Group 128 pm_mrk_dtlbmiss) Marked Data TLB misses for 16M page event:0X803 counters:3 um:zero minimum:1000 name:PM_MRK_DTLB_MISS_16G_GRP128 : (Group 128 pm_mrk_dtlbmiss) Marked Data TLB misses for 16G page event:0X804 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP128 : (Group 128 pm_mrk_dtlbmiss) Run instructions completed event:0X805 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP128 : (Group 128 pm_mrk_dtlbmiss) Run cycles #Group 129 pm_mrk_dtlb_dslb, Marked data TLB references and misses and marked data SLB misses event:0X810 counters:0 um:zero minimum:1000 name:PM_MRK_DTLB_REF_GRP129 : (Group 129 pm_mrk_dtlb_dslb) Marked Data TLB reference event:0X811 counters:1 um:zero minimum:1000 name:PM_MRK_DTLB_MISS_GRP129 : (Group 129 pm_mrk_dtlb_dslb) Marked Data TLB misses event:0X812 counters:2 um:zero minimum:1000 name:PM_MRK_DSLB_MISS_GRP129 : (Group 129 pm_mrk_dtlb_dslb) Marked Data SLB misses event:0X813 counters:3 um:zero minimum:10000 name:PM_CYC_GRP129 : (Group 129 pm_mrk_dtlb_dslb) Processor cycles event:0X814 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP129 : (Group 129 pm_mrk_dtlb_dslb) Run instructions completed event:0X815 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP129 : (Group 129 pm_mrk_dtlb_dslb) Run cycles #Group 130 pm_mrk_lbref, Marked TLB and SLB references event:0X820 counters:0 um:zero minimum:1000 name:PM_MRK_DTLB_REF_4K_GRP130 : (Group 130 pm_mrk_lbref) Marked Data TLB reference for 4K page event:0X821 counters:1 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP130 : (Group 130 pm_mrk_lbref) IOPS instructions completed event:0X822 counters:2 um:zero minimum:1000 name:PM_MRK_DTLB_REF_16M_GRP130 : (Group 130 pm_mrk_lbref) Marked Data TLB reference for 16M page event:0X823 counters:3 um:zero minimum:1000 name:PM_MRK_DSLB_MISS_GRP130 : (Group 130 pm_mrk_lbref) Marked Data SLB misses event:0X824 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP130 : (Group 130 pm_mrk_lbref) Run instructions completed event:0X825 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP130 : (Group 130 pm_mrk_lbref) Run cycles #Group 131 pm_mrk_lsmiss, Marked load and store miss event:0X830 counters:0 um:zero minimum:1000 name:PM_MRK_LD_MISS_L1_GRP131 : (Group 131 pm_mrk_lsmiss) Marked L1 D cache load misses event:0X831 counters:1 um:zero minimum:1000 name:PM_IOPS_CMPL_GRP131 : (Group 131 pm_mrk_lsmiss) IOPS instructions completed event:0X832 counters:2 um:zero minimum:1000 name:PM_MRK_ST_CMPL_INT_GRP131 : (Group 131 pm_mrk_lsmiss) Marked store completed with intervention event:0X833 counters:3 um:zero minimum:1000 name:PM_MRK_CRU_FIN_GRP131 : (Group 131 pm_mrk_lsmiss) Marked instruction CRU processing finished event:0X834 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP131 : (Group 131 pm_mrk_lsmiss) Run instructions completed event:0X835 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP131 : (Group 131 pm_mrk_lsmiss) Run cycles #Group 132 pm_mrk_ulsflush, Mark unaligned load and store flushes event:0X840 counters:0 um:zero minimum:1000 name:PM_MRK_ST_CMPL_GRP132 : (Group 132 pm_mrk_ulsflush) Marked store instruction completed event:0X841 counters:1 um:zero minimum:1000 name:PM_MRK_ST_MISS_L1_GRP132 : (Group 132 pm_mrk_ulsflush) Marked L1 D cache store misses event:0X842 counters:2 um:zero minimum:1000 name:PM_MRK_LSU_FLUSH_UST_GRP132 : (Group 132 pm_mrk_ulsflush) Marked unaligned store flushes event:0X843 counters:3 um:zero minimum:1000 name:PM_MRK_LSU_FLUSH_ULD_GRP132 : (Group 132 pm_mrk_ulsflush) Marked unaligned load flushes event:0X844 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP132 : (Group 132 pm_mrk_ulsflush) Run instructions completed event:0X845 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP132 : (Group 132 pm_mrk_ulsflush) Run cycles #Group 133 pm_mrk_misc, Misc marked instructions event:0X850 counters:0 um:zero minimum:1000 name:PM_MRK_STCX_FAIL_GRP133 : (Group 133 pm_mrk_misc) Marked STCX failed event:0X851 counters:1 um:zero minimum:1000 name:PM_MRK_ST_GPS_GRP133 : (Group 133 pm_mrk_misc) Marked store sent to GPS event:0X852 counters:2 um:zero minimum:1000 name:PM_MRK_FPU_FIN_GRP133 : (Group 133 pm_mrk_misc) Marked instruction FPU processing finished event:0X853 counters:3 um:zero minimum:1000 name:PM_MRK_GRP_TIMEO_GRP133 : (Group 133 pm_mrk_misc) Marked group completion timeout event:0X854 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP133 : (Group 133 pm_mrk_misc) Run instructions completed event:0X855 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP133 : (Group 133 pm_mrk_misc) Run cycles #Group 134 pm_lsref_L1, Load/Store operations and L1 activity event:0X860 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L2_GRP134 : (Group 134 pm_lsref_L1) Data loaded from L2 event:0X861 counters:1 um:zero minimum:1000 name:PM_INST_FROM_L1_GRP134 : (Group 134 pm_lsref_L1) Instruction fetched from L1 event:0X862 counters:2 um:zero minimum:1000 name:PM_ST_REF_L1_GRP134 : (Group 134 pm_lsref_L1) L1 D cache store references event:0X863 counters:3 um:zero minimum:1000 name:PM_LD_REF_L1_GRP134 : (Group 134 pm_lsref_L1) L1 D cache load references event:0X864 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP134 : (Group 134 pm_lsref_L1) Run instructions completed event:0X865 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP134 : (Group 134 pm_lsref_L1) Run cycles #Group 135 pm_lsref_L2L3, Load/Store operations and L2,L3 activity event:0X870 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L3_GRP135 : (Group 135 pm_lsref_L2L3) Data loaded from L3 event:0X871 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_LMEM_GRP135 : (Group 135 pm_lsref_L2L3) Data loaded from local memory event:0X872 counters:2 um:zero minimum:1000 name:PM_ST_REF_L1_GRP135 : (Group 135 pm_lsref_L2L3) L1 D cache store references event:0X873 counters:3 um:zero minimum:1000 name:PM_LD_REF_L1_GRP135 : (Group 135 pm_lsref_L2L3) L1 D cache load references event:0X874 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP135 : (Group 135 pm_lsref_L2L3) Run instructions completed event:0X875 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP135 : (Group 135 pm_lsref_L2L3) Run cycles #Group 136 pm_lsref_tlbmiss, Load/Store operations and TLB misses event:0X880 counters:0 um:zero minimum:1000 name:PM_ITLB_MISS_GRP136 : (Group 136 pm_lsref_tlbmiss) Instruction TLB misses event:0X881 counters:1 um:zero minimum:1000 name:PM_DTLB_MISS_GRP136 : (Group 136 pm_lsref_tlbmiss) Data TLB misses event:0X882 counters:2 um:zero minimum:1000 name:PM_ST_REF_L1_GRP136 : (Group 136 pm_lsref_tlbmiss) L1 D cache store references event:0X883 counters:3 um:zero minimum:1000 name:PM_LD_REF_L1_GRP136 : (Group 136 pm_lsref_tlbmiss) L1 D cache load references event:0X884 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP136 : (Group 136 pm_lsref_tlbmiss) Run instructions completed event:0X885 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP136 : (Group 136 pm_lsref_tlbmiss) Run cycles #Group 137 pm_Dmiss, Data cache misses event:0X890 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L3_GRP137 : (Group 137 pm_Dmiss) Data loaded from L3 event:0X891 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_LMEM_GRP137 : (Group 137 pm_Dmiss) Data loaded from local memory event:0X892 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP137 : (Group 137 pm_Dmiss) L1 D cache load misses event:0X893 counters:3 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP137 : (Group 137 pm_Dmiss) L1 D cache store misses event:0X894 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP137 : (Group 137 pm_Dmiss) Run instructions completed event:0X895 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP137 : (Group 137 pm_Dmiss) Run cycles #Group 138 pm_prefetchX, Prefetch events event:0X8A0 counters:0 um:zero minimum:10000 name:PM_CYC_GRP138 : (Group 138 pm_prefetchX) Processor cycles event:0X8A1 counters:1 um:zero minimum:1000 name:PM_IC_PREF_REQ_GRP138 : (Group 138 pm_prefetchX) Instruction prefetch requests event:0X8A2 counters:2 um:zero minimum:1000 name:PM_L1_PREF_GRP138 : (Group 138 pm_prefetchX) L1 cache data prefetches event:0X8A3 counters:3 um:zero minimum:1000 name:PM_L2_PREF_GRP138 : (Group 138 pm_prefetchX) L2 cache prefetches event:0X8A4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP138 : (Group 138 pm_prefetchX) Run instructions completed event:0X8A5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP138 : (Group 138 pm_prefetchX) Run cycles #Group 139 pm_branchX, Branch operations event:0X8B0 counters:0 um:zero minimum:1000 name:PM_BR_UNCOND_GRP139 : (Group 139 pm_branchX) Unconditional branch event:0X8B1 counters:1 um:zero minimum:1000 name:PM_BR_PRED_TA_GRP139 : (Group 139 pm_branchX) A conditional branch was predicted, target prediction event:0X8B2 counters:2 um:zero minimum:1000 name:PM_BR_PRED_CR_GRP139 : (Group 139 pm_branchX) A conditional branch was predicted, CR prediction event:0X8B3 counters:3 um:zero minimum:1000 name:PM_BR_ISSUED_GRP139 : (Group 139 pm_branchX) Branches issued event:0X8B4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP139 : (Group 139 pm_branchX) Run instructions completed event:0X8B5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP139 : (Group 139 pm_branchX) Run cycles #Group 140 pm_fpuX1, Floating point events by unit event:0X8C0 counters:0 um:zero minimum:1000 name:PM_FPU0_STALL3_GRP140 : (Group 140 pm_fpuX1) FPU0 stalled in pipe3 event:0X8C1 counters:1 um:zero minimum:1000 name:PM_FPU1_STALL3_GRP140 : (Group 140 pm_fpuX1) FPU1 stalled in pipe3 event:0X8C2 counters:2 um:zero minimum:1000 name:PM_FPU0_FIN_GRP140 : (Group 140 pm_fpuX1) FPU0 produced a result event:0X8C3 counters:3 um:zero minimum:1000 name:PM_FPU0_FPSCR_GRP140 : (Group 140 pm_fpuX1) FPU0 executed FPSCR instruction event:0X8C4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP140 : (Group 140 pm_fpuX1) Run instructions completed event:0X8C5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP140 : (Group 140 pm_fpuX1) Run cycles #Group 141 pm_fpuX2, Floating point events by unit event:0X8D0 counters:0 um:zero minimum:1000 name:PM_FPU0_FMA_GRP141 : (Group 141 pm_fpuX2) FPU0 executed multiply-add instruction event:0X8D1 counters:1 um:zero minimum:1000 name:PM_FPU1_FMA_GRP141 : (Group 141 pm_fpuX2) FPU1 executed multiply-add instruction event:0X8D2 counters:2 um:zero minimum:1000 name:PM_FPU0_FRSP_FCONV_GRP141 : (Group 141 pm_fpuX2) FPU0 executed FRSP or FCONV instructions event:0X8D3 counters:3 um:zero minimum:1000 name:PM_FPU1_FRSP_FCONV_GRP141 : (Group 141 pm_fpuX2) FPU1 executed FRSP or FCONV instructions event:0X8D4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP141 : (Group 141 pm_fpuX2) Run instructions completed event:0X8D5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP141 : (Group 141 pm_fpuX2) Run cycles #Group 142 pm_fpuX3, Floating point events by unit event:0X8E0 counters:0 um:zero minimum:1000 name:PM_FPU0_1FLOP_GRP142 : (Group 142 pm_fpuX3) FPU0 executed add, mult, sub, cmp or sel instruction event:0X8E1 counters:1 um:zero minimum:1000 name:PM_FPU1_1FLOP_GRP142 : (Group 142 pm_fpuX3) FPU1 executed add, mult, sub, cmp or sel instruction event:0X8E2 counters:2 um:zero minimum:1000 name:PM_FPU0_FIN_GRP142 : (Group 142 pm_fpuX3) FPU0 produced a result event:0X8E3 counters:3 um:zero minimum:1000 name:PM_FPU1_FIN_GRP142 : (Group 142 pm_fpuX3) FPU1 produced a result event:0X8E4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP142 : (Group 142 pm_fpuX3) Run instructions completed event:0X8E5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP142 : (Group 142 pm_fpuX3) Run cycles #Group 143 pm_fpuX4, Floating point and L1 events event:0X8F0 counters:0 um:zero minimum:1000 name:PM_FPU_1FLOP_GRP143 : (Group 143 pm_fpuX4) FPU executed one flop instruction event:0X8F1 counters:1 um:zero minimum:1000 name:PM_FPU_FMA_GRP143 : (Group 143 pm_fpuX4) FPU executed multiply-add instruction event:0X8F2 counters:2 um:zero minimum:1000 name:PM_ST_REF_L1_GRP143 : (Group 143 pm_fpuX4) L1 D cache store references event:0X8F3 counters:3 um:zero minimum:1000 name:PM_LD_REF_L1_GRP143 : (Group 143 pm_fpuX4) L1 D cache load references event:0X8F4 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP143 : (Group 143 pm_fpuX4) Run instructions completed event:0X8F5 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP143 : (Group 143 pm_fpuX4) Run cycles #Group 144 pm_fpuX5, Floating point events event:0X900 counters:0 um:zero minimum:1000 name:PM_FPU_SINGLE_GRP144 : (Group 144 pm_fpuX5) FPU executed single precision instruction event:0X901 counters:1 um:zero minimum:1000 name:PM_FPU_STF_GRP144 : (Group 144 pm_fpuX5) FPU executed store instruction event:0X902 counters:2 um:zero minimum:1000 name:PM_FPU0_FIN_GRP144 : (Group 144 pm_fpuX5) FPU0 produced a result event:0X903 counters:3 um:zero minimum:1000 name:PM_FPU1_FIN_GRP144 : (Group 144 pm_fpuX5) FPU1 produced a result event:0X904 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP144 : (Group 144 pm_fpuX5) Run instructions completed event:0X905 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP144 : (Group 144 pm_fpuX5) Run cycles #Group 145 pm_fpuX6, Floating point events event:0X910 counters:0 um:zero minimum:1000 name:PM_FPU_FDIV_GRP145 : (Group 145 pm_fpuX6) FPU executed FDIV instruction event:0X911 counters:1 um:zero minimum:1000 name:PM_FPU_FSQRT_GRP145 : (Group 145 pm_fpuX6) FPU executed FSQRT instruction event:0X912 counters:2 um:zero minimum:1000 name:PM_FPU_FRSP_FCONV_GRP145 : (Group 145 pm_fpuX6) FPU executed FRSP or FCONV instructions event:0X913 counters:3 um:zero minimum:1000 name:PM_FPU_FIN_GRP145 : (Group 145 pm_fpuX6) FPU produced a result event:0X914 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP145 : (Group 145 pm_fpuX6) Run instructions completed event:0X915 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP145 : (Group 145 pm_fpuX6) Run cycles #Group 146 pm_fpuX7, Floating point events event:0X920 counters:0 um:zero minimum:1000 name:PM_FPU_1FLOP_GRP146 : (Group 146 pm_fpuX7) FPU executed one flop instruction event:0X921 counters:1 um:zero minimum:1000 name:PM_FPU_FMA_GRP146 : (Group 146 pm_fpuX7) FPU executed multiply-add instruction event:0X922 counters:2 um:zero minimum:1000 name:PM_FPU_STF_GRP146 : (Group 146 pm_fpuX7) FPU executed store instruction event:0X923 counters:3 um:zero minimum:1000 name:PM_FPU_FIN_GRP146 : (Group 146 pm_fpuX7) FPU produced a result event:0X924 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP146 : (Group 146 pm_fpuX7) Run instructions completed event:0X925 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP146 : (Group 146 pm_fpuX7) Run cycles #Group 147 pm_hpmcount1, HPM group for set 1 event:0X930 counters:0 um:zero minimum:10000 name:PM_CYC_GRP147 : (Group 147 pm_hpmcount1) Processor cycles event:0X931 counters:1 um:zero minimum:1000 name:PM_FXU_FIN_GRP147 : (Group 147 pm_hpmcount1) FXU produced a result event:0X932 counters:2 um:zero minimum:10000 name:PM_CYC_GRP147 : (Group 147 pm_hpmcount1) Processor cycles event:0X933 counters:3 um:zero minimum:1000 name:PM_FPU_FIN_GRP147 : (Group 147 pm_hpmcount1) FPU produced a result event:0X934 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP147 : (Group 147 pm_hpmcount1) Run instructions completed event:0X935 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP147 : (Group 147 pm_hpmcount1) Run cycles #Group 148 pm_hpmcount2, HPM group for set 2 event:0X940 counters:0 um:zero minimum:10000 name:PM_CYC_GRP148 : (Group 148 pm_hpmcount2) Processor cycles event:0X941 counters:1 um:zero minimum:1000 name:PM_FPU_STF_GRP148 : (Group 148 pm_hpmcount2) FPU executed store instruction event:0X942 counters:2 um:zero minimum:1000 name:PM_INST_DISP_GRP148 : (Group 148 pm_hpmcount2) Instructions dispatched event:0X943 counters:3 um:zero minimum:1000 name:PM_LSU_LDF_GRP148 : (Group 148 pm_hpmcount2) LSU executed Floating Point load instruction event:0X944 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP148 : (Group 148 pm_hpmcount2) Run instructions completed event:0X945 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP148 : (Group 148 pm_hpmcount2) Run cycles #Group 149 pm_hpmcount3, HPM group for set 3 event:0X950 counters:0 um:zero minimum:10000 name:PM_CYC_GRP149 : (Group 149 pm_hpmcount3) Processor cycles event:0X951 counters:1 um:zero minimum:1000 name:PM_INST_DISP_GRP149 : (Group 149 pm_hpmcount3) Instructions dispatched event:0X952 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP149 : (Group 149 pm_hpmcount3) L1 D cache load misses event:0X953 counters:3 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP149 : (Group 149 pm_hpmcount3) L1 D cache store misses event:0X954 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP149 : (Group 149 pm_hpmcount3) Run instructions completed event:0X955 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP149 : (Group 149 pm_hpmcount3) Run cycles #Group 150 pm_hpmcount4, HPM group for set 7 event:0X960 counters:0 um:zero minimum:1000 name:PM_TLB_MISS_GRP150 : (Group 150 pm_hpmcount4) TLB misses event:0X961 counters:1 um:zero minimum:10000 name:PM_CYC_GRP150 : (Group 150 pm_hpmcount4) Processor cycles event:0X962 counters:2 um:zero minimum:1000 name:PM_ST_REF_L1_GRP150 : (Group 150 pm_hpmcount4) L1 D cache store references event:0X963 counters:3 um:zero minimum:1000 name:PM_LD_REF_L1_GRP150 : (Group 150 pm_hpmcount4) L1 D cache load references event:0X964 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP150 : (Group 150 pm_hpmcount4) Run instructions completed event:0X965 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP150 : (Group 150 pm_hpmcount4) Run cycles #Group 151 pm_flop, Floating point operations event:0X970 counters:0 um:zero minimum:1000 name:PM_FPU_FDIV_GRP151 : (Group 151 pm_flop) FPU executed FDIV instruction event:0X971 counters:1 um:zero minimum:1000 name:PM_FPU_FMA_GRP151 : (Group 151 pm_flop) FPU executed multiply-add instruction event:0X972 counters:2 um:zero minimum:1000 name:PM_FPU_FSQRT_GRP151 : (Group 151 pm_flop) FPU executed FSQRT instruction event:0X973 counters:3 um:zero minimum:1000 name:PM_FPU_1FLOP_GRP151 : (Group 151 pm_flop) FPU executed one flop instruction event:0X974 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP151 : (Group 151 pm_flop) Run instructions completed event:0X975 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP151 : (Group 151 pm_flop) Run cycles #Group 152 pm_eprof1, Group for use with eprof event:0X980 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP152 : (Group 152 pm_eprof1) Instructions completed event:0X981 counters:1 um:zero minimum:10000 name:PM_CYC_GRP152 : (Group 152 pm_eprof1) Processor cycles event:0X982 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP152 : (Group 152 pm_eprof1) L1 D cache load misses event:0X983 counters:3 um:zero minimum:1000 name:PM_DC_INV_L2_GRP152 : (Group 152 pm_eprof1) L1 D cache entries invalidated from L2 event:0X984 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP152 : (Group 152 pm_eprof1) Run instructions completed event:0X985 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP152 : (Group 152 pm_eprof1) Run cycles #Group 153 pm_eprof2, Group for use with eprof event:0X990 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP153 : (Group 153 pm_eprof2) Instructions completed event:0X991 counters:1 um:zero minimum:1000 name:PM_ST_REF_L1_GRP153 : (Group 153 pm_eprof2) L1 D cache store references event:0X992 counters:2 um:zero minimum:1000 name:PM_INST_DISP_GRP153 : (Group 153 pm_eprof2) Instructions dispatched event:0X993 counters:3 um:zero minimum:1000 name:PM_LD_REF_L1_GRP153 : (Group 153 pm_eprof2) L1 D cache load references event:0X994 counters:4 um:zero minimum:1000 name:PM_RUN_INST_CMPL_GRP153 : (Group 153 pm_eprof2) Run instructions completed event:0X995 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP153 : (Group 153 pm_eprof2) Run cycles oprofile-0.9.9/events/ppc64/power5+/unit_masks0000664000076400007640000000013512175510133016134 00000000000000# ppc64 Power5+ possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/ppc64/power5+/event_mappings0000664000076400007640000021641212175510133017005 00000000000000#Mapping of event groups to MMCR values #Group Default event:0X001 mmcr0:0X00000000 mmcr1:0X000000000A02121E mmcra:0X00000000 #Group 1 pm_utilization, CPI and utilization data event:0X010 mmcr0:0X00000000 mmcr1:0X000000000A12121E mmcra:0X00000000 event:0X011 mmcr0:0X00000000 mmcr1:0X000000000A12121E mmcra:0X00000000 event:0X012 mmcr0:0X00000000 mmcr1:0X000000000A12121E mmcra:0X00000000 event:0X013 mmcr0:0X00000000 mmcr1:0X000000000A12121E mmcra:0X00000000 event:0X014 mmcr0:0X00000000 mmcr1:0X000000000A12121E mmcra:0X00000000 event:0X015 mmcr0:0X00000000 mmcr1:0X000000000A12121E mmcra:0X00000000 #Group 2 pm_completion, Completion and cycle counts event:0X020 mmcr0:0X00000000 mmcr1:0X000000002608261E mmcra:0X00000000 event:0X021 mmcr0:0X00000000 mmcr1:0X000000002608261E mmcra:0X00000000 event:0X022 mmcr0:0X00000000 mmcr1:0X000000002608261E mmcra:0X00000000 event:0X023 mmcr0:0X00000000 mmcr1:0X000000002608261E mmcra:0X00000000 event:0X024 mmcr0:0X00000000 mmcr1:0X000000002608261E mmcra:0X00000000 event:0X025 mmcr0:0X00000000 mmcr1:0X000000002608261E mmcra:0X00000000 #Group 3 pm_group_dispatch, Group dispatch events event:0X030 mmcr0:0X00000000 mmcr1:0X4000000EC6C8C212 mmcra:0X00000000 event:0X031 mmcr0:0X00000000 mmcr1:0X4000000EC6C8C212 mmcra:0X00000000 event:0X032 mmcr0:0X00000000 mmcr1:0X4000000EC6C8C212 mmcra:0X00000000 event:0X033 mmcr0:0X00000000 mmcr1:0X4000000EC6C8C212 mmcra:0X00000000 event:0X034 mmcr0:0X00000000 mmcr1:0X4000000EC6C8C212 mmcra:0X00000000 event:0X035 mmcr0:0X00000000 mmcr1:0X4000000EC6C8C212 mmcra:0X00000000 #Group 4 pm_clb1, CLB fullness event:0X040 mmcr0:0X00000000 mmcr1:0X015B000180848C4C mmcra:0X00000001 event:0X041 mmcr0:0X00000000 mmcr1:0X015B000180848C4C mmcra:0X00000001 event:0X042 mmcr0:0X00000000 mmcr1:0X015B000180848C4C mmcra:0X00000001 event:0X043 mmcr0:0X00000000 mmcr1:0X015B000180848C4C mmcra:0X00000001 event:0X044 mmcr0:0X00000000 mmcr1:0X015B000180848C4C mmcra:0X00000001 event:0X045 mmcr0:0X00000000 mmcr1:0X015B000180848C4C mmcra:0X00000001 #Group 5 pm_clb2, CLB fullness event:0X050 mmcr0:0X00000000 mmcr1:0X014300028A8CCC02 mmcra:0X00000001 event:0X051 mmcr0:0X00000000 mmcr1:0X014300028A8CCC02 mmcra:0X00000001 event:0X052 mmcr0:0X00000000 mmcr1:0X014300028A8CCC02 mmcra:0X00000001 event:0X053 mmcr0:0X00000000 mmcr1:0X014300028A8CCC02 mmcra:0X00000001 event:0X054 mmcr0:0X00000000 mmcr1:0X014300028A8CCC02 mmcra:0X00000001 event:0X055 mmcr0:0X00000000 mmcr1:0X014300028A8CCC02 mmcra:0X00000001 #Group 6 pm_gct_empty, GCT empty reasons event:0X060 mmcr0:0X00000000 mmcr1:0X4000000008380838 mmcra:0X00000000 event:0X061 mmcr0:0X00000000 mmcr1:0X4000000008380838 mmcra:0X00000000 event:0X062 mmcr0:0X00000000 mmcr1:0X4000000008380838 mmcra:0X00000000 event:0X063 mmcr0:0X00000000 mmcr1:0X4000000008380838 mmcra:0X00000000 event:0X064 mmcr0:0X00000000 mmcr1:0X4000000008380838 mmcra:0X00000000 event:0X065 mmcr0:0X00000000 mmcr1:0X4000000008380838 mmcra:0X00000000 #Group 7 pm_gct_usage, GCT Usage event:0X070 mmcr0:0X00000000 mmcr1:0X000000003E3E3E3E mmcra:0X00000000 event:0X071 mmcr0:0X00000000 mmcr1:0X000000003E3E3E3E mmcra:0X00000000 event:0X072 mmcr0:0X00000000 mmcr1:0X000000003E3E3E3E mmcra:0X00000000 event:0X073 mmcr0:0X00000000 mmcr1:0X000000003E3E3E3E mmcra:0X00000000 event:0X074 mmcr0:0X00000000 mmcr1:0X000000003E3E3E3E mmcra:0X00000000 event:0X075 mmcr0:0X00000000 mmcr1:0X000000003E3E3E3E mmcra:0X00000000 #Group 8 pm_lsu1, LSU LRQ and LMQ events event:0X080 mmcr0:0X00000000 mmcr1:0X020F000FCECCCCCA mmcra:0X00000000 event:0X081 mmcr0:0X00000000 mmcr1:0X020F000FCECCCCCA mmcra:0X00000000 event:0X082 mmcr0:0X00000000 mmcr1:0X020F000FCECCCCCA mmcra:0X00000000 event:0X083 mmcr0:0X00000000 mmcr1:0X020F000FCECCCCCA mmcra:0X00000000 event:0X084 mmcr0:0X00000000 mmcr1:0X020F000FCECCCCCA mmcra:0X00000000 event:0X085 mmcr0:0X00000000 mmcr1:0X020F000FCECCCCCA mmcra:0X00000000 #Group 9 pm_lsu2, LSU SRQ events event:0X090 mmcr0:0X00000000 mmcr1:0X400E000ECECCCA86 mmcra:0X00000000 event:0X091 mmcr0:0X00000000 mmcr1:0X400E000ECECCCA86 mmcra:0X00000000 event:0X092 mmcr0:0X00000000 mmcr1:0X400E000ECECCCA86 mmcra:0X00000000 event:0X093 mmcr0:0X00000000 mmcr1:0X400E000ECECCCA86 mmcra:0X00000000 event:0X094 mmcr0:0X00000000 mmcr1:0X400E000ECECCCA86 mmcra:0X00000000 event:0X095 mmcr0:0X00000000 mmcr1:0X400E000ECECCCA86 mmcra:0X00000000 #Group 10 pm_lsu3, LSU SRQ and LMQ events event:0X0A0 mmcr0:0X00000000 mmcr1:0X030F0004EA102A2A mmcra:0X00000000 event:0X0A1 mmcr0:0X00000000 mmcr1:0X030F0004EA102A2A mmcra:0X00000000 event:0X0A2 mmcr0:0X00000000 mmcr1:0X030F0004EA102A2A mmcra:0X00000000 event:0X0A3 mmcr0:0X00000000 mmcr1:0X030F0004EA102A2A mmcra:0X00000000 event:0X0A4 mmcr0:0X00000000 mmcr1:0X030F0004EA102A2A mmcra:0X00000000 event:0X0A5 mmcr0:0X00000000 mmcr1:0X030F0004EA102A2A mmcra:0X00000000 #Group 11 pm_lsu4, LSU SRQ and LMQ events event:0X0B0 mmcr0:0X00000000 mmcr1:0X40030000EEA62A2A mmcra:0X00000000 event:0X0B1 mmcr0:0X00000000 mmcr1:0X40030000EEA62A2A mmcra:0X00000000 event:0X0B2 mmcr0:0X00000000 mmcr1:0X40030000EEA62A2A mmcra:0X00000000 event:0X0B3 mmcr0:0X00000000 mmcr1:0X40030000EEA62A2A mmcra:0X00000000 event:0X0B4 mmcr0:0X00000000 mmcr1:0X40030000EEA62A2A mmcra:0X00000000 event:0X0B5 mmcr0:0X00000000 mmcr1:0X40030000EEA62A2A mmcra:0X00000000 #Group 12 pm_prefetch1, Prefetch stream allocation event:0X0C0 mmcr0:0X00000000 mmcr1:0X8432000D3AC884CE mmcra:0X00000000 event:0X0C1 mmcr0:0X00000000 mmcr1:0X8432000D3AC884CE mmcra:0X00000000 event:0X0C2 mmcr0:0X00000000 mmcr1:0X8432000D3AC884CE mmcra:0X00000000 event:0X0C3 mmcr0:0X00000000 mmcr1:0X8432000D3AC884CE mmcra:0X00000000 event:0X0C4 mmcr0:0X00000000 mmcr1:0X8432000D3AC884CE mmcra:0X00000000 event:0X0C5 mmcr0:0X00000000 mmcr1:0X8432000D3AC884CE mmcra:0X00000000 #Group 13 pm_prefetch2, Prefetch events event:0X0D0 mmcr0:0X00000000 mmcr1:0X8103000602CACE8E mmcra:0X00000001 event:0X0D1 mmcr0:0X00000000 mmcr1:0X8103000602CACE8E mmcra:0X00000001 event:0X0D2 mmcr0:0X00000000 mmcr1:0X8103000602CACE8E mmcra:0X00000001 event:0X0D3 mmcr0:0X00000000 mmcr1:0X8103000602CACE8E mmcra:0X00000001 event:0X0D4 mmcr0:0X00000000 mmcr1:0X8103000602CACE8E mmcra:0X00000001 event:0X0D5 mmcr0:0X00000000 mmcr1:0X8103000602CACE8E mmcra:0X00000001 #Group 14 pm_prefetch3, L2 prefetch and misc events event:0X0E0 mmcr0:0X00000000 mmcr1:0X047C000482108602 mmcra:0X00000001 event:0X0E1 mmcr0:0X00000000 mmcr1:0X047C000482108602 mmcra:0X00000001 event:0X0E2 mmcr0:0X00000000 mmcr1:0X047C000482108602 mmcra:0X00000001 event:0X0E3 mmcr0:0X00000000 mmcr1:0X047C000482108602 mmcra:0X00000001 event:0X0E4 mmcr0:0X00000000 mmcr1:0X047C000482108602 mmcra:0X00000001 event:0X0E5 mmcr0:0X00000000 mmcr1:0X047C000482108602 mmcra:0X00000001 #Group 15 pm_prefetch4, Misc prefetch and reject events event:0X0F0 mmcr0:0X00000000 mmcr1:0X0CF200028088CC86 mmcra:0X00000000 event:0X0F1 mmcr0:0X00000000 mmcr1:0X0CF200028088CC86 mmcra:0X00000000 event:0X0F2 mmcr0:0X00000000 mmcr1:0X0CF200028088CC86 mmcra:0X00000000 event:0X0F3 mmcr0:0X00000000 mmcr1:0X0CF200028088CC86 mmcra:0X00000000 event:0X0F4 mmcr0:0X00000000 mmcr1:0X0CF200028088CC86 mmcra:0X00000000 event:0X0F5 mmcr0:0X00000000 mmcr1:0X0CF200028088CC86 mmcra:0X00000000 #Group 16 pm_lsu_reject1, LSU reject events event:0X100 mmcr0:0X00000000 mmcr1:0XC8E000022010C610 mmcra:0X00000001 event:0X101 mmcr0:0X00000000 mmcr1:0XC8E000022010C610 mmcra:0X00000001 event:0X102 mmcr0:0X00000000 mmcr1:0XC8E000022010C610 mmcra:0X00000001 event:0X103 mmcr0:0X00000000 mmcr1:0XC8E000022010C610 mmcra:0X00000001 event:0X104 mmcr0:0X00000000 mmcr1:0XC8E000022010C610 mmcra:0X00000001 event:0X105 mmcr0:0X00000000 mmcr1:0XC8E000022010C610 mmcra:0X00000001 #Group 17 pm_lsu_reject2, LSU rejects due to reload CDF or tag update collision event:0X110 mmcr0:0X00000000 mmcr1:0X88C00001848C02CE mmcra:0X00000001 event:0X111 mmcr0:0X00000000 mmcr1:0X88C00001848C02CE mmcra:0X00000001 event:0X112 mmcr0:0X00000000 mmcr1:0X88C00001848C02CE mmcra:0X00000001 event:0X113 mmcr0:0X00000000 mmcr1:0X88C00001848C02CE mmcra:0X00000001 event:0X114 mmcr0:0X00000000 mmcr1:0X88C00001848C02CE mmcra:0X00000001 event:0X115 mmcr0:0X00000000 mmcr1:0X88C00001848C02CE mmcra:0X00000001 #Group 18 pm_lsu_reject3, LSU rejects due to ERAT, held instuctions event:0X120 mmcr0:0X00000000 mmcr1:0X48C00003868EC0C8 mmcra:0X00000000 event:0X121 mmcr0:0X00000000 mmcr1:0X48C00003868EC0C8 mmcra:0X00000000 event:0X122 mmcr0:0X00000000 mmcr1:0X48C00003868EC0C8 mmcra:0X00000000 event:0X123 mmcr0:0X00000000 mmcr1:0X48C00003868EC0C8 mmcra:0X00000000 event:0X124 mmcr0:0X00000000 mmcr1:0X48C00003868EC0C8 mmcra:0X00000000 event:0X125 mmcr0:0X00000000 mmcr1:0X48C00003868EC0C8 mmcra:0X00000000 #Group 19 pm_lsu_reject4, LSU0/1 reject LMQ full event:0X130 mmcr0:0X00000000 mmcr1:0X88C00001828A02C8 mmcra:0X00000001 event:0X131 mmcr0:0X00000000 mmcr1:0X88C00001828A02C8 mmcra:0X00000001 event:0X132 mmcr0:0X00000000 mmcr1:0X88C00001828A02C8 mmcra:0X00000001 event:0X133 mmcr0:0X00000000 mmcr1:0X88C00001828A02C8 mmcra:0X00000001 event:0X134 mmcr0:0X00000000 mmcr1:0X88C00001828A02C8 mmcra:0X00000001 event:0X135 mmcr0:0X00000000 mmcr1:0X88C00001828A02C8 mmcra:0X00000001 #Group 20 pm_lsu_reject5, LSU misc reject and flush events event:0X140 mmcr0:0X00000000 mmcr1:0X48C0000010208A8E mmcra:0X00000000 event:0X141 mmcr0:0X00000000 mmcr1:0X48C0000010208A8E mmcra:0X00000000 event:0X142 mmcr0:0X00000000 mmcr1:0X48C0000010208A8E mmcra:0X00000000 event:0X143 mmcr0:0X00000000 mmcr1:0X48C0000010208A8E mmcra:0X00000000 event:0X144 mmcr0:0X00000000 mmcr1:0X48C0000010208A8E mmcra:0X00000000 event:0X145 mmcr0:0X00000000 mmcr1:0X48C0000010208A8E mmcra:0X00000000 #Group 21 pm_flush1, Misc flush events event:0X150 mmcr0:0X00000000 mmcr1:0XC0F000020210C68E mmcra:0X00000001 event:0X151 mmcr0:0X00000000 mmcr1:0XC0F000020210C68E mmcra:0X00000001 event:0X152 mmcr0:0X00000000 mmcr1:0XC0F000020210C68E mmcra:0X00000001 event:0X153 mmcr0:0X00000000 mmcr1:0XC0F000020210C68E mmcra:0X00000001 event:0X154 mmcr0:0X00000000 mmcr1:0XC0F000020210C68E mmcra:0X00000001 event:0X155 mmcr0:0X00000000 mmcr1:0XC0F000020210C68E mmcra:0X00000001 #Group 22 pm_flush2, Flushes due to scoreboard and sync event:0X160 mmcr0:0X00000000 mmcr1:0XC08000038002C4C2 mmcra:0X00000001 event:0X161 mmcr0:0X00000000 mmcr1:0XC08000038002C4C2 mmcra:0X00000001 event:0X162 mmcr0:0X00000000 mmcr1:0XC08000038002C4C2 mmcra:0X00000001 event:0X163 mmcr0:0X00000000 mmcr1:0XC08000038002C4C2 mmcra:0X00000001 event:0X164 mmcr0:0X00000000 mmcr1:0XC08000038002C4C2 mmcra:0X00000001 event:0X165 mmcr0:0X00000000 mmcr1:0XC08000038002C4C2 mmcra:0X00000001 #Group 23 pm_lsu_flush_srq_lrq, LSU flush by SRQ and LRQ events event:0X170 mmcr0:0X00000000 mmcr1:0X40C000002020028A mmcra:0X00000001 event:0X171 mmcr0:0X00000000 mmcr1:0X40C000002020028A mmcra:0X00000001 event:0X172 mmcr0:0X00000000 mmcr1:0X40C000002020028A mmcra:0X00000001 event:0X173 mmcr0:0X00000000 mmcr1:0X40C000002020028A mmcra:0X00000001 event:0X174 mmcr0:0X00000000 mmcr1:0X40C000002020028A mmcra:0X00000001 event:0X175 mmcr0:0X00000000 mmcr1:0X40C000002020028A mmcra:0X00000001 #Group 24 pm_lsu_flush_lrq, LSU0/1 flush due to LRQ event:0X180 mmcr0:0X00000000 mmcr1:0X40C00000848C8A02 mmcra:0X00000001 event:0X181 mmcr0:0X00000000 mmcr1:0X40C00000848C8A02 mmcra:0X00000001 event:0X182 mmcr0:0X00000000 mmcr1:0X40C00000848C8A02 mmcra:0X00000001 event:0X183 mmcr0:0X00000000 mmcr1:0X40C00000848C8A02 mmcra:0X00000001 event:0X184 mmcr0:0X00000000 mmcr1:0X40C00000848C8A02 mmcra:0X00000001 event:0X185 mmcr0:0X00000000 mmcr1:0X40C00000848C8A02 mmcra:0X00000001 #Group 25 pm_lsu_flush_srq, LSU0/1 flush due to SRQ event:0X190 mmcr0:0X00000000 mmcr1:0X40C00000868E028A mmcra:0X00000001 event:0X191 mmcr0:0X00000000 mmcr1:0X40C00000868E028A mmcra:0X00000001 event:0X192 mmcr0:0X00000000 mmcr1:0X40C00000868E028A mmcra:0X00000001 event:0X193 mmcr0:0X00000000 mmcr1:0X40C00000868E028A mmcra:0X00000001 event:0X194 mmcr0:0X00000000 mmcr1:0X40C00000868E028A mmcra:0X00000001 event:0X195 mmcr0:0X00000000 mmcr1:0X40C00000868E028A mmcra:0X00000001 #Group 26 pm_lsu_flush_unaligned, LSU flush due to unaligned data event:0X1A0 mmcr0:0X00000000 mmcr1:0X80C000021010C802 mmcra:0X00000001 event:0X1A1 mmcr0:0X00000000 mmcr1:0X80C000021010C802 mmcra:0X00000001 event:0X1A2 mmcr0:0X00000000 mmcr1:0X80C000021010C802 mmcra:0X00000001 event:0X1A3 mmcr0:0X00000000 mmcr1:0X80C000021010C802 mmcra:0X00000001 event:0X1A4 mmcr0:0X00000000 mmcr1:0X80C000021010C802 mmcra:0X00000001 event:0X1A5 mmcr0:0X00000000 mmcr1:0X80C000021010C802 mmcra:0X00000001 #Group 27 pm_lsu_flush_uld, LSU0/1 flush due to unaligned load event:0X1B0 mmcr0:0X00000000 mmcr1:0X40C0000080888A02 mmcra:0X00000001 event:0X1B1 mmcr0:0X00000000 mmcr1:0X40C0000080888A02 mmcra:0X00000001 event:0X1B2 mmcr0:0X00000000 mmcr1:0X40C0000080888A02 mmcra:0X00000001 event:0X1B3 mmcr0:0X00000000 mmcr1:0X40C0000080888A02 mmcra:0X00000001 event:0X1B4 mmcr0:0X00000000 mmcr1:0X40C0000080888A02 mmcra:0X00000001 event:0X1B5 mmcr0:0X00000000 mmcr1:0X40C0000080888A02 mmcra:0X00000001 #Group 28 pm_lsu_flush_ust, LSU0/1 flush due to unaligned store event:0X1C0 mmcr0:0X00000000 mmcr1:0X40C00000828A028A mmcra:0X00000001 event:0X1C1 mmcr0:0X00000000 mmcr1:0X40C00000828A028A mmcra:0X00000001 event:0X1C2 mmcr0:0X00000000 mmcr1:0X40C00000828A028A mmcra:0X00000001 event:0X1C3 mmcr0:0X00000000 mmcr1:0X40C00000828A028A mmcra:0X00000001 event:0X1C4 mmcr0:0X00000000 mmcr1:0X40C00000828A028A mmcra:0X00000001 event:0X1C5 mmcr0:0X00000000 mmcr1:0X40C00000828A028A mmcra:0X00000001 #Group 29 pm_lsu_flush_full, LSU flush due to LRQ/SRQ full event:0X1D0 mmcr0:0X00000000 mmcr1:0XC0200009CE0210C0 mmcra:0X00000001 event:0X1D1 mmcr0:0X00000000 mmcr1:0XC0200009CE0210C0 mmcra:0X00000001 event:0X1D2 mmcr0:0X00000000 mmcr1:0XC0200009CE0210C0 mmcra:0X00000001 event:0X1D3 mmcr0:0X00000000 mmcr1:0XC0200009CE0210C0 mmcra:0X00000001 event:0X1D4 mmcr0:0X00000000 mmcr1:0XC0200009CE0210C0 mmcra:0X00000001 event:0X1D5 mmcr0:0X00000000 mmcr1:0XC0200009CE0210C0 mmcra:0X00000001 #Group 30 pm_lsu_stall1, LSU Stalls event:0X1E0 mmcr0:0X00000000 mmcr1:0X4000000028300234 mmcra:0X00000001 event:0X1E1 mmcr0:0X00000000 mmcr1:0X4000000028300234 mmcra:0X00000001 event:0X1E2 mmcr0:0X00000000 mmcr1:0X4000000028300234 mmcra:0X00000001 event:0X1E3 mmcr0:0X00000000 mmcr1:0X4000000028300234 mmcra:0X00000001 event:0X1E4 mmcr0:0X00000000 mmcr1:0X4000000028300234 mmcra:0X00000001 event:0X1E5 mmcr0:0X00000000 mmcr1:0X4000000028300234 mmcra:0X00000001 #Group 31 pm_lsu_stall2, LSU Stalls event:0X1F0 mmcr0:0X00000000 mmcr1:0X4000000002341E36 mmcra:0X00000001 event:0X1F1 mmcr0:0X00000000 mmcr1:0X4000000002341E36 mmcra:0X00000001 event:0X1F2 mmcr0:0X00000000 mmcr1:0X4000000002341E36 mmcra:0X00000001 event:0X1F3 mmcr0:0X00000000 mmcr1:0X4000000002341E36 mmcra:0X00000001 event:0X1F4 mmcr0:0X00000000 mmcr1:0X4000000002341E36 mmcra:0X00000001 event:0X1F5 mmcr0:0X00000000 mmcr1:0X4000000002341E36 mmcra:0X00000001 #Group 32 pm_fxu_stall, FXU Stalls event:0X200 mmcr0:0X00000000 mmcr1:0X4000000822320232 mmcra:0X00000001 event:0X201 mmcr0:0X00000000 mmcr1:0X4000000822320232 mmcra:0X00000001 event:0X202 mmcr0:0X00000000 mmcr1:0X4000000822320232 mmcra:0X00000001 event:0X203 mmcr0:0X00000000 mmcr1:0X4000000822320232 mmcra:0X00000001 event:0X204 mmcr0:0X00000000 mmcr1:0X4000000822320232 mmcra:0X00000001 event:0X205 mmcr0:0X00000000 mmcr1:0X4000000822320232 mmcra:0X00000001 #Group 33 pm_fpu_stall, FPU Stalls event:0X210 mmcr0:0X00000000 mmcr1:0X4000000020360230 mmcra:0X00000001 event:0X211 mmcr0:0X00000000 mmcr1:0X4000000020360230 mmcra:0X00000001 event:0X212 mmcr0:0X00000000 mmcr1:0X4000000020360230 mmcra:0X00000001 event:0X213 mmcr0:0X00000000 mmcr1:0X4000000020360230 mmcra:0X00000001 event:0X214 mmcr0:0X00000000 mmcr1:0X4000000020360230 mmcra:0X00000001 event:0X215 mmcr0:0X00000000 mmcr1:0X4000000020360230 mmcra:0X00000001 #Group 34 pm_queue_full, BRQ LRQ LMQ queue full event:0X220 mmcr0:0X00000000 mmcr1:0X400B0009CE8A84CE mmcra:0X00000000 event:0X221 mmcr0:0X00000000 mmcr1:0X400B0009CE8A84CE mmcra:0X00000000 event:0X222 mmcr0:0X00000000 mmcr1:0X400B0009CE8A84CE mmcra:0X00000000 event:0X223 mmcr0:0X00000000 mmcr1:0X400B0009CE8A84CE mmcra:0X00000000 event:0X224 mmcr0:0X00000000 mmcr1:0X400B0009CE8A84CE mmcra:0X00000000 event:0X225 mmcr0:0X00000000 mmcr1:0X400B0009CE8A84CE mmcra:0X00000000 #Group 35 pm_issueq_full, FPU FX full event:0X230 mmcr0:0X00000000 mmcr1:0X40000000868E8088 mmcra:0X00000000 event:0X231 mmcr0:0X00000000 mmcr1:0X40000000868E8088 mmcra:0X00000000 event:0X232 mmcr0:0X00000000 mmcr1:0X40000000868E8088 mmcra:0X00000000 event:0X233 mmcr0:0X00000000 mmcr1:0X40000000868E8088 mmcra:0X00000000 event:0X234 mmcr0:0X00000000 mmcr1:0X40000000868E8088 mmcra:0X00000000 event:0X235 mmcr0:0X00000000 mmcr1:0X40000000868E8088 mmcra:0X00000000 #Group 36 pm_mapper_full1, CR CTR GPR mapper full event:0X240 mmcr0:0X00000000 mmcr1:0X40000002888CCA82 mmcra:0X00000000 event:0X241 mmcr0:0X00000000 mmcr1:0X40000002888CCA82 mmcra:0X00000000 event:0X242 mmcr0:0X00000000 mmcr1:0X40000002888CCA82 mmcra:0X00000000 event:0X243 mmcr0:0X00000000 mmcr1:0X40000002888CCA82 mmcra:0X00000000 event:0X244 mmcr0:0X00000000 mmcr1:0X40000002888CCA82 mmcra:0X00000000 event:0X245 mmcr0:0X00000000 mmcr1:0X40000002888CCA82 mmcra:0X00000000 #Group 37 pm_mapper_full2, FPR XER mapper full event:0X250 mmcr0:0X00000000 mmcr1:0X4103000282843602 mmcra:0X00000001 event:0X251 mmcr0:0X00000000 mmcr1:0X4103000282843602 mmcra:0X00000001 event:0X252 mmcr0:0X00000000 mmcr1:0X4103000282843602 mmcra:0X00000001 event:0X253 mmcr0:0X00000000 mmcr1:0X4103000282843602 mmcra:0X00000001 event:0X254 mmcr0:0X00000000 mmcr1:0X4103000282843602 mmcra:0X00000001 event:0X255 mmcr0:0X00000000 mmcr1:0X4103000282843602 mmcra:0X00000001 #Group 38 pm_misc_load, Non-cachable loads and stcx events event:0X260 mmcr0:0X00000000 mmcr1:0X0438000CC2CA828A mmcra:0X00000001 event:0X261 mmcr0:0X00000000 mmcr1:0X0438000CC2CA828A mmcra:0X00000001 event:0X262 mmcr0:0X00000000 mmcr1:0X0438000CC2CA828A mmcra:0X00000001 event:0X263 mmcr0:0X00000000 mmcr1:0X0438000CC2CA828A mmcra:0X00000001 event:0X264 mmcr0:0X00000000 mmcr1:0X0438000CC2CA828A mmcra:0X00000001 event:0X265 mmcr0:0X00000000 mmcr1:0X0438000CC2CA828A mmcra:0X00000001 #Group 39 pm_ic_demand, ICache demand from BR redirect event:0X270 mmcr0:0X00000000 mmcr1:0X800C000FC2CAC0C2 mmcra:0X00000000 event:0X271 mmcr0:0X00000000 mmcr1:0X800C000FC2CAC0C2 mmcra:0X00000000 event:0X272 mmcr0:0X00000000 mmcr1:0X800C000FC2CAC0C2 mmcra:0X00000000 event:0X273 mmcr0:0X00000000 mmcr1:0X800C000FC2CAC0C2 mmcra:0X00000000 event:0X274 mmcr0:0X00000000 mmcr1:0X800C000FC2CAC0C2 mmcra:0X00000000 event:0X275 mmcr0:0X00000000 mmcr1:0X800C000FC2CAC0C2 mmcra:0X00000000 #Group 40 pm_ic_pref, ICache prefetch event:0X280 mmcr0:0X00000000 mmcr1:0X8000000DCECC8E1A mmcra:0X00000000 event:0X281 mmcr0:0X00000000 mmcr1:0X8000000DCECC8E1A mmcra:0X00000000 event:0X282 mmcr0:0X00000000 mmcr1:0X8000000DCECC8E1A mmcra:0X00000000 event:0X283 mmcr0:0X00000000 mmcr1:0X8000000DCECC8E1A mmcra:0X00000000 event:0X284 mmcr0:0X00000000 mmcr1:0X8000000DCECC8E1A mmcra:0X00000000 event:0X285 mmcr0:0X00000000 mmcr1:0X8000000DCECC8E1A mmcra:0X00000000 #Group 41 pm_ic_miss, ICache misses event:0X290 mmcr0:0X00000000 mmcr1:0X4003000E32CEC802 mmcra:0X00000001 event:0X291 mmcr0:0X00000000 mmcr1:0X4003000E32CEC802 mmcra:0X00000001 event:0X292 mmcr0:0X00000000 mmcr1:0X4003000E32CEC802 mmcra:0X00000001 event:0X293 mmcr0:0X00000000 mmcr1:0X4003000E32CEC802 mmcra:0X00000001 event:0X294 mmcr0:0X00000000 mmcr1:0X4003000E32CEC802 mmcra:0X00000001 event:0X295 mmcr0:0X00000000 mmcr1:0X4003000E32CEC802 mmcra:0X00000001 #Group 42 pm_branch_miss, Branch mispredict, TLB and SLB misses event:0X2A0 mmcr0:0X00000000 mmcr1:0X808000031010CACC mmcra:0X00000000 event:0X2A1 mmcr0:0X00000000 mmcr1:0X808000031010CACC mmcra:0X00000000 event:0X2A2 mmcr0:0X00000000 mmcr1:0X808000031010CACC mmcra:0X00000000 event:0X2A3 mmcr0:0X00000000 mmcr1:0X808000031010CACC mmcra:0X00000000 event:0X2A4 mmcr0:0X00000000 mmcr1:0X808000031010CACC mmcra:0X00000000 event:0X2A5 mmcr0:0X00000000 mmcr1:0X808000031010CACC mmcra:0X00000000 #Group 43 pm_branch1, Branch operations event:0X2B0 mmcr0:0X00000000 mmcr1:0X8000000F0E0E0E0E mmcra:0X00000000 event:0X2B1 mmcr0:0X00000000 mmcr1:0X8000000F0E0E0E0E mmcra:0X00000000 event:0X2B2 mmcr0:0X00000000 mmcr1:0X8000000F0E0E0E0E mmcra:0X00000000 event:0X2B3 mmcr0:0X00000000 mmcr1:0X8000000F0E0E0E0E mmcra:0X00000000 event:0X2B4 mmcr0:0X00000000 mmcr1:0X8000000F0E0E0E0E mmcra:0X00000000 event:0X2B5 mmcr0:0X00000000 mmcr1:0X8000000F0E0E0E0E mmcra:0X00000000 #Group 44 pm_branch2, Branch operations event:0X2C0 mmcr0:0X00000000 mmcr1:0X4000000CCACC8C02 mmcra:0X00000001 event:0X2C1 mmcr0:0X00000000 mmcr1:0X4000000CCACC8C02 mmcra:0X00000001 event:0X2C2 mmcr0:0X00000000 mmcr1:0X4000000CCACC8C02 mmcra:0X00000001 event:0X2C3 mmcr0:0X00000000 mmcr1:0X4000000CCACC8C02 mmcra:0X00000001 event:0X2C4 mmcr0:0X00000000 mmcr1:0X4000000CCACC8C02 mmcra:0X00000001 event:0X2C5 mmcr0:0X00000000 mmcr1:0X4000000CCACC8C02 mmcra:0X00000001 #Group 45 pm_L1_tlbmiss, L1 load and TLB misses event:0X2D0 mmcr0:0X00000000 mmcr1:0X00B000008E881020 mmcra:0X00000000 event:0X2D1 mmcr0:0X00000000 mmcr1:0X00B000008E881020 mmcra:0X00000000 event:0X2D2 mmcr0:0X00000000 mmcr1:0X00B000008E881020 mmcra:0X00000000 event:0X2D3 mmcr0:0X00000000 mmcr1:0X00B000008E881020 mmcra:0X00000000 event:0X2D4 mmcr0:0X00000000 mmcr1:0X00B000008E881020 mmcra:0X00000000 event:0X2D5 mmcr0:0X00000000 mmcr1:0X00B000008E881020 mmcra:0X00000000 #Group 46 pm_L1_DERAT_miss, L1 store and DERAT misses event:0X2E0 mmcr0:0X00000000 mmcr1:0X00B300080E202086 mmcra:0X00000000 event:0X2E1 mmcr0:0X00000000 mmcr1:0X00B300080E202086 mmcra:0X00000000 event:0X2E2 mmcr0:0X00000000 mmcr1:0X00B300080E202086 mmcra:0X00000000 event:0X2E3 mmcr0:0X00000000 mmcr1:0X00B300080E202086 mmcra:0X00000000 event:0X2E4 mmcr0:0X00000000 mmcr1:0X00B300080E202086 mmcra:0X00000000 event:0X2E5 mmcr0:0X00000000 mmcr1:0X00B300080E202086 mmcra:0X00000000 #Group 47 pm_L1_slbmiss, L1 load and SLB misses event:0X2F0 mmcr0:0X00000000 mmcr1:0X00B000008A82848C mmcra:0X00000000 event:0X2F1 mmcr0:0X00000000 mmcr1:0X00B000008A82848C mmcra:0X00000000 event:0X2F2 mmcr0:0X00000000 mmcr1:0X00B000008A82848C mmcra:0X00000000 event:0X2F3 mmcr0:0X00000000 mmcr1:0X00B000008A82848C mmcra:0X00000000 event:0X2F4 mmcr0:0X00000000 mmcr1:0X00B000008A82848C mmcra:0X00000000 event:0X2F5 mmcr0:0X00000000 mmcr1:0X00B000008A82848C mmcra:0X00000000 #Group 48 pm_dtlbref, Data TLB references event:0X300 mmcr0:0X00000000 mmcr1:0X000C000F0C0C0C0C mmcra:0X00000000 event:0X301 mmcr0:0X00000000 mmcr1:0X000C000F0C0C0C0C mmcra:0X00000000 event:0X302 mmcr0:0X00000000 mmcr1:0X000C000F0C0C0C0C mmcra:0X00000000 event:0X303 mmcr0:0X00000000 mmcr1:0X000C000F0C0C0C0C mmcra:0X00000000 event:0X304 mmcr0:0X00000000 mmcr1:0X000C000F0C0C0C0C mmcra:0X00000000 event:0X305 mmcr0:0X00000000 mmcr1:0X000C000F0C0C0C0C mmcra:0X00000000 #Group 49 pm_dtlbmiss, Data TLB misses event:0X310 mmcr0:0X00000000 mmcr1:0X000C000F1A1A1A1A mmcra:0X00000000 event:0X311 mmcr0:0X00000000 mmcr1:0X000C000F1A1A1A1A mmcra:0X00000000 event:0X312 mmcr0:0X00000000 mmcr1:0X000C000F1A1A1A1A mmcra:0X00000000 event:0X313 mmcr0:0X00000000 mmcr1:0X000C000F1A1A1A1A mmcra:0X00000000 event:0X314 mmcr0:0X00000000 mmcr1:0X000C000F1A1A1A1A mmcra:0X00000000 event:0X315 mmcr0:0X00000000 mmcr1:0X000C000F1A1A1A1A mmcra:0X00000000 #Group 50 pm_dtlb, Data TLB references and misses event:0X320 mmcr0:0X00000000 mmcr1:0X008C0008C8881E1E mmcra:0X00000000 event:0X321 mmcr0:0X00000000 mmcr1:0X008C0008C8881E1E mmcra:0X00000000 event:0X322 mmcr0:0X00000000 mmcr1:0X008C0008C8881E1E mmcra:0X00000000 event:0X323 mmcr0:0X00000000 mmcr1:0X008C0008C8881E1E mmcra:0X00000000 event:0X324 mmcr0:0X00000000 mmcr1:0X008C0008C8881E1E mmcra:0X00000000 event:0X325 mmcr0:0X00000000 mmcr1:0X008C0008C8881E1E mmcra:0X00000000 #Group 51 pm_L1_refmiss, L1 load references and misses and store references and misses event:0X330 mmcr0:0X00000000 mmcr1:0X0030000050501086 mmcra:0X00000000 event:0X331 mmcr0:0X00000000 mmcr1:0X0030000050501086 mmcra:0X00000000 event:0X332 mmcr0:0X00000000 mmcr1:0X0030000050501086 mmcra:0X00000000 event:0X333 mmcr0:0X00000000 mmcr1:0X0030000050501086 mmcra:0X00000000 event:0X334 mmcr0:0X00000000 mmcr1:0X0030000050501086 mmcra:0X00000000 event:0X335 mmcr0:0X00000000 mmcr1:0X0030000050501086 mmcra:0X00000000 #Group 52 pm_dsource1, L3 cache and memory data access event:0X340 mmcr0:0X00000000 mmcr1:0X4003000C1C0E8E02 mmcra:0X00000001 event:0X341 mmcr0:0X00000000 mmcr1:0X4003000C1C0E8E02 mmcra:0X00000001 event:0X342 mmcr0:0X00000000 mmcr1:0X4003000C1C0E8E02 mmcra:0X00000001 event:0X343 mmcr0:0X00000000 mmcr1:0X4003000C1C0E8E02 mmcra:0X00000001 event:0X344 mmcr0:0X00000000 mmcr1:0X4003000C1C0E8E02 mmcra:0X00000001 event:0X345 mmcr0:0X00000000 mmcr1:0X4003000C1C0E8E02 mmcra:0X00000001 #Group 53 pm_dsource2, L3 cache and memory data access event:0X350 mmcr0:0X00000000 mmcr1:0X0003000F1C0E360E mmcra:0X00000000 event:0X351 mmcr0:0X00000000 mmcr1:0X0003000F1C0E360E mmcra:0X00000000 event:0X352 mmcr0:0X00000000 mmcr1:0X0003000F1C0E360E mmcra:0X00000000 event:0X353 mmcr0:0X00000000 mmcr1:0X0003000F1C0E360E mmcra:0X00000000 event:0X354 mmcr0:0X00000000 mmcr1:0X0003000F1C0E360E mmcra:0X00000000 event:0X355 mmcr0:0X00000000 mmcr1:0X0003000F1C0E360E mmcra:0X00000000 #Group 54 pm_dsource_L2, L2 cache data access event:0X360 mmcr0:0X00000000 mmcr1:0X0003000F2E2E2E2E mmcra:0X00000000 event:0X361 mmcr0:0X00000000 mmcr1:0X0003000F2E2E2E2E mmcra:0X00000000 event:0X362 mmcr0:0X00000000 mmcr1:0X0003000F2E2E2E2E mmcra:0X00000000 event:0X363 mmcr0:0X00000000 mmcr1:0X0003000F2E2E2E2E mmcra:0X00000000 event:0X364 mmcr0:0X00000000 mmcr1:0X0003000F2E2E2E2E mmcra:0X00000000 event:0X365 mmcr0:0X00000000 mmcr1:0X0003000F2E2E2E2E mmcra:0X00000000 #Group 55 pm_dsource_L3, L3 cache data access event:0X370 mmcr0:0X00000000 mmcr1:0X0003000F3C3C3C3C mmcra:0X00000000 event:0X371 mmcr0:0X00000000 mmcr1:0X0003000F3C3C3C3C mmcra:0X00000000 event:0X372 mmcr0:0X00000000 mmcr1:0X0003000F3C3C3C3C mmcra:0X00000000 event:0X373 mmcr0:0X00000000 mmcr1:0X0003000F3C3C3C3C mmcra:0X00000000 event:0X374 mmcr0:0X00000000 mmcr1:0X0003000F3C3C3C3C mmcra:0X00000000 event:0X375 mmcr0:0X00000000 mmcr1:0X0003000F3C3C3C3C mmcra:0X00000000 #Group 56 pm_isource1, Instruction source information event:0X380 mmcr0:0X00000000 mmcr1:0X8000000F1A1A1A0C mmcra:0X00000000 event:0X381 mmcr0:0X00000000 mmcr1:0X8000000F1A1A1A0C mmcra:0X00000000 event:0X382 mmcr0:0X00000000 mmcr1:0X8000000F1A1A1A0C mmcra:0X00000000 event:0X383 mmcr0:0X00000000 mmcr1:0X8000000F1A1A1A0C mmcra:0X00000000 event:0X384 mmcr0:0X00000000 mmcr1:0X8000000F1A1A1A0C mmcra:0X00000000 event:0X385 mmcr0:0X00000000 mmcr1:0X8000000F1A1A1A0C mmcra:0X00000000 #Group 57 pm_isource2, Instruction source information event:0X390 mmcr0:0X00000000 mmcr1:0X8000000D0C0C021A mmcra:0X00000001 event:0X391 mmcr0:0X00000000 mmcr1:0X8000000D0C0C021A mmcra:0X00000001 event:0X392 mmcr0:0X00000000 mmcr1:0X8000000D0C0C021A mmcra:0X00000001 event:0X393 mmcr0:0X00000000 mmcr1:0X8000000D0C0C021A mmcra:0X00000001 event:0X394 mmcr0:0X00000000 mmcr1:0X8000000D0C0C021A mmcra:0X00000001 event:0X395 mmcr0:0X00000000 mmcr1:0X8000000D0C0C021A mmcra:0X00000001 #Group 58 pm_isource_L2, L2 instruction source information event:0X3A0 mmcr0:0X00000000 mmcr1:0X8000000F2C2C2C2C mmcra:0X00000000 event:0X3A1 mmcr0:0X00000000 mmcr1:0X8000000F2C2C2C2C mmcra:0X00000000 event:0X3A2 mmcr0:0X00000000 mmcr1:0X8000000F2C2C2C2C mmcra:0X00000000 event:0X3A3 mmcr0:0X00000000 mmcr1:0X8000000F2C2C2C2C mmcra:0X00000000 event:0X3A4 mmcr0:0X00000000 mmcr1:0X8000000F2C2C2C2C mmcra:0X00000000 event:0X3A5 mmcr0:0X00000000 mmcr1:0X8000000F2C2C2C2C mmcra:0X00000000 #Group 59 pm_isource_L3, L3 instruction source information event:0X3B0 mmcr0:0X00000000 mmcr1:0X8000000F3A3A3A3A mmcra:0X00000000 event:0X3B1 mmcr0:0X00000000 mmcr1:0X8000000F3A3A3A3A mmcra:0X00000000 event:0X3B2 mmcr0:0X00000000 mmcr1:0X8000000F3A3A3A3A mmcra:0X00000000 event:0X3B3 mmcr0:0X00000000 mmcr1:0X8000000F3A3A3A3A mmcra:0X00000000 event:0X3B4 mmcr0:0X00000000 mmcr1:0X8000000F3A3A3A3A mmcra:0X00000000 event:0X3B5 mmcr0:0X00000000 mmcr1:0X8000000F3A3A3A3A mmcra:0X00000000 #Group 60 pm_pteg_source1, PTEG source information event:0X3C0 mmcr0:0X00000000 mmcr1:0X0002000F2E2E2E2E mmcra:0X00000000 event:0X3C1 mmcr0:0X00000000 mmcr1:0X0002000F2E2E2E2E mmcra:0X00000000 event:0X3C2 mmcr0:0X00000000 mmcr1:0X0002000F2E2E2E2E mmcra:0X00000000 event:0X3C3 mmcr0:0X00000000 mmcr1:0X0002000F2E2E2E2E mmcra:0X00000000 event:0X3C4 mmcr0:0X00000000 mmcr1:0X0002000F2E2E2E2E mmcra:0X00000000 event:0X3C5 mmcr0:0X00000000 mmcr1:0X0002000F2E2E2E2E mmcra:0X00000000 #Group 61 pm_pteg_source2, PTEG source information event:0X3D0 mmcr0:0X00000000 mmcr1:0X0002000F3C3C3C3C mmcra:0X00000000 event:0X3D1 mmcr0:0X00000000 mmcr1:0X0002000F3C3C3C3C mmcra:0X00000000 event:0X3D2 mmcr0:0X00000000 mmcr1:0X0002000F3C3C3C3C mmcra:0X00000000 event:0X3D3 mmcr0:0X00000000 mmcr1:0X0002000F3C3C3C3C mmcra:0X00000000 event:0X3D4 mmcr0:0X00000000 mmcr1:0X0002000F3C3C3C3C mmcra:0X00000000 event:0X3D5 mmcr0:0X00000000 mmcr1:0X0002000F3C3C3C3C mmcra:0X00000000 #Group 62 pm_pteg_source3, PTEG source information event:0X3E0 mmcr0:0X00000000 mmcr1:0X0002000F0E0E360E mmcra:0X00000000 event:0X3E1 mmcr0:0X00000000 mmcr1:0X0002000F0E0E360E mmcra:0X00000000 event:0X3E2 mmcr0:0X00000000 mmcr1:0X0002000F0E0E360E mmcra:0X00000000 event:0X3E3 mmcr0:0X00000000 mmcr1:0X0002000F0E0E360E mmcra:0X00000000 event:0X3E4 mmcr0:0X00000000 mmcr1:0X0002000F0E0E360E mmcra:0X00000000 event:0X3E5 mmcr0:0X00000000 mmcr1:0X0002000F0E0E360E mmcra:0X00000000 #Group 63 pm_pteg_source4, L3 PTEG and group disptach events event:0X3F0 mmcr0:0X00000000 mmcr1:0X003200081C04048E mmcra:0X00000000 event:0X3F1 mmcr0:0X00000000 mmcr1:0X003200081C04048E mmcra:0X00000000 event:0X3F2 mmcr0:0X00000000 mmcr1:0X003200081C04048E mmcra:0X00000000 event:0X3F3 mmcr0:0X00000000 mmcr1:0X003200081C04048E mmcra:0X00000000 event:0X3F4 mmcr0:0X00000000 mmcr1:0X003200081C04048E mmcra:0X00000000 event:0X3F5 mmcr0:0X00000000 mmcr1:0X003200081C04048E mmcra:0X00000000 #Group 64 pm_L2SA_ld, L2 slice A load events event:0X400 mmcr0:0X00000000 mmcr1:0X3055400580C080C0 mmcra:0X00000000 event:0X401 mmcr0:0X00000000 mmcr1:0X3055400580C080C0 mmcra:0X00000000 event:0X402 mmcr0:0X00000000 mmcr1:0X3055400580C080C0 mmcra:0X00000000 event:0X403 mmcr0:0X00000000 mmcr1:0X3055400580C080C0 mmcra:0X00000000 event:0X404 mmcr0:0X00000000 mmcr1:0X3055400580C080C0 mmcra:0X00000000 event:0X405 mmcr0:0X00000000 mmcr1:0X3055400580C080C0 mmcra:0X00000000 #Group 65 pm_L2SA_st, L2 slice A store events event:0X410 mmcr0:0X00000000 mmcr1:0X3055800580C080C0 mmcra:0X00000000 event:0X411 mmcr0:0X00000000 mmcr1:0X3055800580C080C0 mmcra:0X00000000 event:0X412 mmcr0:0X00000000 mmcr1:0X3055800580C080C0 mmcra:0X00000000 event:0X413 mmcr0:0X00000000 mmcr1:0X3055800580C080C0 mmcra:0X00000000 event:0X414 mmcr0:0X00000000 mmcr1:0X3055800580C080C0 mmcra:0X00000000 event:0X415 mmcr0:0X00000000 mmcr1:0X3055800580C080C0 mmcra:0X00000000 #Group 66 pm_L2SA_st2, L2 slice A store events event:0X420 mmcr0:0X00000000 mmcr1:0X3055C00580C080C0 mmcra:0X00000000 event:0X421 mmcr0:0X00000000 mmcr1:0X3055C00580C080C0 mmcra:0X00000000 event:0X422 mmcr0:0X00000000 mmcr1:0X3055C00580C080C0 mmcra:0X00000000 event:0X423 mmcr0:0X00000000 mmcr1:0X3055C00580C080C0 mmcra:0X00000000 event:0X424 mmcr0:0X00000000 mmcr1:0X3055C00580C080C0 mmcra:0X00000000 event:0X425 mmcr0:0X00000000 mmcr1:0X3055C00580C080C0 mmcra:0X00000000 #Group 67 pm_L2SB_ld, L2 slice B load events event:0X430 mmcr0:0X00000000 mmcr1:0X3055400582C282C2 mmcra:0X00000000 event:0X431 mmcr0:0X00000000 mmcr1:0X3055400582C282C2 mmcra:0X00000000 event:0X432 mmcr0:0X00000000 mmcr1:0X3055400582C282C2 mmcra:0X00000000 event:0X433 mmcr0:0X00000000 mmcr1:0X3055400582C282C2 mmcra:0X00000000 event:0X434 mmcr0:0X00000000 mmcr1:0X3055400582C282C2 mmcra:0X00000000 event:0X435 mmcr0:0X00000000 mmcr1:0X3055400582C282C2 mmcra:0X00000000 #Group 68 pm_L2SB_st, L2 slice B store events event:0X440 mmcr0:0X00000000 mmcr1:0X3055800582C482C2 mmcra:0X00000000 event:0X441 mmcr0:0X00000000 mmcr1:0X3055800582C482C2 mmcra:0X00000000 event:0X442 mmcr0:0X00000000 mmcr1:0X3055800582C482C2 mmcra:0X00000000 event:0X443 mmcr0:0X00000000 mmcr1:0X3055800582C482C2 mmcra:0X00000000 event:0X444 mmcr0:0X00000000 mmcr1:0X3055800582C482C2 mmcra:0X00000000 event:0X445 mmcr0:0X00000000 mmcr1:0X3055800582C482C2 mmcra:0X00000000 #Group 69 pm_L2SB_st2, L2 slice B store events event:0X450 mmcr0:0X00000000 mmcr1:0X3055C00582C282C2 mmcra:0X00000000 event:0X451 mmcr0:0X00000000 mmcr1:0X3055C00582C282C2 mmcra:0X00000000 event:0X452 mmcr0:0X00000000 mmcr1:0X3055C00582C282C2 mmcra:0X00000000 event:0X453 mmcr0:0X00000000 mmcr1:0X3055C00582C282C2 mmcra:0X00000000 event:0X454 mmcr0:0X00000000 mmcr1:0X3055C00582C282C2 mmcra:0X00000000 event:0X455 mmcr0:0X00000000 mmcr1:0X3055C00582C282C2 mmcra:0X00000000 #Group 70 pm_L2SB_ld, L2 slice C load events event:0X460 mmcr0:0X00000000 mmcr1:0X3055400584C484C4 mmcra:0X00000000 event:0X461 mmcr0:0X00000000 mmcr1:0X3055400584C484C4 mmcra:0X00000000 event:0X462 mmcr0:0X00000000 mmcr1:0X3055400584C484C4 mmcra:0X00000000 event:0X463 mmcr0:0X00000000 mmcr1:0X3055400584C484C4 mmcra:0X00000000 event:0X464 mmcr0:0X00000000 mmcr1:0X3055400584C484C4 mmcra:0X00000000 event:0X465 mmcr0:0X00000000 mmcr1:0X3055400584C484C4 mmcra:0X00000000 #Group 71 pm_L2SB_st, L2 slice C store events event:0X470 mmcr0:0X00000000 mmcr1:0X3055800584C284C4 mmcra:0X00000000 event:0X471 mmcr0:0X00000000 mmcr1:0X3055800584C284C4 mmcra:0X00000000 event:0X472 mmcr0:0X00000000 mmcr1:0X3055800584C284C4 mmcra:0X00000000 event:0X473 mmcr0:0X00000000 mmcr1:0X3055800584C284C4 mmcra:0X00000000 event:0X474 mmcr0:0X00000000 mmcr1:0X3055800584C284C4 mmcra:0X00000000 event:0X475 mmcr0:0X00000000 mmcr1:0X3055800584C284C4 mmcra:0X00000000 #Group 72 pm_L2SB_st2, L2 slice C store events event:0X480 mmcr0:0X00000000 mmcr1:0X3055C00584C484C4 mmcra:0X00000000 event:0X481 mmcr0:0X00000000 mmcr1:0X3055C00584C484C4 mmcra:0X00000000 event:0X482 mmcr0:0X00000000 mmcr1:0X3055C00584C484C4 mmcra:0X00000000 event:0X483 mmcr0:0X00000000 mmcr1:0X3055C00584C484C4 mmcra:0X00000000 event:0X484 mmcr0:0X00000000 mmcr1:0X3055C00584C484C4 mmcra:0X00000000 event:0X485 mmcr0:0X00000000 mmcr1:0X3055C00584C484C4 mmcra:0X00000000 #Group 73 pm_L3SA_trans, L3 slice A state transistions event:0X490 mmcr0:0X00000000 mmcr1:0X3015000AC602C686 mmcra:0X00000001 event:0X491 mmcr0:0X00000000 mmcr1:0X3015000AC602C686 mmcra:0X00000001 event:0X492 mmcr0:0X00000000 mmcr1:0X3015000AC602C686 mmcra:0X00000001 event:0X493 mmcr0:0X00000000 mmcr1:0X3015000AC602C686 mmcra:0X00000001 event:0X494 mmcr0:0X00000000 mmcr1:0X3015000AC602C686 mmcra:0X00000001 event:0X495 mmcr0:0X00000000 mmcr1:0X3015000AC602C686 mmcra:0X00000001 #Group 74 pm_L3SB_trans, L3 slice B state transistions event:0X4A0 mmcr0:0X00000000 mmcr1:0X3015000602C8C888 mmcra:0X00000001 event:0X4A1 mmcr0:0X00000000 mmcr1:0X3015000602C8C888 mmcra:0X00000001 event:0X4A2 mmcr0:0X00000000 mmcr1:0X3015000602C8C888 mmcra:0X00000001 event:0X4A3 mmcr0:0X00000000 mmcr1:0X3015000602C8C888 mmcra:0X00000001 event:0X4A4 mmcr0:0X00000000 mmcr1:0X3015000602C8C888 mmcra:0X00000001 event:0X4A5 mmcr0:0X00000000 mmcr1:0X3015000602C8C888 mmcra:0X00000001 #Group 75 pm_L3SC_trans, L3 slice C state transistions event:0X4B0 mmcr0:0X00000000 mmcr1:0X3015000602CACA8A mmcra:0X00000001 event:0X4B1 mmcr0:0X00000000 mmcr1:0X3015000602CACA8A mmcra:0X00000001 event:0X4B2 mmcr0:0X00000000 mmcr1:0X3015000602CACA8A mmcra:0X00000001 event:0X4B3 mmcr0:0X00000000 mmcr1:0X3015000602CACA8A mmcra:0X00000001 event:0X4B4 mmcr0:0X00000000 mmcr1:0X3015000602CACA8A mmcra:0X00000001 event:0X4B5 mmcr0:0X00000000 mmcr1:0X3015000602CACA8A mmcra:0X00000001 #Group 76 pm_L2SA_trans, L2 slice A state transistions event:0X4C0 mmcr0:0X00000000 mmcr1:0X3055000AC080C080 mmcra:0X00000000 event:0X4C1 mmcr0:0X00000000 mmcr1:0X3055000AC080C080 mmcra:0X00000000 event:0X4C2 mmcr0:0X00000000 mmcr1:0X3055000AC080C080 mmcra:0X00000000 event:0X4C3 mmcr0:0X00000000 mmcr1:0X3055000AC080C080 mmcra:0X00000000 event:0X4C4 mmcr0:0X00000000 mmcr1:0X3055000AC080C080 mmcra:0X00000000 event:0X4C5 mmcr0:0X00000000 mmcr1:0X3055000AC080C080 mmcra:0X00000000 #Group 77 pm_L2SB_trans, L2 slice B state transistions event:0X4D0 mmcr0:0X00000000 mmcr1:0X3055000AC282C282 mmcra:0X00000000 event:0X4D1 mmcr0:0X00000000 mmcr1:0X3055000AC282C282 mmcra:0X00000000 event:0X4D2 mmcr0:0X00000000 mmcr1:0X3055000AC282C282 mmcra:0X00000000 event:0X4D3 mmcr0:0X00000000 mmcr1:0X3055000AC282C282 mmcra:0X00000000 event:0X4D4 mmcr0:0X00000000 mmcr1:0X3055000AC282C282 mmcra:0X00000000 event:0X4D5 mmcr0:0X00000000 mmcr1:0X3055000AC282C282 mmcra:0X00000000 #Group 78 pm_L2SC_trans, L2 slice C state transistions event:0X4E0 mmcr0:0X00000000 mmcr1:0X3055000AC484C484 mmcra:0X00000000 event:0X4E1 mmcr0:0X00000000 mmcr1:0X3055000AC484C484 mmcra:0X00000000 event:0X4E2 mmcr0:0X00000000 mmcr1:0X3055000AC484C484 mmcra:0X00000000 event:0X4E3 mmcr0:0X00000000 mmcr1:0X3055000AC484C484 mmcra:0X00000000 event:0X4E4 mmcr0:0X00000000 mmcr1:0X3055000AC484C484 mmcra:0X00000000 event:0X4E5 mmcr0:0X00000000 mmcr1:0X3055000AC484C484 mmcra:0X00000000 #Group 79 pm_L3SAB_retry, L3 slice A/B snoop retry and all CI/CO busy event:0X4F0 mmcr0:0X00000000 mmcr1:0X3005100FC6C8C6C8 mmcra:0X00000000 event:0X4F1 mmcr0:0X00000000 mmcr1:0X3005100FC6C8C6C8 mmcra:0X00000000 event:0X4F2 mmcr0:0X00000000 mmcr1:0X3005100FC6C8C6C8 mmcra:0X00000000 event:0X4F3 mmcr0:0X00000000 mmcr1:0X3005100FC6C8C6C8 mmcra:0X00000000 event:0X4F4 mmcr0:0X00000000 mmcr1:0X3005100FC6C8C6C8 mmcra:0X00000000 event:0X4F5 mmcr0:0X00000000 mmcr1:0X3005100FC6C8C6C8 mmcra:0X00000000 #Group 80 pm_L3SAB_hit, L3 slice A/B hit and reference event:0X500 mmcr0:0X00000000 mmcr1:0X3050100086888688 mmcra:0X00000000 event:0X501 mmcr0:0X00000000 mmcr1:0X3050100086888688 mmcra:0X00000000 event:0X502 mmcr0:0X00000000 mmcr1:0X3050100086888688 mmcra:0X00000000 event:0X503 mmcr0:0X00000000 mmcr1:0X3050100086888688 mmcra:0X00000000 event:0X504 mmcr0:0X00000000 mmcr1:0X3050100086888688 mmcra:0X00000000 event:0X505 mmcr0:0X00000000 mmcr1:0X3050100086888688 mmcra:0X00000000 #Group 81 pm_L3SC_retry_hit, L3 slice C hit & snoop retry event:0X510 mmcr0:0X00000000 mmcr1:0X3055100ACA8ACA8A mmcra:0X00000000 event:0X511 mmcr0:0X00000000 mmcr1:0X3055100ACA8ACA8A mmcra:0X00000000 event:0X512 mmcr0:0X00000000 mmcr1:0X3055100ACA8ACA8A mmcra:0X00000000 event:0X513 mmcr0:0X00000000 mmcr1:0X3055100ACA8ACA8A mmcra:0X00000000 event:0X514 mmcr0:0X00000000 mmcr1:0X3055100ACA8ACA8A mmcra:0X00000000 event:0X515 mmcr0:0X00000000 mmcr1:0X3055100ACA8ACA8A mmcra:0X00000000 #Group 82 pm_fpu1, Floating Point events event:0X520 mmcr0:0X00000000 mmcr1:0X0000000010101020 mmcra:0X00000000 event:0X521 mmcr0:0X00000000 mmcr1:0X0000000010101020 mmcra:0X00000000 event:0X522 mmcr0:0X00000000 mmcr1:0X0000000010101020 mmcra:0X00000000 event:0X523 mmcr0:0X00000000 mmcr1:0X0000000010101020 mmcra:0X00000000 event:0X524 mmcr0:0X00000000 mmcr1:0X0000000010101020 mmcra:0X00000000 event:0X525 mmcr0:0X00000000 mmcr1:0X0000000010101020 mmcra:0X00000000 #Group 83 pm_fpu2, Floating Point events event:0X530 mmcr0:0X00000000 mmcr1:0X0000000020202010 mmcra:0X00000000 event:0X531 mmcr0:0X00000000 mmcr1:0X0000000020202010 mmcra:0X00000000 event:0X532 mmcr0:0X00000000 mmcr1:0X0000000020202010 mmcra:0X00000000 event:0X533 mmcr0:0X00000000 mmcr1:0X0000000020202010 mmcra:0X00000000 event:0X534 mmcr0:0X00000000 mmcr1:0X0000000020202010 mmcra:0X00000000 event:0X535 mmcr0:0X00000000 mmcr1:0X0000000020202010 mmcra:0X00000000 #Group 84 pm_fpu3, Floating point events event:0X540 mmcr0:0X00000000 mmcr1:0X0000000C1010868E mmcra:0X00000000 event:0X541 mmcr0:0X00000000 mmcr1:0X0000000C1010868E mmcra:0X00000000 event:0X542 mmcr0:0X00000000 mmcr1:0X0000000C1010868E mmcra:0X00000000 event:0X543 mmcr0:0X00000000 mmcr1:0X0000000C1010868E mmcra:0X00000000 event:0X544 mmcr0:0X00000000 mmcr1:0X0000000C1010868E mmcra:0X00000000 event:0X545 mmcr0:0X00000000 mmcr1:0X0000000C1010868E mmcra:0X00000000 #Group 85 pm_fpu4, Floating point events event:0X550 mmcr0:0X00000000 mmcr1:0X0430000C20200220 mmcra:0X00000001 event:0X551 mmcr0:0X00000000 mmcr1:0X0430000C20200220 mmcra:0X00000001 event:0X552 mmcr0:0X00000000 mmcr1:0X0430000C20200220 mmcra:0X00000001 event:0X553 mmcr0:0X00000000 mmcr1:0X0430000C20200220 mmcra:0X00000001 event:0X554 mmcr0:0X00000000 mmcr1:0X0430000C20200220 mmcra:0X00000001 event:0X555 mmcr0:0X00000000 mmcr1:0X0430000C20200220 mmcra:0X00000001 #Group 86 pm_fpu5, Floating point events by unit event:0X560 mmcr0:0X00000000 mmcr1:0X00000000848C848C mmcra:0X00000000 event:0X561 mmcr0:0X00000000 mmcr1:0X00000000848C848C mmcra:0X00000000 event:0X562 mmcr0:0X00000000 mmcr1:0X00000000848C848C mmcra:0X00000000 event:0X563 mmcr0:0X00000000 mmcr1:0X00000000848C848C mmcra:0X00000000 event:0X564 mmcr0:0X00000000 mmcr1:0X00000000848C848C mmcra:0X00000000 event:0X565 mmcr0:0X00000000 mmcr1:0X00000000848C848C mmcra:0X00000000 #Group 87 pm_fpu6, Floating point events by unit event:0X570 mmcr0:0X00000000 mmcr1:0X0000000CC0C88088 mmcra:0X00000000 event:0X571 mmcr0:0X00000000 mmcr1:0X0000000CC0C88088 mmcra:0X00000000 event:0X572 mmcr0:0X00000000 mmcr1:0X0000000CC0C88088 mmcra:0X00000000 event:0X573 mmcr0:0X00000000 mmcr1:0X0000000CC0C88088 mmcra:0X00000000 event:0X574 mmcr0:0X00000000 mmcr1:0X0000000CC0C88088 mmcra:0X00000000 event:0X575 mmcr0:0X00000000 mmcr1:0X0000000CC0C88088 mmcra:0X00000000 #Group 88 pm_fpu7, Floating point events by unit event:0X580 mmcr0:0X00000000 mmcr1:0X000000008088828A mmcra:0X00000000 event:0X581 mmcr0:0X00000000 mmcr1:0X000000008088828A mmcra:0X00000000 event:0X582 mmcr0:0X00000000 mmcr1:0X000000008088828A mmcra:0X00000000 event:0X583 mmcr0:0X00000000 mmcr1:0X000000008088828A mmcra:0X00000000 event:0X584 mmcr0:0X00000000 mmcr1:0X000000008088828A mmcra:0X00000000 event:0X585 mmcr0:0X00000000 mmcr1:0X000000008088828A mmcra:0X00000000 #Group 89 pm_fpu8, Floating point events by unit event:0X590 mmcr0:0X00000000 mmcr1:0X0000000DC2CA02C0 mmcra:0X00000001 event:0X591 mmcr0:0X00000000 mmcr1:0X0000000DC2CA02C0 mmcra:0X00000001 event:0X592 mmcr0:0X00000000 mmcr1:0X0000000DC2CA02C0 mmcra:0X00000001 event:0X593 mmcr0:0X00000000 mmcr1:0X0000000DC2CA02C0 mmcra:0X00000001 event:0X594 mmcr0:0X00000000 mmcr1:0X0000000DC2CA02C0 mmcra:0X00000001 event:0X595 mmcr0:0X00000000 mmcr1:0X0000000DC2CA02C0 mmcra:0X00000001 #Group 90 pm_fpu9, Floating point events by unit event:0X5A0 mmcr0:0X00000000 mmcr1:0X0430000CC6CE8088 mmcra:0X00000000 event:0X5A1 mmcr0:0X00000000 mmcr1:0X0430000CC6CE8088 mmcra:0X00000000 event:0X5A2 mmcr0:0X00000000 mmcr1:0X0430000CC6CE8088 mmcra:0X00000000 event:0X5A3 mmcr0:0X00000000 mmcr1:0X0430000CC6CE8088 mmcra:0X00000000 event:0X5A4 mmcr0:0X00000000 mmcr1:0X0430000CC6CE8088 mmcra:0X00000000 event:0X5A5 mmcr0:0X00000000 mmcr1:0X0430000CC6CE8088 mmcra:0X00000000 #Group 91 pm_fpu10, Floating point events by unit event:0X5B0 mmcr0:0X00000000 mmcr1:0X00000000828A028A mmcra:0X00000001 event:0X5B1 mmcr0:0X00000000 mmcr1:0X00000000828A028A mmcra:0X00000001 event:0X5B2 mmcr0:0X00000000 mmcr1:0X00000000828A028A mmcra:0X00000001 event:0X5B3 mmcr0:0X00000000 mmcr1:0X00000000828A028A mmcra:0X00000001 event:0X5B4 mmcr0:0X00000000 mmcr1:0X00000000828A028A mmcra:0X00000001 event:0X5B5 mmcr0:0X00000000 mmcr1:0X00000000828A028A mmcra:0X00000001 #Group 92 pm_fpu11, Floating point events by unit event:0X5C0 mmcr0:0X00000000 mmcr1:0X00000000868E8602 mmcra:0X00000001 event:0X5C1 mmcr0:0X00000000 mmcr1:0X00000000868E8602 mmcra:0X00000001 event:0X5C2 mmcr0:0X00000000 mmcr1:0X00000000868E8602 mmcra:0X00000001 event:0X5C3 mmcr0:0X00000000 mmcr1:0X00000000868E8602 mmcra:0X00000001 event:0X5C4 mmcr0:0X00000000 mmcr1:0X00000000868E8602 mmcra:0X00000001 event:0X5C5 mmcr0:0X00000000 mmcr1:0X00000000868E8602 mmcra:0X00000001 #Group 93 pm_fpu12, Floating point events by unit event:0X5D0 mmcr0:0X00000000 mmcr1:0X0430000CC4CC8002 mmcra:0X00000001 event:0X5D1 mmcr0:0X00000000 mmcr1:0X0430000CC4CC8002 mmcra:0X00000001 event:0X5D2 mmcr0:0X00000000 mmcr1:0X0430000CC4CC8002 mmcra:0X00000001 event:0X5D3 mmcr0:0X00000000 mmcr1:0X0430000CC4CC8002 mmcra:0X00000001 event:0X5D4 mmcr0:0X00000000 mmcr1:0X0430000CC4CC8002 mmcra:0X00000001 event:0X5D5 mmcr0:0X00000000 mmcr1:0X0430000CC4CC8002 mmcra:0X00000001 #Group 94 pm_fxu1, Fixed Point events event:0X5E0 mmcr0:0X00000000 mmcr1:0X0000000024242424 mmcra:0X00000000 event:0X5E1 mmcr0:0X00000000 mmcr1:0X0000000024242424 mmcra:0X00000000 event:0X5E2 mmcr0:0X00000000 mmcr1:0X0000000024242424 mmcra:0X00000000 event:0X5E3 mmcr0:0X00000000 mmcr1:0X0000000024242424 mmcra:0X00000000 event:0X5E4 mmcr0:0X00000000 mmcr1:0X0000000024242424 mmcra:0X00000000 event:0X5E5 mmcr0:0X00000000 mmcr1:0X0000000024242424 mmcra:0X00000000 #Group 95 pm_fxu2, Fixed Point events event:0X5F0 mmcr0:0X00000000 mmcr1:0X4000000604221020 mmcra:0X00000001 event:0X5F1 mmcr0:0X00000000 mmcr1:0X4000000604221020 mmcra:0X00000001 event:0X5F2 mmcr0:0X00000000 mmcr1:0X4000000604221020 mmcra:0X00000001 event:0X5F3 mmcr0:0X00000000 mmcr1:0X4000000604221020 mmcra:0X00000001 event:0X5F4 mmcr0:0X00000000 mmcr1:0X4000000604221020 mmcra:0X00000001 event:0X5F5 mmcr0:0X00000000 mmcr1:0X4000000604221020 mmcra:0X00000001 #Group 96 pm_fxu3, Fixed Point events event:0X600 mmcr0:0X00000000 mmcr1:0X404000038688C4CC mmcra:0X00000000 event:0X601 mmcr0:0X00000000 mmcr1:0X404000038688C4CC mmcra:0X00000000 event:0X602 mmcr0:0X00000000 mmcr1:0X404000038688C4CC mmcra:0X00000000 event:0X603 mmcr0:0X00000000 mmcr1:0X404000038688C4CC mmcra:0X00000000 event:0X604 mmcr0:0X00000000 mmcr1:0X404000038688C4CC mmcra:0X00000000 event:0X605 mmcr0:0X00000000 mmcr1:0X404000038688C4CC mmcra:0X00000000 #Group 97 pm_smt_priorities1, Thread priority events event:0X610 mmcr0:0X00000000 mmcr1:0X0005000FC6CCC6C8 mmcra:0X00000000 event:0X611 mmcr0:0X00000000 mmcr1:0X0005000FC6CCC6C8 mmcra:0X00000000 event:0X612 mmcr0:0X00000000 mmcr1:0X0005000FC6CCC6C8 mmcra:0X00000000 event:0X613 mmcr0:0X00000000 mmcr1:0X0005000FC6CCC6C8 mmcra:0X00000000 event:0X614 mmcr0:0X00000000 mmcr1:0X0005000FC6CCC6C8 mmcra:0X00000000 event:0X615 mmcr0:0X00000000 mmcr1:0X0005000FC6CCC6C8 mmcra:0X00000000 #Group 98 pm_smt_priorities2, Thread priority events event:0X620 mmcr0:0X00000000 mmcr1:0X0005000FC4CACACC mmcra:0X00000000 event:0X621 mmcr0:0X00000000 mmcr1:0X0005000FC4CACACC mmcra:0X00000000 event:0X622 mmcr0:0X00000000 mmcr1:0X0005000FC4CACACC mmcra:0X00000000 event:0X623 mmcr0:0X00000000 mmcr1:0X0005000FC4CACACC mmcra:0X00000000 event:0X624 mmcr0:0X00000000 mmcr1:0X0005000FC4CACACC mmcra:0X00000000 event:0X625 mmcr0:0X00000000 mmcr1:0X0005000FC4CACACC mmcra:0X00000000 #Group 99 pm_smt_priorities3, Thread priority events event:0X630 mmcr0:0X00000000 mmcr1:0X0005000FC2C8C4C2 mmcra:0X00000000 event:0X631 mmcr0:0X00000000 mmcr1:0X0005000FC2C8C4C2 mmcra:0X00000000 event:0X632 mmcr0:0X00000000 mmcr1:0X0005000FC2C8C4C2 mmcra:0X00000000 event:0X633 mmcr0:0X00000000 mmcr1:0X0005000FC2C8C4C2 mmcra:0X00000000 event:0X634 mmcr0:0X00000000 mmcr1:0X0005000FC2C8C4C2 mmcra:0X00000000 event:0X635 mmcr0:0X00000000 mmcr1:0X0005000FC2C8C4C2 mmcra:0X00000000 #Group 100 pm_smt_priorities4, Thread priority events event:0X640 mmcr0:0X00000000 mmcr1:0X0005000AC016C002 mmcra:0X00000001 event:0X641 mmcr0:0X00000000 mmcr1:0X0005000AC016C002 mmcra:0X00000001 event:0X642 mmcr0:0X00000000 mmcr1:0X0005000AC016C002 mmcra:0X00000001 event:0X643 mmcr0:0X00000000 mmcr1:0X0005000AC016C002 mmcra:0X00000001 event:0X644 mmcr0:0X00000000 mmcr1:0X0005000AC016C002 mmcra:0X00000001 event:0X645 mmcr0:0X00000000 mmcr1:0X0005000AC016C002 mmcra:0X00000001 #Group 101 pm_smt_both, Thread common events event:0X650 mmcr0:0X00000000 mmcr1:0X0010000016260208 mmcra:0X00000001 event:0X651 mmcr0:0X00000000 mmcr1:0X0010000016260208 mmcra:0X00000001 event:0X652 mmcr0:0X00000000 mmcr1:0X0010000016260208 mmcra:0X00000001 event:0X653 mmcr0:0X00000000 mmcr1:0X0010000016260208 mmcra:0X00000001 event:0X654 mmcr0:0X00000000 mmcr1:0X0010000016260208 mmcra:0X00000001 event:0X655 mmcr0:0X00000000 mmcr1:0X0010000016260208 mmcra:0X00000001 #Group 102 pm_smt_selection, Thread selection event:0X660 mmcr0:0X00000000 mmcr1:0X0090000086028082 mmcra:0X00000001 event:0X661 mmcr0:0X00000000 mmcr1:0X0090000086028082 mmcra:0X00000001 event:0X662 mmcr0:0X00000000 mmcr1:0X0090000086028082 mmcra:0X00000001 event:0X663 mmcr0:0X00000000 mmcr1:0X0090000086028082 mmcra:0X00000001 event:0X664 mmcr0:0X00000000 mmcr1:0X0090000086028082 mmcra:0X00000001 event:0X665 mmcr0:0X00000000 mmcr1:0X0090000086028082 mmcra:0X00000001 #Group 103 pm_smt_selectover1, Thread selection overide event:0X670 mmcr0:0X00000000 mmcr1:0X0050000002808488 mmcra:0X00000001 event:0X671 mmcr0:0X00000000 mmcr1:0X0050000002808488 mmcra:0X00000001 event:0X672 mmcr0:0X00000000 mmcr1:0X0050000002808488 mmcra:0X00000001 event:0X673 mmcr0:0X00000000 mmcr1:0X0050000002808488 mmcra:0X00000001 event:0X674 mmcr0:0X00000000 mmcr1:0X0050000002808488 mmcra:0X00000001 event:0X675 mmcr0:0X00000000 mmcr1:0X0050000002808488 mmcra:0X00000001 #Group 104 pm_smt_selectover2, Thread selection overide event:0X680 mmcr0:0X00000000 mmcr1:0X00100000021E8A86 mmcra:0X00000001 event:0X681 mmcr0:0X00000000 mmcr1:0X00100000021E8A86 mmcra:0X00000001 event:0X682 mmcr0:0X00000000 mmcr1:0X00100000021E8A86 mmcra:0X00000001 event:0X683 mmcr0:0X00000000 mmcr1:0X00100000021E8A86 mmcra:0X00000001 event:0X684 mmcr0:0X00000000 mmcr1:0X00100000021E8A86 mmcra:0X00000001 event:0X685 mmcr0:0X00000000 mmcr1:0X00100000021E8A86 mmcra:0X00000001 #Group 105 pm_fabric1, Fabric events event:0X690 mmcr0:0X00000000 mmcr1:0X305500058ECE8ECE mmcra:0X00000000 event:0X691 mmcr0:0X00000000 mmcr1:0X305500058ECE8ECE mmcra:0X00000000 event:0X692 mmcr0:0X00000000 mmcr1:0X305500058ECE8ECE mmcra:0X00000000 event:0X693 mmcr0:0X00000000 mmcr1:0X305500058ECE8ECE mmcra:0X00000000 event:0X694 mmcr0:0X00000000 mmcr1:0X305500058ECE8ECE mmcra:0X00000000 event:0X695 mmcr0:0X00000000 mmcr1:0X305500058ECE8ECE mmcra:0X00000000 #Group 106 pm_fabric2, Fabric data movement event:0X6A0 mmcr0:0X00000000 mmcr1:0X305500858ECE8ECE mmcra:0X00000000 event:0X6A1 mmcr0:0X00000000 mmcr1:0X305500858ECE8ECE mmcra:0X00000000 event:0X6A2 mmcr0:0X00000000 mmcr1:0X305500858ECE8ECE mmcra:0X00000000 event:0X6A3 mmcr0:0X00000000 mmcr1:0X305500858ECE8ECE mmcra:0X00000000 event:0X6A4 mmcr0:0X00000000 mmcr1:0X305500858ECE8ECE mmcra:0X00000000 event:0X6A5 mmcr0:0X00000000 mmcr1:0X305500858ECE8ECE mmcra:0X00000000 #Group 107 pm_fabric3, Fabric data movement event:0X6B0 mmcr0:0X00000000 mmcr1:0X305501858ECE8ECE mmcra:0X00000000 event:0X6B1 mmcr0:0X00000000 mmcr1:0X305501858ECE8ECE mmcra:0X00000000 event:0X6B2 mmcr0:0X00000000 mmcr1:0X305501858ECE8ECE mmcra:0X00000000 event:0X6B3 mmcr0:0X00000000 mmcr1:0X305501858ECE8ECE mmcra:0X00000000 event:0X6B4 mmcr0:0X00000000 mmcr1:0X305501858ECE8ECE mmcra:0X00000000 event:0X6B5 mmcr0:0X00000000 mmcr1:0X305501858ECE8ECE mmcra:0X00000000 #Group 108 pm_fabric4, Fabric data movement event:0X6C0 mmcr0:0X00000000 mmcr1:0X705401068ECEC68E mmcra:0X00000000 event:0X6C1 mmcr0:0X00000000 mmcr1:0X705401068ECEC68E mmcra:0X00000000 event:0X6C2 mmcr0:0X00000000 mmcr1:0X705401068ECEC68E mmcra:0X00000000 event:0X6C3 mmcr0:0X00000000 mmcr1:0X705401068ECEC68E mmcra:0X00000000 event:0X6C4 mmcr0:0X00000000 mmcr1:0X705401068ECEC68E mmcra:0X00000000 event:0X6C5 mmcr0:0X00000000 mmcr1:0X705401068ECEC68E mmcra:0X00000000 #Group 109 pm_snoop1, Snoop retry event:0X6D0 mmcr0:0X00000000 mmcr1:0X305500058CCC8CCC mmcra:0X00000000 event:0X6D1 mmcr0:0X00000000 mmcr1:0X305500058CCC8CCC mmcra:0X00000000 event:0X6D2 mmcr0:0X00000000 mmcr1:0X305500058CCC8CCC mmcra:0X00000000 event:0X6D3 mmcr0:0X00000000 mmcr1:0X305500058CCC8CCC mmcra:0X00000000 event:0X6D4 mmcr0:0X00000000 mmcr1:0X305500058CCC8CCC mmcra:0X00000000 event:0X6D5 mmcr0:0X00000000 mmcr1:0X305500058CCC8CCC mmcra:0X00000000 #Group 110 pm_snoop2, Snoop read retry event:0X6E0 mmcr0:0X00000000 mmcr1:0X30540A048CCC8C02 mmcra:0X00000001 event:0X6E1 mmcr0:0X00000000 mmcr1:0X30540A048CCC8C02 mmcra:0X00000001 event:0X6E2 mmcr0:0X00000000 mmcr1:0X30540A048CCC8C02 mmcra:0X00000001 event:0X6E3 mmcr0:0X00000000 mmcr1:0X30540A048CCC8C02 mmcra:0X00000001 event:0X6E4 mmcr0:0X00000000 mmcr1:0X30540A048CCC8C02 mmcra:0X00000001 event:0X6E5 mmcr0:0X00000000 mmcr1:0X30540A048CCC8C02 mmcra:0X00000001 #Group 111 pm_snoop3, Snoop write retry event:0X6F0 mmcr0:0X00000000 mmcr1:0X30550C058CCC8CCC mmcra:0X00000000 event:0X6F1 mmcr0:0X00000000 mmcr1:0X30550C058CCC8CCC mmcra:0X00000000 event:0X6F2 mmcr0:0X00000000 mmcr1:0X30550C058CCC8CCC mmcra:0X00000000 event:0X6F3 mmcr0:0X00000000 mmcr1:0X30550C058CCC8CCC mmcra:0X00000000 event:0X6F4 mmcr0:0X00000000 mmcr1:0X30550C058CCC8CCC mmcra:0X00000000 event:0X6F5 mmcr0:0X00000000 mmcr1:0X30550C058CCC8CCC mmcra:0X00000000 #Group 112 pm_snoop4, Snoop partial write retry event:0X700 mmcr0:0X00000000 mmcr1:0X30550E058CCC8CCC mmcra:0X00000000 event:0X701 mmcr0:0X00000000 mmcr1:0X30550E058CCC8CCC mmcra:0X00000000 event:0X702 mmcr0:0X00000000 mmcr1:0X30550E058CCC8CCC mmcra:0X00000000 event:0X703 mmcr0:0X00000000 mmcr1:0X30550E058CCC8CCC mmcra:0X00000000 event:0X704 mmcr0:0X00000000 mmcr1:0X30550E058CCC8CCC mmcra:0X00000000 event:0X705 mmcr0:0X00000000 mmcr1:0X30550E058CCC8CCC mmcra:0X00000000 #Group 113 pm_mem_rq, Memory read queue dispatch event:0X710 mmcr0:0X00000000 mmcr1:0X705402058CCC8CCE mmcra:0X00000000 event:0X711 mmcr0:0X00000000 mmcr1:0X705402058CCC8CCE mmcra:0X00000000 event:0X712 mmcr0:0X00000000 mmcr1:0X705402058CCC8CCE mmcra:0X00000000 event:0X713 mmcr0:0X00000000 mmcr1:0X705402058CCC8CCE mmcra:0X00000000 event:0X714 mmcr0:0X00000000 mmcr1:0X705402058CCC8CCE mmcra:0X00000000 event:0X715 mmcr0:0X00000000 mmcr1:0X705402058CCC8CCE mmcra:0X00000000 #Group 114 pm_mem_read, Memory read complete and cancel event:0X720 mmcr0:0X00000000 mmcr1:0X305404048CCC8C06 mmcra:0X00000000 event:0X721 mmcr0:0X00000000 mmcr1:0X305404048CCC8C06 mmcra:0X00000000 event:0X722 mmcr0:0X00000000 mmcr1:0X305404048CCC8C06 mmcra:0X00000000 event:0X723 mmcr0:0X00000000 mmcr1:0X305404048CCC8C06 mmcra:0X00000000 event:0X724 mmcr0:0X00000000 mmcr1:0X305404048CCC8C06 mmcra:0X00000000 event:0X725 mmcr0:0X00000000 mmcr1:0X305404048CCC8C06 mmcra:0X00000000 #Group 115 pm_mem_wq, Memory write queue dispatch event:0X730 mmcr0:0X00000000 mmcr1:0X305506058CCC8CCC mmcra:0X00000000 event:0X731 mmcr0:0X00000000 mmcr1:0X305506058CCC8CCC mmcra:0X00000000 event:0X732 mmcr0:0X00000000 mmcr1:0X305506058CCC8CCC mmcra:0X00000000 event:0X733 mmcr0:0X00000000 mmcr1:0X305506058CCC8CCC mmcra:0X00000000 event:0X734 mmcr0:0X00000000 mmcr1:0X305506058CCC8CCC mmcra:0X00000000 event:0X735 mmcr0:0X00000000 mmcr1:0X305506058CCC8CCC mmcra:0X00000000 #Group 116 pm_mem_pwq, Memory partial write queue event:0X740 mmcr0:0X00000000 mmcr1:0X305508058CCC8CCC mmcra:0X00000000 event:0X741 mmcr0:0X00000000 mmcr1:0X305508058CCC8CCC mmcra:0X00000000 event:0X742 mmcr0:0X00000000 mmcr1:0X305508058CCC8CCC mmcra:0X00000000 event:0X743 mmcr0:0X00000000 mmcr1:0X305508058CCC8CCC mmcra:0X00000000 event:0X744 mmcr0:0X00000000 mmcr1:0X305508058CCC8CCC mmcra:0X00000000 event:0X745 mmcr0:0X00000000 mmcr1:0X305508058CCC8CCC mmcra:0X00000000 #Group 117 pm_threshold, Thresholding event:0X750 mmcr0:0X00000000 mmcr1:0X0008000404C41628 mmcra:0X00000001 event:0X751 mmcr0:0X00000000 mmcr1:0X0008000404C41628 mmcra:0X00000001 event:0X752 mmcr0:0X00000000 mmcr1:0X0008000404C41628 mmcra:0X00000001 event:0X753 mmcr0:0X00000000 mmcr1:0X0008000404C41628 mmcra:0X00000001 event:0X754 mmcr0:0X00000000 mmcr1:0X0008000404C41628 mmcra:0X00000001 event:0X755 mmcr0:0X00000000 mmcr1:0X0008000404C41628 mmcra:0X00000001 #Group 118 pm_mrk_grp1, Marked group events event:0X760 mmcr0:0X00000000 mmcr1:0X0008000404C60A26 mmcra:0X00000001 event:0X761 mmcr0:0X00000000 mmcr1:0X0008000404C60A26 mmcra:0X00000001 event:0X762 mmcr0:0X00000000 mmcr1:0X0008000404C60A26 mmcra:0X00000001 event:0X763 mmcr0:0X00000000 mmcr1:0X0008000404C60A26 mmcra:0X00000001 event:0X764 mmcr0:0X00000000 mmcr1:0X0008000404C60A26 mmcra:0X00000001 event:0X765 mmcr0:0X00000000 mmcr1:0X0008000404C60A26 mmcra:0X00000001 #Group 119 pm_mrk_grp2, Marked group events event:0X770 mmcr0:0X00000000 mmcr1:0X410300032A0AC822 mmcra:0X00000001 event:0X771 mmcr0:0X00000000 mmcr1:0X410300032A0AC822 mmcra:0X00000001 event:0X772 mmcr0:0X00000000 mmcr1:0X410300032A0AC822 mmcra:0X00000001 event:0X773 mmcr0:0X00000000 mmcr1:0X410300032A0AC822 mmcra:0X00000001 event:0X774 mmcr0:0X00000000 mmcr1:0X410300032A0AC822 mmcra:0X00000001 event:0X775 mmcr0:0X00000000 mmcr1:0X410300032A0AC822 mmcra:0X00000001 #Group 120 pm_mrk_dsource1, Marked data from event:0X780 mmcr0:0X00000000 mmcr1:0X010B000F0E404444 mmcra:0X00000001 event:0X781 mmcr0:0X00000000 mmcr1:0X010B000F0E404444 mmcra:0X00000001 event:0X782 mmcr0:0X00000000 mmcr1:0X010B000F0E404444 mmcra:0X00000001 event:0X783 mmcr0:0X00000000 mmcr1:0X010B000F0E404444 mmcra:0X00000001 event:0X784 mmcr0:0X00000000 mmcr1:0X010B000F0E404444 mmcra:0X00000001 event:0X785 mmcr0:0X00000000 mmcr1:0X010B000F0E404444 mmcra:0X00000001 #Group 121 pm_mrk_dsource2, Marked data from event:0X790 mmcr0:0X00000000 mmcr1:0X010B000C2E440210 mmcra:0X00000001 event:0X791 mmcr0:0X00000000 mmcr1:0X010B000C2E440210 mmcra:0X00000001 event:0X792 mmcr0:0X00000000 mmcr1:0X010B000C2E440210 mmcra:0X00000001 event:0X793 mmcr0:0X00000000 mmcr1:0X010B000C2E440210 mmcra:0X00000001 event:0X794 mmcr0:0X00000000 mmcr1:0X010B000C2E440210 mmcra:0X00000001 event:0X795 mmcr0:0X00000000 mmcr1:0X010B000C2E440210 mmcra:0X00000001 #Group 122 pm_mrk_dsource3, Marked data from event:0X7A0 mmcr0:0X00000000 mmcr1:0X010B000F1C484C4C mmcra:0X00000001 event:0X7A1 mmcr0:0X00000000 mmcr1:0X010B000F1C484C4C mmcra:0X00000001 event:0X7A2 mmcr0:0X00000000 mmcr1:0X010B000F1C484C4C mmcra:0X00000001 event:0X7A3 mmcr0:0X00000000 mmcr1:0X010B000F1C484C4C mmcra:0X00000001 event:0X7A4 mmcr0:0X00000000 mmcr1:0X010B000F1C484C4C mmcra:0X00000001 event:0X7A5 mmcr0:0X00000000 mmcr1:0X010B000F1C484C4C mmcra:0X00000001 #Group 123 pm_mrk_dsource4, Marked data from event:0X7B0 mmcr0:0X00000000 mmcr1:0X010B000F42462E42 mmcra:0X00000001 event:0X7B1 mmcr0:0X00000000 mmcr1:0X010B000F42462E42 mmcra:0X00000001 event:0X7B2 mmcr0:0X00000000 mmcr1:0X010B000F42462E42 mmcra:0X00000001 event:0X7B3 mmcr0:0X00000000 mmcr1:0X010B000F42462E42 mmcra:0X00000001 event:0X7B4 mmcr0:0X00000000 mmcr1:0X010B000F42462E42 mmcra:0X00000001 event:0X7B5 mmcr0:0X00000000 mmcr1:0X010B000F42462E42 mmcra:0X00000001 #Group 124 pm_mrk_dsource5, Marked data from event:0X7C0 mmcr0:0X00000000 mmcr1:0X010B000F3C4C4040 mmcra:0X00000001 event:0X7C1 mmcr0:0X00000000 mmcr1:0X010B000F3C4C4040 mmcra:0X00000001 event:0X7C2 mmcr0:0X00000000 mmcr1:0X010B000F3C4C4040 mmcra:0X00000001 event:0X7C3 mmcr0:0X00000000 mmcr1:0X010B000F3C4C4040 mmcra:0X00000001 event:0X7C4 mmcr0:0X00000000 mmcr1:0X010B000F3C4C4040 mmcra:0X00000001 event:0X7C5 mmcr0:0X00000000 mmcr1:0X010B000F3C4C4040 mmcra:0X00000001 #Group 125 pm_mrk_dsource6, Marked data from event:0X7D0 mmcr0:0X00000000 mmcr1:0X010B000D46460246 mmcra:0X00000001 event:0X7D1 mmcr0:0X00000000 mmcr1:0X010B000D46460246 mmcra:0X00000001 event:0X7D2 mmcr0:0X00000000 mmcr1:0X010B000D46460246 mmcra:0X00000001 event:0X7D3 mmcr0:0X00000000 mmcr1:0X010B000D46460246 mmcra:0X00000001 event:0X7D4 mmcr0:0X00000000 mmcr1:0X010B000D46460246 mmcra:0X00000001 event:0X7D5 mmcr0:0X00000000 mmcr1:0X010B000D46460246 mmcra:0X00000001 #Group 126 pm_mrk_dsource7, Marked data from event:0X7E0 mmcr0:0X00000000 mmcr1:0X010B000F4E4E3C4E mmcra:0X00000001 event:0X7E1 mmcr0:0X00000000 mmcr1:0X010B000F4E4E3C4E mmcra:0X00000001 event:0X7E2 mmcr0:0X00000000 mmcr1:0X010B000F4E4E3C4E mmcra:0X00000001 event:0X7E3 mmcr0:0X00000000 mmcr1:0X010B000F4E4E3C4E mmcra:0X00000001 event:0X7E4 mmcr0:0X00000000 mmcr1:0X010B000F4E4E3C4E mmcra:0X00000001 event:0X7E5 mmcr0:0X00000000 mmcr1:0X010B000F4E4E3C4E mmcra:0X00000001 #Group 127 pm_mrk_dtlbref, Marked data TLB references event:0X7F0 mmcr0:0X00000000 mmcr1:0X020C000F0C0C0C0C mmcra:0X00000001 event:0X7F1 mmcr0:0X00000000 mmcr1:0X020C000F0C0C0C0C mmcra:0X00000001 event:0X7F2 mmcr0:0X00000000 mmcr1:0X020C000F0C0C0C0C mmcra:0X00000001 event:0X7F3 mmcr0:0X00000000 mmcr1:0X020C000F0C0C0C0C mmcra:0X00000001 event:0X7F4 mmcr0:0X00000000 mmcr1:0X020C000F0C0C0C0C mmcra:0X00000001 event:0X7F5 mmcr0:0X00000000 mmcr1:0X020C000F0C0C0C0C mmcra:0X00000001 #Group 128 pm_mrk_dtlbmiss, Marked data TLB misses event:0X800 mmcr0:0X00000000 mmcr1:0X020C000F1A1A1A1A mmcra:0X00000001 event:0X801 mmcr0:0X00000000 mmcr1:0X020C000F1A1A1A1A mmcra:0X00000001 event:0X802 mmcr0:0X00000000 mmcr1:0X020C000F1A1A1A1A mmcra:0X00000001 event:0X803 mmcr0:0X00000000 mmcr1:0X020C000F1A1A1A1A mmcra:0X00000001 event:0X804 mmcr0:0X00000000 mmcr1:0X020C000F1A1A1A1A mmcra:0X00000001 event:0X805 mmcr0:0X00000000 mmcr1:0X020C000F1A1A1A1A mmcra:0X00000001 #Group 129 pm_mrk_dtlb_dslb, Marked data TLB references and misses and marked data SLB misses event:0X810 mmcr0:0X00000000 mmcr1:0X063C0008C8AC8E1E mmcra:0X00000001 event:0X811 mmcr0:0X00000000 mmcr1:0X063C0008C8AC8E1E mmcra:0X00000001 event:0X812 mmcr0:0X00000000 mmcr1:0X063C0008C8AC8E1E mmcra:0X00000001 event:0X813 mmcr0:0X00000000 mmcr1:0X063C0008C8AC8E1E mmcra:0X00000001 event:0X814 mmcr0:0X00000000 mmcr1:0X063C0008C8AC8E1E mmcra:0X00000001 event:0X815 mmcr0:0X00000000 mmcr1:0X063C0008C8AC8E1E mmcra:0X00000001 #Group 130 pm_mrk_lbref, Marked TLB and SLB references event:0X820 mmcr0:0X00000000 mmcr1:0X063C000A0C020C8E mmcra:0X00000001 event:0X821 mmcr0:0X00000000 mmcr1:0X063C000A0C020C8E mmcra:0X00000001 event:0X822 mmcr0:0X00000000 mmcr1:0X063C000A0C020C8E mmcra:0X00000001 event:0X823 mmcr0:0X00000000 mmcr1:0X063C000A0C020C8E mmcra:0X00000001 event:0X824 mmcr0:0X00000000 mmcr1:0X063C000A0C020C8E mmcra:0X00000001 event:0X825 mmcr0:0X00000000 mmcr1:0X063C000A0C020C8E mmcra:0X00000001 #Group 131 pm_mrk_lsmiss, Marked load and store miss event:0X830 mmcr0:0X00000000 mmcr1:0X000800081002060A mmcra:0X00000001 event:0X831 mmcr0:0X00000000 mmcr1:0X000800081002060A mmcra:0X00000001 event:0X832 mmcr0:0X00000000 mmcr1:0X000800081002060A mmcra:0X00000001 event:0X833 mmcr0:0X00000000 mmcr1:0X000800081002060A mmcra:0X00000001 event:0X834 mmcr0:0X00000000 mmcr1:0X000800081002060A mmcra:0X00000001 event:0X835 mmcr0:0X00000000 mmcr1:0X000800081002060A mmcra:0X00000001 #Group 132 pm_mrk_ulsflush, Mark unaligned load and store flushes event:0X840 mmcr0:0X00000000 mmcr1:0X0028000406C62020 mmcra:0X00000001 event:0X841 mmcr0:0X00000000 mmcr1:0X0028000406C62020 mmcra:0X00000001 event:0X842 mmcr0:0X00000000 mmcr1:0X0028000406C62020 mmcra:0X00000001 event:0X843 mmcr0:0X00000000 mmcr1:0X0028000406C62020 mmcra:0X00000001 event:0X844 mmcr0:0X00000000 mmcr1:0X0028000406C62020 mmcra:0X00000001 event:0X845 mmcr0:0X00000000 mmcr1:0X0028000406C62020 mmcra:0X00000001 #Group 133 pm_mrk_misc, Misc marked instructions event:0X850 mmcr0:0X00000000 mmcr1:0X00080008CC062816 mmcra:0X00000001 event:0X851 mmcr0:0X00000000 mmcr1:0X00080008CC062816 mmcra:0X00000001 event:0X852 mmcr0:0X00000000 mmcr1:0X00080008CC062816 mmcra:0X00000001 event:0X853 mmcr0:0X00000000 mmcr1:0X00080008CC062816 mmcra:0X00000001 event:0X854 mmcr0:0X00000000 mmcr1:0X00080008CC062816 mmcra:0X00000001 event:0X855 mmcr0:0X00000000 mmcr1:0X00080008CC062816 mmcra:0X00000001 #Group 134 pm_lsref_L1, Load/Store operations and L1 activity event:0X860 mmcr0:0X00000000 mmcr1:0X8033000C0E1A2020 mmcra:0X00000000 event:0X861 mmcr0:0X00000000 mmcr1:0X8033000C0E1A2020 mmcra:0X00000000 event:0X862 mmcr0:0X00000000 mmcr1:0X8033000C0E1A2020 mmcra:0X00000000 event:0X863 mmcr0:0X00000000 mmcr1:0X8033000C0E1A2020 mmcra:0X00000000 event:0X864 mmcr0:0X00000000 mmcr1:0X8033000C0E1A2020 mmcra:0X00000000 event:0X865 mmcr0:0X00000000 mmcr1:0X8033000C0E1A2020 mmcra:0X00000000 #Group 135 pm_lsref_L2L3, Load/Store operations and L2,L3 activity event:0X870 mmcr0:0X00000000 mmcr1:0X0033000C1C0E2020 mmcra:0X00000000 event:0X871 mmcr0:0X00000000 mmcr1:0X0033000C1C0E2020 mmcra:0X00000000 event:0X872 mmcr0:0X00000000 mmcr1:0X0033000C1C0E2020 mmcra:0X00000000 event:0X873 mmcr0:0X00000000 mmcr1:0X0033000C1C0E2020 mmcra:0X00000000 event:0X874 mmcr0:0X00000000 mmcr1:0X0033000C1C0E2020 mmcra:0X00000000 event:0X875 mmcr0:0X00000000 mmcr1:0X0033000C1C0E2020 mmcra:0X00000000 #Group 136 pm_lsref_tlbmiss, Load/Store operations and TLB misses event:0X880 mmcr0:0X00000000 mmcr1:0X00B0000080882020 mmcra:0X00000000 event:0X881 mmcr0:0X00000000 mmcr1:0X00B0000080882020 mmcra:0X00000000 event:0X882 mmcr0:0X00000000 mmcr1:0X00B0000080882020 mmcra:0X00000000 event:0X883 mmcr0:0X00000000 mmcr1:0X00B0000080882020 mmcra:0X00000000 event:0X884 mmcr0:0X00000000 mmcr1:0X00B0000080882020 mmcra:0X00000000 event:0X885 mmcr0:0X00000000 mmcr1:0X00B0000080882020 mmcra:0X00000000 #Group 137 pm_Dmiss, Data cache misses event:0X890 mmcr0:0X00000000 mmcr1:0X0033000C1C0E1086 mmcra:0X00000000 event:0X891 mmcr0:0X00000000 mmcr1:0X0033000C1C0E1086 mmcra:0X00000000 event:0X892 mmcr0:0X00000000 mmcr1:0X0033000C1C0E1086 mmcra:0X00000000 event:0X893 mmcr0:0X00000000 mmcr1:0X0033000C1C0E1086 mmcra:0X00000000 event:0X894 mmcr0:0X00000000 mmcr1:0X0033000C1C0E1086 mmcra:0X00000000 event:0X895 mmcr0:0X00000000 mmcr1:0X0033000C1C0E1086 mmcra:0X00000000 #Group 138 pm_prefetchX, Prefetch events event:0X8A0 mmcr0:0X00000000 mmcr1:0X853300061ECCCE86 mmcra:0X00000000 event:0X8A1 mmcr0:0X00000000 mmcr1:0X853300061ECCCE86 mmcra:0X00000000 event:0X8A2 mmcr0:0X00000000 mmcr1:0X853300061ECCCE86 mmcra:0X00000000 event:0X8A3 mmcr0:0X00000000 mmcr1:0X853300061ECCCE86 mmcra:0X00000000 event:0X8A4 mmcr0:0X00000000 mmcr1:0X853300061ECCCE86 mmcra:0X00000000 event:0X8A5 mmcr0:0X00000000 mmcr1:0X853300061ECCCE86 mmcra:0X00000000 #Group 139 pm_branchX, Branch operations event:0X8B0 mmcr0:0X00000000 mmcr1:0X8000000F0E0E0EC8 mmcra:0X00000000 event:0X8B1 mmcr0:0X00000000 mmcr1:0X8000000F0E0E0EC8 mmcra:0X00000000 event:0X8B2 mmcr0:0X00000000 mmcr1:0X8000000F0E0E0EC8 mmcra:0X00000000 event:0X8B3 mmcr0:0X00000000 mmcr1:0X8000000F0E0E0EC8 mmcra:0X00000000 event:0X8B4 mmcr0:0X00000000 mmcr1:0X8000000F0E0E0EC8 mmcra:0X00000000 event:0X8B5 mmcr0:0X00000000 mmcr1:0X8000000F0E0E0EC8 mmcra:0X00000000 #Group 140 pm_fpuX1, Floating point events by unit event:0X8C0 mmcr0:0X00000000 mmcr1:0X0000000DC2CA86C0 mmcra:0X00000000 event:0X8C1 mmcr0:0X00000000 mmcr1:0X0000000DC2CA86C0 mmcra:0X00000000 event:0X8C2 mmcr0:0X00000000 mmcr1:0X0000000DC2CA86C0 mmcra:0X00000000 event:0X8C3 mmcr0:0X00000000 mmcr1:0X0000000DC2CA86C0 mmcra:0X00000000 event:0X8C4 mmcr0:0X00000000 mmcr1:0X0000000DC2CA86C0 mmcra:0X00000000 event:0X8C5 mmcr0:0X00000000 mmcr1:0X0000000DC2CA86C0 mmcra:0X00000000 #Group 141 pm_fpuX2, Floating point events by unit event:0X8D0 mmcr0:0X00000000 mmcr1:0X00000000828A828A mmcra:0X00000000 event:0X8D1 mmcr0:0X00000000 mmcr1:0X00000000828A828A mmcra:0X00000000 event:0X8D2 mmcr0:0X00000000 mmcr1:0X00000000828A828A mmcra:0X00000000 event:0X8D3 mmcr0:0X00000000 mmcr1:0X00000000828A828A mmcra:0X00000000 event:0X8D4 mmcr0:0X00000000 mmcr1:0X00000000828A828A mmcra:0X00000000 event:0X8D5 mmcr0:0X00000000 mmcr1:0X00000000828A828A mmcra:0X00000000 #Group 142 pm_fpuX3, Floating point events by unit event:0X8E0 mmcr0:0X00000000 mmcr1:0X00000000868E868E mmcra:0X00000000 event:0X8E1 mmcr0:0X00000000 mmcr1:0X00000000868E868E mmcra:0X00000000 event:0X8E2 mmcr0:0X00000000 mmcr1:0X00000000868E868E mmcra:0X00000000 event:0X8E3 mmcr0:0X00000000 mmcr1:0X00000000868E868E mmcra:0X00000000 event:0X8E4 mmcr0:0X00000000 mmcr1:0X00000000868E868E mmcra:0X00000000 event:0X8E5 mmcr0:0X00000000 mmcr1:0X00000000868E868E mmcra:0X00000000 #Group 143 pm_fpuX4, Floating point and L1 events event:0X8F0 mmcr0:0X00000000 mmcr1:0X0030000020102020 mmcra:0X00000000 event:0X8F1 mmcr0:0X00000000 mmcr1:0X0030000020102020 mmcra:0X00000000 event:0X8F2 mmcr0:0X00000000 mmcr1:0X0030000020102020 mmcra:0X00000000 event:0X8F3 mmcr0:0X00000000 mmcr1:0X0030000020102020 mmcra:0X00000000 event:0X8F4 mmcr0:0X00000000 mmcr1:0X0030000020102020 mmcra:0X00000000 event:0X8F5 mmcr0:0X00000000 mmcr1:0X0030000020102020 mmcra:0X00000000 #Group 144 pm_fpuX5, Floating point events event:0X900 mmcr0:0X00000000 mmcr1:0X0000000C2020868E mmcra:0X00000000 event:0X901 mmcr0:0X00000000 mmcr1:0X0000000C2020868E mmcra:0X00000000 event:0X902 mmcr0:0X00000000 mmcr1:0X0000000C2020868E mmcra:0X00000000 event:0X903 mmcr0:0X00000000 mmcr1:0X0000000C2020868E mmcra:0X00000000 event:0X904 mmcr0:0X00000000 mmcr1:0X0000000C2020868E mmcra:0X00000000 event:0X905 mmcr0:0X00000000 mmcr1:0X0000000C2020868E mmcra:0X00000000 #Group 145 pm_fpuX6, Floating point events event:0X910 mmcr0:0X00000000 mmcr1:0X0000000010202010 mmcra:0X00000000 event:0X911 mmcr0:0X00000000 mmcr1:0X0000000010202010 mmcra:0X00000000 event:0X912 mmcr0:0X00000000 mmcr1:0X0000000010202010 mmcra:0X00000000 event:0X913 mmcr0:0X00000000 mmcr1:0X0000000010202010 mmcra:0X00000000 event:0X914 mmcr0:0X00000000 mmcr1:0X0000000010202010 mmcra:0X00000000 event:0X915 mmcr0:0X00000000 mmcr1:0X0000000010202010 mmcra:0X00000000 #Group 146 pm_fpuX7, Floating point events event:0X920 mmcr0:0X00000000 mmcr1:0X0000000220105010 mmcra:0X00000000 event:0X921 mmcr0:0X00000000 mmcr1:0X0000000220105010 mmcra:0X00000000 event:0X922 mmcr0:0X00000000 mmcr1:0X0000000220105010 mmcra:0X00000000 event:0X923 mmcr0:0X00000000 mmcr1:0X0000000220105010 mmcra:0X00000000 event:0X924 mmcr0:0X00000000 mmcr1:0X0000000220105010 mmcra:0X00000000 event:0X925 mmcr0:0X00000000 mmcr1:0X0000000220105010 mmcra:0X00000000 #Group 147 pm_hpmcount1, HPM group for set 1 event:0X930 mmcr0:0X00000000 mmcr1:0X000000001E281E10 mmcra:0X00000000 event:0X931 mmcr0:0X00000000 mmcr1:0X000000001E281E10 mmcra:0X00000000 event:0X932 mmcr0:0X00000000 mmcr1:0X000000001E281E10 mmcra:0X00000000 event:0X933 mmcr0:0X00000000 mmcr1:0X000000001E281E10 mmcra:0X00000000 event:0X934 mmcr0:0X00000000 mmcr1:0X000000001E281E10 mmcra:0X00000000 event:0X935 mmcr0:0X00000000 mmcr1:0X000000001E281E10 mmcra:0X00000000 #Group 148 pm_hpmcount2, HPM group for set 2 event:0X940 mmcr0:0X00000000 mmcr1:0X043000041E201220 mmcra:0X00000000 event:0X941 mmcr0:0X00000000 mmcr1:0X043000041E201220 mmcra:0X00000000 event:0X942 mmcr0:0X00000000 mmcr1:0X043000041E201220 mmcra:0X00000000 event:0X943 mmcr0:0X00000000 mmcr1:0X043000041E201220 mmcra:0X00000000 event:0X944 mmcr0:0X00000000 mmcr1:0X043000041E201220 mmcra:0X00000000 event:0X945 mmcr0:0X00000000 mmcr1:0X043000041E201220 mmcra:0X00000000 #Group 149 pm_hpmcount3, HPM group for set 3 event:0X950 mmcr0:0X00000000 mmcr1:0X403000041EC01086 mmcra:0X00000000 event:0X951 mmcr0:0X00000000 mmcr1:0X403000041EC01086 mmcra:0X00000000 event:0X952 mmcr0:0X00000000 mmcr1:0X403000041EC01086 mmcra:0X00000000 event:0X953 mmcr0:0X00000000 mmcr1:0X403000041EC01086 mmcra:0X00000000 event:0X954 mmcr0:0X00000000 mmcr1:0X403000041EC01086 mmcra:0X00000000 event:0X955 mmcr0:0X00000000 mmcr1:0X403000041EC01086 mmcra:0X00000000 #Group 150 pm_hpmcount4, HPM group for set 7 event:0X960 mmcr0:0X00000000 mmcr1:0X00B00000101E2020 mmcra:0X00000000 event:0X961 mmcr0:0X00000000 mmcr1:0X00B00000101E2020 mmcra:0X00000000 event:0X962 mmcr0:0X00000000 mmcr1:0X00B00000101E2020 mmcra:0X00000000 event:0X963 mmcr0:0X00000000 mmcr1:0X00B00000101E2020 mmcra:0X00000000 event:0X964 mmcr0:0X00000000 mmcr1:0X00B00000101E2020 mmcra:0X00000000 event:0X965 mmcr0:0X00000000 mmcr1:0X00B00000101E2020 mmcra:0X00000000 #Group 151 pm_flop, Floating point operations event:0X970 mmcr0:0X00000000 mmcr1:0X0000000010105050 mmcra:0X00000000 event:0X971 mmcr0:0X00000000 mmcr1:0X0000000010105050 mmcra:0X00000000 event:0X972 mmcr0:0X00000000 mmcr1:0X0000000010105050 mmcra:0X00000000 event:0X973 mmcr0:0X00000000 mmcr1:0X0000000010105050 mmcra:0X00000000 event:0X974 mmcr0:0X00000000 mmcr1:0X0000000010105050 mmcra:0X00000000 event:0X975 mmcr0:0X00000000 mmcr1:0X0000000010105050 mmcra:0X00000000 #Group 152 pm_eprof1, Group for use with eprof event:0X980 mmcr0:0X00000000 mmcr1:0X00300000121E108E mmcra:0X00000000 event:0X981 mmcr0:0X00000000 mmcr1:0X00300000121E108E mmcra:0X00000000 event:0X982 mmcr0:0X00000000 mmcr1:0X00300000121E108E mmcra:0X00000000 event:0X983 mmcr0:0X00000000 mmcr1:0X00300000121E108E mmcra:0X00000000 event:0X984 mmcr0:0X00000000 mmcr1:0X00300000121E108E mmcra:0X00000000 event:0X985 mmcr0:0X00000000 mmcr1:0X00300000121E108E mmcra:0X00000000 #Group 153 pm_eprof2, Group for use with eprof event:0X990 mmcr0:0X00000000 mmcr1:0X0030000012501220 mmcra:0X00000000 event:0X991 mmcr0:0X00000000 mmcr1:0X0030000012501220 mmcra:0X00000000 event:0X992 mmcr0:0X00000000 mmcr1:0X0030000012501220 mmcra:0X00000000 event:0X993 mmcr0:0X00000000 mmcr1:0X0030000012501220 mmcra:0X00000000 event:0X994 mmcr0:0X00000000 mmcr1:0X0030000012501220 mmcra:0X00000000 event:0X995 mmcr0:0X00000000 mmcr1:0X0030000012501220 mmcra:0X00000000 oprofile-0.9.9/events/ppc64/cell-be/0000775000076400007640000000000012175511557014137 500000000000000oprofile-0.9.9/events/ppc64/cell-be/events0000664000076400007640000016665112175510133015312 00000000000000#ppc64 Cell Broadband Engine events # # Copyright OProfile authors # #(C) COPYRIGHT International Business Machines Corp. 2006 # Contributed by Maynard Johnson # # # As many as 4 signals may be specified when they are from the same group. # In some instances, signals from other groups in the same island or one # other island may also be specified. # # Each signal is assigned to a unique counter. There are 4 32-bit hardware # counters. The signals are defined in the Cell Broadband Engine # Performance manual. # # Each event is given a unique event number. The event number is used by the # Oprofile code to resolve event names for the postprocessing. This is done # to preserve compatibility with the rest of the Oprofile code. The event # number format group_num followed by the counter number for the event within # the group. # Signal Default event:0x1 counters:0,1,2,3 um:zero minimum:100000 name:CYCLES : Processor Cycles event:0x2 counters:0,1,2,3 um:zero minimum:60000 name:SPU_CYCLES : SPU Processor Cycles # Cell BE Island 2 - PowerPC Processing Unit (PPU) # CBE Signal Group 21 - PPU Instruction Unit - Group 1 (NClk) event:0x834 counters:0,1,2,3 um:PPU_01_edges minimum:10000 name:Branch_Commit : Branch instruction committed. event:0x835 counters:0,1,2,3 um:PPU_01_edges minimum:10000 name:Branch_Flush : Branch instruction that caused a misprediction flush is committed. Branch misprediction includes: (1) misprediction of taken or not-taken on conditional branch, (2) misprediction of branch target address on bclr[1] and bcctr[1]. event:0x836 counters:0,1,2,3 um:PPU_01_cycles minimum:10000 name:Ibuf_Empty : Instruction buffer empty. event:0x837 counters:0,1,2,3 um:PPU_01_edges minimum:10000 name:IERAT_Miss : Instruction effective-address-to-real-address translation (I-ERAT) miss. event:0x838 counters:0,1,2,3 um:PPU_01_cycles_or_edges minimum:10000 name:IL1_Miss_Cycles : L1 Instruction cache miss cycles. Counts the cycles from the miss event until the returned instruction is dispatched or cancelled due to branch misprediction, completion restart, or exceptions (see Note 1). event:0x83a counters:0,1,2,3 um:PPU_01_cycles minimum:10000 name:Dispatch_Blocked : Valid instruction available for dispatch, but dispatch is blocked. event:0x83d counters:0,1,2,3 um:PPU_01_edges minimum:10000 name:Instr_Flushed : Instruction in pipeline stage EX7 causes a flush. event:0x83f counters:0,1,2,3 um:PPU_01_edges minimum:10000 name:PPC_Commit : Two PowerPC instructions committed. For microcode sequences, only the last microcode operation is counted. Committed instructions are counted two at a time. If only one instruction has committed for a given cycle, this event will not be raised until another instruction has been committed in a future cycle. # CBE Signal Group 22 - PPU Execution Unit (NClk) event:0x89a counters:0,1,2,3 um:PPU_01_cycles minimum:10000 name:DERAT_Miss : Data effective-address-to-real-address translation (D-ERAT) miss. Not speculative. event:0x89b counters:0,1,2,3 um:PPU_01_cycles minimum:10000 name:Store_Request : Store request counted at the L2 interface. Counts microcoded PPE sequences more than once (see Note 1 for exceptions). (Thread 0 and 1) event:0x89c counters:0,1,2,3 um:PPU_01_cycles minimum:10000 name:Load_Valid : Load valid at a particular pipe stage. Speculative, since flushed operations are counted as well. Counts microcoded PPE sequences more than once. Misaligned flushes might be counted the first time as well. Load operations include all loads that read data from the cache, dcbt and dcbtst. Does not include load Vector/SIMD multimedia extension pattern instructions. event:0x89d counters:0,1,2,3 um:PPU_01_cycles minimum:10000 name:DL1_Miss : L1 D-cache load miss. Pulsed when there is a miss request that has a tag miss but not an ERAT miss. Speculative, since flushed operations are counted as well. # Cell BE Island 3 - PowerPC Storage Subsystem (PPSS) # CBE Signal Group 31 - PPSS Bus Interface Unit (NClk/2) event:0xc1c counters:0,1,2,3 um:PPU_2_edges minimum:10000 name:rcv_mmio_rd_ev : Load from MFC memory-mapped I/O (MMIO) space. event:0xc1d counters:0,1,2,3 um:PPU_2_edges minimum:10000 name:rcv_mmio_wr_ev : Stores to MFC MMIO space. event:0xc22 counters:0,1,2,3 um:PPU_2_edges minimum:10000 name:even_token_req_ev : Request token for even memory bank numbers 0-14. event:0xc2b counters:0,1,2,3 um:PPU_2_edges minimum:10000 name:rcv_data_ev : Receive 8-beat data from the Element Interconnect Bus (EIB). event:0xc2c counters:0,1,2,3 um:PPU_2_edges minimum:10000 name:send_data_ev : Send 8-beat data to the EIB. event:0xc2d counters:0,1,2,3 um:PPU_2_edges minimum:10000 name:send_cmd_ev : Send a command to the EIB; includes retried commands. event:0xc2e counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:dgnt_dly_cy : Cycles between data request and data grant. event:0xc33 counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:nc_wr_not_emp_cy : The five-entry Non-Cacheable Unit (NCU) Store Command queue not empty. # CBE Signal Group 32 - PPSS L2 Cache Controller - Group 1 (NClk/2) event:0xc80 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:cache_hit : Cache hit for core interface unit (CIU) loads and stores. event:0xc81 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:cache_miss : Cache miss for CIU loads and stores. event:0xc84 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:load_miss : CIU load miss. event:0xc85 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:store_miss : CIU store to Invalid state (miss). event:0xc87 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:larx_miss_th1 : Load word and reserve indexed (lwarx/ldarx) for Thread 0 hits Invalid cache state event:0xc8e counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:stcx_miss_th1 : Store word conditional indexed (stwcx/stdcx) for Thread 0 hits Invalid cache state when reservation is set. event:0xc99 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:all_snp_busy : All four snoop state machines busy. # CBE Signal Group 33 - PPSS L2 Cache Controller - Group 2 (NClk/2) event:0xce8 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:dclaim_srt : Data line claim (dclaim) that received good combined response; includes store/stcx/dcbz to Shared (S), Shared Last (SL),or Tagged (T) cache state; does not include dcbz to Invalid (I) cache state (see Note 1). event:0xcef counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:dclaim_to_rwitm : Dclaim converted into rwitm; may still not get to the bus if stcx is aborted (see Note 2). event:0xcf0 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:store_mxe : Store to modified (M), modified unsolicited (MU), or exclusive (E) cache state. event:0xcf1 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:stq_full : 8-entry store queue (STQ) full. event:0xcf2 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:store_rc_ack : Store dispatched to RC machine is acknowledged. event:0xcf3 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:gather_store : Gatherable store (type = 00000) received from CIU. event:0xcf6 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:snp_push : Snoop push. event:0xcf7 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:intv_snode_er : Send intervention from (SL | E) cache state to a destination within the same CBE chip. event:0xcf8 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:intv_snode_mx : Send intervention from (M | MU) cache state to a destination within the same CBE chip. event:0xcfd counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:snp_retry : Respond with Retry to a snooped request due to one of the following conflicts: read-and-claim state machine (RC) full address, castout (CO) congruence class, snoop (SNP) machine full address, all snoop machines busy, directory lockout, or parity error. event:0xcfe counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:snp_busy_retry : Respond with Retry to a snooped request because all snoop machines are busy. event:0xcff counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:snp_mx_to_est : Snooped response causes a cache state transition from (M | MU) to (E | S | T). event:0xd00 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:snp_e_to_s : Snooped response causes a cache state transition from E to S. event:0xd01 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:snp_esrt_to_i : Snooped response causes a cache state transition from (E | SL | S | T) to Invalid (I). event:0xd02 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:snp_mx_to_i : Snooped response causes a cache state transition from (M | MU) to I. # CBE Signal Group 34 - PPSS L2 Cache Controller - Group 3 (NClk/2) event:0xd54 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:larx_miss : Load and reserve indexed (lwarx/ldarx) for Thread 1 hits Invalid cache state. event:0xd5b counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:stcx_miss_th2 : Store conditional indexed (stwcx/stdcx) for Thread 1 hits Invalid cache state. # CBE Signal Group 35 - PPSS Non-Cacheable Unit (NClk/2) event:0xdac counters:0,1,2,3 um:PPU_0_edges minimum:10000 name:st_req_any : Non-cacheable store request received from CIU; includes all synchronization operations such as sync and eieio. event:0xdad counters:0,1,2,3 um:PPU_0_edges minimum:10000 name:st_req_sync : sync received from CIU. event:0xdb0 counters:0,1,2,3 um:PPU_0_edges minimum:10000 name:st_req_store : Non-cacheable store request received from CIU; includes only stores. event:0xdb2 counters:0,1,2,3 um:PPU_0_edges minimum:10000 name:st_req_eieio : eieio received from CIU. event:0xdb3 counters:0,1,2,3 um:PPU_0_edges minimum:10000 name:st_req_tlbie : tlbie received from CIU. event:0xdb4 counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:stq_bot_sync : sync at the bottom of the store queue, while waiting on st_done signal from the Bus Interface Unit (BIU) and sync_done signal from L2. event:0xdb5 counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:stq_bot_lsync : lwsync at the bottom of the store queue, while waiting for a sync_done signal from the L2. event:0xdb6 counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:stq_bot_eieio : eieio at the bottom of the store queue, while waiting for a st_done signal from the BIU and a sync_done signal from the L2. event:0xdb7 counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:stq_bot_tlbieg : tlbie at the bottom of the store queue, while waiting for a st_done signal from the BIU. event:0xdb8 counters:0,1,2,3 um:PPU_0_edges minimum:10000 name:st_combined : Non-cacheable store combined with the previous non-cacheable store with a contiguous address. event:0xdb9 counters:0,1,2,3 um:PPU_0_edges minimum:10000 name:ld_cancel : Load request canceled by CIU due to late detection of load-hit-store condition (128B boundary). event:0xdba counters:0,1,2,3 um:PPU_0_edges minimum:10000 name:ld_hit_st : NCU detects a load hitting a previous store to an overlapping address (32B boundary). event:0xdbb counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:stb_full : All four store-gather buffers full. event:0xdbc counters:0,1,2,3 um:PPU_0_edges minimum:10000 name:ld_req : Non-cacheable load request received from CIU; includes instruction and data fetches. event:0xdbd counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:stq_not_empty : The four-deep store queue not empty. event:0xdbe counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:stq_full : The four-deep store queue full. event:0xdbf counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:stb_not_empty : At least one store gather buffer not empty. # Cell BE Island 4 - Synergistic Processor Unit (SPU) # # OPROFILE FOR CELL ONLY SUPPORTS PROFILING ON ONE SPU EVENT AT A TIME # # CBE Signal Group 41 - SPU (NClk) event:0x1004 counters:0 um:SPU_02_cycles minimum:10000 name:dual_instrctn_commit : Dual instruction committed. event:0x1005 counters:0 um:SPU_02_cycles minimum:10000 name:sngl_instrctn_commit : Single instruction committed. event:0x1006 counters:0 um:SPU_02_cycles minimum:10000 name:ppln0_instrctn_commit : Pipeline 0 instruction committed. event:0x1007 counters:0 um:SPU_02_cycles minimum:10000 name:ppln1_instrctn_commit : Pipeline 1 instruction committed. event:0x1008 counters:0 um:SPU_02_cycles_or_edges minimum:10000 name:instrctn_ftch_stll : Instruction fetch stall. event:0x1009 counters:0 um:SPU_02_cycles_or_edges minimum:10000 name:lcl_strg_bsy : Local storage busy. event:0x100A counters:0 um:SPU_02_cycles minimum:10000 name:dma_cnflct_ld_st : DMA may conflict with load or store. event:0x100B counters:0 um:SPU_02_cycles minimum:10000 name:str_to_lcl_strg : Store instruction to local storage issued. event:0x100C counters:0 um:SPU_02_cycles minimum:10000 name:ld_frm_lcl_strg : Load intruction from local storage issued. event:0x100D counters:0 um:SPU_02_cycles minimum:10000 name:fpu_exctn : Floating-Point Unit (FPU) exception. event:0x100E counters:0 um:SPU_02_cycles minimum:10000 name:brnch_instrctn_commit : Branch instruction committed. event:0x100F counters:0 um:SPU_02_cycles minimum:10000 name:change_of_flow : Non-sequential change of the SPU program counter, which can be caused by branch, asynchronous interrupt, stalled wait on channel, error correction code (ECC) error, and so forth. event:0x1010 counters:0 um:SPU_02_cycles minimum:10000 name:brnch_not_tkn : Branch not taken. event:0x1011 counters:0 um:SPU_02_cycles minimum:10000 name:brnch_mss_prdctn : Branch miss prediction; not exact. Certain other code sequences can cause additional pulses on this signal (see Note 2). event:0x1012 counters:0 um:SPU_02_cycles minimum:10000 name:brnch_hnt_mss_prdctn : Branch hint miss prediction; not exact. Certain other code sequences can cause additional pulses on this signal (see Note 2). event:0x1013 counters:0 um:SPU_02_cycles minimum:10000 name:instrctn_seqnc_err : Instruction sequence error. event:0x1015 counters:0 um:SPU_02_cycles_or_edges minimum:10000 name:stlld_wait_on_chnl_wrt : Stalled waiting on any blocking channel write (see Note 3). event:0x1016 counters:0 um:SPU_02_cycles_or_edges minimum:10000 name:stlld_wait_on_chnl0 : Stalled waiting on External Event Status (Channel 0) (see Note 3). event:0x1017 counters:0 um:SPU_02_cycles_or_edges minimum:10000 name:stlld_wait_on_chnl3 : Stalled waiting on Signal Notification 1 (Channel 3) (see Note 3). event:0x1018 counters:0 um:SPU_02_cycles_or_edges minimum:10000 name:stlld_wait_on_chnl4 : Stalled waiting on Signal Notification 2 (Channel 4) (see Note 3). event:0x1019 counters:0 um:SPU_02_cycles_or_edges minimum:10000 name:stlld_wait_on_chnl21 : Stalled waiting on DMA Command Opcode or ClassID Register (Channel 21) (see Note 3). event:0x101A counters:0 um:SPU_02_cycles_or_edges minimum:10000 name:stlld_wait_on_chnl24 : Stalled waiting on Tag Group Status (Channel 24) (see Note 3). event:0x101B counters:0 um:SPU_02_cycles_or_edges minimum:10000 name:stlld_wait_on_chnl25 : Stalled waiting on List Stall-and-Notify Tag Status (Channel 25) (see Note 3). event:0x101C counters:0 um:SPU_02_cycles_or_edges minimum:10000 name:stlld_wait_on_chnl28 : Stalled waiting on PPU Mailbox (Channel 28) (see Note 3). event:0x1022 counters:0 um:SPU_02_cycles_or_edges minimum:10000 name:stlld_wait_on_chnl29 : Stalled waiting on SPU Mailbox (Channel 29) (see Note 3). # CBE Signal Group 42 - SPU Trigger (NClk) event:0x10A1 counters:0 um:SPU_Trigger_cycles_or_edges minimum:10000 name:stld_wait_chnl_op : Stalled waiting on channel operation (See Note 2). # CBE Signal Group 43 - SPU Event (NClk) event:0x1107 counters:0 um:SPU_Event_cycles_or_edges minimum:10000 name:instrctn_ftch_stll : Instruction fetch stall. # Cell BE Island 6 - Element Interconnect Bus (EIB) # CBE Signal Group 61 - EIB Address Concentrator 0 (NClk/2) event:0x17d4 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC0_W_ICMD_PERF(0) : Number of read and rwitm commands (including atomic) AC1 to AC0. (Group 1) event:0x17d5 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC0_W_ICMD_PERF(1) : Number of dclaim commands (including atomic) AC1 to AC0. (Group 1) event:0x17d6 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC0_W_ICMD_PERF(2) : Number of wwk, wwc, and wwf commands from AC1 to AC0. (Group 1) event:0x17d7 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC0_W_ICMD_PERF(3) : Number of sync, tlbsync, and eieio commands from AC1 to AC0. (Group 1) event:0x17d8 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC0_W_ICMD_PERF(4) : Number of tlbie commands from AC1 to AC0. (Group 1) event:0x17df counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC0_W_CAM_PERF(1) : Previous adjacent address match (PAAM) Content Addressable Memory (CAM) hit. (Group 1) event:0x17e0 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC0_W_CAM_PERF(2) : PAAM CAM miss. (Group 1) event:0x17e2 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC0_W_CAM_CMD_REFLECTED : Command reflected. (Group 1) event:0x17e4 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC0_W_ICMD_PERF(0) : Number of read and rwitm commands (including atomic) AC1 to AC0. (Group 2) event:0x17e5 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC0_W_ICMD_PERF(1) : Number of dclaim commands (including atomic) AC1 to AC0. (Group 2) event:0x17e6 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC0_W_ICMD_PERF(2) : Number of wwk, wwc, and wwf commands from AC1 to AC0. (Group 2) event:0x17e7 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC0_W_ICMD_PERF(3) : Number of sync, tlbsync, and eieio commands from AC1 to AC0. (Group 2) event:0x17e8 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC0_W_ICMD_PERF(4) : Number of tlbie commands from AC1 to AC0. (Group 2) event:0x17ef counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC0_W_CAM_PERF(1) : PAAM CAM hit. (Group 2) event:0x17f0 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC0_W_CAM_PERF(2) : PAAM CAM miss. (Group 2) event:0x17f2 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC0_W_CAM_CMD_REFLECTED : Command reflected. (Group 2) # CBE Signal Group 62 - EIB Address Concentrator 1 (NClk/2) event:0x1839 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC1_WAC1_TRCMUX_W_TRCGRP_ACPERF(1) : Local command from SPE 6. event:0x183a counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC1_WAC1_TRCMUX_W_TRCGRP_ACPERF(2) : Local command from SPE 4. event:0x183b counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC1_WAC1_TRCMUX_W_TRCGRP_ACPERF(3) : Local command from SPE 2. event:0x183c counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC1_WAC1_TRCMUX_W_TRCGRP_ACPERF(4) : Local command from SPE 0. event:0x183d counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC1_WAC1_TRCMUX_W_TRCGRP_ACPERF(5) : Local command from PPE. event:0x183e counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC1_WAC1_TRCMUX_W_TRCGRP_ACPERF(6) : Local command from SPE 1. event:0x183f counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC1_WAC1_TRCMUX_W_TRCGRP_ACPERF(7) : Local command from SPE 3. event:0x1840 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC1_WAC1_TRCMUX_W_TRCGRP_ACPERF(8) : Local command from SPE 5. event:0x1841 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC1_WAC1_TRCMUX_W_TRCGRP_ACPERF(9) : Local command from SPE 7. event:0x1844 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC1_WAC1_TRCMUX_W_TRCGRP_ACPERF(12) : AC1-to-AC0 global command from SPE 6. event:0x1845 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC1_WAC1_TRCMUX_W_TRCGRP_ACPERF(13) : AC1-to-AC0 global command from SPE 4. event:0x1846 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC1_WAC1_TRCMUX_W_TRCGRP_ACPERF(14) : AC1-to-AC0 global command from SPE 2. event:0x1847 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC1_WAC1_TRCMUX_W_TRCGRP_ACPERF(15) : AC1-to-AC0 global command from SPE 0. event:0x1848 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC1_WAC1_TRCMUX_W_TRCGRP_ACPERF(16) : AC1-to-AC0 global command from PPE. event:0x1849 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC1_WAC1_TRCMUX_W_TRCGRP_ACPERF(17) : AC1-to-AC0 global command from SPE 1. event:0x184a counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC1_WAC1_TRCMUX_W_TRCGRP_ACPERF(18) : AC1-to-AC0 global command from SPE 3. event:0x184b counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC1_WAC1_TRCMUX_W_TRCGRP_ACPERF(19) : AC1-to-AC0 global command from SPE 5. event:0x184c counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC1_WAC1_TRCMUX_W_TRCGRP_ACPERF(20) : AC1-to-AC0 global command from SPE 7. event:0x184f counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC1_WAC1_TRCMUX_W_TRCGRP_ACPERF(23) : AC1 sends a global command to AC0. event:0x1850 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC1_WAC1_TRCMUX_W_TRCGRP_ACPERF(24) : AC0 reflects a global command back to AC1. event:0x1851 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WAC1_WAC1_TRCMUX_W_TRCGRP_ACPERF(25) : AC1 reflects a command back to the bus masters. # CBE Signal Group 63 - EIB Data Ring Arbitrator - Group 1 (NClk/2) event:0x189c counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WDA_DTRC_TRCGRPE(0) : Grant on data ring 0. event:0x189d counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WDA_DTRC_TRCGRPE(1) : Grant on data ring 1. event:0x189e counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WDA_DTRC_TRCGRPE(2) : Grant on data ring 2. event:0x189f counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WDA_DTRC_TRCGRPE(3) : Grant on data ring 3. event:0x18a0 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:WDA_DTRC_TRCGRPE(4) : Data ring 0 is in use. event:0x18a1 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:WDA_DTRC_TRCGRPE(5) : Data ring 1 is in use. event:0x18a2 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:WDA_DTRC_TRCGRPE(6) : Data ring 2 is in use. event:0x18a3 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:WDA_DTRC_TRCGRPE(7) : Data ring 3 is in use. event:0x18a4 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:WDA_DTRC_TRCGRPE(8) : All data rings are idle. event:0x18a5 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:WDA_DTRC_TRCGRPE(9) : One data ring is busy. event:0x18a6 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:WDA_DTRC_TRCGRPE(10) : Two or three data rings are busy. event:0x18a7 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:WDA_DTRC_TRCGRPE(11) : All data rings are busy. event:0x18a8 counters:0,1,2,3 um:PPU_02_cycles_or_edges minimum:10000 name:WDA_DTRC_TRCGRPE(12) : BIC data request pending. event:0x18a9 counters:0,1,2,3 um:PPU_02_cycles_or_edges minimum:10000 name:WDA_DTRC_TRCGRPE(13) : SPE 6 data request pending. event:0x18aa counters:0,1,2,3 um:PPU_02_cycles_or_edges minimum:10000 name:WDA_DTRC_TRCGRPE(14) : SPE 4 data request pending. event:0x18ab counters:0,1,2,3 um:PPU_02_cycles_or_edges minimum:10000 name:WDA_DTRC_TRCGRPE(15) : SPE 2 data request pending. event:0x18ac counters:0,1,2,3 um:PPU_02_cycles_or_edges minimum:10000 name:WDA_DTRC_TRCGRPE(16) : SPE 0 data request pending. event:0x18ad counters:0,1,2,3 um:PPU_02_cycles_or_edges minimum:10000 name:WDA_DTRC_TRCGRPE(17) : MIC data request pending. event:0x18ae counters:0,1,2,3 um:PPU_02_cycles_or_edges minimum:10000 name:WDA_DTRC_TRCGRPE(18) : PPE data request pending. event:0x18af counters:0,1,2,3 um:PPU_02_cycles_or_edges minimum:10000 name:WDA_DTRC_TRCGRPE(19) : SPE 1 data request pending. event:0x18b0 counters:0,1,2,3 um:PPU_02_cycles_or_edges minimum:10000 name:WDA_DTRC_TRCGRPE(20) : SPE 3 data request pending. event:0x18b1 counters:0,1,2,3 um:PPU_02_cycles_or_edges minimum:10000 name:WDA_DTRC_TRCGRPE(21) : SPE 5 data request pending. event:0x18b2 counters:0,1,2,3 um:PPU_02_cycles_or_edges minimum:10000 name:WDA_DTRC_TRCGRPE(22) : SPE 7 data request pending. event:0x18b3 counters:0,1,2,3 um:PPU_02_cycles_or_edges minimum:10000 name:WDA_DTRC_TRCGRPE(23) : IOC data request pending. event:0x18b4 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WDA_DTRC_TRCGRPE(24) : BIC is data destination. event:0x18b5 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WDA_DTRC_TRCGRPE(25) : SPE 6 is data destination. event:0x18b6 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WDA_DTRC_TRCGRPE(26) : SPE 4 is data destination. event:0x18b7 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WDA_DTRC_TRCGRPE(27) : SPE 2 is data destination. event:0x18b8 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WDA_DTRC_TRCGRPE(28) : SPE 0 is data destination. event:0x18b9 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WDA_DTRC_TRCGRPE(29) : MIC is data destination. event:0x18ba counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WDA_DTRC_TRCGRPE(30) : PPE is data destination. event:0x18bb counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WDA_DTRC_TRCGRPE(31) : SPE 1 is data destination. # CBE Signal Group 64 - EIB Data Ring Arbitrator - Group 2 (NClk/2) event:0x1900 counters:0,1,2,3 um:PPU_02_cycles_or_edges minimum:10000 name:WDA_DTRC_TRCGRPF(0) : BIC data request pending. event:0x1901 counters:0,1,2,3 um:PPU_02_cycles_or_edges minimum:10000 name:WDA_DTRC_TRCGRPF(1) : SPE 6 data request pending. event:0x1902 counters:0,1,2,3 um:PPU_02_cycles_or_edges minimum:10000 name:WDA_DTRC_TRCGRPF(2) : SPE 4 data request pending. event:0x1903 counters:0,1,2,3 um:PPU_02_cycles_or_edges minimum:10000 name:WDA_DTRC_TRCGRPF(3) : SPE 2 data request pending. event:0x1904 counters:0,1,2,3 um:PPU_02_cycles_or_edges minimum:10000 name:WDA_DTRC_TRCGRPF(4) : SPE 0 data request pending. event:0x1905 counters:0,1,2,3 um:PPU_02_cycles_or_edges minimum:10000 name:WDA_DTRC_TRCGRPF(5) : MIC data request pending. event:0x1906 counters:0,1,2,3 um:PPU_02_cycles_or_edges minimum:10000 name:WDA_DTRC_TRCGRPF(6) : PPE data request pending. event:0x1907 counters:0,1,2,3 um:PPU_02_cycles_or_edges minimum:10000 name:WDA_DTRC_TRCGRPF(7) : SPE 1 data request pending. event:0x1908 counters:0,1,2,3 um:PPU_02_cycles_or_edges minimum:10000 name:WDA_DTRC_TRCGRPF(8) : SPE 3 data request pending. event:0x1909 counters:0,1,2,3 um:PPU_02_cycles_or_edges minimum:10000 name:WDA_DTRC_TRCGRPF(9) : SPE 5 data request pending. event:0x190a counters:0,1,2,3 um:PPU_02_cycles_or_edges minimum:10000 name:WDA_DTRC_TRCGRPF(10) : SPE 7 data request pending. event:0x190b counters:0,1,2,3 um:PPU_02_cycles_or_edges minimum:10000 name:WDA_DTRC_TRCGRPF(11) : IOC data request pending. event:0x190c counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WDA_DTRC_TRCGRPF(12) : BIC is data destination. event:0x190d counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WDA_DTRC_TRCGRPF(13) : SPE 6 is data destination. event:0x190e counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WDA_DTRC_TRCGRPF(14) : SPE 4 is data destination. event:0x190f counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WDA_DTRC_TRCGRPF(15) : SPE 2 is data destination. event:0x1910 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WDA_DTRC_TRCGRPF(16) : SPE 0 is data destination. event:0x1911 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WDA_DTRC_TRCGRPF(17) : MIC is data destination. event:0x1912 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WDA_DTRC_TRCGRPF(18) : PPE is data destination. event:0x1913 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WDA_DTRC_TRCGRPF(19) : SPE 1 is data destination. event:0x1914 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WDA_DTRC_TRCGRPF(20) : SPE 3 is data destination. event:0x1915 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WDA_DTRC_TRCGRPF(21) : SPE 5 is data destination. event:0x1916 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WDA_DTRC_TRCGRPF(22) : SPE 7 is data destination. event:0x1917 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WDA_DTRC_TRCGRPF(23) : IOC is data destination. event:0x1918 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WDA_DTRC_TRCGRPF(24) : Grant on data ring 0. event:0x1919 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WDA_DTRC_TRCGRPF(25) : Grant on data ring 1. event:0x191a counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WDA_DTRC_TRCGRPF(26) : Grant on data ring 2. event:0x191b counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:WDA_DTRC_TRCGRPF(27) : Grant on data ring 3. event:0x191c counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:WDA_DTRC_TRCGRPF(28) : All data rings are idle. event:0x191d counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:WDA_DTRC_TRCGRPF(29) : One data ring is busy. event:0x191e counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:WDA_DTRC_TRCGRPF(30) : Two or three data rings are busy. event:0x191f counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:WDA_DTRC_TRCGRPF(31) : All four data rings are busy. # CBE Signal Group 651 - EIB Token Manager - Group A0/B0 (NClk/2) event:0xfe4c counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag0_xio_e_unused : Even XIO token unused by RAG 0. event:0xfe4d counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag0_xio_o_unused : Odd XIO token unused by RAG 0. event:0xfe4e counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag0_bank_e_unused : Even bank token unused by RAG 0. event:0xfe4f counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag0_bank_o_unused : Odd bank token unused by RAG 0. event:0xfe54 counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:token_granted_spc0 : Token granted for SPE 0. event:0xfe55 counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:token_granted_spc1 : Token granted for SPE 1. event:0xfe56 counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:token_granted_spc2 : Token granted for SPE 2. event:0xfe57 counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:token_granted_spc3 : Token granted for SPE 3. event:0xfe58 counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:token_granted_spc4 : Token granted for SPE 4. event:0xfe59 counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:token_granted_spc5 : Token granted for SPE 5. event:0xfe5a counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:token_granted_spc6 : Token granted for SPE 6. event:0xfe5b counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:token_granted_spc7 : Token granted for SPE 7. # CBE Signal Group 652 - EIB Token Manager - Group A1/B1 (NClk/2) event:0xfeb0 counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag0_xio_e_wasted : Even XIO token wasted by RAG 0; valid only when Unused Enable (UE) = 1 in TKM_CR register. event:0xfeb1 counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag0_xio_o_wasted : Odd XIO token wasted by RAG 0; valid only when Unused Enable (UE) = 1 in TKM_CR register. event:0xfeb2 counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag0_bank_e_wasted : Even bank token wasted by RAG 0; valid only when Unused Enable (UE) = 1 in TKM_CR register. event:0xfeb3 counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag0_bank_o_wasted : Odd bank token wasted by RAG 0; valid only when Unused Enable (UE) = 1 in TKM_CR register. event:0xfebc counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:ragu_xio_e_wasted : Even XIO token wasted by RAG U. event:0xfebd counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:ragu_xio_o_wasted : Odd XIO token wasted by RAG U. event:0xfebe counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:ragu_bank_e_wasted : Even bank token wasted by RAG U. event:0xfebf counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:ragu_bank_o_wasted : Odd bank token wasted by RAG U. # CBE Signal Group 653 - EIB Token Manager - Group A2/B2 (NClk/2) event:0xff14 counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag0_xio_e_shared_to_rag1 : Even XIO token from RAG 0 shared with RAG 1 event:0xff15 counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag0_xio_e_shared_to_rag2 : Even XIO token from RAG 0 shared with RAG 2 event:0xff16 counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag0_xio_e_shared_to_rag3 : Even XIO token from RAG 0 shared with RAG 3 event:0xff17 counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag0_xio_o_shared_to_rag1 : Odd XIO token from RAG 0 shared with RAG 1 event:0xff18 counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag0_xio_o_shared_to_rag2 : Odd XIO token from RAG 0 shared with RAG 2 event:0xff19 counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag0_xio_o_shared_to_rag3 : Odd XIO token from RAG 0 shared with RAG 3 event:0xff1a counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag0_bank_e_shared_to_rag1 : Even bank token from RAG 0 shared with RAG 1 event:0xff1b counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag0_bank_e_shared_to_rag2 : Even bank token from RAG 0 shared with RAG 2 event:0xff1c counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag0_bank_e_shared_to_rag3 : Even bank token from RAG 0 shared with RAG 3 event:0xff1d counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag0_bank_o_shared_to_rag1 : Odd bank token from RAG 0 shared with RAG 1 event:0xff1e counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag0_bank_o_shared_to_rag2 : Odd bank token from RAG 0 shared with RAG 2 event:0xff1f counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag0_bank_o_shared_to_rag3 : Odd bank token from RAG 0 shared with RAG 3 # CBE Signal Group 654 - EIB Token Manager - Group A0/B0 (NClk/2) # Repeat of the 65400, 65401, 65402, 65403, 65416, 65417, 65418, 65419 events # CBE Signal Group 655 - EIB Token Manager - Group A1/B1 (NClk/2) #repeat of the 65200 events # CBE Signal Group 656 - EIB Token Manager - Group A2/B2 (NClk/2) event:0x1004f counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:ragu_bank_o_shared_to_rag0 : Odd bank token from RAG U shared with RAG 0 event:0x10050 counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag1_xio_e_shared_to_rag0 : Even XIO token from RAG 1 shared with RAG 0 event:0x10051 counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag1_xio_e_shared_to_rag2 : Even XIO token from RAG 1 shared with RAG 2 event:0x10052 counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag1_xio_e_shared_to_rag3 : Even XIO token from RAG 1 shared with RAG 3 event:0x10053 counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag1_xio_o_shared_to_rag0 : Odd XIO token from RAG 1 shared with RAG 0 event:0x10054 counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag1_xio_o_shared_to_rag2 : Odd XIO token from RAG 1 shared with RAG 2 event:0x10055 counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag1_xio_o_shared_to_rag3 : Odd XIO token from RAG 1 shared with RAG 3 event:0x10056 counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag1_bank_e_shared_to_rag0 : Even bank token from RAG 1 shared with RAG 0 event:0x10057 counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag1_bank_e_shared_to_rag2 : Even bank token from RAG 1 shared with RAG 2 event:0x10058 counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag1_bank_e_shared_to_rag3 : Even bank token from RAG 1 shared with RAG 3 event:0x10059 counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag1_bank_o_shared_to_rag0 : Odd bank token from RAG 1 shared with RAG 0 event:0x1005a counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag1_bank_o_shared_to_rag2 : Odd bank token from RAG 1 shared with RAG 2 event:0x1005b counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:rag1_bank_o_shared_to_rag3 : Odd bank token from RAG 1 shared with RAG 3 event:0x1005c counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:ragu_xio_e_shared_to_rag1 : Even XIO token from RAG U shared with RAG 1 event:0x1005d counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:ragu_xio_o_shared_to_rag1 : Odd XIO token from RAG U shared with RAG 1 event:0x1005e counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:ragu_bank_e_shared_to_rag1 : Even bank token from RAG U shared with RAG 1 event:0x1005f counters:0,1,2,3 um:PPU_0_cycles minimum:10000 name:ragu_bank_o_shared_to_rag1 : Odd bank token from RAG U shared with RAG 1 # CBE Signal Group 657 - EIB Token Manager - Group C0/D0 (NClk/2) event:0x100e4 counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag2_xio_e_unused : Even XIO token unused by RAG 2 event:0x100e5 counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag2_xio_o_unused : Odd XIO token unused by RAG 2 event:0x100e6 counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag2_bank_e_unused : Even bank token unused by RAG 2 event:0x100e7 counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag2_bank_o_unused : Odd bank token unused by RAG 2 event:0x100e8 counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag0_ioif0_in_unused : IOIF0 In token unused by RAG 0 event:0x100e9 counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag0_ioif0_out_unused : IOIF0 Out token unused by RAG 0 event:0x100ea counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag0_ioif1_in_unused : IOIF1 In token unused by RAG 0 event:0x100eb counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag0_ioif1_out_unused : IOIF1 Out token unused by RAG 0 # CBE Signal Group 658 - EIB Token Manager - Group C1/D1 (NClk/2) event:0x10148 counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag2_xio_e_wasted : Even XIO token wasted by RAG 2 event:0x10149 counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag2_xio_o_wasted : Odd XIO token wasted by RAG 2 event:0x1014a counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag2_bank_e_wasted : Even bank token wasted by RAG 2 event:0x1014b counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag2_bank_o_wasted : Odd bank token wasted by RAG 2 # CBE Signal Group 659 - EIB Token Manager - Group C2/D2 (NClk/2) event:0x101ac counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag2_xio_e_shared_to_rag0 : Even XIO token from RAG 2 shared with RAG 0 event:0x101ad counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag2_xio_e_shared_to_rag1 : Even XIO token from RAG 2 shared with RAG 1 event:0x101ae counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag2_xio_e_shared_to_rag3 : Even XIO token from RAG 2 shared with RAG 3 event:0x101af counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag2_xio_o_shared_to_rag0 : Odd XIO token from RAG 2 shared with RAG 0 event:0x101b0 counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag2_xio_o_shared_to_rag1 : Odd XIO token from RAG 2 shared with RAG 1 event:0x101b1 counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag2_xio_o_shared_to_rag3 : Odd XIO token from RAG 2 shared with RAG 3 event:0x101b2 counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag2_bank_e_shared_to_rag0 : Even bank token from RAG 2 shared with RAG 0 event:0x101b3 counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag2_bank_e_shared_to_rag1 : Even bank token from RAG 2 shared with RAG 1 event:0x101b4 counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag2_bank_e_shared_to_rag3 : Even bank token from RAG 2 shared with RAG 3 event:0x101b5 counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag2_bank_o_shared_to_rag0 : Odd bank token from RAG 2 shared with RAG 0 event:0x101b6 counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag2_bank_o_shared_to_rag1 : Odd bank token from RAG 2 shared with RAG 1 event:0x101b7 counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag2_bank_o_shared_to_rag3 : Odd bank token from RAG 2 shared with RAG 3 # CBE Signal Group 6510 - EIB Token Manager - Group C3 (NClk/2) event:0x9ef38 counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag0_ioif0_in_wasted : IOIF0 In token wasted by RAG 0 event:0x9ef39 counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag0_ioif0_out_wasted : IOIF0 Out token wasted by RAG 0 event:0x9ef3a counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag0_ioif1_in_wasted : IOIF1 In token wasted by RAG 0 event:0x9ef3b counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag0_ioif1_out_wasted : IOIF1 Out token wasted by RAG 0 # CBE Signal Group 6511 - EIB Token Manager - Group C0/D0 (NClk/2) # repeat of the events 65764 - 65771 # CBE Signal Group 6512 - EIB Token Manager - Group C1/D1 (NClk/2) event:0x9f010 counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag3_xio_e_wasted : Even XIO token wasted by RAG 3 event:0x9f011 counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag3_xio_o_wasted : Odd XIO token wasted by RAG 3 event:0x9f012 counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag3_bank_e_wasted : Even bank token wasted by RAG 3 event:0x9f013 counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag3_bank_o_wasted : Odd bank token wasted by RAG 3 # CBE Signal Group 6513 - EIB Token Manager - Group C2/D2 (NClk/2) event:0x9f074 counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag3_xio_e_shared_to_rag0 : Even XIO token from RAG 3 shared with RAG 0 event:0x9f075 counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag3_xio_e_shared_to_rag1 : Even XIO token from RAG 3 shared with RAG 1 event:0x9f076 counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag3_xio_e_shared_to_rag2 : Even XIO token from RAG 3 shared with RAG 2 event:0x9f077 counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag3_xio_o_shared_to_rag0 : Odd XIO token from RAG 3 shared with RAG 0 event:0x9f078 counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag3_xio_o_shared_to_rag1 : Odd XIO token from RAG 3 shared with RAG 1 event:0x9f079 counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag3_xio_o_shared_to_rag2 : Odd XIO token from RAG 3 shared with RAG 2 event:0x9f07a counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag3_bank_e_shared_to_rag0 : Even bank token from RAG 3 shared with RAG 0 event:0x9f07b counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag3_bank_e_shared_to_rag1 : Even bank token from RAG 3 shared with RAG 1 event:0x9f07c counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag3_bank_e_shared_to_rag2 : Even bank token from RAG 3 shared with RAG 2 event:0x9f07d counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag3_bank_o_shared_to_rag0 : Odd bank token from RAG 3 shared with RAG 0 event:0x9f07e counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag3_bank_o_shared_to_rag1 : Odd bank token from RAG 3 shared with RAG 1 event:0x9f07f counters:0,1,2,3 um:PPU_2_cycles minimum:10000 name:rag3_bank_o_shared_to_rag2 : Odd bank token from RAG 3 shared with RAG 2 # Cell BE Island 7 - Memory Interface Controller (MIC) # CBE Signal Group 71 - MIC Group 1 (NClk/2) event:0x1bc5 counters:0,1,2,3 um:PPU_0123_cycles minimum:10000 name:YM_COMMON_YMB_CSR_PERFORM1(1) : XIO1 - Read command queue is empty. event:0x1bc6 counters:0,1,2,3 um:PPU_0123_cycles minimum:10000 name:YM_COMMON_YMB_CSR_PERFORM1(2) : XIO1 - Write command queue is empty. event:0x1bc8 counters:0,1,2,3 um:PPU_0123_cycles minimum:10000 name:YM_COMMON_YMB_CSR_PERFORM1(4) : XIO1 - Read command queue is full. event:0x1bc9 counters:0,1,2,3 um:PPU_0123_cycles minimum:10000 name:YM_COMMON_YMB_CSR_PERFORM1(5) : XIO1 - MIC responds with a Retry for a read command because the read command queue is full. event:0x1bca counters:0,1,2,3 um:PPU_0123_cycles minimum:10000 name:YM_COMMON_YMB_CSR_PERFORM1(6) : XIO1 - Write command queue is full. event:0x1bcb counters:0,1,2,3 um:PPU_0123_cycles minimum:10000 name:YM_COMMON_YMB_CSR_PERFORM1(7) : XIO1 - MIC responds with a Retry for a write command because the write command queue is full. event:0x1bde counters:0,1,2,3 um:PPU_0123_cycles minimum:10000 name:YM_CTL1_YMM_CCS_PERFORM(2) : XIO1 - Read command dispatched; includes high-priority and fast-path reads (see Note 1). event:0x1bdf counters:0,1,2,3 um:PPU_0123_cycles minimum:10000 name:YM_CTL1_YMM_CCS_PERFORM(3) : XIO1 - Write command dispatched (see Note 1). event:0x1be0 counters:0,1,2,3 um:PPU_0123_cycles minimum:10000 name:YM_CTL1_YMM_CCS_PERFORM(4) : XIO1 - Read-Modify-Write command (data size < 16 bytes) dispatched (see Note 1). event:0x1be1 counters:0,1,2,3 um:PPU_0123_cycles minimum:10000 name:YM_CTL1_YMM_CCS_PERFORM(5) : XIO1 - Refresh dispatched (see Note 1). event:0x1be3 counters:0,1,2,3 um:PPU_0123_cycles minimum:10000 name:YM_CTL1_YMM_CCS_PERFORM(7) : XIO1 - Byte-masking write command (data size >= 16 bytes) dispatched (see Note 1). event:0x1be5 counters:0,1,2,3 um:PPU_0123_cycles minimum:10000 name:YM_CTL1_YMM_CRW_PERFORM(1) : XIO1 - Write command dispatched after a read command was previously dispatched (see Note 1). event:0x1be6 counters:0,1,2,3 um:PPU_0123_cycles minimum:10000 name:YM_CTL1_YMM_CRW_PERFORM(2) : XIO1 - Read command dispatched after a write command was previously dispatched (see Note 1). # CBE Signal Group 72 - MIC Group 2 (NClk/2) event:0x1c29 counters:0,1,2,3 um:PPU_0123_cycles minimum:10000 name:YM_COMMON_YMB_CSR_PERFORM2(1) : XIO0 - Read command queue is empty. event:0x1c2a counters:0,1,2,3 um:PPU_0123_cycles minimum:10000 name:YM_COMMON_YMB_CSR_PERFORM2(2) : XIO0 - Write command queue is empty. event:0x1c2c counters:0,1,2,3 um:PPU_0123_cycles minimum:10000 name:YM_COMMON_YMB_CSR_PERFORM2(4) : XIO0 - Read command queue is full. event:0x1c2d counters:0,1,2,3 um:PPU_0123_cycles minimum:10000 name:YM_COMMON_YMB_CSR_PERFORM2(5) : XIO0 - MIC responds with a Retry for a read command because the read command queue is full. event:0x1c2e counters:0,1,2,3 um:PPU_0123_cycles minimum:10000 name:YM_COMMON_YMB_CSR_PERFORM2(6) : XIO0 - Write command queue is full. event:0x1c2f counters:0,1,2,3 um:PPU_0123_cycles minimum:10000 name:YM_COMMON_YMB_CSR_PERFORM2(7) : XIO0 - MIC responds with a Retry for a write command because the write command queue is full. event:0x1c42 counters:0,1,2,3 um:PPU_0123_cycles minimum:10000 name:YM_CTL0_YMM_CCS_PERFORM(2) : XIO0 - Read command dispatched; includes high-priority and fast-path reads (see Note 1). event:0x1c43 counters:0,1,2,3 um:PPU_0123_cycles minimum:10000 name:YM_CTL0_YMM_CCS_PERFORM(3) : XIO0 - Write command dispatched (see Note 1). event:0x1c44 counters:0,1,2,3 um:PPU_0123_cycles minimum:10000 name:YM_CTL0_YMM_CCS_PERFORM(4) : XIO0 - Read-Modify-Write command (data size < 16 bytes) dispatched (see Note 1). event:0x1c45 counters:0,1,2,3 um:PPU_0123_cycles minimum:10000 name:YM_CTL0_YMM_CCS_PERFORM(5) : XIO0 - Refresh dispatched (see Note 1). event:0x1c49 counters:0,1,2,3 um:PPU_0123_cycles minimum:10000 name:YM_CTL0_YMM_CRW_PERFORM(1) : XIO0 - Write command dispatched after a read command was previously dispatched (see Note 1). event:0x1c4a counters:0,1,2,3 um:PPU_0123_cycles minimum:10000 name:YM_CTL0_YMM_CRW_PERFORM(2) : XIO0 - Read command dispatched after a write command was previously dispatched (see Note 1). # CBE Signal Group 73 - MIC Group 3 (NClk/2) event:0x1ca7 counters:0,1,2,3 um:PPU_0123_cycles minimum:10000 name:YM_CTL0_YMM_CCS_PERFORM(3) : XIO0 - Write command dispatched (see Note 1). event:0x1ca8 counters:0,1,2,3 um:PPU_0123_cycles minimum:10000 name:YM_CTL0_YMM_CCS_PERFORM(4) : XIO0 - Read-Modify-Write command (data size < 16 bytes) dispatched (see Note 1). event:0x1ca9 counters:0,1,2,3 um:PPU_0123_cycles minimum:10000 name:YM_CTL0_YMM_CCS_PERFORM(5) : XIO0 - Refresh dispatched (see Note 1). event:0x1cab counters:0,1,2,3 um:PPU_0123_cycles minimum:10000 name:YM_CTL0_YMM_CCS_PERFORM(7) : XIO0 - Byte-masking write command (data size >= 16 bytes) dispatched (see Note 1). # Cell BE Island 8 - Broadband Engine Interface (BEI) # CBE Signal Group 81 - BIF Controller - IOIF0 Word 0 (NClk/2) event:0x1fb0 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:B2F_Type_A_Data : Type A data physical layer group (PLG). Does not include header-only or credit-only data PLGs. In IOIF mode, counts I/O device read data; in BIF mode, counts all outbound data. event:0x1fb1 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:B2F_Type_B_Data : Type B data PLG. In IOIF mode, counts I/O device read data; in BIF mode, counts all outbound data. event:0x1fb2 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:IOC_Type_A_Data : Type A data PLG. Does not include header-only or credit-only PLGs. In IOIF mode, counts CBE store data to I/O device. Does not apply in BIF mode. event:0x1fb3 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:IOC_Type_B_Data : Type B data PLG. In IOIF mode, counts CBE store data to an I/O device. Does not apply in BIF mode. event:0x1fb4 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:Data_PLG : Data PLG. Does not include header-only or credit-only PLGs. event:0x1fb5 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:Command_PLG : Command PLG (no credit-only PLG). In IOIF mode, counts I/O command or reply PLGs. In BIF mode, counts command/ reflected command or snoop/combined responses. event:0x1fb6 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:Type_A_Transfer : Type A data transfer regardless of length. Can also be used to count Type A data header PLGs (but not credit-only PLGs). event:0x1fb7 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:Type_B_Transfer : Type B data transfer. event:0x1fb8 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:Cmd_Credit_Only_PLG : Command-credit-only command PLG in either IOIF or BIF mode. event:0x1fb9 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:Data_Credit_Only_PLG : Data-credit-only data PLG sent in either IOIF or BIF mode. event:0x1fba counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:Non-Null_Envelopes : Non-null envelope sent (does not include long envelopes). event:0x1fbc counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:null_env_sent : Null envelope sent (see Note 1). event:0x1fbd counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:no_valid_data : No valid data sent this cycle (see Note 1). event:0x1fbe counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:norm_env_sent : Normal envelope sent (see Note 1). event:0x1fbf counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:lnog_env_sent : Long envelope sent (see Note 1). event:0x1fc0 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:per_mon_null_sent : A Null PLG inserted in an outgoing envelope. event:0x1fc1 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:per_mon_array_full : Outbound envelope array is full. # CBE Signal Group 82 - BIF Controller - IOIF1 Word 0 (NClk/2) event:0x201b counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:Type_B_Transfer : Type B data transfer. # CBE Signal Group 83 - BIF Controller - IOIF0 Word 2 (NClk/2) event:0x206d counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:null_env_rcvd : Null envelope received (see Note 1). event:0x207a counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:Command_PLG : Command PLG, but not credit-only PLG. In IOIF mode, counts I/O command or reply PLGs. In BIF mode, counts command/reflected command or snoop/combined responses. event:0x207b counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:Command_Credit_Only_PLG : Command-credit-only command PLG. event:0x2080 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:norm_env_rcvd_good : Normal envelope received is good (see Note 1). event:0x2081 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:long_env_rcvd_good : Long envelope received is good (see Note 1). event:0x2082 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:cmd_credit_only_PLG : Data-credit-only data PLG in either IOIF or BIF mode; will count a maximum of one per envelope (see Note 1). event:0x2083 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:non-null_envelope : Non-null envelope; does not include long envelopes; includes retried envelopes (see Note 1). event:0x2084 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:data_grnt_rcvd : Data grant received. event:0x2088 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:Data_PLG : Data PLG. Does not include header-only or credit-only PLGs. event:0x2089 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:Type_A_transfer : Type A data transfer regardless of length. Can also be used to count Type A data header PLGs, but not credit-only PLGs. event:0x208a counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:Type_B_transfer : Type B data transfer. # CBE Signal Group 84 - BIF Controller - IOIF1 Word 2 (NClk/2) event:0x20d1 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:null_env_rcvd : Null envelope received (see Note 1). event:0x20de counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:Command_PLG : Command PLG (no credit-only PLG). Counts I/O command or reply PLGs. event:0x20df counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:Command_Credit_Only_PLG : Command-credit-only command PLG. event:0x20e4 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:norm_env_rcvd_good : Normal envelope received is good (see Note 1). event:0x20e5 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:long_env_rcvd_good : Long envelope received is good (see Note 1). event:0x20e6 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:cmd_credit_only_PLG : Data-credit-only data PLG received; will count a maximum of one per envelope (see Note 1). event:0x20e7 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:non-null_envelope : Non-Null envelope received; does not include long envelopes; includes retried envelopes (see Note 1). event:0x20e8 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:data_grnt_rcvd : Data grant received. event:0x20ec counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:Data_PLG : Data PLG received. Does not include header-only or credit-only PLGs. event:0x20ed counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:Type_A_transfer : Type I A data transfer regardless of length. Can also be used to count Type A data header PLGs (but not credit-only PLGs). event:0x20ee counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:Type_B_transfer : Type B data transfer received. # CBE Signal Group 85 - I/O Controller Word 0 - Group 1 (NClk/2) event:0x213c counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:mmio_rd_to_ioif1 : Received MMIO read targeted to IOIF1. event:0x213d counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:mmio_wrt_to_ioif1 : Received MMIO write targeted to IOIF1. event:0x213e counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:mmio_rd_to_ioif0 : Received MMIO read targeted to IOIF0. event:0x213f counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:mmio_wrt_to_ioif0 : Received MMIO write targeted to IOIF0. event:0x2140 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:cmd_to_slice0 : Sent command to IOIF0. event:0x2141 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:cmd_to_slice1 : Sent command to IOIF1. # CBE Signal Group 86 - I/O Controller Word 2 - Group 2 (NClk/2) event:0x219d counters:0,1,2,3 um:PPU_02_cycles_or_edges minimum:10000 name:re_dep_dm3 : IOIF0 Dependency Matrix 3 is occupied by a dependent command (see Note 1). event:0x219e counters:0,1,2,3 um:PPU_02_cycles_or_edges minimum:10000 name:re_dep_dm4 : IOIF0 Dependency Matrix 4 is occupied by a dependent command (see Note 1). event:0x219f counters:0,1,2,3 um:PPU_02_cycles_or_edges minimum:10000 name:re_dep_dm5 : IOIF0 Dependency Matrix 5 is occupied by a dependent command (see Note 1). event:0x21a2 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:slice0_ld_rqst : Received read request from IOIF0. event:0x21a3 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:slice0_str_rqst : Received write request from IOIF0. event:0x21a6 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:intrpt_from_realizer : Received interrupt from the IOIF0. # CBE Signal Group 87 - I/O Controller - Group 3 (NClk/2) event:0x220c counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:slice0_rqst_tkn_even : IOIF0 request for token for even memory banks 0-14 (see Note 1). event:0x220d counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:slice0_rqst_tkn_odd : IOIF0 request for token for odd memory banks 1-15 (see Note 1). event:0x220e counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:slice0_rqst_tkn1_3_5_7 : IOIF0 request for token type 1, 3, 5, or 7 (see Note 1). event:0x220f counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:slice0_rqst_tkn9_11_13_15 : IOIF0 request for token type 9, 11, 13, or 15 (see Note 1). event:0x2214 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:slice0_rqst_tkn16 : IOIF0 request for token type 16 (see Note 1). event:0x2215 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:slice0_rqst_tkn17 : IOIF0 request for token type 17 (see Note 1). event:0x2216 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:slice0_rqst_tkn18 : IOIF0 request for token type 18 (see Note 1). event:0x2217 counters:0,1,2,3 um:PPU_02_cycles minimum:10000 name:slice0_rqst_tkn19 : IOIF0 request for token type 19 (see Note 1). # CBE Signal Group 88 - I/O Controller Word 0 - Group 4 (NClk/2) event:0x2260 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:io_pt_hit : I/O page table cache hit for commands from IOIF. event:0x2261 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:io_pt_miss : I/O page table cache miss for commands from IOIF. event:0x2263 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:io_seg_tbl_hit : I/O segment table cache hit. event:0x2264 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:io_seg_tbl_miss : I/O segment table cache miss. event:0x2278 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:intrrpt_frm_spu : Interrupt received from any SPU (reflected cmd when IIC has sent ACK response). event:0x2279 counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:iic_intrrpt_to_pu_thrd0 : Internal interrupt controller (IIC) generated interrupt to PPU thread 0. event:0x227a counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:iic_intrrpt_to_pu_thrd1 : IIC generated interrupt to PPU thread 1. event:0x227b counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:pu_intrrpt_to_pu_thrd0 : Received external interrupt (using MMIO) from PPU to PPU thread 0. event:0x227c counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:pu_intrrpt_to_pu_thrd1 : Received external interrupt (using MMIO) from PPU to PPU thread 1. event:0x227c counters:0,1,2,3 um:PPU_02_edges minimum:10000 name:pu_intrrpt_to_pu_thrd1 : Received external interrupt (using MMIO) from PPU to PPU thread 1. oprofile-0.9.9/events/ppc64/cell-be/unit_masks0000664000076400007640000001155712175510133016155 00000000000000# Cell Broadband Engine possible unit masks # # Copyright OProfile authors # #(C) COPYRIGHT International Business Machines Corp. 2006 # Contributed by Maynard Johnson # # name:zero type:mandatory default:0x0 0x000 Count cycles [mandatory] name:PPU_0_cycles type:bitmask default:0x013 0x001 Count cycles [mandatory] 0x000 Negative polarity [optional ] 0x002 Positive polarity [default ] 0x010 PPU Bus Word 0 [mandatory] name:PPU_0_edges type:bitmask default:0x012 0x000 Count edges [mandatory] 0x000 Negative polarity [optional ] 0x002 Positive polarity [default ] 0x010 PPU Bus Word 0 [mandatory] name:PPU_2_cycles type:bitmask default:0x043 0x001 Count cycles [mandatory] 0x000 Negative polarity [optional ] 0x002 Positive polarity [default ] 0x040 PPU Bus Word 2 [mandatory] name:PPU_2_edges type:bitmask default:0x042 0x000 Count edges [mandatory] 0x000 Negative polarity [optional ] 0x002 Positive polarity [default ] 0x040 PPU Bus Word 2 [mandatory] name:PPU_01_cycles type:bitmask default:0x023 0x001 Count cycles [mandatory] 0x000 Negative polarity [optional ] 0x002 Positive polarity [default ] 0x010 PPU Bus Word 0 [optional ] 0x020 PPU Bus Word 1 [default ] name:PPU_01_edges type:bitmask default:0x022 0x000 Count edges [mandatory] 0x000 Negative polarity [optional ] 0x002 Positive polarity [default ] 0x010 PPU Bus Word 0 [optional ] 0x020 PPU Bus Word 1 [default ] name:PPU_01_cycles_or_edges type:bitmask default:0x023 0x000 Count edges [optional ] 0x001 Count cycles [default ] 0x000 Negative polarity [optional ] 0x002 Positive polarity [default ] 0x010 PPU Bus Word 0 [optional ] 0x020 PPU Bus Word 1 [default ] name:PPU_02_cycles type:bitmask default:0x013 0x001 Count cycles [mandatory] 0x000 Negative polarity [optional ] 0x002 Positive polarity [default ] 0x010 PPU Bus Word 0 [default ] 0x040 PPU Bus Word 2 [optional ] name:PPU_02_edges type:bitmask default:0x012 0x000 Count edges [mandatory] 0x000 Negative polarity [optional ] 0x002 Positive polarity [default ] 0x010 PPU Bus Word 0 [default ] 0x040 PPU Bus Word 2 [optional ] name:PPU_02_cycles_or_edges type:bitmask default:0x013 0x000 Count edges [optional ] 0x001 Count cycles [default ] 0x000 Negative polarity [optional ] 0x002 Positive polarity [default ] 0x010 PPU Bus Word 0 [default ] 0x040 PPU Bus Word 2 [optional ] name:PPU_0123_cycles type:bitmask default:0x033 0x001 Count cycles [mandatory] 0x000 Negative polarity [optional ] 0x002 Positive polarity [default ] 0x030 PPU Bus Word 0/1 [default ] 0x0c0 PPU Bus Word 2/3 [optional ] name:SPU_02_cycles type:bitmask default:0x0113 0x0001 Count cycles [mandatory] 0x0000 Negative polarity [optional ] 0x0002 Positive polarity [default ] 0x0110 SPU Bus Word 0 [default ] 0x0140 SPU Bus Word 2 [optional ] 0x0000 SPU 0 [default ] 0x1000 SPU 1 [optional ] 0x2000 SPU 2 [optional ] 0x3000 SPU 3 [optional ] 0x4000 SPU 4 [optional ] 0x5000 SPU 5 [optional ] 0x6000 SPU 6 [optional ] 0x7000 SPU 7 [optional ] name:SPU_02_cycles_or_edges type:bitmask default:0x0113 0x0000 Count edges [optional ] 0x0001 Count cycles [default ] 0x0000 Negative polarity [optional ] 0x0002 Positive polarity [default ] 0x0110 SPU Bus Word 0 [default ] 0x0140 SPU Bus Word 2 [optional ] 0x0000 SPU 0 [default ] 0x1000 SPU 1 [optional ] 0x2000 SPU 2 [optional ] 0x3000 SPU 3 [optional ] 0x4000 SPU 4 [optional ] 0x5000 SPU 5 [optional ] 0x6000 SPU 6 [optional ] 0x7000 SPU 7 [optional ] name:SPU_Trigger_cycles_or_edges type:bitmask default:0x0107 0x0000 Count edges [optional ] 0x0001 Count cycles [default ] 0x0000 Negative polarity [optional ] 0x0002 Positive polarity [default ] 0x0104 SPU Trigger 0 [default ] 0x0114 SPU Trigger 1 [optional ] 0x0124 SPU Trigger 2 [optional ] 0x0134 SPU Trigger 3 [optional ] 0x0000 SPU 0 [default ] 0x1000 SPU 1 [optional ] 0x2000 SPU 2 [optional ] 0x3000 SPU 3 [optional ] 0x4000 SPU 4 [optional ] 0x5000 SPU 5 [optional ] 0x6000 SPU 6 [optional ] 0x7000 SPU 7 [optional ] name:SPU_Event_cycles_or_edges type:bitmask default:0x0147 0x0000 Count edges [optional ] 0x0001 Count cycles [default ] 0x0000 Negative polarity [optional ] 0x0002 Positive polarity [default ] 0x0144 SPU Event 0 [default ] 0x0154 SPU Event 1 [optional ] 0x0164 SPU Event 2 [optional ] 0x0174 SPU Event 3 [optional ] 0x0000 SPU 0 [default ] 0x1000 SPU 1 [optional ] 0x2000 SPU 2 [optional ] 0x3000 SPU 3 [optional ] 0x4000 SPU 4 [optional ] 0x5000 SPU 5 [optional ] 0x6000 SPU 6 [optional ] 0x7000 SPU 7 [optional ] oprofile-0.9.9/events/ppc64/power6/0000775000076400007640000000000012175511557014056 500000000000000oprofile-0.9.9/events/ppc64/power6/events0000664000076400007640000033737112175510133015230 00000000000000#PPC64 POWER6 events # # Copyright OProfile authors # Copyright (c) International Business Machines, 2007. # Contributed by Dave Nomura . # # # Within each group the event names must be unique. Each event in a group is # assigned to a unique counter. The groups are from the groups defined in the # Performance Monitor Unit user guide for this processor. # # Only events within the same group can be selected simultaneously when # using legacy opcontrol to do profiling. When profiling with operf, # events from different groups may be specified, and the Linux Performance # Events Kernel Subsystem code will handle the necessary multiplexing. # # Each event is given a unique event number. The event number is used by the # OProfile code to resolve event names for the post-processing. This is done # to preserve compatibility with the rest of the OProfile code. The event # numbers are formatted as follows: concat(). #Group Default event:0X001 counters:3 um:zero minimum:10000 name:CYCLES : Processor Cycles #Group 1 pm_utilization, CPI and utilization data event:0X0010 counters:0 um:zero minimum:10000 name:PM_RUN_CYC_GRP1 : (Group 1 pm_utilization) Run cycles event:0X0011 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP1 : (Group 1 pm_utilization) Instructions completed event:0X0012 counters:2 um:zero minimum:1000 name:PM_INST_DISP_GRP1 : (Group 1 pm_utilization) Instructions dispatched event:0X0013 counters:3 um:zero minimum:10000 name:PM_CYC_GRP1 : (Group 1 pm_utilization) Processor cycles #Group 2 pm_utilization_capacity, CPU utilization and capacity event:0X0020 counters:0 um:zero minimum:1000 name:PM_THRD_ONE_RUN_CYC_GRP2 : (Group 2 pm_utilization_capacity) One of the threads in run cycles event:0X0021 counters:1 um:zero minimum:10000 name:PM_CYC_GRP2 : (Group 2 pm_utilization_capacity) Processor cycles event:0X0022 counters:2 um:zero minimum:1000 name:PM_THRD_CONC_RUN_INST_GRP2 : (Group 2 pm_utilization_capacity) Concurrent run instructions event:0X0023 counters:3 um:zero minimum:1000 name:PM_RUN_PURR_GRP2 : (Group 2 pm_utilization_capacity) Run PURR Event #Group 3 pm_branch, Branch operations event:0X0030 counters:0 um:zero minimum:1000 name:PM_BR_PRED_CR_GRP3 : (Group 3 pm_branch) A conditional branch was predicted, CR prediction event:0X0031 counters:1 um:zero minimum:1000 name:PM_BR_MPRED_CR_GRP3 : (Group 3 pm_branch) Branch mispredictions due to CR bit setting event:0X0032 counters:2 um:zero minimum:1000 name:PM_BR_PRED_GRP3 : (Group 3 pm_branch) A conditional branch was predicted event:0X0033 counters:3 um:zero minimum:1000 name:PM_BR_MPRED_COUNT_GRP3 : (Group 3 pm_branch) Branch misprediction due to count prediction #Group 4 pm_branch2, Branch operations event:0X0040 counters:0 um:zero minimum:1000 name:PM_BR_PRED_CCACHE_GRP4 : (Group 4 pm_branch2) Branch count cache prediction event:0X0041 counters:1 um:zero minimum:1000 name:PM_BR_PRED_LSTACK_GRP4 : (Group 4 pm_branch2) A conditional branch was predicted, link stack event:0X0042 counters:2 um:zero minimum:1000 name:PM_BR_MPRED_CCACHE_GRP4 : (Group 4 pm_branch2) Branch misprediction due to count cache prediction event:0X0043 counters:3 um:zero minimum:1000 name:PM_BR_MPRED_TA_GRP4 : (Group 4 pm_branch2) Branch mispredictions due to target address #Group 5 pm_branch3, Branch operations event:0X0050 counters:0 um:zero minimum:1000 name:PM_BR_PRED_GRP5 : (Group 5 pm_branch3) A conditional branch was predicted event:0X0051 counters:1 um:zero minimum:1000 name:PM_BR_PRED_CR_GRP5 : (Group 5 pm_branch3) A conditional branch was predicted, CR prediction event:0X0052 counters:2 um:zero minimum:1000 name:PM_BR_PRED_CCACHE_GRP5 : (Group 5 pm_branch3) Branch count cache prediction event:0X0053 counters:3 um:zero minimum:1000 name:PM_BR_PRED_LSTACK_GRP5 : (Group 5 pm_branch3) A conditional branch was predicted, link stack #Group 6 pm_branch4, Branch operations event:0X0060 counters:0 um:zero minimum:1000 name:PM_BR_MPRED_CR_GRP6 : (Group 6 pm_branch4) Branch mispredictions due to CR bit setting event:0X0061 counters:1 um:zero minimum:1000 name:PM_BR_MPRED_COUNT_GRP6 : (Group 6 pm_branch4) Branch misprediction due to count prediction event:0X0062 counters:2 um:zero minimum:1000 name:PM_BR_MPRED_TA_GRP6 : (Group 6 pm_branch4) Branch mispredictions due to target address event:0X0063 counters:3 um:zero minimum:1000 name:PM_BR_MPRED_CCACHE_GRP6 : (Group 6 pm_branch4) Branch misprediction due to count cache prediction #Group 7 pm_branch5, Branch operations event:0X0070 counters:0 um:zero minimum:1000 name:PM_BR_PRED_GRP7 : (Group 7 pm_branch5) A conditional branch was predicted event:0X0071 counters:1 um:zero minimum:1000 name:PM_BR_TAKEN_GRP7 : (Group 7 pm_branch5) Branches taken event:0X0072 counters:2 um:zero minimum:1000 name:PM_BRU_FIN_GRP7 : (Group 7 pm_branch5) BRU produced a result event:0X0073 counters:3 um:zero minimum:1000 name:PM_BR_MPRED_GRP7 : (Group 7 pm_branch5) Branches incorrectly predicted #Group 8 pm_dsource, Data source event:0X0080 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L2_GRP8 : (Group 8 pm_dsource) Data loaded from L2 event:0X0081 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_L21_GRP8 : (Group 8 pm_dsource) Data loaded from private L2 other core event:0X0082 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_L2MISS_GRP8 : (Group 8 pm_dsource) Data loaded missed L2 event:0X0083 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_L3MISS_GRP8 : (Group 8 pm_dsource) Data loaded from private L3 miss #Group 9 pm_dsource2, Data sources event:0X0090 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L35_MOD_GRP9 : (Group 9 pm_dsource2) Data loaded from L3.5 modified event:0X0091 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_L35_SHR_GRP9 : (Group 9 pm_dsource2) Data loaded from L3.5 shared event:0X0092 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_L3_GRP9 : (Group 9 pm_dsource2) Data loaded from L3 event:0X0093 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_L3MISS_GRP9 : (Group 9 pm_dsource2) Data loaded from private L3 miss #Group 10 pm_dsource3, Data sources event:0X00A0 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L35_MOD_GRP10 : (Group 10 pm_dsource3) Data loaded from L3.5 modified event:0X00A1 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_L35_SHR_GRP10 : (Group 10 pm_dsource3) Data loaded from L3.5 shared event:0X00A2 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_L25_MOD_GRP10 : (Group 10 pm_dsource3) Data loaded from L2.5 modified event:0X00A3 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_L25_SHR_GRP10 : (Group 10 pm_dsource3) Data loaded from L2.5 shared #Group 11 pm_dsource4, Data sources event:0X00B0 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_RL2L3_MOD_GRP11 : (Group 11 pm_dsource4) Data loaded from remote L2 or L3 modified event:0X00B1 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_RL2L3_SHR_GRP11 : (Group 11 pm_dsource4) Data loaded from remote L2 or L3 shared event:0X00B2 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_DL2L3_SHR_GRP11 : (Group 11 pm_dsource4) Data loaded from distant L2 or L3 shared event:0X00B3 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_DL2L3_MOD_GRP11 : (Group 11 pm_dsource4) Data loaded from distant L2 or L3 modified #Group 12 pm_dsource5, Data sources event:0X00C0 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_MEM_DP_GRP12 : (Group 12 pm_dsource5) Data loaded from double pump memory event:0X00C1 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_DMEM_GRP12 : (Group 12 pm_dsource5) Data loaded from distant memory event:0X00C2 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_RMEM_GRP12 : (Group 12 pm_dsource5) Data loaded from remote memory event:0X00C3 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_LMEM_GRP12 : (Group 12 pm_dsource5) Data loaded from local memory #Group 13 pm_dlatencies, Data latencies event:0X00D0 counters:0 um:zero minimum:1000 name:PM_LD_MISS_L1_CYC_GRP13 : (Group 13 pm_dlatencies) L1 data load miss cycles event:0X00D1 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_RL2L3_SHR_CYC_GRP13 : (Group 13 pm_dlatencies) Load latency from remote L2 or L3 shared event:0X00D2 counters:2 um:zero minimum:10000 name:PM_CYC_GRP13 : (Group 13 pm_dlatencies) Processor cycles event:0X00D3 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_L25_MOD_CYC_GRP13 : (Group 13 pm_dlatencies) Load latency from L2.5 modified #Group 14 pm_dlatencies2, Data latencies event:0X00E0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP14 : (Group 14 pm_dlatencies2) Instructions completed event:0X00E1 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_LMEM_CYC_GRP14 : (Group 14 pm_dlatencies2) Load latency from local memory event:0X00E2 counters:2 um:zero minimum:10000 name:PM_CYC_GRP14 : (Group 14 pm_dlatencies2) Processor cycles event:0X00E3 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_DL2L3_MOD_CYC_GRP14 : (Group 14 pm_dlatencies2) Load latency from distant L2 or L3 modified #Group 15 pm_dlatencies3, Data latencies event:0X00F0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP15 : (Group 15 pm_dlatencies3) Instructions completed event:0X00F1 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_DMEM_CYC_GRP15 : (Group 15 pm_dlatencies3) Load latency from distant memory event:0X00F2 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_RMEM_GRP15 : (Group 15 pm_dlatencies3) Data loaded from remote memory event:0X00F3 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_RMEM_CYC_GRP15 : (Group 15 pm_dlatencies3) Load latency from remote memory #Group 16 pm_dlatencies4, Data latencies event:0X0100 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L35_MOD_GRP16 : (Group 16 pm_dlatencies4) Data loaded from L3.5 modified event:0X0101 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_DL2L3_SHR_CYC_GRP16 : (Group 16 pm_dlatencies4) Load latency from distant L2 or L3 shared event:0X0102 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_DL2L3_SHR_GRP16 : (Group 16 pm_dlatencies4) Data loaded from distant L2 or L3 shared event:0X0103 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_L35_MOD_CYC_GRP16 : (Group 16 pm_dlatencies4) Load latency from L3.5 modified #Group 17 pm_dlatencies5, Data latencies event:0X0110 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_RL2L3_MOD_GRP17 : (Group 17 pm_dlatencies5) Data loaded from remote L2 or L3 modified event:0X0111 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_L3_CYC_GRP17 : (Group 17 pm_dlatencies5) Load latency from L3 event:0X0112 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_L3_GRP17 : (Group 17 pm_dlatencies5) Data loaded from L3 event:0X0113 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_RL2L3_MOD_CYC_GRP17 : (Group 17 pm_dlatencies5) Load latency from remote L2 or L3 modified #Group 18 pm_dlatencies6, Data latencies event:0X0120 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_MEM_DP_GRP18 : (Group 18 pm_dlatencies6) Data loaded from double pump memory event:0X0121 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_L25_SHR_CYC_GRP18 : (Group 18 pm_dlatencies6) Load latency from L2.5 shared event:0X0122 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_L25_MOD_GRP18 : (Group 18 pm_dlatencies6) Data loaded from L2.5 modified event:0X0123 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_MEM_DP_CYC_GRP18 : (Group 18 pm_dlatencies6) Load latency from double pump memory #Group 19 pm_dlatencies7, Data latencies event:0X0130 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L2_GRP19 : (Group 19 pm_dlatencies7) Data loaded from L2 event:0X0131 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_L2_CYC_GRP19 : (Group 19 pm_dlatencies7) Load latency from L2 event:0X0132 counters:2 um:zero minimum:1000 name:PM_INST_DISP_GRP19 : (Group 19 pm_dlatencies7) Instructions dispatched event:0X0133 counters:3 um:zero minimum:1000 name:PM_L1_DCACHE_RELOAD_VALID_GRP19 : (Group 19 pm_dlatencies7) L1 reload data source valid #Group 20 pm_dlatencies8, Data latencies event:0X0140 counters:0 um:zero minimum:1000 name:PM_FLUSH_GRP20 : (Group 20 pm_dlatencies8) Flushes event:0X0141 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_L21_GRP20 : (Group 20 pm_dlatencies8) Data loaded from private L2 other core event:0X0142 counters:2 um:zero minimum:10000 name:PM_CYC_GRP20 : (Group 20 pm_dlatencies8) Processor cycles event:0X0143 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_L21_CYC_GRP20 : (Group 20 pm_dlatencies8) Load latency from private L2 other core #Group 21 pm_dlatencies9, Data latencies event:0X0150 counters:0 um:zero minimum:1000 name:PM_1PLUS_PPC_DISP_GRP21 : (Group 21 pm_dlatencies9) Cycles at least one instruction dispatched event:0X0151 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_LMEM_CYC_GRP21 : (Group 21 pm_dlatencies9) Load latency from local memory event:0X0152 counters:2 um:zero minimum:1000 name:PM_INST_DISP_GRP21 : (Group 21 pm_dlatencies9) Instructions dispatched event:0X0153 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_LMEM_GRP21 : (Group 21 pm_dlatencies9) Data loaded from local memory #Group 22 pm_dlatencies10, Data latencies event:0X0160 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L35_MOD_GRP22 : (Group 22 pm_dlatencies10) Data loaded from L3.5 modified event:0X0161 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_L35_SHR_CYC_GRP22 : (Group 22 pm_dlatencies10) Load latency from L3.5 shared event:0X0162 counters:2 um:zero minimum:10000 name:PM_CYC_GRP22 : (Group 22 pm_dlatencies10) Processor cycles event:0X0163 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_L35_MOD_CYC_GRP22 : (Group 22 pm_dlatencies10) Load latency from L3.5 modified #Group 23 pm_isource, Instruction sources event:0X0170 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L2_GRP23 : (Group 23 pm_isource) Instructions fetched from L2 event:0X0171 counters:1 um:zero minimum:1000 name:PM_INST_FROM_L21_GRP23 : (Group 23 pm_isource) Instruction fetched from private L2 other core event:0X0172 counters:2 um:zero minimum:1000 name:PM_INST_FROM_L25_MOD_GRP23 : (Group 23 pm_isource) Instruction fetched from L2.5 modified event:0X0173 counters:3 um:zero minimum:1000 name:PM_INST_FROM_L2MISS_GRP23 : (Group 23 pm_isource) Instructions fetched missed L2 #Group 24 pm_isource2, Instruction sources event:0X0180 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L35_MOD_GRP24 : (Group 24 pm_isource2) Instruction fetched from L3.5 modified event:0X0181 counters:1 um:zero minimum:1000 name:PM_INST_FROM_L35_SHR_GRP24 : (Group 24 pm_isource2) Instruction fetched from L3.5 shared event:0X0182 counters:2 um:zero minimum:1000 name:PM_INST_FROM_L3_GRP24 : (Group 24 pm_isource2) Instruction fetched from L3 event:0X0183 counters:3 um:zero minimum:1000 name:PM_INST_FROM_L25_SHR_GRP24 : (Group 24 pm_isource2) Instruction fetched from L2.5 shared #Group 25 pm_isource3, Instruction sources event:0X0190 counters:0 um:zero minimum:1000 name:PM_INST_FROM_RL2L3_MOD_GRP25 : (Group 25 pm_isource3) Instruction fetched from remote L2 or L3 modified event:0X0191 counters:1 um:zero minimum:1000 name:PM_INST_FROM_RL2L3_SHR_GRP25 : (Group 25 pm_isource3) Instruction fetched from remote L2 or L3 shared event:0X0192 counters:2 um:zero minimum:1000 name:PM_INST_FROM_DL2L3_SHR_GRP25 : (Group 25 pm_isource3) Instruction fetched from distant L2 or L3 shared event:0X0193 counters:3 um:zero minimum:1000 name:PM_INST_FROM_DL2L3_MOD_GRP25 : (Group 25 pm_isource3) Instruction fetched from distant L2 or L3 modified #Group 26 pm_isource4, Instruction sources event:0X01A0 counters:0 um:zero minimum:1000 name:PM_INST_FROM_MEM_DP_GRP26 : (Group 26 pm_isource4) Instruction fetched from double pump memory event:0X01A1 counters:1 um:zero minimum:1000 name:PM_INST_FROM_DMEM_GRP26 : (Group 26 pm_isource4) Instruction fetched from distant memory event:0X01A2 counters:2 um:zero minimum:1000 name:PM_INST_FROM_RMEM_GRP26 : (Group 26 pm_isource4) Instruction fetched from remote memory event:0X01A3 counters:3 um:zero minimum:1000 name:PM_INST_FROM_LMEM_GRP26 : (Group 26 pm_isource4) Instruction fetched from local memory #Group 27 pm_isource5, Instruction sources event:0X01B0 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L2_GRP27 : (Group 27 pm_isource5) Instructions fetched from L2 event:0X01B1 counters:1 um:zero minimum:1000 name:PM_INST_FROM_L21_GRP27 : (Group 27 pm_isource5) Instruction fetched from private L2 other core event:0X01B2 counters:2 um:zero minimum:1000 name:PM_INST_FROM_L3MISS_GRP27 : (Group 27 pm_isource5) Instruction fetched missed L3 event:0X01B3 counters:3 um:zero minimum:1000 name:PM_INST_FROM_L2MISS_GRP27 : (Group 27 pm_isource5) Instructions fetched missed L2 #Group 28 pm_pteg, PTEG sources event:0X01C0 counters:0 um:zero minimum:1000 name:PM_PTEG_FROM_L2_GRP28 : (Group 28 pm_pteg) PTEG loaded from L2 event:0X01C1 counters:1 um:zero minimum:1000 name:PM_PTEG_FROM_L21_GRP28 : (Group 28 pm_pteg) PTEG loaded from private L2 other core event:0X01C2 counters:2 um:zero minimum:1000 name:PM_PTEG_FROM_L25_MOD_GRP28 : (Group 28 pm_pteg) PTEG loaded from L2.5 modified event:0X01C3 counters:3 um:zero minimum:1000 name:PM_PTEG_FROM_L25_SHR_GRP28 : (Group 28 pm_pteg) PTEG loaded from L2.5 shared #Group 29 pm_pteg2, PTEG sources event:0X01D0 counters:0 um:zero minimum:1000 name:PM_PTEG_FROM_L2MISS_GRP29 : (Group 29 pm_pteg2) PTEG loaded from L2 miss event:0X01D1 counters:1 um:zero minimum:1000 name:PM_PTEG_FROM_L21_GRP29 : (Group 29 pm_pteg2) PTEG loaded from private L2 other core event:0X01D2 counters:2 um:zero minimum:1000 name:PM_PTEG_FROM_L3_GRP29 : (Group 29 pm_pteg2) PTEG loaded from L3 event:0X01D3 counters:3 um:zero minimum:1000 name:PM_PTEG_FROM_DL2L3_MOD_GRP29 : (Group 29 pm_pteg2) PTEG loaded from distant L2 or L3 modified #Group 30 pm_pteg3, PTEG sources event:0X01E0 counters:0 um:zero minimum:1000 name:PM_PTEG_FROM_L35_MOD_GRP30 : (Group 30 pm_pteg3) PTEG loaded from L3.5 modified event:0X01E1 counters:1 um:zero minimum:1000 name:PM_PTEG_FROM_L35_SHR_GRP30 : (Group 30 pm_pteg3) PTEG loaded from L3.5 shared event:0X01E2 counters:2 um:zero minimum:1000 name:PM_PTEG_FROM_L3MISS_GRP30 : (Group 30 pm_pteg3) PTEG loaded from L3 miss event:0X01E3 counters:3 um:zero minimum:1000 name:PM_PTEG_FROM_LMEM_GRP30 : (Group 30 pm_pteg3) PTEG loaded from local memory #Group 31 pm_pteg4, PTEG sources event:0X01F0 counters:0 um:zero minimum:1000 name:PM_PTEG_FROM_MEM_DP_GRP31 : (Group 31 pm_pteg4) PTEG loaded from double pump memory event:0X01F1 counters:1 um:zero minimum:1000 name:PM_PTEG_FROM_DMEM_GRP31 : (Group 31 pm_pteg4) PTEG loaded from distant memory event:0X01F2 counters:2 um:zero minimum:1000 name:PM_PTEG_FROM_RMEM_GRP31 : (Group 31 pm_pteg4) PTEG loaded from remote memory event:0X01F3 counters:3 um:zero minimum:1000 name:PM_PTEG_FROM_LMEM_GRP31 : (Group 31 pm_pteg4) PTEG loaded from local memory #Group 32 pm_pteg5, PTEG sources event:0X0200 counters:0 um:zero minimum:1000 name:PM_PTEG_FROM_RL2L3_MOD_GRP32 : (Group 32 pm_pteg5) PTEG loaded from remote L2 or L3 modified event:0X0201 counters:1 um:zero minimum:1000 name:PM_PTEG_FROM_RL2L3_SHR_GRP32 : (Group 32 pm_pteg5) PTEG loaded from remote L2 or L3 shared event:0X0202 counters:2 um:zero minimum:1000 name:PM_PTEG_FROM_DL2L3_SHR_GRP32 : (Group 32 pm_pteg5) PTEG loaded from distant L2 or L3 shared event:0X0203 counters:3 um:zero minimum:1000 name:PM_PTEG_RELOAD_VALID_GRP32 : (Group 32 pm_pteg5) TLB reload valid #Group 33 pm_data_tablewalk, Data tablewalks event:0X0210 counters:0 um:zero minimum:1000 name:PM_DATA_PTEG_1ST_HALF_GRP33 : (Group 33 pm_data_tablewalk) Data table walk matched in first half primary PTEG event:0X0211 counters:1 um:zero minimum:1000 name:PM_DATA_PTEG_2ND_HALF_GRP33 : (Group 33 pm_data_tablewalk) Data table walk matched in second half primary PTEG event:0X0212 counters:2 um:zero minimum:1000 name:PM_DATA_PTEG_SECONDARY_GRP33 : (Group 33 pm_data_tablewalk) Data table walk matched in secondary PTEG event:0X0213 counters:3 um:zero minimum:1000 name:PM_TLB_REF_GRP33 : (Group 33 pm_data_tablewalk) TLB reference #Group 34 pm_inst_tablewalk, Instruction tablewalks event:0X0220 counters:0 um:zero minimum:1000 name:PM_INST_PTEG_1ST_HALF_GRP34 : (Group 34 pm_inst_tablewalk) Instruction table walk matched in first half primary PTEG event:0X0221 counters:1 um:zero minimum:1000 name:PM_INST_PTEG_2ND_HALF_GRP34 : (Group 34 pm_inst_tablewalk) Instruction table walk matched in second half primary PTEG event:0X0222 counters:2 um:zero minimum:1000 name:PM_INST_PTEG_SECONDARY_GRP34 : (Group 34 pm_inst_tablewalk) Instruction table walk matched in secondary PTEG event:0X0223 counters:3 um:zero minimum:1000 name:PM_INST_TABLEWALK_CYC_GRP34 : (Group 34 pm_inst_tablewalk) Cycles doing instruction tablewalks #Group 35 pm_freq, Frequency events event:0X0230 counters:0 um:zero minimum:1000 name:PM_DPU_HELD_THERMAL_GRP35 : (Group 35 pm_freq) DISP unit held due to thermal condition event:0X0231 counters:1 um:zero minimum:1000 name:PM_DPU_HELD_POWER_GRP35 : (Group 35 pm_freq) DISP unit held due to Power Management event:0X0232 counters:2 um:zero minimum:1000 name:PM_FREQ_DOWN_GRP35 : (Group 35 pm_freq) Frequency is being slewed down due to Power Management event:0X0233 counters:3 um:zero minimum:1000 name:PM_FREQ_UP_GRP35 : (Group 35 pm_freq) Frequency is being slewed up due to Power Management #Group 36 pm_disp_wait, Dispatch stalls event:0X0240 counters:0 um:zero minimum:1000 name:PM_L1_ICACHE_MISS_GRP36 : (Group 36 pm_disp_wait) L1 I cache miss count event:0X0241 counters:1 um:zero minimum:1000 name:PM_DPU_WT_IC_MISS_GRP36 : (Group 36 pm_disp_wait) Cycles DISP unit is stalled due to I cache miss event:0X0242 counters:2 um:zero minimum:1000 name:PM_DPU_WT_GRP36 : (Group 36 pm_disp_wait) Cycles DISP unit is stalled waiting for instructions event:0X0243 counters:3 um:zero minimum:1000 name:PM_DPU_WT_BR_MPRED_GRP36 : (Group 36 pm_disp_wait) Cycles DISP unit is stalled due to branch misprediction #Group 37 pm_disp_held, Dispatch held conditions event:0X0250 counters:0 um:zero minimum:1000 name:PM_DPU_HELD_THERMAL_GRP37 : (Group 37 pm_disp_held) DISP unit held due to thermal condition event:0X0251 counters:1 um:zero minimum:1000 name:PM_DPU_HELD_POWER_GRP37 : (Group 37 pm_disp_held) DISP unit held due to Power Management event:0X0252 counters:2 um:zero minimum:1000 name:PM_THERMAL_MAX_GRP37 : (Group 37 pm_disp_held) Processor in thermal MAX event:0X0253 counters:3 um:zero minimum:1000 name:PM_DPU_HELD_SMT_GRP37 : (Group 37 pm_disp_held) DISP unit held due to SMT conflicts #Group 38 pm_disp_held2, Dispatch held conditions event:0X0260 counters:0 um:zero minimum:1000 name:PM_DPU_HELD_GPR_GRP38 : (Group 38 pm_disp_held2) DISP unit held due to GPR dependencies event:0X0261 counters:1 um:zero minimum:1000 name:PM_DPU_HELD_GRP38 : (Group 38 pm_disp_held2) DISP unit held event:0X0262 counters:2 um:zero minimum:1000 name:PM_DPU_HELD_CW_GRP38 : (Group 38 pm_disp_held2) DISP unit held due to cache writes event:0X0263 counters:3 um:zero minimum:1000 name:PM_DPU_HELD_FPQ_GRP38 : (Group 38 pm_disp_held2) DISP unit held due to FPU issue queue full #Group 39 pm_disp_held3, Dispatch held conditions event:0X0270 counters:0 um:zero minimum:1000 name:PM_DPU_HELD_XER_GRP39 : (Group 39 pm_disp_held3) DISP unit held due to XER dependency event:0X0271 counters:1 um:zero minimum:1000 name:PM_DPU_HELD_ISYNC_GRP39 : (Group 39 pm_disp_held3) DISP unit held due to ISYNC event:0X0272 counters:2 um:zero minimum:1000 name:PM_DPU_HELD_STCX_CR_GRP39 : (Group 39 pm_disp_held3) DISP unit held due to STCX updating CR event:0X0273 counters:3 um:zero minimum:1000 name:PM_DPU_HELD_RU_WQ_GRP39 : (Group 39 pm_disp_held3) DISP unit held due to RU FXU write queue full #Group 40 pm_disp_held4, Dispatch held conditions event:0X0280 counters:0 um:zero minimum:1000 name:PM_DPU_HELD_FPU_CR_GRP40 : (Group 40 pm_disp_held4) DISP unit held due to FPU updating CR event:0X0281 counters:1 um:zero minimum:1000 name:PM_DPU_HELD_LSU_GRP40 : (Group 40 pm_disp_held4) DISP unit held due to LSU move or invalidate SLB and SR event:0X0282 counters:2 um:zero minimum:1000 name:PM_DPU_HELD_ITLB_ISLB_GRP40 : (Group 40 pm_disp_held4) DISP unit held due to SLB or TLB invalidates event:0X0283 counters:3 um:zero minimum:1000 name:PM_DPU_HELD_FXU_MULTI_GRP40 : (Group 40 pm_disp_held4) DISP unit held due to FXU multicycle #Group 41 pm_disp_held5, Dispatch held conditions event:0X0290 counters:0 um:zero minimum:1000 name:PM_DPU_HELD_FP_FX_MULT_GRP41 : (Group 41 pm_disp_held5) DISP unit held due to non fixed multiple/divide after fixed multiply/divide event:0X0291 counters:1 um:zero minimum:1000 name:PM_DPU_HELD_MULT_GPR_GRP41 : (Group 41 pm_disp_held5) DISP unit held due to multiple/divide multiply/divide GPR dependencies event:0X0292 counters:2 um:zero minimum:1000 name:PM_DPU_HELD_COMPLETION_GRP41 : (Group 41 pm_disp_held5) DISP unit held due to completion holding dispatch event:0X0293 counters:3 um:zero minimum:1000 name:PM_DPU_HELD_GPR_GRP41 : (Group 41 pm_disp_held5) DISP unit held due to GPR dependencies #Group 42 pm_disp_held6, Dispatch held conditions event:0X02A0 counters:0 um:zero minimum:1000 name:PM_DPU_HELD_INT_GRP42 : (Group 42 pm_disp_held6) DISP unit held due to exception event:0X02A1 counters:1 um:zero minimum:1000 name:PM_DPU_HELD_XTHRD_GRP42 : (Group 42 pm_disp_held6) DISP unit held due to cross thread resource conflicts event:0X02A2 counters:2 um:zero minimum:1000 name:PM_DPU_HELD_LLA_END_GRP42 : (Group 42 pm_disp_held6) DISP unit held due to load look ahead ended event:0X02A3 counters:3 um:zero minimum:1000 name:PM_DPU_HELD_RESTART_GRP42 : (Group 42 pm_disp_held6) DISP unit held after restart coming #Group 43 pm_disp_held7, Dispatch held conditions event:0X02B0 counters:0 um:zero minimum:1000 name:PM_DPU_HELD_FXU_SOPS_GRP43 : (Group 43 pm_disp_held7) DISP unit held due to FXU slow ops (mtmsr, scv, rfscv) event:0X02B1 counters:1 um:zero minimum:1000 name:PM_DPU_HELD_THRD_PRIO_GRP43 : (Group 43 pm_disp_held7) DISP unit held due to lower priority thread event:0X02B2 counters:2 um:zero minimum:1000 name:PM_DPU_HELD_SPR_GRP43 : (Group 43 pm_disp_held7) DISP unit held due to MTSPR/MFSPR event:0X02B3 counters:3 um:zero minimum:1000 name:PM_DPU_HELD_CR_LOGICAL_GRP43 : (Group 43 pm_disp_held7) DISP unit held due to CR, LR or CTR updated by CR logical, MTCRF, MTLR or MTCTR #Group 44 pm_disp_held8, Dispatch held conditions event:0X02C0 counters:0 um:zero minimum:1000 name:PM_DPU_HELD_ISYNC_GRP44 : (Group 44 pm_disp_held8) DISP unit held due to ISYNC event:0X02C1 counters:1 um:zero minimum:1000 name:PM_DPU_HELD_STCX_CR_GRP44 : (Group 44 pm_disp_held8) DISP unit held due to STCX updating CR event:0X02C2 counters:2 um:zero minimum:1000 name:PM_DPU_HELD_RU_WQ_GRP44 : (Group 44 pm_disp_held8) DISP unit held due to RU FXU write queue full event:0X02C3 counters:3 um:zero minimum:1000 name:PM_DPU_HELD_FPU_CR_GRP44 : (Group 44 pm_disp_held8) DISP unit held due to FPU updating CR #Group 45 pm_disp_held9, Dispatch held conditions event:0X02D0 counters:0 um:zero minimum:1000 name:PM_DPU_HELD_ISYNC_GRP45 : (Group 45 pm_disp_held9) DISP unit held due to ISYNC event:0X02D1 counters:1 um:zero minimum:1000 name:PM_DPU_HELD_FPU_CR_GRP45 : (Group 45 pm_disp_held9) DISP unit held due to FPU updating CR event:0X02D2 counters:2 um:zero minimum:1000 name:PM_DPU_HELD_MULT_GPR_GRP45 : (Group 45 pm_disp_held9) DISP unit held due to multiple/divide multiply/divide GPR dependencies event:0X02D3 counters:3 um:zero minimum:1000 name:PM_DPU_HELD_COMPLETION_GRP45 : (Group 45 pm_disp_held9) DISP unit held due to completion holding dispatch #Group 46 pm_sync, Sync events event:0X02E0 counters:0 um:zero minimum:1000 name:PM_LWSYNC_GRP46 : (Group 46 pm_sync) Isync instruction completed event:0X02E1 counters:1 um:zero minimum:10000 name:PM_CYC_GRP46 : (Group 46 pm_sync) Processor cycles event:0X02E2 counters:2 um:zero minimum:1000 name:PM_SYNC_CYC_GRP46 : (Group 46 pm_sync) Sync duration event:0X02E3 counters:3 um:zero minimum:1000 name:PM_DPU_HELD_LSU_SOPS_GRP46 : (Group 46 pm_sync) DISP unit held due to LSU slow ops (sync, tlbie, stcx) #Group 47 pm_L1_ref, L1 references event:0X02F0 counters:0 um:zero minimum:1000 name:PM_LD_REF_L1_BOTH_GRP47 : (Group 47 pm_L1_ref) Both units L1 D cache load reference event:0X02F1 counters:1 um:zero minimum:1000 name:PM_LD_REF_L1_GRP47 : (Group 47 pm_L1_ref) L1 D cache load references event:0X02F2 counters:2 um:zero minimum:1000 name:PM_ST_REF_L1_GRP47 : (Group 47 pm_L1_ref) L1 D cache store references event:0X02F3 counters:3 um:zero minimum:1000 name:PM_ST_REF_L1_BOTH_GRP47 : (Group 47 pm_L1_ref) Both units L1 D cache store reference #Group 48 pm_L1_ldst, L1 load/store ref/miss event:0X0300 counters:0 um:zero minimum:1000 name:PM_ST_REF_L1_GRP48 : (Group 48 pm_L1_ldst) L1 D cache store references event:0X0301 counters:1 um:zero minimum:1000 name:PM_LD_REF_L1_GRP48 : (Group 48 pm_L1_ldst) L1 D cache load references event:0X0302 counters:2 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP48 : (Group 48 pm_L1_ldst) L1 D cache store misses event:0X0303 counters:3 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP48 : (Group 48 pm_L1_ldst) L1 D cache load misses #Group 49 pm_streams, Streams event:0X0310 counters:0 um:zero minimum:1000 name:PM_DC_PREF_OUT_OF_STREAMS_GRP49 : (Group 49 pm_streams) D cache out of streams event:0X0311 counters:1 um:zero minimum:1000 name:PM_DC_PREF_STREAM_ALLOC_GRP49 : (Group 49 pm_streams) D cache new prefetch stream allocated event:0X0312 counters:2 um:zero minimum:1000 name:PM_L1_PREF_GRP49 : (Group 49 pm_streams) L1 cache data prefetches event:0X0313 counters:3 um:zero minimum:1000 name:PM_IBUF_FULL_CYC_GRP49 : (Group 49 pm_streams) Cycles instruction buffer full #Group 50 pm_flush, Flushes event:0X0320 counters:0 um:zero minimum:1000 name:PM_FLUSH_GRP50 : (Group 50 pm_flush) Flushes event:0X0321 counters:1 um:zero minimum:1000 name:PM_FLUSH_ASYNC_GRP50 : (Group 50 pm_flush) Flush caused by asynchronous exception event:0X0322 counters:2 um:zero minimum:1000 name:PM_FLUSH_FPU_GRP50 : (Group 50 pm_flush) Flush caused by FPU exception event:0X0323 counters:3 um:zero minimum:1000 name:PM_FLUSH_FXU_GRP50 : (Group 50 pm_flush) Flush caused by FXU exception #Group 51 pm_prefetch, I cache Prefetches event:0X0330 counters:0 um:zero minimum:1000 name:PM_IC_REQ_GRP51 : (Group 51 pm_prefetch) I cache demand of prefetch request event:0X0331 counters:1 um:zero minimum:1000 name:PM_IC_PREF_REQ_GRP51 : (Group 51 pm_prefetch) Instruction prefetch requests event:0X0332 counters:2 um:zero minimum:1000 name:PM_IC_RELOAD_SHR_GRP51 : (Group 51 pm_prefetch) I cache line reloading to be shared by threads event:0X0333 counters:3 um:zero minimum:1000 name:PM_IC_PREF_WRITE_GRP51 : (Group 51 pm_prefetch) Instruction prefetch written into I cache #Group 52 pm_stcx, STCX event:0X0340 counters:0 um:zero minimum:1000 name:PM_STCX_GRP52 : (Group 52 pm_stcx) STCX executed event:0X0341 counters:1 um:zero minimum:1000 name:PM_STCX_CANCEL_GRP52 : (Group 52 pm_stcx) stcx cancel by core event:0X0342 counters:2 um:zero minimum:1000 name:PM_STCX_FAIL_GRP52 : (Group 52 pm_stcx) STCX failed event:0X0343 counters:3 um:zero minimum:1000 name:PM_LARX_GRP52 : (Group 52 pm_stcx) Larx executed #Group 53 pm_larx, LARX event:0X0350 counters:0 um:zero minimum:1000 name:PM_LARX_GRP53 : (Group 53 pm_larx) Larx executed event:0X0351 counters:1 um:zero minimum:1000 name:PM_LARX_L1HIT_GRP53 : (Group 53 pm_larx) larx hits in L1 event:0X0352 counters:2 um:zero minimum:1000 name:PM_STCX_GRP53 : (Group 53 pm_larx) STCX executed event:0X0353 counters:3 um:zero minimum:1000 name:PM_STCX_FAIL_GRP53 : (Group 53 pm_larx) STCX failed #Group 54 pm_thread_cyc, Thread cycles event:0X0360 counters:0 um:zero minimum:1000 name:PM_THRD_ONE_RUN_CYC_GRP54 : (Group 54 pm_thread_cyc) One of the threads in run cycles event:0X0361 counters:1 um:zero minimum:1000 name:PM_THRD_GRP_CMPL_BOTH_CYC_GRP54 : (Group 54 pm_thread_cyc) Cycles group completed by both threads event:0X0362 counters:2 um:zero minimum:1000 name:PM_THRD_CONC_RUN_INST_GRP54 : (Group 54 pm_thread_cyc) Concurrent run instructions event:0X0363 counters:3 um:zero minimum:1000 name:PM_THRD_BOTH_RUN_CYC_GRP54 : (Group 54 pm_thread_cyc) Both threads in run cycles #Group 55 pm_misc, Misc event:0X0370 counters:0 um:zero minimum:1000 name:PM_1PLUS_PPC_CMPL_GRP55 : (Group 55 pm_misc) One or more PPC instruction completed event:0X0371 counters:1 um:zero minimum:1000 name:PM_HV_CYC_GRP55 : (Group 55 pm_misc) Hypervisor Cycles event:0X0372 counters:2 um:zero minimum:1000 name:PM_THRESH_TIMEO_GRP55 : (Group 55 pm_misc) Threshold timeout event:0X0373 counters:3 um:zero minimum:1000 name:PM_THRD_LLA_BOTH_CYC_GRP55 : (Group 55 pm_misc) Both threads in Load Look Ahead #Group 56 pm_misc2, Misc event:0X0380 counters:0 um:zero minimum:1000 name:PM_EE_OFF_EXT_INT_GRP56 : (Group 56 pm_misc2) Cycles MSR(EE) bit off and external interrupt pending event:0X0381 counters:1 um:zero minimum:1000 name:PM_EXT_INT_GRP56 : (Group 56 pm_misc2) External interrupts event:0X0382 counters:2 um:zero minimum:1000 name:PM_TB_BIT_TRANS_GRP56 : (Group 56 pm_misc2) Time Base bit transition event:0X0383 counters:3 um:zero minimum:1000 name:PM_0INST_FETCH_GRP56 : (Group 56 pm_misc2) No instructions fetched #Group 57 pm_misc3, Misc event:0X0390 counters:0 um:zero minimum:1000 name:PM_ST_FIN_GRP57 : (Group 57 pm_misc3) Store instructions finished event:0X0391 counters:1 um:zero minimum:1000 name:PM_THRD_L2MISS_GRP57 : (Group 57 pm_misc3) Thread in L2 miss event:0X0392 counters:2 um:zero minimum:10000 name:PM_CYC_GRP57 : (Group 57 pm_misc3) Processor cycles event:0X0393 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP57 : (Group 57 pm_misc3) Instructions completed #Group 58 pm_tlb_slb, TLB and SLB events event:0X03A0 counters:0 um:zero minimum:1000 name:PM_ISLB_MISS_GRP58 : (Group 58 pm_tlb_slb) Instruction SLB misses event:0X03A1 counters:1 um:zero minimum:1000 name:PM_DSLB_MISS_GRP58 : (Group 58 pm_tlb_slb) Data SLB misses event:0X03A2 counters:2 um:zero minimum:1000 name:PM_TLB_REF_GRP58 : (Group 58 pm_tlb_slb) TLB reference event:0X03A3 counters:3 um:zero minimum:1000 name:PM_ITLB_REF_GRP58 : (Group 58 pm_tlb_slb) Instruction TLB reference #Group 59 pm_slb_miss, SLB Misses event:0X03B0 counters:0 um:zero minimum:1000 name:PM_ISLB_MISS_GRP59 : (Group 59 pm_slb_miss) Instruction SLB misses event:0X03B1 counters:1 um:zero minimum:1000 name:PM_DSLB_MISS_GRP59 : (Group 59 pm_slb_miss) Data SLB misses event:0X03B2 counters:2 um:zero minimum:1000 name:PM_IERAT_MISS_GRP59 : (Group 59 pm_slb_miss) IERAT miss count event:0X03B3 counters:3 um:zero minimum:1000 name:PM_SLB_MISS_GRP59 : (Group 59 pm_slb_miss) SLB misses #Group 60 pm_rejects, Reject events event:0X03C0 counters:0 um:zero minimum:1000 name:PM_LSU_REJECT_L2_CORR_GRP60 : (Group 60 pm_rejects) LSU reject due to L2 correctable error event:0X03C1 counters:1 um:zero minimum:1000 name:PM_LSU_REJECT_DERAT_MPRED_GRP60 : (Group 60 pm_rejects) LSU reject due to mispredicted DERAT event:0X03C2 counters:2 um:zero minimum:1000 name:PM_LSU_REJECT_FAST_GRP60 : (Group 60 pm_rejects) LSU fast reject event:0X03C3 counters:3 um:zero minimum:1000 name:PM_LSU_REJECT_GRP60 : (Group 60 pm_rejects) LSU reject #Group 61 pm_rejects2, Reject events event:0X03D0 counters:0 um:zero minimum:1000 name:PM_LSU_REJECT_LHS_GRP61 : (Group 61 pm_rejects2) Load hit store reject event:0X03D1 counters:1 um:zero minimum:1000 name:PM_LSU_REJECT_LHS_BOTH_GRP61 : (Group 61 pm_rejects2) Load hit store reject both units event:0X03D2 counters:2 um:zero minimum:1000 name:PM_LSU_REJECT_EXTERN_GRP61 : (Group 61 pm_rejects2) LSU external reject request event:0X03D3 counters:3 um:zero minimum:1000 name:PM_LSU_REJECT_STEAL_GRP61 : (Group 61 pm_rejects2) LSU reject due to steal #Group 62 pm_rejects3, Reject events event:0X03E0 counters:0 um:zero minimum:1000 name:PM_LSU_REJECT_STQ_FULL_GRP62 : (Group 62 pm_rejects3) LSU reject due to store queue full event:0X03E1 counters:1 um:zero minimum:1000 name:PM_LSU_REJECT_SLOW_GRP62 : (Group 62 pm_rejects3) LSU slow reject event:0X03E2 counters:2 um:zero minimum:1000 name:PM_LSU_REJECT_NO_SCRATCH_GRP62 : (Group 62 pm_rejects3) LSU reject due to scratch register not available event:0X03E3 counters:3 um:zero minimum:1000 name:PM_LSU_REJECT_PARTIAL_SECTOR_GRP62 : (Group 62 pm_rejects3) LSU reject due to partial sector valid #Group 63 pm_rejects4, Unaligned store rejects event:0X03F0 counters:0 um:zero minimum:1000 name:PM_LSU_REJECT_UST_BOTH_GRP63 : (Group 63 pm_rejects4) Unaligned store reject both units event:0X03F1 counters:1 um:zero minimum:1000 name:PM_LSU_REJECT_UST_GRP63 : (Group 63 pm_rejects4) Unaligned store reject event:0X03F2 counters:2 um:zero minimum:1000 name:PM_LSU0_REJECT_UST_GRP63 : (Group 63 pm_rejects4) LSU0 unaligned store reject event:0X03F3 counters:3 um:zero minimum:1000 name:PM_LSU1_REJECT_UST_GRP63 : (Group 63 pm_rejects4) LSU1 unaligned store reject #Group 64 pm_rejects5, Unaligned load rejects event:0X0400 counters:0 um:zero minimum:1000 name:PM_LSU_REJECT_ULD_GRP64 : (Group 64 pm_rejects5) Unaligned load reject event:0X0401 counters:1 um:zero minimum:1000 name:PM_LSU_REJECT_ULD_BOTH_GRP64 : (Group 64 pm_rejects5) Unaligned load reject both units event:0X0402 counters:2 um:zero minimum:1000 name:PM_LSU0_REJECT_ULD_GRP64 : (Group 64 pm_rejects5) LSU0 unaligned load reject event:0X0403 counters:3 um:zero minimum:1000 name:PM_LSU1_REJECT_ULD_GRP64 : (Group 64 pm_rejects5) LSU1 unaligned load reject #Group 65 pm_rejects6, Set mispredictions rejects event:0X0410 counters:0 um:zero minimum:1000 name:PM_LSU0_REJECT_SET_MPRED_GRP65 : (Group 65 pm_rejects6) LSU0 reject due to mispredicted set event:0X0411 counters:1 um:zero minimum:1000 name:PM_LSU1_REJECT_SET_MPRED_GRP65 : (Group 65 pm_rejects6) LSU1 reject due to mispredicted set event:0X0412 counters:2 um:zero minimum:1000 name:PM_LSU_REJECT_SET_MPRED_GRP65 : (Group 65 pm_rejects6) LSU reject due to mispredicted set event:0X0413 counters:3 um:zero minimum:1000 name:PM_LSU_SRQ_EMPTY_CYC_GRP65 : (Group 65 pm_rejects6) Cycles SRQ empty #Group 66 pm_rejects_unit, Unaligned reject events by unit event:0X0420 counters:0 um:zero minimum:1000 name:PM_LSU0_REJECT_ULD_GRP66 : (Group 66 pm_rejects_unit) LSU0 unaligned load reject event:0X0421 counters:1 um:zero minimum:1000 name:PM_LSU1_REJECT_UST_GRP66 : (Group 66 pm_rejects_unit) LSU1 unaligned store reject event:0X0422 counters:2 um:zero minimum:1000 name:PM_LSU0_REJECT_UST_GRP66 : (Group 66 pm_rejects_unit) LSU0 unaligned store reject event:0X0423 counters:3 um:zero minimum:1000 name:PM_LSU1_REJECT_ULD_GRP66 : (Group 66 pm_rejects_unit) LSU1 unaligned load reject #Group 67 pm_rejects_unit2, Reject events by unit event:0X0430 counters:0 um:zero minimum:1000 name:PM_LSU0_REJECT_GRP67 : (Group 67 pm_rejects_unit2) LSU0 reject event:0X0431 counters:1 um:zero minimum:1000 name:PM_LSU0_REJECT_DERAT_MPRED_GRP67 : (Group 67 pm_rejects_unit2) LSU0 reject due to mispredicted DERAT event:0X0432 counters:2 um:zero minimum:1000 name:PM_LSU1_REJECT_GRP67 : (Group 67 pm_rejects_unit2) LSU1 reject event:0X0433 counters:3 um:zero minimum:1000 name:PM_LSU1_REJECT_NO_SCRATCH_GRP67 : (Group 67 pm_rejects_unit2) LSU1 reject due to scratch register not available #Group 68 pm_rejects_unit3, Reject events by unit event:0X0440 counters:0 um:zero minimum:1000 name:PM_LSU0_REJECT_EXTERN_GRP68 : (Group 68 pm_rejects_unit3) LSU0 external reject request event:0X0441 counters:1 um:zero minimum:1000 name:PM_LSU0_REJECT_L2_CORR_GRP68 : (Group 68 pm_rejects_unit3) LSU0 reject due to L2 correctable error event:0X0442 counters:2 um:zero minimum:1000 name:PM_LSU1_REJECT_EXTERN_GRP68 : (Group 68 pm_rejects_unit3) LSU1 external reject request event:0X0443 counters:3 um:zero minimum:1000 name:PM_LSU1_REJECT_L2_CORR_GRP68 : (Group 68 pm_rejects_unit3) LSU1 reject due to L2 correctable error #Group 69 pm_rejects_unit4, Reject events by unit event:0X0450 counters:0 um:zero minimum:1000 name:PM_LSU0_REJECT_NO_SCRATCH_GRP69 : (Group 69 pm_rejects_unit4) LSU0 reject due to scratch register not available event:0X0451 counters:1 um:zero minimum:1000 name:PM_LSU0_REJECT_PARTIAL_SECTOR_GRP69 : (Group 69 pm_rejects_unit4) LSU0 reject due to partial sector valid event:0X0452 counters:2 um:zero minimum:1000 name:PM_LSU1_REJECT_NO_SCRATCH_GRP69 : (Group 69 pm_rejects_unit4) LSU1 reject due to scratch register not available event:0X0453 counters:3 um:zero minimum:1000 name:PM_LSU1_REJECT_PARTIAL_SECTOR_GRP69 : (Group 69 pm_rejects_unit4) LSU1 reject due to partial sector valid #Group 70 pm_rejects_unit5, Reject events by unit event:0X0460 counters:0 um:zero minimum:1000 name:PM_LSU0_REJECT_LHS_GRP70 : (Group 70 pm_rejects_unit5) LSU0 load hit store reject event:0X0461 counters:1 um:zero minimum:1000 name:PM_LSU0_DERAT_MISS_GRP70 : (Group 70 pm_rejects_unit5) LSU0 DERAT misses event:0X0462 counters:2 um:zero minimum:1000 name:PM_LSU1_REJECT_LHS_GRP70 : (Group 70 pm_rejects_unit5) LSU1 load hit store reject event:0X0463 counters:3 um:zero minimum:1000 name:PM_LSU1_DERAT_MISS_GRP70 : (Group 70 pm_rejects_unit5) LSU1 DERAT misses #Group 71 pm_rejects_unit6, Reject events by unit event:0X0470 counters:0 um:zero minimum:1000 name:PM_LSU0_REJECT_STQ_FULL_GRP71 : (Group 71 pm_rejects_unit6) LSU0 reject due to store queue full event:0X0471 counters:1 um:zero minimum:1000 name:PM_LSU0_REJECT_GRP71 : (Group 71 pm_rejects_unit6) LSU0 reject event:0X0472 counters:2 um:zero minimum:1000 name:PM_LSU1_REJECT_STQ_FULL_GRP71 : (Group 71 pm_rejects_unit6) LSU1 reject due to store queue full event:0X0473 counters:3 um:zero minimum:1000 name:PM_LSU1_REJECT_GRP71 : (Group 71 pm_rejects_unit6) LSU1 reject #Group 72 pm_rejects_unit7, Reject events by unit event:0X0480 counters:0 um:zero minimum:1000 name:PM_LSU0_REJECT_DERAT_MPRED_GRP72 : (Group 72 pm_rejects_unit7) LSU0 reject due to mispredicted DERAT event:0X0481 counters:1 um:zero minimum:1000 name:PM_LSU0_DERAT_MISS_GRP72 : (Group 72 pm_rejects_unit7) LSU0 DERAT misses event:0X0482 counters:2 um:zero minimum:1000 name:PM_LSU1_REJECT_DERAT_MPRED_GRP72 : (Group 72 pm_rejects_unit7) LSU1 reject due to mispredicted DERAT event:0X0483 counters:3 um:zero minimum:1000 name:PM_LSU1_DERAT_MISS_GRP72 : (Group 72 pm_rejects_unit7) LSU1 DERAT misses #Group 73 pm_ldf, Floating Point loads event:0X0490 counters:0 um:zero minimum:1000 name:PM_LSU_LDF_BOTH_GRP73 : (Group 73 pm_ldf) Both LSU units executed Floating Point load instruction event:0X0491 counters:1 um:zero minimum:1000 name:PM_LSU_LDF_GRP73 : (Group 73 pm_ldf) LSU executed Floating Point load instruction event:0X0492 counters:2 um:zero minimum:1000 name:PM_LSU0_LDF_GRP73 : (Group 73 pm_ldf) LSU0 executed Floating Point load instruction event:0X0493 counters:3 um:zero minimum:1000 name:PM_LSU1_LDF_GRP73 : (Group 73 pm_ldf) LSU1 executed Floating Point load instruction #Group 74 pm_lsu_misc, LSU events event:0X04A0 counters:0 um:zero minimum:1000 name:PM_LSU0_NCLD_GRP74 : (Group 74 pm_lsu_misc) LSU0 non-cacheable loads event:0X04A1 counters:1 um:zero minimum:1000 name:PM_LSU0_NCST_GRP74 : (Group 74 pm_lsu_misc) LSU0 non-cachable stores event:0X04A2 counters:2 um:zero minimum:1000 name:PM_LSU_ST_CHAINED_GRP74 : (Group 74 pm_lsu_misc) number of chained stores event:0X04A3 counters:3 um:zero minimum:1000 name:PM_LSU_BOTH_BUS_GRP74 : (Group 74 pm_lsu_misc) Both data return buses busy simultaneously #Group 75 pm_lsu_lmq, LSU LMQ events event:0X04B0 counters:0 um:zero minimum:1000 name:PM_LSU_LMQ_FULL_CYC_GRP75 : (Group 75 pm_lsu_lmq) Cycles LMQ full event:0X04B1 counters:1 um:zero minimum:1000 name:PM_LSU_LMQ_SRQ_EMPTY_CYC_GRP75 : (Group 75 pm_lsu_lmq) Cycles LMQ and SRQ empty event:0X04B2 counters:2 um:zero minimum:1000 name:PM_LSU_LMQ_SRQ_EMPTY_BOTH_CYC_GRP75 : (Group 75 pm_lsu_lmq) Cycles both threads LMQ and SRQ empty event:0X04B3 counters:3 um:zero minimum:1000 name:PM_LSU0_REJECT_L2MISS_GRP75 : (Group 75 pm_lsu_lmq) LSU0 L2 miss reject #Group 76 pm_lsu_flush_derat_miss, LSU flush and DERAT misses event:0X04C0 counters:0 um:zero minimum:1000 name:PM_LSU_DERAT_MISS_CYC_GRP76 : (Group 76 pm_lsu_flush_derat_miss) DERAT miss latency event:0X04C1 counters:1 um:zero minimum:1000 name:PM_LSU_DERAT_MISS_GRP76 : (Group 76 pm_lsu_flush_derat_miss) DERAT misses event:0X04C2 counters:2 um:zero minimum:1000 name:PM_LSU_FLUSH_ALIGN_GRP76 : (Group 76 pm_lsu_flush_derat_miss) Flush caused by alignement exception event:0X04C3 counters:3 um:zero minimum:1000 name:PM_LSU_FLUSH_DSI_GRP76 : (Group 76 pm_lsu_flush_derat_miss) Flush caused by DSI #Group 77 pm_lla, Look Load Ahead events event:0X04D0 counters:0 um:zero minimum:1000 name:PM_INST_DISP_LLA_GRP77 : (Group 77 pm_lla) Instruction dispatched under load look ahead event:0X04D1 counters:1 um:zero minimum:1000 name:PM_DPU_HELD_LLA_END_GRP77 : (Group 77 pm_lla) DISP unit held due to load look ahead ended event:0X04D2 counters:2 um:zero minimum:1000 name:PM_INST_DISP_GRP77 : (Group 77 pm_lla) Instructions dispatched event:0X04D3 counters:3 um:zero minimum:1000 name:PM_THRD_LLA_BOTH_CYC_GRP77 : (Group 77 pm_lla) Both threads in Load Look Ahead #Group 78 pm_gct, GCT events event:0X04E0 counters:0 um:zero minimum:1000 name:PM_GCT_NOSLOT_CYC_GRP78 : (Group 78 pm_gct) Cycles no GCT slot allocated event:0X04E1 counters:1 um:zero minimum:1000 name:PM_GCT_EMPTY_CYC_GRP78 : (Group 78 pm_gct) Cycles GCT empty event:0X04E2 counters:2 um:zero minimum:1000 name:PM_GCT_FULL_CYC_GRP78 : (Group 78 pm_gct) Cycles GCT full event:0X04E3 counters:3 um:zero minimum:1000 name:PM_INST_FETCH_CYC_GRP78 : (Group 78 pm_gct) Cycles at least 1 instruction fetched #Group 79 pm_smt_priorities, Thread priority events event:0X04F0 counters:0 um:zero minimum:1000 name:PM_THRD_PRIO_0_CYC_GRP79 : (Group 79 pm_smt_priorities) Cycles thread running at priority level 0 event:0X04F1 counters:1 um:zero minimum:1000 name:PM_THRD_PRIO_1_CYC_GRP79 : (Group 79 pm_smt_priorities) Cycles thread running at priority level 1 event:0X04F2 counters:2 um:zero minimum:1000 name:PM_THRD_PRIO_2_CYC_GRP79 : (Group 79 pm_smt_priorities) Cycles thread running at priority level 2 event:0X04F3 counters:3 um:zero minimum:1000 name:PM_THRD_PRIO_3_CYC_GRP79 : (Group 79 pm_smt_priorities) Cycles thread running at priority level 3 #Group 80 pm_smt_priorities2, Thread priority events event:0X0500 counters:0 um:zero minimum:1000 name:PM_THRD_PRIO_7_CYC_GRP80 : (Group 80 pm_smt_priorities2) Cycles thread running at priority level 7 event:0X0501 counters:1 um:zero minimum:1000 name:PM_THRD_PRIO_6_CYC_GRP80 : (Group 80 pm_smt_priorities2) Cycles thread running at priority level 6 event:0X0502 counters:2 um:zero minimum:1000 name:PM_THRD_PRIO_5_CYC_GRP80 : (Group 80 pm_smt_priorities2) Cycles thread running at priority level 5 event:0X0503 counters:3 um:zero minimum:1000 name:PM_THRD_PRIO_4_CYC_GRP80 : (Group 80 pm_smt_priorities2) Cycles thread running at priority level 4 #Group 81 pm_smt_priorities3, Thread priority differences events event:0X0510 counters:0 um:zero minimum:1000 name:PM_THRD_PRIO_DIFF_0_CYC_GRP81 : (Group 81 pm_smt_priorities3) Cycles no thread priority difference event:0X0511 counters:1 um:zero minimum:1000 name:PM_THRD_PRIO_DIFF_1or2_CYC_GRP81 : (Group 81 pm_smt_priorities3) Cycles thread priority difference is 1 or 2 event:0X0512 counters:2 um:zero minimum:1000 name:PM_THRD_PRIO_DIFF_3or4_CYC_GRP81 : (Group 81 pm_smt_priorities3) Cycles thread priority difference is 3 or 4 event:0X0513 counters:3 um:zero minimum:1000 name:PM_THRD_PRIO_DIFF_5or6_CYC_GRP81 : (Group 81 pm_smt_priorities3) Cycles thread priority difference is 5 or 6 #Group 82 pm_smt_priorities4, Thread priority differences events event:0X0520 counters:0 um:zero minimum:1000 name:PM_THRD_SEL_T0_GRP82 : (Group 82 pm_smt_priorities4) Decode selected thread 0 event:0X0521 counters:1 um:zero minimum:1000 name:PM_THRD_PRIO_DIFF_minus1or2_CYC_GRP82 : (Group 82 pm_smt_priorities4) Cycles thread priority difference is -1 or -2 event:0X0522 counters:2 um:zero minimum:1000 name:PM_THRD_PRIO_DIFF_minus3or4_CYC_GRP82 : (Group 82 pm_smt_priorities4) Cycles thread priority difference is -3 or -4 event:0X0523 counters:3 um:zero minimum:1000 name:PM_THRD_PRIO_DIFF_minus5or6_CYC_GRP82 : (Group 82 pm_smt_priorities4) Cycles thread priority difference is -5 or -6 #Group 83 pm_fxu, FXU events event:0X0530 counters:0 um:zero minimum:1000 name:PM_FXU_IDLE_GRP83 : (Group 83 pm_fxu) FXU idle event:0X0531 counters:1 um:zero minimum:1000 name:PM_FXU_BUSY_GRP83 : (Group 83 pm_fxu) FXU busy event:0X0532 counters:2 um:zero minimum:1000 name:PM_FXU0_BUSY_FXU1_IDLE_GRP83 : (Group 83 pm_fxu) FXU0 busy FXU1 idle event:0X0533 counters:3 um:zero minimum:1000 name:PM_FXU1_BUSY_FXU0_IDLE_GRP83 : (Group 83 pm_fxu) FXU1 busy FXU0 idle #Group 84 pm_fxu2, FXU events event:0X0540 counters:0 um:zero minimum:1000 name:PM_FXU_PIPELINED_MULT_DIV_GRP84 : (Group 84 pm_fxu2) Fix point multiply/divide pipelined event:0X0541 counters:1 um:zero minimum:1000 name:PM_IFU_FIN_GRP84 : (Group 84 pm_fxu2) IFU finished an instruction event:0X0542 counters:2 um:zero minimum:1000 name:PM_FXU0_FIN_GRP84 : (Group 84 pm_fxu2) FXU0 produced a result event:0X0543 counters:3 um:zero minimum:1000 name:PM_FXU1_FIN_GRP84 : (Group 84 pm_fxu2) FXU1 produced a result #Group 85 pm_vmx, VMX events event:0X0550 counters:0 um:zero minimum:1000 name:PM_VMX_COMPLEX_ISUED_GRP85 : (Group 85 pm_vmx) VMX instruction issued to complex event:0X0551 counters:1 um:zero minimum:1000 name:PM_VMX_FLOAT_ISSUED_GRP85 : (Group 85 pm_vmx) VMX instruction issued to float event:0X0552 counters:2 um:zero minimum:1000 name:PM_VMX_SIMPLE_ISSUED_GRP85 : (Group 85 pm_vmx) VMX instruction issued to simple event:0X0553 counters:3 um:zero minimum:1000 name:PM_VMX_PERMUTE_ISSUED_GRP85 : (Group 85 pm_vmx) VMX instruction issued to permute #Group 86 pm_vmx2, VMX events event:0X0560 counters:0 um:zero minimum:1000 name:PM_VMX0_INST_ISSUED_GRP86 : (Group 86 pm_vmx2) VMX0 instruction issued event:0X0561 counters:1 um:zero minimum:1000 name:PM_VMX1_INST_ISSUED_GRP86 : (Group 86 pm_vmx2) VMX1 instruction issued event:0X0562 counters:2 um:zero minimum:1000 name:PM_VMX0_LD_ISSUED_GRP86 : (Group 86 pm_vmx2) VMX0 load issued event:0X0563 counters:3 um:zero minimum:1000 name:PM_VMX1_LD_ISSUED_GRP86 : (Group 86 pm_vmx2) VMX1 load issued #Group 87 pm_vmx3, VMX events event:0X0570 counters:0 um:zero minimum:1000 name:PM_VMX0_LD_ISSUED_GRP87 : (Group 87 pm_vmx3) VMX0 load issued event:0X0571 counters:1 um:zero minimum:1000 name:PM_VMX0_LD_WRBACK_GRP87 : (Group 87 pm_vmx3) VMX0 load writeback valid event:0X0572 counters:2 um:zero minimum:1000 name:PM_VMX1_LD_ISSUED_GRP87 : (Group 87 pm_vmx3) VMX1 load issued event:0X0573 counters:3 um:zero minimum:1000 name:PM_VMX1_LD_WRBACK_GRP87 : (Group 87 pm_vmx3) VMX1 load writeback valid #Group 88 pm_vmx4, VMX events event:0X0580 counters:0 um:zero minimum:1000 name:PM_VMX_FLOAT_MULTICYCLE_GRP88 : (Group 88 pm_vmx4) VMX multi-cycle floating point instruction issued event:0X0581 counters:1 um:zero minimum:1000 name:PM_VMX_RESULT_SAT_0_1_GRP88 : (Group 88 pm_vmx4) VMX valid result with sat bit is set (0->1) event:0X0582 counters:2 um:zero minimum:1000 name:PM_VMX_RESULT_SAT_1_GRP88 : (Group 88 pm_vmx4) VMX valid result with sat=1 event:0X0583 counters:3 um:zero minimum:1000 name:PM_VMX_ST_ISSUED_GRP88 : (Group 88 pm_vmx4) VMX store issued #Group 89 pm_vmx5, VMX events event:0X0590 counters:0 um:zero minimum:1000 name:PM_VMX_ST_ISSUED_GRP89 : (Group 89 pm_vmx5) VMX store issued event:0X0591 counters:1 um:zero minimum:1000 name:PM_VMX0_STALL_GRP89 : (Group 89 pm_vmx5) VMX0 stall event:0X0592 counters:2 um:zero minimum:1000 name:PM_VMX1_STALL_GRP89 : (Group 89 pm_vmx5) VMX1 stall event:0X0593 counters:3 um:zero minimum:1000 name:PM_VMX_FLOAT_MULTICYCLE_GRP89 : (Group 89 pm_vmx5) VMX multi-cycle floating point instruction issued #Group 90 pm_dfu, DFU events event:0X05A0 counters:0 um:zero minimum:1000 name:PM_DFU_ADD_GRP90 : (Group 90 pm_dfu) DFU add type instruction event:0X05A1 counters:1 um:zero minimum:1000 name:PM_DFU_ADD_SHIFTED_BOTH_GRP90 : (Group 90 pm_dfu) DFU add type with both operands shifted event:0X05A2 counters:2 um:zero minimum:1000 name:PM_DFU_BACK2BACK_GRP90 : (Group 90 pm_dfu) DFU back to back operations executed event:0X05A3 counters:3 um:zero minimum:1000 name:PM_DFU_CONV_GRP90 : (Group 90 pm_dfu) DFU convert from fixed op #Group 91 pm_dfu2, DFU events event:0X05B0 counters:0 um:zero minimum:1000 name:PM_DFU_ENC_BCD_DPD_GRP91 : (Group 91 pm_dfu2) DFU Encode BCD to DPD event:0X05B1 counters:1 um:zero minimum:1000 name:PM_DFU_EXP_EQ_GRP91 : (Group 91 pm_dfu2) DFU operand exponents are equal for add type event:0X05B2 counters:2 um:zero minimum:1000 name:PM_DFU_FIN_GRP91 : (Group 91 pm_dfu2) DFU instruction finish event:0X05B3 counters:3 um:zero minimum:1000 name:PM_DFU_SUBNORM_GRP91 : (Group 91 pm_dfu2) DFU result is a subnormal #Group 92 pm_fab, Fabric events event:0X05C0 counters:0 um:zero minimum:1000 name:PM_FAB_CMD_ISSUED_GRP92 : (Group 92 pm_fab) Fabric command issued event:0X05C1 counters:1 um:zero minimum:1000 name:PM_FAB_CMD_RETRIED_GRP92 : (Group 92 pm_fab) Fabric command retried event:0X05C2 counters:2 um:zero minimum:1000 name:PM_FAB_DCLAIM_GRP92 : (Group 92 pm_fab) Dclaim operation, locally mastered event:0X05C3 counters:3 um:zero minimum:1000 name:PM_FAB_DMA_GRP92 : (Group 92 pm_fab) DMA operation, locally mastered #Group 93 pm_fab2, Fabric events event:0X05D0 counters:0 um:zero minimum:1000 name:PM_FAB_NODE_PUMP_GRP93 : (Group 93 pm_fab2) Node pump operation, locally mastered event:0X05D1 counters:1 um:zero minimum:1000 name:PM_FAB_RETRY_NODE_PUMP_GRP93 : (Group 93 pm_fab2) Retry of a node pump, locally mastered event:0X05D2 counters:2 um:zero minimum:1000 name:PM_FAB_RETRY_SYS_PUMP_GRP93 : (Group 93 pm_fab2) Retry of a system pump, locally mastered event:0X05D3 counters:3 um:zero minimum:1000 name:PM_FAB_SYS_PUMP_GRP93 : (Group 93 pm_fab2) System pump operation, locally mastered #Group 94 pm_fab3, Fabric events event:0X05E0 counters:0 um:zero minimum:1000 name:PM_FAB_CMD_ISSUED_GRP94 : (Group 94 pm_fab3) Fabric command issued event:0X05E1 counters:1 um:zero minimum:1000 name:PM_FAB_CMD_RETRIED_GRP94 : (Group 94 pm_fab3) Fabric command retried event:0X05E2 counters:2 um:zero minimum:1000 name:PM_FAB_ADDR_COLLISION_GRP94 : (Group 94 pm_fab3) local node launch collision with off-node address event:0X05E3 counters:3 um:zero minimum:1000 name:PM_FAB_MMIO_GRP94 : (Group 94 pm_fab3) MMIO operation, locally mastered #Group 95 pm_mem_dblpump, Double pump event:0X05F0 counters:0 um:zero minimum:1000 name:PM_MEM_DP_RQ_GLOB_LOC_GRP95 : (Group 95 pm_mem_dblpump) Memory read queue marking cache line double pump state from global to local event:0X05F1 counters:1 um:zero minimum:1000 name:PM_MEM_DP_RQ_LOC_GLOB_GRP95 : (Group 95 pm_mem_dblpump) Memory read queue marking cache line double pump state from local to global event:0X05F2 counters:2 um:zero minimum:1000 name:PM_MEM_DP_CL_WR_GLOB_GRP95 : (Group 95 pm_mem_dblpump) cache line write setting double pump state to global event:0X05F3 counters:3 um:zero minimum:1000 name:PM_MEM_DP_CL_WR_LOC_GRP95 : (Group 95 pm_mem_dblpump) cache line write setting double pump state to local #Group 96 pm_mem0_dblpump, MCS0 Double pump event:0X0600 counters:0 um:zero minimum:1000 name:PM_MEM0_DP_RQ_GLOB_LOC_GRP96 : (Group 96 pm_mem0_dblpump) Memory read queue marking cache line double pump state from global to local side 0 event:0X0601 counters:1 um:zero minimum:1000 name:PM_MEM0_DP_RQ_LOC_GLOB_GRP96 : (Group 96 pm_mem0_dblpump) Memory read queue marking cache line double pump state from local to global side 0 event:0X0602 counters:2 um:zero minimum:1000 name:PM_MEM0_DP_CL_WR_GLOB_GRP96 : (Group 96 pm_mem0_dblpump) cacheline write setting dp to global side 0 event:0X0603 counters:3 um:zero minimum:1000 name:PM_MEM0_DP_CL_WR_LOC_GRP96 : (Group 96 pm_mem0_dblpump) cacheline write setting dp to local side 0 #Group 97 pm_mem1_dblpump, MCS1 Double pump event:0X0610 counters:0 um:zero minimum:1000 name:PM_MEM1_DP_RQ_GLOB_LOC_GRP97 : (Group 97 pm_mem1_dblpump) Memory read queue marking cache line double pump state from global to local side 1 event:0X0611 counters:1 um:zero minimum:1000 name:PM_MEM1_DP_RQ_LOC_GLOB_GRP97 : (Group 97 pm_mem1_dblpump) Memory read queue marking cache line double pump state from local to global side 1 event:0X0612 counters:2 um:zero minimum:1000 name:PM_MEM1_DP_CL_WR_GLOB_GRP97 : (Group 97 pm_mem1_dblpump) cacheline write setting dp to global side 1 event:0X0613 counters:3 um:zero minimum:1000 name:PM_MEM1_DP_CL_WR_LOC_GRP97 : (Group 97 pm_mem1_dblpump) cacheline write setting dp to local side 1 #Group 98 pm_gxo, GX outbound event:0X0620 counters:0 um:zero minimum:1000 name:PM_GXO_CYC_BUSY_GRP98 : (Group 98 pm_gxo) Outbound GX bus utilizations (# of cycles in use) event:0X0621 counters:1 um:zero minimum:1000 name:PM_GXO_ADDR_CYC_BUSY_GRP98 : (Group 98 pm_gxo) Outbound GX address utilization (# of cycles address out is valid) event:0X0622 counters:2 um:zero minimum:1000 name:PM_GXO_DATA_CYC_BUSY_GRP98 : (Group 98 pm_gxo) Outbound GX Data utilization (# of cycles data out is valid) event:0X0623 counters:3 um:zero minimum:1000 name:PM_GXI_CYC_BUSY_GRP98 : (Group 98 pm_gxo) Inbound GX bus utilizations (# of cycles in use) #Group 99 pm_gxi, GX inbound event:0X0630 counters:0 um:zero minimum:1000 name:PM_GXI_CYC_BUSY_GRP99 : (Group 99 pm_gxi) Inbound GX bus utilizations (# of cycles in use) event:0X0631 counters:1 um:zero minimum:1000 name:PM_GXI_ADDR_CYC_BUSY_GRP99 : (Group 99 pm_gxi) Inbound GX address utilization (# of cycle address is in valid) event:0X0632 counters:2 um:zero minimum:1000 name:PM_GXI_DATA_CYC_BUSY_GRP99 : (Group 99 pm_gxi) Inbound GX Data utilization (# of cycle data in is valid) event:0X0633 counters:3 um:zero minimum:1000 name:PM_GXO_CYC_BUSY_GRP99 : (Group 99 pm_gxi) Outbound GX bus utilizations (# of cycles in use) #Group 100 pm_gx_dma, DMA events event:0X0640 counters:0 um:zero minimum:1000 name:PM_GXO_CYC_BUSY_GRP100 : (Group 100 pm_gx_dma) Outbound GX bus utilizations (# of cycles in use) event:0X0641 counters:1 um:zero minimum:1000 name:PM_GXI_CYC_BUSY_GRP100 : (Group 100 pm_gx_dma) Inbound GX bus utilizations (# of cycles in use) event:0X0642 counters:2 um:zero minimum:1000 name:PM_GX_DMA_READ_GRP100 : (Group 100 pm_gx_dma) DMA Read Request event:0X0643 counters:3 um:zero minimum:1000 name:PM_GX_DMA_WRITE_GRP100 : (Group 100 pm_gx_dma) All DMA Write Requests (including dma wrt lgcy) #Group 101 pm_L1_misc, L1 misc events event:0X0650 counters:0 um:zero minimum:1000 name:PM_INST_FROM_L1_GRP101 : (Group 101 pm_L1_misc) Instruction fetched from L1 event:0X0651 counters:1 um:zero minimum:1000 name:PM_L1_WRITE_CYC_GRP101 : (Group 101 pm_L1_misc) Cycles writing to instruction L1 event:0X0652 counters:2 um:zero minimum:1000 name:PM_NO_ITAG_CYC_GRP101 : (Group 101 pm_L1_misc) Cyles no ITAG available event:0X0653 counters:3 um:zero minimum:1000 name:PM_INST_IMC_MATCH_CMPL_GRP101 : (Group 101 pm_L1_misc) IMC matched instructions completed #Group 102 pm_L2_data, L2 load and store data event:0X0660 counters:0 um:zero minimum:1000 name:PM_L2_LD_REQ_DATA_GRP102 : (Group 102 pm_L2_data) L2 data load requests event:0X0661 counters:1 um:zero minimum:1000 name:PM_L2_LD_MISS_DATA_GRP102 : (Group 102 pm_L2_data) L2 data load misses event:0X0662 counters:2 um:zero minimum:1000 name:PM_L2_ST_REQ_DATA_GRP102 : (Group 102 pm_L2_data) L2 data store requests event:0X0663 counters:3 um:zero minimum:1000 name:PM_L2_ST_MISS_DATA_GRP102 : (Group 102 pm_L2_data) L2 data store misses #Group 103 pm_L2_ld_inst, L2 Load instructions event:0X0670 counters:0 um:zero minimum:1000 name:PM_L2_LD_REQ_INST_GRP103 : (Group 103 pm_L2_ld_inst) L2 instruction load requests event:0X0671 counters:1 um:zero minimum:1000 name:PM_L2_LD_MISS_INST_GRP103 : (Group 103 pm_L2_ld_inst) L2 instruction load misses event:0X0672 counters:2 um:zero minimum:1000 name:PM_L2_MISS_GRP103 : (Group 103 pm_L2_ld_inst) L2 cache misses event:0X0673 counters:3 um:zero minimum:1000 name:PM_L2_PREF_LD_GRP103 : (Group 103 pm_L2_ld_inst) L2 cache prefetches #Group 104 pm_L2_castout_invalidate, L2 castout and invalidate events event:0X0680 counters:0 um:zero minimum:1000 name:PM_L2_CASTOUT_MOD_GRP104 : (Group 104 pm_L2_castout_invalidate) L2 castouts - Modified (M, Mu, Me) event:0X0681 counters:1 um:zero minimum:1000 name:PM_L2_CASTOUT_SHR_GRP104 : (Group 104 pm_L2_castout_invalidate) L2 castouts - Shared (T, Te, Si, S) event:0X0682 counters:2 um:zero minimum:1000 name:PM_IC_INV_L2_GRP104 : (Group 104 pm_L2_castout_invalidate) L1 I cache entries invalidated from L2 event:0X0683 counters:3 um:zero minimum:1000 name:PM_DC_INV_L2_GRP104 : (Group 104 pm_L2_castout_invalidate) L1 D cache entries invalidated from L2 #Group 105 pm_L2_ldst_reqhit, L2 load and store requests and hits event:0X0690 counters:0 um:zero minimum:1000 name:PM_LD_REQ_L2_GRP105 : (Group 105 pm_L2_ldst_reqhit) L2 load requests event:0X0691 counters:1 um:zero minimum:1000 name:PM_LD_HIT_L2_GRP105 : (Group 105 pm_L2_ldst_reqhit) L2 D cache load hits event:0X0692 counters:2 um:zero minimum:1000 name:PM_ST_REQ_L2_GRP105 : (Group 105 pm_L2_ldst_reqhit) L2 store requests event:0X0693 counters:3 um:zero minimum:1000 name:PM_ST_HIT_L2_GRP105 : (Group 105 pm_L2_ldst_reqhit) L2 D cache store hits #Group 106 pm_L2_ld_data_slice, L2 data loads by slice event:0X06A0 counters:0 um:zero minimum:1000 name:PM_L2SA_LD_REQ_DATA_GRP106 : (Group 106 pm_L2_ld_data_slice) L2 slice A data load requests event:0X06A1 counters:1 um:zero minimum:1000 name:PM_L2SA_LD_MISS_DATA_GRP106 : (Group 106 pm_L2_ld_data_slice) L2 slice A data load misses event:0X06A2 counters:2 um:zero minimum:1000 name:PM_L2SB_LD_REQ_DATA_GRP106 : (Group 106 pm_L2_ld_data_slice) L2 slice B data load requests event:0X06A3 counters:3 um:zero minimum:1000 name:PM_L2SB_LD_MISS_DATA_GRP106 : (Group 106 pm_L2_ld_data_slice) L2 slice B data load misses #Group 107 pm_L2_ld_inst_slice, L2 instruction loads by slice event:0X06B0 counters:0 um:zero minimum:1000 name:PM_L2SA_LD_REQ_INST_GRP107 : (Group 107 pm_L2_ld_inst_slice) L2 slice A instruction load requests event:0X06B1 counters:1 um:zero minimum:1000 name:PM_L2SA_LD_MISS_INST_GRP107 : (Group 107 pm_L2_ld_inst_slice) L2 slice A instruction load misses event:0X06B2 counters:2 um:zero minimum:1000 name:PM_L2SB_LD_REQ_INST_GRP107 : (Group 107 pm_L2_ld_inst_slice) L2 slice B instruction load requests event:0X06B3 counters:3 um:zero minimum:1000 name:PM_L2SB_LD_MISS_INST_GRP107 : (Group 107 pm_L2_ld_inst_slice) L2 slice B instruction load misses #Group 108 pm_L2_st_slice, L2 slice stores by slice event:0X06C0 counters:0 um:zero minimum:1000 name:PM_L2SA_ST_REQ_GRP108 : (Group 108 pm_L2_st_slice) L2 slice A store requests event:0X06C1 counters:1 um:zero minimum:1000 name:PM_L2SA_ST_MISS_GRP108 : (Group 108 pm_L2_st_slice) L2 slice A store misses event:0X06C2 counters:2 um:zero minimum:1000 name:PM_L2SB_ST_REQ_GRP108 : (Group 108 pm_L2_st_slice) L2 slice B store requests event:0X06C3 counters:3 um:zero minimum:1000 name:PM_L2SB_ST_MISS_GRP108 : (Group 108 pm_L2_st_slice) L2 slice B store misses #Group 109 pm_L2miss_slice, L2 misses by slice event:0X06D0 counters:0 um:zero minimum:1000 name:PM_L2SA_MISS_GRP109 : (Group 109 pm_L2miss_slice) L2 slice A misses event:0X06D1 counters:1 um:zero minimum:1000 name:PM_L2_MISS_GRP109 : (Group 109 pm_L2miss_slice) L2 cache misses event:0X06D2 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_L2MISS_GRP109 : (Group 109 pm_L2miss_slice) Data loaded missed L2 event:0X06D3 counters:3 um:zero minimum:1000 name:PM_L2SB_MISS_GRP109 : (Group 109 pm_L2miss_slice) L2 slice B misses #Group 110 pm_L2_castout_slice, L2 castouts by slice event:0X06E0 counters:0 um:zero minimum:1000 name:PM_L2SA_CASTOUT_MOD_GRP110 : (Group 110 pm_L2_castout_slice) L2 slice A castouts - Modified event:0X06E1 counters:1 um:zero minimum:1000 name:PM_L2SA_CASTOUT_SHR_GRP110 : (Group 110 pm_L2_castout_slice) L2 slice A castouts - Shared event:0X06E2 counters:2 um:zero minimum:1000 name:PM_L2SB_CASTOUT_MOD_GRP110 : (Group 110 pm_L2_castout_slice) L2 slice B castouts - Modified event:0X06E3 counters:3 um:zero minimum:1000 name:PM_L2SB_CASTOUT_SHR_GRP110 : (Group 110 pm_L2_castout_slice) L2 slice B castouts - Shared #Group 111 pm_L2_invalidate_slice, L2 invalidate by slice event:0X06F0 counters:0 um:zero minimum:1000 name:PM_L2SA_IC_INV_GRP111 : (Group 111 pm_L2_invalidate_slice) L2 slice A I cache invalidate event:0X06F1 counters:1 um:zero minimum:1000 name:PM_L2SA_DC_INV_GRP111 : (Group 111 pm_L2_invalidate_slice) L2 slice A D cache invalidate event:0X06F2 counters:2 um:zero minimum:1000 name:PM_L2SB_IC_INV_GRP111 : (Group 111 pm_L2_invalidate_slice) L2 slice B I cache invalidate event:0X06F3 counters:3 um:zero minimum:1000 name:PM_L2SB_DC_INV_GRP111 : (Group 111 pm_L2_invalidate_slice) L2 slice B D cache invalidate #Group 112 pm_L2_ld_reqhit_slice, L2 load requests and hist by slice event:0X0700 counters:0 um:zero minimum:1000 name:PM_L2SA_LD_REQ_GRP112 : (Group 112 pm_L2_ld_reqhit_slice) L2 slice A load requests event:0X0701 counters:1 um:zero minimum:1000 name:PM_L2SA_LD_HIT_GRP112 : (Group 112 pm_L2_ld_reqhit_slice) L2 slice A load hits event:0X0702 counters:2 um:zero minimum:1000 name:PM_L2SB_LD_REQ_GRP112 : (Group 112 pm_L2_ld_reqhit_slice) L2 slice B load requests event:0X0703 counters:3 um:zero minimum:1000 name:PM_L2SB_LD_HIT_GRP112 : (Group 112 pm_L2_ld_reqhit_slice) L2 slice B load hits #Group 113 pm_L2_st_reqhit_slice, L2 store requests and hist by slice event:0X0710 counters:0 um:zero minimum:1000 name:PM_L2SA_ST_REQ_GRP113 : (Group 113 pm_L2_st_reqhit_slice) L2 slice A store requests event:0X0711 counters:1 um:zero minimum:1000 name:PM_L2SA_ST_HIT_GRP113 : (Group 113 pm_L2_st_reqhit_slice) L2 slice A store hits event:0X0712 counters:2 um:zero minimum:1000 name:PM_L2SB_ST_REQ_GRP113 : (Group 113 pm_L2_st_reqhit_slice) L2 slice B store requests event:0X0713 counters:3 um:zero minimum:1000 name:PM_L2SB_ST_HIT_GRP113 : (Group 113 pm_L2_st_reqhit_slice) L2 slice B store hits #Group 114 pm_L2_redir_pref, L2 redirect and prefetch event:0X0720 counters:0 um:zero minimum:1000 name:PM_IC_DEMAND_L2_BHT_REDIRECT_GRP114 : (Group 114 pm_L2_redir_pref) L2 I cache demand request due to BHT redirect event:0X0721 counters:1 um:zero minimum:1000 name:PM_IC_DEMAND_L2_BR_REDIRECT_GRP114 : (Group 114 pm_L2_redir_pref) L2 I cache demand request due to branch redirect event:0X0722 counters:2 um:zero minimum:1000 name:PM_L2_PREF_ST_GRP114 : (Group 114 pm_L2_redir_pref) L2 cache prefetches event:0X0723 counters:3 um:zero minimum:1000 name:PM_L2_PREF_LD_GRP114 : (Group 114 pm_L2_redir_pref) L2 cache prefetches #Group 115 pm_L3_SliceA, L3 slice A events event:0X0730 counters:0 um:zero minimum:1000 name:PM_L3SA_REF_GRP115 : (Group 115 pm_L3_SliceA) L3 slice A references event:0X0731 counters:1 um:zero minimum:1000 name:PM_L3SA_HIT_GRP115 : (Group 115 pm_L3_SliceA) L3 slice A hits event:0X0732 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_L3_GRP115 : (Group 115 pm_L3_SliceA) Data loaded from L3 event:0X0733 counters:3 um:zero minimum:1000 name:PM_L3SA_MISS_GRP115 : (Group 115 pm_L3_SliceA) L3 slice A misses #Group 116 pm_L3_SliceB, L3 slice B events event:0X0740 counters:0 um:zero minimum:1000 name:PM_L3SB_REF_GRP116 : (Group 116 pm_L3_SliceB) L3 slice B references event:0X0741 counters:1 um:zero minimum:1000 name:PM_L3SB_HIT_GRP116 : (Group 116 pm_L3_SliceB) L3 slice B hits event:0X0742 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_L3_GRP116 : (Group 116 pm_L3_SliceB) Data loaded from L3 event:0X0743 counters:3 um:zero minimum:1000 name:PM_L3SB_MISS_GRP116 : (Group 116 pm_L3_SliceB) L3 slice B misses #Group 117 pm_fpu_issue, FPU issue events event:0X0750 counters:0 um:zero minimum:1000 name:PM_FPU_ISSUE_0_GRP117 : (Group 117 pm_fpu_issue) FPU issue 0 per cycle event:0X0751 counters:1 um:zero minimum:1000 name:PM_FPU_ISSUE_1_GRP117 : (Group 117 pm_fpu_issue) FPU issue 1 per cycle event:0X0752 counters:2 um:zero minimum:1000 name:PM_FPU_ISSUE_2_GRP117 : (Group 117 pm_fpu_issue) FPU issue 2 per cycle event:0X0753 counters:3 um:zero minimum:1000 name:PM_FPU_ISSUE_STEERING_GRP117 : (Group 117 pm_fpu_issue) FPU issue steering #Group 118 pm_fpu_issue2, FPU issue events event:0X0760 counters:0 um:zero minimum:1000 name:PM_FPU_ISSUE_OOO_GRP118 : (Group 118 pm_fpu_issue2) FPU issue out-of-order event:0X0761 counters:1 um:zero minimum:1000 name:PM_FPU_ISSUE_ST_FOLDED_GRP118 : (Group 118 pm_fpu_issue2) FPU issue a folded store event:0X0762 counters:2 um:zero minimum:1000 name:PM_FPU_ISSUE_DIV_SQRT_OVERLAP_GRP118 : (Group 118 pm_fpu_issue2) FPU divide/sqrt overlapped with other divide/sqrt event:0X0763 counters:3 um:zero minimum:1000 name:PM_FPU_ISSUE_STALL_ST_GRP118 : (Group 118 pm_fpu_issue2) FPU issue stalled due to store #Group 119 pm_fpu_issue3, FPU issue events event:0X0770 counters:0 um:zero minimum:1000 name:PM_FPU_ISSUE_STALL_THRD_GRP119 : (Group 119 pm_fpu_issue3) FPU issue stalled due to thread resource conflict event:0X0771 counters:1 um:zero minimum:1000 name:PM_FPU_ISSUE_STALL_FPR_GRP119 : (Group 119 pm_fpu_issue3) FPU issue stalled due to FPR dependencies event:0X0772 counters:2 um:zero minimum:1000 name:PM_FPU_ISSUE_DIV_SQRT_OVERLAP_GRP119 : (Group 119 pm_fpu_issue3) FPU divide/sqrt overlapped with other divide/sqrt event:0X0773 counters:3 um:zero minimum:1000 name:PM_FPU_ISSUE_STALL_ST_GRP119 : (Group 119 pm_fpu_issue3) FPU issue stalled due to store #Group 120 pm_fpu0_flop, FPU0 flop events event:0X0780 counters:0 um:zero minimum:1000 name:PM_FPU0_1FLOP_GRP120 : (Group 120 pm_fpu0_flop) FPU0 executed add, mult, sub, cmp or sel instruction event:0X0781 counters:1 um:zero minimum:1000 name:PM_FPU0_FMA_GRP120 : (Group 120 pm_fpu0_flop) FPU0 executed multiply-add instruction event:0X0782 counters:2 um:zero minimum:1000 name:PM_FPU0_FSQRT_FDIV_GRP120 : (Group 120 pm_fpu0_flop) FPU0 executed FSQRT or FDIV instruction event:0X0783 counters:3 um:zero minimum:1000 name:PM_FPU0_STF_GRP120 : (Group 120 pm_fpu0_flop) FPU0 executed store instruction #Group 121 pm_fpu0_misc, FPU0 events event:0X0790 counters:0 um:zero minimum:1000 name:PM_FPU0_FLOP_GRP121 : (Group 121 pm_fpu0_misc) FPU0 executed 1FLOP, FMA, FSQRT or FDIV instruction event:0X0791 counters:1 um:zero minimum:1000 name:PM_FPU0_FXDIV_GRP121 : (Group 121 pm_fpu0_misc) FPU0 executed fixed point division event:0X0792 counters:2 um:zero minimum:1000 name:PM_FPU0_DENORM_GRP121 : (Group 121 pm_fpu0_misc) FPU0 received denormalized data event:0X0793 counters:3 um:zero minimum:1000 name:PM_FPU0_SINGLE_GRP121 : (Group 121 pm_fpu0_misc) FPU0 executed single precision instruction #Group 122 pm_fpu0_misc2, FPU0 events event:0X07A0 counters:0 um:zero minimum:1000 name:PM_FPU0_FIN_GRP122 : (Group 122 pm_fpu0_misc2) FPU0 produced a result event:0X07A1 counters:1 um:zero minimum:1000 name:PM_FPU0_FEST_GRP122 : (Group 122 pm_fpu0_misc2) FPU0 executed FEST instruction event:0X07A2 counters:2 um:zero minimum:1000 name:PM_FPU0_FPSCR_GRP122 : (Group 122 pm_fpu0_misc2) FPU0 executed FPSCR instruction event:0X07A3 counters:3 um:zero minimum:1000 name:PM_FPU0_FXMULT_GRP122 : (Group 122 pm_fpu0_misc2) FPU0 executed fixed point multiplication #Group 123 pm_fpu0_misc3, FPU0 events event:0X07B0 counters:0 um:zero minimum:1000 name:PM_FPU0_FCONV_GRP123 : (Group 123 pm_fpu0_misc3) FPU0 executed FCONV instruction event:0X07B1 counters:1 um:zero minimum:1000 name:PM_FPU0_FRSP_GRP123 : (Group 123 pm_fpu0_misc3) FPU0 executed FRSP instruction event:0X07B2 counters:2 um:zero minimum:1000 name:PM_FPU0_ST_FOLDED_GRP123 : (Group 123 pm_fpu0_misc3) FPU0 folded store event:0X07B3 counters:3 um:zero minimum:1000 name:PM_FPU0_FEST_GRP123 : (Group 123 pm_fpu0_misc3) FPU0 executed FEST instruction #Group 124 pm_fpu1_flop, FPU1 flop events event:0X07C0 counters:0 um:zero minimum:1000 name:PM_FPU1_1FLOP_GRP124 : (Group 124 pm_fpu1_flop) FPU1 executed add, mult, sub, cmp or sel instruction event:0X07C1 counters:1 um:zero minimum:1000 name:PM_FPU1_FMA_GRP124 : (Group 124 pm_fpu1_flop) FPU1 executed multiply-add instruction event:0X07C2 counters:2 um:zero minimum:1000 name:PM_FPU1_FSQRT_FDIV_GRP124 : (Group 124 pm_fpu1_flop) FPU1 executed FSQRT or FDIV instruction event:0X07C3 counters:3 um:zero minimum:1000 name:PM_FPU1_STF_GRP124 : (Group 124 pm_fpu1_flop) FPU1 executed store instruction #Group 125 pm_fpu1_misc, FPU1 events event:0X07D0 counters:0 um:zero minimum:1000 name:PM_FPU1_FLOP_GRP125 : (Group 125 pm_fpu1_misc) FPU1 executed 1FLOP, FMA, FSQRT or FDIV instruction event:0X07D1 counters:1 um:zero minimum:1000 name:PM_FPU1_FXDIV_GRP125 : (Group 125 pm_fpu1_misc) FPU1 executed fixed point division event:0X07D2 counters:2 um:zero minimum:1000 name:PM_FPU1_DENORM_GRP125 : (Group 125 pm_fpu1_misc) FPU1 received denormalized data event:0X07D3 counters:3 um:zero minimum:1000 name:PM_FPU1_SINGLE_GRP125 : (Group 125 pm_fpu1_misc) FPU1 executed single precision instruction #Group 126 pm_fpu1_misc2, FPU1 events event:0X07E0 counters:0 um:zero minimum:1000 name:PM_FPU1_FIN_GRP126 : (Group 126 pm_fpu1_misc2) FPU1 produced a result event:0X07E1 counters:1 um:zero minimum:1000 name:PM_FPU1_FEST_GRP126 : (Group 126 pm_fpu1_misc2) FPU1 executed FEST instruction event:0X07E2 counters:2 um:zero minimum:1000 name:PM_FPU1_FPSCR_GRP126 : (Group 126 pm_fpu1_misc2) FPU1 executed FPSCR instruction event:0X07E3 counters:3 um:zero minimum:1000 name:PM_FPU1_FXMULT_GRP126 : (Group 126 pm_fpu1_misc2) FPU1 executed fixed point multiplication #Group 127 pm_fpu1_misc3, FPU1 events event:0X07F0 counters:0 um:zero minimum:1000 name:PM_FPU1_FCONV_GRP127 : (Group 127 pm_fpu1_misc3) FPU1 executed FCONV instruction event:0X07F1 counters:1 um:zero minimum:1000 name:PM_FPU1_FRSP_GRP127 : (Group 127 pm_fpu1_misc3) FPU1 executed FRSP instruction event:0X07F2 counters:2 um:zero minimum:1000 name:PM_FPU1_ST_FOLDED_GRP127 : (Group 127 pm_fpu1_misc3) FPU1 folded store event:0X07F3 counters:3 um:zero minimum:1000 name:PM_FPU1_FEST_GRP127 : (Group 127 pm_fpu1_misc3) FPU1 executed FEST instruction #Group 128 pm_fpu_flop, FPU flop events event:0X0800 counters:0 um:zero minimum:1000 name:PM_FPU_1FLOP_GRP128 : (Group 128 pm_fpu_flop) FPU executed one flop instruction event:0X0801 counters:1 um:zero minimum:1000 name:PM_FPU_FMA_GRP128 : (Group 128 pm_fpu_flop) FPU executed multiply-add instruction event:0X0802 counters:2 um:zero minimum:1000 name:PM_FPU_FSQRT_FDIV_GRP128 : (Group 128 pm_fpu_flop) FPU executed FSQRT or FDIV instruction event:0X0803 counters:3 um:zero minimum:1000 name:PM_FPU_FLOP_GRP128 : (Group 128 pm_fpu_flop) FPU executed 1FLOP, FMA, FSQRT or FDIV instruction #Group 129 pm_fpu_misc, FPU events event:0X0810 counters:0 um:zero minimum:1000 name:PM_FPU_FIN_GRP129 : (Group 129 pm_fpu_misc) FPU produced a result event:0X0811 counters:1 um:zero minimum:1000 name:PM_FPU_FRSP_GRP129 : (Group 129 pm_fpu_misc) FPU executed FRSP instruction event:0X0812 counters:2 um:zero minimum:1000 name:PM_FPU_FPSCR_GRP129 : (Group 129 pm_fpu_misc) FPU executed FPSCR instruction event:0X0813 counters:3 um:zero minimum:1000 name:PM_FPU_FXMULT_GRP129 : (Group 129 pm_fpu_misc) FPU executed fixed point multiplication #Group 130 pm_fpu_misc2, FPU events event:0X0820 counters:0 um:zero minimum:1000 name:PM_FPU_FXDIV_GRP130 : (Group 130 pm_fpu_misc2) FPU executed fixed point division event:0X0821 counters:1 um:zero minimum:1000 name:PM_FPU_DENORM_GRP130 : (Group 130 pm_fpu_misc2) FPU received denormalized data event:0X0822 counters:2 um:zero minimum:1000 name:PM_FPU_STF_GRP130 : (Group 130 pm_fpu_misc2) FPU executed store instruction event:0X0823 counters:3 um:zero minimum:1000 name:PM_FPU_SINGLE_GRP130 : (Group 130 pm_fpu_misc2) FPU executed single precision instruction #Group 131 pm_fpu_misc3, FPU events event:0X0830 counters:0 um:zero minimum:1000 name:PM_FPU_FCONV_GRP131 : (Group 131 pm_fpu_misc3) FPU executed FCONV instruction event:0X0831 counters:1 um:zero minimum:1000 name:PM_FPU_FRSP_GRP131 : (Group 131 pm_fpu_misc3) FPU executed FRSP instruction event:0X0832 counters:2 um:zero minimum:1000 name:PM_FPU_ST_FOLDED_GRP131 : (Group 131 pm_fpu_misc3) FPU folded store event:0X0833 counters:3 um:zero minimum:1000 name:PM_FPU_FEST_GRP131 : (Group 131 pm_fpu_misc3) FPU executed FEST instruction #Group 132 pm_purr, PURR events event:0X0840 counters:0 um:zero minimum:1000 name:PM_PURR_GRP132 : (Group 132 pm_purr) PURR Event event:0X0841 counters:1 um:zero minimum:10000 name:PM_RUN_CYC_GRP132 : (Group 132 pm_purr) Run cycles event:0X0842 counters:2 um:zero minimum:10000 name:PM_CYC_GRP132 : (Group 132 pm_purr) Processor cycles event:0X0843 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP132 : (Group 132 pm_purr) Instructions completed #Group 133 pm_suspend, SUSPENDED events event:0X0850 counters:0 um:zero minimum:1000 name:PM_SUSPENDED_GRP133 : (Group 133 pm_suspend) Suspended event:0X0851 counters:1 um:zero minimum:10000 name:PM_CYC_GRP133 : (Group 133 pm_suspend) Processor cycles event:0X0852 counters:2 um:zero minimum:1000 name:PM_SYNC_CYC_GRP133 : (Group 133 pm_suspend) Sync duration event:0X0853 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP133 : (Group 133 pm_suspend) Instructions completed #Group 134 pm_dcache, D cache event:0X0860 counters:0 um:zero minimum:1000 name:PM_LD_MISS_L1_CYC_GRP134 : (Group 134 pm_dcache) L1 data load miss cycles event:0X0861 counters:1 um:zero minimum:1000 name:PM_LSU_DERAT_MISS_GRP134 : (Group 134 pm_dcache) DERAT misses event:0X0862 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP134 : (Group 134 pm_dcache) L1 D cache load misses event:0X0863 counters:3 um:zero minimum:1000 name:PM_LSU_DERAT_MISS_CYC_GRP134 : (Group 134 pm_dcache) DERAT miss latency #Group 135 pm_derat_miss, DERAT miss event:0X0870 counters:0 um:zero minimum:1000 name:PM_DERAT_MISS_4K_GRP135 : (Group 135 pm_derat_miss) DERAT misses for 4K page event:0X0871 counters:1 um:zero minimum:1000 name:PM_DERAT_MISS_64K_GRP135 : (Group 135 pm_derat_miss) DERAT misses for 64K page event:0X0872 counters:2 um:zero minimum:1000 name:PM_DERAT_MISS_16M_GRP135 : (Group 135 pm_derat_miss) DERAT misses for 16M page event:0X0873 counters:3 um:zero minimum:1000 name:PM_DERAT_MISS_16G_GRP135 : (Group 135 pm_derat_miss) DERAT misses for 16G page #Group 136 pm_derat_ref, DERAT ref event:0X0880 counters:0 um:zero minimum:1000 name:PM_DERAT_REF_4K_GRP136 : (Group 136 pm_derat_ref) DERAT reference for 4K page event:0X0881 counters:1 um:zero minimum:1000 name:PM_DERAT_REF_64K_GRP136 : (Group 136 pm_derat_ref) DERAT reference for 64K page event:0X0882 counters:2 um:zero minimum:1000 name:PM_DERAT_REF_16M_GRP136 : (Group 136 pm_derat_ref) DERAT reference for 16M page event:0X0883 counters:3 um:zero minimum:1000 name:PM_DERAT_REF_16G_GRP136 : (Group 136 pm_derat_ref) DERAT reference for 16G page #Group 137 pm_ierat_miss, IERAT miss event:0X0890 counters:0 um:zero minimum:1000 name:PM_IERAT_MISS_16G_GRP137 : (Group 137 pm_ierat_miss) IERAT misses for 16G page event:0X0891 counters:1 um:zero minimum:1000 name:PM_IERAT_MISS_16M_GRP137 : (Group 137 pm_ierat_miss) IERAT misses for 16M page event:0X0892 counters:2 um:zero minimum:1000 name:PM_IERAT_MISS_64K_GRP137 : (Group 137 pm_ierat_miss) IERAT misses for 64K page event:0X0893 counters:3 um:zero minimum:1000 name:PM_IERAT_MISS_4K_GRP137 : (Group 137 pm_ierat_miss) IERAT misses for 4K page #Group 138 pm_mrk_br, Marked Branch events event:0X08A0 counters:0 um:zero minimum:1000 name:PM_MRK_BR_TAKEN_GRP138 : (Group 138 pm_mrk_br) Marked branch taken event:0X08A1 counters:1 um:zero minimum:1000 name:PM_MRK_LD_MISS_L1_GRP138 : (Group 138 pm_mrk_br) Marked L1 D cache load misses event:0X08A2 counters:2 um:zero minimum:1000 name:PM_MRK_BR_MPRED_GRP138 : (Group 138 pm_mrk_br) Marked branch mispredicted event:0X08A3 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP138 : (Group 138 pm_mrk_br) Instructions completed #Group 139 pm_mrk_dsource, Marked data sources event:0X08B0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP139 : (Group 139 pm_mrk_dsource) Instructions completed event:0X08B1 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_DMEM_GRP139 : (Group 139 pm_mrk_dsource) Marked data loaded from distant memory event:0X08B2 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_DL2L3_SHR_GRP139 : (Group 139 pm_mrk_dsource) Marked data loaded from distant L2 or L3 shared event:0X08B3 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_DL2L3_MOD_GRP139 : (Group 139 pm_mrk_dsource) Marked data loaded from distant L2 or L3 modified #Group 140 pm_mrk_dsource2, Marked data sources event:0X08C0 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2_GRP140 : (Group 140 pm_mrk_dsource2) Marked data loaded from L2 event:0X08C1 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L21_GRP140 : (Group 140 pm_mrk_dsource2) Marked data loaded from private L2 other core event:0X08C2 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L25_MOD_GRP140 : (Group 140 pm_mrk_dsource2) Marked data loaded from L2.5 modified event:0X08C3 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP140 : (Group 140 pm_mrk_dsource2) Instructions completed #Group 141 pm_mrk_dsource3, Marked data sources event:0X08D0 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2MISS_GRP141 : (Group 141 pm_mrk_dsource3) Marked data loaded missed L2 event:0X08D1 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP141 : (Group 141 pm_mrk_dsource3) Instructions completed event:0X08D2 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L3_GRP141 : (Group 141 pm_mrk_dsource3) Marked data loaded from L3 event:0X08D3 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L25_SHR_GRP141 : (Group 141 pm_mrk_dsource3) Marked data loaded from L2.5 shared #Group 142 pm_mrk_dsource4, Marked data sources event:0X08E0 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L35_MOD_GRP142 : (Group 142 pm_mrk_dsource4) Marked data loaded from L3.5 modified event:0X08E1 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L35_SHR_GRP142 : (Group 142 pm_mrk_dsource4) Marked data loaded from L3.5 shared event:0X08E2 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L3MISS_GRP142 : (Group 142 pm_mrk_dsource4) Marked data loaded from L3 miss event:0X08E3 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP142 : (Group 142 pm_mrk_dsource4) Instructions completed #Group 143 pm_mrk_dsource5, Marked data sources event:0X08F0 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_MEM_DP_GRP143 : (Group 143 pm_mrk_dsource5) Marked data loaded from double pump memory event:0X08F1 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_RL2L3_SHR_GRP143 : (Group 143 pm_mrk_dsource5) Marked data loaded from remote L2 or L3 shared event:0X08F2 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP143 : (Group 143 pm_mrk_dsource5) Instructions completed event:0X08F3 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_LMEM_GRP143 : (Group 143 pm_mrk_dsource5) Marked data loaded from local memory #Group 144 pm_mrk_dsource6, Marked data sources event:0X0900 counters:0 um:zero minimum:1000 name:PM_MRK_DATA_FROM_RL2L3_MOD_GRP144 : (Group 144 pm_mrk_dsource6) Marked data loaded from remote L2 or L3 modified event:0X0901 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_RL2L3_SHR_GRP144 : (Group 144 pm_mrk_dsource6) Marked data loaded from remote L2 or L3 shared event:0X0902 counters:2 um:zero minimum:1000 name:PM_MRK_DATA_FROM_RMEM_GRP144 : (Group 144 pm_mrk_dsource6) Marked data loaded from remote memory event:0X0903 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP144 : (Group 144 pm_mrk_dsource6) Instructions completed #Group 145 pm_mrk_rejects, Marked rejects event:0X0910 counters:0 um:zero minimum:1000 name:PM_MRK_LSU_REJECT_ULD_GRP145 : (Group 145 pm_mrk_rejects) Marked unaligned load reject event:0X0911 counters:1 um:zero minimum:1000 name:PM_MRK_LSU_REJECT_UST_GRP145 : (Group 145 pm_mrk_rejects) Marked unaligned store reject event:0X0912 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP145 : (Group 145 pm_mrk_rejects) Instructions completed event:0X0913 counters:3 um:zero minimum:1000 name:PM_MRK_LSU_REJECT_LHS_GRP145 : (Group 145 pm_mrk_rejects) Marked load hit store reject #Group 146 pm_mrk_rejects2, Marked rejects LSU0 event:0X0920 counters:0 um:zero minimum:1000 name:PM_MRK_LSU0_REJECT_LHS_GRP146 : (Group 146 pm_mrk_rejects2) LSU0 marked load hit store reject event:0X0921 counters:1 um:zero minimum:1000 name:PM_MRK_LSU0_REJECT_ULD_GRP146 : (Group 146 pm_mrk_rejects2) LSU0 marked unaligned load reject event:0X0922 counters:2 um:zero minimum:1000 name:PM_MRK_LSU0_REJECT_UST_GRP146 : (Group 146 pm_mrk_rejects2) LSU0 marked unaligned store reject event:0X0923 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP146 : (Group 146 pm_mrk_rejects2) Instructions completed #Group 147 pm_mrk_rejects3, Marked rejects LSU1 event:0X0930 counters:0 um:zero minimum:1000 name:PM_MRK_LSU1_REJECT_LHS_GRP147 : (Group 147 pm_mrk_rejects3) LSU1 marked load hit store reject event:0X0931 counters:1 um:zero minimum:1000 name:PM_MRK_LSU1_REJECT_ULD_GRP147 : (Group 147 pm_mrk_rejects3) LSU1 marked unaligned load reject event:0X0932 counters:2 um:zero minimum:1000 name:PM_MRK_LSU1_REJECT_UST_GRP147 : (Group 147 pm_mrk_rejects3) LSU1 marked unaligned store reject event:0X0933 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP147 : (Group 147 pm_mrk_rejects3) Instructions completed #Group 148 pm_mrk_inst, Marked instruction events event:0X0940 counters:0 um:zero minimum:1000 name:PM_MRK_INST_ISSUED_GRP148 : (Group 148 pm_mrk_inst) Marked instruction issued event:0X0941 counters:1 um:zero minimum:1000 name:PM_MRK_INST_DISP_GRP148 : (Group 148 pm_mrk_inst) Marked instruction dispatched event:0X0942 counters:2 um:zero minimum:1000 name:PM_MRK_INST_FIN_GRP148 : (Group 148 pm_mrk_inst) Marked instruction finished event:0X0943 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP148 : (Group 148 pm_mrk_inst) Instructions completed #Group 149 pm_mrk_fpu_fin, Marked Floating Point instructions finished event:0X0950 counters:0 um:zero minimum:1000 name:PM_MRK_FPU0_FIN_GRP149 : (Group 149 pm_mrk_fpu_fin) Marked instruction FPU0 processing finished event:0X0951 counters:1 um:zero minimum:1000 name:PM_MRK_FPU1_FIN_GRP149 : (Group 149 pm_mrk_fpu_fin) Marked instruction FPU1 processing finished event:0X0952 counters:2 um:zero minimum:1000 name:PM_MRK_FPU_FIN_GRP149 : (Group 149 pm_mrk_fpu_fin) Marked instruction FPU processing finished event:0X0953 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP149 : (Group 149 pm_mrk_fpu_fin) Instructions completed #Group 150 pm_mrk_misc, Marked misc events event:0X0960 counters:0 um:zero minimum:1000 name:PM_MRK_LSU_REJECT_ULD_GRP150 : (Group 150 pm_mrk_misc) Marked unaligned load reject event:0X0961 counters:1 um:zero minimum:1000 name:PM_MRK_FXU_FIN_GRP150 : (Group 150 pm_mrk_misc) Marked instruction FXU processing finished event:0X0962 counters:2 um:zero minimum:1000 name:PM_MRK_DFU_FIN_GRP150 : (Group 150 pm_mrk_misc) DFU marked instruction finish event:0X0963 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP150 : (Group 150 pm_mrk_misc) Instructions completed #Group 151 pm_mrk_misc2, Marked misc events event:0X0970 counters:0 um:zero minimum:1000 name:PM_MRK_STCX_FAIL_GRP151 : (Group 151 pm_mrk_misc2) Marked STCX failed event:0X0971 counters:1 um:zero minimum:1000 name:PM_MRK_IFU_FIN_GRP151 : (Group 151 pm_mrk_misc2) Marked instruction IFU processing finished event:0X0972 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP151 : (Group 151 pm_mrk_misc2) Instructions completed event:0X0973 counters:3 um:zero minimum:1000 name:PM_MRK_INST_TIMEO_GRP151 : (Group 151 pm_mrk_misc2) Marked Instruction finish timeout #Group 152 pm_mrk_misc3, Marked misc events event:0X0980 counters:0 um:zero minimum:1000 name:PM_MRK_VMX_ST_ISSUED_GRP152 : (Group 152 pm_mrk_misc3) Marked VMX store issued event:0X0981 counters:1 um:zero minimum:1000 name:PM_MRK_LSU0_REJECT_L2MISS_GRP152 : (Group 152 pm_mrk_misc3) LSU0 marked L2 miss reject event:0X0982 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP152 : (Group 152 pm_mrk_misc3) Instructions completed event:0X0983 counters:3 um:zero minimum:1000 name:PM_MRK_LSU_DERAT_MISS_GRP152 : (Group 152 pm_mrk_misc3) Marked DERAT miss #Group 153 pm_mrk_misc4, Marked misc events event:0X0990 counters:0 um:zero minimum:10000 name:PM_CYC_GRP153 : (Group 153 pm_mrk_misc4) Processor cycles event:0X0991 counters:1 um:zero minimum:10000 name:PM_CYC_GRP153 : (Group 153 pm_mrk_misc4) Processor cycles event:0X0992 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP153 : (Group 153 pm_mrk_misc4) Instructions completed event:0X0993 counters:3 um:zero minimum:1000 name:PM_MRK_LSU_FIN_GRP153 : (Group 153 pm_mrk_misc4) Marked instruction LSU processing finished #Group 154 pm_mrk_st, Marked stores events event:0X09A0 counters:0 um:zero minimum:1000 name:PM_MRK_ST_CMPL_GRP154 : (Group 154 pm_mrk_st) Marked store instruction completed event:0X09A1 counters:1 um:zero minimum:1000 name:PM_MRK_ST_GPS_GRP154 : (Group 154 pm_mrk_st) Marked store sent to GPS event:0X09A2 counters:2 um:zero minimum:1000 name:PM_MRK_ST_CMPL_INT_GRP154 : (Group 154 pm_mrk_st) Marked store completed with intervention event:0X09A3 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP154 : (Group 154 pm_mrk_st) Instructions completed #Group 155 pm_mrk_pteg, Marked PTEG event:0X09B0 counters:0 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_L2_GRP155 : (Group 155 pm_mrk_pteg) Marked PTEG loaded from L2.5 modified event:0X09B1 counters:1 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_DMEM_GRP155 : (Group 155 pm_mrk_pteg) Marked PTEG loaded from distant memory event:0X09B2 counters:2 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_DL2L3_SHR_GRP155 : (Group 155 pm_mrk_pteg) Marked PTEG loaded from distant L2 or L3 shared event:0X09B3 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP155 : (Group 155 pm_mrk_pteg) Instructions completed #Group 156 pm_mrk_pteg2, Marked PTEG event:0X09C0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP156 : (Group 156 pm_mrk_pteg2) Instructions completed event:0X09C1 counters:1 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_L21_GRP156 : (Group 156 pm_mrk_pteg2) Marked PTEG loaded from private L2 other core event:0X09C2 counters:2 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_L25_MOD_GRP156 : (Group 156 pm_mrk_pteg2) Marked PTEG loaded from L2.5 modified event:0X09C3 counters:3 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_DL2L3_MOD_GRP156 : (Group 156 pm_mrk_pteg2) Marked PTEG loaded from distant L2 or L3 modified #Group 157 pm_mrk_pteg3, Marked PTEG event:0X09D0 counters:0 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_L35_MOD_GRP157 : (Group 157 pm_mrk_pteg3) Marked PTEG loaded from L3.5 modified event:0X09D1 counters:1 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_L35_SHR_GRP157 : (Group 157 pm_mrk_pteg3) Marked PTEG loaded from L3.5 shared event:0X09D2 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP157 : (Group 157 pm_mrk_pteg3) Instructions completed event:0X09D3 counters:3 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_L25_SHR_GRP157 : (Group 157 pm_mrk_pteg3) Marked PTEG loaded from L2.5 shared #Group 158 pm_mrk_pteg4, Marked PTEG event:0X09E0 counters:0 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_MEM_DP_GRP158 : (Group 158 pm_mrk_pteg4) Marked PTEG loaded from double pump memory event:0X09E1 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP158 : (Group 158 pm_mrk_pteg4) Instructions completed event:0X09E2 counters:2 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_L3_GRP158 : (Group 158 pm_mrk_pteg4) Marked PTEG loaded from L3 event:0X09E3 counters:3 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_L2MISS_GRP158 : (Group 158 pm_mrk_pteg4) Marked PTEG loaded from L2 miss #Group 159 pm_mrk_pteg5, Marked PTEG event:0X09F0 counters:0 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_RL2L3_MOD_GRP159 : (Group 159 pm_mrk_pteg5) Marked PTEG loaded from remote L2 or L3 modified event:0X09F1 counters:1 um:zero minimum:10000 name:PM_INST_CMPL_GRP159 : (Group 159 pm_mrk_pteg5) Instructions completed event:0X09F2 counters:2 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_L3MISS_GRP159 : (Group 159 pm_mrk_pteg5) Marked PTEG loaded from L3 miss event:0X09F3 counters:3 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_LMEM_GRP159 : (Group 159 pm_mrk_pteg5) Marked PTEG loaded from local memory #Group 160 pm_mrk_pteg6, Marked PTEG event:0X0A00 counters:0 um:zero minimum:10000 name:PM_CYC_GRP160 : (Group 160 pm_mrk_pteg6) Processor cycles event:0X0A01 counters:1 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_RL2L3_SHR_GRP160 : (Group 160 pm_mrk_pteg6) Marked PTEG loaded from remote L2 or L3 shared event:0X0A02 counters:2 um:zero minimum:1000 name:PM_MRK_PTEG_FROM_RMEM_GRP160 : (Group 160 pm_mrk_pteg6) Marked PTEG loaded from remote memory event:0X0A03 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP160 : (Group 160 pm_mrk_pteg6) Instructions completed #Group 161 pm_mrk_vmx, Marked VMX event:0X0A10 counters:0 um:zero minimum:1000 name:PM_MRK_VMX_COMPLEX_ISSUED_GRP161 : (Group 161 pm_mrk_vmx) Marked VMX instruction issued to complex event:0X0A11 counters:1 um:zero minimum:1000 name:PM_MRK_VMX_FLOAT_ISSUED_GRP161 : (Group 161 pm_mrk_vmx) Marked VMX instruction issued to float event:0X0A12 counters:2 um:zero minimum:1000 name:PM_MRK_VMX_PERMUTE_ISSUED_GRP161 : (Group 161 pm_mrk_vmx) Marked VMX instruction issued to permute event:0X0A13 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP161 : (Group 161 pm_mrk_vmx) Instructions completed #Group 162 pm_mrk_vmx2, Marked VMX event:0X0A20 counters:0 um:zero minimum:1000 name:PM_MRK_VMX0_LD_WRBACK_GRP162 : (Group 162 pm_mrk_vmx2) Marked VMX0 load writeback valid event:0X0A21 counters:1 um:zero minimum:1000 name:PM_MRK_VMX1_LD_WRBACK_GRP162 : (Group 162 pm_mrk_vmx2) Marked VMX1 load writeback valid event:0X0A22 counters:2 um:zero minimum:1000 name:PM_MRK_DTLB_REF_GRP162 : (Group 162 pm_mrk_vmx2) Marked Data TLB reference event:0X0A23 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP162 : (Group 162 pm_mrk_vmx2) Instructions completed #Group 163 pm_mrk_vmx3, Marked VMX event:0X0A30 counters:0 um:zero minimum:1000 name:PM_MRK_VMX_SIMPLE_ISSUED_GRP163 : (Group 163 pm_mrk_vmx3) Marked VMX instruction issued to simple event:0X0A31 counters:1 um:zero minimum:1000 name:PM_VMX_SIMPLE_ISSUED_GRP163 : (Group 163 pm_mrk_vmx3) VMX instruction issued to simple event:0X0A32 counters:2 um:zero minimum:10000 name:PM_CYC_GRP163 : (Group 163 pm_mrk_vmx3) Processor cycles event:0X0A33 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP163 : (Group 163 pm_mrk_vmx3) Instructions completed #Group 164 pm_mrk_fp, Marked FP events event:0X0A40 counters:0 um:zero minimum:1000 name:PM_MRK_FPU0_FIN_GRP164 : (Group 164 pm_mrk_fp) Marked instruction FPU0 processing finished event:0X0A41 counters:1 um:zero minimum:1000 name:PM_MRK_FPU_FIN_GRP164 : (Group 164 pm_mrk_fp) Marked instruction FPU processing finished event:0X0A42 counters:2 um:zero minimum:1000 name:PM_MRK_FPU1_FIN_GRP164 : (Group 164 pm_mrk_fp) Marked instruction FPU1 processing finished event:0X0A43 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP164 : (Group 164 pm_mrk_fp) Instructions completed #Group 165 pm_mrk_derat_ref, Marked DERAT ref event:0X0A50 counters:0 um:zero minimum:1000 name:PM_MRK_DERAT_REF_64K_GRP165 : (Group 165 pm_mrk_derat_ref) Marked DERAT reference for 64K page event:0X0A51 counters:1 um:zero minimum:1000 name:PM_MRK_DERAT_REF_4K_GRP165 : (Group 165 pm_mrk_derat_ref) Marked DERAT reference for 4K page event:0X0A52 counters:2 um:zero minimum:1000 name:PM_MRK_DERAT_REF_16M_GRP165 : (Group 165 pm_mrk_derat_ref) Marked DERAT reference for 16M page event:0X0A53 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP165 : (Group 165 pm_mrk_derat_ref) Instructions completed #Group 166 pm_mrk_derat_miss, Marked DERAT miss event:0X0A60 counters:0 um:zero minimum:1000 name:PM_MRK_DERAT_MISS_64K_GRP166 : (Group 166 pm_mrk_derat_miss) Marked DERAT misses for 64K page event:0X0A61 counters:1 um:zero minimum:1000 name:PM_MRK_DERAT_MISS_4K_GRP166 : (Group 166 pm_mrk_derat_miss) Marked DERAT misses for 4K page event:0X0A62 counters:2 um:zero minimum:1000 name:PM_MRK_DERAT_MISS_16M_GRP166 : (Group 166 pm_mrk_derat_miss) Marked DERAT misses for 16M page event:0X0A63 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP166 : (Group 166 pm_mrk_derat_miss) Instructions completed #Group 167 pm_dcache_edge, D cache - edge event:0X0A70 counters:0 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP167 : (Group 167 pm_dcache_edge) L1 D cache load misses event:0X0A71 counters:1 um:zero minimum:1000 name:PM_LSU_DERAT_MISS_GRP167 : (Group 167 pm_dcache_edge) DERAT misses event:0X0A72 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP167 : (Group 167 pm_dcache_edge) L1 D cache load misses event:0X0A73 counters:3 um:zero minimum:1000 name:PM_LSU_DERAT_MISS_GRP167 : (Group 167 pm_dcache_edge) DERAT misses #Group 168 pm_lsu_lmq_edge, LSU LMQ events - edge event:0X0A80 counters:0 um:zero minimum:1000 name:PM_LSU_LMQ_FULL_CYC_GRP168 : (Group 168 pm_lsu_lmq_edge) Cycles LMQ full event:0X0A81 counters:1 um:zero minimum:1000 name:PM_LSU_LMQ_SRQ_EMPTY_COUNT_GRP168 : (Group 168 pm_lsu_lmq_edge) Periods LMQ and SRQ empty event:0X0A82 counters:2 um:zero minimum:1000 name:PM_LSU_LMQ_SRQ_EMPTY_BOTH_COUNT_GRP168 : (Group 168 pm_lsu_lmq_edge) Periods both threads LMQ and SRQ empty event:0X0A83 counters:3 um:zero minimum:1000 name:PM_LSU0_REJECT_L2MISS_GRP168 : (Group 168 pm_lsu_lmq_edge) LSU0 L2 miss reject #Group 169 pm_gct_edge, GCT events - edge event:0X0A90 counters:0 um:zero minimum:1000 name:PM_GCT_NOSLOT_COUNT_GRP169 : (Group 169 pm_gct_edge) Periods no GCT slot allocated event:0X0A91 counters:1 um:zero minimum:1000 name:PM_GCT_EMPTY_COUNT_GRP169 : (Group 169 pm_gct_edge) Periods GCT empty event:0X0A92 counters:2 um:zero minimum:1000 name:PM_GCT_FULL_COUNT_GRP169 : (Group 169 pm_gct_edge) Periods GCT full event:0X0A93 counters:3 um:zero minimum:1000 name:PM_INST_FETCH_CYC_GRP169 : (Group 169 pm_gct_edge) Cycles at least 1 instruction fetched #Group 170 pm_freq_edge, Frequency events - edge event:0X0AA0 counters:0 um:zero minimum:1000 name:PM_DPU_HELD_THERMAL_COUNT_GRP170 : (Group 170 pm_freq_edge) Periods DISP unit held due to thermal condition event:0X0AA1 counters:1 um:zero minimum:1000 name:PM_DPU_HELD_POWER_COUNT_GRP170 : (Group 170 pm_freq_edge) Periods DISP unit held due to Power Management event:0X0AA2 counters:2 um:zero minimum:1000 name:PM_FREQ_DOWN_GRP170 : (Group 170 pm_freq_edge) Frequency is being slewed down due to Power Management event:0X0AA3 counters:3 um:zero minimum:1000 name:PM_FREQ_UP_GRP170 : (Group 170 pm_freq_edge) Frequency is being slewed up due to Power Management #Group 171 pm_disp_wait_edge, Dispatch stalls - edge event:0X0AB0 counters:0 um:zero minimum:1000 name:PM_L1_ICACHE_MISS_GRP171 : (Group 171 pm_disp_wait_edge) L1 I cache miss count event:0X0AB1 counters:1 um:zero minimum:1000 name:PM_DPU_WT_IC_MISS_COUNT_GRP171 : (Group 171 pm_disp_wait_edge) Periods DISP unit is stalled due to I cache miss event:0X0AB2 counters:2 um:zero minimum:1000 name:PM_DPU_WT_COUNT_GRP171 : (Group 171 pm_disp_wait_edge) Periods DISP unit is stalled waiting for instructions event:0X0AB3 counters:3 um:zero minimum:1000 name:PM_DPU_WT_BR_MPRED_COUNT_GRP171 : (Group 171 pm_disp_wait_edge) Periods DISP unit is stalled due to branch misprediction #Group 172 pm_edge1, EDGE event group event:0X0AC0 counters:0 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP172 : (Group 172 pm_edge1) L1 D cache load misses event:0X0AC1 counters:1 um:zero minimum:1000 name:PM_DPU_WT_IC_MISS_GRP172 : (Group 172 pm_edge1) Cycles DISP unit is stalled due to I cache miss event:0X0AC2 counters:2 um:zero minimum:1000 name:PM_LLA_COUNT_GRP172 : (Group 172 pm_edge1) Transitions into Load Look Ahead mode event:0X0AC3 counters:3 um:zero minimum:1000 name:PM_LLA_CYC_GRP172 : (Group 172 pm_edge1) Load Look Ahead Active #Group 173 pm_edge2, EDGE event group event:0X0AD0 counters:0 um:zero minimum:1000 name:PM_0INST_FETCH_COUNT_GRP173 : (Group 173 pm_edge2) Periods with no instructions fetched event:0X0AD1 counters:1 um:zero minimum:1000 name:PM_0INST_FETCH_GRP173 : (Group 173 pm_edge2) No instructions fetched event:0X0AD2 counters:2 um:zero minimum:1000 name:PM_IBUF_FULL_COUNT_GRP173 : (Group 173 pm_edge2) Periods instruction buffer full event:0X0AD3 counters:3 um:zero minimum:1000 name:PM_IBUF_FULL_CYC_GRP173 : (Group 173 pm_edge2) Cycles instruction buffer full #Group 174 pm_edge3, EDGE event group event:0X0AE0 counters:0 um:zero minimum:1000 name:PM_RUN_COUNT_GRP174 : (Group 174 pm_edge3) Run Periods event:0X0AE1 counters:1 um:zero minimum:10000 name:PM_RUN_CYC_GRP174 : (Group 174 pm_edge3) Run cycles event:0X0AE2 counters:2 um:zero minimum:1000 name:PM_INST_TABLEWALK_COUNT_GRP174 : (Group 174 pm_edge3) Periods doing instruction tablewalks event:0X0AE3 counters:3 um:zero minimum:1000 name:PM_INST_TABLEWALK_CYC_GRP174 : (Group 174 pm_edge3) Cycles doing instruction tablewalks #Group 175 pm_edge4, EDGE event group event:0X0AF0 counters:0 um:zero minimum:1000 name:PM_GCT_FULL_COUNT_GRP175 : (Group 175 pm_edge4) Periods GCT full event:0X0AF1 counters:1 um:zero minimum:1000 name:PM_GCT_FULL_CYC_GRP175 : (Group 175 pm_edge4) Cycles GCT full event:0X0AF2 counters:2 um:zero minimum:1000 name:PM_NO_ITAG_COUNT_GRP175 : (Group 175 pm_edge4) Periods no ITAG available event:0X0AF3 counters:3 um:zero minimum:1000 name:PM_NO_ITAG_CYC_GRP175 : (Group 175 pm_edge4) Cyles no ITAG available #Group 176 pm_edge5, EDGE event group event:0X0B00 counters:0 um:zero minimum:1000 name:PM_THRD_ONE_RUN_COUNT_GRP176 : (Group 176 pm_edge5) Periods one of the threads in run cycles event:0X0B01 counters:1 um:zero minimum:1000 name:PM_HV_COUNT_GRP176 : (Group 176 pm_edge5) Hypervisor Periods event:0X0B02 counters:2 um:zero minimum:1000 name:PM_SYNC_COUNT_GRP176 : (Group 176 pm_edge5) SYNC instructions completed event:0X0B03 counters:3 um:zero minimum:1000 name:PM_SYNC_CYC_GRP176 : (Group 176 pm_edge5) Sync duration #Group 177 pm_noedge5, EDGE event group event:0X0B10 counters:0 um:zero minimum:1000 name:PM_THRD_ONE_RUN_CYC_GRP177 : (Group 177 pm_noedge5) One of the threads in run cycles event:0X0B11 counters:1 um:zero minimum:1000 name:PM_HV_CYC_GRP177 : (Group 177 pm_noedge5) Hypervisor Cycles event:0X0B12 counters:2 um:zero minimum:1000 name:PM_SYNC_COUNT_GRP177 : (Group 177 pm_noedge5) SYNC instructions completed event:0X0B13 counters:3 um:zero minimum:1000 name:PM_SYNC_CYC_GRP177 : (Group 177 pm_noedge5) Sync duration #Group 178 pm_edge6, EDGE event group event:0X0B20 counters:0 um:zero minimum:1000 name:PM_DPU_HELD_THERMAL_COUNT_GRP178 : (Group 178 pm_edge6) Periods DISP unit held due to thermal condition event:0X0B21 counters:1 um:zero minimum:1000 name:PM_DPU_HELD_COUNT_GRP178 : (Group 178 pm_edge6) Periods DISP unit held event:0X0B22 counters:2 um:zero minimum:1000 name:PM_DPU_WT_COUNT_GRP178 : (Group 178 pm_edge6) Periods DISP unit is stalled waiting for instructions event:0X0B23 counters:3 um:zero minimum:1000 name:PM_DPU_WT_BR_MPRED_COUNT_GRP178 : (Group 178 pm_edge6) Periods DISP unit is stalled due to branch misprediction #Group 179 pm_noedge6, EDGE event group event:0X0B30 counters:0 um:zero minimum:1000 name:PM_DPU_HELD_THERMAL_GRP179 : (Group 179 pm_noedge6) DISP unit held due to thermal condition event:0X0B31 counters:1 um:zero minimum:1000 name:PM_DPU_HELD_GRP179 : (Group 179 pm_noedge6) DISP unit held event:0X0B32 counters:2 um:zero minimum:1000 name:PM_DPU_WT_GRP179 : (Group 179 pm_noedge6) Cycles DISP unit is stalled waiting for instructions event:0X0B33 counters:3 um:zero minimum:1000 name:PM_DPU_WT_BR_MPRED_GRP179 : (Group 179 pm_noedge6) Cycles DISP unit is stalled due to branch misprediction #Group 180 pm_edge7, EDGE event group event:0X0B40 counters:0 um:zero minimum:1000 name:PM_GCT_NOSLOT_COUNT_GRP180 : (Group 180 pm_edge7) Periods no GCT slot allocated event:0X0B41 counters:1 um:zero minimum:1000 name:PM_GCT_EMPTY_COUNT_GRP180 : (Group 180 pm_edge7) Periods GCT empty event:0X0B42 counters:2 um:zero minimum:1000 name:PM_LSU_LMQ_SRQ_EMPTY_BOTH_COUNT_GRP180 : (Group 180 pm_edge7) Periods both threads LMQ and SRQ empty event:0X0B43 counters:3 um:zero minimum:1000 name:PM_LSU_SRQ_EMPTY_COUNT_GRP180 : (Group 180 pm_edge7) Periods SRQ empty #Group 181 pm_noedge7, NOEDGE event group event:0X0B50 counters:0 um:zero minimum:1000 name:PM_GCT_NOSLOT_CYC_GRP181 : (Group 181 pm_noedge7) Cycles no GCT slot allocated event:0X0B51 counters:1 um:zero minimum:1000 name:PM_GCT_EMPTY_CYC_GRP181 : (Group 181 pm_noedge7) Cycles GCT empty event:0X0B52 counters:2 um:zero minimum:1000 name:PM_LSU_LMQ_SRQ_EMPTY_BOTH_CYC_GRP181 : (Group 181 pm_noedge7) Cycles both threads LMQ and SRQ empty event:0X0B53 counters:3 um:zero minimum:1000 name:PM_LSU_SRQ_EMPTY_CYC_GRP181 : (Group 181 pm_noedge7) Cycles SRQ empty #Group 182 pm_edge8, EDGE event group event:0X0B60 counters:0 um:zero minimum:1000 name:PM_SYNC_COUNT_GRP182 : (Group 182 pm_edge8) SYNC instructions completed event:0X0B61 counters:1 um:zero minimum:1000 name:PM_LSU_LMQ_SRQ_EMPTY_COUNT_GRP182 : (Group 182 pm_edge8) Periods LMQ and SRQ empty event:0X0B62 counters:2 um:zero minimum:1000 name:PM_SYNC_CYC_GRP182 : (Group 182 pm_edge8) Sync duration event:0X0B63 counters:3 um:zero minimum:1000 name:PM_LSU_DERAT_MISS_GRP182 : (Group 182 pm_edge8) DERAT misses #Group 183 pm_noedge8, NOEDGE event group event:0X0B70 counters:0 um:zero minimum:1000 name:PM_SYNC_CYC_GRP183 : (Group 183 pm_noedge8) Sync duration event:0X0B71 counters:1 um:zero minimum:1000 name:PM_LSU_LMQ_SRQ_EMPTY_CYC_GRP183 : (Group 183 pm_noedge8) Cycles LMQ and SRQ empty event:0X0B72 counters:2 um:zero minimum:1000 name:PM_SYNC_COUNT_GRP183 : (Group 183 pm_noedge8) SYNC instructions completed event:0X0B73 counters:3 um:zero minimum:1000 name:PM_LSU_DERAT_MISS_CYC_GRP183 : (Group 183 pm_noedge8) DERAT miss latency #Group 184 pm_edge9, EDGE event group event:0X0B80 counters:0 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP184 : (Group 184 pm_edge9) L1 D cache store misses event:0X0B81 counters:1 um:zero minimum:1000 name:PM_DPU_WT_IC_MISS_COUNT_GRP184 : (Group 184 pm_edge9) Periods DISP unit is stalled due to I cache miss event:0X0B82 counters:2 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP184 : (Group 184 pm_edge9) L1 D cache load misses event:0X0B83 counters:3 um:zero minimum:1000 name:PM_LD_REF_L1_GRP184 : (Group 184 pm_edge9) L1 D cache load references #Group 185 pm_edge10, EDGE event group event:0X0B90 counters:0 um:zero minimum:1000 name:PM_DPU_HELD_COMPLETION_GRP185 : (Group 185 pm_edge10) DISP unit held due to completion holding dispatch event:0X0B91 counters:1 um:zero minimum:1000 name:PM_DPU_HELD_POWER_COUNT_GRP185 : (Group 185 pm_edge10) Periods DISP unit held due to Power Management event:0X0B92 counters:2 um:zero minimum:1000 name:PM_DPU_HELD_CR_LOGICAL_GRP185 : (Group 185 pm_edge10) DISP unit held due to CR, LR or CTR updated by CR logical, MTCRF, MTLR or MTCTR event:0X0B93 counters:3 um:zero minimum:1000 name:PM_THRD_BOTH_RUN_COUNT_GRP185 : (Group 185 pm_edge10) Periods both threads in run cycles #Group 186 pm_noedge10, NOEDGE event group event:0X0BA0 counters:0 um:zero minimum:1000 name:PM_DPU_HELD_COMPLETION_GRP186 : (Group 186 pm_noedge10) DISP unit held due to completion holding dispatch event:0X0BA1 counters:1 um:zero minimum:1000 name:PM_DPU_HELD_POWER_GRP186 : (Group 186 pm_noedge10) DISP unit held due to Power Management event:0X0BA2 counters:2 um:zero minimum:1000 name:PM_DPU_HELD_CR_LOGICAL_GRP186 : (Group 186 pm_noedge10) DISP unit held due to CR, LR or CTR updated by CR logical, MTCRF, MTLR or MTCTR event:0X0BA3 counters:3 um:zero minimum:1000 name:PM_THRD_BOTH_RUN_CYC_GRP186 : (Group 186 pm_noedge10) Both threads in run cycles #Group 187 pm_hpm1, HPM group event:0X0BB0 counters:0 um:zero minimum:1000 name:PM_FPU_1FLOP_GRP187 : (Group 187 pm_hpm1) FPU executed one flop instruction event:0X0BB1 counters:1 um:zero minimum:1000 name:PM_FPU_FMA_GRP187 : (Group 187 pm_hpm1) FPU executed multiply-add instruction event:0X0BB2 counters:2 um:zero minimum:1000 name:PM_FPU_FSQRT_FDIV_GRP187 : (Group 187 pm_hpm1) FPU executed FSQRT or FDIV instruction event:0X0BB3 counters:3 um:zero minimum:10000 name:PM_CYC_GRP187 : (Group 187 pm_hpm1) Processor cycles #Group 188 pm_hpm2, HPM group event:0X0BC0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP188 : (Group 188 pm_hpm2) Instructions completed event:0X0BC1 counters:1 um:zero minimum:1000 name:PM_LSU_LDF_GRP188 : (Group 188 pm_hpm2) LSU executed Floating Point load instruction event:0X0BC2 counters:2 um:zero minimum:1000 name:PM_FPU_STF_GRP188 : (Group 188 pm_hpm2) FPU executed store instruction event:0X0BC3 counters:3 um:zero minimum:10000 name:PM_CYC_GRP188 : (Group 188 pm_hpm2) Processor cycles #Group 189 pm_hpm3, HPM group event:0X0BD0 counters:0 um:zero minimum:10000 name:PM_CYC_GRP189 : (Group 189 pm_hpm3) Processor cycles event:0X0BD1 counters:1 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP189 : (Group 189 pm_hpm3) L1 D cache load misses event:0X0BD2 counters:2 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP189 : (Group 189 pm_hpm3) L1 D cache store misses event:0X0BD3 counters:3 um:zero minimum:10000 name:PM_INST_CMPL_GRP189 : (Group 189 pm_hpm3) Instructions completed #Group 190 pm_hpm4, HPM group event:0X0BE0 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP190 : (Group 190 pm_hpm4) Instructions completed event:0X0BE1 counters:1 um:zero minimum:1000 name:PM_INST_DISP_GRP190 : (Group 190 pm_hpm4) Instructions dispatched event:0X0BE2 counters:2 um:zero minimum:1000 name:PM_LD_REF_L1_GRP190 : (Group 190 pm_hpm4) L1 D cache load references event:0X0BE3 counters:3 um:zero minimum:1000 name:PM_ST_REF_L1_GRP190 : (Group 190 pm_hpm4) L1 D cache store references #Group 191 pm_hpm5, HPM group event:0X0BF0 counters:0 um:zero minimum:1000 name:PM_FPU_FIN_GRP191 : (Group 191 pm_hpm5) FPU produced a result event:0X0BF1 counters:1 um:zero minimum:10000 name:PM_CYC_GRP191 : (Group 191 pm_hpm5) Processor cycles event:0X0BF2 counters:2 um:zero minimum:1000 name:PM_FXU0_FIN_GRP191 : (Group 191 pm_hpm5) FXU0 produced a result event:0X0BF3 counters:3 um:zero minimum:1000 name:PM_FXU1_FIN_GRP191 : (Group 191 pm_hpm5) FXU1 produced a result #Group 192 pm_hpm6, HPM group event:0X0C00 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L2_GRP192 : (Group 192 pm_hpm6) Data loaded from L2 event:0X0C01 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_L21_GRP192 : (Group 192 pm_hpm6) Data loaded from private L2 other core event:0X0C02 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_L25_MOD_GRP192 : (Group 192 pm_hpm6) Data loaded from L2.5 modified event:0X0C03 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_L25_SHR_GRP192 : (Group 192 pm_hpm6) Data loaded from L2.5 shared #Group 193 pm_hpm7, HPM group event:0X0C10 counters:0 um:zero minimum:1000 name:PM_DATA_FROM_L35_MOD_GRP193 : (Group 193 pm_hpm7) Data loaded from L3.5 modified event:0X0C11 counters:1 um:zero minimum:1000 name:PM_DATA_FROM_L35_SHR_GRP193 : (Group 193 pm_hpm7) Data loaded from L3.5 shared event:0X0C12 counters:2 um:zero minimum:1000 name:PM_DATA_FROM_L3_GRP193 : (Group 193 pm_hpm7) Data loaded from L3 event:0X0C13 counters:3 um:zero minimum:10000 name:PM_CYC_GRP193 : (Group 193 pm_hpm7) Processor cycles #Group 194 pm_hpm8, HPM group event:0X0C20 counters:0 um:zero minimum:1000 name:PM_FPU_1FLOP_GRP194 : (Group 194 pm_hpm8) FPU executed one flop instruction event:0X0C21 counters:1 um:zero minimum:1000 name:PM_FPU_FMA_GRP194 : (Group 194 pm_hpm8) FPU executed multiply-add instruction event:0X0C22 counters:2 um:zero minimum:1000 name:PM_FPU_STF_GRP194 : (Group 194 pm_hpm8) FPU executed store instruction event:0X0C23 counters:3 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP194 : (Group 194 pm_hpm8) L1 D cache load misses #Group 195 pm_hpm9, HPM group event:0X0C30 counters:0 um:zero minimum:1000 name:PM_LD_MISS_L1_GRP195 : (Group 195 pm_hpm9) L1 D cache load misses event:0X0C31 counters:1 um:zero minimum:10000 name:PM_CYC_GRP195 : (Group 195 pm_hpm9) Processor cycles event:0X0C32 counters:2 um:zero minimum:1000 name:PM_LSU_LDF_GRP195 : (Group 195 pm_hpm9) LSU executed Floating Point load instruction event:0X0C33 counters:3 um:zero minimum:1000 name:PM_ST_MISS_L1_GRP195 : (Group 195 pm_hpm9) L1 D cache store misses #Group 196 pm_hpm10, HPM group event:0X0C40 counters:0 um:zero minimum:10000 name:PM_INST_CMPL_GRP196 : (Group 196 pm_hpm10) Instructions completed event:0X0C41 counters:1 um:zero minimum:1000 name:PM_L2_MISS_GRP196 : (Group 196 pm_hpm10) L2 cache misses event:0X0C42 counters:2 um:zero minimum:1000 name:PM_INST_FROM_L3MISS_GRP196 : (Group 196 pm_hpm10) Instruction fetched missed L3 event:0X0C43 counters:3 um:zero minimum:1000 name:PM_DATA_FROM_L3MISS_GRP196 : (Group 196 pm_hpm10) Data loaded from private L3 miss #Group 197 pm_mrk_derat_ref2, Marked DERAT ref event:0X0C50 counters:0 um:zero minimum:1000 name:PM_MRK_DERAT_REF_64K_GRP197 : (Group 197 pm_mrk_derat_ref2) Marked DERAT reference for 64K page event:0X0C51 counters:1 um:zero minimum:1000 name:PM_MRK_DERAT_REF_4K_GRP197 : (Group 197 pm_mrk_derat_ref2) Marked DERAT reference for 4K page event:0X0C52 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP197 : (Group 197 pm_mrk_derat_ref2) Instructions completed event:0X0C53 counters:3 um:zero minimum:1000 name:PM_MRK_DERAT_REF_16G_GRP197 : (Group 197 pm_mrk_derat_ref2) Marked DERAT reference for 16G page #Group 198 pm_mrk_derat_miss2, Marked DERAT miss event:0X0C60 counters:0 um:zero minimum:1000 name:PM_MRK_DERAT_MISS_64K_GRP198 : (Group 198 pm_mrk_derat_miss2) Marked DERAT misses for 64K page event:0X0C61 counters:1 um:zero minimum:1000 name:PM_MRK_DERAT_MISS_4K_GRP198 : (Group 198 pm_mrk_derat_miss2) Marked DERAT misses for 4K page event:0X0C62 counters:2 um:zero minimum:10000 name:PM_INST_CMPL_GRP198 : (Group 198 pm_mrk_derat_miss2) Instructions completed event:0X0C63 counters:3 um:zero minimum:1000 name:PM_MRK_DERAT_MISS_16G_GRP198 : (Group 198 pm_mrk_derat_miss2) Marked DERAT misses for 16G page oprofile-0.9.9/events/ppc64/power6/unit_masks0000664000076400007640000000034612175510133016066 00000000000000# # Copyright OProfile authors # Copyright (c) International Business Machines, 2006. # Contributed by Dave Nomura . # # ppc64 POWER6 possible unit masks # name:zero type:mandatory default:0x0 0x0 No unit mask oprofile-0.9.9/events/ppc64/power6/event_mappings0000664000076400007640000020016712175510133016733 00000000000000# # Copyright OProfile authors # Copyright (c) International Business Machines, 2007. # Contributed by Dave Nomura . # #Mapping of event groups to MMCR values #Group Default event:0X001 mmcr0:0X00000000 mmcr1:0X000000000A02121E mmcra:0X00000000 #Group 1 pm_utilization, CPI and utilization data event:0X0010 mmcr0:0X00000000 mmcr1:0X000000000A02121E mmcra:0X00000000 event:0X0011 mmcr0:0X00000000 mmcr1:0X000000000A02121E mmcra:0X00000000 event:0X0012 mmcr0:0X00000000 mmcr1:0X000000000A02121E mmcra:0X00000000 event:0X0013 mmcr0:0X00000000 mmcr1:0X000000000A02121E mmcra:0X00000000 #Group 2 pm_utilization_capacity, CPU utilization and capacity event:0X0020 mmcr0:0X00000000 mmcr1:0X00000000FA1EF4F4 mmcra:0X00000000 event:0X0021 mmcr0:0X00000000 mmcr1:0X00000000FA1EF4F4 mmcra:0X00000000 event:0X0022 mmcr0:0X00000000 mmcr1:0X00000000FA1EF4F4 mmcra:0X00000000 event:0X0023 mmcr0:0X00000000 mmcr1:0X00000000FA1EF4F4 mmcra:0X00000000 #Group 3 pm_branch, Branch operations event:0X0030 mmcr0:0X00000000 mmcr1:0X04000000A2A8808A mmcra:0X00000000 event:0X0031 mmcr0:0X00000000 mmcr1:0X04000000A2A8808A mmcra:0X00000000 event:0X0032 mmcr0:0X00000000 mmcr1:0X04000000A2A8808A mmcra:0X00000000 event:0X0033 mmcr0:0X00000000 mmcr1:0X04000000A2A8808A mmcra:0X00000000 #Group 4 pm_branch2, Branch operations event:0X0040 mmcr0:0X00000000 mmcr1:0X04000000A4A68E8C mmcra:0X00000000 event:0X0041 mmcr0:0X00000000 mmcr1:0X04000000A4A68E8C mmcra:0X00000000 event:0X0042 mmcr0:0X00000000 mmcr1:0X04000000A4A68E8C mmcra:0X00000000 event:0X0043 mmcr0:0X00000000 mmcr1:0X04000000A4A68E8C mmcra:0X00000000 #Group 5 pm_branch3, Branch operations event:0X0050 mmcr0:0X00000000 mmcr1:0X04000000A0A28486 mmcra:0X00000000 event:0X0051 mmcr0:0X00000000 mmcr1:0X04000000A0A28486 mmcra:0X00000000 event:0X0052 mmcr0:0X00000000 mmcr1:0X04000000A0A28486 mmcra:0X00000000 event:0X0053 mmcr0:0X00000000 mmcr1:0X04000000A0A28486 mmcra:0X00000000 #Group 6 pm_branch4, Branch operations event:0X0060 mmcr0:0X00000000 mmcr1:0X04000000A8AA8C8E mmcra:0X00000000 event:0X0061 mmcr0:0X00000000 mmcr1:0X04000000A8AA8C8E mmcra:0X00000000 event:0X0062 mmcr0:0X00000000 mmcr1:0X04000000A8AA8C8E mmcra:0X00000000 event:0X0063 mmcr0:0X00000000 mmcr1:0X04000000A8AA8C8E mmcra:0X00000000 #Group 7 pm_branch5, Branch operations event:0X0070 mmcr0:0X00000000 mmcr1:0X04040000A052C652 mmcra:0X00000000 event:0X0071 mmcr0:0X00000000 mmcr1:0X04040000A052C652 mmcra:0X00000000 event:0X0072 mmcr0:0X00000000 mmcr1:0X04040000A052C652 mmcra:0X00000000 event:0X0073 mmcr0:0X00000000 mmcr1:0X04040000A052C652 mmcra:0X00000000 #Group 8 pm_dsource, Data source event:0X0080 mmcr0:0X00000000 mmcr1:0X0000000058585656 mmcra:0X00000000 event:0X0081 mmcr0:0X00000000 mmcr1:0X0000000058585656 mmcra:0X00000000 event:0X0082 mmcr0:0X00000000 mmcr1:0X0000000058585656 mmcra:0X00000000 event:0X0083 mmcr0:0X00000000 mmcr1:0X0000000058585656 mmcra:0X00000000 #Group 9 pm_dsource2, Data sources event:0X0090 mmcr0:0X00000000 mmcr1:0X000000005A5A5856 mmcra:0X00000000 event:0X0091 mmcr0:0X00000000 mmcr1:0X000000005A5A5856 mmcra:0X00000000 event:0X0092 mmcr0:0X00000000 mmcr1:0X000000005A5A5856 mmcra:0X00000000 event:0X0093 mmcr0:0X00000000 mmcr1:0X000000005A5A5856 mmcra:0X00000000 #Group 10 pm_dsource3, Data sources event:0X00A0 mmcr0:0X00000000 mmcr1:0X000000005A5A5A5A mmcra:0X00000000 event:0X00A1 mmcr0:0X00000000 mmcr1:0X000000005A5A5A5A mmcra:0X00000000 event:0X00A2 mmcr0:0X00000000 mmcr1:0X000000005A5A5A5A mmcra:0X00000000 event:0X00A3 mmcr0:0X00000000 mmcr1:0X000000005A5A5A5A mmcra:0X00000000 #Group 11 pm_dsource4, Data sources event:0X00B0 mmcr0:0X00000000 mmcr1:0X000000005C5C5C5C mmcra:0X00000000 event:0X00B1 mmcr0:0X00000000 mmcr1:0X000000005C5C5C5C mmcra:0X00000000 event:0X00B2 mmcr0:0X00000000 mmcr1:0X000000005C5C5C5C mmcra:0X00000000 event:0X00B3 mmcr0:0X00000000 mmcr1:0X000000005C5C5C5C mmcra:0X00000000 #Group 12 pm_dsource5, Data sources event:0X00C0 mmcr0:0X00000000 mmcr1:0X000000005E5E5E5E mmcra:0X00000000 event:0X00C1 mmcr0:0X00000000 mmcr1:0X000000005E5E5E5E mmcra:0X00000000 event:0X00C2 mmcr0:0X00000000 mmcr1:0X000000005E5E5E5E mmcra:0X00000000 event:0X00C3 mmcr0:0X00000000 mmcr1:0X000000005E5E5E5E mmcra:0X00000000 #Group 13 pm_dlatencies, Data latencies event:0X00D0 mmcr0:0X00000000 mmcr1:0X000000000C281E24 mmcra:0X00000000 event:0X00D1 mmcr0:0X00000000 mmcr1:0X000000000C281E24 mmcra:0X00000000 event:0X00D2 mmcr0:0X00000000 mmcr1:0X000000000C281E24 mmcra:0X00000000 event:0X00D3 mmcr0:0X00000000 mmcr1:0X000000000C281E24 mmcra:0X00000000 #Group 14 pm_dlatencies2, Data latencies event:0X00E0 mmcr0:0X00000000 mmcr1:0X00000000022C1E2A mmcra:0X00000000 event:0X00E1 mmcr0:0X00000000 mmcr1:0X00000000022C1E2A mmcra:0X00000000 event:0X00E2 mmcr0:0X00000000 mmcr1:0X00000000022C1E2A mmcra:0X00000000 event:0X00E3 mmcr0:0X00000000 mmcr1:0X00000000022C1E2A mmcra:0X00000000 #Group 15 pm_dlatencies3, Data latencies event:0X00F0 mmcr0:0X00000000 mmcr1:0X00000000022E5E2C mmcra:0X00000000 event:0X00F1 mmcr0:0X00000000 mmcr1:0X00000000022E5E2C mmcra:0X00000000 event:0X00F2 mmcr0:0X00000000 mmcr1:0X00000000022E5E2C mmcra:0X00000000 event:0X00F3 mmcr0:0X00000000 mmcr1:0X00000000022E5E2C mmcra:0X00000000 #Group 16 pm_dlatencies4, Data latencies event:0X0100 mmcr0:0X00000000 mmcr1:0X000000005A2A5C26 mmcra:0X00000000 event:0X0101 mmcr0:0X00000000 mmcr1:0X000000005A2A5C26 mmcra:0X00000000 event:0X0102 mmcr0:0X00000000 mmcr1:0X000000005A2A5C26 mmcra:0X00000000 event:0X0103 mmcr0:0X00000000 mmcr1:0X000000005A2A5C26 mmcra:0X00000000 #Group 17 pm_dlatencies5, Data latencies event:0X0110 mmcr0:0X00000000 mmcr1:0X000000005C225828 mmcra:0X00000000 event:0X0111 mmcr0:0X00000000 mmcr1:0X000000005C225828 mmcra:0X00000000 event:0X0112 mmcr0:0X00000000 mmcr1:0X000000005C225828 mmcra:0X00000000 event:0X0113 mmcr0:0X00000000 mmcr1:0X000000005C225828 mmcra:0X00000000 #Group 18 pm_dlatencies6, Data latencies event:0X0120 mmcr0:0X00000000 mmcr1:0X000000005E245A2E mmcra:0X00000000 event:0X0121 mmcr0:0X00000000 mmcr1:0X000000005E245A2E mmcra:0X00000000 event:0X0122 mmcr0:0X00000000 mmcr1:0X000000005E245A2E mmcra:0X00000000 event:0X0123 mmcr0:0X00000000 mmcr1:0X000000005E245A2E mmcra:0X00000000 #Group 19 pm_dlatencies7, Data latencies event:0X0130 mmcr0:0X00000000 mmcr1:0X000000005820120E mmcra:0X00000000 event:0X0131 mmcr0:0X00000000 mmcr1:0X000000005820120E mmcra:0X00000000 event:0X0132 mmcr0:0X00000000 mmcr1:0X000000005820120E mmcra:0X00000000 event:0X0133 mmcr0:0X00000000 mmcr1:0X000000005820120E mmcra:0X00000000 #Group 20 pm_dlatencies8, Data latencies event:0X0140 mmcr0:0X00000000 mmcr1:0X0000000010581E20 mmcra:0X00000000 event:0X0141 mmcr0:0X00000000 mmcr1:0X0000000010581E20 mmcra:0X00000000 event:0X0142 mmcr0:0X00000000 mmcr1:0X0000000010581E20 mmcra:0X00000000 event:0X0143 mmcr0:0X00000000 mmcr1:0X0000000010581E20 mmcra:0X00000000 #Group 21 pm_dlatencies9, Data latencies event:0X0150 mmcr0:0X00000000 mmcr1:0X00000000122C125E mmcra:0X00000000 event:0X0151 mmcr0:0X00000000 mmcr1:0X00000000122C125E mmcra:0X00000000 event:0X0152 mmcr0:0X00000000 mmcr1:0X00000000122C125E mmcra:0X00000000 event:0X0153 mmcr0:0X00000000 mmcr1:0X00000000122C125E mmcra:0X00000000 #Group 22 pm_dlatencies10, Data latencies event:0X0160 mmcr0:0X00000000 mmcr1:0X000000005A261E26 mmcra:0X00000000 event:0X0161 mmcr0:0X00000000 mmcr1:0X000000005A261E26 mmcra:0X00000000 event:0X0162 mmcr0:0X00000000 mmcr1:0X000000005A261E26 mmcra:0X00000000 event:0X0163 mmcr0:0X00000000 mmcr1:0X000000005A261E26 mmcra:0X00000000 #Group 23 pm_isource, Instruction sources event:0X0170 mmcr0:0X00000000 mmcr1:0X0040000040404654 mmcra:0X00000000 event:0X0171 mmcr0:0X00000000 mmcr1:0X0040000040404654 mmcra:0X00000000 event:0X0172 mmcr0:0X00000000 mmcr1:0X0040000040404654 mmcra:0X00000000 event:0X0173 mmcr0:0X00000000 mmcr1:0X0040000040404654 mmcra:0X00000000 #Group 24 pm_isource2, Instruction sources event:0X0180 mmcr0:0X00000000 mmcr1:0X0040000046464046 mmcra:0X00000000 event:0X0181 mmcr0:0X00000000 mmcr1:0X0040000046464046 mmcra:0X00000000 event:0X0182 mmcr0:0X00000000 mmcr1:0X0040000046464046 mmcra:0X00000000 event:0X0183 mmcr0:0X00000000 mmcr1:0X0040000046464046 mmcra:0X00000000 #Group 25 pm_isource3, Instruction sources event:0X0190 mmcr0:0X00000000 mmcr1:0X0040000044444444 mmcra:0X00000000 event:0X0191 mmcr0:0X00000000 mmcr1:0X0040000044444444 mmcra:0X00000000 event:0X0192 mmcr0:0X00000000 mmcr1:0X0040000044444444 mmcra:0X00000000 event:0X0193 mmcr0:0X00000000 mmcr1:0X0040000044444444 mmcra:0X00000000 #Group 26 pm_isource4, Instruction sources event:0X01A0 mmcr0:0X00000000 mmcr1:0X0040000042424242 mmcra:0X00000000 event:0X01A1 mmcr0:0X00000000 mmcr1:0X0040000042424242 mmcra:0X00000000 event:0X01A2 mmcr0:0X00000000 mmcr1:0X0040000042424242 mmcra:0X00000000 event:0X01A3 mmcr0:0X00000000 mmcr1:0X0040000042424242 mmcra:0X00000000 #Group 27 pm_isource5, Instruction sources event:0X01B0 mmcr0:0X00000000 mmcr1:0X0040000040405454 mmcra:0X00000000 event:0X01B1 mmcr0:0X00000000 mmcr1:0X0040000040405454 mmcra:0X00000000 event:0X01B2 mmcr0:0X00000000 mmcr1:0X0040000040405454 mmcra:0X00000000 event:0X01B3 mmcr0:0X00000000 mmcr1:0X0040000040405454 mmcra:0X00000000 #Group 28 pm_pteg, PTEG sources event:0X01C0 mmcr0:0X00000000 mmcr1:0X0001000048484E4E mmcra:0X00000000 event:0X01C1 mmcr0:0X00000000 mmcr1:0X0001000048484E4E mmcra:0X00000000 event:0X01C2 mmcr0:0X00000000 mmcr1:0X0001000048484E4E mmcra:0X00000000 event:0X01C3 mmcr0:0X00000000 mmcr1:0X0001000048484E4E mmcra:0X00000000 #Group 29 pm_pteg2, PTEG sources event:0X01D0 mmcr0:0X00000000 mmcr1:0X000100002848484C mmcra:0X00000000 event:0X01D1 mmcr0:0X00000000 mmcr1:0X000100002848484C mmcra:0X00000000 event:0X01D2 mmcr0:0X00000000 mmcr1:0X000100002848484C mmcra:0X00000000 event:0X01D3 mmcr0:0X00000000 mmcr1:0X000100002848484C mmcra:0X00000000 #Group 30 pm_pteg3, PTEG sources event:0X01E0 mmcr0:0X00000000 mmcr1:0X000100004E4E284A mmcra:0X00000000 event:0X01E1 mmcr0:0X00000000 mmcr1:0X000100004E4E284A mmcra:0X00000000 event:0X01E2 mmcr0:0X00000000 mmcr1:0X000100004E4E284A mmcra:0X00000000 event:0X01E3 mmcr0:0X00000000 mmcr1:0X000100004E4E284A mmcra:0X00000000 #Group 31 pm_pteg4, PTEG sources event:0X01F0 mmcr0:0X00000000 mmcr1:0X000100004A4A4A4A mmcra:0X00000000 event:0X01F1 mmcr0:0X00000000 mmcr1:0X000100004A4A4A4A mmcra:0X00000000 event:0X01F2 mmcr0:0X00000000 mmcr1:0X000100004A4A4A4A mmcra:0X00000000 event:0X01F3 mmcr0:0X00000000 mmcr1:0X000100004A4A4A4A mmcra:0X00000000 #Group 32 pm_pteg5, PTEG sources event:0X0200 mmcr0:0X00000000 mmcr1:0X000100004C4C4CC8 mmcra:0X00000000 event:0X0201 mmcr0:0X00000000 mmcr1:0X000100004C4C4CC8 mmcra:0X00000000 event:0X0202 mmcr0:0X00000000 mmcr1:0X000100004C4C4CC8 mmcra:0X00000000 event:0X0203 mmcr0:0X00000000 mmcr1:0X000100004C4C4CC8 mmcra:0X00000000 #Group 33 pm_data_tablewalk, Data tablewalks event:0X0210 mmcr0:0X00000000 mmcr1:0X09900000A0A284E8 mmcra:0X00000000 event:0X0211 mmcr0:0X00000000 mmcr1:0X09900000A0A284E8 mmcra:0X00000000 event:0X0212 mmcr0:0X00000000 mmcr1:0X09900000A0A284E8 mmcra:0X00000000 event:0X0213 mmcr0:0X00000000 mmcr1:0X09900000A0A284E8 mmcra:0X00000000 #Group 34 pm_inst_tablewalk, Instruction tablewalks event:0X0220 mmcr0:0X00000000 mmcr1:0X09900000A8AA8CEA mmcra:0X00000000 event:0X0221 mmcr0:0X00000000 mmcr1:0X09900000A8AA8CEA mmcra:0X00000000 event:0X0222 mmcr0:0X00000000 mmcr1:0X09900000A8AA8CEA mmcra:0X00000000 event:0X0223 mmcr0:0X00000000 mmcr1:0X09900000A8AA8CEA mmcra:0X00000000 #Group 35 pm_freq, Frequency events event:0X0230 mmcr0:0X00000000 mmcr1:0X000000002A3C3C3C mmcra:0X00000000 event:0X0231 mmcr0:0X00000000 mmcr1:0X000000002A3C3C3C mmcra:0X00000000 event:0X0232 mmcr0:0X00000000 mmcr1:0X000000002A3C3C3C mmcra:0X00000000 event:0X0233 mmcr0:0X00000000 mmcr1:0X000000002A3C3C3C mmcra:0X00000000 #Group 36 pm_disp_wait, Dispatch stalls event:0X0240 mmcr0:0X00000000 mmcr1:0X00000000560C040C mmcra:0X00000000 event:0X0241 mmcr0:0X00000000 mmcr1:0X00000000560C040C mmcra:0X00000000 event:0X0242 mmcr0:0X00000000 mmcr1:0X00000000560C040C mmcra:0X00000000 event:0X0243 mmcr0:0X00000000 mmcr1:0X00000000560C040C mmcra:0X00000000 #Group 37 pm_disp_held, Dispatch held conditions event:0X0250 mmcr0:0X00000000 mmcr1:0X200000002A3C2AA2 mmcra:0X00000000 event:0X0251 mmcr0:0X00000000 mmcr1:0X200000002A3C2AA2 mmcra:0X00000000 event:0X0252 mmcr0:0X00000000 mmcr1:0X200000002A3C2AA2 mmcra:0X00000000 event:0X0253 mmcr0:0X00000000 mmcr1:0X200000002A3C2AA2 mmcra:0X00000000 #Group 38 pm_disp_held2, Dispatch held conditions event:0X0260 mmcr0:0X00000000 mmcr1:0X200000008004A4A6 mmcra:0X00000000 event:0X0261 mmcr0:0X00000000 mmcr1:0X200000008004A4A6 mmcra:0X00000000 event:0X0262 mmcr0:0X00000000 mmcr1:0X200000008004A4A6 mmcra:0X00000000 event:0X0263 mmcr0:0X00000000 mmcr1:0X200000008004A4A6 mmcra:0X00000000 #Group 39 pm_disp_held3, Dispatch held conditions event:0X0270 mmcr0:0X00000000 mmcr1:0X20000000888AACAE mmcra:0X00000000 event:0X0271 mmcr0:0X00000000 mmcr1:0X20000000888AACAE mmcra:0X00000000 event:0X0272 mmcr0:0X00000000 mmcr1:0X20000000888AACAE mmcra:0X00000000 event:0X0273 mmcr0:0X00000000 mmcr1:0X20000000888AACAE mmcra:0X00000000 #Group 40 pm_disp_held4, Dispatch held conditions event:0X0280 mmcr0:0X00000000 mmcr1:0X02000000A0A28486 mmcra:0X00000000 event:0X0281 mmcr0:0X00000000 mmcr1:0X02000000A0A28486 mmcra:0X00000000 event:0X0282 mmcr0:0X00000000 mmcr1:0X02000000A0A28486 mmcra:0X00000000 event:0X0283 mmcr0:0X00000000 mmcr1:0X02000000A0A28486 mmcra:0X00000000 #Group 41 pm_disp_held5, Dispatch held conditions event:0X0290 mmcr0:0X00000000 mmcr1:0X22000000A8AA8CA0 mmcra:0X00000000 event:0X0291 mmcr0:0X00000000 mmcr1:0X22000000A8AA8CA0 mmcra:0X00000000 event:0X0292 mmcr0:0X00000000 mmcr1:0X22000000A8AA8CA0 mmcra:0X00000000 event:0X0293 mmcr0:0X00000000 mmcr1:0X22000000A8AA8CA0 mmcra:0X00000000 #Group 42 pm_disp_held6, Dispatch held conditions event:0X02A0 mmcr0:0X00000000 mmcr1:0X33000000A882A4A6 mmcra:0X00000000 event:0X02A1 mmcr0:0X00000000 mmcr1:0X33000000A882A4A6 mmcra:0X00000000 event:0X02A2 mmcr0:0X00000000 mmcr1:0X33000000A882A4A6 mmcra:0X00000000 event:0X02A3 mmcr0:0X00000000 mmcr1:0X33000000A882A4A6 mmcra:0X00000000 #Group 43 pm_disp_held7, Dispatch held conditions event:0X02B0 mmcr0:0X00000000 mmcr1:0X30000000888AACAE mmcra:0X00000000 event:0X02B1 mmcr0:0X00000000 mmcr1:0X30000000888AACAE mmcra:0X00000000 event:0X02B2 mmcr0:0X00000000 mmcr1:0X30000000888AACAE mmcra:0X00000000 event:0X02B3 mmcr0:0X00000000 mmcr1:0X30000000888AACAE mmcra:0X00000000 #Group 44 pm_disp_held8, Dispatch held conditions event:0X02C0 mmcr0:0X00000000 mmcr1:0X220000008A8CAE80 mmcra:0X00000000 event:0X02C1 mmcr0:0X00000000 mmcr1:0X220000008A8CAE80 mmcra:0X00000000 event:0X02C2 mmcr0:0X00000000 mmcr1:0X220000008A8CAE80 mmcra:0X00000000 event:0X02C3 mmcr0:0X00000000 mmcr1:0X220000008A8CAE80 mmcra:0X00000000 #Group 45 pm_disp_held9, Dispatch held conditions event:0X02D0 mmcr0:0X00000000 mmcr1:0X220000008AA08A8C mmcra:0X00000000 event:0X02D1 mmcr0:0X00000000 mmcr1:0X220000008AA08A8C mmcra:0X00000000 event:0X02D2 mmcr0:0X00000000 mmcr1:0X220000008AA08A8C mmcra:0X00000000 event:0X02D3 mmcr0:0X00000000 mmcr1:0X220000008AA08A8C mmcra:0X00000000 #Group 46 pm_sync, Sync events event:0X02E0 mmcr0:0X00000000 mmcr1:0X38900000AE1EECA0 mmcra:0X00000000 event:0X02E1 mmcr0:0X00000000 mmcr1:0X38900000AE1EECA0 mmcra:0X00000000 event:0X02E2 mmcr0:0X00000000 mmcr1:0X38900000AE1EECA0 mmcra:0X00000000 event:0X02E3 mmcr0:0X00000000 mmcr1:0X38900000AE1EECA0 mmcra:0X00000000 #Group 47 pm_L1_ref, L1 references event:0X02F0 mmcr0:0X00000000 mmcr1:0X80000000368AA63A mmcra:0X00000000 event:0X02F1 mmcr0:0X00000000 mmcr1:0X80000000368AA63A mmcra:0X00000000 event:0X02F2 mmcr0:0X00000000 mmcr1:0X80000000368AA63A mmcra:0X00000000 event:0X02F3 mmcr0:0X00000000 mmcr1:0X80000000368AA63A mmcra:0X00000000 #Group 48 pm_L1_ldst, L1 load/store ref/miss event:0X0300 mmcr0:0X00000000 mmcr1:0X800000003230A8A0 mmcra:0X00000000 event:0X0301 mmcr0:0X00000000 mmcr1:0X800000003230A8A0 mmcra:0X00000000 event:0X0302 mmcr0:0X00000000 mmcr1:0X800000003230A8A0 mmcra:0X00000000 event:0X0303 mmcr0:0X00000000 mmcr1:0X800000003230A8A0 mmcra:0X00000000 #Group 49 pm_streams, Streams event:0X0310 mmcr0:0X00000000 mmcr1:0X48000000A0A284A4 mmcra:0X00000000 event:0X0311 mmcr0:0X00000000 mmcr1:0X48000000A0A284A4 mmcra:0X00000000 event:0X0312 mmcr0:0X00000000 mmcr1:0X48000000A0A284A4 mmcra:0X00000000 event:0X0313 mmcr0:0X00000000 mmcr1:0X48000000A0A284A4 mmcra:0X00000000 #Group 50 pm_flush, Flushes event:0X0320 mmcr0:0X00000000 mmcr1:0X0022000010CACCCA mmcra:0X00000000 event:0X0321 mmcr0:0X00000000 mmcr1:0X0022000010CACCCA mmcra:0X00000000 event:0X0322 mmcr0:0X00000000 mmcr1:0X0022000010CACCCA mmcra:0X00000000 event:0X0323 mmcr0:0X00000000 mmcr1:0X0022000010CACCCA mmcra:0X00000000 #Group 51 pm_prefetch, I cache Prefetches event:0X0330 mmcr0:0X00000000 mmcr1:0X400400008A8CAEC0 mmcra:0X00000000 event:0X0331 mmcr0:0X00000000 mmcr1:0X400400008A8CAEC0 mmcra:0X00000000 event:0X0332 mmcr0:0X00000000 mmcr1:0X400400008A8CAEC0 mmcra:0X00000000 event:0X0333 mmcr0:0X00000000 mmcr1:0X400400008A8CAEC0 mmcra:0X00000000 #Group 52 pm_stcx, STCX event:0X0340 mmcr0:0X00000000 mmcr1:0X00080000E6ECCECA mmcra:0X00000000 event:0X0341 mmcr0:0X00000000 mmcr1:0X00080000E6ECCECA mmcra:0X00000000 event:0X0342 mmcr0:0X00000000 mmcr1:0X00080000E6ECCECA mmcra:0X00000000 event:0X0343 mmcr0:0X00000000 mmcr1:0X00080000E6ECCECA mmcra:0X00000000 #Group 53 pm_larx, LARX event:0X0350 mmcr0:0X00000000 mmcr1:0X00080000EAE2C6CE mmcra:0X00000000 event:0X0351 mmcr0:0X00000000 mmcr1:0X00080000EAE2C6CE mmcra:0X00000000 event:0X0352 mmcr0:0X00000000 mmcr1:0X00080000EAE2C6CE mmcra:0X00000000 event:0X0353 mmcr0:0X00000000 mmcr1:0X00080000EAE2C6CE mmcra:0X00000000 #Group 54 pm_thread_cyc, Thread cycles event:0X0360 mmcr0:0X00000000 mmcr1:0X0000000016182604 mmcra:0X00000000 event:0X0361 mmcr0:0X00000000 mmcr1:0X0000000016182604 mmcra:0X00000000 event:0X0362 mmcr0:0X00000000 mmcr1:0X0000000016182604 mmcra:0X00000000 event:0X0363 mmcr0:0X00000000 mmcr1:0X0000000016182604 mmcra:0X00000000 #Group 55 pm_misc, Misc event:0X0370 mmcr0:0X00000000 mmcr1:0X0000000004161808 mmcra:0X00000001 event:0X0371 mmcr0:0X00000000 mmcr1:0X0000000004161808 mmcra:0X00000001 event:0X0372 mmcr0:0X00000000 mmcr1:0X0000000004161808 mmcra:0X00000001 event:0X0373 mmcr0:0X00000000 mmcr1:0X0000000004161808 mmcra:0X00000001 #Group 56 pm_misc2, Misc event:0X0380 mmcr0:0X00000000 mmcr1:0X40020000EEF8F8A0 mmcra:0X00000000 event:0X0381 mmcr0:0X00000000 mmcr1:0X40020000EEF8F8A0 mmcra:0X00000000 event:0X0382 mmcr0:0X00000000 mmcr1:0X40020000EEF8F8A0 mmcra:0X00000000 event:0X0383 mmcr0:0X00000000 mmcr1:0X40020000EEF8F8A0 mmcra:0X00000000 #Group 57 pm_misc3, Misc event:0X0390 mmcr0:0X00000000 mmcr1:0X0300000054A01E02 mmcra:0X00000000 event:0X0391 mmcr0:0X00000000 mmcr1:0X0300000054A01E02 mmcra:0X00000000 event:0X0392 mmcr0:0X00000000 mmcr1:0X0300000054A01E02 mmcra:0X00000000 event:0X0393 mmcr0:0X00000000 mmcr1:0X0300000054A01E02 mmcra:0X00000000 #Group 58 pm_tlb_slb, TLB and SLB events event:0X03A0 mmcr0:0X00000000 mmcr1:0X00980000E0E8E8E2 mmcra:0X00000000 event:0X03A1 mmcr0:0X00000000 mmcr1:0X00980000E0E8E8E2 mmcra:0X00000000 event:0X03A2 mmcr0:0X00000000 mmcr1:0X00980000E0E8E8E2 mmcra:0X00000000 event:0X03A3 mmcr0:0X00000000 mmcr1:0X00980000E0E8E8E2 mmcra:0X00000000 #Group 59 pm_slb_miss, SLB Misses event:0X03B0 mmcr0:0X00000000 mmcr1:0X00480001E0E8EE32 mmcra:0X00000000 event:0X03B1 mmcr0:0X00000000 mmcr1:0X00480001E0E8EE32 mmcra:0X00000000 event:0X03B2 mmcr0:0X00000000 mmcr1:0X00480001E0E8EE32 mmcra:0X00000000 event:0X03B3 mmcr0:0X00000000 mmcr1:0X00480001E0E8EE32 mmcra:0X00000000 #Group 60 pm_rejects, Reject events event:0X03C0 mmcr0:0X00000000 mmcr1:0XAA00000034303E30 mmcra:0X00000000 event:0X03C1 mmcr0:0X00000000 mmcr1:0XAA00000034303E30 mmcra:0X00000000 event:0X03C2 mmcr0:0X00000000 mmcr1:0XAA00000034303E30 mmcra:0X00000000 event:0X03C3 mmcr0:0X00000000 mmcr1:0XAA00000034303E30 mmcra:0X00000000 #Group 61 pm_rejects2, Reject events event:0X03D0 mmcr0:0X00000000 mmcr1:0X9A000000323830AC mmcra:0X00000000 event:0X03D1 mmcr0:0X00000000 mmcr1:0X9A000000323830AC mmcra:0X00000000 event:0X03D2 mmcr0:0X00000000 mmcr1:0X9A000000323830AC mmcra:0X00000000 event:0X03D3 mmcr0:0X00000000 mmcr1:0X9A000000323830AC mmcra:0X00000000 #Group 62 pm_rejects3, Reject events event:0X03E0 mmcr0:0X00000000 mmcr1:0XAA000000303E3234 mmcra:0X00000000 event:0X03E1 mmcr0:0X00000000 mmcr1:0XAA000000303E3234 mmcra:0X00000000 event:0X03E2 mmcr0:0X00000000 mmcr1:0XAA000000303E3234 mmcra:0X00000000 event:0X03E3 mmcr0:0X00000000 mmcr1:0XAA000000303E3234 mmcra:0X00000000 #Group 63 pm_rejects4, Unaligned store rejects event:0X03F0 mmcr0:0X00000000 mmcr1:0X900000003630A2AA mmcra:0X00000000 event:0X03F1 mmcr0:0X00000000 mmcr1:0X900000003630A2AA mmcra:0X00000000 event:0X03F2 mmcr0:0X00000000 mmcr1:0X900000003630A2AA mmcra:0X00000000 event:0X03F3 mmcr0:0X00000000 mmcr1:0X900000003630A2AA mmcra:0X00000000 #Group 64 pm_rejects5, Unaligned load rejects event:0X0400 mmcr0:0X00000000 mmcr1:0X900000003036A0A8 mmcra:0X00000000 event:0X0401 mmcr0:0X00000000 mmcr1:0X900000003036A0A8 mmcra:0X00000000 event:0X0402 mmcr0:0X00000000 mmcr1:0X900000003036A0A8 mmcra:0X00000000 event:0X0403 mmcr0:0X00000000 mmcr1:0X900000003036A0A8 mmcra:0X00000000 #Group 65 pm_rejects6, Set mispredictions rejects event:0X0410 mmcr0:0X00000000 mmcr1:0XA0000000848C341C mmcra:0X00000000 event:0X0411 mmcr0:0X00000000 mmcr1:0XA0000000848C341C mmcra:0X00000000 event:0X0412 mmcr0:0X00000000 mmcr1:0XA0000000848C341C mmcra:0X00000000 event:0X0413 mmcr0:0X00000000 mmcr1:0XA0000000848C341C mmcra:0X00000000 #Group 66 pm_rejects_unit, Unaligned reject events by unit event:0X0420 mmcr0:0X00000000 mmcr1:0X90000000808AA2A8 mmcra:0X00000000 event:0X0421 mmcr0:0X00000000 mmcr1:0X90000000808AA2A8 mmcra:0X00000000 event:0X0422 mmcr0:0X00000000 mmcr1:0X90000000808AA2A8 mmcra:0X00000000 event:0X0423 mmcr0:0X00000000 mmcr1:0X90000000808AA2A8 mmcra:0X00000000 #Group 67 pm_rejects_unit2, Reject events by unit event:0X0430 mmcr0:0X00000000 mmcr1:0XAA000000A6828E8A mmcra:0X00000000 event:0X0431 mmcr0:0X00000000 mmcr1:0XAA000000A6828E8A mmcra:0X00000000 event:0X0432 mmcr0:0X00000000 mmcr1:0XAA000000A6828E8A mmcra:0X00000000 event:0X0433 mmcr0:0X00000000 mmcr1:0XAA000000A6828E8A mmcra:0X00000000 #Group 68 pm_rejects_unit3, Reject events by unit event:0X0440 mmcr0:0X00000000 mmcr1:0X0A000000A4A08C88 mmcra:0X00000000 event:0X0441 mmcr0:0X00000000 mmcr1:0X0A000000A4A08C88 mmcra:0X00000000 event:0X0442 mmcr0:0X00000000 mmcr1:0X0A000000A4A08C88 mmcra:0X00000000 event:0X0443 mmcr0:0X00000000 mmcr1:0X0A000000A4A08C88 mmcra:0X00000000 #Group 69 pm_rejects_unit4, Reject events by unit event:0X0450 mmcr0:0X00000000 mmcr1:0XAA000000A2868AAE mmcra:0X00000000 event:0X0451 mmcr0:0X00000000 mmcr1:0XAA000000A2868AAE mmcra:0X00000000 event:0X0452 mmcr0:0X00000000 mmcr1:0XAA000000A2868AAE mmcra:0X00000000 event:0X0453 mmcr0:0X00000000 mmcr1:0XAA000000A2868AAE mmcra:0X00000000 #Group 70 pm_rejects_unit5, Reject events by unit event:0X0460 mmcr0:0X00000000 mmcr1:0X9900000086A6AE8E mmcra:0X00000000 event:0X0461 mmcr0:0X00000000 mmcr1:0X9900000086A6AE8E mmcra:0X00000000 event:0X0462 mmcr0:0X00000000 mmcr1:0X9900000086A6AE8E mmcra:0X00000000 event:0X0463 mmcr0:0X00000000 mmcr1:0X9900000086A6AE8E mmcra:0X00000000 #Group 71 pm_rejects_unit6, Reject events by unit event:0X0470 mmcr0:0X00000000 mmcr1:0XAA00000080A6A88E mmcra:0X00000000 event:0X0471 mmcr0:0X00000000 mmcr1:0XAA00000080A6A88E mmcra:0X00000000 event:0X0472 mmcr0:0X00000000 mmcr1:0XAA00000080A6A88E mmcra:0X00000000 event:0X0473 mmcr0:0X00000000 mmcr1:0XAA00000080A6A88E mmcra:0X00000000 #Group 72 pm_rejects_unit7, Reject events by unit event:0X0480 mmcr0:0X00000000 mmcr1:0XA900000082A6AA8E mmcra:0X00000000 event:0X0481 mmcr0:0X00000000 mmcr1:0XA900000082A6AA8E mmcra:0X00000000 event:0X0482 mmcr0:0X00000000 mmcr1:0XA900000082A6AA8E mmcra:0X00000000 event:0X0483 mmcr0:0X00000000 mmcr1:0XA900000082A6AA8E mmcra:0X00000000 #Group 73 pm_ldf, Floating Point loads event:0X0490 mmcr0:0X00000000 mmcr1:0X800000003832A4AC mmcra:0X00000000 event:0X0491 mmcr0:0X00000000 mmcr1:0X800000003832A4AC mmcra:0X00000000 event:0X0492 mmcr0:0X00000000 mmcr1:0X800000003832A4AC mmcra:0X00000000 event:0X0493 mmcr0:0X00000000 mmcr1:0X800000003832A4AC mmcra:0X00000000 #Group 74 pm_lsu_misc, LSU events event:0X04A0 mmcr0:0X00000000 mmcr1:0X08800000CACCEE8A mmcra:0X00000000 event:0X04A1 mmcr0:0X00000000 mmcr1:0X08800000CACCEE8A mmcra:0X00000000 event:0X04A2 mmcr0:0X00000000 mmcr1:0X08800000CACCEE8A mmcra:0X00000000 event:0X04A3 mmcr0:0X00000000 mmcr1:0X08800000CACCEE8A mmcra:0X00000000 #Group 75 pm_lsu_lmq, LSU LMQ events event:0X04B0 mmcr0:0X00000000 mmcr1:0X98000000AC1C1CA4 mmcra:0X00000000 event:0X04B1 mmcr0:0X00000000 mmcr1:0X98000000AC1C1CA4 mmcra:0X00000000 event:0X04B2 mmcr0:0X00000000 mmcr1:0X98000000AC1C1CA4 mmcra:0X00000000 event:0X04B3 mmcr0:0X00000000 mmcr1:0X98000000AC1C1CA4 mmcra:0X00000000 #Group 76 pm_lsu_flush_derat_miss, LSU flush and DERAT misses event:0X04C0 mmcr0:0X00000000 mmcr1:0X00200000FC0EECEE mmcra:0X00000000 event:0X04C1 mmcr0:0X00000000 mmcr1:0X00200000FC0EECEE mmcra:0X00000000 event:0X04C2 mmcr0:0X00000000 mmcr1:0X00200000FC0EECEE mmcra:0X00000000 event:0X04C3 mmcr0:0X00000000 mmcr1:0X00200000FC0EECEE mmcra:0X00000000 #Group 77 pm_lla, Look Load Ahead events event:0X04D0 mmcr0:0X00000000 mmcr1:0X33000000A2841208 mmcra:0X00000000 event:0X04D1 mmcr0:0X00000000 mmcr1:0X33000000A2841208 mmcra:0X00000000 event:0X04D2 mmcr0:0X00000000 mmcr1:0X33000000A2841208 mmcra:0X00000000 event:0X04D3 mmcr0:0X00000000 mmcr1:0X33000000A2841208 mmcra:0X00000000 #Group 78 pm_gct, GCT events event:0X04E0 mmcr0:0X00000000 mmcr1:0X404000000808A6E8 mmcra:0X00000000 event:0X04E1 mmcr0:0X00000000 mmcr1:0X404000000808A6E8 mmcra:0X00000000 event:0X04E2 mmcr0:0X00000000 mmcr1:0X404000000808A6E8 mmcra:0X00000000 event:0X04E3 mmcr0:0X00000000 mmcr1:0X404000000808A6E8 mmcra:0X00000000 #Group 79 pm_smt_priorities, Thread priority events event:0X04F0 mmcr0:0X00000000 mmcr1:0X0020000040404040 mmcra:0X00000000 event:0X04F1 mmcr0:0X00000000 mmcr1:0X0020000040404040 mmcra:0X00000000 event:0X04F2 mmcr0:0X00000000 mmcr1:0X0020000040404040 mmcra:0X00000000 event:0X04F3 mmcr0:0X00000000 mmcr1:0X0020000040404040 mmcra:0X00000000 #Group 80 pm_smt_priorities2, Thread priority events event:0X0500 mmcr0:0X00000000 mmcr1:0X0020000046464646 mmcra:0X00000000 event:0X0501 mmcr0:0X00000000 mmcr1:0X0020000046464646 mmcra:0X00000000 event:0X0502 mmcr0:0X00000000 mmcr1:0X0020000046464646 mmcra:0X00000000 event:0X0503 mmcr0:0X00000000 mmcr1:0X0020000046464646 mmcra:0X00000000 #Group 81 pm_smt_priorities3, Thread priority differences events event:0X0510 mmcr0:0X00000000 mmcr1:0X0002000040404040 mmcra:0X00000000 event:0X0511 mmcr0:0X00000000 mmcr1:0X0002000040404040 mmcra:0X00000000 event:0X0512 mmcr0:0X00000000 mmcr1:0X0002000040404040 mmcra:0X00000000 event:0X0513 mmcr0:0X00000000 mmcr1:0X0002000040404040 mmcra:0X00000000 #Group 82 pm_smt_priorities4, Thread priority differences events event:0X0520 mmcr0:0X00000000 mmcr1:0X03020000A6464646 mmcra:0X00000000 event:0X0521 mmcr0:0X00000000 mmcr1:0X03020000A6464646 mmcra:0X00000000 event:0X0522 mmcr0:0X00000000 mmcr1:0X03020000A6464646 mmcra:0X00000000 event:0X0523 mmcr0:0X00000000 mmcr1:0X03020000A6464646 mmcra:0X00000000 #Group 83 pm_fxu, FXU events event:0X0530 mmcr0:0X00000000 mmcr1:0X0000000050505050 mmcra:0X00000000 event:0X0531 mmcr0:0X00000000 mmcr1:0X0000000050505050 mmcra:0X00000000 event:0X0532 mmcr0:0X00000000 mmcr1:0X0000000050505050 mmcra:0X00000000 event:0X0533 mmcr0:0X00000000 mmcr1:0X0000000050505050 mmcra:0X00000000 #Group 84 pm_fxu2, FXU events event:0X0540 mmcr0:0X00000000 mmcr1:0X02040000AEE41616 mmcra:0X00000000 event:0X0541 mmcr0:0X00000000 mmcr1:0X02040000AEE41616 mmcra:0X00000000 event:0X0542 mmcr0:0X00000000 mmcr1:0X02040000AEE41616 mmcra:0X00000000 event:0X0543 mmcr0:0X00000000 mmcr1:0X02040000AEE41616 mmcra:0X00000000 #Group 85 pm_vmx, VMX events event:0X0550 mmcr0:0X00000000 mmcr1:0X700000008480A2A6 mmcra:0X00000000 event:0X0551 mmcr0:0X00000000 mmcr1:0X700000008480A2A6 mmcra:0X00000000 event:0X0552 mmcr0:0X00000000 mmcr1:0X700000008480A2A6 mmcra:0X00000000 event:0X0553 mmcr0:0X00000000 mmcr1:0X700000008480A2A6 mmcra:0X00000000 #Group 86 pm_vmx2, VMX events event:0X0560 mmcr0:0X00000000 mmcr1:0X600000008088A2AA mmcra:0X00000000 event:0X0561 mmcr0:0X00000000 mmcr1:0X600000008088A2AA mmcra:0X00000000 event:0X0562 mmcr0:0X00000000 mmcr1:0X600000008088A2AA mmcra:0X00000000 event:0X0563 mmcr0:0X00000000 mmcr1:0X600000008088A2AA mmcra:0X00000000 #Group 87 pm_vmx3, VMX events event:0X0570 mmcr0:0X00000000 mmcr1:0X600000008284AAAC mmcra:0X00000000 event:0X0571 mmcr0:0X00000000 mmcr1:0X600000008284AAAC mmcra:0X00000000 event:0X0572 mmcr0:0X00000000 mmcr1:0X600000008284AAAC mmcra:0X00000000 event:0X0573 mmcr0:0X00000000 mmcr1:0X600000008284AAAC mmcra:0X00000000 #Group 88 pm_vmx4, VMX events event:0X0580 mmcr0:0X00000000 mmcr1:0XB0000000828EA6A0 mmcra:0X00000000 event:0X0581 mmcr0:0X00000000 mmcr1:0XB0000000828EA6A0 mmcra:0X00000000 event:0X0582 mmcr0:0X00000000 mmcr1:0XB0000000828EA6A0 mmcra:0X00000000 event:0X0583 mmcr0:0X00000000 mmcr1:0XB0000000828EA6A0 mmcra:0X00000000 #Group 89 pm_vmx5, VMX events event:0X0590 mmcr0:0X00000000 mmcr1:0XB00000008084ACA2 mmcra:0X00000000 event:0X0591 mmcr0:0X00000000 mmcr1:0XB00000008084ACA2 mmcra:0X00000000 event:0X0592 mmcr0:0X00000000 mmcr1:0XB00000008084ACA2 mmcra:0X00000000 event:0X0593 mmcr0:0X00000000 mmcr1:0XB00000008084ACA2 mmcra:0X00000000 #Group 90 pm_dfu, DFU events event:0X05A0 mmcr0:0X00000000 mmcr1:0XE00000008C88A2AE mmcra:0X00000000 event:0X05A1 mmcr0:0X00000000 mmcr1:0XE00000008C88A2AE mmcra:0X00000000 event:0X05A2 mmcr0:0X00000000 mmcr1:0XE00000008C88A2AE mmcra:0X00000000 event:0X05A3 mmcr0:0X00000000 mmcr1:0XE00000008C88A2AE mmcra:0X00000000 #Group 91 pm_dfu2, DFU events event:0X05B0 mmcr0:0X00000000 mmcr1:0XE00000008A84A0A6 mmcra:0X00000000 event:0X05B1 mmcr0:0X00000000 mmcr1:0XE00000008A84A0A6 mmcra:0X00000000 event:0X05B2 mmcr0:0X00000000 mmcr1:0XE00000008A84A0A6 mmcra:0X00000000 event:0X05B3 mmcr0:0X00000000 mmcr1:0XE00000008A84A0A6 mmcra:0X00000000 #Group 92 pm_fab, Fabric events event:0X05C0 mmcr0:0X00000000 mmcr1:0X500020003030A4AC mmcra:0X00000000 event:0X05C1 mmcr0:0X00000000 mmcr1:0X500020003030A4AC mmcra:0X00000000 event:0X05C2 mmcr0:0X00000000 mmcr1:0X500020003030A4AC mmcra:0X00000000 event:0X05C3 mmcr0:0X00000000 mmcr1:0X500020003030A4AC mmcra:0X00000000 #Group 93 pm_fab2, Fabric events event:0X05D0 mmcr0:0X00000000 mmcr1:0X50002000888AA2A0 mmcra:0X00000000 event:0X05D1 mmcr0:0X00000000 mmcr1:0X50002000888AA2A0 mmcra:0X00000000 event:0X05D2 mmcr0:0X00000000 mmcr1:0X50002000888AA2A0 mmcra:0X00000000 event:0X05D3 mmcr0:0X00000000 mmcr1:0X50002000888AA2A0 mmcra:0X00000000 #Group 94 pm_fab3, Fabric events event:0X05E0 mmcr0:0X00000000 mmcr1:0X500020003030AEA6 mmcra:0X00000000 event:0X05E1 mmcr0:0X00000000 mmcr1:0X500020003030AEA6 mmcra:0X00000000 event:0X05E2 mmcr0:0X00000000 mmcr1:0X500020003030AEA6 mmcra:0X00000000 event:0X05E3 mmcr0:0X00000000 mmcr1:0X500020003030AEA6 mmcra:0X00000000 #Group 95 pm_mem_dblpump, Double pump event:0X05F0 mmcr0:0X00000000 mmcr1:0X5000400030303434 mmcra:0X00000000 event:0X05F1 mmcr0:0X00000000 mmcr1:0X5000400030303434 mmcra:0X00000000 event:0X05F2 mmcr0:0X00000000 mmcr1:0X5000400030303434 mmcra:0X00000000 event:0X05F3 mmcr0:0X00000000 mmcr1:0X5000400030303434 mmcra:0X00000000 #Group 96 pm_mem0_dblpump, MCS0 Double pump event:0X0600 mmcr0:0X00000000 mmcr1:0X500040008082A4A6 mmcra:0X00000000 event:0X0601 mmcr0:0X00000000 mmcr1:0X500040008082A4A6 mmcra:0X00000000 event:0X0602 mmcr0:0X00000000 mmcr1:0X500040008082A4A6 mmcra:0X00000000 event:0X0603 mmcr0:0X00000000 mmcr1:0X500040008082A4A6 mmcra:0X00000000 #Group 97 pm_mem1_dblpump, MCS1 Double pump event:0X0610 mmcr0:0X00000000 mmcr1:0X50004000888AACAE mmcra:0X00000000 event:0X0611 mmcr0:0X00000000 mmcr1:0X50004000888AACAE mmcra:0X00000000 event:0X0612 mmcr0:0X00000000 mmcr1:0X50004000888AACAE mmcra:0X00000000 event:0X0613 mmcr0:0X00000000 mmcr1:0X50004000888AACAE mmcra:0X00000000 #Group 98 pm_gxo, GX outbound event:0X0620 mmcr0:0X00000000 mmcr1:0X500060008082A4A6 mmcra:0X00000000 event:0X0621 mmcr0:0X00000000 mmcr1:0X500060008082A4A6 mmcra:0X00000000 event:0X0622 mmcr0:0X00000000 mmcr1:0X500060008082A4A6 mmcra:0X00000000 event:0X0623 mmcr0:0X00000000 mmcr1:0X500060008082A4A6 mmcra:0X00000000 #Group 99 pm_gxi, GX inbound event:0X0630 mmcr0:0X00000000 mmcr1:0X500060008688AAA0 mmcra:0X00000000 event:0X0631 mmcr0:0X00000000 mmcr1:0X500060008688AAA0 mmcra:0X00000000 event:0X0632 mmcr0:0X00000000 mmcr1:0X500060008688AAA0 mmcra:0X00000000 event:0X0633 mmcr0:0X00000000 mmcr1:0X500060008688AAA0 mmcra:0X00000000 #Group 100 pm_gx_dma, DMA events event:0X0640 mmcr0:0X00000000 mmcr1:0X500060008086ACAE mmcra:0X00000000 event:0X0641 mmcr0:0X00000000 mmcr1:0X500060008086ACAE mmcra:0X00000000 event:0X0642 mmcr0:0X00000000 mmcr1:0X500060008086ACAE mmcra:0X00000000 event:0X0643 mmcr0:0X00000000 mmcr1:0X500060008086ACAE mmcra:0X00000000 #Group 101 pm_L1_misc, L1 misc events event:0X0650 mmcr0:0X00000000 mmcr1:0X4004000082E2A80A mmcra:0X00000000 event:0X0651 mmcr0:0X00000000 mmcr1:0X4004000082E2A80A mmcra:0X00000000 event:0X0652 mmcr0:0X00000000 mmcr1:0X4004000082E2A80A mmcra:0X00000000 event:0X0653 mmcr0:0X00000000 mmcr1:0X4004000082E2A80A mmcra:0X00000000 #Group 102 pm_L2_data, L2 load and store data event:0X0660 mmcr0:0X00000000 mmcr1:0X5000800030303434 mmcra:0X00000000 event:0X0661 mmcr0:0X00000000 mmcr1:0X5000800030303434 mmcra:0X00000000 event:0X0662 mmcr0:0X00000000 mmcr1:0X5000800030303434 mmcra:0X00000000 event:0X0663 mmcr0:0X00000000 mmcr1:0X5000800030303434 mmcra:0X00000000 #Group 103 pm_L2_ld_inst, L2 Load instructions event:0X0670 mmcr0:0X00000000 mmcr1:0X5800A00030303486 mmcra:0X00000000 event:0X0671 mmcr0:0X00000000 mmcr1:0X5800A00030303486 mmcra:0X00000000 event:0X0672 mmcr0:0X00000000 mmcr1:0X5800A00030303486 mmcra:0X00000000 event:0X0673 mmcr0:0X00000000 mmcr1:0X5800A00030303486 mmcra:0X00000000 #Group 104 pm_L2_castout_invalidate, L2 castout and invalidate events event:0X0680 mmcr0:0X00000000 mmcr1:0X5000C00030303434 mmcra:0X00000000 event:0X0681 mmcr0:0X00000000 mmcr1:0X5000C00030303434 mmcra:0X00000000 event:0X0682 mmcr0:0X00000000 mmcr1:0X5000C00030303434 mmcra:0X00000000 event:0X0683 mmcr0:0X00000000 mmcr1:0X5000C00030303434 mmcra:0X00000000 #Group 105 pm_L2_ldst_reqhit, L2 load and store requests and hits event:0X0690 mmcr0:0X00000000 mmcr1:0X5000E00030303434 mmcra:0X00000000 event:0X0691 mmcr0:0X00000000 mmcr1:0X5000E00030303434 mmcra:0X00000000 event:0X0692 mmcr0:0X00000000 mmcr1:0X5000E00030303434 mmcra:0X00000000 event:0X0693 mmcr0:0X00000000 mmcr1:0X5000E00030303434 mmcra:0X00000000 #Group 106 pm_L2_ld_data_slice, L2 data loads by slice event:0X06A0 mmcr0:0X00000000 mmcr1:0X500080008082A8AA mmcra:0X00000000 event:0X06A1 mmcr0:0X00000000 mmcr1:0X500080008082A8AA mmcra:0X00000000 event:0X06A2 mmcr0:0X00000000 mmcr1:0X500080008082A8AA mmcra:0X00000000 event:0X06A3 mmcr0:0X00000000 mmcr1:0X500080008082A8AA mmcra:0X00000000 #Group 107 pm_L2_ld_inst_slice, L2 instruction loads by slice event:0X06B0 mmcr0:0X00000000 mmcr1:0X5000A0008082A8AA mmcra:0X00000000 event:0X06B1 mmcr0:0X00000000 mmcr1:0X5000A0008082A8AA mmcra:0X00000000 event:0X06B2 mmcr0:0X00000000 mmcr1:0X5000A0008082A8AA mmcra:0X00000000 event:0X06B3 mmcr0:0X00000000 mmcr1:0X5000A0008082A8AA mmcra:0X00000000 #Group 108 pm_L2_st_slice, L2 slice stores by slice event:0X06C0 mmcr0:0X00000000 mmcr1:0X500080008486ACAE mmcra:0X00000000 event:0X06C1 mmcr0:0X00000000 mmcr1:0X500080008486ACAE mmcra:0X00000000 event:0X06C2 mmcr0:0X00000000 mmcr1:0X500080008486ACAE mmcra:0X00000000 event:0X06C3 mmcr0:0X00000000 mmcr1:0X500080008486ACAE mmcra:0X00000000 #Group 109 pm_L2miss_slice, L2 misses by slice event:0X06D0 mmcr0:0X00000000 mmcr1:0X5000A000843256AC mmcra:0X00000000 event:0X06D1 mmcr0:0X00000000 mmcr1:0X5000A000843256AC mmcra:0X00000000 event:0X06D2 mmcr0:0X00000000 mmcr1:0X5000A000843256AC mmcra:0X00000000 event:0X06D3 mmcr0:0X00000000 mmcr1:0X5000A000843256AC mmcra:0X00000000 #Group 110 pm_L2_castout_slice, L2 castouts by slice event:0X06E0 mmcr0:0X00000000 mmcr1:0X5000C0008082A8AA mmcra:0X00000000 event:0X06E1 mmcr0:0X00000000 mmcr1:0X5000C0008082A8AA mmcra:0X00000000 event:0X06E2 mmcr0:0X00000000 mmcr1:0X5000C0008082A8AA mmcra:0X00000000 event:0X06E3 mmcr0:0X00000000 mmcr1:0X5000C0008082A8AA mmcra:0X00000000 #Group 111 pm_L2_invalidate_slice, L2 invalidate by slice event:0X06F0 mmcr0:0X00000000 mmcr1:0X5000C0008486ACAE mmcra:0X00000000 event:0X06F1 mmcr0:0X00000000 mmcr1:0X5000C0008486ACAE mmcra:0X00000000 event:0X06F2 mmcr0:0X00000000 mmcr1:0X5000C0008486ACAE mmcra:0X00000000 event:0X06F3 mmcr0:0X00000000 mmcr1:0X5000C0008486ACAE mmcra:0X00000000 #Group 112 pm_L2_ld_reqhit_slice, L2 load requests and hist by slice event:0X0700 mmcr0:0X00000000 mmcr1:0X5000E0008082A8AA mmcra:0X00000000 event:0X0701 mmcr0:0X00000000 mmcr1:0X5000E0008082A8AA mmcra:0X00000000 event:0X0702 mmcr0:0X00000000 mmcr1:0X5000E0008082A8AA mmcra:0X00000000 event:0X0703 mmcr0:0X00000000 mmcr1:0X5000E0008082A8AA mmcra:0X00000000 #Group 113 pm_L2_st_reqhit_slice, L2 store requests and hist by slice event:0X0710 mmcr0:0X00000000 mmcr1:0X5000E0008486ACAE mmcra:0X00000000 event:0X0711 mmcr0:0X00000000 mmcr1:0X5000E0008486ACAE mmcra:0X00000000 event:0X0712 mmcr0:0X00000000 mmcr1:0X5000E0008486ACAE mmcra:0X00000000 event:0X0713 mmcr0:0X00000000 mmcr1:0X5000E0008486ACAE mmcra:0X00000000 #Group 114 pm_L2_redir_pref, L2 redirect and prefetch event:0X0720 mmcr0:0X00000000 mmcr1:0X08400000CACC8886 mmcra:0X00000000 event:0X0721 mmcr0:0X00000000 mmcr1:0X08400000CACC8886 mmcra:0X00000000 event:0X0722 mmcr0:0X00000000 mmcr1:0X08400000CACC8886 mmcra:0X00000000 event:0X0723 mmcr0:0X00000000 mmcr1:0X08400000CACC8886 mmcra:0X00000000 #Group 115 pm_L3_SliceA, L3 slice A events event:0X0730 mmcr0:0X00000000 mmcr1:0X50000000303058A4 mmcra:0X00000000 event:0X0731 mmcr0:0X00000000 mmcr1:0X50000000303058A4 mmcra:0X00000000 event:0X0732 mmcr0:0X00000000 mmcr1:0X50000000303058A4 mmcra:0X00000000 event:0X0733 mmcr0:0X00000000 mmcr1:0X50000000303058A4 mmcra:0X00000000 #Group 116 pm_L3_SliceB, L3 slice B events event:0X0740 mmcr0:0X00000000 mmcr1:0X50000000888A58AC mmcra:0X00000000 event:0X0741 mmcr0:0X00000000 mmcr1:0X50000000888A58AC mmcra:0X00000000 event:0X0742 mmcr0:0X00000000 mmcr1:0X50000000888A58AC mmcra:0X00000000 event:0X0743 mmcr0:0X00000000 mmcr1:0X50000000888A58AC mmcra:0X00000000 #Group 117 pm_fpu_issue, FPU issue events event:0X0750 mmcr0:0X00000000 mmcr1:0X00300000C6C8EAE4 mmcra:0X00000000 event:0X0751 mmcr0:0X00000000 mmcr1:0X00300000C6C8EAE4 mmcra:0X00000000 event:0X0752 mmcr0:0X00000000 mmcr1:0X00300000C6C8EAE4 mmcra:0X00000000 event:0X0753 mmcr0:0X00000000 mmcr1:0X00300000C6C8EAE4 mmcra:0X00000000 #Group 118 pm_fpu_issue2, FPU issue events event:0X0760 mmcr0:0X00000000 mmcr1:0X00300000C0C2ECEE mmcra:0X00000000 event:0X0761 mmcr0:0X00000000 mmcr1:0X00300000C0C2ECEE mmcra:0X00000000 event:0X0762 mmcr0:0X00000000 mmcr1:0X00300000C0C2ECEE mmcra:0X00000000 event:0X0763 mmcr0:0X00000000 mmcr1:0X00300000C0C2ECEE mmcra:0X00000000 #Group 119 pm_fpu_issue3, FPU issue events event:0X0770 mmcr0:0X00000000 mmcr1:0X00330000E0E2ECEE mmcra:0X00000000 event:0X0771 mmcr0:0X00000000 mmcr1:0X00330000E0E2ECEE mmcra:0X00000000 event:0X0772 mmcr0:0X00000000 mmcr1:0X00330000E0E2ECEE mmcra:0X00000000 event:0X0773 mmcr0:0X00000000 mmcr1:0X00330000E0E2ECEE mmcra:0X00000000 #Group 120 pm_fpu0_flop, FPU0 flop events event:0X0780 mmcr0:0X00000000 mmcr1:0XCC0000008082A484 mmcra:0X00000000 event:0X0781 mmcr0:0X00000000 mmcr1:0XCC0000008082A484 mmcra:0X00000000 event:0X0782 mmcr0:0X00000000 mmcr1:0XCC0000008082A484 mmcra:0X00000000 event:0X0783 mmcr0:0X00000000 mmcr1:0XCC0000008082A484 mmcra:0X00000000 #Group 121 pm_fpu0_misc, FPU0 events event:0X0790 mmcr0:0X00000000 mmcr1:0XCC00000086A08286 mmcra:0X00000000 event:0X0791 mmcr0:0X00000000 mmcr1:0XCC00000086A08286 mmcra:0X00000000 event:0X0792 mmcr0:0X00000000 mmcr1:0XCC00000086A08286 mmcra:0X00000000 event:0X0793 mmcr0:0X00000000 mmcr1:0XCC00000086A08286 mmcra:0X00000000 #Group 122 pm_fpu0_misc2, FPU0 events event:0X07A0 mmcr0:0X00000000 mmcr1:0XDD00000080A6A4A6 mmcra:0X00000000 event:0X07A1 mmcr0:0X00000000 mmcr1:0XDD00000080A6A4A6 mmcra:0X00000000 event:0X07A2 mmcr0:0X00000000 mmcr1:0XDD00000080A6A4A6 mmcra:0X00000000 event:0X07A3 mmcr0:0X00000000 mmcr1:0XDD00000080A6A4A6 mmcra:0X00000000 #Group 123 pm_fpu0_misc3, FPU0 events event:0X07B0 mmcr0:0X00000000 mmcr1:0X0D000000A0A28486 mmcra:0X00000000 event:0X07B1 mmcr0:0X00000000 mmcr1:0X0D000000A0A28486 mmcra:0X00000000 event:0X07B2 mmcr0:0X00000000 mmcr1:0X0D000000A0A28486 mmcra:0X00000000 event:0X07B3 mmcr0:0X00000000 mmcr1:0X0D000000A0A28486 mmcra:0X00000000 #Group 124 pm_fpu1_flop, FPU1 flop events event:0X07C0 mmcr0:0X00000000 mmcr1:0XCC000000888AAC8C mmcra:0X00000000 event:0X07C1 mmcr0:0X00000000 mmcr1:0XCC000000888AAC8C mmcra:0X00000000 event:0X07C2 mmcr0:0X00000000 mmcr1:0XCC000000888AAC8C mmcra:0X00000000 event:0X07C3 mmcr0:0X00000000 mmcr1:0XCC000000888AAC8C mmcra:0X00000000 #Group 125 pm_fpu1_misc, FPU1 events event:0X07D0 mmcr0:0X00000000 mmcr1:0XCC0000008EA88A8E mmcra:0X00000000 event:0X07D1 mmcr0:0X00000000 mmcr1:0XCC0000008EA88A8E mmcra:0X00000000 event:0X07D2 mmcr0:0X00000000 mmcr1:0XCC0000008EA88A8E mmcra:0X00000000 event:0X07D3 mmcr0:0X00000000 mmcr1:0XCC0000008EA88A8E mmcra:0X00000000 #Group 126 pm_fpu1_misc2, FPU1 events event:0X07E0 mmcr0:0X00000000 mmcr1:0XDD00000088AEACAE mmcra:0X00000000 event:0X07E1 mmcr0:0X00000000 mmcr1:0XDD00000088AEACAE mmcra:0X00000000 event:0X07E2 mmcr0:0X00000000 mmcr1:0XDD00000088AEACAE mmcra:0X00000000 event:0X07E3 mmcr0:0X00000000 mmcr1:0XDD00000088AEACAE mmcra:0X00000000 #Group 127 pm_fpu1_misc3, FPU1 events event:0X07F0 mmcr0:0X00000000 mmcr1:0X0D000000A8AA8C8E mmcra:0X00000000 event:0X07F1 mmcr0:0X00000000 mmcr1:0X0D000000A8AA8C8E mmcra:0X00000000 event:0X07F2 mmcr0:0X00000000 mmcr1:0X0D000000A8AA8C8E mmcra:0X00000000 event:0X07F3 mmcr0:0X00000000 mmcr1:0X0D000000A8AA8C8E mmcra:0X00000000 #Group 128 pm_fpu_flop, FPU flop events event:0X0800 mmcr0:0X00000000 mmcr1:0XC000000030303434 mmcra:0X00000000 event:0X0801 mmcr0:0X00000000 mmcr1:0XC000000030303434 mmcra:0X00000000 event:0X0802 mmcr0:0X00000000 mmcr1:0XC000000030303434 mmcra:0X00000000 event:0X0803 mmcr0:0X00000000 mmcr1:0XC000000030303434 mmcra:0X00000000 #Group 129 pm_fpu_misc, FPU events event:0X0810 mmcr0:0X00000000 mmcr1:0XDD00000030343434 mmcra:0X00000000 event:0X0811 mmcr0:0X00000000 mmcr1:0XDD00000030343434 mmcra:0X00000000 event:0X0812 mmcr0:0X00000000 mmcr1:0XDD00000030343434 mmcra:0X00000000 event:0X0813 mmcr0:0X00000000 mmcr1:0XDD00000030343434 mmcra:0X00000000 #Group 130 pm_fpu_misc2, FPU events event:0X0820 mmcr0:0X00000000 mmcr1:0X0C00000034343030 mmcra:0X00000000 event:0X0821 mmcr0:0X00000000 mmcr1:0X0C00000034343030 mmcra:0X00000000 event:0X0822 mmcr0:0X00000000 mmcr1:0X0C00000034343030 mmcra:0X00000000 event:0X0823 mmcr0:0X00000000 mmcr1:0X0C00000034343030 mmcra:0X00000000 #Group 131 pm_fpu_misc3, FPU events event:0X0830 mmcr0:0X00000000 mmcr1:0X0D00000034343030 mmcra:0X00000000 event:0X0831 mmcr0:0X00000000 mmcr1:0X0D00000034343030 mmcra:0X00000000 event:0X0832 mmcr0:0X00000000 mmcr1:0X0D00000034343030 mmcra:0X00000000 event:0X0833 mmcr0:0X00000000 mmcr1:0X0D00000034343030 mmcra:0X00000000 #Group 132 pm_purr, PURR events event:0X0840 mmcr0:0X00000000 mmcr1:0X000000000EF41E02 mmcra:0X00000000 event:0X0841 mmcr0:0X00000000 mmcr1:0X000000000EF41E02 mmcra:0X00000000 event:0X0842 mmcr0:0X00000000 mmcr1:0X000000000EF41E02 mmcra:0X00000000 event:0X0843 mmcr0:0X00000000 mmcr1:0X000000000EF41E02 mmcra:0X00000000 #Group 133 pm_suspend, SUSPENDED events event:0X0850 mmcr0:0X00000000 mmcr1:0X00900000001EEC02 mmcra:0X00000000 event:0X0851 mmcr0:0X00000000 mmcr1:0X00900000001EEC02 mmcra:0X00000000 event:0X0852 mmcr0:0X00000000 mmcr1:0X00900000001EEC02 mmcra:0X00000000 event:0X0853 mmcr0:0X00000000 mmcr1:0X00900000001EEC02 mmcra:0X00000000 #Group 134 pm_dcache, D cache event:0X0860 mmcr0:0X00000000 mmcr1:0X000000000C0E0C06 mmcra:0X00000000 event:0X0861 mmcr0:0X00000000 mmcr1:0X000000000C0E0C06 mmcra:0X00000000 event:0X0862 mmcr0:0X00000000 mmcr1:0X000000000C0E0C06 mmcra:0X00000000 event:0X0863 mmcr0:0X00000000 mmcr1:0X000000000C0E0C06 mmcra:0X00000000 #Group 135 pm_derat_miss, DERAT miss event:0X0870 mmcr0:0X00000000 mmcr1:0X0090000F40404040 mmcra:0X00000000 event:0X0871 mmcr0:0X00000000 mmcr1:0X0090000F40404040 mmcra:0X00000000 event:0X0872 mmcr0:0X00000000 mmcr1:0X0090000F40404040 mmcra:0X00000000 event:0X0873 mmcr0:0X00000000 mmcr1:0X0090000F40404040 mmcra:0X00000000 #Group 136 pm_derat_ref, DERAT ref event:0X0880 mmcr0:0X00000000 mmcr1:0X0080000F40404040 mmcra:0X00000000 event:0X0881 mmcr0:0X00000000 mmcr1:0X0080000F40404040 mmcra:0X00000000 event:0X0882 mmcr0:0X00000000 mmcr1:0X0080000F40404040 mmcra:0X00000000 event:0X0883 mmcr0:0X00000000 mmcr1:0X0080000F40404040 mmcra:0X00000000 #Group 137 pm_ierat_miss, IERAT miss event:0X0890 mmcr0:0X00000000 mmcr1:0X0090000F46464646 mmcra:0X00000000 event:0X0891 mmcr0:0X00000000 mmcr1:0X0090000F46464646 mmcra:0X00000000 event:0X0892 mmcr0:0X00000000 mmcr1:0X0090000F46464646 mmcra:0X00000000 event:0X0893 mmcr0:0X00000000 mmcr1:0X0090000F46464646 mmcra:0X00000000 #Group 138 pm_mrk_br, Marked Branch events event:0X08A0 mmcr0:0X00000000 mmcr1:0X0000000052565202 mmcra:0X00000001 event:0X08A1 mmcr0:0X00000000 mmcr1:0X0000000052565202 mmcra:0X00000001 event:0X08A2 mmcr0:0X00000000 mmcr1:0X0000000052565202 mmcra:0X00000001 event:0X08A3 mmcr0:0X00000000 mmcr1:0X0000000052565202 mmcra:0X00000001 #Group 139 pm_mrk_dsource, Marked data sources event:0X08B0 mmcr0:0X00000000 mmcr1:0X00000000024A4C4C mmcra:0X00000001 event:0X08B1 mmcr0:0X00000000 mmcr1:0X00000000024A4C4C mmcra:0X00000001 event:0X08B2 mmcr0:0X00000000 mmcr1:0X00000000024A4C4C mmcra:0X00000001 event:0X08B3 mmcr0:0X00000000 mmcr1:0X00000000024A4C4C mmcra:0X00000001 #Group 140 pm_mrk_dsource2, Marked data sources event:0X08C0 mmcr0:0X00000000 mmcr1:0X0000000048484E02 mmcra:0X00000001 event:0X08C1 mmcr0:0X00000000 mmcr1:0X0000000048484E02 mmcra:0X00000001 event:0X08C2 mmcr0:0X00000000 mmcr1:0X0000000048484E02 mmcra:0X00000001 event:0X08C3 mmcr0:0X00000000 mmcr1:0X0000000048484E02 mmcra:0X00000001 #Group 141 pm_mrk_dsource3, Marked data sources event:0X08D0 mmcr0:0X00000000 mmcr1:0X000000002802484E mmcra:0X00000001 event:0X08D1 mmcr0:0X00000000 mmcr1:0X000000002802484E mmcra:0X00000001 event:0X08D2 mmcr0:0X00000000 mmcr1:0X000000002802484E mmcra:0X00000001 event:0X08D3 mmcr0:0X00000000 mmcr1:0X000000002802484E mmcra:0X00000001 #Group 142 pm_mrk_dsource4, Marked data sources event:0X08E0 mmcr0:0X00000000 mmcr1:0X000000004E4E2802 mmcra:0X00000001 event:0X08E1 mmcr0:0X00000000 mmcr1:0X000000004E4E2802 mmcra:0X00000001 event:0X08E2 mmcr0:0X00000000 mmcr1:0X000000004E4E2802 mmcra:0X00000001 event:0X08E3 mmcr0:0X00000000 mmcr1:0X000000004E4E2802 mmcra:0X00000001 #Group 143 pm_mrk_dsource5, Marked data sources event:0X08F0 mmcr0:0X00000000 mmcr1:0X000000004A4C024A mmcra:0X00000001 event:0X08F1 mmcr0:0X00000000 mmcr1:0X000000004A4C024A mmcra:0X00000001 event:0X08F2 mmcr0:0X00000000 mmcr1:0X000000004A4C024A mmcra:0X00000001 event:0X08F3 mmcr0:0X00000000 mmcr1:0X000000004A4C024A mmcra:0X00000001 #Group 144 pm_mrk_dsource6, Marked data sources event:0X0900 mmcr0:0X00000000 mmcr1:0X000000004C4C4A02 mmcra:0X00000001 event:0X0901 mmcr0:0X00000000 mmcr1:0X000000004C4C4A02 mmcra:0X00000001 event:0X0902 mmcr0:0X00000000 mmcr1:0X000000004C4C4A02 mmcra:0X00000001 event:0X0903 mmcr0:0X00000000 mmcr1:0X000000004C4C4A02 mmcra:0X00000001 #Group 145 pm_mrk_rejects, Marked rejects event:0X0910 mmcr0:0X00000000 mmcr1:0X0009000D34340230 mmcra:0X00000001 event:0X0911 mmcr0:0X00000000 mmcr1:0X0009000D34340230 mmcra:0X00000001 event:0X0912 mmcr0:0X00000000 mmcr1:0X0009000D34340230 mmcra:0X00000001 event:0X0913 mmcr0:0X00000000 mmcr1:0X0009000D34340230 mmcra:0X00000001 #Group 146 pm_mrk_rejects2, Marked rejects LSU0 event:0X0920 mmcr0:0X00000000 mmcr1:0X00090000E6E0C202 mmcra:0X00000001 event:0X0921 mmcr0:0X00000000 mmcr1:0X00090000E6E0C202 mmcra:0X00000001 event:0X0922 mmcr0:0X00000000 mmcr1:0X00090000E6E0C202 mmcra:0X00000001 event:0X0923 mmcr0:0X00000000 mmcr1:0X00090000E6E0C202 mmcra:0X00000001 #Group 147 pm_mrk_rejects3, Marked rejects LSU1 event:0X0930 mmcr0:0X00000000 mmcr1:0X00090000EEE8CA02 mmcra:0X00000001 event:0X0931 mmcr0:0X00000000 mmcr1:0X00090000EEE8CA02 mmcra:0X00000001 event:0X0932 mmcr0:0X00000000 mmcr1:0X00090000EEE8CA02 mmcra:0X00000001 event:0X0933 mmcr0:0X00000000 mmcr1:0X00090000EEE8CA02 mmcra:0X00000001 #Group 148 pm_mrk_inst, Marked instruction events event:0X0940 mmcr0:0X00000000 mmcr1:0X000000001C100A02 mmcra:0X00000001 event:0X0941 mmcr0:0X00000000 mmcr1:0X000000001C100A02 mmcra:0X00000001 event:0X0942 mmcr0:0X00000000 mmcr1:0X000000001C100A02 mmcra:0X00000001 event:0X0943 mmcr0:0X00000000 mmcr1:0X000000001C100A02 mmcra:0X00000001 #Group 149 pm_mrk_fpu_fin, Marked Floating Point instructions finished event:0X0950 mmcr0:0X00000000 mmcr1:0XD0000000828A1A02 mmcra:0X00000001 event:0X0951 mmcr0:0X00000000 mmcr1:0XD0000000828A1A02 mmcra:0X00000001 event:0X0952 mmcr0:0X00000000 mmcr1:0XD0000000828A1A02 mmcra:0X00000001 event:0X0953 mmcr0:0X00000000 mmcr1:0XD0000000828A1A02 mmcra:0X00000001 #Group 150 pm_mrk_misc, Marked misc events event:0X0960 mmcr0:0X00000000 mmcr1:0X00090008341A0802 mmcra:0X00000001 event:0X0961 mmcr0:0X00000000 mmcr1:0X00090008341A0802 mmcra:0X00000001 event:0X0962 mmcr0:0X00000000 mmcr1:0X00090008341A0802 mmcra:0X00000001 event:0X0963 mmcr0:0X00000000 mmcr1:0X00090008341A0802 mmcra:0X00000001 #Group 151 pm_mrk_misc2, Marked misc events event:0X0970 mmcr0:0X00000000 mmcr1:0X00080000E40A023E mmcra:0X00000001 event:0X0971 mmcr0:0X00000000 mmcr1:0X00080000E40A023E mmcra:0X00000001 event:0X0972 mmcr0:0X00000000 mmcr1:0X00080000E40A023E mmcra:0X00000001 event:0X0973 mmcr0:0X00000000 mmcr1:0X00080000E40A023E mmcra:0X00000001 #Group 152 pm_mrk_misc3, Marked misc events event:0X0980 mmcr0:0X00000000 mmcr1:0XB009000088E40212 mmcra:0X00000001 event:0X0981 mmcr0:0X00000000 mmcr1:0XB009000088E40212 mmcra:0X00000001 event:0X0982 mmcr0:0X00000000 mmcr1:0XB009000088E40212 mmcra:0X00000001 event:0X0983 mmcr0:0X00000000 mmcr1:0XB009000088E40212 mmcra:0X00000001 #Group 153 pm_mrk_misc4, Marked misc events event:0X0990 mmcr0:0X00000000 mmcr1:0X000000001E1E021A mmcra:0X00000001 event:0X0991 mmcr0:0X00000000 mmcr1:0X000000001E1E021A mmcra:0X00000001 event:0X0992 mmcr0:0X00000000 mmcr1:0X000000001E1E021A mmcra:0X00000001 event:0X0993 mmcr0:0X00000000 mmcr1:0X000000001E1E021A mmcra:0X00000001 #Group 154 pm_mrk_st, Marked stores events event:0X09A0 mmcr0:0X00000000 mmcr1:0X0000000006060602 mmcra:0X00000001 event:0X09A1 mmcr0:0X00000000 mmcr1:0X0000000006060602 mmcra:0X00000001 event:0X09A2 mmcr0:0X00000000 mmcr1:0X0000000006060602 mmcra:0X00000001 event:0X09A3 mmcr0:0X00000000 mmcr1:0X0000000006060602 mmcra:0X00000001 #Group 155 pm_mrk_pteg, Marked PTEG event:0X09B0 mmcr0:0X00000000 mmcr1:0X0010000040424402 mmcra:0X00000001 event:0X09B1 mmcr0:0X00000000 mmcr1:0X0010000040424402 mmcra:0X00000001 event:0X09B2 mmcr0:0X00000000 mmcr1:0X0010000040424402 mmcra:0X00000001 event:0X09B3 mmcr0:0X00000000 mmcr1:0X0010000040424402 mmcra:0X00000001 #Group 156 pm_mrk_pteg2, Marked PTEG event:0X09C0 mmcr0:0X00000000 mmcr1:0X0010000002404644 mmcra:0X00000001 event:0X09C1 mmcr0:0X00000000 mmcr1:0X0010000002404644 mmcra:0X00000001 event:0X09C2 mmcr0:0X00000000 mmcr1:0X0010000002404644 mmcra:0X00000001 event:0X09C3 mmcr0:0X00000000 mmcr1:0X0010000002404644 mmcra:0X00000001 #Group 157 pm_mrk_pteg3, Marked PTEG event:0X09D0 mmcr0:0X00000000 mmcr1:0X0010000046460246 mmcra:0X00000001 event:0X09D1 mmcr0:0X00000000 mmcr1:0X0010000046460246 mmcra:0X00000001 event:0X09D2 mmcr0:0X00000000 mmcr1:0X0010000046460246 mmcra:0X00000001 event:0X09D3 mmcr0:0X00000000 mmcr1:0X0010000046460246 mmcra:0X00000001 #Group 158 pm_mrk_pteg4, Marked PTEG event:0X09E0 mmcr0:0X00000000 mmcr1:0X0010000042024054 mmcra:0X00000001 event:0X09E1 mmcr0:0X00000000 mmcr1:0X0010000042024054 mmcra:0X00000001 event:0X09E2 mmcr0:0X00000000 mmcr1:0X0010000042024054 mmcra:0X00000001 event:0X09E3 mmcr0:0X00000000 mmcr1:0X0010000042024054 mmcra:0X00000001 #Group 159 pm_mrk_pteg5, Marked PTEG event:0X09F0 mmcr0:0X00000000 mmcr1:0X0010000044025442 mmcra:0X00000001 event:0X09F1 mmcr0:0X00000000 mmcr1:0X0010000044025442 mmcra:0X00000001 event:0X09F2 mmcr0:0X00000000 mmcr1:0X0010000044025442 mmcra:0X00000001 event:0X09F3 mmcr0:0X00000000 mmcr1:0X0010000044025442 mmcra:0X00000001 #Group 160 pm_mrk_pteg6, Marked PTEG event:0X0A00 mmcr0:0X00000000 mmcr1:0X001000001E444202 mmcra:0X00000001 event:0X0A01 mmcr0:0X00000000 mmcr1:0X001000001E444202 mmcra:0X00000001 event:0X0A02 mmcr0:0X00000000 mmcr1:0X001000001E444202 mmcra:0X00000001 event:0X0A03 mmcr0:0X00000000 mmcr1:0X001000001E444202 mmcra:0X00000001 #Group 161 pm_mrk_vmx, Marked VMX event:0X0A10 mmcr0:0X00000000 mmcr1:0X700000008C88AE02 mmcra:0X00000001 event:0X0A11 mmcr0:0X00000000 mmcr1:0X700000008C88AE02 mmcra:0X00000001 event:0X0A12 mmcr0:0X00000000 mmcr1:0X700000008C88AE02 mmcra:0X00000001 event:0X0A13 mmcr0:0X00000000 mmcr1:0X700000008C88AE02 mmcra:0X00000001 #Group 162 pm_mrk_vmx2, Marked VMX event:0X0A20 mmcr0:0X00000000 mmcr1:0X60900000868EE002 mmcra:0X00000001 event:0X0A21 mmcr0:0X00000000 mmcr1:0X60900000868EE002 mmcra:0X00000001 event:0X0A22 mmcr0:0X00000000 mmcr1:0X60900000868EE002 mmcra:0X00000001 event:0X0A23 mmcr0:0X00000000 mmcr1:0X60900000868EE002 mmcra:0X00000001 #Group 163 pm_mrk_vmx3, Marked VMX event:0X0A30 mmcr0:0X00000000 mmcr1:0X700000008A821E02 mmcra:0X00000001 event:0X0A31 mmcr0:0X00000000 mmcr1:0X700000008A821E02 mmcra:0X00000001 event:0X0A32 mmcr0:0X00000000 mmcr1:0X700000008A821E02 mmcra:0X00000001 event:0X0A33 mmcr0:0X00000000 mmcr1:0X700000008A821E02 mmcra:0X00000001 #Group 164 pm_mrk_fp, Marked FP events event:0X0A40 mmcr0:0X00000000 mmcr1:0XD00000008230AA02 mmcra:0X00000001 event:0X0A41 mmcr0:0X00000000 mmcr1:0XD00000008230AA02 mmcra:0X00000001 event:0X0A42 mmcr0:0X00000000 mmcr1:0XD00000008230AA02 mmcra:0X00000001 event:0X0A43 mmcr0:0X00000000 mmcr1:0XD00000008230AA02 mmcra:0X00000001 #Group 165 pm_mrk_derat_ref, Marked DERAT ref event:0X0A50 mmcr0:0X00000000 mmcr1:0X0080000044444402 mmcra:0X00000001 event:0X0A51 mmcr0:0X00000000 mmcr1:0X0080000044444402 mmcra:0X00000001 event:0X0A52 mmcr0:0X00000000 mmcr1:0X0080000044444402 mmcra:0X00000001 event:0X0A53 mmcr0:0X00000000 mmcr1:0X0080000044444402 mmcra:0X00000001 #Group 166 pm_mrk_derat_miss, Marked DERAT miss event:0X0A60 mmcr0:0X00000000 mmcr1:0X0090000044444402 mmcra:0X00000001 event:0X0A61 mmcr0:0X00000000 mmcr1:0X0090000044444402 mmcra:0X00000001 event:0X0A62 mmcr0:0X00000000 mmcr1:0X0090000044444402 mmcra:0X00000001 event:0X0A63 mmcr0:0X00000000 mmcr1:0X0090000044444402 mmcra:0X00000001 #Group 167 pm_dcache_edge, D cache - edge event:0X0A70 mmcr0:0X00000000 mmcr1:0X000000000D0E0C07 mmcra:0X00000000 event:0X0A71 mmcr0:0X00000000 mmcr1:0X000000000D0E0C07 mmcra:0X00000000 event:0X0A72 mmcr0:0X00000000 mmcr1:0X000000000D0E0C07 mmcra:0X00000000 event:0X0A73 mmcr0:0X00000000 mmcr1:0X000000000D0E0C07 mmcra:0X00000000 #Group 168 pm_lsu_lmq_edge, LSU LMQ events - edge event:0X0A80 mmcr0:0X00000000 mmcr1:0X98000000AC1D1DA4 mmcra:0X00000000 event:0X0A81 mmcr0:0X00000000 mmcr1:0X98000000AC1D1DA4 mmcra:0X00000000 event:0X0A82 mmcr0:0X00000000 mmcr1:0X98000000AC1D1DA4 mmcra:0X00000000 event:0X0A83 mmcr0:0X00000000 mmcr1:0X98000000AC1D1DA4 mmcra:0X00000000 #Group 169 pm_gct_edge, GCT events - edge event:0X0A90 mmcr0:0X00000000 mmcr1:0X404000000909A7E8 mmcra:0X00000000 event:0X0A91 mmcr0:0X00000000 mmcr1:0X404000000909A7E8 mmcra:0X00000000 event:0X0A92 mmcr0:0X00000000 mmcr1:0X404000000909A7E8 mmcra:0X00000000 event:0X0A93 mmcr0:0X00000000 mmcr1:0X404000000909A7E8 mmcra:0X00000000 #Group 170 pm_freq_edge, Frequency events - edge event:0X0AA0 mmcr0:0X00000000 mmcr1:0X000000002B3D3C3C mmcra:0X00000000 event:0X0AA1 mmcr0:0X00000000 mmcr1:0X000000002B3D3C3C mmcra:0X00000000 event:0X0AA2 mmcr0:0X00000000 mmcr1:0X000000002B3D3C3C mmcra:0X00000000 event:0X0AA3 mmcr0:0X00000000 mmcr1:0X000000002B3D3C3C mmcra:0X00000000 #Group 171 pm_disp_wait_edge, Dispatch stalls - edge event:0X0AB0 mmcr0:0X00000000 mmcr1:0X00000000560D050D mmcra:0X00000000 event:0X0AB1 mmcr0:0X00000000 mmcr1:0X00000000560D050D mmcra:0X00000000 event:0X0AB2 mmcr0:0X00000000 mmcr1:0X00000000560D050D mmcra:0X00000000 event:0X0AB3 mmcr0:0X00000000 mmcr1:0X00000000560D050D mmcra:0X00000000 #Group 172 pm_edge1, EDGE event group event:0X0AC0 mmcr0:0X00000000 mmcr1:0X000006300D0C1F1E mmcra:0X00000000 event:0X0AC1 mmcr0:0X00000000 mmcr1:0X000006300D0C1F1E mmcra:0X00000000 event:0X0AC2 mmcr0:0X00000000 mmcr1:0X000006300D0C1F1E mmcra:0X00000000 event:0X0AC3 mmcr0:0X00000000 mmcr1:0X000006300D0C1F1E mmcra:0X00000000 #Group 173 pm_edge2, EDGE event group event:0X0AD0 mmcr0:0X00000000 mmcr1:0X400000008180A5A4 mmcra:0X00000000 event:0X0AD1 mmcr0:0X00000000 mmcr1:0X400000008180A5A4 mmcra:0X00000000 event:0X0AD2 mmcr0:0X00000000 mmcr1:0X400000008180A5A4 mmcra:0X00000000 event:0X0AD3 mmcr0:0X00000000 mmcr1:0X400000008180A5A4 mmcra:0X00000000 #Group 174 pm_edge3, EDGE event group event:0X0AE0 mmcr0:0X00000000 mmcr1:0X009000000BF4EBEA mmcra:0X00000000 event:0X0AE1 mmcr0:0X00000000 mmcr1:0X009000000BF4EBEA mmcra:0X00000000 event:0X0AE2 mmcr0:0X00000000 mmcr1:0X009000000BF4EBEA mmcra:0X00000000 event:0X0AE3 mmcr0:0X00000000 mmcr1:0X009000000BF4EBEA mmcra:0X00000000 #Group 175 pm_edge4, EDGE event group event:0X0AF0 mmcr0:0X00000000 mmcr1:0X400000008786A9A8 mmcra:0X00000000 event:0X0AF1 mmcr0:0X00000000 mmcr1:0X400000008786A9A8 mmcra:0X00000000 event:0X0AF2 mmcr0:0X00000000 mmcr1:0X400000008786A9A8 mmcra:0X00000000 event:0X0AF3 mmcr0:0X00000000 mmcr1:0X400000008786A9A8 mmcra:0X00000000 #Group 176 pm_edge5, EDGE event group event:0X0B00 mmcr0:0X00000000 mmcr1:0X00900000FB17EDEC mmcra:0X00000000 event:0X0B01 mmcr0:0X00000000 mmcr1:0X00900000FB17EDEC mmcra:0X00000000 event:0X0B02 mmcr0:0X00000000 mmcr1:0X00900000FB17EDEC mmcra:0X00000000 event:0X0B03 mmcr0:0X00000000 mmcr1:0X00900000FB17EDEC mmcra:0X00000000 #Group 177 pm_noedge5, EDGE event group event:0X0B10 mmcr0:0X00000000 mmcr1:0X00900000FA16EDEC mmcra:0X00000000 event:0X0B11 mmcr0:0X00000000 mmcr1:0X00900000FA16EDEC mmcra:0X00000000 event:0X0B12 mmcr0:0X00000000 mmcr1:0X00900000FA16EDEC mmcra:0X00000000 event:0X0B13 mmcr0:0X00000000 mmcr1:0X00900000FA16EDEC mmcra:0X00000000 #Group 178 pm_edge6, EDGE event group event:0X0B20 mmcr0:0X00000000 mmcr1:0X000000002B05050D mmcra:0X00000000 event:0X0B21 mmcr0:0X00000000 mmcr1:0X000000002B05050D mmcra:0X00000000 event:0X0B22 mmcr0:0X00000000 mmcr1:0X000000002B05050D mmcra:0X00000000 event:0X0B23 mmcr0:0X00000000 mmcr1:0X000000002B05050D mmcra:0X00000000 #Group 179 pm_noedge6, EDGE event group event:0X0B30 mmcr0:0X00000000 mmcr1:0X000000002A04040C mmcra:0X00000000 event:0X0B31 mmcr0:0X00000000 mmcr1:0X000000002A04040C mmcra:0X00000000 event:0X0B32 mmcr0:0X00000000 mmcr1:0X000000002A04040C mmcra:0X00000000 event:0X0B33 mmcr0:0X00000000 mmcr1:0X000000002A04040C mmcra:0X00000000 #Group 180 pm_edge7, EDGE event group event:0X0B40 mmcr0:0X00000000 mmcr1:0X0000000009091D1D mmcra:0X00000000 event:0X0B41 mmcr0:0X00000000 mmcr1:0X0000000009091D1D mmcra:0X00000000 event:0X0B42 mmcr0:0X00000000 mmcr1:0X0000000009091D1D mmcra:0X00000000 event:0X0B43 mmcr0:0X00000000 mmcr1:0X0000000009091D1D mmcra:0X00000000 #Group 181 pm_noedge7, NOEDGE event group event:0X0B50 mmcr0:0X00000000 mmcr1:0X0000000008081C1C mmcra:0X00000000 event:0X0B51 mmcr0:0X00000000 mmcr1:0X0000000008081C1C mmcra:0X00000000 event:0X0B52 mmcr0:0X00000000 mmcr1:0X0000000008081C1C mmcra:0X00000000 event:0X0B53 mmcr0:0X00000000 mmcr1:0X0000000008081C1C mmcra:0X00000000 #Group 182 pm_edge8, EDGE event group event:0X0B60 mmcr0:0X00000000 mmcr1:0X00900000CD1DEC07 mmcra:0X00000000 event:0X0B61 mmcr0:0X00000000 mmcr1:0X00900000CD1DEC07 mmcra:0X00000000 event:0X0B62 mmcr0:0X00000000 mmcr1:0X00900000CD1DEC07 mmcra:0X00000000 event:0X0B63 mmcr0:0X00000000 mmcr1:0X00900000CD1DEC07 mmcra:0X00000000 #Group 183 pm_noedge8, NOEDGE event group event:0X0B70 mmcr0:0X00000000 mmcr1:0X00900000CC1CED06 mmcra:0X00000000 event:0X0B71 mmcr0:0X00000000 mmcr1:0X00900000CC1CED06 mmcra:0X00000000 event:0X0B72 mmcr0:0X00000000 mmcr1:0X00900000CC1CED06 mmcra:0X00000000 event:0X0B73 mmcr0:0X00000000 mmcr1:0X00900000CC1CED06 mmcra:0X00000000 #Group 184 pm_edge9, EDGE event group event:0X0B80 mmcr0:0X00000000 mmcr1:0X80000000880D0CA2 mmcra:0X00000000 event:0X0B81 mmcr0:0X00000000 mmcr1:0X80000000880D0CA2 mmcra:0X00000000 event:0X0B82 mmcr0:0X00000000 mmcr1:0X80000000880D0CA2 mmcra:0X00000000 event:0X0B83 mmcr0:0X00000000 mmcr1:0X80000000880D0CA2 mmcra:0X00000000 #Group 185 pm_edge10, EDGE event group event:0X0B90 mmcr0:0X00000000 mmcr1:0X32000000AC3DAE05 mmcra:0X00000000 event:0X0B91 mmcr0:0X00000000 mmcr1:0X32000000AC3DAE05 mmcra:0X00000000 event:0X0B92 mmcr0:0X00000000 mmcr1:0X32000000AC3DAE05 mmcra:0X00000000 event:0X0B93 mmcr0:0X00000000 mmcr1:0X32000000AC3DAE05 mmcra:0X00000000 #Group 186 pm_noedge10, NOEDGE event group event:0X0BA0 mmcr0:0X00000000 mmcr1:0X32000000AC3CAE04 mmcra:0X00000000 event:0X0BA1 mmcr0:0X00000000 mmcr1:0X32000000AC3CAE04 mmcra:0X00000000 event:0X0BA2 mmcr0:0X00000000 mmcr1:0X32000000AC3CAE04 mmcra:0X00000000 event:0X0BA3 mmcr0:0X00000000 mmcr1:0X32000000AC3CAE04 mmcra:0X00000000 #Group 187 pm_hpm1, HPM group event:0X0BB0 mmcr0:0X00000000 mmcr1:0XC00000003030341E mmcra:0X00000000 event:0X0BB1 mmcr0:0X00000000 mmcr1:0XC00000003030341E mmcra:0X00000000 event:0X0BB2 mmcr0:0X00000000 mmcr1:0XC00000003030341E mmcra:0X00000000 event:0X0BB3 mmcr0:0X00000000 mmcr1:0XC00000003030341E mmcra:0X00000000 #Group 188 pm_hpm2, HPM group event:0X0BC0 mmcr0:0X00000000 mmcr1:0X8C0000000232301E mmcra:0X00000000 event:0X0BC1 mmcr0:0X00000000 mmcr1:0X8C0000000232301E mmcra:0X00000000 event:0X0BC2 mmcr0:0X00000000 mmcr1:0X8C0000000232301E mmcra:0X00000000 event:0X0BC3 mmcr0:0X00000000 mmcr1:0X8C0000000232301E mmcra:0X00000000 #Group 189 pm_hpm3, HPM group event:0X0BD0 mmcr0:0X00000000 mmcr1:0X800000001E80F002 mmcra:0X00000000 event:0X0BD1 mmcr0:0X00000000 mmcr1:0X800000001E80F002 mmcra:0X00000000 event:0X0BD2 mmcr0:0X00000000 mmcr1:0X800000001E80F002 mmcra:0X00000000 event:0X0BD3 mmcr0:0X00000000 mmcr1:0X800000001E80F002 mmcra:0X00000000 #Group 190 pm_hpm4, HPM group event:0X0BE0 mmcr0:0X00000000 mmcr1:0X800000000212A234 mmcra:0X00000000 event:0X0BE1 mmcr0:0X00000000 mmcr1:0X800000000212A234 mmcra:0X00000000 event:0X0BE2 mmcr0:0X00000000 mmcr1:0X800000000212A234 mmcra:0X00000000 event:0X0BE3 mmcr0:0X00000000 mmcr1:0X800000000212A234 mmcra:0X00000000 #Group 191 pm_hpm5, HPM group event:0X0BF0 mmcr0:0X00000000 mmcr1:0XD0000000301E1616 mmcra:0X00000000 event:0X0BF1 mmcr0:0X00000000 mmcr1:0XD0000000301E1616 mmcra:0X00000000 event:0X0BF2 mmcr0:0X00000000 mmcr1:0XD0000000301E1616 mmcra:0X00000000 event:0X0BF3 mmcr0:0X00000000 mmcr1:0XD0000000301E1616 mmcra:0X00000000 #Group 192 pm_hpm6, HPM group event:0X0C00 mmcr0:0X00000000 mmcr1:0X0000000058585A5A mmcra:0X00000000 event:0X0C01 mmcr0:0X00000000 mmcr1:0X0000000058585A5A mmcra:0X00000000 event:0X0C02 mmcr0:0X00000000 mmcr1:0X0000000058585A5A mmcra:0X00000000 event:0X0C03 mmcr0:0X00000000 mmcr1:0X0000000058585A5A mmcra:0X00000000 #Group 193 pm_hpm7, HPM group event:0X0C10 mmcr0:0X00000000 mmcr1:0X000000005A5A581E mmcra:0X00000000 event:0X0C11 mmcr0:0X00000000 mmcr1:0X000000005A5A581E mmcra:0X00000000 event:0X0C12 mmcr0:0X00000000 mmcr1:0X000000005A5A581E mmcra:0X00000000 event:0X0C13 mmcr0:0X00000000 mmcr1:0X000000005A5A581E mmcra:0X00000000 #Group 194 pm_hpm8, HPM group event:0X0C20 mmcr0:0X00000000 mmcr1:0XCC000000303030F0 mmcra:0X00000000 event:0X0C21 mmcr0:0X00000000 mmcr1:0XCC000000303030F0 mmcra:0X00000000 event:0X0C22 mmcr0:0X00000000 mmcr1:0XCC000000303030F0 mmcra:0X00000000 event:0X0C23 mmcr0:0X00000000 mmcr1:0XCC000000303030F0 mmcra:0X00000000 #Group 195 pm_hpm9, HPM group event:0X0C30 mmcr0:0X00000000 mmcr1:0X80000000801E34A8 mmcra:0X00000000 event:0X0C31 mmcr0:0X00000000 mmcr1:0X80000000801E34A8 mmcra:0X00000000 event:0X0C32 mmcr0:0X00000000 mmcr1:0X80000000801E34A8 mmcra:0X00000000 event:0X0C33 mmcr0:0X00000000 mmcr1:0X80000000801E34A8 mmcra:0X00000000 #Group 196 pm_hpm10, HPM group event:0X0C40 mmcr0:0X00000000 mmcr1:0X5040A00002325456 mmcra:0X00000000 event:0X0C41 mmcr0:0X00000000 mmcr1:0X5040A00002325456 mmcra:0X00000000 event:0X0C42 mmcr0:0X00000000 mmcr1:0X5040A00002325456 mmcra:0X00000000 event:0X0C43 mmcr0:0X00000000 mmcr1:0X5040A00002325456 mmcra:0X00000000 #Group 197 pm_mrk_derat_ref2, Marked DERAT ref event:0X0C50 mmcr0:0X00000000 mmcr1:0X0080000044440244 mmcra:0X00000001 event:0X0C51 mmcr0:0X00000000 mmcr1:0X0080000044440244 mmcra:0X00000001 event:0X0C52 mmcr0:0X00000000 mmcr1:0X0080000044440244 mmcra:0X00000001 event:0X0C53 mmcr0:0X00000000 mmcr1:0X0080000044440244 mmcra:0X00000001 #Group 198 pm_mrk_derat_miss2, Marked DERAT miss event:0X0C60 mmcr0:0X00000000 mmcr1:0X0090000044440244 mmcra:0X00000001 event:0X0C61 mmcr0:0X00000000 mmcr1:0X0090000044440244 mmcra:0X00000001 event:0X0C62 mmcr0:0X00000000 mmcr1:0X0090000044440244 mmcra:0X00000001 event:0X0C63 mmcr0:0X00000000 mmcr1:0X0090000044440244 mmcra:0X00000001 oprofile-0.9.9/events/x86-64/0000775000076400007640000000000012175511556012553 500000000000000oprofile-0.9.9/events/x86-64/family14h/0000775000076400007640000000000012175511557014352 500000000000000oprofile-0.9.9/events/x86-64/family14h/events0000664000076400007640000003724712175510133015523 00000000000000# AMD Family 14 processor performance events # # Copyright OProfile authors # Copyright (c) 2006-2011 Advanced Micro Devices # Contributed by Ray Bryant , # Jason Yeh # Suravee Suthikulpanit # Paul Drongowski # # Sources: BIOS and Kernel Developer's Guide for AMD Family 14h Processors, # Publication# 43170, Revision 3.04, Feb 16, 2011 # # Software Optimization Guide for AMD Family 10h and Family 12h Processors, # Publication# 40546, Revision 3.13, February 2011 # (Note: For IBS Derived Performance Events) # # Revision: 1.2 # # ChangeLog: # 1.2: 11 March 2011 # - Update to BKDG Rev.3.04 # # 1.1: 25 January 2011. # - Update to BKDG Revision 3.00 # - Update minimum value for RETIRED_UOPS # # 1.0: 29 November 2010. # - Preliminary version event:0x000 counters:0,1,2,3 um:fpu_ops minimum:500 name:DISPATCHED_FPU_OPS : Dispatched FPU Operations event:0x001 counters:0,1,2,3 um:zero minimum:500 name:CYCLES_FPU_EMPTY : Cycles in which the FPU is Empty event:0x002 counters:0,1,2,3 um:zero minimum:500 name:DISPATCHED_FPU_OPS_FAST_FLAG : Dispatched Fast Flag FPU Operations event:0x003 counters:0,1,2,3 um:sse_ops minimum:500 name:RETIRED_SSE_OPS : Retired SSE Operations event:0x004 counters:0,1,2,3 um:move_ops minimum:500 name:RETIRED_MOVE_OPS : Retired Move Ops event:0x005 counters:0,1,2,3 um:serial_ops minimum:500 name:RETIRED_SERIALIZING_OPS : Retired Serializing Ops event:0x011 counters:0,1,2,3 um:retired_x87_fp minimum:500 name:RETIRED_X87_FP_OPS : Retired x87 Floating Point Operations event:0x020 counters:0,1,2,3 um:segregload minimum:500 name:SEGMENT_REGISTER_LOADS : Segment Register Loads event:0x021 counters:0,1,2,3 um:zero minimum:500 name:PIPELINE_RESTART_DUE_TO_SELF_MODIFYING_CODE : Pipeline Restart Due to Self-Modifying Code event:0x022 counters:0,1,2,3 um:zero minimum:500 name:PIPELINE_RESTART_DUE_TO_PROBE_HIT : Pipeline Restart Due to Probe Hit event:0x023 counters:0,1,2,3 um:zero minimum:500 name:RSQ_FULL : RSQ Full event:0x024 counters:0,1,2,3 um:lock_ops minimum:500 name:LOCKED_OPS : Locked Operations event:0x026 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_CLFLUSH_INSTRUCTIONS : Retired CLFLUSH Instructions event:0x027 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_CPUID_INSTRUCTIONS : Retired CPUID Instructions event:0x02a counters:0,1,2,3 um:store_to_load minimum:500 name:CANCELLED_STORE_TO_LOAD : Store to Load Forward Operations Block Loads event:0x040 counters:0,1,2,3 um:zero minimum:500 name:DATA_CACHE_ACCESSES : Data Cache Accesses event:0x041 counters:0,1,2,3 um:zero minimum:500 name:DATA_CACHE_MISSES : Data Cache Misses event:0x042 counters:0,1,2,3 um:moess minimum:500 name:DATA_CACHE_REFILLS_FROM_L2_OR_NORTHBRIDGE : Data Cache Refills from L2 or Northbridge event:0x043 counters:0,1,2,3 um:moesi minimum:500 name:DATA_CACHE_REFILLS_FROM_NORTHBRIDGE : Data Cache Refills from the northbridge event:0x044 counters:0,1,2,3 um:moesi_gh minimum:500 name:DATA_CACHE_LINES_EVICTED : Data Cache Lines Evicted event:0x045 counters:0,1,2,3 um:zero minimum:500 name:L1_DTLB_MISS_AND_L2_DTLB_HIT : L1 DTLB Miss and L2 DTLB Hit event:0x046 counters:0,1,2,3 um:l1_l2_dtlb_miss minimum:500 name:DTLB_MISS : DTLB Miss event:0x047 counters:0,1,2,3 um:zero minimum:500 name:MISALIGNED_ACCESSES : Misaligned Accesses event:0x04b counters:0,1,2,3 um:prefetch minimum:500 name:PREFETCH_INSTRUCTIONS_DISPATCHED : Prefetch Instructions Dispatched event:0x04c counters:0,1,2,3 um:zero minimum:500 name:LOCKED_INSTRUCTIONS_DCACHE_MISSES : DCACHE Misses by Locked Instructions event:0x04d counters:0,1,2,3 um:l1_dtlb_hit minimum:500 name:L1_DTLB_HIT : L1 DTLB Hit event:0x052 counters:0,1,2,3 um:soft_prefetch minimum:500 name:INEFFECTIVE_SW_PREFETCHES : DCACHE Ineffective Software Prefetches event:0x054 counters:0,1,2,3 um:zero minimum:500 name:GLOBAL_TLB_FLUSHES : Global Page Invalidations event:0x065 counters:0,1,2,3 um:memreqtype minimum:500 name:MEMORY_REQUESTS : Memory Requests by Type event:0x068 counters:0,1,2,3 um:mab_buffer minimum:500 name:MAB_REQS : MAB Requests event:0x069 counters:0,1,2,3 um:mab_buffer minimum:500 name:MAB_WAIT : MAB Wait Cycles event:0x06c counters:0,1,2,3 um:systemreadresponse minimum:500 name:NORTHBRIDGE_READ_RESPONSES : System Response by Coherence State event:0x076 counters:0,1,2,3 um:zero minimum:50000 name:CPU_CLK_UNHALTED : CPU Clocks not Halted event:0x07d counters:0,1,2,3 um:l2_internal minimum:500 name:REQUESTS_TO_L2 : Requests to L2 Cache event:0x07e counters:0,1,2,3 um:l2_req_miss minimum:500 name:L2_CACHE_MISS : L2 Cache Misses event:0x07f counters:0,1,2,3 um:l2_fill minimum:500 name:L2_CACHE_FILL_WRITEBACK : L2 Fill/Writeback event:0x162 counters:0,1,2,3 um:pdc_miss minimum:500 name:PDC_MISS : PDC Miss event:0x080 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_CACHE_FETCHES : Instruction Cache Fetches event:0x081 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_CACHE_MISSES : Instruction Cache Misses event:0x082 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_CACHE_REFILLS_FROM_L2 : Instruction Cache Refills from L2 event:0x083 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_CACHE_REFILLS_FROM_SYSTEM : Instruction Cache Refills from System event:0x085 counters:0,1,2,3 um:l1_l2_itlb_miss minimum:500 name:ITLB_MISS : ITLB Miss event:0x087 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_FETCH_STALL : Instruction Fetch Stall event:0x088 counters:0,1,2,3 um:zero minimum:500 name:RETURN_STACK_HITS : Return Stack Hits event:0x089 counters:0,1,2,3 um:zero minimum:500 name:RETURN_STACK_OVERFLOWS : Return Stack Overflows event:0x08b counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_CACHE_VICTIMS : Instruction Cache Victims event:0x08c counters:0,1,2,3 um:icache_invalidated minimum:500 name:INSTRUCTION_CACHE_INVALIDATED : Instruction Cache Lines Invalidated event:0x099 counters:0,1,2,3 um:zero minimum:500 name:ITLB_RELOADS : ITLB Reloads event:0x09a counters:0,1,2,3 um:zero minimum:500 name:ITLB_RELOADS_ABORTED : ITLB Reloads Aborted event:0x0c0 counters:0,1,2,3 um:zero minimum:50000 name:RETIRED_INSTRUCTIONS : Retired Instructions event:0x0c1 counters:0,1,2,3 um:zero minimum:50000 name:RETIRED_UOPS : Retired uops event:0x0c2 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_BRANCH_INSTRUCTIONS : Retired Branch Instructions event:0x0c3 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_MISPREDICTED_BRANCH_INSTRUCTIONS : Retired Mispredicted Branch Instructions event:0x0c4 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_TAKEN_BRANCH_INSTRUCTIONS : Retired Taken Branch Instructions event:0x0c5 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_TAKEN_BRANCH_INSTRUCTIONS_MISPREDICTED : Retired Taken Branch Instructions Mispredicted event:0x0c6 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_FAR_CONTROL_TRANSFERS : Retired Far Control Transfers event:0x0c7 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_BRANCH_RESYNCS : Retired Branch Resyncs event:0x0c8 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_NEAR_RETURNS : Retired Near Returns event:0x0c9 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_NEAR_RETURNS_MISPREDICTED : Retired Near Returns Mispredicted event:0x0ca counters:0,1,2,3 um:zero minimum:500 name:RETIRED_INDIRECT_BRANCHES_MISPREDICTED : Retired Mispredicted Taken Branch Instructions due to Target Mismatch event:0x0cb counters:0,1,2,3 um:fpu_instr minimum:500 name:RETIRED_MMX_FP_INSTRUCTIONS : Retired a Floating Point Instruction event:0x0cd counters:0,1,2,3 um:zero minimum:500 name:INTERRUPTS_MASKED_CYCLES : Interrupts-Masked Cycles event:0x0ce counters:0,1,2,3 um:zero minimum:500 name:INTERRUPTS_MASKED_CYCLES_WITH_INTERRUPT_PENDING : Interrupts-Masked Cycles with Interrupt Pending event:0x0cf counters:0,1,2,3 um:zero minimum:500 name:INTERRUPTS_TAKEN : Interrupts Taken event:0x0db counters:0,1,2,3 um:fpu_exceptions minimum:500 name:FPU_EXCEPTIONS : FPU Exceptions event:0x0dc counters:0,1,2,3 um:zero minimum:500 name:DR0_BREAKPOINTS : DR0 Breakpoint Matches event:0x0dd counters:0,1,2,3 um:zero minimum:500 name:DR1_BREAKPOINTS : DR1 Breakpoint Matches event:0x0de counters:0,1,2,3 um:zero minimum:500 name:DR2_BREAKPOINTS : DR2 Breakpoint Matches event:0x0df counters:0,1,2,3 um:zero minimum:500 name:DR3_BREAKPOINTS : DR3 Breakpoint Matches event:0x0e0 counters:0,1,2,3 um:page_access minimum:500 name:DRAM_ACCESSES : DRAM Accesses event:0x0e1 counters:0,1,2,3 um:mem_page_overflow minimum:500 name:DCT0_PAGE_TABLE_EVENTS : DRAM Controller Page Table Events event:0x0e2 counters:0,1,2,3 um:slot_missed minimum:500 name:MEMORY_CONTROLLER_SLOT_MISSED : Memory Controller DRAM Command Slots Missed event:0x0e3 counters:0,1,2,3 um:turnaround minimum:500 name:MEMORY_CONTROLLER_TURNAROUNDS : Memory Controller Turnarounds event:0x0e4 counters:0,1,2,3 um:saturation minimum:500 name:MEMORY_CONTROLLER_RBD_QUEUE_EVENTS : Memory Controller RBD Queue Events event:0x0e8 counters:0,1,2,3 um:thermal_status minimum:500 name:THERMAL_STATUS : Thermal Status event:0x0e9 counters:0,1,2,3 um:cpiorequests minimum:500 name:CPU_IO_REQUESTS_TO_MEMORY_IO : CPU/IO Requests to Memory/IO event:0x0ea counters:0,1,2,3 um:cacheblock minimum:500 name:CACHE_BLOCK_COMMANDS : Cache Block Commands event:0x0eb counters:0,1,2,3 um:sizecmds minimum:500 name:SIZED_COMMANDS : Sized Commands event:0x0ec counters:0,1,2,3 um:probe minimum:500 name:PROBE_RESPONSES_AND_UPSTREAM_REQUESTS : Probe Responses and Upstream Requests event:0x0ee counters:0,1,2,3 um:gart minimum:500 name:DEV_EVENTS : DEV Events event:0x1f0 counters:0,1,2,3 um:mem_control_request minimum:500 name:MEMORY_CONTROLLER_REQUESTS : Memory Controller Requests event:0x1e9 counters:0,1,2,3 um:sideband_signals minimum:500 name:SIDEBAND_SIGNALS : Sideband Signals and Special Cycles event:0x1ea counters:0,1,2,3 um:interrupt_events minimum:500 name:INTERRUPT_EVENTS : Interrupt Events event:0xf000 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_ALL : All IBS fetch samples event:0xf001 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_KILLED : IBS fetch killed event:0xf002 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_ATTEMPTED : IBS fetch attempted event:0xf003 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_COMPLETED : IBS fetch completed event:0xf004 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_ABORTED : IBS fetch aborted event:0xf005 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_ITLB_HITS : IBS ITLB hit event:0xf006 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_L1_ITLB_MISSES_L2_ITLB_HITS : IBS L1 ITLB misses (and L2 ITLB hits) event:0xf007 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_L1_ITLB_MISSES_L2_ITLB_MISSES : IBS L1 L2 ITLB miss event:0xf008 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_ICACHE_MISSES : IBS instruction cache misses event:0xf009 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_ICACHE_HITS : IBS instruction cache hit event:0xf00a ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_4K_PAGE : IBS 4K page translation event:0xf00b ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_2M_PAGE : IBS 2M page translation event:0xf00e ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_LATENCY : IBS fetch latency event:0xf100 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_ALL : All IBS op samples event:0xf101 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_TAG_TO_RETIRE : IBS tag-to-retire cycles event:0xf102 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_COMP_TO_RET : IBS completion-to-retire cycles event:0xf103 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_BRANCH_RETIRED : IBS branch op event:0xf104 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_MISPREDICTED_BRANCH : IBS mispredicted branch op event:0xf105 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_TAKEN_BRANCH : IBS taken branch op event:0xf106 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_MISPREDICTED_BRANCH_TAKEN : IBS mispredicted taken branch op event:0xf107 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_RETURNS : IBS return op event:0xf108 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_MISPREDICTED_RETURNS : IBS mispredicted return op event:0xf109 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_RESYNC : IBS resync op event:0xf200 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_ALL_LOAD_STORE : IBS all load store ops event:0xf201 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_LOAD : IBS load ops event:0xf202 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_STORE : IBS store ops event:0xf203 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L1_DTLB_HITS : IBS L1 DTLB hit event:0xf204 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L1_DTLB_MISS_L2_DTLB_HIT : IBS L1 DTLB misses L2 hits event:0xf205 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L1_L2_DTLB_MISS : IBS L1 and L2 DTLB misses event:0xf206 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_DATA_CACHE_MISS : IBS data cache misses event:0xf207 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_DATA_HITS : IBS data cache hits event:0xf208 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_MISALIGNED_DATA_ACC : IBS misaligned data access event:0xf209 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_BANK_CONF_LOAD : IBS bank conflict on load op event:0xf20a ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_BANK_CONF_STORE : IBS bank conflict on store op event:0xf20b ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_FORWARD : IBS store-to-load forwarded event:0xf20c ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_CANCELLED : IBS store-to-load cancelled event:0xf20d ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_DCUC_MEM_ACC : IBS UC memory access event:0xf20e ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_DCWC_MEM_ACC : IBS WC memory access event:0xf20f ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_LOCKED : IBS locked operation event:0xf210 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_MAB_HIT : IBS MAB hit event:0xf211 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L1_DTLB_4K : IBS L1 DTLB 4K page event:0xf212 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L1_DTLB_2M : IBS L1 DTLB 2M page event:0xf213 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L1_DTLB_1G : IBS L1 DTLB 1G page event:0xf215 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L2_DTLB_4K : IBS L2 DTLB 4K page event:0xf216 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L2_DTLB_2M : IBS L2 DTLB 2M page event:0xf217 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L2_DTLB_1G : IBS L2 DTLB 1G page event:0xf219 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_DC_LOAD_LAT : IBS data cache miss load latency event:0xf240 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_LOCAL_ONLY : IBS Northbridge local event:0xf241 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_REMOTE_ONLY : IBS Northbridge remote event:0xf242 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_LOCAL_L3 : IBS Northbridge local L3 event:0xf243 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_LOCAL_CACHE : IBS Northbridge local core L1 or L2 cache event:0xf244 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_REMOTE_CACHE : IBS Northbridge local core L1, L2, L3 cache event:0xf245 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_LOCAL_DRAM : IBS Northbridge local DRAM event:0xf246 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_REMOTE_DRAM : IBS Northbridge remote DRAM event:0xf247 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_LOCAL_OTHER : IBS Northbridge local APIC MMIO Config PCI event:0xf248 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_REMOTE_OTHER : IBS Northbridge remote APIC MMIO Config PCI event:0xf249 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_CACHE_MODIFIED : IBS Northbridge cache modified state event:0xf24a ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_CACHE_OWNED : IBS Northbridge cache owned state event:0xf24b ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_LOCAL_CACHE_LAT : IBS Northbridge local cache latency event:0xf24c ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_REMOTE_CACHE_LAT : IBS Northbridge remote cache latency oprofile-0.9.9/events/x86-64/family14h/unit_masks0000664000076400007640000001730112175510133016361 00000000000000# AMD Family 14 processor performance unit masks # # Copyright OProfile authors # Copyright (c) 2006-2011 Advanced Micro Devices # Contributed by Ray Bryant , # Jason Yeh # Suravee Suthikulpanit # Paul Drongowski # # Sources: BIOS and Kernel Developer's Guide for AMD Family 14h Processors, # Publication# 43170, Revision 3.04, Feb 16, 2011 # # Software Optimization Guide for AMD Family 10h and Family 12h Processors, # Publication# 40546, Revision 3.13, February 2011 # (Note: For IBS Derived Performance Events) # # Revision: 1.2 # # ChangeLog: # 1.2: 11 March 2011 # - Update to BKDG Rev.3.04 # # 1.1: 25 January 2011. # - Update to BKDG Revision 3.00 # - Update minimum value for RETIRED_UOPS # # 1.0: 29 November 2010. # - Preliminary version name:zero type:mandatory default:0x00 0x00 No unit mask name:fpu_ops type:bitmask default:0x03 0x01 Pipe0 (fadd, imul, mmx) ops 0x02 Pipe1 (fmul, store, mmx) ops 0x03 All ops name:sse_ops type:bitmask default:0x7f 0x01 Single Precision add/subtract ops 0x02 Single precision multiply ops 0x04 Single precision divide/square root ops 0x08 Double precision add/subtract ops 0x10 Double precision multiply ops 0x20 Double precision divide/square root ops 0x40 OP type: 0=uops 1=FLOPS name:move_ops type:bitmask default:0x0c 0x04 All other merging move uops 0x08 All other move uops name:serial_ops type:bitmask default:0x0f 0x01 SSE bottom-executing uops retired 0x02 SSE bottom-serializing uops retired 0x04 x87 bottom-executing uops retired 0x08 x87 bottom-serializing uops retired name:retired_x87_fp type:bitmask default:0x07 0x01 Add/subtract ops 0x02 Multiply ops 0x04 Divide and FSQRT ops name:segregload type:bitmask default:0x7f 0x01 ES register 0x02 CS register 0x04 SS register 0x08 DS register 0x10 FS register 0x20 GS register 0x40 HS register name:lock_ops type:bitmask default:0x07 0x01 Number of locked instructions executed 0x02 Number cycles to acquire bus lock 0x04 Number of cycles to unlock cache line (not including cache miss) name:store_to_load type:bitmask default:0x07 0x01 Address mismatches (starting byte not the same) 0x02 Store is smaller than load 0x04 Misaligned name:moess type:bitmask default:0x1e 0x01 Non-cacheable return of data 0x02 Shared 0x04 Exclusive 0x08 Owned 0x10 Modified 0x1e All cache states except non-cacheable name:moesi type:bitmask default:0x1f 0x01 Non-cacheable read data 0x02 Shared 0x04 Exclusive 0x08 Owned 0x10 Modified 0x1f All cache states name:moesi_gh type:bitmask default:0x1f 0x01 Evicted from probe 0x02 Shared eviction 0x04 Exclusive eviction 0x08 Owned eviction 0x10 Modified eviction name:l1_l2_dtlb_miss type:bitmask default:0x0f 0x01 Count stores that miss L1TLB 0x02 Count loads that miss L1TLB 0x04 Count stores that miss L2TLB 0x08 Count loads that miss L2TLB name:prefetch type:bitmask default:0x07 0x01 Load (Prefetch, PrefetchT0/T1/T2) 0x02 Store (PrefetchW) 0x04 NTA (PrefetchNTA) name:l1_dtlb_hit type:bitmask default:0x03 0x01 L1 4K TLB hit 0x02 L1 2M TLB hit name:soft_prefetch type:bitmask default:0x0f 0x01 Software prefetch hit in the data cache 0x02 Software prefetch hit a pending fill 0x04 Software prefetches that don't get a MAB 0x08 Software prefetch hit in L2 name:memreqtype type:bitmask default:0x83 0x01 Requests to non-cacheable (UC) memory 0x02 Requests to write-combining (WC) memory 0x80 Streaming store (SS) requests name:mab_buffer type:bitmask default:0x00 0x00 DC miss buffer 0 0x01 DC miss buffer 1 0x02 DC miss buffer 2 0x03 DC miss buffer 3 0x04 DC miss buffer 4 0x05 DC miss buffer 5 0x06 DC miss buffer 6 0x07 DC miss buffer 7 0x08 IC miss buffer 0 0x09 IC miss buffer 1 0x0a Any DC miss buffer 0x0b Any IC miss buffer name:systemreadresponse type:bitmask default:0x1f 0x01 Exclusive 0x02 Modified 0x04 Shared 0x08 Owned 0x10 Data Error 0x20 Change-to-Dirty success 0x40 Uncacheable name:l2_internal type:bitmask default:0x0b 0x01 IC fill 0x02 DC fill 0x08 Tag snoop request name:l2_req_miss type:bitmask default:0x03 0x01 IC fill 0x02 DC fill name:l2_fill type:bitmask default:0x03 0x01 L2 fills (victims from L1 caches) 0x02 L2 writebacks to system 0x04 IC attribute writes which access the L2 0x08 IC attribute writes which store into the L2 name:pdc_miss type:bitmask default:0x77 0x01 Host: PDE Level 0x02 Host: PDPE Level 0x04 Host: PML4E Level 0x10 Guest: PDE Level 0x20 Guest: PDPE Level 0x40 Guest: PML4E Level name:l1_l2_itlb_miss type:bitmask default:0x03 0x01 Instruction fetches to a 4K page 0x02 Instruction fetches to a 2M page name:icache_invalidated type:bitmask default:0x03 0x01 IC invalidate due to an LS probe 0x02 IC invalidate due to a BU probe name:fpu_instr type:bitmask default:0x03 0x01 x87 or MMX(tm) instruction was retired 0x02 SSE floating point instruction was retired (SSE, SSE2, SSE3, MNI) name:fpu_exceptions type:bitmask default:0x0f 0x01 x87 reclass microfaults 0x02 SSE retype microfaults 0x04 SSE reclass microfaults 0x08 SSE and x87 microtraps name:page_access type:bitmask default:0xc7 0x01 DCT0 Page Hit 0x02 DCT0 Page Miss 0x04 DCT0 Page Conflict 0x40 Write request 0x80 Read request name:mem_page_overflow type:bitmask default:0x01 0x01 DCT0 Page Table Overflow 0x02 DCT0 Number of stale table entry hits 0x04 DCT0 Page table idle cycle limit incremented 0x08 DCT0 Page table idle cycle limit decremented 0x10 DCT0 Page table is closed due to row inactivity name:slot_missed type:bitmask default:0x50 0x10 DCT0 RBD 0x40 DCT0 Prefetch name:turnaround type:bitmask default:0x03 0x01 DCT0 read-to-write turnaround 0x02 DCT0 write-to-read turnaround name:saturation type:bitmask default:0x0c 0x04 D18F2x94[DcqBypassMax] counter reached 0x08 Bank closed due to conflict with outstanding request in RBD queue name:thermal_status type:bitmask default:0xe5 0x01 MEMHOT_L assertions 0x04 Number of times the HTC transitions from inactive to active 0x20 Number of clocks HTC P-state is inactive 0x40 Number of clocks HTC P-state is active 0x80 PROCHOT_L asserted by external source and caused P-state change name:cpiorequests type:bitmask default:0x08 0x01 IO to IO 0x02 IO to Mem 0x04 CPU to IO 0x08 CPU to Mem name:cacheblock type:bitmask default:0x3d 0x01 Victim Block (Writeback) 0x04 Read Block (Dcache load miss refill) 0x08 Read Block Shared (Icache refill) 0x10 Read Block Modified (Dcache store miss refill) 0x20 Change-to-Dirty (first store to clean block already in cache) name:sizecmds type:bitmask default:0x3f 0x01 Non-Posted SzWr Byte (1-32 bytes) 0x02 Non-Posted SzWr DW (1-16 doublewords) 0x04 Posted SzWr Byte (1-32 bytes) 0x08 Posted SzWr DW (1-16 doublewords) 0x10 SzRd Byte (4 bytes) 0x20 SzRd DW (1-16 doublewords) name:probe type:bitmask default:0xbf 0x01 Probe miss 0x02 Probe hit clean 0x04 Probe hit dirty without memory cancel 0x08 Probe hit dirty with memory cancel 0x10 Upstream high priority reads 0x20 Upstream low priority reads 0x80 Upstream low priority writes name:gart type:bitmask default:0x70 0x10 DEV hit 0x20 DEV miss 0x40 DEV error name:mem_control_request type:bitmask default:0x78 0x08 32 Bytes Sized Writes 0x10 64 Bytes Sized Writes 0x20 32 Bytes Sized Reads 0x40 64 Byte Sized Reads name:sideband_signals type:bitmask default:0x1e 0x02 STOPGRANT 0x04 SHUTDOWN 0x08 WBINVD 0x10 INVD name:interrupt_events type:bitmask default:0xff 0x01 Fixed and LPA 0x02 LPA 0x04 SMI 0x08 NMI 0x10 INIT 0x20 STARTUP 0x40 INT 0x80 EOI name:ibs_op type:bitmask default:0x01 0x00 Using IBS OP cycle count mode 0x01 Using IBS OP dispatch count mode 0x02 Enable IBS OP Memory Access Log 0x04 Enable IBS OP Branch Target Address Log oprofile-0.9.9/events/x86-64/hammer/0000775000076400007640000000000012175511557014025 500000000000000oprofile-0.9.9/events/x86-64/hammer/events0000664000076400007640000002567312175510133015176 00000000000000# # AMD Athlon(tm)64 and AMD Opteron(tm) processor unit masks # # Copyright OProfile authors # Copyright (c) 2006-2008 Advanced Micro Devices # Contributed by Ray Bryant # Jason Yeh # Suravee Suthikulpanit # Paul Drongowski # # Source: BIOS and Kernel Developer's Guide for AMD NPT Family 0Fh Processors, # Publication# 32559, Revision 3.08, July 2007 # # This file was last updated on 10 January 2008: # # Sorted by event select value for easier maintenance and to be # consistent with events for other AMD processor families. # # Updated for the latest version of the BKDG. # # Floating point events event:0x00 counters:0,1,2,3 um:fpu_ops minimum:500 name:DISPATCHED_FPU_OPS : Dispatched FPU ops event:0x01 counters:0,1,2,3 um:zero minimum:500 name:CYCLES_NO_FPU_OPS_RETIRED : Cycles with no FPU ops retired event:0x02 counters:0,1,2,3 um:zero minimum:500 name:DISPATCHED_FPU_OPS_FAST_FLAG : Dispatched FPU ops that use the fast flag interface # Load, Store, and TLB events event:0x20 counters:0,1,2,3 um:segregload minimum:500 name:SEGMENT_REGISTER_LOADS : Segment register loads event:0x21 counters:0,1,2,3 um:zero minimum:500 name:PIPELINE_RESTART_DUE_TO_SELF_MODIFYING_CODE : Micro-architectural re-sync caused by self modifying code event:0x22 counters:0,1,2,3 um:zero minimum:500 name:PIPELINE_RESTART_DUE_TO_PROBE_HIT : Micro-architectural re-sync caused by snoop event:0x23 counters:0,1,2,3 um:zero minimum:500 name:LS_BUFFER_2_FULL_CYCLES : Cycles LS Buffer 2 full event:0x24 counters:0,1,2,3 um:locked_ops minimum:500 name:LOCKED_OPS : Locked operations # Execution Unit Events event:0x26 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_CLFLUSH_INSTRUCTIONS : Retired CLFLUSH instructions event:0x27 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_CPUID_INSTRUCTIONS : Retired CPUID instructions # Data Cache event event:0x40 counters:0,1,2,3 um:zero minimum:500 name:DATA_CACHE_ACCESSES : Data cache accesses event:0x41 counters:0,1,2,3 um:zero minimum:500 name:DATA_CACHE_MISSES : Data cache misses # Event 0x42 with unit mask 0x01 counts same events as event select 0x43 event:0x42 counters:0,1,2,3 um:moess minimum:500 name:DATA_CACHE_REFILLS_FROM_L2_OR_SYSTEM : Data cache refills from L2 or system event:0x43 counters:0,1,2,3 um:moesi minimum:500 name:DATA_CACHE_REFILLS_FROM_SYSTEM : Data cache refills from system event:0x44 counters:0,1,2,3 um:moesi minimum:500 name:DATA_CACHE_LINES_EVICTED : Data cache lines evicted event:0x45 counters:0,1,2,3 um:zero minimum:500 name:L1_DTLB_MISS_AND_L2_DTLB_HIT : L1 DTLB misses and L2 DTLB hits event:0x46 counters:0,1,2,3 um:zero minimum:500 name:L1_DTLB_AND_L2_DTLB_MISS : L1 and L2 DTLB misses event:0x47 counters:0,1,2,3 um:zero minimum:500 name:MISALIGNED_ACCESSES : Misaligned Accesses event:0x48 counters:0,1,2,3 um:zero minimum:500 name:MICROARCHITECTURAL_LATE_CANCEL_OF_AN_ACCESS : Micro-architectural late cancel of an access event:0x49 counters:0,1,2,3 um:zero minimum:500 name:MICROARCHITECTURAL_EARLY_CANCEL_OF_AN_ACCESS : Micro-architectural early cancel of an access event:0x4a counters:0,1,2,3 um:ecc minimum:500 name:SCRUBBER_SINGLE_BIT_ECC_ERRORS : One bit ECC error recorded by scrubber event:0x4b counters:0,1,2,3 um:prefetch minimum:500 name:PREFETCH_INSTRUCTIONS_DISPATCHED : Prefetch instructions dispatched event:0x4c counters:0,1,2,3 um:dcachemisslocked minimum:500 name:DCACHE_MISS_LOCKED_INSTRUCTIONS : DCACHE misses by locked instructions # L2 Cache and System Interface events event:0x65 counters:0,1,2,3 um:memreqtype minimum:500 name:MEMORY_REQUESTS : Memory requests by type event:0x67 counters:0,1,2,3 um:dataprefetch minimum:500 name:DATA_PREFETCHES : Data prefetcher event:0x6c counters:0,1,2,3 um:systemreadresponse minimum:500 name:SYSTEM_READ_RESPONSES : System read responses by coherency state event:0x6d counters:0,1,2,3 um:writtentosystem minimum:500 name:QUADWORD_WRITE_TRANSFERS : Quadwords written to system event:0x76 counters:0,1,2,3 um:zero minimum:3000 name:CPU_CLK_UNHALTED : Cycles outside of halt state event:0x7d counters:0,1,2,3 um:l2_internal minimum:500 name:REQUESTS_TO_L2 : Requests to L2 cache event:0x7e counters:0,1,2,3 um:l2_req_miss minimum:500 name:L2_CACHE_MISS : L2 cache misses event:0x7f counters:0,1,2,3 um:l2_fill minimum:500 name:L2_CACHE_FILL_WRITEBACK : L2 fill/writeback # Instruction Cache events event:0x80 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_CACHE_FETCHES : Instruction cache fetches event:0x81 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_CACHE_MISSES : Instruction cache misses event:0x82 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_CACHE_REFILLS_FROM_L2 : Instruction cache refills from L2 event:0x83 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_CACHE_REFILLS_FROM_SYSTEM : Instruction cache refills from system event:0x84 counters:0,1,2,3 um:zero minimum:500 name:L1_ITLB_MISS_AND_L2_ITLB_HIT : L1 ITLB miss and L2 ITLB hit event:0x85 counters:0,1,2,3 um:zero minimum:500 name:L1_ITLB_MISS_AND_L2_ITLB_MISS : L1 ITLB miss and L2 ITLB miss event:0x86 counters:0,1,2,3 um:zero minimum:500 name:PIPELINE_RESTART_DUE_TO_INSTRUCTION_STREAM_PROBE : Pipeline restart due to instruction stream probe event:0x87 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_FETCH_STALL : Instruction fetch stall event:0x88 counters:0,1,2,3 um:zero minimum:500 name:RETURN_STACK_HITS : Return stack hits event:0x89 counters:0,1,2,3 um:zero minimum:500 name:RETURN_STACK_OVERFLOWS : Return stack overflows # Execution Unit events event:0xc0 counters:0,1,2,3 um:zero minimum:3000 name:RETIRED_INSTRUCTIONS : Retired instructions (includes exceptions, interrupts, re-syncs) event:0xc1 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_UOPS : Retired micro-ops event:0xc2 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_BRANCH_INSTRUCTIONS : Retired branches (conditional, unconditional, exceptions, interrupts) event:0xc3 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_MISPREDICTED_BRANCH_INSTRUCTIONS : Retired mispredicted branch instructions event:0xc4 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_TAKEN_BRANCH_INSTRUCTIONS : Retired taken branch instructions event:0xc5 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_TAKEN_BRANCH_INSTRUCTIONS_MISPREDICTED : Retired taken branches mispredicted event:0xc6 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_FAR_CONTROL_TRANSFERS : Retired far control transfers event:0xc7 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_BRANCH_RESYNCS : Retired branches resyncs (only non-control transfer branches) event:0xc8 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_NEAR_RETURNS : Retired near returns event:0xc9 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_NEAR_RETURNS_MISPREDICTED : Retired near returns mispredicted event:0xca counters:0,1,2,3 um:zero minimum:500 name:RETIRED_INDIRECT_BRANCHES_MISPREDICTED : Retired indirect branches mispredicted event:0xcb counters:0,1,2,3 um:fpu_instr minimum:500 name:RETIRED_MMX_FP_INSTRUCTIONS : Retired MMX/FP instructions event:0xcc counters:0,1,2,3 um:fpu_fastpath minimum:500 name:RETIRED_FASTPATH_DOUBLE_OP_INSTRUCTIONS : Retired FastPath double-op instructions event:0xcd counters:0,1,2,3 um:zero minimum:500 name:INTERRUPTS_MASKED_CYCLES : Cycles with interrupts masked (IF=0) event:0xce counters:0,1,2,3 um:zero minimum:500 name:INTERRUPTS_MASKED_CYCLES_WITH_INTERRUPT_PENDING : Cycles with interrupts masked while interrupt pending event:0xcf counters:0,1,2,3 um:zero minimum:10 name:INTERRUPTS_TAKEN : Number of taken hardware interrupts event:0xd0 counters:0,1,2,3 um:zero minimum:500 name:DECODER_EMPTY : Nothing to dispatch (decoder empty) event:0xd1 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALLS : Dispatch stalls event:0xd2 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_BRANCH_ABORT : Dispatch stall from branch abort to retire event:0xd3 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_SERIALIZATION : Dispatch stall for serialization event:0xd4 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_SEGMENT_LOAD : Dispatch stall for segment load event:0xd5 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_REORDER_BUFFER_FULL : Dispatch stall for reorder buffer full event:0xd6 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_RESERVATION_STATION_FULL : Dispatch stall when reservation stations are full event:0xd7 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_FPU_FULL : Dispatch stall when FPU is full event:0xd8 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_LS_FULL : Dispatch stall when LS is full event:0xd9 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_WAITING_FOR_ALL_QUIET : Dispatch stall when waiting for all to be quiet event:0xda counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_FAR_TRANSFER_OR_RESYNC : Dispatch stall for far transfer or resync to retire event:0xdb counters:0,1,2,3 um:fpu_exceptions minimum:1 name:FPU_EXCEPTIONS : FPU exceptions event:0xdc counters:0,1,2,3 um:zero minimum:1 name:DR0_BREAKPOINTS : Number of breakpoints for DR0 event:0xdd counters:0,1,2,3 um:zero minimum:1 name:DR1_BREAKPOINTS : Number of breakpoints for DR1 event:0xde counters:0,1,2,3 um:zero minimum:1 name:DR2_BREAKPOINTS : Number of breakpoints for DR2 event:0xdf counters:0,1,2,3 um:zero minimum:1 name:DR3_BREAKPOINTS : Number of breakpoints for DR3 # Memory Controler events event:0xe0 counters:0,1,2,3 um:page_access minimum:500 name:DRAM_ACCESSES : DRAM accesses event:0xe1 counters:0,1,2,3 um:zero minimum:500 name:MEMORY_CONTROLLER_PAGE_TABLE_OVERFLOWS : Memory controller page table overflows event:0xe3 counters:0,1,2,3 um:turnaround minimum:500 name:MEMORY_CONTROLLER_TURNAROUNDS : Memory controller turnarounds event:0xe4 counters:0,1,2,3 um:saturation minimum:500 name:MEMORY_CONTROLLER_BYPASS_COUNTER_SATURATION : Memory controller bypass saturation event:0xe5 counters:0,1,2,3 um:sizedblocks minimum:500 name:SIZED_BLOCKS : Sized blocks event:0xe8 counters:0,1,2,3 um:thermalecc minimum:500 name:THERMAL_STATUS_AND_DRAM_ECC_ERRORS : Thermal status and ECC errors event:0xe9 counters:0,1,2,3 um:cpiorequests minimum:500 name:CPU_IO_REQUESTS_TO_MEMORY_IO : CPU/IO requests to memory/IO (RevE) event:0xea counters:0,1,2,3 um:cacheblock minimum:500 name:CACHE_BLOCK_COMMANDS : Cache block commands (RevE) event:0xeb counters:0,1,2,3 um:sizecmds minimum:500 name:SIZED_COMMANDS : Sized commands event:0xec counters:0,1,2,3 um:probe minimum:500 name:PROBE_RESPONSES_AND_UPSTREAM_REQUESTS : Probe responses and upstream requests event:0xee counters:0,1,2,3 um:gart minimum:500 name:GART_EVENTS : GART events # Link events event:0xf6 counters:0,1,2,3 um:ht minimum:500 name:HYPERTRANSPORT_LINK0_BANDWIDTH : HyperTransport(tm) link 0 transmit bandwidth event:0xf7 counters:0,1,2,3 um:ht minimum:500 name:HYPERTRANSPORT_LINK1_BANDWIDTH : HyperTransport(tm) link 1 transmit bandwidth event:0xf8 counters:0,1,2,3 um:ht minimum:500 name:HYPERTRANSPORT_LINK2_BANDWIDTH : HyperTransport(tm) link 2 transmit bandwidth oprofile-0.9.9/events/x86-64/hammer/unit_masks0000664000076400007640000001515112175510133016035 00000000000000# # AMD Athlon(tm)64 and AMD Opteron(tm) processor unit masks # # Copyright OProfile authors # Copyright (c) Advanced Micro Devices, 2006-2008 # Contributed by Ray Bryant , and others. # # Source: BIOS and Kernel Developer's Guide for AMD NPT Family 0Fh Processors, # Publication# 32559, Revision 3.08, July 2007 # # This file was last updated on 10 January 2008: # # Unit mask (writtentosystem) was added for the # QUADWORD_WRITE_TRANSFERS event. # name:zero type:mandatory default:0x0 0x0 No unit mask name:moesi type:bitmask default:0x1f 0x01 (I)nvalid cache state 0x02 (S)hared cache state 0x04 (E)xclusive cache state 0x08 (O)wned cache state 0x10 (M)odified cache state 0x1f All cache states name:moess type:bitmask default:0x1e 0x01 refill from system 0x02 (S)hared cache state from L2 0x04 (E)xclusive cache state from L2 0x08 (O)wned cache state from L2 0x10 (M)odified cache state from L2 0x1e All cache states except Invalid name:fpu_ops type:bitmask default:0x3f 0x01 Add pipe ops 0x02 Multiply pipe 0x04 Store pipe ops 0x08 Add pipe load ops 0x10 Multiply pipe load ops 0x20 Store pipe load ops name:segregload type:bitmask default:0x7f 0x01 ES register 0x02 CS register 0x04 SS register 0x08 DS register 0x10 FS register 0x20 GS register 0x40 HS register name:ecc type:bitmask default:0x03 0x01 Scrubber error 0x02 Piggyback scrubber errors name:prefetch type:bitmask default:0x07 0x01 Load 0x02 Store 0x04 NTA name:fpu_instr type:bitmask default:0x0f 0x01 x87 instructions 0x02 Combined MMX & 3DNow instructions 0x04 Combined packed SSE & SSE2 instructions 0x08 Combined packed scalar SSE & SSE2 instructions name:fpu_fastpath type:bitmask default:0x07 0x01 With low op in position 0 0x02 With low op in position 1 0x04 With low op in position 2 name:fpu_exceptions type:bitmask default:0x0f 0x01 x87 reclass microfaults 0x02 SSE retype microfaults 0x04 SSE reclass microfaults 0x08 SSE and x87 microtraps name:page_access type:bitmask default:0x07 0x01 Page hit 0x02 Page miss 0x04 Page conflict name:turnaround type:bitmask default:0x07 0x01 DIMM (chip select) turnaround 0x02 Read to write turnaround 0x04 Write to read turnaround name:saturation type:bitmask default:0x0f 0x01 Memory controller high priority bypass 0x02 Memory controller low priority bypass 0x04 DRAM controller interface bypass 0x08 DRAM controller queue bypass name:sizecmds type:bitmask default:0x7f 0x01 Non-posted write byte 0x02 Non-posted write dword 0x04 Posted write byte 0x08 Posted write dword 0x10 Read byte (4 bytes) 0x20 Read dword (1-16 dwords) 0x40 Read-modify-write name:probe type:bitmask default:0x0f 0x01 Probe miss 0x02 Probe hit clean 0x04 Probe hit dirty without memory cancel 0x08 Probe hit dirty with memory cancel 0x10 Upstream display refresh reads 0x20 Upstream non-display refresh reads 0x40 Upstream writes (RevD and later) name:ht type:bitmask default:0x7 0x01 Command sent 0x02 Data sent 0x04 Buffer release sent 0x08 NOP sent name:l2_internal type:bitmask default:0x1f 0x01 IC fill 0x02 DC fill 0x04 TLB fill (page table walk) 0x08 Tag snoop request 0x10 Cancelled request name:l2_req_miss type:bitmask default:0x07 0x01 IC fill 0x02 DC fill 0x04 TLB page table walk name:l2_fill type:bitmask default:0x03 0x01 L2 fills (victims from L1 caches, TLB page table walks and data prefetches) 0x02 L2 writebacks to system name:gart type:bitmask default:0x07 0x01 GART aperture hit on access from CPU 0x02 GART aperture hit on access from I/O 0x04 GART miss name:sizedblocks type:bitmask default:0x3c 0x04 32-byte Sized Writes (RevD and later) 0x08 64-byte Sized Writes (RevD and later) 0x10 32-byte Sized Reads (RevD and later) 0x20 64-byte Sized Reads (RevD and later) name:cpiorequests type:bitmask default:0xa2 0xa1 Requests Local I/O to Local I/O 0xa2 Requests Local I/O to Local Memory 0xa3 Requests Local I/O to Local (I/O or Mem) 0xa4 Requests Local CPU to Local I/O 0xa5 Requests Local (CPU or I/O) to Local I/O 0xa8 Requests Local CPU to Local Memory 0xaa Requests Local (CPU or I/O) to Local Memory 0xac Requests Local CPU to Local (I/O or Mem) 0xaf Requests Local (CPU or I/O) to Local (I/O or Mem) 0x91 Requests Local I/O to Remote I/O 0x92 Requests Local I/O to Remote Memory 0x93 Requests Local I/O to Remote (I/O or Mem) 0x94 Requests Local CPU to Remote I/O 0x95 Requests Local (CPU or I/O) to Remote I/O 0x98 Requests Local CPU to Remote Memory 0x9a Requests Local (CPU or I/O) to Remote Memory 0x9c Requests Local CPU to Remote (I/O or Mem) 0x9f Requests Local (CPU or I/O) to Remote (I/O or Mem) 0xb1 Requests Local I/O to Any I/O 0xb2 Requests Local I/O to Any Memory 0xb3 Requests Local I/O to Any (I/O or Mem) 0xb4 Requests Local CPU to Any I/O 0xb5 Requests Local (CPU or I/O) to Any I/O 0xb8 Requests Local CPU to Any Memory 0xba Requests Local (CPU or I/O) to Any Memory 0xbc Requests Local CPU to Any (I/O or Mem) 0xbf Requests Local (CPU or I/O) to Any (I/O or Mem) 0x61 Requests Remote I/O to Local I/O 0x64 Requests Remote CPU to Local I/O 0x65 Requests Remote (CPU or I/O) to Local I/O name:cacheblock type:bitmask default:0x3d 0x01 Victim Block (Writeback) 0x04 Read Block (Dcache load miss refill) 0x08 Read Block Shared (Icache refill) 0x10 Read Block Modified (Dcache store miss refill) 0x20 Change to Dirty (first store to clean block already in cache) name:dataprefetch type:bitmask default:0x03 0x01 Cancelled prefetches 0x02 Prefetch attempts name:memreqtype type:bitmask default:0x83 0x01 Requests to non-cacheable (UC) memory 0x02 Requests to write-combining (WC) memory or WC buffer flushes to WB memory 0x80 Streaming store (SS) requests name:systemreadresponse type:bitmask default:0x7 0x01 Exclusive 0x02 Modified 0x04 Shared name:writtentosystem type:bitmask default:0x1 0x01 Quadword write transfer # BKDG 3.28 does not include unit_mask of 0x01 for "accesses by Locked instructions" name:dcachemisslocked type:bitmask default:0x02 0x02 Data cache misses by locked instructions name:locked_ops type:bitmask default:0x04 0x01 The number of locked instructions executed 0x02 The number of cycles spent in speculative phase 0x04 The number of cycles spent in non-speculative phase (including cache miss penalty) name:thermalecc type:bitmask default:0x80 0x01 Number of clocks CPU is active when HTC is active (RevF) 0x02 Number of clocks CPU clock is inactive when HTC is active (RevF) 0x04 Number of clocks when die temperature is higher than the software high temperature threshold (RevF) 0x08 Number of clocks when high temperature threshold was exceeded (RevF) 0x80 Number of correctable and uncorrectable DRAM ECC errors (RevE) oprofile-0.9.9/events/x86-64/family15h/0000775000076400007640000000000012175511557014353 500000000000000oprofile-0.9.9/events/x86-64/family15h/events0000664000076400007640000003753712175510133015526 00000000000000# AMD Family 15h processor performance events # # Copyright OProfile authors # Copyright (c) 2006-2011 Advanced Micro Devices # Contributed by Ray Bryant , # Jason Yeh # Suravee Suthikulpanit # Paul Drongowski # # Sources: BIOS and Kernel Developer's Guide for AMD Family 15h Models 00h-0Fh Processors, # Publication# 42301, Revision 1.12, February 16, 2011 # # Software Optimization Guide for AMD Family 10h and Family 12h Processors, # Publication# 40546, Revision 3.13, February 2011 # (Note: For IBS Derived Performance Events) # # Revision: 1.3 # # ChangeLog: # 1.3: 9 March 2011 # - Update to BKDG Rev 1.12 (still preliminary) # # 1.2: 25 Januray 2011 # - Updated to BKDG Rev 1.09 (still preliminary) # - Update minimum value for RETIRED_UOPS # # 1.1: 2 December 2010 # - Updated to BKDG Rev 1.06 (still preliminary) # # 1.0: 28 May 2010 # - Preliminary version event:0x000 counters:3 um:fpu_ops minimum:500 name:DISPATCHED_FPU_OPS : FPU Pipe Assignment event:0x001 counters:3,4,5 um:zero minimum:500 name:CYCLES_FPU_EMPTY : FP Scheduler Empty event:0x003 counters:3 um:sse_ops minimum:500 name:RETIRED_SSE_OPS : Retired SSE/BNI Ops event:0x004 counters:3 um:move_ops minimum:500 name:MOVE_SCALAR_OPTIMIZATION : Number of Move Elimination and Scalar Op Optimization event:0x005 counters:3,4,5 um:serial_ops minimum:500 name:RETIRED_SERIALIZING_OPS : Retired Serializing Ops event:0x006 counters:3,4,5 um:zero minimum:500 name:BOTTOM_EXECUTE_OP : Number of Cycles that a Bottom-Execute uop is in the FP Scheduler event:0x020 counters:0,1,2,3,4,5 um:segregload minimum:500 name:SEGMENT_REGISTER_LOADS : Segment Register Loads event:0x021 counters:0,1,2,3,4,5 um:zero minimum:500 name:PIPELINE_RESTART_DUE_TO_SELF_MODIFYING_CODE : Pipeline Restart Due to Self-Modifying Code event:0x022 counters:0,1,2,3,4,5 um:zero minimum:500 name:PIPELINE_RESTART_DUE_TO_PROBE_HIT : Pipeline Restart Due to Probe Hit event:0x023 counters:0,1,2 um:loadq_storeq minimum:500 name:LOAD_Q_STORE_Q_FULL : Load Queue/Store Queue Full event:0x024 counters:0,1,2,3,4,5 um:lock_ops minimum:500 name:LOCKED_OPS : Locked Operations event:0x026 counters:0,1,2,3,4,5 um:zero minimum:500 name:RETIRED_CLFLUSH_INSTRUCTIONS : Retired CLFLUSH Instructions event:0x027 counters:0,1,2,3,4,5 um:zero minimum:500 name:RETIRED_CPUID_INSTRUCTIONS : Retired CPUID Instructions event:0x029 counters:0,1,2,3,4,5 um:ls_dispatch minimum:500 name:LS_DISPATCH : LS Dispatch event:0x02a counters:0,1,2,3,4,5 um:store_to_load minimum:500 name:CANCELLED_STORE_TO_LOAD : Canceled Store to Load Forward Operations event:0x02b counters:0,1,2,3,4,5 um:zero minimum:500 name:SMIS_RECEIVED : SMIs Received event:0x030 counters:0,1,2,3,4,5 um:zero minimum:500 name:EXECUTED_CFLUSH_INST : Executed CLFLUSH Instructions event:0x040 counters:0,1,2,3,4,5 um:zero minimum:500 name:DATA_CACHE_ACCESSES : Data Cache Accesses event:0x041 counters:0,1,2,3,4,5 um:dcache_misses minimum:500 name:DATA_CACHE_MISSES : Data Cache Misses event:0x042 counters:0,1,2,3,4,5 um:dcache_refills minimum:500 name:DATA_CACHE_REFILLS_FROM_L2_OR_NORTHBRIDGE : Data Cache Refills from L2 or System event:0x043 counters:0,1,2 um:zero minimum:500 name:DATA_CACHE_REFILLS_FROM_NORTHBRIDGE : Data Cache Refills from System event:0x045 counters:0,1,2 um:unified_tlb_hit minimum:50000 name:UNIFIED_TLB_HIT : Unified TLB Hit event:0x046 counters:0,1,2 um:unified_tlb_miss minimum:500 name:UNIFIED_TLB_MISS : Unified TLB Miss event:0x047 counters:0,1,2,3,4,5 um:zero minimum:500 name:MISALIGNED_ACCESSES : Misaligned Accesses event:0x04b counters:0,1,2,3,4,5 um:prefetch minimum:500 name:PREFETCH_INSTRUCTIONS_DISPATCHED : Prefetch Instructions Dispatched event:0x052 counters:0,1,2,3,4,5 um:soft_prefetch minimum:500 name:INEFFECTIVE_SW_PREFETCHES : Ineffective Software Prefetches event:0x065 counters:0,1,2 um:memreqtype minimum:500 name:MEMORY_REQUESTS : Memory Requests by Type event:0x067 counters:0,1,2 um:dataprefetch minimum:500 name:DATA_PREFETCHER : Data Prefetcher event:0x068 counters:0,1,2 um:buffer_id minimum:500 name:MAB_REQS : MAB Requests event:0x069 counters:0,1,2 um:buffer_id minimum:500 name:MAB_WAIT : MAB Wait Cycles event:0x06c counters:0,1,2 um:systemreadresponse minimum:500 name:SYSTEM_READ_RESPONSES : Response From System on Cache Refills event:0x06d counters:0,1,2 um:octword_transfer minimum:500 name:OCTWORD_WRITE_TRANSFERS : Octwords Written to System event:0x076 counters:0,1,2 um:zero minimum:50000 name:CPU_CLK_UNHALTED : CPU Clocks not Halted event:0x07d counters:0,1,2 um:l2_internal minimum:500 name:REQUESTS_TO_L2 : Requests to L2 Cache event:0x07e counters:0,1,2 um:l2_req_miss minimum:500 name:L2_CACHE_MISS : L2 Cache Misses event:0x07f counters:0,1,2 um:l2_fill minimum:500 name:L2_CACHE_FILL_WRITEBACK : L2 Fill/Writeback event:0x165 counters:0,1,2 um:page_size_mismatches minimum:500 name:PAGE_SPLINTERING : Page Splintering event:0x16c counters:0,1,2 um:l2_prefetcher_trigger minimum:500 name:L2_PREFETCHER_TRIGGER : L2 Prefetcher Trigger Events event:0x080 counters:0,1,2 um:zero minimum:500 name:INSTRUCTION_CACHE_FETCHES : Instruction Cache Fetches event:0x081 counters:0,1,2 um:zero minimum:500 name:INSTRUCTION_CACHE_MISSES : Instruction Cache Misses event:0x082 counters:0,1,2 um:zero minimum:500 name:INSTRUCTION_CACHE_REFILLS_FROM_L2 : Instruction Cache Refills from L2 event:0x083 counters:0,1,2 um:zero minimum:500 name:INSTRUCTION_CACHE_REFILLS_FROM_SYSTEM : Instruction Cache Refills from System event:0x084 counters:0,1,2 um:zero minimum:500 name:L1_ITLB_MISS_AND_L2_ITLB_HIT : L1 ITLB Miss, L2 ITLB Hit event:0x085 counters:0,1,2 um:l1_l2_itlb_miss minimum:500 name:L1_ITLB_MISS_AND_L2_ITLB_MISS : L1 ITLB Miss, L2 ITLB Miss event:0x086 counters:0,1,2 um:zero minimum:500 name:PIPELINE_RESTART_DUE_TO_INSTRUCTION_STREAM_PROBE : Pipeline Restart Due to Instruction Stream Probe event:0x087 counters:0,1,2 um:zero minimum:500 name:INSTRUCTION_FETCH_STALL : Instruction Fetch Stall event:0x088 counters:0,1,2 um:zero minimum:500 name:RETURN_STACK_HITS : Return Stack Hits event:0x089 counters:0,1,2 um:zero minimum:500 name:RETURN_STACK_OVERFLOWS : Return Stack Overflows event:0x08b counters:0,1,2 um:zero minimum:500 name:INSTRUCTION_CACHE_VICTIMS : Instruction Cache Victims event:0x08c counters:0,1,2 um:icache_invalidated minimum:500 name:INSTRUCTION_CACHE_INVALIDATED : Instruction Cache Lines Invalidated event:0x099 counters:0,1,2 um:zero minimum:500 name:ITLB_RELOADS : ITLB Reloads event:0x09a counters:0,1,2 um:zero minimum:500 name:ITLB_RELOADS_ABORTED : ITLB Reloads Aborted event:0x0c0 counters:0,1,2,3,4,5 um:zero minimum:50000 name:RETIRED_INSTRUCTIONS : Retired Instructions event:0x0c1 counters:0,1,2,3,4,5 um:zero minimum:50000 name:RETIRED_UOPS : Retired uops event:0x0c2 counters:0,1,2,3,4,5 um:zero minimum:500 name:RETIRED_BRANCH_INSTRUCTIONS : Retired Branch Instructions event:0x0c3 counters:0,1,2,3,4,5 um:zero minimum:500 name:RETIRED_MISPREDICTED_BRANCH_INSTRUCTIONS : Retired Mispredicted Branch Instructions event:0x0c4 counters:0,1,2,3,4,5 um:zero minimum:500 name:RETIRED_TAKEN_BRANCH_INSTRUCTIONS : Retired Taken Branch Instructions event:0x0c5 counters:0,1,2,3,4,5 um:zero minimum:500 name:RETIRED_TAKEN_BRANCH_INSTRUCTIONS_MISPREDICTED : Retired Taken Branch Instructions Mispredicted event:0x0c6 counters:0,1,2,3,4,5 um:zero minimum:500 name:RETIRED_FAR_CONTROL_TRANSFERS : Retired Far Control Transfers event:0x0c7 counters:0,1,2,3,4,5 um:zero minimum:500 name:RETIRED_BRANCH_RESYNCS : Retired Branch Resyncs event:0x0c8 counters:0,1,2,3,4,5 um:zero minimum:500 name:RETIRED_NEAR_RETURNS : Retired Near Returns event:0x0c9 counters:0,1,2,3,4,5 um:zero minimum:500 name:RETIRED_NEAR_RETURNS_MISPREDICTED : Retired Near Returns Mispredicted event:0x0ca counters:0,1,2,3,4,5 um:zero minimum:500 name:RETIRED_INDIRECT_BRANCHES_MISPREDICTED : Retired Indirect Branches Mispredicted event:0x0cb counters:0,1,2,3,4,5 um:fpu_instr minimum:500 name:RETIRED_MMX_FP_INSTRUCTIONS : Retired MMX/FP Instructions event:0x0cd counters:0,1,2,3,4,5 um:zero minimum:500 name:INTERRUPTS_MASKED_CYCLES : Interrupts-Masked Cycles event:0x0ce counters:0,1,2,3,4,5 um:zero minimum:500 name:INTERRUPTS_MASKED_CYCLES_WITH_INTERRUPT_PENDING : Interrupts-Masked Cycles with Interrupt Pending event:0x0cf counters:0,1,2,3,4,5 um:zero minimum:500 name:INTERRUPTS_TAKEN : Interrupts Taken event:0x0d0 counters:0,1,2 um:zero minimum:500 name:DECODER_EMPTY : Decoder Empty event:0x0d1 counters:0,1,2 um:zero minimum:500 name:DISPATCH_STALLS : Dispatch Stalls event:0x0d3 counters:0,1,2 um:zero minimum:500 name:DISPATCH_STALL_FOR_SERIALIZATION : Microsequencer Stall due to Serialization event:0x0d5 counters:0,1,2 um:zero minimum:500 name:DISPATCH_STALL_FOR_RETIRE_QUEUE_FULL : Dispatch Stall for Instruction Retire Q Full event:0x0d6 counters:0,1,2 um:zero minimum:500 name:DISPATCH_STALL_FOR_INT_SCHED_QUEUE_FULL : Dispatch Stall for Integer Scheduler Queue Full event:0x0d7 counters:0,1,2 um:zero minimum:500 name:DISPATCH_STALL_FOR_FPU_FULL : Dispatch Stall for FP Scheduler Queue Full event:0x0d8 counters:0,1,2 um:zero minimum:500 name:DISPATCH_STALL_FOR_LDQ_FULL : Dispatch Stall for LDQ Full event:0x0d9 counters:0,1,2 um:zero minimum:500 name:MICROSEQ_STALL_WAITING_FOR_ALL_QUIET : Microsequencer Stall Waiting for All Quiet event:0x0db counters:0,1,2,3,4,5 um:fpu_exceptions minimum:500 name:FPU_EXCEPTIONS : FPU Exceptions event:0x0dc counters:0,1,2,3,4,5 um:zero minimum:500 name:DR0_BREAKPOINTS : DR0 Breakpoint Match event:0x0dd counters:0,1,2,3,4,5 um:zero minimum:500 name:DR1_BREAKPOINTS : DR1 Breakpoint Match event:0x0de counters:0,1,2,3,4,5 um:zero minimum:500 name:DR2_BREAKPOINTS : DR2 Breakpoint Match event:0x0df counters:0,1,2,3,4,5 um:zero minimum:500 name:DR3_BREAKPOINTS : DR3 Breakpoint Match event:0x1cf counters:0,1,2,3,4,5 um:ibs_ops_tagged minimum:50000 name:IBS_OPS_TAGGED : Tagged IBS Ops event:0x1d8 counters:0,1,2,3,4,5 um:zero minimum:500 name:DISPATCH_STALL_FOR_STQ_FULL : Dispatch Stall for STQ Full event:0xf000 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_ALL : All IBS fetch samples event:0xf001 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_KILLED : IBS fetch killed event:0xf002 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_ATTEMPTED : IBS fetch attempted event:0xf003 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_COMPLETED : IBS fetch completed event:0xf004 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_ABORTED : IBS fetch aborted event:0xf005 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_ITLB_HITS : IBS ITLB hit event:0xf006 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_L1_ITLB_MISSES_L2_ITLB_HITS : IBS L1 ITLB misses (and L2 ITLB hits) event:0xf007 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_L1_ITLB_MISSES_L2_ITLB_MISSES : IBS L1 L2 ITLB miss event:0xf008 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_ICACHE_MISSES : IBS instruction cache misses event:0xf009 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_ICACHE_HITS : IBS instruction cache hit event:0xf00a ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_4K_PAGE : IBS 4K page translation event:0xf00b ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_2M_PAGE : IBS 2M page translation event:0xf00e ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_LATENCY : IBS fetch latency event:0xf100 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_ALL : All IBS op samples event:0xf101 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_TAG_TO_RETIRE : IBS tag-to-retire cycles event:0xf102 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_COMP_TO_RET : IBS completion-to-retire cycles event:0xf103 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_BRANCH_RETIRED : IBS branch op event:0xf104 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_MISPREDICTED_BRANCH : IBS mispredicted branch op event:0xf105 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_TAKEN_BRANCH : IBS taken branch op event:0xf106 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_MISPREDICTED_BRANCH_TAKEN : IBS mispredicted taken branch op event:0xf107 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_RETURNS : IBS return op event:0xf108 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_MISPREDICTED_RETURNS : IBS mispredicted return op event:0xf109 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_RESYNC : IBS resync op event:0xf200 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_ALL_LOAD_STORE : IBS all load store ops event:0xf201 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_LOAD : IBS load ops event:0xf202 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_STORE : IBS store ops event:0xf203 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L1_DTLB_HITS : IBS L1 DTLB hit event:0xf204 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L1_DTLB_MISS_L2_DTLB_HIT : IBS L1 DTLB misses L2 hits event:0xf205 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L1_L2_DTLB_MISS : IBS L1 and L2 DTLB misses event:0xf206 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_DATA_CACHE_MISS : IBS data cache misses event:0xf207 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_DATA_HITS : IBS data cache hits event:0xf208 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_MISALIGNED_DATA_ACC : IBS misaligned data access event:0xf209 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_BANK_CONF_LOAD : IBS bank conflict on load op event:0xf20a ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_BANK_CONF_STORE : IBS bank conflict on store op event:0xf20b ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_FORWARD : IBS store-to-load forwarded event:0xf20c ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_CANCELLED : IBS store-to-load cancelled event:0xf20d ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_DCUC_MEM_ACC : IBS UC memory access event:0xf20e ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_DCWC_MEM_ACC : IBS WC memory access event:0xf20f ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_LOCKED : IBS locked operation event:0xf210 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_MAB_HIT : IBS MAB hit event:0xf211 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L1_DTLB_4K : IBS L1 DTLB 4K page event:0xf212 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L1_DTLB_2M : IBS L1 DTLB 2M page event:0xf213 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L1_DTLB_1G : IBS L1 DTLB 1G page event:0xf215 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L2_DTLB_4K : IBS L2 DTLB 4K page event:0xf216 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L2_DTLB_2M : IBS L2 DTLB 2M page event:0xf217 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L2_DTLB_1G : IBS L2 DTLB 1G page event:0xf219 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_DC_LOAD_LAT : IBS data cache miss load latency event:0xf240 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_LOCAL_ONLY : IBS Northbridge local event:0xf241 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_REMOTE_ONLY : IBS Northbridge remote event:0xf242 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_LOCAL_L3 : IBS Northbridge local L3 event:0xf243 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_LOCAL_CACHE : IBS Northbridge local core L1 or L2 cache event:0xf244 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_REMOTE_CACHE : IBS Northbridge local core L1, L2, L3 cache event:0xf245 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_LOCAL_DRAM : IBS Northbridge local DRAM event:0xf246 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_REMOTE_DRAM : IBS Northbridge remote DRAM event:0xf247 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_LOCAL_OTHER : IBS Northbridge local APIC MMIO Config PCI event:0xf248 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_REMOTE_OTHER : IBS Northbridge remote APIC MMIO Config PCI event:0xf249 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_CACHE_MODIFIED : IBS Northbridge cache modified state event:0xf24a ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_CACHE_OWNED : IBS Northbridge cache owned state event:0xf24b ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_LOCAL_CACHE_LAT : IBS Northbridge local cache latency event:0xf24c ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_REMOTE_CACHE_LAT : IBS Northbridge remote cache latency oprofile-0.9.9/events/x86-64/family15h/unit_masks0000664000076400007640000001613612175510133016367 00000000000000# AMD Family 15h processor performance events # # Copyright OProfile authors # Copyright (c) 2006-2011 Advanced Micro Devices # Contributed by Ray Bryant , # Jason Yeh # Suravee Suthikulpanit # Paul Drongowski # # Sources: BIOS and Kernel Developer's Guide for AMD Family 15h Models 00h-0Fh Processors, # Publication# 42301, Revision 1.12, February 16, 2011 # # Software Optimization Guide for AMD Family 10h and Family 12h Processors, # Publication# 40546, Revision 3.13, February 2011 # (Note: For IBS Derived Performance Events) # # Revision: 1.3 # # ChangeLog: # 1.3: 9 March 2011 # - Update to BKDG Rev 1.12 (still preliminary) # # 1.2: 25 Januray 2011 # - Updated to BKDG Rev 1.09 (still preliminary) # - Update minimum value for RETIRED_UOPS # # 1.1: 2 December 2010 # - Updated to BKDG Rev 1.06 (still preliminary) # # 1.0: 28 May 2010 # - Preliminary version name:zero type:mandatory default:0x00 0x00 No unit mask name:fpu_ops type:bitmask default:0xff 0x01 Total number uops assigned to Pipe 0 0x02 Total number uops assigned to Pipe 1 0x04 Total number uops assigned to Pipe 2 0x08 Total number uops assigned to Pipe 3 0x10 Total number dual-pipe uops assigned to Pipe 0 0x20 Total number dual-pipe uops assigned to Pipe 1 0x40 Total number dual-pipe uops assigned to Pipe 2 0x80 Total number dual-pipe uops assigned to Pipe 3 0xff All ops name:sse_ops type:bitmask default:0xff 0x01 Single Precision add/subtract FLOPS 0x02 Single precision multiply FLOPS 0x04 Single precision divide/square root FLOPS 0x08 Single precision multiply-add FLOPS. Multiply-add counts as 2 FLOPS 0x10 Double precision add/subtract FLOPS 0x20 Double precision multiply FLOPS 0x40 Double precision divide/square root FLOPS 0x80 Double precision multiply-add FLOPS. Multiply-add counts as 2 FLOPS name:move_ops type:bitmask default:0x0c 0x01 Number of SSE Move Ops 0x02 Number of SSE Move Ops eliminated 0x04 Number of Ops that are candidates for optimization 0x08 Number of Scalar ops optimized name:serial_ops type:bitmask default:0x0f 0x01 SSE bottom-executing uops retired 0x02 SSE control word mispredict traps due to mispredictions 0x04 x87 bottom-executing uops retired 0x08 x87 control word mispredict traps due to mispredictions name:segregload type:bitmask default:0x7f 0x01 ES register 0x02 CS register 0x04 SS register 0x08 DS register 0x10 FS register 0x20 GS register 0x40 HS register name:loadq_storeq type:bitmask default:0x03 0x01 Cycles that the load buffer is full 0x02 Cycles that the store buffer is full name:lock_ops type:bitmask default:0x01 0x01 Number of locked instructions executed 0x04 Cycles spent non-speculative phase (including cache miss penalty) 0x08 Cycles waiting for a cache hit (cache miss penalty) name:store_to_load type:bitmask default:0x01 0x01 Store is smaller than load or different starting byte but partial overlap name:dcache_misses type:bitmask default:0x01 0x01 First data cache miss or streaming store to a 64B cache line 0x02 First streaming store to a 64B cache line name:dcache_refills type:bitmask default:0x0b 0x01 Fill with good data. (Final valid status is valid) 0x02 Early valid status turned out to be invalid 0x08 Fill with read data error name:unified_tlb_hit type:bitmask default:0x77 0x01 4 KB unified TLB hit for data 0x02 2 MB unified TLB hit for data 0x04 1 GB unified TLB hit for data 0x10 4 KB unified TLB hit for instruction 0x20 2 MB unified TLB hit for instruction 0x40 1 GB unified TLB hit for instruction 0x07 All DTLB hits 0x70 All ITLB hits 0x77 All DTLB and ITLB hits name:unified_tlb_miss type:bitmask default:0x77 0x01 4 KB unified TLB miss for data 0x02 2 MB unified TLB miss for data 0x04 1 GB unified TLB miss for data 0x10 4 KB unified TLB miss for instruction 0x20 2 MB unified TLB miss for instruction 0x40 1 GB unified TLB miss for instruction 0x07 All DTLB misses 0x70 All ITLB misses 0x77 All DTLB and ITLB misses name:prefetch type:bitmask default:0x07 0x01 Load (Prefetch, PrefetchT0/T1/T2) 0x02 Store (PrefetchW) 0x04 NTA (PrefetchNTA) name:soft_prefetch type:bitmask default:0x09 0x01 Software prefetch hit in L1 data cache 0x08 Software prefetch hit in the L2 name:memreqtype type:bitmask default:0x83 0x01 Requests to non-cacheable (UC) memory 0x02 Requests to write-combining (WC) memory 0x80 Streaming store (SS) requests name:dataprefetch type:bitmask default:0x02 0x02 Prefetch attempts name:buffer_id type:bitmask default:0x01 0x01 MAB ID bit 0 0x02 MAB ID bit 1 0x04 MAB ID bit 2 0x08 MAB ID bit 3 0x10 MAB ID bit 4 0x20 MAB ID bit 5 0x40 MAB ID bit 6 0x80 MAB ID bit 7 name:systemreadresponse type:bitmask default:0x3f 0x01 Exclusive 0x02 Modified 0x04 Shared 0x08 Owned 0x10 Data Error 0x20 Modified unwritten name:octword_transfer type:bitmask default:0x01 0x01 Octword write transfer name:l2_internal type:bitmask default:0x47 0x01 IC fill 0x02 DC fill 0x04 TLB fill (page table walks) 0x08 NB probe request 0x10 Canceled request 0x40 L2 cache prefetcher request name:l2_req_miss type:bitmask default:0x17 0x01 IC fill 0x02 DC fill (includes possible replays, whereas PMCx041 does not) 0x04 TLB page table walks 0x10 L2 cache prefetcher request name:l2_fill type:bitmask default:0x07 0x01 L2 fills from system 0x02 L2 Writebacks to system (Clean and Dirty) 0x04 L2 Clean Writebacks to system name:page_size_mismatches type:bitmask default:0x07 0x01 Guest page size is larger than host page size when nested paging is enabled 0x02 Splintering due to MTRRs, IORRs, APIC, TOMs or other special address region 0x04 Host page size is larger than the guest page size name:l1_l2_itlb_miss type:bitmask default:0x07 0x01 Instruction fetches to a 4K page 0x02 Instruction fetches to a 2M page 0x04 Instruction fetches to a 1G page name:icache_invalidated type:bitmask default:0x0f 0x01 Non-SMC invalidating probe that missed on in-flight instructions 0x02 Non-SMC invalidating probe that hit on in-flight instructions 0x04 SMC invalidating probe that missed on in-flight instructions 0x08 SMC invalidating probe that hit on in-flight instructions name:fpu_instr type:bitmask default:0x07 0x01 x87 instructions 0x02 MMX(tm) instructions 0x04 SSE instructions (SSE,SSE2,SSE3,SSSE3,SSE4A,SSE4.1,SSE4.2,AVX,XOP,FMA4) name:fpu_exceptions type:bitmask default:0x1f 0x01 Total microfaults 0x02 Total microtraps 0x04 Int2Ext faults 0x08 Ext2Int faults 0x10 Bypass faults name:ibs_ops_tagged type:bitmask default:0x01 0x01 Number of ops tagged by IBS 0x02 Number of ops tagged by IBS that retired 0x04 Number of times op could not be tagged by IBS because of previous tagged op that has not retired name:ls_dispatch type:bitmask default:0x07 0x01 Loads 0x02 Stores 0x04 Load-op-Stores name:l2_prefetcher_trigger type:bitmask default:0x03 0x01 Load L1 miss seen by prefetcher 0x02 Store L1 miss seen by prefetcher name:ibs_op type:bitmask default:0x01 0x00 Using IBS OP cycle count mode 0x01 Using IBS OP dispatch count mode 0x02 Enable IBS OP Memory Access Log 0x04 Enable IBS OP Branch Target Address Log oprofile-0.9.9/events/x86-64/family11h/0000775000076400007640000000000012175511557014347 500000000000000oprofile-0.9.9/events/x86-64/family11h/events0000664000076400007640000002606412175510133015513 00000000000000# # AMD Athlon(tm)64 and AMD Opteron(tm) processor performance events # # Copyright OProfile authors # Copyright (c) 2006-2008 Advanced Micro Devices # Contributed by Ray Bryant # Jason Yeh # Suravee Suthikulpanit # Paul Drongowski # # Source : BIOS and Kernel Developer's Guide for AMD Family 11h Processors, # Publication# 41256, Revision 3.00, July 07, 2008 # # Updated on 11 November 2008: # Description : Prepare for Oprofile patch submission # Signed off : Suravee Suthikulpanit # # Updated on 20 February 2008: # Description : Added events for AMD Family 11h processors and proofread # WRT the latest BKDG # # Floating point events event:0x00 counters:0,1,2,3 um:fpu_ops minimum:500 name:DISPATCHED_FPU_OPS : Dispatched FPU ops event:0x01 counters:0,1,2,3 um:zero minimum:500 name:CYCLES_NO_FPU_OPS_RETIRED : Cycles in which the FPU is empty event:0x02 counters:0,1,2,3 um:zero minimum:500 name:DISPATCHED_FPU_OPS_FAST_FLAG : Dispatched FPU ops that use the fast flag interface # Load, Store, and TLB events event:0x20 counters:0,1,2,3 um:segregload minimum:500 name:SEGMENT_REGISTER_LOADS : Segment register loads event:0x21 counters:0,1,2,3 um:zero minimum:500 name:PIPELINE_RESTART_DUE_TO_SELF_MODIFYING_CODE : Micro-architectural re-sync caused by self modifying code event:0x22 counters:0,1,2,3 um:zero minimum:500 name:PIPELINE_RESTART_DUE_TO_PROBE_HIT : Micro-architectural re-sync caused by snoop event:0x23 counters:0,1,2,3 um:zero minimum:500 name:LS_BUFFER_2_FULL_CYCLES : Cycles LS Buffer 2 full event:0x24 counters:0,1,2,3 um:locked_ops minimum:500 name:LOCKED_OPS : Locked operations # Execution Unit Events # Data Cache event event:0x40 counters:0,1,2,3 um:zero minimum:500 name:DATA_CACHE_ACCESSES : Data cache accesses event:0x41 counters:0,1,2,3 um:zero minimum:500 name:DATA_CACHE_MISSES : Data cache misses # Event 0x42 with unit mask 0x01 counts same events as event select 0x43 event:0x42 counters:0,1,2,3 um:moess minimum:500 name:DATA_CACHE_REFILLS_FROM_L2_OR_SYSTEM : Data cache refills from L2 or system event:0x43 counters:0,1,2,3 um:moesi minimum:500 name:DATA_CACHE_REFILLS_FROM_SYSTEM : Data cache refills from system event:0x44 counters:0,1,2,3 um:moesi minimum:500 name:DATA_CACHE_LINES_EVICTED : Data cache lines evicted event:0x45 counters:0,1,2,3 um:zero minimum:500 name:L1_DTLB_MISS_AND_L2_DTLB_HIT : L1 DTLB misses and L2 DTLB hits event:0x46 counters:0,1,2,3 um:zero minimum:500 name:L1_DTLB_AND_L2_DTLB_MISS : L1 and L2 DTLB misses event:0x47 counters:0,1,2,3 um:zero minimum:500 name:MISALIGNED_ACCESSES : Misaligned Accesses event:0x48 counters:0,1,2,3 um:zero minimum:500 name:MICROARCHITECTURAL_LATE_CANCEL_OF_AN_ACCESS : Micro-architectural late cancel of an access event:0x49 counters:0,1,2,3 um:zero minimum:500 name:MICROARCHITECTURAL_EARLY_CANCEL_OF_AN_ACCESS : Micro-architectural early cancel of an access event:0x4a counters:0,1,2,3 um:ecc minimum:500 name:SCRUBBER_SINGLE_BIT_ECC_ERRORS : One bit ECC error recorded by scrubber event:0x4b counters:0,1,2,3 um:prefetch minimum:500 name:PREFETCH_INSTRUCTIONS_DISPATCHED : Prefetch instructions dispatched event:0x4c counters:0,1,2,3 um:dcachemisslocked minimum:500 name:DCACHE_MISS_LOCKED_INSTRUCTIONS : DCACHE misses by locked instructions # L2 Cache and System Interface events event:0x65 counters:0,1,2,3 um:memreqtype minimum:500 name:MEMORY_REQUESTS : Memory requests by type event:0x67 counters:0,1,2,3 um:dataprefetch minimum:500 name:DATA_PREFETCHES : Data prefetcher event:0x6c counters:0,1,2,3 um:systemreadresponse minimum:500 name:SYSTEM_READ_RESPONSES : System read responses by coherency state event:0x6d counters:0,1,2,3 um:writtentosystem minimum:500 name:QUADWORD_WRITE_TRANSFERS : Quadwords written to system event:0x7d counters:0,1,2,3 um:l2_internal minimum:500 name:REQUESTS_TO_L2 : Requests to L2 cache event:0x7e counters:0,1,2,3 um:l2_req_miss minimum:500 name:L2_CACHE_MISS : L2 cache misses event:0x7f counters:0,1,2,3 um:l2_fill minimum:500 name:L2_CACHE_FILL_WRITEBACK : L2 fill/writeback # Instruction Cache events event:0x80 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_CACHE_FETCHES : Instruction cache fetches event:0x81 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_CACHE_MISSES : Instruction cache misses event:0x82 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_CACHE_REFILLS_FROM_L2 : Instruction cache refills from L2 event:0x83 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_CACHE_REFILLS_FROM_SYSTEM : Instruction cache refills from system event:0x84 counters:0,1,2,3 um:zero minimum:500 name:L1_ITLB_MISS_AND_L2_ITLB_HIT : L1 ITLB miss and L2 ITLB hit event:0x85 counters:0,1,2,3 um:zero minimum:500 name:L1_ITLB_MISS_AND_L2_ITLB_MISS : L1 ITLB miss and L2 ITLB miss event:0x86 counters:0,1,2,3 um:zero minimum:500 name:PIPELINE_RESTART_DUE_TO_INSTRUCTION_STREAM_PROBE : Pipeline restart due to instruction stream probe event:0x87 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_FETCH_STALL : Instruction fetch stall event:0x88 counters:0,1,2,3 um:zero minimum:500 name:RETURN_STACK_HITS : Return stack hits event:0x89 counters:0,1,2,3 um:zero minimum:500 name:RETURN_STACK_OVERFLOWS : Return stack overflows event:0x26 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_CFLUSH : Retired CLFLUSH instructions event:0x27 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_CPUID : Retired CPUID instructions event:0x76 counters:0,1,2,3 um:zero minimum:3000 name:CPU_CLK_UNHALTED : Cycles outside of halt state # Execution Unit events event:0xc0 counters:0,1,2,3 um:zero minimum:3000 name:RETIRED_INSTRUCTIONS : Retired instructions (includes exceptions, interrupts, re-syncs) event:0xc1 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_UOPS : Retired micro-ops event:0xc2 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_BRANCH_INSTRUCTIONS : Retired branches (conditional, unconditional, exceptions, interrupts) event:0xc3 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_MISPREDICTED_BRANCH_INSTRUCTIONS : Retired mispredicted branch instructions event:0xc4 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_TAKEN_BRANCH_INSTRUCTIONS : Retired taken branch instructions event:0xc5 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_TAKEN_BRANCH_INSTRUCTIONS_MISPREDICTED : Retired taken branches mispredicted event:0xc6 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_FAR_CONTROL_TRANSFERS : Retired far control transfers event:0xc7 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_BRANCH_RESYNCS : Retired branches resyncs (only non-control transfer branches) event:0xc8 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_NEAR_RETURNS : Retired near returns event:0xc9 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_NEAR_RETURNS_MISPREDICTED : Retired near returns mispredicted event:0xca counters:0,1,2,3 um:zero minimum:500 name:RETIRED_INDIRECT_BRANCHES_MISPREDICTED : Retired indirect branches mispredicted event:0xcb counters:0,1,2,3 um:fpu_instr minimum:500 name:RETIRED_MMX_FP_INSTRUCTIONS : Retired MMX/FP instructions event:0xcc counters:0,1,2,3 um:fpu_fastpath minimum:500 name:RETIRED_FASTPATH_DOUBLE_OP_INSTRUCTIONS : Retired FastPath double-op instructions event:0xcd counters:0,1,2,3 um:zero minimum:500 name:INTERRUPTS_MASKED_CYCLES : Cycles with interrupts masked (IF=0) event:0xce counters:0,1,2,3 um:zero minimum:500 name:INTERRUPTS_MASKED_CYCLES_WITH_INTERRUPT_PENDING : Cycles with interrupts masked while interrupt pending event:0xcf counters:0,1,2,3 um:zero minimum:10 name:INTERRUPTS_TAKEN : Number of taken hardware interrupts event:0xd0 counters:0,1,2,3 um:zero minimum:500 name:DECODER_EMPTY : Nothing to dispatch (decoder empty) event:0xd1 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALLS : Dispatch stalls event:0xd2 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_BRANCH_ABORT : Dispatch stall from branch abort to retire event:0xd3 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_SERIALIZATION : Dispatch stall for serialization event:0xd4 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_SEGMENT_LOAD : Dispatch stall for segment load event:0xd5 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_REORDER_BUFFER_FULL : Dispatch stall for reorder buffer full event:0xd6 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_RESERVATION_STATION_FULL : Dispatch stall when reservation stations are full event:0xd7 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_FPU_FULL : Dispatch stall when FPU is full event:0xd8 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_LS_FULL : Dispatch stall when LS is full event:0xd9 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_WAITING_FOR_ALL_QUIET : Dispatch stall when waiting for all to be quiet event:0xda counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_FAR_TRANSFER_OR_RESYNC : Dispatch stall for far transfer or resync to retire event:0xdb counters:0,1,2,3 um:fpu_exceptions minimum:1 name:FPU_EXCEPTIONS : FPU exceptions event:0xdc counters:0,1,2,3 um:zero minimum:1 name:DR0_BREAKPOINTS : Number of breakpoints for DR0 event:0xdd counters:0,1,2,3 um:zero minimum:1 name:DR1_BREAKPOINTS : Number of breakpoints for DR1 event:0xde counters:0,1,2,3 um:zero minimum:1 name:DR2_BREAKPOINTS : Number of breakpoints for DR2 event:0xdf counters:0,1,2,3 um:zero minimum:1 name:DR3_BREAKPOINTS : Number of breakpoints for DR3 # Memory Controller events event:0xe0 counters:0,1,2,3 um:dramaccess minimum:500 name:DRAM_ACCESSES : DRAM accesses event:0xe1 counters:0,1,2,3 um:dramcontroller minimum:500 name:DRAM_CONTROLLER_PAGE_TABLE_EVENTS : DRAM Controller Page Table Events event:0xe3 counters:0,1,2,3 um:turnaround minimum:500 name:MEMORY_CONTROLLER_TURNAROUNDS : Memory controller turnarounds event:0xe4 counters:0,1,2,3 um:rbdqueue minimum:500 name:MEMORY_CONTROLLER_RBD_QUEUE_EVENTS : Memory controller RBD queue events event:0xe8 counters:0,1,2,3 um:thermalstatus minimum:500 name:THERMAL_STATUS : Thermal status event:0xe9 counters:0,1,2,3 um:cpiorequests minimum:500 name:CPU_IO_REQUESTS_TO_MEMORY_IO : CPU/IO requests to memory/IO event:0xea counters:0,1,2,3 um:cacheblock minimum:500 name:CACHE_BLOCK_COMMANDS : Cache block commands event:0xeb counters:0,1,2,3 um:sizecmds minimum:500 name:SIZED_COMMANDS : Sized commands event:0xec counters:0,1,2,3 um:probe minimum:500 name:PROBE_RESPONSES_AND_UPSTREAM_REQUESTS : Probe responses and upstream requests event:0xee counters:0,1,2,3 um:devevents minimum:500 name:DEV_EVENTS : DEV events event:0x1f0 counters:0,1,2,3 um:memory_controller_requests minimum:500 name:MEMORY_CONTROLLER_REQUESTS : Memory controller requests event:0x1e9 counters:0,1,2,3 um:sideband_signals_and_special_cycles minimum:500 name:SIDEBAND_SIGNALS_AND_SPECIAL_CYCLES : Sideband Signals and Special Cycles event:0x1ea counters:0,1,2,3 um:interrupt_events minimum:500 name:INTERRUPT_EVENTS : Interrupt Events # Link events event:0xf6 counters:0,1,2,3 um:httransmit minimum:500 name:HYPERTRANSPORT_LINK_0_TRANSMIT_BANDWIDTH : HyperTransport(tm) link 0 transmit bandwidth oprofile-0.9.9/events/x86-64/family11h/unit_masks0000664000076400007640000001702112175510133016355 00000000000000# # AMD Athlon(tm)64 and AMD Opteron(tm) processor unit masks # # Copyright OProfile authors # Copyright (c) Advanced Micro Devices, 2006-2008 # Contributed by Ray Bryant , and others. # Jason Yeh # Suravee Suthikulpanit # Paul Drongowski # # Source : BIOS and Kernel Developer's Guide for AMD Family 11h Processors, # Publication# 41256, Revision 3.00, July 07, 2008 # # Updated on 11 November 2008: # Description : Prepare for Oprofile patch submission # Signed off : Suravee Suthikulpanit # # Updated on 20 February 2008: # Description : Added events for AMD Family 11h processors and proofread # WRT the latest BKDG # name:zero type:mandatory default:0x0 0x0 No unit mask name:moesi type:bitmask default:0x1f 0x01 (I)nvalid cache state 0x02 (S)hared cache state 0x04 (E)xclusive cache state 0x08 (O)wned cache state 0x10 (M)odified cache state 0x1f All cache states name:moess type:bitmask default:0x1e 0x01 refill from system 0x02 (S)hared cache state from L2 0x04 (E)xclusive cache state from L2 0x08 (O)wned cache state from L2 0x10 (M)odified cache state from L2 0x1e All cache states except Invalid name:fpu_ops type:bitmask default:0x3f 0x01 Add pipe ops 0x02 Multiply pipe 0x04 Store pipe ops 0x08 Add pipe load ops 0x10 Multiply pipe load ops 0x20 Store pipe load ops name:segregload type:bitmask default:0x7f 0x01 ES register 0x02 CS register 0x04 SS register 0x08 DS register 0x10 FS register 0x20 GS register 0x40 HS register name:ecc type:bitmask default:0x03 0x01 Scrubber error 0x02 Piggyback scrubber errors name:prefetch type:bitmask default:0x07 0x01 Load 0x02 Store 0x04 NTA name:fpu_instr type:bitmask default:0x0f 0x01 x87 instructions 0x02 MMX & 3DNow instructions 0x04 Packed SSE & SSE2 instructions 0x08 Packed scalar SSE & SSE2 instructions name:fpu_fastpath type:bitmask default:0x07 0x01 With low op in position 0 0x02 With low op in position 1 0x04 With low op in position 2 name:fpu_exceptions type:bitmask default:0x0f 0x01 x87 reclass microfaults 0x02 SSE retype microfaults 0x04 SSE reclass microfaults 0x08 SSE and x87 microtraps name:dramaccess type:bitmask default:0xff 0x01 DCT0 Page hit 0x02 DCT0 Page miss 0x04 DCT0 Page conflict 0x08 DCT1 Page hit 0x10 DCT1 Page miss 0x20 DCT1 Page conflict 0x40 Write request 0x80 Read request name:dramcontroller type:bitmask default:0x0f 0x01 DCT Page Table Overflow 0x02 Number of stale table entry hits (hit on a page closed too soon) 0x04 Page table idle cycle limit incremented 0x08 Page table idle cycle limit decremented name:turnaround type:bitmask default:0x3f 0x01 DCT0 Read to write turnaround 0x02 DCT0 Write to read turnaround 0x04 DCT0 DIMM (chip select) turnaround 0x08 DCT1 Read to write turnaround 0x10 DCT1 Write to read turnaround 0x20 DCT1 DIMM (chip select) turnaround name:rbdqueue type:bitmask default:0x04 0x04 F2x[1,0]94[DcqBypassMax] counter reached name:sizecmds type:bitmask default:0x3f 0x01 Non-posted write byte (1-32 bytes) 0x02 Non-posted write DWORD (1-16 DWORDs) 0x04 Posted write byte (1-32 bytes) 0x08 Posted write DWORD (1-16 DWORDs) 0x10 Read byte (4 bytes) 0x20 Read DWORD (1-16 DWORDs) name:probe type:bitmask default:0x0f 0x01 Probe miss 0x02 Probe hit clean 0x04 Probe hit dirty without memory cancel 0x08 Probe hit dirty with memory cancel 0x10 Upstream display refresh/ISOC reads 0x20 Upstream non-display refresh reads 0x40 Upstream ISOC writes 0x80 Upstream non-ISOC writes name:l2_internal type:bitmask default:0x1f 0x01 IC fill 0x02 DC fill 0x04 TLB fill (page table walk) 0x08 Tag snoop request 0x10 Cancelled request name:l2_req_miss type:bitmask default:0x07 0x01 IC fill 0x02 DC fill 0x04 TLB page table walk name:l2_fill type:bitmask default:0x03 0x01 L2 fills (victims from L1 caches, TLB page table walks and data prefetches) 0x02 L2 writebacks to system name:devevents type:bitmask default:0x70 0x10 DEV hit 0x20 DEV miss 0x40 DEV error name:cpiorequests type:bitmask default:0xa2 0xa1 Requests Local I/O to Local I/O 0xa2 Requests Local I/O to Local Memory 0xa3 Requests Local I/O to Local (I/O or Mem) 0xa4 Requests Local CPU to Local I/O 0xa5 Requests Local (CPU or I/O) to Local I/O 0xa8 Requests Local CPU to Local Memory 0xaa Requests Local (CPU or I/O) to Local Memory 0xac Requests Local CPU to Local (I/O or Mem) 0xaf Requests Local (CPU or I/O) to Local (I/O or Mem) 0x91 Requests Local I/O to Remote I/O 0x92 Requests Local I/O to Remote Memory 0x93 Requests Local I/O to Remote (I/O or Mem) 0x94 Requests Local CPU to Remote I/O 0x95 Requests Local (CPU or I/O) to Remote I/O 0x98 Requests Local CPU to Remote Memory 0x9a Requests Local (CPU or I/O) to Remote Memory 0x9c Requests Local CPU to Remote (I/O or Mem) 0x9f Requests Local (CPU or I/O) to Remote (I/O or Mem) 0xb1 Requests Local I/O to Any I/O 0xb2 Requests Local I/O to Any Memory 0xb3 Requests Local I/O to Any (I/O or Mem) 0xb4 Requests Local CPU to Any I/O 0xb5 Requests Local (CPU or I/O) to Any I/O 0xb8 Requests Local CPU to Any Memory 0xba Requests Local (CPU or I/O) to Any Memory 0xbc Requests Local CPU to Any (I/O or Mem) 0xbf Requests Local (CPU or I/O) to Any (I/O or Mem) 0x61 Requests Remote I/O to Local I/O 0x64 Requests Remote CPU to Local I/O 0x65 Requests Remote (CPU or I/O) to Local I/O name:cacheblock type:bitmask default:0x3d 0x01 Victim Block (Writeback) 0x04 Read Block (Dcache load miss refill) 0x08 Read Block Shared (Icache refill) 0x10 Read Block Modified (Dcache store miss refill) 0x20 Change to Dirty (first store to clean block already in cache) name:dataprefetch type:bitmask default:0x03 0x01 Cancelled prefetches 0x02 Prefetch attempts name:memreqtype type:bitmask default:0x83 0x01 Requests to non-cacheable (UC) memory 0x02 Requests to write-combining (WC) memory or WC buffer flushes to WB memory 0x80 Streaming store (SS) requests name:systemreadresponse type:bitmask default:0x7 0x01 Exclusive 0x02 Modified 0x04 Shared 0x08 Data Error name:writtentosystem type:bitmask default:0x1 0x01 Quadword write transfer # BKDG 3.28 does not include unit_mask of 0x01 for "accesses by Locked instructions" name:dcachemisslocked type:bitmask default:0x02 0x02 Data cache misses by locked instructions name:locked_ops type:bitmask default:0x04 0x01 The number of locked instructions executed 0x02 The number of cycles spent in speculative phase 0x04 The number of cycles spent in non-speculative phase (including cache miss penalty) name:thermalstatus type:bitmask default:0x80 0x01 Number of clocks MEMHOT_L is asserted 0x04 Number of times the HTC transitions from inactive to active 0x20 Number of clocks HTC P-state is inactive 0x40 Number of clocks HTC P-state is active 0x80 PROCHOT_L asserted by an external source and P-state change occurred name:memory_controller_requests type:bitmask default:0x78 0x08 32 Bytes Sized Writes 0x10 64 Bytes Sized Writes 0x20 32 Bytes Sized Reads 0x40 64 Bytes Sized Reads name:sideband_signals_and_special_cycles type:bitmask default:0x1f 0x01 HALT 0x02 STOPGRANT 0x04 SHUTDOWN 0x08 WBINVD 0x10 INVD name:interrupt_events type:bitmask default:0xff 0x01 Fixed 0x02 LPA 0x04 SMI 0x08 NMI 0x10 INIT 0x20 STARTUP 0x40 INT 0x80 EOI name:httransmit type:bitmask default:0x3f 0x01 Command DWORD sent 0x02 Address DWORD sent 0x04 Data DWORD sent 0x08 Buffer release DWORD sent 0x10 Nop DW sent (idle) 0x20 Per packet CRC sent oprofile-0.9.9/events/x86-64/family12h/0000775000076400007640000000000012175511557014350 500000000000000oprofile-0.9.9/events/x86-64/family12h/events0000664000076400007640000004455412175510133015520 00000000000000# AMD Family 12 processor performance events # # Copyright OProfile authors # Copyright (c) 2006-2011 Advanced Micro Devices # Contributed by Ray Bryant , # Jason Yeh # Suravee Suthikulpanit # Paul Drongowski # # Sources: BIOS and Kernel Developer's Guide for AMD Family 12h Processors, # Publication# 41131, Revision 1.13, March 01, 2011 # # Software Optimization Guide for AMD Family 10h and Family 12h Processors, # Publication# 40546, Revision 3.13, February 2011 # (Note: For IBS Derived Performance Events) # # Revision: 1.2 # # ChangeLog: # 1.2: 09 March 2011 # - Update with BKDG Rev.1.13 (preliminary) # # 1.1: 25 January 2010. # - Update minimum value for RETIRED_UOPS # - Update to BKDG Revision 1.12 # # 1.0: 08 December 2009. # - Preliminary version event:0x000 counters:0,1,2,3 um:fpu_ops minimum:500 name:DISPATCHED_FPU_OPS : Dispatched FPU Operations event:0x001 counters:0,1,2,3 um:zero minimum:500 name:CYCLES_FPU_EMPTY : Cycles in which the FPU is Empty event:0x002 counters:0,1,2,3 um:zero minimum:500 name:DISPATCHED_FPU_OPS_FAST_FLAG : Dispatched Fast Flag FPU Operations event:0x003 counters:0,1,2,3 um:sse_ops minimum:500 name:RETIRED_SSE_OPS : Retired SSE Operations event:0x004 counters:0,1,2,3 um:move_ops minimum:500 name:RETIRED_MOVE_OPS : Retired Move Ops event:0x005 counters:0,1,2,3 um:serial_ops minimum:500 name:RETIRED_SERIALIZING_OPS : Retired Serializing Ops event:0x006 counters:0,1,2,3 um:serial_ops_sched minimum:500 name:SERIAL_UOPS_IN_FP_SCHED : Number of Cycles that a Serializing uop is in the FP Scheduler event:0x020 counters:0,1,2,3 um:segregload minimum:500 name:SEGMENT_REGISTER_LOADS : Segment Register Loads event:0x021 counters:0,1,2,3 um:zero minimum:500 name:PIPELINE_RESTART_DUE_TO_SELF_MODIFYING_CODE : Pipeline Restart Due to Self-Modifying Code event:0x022 counters:0,1,2,3 um:zero minimum:500 name:PIPELINE_RESTART_DUE_TO_PROBE_HIT : Pipeline Restart Due to Probe Hit event:0x023 counters:0,1,2,3 um:zero minimum:500 name:LS_BUFFER_2_FULL_CYCLES : LS Buffer 2 Full event:0x024 counters:0,1,2,3 um:lock_ops minimum:500 name:LOCKED_OPS : Locked Operations event:0x026 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_CLFLUSH_INSTRUCTIONS : Retired CLFLUSH Instructions event:0x027 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_CPUID_INSTRUCTIONS : Retired CPUID Instructions event:0x02a counters:0,1,2,3 um:store_to_load minimum:500 name:CANCELLED_STORE_TO_LOAD : Cancelled Store to Load Forward Operations event:0x02b counters:0,1,2,3 um:zero minimum:500 name:SMIS_RECEIVED : SMIs Received event:0x040 counters:0,1,2,3 um:zero minimum:500 name:DATA_CACHE_ACCESSES : Data Cache Accesses event:0x041 counters:0,1,2,3 um:zero minimum:500 name:DATA_CACHE_MISSES : Data Cache Misses event:0x042 counters:0,1,2,3 um:moess minimum:500 name:DATA_CACHE_REFILLS_FROM_L2_OR_NORTHBRIDGE : Data Cache Refills from L2 or Northbridge event:0x043 counters:0,1,2,3 um:moesi minimum:500 name:DATA_CACHE_REFILLS_FROM_NORTHBRIDGE : Data Cache Refills from the Northbridge event:0x044 counters:0,1,2,3 um:moesi_gh minimum:500 name:DATA_CACHE_LINES_EVICTED : Data Cache Lines Evicted event:0x045 counters:0,1,2,3 um:l1_dtlb_miss_l2_hit minimum:500 name:L1_DTLB_MISS_AND_L2_DTLB_HIT : L1 DTLB Miss and L2 DTLB Hit event:0x046 counters:0,1,2,3 um:l1_l2_dtlb_miss minimum:500 name:L1_DTLB_AND_L2_DTLB_MISS : L1 DTLB and L2 DTLB Miss event:0x047 counters:0,1,2,3 um:zero minimum:500 name:MISALIGNED_ACCESSES : Misaligned Accesses event:0x048 counters:0,1,2,3 um:zero minimum:500 name:MICRO_ARCH_LATE_CANCEL_ACCESS : Microarchitectural Late Cancel of an Access event:0x049 counters:0,1,2,3 um:zero minimum:500 name:MICRO_ARCH_EARLY_CANCEL_ACCESS : Microarchitectural Early Cancel of an Access event:0x04b counters:0,1,2,3 um:prefetch minimum:500 name:PREFETCH_INSTRUCTIONS_DISPATCHED : Prefetch Instructions Dispatched event:0x04c counters:0,1,2,3 um:locked_instruction_dcache_miss minimum:500 name:LOCKED_INSTRUCTIONS_DCACHE_MISSES : DCACHE Misses by Locked Instructions event:0x04d counters:0,1,2,3 um:l1_dtlb_hit minimum:500 name:L1_DTLB_HIT : L1 DTLB Hit event:0x052 counters:0,1,2,3 um:soft_prefetch minimum:500 name:INEFFECTIVE_SW_PREFETCHES : Ineffective Software Prefetches event:0x054 counters:0,1,2,3 um:zero minimum:500 name:GLOBAL_TLB_FLUSHES : Global TLB Flushes event:0x065 counters:0,1,2,3 um:memreqtype minimum:500 name:MEMORY_REQUESTS : Memory Requests by Type event:0x067 counters:0,1,2,3 um:dataprefetch minimum:500 name:DATA_PREFETCHES : Data Prefetcher event:0x06c counters:0,1,2,3 um:systemreadresponse minimum:500 name:NORTHBRIDGE_READ_RESPONSES : Northbridge Read Responses by Coherency State event:0x06d counters:0,1,2,3 um:octword_transfer minimum:500 name:OCTWORD_WRITE_TRANSFERS : Octwords Written to System event:0x076 counters:0,1,2,3 um:zero minimum:50000 name:CPU_CLK_UNHALTED : CPU Clocks not Halted event:0x07d counters:0,1,2,3 um:l2_internal minimum:500 name:REQUESTS_TO_L2 : Requests to L2 Cache event:0x07e counters:0,1,2,3 um:l2_req_miss minimum:500 name:L2_CACHE_MISS : L2 Cache Misses event:0x07f counters:0,1,2,3 um:l2_fill minimum:500 name:L2_CACHE_FILL_WRITEBACK : L2 Fill/Writeback event:0x165 counters:0,1,2,3 um:page_size_mismatches minimum:500 name:PAGE_SIZE_MISMATCHES : Page Size Mismatches event:0x080 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_CACHE_FETCHES : Instruction Cache Fetches event:0x081 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_CACHE_MISSES : Instruction Cache Misses event:0x082 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_CACHE_REFILLS_FROM_L2 : Instruction Cache Refills from L2 event:0x083 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_CACHE_REFILLS_FROM_SYSTEM : Instruction Cache Refills from System event:0x084 counters:0,1,2,3 um:zero minimum:500 name:L1_ITLB_MISS_AND_L2_ITLB_HIT : L1 ITLB Miss, L2 ITLB Hit event:0x085 counters:0,1,2,3 um:l1_l2_itlb_miss minimum:500 name:L1_ITLB_MISS_AND_L2_ITLB_MISS : L1 ITLB Miss, L2 ITLB Miss event:0x086 counters:0,1,2,3 um:zero minimum:500 name:PIPELINE_RESTART_DUE_TO_INSTRUCTION_STREAM_PROBE : Pipeline Restart Due to Instruction Stream Probe event:0x087 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_FETCH_STALL : Instruction Fetch Stall event:0x088 counters:0,1,2,3 um:zero minimum:500 name:RETURN_STACK_HITS : Return Stack Hits event:0x089 counters:0,1,2,3 um:zero minimum:500 name:RETURN_STACK_OVERFLOWS : Return Stack Overflows event:0x08b counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_CACHE_VICTIMS : Instruction Cache Victims event:0x08c counters:0,1,2,3 um:icache_invalidated minimum:500 name:INSTRUCTION_CACHE_INVALIDATED : Instruction Cache Lines Invalidated event:0x099 counters:0,1,2,3 um:zero minimum:500 name:ITLB_RELOADS : ITLB Reloads event:0x09a counters:0,1,2,3 um:zero minimum:500 name:ITLB_RELOADS_ABORTED : ITLB Reloads Aborted event:0x0c0 counters:0,1,2,3 um:zero minimum:50000 name:RETIRED_INSTRUCTIONS : Retired Instructions event:0x0c1 counters:0,1,2,3 um:zero minimum:50000 name:RETIRED_UOPS : Retired uops event:0x0c2 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_BRANCH_INSTRUCTIONS : Retired Branch Instructions event:0x0c3 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_MISPREDICTED_BRANCH_INSTRUCTIONS : Retired Mispredicted Branch Instructions event:0x0c4 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_TAKEN_BRANCH_INSTRUCTIONS : Retired Taken Branch Instructions event:0x0c5 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_TAKEN_BRANCH_INSTRUCTIONS_MISPREDICTED : Retired Taken Branch Instructions Mispredicted event:0x0c6 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_FAR_CONTROL_TRANSFERS : Retired Far Control Transfers event:0x0c7 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_BRANCH_RESYNCS : Retired Branch Resyncs event:0x0c8 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_NEAR_RETURNS : Retired Near Returns event:0x0c9 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_NEAR_RETURNS_MISPREDICTED : Retired Near Returns Mispredicted event:0x0ca counters:0,1,2,3 um:zero minimum:500 name:RETIRED_INDIRECT_BRANCHES_MISPREDICTED : Retired Indirect Branches Mispredicted event:0x0cb counters:0,1,2,3 um:fpu_instr minimum:500 name:RETIRED_MMX_FP_INSTRUCTIONS : Retired MMX(tm)/FP Instructions event:0x0cd counters:0,1,2,3 um:zero minimum:500 name:INTERRUPTS_MASKED_CYCLES : Interrupts-Masked Cycles event:0x0ce counters:0,1,2,3 um:zero minimum:500 name:INTERRUPTS_MASKED_CYCLES_WITH_INTERRUPT_PENDING : Interrupts-Masked Cycles with Interrupt Pending event:0x0cf counters:0,1,2,3 um:zero minimum:500 name:INTERRUPTS_TAKEN : Interrupts Taken event:0x0d0 counters:0,1,2,3 um:zero minimum:500 name:DECODER_EMPTY : Decoder Empty event:0x0d1 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALLS : Dispatch Stalls event:0x0d2 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_BRANCH_ABORT : Dispatch Stall for Branch Abort to Retire event:0x0d3 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_SERIALIZATION : Dispatch Stall for Serialization event:0x0d4 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_SEGMENT_LOAD : Dispatch Stall for Segment Load event:0x0d5 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_REORDER_BUFFER_FULL : Dispatch Stall for Reorder Buffer Full event:0x0d6 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_RESERVATION_STATION_FULL : Dispatch Stall for Reservation Station Full event:0x0d7 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_FPU_FULL : Dispatch Stall for FPU Full event:0x0d8 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_LS_FULL : Dispatch Stall for LS Full event:0x0d9 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_WAITING_FOR_ALL_QUIET : Dispatch Stall Waiting for All Quiet event:0x0da counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_FAR_TRANSFER_OR_RESYNC : Dispatch Stall for Far Transfer or Resync to Retire event:0x0db counters:0,1,2,3 um:fpu_exceptions minimum:500 name:FPU_EXCEPTIONS : FPU Exceptions event:0x0dc counters:0,1,2,3 um:zero minimum:500 name:DR0_BREAKPOINTS : DR0 Breakpoint Matches event:0x0dd counters:0,1,2,3 um:zero minimum:500 name:DR1_BREAKPOINTS : DR1 Breakpoint Matches event:0x0de counters:0,1,2,3 um:zero minimum:500 name:DR2_BREAKPOINTS : DR2 Breakpoint Matches event:0x0df counters:0,1,2,3 um:zero minimum:500 name:DR3_BREAKPOINTS : DR3 Breakpoint Matches event:0x1c0 counters:0,1,2,3 um:retired_x87_fp minimum:500 name:RETIRED_X87_FLOATING_POINT_OPERATIONS : Retired x87 Floating Point Operations event:0x1d3 counters:0,1,2,3 um:zero minimum:500 name:LFENCE_INSTRUCTIONS_RETIRED : LFENCE Instructions Retired event:0x1d4 counters:0,1,2,3 um:zero minimum:500 name:SFENCE_INSTRUCTIONS_RETIRED : SFENCE Instructions Retired event:0x1d5 counters:0,1,2,3 um:zero minimum:500 name:MFENCE_INSTRUCTIONS_RETIRED : MFENCE Instructions Retired event:0x0e0 counters:0,1,2,3 um:page_access minimum:500 name:DRAM_ACCESSES : DRAM Accesses event:0x0e1 counters:0,1,2,3 um:mem_page_overflow minimum:500 name:DCT0_PAGE_TABLE_EVENTS : DRAM Controller 0 Page Table Events event:0x0e2 counters:0,1,2,3 um:slot_missed minimum:500 name:MEMORY_CONTROLLER_SLOT_MISSED : Memory Controller DRAM Command Slots Missed event:0x0e3 counters:0,1,2,3 um:turnaround minimum:500 name:MEMORY_CONTROLLER_TURNAROUNDS : Memory Controller Turnarounds event:0x0e4 counters:0,1,2,3 um:rbd minimum:500 name:MEMORY_CONTROLLER_RBD_QUEUE_EVENTS : Memory Controller RBD Queue Events event:0x0e5 counters:0,1,2,3 um:dct1_page_table_events minimum:500 name:DCT1_PAGE_TABLE_EVENTS : DRAM Controller 1 Page Table Events event:0x0e8 counters:0,1,2,3 um:thermal_status minimum:500 name:THERMAL_STATUS : Thermal Status event:0x0e9 counters:0,1,2,3 um:cpiorequests minimum:500 name:CPU_IO_REQUESTS_TO_MEMORY_IO : CPU/IO Requests to Memory/IO event:0x0ea counters:0,1,2,3 um:cacheblock minimum:500 name:CACHE_BLOCK_COMMANDS : Cache Block Commands event:0x0eb counters:0,1,2,3 um:sizecmds minimum:500 name:SIZED_COMMANDS : Sized Commands event:0x0ec counters:0,1,2,3 um:probe minimum:500 name:PROBE_RESPONSES_AND_UPSTREAM_REQUESTS : Probe Responses and Upstream Requests event:0x0ee counters:0,1,2,3 um:gart minimum:500 name:DEV_EVENTS : DEV Events event:0x1f0 counters:0,1,2,3 um:mem_control_request minimum:500 name:MEMORY_CONTROLLER_REQUESTS : Memory Controller Requests event:0x1e9 counters:0,1,2,3 um:sideband_signals minimum:500 name:SIDEBAND_SIGNALS : Sideband Signals and Special Cycles event:0x1ea counters:0,1,2,3 um:interrupt_events minimum:500 name:INTERRUPT_EVENTS : Interrupt Events event:0xf000 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_ALL : All IBS fetch samples event:0xf001 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_KILLED : IBS fetch killed event:0xf002 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_ATTEMPTED : IBS fetch attempted event:0xf003 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_COMPLETED : IBS fetch completed event:0xf004 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_ABORTED : IBS fetch aborted event:0xf005 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_ITLB_HITS : IBS ITLB hit event:0xf006 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_L1_ITLB_MISSES_L2_ITLB_HITS : IBS L1 ITLB misses (and L2 ITLB hits) event:0xf007 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_L1_ITLB_MISSES_L2_ITLB_MISSES : IBS L1 L2 ITLB miss event:0xf008 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_ICACHE_MISSES : IBS instruction cache misses event:0xf009 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_ICACHE_HITS : IBS instruction cache hit event:0xf00a ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_4K_PAGE : IBS 4K page translation event:0xf00b ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_2M_PAGE : IBS 2M page translation event:0xf00e ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_LATENCY : IBS fetch latency event:0xf100 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_ALL : All IBS op samples event:0xf101 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_TAG_TO_RETIRE : IBS tag-to-retire cycles event:0xf102 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_COMP_TO_RET : IBS completion-to-retire cycles event:0xf103 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_BRANCH_RETIRED : IBS branch op event:0xf104 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_MISPREDICTED_BRANCH : IBS mispredicted branch op event:0xf105 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_TAKEN_BRANCH : IBS taken branch op event:0xf106 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_MISPREDICTED_BRANCH_TAKEN : IBS mispredicted taken branch op event:0xf107 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_RETURNS : IBS return op event:0xf108 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_MISPREDICTED_RETURNS : IBS mispredicted return op event:0xf109 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_RESYNC : IBS resync op event:0xf200 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_ALL_LOAD_STORE : IBS all load store ops event:0xf201 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_LOAD : IBS load ops event:0xf202 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_STORE : IBS store ops event:0xf203 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L1_DTLB_HITS : IBS L1 DTLB hit event:0xf204 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L1_DTLB_MISS_L2_DTLB_HIT : IBS L1 DTLB misses L2 hits event:0xf205 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L1_L2_DTLB_MISS : IBS L1 and L2 DTLB misses event:0xf206 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_DATA_CACHE_MISS : IBS data cache misses event:0xf207 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_DATA_HITS : IBS data cache hits event:0xf208 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_MISALIGNED_DATA_ACC : IBS misaligned data access event:0xf209 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_BANK_CONF_LOAD : IBS bank conflict on load op event:0xf20a ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_BANK_CONF_STORE : IBS bank conflict on store op event:0xf20b ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_FORWARD : IBS store-to-load forwarded event:0xf20c ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_CANCELLED : IBS store-to-load cancelled event:0xf20d ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_DCUC_MEM_ACC : IBS UC memory access event:0xf20e ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_DCWC_MEM_ACC : IBS WC memory access event:0xf20f ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_LOCKED : IBS locked operation event:0xf210 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_MAB_HIT : IBS MAB hit event:0xf211 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L1_DTLB_4K : IBS L1 DTLB 4K page event:0xf212 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L1_DTLB_2M : IBS L1 DTLB 2M page event:0xf213 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L1_DTLB_1G : IBS L1 DTLB 1G page event:0xf215 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L2_DTLB_4K : IBS L2 DTLB 4K page event:0xf216 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L2_DTLB_2M : IBS L2 DTLB 2M page event:0xf217 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L2_DTLB_1G : IBS L2 DTLB 1G page event:0xf219 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_DC_LOAD_LAT : IBS data cache miss load latency event:0xf240 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_LOCAL_ONLY : IBS Northbridge local event:0xf241 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_REMOTE_ONLY : IBS Northbridge remote event:0xf242 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_LOCAL_L3 : IBS Northbridge local L3 event:0xf243 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_LOCAL_CACHE : IBS Northbridge local core L1 or L2 cache event:0xf244 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_REMOTE_CACHE : IBS Northbridge local core L1, L2, L3 cache event:0xf245 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_LOCAL_DRAM : IBS Northbridge local DRAM event:0xf246 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_REMOTE_DRAM : IBS Northbridge remote DRAM event:0xf247 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_LOCAL_OTHER : IBS Northbridge local APIC MMIO Config PCI event:0xf248 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_REMOTE_OTHER : IBS Northbridge remote APIC MMIO Config PCI event:0xf249 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_CACHE_MODIFIED : IBS Northbridge cache modified state event:0xf24a ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_CACHE_OWNED : IBS Northbridge cache owned state event:0xf24b ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_LOCAL_CACHE_LAT : IBS Northbridge local cache latency event:0xf24c ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_REMOTE_CACHE_LAT : IBS Northbridge remote cache latency oprofile-0.9.9/events/x86-64/family12h/unit_masks0000664000076400007640000002243212175510133016360 00000000000000# AMD Family 12 processor performance events # # Copyright OProfile authors # Copyright (c) 2006-2011 Advanced Micro Devices # Contributed by Ray Bryant , # Jason Yeh # Suravee Suthikulpanit # Paul Drongowski # # Sources: BIOS and Kernel Developer's Guide for AMD Family 12h Processors, # Publication# 41131, Revision 1.13, March 01, 2011 # # Software Optimization Guide for AMD Family 10h and Family 12h Processors, # Publication# 40546, Revision 3.13, February 2011 # (Note: For IBS Derived Performance Events) # # Revision: 1.2 # # ChangeLog: # 1.2: 09 March 2011 # - Update with BKDG Rev.1.13 (preliminary) # # 1.1: 25 January 2010. # - Update minimum value for RETIRED_UOPS # - Update to BKDG Revision 1.12 # # 1.0: 08 December 2009. # - Preliminary version name:zero type:mandatory default:0x00 0x00 No unit mask name:moesi type:bitmask default:0x1f 0x01 (I)nvalid cache state 0x02 (S)hared cache state 0x04 (E)xclusive cache state 0x08 (O)wned cache state 0x10 (M)odified cache state 0x1f All cache states name:moess type:bitmask default:0x1e 0x01 Refill from northbridge 0x02 Shared-state line from L2 0x04 Exclusive-state line from L2 0x08 Owner-state line from L2 0x10 Modified-state line from L2 0x1e All cache states except refill from northbridge name:fpu_ops type:bitmask default:0x3f 0x01 Add pipe ops excluding load ops and SSE move ops 0x02 Multiply pipe ops excluding load ops and SSE move ops 0x04 Store pipe ops excluding load ops and SSE move ops 0x08 Add pipe load ops and SSE move ops 0x10 Multiply pipe load ops and SSE move ops 0x20 Store pipe load ops and SSE move ops 0x3f All ops name:segregload type:bitmask default:0x7f 0x01 ES register 0x02 CS register 0x04 SS register 0x08 DS register 0x10 FS register 0x20 GS register 0x40 HS register name:fpu_instr type:bitmask default:0x07 0x01 x87 instructions 0x02 MMX & 3DNow instructions 0x04 SSE instructions (SSE, SSE2, SSE3, and SSE4A) name:fpu_exceptions type:bitmask default:0x0f 0x01 x87 reclass microfaults 0x02 SSE retype microfaults 0x04 SSE reclass microfaults 0x08 SSE and x87 microtraps name:page_access type:bitmask default:0xff 0x01 DCT0 Page hit 0x02 DCT0 Page miss 0x04 DCT0 Page conflict 0x08 DCT1 Page hit 0x10 DCT1 Page miss 0x20 DCT1 Page Conflict 0x40 Write request 0x80 Read request name:mem_page_overflow type:bitmask default:0x03 0x01 DCT0 Page Table Overflow 0x02 DCT0 Number of stale table entry hits 0x04 DCT0 Page table idle cycle limit incremented 0x08 DCT0 Page table idle cycle limit decremented 0x10 DCT0 Page table is closed due to row inactivity name:turnaround type:bitmask default:0x1b 0x01 DCT0 read-to-write turnaround 0x02 DCT0 write-to-read turnaround 0x08 DCT1 read-to-write turnaround 0x10 DCT1 write-to-read turnaround name:rbd type:bitmask default:0x0c 0x04 D18F2x[1,0]94[DcqBypassMax] counter reached 0x08 Bank is closed due to bank conflict with an outstanding request in the RBD queue name:slot_missed type:bitmask default:0xf0 0x10 DCT0 RBD 0x20 DCT1 RBD 0x40 DCT0 Prefetch 0x80 DCT1 Prefetch name:sizecmds type:bitmask default:0x3f 0x01 Non-posted write byte (1-32 bytes) 0x02 Non-posted write DWORD (1-16 DWORDs) 0x04 Posted write byte (1-32 bytes) 0x08 Posted write DWORD (1-16 DWORDs) 0x10 Read byte (4 bytes) 0x20 Read DWORD (1-16 DWORDs) name:probe type:bitmask default:0xbf 0x01 Probe miss 0x02 Probe hit clean 0x04 Probe hit dirty without memory cancel 0x08 Probe hit dirty with memory cancel 0x10 Upstream high priority reads 0x20 Upstream low priority reads 0x80 Upstream low priority writes name:l2_internal type:bitmask default:0x3f 0x01 IC fill 0x02 DC fill 0x04 TLB fill (page table walks) 0x08 Tag snoop request 0x10 Canceled request 0x20 Hardware prefetch from data cache name:l2_req_miss type:bitmask default:0x0f 0x01 IC fill 0x02 DC fill (includes possible replays) 0x04 TLB page table walk 0x08 Hardware prefetch from data cache name:l2_fill type:bitmask default:0x03 0x01 L2 fills (victims from L1 caches, TLB page table walks and data prefetches) 0x02 L2 writebacks to system name:gart type:bitmask default:0x70 0x10 DEV hit 0x20 DEV miss 0x40 DEV error name:cpiorequests type:bitmask default:0x08 0x01 IO to IO 0x02 IO to Mem 0x04 CPU to IO 0x08 CPU to Mem name:cacheblock type:bitmask default:0x3d 0x01 Victim Block (Writeback) 0x04 Read Block (Dcache load miss refill) 0x08 Read Block Shared (Icache refill) 0x10 Read Block Modified (Dcache store miss refill) 0x20 Change-to-Dirty (first store to clean block already in cache) name:dataprefetch type:bitmask default:0x03 0x01 Cancelled prefetches 0x02 Prefetch attempts name:memreqtype type:bitmask default:0x87 0x01 Requests to non-cacheable (UC) memory 0x02 Requests to write-combining (WC) memory or WC buffer flushes to WB memory 0x04 Requests to cache-disabled (CD) memory 0x80 Streaming store (SS) requests name:systemreadresponse type:bitmask default:0x1f 0x01 Exclusive 0x02 Modified 0x04 Shared 0x08 Owned 0x10 Data Error name:l1_dtlb_miss_l2_hit type:bitmask default:0x07 0x01 L2 4K TLB hit 0x02 L2 2M TLB hit 0x04 L2 1G TLB hit name:l1_l2_dtlb_miss type:bitmask default:0x07 0x01 4K TLB reload 0x02 2M TLB reload 0x04 1G TLB reload name:prefetch type:bitmask default:0x07 0x01 Load (Prefetch, PrefetchT0/T1/T2) 0x02 Store (PrefetchW) 0x04 NTA (PrefetchNTA) name:locked_instruction_dcache_miss type:bitmask default:0x02 0x02 Data cache misses by locked instructions name:octword_transfer type:bitmask default:0x01 0x01 Octword write transfer name:thermal_status type:bitmask default:0xe5 0x01 MEMHOT_L assertions 0x04 Number of times the HTC transitions from inactive to active 0x20 Number of clocks HTC P-state is inactive 0x40 Number of clocks HTC P-state is active 0x80 PROCHOT_L asserted by external source and caused a P-state change name:mem_control_request type:bitmask default:0x78 0x01 Write requests 0x02 Read Requests 0x04 Prefetch Requests 0x08 32 Bytes Sized Writes 0x10 64 Bytes Sized Writes 0x20 32 Bytes Sized Reads 0x40 64 Byte Sized Reads 0x80 Read requests while writes pending in DCQ name:lock_ops type:bitmask default:0x0f 0x01 Number of locked instructions executed 0x02 Cycles in speculative phase 0x04 Cycles in non-speculative phase (including cache miss penalty) 0x08 Cache miss penalty in cycles name:sse_ops type:bitmask default:0x7f 0x01 Single Precision add/subtract ops 0x02 Single precision multiply ops 0x04 Single precision divide/square root ops 0x08 Double precision add/subtract ops 0x10 Double precision multiply ops 0x20 Double precision divide/square root ops 0x40 OP type: 0=uops 1=FLOPS name:move_ops type:bitmask default:0x0f 0x01 Merging low quadword move uops 0x02 Merging high quadword move uops 0x04 All other merging move uops 0x08 All other move uops name:serial_ops type:bitmask default:0x0f 0x01 SSE bottom-executing uops retired 0x02 SSE bottom-serializing uops retired 0x04 x87 bottom-executing uops retired 0x08 x87 bottom-serializing uops retired name:serial_ops_sched type:bitmask default:0x03 0x01 Number of cycles a bottom-execute uops in FP scheduler 0x02 Number of cycles a bottom-serializing uops in FP scheduler name:store_to_load type:bitmask default:0x07 0x01 Address mismatches (starting byte not the same) 0x02 Store is smaller than load 0x04 Misaligned name:moesi_gh type:bitmask default:0x1f 0x01 (I)nvalid cache state 0x02 (S)hared cache state 0x04 (E)xclusive cache state 0x08 (O)wned cache state 0x10 (M)odified cache state 0x20 Cache line evicted brought into the cache by PrefetchNTA 0x40 Cache line evicted not brought into the cache by PrefetchNTA name:l1_dtlb_hit type:bitmask default:0x07 0x01 L1 4K TLB hit 0x02 L1 2M TLB hit 0x04 L1 1G TLB hit name:soft_prefetch type:bitmask default:0x09 0x01 Software prefetch hit in L1 0x08 Software prefetch hit in L2 name:l1_l2_itlb_miss type:bitmask default:0x03 0x01 Instruction fetches to a 4K page 0x02 Instruction fetches to a 2M page name:icache_invalidated type:bitmask default:0x03 0x01 Invalidating probe that did not hit any in-flight instructions 0x02 Invalidating probe that hit one or more in-flight instructions 0x04 SMC that did not hit any in-flight instructions 0x08 SMC that hit one or more in-flight instructions name:page_size_mismatches type:bitmask default:0x07 0x01 Guest page size is larger than the host page size 0x02 MTRR mismatch 0x04 Host page size is larger than the guest page size name:retired_x87_fp type:bitmask default:0x07 0x01 Add/subtract ops 0x02 Multiply ops 0x04 Divide ops name:dct1_page_table_events type:bitmask default:0x1f 0x01 DCT1 Page Table Overflow 0x02 DCT1 Number of stale table entry hits 0x04 DCT1 Page table idle cycle limit incremented 0x08 DCT1 Page table idle cycle limit decremented 0x10 DCT1 Page table is closed due to row inactivity name:sideband_signals type:bitmask default:0x1e 0x02 STOPGRANT 0x04 SHUTDOWN 0x08 WBINVD 0x10 INVD name:interrupt_events type:bitmask default:0xff 0x01 Fixed and LPA 0x02 LPA 0x04 SMI 0x08 NMI 0x10 INIT 0x20 STARTUP 0x40 INT 0x80 EOI name:ibs_op type:bitmask default:0x01 0x00 Using IBS OP cycle count mode 0x01 Using IBS OP dispatch count mode 0x02 Enable IBS OP Memory Access Log 0x04 Enable IBS OP Branch Target Address Log oprofile-0.9.9/events/x86-64/generic/0000775000076400007640000000000012175511557014170 500000000000000oprofile-0.9.9/events/x86-64/generic/events0000664000076400007640000000453612175510133015334 00000000000000# AMD Generic processor performance events # # Copyright OProfile authors # Copyright (c) 2006-2013 Advanced Micro Devices # Contributed by Ray Bryant , # Jason Yeh # Suravee Suthikulpanit # Paul Drongowski # # Sources: BIOS and Kernel Developer's Guide for AMD processors, # # Revision: 1.0 # # ChangeLog: # 1.0: 07 Feb 2013 # - Preliminary version # L1 DATA CACHE event:0x040 counters:0,1,2,3 um:zero minimum:500 name:DATA_CACHE_ACCESSES : Data Cache Accesses event:0x041 counters:0,1,2,3 um:dcache_misses minimum:500 name:DATA_CACHE_MISSES : Data Cache Misses event:0x042 counters:0,1,2,3 um:dcache_refills minimum:500 name:DATA_CACHE_REFILLS_FROM_L2_OR_NORTHBRIDGE : Data Cache Refills from L2 or System event:0x043 counters:0,1,2,3 um:zero minimum:500 name:DATA_CACHE_REFILLS_FROM_NORTHBRIDGE : Data Cache Refills from System # CYCLE event:0x076 counters:0,1,2,3 um:zero minimum:50000 name:CPU_CLK_UNHALTED : CPU Clocks not Halted # INSTRUCTION CACHE event:0x080 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_CACHE_FETCHES : Instruction Cache Fetches event:0x081 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_CACHE_MISSES : Instruction Cache Misses event:0x082 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_CACHE_REFILLS_FROM_L2 : Instruction Cache Refills from L2 event:0x083 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_CACHE_REFILLS_FROM_SYSTEM : Instruction Cache Refills from System # INSTRUCTIONS event:0x0c0 counters:0,1,2,3 um:zero minimum:50000 name:RETIRED_INSTRUCTIONS : Retired Instructions event:0x0c1 counters:0,1,2,3 um:zero minimum:50000 name:RETIRED_UOPS : Retired uops event:0x0c2 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_BRANCH_INSTRUCTIONS : Retired Branch Instructions event:0x0c3 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_MISPREDICTED_BRANCH_INSTRUCTIONS : Retired Mispredicted Branch Instructions event:0x0c4 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_TAKEN_BRANCH_INSTRUCTIONS : Retired Taken Branch Instructions event:0x0c5 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_TAKEN_BRANCH_INSTRUCTIONS_MISPREDICTED : Retired Taken Branch Instructions Mispredicted event:0x0ca counters:0,1,2,3 um:zero minimum:500 name:RETIRED_INDIRECT_BRANCHES_MISPREDICTED : Retired Indirect Branches Mispredicted oprofile-0.9.9/events/x86-64/generic/unit_masks0000664000076400007640000000153712175510133016203 00000000000000# AMD Generic processor performance events # # Copyright OProfile authors # Copyright (c) 2006-2013 Advanced Micro Devices # Contributed by Ray Bryant , # Jason Yeh # Suravee Suthikulpanit # Paul Drongowski # # Sources: BIOS and Kernel Developer's Guide for AMD processors, # # Revision: 1.0 # # ChangeLog: # 1.0: 07 Feb 2013 # - Preliminary version name:zero type:mandatory default:0x00 0x00 No unit mask name:dcache_misses type:bitmask default:0x01 0x01 First data cache miss or streaming store to a 64B cache line 0x02 First streaming store to a 64B cache line name:dcache_refills type:bitmask default:0x0b 0x01 Fill with good data. (Final valid status is valid) 0x02 Early valid status turned out to be invalid 0x08 Fill with read data error oprofile-0.9.9/events/x86-64/family10/0000775000076400007640000000000012175511557014176 500000000000000oprofile-0.9.9/events/x86-64/family10/events0000664000076400007640000005463612175510133015350 00000000000000# AMD Family 10 processor performance events # # Copyright OProfile authors # Copyright (c) 2006-2008 Advanced Micro Devices # Contributed by Ray Bryant , # Jason Yeh # Suravee Suthikulpanit # # Sources: BIOS and Kernel Developer's Guide for AMD Family 10h Processors, # Publication# 31116, Revision 3.48, April 22, 2010 # # Software Optimization Guide for AMD Family 10h and Family 12h Processors, # Publication# 40546, Revision 3.13, February 2011 # (Note: For IBS Derived Performance Events) # # Revision: 1.4 # # ChangeLog: # 1.4: 11 March 2011 # - Update to BKDG revision 3.48 # - Fix typo in the description for event 0xf244 # - Update the minimum for RETIRED_UOPS # - Add event 0x68, 0x69 # # 1.3: 22 October 2009. # - Update from BKDG Rev 3.28 to Rev 3.34 (no change) # - Specify that event 4EDh is for Rev D only # # 1.2: 03 June 2009. # - Update from BKDG Rev 3.20 to Rev 3.28 # - Add Event 4EDh # - Modify unitmasks for 4E0h-4E3h # # 1.1: 06 April 2009. # - Add IBS-derived events # - Update from BKDG Rev 3.00 to Rev 3.20 # - Add Events 165h, 1c0h, 1cfh, 1d3h-1d5h # # Floating point events event:0x00 counters:0,1,2,3 um:fpu_ops minimum:500 name:DISPATCHED_FPU_OPS : Dispatched FPU ops event:0x01 counters:0,1,2,3 um:zero minimum:500 name:CYCLES_FPU_EMPTY : The number of cycles in which the PFU is empty event:0x02 counters:0,1,2,3 um:zero minimum:500 name:DISPATCHED_FPU_OPS_FAST_FLAG : The number of FPU operations that use the fast flag interface event:0x03 counters:0,1,2,3 um:sse_ops minimum:500 name:RETIRED_SSE_OPS : The number of SSE ops or uops retired event:0x04 counters:0,1,2,3 um:move_ops minimum:500 name:RETIRED_MOVE_OPS : The number of move uops retired event:0x05 counters:0,1,2,3 um:serial_ops minimum:500 name:RETIRED_SERIALIZING_OPS : The number of serializing uops retired. event:0x06 counters:0,1,2,3 um:serial_ops_sched minimum:500 name:SERIAL_UOPS_IN_FP_SCHED : Number of cycles a serializing uop is in the FP scheduler # Load, Store, and TLB events event:0x20 counters:0,1,2,3 um:segregload minimum:500 name:SEGMENT_REGISTER_LOADS : Segment register loads event:0x21 counters:0,1,2,3 um:zero minimum:500 name:PIPELINE_RESTART_DUE_TO_SELF_MODIFYING_CODE : Micro-architectural re-sync caused by self modifying code event:0x22 counters:0,1,2,3 um:zero minimum:500 name:PIPELINE_RESTART_DUE_TO_PROBE_HIT : Micro-architectural re-sync caused by snoop event:0x23 counters:0,1,2,3 um:zero minimum:500 name:LS_BUFFER_2_FULL_CYCLES : Cycles LS Buffer 2 Full event:0x24 counters:0,1,2,3 um:lock_ops minimum:500 name:LOCKED_OPS : Locked operations event:0x26 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_CLFLUSH_INSTRUCTIONS : Retired CLFLUSH instructions event:0x27 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_CPUID_INSTRUCTIONS : Retired CPUID instructions event:0x2a counters:0,1,2,3 um:store_to_load minimum:500 name:CANCELLED_STORE_TO_LOAD : Counts the number of cancelled store to load forward operations event:0x2b counters:0,1,2,3 um:zero minimum:500 name:SMIS_RECEIVED : Counts the number of SMIs received by the processor # Data Cache event event:0x40 counters:0,1,2,3 um:zero minimum:500 name:DATA_CACHE_ACCESSES : Data cache accesses event:0x41 counters:0,1,2,3 um:zero minimum:500 name:DATA_CACHE_MISSES : Data cache misses # Note: unit mask 0x01 counts same events as event select 0x43 event:0x42 counters:0,1,2,3 um:moess minimum:500 name:DATA_CACHE_REFILLS_FROM_L2_OR_NORTHBRIDGE : Data cache refills from L2 or Northbridge event:0x43 counters:0,1,2,3 um:moesi minimum:500 name:DATA_CACHE_REFILLS_FROM_NORTHBRIDGE : Data cache refills from Northbridge event:0x44 counters:0,1,2,3 um:moesi_gh minimum:500 name:DATA_CACHE_LINES_EVICTED : Data cache lines evicted event:0x45 counters:0,1,2,3 um:l1_dtlb_miss_l2_hit minimum:500 name:L1_DTLB_MISS_AND_L2_DTLB_HIT : L1 DTLB miss and L2 DTLB hit event:0x46 counters:0,1,2,3 um:l1_l2_dtlb_miss minimum:500 name:L1_DTLB_AND_L2_DTLB_MISS : L1 DTLB and L2 DTLB miss event:0x47 counters:0,1,2,3 um:zero minimum:500 name:MISALIGNED_ACCESSES : Misaligned Accesses event:0x48 counters:0,1,2,3 um:zero minimum:500 name:MICRO_ARCH_LATE_CANCEL_ACCESS : Microarchitectural late cancel of an access event:0x49 counters:0,1,2,3 um:zero minimum:500 name:MICRO_ARCH_EARLY_CANCEL_ACCESS : Microarchitectural early cancel of an access event:0x4a counters:0,1,2,3 um:ecc minimum:500 name:1_BIT_ECC_ERRORS : Single-bit ECC errors recorded by scrubber event:0x4b counters:0,1,2,3 um:prefetch minimum:500 name:PREFETCH_INSTRUCTIONS_DISPATCHED : The number of prefetch instructions dispatched by the decoder event:0x4c counters:0,1,2,3 um:locked_instruction_dcache_miss minimum:500 name:LOCKED_INSTRUCTIONS_DCACHE_MISSES : The number of dta cache misses by locked instructions. event:0x4d counters:0,1,2,3 um:l1_dtlb_hit minimum:500 name:L1_DTLB_HIT : L1 DTLB hit event:0x52 counters:0,1,2,3 um:soft_prefetch minimum:500 name:INEFFECTIVE_SW_PREFETCHES : Number of software prefetches that did not fetch data outside of processor core event:0x54 counters:0,1,2,3 um:zero minimum:500 name:GLOBAL_TLB_FLUSHES : The number of global TLB flushes # L2 Cache and System Interface events event:0x65 counters:0,1,2,3 um:memreqtype minimum:500 name:MEMORY_REQUESTS : Memory requests by type event:0x67 counters:0,1,2,3 um:dataprefetch minimum:500 name:DATA_PREFETCHES : Data prefetcher event:0x068 counters:0,1,2,3 um:mab_buffer minimum:500 name:MAB_REQS : MAB Requests event:0x069 counters:0,1,2,3 um:mab_buffer minimum:500 name:MAB_WAIT : MAB Wait Cycles event:0x6c counters:0,1,2,3 um:systemreadresponse minimum:500 name:NORTHBRIDGE_READ_RESPONSES : Northbridge read responses by coherency state event:0x6d counters:0,1,2,3 um:octword_transfer minimum:500 name:OCTWORD_WRITE_TRANSFERS : Octwords written to system event:0x76 counters:0,1,2,3 um:zero minimum:50000 name:CPU_CLK_UNHALTED : Cycles outside of halt state event:0x7d counters:0,1,2,3 um:l2_internal minimum:500 name:REQUESTS_TO_L2 : Requests to L2 Cache event:0x7e counters:0,1,2,3 um:l2_req_miss minimum:500 name:L2_CACHE_MISS : L2 cache misses event:0x7f counters:0,1,2,3 um:l2_fill minimum:500 name:L2_CACHE_FILL_WRITEBACK : L2 fill/writeback event:0x165 counters:0,1,2,3 um:page_size_mismatches minimum:500 name:PAGE_SIZE_MISMATCHES : Page Size Mismatches # Instruction Cache events event:0x80 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_CACHE_FETCHES : Instruction cache fetches (RevE) event:0x81 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_CACHE_MISSES : Instruction cache misses event:0x82 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_CACHE_REFILLS_FROM_L2 : Instruction cache refills from L2 event:0x83 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_CACHE_REFILLS_FROM_SYSTEM : Instruction cache refills from system event:0x84 counters:0,1,2,3 um:zero minimum:500 name:L1_ITLB_MISS_AND_L2_ITLB_HIT : L1 ITLB miss and L2 ITLB hit event:0x85 counters:0,1,2,3 um:l1_l2_itlb_miss minimum:500 name:L1_ITLB_MISS_AND_L2_ITLB_MISS : L1 ITLB miss and L2 ITLB miss event:0x86 counters:0,1,2,3 um:zero minimum:500 name:PIPELINE_RESTART_DUE_TO_INSTRUCTION_STREAM_PROBE : Pipeline restart due to instruction stream probe event:0x87 counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_FETCH_STALL : Instruction fetch stall event:0x88 counters:0,1,2,3 um:zero minimum:500 name:RETURN_STACK_HITS : Return stack hit event:0x89 counters:0,1,2,3 um:zero minimum:500 name:RETURN_STACK_OVERFLOWS : Return stack overflow event:0x8b counters:0,1,2,3 um:zero minimum:500 name:INSTRUCTION_CACHE_VICTIMS : Number of instruction cache lines evicticed to the L2 cache event:0x8c counters:0,1,2,3 um:icache_invalidated minimum:500 name:INSTRUCTION_CACHE_INVALIDATED : Instruction cache lines invalidated event:0x99 counters:0,1,2,3 um:zero minimum:500 name:ITLB_RELOADS : The number of ITLB reloads requests event:0x9a counters:0,1,2,3 um:zero minimum:500 name:ITLB_RELOADS_ABORTED : The number of ITLB reloads aborted # Execution Unit events event:0xc0 counters:0,1,2,3 um:zero minimum:50000 name:RETIRED_INSTRUCTIONS : Retired instructions (includes exceptions, interrupts, re-syncs) event:0xc1 counters:0,1,2,3 um:zero minimum:50000 name:RETIRED_UOPS : Retired micro-ops event:0xc2 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_BRANCH_INSTRUCTIONS : Retired branches (conditional, unconditional, exceptions, interrupts) event:0xc3 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_MISPREDICTED_BRANCH_INSTRUCTIONS : Retired mispredicted branch instructions event:0xc4 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_TAKEN_BRANCH_INSTRUCTIONS : Retired taken branch instructions event:0xc5 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_TAKEN_BRANCH_INSTRUCTIONS_MISPREDICTED : Retired taken branches mispredicted event:0xc6 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_FAR_CONTROL_TRANSFERS : Retired far control transfers event:0xc7 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_BRANCH_RESYNCS : Retired branches resyncs (only non-control transfer branches) event:0xc8 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_NEAR_RETURNS : Retired near returns event:0xc9 counters:0,1,2,3 um:zero minimum:500 name:RETIRED_NEAR_RETURNS_MISPREDICTED : Retired near returns mispredicted event:0xca counters:0,1,2,3 um:zero minimum:500 name:RETIRED_INDIRECT_BRANCHES_MISPREDICTED : Retired indirect branches mispredicted event:0xcb counters:0,1,2,3 um:fpu_instr minimum:500 name:RETIRED_MMX_FP_INSTRUCTIONS : Retired MMX/FP instructions event:0xcc counters:0,1,2,3 um:fpu_fastpath minimum:500 name:RETIRED_FASTPATH_DOUBLE_OP_INSTRUCTIONS : Retired FastPath double-op instructions event:0xcd counters:0,1,2,3 um:zero minimum:500 name:INTERRUPTS_MASKED_CYCLES : Cycles with interrupts masked (IF=0) event:0xce counters:0,1,2,3 um:zero minimum:500 name:INTERRUPTS_MASKED_CYCLES_WITH_INTERRUPT_PENDING : Cycles with interrupts masked while interrupt pending event:0xcf counters:0,1,2,3 um:zero minimum:500 name:INTERRUPTS_TAKEN : Number of taken hardware interrupts event:0xd0 counters:0,1,2,3 um:zero minimum:500 name:DECODER_EMPTY : Nothing to dispatch (decoder empty) event:0xd1 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALLS : Dispatch stalls event:0xd2 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_BRANCH_ABORT : Dispatch stall from branch abort to retire event:0xd3 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_SERIALIZATION : Dispatch stall for serialization event:0xd4 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_SEGMENT_LOAD : Dispatch stall for segment load event:0xd5 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_REORDER_BUFFER_FULL : Dispatch stall for reorder buffer full event:0xd6 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_RESERVATION_STATION_FULL : Dispatch stall when reservation stations are full event:0xd7 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_FPU_FULL : Dispatch stall when FPU is full event:0xd8 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_LS_FULL : Dispatch stall when LS is full event:0xd9 counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_WAITING_FOR_ALL_QUIET : Dispatch stall when waiting for all to be quiet event:0xda counters:0,1,2,3 um:zero minimum:500 name:DISPATCH_STALL_FOR_FAR_TRANSFER_OR_RESYNC : Dispatch Stall for Far Transfer or Resync to Retire event:0xdb counters:0,1,2,3 um:fpu_exceptions minimum:500 name:FPU_EXCEPTIONS : FPU exceptions event:0xdc counters:0,1,2,3 um:zero minimum:500 name:DR0_BREAKPOINTS : The number of matches on the address in breakpoint register DR0 event:0xdd counters:0,1,2,3 um:zero minimum:500 name:DR1_BREAKPOINTS : The number of matches on the address in breakpoint register DR1 event:0xde counters:0,1,2,3 um:zero minimum:500 name:DR2_BREAKPOINTS : The number of matches on the address in breakpoint register DR2 event:0xdf counters:0,1,2,3 um:zero minimum:500 name:DR3_BREAKPOINTS : The number of matches on the address in breakpoint register DR3 event:0x1c0 counters:0,1,2,3 um:retired_x87_fp minimum:500 name:RETIRED_X87_FLOATING_POINT_OPERATIONS : Retired x87 Floating Point Operations (RevC and later) event:0x1cf counters:0,1,2,3 um:zero minimum:500000 name:IBS_OPS_TAGGED : IBS Ops Tagged (RevC and later) event:0x1d3 counters:0,1,2,3 um:zero minimum:500 name:LFENCE_INSTRUCTIONS_RETIRED : LFENCE Instructions Retired (RevC and later) event:0x1d4 counters:0,1,2,3 um:zero minimum:500 name:SFENCE_INSTRUCTIONS_RETIRED : SFENCE Instructions Retired (RevC and later) event:0x1d5 counters:0,1,2,3 um:zero minimum:500 name:MFENCE_INSTRUCTIONS_RETIRED : MFENCE Instructions Retired (RevC and later) # Memory Controler events event:0xe0 counters:0,1,2,3 um:page_access minimum:500 name:DRAM_ACCESSES : DRAM accesses event:0xe1 counters:0,1,2,3 um:mem_page_overflow minimum:500 name:MEMORY_CONTROLLER_PAGE_TABLE_OVERFLOWS : Memory controller page table overflows event:0xe2 counters:0,1,2,3 um:slot_missed minimum:500 name:MEMORY_CONTROLLER_SLOT_MISSED : Memory controller DRAM command slots missed event:0xe3 counters:0,1,2,3 um:turnaround minimum:500 name:MEMORY_CONTROLLER_TURNAROUNDS : Memory controller turnarounds event:0xe4 counters:0,1,2,3 um:saturation minimum:500 name:MEMORY_CONTROLLER_BYPASS_COUNTER_SATURATION : Memory controller bypass saturation event:0xe8 counters:0,1,2,3 um:thermal_status minimum:500 name:THERMAL_STATUS : Thermal status event:0xe9 counters:0,1,2,3 um:cpiorequests minimum:500 name:CPU_IO_REQUESTS_TO_MEMORY_IO : CPU/IO Requests to Memory/IO event:0xea counters:0,1,2,3 um:cacheblock minimum:500 name:CACHE_BLOCK_COMMANDS : Cache block commands event:0xeb counters:0,1,2,3 um:sizecmds minimum:500 name:SIZED_COMMANDS : Sized commands event:0xec counters:0,1,2,3 um:probe minimum:500 name:PROBE_RESPONSES_AND_UPSTREAM_REQUESTS : Probe responses and upstream requests event:0xee counters:0,1,2,3 um:gart minimum:500 name:GART_EVENTS : GART events event:0x1f0 counters:0,1,2,3 um:mem_control_request minimum:500 name:MEMORY_CONTROLLER_REQUESTS : Sized read/write activity. # Crossbar events event:0x1e0 counters:0,1,2,3 um:cpu_dram_req minimum:500 name:CPU_DRAM_REQUEST_TO_NODE : CPU to DRAM requests to target node event:0x1e1 counters:0,1,2,3 um:io_dram_req minimum:500 name:IO_DRAM_REQUEST_TO_NODE : IO to DRAM requests to target node event:0x1e2 counters:0,1,2,3 um:cpu_read_lat_0_3 minimum:500 name:CPU_READ_COMMAND_LATENCY_NODE_0_3 : Latency between the local node and remote node event:0x1e3 counters:0,1,2,3 um:cpu_read_lat_0_3 minimum:500 name:CPU_READ_COMMAND_REQUEST_NODE_0_3 : Number of requests that a latency measurement is made for Event 0x1E2 event:0x1e4 counters:0,1,2,3 um:cpu_read_lat_4_7 minimum:500 name:CPU_READ_COMMAND_LATENCY_NODE_4_7 : Latency between the local node and remote node event:0x1e5 counters:0,1,2,3 um:cpu_read_lat_4_7 minimum:500 name:CPU_READ_COMMAND_REQUEST_NODE_4_7 : Number of requests that a latency measurement is made for Event 0x1E2 event:0x1e6 counters:0,1,2,3 um:cpu_comm_lat minimum:500 name:CPU_COMMAND_LATENCY_TARGET : Determine latency between the local node and a remote node. event:0x1e7 counters:0,1,2,3 um:cpu_comm_lat minimum:500 name:CPU_REQUEST_TARGET : Number of requests that a latency measurement is made for Event 0x1E6 # Link events event:0xf6 counters:0,1,2,3 um:httransmit minimum:500 name:HYPERTRANSPORT_LINK0_TRANSMIT_BANDWIDTH : HyperTransport(tm) link 0 transmit bandwidth event:0xf7 counters:0,1,2,3 um:httransmit minimum:500 name:HYPERTRANSPORT_LINK1_TRANSMIT_BANDWIDTH : HyperTransport(tm) link 1 transmit bandwidth event:0xf8 counters:0,1,2,3 um:httransmit minimum:500 name:HYPERTRANSPORT_LINK2_TRANSMIT_BANDWIDTH : HyperTransport(tm) link 2 transmit bandwidth event:0x1f9 counters:0,1,2,3 um:httransmit minimum:500 name:HYPERTRANSPORT_LINK3_TRANSMIT_BANDWIDTH : HyperTransport(tm) link 3 transmit bandwidth # L3 Cache events event:0x4e0 counters:0,1,2,3 um:l3_cache minimum:500 name:READ_REQUEST_L3_CACHE : Number of read requests from each core to L3 cache event:0x4e1 counters:0,1,2,3 um:l3_cache minimum:500 name:L3_CACHE_MISSES : Number of L3 cache misses from each core event:0x4e2 counters:0,1,2,3 um:l3_fill minimum:500 name:L3_FILLS_CAUSED_BY_L2_EVICTIONS : Number of L3 fills caused by L2 evictions per core event:0x4e3 counters:0,1,2,3 um:l3_evict minimum:500 name:L3_EVICTIONS : Number of L3 cache line evictions by cache state event:0x4ed counters:0,1,2,3 um:non_cancelled_l3_read_requests minimum:500 name:NON_CANCELLED_L3_READ_REQUESTS : Non-cancelled L3 Read Requests (Rev D) ############################### # IBS FETCH EVENTS ############################### event:0xf000 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_ALL : All IBS fetch samples event:0xf001 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_KILLED : IBS fetch killed event:0xf002 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_ATTEMPTED : IBS fetch attempted event:0xf003 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_COMPLETED : IBS fetch completed event:0xf004 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_ABORTED : IBS fetch aborted event:0xf005 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_ITLB_HITS : IBS ITLB hit event:0xf006 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_L1_ITLB_MISSES_L2_ITLB_HITS : IBS L1 ITLB misses (and L2 ITLB hits) event:0xf007 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_L1_ITLB_MISSES_L2_ITLB_MISSES : IBS L1 L2 ITLB miss event:0xf008 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_ICACHE_MISSES : IBS Instruction cache misses event:0xf009 ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_ICACHE_HITS : IBS Instruction cache hit event:0xf00A ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_4K_PAGE : IBS 4K page translation event:0xf00B ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_2M_PAGE : IBS 2M page translation # event:0xf00E ext:ibs_fetch um:zero minimum:50000 name:IBS_FETCH_LATENCY : IBS fetch latency ############################### # IBS OP EVENTS ############################### event:0xf100 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_ALL : All IBS op samples event:0xf101 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_TAG_TO_RETIRE : IBS tag-to-retire cycles event:0xf102 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_COMP_TO_RET : IBS completion-to-retire cycles event:0xf103 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_BRANCH_RETIRED : IBS branch op event:0xf104 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_MISPREDICTED_BRANCH : IBS mispredicted branch op event:0xf105 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_TAKEN_BRANCH : IBS taken branch op event:0xf106 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_MISPREDICTED_BRANCH_TAKEN : IBS mispredicted taken branch op event:0xf107 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_RETURNS : IBS return op event:0xf108 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_MISPREDICTED_RETURNS : IBS mispredicted return op event:0xf109 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_RESYNC : IBS resync op event:0xf200 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_ALL_LOAD_STORE : IBS all load store ops event:0xf201 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_LOAD : IBS load ops event:0xf202 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_STORE : IBS store ops event:0xf203 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L1_DTLB_HITS : IBS L1 DTLB hit event:0xf204 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L1_DTLB_MISS_L2_DTLB_HIT : IBS L1 DTLB misses L2 hits event:0xf205 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L1_L2_DTLB_MISS : IBS L1 and L2 DTLB misses event:0xf206 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_DATA_CACHE_MISS : IBS data cache misses event:0xf207 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_DATA_HITS : IBS data cache hits event:0xf208 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_MISALIGNED_DATA_ACC : IBS misaligned data access event:0xf209 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_BANK_CONF_LOAD : IBS bank conflict on load op event:0xf20A ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_BANK_CONF_STORE : IBS bank conflict on store op event:0xf20B ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_FORWARD : IBS store-to-load forwarded event:0xf20C ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_CANCELLED : IBS store-to-load cancelled event:0xf20D ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_DCUC_MEM_ACC : IBS UC memory access event:0xf20E ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_DCWC_MEM_ACC : IBS WC memory access event:0xf20F ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_LOCKED : IBS locked operation event:0xf210 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_MAB_HIT : IBS MAB hit event:0xf211 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L1_DTLB_4K : IBS L1 DTLB 4K page event:0xf212 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L1_DTLB_2M : IBS L1 DTLB 2M page event:0xf213 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L1_DTLB_1G : IBS L1 DTLB 1G page event:0xf215 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L2_DTLB_4K : IBS L2 DTLB 4K page event:0xf216 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L2_DTLB_2M : IBS L2 DTLB 2M page event:0xf217 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_L2_DTLB_1G : IBS L2 DTLB 1G page event:0xf219 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_DC_LOAD_LAT : IBS data cache miss load latency event:0xf240 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_LOCAL_ONLY : IBS northbridge local event:0xf241 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_REMOTE_ONLY : IBS northbridge remote event:0xf242 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_LOCAL_L3 : IBS northbridge local L3 event:0xf243 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_LOCAL_CACHE : IBS northbridge local core L1 or L2 cache event:0xf244 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_REMOTE_CACHE : IBS northbridge remote core L1, L2, L3 cache event:0xf245 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_LOCAL_DRAM : IBS northbridge local DRAM event:0xf246 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_REMOTE_DRAM : IBS northbridge remote DRAM event:0xf247 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_LOCAL_OTHER : IBS northbridge local APIC MMIO Config PCI event:0xf248 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_REMOTE_OTHER : IBS northbridge remote APIC MMIO Config PCI event:0xf249 ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_CACHE_MODIFIED : IBS northbridge cache modified state event:0xf24A ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_CACHE_OWNED : IBS northbridge cache owned state event:0xf24B ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_LOCAL_CACHE_LAT : IBS northbridge local cache latency event:0xf24C ext:ibs_op um:ibs_op minimum:50000 name:IBS_OP_NB_REMOTE_CACHE_LAT : IBS northbridge remote cache latency oprofile-0.9.9/events/x86-64/family10/unit_masks0000664000076400007640000003232312175510133016206 00000000000000# AMD Family 10 processor unit masks # # Copyright OProfile authors # Copyright (c) 2006-2008 Advanced Micro Devices # Contributed by Ray Bryant , # Jason Yeh # Suravee Suthikulpanit # # Sources: BIOS and Kernel Developer's Guide for AMD Family 10h Processors, # Publication# 31116, Revision 3.48, April 22, 2010 # # Software Optimization Guide for AMD Family 10h and Family 12h Processors, # Publication# 40546, Revision 3.13, February 2011 # (Note: For IBS Derived Performance Events) # # Revision: 1.4 # # ChangeLog: # 1.4: 11 March 2011 # - Update to BKDG revision 3.48 # - Fix typo in the description for event 0xf244 # - Update the minimum for RETIRED_UOPS # - Add event 0x68, 0x69 # # 1.3: 22 October 2009. # - Update from BKDG Rev 3.28 to Rev 3.34 (no change) # - Modify unitmasks l3_evict # # 1.2: 03 June 2009. # - Update from BKDG Rev 3.20 to Rev 3.28 # - Add Event 4EDh # - Modify unitmasks for 4E0h-4E3h # # 1.1: 06 April 2009. # - Add IBS-derived events # - Update from BKDG Rev 3.00 to Rev 3.20 # - Add Events 165h, 1c0h, 1cfh, 1d3h-1d5h # name:zero type:mandatory default:0x0 0x0 No unit mask name:moesi type:bitmask default:0x1f 0x01 (I)nvalid cache state 0x02 (S)hared cache state 0x04 (E)xclusive cache state 0x08 (O)wner cache state 0x10 (M)odified cache state 0x1f All cache states name:moess type:bitmask default:0x1e 0x01 Refill from northbridge 0x02 Shared-state line from L2 0x04 Exclusive-state line from L2 0x08 Owner-state line from L2 0x10 Modified-state line from L2 0x1e All cache states except refill from northbridge name:fpu_ops type:bitmask default:0x3f 0x01 Add pipe ops excluding load ops and SSE move ops 0x02 Multiply pipe ops excluding load ops and SSE move ops 0x04 Store pipe ops excluding load ops and SSE move ops 0x08 Add pipe load ops and SSE move ops 0x10 Multiply pipe load ops and SSE move ops 0x20 Store pipe load ops and SSE move ops 0x3f All ops name:segregload type:bitmask default:0x7f 0x01 ES register 0x02 CS register 0x04 SS register 0x08 DS register 0x10 FS register 0x20 GS register 0x40 HS register name:fpu_instr type:bitmask default:0x07 0x01 x87 instructions 0x02 MMX & 3DNow instructions 0x04 SSE instructions (SSE, SSE2, SSE3, and SSE4A) name:fpu_fastpath type:bitmask default:0x07 0x01 With low op in position 0 0x02 With low op in position 1 0x04 With low op in position 2 name:fpu_exceptions type:bitmask default:0x0f 0x01 x87 reclass microfaults 0x02 SSE retype microfaults 0x04 SSE reclass microfaults 0x08 SSE and x87 microtraps name:page_access type:bitmask default:0x3f 0x01 DCT0 Page hit 0x02 DCT0 Page miss 0x04 DCT0 Page conflict 0x08 DCT1 Page hit 0x10 DCT1 Page miss 0x20 DCT1 Page Conflict name:mem_page_overflow type:bitmask default:0x03 0x01 DCT0 Page Table Overflow 0x02 DCT1 Page Table Overflow name:turnaround type:bitmask default:0x3f 0x01 DCT0 DIMM (chip select) turnaround 0x02 DCT0 Read to write turnaround 0x04 DCT0 Write to read turnaround 0x08 DCT1 DIMM (chip select) turnaround 0x10 DCT1 Read to write turnaround 0x20 DCT1 Write to read turnaround name:saturation type:bitmask default:0x0f 0x01 Memory controller high priority bypass 0x02 Memory controller medium priority bypass 0x04 DCT0 DCQ bypass 0x08 DCT1 DCQ bypass name:slot_missed type:bitmask default:0x03 0x01 DCT0 Command slots missed 0x02 DCT2 Command slots missed name:sizecmds type:bitmask default:0x3f 0x01 Non-posted write byte (1-32 bytes) 0x02 Non-posted write DWORD (1-16 DWORDs) 0x04 Posted write byte (1-32 bytes) 0x08 Posted write DWORD (1-16 DWORDs) 0x10 Read byte (4 bytes) 0x20 Read DWORD (1-16 DWORDs) name:probe type:bitmask default:0xff 0x01 Probe miss 0x02 Probe hit clean 0x04 Probe hit dirty without memory cancel 0x08 Probe hit dirty with memory cancel 0x10 Upstream display refresh/ISOC reads 0x20 Upstream non-display refresh reads 0x40 Upstream ISOC writes 0x80 Upstream non-ISOC writes name:l2_internal type:bitmask default:0x3f 0x01 IC fill 0x02 DC fill 0x04 TLB fill (page table walks) 0x08 Tag snoop request 0x10 Canceled request 0x20 Hardware prefetch from data cache name:l2_req_miss type:bitmask default:0x0f 0x01 IC fill 0x02 DC fill (includes possible replays) 0x04 TLB page table walk 0x08 Hardware prefetch from data cache name:l2_fill type:bitmask default:0x03 0x01 L2 fills (victims from L1 caches, TLB page table walks and data prefetches) 0x02 L2 writebacks to system name:gart type:bitmask default:0xff 0x01 GART aperture hit on access from CPU 0x02 GART aperture hit on access from I/O 0x04 GART miss 0x08 GART/DEV request hit table walk in progress 0x10 DEV hit 0x20 DEV miss 0x40 DEV error 0x80 GART/DEV multiple table walk in progress name:cpiorequests type:bitmask default:0xa2 0xa1 Requests Local I/O to Local I/O 0xa2 Requests Local I/O to Local Memory 0xa3 Requests Local I/O to Local (I/O or Mem) 0xa4 Requests Local CPU to Local I/O 0xa5 Requests Local (CPU or I/O) to Local I/O 0xa8 Requests Local CPU to Local Memory 0xaa Requests Local (CPU or I/O) to Local Memory 0xac Requests Local CPU to Local (I/O or Mem) 0xaf Requests Local (CPU or I/O) to Local (I/O or Mem) 0x91 Requests Local I/O to Remote I/O 0x92 Requests Local I/O to Remote Memory 0x93 Requests Local I/O to Remote (I/O or Mem) 0x94 Requests Local CPU to Remote I/O 0x95 Requests Local (CPU or I/O) to Remote I/O 0x98 Requests Local CPU to Remote Memory 0x9a Requests Local (CPU or I/O) to Remote Memory 0x9c Requests Local CPU to Remote (I/O or Mem) 0x9f Requests Local (CPU or I/O) to Remote (I/O or Mem) 0xb1 Requests Local I/O to Any I/O 0xb2 Requests Local I/O to Any Memory 0xb3 Requests Local I/O to Any (I/O or Mem) 0xb4 Requests Local CPU to Any I/O 0xb5 Requests Local (CPU or I/O) to Any I/O 0xb8 Requests Local CPU to Any Memory 0xba Requests Local (CPU or I/O) to Any Memory 0xbc Requests Local CPU to Any (I/O or Mem) 0xbf Requests Local (CPU or I/O) to Any (I/O or Mem) 0x61 Requests Remote I/O to Local I/O 0x64 Requests Remote CPU to Local I/O 0x65 Requests Remote (CPU or I/O) to Local I/O name:cacheblock type:bitmask default:0x3d 0x01 Victim Block (Writeback) 0x04 Read Block (Dcache load miss refill) 0x08 Read Block Shared (Icache refill) 0x10 Read Block Modified (Dcache store miss refill) 0x20 Change-to-Dirty (first store to clean block already in cache) name:dataprefetch type:bitmask default:0x03 0x01 Cancelled prefetches 0x02 Prefetch attempts name:memreqtype type:bitmask default:0x83 0x01 Requests to non-cacheable (UC) memory 0x02 Requests to write-combining (WC) memory or WC buffer flushes to WB memory 0x80 Streaming store (SS) requests name:mab_buffer type:exclusive default:0x00 0x00 DC miss buffer 0 0x01 DC miss buffer 1 0x02 DC miss buffer 2 0x03 DC miss buffer 3 0x04 DC miss buffer 4 0x05 DC miss buffer 5 0x06 DC miss buffer 6 0x07 DC miss buffer 7 0x08 IC miss buffer 0 0x09 IC miss buffer 1 name:systemreadresponse type:bitmask default:0x1f 0x01 Exclusive 0x02 Modified 0x04 Shared 0x08 Owned 0x10 Data Error name:l1_dtlb_miss_l2_hit type:bitmask default:0x07 0x01 L2 4K TLB hit 0x02 L2 2M TLB hit 0x04 L2 1G TLB hit (RevC) name:l1_l2_dtlb_miss type:bitmask default:0x07 0x01 4K TLB reload 0x02 2M TLB reload 0x04 1G TLB reload name:ecc type:bitmask default:0x0f 0x01 Scrubber error 0x02 Piggyback scrubber errors 0x04 Load pipe error 0x08 Store write pip error name:prefetch type:bitmask default:0x07 0x01 Load (Prefetch, PrefetchT0/T1/T2) 0x02 Store (PrefetchW) 0x04 NTA (PrefetchNTA) name:locked_instruction_dcache_miss type:bitmask default:0x02 0x02 Data cache misses by locked instructions name:octword_transfer type:bitmask default:0x01 0x01 Octword write transfer name:thermal_status type:bitmask default:0x7c 0x04 Number of times the HTC trip point is crossed 0x08 Number of clocks when STC trip point active 0x10 Number of times the STC trip point is crossed 0x20 Number of clocks HTC P-state is inactive 0x40 Number of clocks HTC P-state is active name:mem_control_request type:bitmask default:0x78 0x01 Write requests 0x02 Read Requests including Prefetch 0x04 Prefetch Request 0x08 32 Bytes Sized Writes 0x10 64 Bytes Sized Writes 0x20 32 Bytes Sized Reads 0x40 64 Byte Sized Reads 0x80 Read requests sent to the DCT while write requests are pending in the DCQ name:httransmit type:bitmask default:0xbf 0x01 Command DWORD sent 0x02 Data DWORD sent 0x04 Buffer release DWORD sent 0x08 Nop DW sent (idle) 0x10 Address DWORD sent 0x20 Per packet CRC sent 0x80 SubLink Mask name:lock_ops type:bitmask default:0x0f 0x01 Number of locked instructions executed 0x02 Cycles in speculative phase 0x04 Cycles in non-speculative phase (including cache miss penalty) 0x08 Cache miss penalty in cycles name:sse_ops type:bitmask default:0x7f 0x01 Single Precision add/subtract ops 0x02 Single precision multiply ops 0x04 Single precision divide/square root ops 0x08 Double precision add/subtract ops 0x10 Double precision multiply ops 0x20 Double precision divide/square root ops 0x40 OP type: 0=uops 1=FLOPS name:move_ops type:bitmask default:0x0f 0x01 Merging low quadword move uops 0x02 Merging high quadword move uops 0x04 All other merging move uops 0x08 All other move uops name:serial_ops type:bitmask default:0x0f 0x01 SSE bottom-executing uops retired 0x02 SSE bottom-serializing uops retired 0x04 x87 bottom-executing uops retired 0x08 x87 bottom-serializing uops retired name:serial_ops_sched type:bitmask default:0x03 0x01 Number of cycles a bottom-execute uops in FP scheduler 0x02 Number of cycles a bottom-serializing uops in FP scheduler name:store_to_load type:bitmask default:0x07 0x01 Address mismatches (starting byte not the same) 0x02 Store is smaller than load 0x04 Misaligned name:moesi_gh type:bitmask default:0x1f 0x01 (I)nvalid cache state 0x02 (S)hared cache state 0x04 (E)xclusive cache state 0x08 (O)wner cache state 0x10 (M)odified cache state 0x20 Cache line evicted brought into the cache by PrefetchNTA 0x40 Cache line evicted not brought into the cache by PrefetchNTA name:l1_dtlb_hit type:bitmask default:0x07 0x01 L1 4K TLB hit 0x02 L1 2M TLB hit 0x04 L1 1G TLB hit name:soft_prefetch type:bitmask default:0x09 0x01 Software prefetch hit in L1 0x08 Software prefetch hit in L2 name:l1_l2_itlb_miss type:bitmask default:0x03 0x01 Instruction fetches to a 4K page 0x02 Instruction fetches to a 2M page name:cpu_dram_req type:bitmask default:0xff 0x01 From local node to node 0 0x02 From local node to node 1 0x04 From local node to node 2 0x08 From local node to node 3 0x10 From local node to node 4 0x20 From local node to node 5 0x40 From local node to node 6 0x80 From local node to node 7 name:io_dram_req type:bitmask default:0xff 0x01 From local node to node 0 0x02 From local node to node 1 0x04 From local node to node 2 0x08 From local node to node 3 0x10 From local node to node 4 0x20 From local node to node 5 0x40 From local node to node 6 0x80 From local node to node 7 name:cpu_read_lat_0_3 type:bitmask default:0xff 0x01 Read block 0x02 Read block shared 0x04 Read block modified 0x08 Change-to-Dirty 0x10 From local node to node 0 0x20 From local node to node 1 0x40 From local node to node 2 0x80 From local node to node 3 name:cpu_read_lat_4_7 type:bitmask default:0xff 0x01 Read block 0x02 Read block shared 0x04 Read block modified 0x08 Change-to-Dirty 0x10 From local node to node 4 0x20 From local node to node 5 0x40 From local node to node 6 0x80 From local node to node 7 name:cpu_comm_lat type:bitmask default:0xf7 0x01 Read sized 0x02 Write sized 0x04 Victim block 0x08 Node group select: 0=Nodes 0-3, 1=Nodes 4-7 0x10 From local node to node 0/4 0x20 From local node to node 1/5 0x40 From local node to node 2/6 0x80 From local node to node 3/7 name:l3_cache type:bitmask default:0xf7 0x01 Read block Exclusive (Data cache read) 0x02 Read block Shared (Instruciton cache read) 0x04 Read block Modify 0x10 Reserved (Must be selected) 0x20 Reserved (Must be selected) 0x40 Reserved (Must be selected) 0x80 Reserved (Must be selected) name:l3_fill type:bitmask default:0xff 0x01 Shared 0x02 Exclusive 0x04 Owned 0x08 Modified 0x10 Reserved (Must be selected) 0x20 Reserved (Must be selected) 0x40 Reserved (Must be selected) 0x80 Reserved (Must be selected) name:l3_evict type:bitmask default:0x0f 0x01 Shared 0x02 Exclusive 0x04 Owned 0x08 Modified name:icache_invalidated type:bitmask default:0x03 0x01 Invalidating probe that did not hit any in-flight instructions 0x02 Invalidating probe that hit one or more in-flight instructions name:page_size_mismatches type:bitmask default:0x07 0x01 Guest page size is larger than the host page size 0x02 MTRR mismatch 0x04 Host page size is larger than the guest page size name:retired_x87_fp type:bitmask default:0x07 0x01 Add/subtract ops 0x02 Multiply ops 0x04 Divide ops name:ibs_op type:bitmask default:0x01 0x00 Using IBS OP cycle count mode 0x01 Using IBS OP dispatch count mode 0x02 Enable IBS OP Memory Access Log name:non_cancelled_l3_read_requests type:bitmask default:0xf7 0x01 RbBlk 0x02 RbBlkS 0x04 RbBlkM 0x10 Reserved (Must be selected) 0x20 Reserved (Must be selected) 0x40 Reserved (Must be selected) 0x80 Reserved (Must be selected) oprofile-0.9.9/events/Makefile.am0000664000076400007640000001142112175510133013640 00000000000000event_files = \ alpha/ev4/events alpha/ev4/unit_masks \ alpha/ev5/events alpha/ev5/unit_masks \ alpha/ev67/events alpha/ev67/unit_masks \ alpha/ev6/events alpha/ev6/unit_masks \ alpha/pca56/events alpha/pca56/unit_masks \ i386/athlon/events i386/athlon/unit_masks \ i386/core_2/events i386/core_2/unit_masks \ i386/p4/events i386/p4-ht/events \ i386/p4-ht/unit_masks i386/p4/unit_masks \ i386/pii/events i386/pii/unit_masks \ i386/piii/events i386/piii/unit_masks \ i386/ppro/events i386/ppro/unit_masks \ i386/p6_mobile/events i386/p6_mobile/unit_masks \ i386/core/events i386/core/unit_masks \ i386/arch_perfmon/events i386/arch_perfmon/unit_masks \ i386/atom/events i386/atom/unit_masks \ i386/core_i7/events i386/core_i7/unit_masks \ i386/nehalem/events i386/nehalem/unit_masks \ i386/westmere/events i386/westmere/unit_masks \ i386/sandybridge/events i386/sandybridge/unit_masks \ i386/ivybridge/events i386/ivybridge/unit_masks \ i386/haswell/events i386/haswell/unit_masks \ ia64/ia64/events ia64/ia64/unit_masks \ ia64/itanium2/events ia64/itanium2/unit_masks \ ia64/itanium/events ia64/itanium/unit_masks \ ppc64/architected_events_v1/events ppc64/architected_events_v1/unit_masks \ ppc64/power4/events ppc64/power4/event_mappings ppc64/power4/unit_masks \ ppc64/power5/events ppc64/power5/event_mappings ppc64/power5/unit_masks \ ppc64/power5+/events ppc64/power5+/event_mappings ppc64/power5+/unit_masks \ ppc64/power5++/events ppc64/power5++/event_mappings ppc64/power5++/unit_masks \ ppc64/power6/events ppc64/power6/event_mappings ppc64/power6/unit_masks \ ppc64/power7/events ppc64/power7/event_mappings ppc64/power7/unit_masks \ ppc64/power8/events ppc64/power8/unit_masks \ ppc64/970/events ppc64/970/event_mappings ppc64/970/unit_masks \ ppc64/970MP/events ppc64/970MP/event_mappings ppc64/970MP/unit_masks \ ppc64/ibm-compat-v1/events ppc64/ibm-compat-v1/event_mappings ppc64/ibm-compat-v1/unit_masks \ ppc64/pa6t/events ppc64/pa6t/event_mappings ppc64/pa6t/unit_masks \ ppc64/cell-be/events ppc64/cell-be/unit_masks \ rtc/events rtc/unit_masks \ x86-64/hammer/events x86-64/hammer/unit_masks \ x86-64/family10/events x86-64/family10/unit_masks \ x86-64/family11h/events x86-64/family11h/unit_masks \ x86-64/family12h/events x86-64/family12h/unit_masks \ x86-64/family14h/events x86-64/family14h/unit_masks \ x86-64/family15h/events x86-64/family15h/unit_masks \ x86-64/generic/events x86-64/generic/unit_masks \ arm/xscale1/events arm/xscale1/unit_masks \ arm/xscale2/events arm/xscale2/unit_masks \ arm/armv6/events arm/armv6/unit_masks \ arm/armv7-common/events arm/armv7-common/unit_masks \ arm/armv7/events arm/armv7/unit_masks \ arm/armv7-scorpion/events arm/armv7-scorpion/unit_masks \ arm/armv7-scorpionmp/events arm/armv7-scorpionmp/unit_masks \ arm/armv7-ca9/events arm/armv7-ca9/unit_masks \ arm/armv7-ca5/events arm/armv7-ca5/unit_masks \ arm/armv7-ca7/events arm/armv7-ca7/unit_masks \ arm/armv7-ca15/events arm/armv7-ca15/unit_masks \ arm/mpcore/events arm/mpcore/unit_masks \ avr32/events avr32/unit_masks \ mips/20K/events mips/20K/unit_masks \ mips/24K/events mips/24K/unit_masks \ mips/25K/events mips/25K/unit_masks \ mips/34K/events mips/34K/unit_masks \ mips/5K/events mips/5K/unit_masks \ mips/rm7000/events mips/rm7000/unit_masks \ mips/rm9000/events mips/rm9000/unit_masks \ mips/sb1/events mips/sb1/unit_masks \ mips/r10000/events mips/r10000/unit_masks \ mips/r12000/events mips/r12000/unit_masks \ mips/vr5432/events mips/vr5432/unit_masks \ mips/vr5500/events mips/vr5500/unit_masks \ mips/loongson2/events mips/loongson2/unit_masks \ mips/1004K/events mips/1004K/unit_masks \ mips/74K/events mips/74K/unit_masks \ ppc/7450/events ppc/7450/unit_masks \ ppc/e500/events ppc/e500/unit_masks \ ppc/e500v2/events ppc/e500v2/unit_masks \ ppc/e300/events ppc/e300/unit_masks \ tile/tile64/events tile/tile64/unit_masks \ tile/tilepro/events tile/tilepro/unit_masks \ tile/tilegx/events tile/tilegx/unit_masks \ s390/z10/events s390/z10/unit_masks \ s390/z196/events s390/z196/unit_masks \ s390/zEC12/events s390/zEC12/unit_masks install-data-local: for i in ${event_files} ; do \ dir=`dirname $$i` ; \ mkdir -p $(DESTDIR)$(pkgdatadir)/$$dir ; \ $(INSTALL_DATA) $(top_srcdir)/events/$$i $(DESTDIR)$(pkgdatadir)/$$i ; \ done uninstall-local: for i in ${event_files} ; do \ dir=`dirname $$i` ; \ archdir=`dirname $$dir` ; \ if test -f $(DESTDIR)$(pkgdatadir)/$$i ; then \ rm $(DESTDIR)$(pkgdatadir)/$$i ; \ fi; \ if test -d $(DESTDIR)$(pkgdatadir)/$$dir ; then \ rmdir --ignore-fail-on-non-empty $(DESTDIR)$(pkgdatadir)/$$dir ; \ fi; \ if test $$archdir != "." -a -d $(DESTDIR)$(pkgdatadir)/$$archdir ; then \ rmdir --ignore-fail-on-non-empty $(DESTDIR)$(pkgdatadir)/$$archdir ; \ fi; \ done EXTRA_DIST = $(event_files) oprofile-0.9.9/Makefile.in0000664000076400007640000006055212175510235012361 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = . DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(top_srcdir)/configure $(top_srcdir)/doc/srcdoc/Doxyfile.in \ $(top_srcdir)/doc/xsl/catalog-1.xml.in COPYING TODO \ config.guess config.sub depcomp install-sh ltmain.sh missing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = doc/xsl/catalog-1.xml doc/srcdoc/Doxyfile CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir dist dist-all distcheck ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ { test ! -d "$(distdir)" \ || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr "$(distdir)"; }; } am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ #### ATTENTION #### # The agents directory must be kept as the last subdir SUBDIRS = \ . \ m4 \ libutil \ libop \ libopagent \ libdb \ libutil++ \ libopt++ \ libabi \ daemon \ utils \ libregex \ libpp \ opjitconv \ pp \ events \ doc \ gui \ libperf_events \ pe_profiling \ libpe_utils \ pe_counting \ agents #### ATTENTION #### # The agents directory must be kept as the last subdir ACLOCAL_AMFLAGS = -I m4 EXTRA_DIST = \ ChangeLog-2001 \ ChangeLog-2002 \ ChangeLog-2003 \ ChangeLog-2004 \ ChangeLog-2005 \ ChangeLog-2006 \ ChangeLog-2007 \ ChangeLog-2008 \ ChangeLog-2009 \ ChangeLog-2010 \ ChangeLog-2011 \ autogen.sh \ README_PACKAGERS \ include/sstream all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): config.h: stamp-h1 @if test ! -f $@; then \ rm -f stamp-h1; \ $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ else :; fi stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 doc/xsl/catalog-1.xml: $(top_builddir)/config.status $(top_srcdir)/doc/xsl/catalog-1.xml.in cd $(top_builddir) && $(SHELL) ./config.status $@ doc/srcdoc/Doxyfile: $(top_builddir)/config.status $(top_srcdir)/doc/srcdoc/Doxyfile.in cd $(top_builddir) && $(SHELL) ./config.status $@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool config.lt # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-lzma: distdir tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma $(am__remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lzma*) \ lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod u+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @$(am__cd) '$(distuninstallcheck_dir)' \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile config.h installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr \ distclean-libtool distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ ctags-recursive install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am am--refresh check check-am clean clean-generic \ clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \ dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \ distcheck distclean distclean-generic distclean-hdr \ distclean-libtool distclean-tags distcleancheck distdir \ distuninstallcheck dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags tags-recursive uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/pe_counting/0000775000076400007640000000000012175511560012700 500000000000000oprofile-0.9.9/pe_counting/ocount_counter.cpp0000664000076400007640000005113612175510133016373 00000000000000/** * @file ocount_counter.cpp * Functions and classes for ocount tool. * * @remark Copyright 2013 OProfile authors * @remark Read the file COPYING * * Created on: May 22, 2013 * @author Maynard Johnson * (C) Copyright IBM Corp. 2013 * */ #include #include #include #include #include #include #include #include #include #include #include #include "ocount_counter.h" #include "op_pe_utils.h" #include "operf_event.h" #include "cverb.h" extern verbose vdebug; extern bool use_cpu_minus_one; extern char * app_name; using namespace std; ocount_counter::ocount_counter(operf_event_t & evt, bool enable_on_exec, bool inherit) { memset(&attr, 0, sizeof(attr)); attr.size = sizeof(attr); attr.type = PERF_TYPE_RAW; attr.config = evt.evt_code; attr.inherit = inherit ? 1 : 0; attr.enable_on_exec = enable_on_exec ? 1 : 0; attr.disabled = attr.enable_on_exec; attr.exclude_idle = 0; attr.exclude_kernel = evt.no_kernel; attr.exclude_user = evt.no_user; attr.exclude_hv = evt.no_hv; // This format allows us to tell user percent of time an event was scheduled // when multiplexing has been done by the kernel. attr.read_format = PERF_FORMAT_TOTAL_TIME_ENABLED | PERF_FORMAT_TOTAL_TIME_RUNNING; event_name = evt.name; fd = cpu = pid = -1; } ocount_counter::~ocount_counter() { } #include int ocount_counter::perf_event_open(pid_t _pid, int _cpu) { fd = op_perf_event_open(&attr, _pid, _cpu, -1, 0); if (fd < 0) { int ret = -1; cverb << vdebug << "perf_event_open failed: " << strerror(errno) << endl; if (errno == EBUSY) { cerr << "The performance monitoring hardware reports EBUSY. Is another profiling tool in use?" << endl << "On some architectures, tools such as oprofile and perf being used in system-wide " << "mode can cause this problem." << endl; ret = OP_PERF_HANDLED_ERROR; } else if (errno == ESRCH) { cerr << "!!!! No samples collected !!!" << endl; cerr << "The target program/command ended before profiling was started." << endl; ret = OP_PERF_HANDLED_ERROR; } else { cerr << "perf_event_open failed with " << strerror(errno) << endl; } return ret; } pid = _pid; cpu = _cpu; cverb << vdebug << "perf_event_open returning fd " << fd << endl; return fd; } int ocount_counter::read_count_data(ocount_accum_t * count_data) { size_t len = 3 * sizeof(u64); char * buf = (char *)count_data; while (len) { int ret = read(fd, buf, len); if (ret <= 0) return ret; len -= ret; buf += ret; } return 0; } ocount_record::ocount_record(enum op_runmode _runmode, std::vector & _evts, bool _with_time_interval) { runmode = _runmode; with_time_interval = _with_time_interval; evts = _evts; valid = false; system_wide = false; tasks_are_threads = false; num_cpus = 0; app_pid = -1; } bool ocount_record::start_counting_app_process(pid_t _pid) { if (valid) { cerr << "ocount internal error: ocount_record already initialized" << endl; return false; } if (runmode != OP_START_APP) { cerr << "ocount internal error: Current run mode " << runmode << " is incompatible with " "starting app." << endl; return false; } app_pid = _pid; setup(); return true; } /* * There are separate ocount options for counting events for a set of processes ("--process-list") * or a set of threads ("--thread-list"). This function is used for passing the set of either * processes or threads to ocount_record, along with a boolean argument to indicate whether or not * the set of passed tasks are threads. If they are threads, we set up perf_event_open to NOT * do "inherit". */ bool ocount_record::start_counting_tasklist(std::vector _tasks, bool _are_threads) { if (valid) { cerr << "ocount internal error: ocount_record already initialized" << endl; return false; } tasks_are_threads = _are_threads; specified_tasks = _tasks; if (tasks_are_threads) { if (runmode != OP_THREADLIST) { cerr << "ocount internal error: Current run mode " << runmode << " is incompatible with " "--thread-list option." << endl; return false; } } else { if (runmode != OP_PROCLIST) { cerr << "ocount internal error: Current run mode " << runmode << " is incompatible with " "--process-list option." << endl; return false; } } setup(); if (tasks_to_count.empty()) { cerr << "No valid tasks to monitor -- quitting." << endl; return false; } return true; } bool ocount_record::start_counting_cpulist(std::vector _cpus) { if (valid) { cerr << "ocount internal error: ocount_record already initialized" << endl; return false; } if (runmode != OP_CPULIST) { cerr << "ocount internal error: Current run mode " << runmode << " is incompatible with " "--cpu-list option." << endl; return false; } specified_cpus = _cpus; setup(); return true; } bool ocount_record::start_counting_syswide(void) { if (valid) { cerr << "ocount internal error: ocount_record already initialized" << endl; return false; } if (runmode != OP_SYSWIDE) { cerr << "ocount internal error: Current run mode " << runmode << " is incompatible with " "--system-wide option." << endl; return false; } system_wide = true; setup(); return true; } int ocount_record::do_counting_per_task(void) { string err_msg; int rc = 0; for (set::iterator it = tasks_to_count.begin(); it != tasks_to_count.end(); it++) { pid_t the_pid = *it; bool inherit = are_tasks_processes(); cverb << vdebug << "calling perf_event_open for task " << the_pid << endl; for (unsigned event = 0; event < evts.size(); event++) { ocount_accum_t count_data = {0ULL, 0ULL, 0ULL}; accum_counts.push_back(count_data); prev_accum_counts.push_back(0ULL); ocount_counter op_ctr(ocount_counter(evts[event], false, inherit)); if ((rc = op_ctr.perf_event_open(the_pid, -1)) < 0) { err_msg = "Internal Error. Perf event setup failed."; goto out; } else { rc = 0; } perfCounters.push_back(op_ctr); } } out: if (rc && rc != OP_PERF_HANDLED_ERROR) throw runtime_error(err_msg); return rc; } int ocount_record::do_counting_per_cpu(void) { string err_msg; int rc = 0; /* We'll do this sanity check here, but we also do it at the front-end where user * args are being validated. If we wait until we get here, the invalid CPU argument * becomes an ugly thrown exception. */ set available_cpus = op_pe_utils::op_get_available_cpus(num_cpus); if (runmode == OP_CPULIST) { size_t k; for (k = 0; k < specified_cpus.size(); k++) { if (available_cpus.find(specified_cpus[k]) == available_cpus.end()) { ostringstream err_msg_ostr; err_msg_ostr << "Specified CPU " << specified_cpus[k] << " is not valid"; err_msg = err_msg_ostr.str(); rc = -1; goto out; } else { cpus_to_count.insert(specified_cpus[k]); } } } else { cpus_to_count = available_cpus; } for (set::iterator it = cpus_to_count.begin(); it != cpus_to_count.end(); it++) { int the_cpu = *it; cverb << vdebug << "calling perf_event_open for cpu " << the_cpu << endl; for (unsigned event = 0; event < evts.size(); event++) { ocount_accum_t count_data = {0ULL, 0ULL, 0ULL}; accum_counts.push_back(count_data); prev_accum_counts.push_back(0ULL); ocount_counter op_ctr(ocount_counter(evts[event], false, true)); if ((rc = op_ctr.perf_event_open(-1, the_cpu)) < 0) { err_msg = "Internal Error. Perf event setup failed."; goto out; } else { rc = 0; } perfCounters.push_back(op_ctr); } } out: if (rc && rc != OP_PERF_HANDLED_ERROR) throw runtime_error(err_msg); return rc; } void ocount_record::setup() { int rc = 0; string err_msg; if (!specified_tasks.empty()) { if ((rc = get_process_info(specified_tasks)) < 0) { if (rc == OP_PERF_HANDLED_ERROR) return; else throw runtime_error("Unexpected error in ocount_record setup"); } } /* To set up to count events for an existing thread group, we need call perf_event_open * for each thread, and we need to pass cpu=-1 on the syscall. */ use_cpu_minus_one = use_cpu_minus_one ? true : ((system_wide || (runmode == OP_CPULIST)) ? false : true); num_cpus = use_cpu_minus_one ? 1 : sysconf(_SC_NPROCESSORS_ONLN); if (num_cpus < 1) { char int_str[256]; sprintf(int_str, "Number of online CPUs is %d; cannot continue", num_cpus); throw runtime_error(int_str); } if (system_wide || (runmode == OP_CPULIST)) { rc = do_counting_per_cpu(); } else if (!specified_tasks.empty()) { rc = do_counting_per_task(); } else { cverb << vdebug << "calling perf_event_open for pid " << app_pid << endl; for (unsigned event = 0; event < evts.size(); event++) { ocount_accum_t count_data = {0ULL, 0ULL, 0ULL}; accum_counts.push_back(count_data); prev_accum_counts.push_back(0ULL); ocount_counter op_ctr(ocount_counter(evts[event], true, true)); if ((rc = op_ctr.perf_event_open(app_pid, -1)) < 0) { err_msg = "Internal Error. Perf event setup failed."; goto error; } else { rc = 0; } perfCounters.push_back(op_ctr); } } if (!rc) { cverb << vdebug << "perf counter setup complete" << endl; // Set bit to indicate we're set to go. valid = true; // Now that all events are programmed to start counting, init the start time struct timespec tspec; clock_gettime(CLOCK_MONOTONIC, &tspec); start_time = tspec.tv_sec * 1000000000ULL + tspec.tv_nsec; return; } error: if (rc != OP_PERF_HANDLED_ERROR) throw runtime_error(err_msg); } void ocount_record::output_short_results(ostream & out, bool use_separation, bool scaled) { size_t num_iterations = use_separation ? perfCounters.size() : evts.size(); out << endl; for (size_t num = 0; num < num_iterations; num++) { ostringstream count_str; ocount_accum_t tmp_accum; double fraction_time_running; if (use_separation) { if (cpus_to_count.size()) { out << perfCounters[num].get_cpu(); } else { out << perfCounters[num].get_pid(); } out << "," << perfCounters[num].get_event_name() << ","; errno = 0; cverb << vdebug << "Reading counter data for event " << perfCounters[num].get_event_name() << endl; if (perfCounters[num].read_count_data(&tmp_accum) < 0) { string err_msg = "Internal error: read of perfCounter fd failed with "; err_msg += errno ? strerror(errno) : "unknown error"; throw runtime_error(err_msg); } fraction_time_running = scaled ? (double)tmp_accum.running_time/tmp_accum.enabled_time : 1; if (with_time_interval) { u64 save_prev = prev_accum_counts[num]; prev_accum_counts[num] = tmp_accum.count; tmp_accum.count -= save_prev; } u64 scaled_count = tmp_accum.count ? tmp_accum.count/fraction_time_running : 0; out << dec << scaled_count << ","; } else { fraction_time_running = scaled ? (double)accum_counts[num].running_time/accum_counts[num].enabled_time : 1; u64 scaled_count = accum_counts[num].count ? accum_counts[num].count/fraction_time_running : 0; out << perfCounters[num].get_event_name() << "," << dec << scaled_count << ","; } ostringstream strm_tmp; if (use_separation) { if (!tmp_accum.enabled_time) { out << 0 << endl; } else { strm_tmp.precision(2); strm_tmp << fixed << fraction_time_running * 100 << endl; out << strm_tmp.str(); } } else { if (!accum_counts[num].enabled_time) { out << "Event not counted" << endl; } else { strm_tmp.precision(2); strm_tmp << fixed << fraction_time_running * 100 << endl; out << strm_tmp.str(); } } } } void ocount_record::output_long_results(ostream & out, bool use_separation, int longest_event_name, bool scaled, u64 time_enabled) { #define COUNT_COLUMN_WIDTH 25 #define SEPARATION_ELEMENT_COLUMN_WIDTH 10 char space_padding[64], temp[64]; char const * cpu, * task, * scaling; u64 num_seconds_enabled = time_enabled/1000000000; unsigned int num_minutes_enabled = num_seconds_enabled/60; cpu = "CPU"; task = "Task ID"; scaling = scaled ? "(scaled) " : "(actual) "; // We put 8 spaces between the end of the event name and beginning of the second column unsigned int begin_second_col = longest_event_name + 8; unsigned int num_pads = begin_second_col - strlen("Event"); memset(space_padding, ' ', 64); strncpy(temp, space_padding, num_pads); temp[num_pads] = '\0'; out << endl; if (!with_time_interval) { ostringstream strm; strm << "Events were actively counted for "; if (num_minutes_enabled) { strm << " "; strm << num_minutes_enabled; if (num_minutes_enabled > 1) strm << " minutes and "; else strm << " minute and "; strm << num_seconds_enabled % 60; strm << " seconds."; } else { if (num_seconds_enabled) { // Show 1/10's of seconds strm.precision(1); strm << fixed << (double)time_enabled/1000000000; strm << " seconds."; } else { // Show full nanoseconds strm << time_enabled << " nanoseconds."; } } out << strm.str() << endl; } out << "Event counts " << scaling; if (app_name) out << "for " << app_name << ":"; else if (system_wide) out << "for the whole system:"; else if (!cpus_to_count.empty()) out << "for the specified CPU(s):"; else if (tasks_are_threads) out << "for the specified thread(s):"; else out << "for the specified process(es):"; out << endl; out << "\tEvent" << temp; if (use_separation) { if (cpus_to_count.size()) { out << cpu; num_pads = SEPARATION_ELEMENT_COLUMN_WIDTH - strlen(cpu); } else { out << task; num_pads = SEPARATION_ELEMENT_COLUMN_WIDTH - strlen(task); } strncpy(temp, space_padding, num_pads); temp[num_pads] = '\0'; out << temp; } out << "Count"; num_pads = COUNT_COLUMN_WIDTH - strlen("Count"); strncpy(temp, space_padding, num_pads); temp[num_pads] = '\0'; out << temp << "% time counted" << endl; /* If counting per-cpu or per-thread, I refer generically to cpu or thread values * as "elements of separation". We will have one ocount_counter object per element of * separation per event. So if we're counting 2 events for 4 processes (or threads), * we'll have 2x4 (8) ocount_counter objects. * * If 'use_separation' is true, then we need to print individual counts for * each element of separation for each event; otherwise, we print aggregated counts * for each event. */ size_t num_iterations = use_separation ? perfCounters.size() : evts.size(); for (size_t num = 0; num < num_iterations; num++) { double fraction_time_running; out << "\t" << perfCounters[num].get_event_name(); num_pads = begin_second_col - perfCounters[num].get_event_name().length(); strncpy(temp, space_padding, num_pads); temp[num_pads] = '\0'; out << temp; ostringstream count_str; ocount_accum_t tmp_accum; if (use_separation) { ostringstream separation_element_str; strncpy(temp, space_padding, num_pads); temp[num_pads] = '\0'; if (cpus_to_count.size()) { separation_element_str << dec << perfCounters[num].get_cpu(); out << perfCounters[num].get_cpu(); } else { separation_element_str << dec << perfCounters[num].get_pid(); out << perfCounters[num].get_pid(); } num_pads = SEPARATION_ELEMENT_COLUMN_WIDTH - separation_element_str.str().length(); strncpy(temp, space_padding, num_pads); temp[num_pads] = '\0'; out << temp; errno = 0; cverb << vdebug << "Reading counter data for event " << perfCounters[num].get_event_name() << endl; if (perfCounters[num].read_count_data(&tmp_accum) < 0) { string err_msg = "Internal error: read of perfCounter fd failed with "; err_msg += errno ? strerror(errno) : "unknown error"; throw runtime_error(err_msg); } fraction_time_running = scaled ? (double)tmp_accum.running_time/tmp_accum.enabled_time : 1; if (with_time_interval) { u64 save_prev = prev_accum_counts[num]; prev_accum_counts[num] = tmp_accum.count; tmp_accum.count -= save_prev; } u64 scaled_count = tmp_accum.count ? tmp_accum.count/fraction_time_running : 0; count_str << dec << scaled_count; } else { fraction_time_running = scaled ? (double)accum_counts[num].running_time/accum_counts[num].enabled_time : 1; u64 scaled_count = accum_counts[num].count ? accum_counts[num].count/fraction_time_running : 0; count_str << dec << scaled_count; } string count = count_str.str(); for (int i = count.size() - 3; i > 0; i-=3) { count.insert(i, 1, ','); } out << count; num_pads = COUNT_COLUMN_WIDTH - count.size(); strncpy(temp, space_padding, num_pads); temp[num_pads] = '\0'; out << temp; ostringstream strm_tmp; if (use_separation) { if (!tmp_accum.enabled_time) { out << "Event not counted" << endl; } else { strm_tmp.precision(2); strm_tmp << fixed << fraction_time_running * 100 << endl; out << strm_tmp.str(); } } else { if (!accum_counts[num].enabled_time) { out << "Event not counted" << endl; } else { strm_tmp.precision(2); strm_tmp << fixed << fraction_time_running * 100 << endl; out << strm_tmp.str(); } } } } void ocount_record::output_results(ostream & out, bool use_separation, bool short_format) { size_t longest_event_name = 0; u64 time_enabled = 0ULL; bool scaled = false; for (unsigned long evt_num = 0; evt_num < evts.size(); evt_num++) { if (strlen(evts[evt_num].name) > longest_event_name) longest_event_name = strlen(evts[evt_num].name); } if (with_time_interval) { // reset the accum count values for (size_t i = 0; i < evts.size(); i++) { ocount_accum_t accum = accum_counts[i]; accum.count = 0ULL; accum_counts[i] = accum; } } /* We need to inspect all of the count data now to ascertain if scaling * is required, so we also collect aggregated counts into the accum_counts * vector (if needed). */ for (unsigned long ocounter = 0; ocounter < perfCounters.size(); ocounter++) { ocount_accum_t tmp_accum; int evt_key = ocounter % evts.size(); errno = 0; cverb << vdebug << "Reading counter data for event " << evts[evt_key].name << endl; if (perfCounters[ocounter].read_count_data(&tmp_accum) < 0) { string err_msg = "Internal error: read of perfCounter fd failed with "; err_msg += errno ? strerror(errno) : "unknown error"; throw runtime_error(err_msg); } if (!use_separation) { ocount_accum_t real_accum = accum_counts[evt_key]; real_accum.count += tmp_accum.count; real_accum.enabled_time += tmp_accum.enabled_time; real_accum.running_time += tmp_accum.running_time; accum_counts[evt_key] = real_accum; } if (tmp_accum.enabled_time != tmp_accum.running_time) { if (((double)(tmp_accum.enabled_time - tmp_accum.running_time)/tmp_accum.enabled_time) > 0.01) scaled = true; } } if (with_time_interval && !use_separation) { for (size_t i = 0; i < evts.size(); i++) { u64 save_prev = prev_accum_counts[i]; ocount_accum_t real_accum = accum_counts[i]; prev_accum_counts[i] = real_accum.count; real_accum.count -= save_prev; accum_counts[i] = real_accum; } } struct timespec tspec; clock_gettime(CLOCK_MONOTONIC, &tspec); time_enabled = (tspec.tv_sec * 1000000000ULL + tspec.tv_nsec) - start_time; if (short_format) output_short_results(out, use_separation, scaled); else output_long_results(out, use_separation, longest_event_name, scaled, time_enabled); } int ocount_record::_get_one_process_info(pid_t pid) { char fname[PATH_MAX]; DIR *tids; struct dirent dirent, *next; int ret = 0; add_process(pid); if (are_tasks_processes()) { snprintf(fname, sizeof(fname), "/proc/%d/task", pid); tids = opendir(fname); if (tids == NULL) { // process must have exited ret = -1; cverb << vdebug << "Process " << pid << " apparently exited while " << "process info was being collected"<< endl; goto out; } while (!readdir_r(tids, &dirent, &next) && next) { char *end; pid = strtol(dirent.d_name, &end, 10); if (*end) continue; add_process(pid); } closedir(tids); } out: return ret; } /* Obtain process information for one or more active process, where the user has * either passed in a set of processes via the --process-list option or has specified * --system_wide. */ int ocount_record::get_process_info(const vector & _procs) { int ret = 0; if (cverb << vdebug) cout << "op_get_process_info" << endl; for (size_t i = 0; i < _procs.size(); i++) { errno = 0; if (kill(_procs[i], 0) < 0) { if (errno == EPERM) { string errmsg = "You do not have permission to monitor "; errmsg += are_tasks_processes() ? "process " : "thread "; cerr << errmsg << _procs[i] << endl; ret = OP_PERF_HANDLED_ERROR; } break; } if ((ret = _get_one_process_info(_procs[i])) < 0) break; } return ret; } oprofile-0.9.9/pe_counting/Makefile.in0000664000076400007640000004554312175510234014675 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @BUILD_FOR_PERF_EVENT_TRUE@bin_PROGRAMS = ocount$(EXEEXT) subdir = pe_counting DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am__ocount_SOURCES_DIST = ocount.cpp ocount_counter.h \ ocount_counter.cpp @BUILD_FOR_PERF_EVENT_TRUE@am_ocount_OBJECTS = ocount.$(OBJEXT) \ @BUILD_FOR_PERF_EVENT_TRUE@ ocount_counter.$(OBJEXT) ocount_OBJECTS = $(am_ocount_OBJECTS) @BUILD_FOR_PERF_EVENT_TRUE@ocount_DEPENDENCIES = \ @BUILD_FOR_PERF_EVENT_TRUE@ ../libpe_utils/libpe_utils.a \ @BUILD_FOR_PERF_EVENT_TRUE@ ../libpe_utils/libpe_utils.a \ @BUILD_FOR_PERF_EVENT_TRUE@ ../libop/libop.a \ @BUILD_FOR_PERF_EVENT_TRUE@ ../libutil/libutil.a \ @BUILD_FOR_PERF_EVENT_TRUE@ ../libutil++/libutil++.a DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(ocount_SOURCES) DIST_SOURCES = $(am__ocount_SOURCES_DIST) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBERTY_LIBS@ @PFM_LIB@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ @BUILD_FOR_PERF_EVENT_TRUE@AM_CPPFLAGS = \ @BUILD_FOR_PERF_EVENT_TRUE@ -I ${top_srcdir}/libutil \ @BUILD_FOR_PERF_EVENT_TRUE@ -I ${top_srcdir}/libutil++ \ @BUILD_FOR_PERF_EVENT_TRUE@ -I ${top_srcdir}/libop \ @BUILD_FOR_PERF_EVENT_TRUE@ -I ${top_srcdir}/libperf_events \ @BUILD_FOR_PERF_EVENT_TRUE@ -I ${top_srcdir}/libpe_utils \ @BUILD_FOR_PERF_EVENT_TRUE@ @PERF_EVENT_FLAGS@ \ @BUILD_FOR_PERF_EVENT_TRUE@ @OP_CPPFLAGS@ @BUILD_FOR_PERF_EVENT_TRUE@ocount_SOURCES = ocount.cpp \ @BUILD_FOR_PERF_EVENT_TRUE@ ocount_counter.h \ @BUILD_FOR_PERF_EVENT_TRUE@ ocount_counter.cpp @BUILD_FOR_PERF_EVENT_TRUE@AM_CXXFLAGS = @OP_CXXFLAGS@ @BUILD_FOR_PERF_EVENT_TRUE@AM_LDFLAGS = @OP_LDFLAGS@ @BUILD_FOR_PERF_EVENT_TRUE@ocount_LDADD = -lrt ../libpe_utils/libpe_utils.a \ @BUILD_FOR_PERF_EVENT_TRUE@ ../libpe_utils/libpe_utils.a \ @BUILD_FOR_PERF_EVENT_TRUE@ ../libop/libop.a \ @BUILD_FOR_PERF_EVENT_TRUE@ ../libutil/libutil.a \ @BUILD_FOR_PERF_EVENT_TRUE@ ../libutil++/libutil++.a all: all-am .SUFFIXES: .SUFFIXES: .cpp .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign pe_counting/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign pe_counting/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p || test -f $$p1; \ then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list ocount$(EXEEXT): $(ocount_OBJECTS) $(ocount_DEPENDENCIES) @rm -f ocount$(EXEEXT) $(CXXLINK) $(ocount_OBJECTS) $(ocount_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ocount.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ocount_counter.Po@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic clean-libtool ctags distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-binPROGRAMS install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am \ uninstall-binPROGRAMS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/pe_counting/ocount.cpp0000664000076400007640000005606712175510133014644 00000000000000/** * @file ocount.cpp * Tool for event counting using the new Linux Performance Events Subsystem. * * @remark Copyright 2013 OProfile authors * @remark Read the file COPYING * * Created on: May 21, 2013 * @author Maynard Johnson * (C) Copyright IBM Corp. 2013 * */ #include "config.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include "op_pe_utils.h" #include "ocount_counter.h" #include "op_cpu_type.h" #include "op_cpufreq.h" #include "operf_event.h" #include "cverb.h" #include "op_libiberty.h" // Globals char * app_name = NULL; bool use_cpu_minus_one = false; std::vector events; op_cpu cpu_type; static char * app_name_SAVE = NULL; static char ** app_args = NULL; static bool app_started; static bool startApp; static bool stop = false; static std::ofstream outfile; static pid_t my_uid; static double cpu_speed; static ocount_record * orecord; static pid_t app_PID = -1; using namespace std; using namespace op_pe_utils; typedef enum END_CODE { ALL_OK = 0, APP_ABNORMAL_END = 1, PERF_RECORD_ERROR = 2, PERF_READ_ERROR = 4, PERF_BOTH_ERROR = 8 } end_code_t; namespace ocount_options { bool verbose; bool system_wide; vector processes; vector threads; vector cpus; string outfile; bool separate_cpu; bool separate_thread; vector evts; bool csv_output; long display_interval; long num_intervals; } static enum op_runmode runmode = OP_MAX_RUNMODE; static string runmode_options[] = { " [command-args]", "--system-wide", "--cpu-list", "--process-list", "--thread-list" }; struct option long_options [] = { {"verbose", no_argument, NULL, 'V'}, {"system-wide", no_argument, NULL, 's'}, {"cpu-list", required_argument, NULL, 'C'}, {"process-list", required_argument, NULL, 'p'}, {"thread-list", required_argument, NULL, 'r'}, {"events", required_argument, NULL, 'e'}, {"output-file", required_argument, NULL, 'f'}, {"separate-cpu", no_argument, NULL, 'c'}, {"separate-thread", no_argument, NULL, 't'}, {"brief-format", no_argument, NULL, 'b'}, {"time-interval", required_argument, NULL, 'i'}, {"help", no_argument, NULL, 'h'}, {"usage", no_argument, NULL, 'u'}, {"version", no_argument, NULL, 'v'}, {NULL, 9, NULL, 0} }; const char * short_options = "VsC:p:r:e:f:ctbi:huv"; static void cleanup(void) { free(app_name_SAVE); free(app_args); events.clear(); if (!ocount_options::outfile.empty()) outfile.close(); } // Signal handler for main (parent) process. static void op_sig_stop(int sigval __attribute__((unused))) { // Received a signal to quit, so we need to stop the // app being counted. size_t dummy __attribute__ ((__unused__)); stop = true; if (cverb << vdebug) dummy = write(1, "in op_sig_stop\n", 15); if (startApp) kill(app_PID, SIGKILL); } void set_signals_for_parent(void) { struct sigaction act; sigset_t ss; sigfillset(&ss); sigprocmask(SIG_UNBLOCK, &ss, NULL); act.sa_handler = op_sig_stop; act.sa_flags = 0; sigemptyset(&act.sa_mask); sigaddset(&act.sa_mask, SIGINT); if (sigaction(SIGINT, &act, NULL)) { perror("ocount: install of SIGINT handler failed: "); exit(EXIT_FAILURE); } } static void __print_usage_and_exit(const char * extra_msg) { if (extra_msg) cerr << extra_msg << endl; cerr << "usage: ocount [ options ] [ --system-wide | -p | -r | -C [ command [ args ] ] ]" << endl; cerr << "See ocount man page for details." << endl; exit(EXIT_FAILURE); } static string args_to_string(void) { string ret; char * const * ptr = app_args + 1; while (*ptr != NULL) { ret.append(*ptr); ret += ' '; ptr++; } return ret; } static int app_ready_pipe[2], start_app_pipe[2]; void run_app(void) { // ASSUMPTION: app_name is a fully-qualified pathname char * app_fname = rindex(app_name, '/') + 1; app_args[0] = app_fname; string arg_str = args_to_string(); cverb << vdebug << "Exec args are: " << app_fname << " " << arg_str << endl; // Fake an exec to warm-up the resolver execvp("", app_args); // signal to the parent that we're ready to exec int startup = 1; if (write(app_ready_pipe[1], &startup, sizeof(startup)) < 0) { perror("Internal error on app_ready_pipe"); _exit(EXIT_FAILURE); } // wait for parent to tell us to start int startme = 0; if (read(start_app_pipe[0], &startme, sizeof(startme)) == -1) { perror("Internal error in run_app on start_app_pipe"); _exit(EXIT_FAILURE); } if (startme != 1) _exit(EXIT_SUCCESS); cverb << vdebug << "parent says start app " << app_name << endl; execvp(app_name, app_args); cerr << "Failed to exec " << app_fname << " " << arg_str << ": " << strerror(errno) << endl; /* We don't want any cleanup in the child */ _exit(EXIT_FAILURE); } bool start_counting(void) { vector proc_list; // May contain processes or threads // The only process that should return from this function is the process // which invoked it. Any forked process must do _exit() rather than return(). startApp = runmode == OP_START_APP; if (startApp) { if (pipe(app_ready_pipe) < 0 || pipe(start_app_pipe) < 0) { perror("Internal error: ocount-record could not create pipe"); _exit(EXIT_FAILURE); } app_PID = fork(); if (app_PID < 0) { perror("Internal error: fork failed"); _exit(EXIT_FAILURE); } else if (app_PID == 0) { // child process for exec'ing app run_app(); } } // parent int startup; if (startApp) { if (read(app_ready_pipe[0], &startup, sizeof(startup)) == -1) { perror("Internal error on app_ready_pipe"); return false; } else if (startup != 1) { cerr << "app is not ready to start; exiting" << endl; return false; } proc_list.push_back(app_PID); } else if (!ocount_options::threads.empty()) { proc_list = ocount_options::threads; } else if (!ocount_options::processes.empty()) { proc_list = ocount_options::processes; } if (startApp) { // Tell app_PID to start the app cverb << vdebug << "telling child to start app" << endl; if (write(start_app_pipe[1], &startup, sizeof(startup)) < 0) { perror("Internal error on start_app_pipe"); return -1; } app_started = true; } orecord = new ocount_record(runmode, events, ocount_options::display_interval ? true : false); bool ret; switch (runmode) { case OP_START_APP: ret = orecord->start_counting_app_process(app_PID); break; case OP_SYSWIDE: ret = orecord->start_counting_syswide(); break; case OP_CPULIST: ret = orecord->start_counting_cpulist(ocount_options::cpus); break; case OP_PROCLIST: ret = orecord->start_counting_tasklist(ocount_options::processes, false); break; case OP_THREADLIST: ret = orecord->start_counting_tasklist(ocount_options::threads, true); break; default: ret = false; break; // impossible to get here, since we validate runmode prior to this point } if (!orecord->get_valid()) { /* If valid is false, it means that one of the "known" errors has * occurred: * - monitored process has already ended * - passed PID was invalid * - device or resource busy */ cverb << vdebug << "ocount record init failed" << endl; ret = false; } return ret; } static void do_results(ostream & out) { try { orecord->output_results(out, ocount_options::separate_cpu | ocount_options::separate_thread, ocount_options::csv_output); } catch (runtime_error e) { cerr << "Caught runtime error from ocount_record::output_results" << endl; cerr << e.what() << endl; cleanup(); exit(EXIT_FAILURE); } } end_code_t _get_waitpid_status(int waitpid_status, int wait_rc) { end_code_t rc = ALL_OK; if (wait_rc < 0) { if (errno == EINTR) { // Ctrl-C will only kill the monitored app. See the op_sig_stop signal handler. cverb << vdebug << "Caught ctrl-C. Killed app process." << endl; } else { cerr << "waitpid for app process failed: " << strerror(errno) << endl; rc = APP_ABNORMAL_END; } } else if (wait_rc) { if (WIFEXITED(waitpid_status) && (!WEXITSTATUS(waitpid_status))) { cverb << vdebug << "app process ended normally." << endl; } else if (WIFEXITED(waitpid_status)) { cerr << "app process exited with the following status: " << WEXITSTATUS(waitpid_status) << endl; rc = APP_ABNORMAL_END; } else if (WIFSIGNALED(waitpid_status)) { if (WTERMSIG(waitpid_status) != SIGKILL) { cerr << "app process killed by signal " << WTERMSIG(waitpid_status) << endl; rc = APP_ABNORMAL_END; } } } return rc; } end_code_t _wait_for_app(ostream & out) { int wait_rc; end_code_t rc = ALL_OK; int waitpid_status = 0; bool done = false; cverb << vdebug << "going into waitpid on monitored app " << app_PID << endl; if (ocount_options::display_interval) { long number_intervals = ocount_options::num_intervals; do { struct timeval mytime; int countdown = ocount_options::display_interval; while (countdown) { sleep(1); if (--countdown == 0) { if (gettimeofday(&mytime, NULL) < 0) { cleanup(); perror("gettimeofday"); exit(EXIT_FAILURE); } if (!ocount_options::csv_output) out << endl << "Current time (seconds since epoch): "; else out << endl << "timestamp,"; out << dec << mytime.tv_sec; do_results(out); } wait_rc = waitpid(app_PID, &waitpid_status, WNOHANG); if (wait_rc) { rc = _get_waitpid_status(waitpid_status, wait_rc); done = true; countdown = 0; } } if (--number_intervals == 0) { done = true; kill(app_PID, SIGKILL); } } while (!done); } else { wait_rc = waitpid(app_PID, &waitpid_status, 0); rc = _get_waitpid_status(waitpid_status, wait_rc); } return rc; } static end_code_t _run(ostream & out) { end_code_t rc = ALL_OK; // Fork processes with signals blocked. sigset_t ss; sigfillset(&ss); sigprocmask(SIG_BLOCK, &ss, NULL); try { if (!start_counting()) { return PERF_RECORD_ERROR; } } catch (runtime_error e) { cerr << "Caught runtime error while setting up counters" << endl; cerr << e.what() << endl; cleanup(); exit(EXIT_FAILURE); } // parent continues here if (startApp) cverb << vdebug << "app " << app_PID << " is running" << endl; set_signals_for_parent(); if (startApp) { rc = _wait_for_app(out); } else { cout << "ocount: Press Ctl-c or 'kill -SIGINT " << getpid() << "' to stop counting" << endl; if (ocount_options::display_interval) { long number_intervals = ocount_options::num_intervals; struct timeval mytime; while (!stop) { sleep(ocount_options::display_interval); if (gettimeofday(&mytime, NULL) < 0) { cleanup(); perror("gettimeofday"); exit(EXIT_FAILURE); } if (!ocount_options::csv_output) out << endl << "Current time (seconds since epoch): "; else out << endl << "t:"; out << dec << mytime.tv_sec; do_results(out); if (--number_intervals == 0) stop = true; } } else { while (!stop) sleep(1); } } return rc; } static void _parse_cpu_list(void) { char * comma_sep; char * endptr; char * aCpu = strtok_r(optarg, ",", &comma_sep); do { int tmp = strtol(aCpu, &endptr, 10); if ((endptr >= aCpu) && (endptr <= (aCpu + strlen(aCpu) - 1))) { // Check if user has passed a range of cpu numbers: e.g., '3-8' char * dash_sep; char * ending_cpu_str, * starting_cpu_str = strtok_r(aCpu, "-", &dash_sep); int starting_cpu, ending_cpu; if (starting_cpu_str) { ending_cpu_str = strtok_r(NULL, "-", &dash_sep); if (!ending_cpu_str) { __print_usage_and_exit("ocount: Invalid cpu range."); } starting_cpu = strtol(starting_cpu_str, &endptr, 10); if ((endptr >= starting_cpu_str) && (endptr <= (starting_cpu_str + strlen(starting_cpu_str) - 1))) { __print_usage_and_exit("ocount: Invalid numeric value for --cpu-list option."); } ending_cpu = strtol(ending_cpu_str, &endptr, 10); if ((endptr >= ending_cpu_str) && (endptr <= (ending_cpu_str + strlen(ending_cpu_str) - 1))) { __print_usage_and_exit("ocount: Invalid numeric value for --cpu-list option."); } for (int i = starting_cpu; i < ending_cpu + 1; i++) ocount_options::cpus.push_back(i); } else { __print_usage_and_exit("ocount: Invalid numeric value for --cpu-list option."); } } else { ocount_options::cpus.push_back(tmp); } } while ((aCpu = strtok_r(NULL, ",", &comma_sep))); } static void _parse_time_interval(void) { char * endptr; char * num_intervals, * interval = strtok(optarg, ":"); ocount_options::display_interval = strtol(interval, &endptr, 10); if ((endptr >= interval) && (endptr <= (interval + strlen(interval) - 1))) { __print_usage_and_exit("ocount: Invalid numeric value for num_seconds."); } // User has specified num_intervals: e.g., '-i 5:10' num_intervals = strtok(NULL, ":"); if (num_intervals) { ocount_options::num_intervals = strtol(num_intervals, &endptr, 10); if ((endptr >= num_intervals) && (endptr <= (num_intervals + strlen(num_intervals) - 1))) __print_usage_and_exit("ocount: Invalid numeric value for num_intervals."); } } static int _process_ocount_and_app_args(int argc, char * const argv[]) { bool keep_trying = true; int idx_of_non_options = 0; setenv("POSIXLY_CORRECT", "1", 0); while (keep_trying) { int option_idx = 0; int c = getopt_long(argc, argv, short_options, long_options, &option_idx); switch (c) { char * endptr; char * event; case -1: if (optind != argc) { idx_of_non_options = optind; } keep_trying = false; break; case '?': cerr << "ocount: non-option detected at optind " << optind << endl; keep_trying = false; idx_of_non_options = -1; break; case 'V': ocount_options::verbose = true; break; case 's': ocount_options::system_wide = true; break; case 'C': _parse_cpu_list(); break; case 'p': { char * aPid = strtok(optarg, ","); do { ocount_options::processes.push_back(strtol(aPid, &endptr, 10)); if ((endptr >= aPid) && (endptr <= (aPid + strlen(aPid) - 1))) __print_usage_and_exit("ocount: Invalid numeric value for --process-list option."); } while ((aPid = strtok(NULL, ","))); break; } case 'r': { char * aTid = strtok(optarg, ","); do { ocount_options::threads.push_back(strtol(aTid, &endptr, 10)); if ((endptr >= aTid) && (endptr <= (aTid + strlen(aTid) - 1))) __print_usage_and_exit("ocount: Invalid numeric value for --thread-list option."); } while ((aTid = strtok(NULL, ","))); break; } case 'e': event = strtok(optarg, ","); do { ocount_options::evts.push_back(event); } while ((event = strtok(NULL, ","))); break; case 'f': ocount_options::outfile = optarg; break; case 'c': ocount_options::separate_cpu = true; break; case 't': ocount_options::separate_thread = true; break; case 'b': ocount_options::csv_output = true; break; case 'i': _parse_time_interval(); break; case 'h': __print_usage_and_exit(NULL); break; case 'u': __print_usage_and_exit(NULL); break; case 'v': cout << argv[0] << ": " << PACKAGE << " " << VERSION << " compiled on " << __DATE__ << " " << __TIME__ << endl; exit(EXIT_SUCCESS); break; default: __print_usage_and_exit("ocount: unexpected end of arg parsing"); } } return idx_of_non_options; } static enum op_runmode _get_runmode(int starting_point) { enum op_runmode ret_rm = OP_MAX_RUNMODE; for (int i = starting_point; i < OP_MAX_RUNMODE && ret_rm == OP_MAX_RUNMODE; i++) { switch (i) { // There is no option to check for OP_START_APP; we include a case // statement here just to silence Coverity. case OP_START_APP: break; case OP_SYSWIDE: if (ocount_options::system_wide) ret_rm = OP_SYSWIDE; break; case OP_CPULIST: if (!ocount_options::cpus.empty()) ret_rm = OP_CPULIST; break; case OP_PROCLIST: if (!ocount_options::processes.empty()) ret_rm = OP_PROCLIST; break; case OP_THREADLIST: if (!ocount_options::threads.empty()) ret_rm = OP_THREADLIST; break; default: break; } } return ret_rm; } static void _validate_args(void) { if (ocount_options::verbose && !verbose::setup("debug")) { cerr << "unknown --verbose= options\n"; __print_usage_and_exit(NULL); } if (runmode == OP_START_APP) { enum op_runmode conflicting_mode = OP_MAX_RUNMODE; if (ocount_options::system_wide) conflicting_mode = OP_SYSWIDE; else if (!ocount_options::cpus.empty()) conflicting_mode = OP_CPULIST; else if (!ocount_options::processes.empty()) conflicting_mode = OP_PROCLIST; else if (!ocount_options::threads.empty()) conflicting_mode = OP_THREADLIST; if (conflicting_mode != OP_MAX_RUNMODE) { cerr << "Run mode " << runmode_options[OP_START_APP] << " is incompatible with " << runmode_options[conflicting_mode] << endl; __print_usage_and_exit(NULL); } } else { enum op_runmode rm2; runmode = _get_runmode(OP_SYSWIDE); if (runmode == OP_MAX_RUNMODE) { __print_usage_and_exit("You must either pass in the name of a command or app to run or specify a run mode"); } rm2 = _get_runmode(runmode + 1); if (rm2 != OP_MAX_RUNMODE) { cerr << "Run mode " << runmode_options[rm2] << " is incompatible with " << runmode_options[runmode] << endl; __print_usage_and_exit(NULL); } } if (ocount_options::separate_cpu && !(ocount_options::system_wide || !ocount_options::cpus.empty())) { cerr << "The --separate-cpu option is only valid with --system-wide or --cpu-list." << endl; __print_usage_and_exit(NULL); } if (ocount_options::separate_thread && !(!ocount_options::threads.empty() || !ocount_options::processes.empty())) { cerr << "The --separate-thread option is only valid with --process_list or --thread_list." << endl; __print_usage_and_exit(NULL); } if (runmode == OP_CPULIST) { int num_cpus = use_cpu_minus_one ? 1 : sysconf(_SC_NPROCESSORS_ONLN); if (num_cpus < 1) { cerr << "System config says number of online CPUs is " << num_cpus << "; cannot continue" << endl; exit(EXIT_FAILURE); } set available_cpus = op_pe_utils::op_get_available_cpus(num_cpus); size_t k; for (k = 0; k < ocount_options::cpus.size(); k++) { if (available_cpus.find(ocount_options::cpus[k]) == available_cpus.end()) { cerr << "Specified CPU " << ocount_options::cpus[k] << " is not valid" << endl; __print_usage_and_exit(NULL); } } } } static void process_args(int argc, char * const argv[]) { int non_options_idx = _process_ocount_and_app_args(argc, argv); if (non_options_idx < 0) { __print_usage_and_exit(NULL); } else if ((non_options_idx) > 0) { runmode = OP_START_APP; app_name = (char *) xmalloc(strlen(argv[non_options_idx]) + 1); strcpy(app_name, argv[non_options_idx]); // Note 1: app_args[0] is placeholder for app_fname (filled in later). // Note 2: app_args[] is set to NULL (required by execvp) if (non_options_idx < (argc -1)) { app_args = (char **) xmalloc((sizeof *app_args) * (argc - non_options_idx + 1)); for(int i = non_options_idx + 1; i < argc; i++) { app_args[i - non_options_idx] = argv[i]; } app_args[argc - non_options_idx] = NULL; } else { app_args = (char **) xmalloc((sizeof *app_args) * 2); app_args[1] = NULL; } if (op_validate_app_name(&app_name, &app_name_SAVE) < 0) { __print_usage_and_exit(NULL); } } _validate_args(); /* At this point, we know which of the three counting modes the user requested: * - count events in named app * - count events in app by PID * - count events in whole system */ if (ocount_options::evts.empty()) { // Use default event op_pe_utils::op_get_default_event(); } else { op_pe_utils::op_process_events_list(ocount_options::evts); } cverb << vdebug << "Number of events passed is " << events.size() << endl; return; } int main(int argc, char * const argv[]) { int rc; bool get_results = true; int perf_event_paranoid = op_get_sys_value("/proc/sys/kernel/perf_event_paranoid"); my_uid = geteuid(); rc = op_check_perf_events_cap(use_cpu_minus_one); if (rc == EACCES) { /* Early perf_events kernels required the cpu argument to perf_event_open * to be '-1' when setting up to monitor a single process if 1) the user is * not root; and 2) perf_event_paranoid is > 0. An EACCES error would be * returned if passing '0' or greater for the cpu arg and the above criteria * was not met. Unfortunately, later kernels turned this requirement around * such that the passed cpu arg must be '0' or greater when the user is not * root. * * We don't really have a good way to check whether we're running on such an * early kernel except to try the perf_event_open with different values to see * what works. */ if (my_uid != 0 && perf_event_paranoid > 0) { use_cpu_minus_one = true; rc = op_check_perf_events_cap(use_cpu_minus_one); } } if (rc == EBUSY) cerr << "Performance monitor unit is busy. Do 'opcontrol --deinit' and try again." << endl; else if (rc == ENOSYS) cerr << "Your kernel does not implement a required syscall" << " for the ocount program." << endl; else if (rc == ENOENT) cerr << "Your kernel's Performance Events Subsystem does not support" << " your processor type." << endl; else if (rc) cerr << "Unexpected error running ocount: " << strerror(rc) << endl; if (rc) exit(1); cpu_type = op_get_cpu_type(); cpu_speed = op_cpu_frequency(); try { process_args(argc, argv); } catch (runtime_error e) { cerr << "Caught runtime error while processing args" << endl; cerr << e.what() << endl; cleanup(); exit(EXIT_FAILURE); } if ((runmode == OP_SYSWIDE || runmode == OP_CPULIST) && ((my_uid != 0) && (perf_event_paranoid > 0))) { cerr << "To do "; if (runmode == OP_SYSWIDE) cerr << "system-wide "; else cerr << "cpu-list "; cerr << "event counting, either you must be root or" << endl; cerr << "/proc/sys/kernel/perf_event_paranoid must be set to 0 or -1." << endl; cleanup(); exit(1); } if (cpu_type == CPU_NO_GOOD) { cerr << "Unable to ascertain cpu type. Exiting." << endl; cleanup(); exit(1); } if (!ocount_options::outfile.empty()) { outfile.open(ocount_options::outfile.c_str()); } ostream & out = !ocount_options::outfile.empty() ? outfile : cout; end_code_t run_result; if ((run_result = _run(out))) { get_results = false; if (startApp && app_started && (run_result != APP_ABNORMAL_END)) { int rc; cverb << vdebug << "Killing monitored app . . ." << endl; rc = kill(app_PID, SIGKILL); if (rc) { if (errno == ESRCH) cverb << vdebug << "Unable to kill monitored app because it has already ended" << endl; else perror("Attempt to kill monitored app failed."); } } if ((run_result == PERF_RECORD_ERROR) || (run_result == PERF_BOTH_ERROR)) { cerr << "Error running ocount" << endl; } else { get_results = true; cverb << vdebug << "WARNING: Results may be incomplete due to to abend of monitored app." << endl; } } if (get_results) // We don't do a final display of results if we've been doing it on an interval already. if (!ocount_options::display_interval) do_results(out); cleanup(); return 0; } oprofile-0.9.9/pe_counting/Makefile.am0000664000076400007640000000107112175510133014646 00000000000000LIBS=@LIBERTY_LIBS@ @PFM_LIB@ if BUILD_FOR_PERF_EVENT AM_CPPFLAGS = \ -I ${top_srcdir}/libutil \ -I ${top_srcdir}/libutil++ \ -I ${top_srcdir}/libop \ -I ${top_srcdir}/libperf_events \ -I ${top_srcdir}/libpe_utils \ @PERF_EVENT_FLAGS@ \ @OP_CPPFLAGS@ ocount_SOURCES = ocount.cpp \ ocount_counter.h \ ocount_counter.cpp AM_CXXFLAGS = @OP_CXXFLAGS@ AM_LDFLAGS = @OP_LDFLAGS@ bin_PROGRAMS = ocount ocount_LDADD = -lrt ../libpe_utils/libpe_utils.a \ ../libpe_utils/libpe_utils.a \ ../libop/libop.a \ ../libutil/libutil.a \ ../libutil++/libutil++.a endif oprofile-0.9.9/pe_counting/ocount_counter.h0000664000076400007640000000660312175510133016037 00000000000000/** * @file ocount_counter.h * Definitions and prototypes for ocount tool. * * @remark Copyright 2013 OProfile authors * @remark Read the file COPYING * * Created on: May 22, 2013 * @author Maynard Johnson * (C) Copyright IBM Corp. 2013 * */ #ifndef OCOUNT_COUNTER_H_ #define OCOUNT_COUNTER_H_ #include #include #include #include #include #include #include "operf_event.h" #define OP_PERF_HANDLED_ERROR -101 enum op_runmode { OP_START_APP, OP_SYSWIDE, OP_CPULIST, OP_PROCLIST, OP_THREADLIST, OP_MAX_RUNMODE }; typedef struct ocount_accum { u64 count; u64 enabled_time; u64 running_time; } ocount_accum_t; static inline int op_perf_event_open(struct perf_event_attr * attr, pid_t pid, int cpu, int group_fd, unsigned long flags) { return syscall(__NR_perf_event_open, attr, pid, cpu, group_fd, flags); } class ocount_record; class ocount_counter { public: ocount_counter(operf_event_t & evt, bool enable_on_exec, bool inherit); ~ocount_counter(); int perf_event_open(pid_t pid, int cpu); int get_cpu(void) { return cpu; } pid_t get_pid(void) { return pid; } const std::string get_event_name(void) const { return event_name; } int read_count_data(ocount_accum_t * accum); private: struct perf_event_attr attr; int fd; int cpu; pid_t pid; std::string event_name; }; class ocount_record { public: ocount_record(enum op_runmode _runmode, std::vector & _evts, bool _with_time_interval); ~ocount_record(); bool start_counting_app_process(pid_t _pid); bool start_counting_tasklist(std::vector _tasks, bool _are_threads); bool start_counting_cpulist(std::vector _cpus); bool start_counting_syswide(void); void add_process(pid_t proc) { tasks_to_count.insert(proc); } void output_results(std::ostream & out, bool use_separation, bool short_format); bool get_valid(void) { return valid; } bool are_tasks_processes(void) { return !tasks_are_threads; } private: void setup(void); int get_process_info(const std::vector & _procs); int _get_one_process_info(pid_t pid); int do_counting_per_cpu(void); int do_counting_per_task(void); void output_short_results(std::ostream & out, bool use_separation, bool scaled); void output_long_results(std::ostream & out, bool use_separation, int longest_event_name, bool scaled, u64 time_enabled); enum op_runmode runmode; bool tasks_are_threads; int num_cpus; pid_t app_pid; std::set tasks_to_count; std::set cpus_to_count; bool system_wide; std::vector perfCounters; unsigned int total_bytes_recorded; std::vector evts; std::vector specified_tasks; std::vector specified_cpus; std::vector accum_counts; // accumulated across threads or cpus; one object per event /* The prev_accum_counts vector is used with time intervals for computing count values for just * the current time interval. The number of elements in this vector depends on the run mode: * - For [args] : vector size == evts.size() * - For system-wide or cpu list : vector size is number of processors * - For process or thread list : vector size is number of tasks */ std::vector prev_accum_counts; bool valid; bool with_time_interval; u64 start_time; }; #endif /* OCOUNT_COUNTER_H_ */ oprofile-0.9.9/configure0000775000076400007640000266334412175510235012235 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.63 for OProfile 0.9.9. # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH if test "x$CONFIG_SHELL" = x; then if (eval ":") 2>/dev/null; then as_have_required=yes else as_have_required=no fi if test $as_have_required = yes && (eval ": (as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=\$LINENO as_lineno_2=\$LINENO test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } ") 2> /dev/null; then : else as_candidate_shells= as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. case $as_dir in /*) for as_base in sh bash ksh sh5; do as_candidate_shells="$as_candidate_shells $as_dir/$as_base" done;; esac done IFS=$as_save_IFS for as_shell in $as_candidate_shells $SHELL; do # Try only shells that exist, to save several forks. if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { ("$as_shell") 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : _ASEOF }; then CONFIG_SHELL=$as_shell as_have_required=yes if { "$as_shell" 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : (as_func_return () { (exit $1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = "$1" ); then : else exitcode=1 echo positional parameters were not saved. fi test $exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } _ASEOF }; then break fi fi done if test "x$CONFIG_SHELL" != x; then for as_var in BASH_ENV ENV do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done export CONFIG_SHELL exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} fi if test $as_have_required = no; then echo This script requires a shell more modern than all the echo shells that I found on your system. Please install a echo modern shell, or manually run the script under such a echo shell if you do have one. { (exit 1); exit 1; } fi fi fi (eval "as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0") || { echo No shell found that supports shell functions. echo Please tell bug-autoconf@gnu.org about your system, echo including any error possibly output before this message. echo This can help us improve future autoconf versions. echo Configuration will now proceed without shell functions. } as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$lt_ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` ;; esac ECHO=${lt_ECHO-echo} if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then # Yippee, $ECHO works! : else # Restart under the correct shell. exec $SHELL "$0" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat <<_LT_EOF $* _LT_EOF exit 0 fi # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH if test -z "$lt_ECHO"; then if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if { echo_test_string=`eval $cmd`; } 2>/dev/null && { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null then break fi done fi if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then ECHO="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$ECHO" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. ECHO='print -r' elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} else # Try using printf. ECHO='printf %s\n' if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL ECHO="$CONFIG_SHELL $0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then ECHO="$CONFIG_SHELL $0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "$0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} else # Oops. We lost completely, so just stick with echo. ECHO=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. lt_ECHO=$ECHO if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" fi exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME='OProfile' PACKAGE_TARNAME='oprofile' PACKAGE_VERSION='0.9.9' PACKAGE_STRING='OProfile 0.9.9' PACKAGE_BUGREPORT='' ac_unique_file="libop/op_config.h" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS OP_DOCDIR OP_CXXFLAGS OP_CFLAGS CHECK_ACCOUNT_FALSE CHECK_ACCOUNT_TRUE POPT_LIBS BFD_LIBS LIBERTY_LIBS CAT_ENTRY_END CAT_ENTRY_START DOCBOOK_ROOT XSLTPROC_FLAGS XML_CATALOG have_xsltproc_FALSE have_xsltproc_TRUE XSLTPROC have_qt_FALSE have_qt_TRUE UIChelp QT_LIBS QT_CFLAGS QT_VERSION QT_LIB UIC MOC QT_LDFLAGS QT_INCLUDES X_EXTRA_LIBS X_LIBS X_PRE_LIBS X_CFLAGS XMKMF PTRDIFF_T_TYPE SIZE_T_TYPE OP_LDFLAGS OP_CPPFLAGS topdir EXTRA_CFLAGS_MODULE BUILD_JVMPI_AGENT_FALSE BUILD_JVMPI_AGENT_TRUE BUILD_JVMTI_AGENT_FALSE BUILD_JVMTI_AGENT_TRUE JAVA_HOMEDIR PFM_LIB BUILD_FOR_PERF_EVENT_FALSE BUILD_FOR_PERF_EVENT_TRUE PERF_EVENT_FLAGS CXXCPP am__fastdepCXX_FALSE am__fastdepCXX_TRUE CXXDEPMODE ac_ct_CXX CXXFLAGS CXX DATE PKG_CONFIG CPP OTOOL64 OTOOL LIPO NMEDIT DSYMUTIL lt_ECHO AR OBJDUMP LN_S NM ac_ct_DUMPBIN DUMPBIN LD FGREP EGREP GREP SED host_os host_vendor host_cpu host build_os build_vendor build_cpu build LIBTOOL RANLIB am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_dependency_tracking enable_shared enable_static with_pic enable_fast_install with_gnu_ld enable_libtool_lock with_binutils with_binutils_libname with_kernel with_java with_extra_includes with_extra_libs with_target with_x enable_gui with_qt_dir with_qt_includes with_qt_libraries enable_pch enable_gcov enable_werror enable_optimization enable_account_check ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP PKG_CONFIG CXX CXXFLAGS CCC CXXCPP XMKMF QT_CFLAGS QT_LIBS' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 { (exit 1); exit 1; }; } ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 { (exit 1); exit 1; }; } ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 { (exit 1); exit 1; }; } ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 { (exit 1); exit 1; }; } ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) { $as_echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` { $as_echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 { (exit 1); exit 1; }; } ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; } done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || { $as_echo "$as_me: error: working directory cannot be determined" >&2 { (exit 1); exit 1; }; } test "X$ac_ls_di" = "X$ac_pwd_ls_di" || { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 { (exit 1); exit 1; }; } # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 { (exit 1); exit 1; }; } pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures OProfile 0.9.9 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/oprofile] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names X features: --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of OProfile 0.9.9:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --enable-gui compile with gui component (qt3|qt4|yes|no), if not given or set to yes, gui defaults to qt3 --enable-pch enable precompiled header (default is disabled) --enable-gcov enable option for gcov coverage testing (default is disabled) --disable-werror disable -Werror flag (default is enabled for non-release) --disable-optimization disable optimization flags (default is enabled) --disable-account-check disable account check (default is enabled) Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-pic try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-binutils=dir Path to binutils installation to use --with-binutils-libname Lib dir name under binutils installation; [lib]] --with-kernel=dir Path to kernel include directory (e.g. /tmp/linux-xyz) to use. If this option is not specified, configure will look for kernel header files in the usual installation location for a kernel-headers package -- /usr. Use this option in cross-compile enviroments or in situations where the host system does not support perf_events but you wish to build binaries for a target system that does support perf_events. Because of OProfile's use of syscalls, kernel headers used during build must match the architecture of the intended target system. NOTE: Run the command 'make headers_install INSTALL_HDR_PATH=' from the root directory of your kernel source tree, and use for oprofile's '--with-kernel' configure option. --with-java=java-home Path to Java home directory (default is "no"; "yes" will use /usr as Java home) --with-extra-includes=DIR add extra include paths --with-extra-libs=DIR add extra library paths --with-target=cell-be Check BFD support for Cell Broadband Engine SPU profiling --with-x use the X Window System --with-qt-dir where the root of Qt is installed --with-qt-includes where the Qt includes are. --with-qt-libraries where the Qt library is installed. Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor PKG_CONFIG path to pkg-config utility CXX C++ compiler command CXXFLAGS C++ compiler flags CXXCPP C++ preprocessor XMKMF Path to xmkmf, Makefile generator for X Window System QT_CFLAGS C compiler flags for QT, overriding pkg-config QT_LIBS linker flags for QT, overriding pkg-config Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF OProfile configure 0.9.9 generated by GNU Autoconf 2.63 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by OProfile $as_me 0.9.9, which was generated by GNU Autoconf 2.63. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2) ac_configure_args1="$ac_configure_args1 '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac done done $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo cat <<\_ASBOX ## ---------------- ## ## Cache variables. ## ## ---------------- ## _ASBOX echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo cat <<\_ASBOX ## ----------------- ## ## Output variables. ## ## ----------------- ## _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX ## ------------------- ## ## File substitutions. ## ## ------------------- ## _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then ac_site_file1=$CONFIG_SITE elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test -r "$ac_site_file"; then { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am__api_version='1.11' ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} { (exit 1); exit 1; }; } fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;} { (exit 1); exit 1; }; };; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} { (exit 1); exit 1; }; };; esac # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&5 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&2;} { (exit 1); exit 1; }; } fi test "$2" = conftest.file ) then # Ok. : else { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! Check your system clock" >&5 $as_echo "$as_me: error: newly created file is older than distributed files! Check your system clock" >&2;} { (exit 1); exit 1; }; } fi { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if test "${ac_cv_path_mkdir+set}" = set; then $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. test -d ./--version && rmdir ./--version MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } mkdir_p="$MKDIR_P" case $mkdir_p in [\\/$]* | ?:[\\/]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_AWK+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:$LINENO: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} { (exit 1); exit 1; }; } fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='oprofile' VERSION='0.9.9' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. AMTAR=${AMTAR-"${am_missing_run}tar"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' ac_config_headers="$ac_config_headers config.h" DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from `make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:$LINENO: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:$LINENO: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:$LINENO: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:$LINENO: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; }; } # Provide some information about the compiler. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { (ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } if test -z "$ac_file"; then $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables See \`config.log' for more details." >&5 $as_echo "$as_me: error: C compiler cannot create executables See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; }; } fi ac_exeext=$ac_cv_exeext # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then if { ac_try='./$ac_file' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&5 $as_echo "$as_me: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; }; } fi fi fi { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&5 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; }; } fi rm -f conftest$ac_cv_exeext { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if test "${ac_cv_objext+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&5 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; }; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_c89=$ac_arg else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:$LINENO: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:$LINENO: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi { $as_echo "$as_me:$LINENO: checking whether basename is declared" >&5 $as_echo_n "checking whether basename is declared... " >&6; } if test "${ac_cv_have_decl_basename+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { #ifndef basename (void) basename; #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_have_decl_basename=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_have_decl_basename=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5 $as_echo "$ac_cv_have_decl_basename" >&6; } if test "x$ac_cv_have_decl_basename" = x""yes; then cat >>confdefs.h <<_ACEOF #define HAVE_DECL_BASENAME 1 _ACEOF else cat >>confdefs.h <<_ACEOF #define HAVE_DECL_BASENAME 0 _ACEOF fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_RANLIB+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_RANLIB="ranlib" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi case `pwd` in *\ * | *\ *) { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; esac macro_version='2.2.6b' macro_revision='1.3017' ltmain="$ac_aux_dir/ltmain.sh" # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} { (exit 1); exit 1; }; } { $as_echo "$as_me:$LINENO: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } if test "${ac_cv_build+set}" = set; then $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} { (exit 1); exit 1; }; } ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} { (exit 1); exit 1; }; } fi { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 $as_echo "$as_me: error: invalid value of canonical build" >&2;} { (exit 1); exit 1; }; };; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:$LINENO: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } if test "${ac_cv_host+set}" = set; then $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} { (exit 1); exit 1; }; } fi fi { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 $as_echo "$as_me: error: invalid value of canonical host" >&2;} { (exit 1); exit 1; }; };; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 $as_echo_n "checking for a sed that does not truncate output... " >&6; } if test "${ac_cv_path_SED+set}" = set; then $as_echo_n "(cached) " >&6 else ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" done echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed $as_unset ac_script || ac_script= if test -z "$SED"; then ac_path_SED_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED case `"$ac_path_SED" --version 2>&1` in *GNU*) ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo '' >> "conftest.nl" "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_SED_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_SED="$ac_path_SED" ac_path_SED_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_SED_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_SED"; then { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_SED=$SED fi fi { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 $as_echo "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if test "${ac_cv_path_GREP+set}" = set; then $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:$LINENO: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if test "${ac_cv_path_EGREP+set}" = set; then $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:$LINENO: checking for fgrep" >&5 $as_echo_n "checking for fgrep... " >&6; } if test "${ac_cv_path_FGREP+set}" = set; then $as_echo_n "(cached) " >&6 else if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 then ac_cv_path_FGREP="$GREP -F" else if test -z "$FGREP"; then ac_path_FGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in fgrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue # Check for GNU ac_path_FGREP and select it if it is found. # Check for GNU $ac_path_FGREP case `"$ac_path_FGREP" --version 2>&1` in *GNU*) ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'FGREP' >> "conftest.nl" "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_FGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_FGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_FGREP"; then { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_FGREP=$FGREP fi fi fi { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 $as_echo "$ac_cv_path_FGREP" >&6; } FGREP="$ac_cv_path_FGREP" test -z "$GREP" && GREP=grep # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 $as_echo_n "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if test "${lt_cv_path_LD+set}" = set; then $as_echo_n "(cached) " >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if test "${lt_cv_prog_gnu_ld+set}" = set; then $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 $as_echo "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } if test "${lt_cv_path_NM+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done : ${lt_cv_path_NM=no} fi fi { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 $as_echo "$lt_cv_path_NM" >&6; } if test "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$ac_tool_prefix"; then for ac_prog in "dumpbin -symbols" "link -dump -symbols" do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_DUMPBIN+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 $as_echo "$DUMPBIN" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$DUMPBIN" && break done fi if test -z "$DUMPBIN"; then ac_ct_DUMPBIN=$DUMPBIN for ac_prog in "dumpbin -symbols" "link -dump -symbols" do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 $as_echo "$ac_ct_DUMPBIN" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_DUMPBIN" && break done if test "x$ac_ct_DUMPBIN" = x; then DUMPBIN=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DUMPBIN=$ac_ct_DUMPBIN fi fi if test "$DUMPBIN" != ":"; then NM="$DUMPBIN" fi fi test -z "$NM" && NM=nm { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 $as_echo_n "checking the name lister ($NM) interface... " >&6; } if test "${lt_cv_nm_interface+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:4654: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 (eval echo "\"\$as_me:4657: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 (eval echo "\"\$as_me:4660: output\"" >&5) cat conftest.out >&5 if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest* fi { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 $as_echo "$lt_cv_nm_interface" >&6; } { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 $as_echo "no, using $LN_S" >&6; } fi # find the maximum length of command line arguments { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 $as_echo_n "checking the maximum length of command line arguments... " >&6; } if test "${lt_cv_sys_max_cmd_len+set}" = set; then $as_echo_n "(cached) " >&6 else i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8 ; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ = "XX$teststring$teststring"; } >/dev/null 2>&1 && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac fi if test -n $lt_cv_sys_max_cmd_len ; then { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } else { $as_echo "$as_me:$LINENO: result: none" >&5 $as_echo "none" >&6; } fi max_cmd_len=$lt_cv_sys_max_cmd_len : ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ = c,a/b,, \ && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 $as_echo "$xsi_shell" >&6; } { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } lt_shell_append=no ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 $as_echo "$lt_shell_append" >&6; } if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 $as_echo_n "checking for $LD option to reload object files... " >&6; } if test "${lt_cv_ld_reload_flag+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_ld_reload_flag='-r' fi { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 $as_echo "$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in darwin*) if test "$GCC" = yes; then reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_OBJDUMP+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 $as_echo "$OBJDUMP" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_OBJDUMP="objdump" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 $as_echo "$ac_ct_OBJDUMP" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP fi else OBJDUMP="$ac_cv_prog_OBJDUMP" fi test -z "$OBJDUMP" && OBJDUMP=objdump { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 $as_echo_n "checking how to recognize dependent libraries... " >&6; } if test "${lt_cv_deplibs_check_method+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # `unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # which responds to the $file_magic_cmd with a given extended regex. # If you have `file' or equivalent on your system and you're not sure # whether `pass_all' will *always* work, you probably want this one. case $host_os in aix[4-9]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. if ( file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[3-9]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. linux* | k*bsd*-gnu) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; esac fi { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 $as_echo "$lt_cv_deplibs_check_method" >&6; } file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_AR+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AR="${ac_tool_prefix}ar" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { $as_echo "$as_me:$LINENO: result: $AR" >&5 $as_echo "$AR" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_AR"; then ac_ct_AR=$AR # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_AR+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_AR="ar" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 $as_echo "$ac_ct_AR" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi else AR="$ac_cv_prog_AR" fi test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi test -z "$STRIP" && STRIP=: if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_RANLIB+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_RANLIB="ranlib" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi test -z "$RANLIB" && RANLIB=: # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Check for command to grab the raw symbol name followed by C symbol from nm. { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then $as_echo_n "(cached) " >&6 else # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[ABCDGISTW]' ;; hpux*) if test "$host_cpu" = ia64; then symcode='[ABCDEGRST]' fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris*) symcode='[BDRT]' ;; sco3.2v5*) symcode='[DT]' ;; sysv4.2uw2*) symcode='[DT]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[ABDT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function # and D for any global variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK '"\ " {last_section=section; section=\$ 3};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ " s[1]~/^[@?]/{print s[1], s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Now try to grab the symbols. nlist=conftest.nm if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ const struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" CFLAGS="$lt_save_CFLAGS" else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done fi if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then { $as_echo "$as_me:$LINENO: result: failed" >&5 $as_echo "failed" >&6; } else { $as_echo "$as_me:$LINENO: result: ok" >&5 $as_echo "ok" >&6; } fi # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then enableval=$enable_libtool_lock; fi test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '#line 5865 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } if test "${lt_cv_cc_needs_belf+set}" = set; then $as_echo_n "(cached) " >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then lt_cv_cc_needs_belf=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 lt_cv_cc_needs_belf=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 $as_echo "$lt_cv_cc_needs_belf" >&6; } if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; sparc*-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) LD="${LD-ld} -m elf64_sparc" ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks="$enable_libtool_lock" case $host_os in rhapsody* | darwin*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_DSYMUTIL+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 $as_echo "$DSYMUTIL" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DSYMUTIL"; then ac_ct_DSYMUTIL=$DSYMUTIL # Extract the first word of "dsymutil", so it can be a program name with args. set dummy dsymutil; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 $as_echo "$ac_ct_DSYMUTIL" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then DSYMUTIL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DSYMUTIL=$ac_ct_DSYMUTIL fi else DSYMUTIL="$ac_cv_prog_DSYMUTIL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. set dummy ${ac_tool_prefix}nmedit; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_NMEDIT+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 $as_echo "$NMEDIT" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_NMEDIT"; then ac_ct_NMEDIT=$NMEDIT # Extract the first word of "nmedit", so it can be a program name with args. set dummy nmedit; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_NMEDIT="nmedit" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 $as_echo "$ac_ct_NMEDIT" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then NMEDIT=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac NMEDIT=$ac_ct_NMEDIT fi else NMEDIT="$ac_cv_prog_NMEDIT" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. set dummy ${ac_tool_prefix}lipo; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_LIPO+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_LIPO="${ac_tool_prefix}lipo" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 $as_echo "$LIPO" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_LIPO"; then ac_ct_LIPO=$LIPO # Extract the first word of "lipo", so it can be a program name with args. set dummy lipo; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_LIPO="lipo" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 $as_echo "$ac_ct_LIPO" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_LIPO" = x; then LIPO=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac LIPO=$ac_ct_LIPO fi else LIPO="$ac_cv_prog_LIPO" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. set dummy ${ac_tool_prefix}otool; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_OTOOL+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_OTOOL="${ac_tool_prefix}otool" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 $as_echo "$OTOOL" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL"; then ac_ct_OTOOL=$OTOOL # Extract the first word of "otool", so it can be a program name with args. set dummy otool; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_OTOOL="otool" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 $as_echo "$ac_ct_OTOOL" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL" = x; then OTOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL=$ac_ct_OTOOL fi else OTOOL="$ac_cv_prog_OTOOL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. set dummy ${ac_tool_prefix}otool64; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_OTOOL64+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 $as_echo "$OTOOL64" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL64"; then ac_ct_OTOOL64=$OTOOL64 # Extract the first word of "otool64", so it can be a program name with args. set dummy otool64; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_OTOOL64="otool64" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 $as_echo "$ac_ct_OTOOL64" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL64" = x; then OTOOL64=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL64=$ac_ct_OTOOL64 fi else OTOOL64="$ac_cv_prog_OTOOL64" fi { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 $as_echo_n "checking for -single_module linker flag... " >&6; } if test "${lt_cv_apple_cc_single_mod+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&5 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&5 fi rm -rf libconftest.dylib* rm -f conftest.* fi fi { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } if test "${lt_cv_ld_exported_symbols_list+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then lt_cv_ld_exported_symbols_list=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 lt_cv_ld_exported_symbols_list=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } case $host_os in rhapsody* | darwin1.[012]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[91]*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10.[012]*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; then _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' fi if test "$DSYMUTIL" != ":"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:$LINENO: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if test "${ac_cv_header_stdc+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_stdc=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -rf conftest.dSYM rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then eval "$as_ac_Header=yes" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } as_val=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in dlfcn.h do as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then eval "$as_ac_Header=yes" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } as_val=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done # Set options enable_dlopen=no enable_win32_dll=no # Check whether --enable-shared was given. if test "${enable_shared+set}" = set; then enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac else enable_shared=yes fi # Check whether --enable-static was given. if test "${enable_static+set}" = set; then enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac else enable_static=yes fi # Check whether --with-pic was given. if test "${with_pic+set}" = set; then withval=$with_pic; pic_mode="$withval" else pic_mode=default fi test -z "$pic_mode" && pic_mode=default # Check whether --enable-fast-install was given. if test "${enable_fast_install+set}" = set; then enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac else enable_fast_install=yes fi # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ltmain" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' test -z "$LN_S" && LN_S="ln -s" if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi { $as_echo "$as_me:$LINENO: checking for objdir" >&5 $as_echo_n "checking for objdir... " >&6; } if test "${lt_cv_objdir+set}" = set; then $as_echo_n "(cached) " >&6 else rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null fi { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 $as_echo "$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir cat >>confdefs.h <<_ACEOF #define LT_OBJDIR "$lt_cv_objdir/" _ACEOF case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='s/\(["`$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld="$lt_cv_prog_gnu_ld" old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } if test "${lt_cv_path_MAGIC_CMD+set}" = set; then $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/${ac_tool_prefix}file; then lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { $as_echo "$as_me:$LINENO: checking for file" >&5 $as_echo_n "checking for file... " >&6; } if test "${lt_cv_path_MAGIC_CMD+set}" = set; then $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/file; then lt_cv_path_MAGIC_CMD="$ac_dir/file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac # Use C for the default configuration in the libtool script lt_save_CC="$CC" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then lt_prog_compiler_no_builtin_flag= if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag=' -fno-builtin' { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:7722: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:7726: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $RM conftest* fi { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) lt_prog_compiler_pic='-fPIC' ;; esac ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; *) lt_prog_compiler_pic='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static='-non_shared' ;; linux* | k*bsd*-gnu) case $cc_basename in # old Intel for x86_64 which still supported -KPIC. ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; # Lahey Fortran 8.1. lf95*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='--shared' lt_prog_compiler_static='--static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; ccc*) lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; xl*) # IBM XL C 8.0/Fortran 10.1 on PPC lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-qpic' lt_prog_compiler_static='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; *Sun\ F*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='' ;; esac ;; esac ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static='-non_shared' ;; rdos*) lt_prog_compiler_static='-non_shared' ;; solaris*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic='-Kconform_pic' lt_prog_compiler_static='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; unicos*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_can_build_shared=no ;; uts4*) lt_prog_compiler_pic='-pic' lt_prog_compiler_static='-Bstatic' ;; *) lt_prog_compiler_can_build_shared=no ;; esac fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic= ;; *) lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 $as_echo "$lt_prog_compiler_pic" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } if test "${lt_cv_prog_compiler_pic_works+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:8061: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:8065: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works=yes fi fi $RM conftest* fi { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } if test x"$lt_cv_prog_compiler_pic_works" = xyes; then case $lt_prog_compiler_pic in "" | " "*) ;; *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if test "${lt_cv_prog_compiler_static_works+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works=yes fi else lt_cv_prog_compiler_static_works=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } if test x"$lt_cv_prog_compiler_static_works" = xyes; then : else lt_prog_compiler_static= fi { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test "${lt_cv_prog_compiler_c_o+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:8166: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:8170: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test "${lt_cv_prog_compiler_c_o+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:8221: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:8225: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test "$hard_links" = no; then { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag= always_export_symbols=no archive_cmds= archive_expsym_cmds= compiler_needs_object=no enable_shared_with_static_runtimes=no export_dynamic_flag_spec= export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' hardcode_automatic=no hardcode_direct=no hardcode_direct_absolute=no hardcode_libdir_flag_spec= hardcode_libdir_flag_spec_ld= hardcode_libdir_separator= hardcode_minus_L=no hardcode_shlibpath_var=unsupported inherit_rpath=no link_all_deplibs=unknown module_cmds= module_expsym_cmds= old_archive_from_new_cmds= old_archive_from_expsyms_cmds= thread_safe_flag_spec= whole_archive_flag_spec= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' export_dynamic_flag_spec='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec= fi supports_anon_versioning=no case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs=no fi ;; interix[3-9]*) hardcode_direct=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu) tmp_diet=no if test "$host_os" = linux-dietlibc; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then tmp_addflag= tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 whole_archive_flag_spec= tmp_sharedflag='--shared' ;; xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' compiler_needs_object=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi case $cc_basename in xlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec= hardcode_libdir_flag_spec_ld='-rpath $libdir' archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else ld_shlibs=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then runpath_var= hardcode_libdir_flag_spec= export_dynamic_flag_spec= whole_archive_flag_spec= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds='' hardcode_direct=yes hardcode_direct_absolute=yes hardcode_libdir_separator=':' link_all_deplibs=yes file_list_spec='${wl}-f,' if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi export_dynamic_flag_spec='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an # empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' ${wl}-bernotok' allow_undefined_flag=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' archive_cmds_need_lc=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_from_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes=yes ;; darwin* | rhapsody*) archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported whole_archive_flag_spec='' link_all_deplibs=yes allow_undefined_flag="$_lt_dar_allow_undefined" case $cc_basename in ifort*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; then output_verbose_link_cmd=echo archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" else ld_shlibs=no fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; freebsd1*) ld_shlibs=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes export_dynamic_flag_spec='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_flag_spec_ld='+b $libdir' hardcode_libdir_separator=: hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" cat >conftest.$ac_ext <<_ACEOF int foo(void) {} _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: inherit_rpath=yes link_all_deplibs=yes ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes hardcode_shlibpath_var=no hardcode_direct_absolute=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-R$libdir' ;; *) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi archive_cmds_need_lc='no' hardcode_libdir_separator=: ;; solaris*) no_undefined_flag=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='${wl}' archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else whole_archive_flag_spec='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag='${wl}-z,text' archive_cmds_need_lc=no hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag='${wl}-z,text' allow_undefined_flag='${wl}-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-R,$libdir' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac if test x$host_vendor = xsni; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) export_dynamic_flag_spec='${wl}-Blargedynsym' ;; esac fi fi { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 $as_echo "$ld_shlibs" >&6; } test "$ld_shlibs" = no && can_build_shared=no with_gnu_ld=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added archive_cmds_need_lc=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl pic_flag=$lt_prog_compiler_pic compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc=no else archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 $as_echo "$archive_cmds_need_lc" >&6; } ;; esac fi ;; esac { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` else lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path/$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo="/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[lt_foo]++; } if (lt_freq[lt_foo] == 1) { print lt_foo; } }'` sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[4-9]*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix[3-9]*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then shlibpath_overrides_runpath=yes fi else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Add ABI-specific directories to the system library path. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || test -n "$runpath_var" || test "X$hardcode_automatic" = "Xyes" ; then # We can hardcode non-existent directories. if test "$hardcode_direct" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && test "$hardcode_minus_L" != no; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 $as_echo "$hardcode_action" >&6; } if test "$hardcode_action" = relink || test "$inherit_rpath" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_dl_dlopen=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = x""yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; *) { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 $as_echo_n "checking for shl_load... " >&6; } if test "${ac_cv_func_shl_load+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define shl_load to an innocuous variant, in case declares shl_load. For example, HP-UX 11i declares gettimeofday. */ #define shl_load innocuous_shl_load /* System header to define __stub macros and hopefully few prototypes, which can conflict with char shl_load (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef shl_load /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_shl_load || defined __stub___shl_load choke me #endif int main () { return shl_load (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_func_shl_load=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_shl_load=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 $as_echo "$ac_cv_func_shl_load" >&6; } if test "x$ac_cv_func_shl_load" = x""yes; then lt_cv_dlopen="shl_load" else { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 $as_echo_n "checking for shl_load in -ldld... " >&6; } if test "${ac_cv_lib_dld_shl_load+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_dld_shl_load=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_shl_load=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = x""yes; then lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" else { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 $as_echo_n "checking for dlopen... " >&6; } if test "${ac_cv_func_dlopen+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define dlopen to an innocuous variant, in case declares dlopen. For example, HP-UX 11i declares gettimeofday. */ #define dlopen innocuous_dlopen /* System header to define __stub macros and hopefully few prototypes, which can conflict with char dlopen (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef dlopen /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_dlopen || defined __stub___dlopen choke me #endif int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_func_dlopen=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_dlopen=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 $as_echo "$ac_cv_func_dlopen" >&6; } if test "x$ac_cv_func_dlopen" = x""yes; then lt_cv_dlopen="dlopen" else { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_dl_dlopen=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = x""yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 $as_echo_n "checking for dlopen in -lsvld... " >&6; } if test "${ac_cv_lib_svld_dlopen+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_svld_dlopen=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_svld_dlopen=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = x""yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 $as_echo_n "checking for dld_link in -ldld... " >&6; } if test "${ac_cv_lib_dld_dld_link+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_dld_dld_link=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_dld_link=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } if test "x$ac_cv_lib_dld_dld_link" = x""yes; then lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" fi fi fi fi fi fi ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 $as_echo_n "checking whether a program can dlopen itself... " >&6; } if test "${lt_cv_dlopen_self+set}" = set; then $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line 11024 "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 $as_echo "$lt_cv_dlopen_self" >&6; } if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } if test "${lt_cv_dlopen_self_static+set}" = set; then $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line 11120 "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 $as_echo "$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi striplib= old_striplib= { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 $as_echo_n "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi ;; *) { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } ;; esac fi # Report which library types will actually be built { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 $as_echo_n "checking if libtool supports shared libraries... " >&6; } { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 $as_echo "$can_build_shared" >&6; } { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 $as_echo_n "checking whether to build shared libraries... " >&6; } test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 $as_echo "$enable_shared" >&6; } { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 $as_echo_n "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 $as_echo "$enable_static" >&6; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" ac_config_commands="$ac_config_commands libtool" # Only expand once: if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_PKG_CONFIG+set}" = set; then $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then $as_echo_n "(cached) " >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi DATE="`date '+%a %d %B %Y'`" # Since we should not permanently alter user environment variables, we'll # save the contents of the original flags in case the user has set them # prior to running this configue script. CPPFLAGS_SAVE="$CPPFLAGS" LDFLAGS_SAVE="$LDFLAGS" # Check whether --with-binutils was given. if test "${with_binutils+set}" = set; then withval=$with_binutils; BINUTILSDIR=$withval fi if test "$BINUTILSDIR" != ""; then LD="$BINUTILSDIR/ld" CPPFLAGS="$CPPFLAGS -I$BINUTILSDIR/include" # Check whether --with-binutils-libname was given. if test "${with_binutils_libname+set}" = set; then withval=$with_binutils_libname; BINUTILSLIB=$withval fi if test "$BINUTILSLIB" = ""; then BINUTILSLIB="lib" fi LDFLAGS="$LDFLAGS -L$BINUTILSDIR/$BINUTILSLIB -Xlinker -R -Xlinker $BINUTILSDIR/$BINUTILSLIB" OP_LDFLAGS="$LDFLAGS" OP_CPPFLAGS="$CPPFLAGS" else OP_LDFLAGS= OP_CPPFLAGS= fi # We can't restore original flag values for CPPFLAGS and LDFLAGS until we're done # checking for bfd.h and libiberty.h (in AX_BINUTILS). ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:$LINENO: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:$LINENO: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:$LINENO: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:$LINENO: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; }; } # Provide some information about the compiler. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_c89=$ac_arg else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:$LINENO: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:$LINENO: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:$LINENO: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CXX+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { $as_echo "$as_me:$LINENO: result: $CXX" >&5 $as_echo "$CXX" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CXX="$ac_prog" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 $as_echo "$ac_ct_CXX" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } if test "${ac_cv_cxx_compiler_gnu+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 $as_echo_n "checking whether $CXX accepts -g... " >&6; } if test "${ac_cv_prog_cxx_g+set}" = set; then $as_echo_n "(cached) " >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CXXFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 $as_echo "$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CXX" am_compiler_list= { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CXX+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { $as_echo "$as_me:$LINENO: result: $CXX" >&5 $as_echo "$CXX" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CXX="$ac_prog" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 $as_echo "$ac_ct_CXX" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } if test "${ac_cv_cxx_compiler_gnu+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 $as_echo_n "checking whether $CXX accepts -g... " >&6; } if test "${ac_cv_prog_cxx_g+set}" = set; then $as_echo_n "(cached) " >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CXXFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 $as_echo "$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CXX" am_compiler_list= { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } if test -z "$CXXCPP"; then if test "${ac_cv_prog_CXXCPP+set}" = set; then $as_echo_n "(cached) " >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CXXCPP=$CXXCPP fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 $as_echo "$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} _lt_caught_CXX_error=yes; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu else _lt_caught_CXX_error=yes fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu archive_cmds_need_lc_CXX=no allow_undefined_flag_CXX= always_export_symbols_CXX=no archive_expsym_cmds_CXX= compiler_needs_object_CXX=no export_dynamic_flag_spec_CXX= hardcode_direct_CXX=no hardcode_direct_absolute_CXX=no hardcode_libdir_flag_spec_CXX= hardcode_libdir_flag_spec_ld_CXX= hardcode_libdir_separator_CXX= hardcode_minus_L_CXX=no hardcode_shlibpath_var_CXX=unsupported hardcode_automatic_CXX=no inherit_rpath_CXX=no module_cmds_CXX= module_expsym_cmds_CXX= link_all_deplibs_CXX=unknown old_archive_cmds_CXX=$old_archive_cmds no_undefined_flag_CXX= whole_archive_flag_spec_CXX= enable_shared_with_static_runtimes_CXX=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o objext_CXX=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_caught_CXX_error" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} compiler=$CC compiler_CXX=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' else lt_prog_compiler_no_builtin_flag_CXX= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 $as_echo_n "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if test "${lt_cv_path_LD+set}" = set; then $as_echo_n "(cached) " >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if test "${lt_cv_prog_gnu_ld+set}" = set; then $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 $as_echo "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_CXX= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } ld_shlibs_CXX=yes case $host_os in aix3*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_CXX='' hardcode_direct_CXX=yes hardcode_direct_absolute_CXX=yes hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes file_list_spec_CXX='${wl}-f,' if test "$GXX" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct_CXX=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_CXX=yes hardcode_libdir_flag_spec_CXX='-L$libdir' hardcode_libdir_separator_CXX= fi esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi export_dynamic_flag_spec_CXX='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to # export. always_export_symbols_CXX=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_CXX='-berok' # Determine the default libpath from the value encoded in an empty # executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_CXX="-z nodefs" archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_CXX=' ${wl}-bernotok' allow_undefined_flag_CXX=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_CXX='$convenience' archive_cmds_need_lc_CXX=yes # This is similar to how AIX traditionally builds its shared # libraries. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_CXX=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_CXX=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_CXX='-L$libdir' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=no enable_shared_with_static_runtimes_CXX=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_CXX=no fi ;; darwin* | rhapsody*) archive_cmds_need_lc_CXX=no hardcode_direct_CXX=no hardcode_automatic_CXX=yes hardcode_shlibpath_var_CXX=unsupported whole_archive_flag_spec_CXX='' link_all_deplibs_CXX=yes allow_undefined_flag_CXX="$_lt_dar_allow_undefined" case $cc_basename in ifort*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; then output_verbose_link_cmd=echo archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" if test "$lt_cv_apple_cc_single_mod" != "yes"; then archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" fi else ld_shlibs_CXX=no fi ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; freebsd[12]*) # C++ shared libraries reported to be fairly broken before # switch to ELF ld_shlibs_CXX=no ;; freebsd-elf*) archive_cmds_need_lc_CXX=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions ld_shlibs_CXX=yes ;; gnu*) ;; hpux9*) hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: export_dynamic_flag_spec_CXX='${wl}-E' hardcode_direct_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; *) if test "$GXX" = yes; then archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: case $host_cpu in hppa*64*|ia64*) ;; *) export_dynamic_flag_spec_CXX='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no ;; *) hardcode_direct_CXX=yes hardcode_direct_absolute_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; interix[3-9]*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' fi fi link_all_deplibs_CXX=yes ;; esac hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: inherit_rpath_CXX=yes ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | ecpc* ) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac archive_cmds_need_lc_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [1-5]* | *pgcpp\ [1-5]*) prelink_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' old_archive_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ $RANLIB $oldlib' archive_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' archive_expsym_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; *) # Version 6 will use weak symbols archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; esac hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; xl*) # IBM XL 8.0 on PPC, with GNU ld hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' hardcode_libdir_flag_spec_CXX='-R$libdir' whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' compiler_needs_object_CXX=yes # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; m88k*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) ld_shlibs_CXX=yes ;; openbsd2*) # C++ shared libraries are fairly broken ld_shlibs_CXX=no ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no hardcode_direct_absolute_CXX=yes archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' export_dynamic_flag_spec_CXX='${wl}-E' whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd=echo else ld_shlibs_CXX=no fi ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx*) case $host in osf3*) allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' ;; *) allow_undefined_flag_CXX=' -expect_unresolved \*' archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ $RM $lib.exp' hardcode_libdir_flag_spec_CXX='-rpath $libdir' ;; esac hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' case $host in osf3*) archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; *) archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; esac hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ archive_cmds_need_lc_CXX=yes no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_shlibpath_var_CXX=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' ;; esac link_all_deplibs_CXX=yes output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then no_undefined_flag_CXX=' ${wl}-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' fi hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_CXX='${wl}-z,text' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag_CXX='${wl}-z,text' allow_undefined_flag_CXX='${wl}-z,nodefs' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes export_dynamic_flag_spec_CXX='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 $as_echo "$ld_shlibs_CXX" >&6; } test "$ld_shlibs_CXX" = no && can_build_shared=no GCC_CXX="$GXX" LD_CXX="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... # Dependencies to place before and after the object being linked: predep_objects_CXX= postdep_objects_CXX= predeps_CXX= postdeps_CXX= compiler_lib_search_path_CXX= cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case $p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test $p = "-L" || test $p = "-R"; then prev=$p continue else prev= fi if test "$pre_test_object_deps_done" = no; then case $p in -L* | -R*) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$compiler_lib_search_path_CXX"; then compiler_lib_search_path_CXX="${prev}${p}" else compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$postdeps_CXX"; then postdeps_CXX="${prev}${p}" else postdeps_CXX="${postdeps_CXX} ${prev}${p}" fi fi ;; *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test "$pre_test_object_deps_done" = no; then if test -z "$predep_objects_CXX"; then predep_objects_CXX="$p" else predep_objects_CXX="$predep_objects_CXX $p" fi else if test -z "$postdep_objects_CXX"; then postdep_objects_CXX="$p" else postdep_objects_CXX="$postdep_objects_CXX $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling CXX test program" fi $RM -f confest.$objext # PORTME: override above test on systems where it is broken case $host_os in interix[3-9]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. predep_objects_CXX= postdep_objects_CXX= postdeps_CXX= ;; linux*) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac if test "$solaris_use_stlport4" != yes; then postdeps_CXX='-library=Cstd -library=Crun' fi ;; esac ;; solaris*) case $cc_basename in CC*) # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac # Adding this requires a known-good setup of shared libraries for # Sun compiler versions before 5.6, else PIC objects from an old # archive will be linked into the output, leading to subtle bugs. if test "$solaris_use_stlport4" != yes; then postdeps_CXX='-library=Cstd -library=Crun' fi ;; esac ;; esac case " $postdeps_CXX " in *" -lc "*) archive_cmds_need_lc_CXX=no ;; esac compiler_lib_search_dirs_CXX= if test -n "${compiler_lib_search_path_CXX}"; then compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` fi lt_prog_compiler_wl_CXX= lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX= { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic_CXX='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic_CXX='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_CXX='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all lt_prog_compiler_pic_CXX= ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_CXX=-Kconform_pic fi ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic_CXX='-fPIC -shared' ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac else case $host_os in aix[4-9]*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' else lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; dgux*) case $cc_basename in ec++*) lt_prog_compiler_pic_CXX='-KPIC' ;; ghcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then lt_prog_compiler_pic_CXX='+Z' fi ;; aCC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_CXX='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # KAI C++ Compiler lt_prog_compiler_wl_CXX='--backend -Wl,' lt_prog_compiler_pic_CXX='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64 which still supported -KPIC. lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fPIC' lt_prog_compiler_static_CXX='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fpic' lt_prog_compiler_static_CXX='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; xlc* | xlC*) # IBM XL 8.0 on PPC lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-qpic' lt_prog_compiler_static_CXX='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) lt_prog_compiler_pic_CXX='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic_CXX='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) lt_prog_compiler_wl_CXX='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 lt_prog_compiler_pic_CXX='-pic' ;; cxx*) # Digital/Compaq C++ lt_prog_compiler_wl_CXX='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x lt_prog_compiler_pic_CXX='-pic' lt_prog_compiler_static_CXX='-Bstatic' ;; lcc*) # Lucid lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 lt_prog_compiler_pic_CXX='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) lt_prog_compiler_can_build_shared_CXX=no ;; esac fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_CXX= ;; *) lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" ;; esac { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 $as_echo "$lt_prog_compiler_pic_CXX" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_CXX"; then { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works_CXX=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:15597: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:15601: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works_CXX=yes fi fi $RM conftest* fi { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then case $lt_prog_compiler_pic_CXX in "" | " "*) ;; *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; esac else lt_prog_compiler_pic_CXX= lt_prog_compiler_can_build_shared_CXX=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works_CXX=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works_CXX=yes fi else lt_cv_prog_compiler_static_works_CXX=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then : else lt_prog_compiler_static_CXX= fi { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:15696: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:15700: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_CXX=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:15748: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:15752: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_CXX=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test "$hard_links" = no; then { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in aix[4-9]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) export_symbols_cmds_CXX="$ltdll_cmds" ;; cygwin* | mingw* | cegcc*) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' ;; *) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 $as_echo "$ld_shlibs_CXX" >&6; } test "$ld_shlibs_CXX" = no && can_build_shared=no with_gnu_ld_CXX=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_CXX" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_CXX=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_CXX in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_CXX pic_flag=$lt_prog_compiler_pic_CXX compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_CXX allow_undefined_flag_CXX= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_CXX=no else archive_cmds_need_lc_CXX=yes fi allow_undefined_flag_CXX=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 $as_echo "$archive_cmds_need_lc_CXX" >&6; } ;; esac fi ;; esac { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[4-9]*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix[3-9]*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then shlibpath_overrides_runpath=yes fi else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Add ABI-specific directories to the system library path. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action_CXX= if test -n "$hardcode_libdir_flag_spec_CXX" || test -n "$runpath_var_CXX" || test "X$hardcode_automatic_CXX" = "Xyes" ; then # We can hardcode non-existent directories. if test "$hardcode_direct_CXX" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && test "$hardcode_minus_L_CXX" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_CXX=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_CXX=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_CXX=unsupported fi { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 $as_echo "$hardcode_action_CXX" >&6; } if test "$hardcode_action_CXX" = relink || test "$inherit_rpath_CXX" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi fi # test -n "$compiler" CC=$lt_save_CC LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test "$_lt_caught_CXX_error" != yes ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Extract the first word of "ld", so it can be a program name with args. set dummy ld; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_LD+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$LD"; then ac_cv_prog_LD="$LD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_LD="ld" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi LD=$ac_cv_prog_LD if test -n "$LD"; then { $as_echo "$as_me:$LINENO: result: $LD" >&5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi test "$LD" || { { $as_echo "$as_me:$LINENO: error: ld not found" >&5 $as_echo "$as_me: error: ld not found" >&2;} { (exit 1); exit 1; }; } # --with-kernel for cross compilation # Check whether --with-kernel was given. if test "${with_kernel+set}" = set; then withval=$with_kernel; KERNELDIR=$withval fi if test "$KERNELDIR" != ""; then if test -d $KERNELDIR; then KINC="$KERNELDIR/include" PERF_EVENT_FLAGS=" -I$KERNELDIR/include" PERF_EVENT_H="$KERNELDIR/include/linux/perf_event.h" else echo "$KERNELDIR does not exist." fi else PERF_EVENT_H="/usr/include/linux/perf_event.h" fi PERF_EVENT_H_EXISTS="no" kernel_may_have_perf_events_support="no" SAVE_CFLAGS=$CFLAGS CFLAGS="-I$KINC -Werror" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { #if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 31) break_me_hard(\\\); #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then kernel_may_have_perf_events_support="yes" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 kernel_has_perf_events_support="no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS=$SAVE_CFLAGS if test "$kernel_may_have_perf_events_support" = "yes"; then as_ac_Header=`$as_echo "ac_cv_header_$PERF_EVENT_H" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { $as_echo "$as_me:$LINENO: checking for $PERF_EVENT_H" >&5 $as_echo_n "checking for $PERF_EVENT_H... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:$LINENO: checking $PERF_EVENT_H usability" >&5 $as_echo_n "checking $PERF_EVENT_H usability... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$PERF_EVENT_H> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:$LINENO: checking $PERF_EVENT_H presence" >&5 $as_echo_n "checking $PERF_EVENT_H presence... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$PERF_EVENT_H> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { $as_echo "$as_me:$LINENO: WARNING: $PERF_EVENT_H: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $PERF_EVENT_H: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $PERF_EVENT_H: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $PERF_EVENT_H: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { $as_echo "$as_me:$LINENO: WARNING: $PERF_EVENT_H: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $PERF_EVENT_H: present but cannot be compiled" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $PERF_EVENT_H: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $PERF_EVENT_H: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $PERF_EVENT_H: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $PERF_EVENT_H: see the Autoconf documentation" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $PERF_EVENT_H: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $PERF_EVENT_H: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $PERF_EVENT_H: proceeding with the preprocessor's result" >&5 $as_echo "$as_me: WARNING: $PERF_EVENT_H: proceeding with the preprocessor's result" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $PERF_EVENT_H: in the future, the compiler will take precedence" >&5 $as_echo "$as_me: WARNING: $PERF_EVENT_H: in the future, the compiler will take precedence" >&2;} ;; esac { $as_echo "$as_me:$LINENO: checking for $PERF_EVENT_H" >&5 $as_echo_n "checking for $PERF_EVENT_H... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi as_val=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then PERF_EVENT_H_EXISTS="yes" fi { $as_echo "$as_me:$LINENO: checking kernel supports perf_events" >&5 $as_echo_n "checking kernel supports perf_events... " >&6; } if test "$PERF_EVENT_H_EXISTS" = "yes"; then rm -f test-for-PERF_EVENT_OPEN cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { struct perf_event_attr attr; pid_t pid; memset(&attr, 0, sizeof(attr)); attr.size = sizeof(attr); attr.sample_type = PERF_SAMPLE_IP; pid = getpid(); syscall(__NR_perf_event_open, &attr, pid, 0, -1, 0); ; return 0; } _ACEOF $CC conftest.$ac_ext $CFLAGS $LDFLAGS $LIBS $PERF_EVENT_FLAGS -o test-for-PERF_EVENT_OPEN > /dev/null 2>&1 if test -f test-for-PERF_EVENT_OPEN; then kernel_has_perf_events_support="yes" { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } kernel_has_perf_events_support="no" fi rm -f test-for-PERF_EVENT_OPEN else { $as_echo "$as_me:$LINENO: result: unknown -- perf_event.h not found" >&5 $as_echo "unknown -- perf_event.h not found" >&6; } fi else { $as_echo "$as_me:$LINENO: result: kernel supports perf_events... no" >&5 $as_echo "kernel supports perf_events... no" >&6; } kernel_has_perf_events_support="no" fi if test "$kernel_has_perf_events_support" = "yes"; then BUILD_FOR_PERF_EVENT_TRUE= BUILD_FOR_PERF_EVENT_FALSE='#' else BUILD_FOR_PERF_EVENT_TRUE='#' BUILD_FOR_PERF_EVENT_FALSE= fi if test "$kernel_has_perf_events_support" = "yes"; then HAVE_PERF_EVENTS='1' { $as_echo "$as_me:$LINENO: checking whether PERF_RECORD_MISC_GUEST_KERNEL is defined in perf_event.h" >&5 $as_echo_n "checking whether PERF_RECORD_MISC_GUEST_KERNEL is defined in perf_event.h... " >&6; } rm -f test-for-PERF_GUEST cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { unsigned int pr_guest_kern = PERF_RECORD_MISC_GUEST_KERNEL; unsigned int pr_guest_user = PERF_RECORD_MISC_GUEST_USER; ; return 0; } _ACEOF $CC conftest.$ac_ext $CFLAGS $LDFLAGS $LIBS $PERF_EVENT_FLAGS -o test-for-PERF_GUEST > /dev/null 2>&1 if test -f test-for-PERF_GUEST; then echo "yes" HAVE_PERF_GUEST_MACROS='1' else echo "no" HAVE_PERF_GUEST_MACROS='0' fi cat >>confdefs.h <<_ACEOF #define HAVE_PERF_GUEST_MACROS $HAVE_PERF_GUEST_MACROS _ACEOF rm -f test-for-PERF_GUEST* { $as_echo "$as_me:$LINENO: checking whether precise_ip is defined in perf_event.h" >&5 $as_echo_n "checking whether precise_ip is defined in perf_event.h... " >&6; } rm -f test-for-precise-ip cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { struct perf_event_attr attr; attr.precise_ip = 2; ; return 0; } _ACEOF $CC conftest.$ac_ext $CFLAGS $LDFLAGS $LIBS $PERF_EVENT_FLAGS -o test-for-precise-ip > /dev/null 2>&1 if test -f test-for-precise-ip; then echo "yes" HAVE_PERF_PRECISE_IP='1' else echo "no" HAVE_PERF_PRECISE_IP='0' fi cat >>confdefs.h <<_ACEOF #define HAVE_PERF_PRECISE_IP $HAVE_PERF_PRECISE_IP _ACEOF rm -f test-for-precise-ip* else HAVE_PERF_EVENTS='0' { $as_echo "$as_me:$LINENO: result: No perf_events support available; falling back to legacy oprofile" >&5 $as_echo "No perf_events support available; falling back to legacy oprofile" >&6; } fi cat >>confdefs.h <<_ACEOF #define HAVE_PERF_EVENTS $HAVE_PERF_EVENTS _ACEOF { $as_echo "$as_me:$LINENO: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } if test "${ac_cv_host+set}" = set; then $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} { (exit 1); exit 1; }; } fi fi { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 $as_echo "$as_me: error: invalid value of canonical host" >&2;} { (exit 1); exit 1; }; };; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac if test "$HAVE_PERF_EVENTS" = "1"; then PFM_LIB= if test "$host_cpu" = "powerpc64"; then if test "${ac_cv_header_perfmon_pfmlib_h+set}" = set; then { $as_echo "$as_me:$LINENO: checking for perfmon/pfmlib.h" >&5 $as_echo_n "checking for perfmon/pfmlib.h... " >&6; } if test "${ac_cv_header_perfmon_pfmlib_h+set}" = set; then $as_echo_n "(cached) " >&6 fi { $as_echo "$as_me:$LINENO: result: $ac_cv_header_perfmon_pfmlib_h" >&5 $as_echo "$ac_cv_header_perfmon_pfmlib_h" >&6; } else # Is the header compilable? { $as_echo "$as_me:$LINENO: checking perfmon/pfmlib.h usability" >&5 $as_echo_n "checking perfmon/pfmlib.h usability... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:$LINENO: checking perfmon/pfmlib.h presence" >&5 $as_echo_n "checking perfmon/pfmlib.h presence... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { $as_echo "$as_me:$LINENO: WARNING: perfmon/pfmlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: perfmon/pfmlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:$LINENO: WARNING: perfmon/pfmlib.h: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: perfmon/pfmlib.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { $as_echo "$as_me:$LINENO: WARNING: perfmon/pfmlib.h: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: perfmon/pfmlib.h: present but cannot be compiled" >&2;} { $as_echo "$as_me:$LINENO: WARNING: perfmon/pfmlib.h: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: perfmon/pfmlib.h: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:$LINENO: WARNING: perfmon/pfmlib.h: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: perfmon/pfmlib.h: see the Autoconf documentation" >&2;} { $as_echo "$as_me:$LINENO: WARNING: perfmon/pfmlib.h: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: perfmon/pfmlib.h: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:$LINENO: WARNING: perfmon/pfmlib.h: proceeding with the preprocessor's result" >&5 $as_echo "$as_me: WARNING: perfmon/pfmlib.h: proceeding with the preprocessor's result" >&2;} { $as_echo "$as_me:$LINENO: WARNING: perfmon/pfmlib.h: in the future, the compiler will take precedence" >&5 $as_echo "$as_me: WARNING: perfmon/pfmlib.h: in the future, the compiler will take precedence" >&2;} ;; esac { $as_echo "$as_me:$LINENO: checking for perfmon/pfmlib.h" >&5 $as_echo_n "checking for perfmon/pfmlib.h... " >&6; } if test "${ac_cv_header_perfmon_pfmlib_h+set}" = set; then $as_echo_n "(cached) " >&6 else ac_cv_header_perfmon_pfmlib_h=$ac_header_preproc fi { $as_echo "$as_me:$LINENO: result: $ac_cv_header_perfmon_pfmlib_h" >&5 $as_echo "$ac_cv_header_perfmon_pfmlib_h" >&6; } fi if test "x$ac_cv_header_perfmon_pfmlib_h" = x""yes; then : else { { $as_echo "$as_me:$LINENO: error: pfmlib.h not found; usually provided in papi devel package" >&5 $as_echo "$as_me: error: pfmlib.h not found; usually provided in papi devel package" >&2;} { (exit 1); exit 1; }; } fi { $as_echo "$as_me:$LINENO: checking for pfm_get_os_event_encoding in -lpfm" >&5 $as_echo_n "checking for pfm_get_os_event_encoding in -lpfm... " >&6; } if test "${ac_cv_lib_pfm_pfm_get_os_event_encoding+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpfm $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pfm_get_os_event_encoding (); int main () { return pfm_get_os_event_encoding (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_pfm_pfm_get_os_event_encoding=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_pfm_pfm_get_os_event_encoding=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pfm_pfm_get_os_event_encoding" >&5 $as_echo "$ac_cv_lib_pfm_pfm_get_os_event_encoding" >&6; } if test "x$ac_cv_lib_pfm_pfm_get_os_event_encoding" = x""yes; then HAVE_LIBPFM3='0'; HAVE_LIBPFM='1' else { $as_echo "$as_me:$LINENO: checking for pfm_get_event_name in -lpfm" >&5 $as_echo_n "checking for pfm_get_event_name in -lpfm... " >&6; } if test "${ac_cv_lib_pfm_pfm_get_event_name+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpfm $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pfm_get_event_name (); int main () { return pfm_get_event_name (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_pfm_pfm_get_event_name=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_pfm_pfm_get_event_name=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pfm_pfm_get_event_name" >&5 $as_echo "$ac_cv_lib_pfm_pfm_get_event_name" >&6; } if test "x$ac_cv_lib_pfm_pfm_get_event_name" = x""yes; then HAVE_LIBPFM3='1'; HAVE_LIBPFM='1' else { { $as_echo "$as_me:$LINENO: error: libpfm not found; usually provided in papi devel package" >&5 $as_echo "$as_me: error: libpfm not found; usually provided in papi devel package" >&2;} { (exit 1); exit 1; }; } fi fi PFM_LIB="-lpfm" cat >>confdefs.h <<_ACEOF #define HAVE_LIBPFM3 $HAVE_LIBPFM3 _ACEOF cat >>confdefs.h <<_ACEOF #define HAVE_LIBPFM $HAVE_LIBPFM _ACEOF fi fi # Check whether --with-java was given. if test "${with_java+set}" = set; then withval=$with_java; JAVA_HOMEDIR=$with_java else with_java=no fi if test "x$with_java" = "xyes"; then JAVA_HOMEDIR="/usr" else if test "x$with_java" = "xno"; then JAVA_HOMEDIR= fi fi if test -n "$JAVA_HOMEDIR"; then as_ac_File=`$as_echo "ac_cv_file_"$JAVA_HOMEDIR/include/jvmti.h"" | $as_tr_sh` { $as_echo "$as_me:$LINENO: checking for \"$JAVA_HOMEDIR/include/jvmti.h\"" >&5 $as_echo_n "checking for \"$JAVA_HOMEDIR/include/jvmti.h\"... " >&6; } if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else test "$cross_compiling" = yes && { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} { (exit 1); exit 1; }; } if test -r ""$JAVA_HOMEDIR/include/jvmti.h""; then eval "$as_ac_File=yes" else eval "$as_ac_File=no" fi fi ac_res=`eval 'as_val=${'$as_ac_File'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } as_val=`eval 'as_val=${'$as_ac_File'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then JVMTI_H_EXISTS="yes" fi as_ac_File=`$as_echo "ac_cv_file_"$JAVA_HOMEDIR/include/jvmpi.h"" | $as_tr_sh` { $as_echo "$as_me:$LINENO: checking for \"$JAVA_HOMEDIR/include/jvmpi.h\"" >&5 $as_echo_n "checking for \"$JAVA_HOMEDIR/include/jvmpi.h\"... " >&6; } if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else test "$cross_compiling" = yes && { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} { (exit 1); exit 1; }; } if test -r ""$JAVA_HOMEDIR/include/jvmpi.h""; then eval "$as_ac_File=yes" else eval "$as_ac_File=no" fi fi ac_res=`eval 'as_val=${'$as_ac_File'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } as_val=`eval 'as_val=${'$as_ac_File'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then JVMPI_H_EXISTS="yes" fi fi if test -n "$JVMTI_H_EXISTS"; then BUILD_JVMTI_AGENT_TRUE= BUILD_JVMTI_AGENT_FALSE='#' else BUILD_JVMTI_AGENT_TRUE='#' BUILD_JVMTI_AGENT_FALSE= fi if test -n "$JVMPI_H_EXISTS"; then BUILD_JVMPI_AGENT_TRUE= BUILD_JVMPI_AGENT_FALSE='#' else BUILD_JVMPI_AGENT_TRUE='#' BUILD_JVMPI_AGENT_FALSE= fi { $as_echo "$as_me:$LINENO: checking whether malloc attribute is understood" >&5 $as_echo_n "checking whether malloc attribute is understood... " >&6; } SAVE_CFLAGS=$CFLAGS CFLAGS="-Werror $CFLAGS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { void monkey() __attribute__((malloc)); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF #define MALLOC_ATTRIBUTE_OK 1 _ACEOF else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS=$SAVE_CFLAGS { $as_echo "$as_me:$LINENO: checking whether __builtin_expect is understood" >&5 $as_echo_n "checking whether __builtin_expect is understood... " >&6; } SAVE_CFLAGS=$CFLAGS CFLAGS="-Werror $CFLAGS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { int i; if (__builtin_expect(i, 0)) { } ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; }; EXTRA_CFLAGS_MODULE="$EXTRA_CFLAGS_MODULE -DEXPECT_OK" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; }; fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext CFLAGS=$SAVE_CFLAGS topdir=`pwd` # Check whether --with-extra-includes was given. if test "${with_extra_includes+set}" = set; then withval=$with_extra_includes; use_extra_includes="$withval" else use_extra_includes=NO fi if test -n "$use_extra_includes" && \ test "$use_extra_includes" != "NO"; then ac_save_ifs=$IFS IFS=':' for dir in $use_extra_includes; do extra_includes="$extra_includes -I$dir" done IFS=$ac_save_ifs CPPFLAGS="$CPPFLAGS $extra_includes" fi # Check whether --with-extra-libs was given. if test "${with_extra_libs+set}" = set; then withval=$with_extra_libs; use_extra_libs=$withval else use_extra_libs=NO fi if test -n "$use_extra_libs" && \ test "$use_extra_libs" != "NO"; then ac_save_ifs=$IFS IFS=':' for dir in $use_extra_libs; do extra_libraries="$extra_libraries -L$dir" done IFS=$ac_save_ifs LDFLAGS="$LDFLAGS $extra_libraries" fi ORIG_SAVE_LIBS="$LIBS" for ac_func in sched_setaffinity perfmonctl do as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 $as_echo_n "checking for $ac_func... " >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then eval "$as_ac_var=yes" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval 'as_val=${'$as_ac_var'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } as_val=`eval 'as_val=${'$as_ac_var'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done { $as_echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5 $as_echo_n "checking for poptGetContext in -lpopt... " >&6; } if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpopt $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char poptGetContext (); int main () { return poptGetContext (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_popt_poptGetContext=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_popt_poptGetContext=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5 $as_echo "$ac_cv_lib_popt_poptGetContext" >&6; } if test "x$ac_cv_lib_popt_poptGetContext" = x""yes; then cat >>confdefs.h <<_ACEOF #define HAVE_LIBPOPT 1 _ACEOF LIBS="-lpopt $LIBS" else { { $as_echo "$as_me:$LINENO: error: popt library not found" >&5 $as_echo "$as_me: error: popt library not found" >&2;} { (exit 1); exit 1; }; } fi for ac_header in libiberty.h do as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 $as_echo_n "checking $ac_header usability... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 $as_echo_n "checking $ac_header presence... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 $as_echo_n "checking for $ac_header... " >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi as_val=`eval 'as_val=${'$as_ac_Header'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done { $as_echo "$as_me:$LINENO: checking for cplus_demangle in -liberty" >&5 $as_echo_n "checking for cplus_demangle in -liberty... " >&6; } if test "${ac_cv_lib_iberty_cplus_demangle+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-liberty $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char cplus_demangle (); int main () { return cplus_demangle (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_iberty_cplus_demangle=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_iberty_cplus_demangle=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_cplus_demangle" >&5 $as_echo "$ac_cv_lib_iberty_cplus_demangle" >&6; } if test "x$ac_cv_lib_iberty_cplus_demangle" = x""yes; then cat >>confdefs.h <<_ACEOF #define HAVE_LIBIBERTY 1 _ACEOF LIBS="-liberty $LIBS" else { { $as_echo "$as_me:$LINENO: error: liberty library not found" >&5 $as_echo "$as_me: error: liberty library not found" >&2;} { (exit 1); exit 1; }; } fi for ac_func in xcalloc do as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 $as_echo_n "checking for $ac_func... " >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then eval "$as_ac_var=yes" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval 'as_val=${'$as_ac_var'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } as_val=`eval 'as_val=${'$as_ac_var'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in xmemdup do as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 $as_echo_n "checking for $ac_func... " >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then eval "$as_ac_var=yes" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval 'as_val=${'$as_ac_var'} $as_echo "$as_val"'` { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } as_val=`eval 'as_val=${'$as_ac_var'} $as_echo "$as_val"'` if test "x$as_val" = x""yes; then cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_dl_dlopen=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = x""yes; then LIBS="$LIBS -ldl"; DL_LIB="-ldl" else DL_LIB="" fi { $as_echo "$as_me:$LINENO: checking for main in -lintl" >&5 $as_echo_n "checking for main in -lintl... " >&6; } if test "${ac_cv_lib_intl_main+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { return main (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_intl_main=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_intl_main=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5 $as_echo "$ac_cv_lib_intl_main" >&6; } if test "x$ac_cv_lib_intl_main" = x""yes; then LIBS="$LIBS -lintl"; INTL_LIB="-lintl" else INTL_LIB="" fi { $as_echo "$as_me:$LINENO: checking for bfd_openr in -lbfd" >&5 $as_echo_n "checking for bfd_openr in -lbfd... " >&6; } if test "${ac_cv_lib_bfd_bfd_openr+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfd $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char bfd_openr (); int main () { return bfd_openr (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_bfd_bfd_openr=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_bfd_bfd_openr=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_openr" >&5 $as_echo "$ac_cv_lib_bfd_bfd_openr" >&6; } if test "x$ac_cv_lib_bfd_bfd_openr" = x""yes; then LIBS="-lbfd $LIBS"; Z_LIB="" else { $as_echo "$as_me:$LINENO: checking for compress in -lz" >&5 $as_echo_n "checking for compress in -lz... " >&6; } if test "${ac_cv_lib_z_compress+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lz $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char compress (); int main () { return compress (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_z_compress=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_z_compress=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5 $as_echo "$ac_cv_lib_z_compress" >&6; } if test "x$ac_cv_lib_z_compress" = x""yes; then { $as_echo "$as_me:$LINENO: checking for bfd_fdopenr in -lbfd" >&5 $as_echo_n "checking for bfd_fdopenr in -lbfd... " >&6; } if test "${ac_cv_lib_bfd_bfd_fdopenr+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfd -lz $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char bfd_fdopenr (); int main () { return bfd_fdopenr (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_bfd_bfd_fdopenr=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_bfd_bfd_fdopenr=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_fdopenr" >&5 $as_echo "$ac_cv_lib_bfd_bfd_fdopenr" >&6; } if test "x$ac_cv_lib_bfd_bfd_fdopenr" = x""yes; then LIBS="-lbfd -lz $LIBS"; Z_LIB="-lz" else { { $as_echo "$as_me:$LINENO: error: bfd library not found" >&5 $as_echo "$as_me: error: bfd library not found" >&2;} { (exit 1); exit 1; }; } fi else { { $as_echo "$as_me:$LINENO: error: libz library not found; required by libbfd" >&5 $as_echo "$as_me: error: libz library not found; required by libbfd" >&2;} { (exit 1); exit 1; }; } fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Determine if bfd_get_synthetic_symtab macro is available OS="`uname`" if test "$OS" = "Linux"; then { $as_echo "$as_me:$LINENO: checking whether bfd_get_synthetic_symtab() exists in BFD library" >&5 $as_echo_n "checking whether bfd_get_synthetic_symtab() exists in BFD library... " >&6; } rm -f test-for-synth cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { asymbol * synthsyms; bfd * ibfd = 0; long synth_count = bfd_get_synthetic_symtab(ibfd, 0, 0, 0, 0, &synthsyms); extern const bfd_target bfd_elf64_powerpc_vec; extern const bfd_target bfd_elf64_powerpcle_vec; char * ppc_name = bfd_elf64_powerpc_vec.name; char * ppcle_name = bfd_elf64_powerpcle_vec.name; printf("%s %s\n", ppc_name, ppcle_name); ; return 0; } _ACEOF $CC conftest.$ac_ext $CFLAGS $LDFLAGS $LIBS -o test-for-synth > /dev/null 2>&1 if test -f test-for-synth; then echo "yes" SYNTHESIZE_SYMBOLS='1' else echo "no" SYNTHESIZE_SYMBOLS='0' fi cat >>confdefs.h <<_ACEOF #define SYNTHESIZE_SYMBOLS $SYNTHESIZE_SYMBOLS _ACEOF rm -f test-for-synth* fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Now we can restore original flag values, and may as well do the # AC_SUBST, too. CPPFLAGS="$CPPFLAGS_SAVE" LDFLAGS="$LDFLAGS_SAVE" # On Cell BE architecture, OProfile uses bfd_openr_iovec when processing some # SPU profiles. To parse embedded SPU ELF on Cell BE, OProfile requires a # version of bfd_openr_iovec that supports the elf32-spu target. # This version of the function also has a 7th parameter that's been added. # First, we check for existence of the base bfd_openr_iovec. If it exists, # we then use a temporary test program below that passes 7 arguments to # bfd_openr_iovec; if it compiles OK, we assume we have the right BFD # library to support Cell BE SPU profiling. ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:$LINENO: checking for bfd_openr_iovec in -lbfd" >&5 $as_echo_n "checking for bfd_openr_iovec in -lbfd... " >&6; } if test "${ac_cv_lib_bfd_bfd_openr_iovec+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfd $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char bfd_openr_iovec (); int main () { return bfd_openr_iovec (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_bfd_bfd_openr_iovec=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_bfd_bfd_openr_iovec=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_openr_iovec" >&5 $as_echo "$ac_cv_lib_bfd_bfd_openr_iovec" >&6; } if test "x$ac_cv_lib_bfd_bfd_openr_iovec" = x""yes; then bfd_openr_iovec_exists="yes" else bfd_openr_iovec_exists="no" fi if test "$bfd_openr_iovec_exists" = "yes"; then { $as_echo "$as_me:$LINENO: checking whether bfd_openr_iovec has seven parameters" >&5 $as_echo_n "checking whether bfd_openr_iovec has seven parameters... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { struct bfd *nbfd = bfd_openr_iovec("some-file", "elf32-spu", NULL, NULL, NULL, NULL, NULL); return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then cat >>confdefs.h <<\_ACEOF #define HAVE_BFD_OPENR_IOVEC_WITH_7PARMS /**/ _ACEOF bfd_open_iovec_7="yes" { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu arch="unknown" # Check whether --with-target was given. if test "${with_target+set}" = set; then withval=$with_target; arch=$withval fi if test "$arch" = "cell-be"; then if test "$bfd_open_iovec_7" = "yes"; then { $as_echo "$as_me:$LINENO: BFD library has support for Cell Broadband Engine SPU profiling" >&5 $as_echo "$as_me: BFD library has support for Cell Broadband Engine SPU profiling" >&6;} else { { $as_echo "$as_me:$LINENO: error: BFD library does not support elf32-spu target; SPU profiling is unsupported" >&5 $as_echo "$as_me: error: BFD library does not support elf32-spu target; SPU profiling is unsupported" >&2;} { (exit 1); exit 1; }; } fi fi # C++ tests ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:$LINENO: checking popt prototype" >&5 $as_echo_n "checking popt prototype... " >&6; } SAVE_CXXFLAGS=$CXXFLAGS CXXFLAGS="-Werror $CXXFLAGS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { int c; char **v; poptGetContext(0, c, v, 0, 0); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then { $as_echo "$as_me:$LINENO: result: takes char **" >&5 $as_echo "takes char **" >&6; }; else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: takes const char **" >&5 $as_echo "takes const char **" >&6; }; cat >>confdefs.h <<\_ACEOF #define CONST_POPT 1 _ACEOF fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CXXFLAGS="$SAVE_CXXFLAGS" { $as_echo "$as_me:$LINENO: checking whether to use included sstream" >&5 $as_echo_n "checking whether to use included sstream... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; }; else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; }; OP_CXXFLAGS="$OP_CXXFLAGS -I\${top_srcdir}/include" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:$LINENO: checking whether bfd defines bool" >&5 $as_echo_n "checking whether bfd defines bool... " >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; }; else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF #define TRUE_FALSE_ALREADY_DEFINED 1 _ACEOF fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:$LINENO: checking type of size_t" >&5 $as_echo_n "checking type of size_t... " >&6; } for f in "unsigned" "unsigned long"; do ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu SAVE_CFLAGS=$CFLAGS CFLAGS="-Werror $CFLAGS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { typedef void (*fct1)(size_t); typedef void (*fct2)($f); fct1 f1 = 0; fct2 f2 = 0; if (f1 == f2) {} ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then SIZE_T_TYPE="$f" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 SIZE_T_TYPE="" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS=$SAVE_CFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -n "${SIZE_T_TYPE}"; then break fi done if test -n "${SIZE_T_TYPE}"; then { $as_echo "$as_me:$LINENO: result: ${SIZE_T_TYPE}" >&5 $as_echo "${SIZE_T_TYPE}" >&6; } else { { $as_echo "$as_me:$LINENO: error: not found" >&5 $as_echo "$as_me: error: not found" >&2;} { (exit 1); exit 1; }; } fi { $as_echo "$as_me:$LINENO: checking type of ptrdiff_t" >&5 $as_echo_n "checking type of ptrdiff_t... " >&6; } for f in "int" "long"; do ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu SAVE_CFLAGS=$CFLAGS CFLAGS="-Werror $CFLAGS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { typedef void (*fct1)(ptrdiff_t); typedef void (*fct2)($f); fct1 f1 = 0; fct2 f2 = 0; if (f1 == f2) {} ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then PTRDIFF_T_TYPE="$f" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 PTRDIFF_T_TYPE="" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS=$SAVE_CFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -n "${PTRDIFF_T_TYPE}"; then break fi done if test -n "${PTRDIFF_T_TYPE}"; then { $as_echo "$as_me:$LINENO: result: ${PTRDIFF_T_TYPE}" >&5 $as_echo "${PTRDIFF_T_TYPE}" >&6; } else { { $as_echo "$as_me:$LINENO: error: not found" >&5 $as_echo "$as_me: error: not found" >&2;} { (exit 1); exit 1; }; } fi { $as_echo "$as_me:$LINENO: checking for X" >&5 $as_echo_n "checking for X... " >&6; } # Check whether --with-x was given. if test "${with_x+set}" = set; then withval=$with_x; fi # $have_x is `yes', `no', `disabled', or empty when we do not yet know. if test "x$with_x" = xno; then # The user explicitly disabled X. have_x=disabled else case $x_includes,$x_libraries in #( *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;} { (exit 1); exit 1; }; };; #( *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then $as_echo_n "(cached) " >&6 else # One or both of the vars are not set, and there is no cached value. ac_x_includes=no ac_x_libraries=no rm -f -r conftest.dir if mkdir conftest.dir; then cd conftest.dir cat >Imakefile <<'_ACEOF' incroot: @echo incroot='${INCROOT}' usrlibdir: @echo usrlibdir='${USRLIBDIR}' libdir: @echo libdir='${LIBDIR}' _ACEOF if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then # GNU make sometimes prints "make[1]: Entering...", which would confuse us. for ac_var in incroot usrlibdir libdir; do eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" done # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. for ac_extension in a so sl dylib la dll; do if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && test -f "$ac_im_libdir/libX11.$ac_extension"; then ac_im_usrlibdir=$ac_im_libdir; break fi done # Screen out bogus values from the imake configuration. They are # bogus both because they are the default anyway, and because # using them would break gcc on systems where it needs fixed includes. case $ac_im_incroot in /usr/include) ac_x_includes= ;; *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; esac case $ac_im_usrlibdir in /usr/lib | /usr/lib64 | /lib | /lib64) ;; *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; esac fi cd .. rm -f -r conftest.dir fi # Standard set of common directories for X headers. # Check X11 before X11Rn because it is often a symlink to the current release. ac_x_header_dirs=' /usr/X11/include /usr/X11R6/include /usr/X11R5/include /usr/X11R4/include /usr/include/X11 /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 /usr/local/X11/include /usr/local/X11R6/include /usr/local/X11R5/include /usr/local/X11R4/include /usr/local/include/X11 /usr/local/include/X11R6 /usr/local/include/X11R5 /usr/local/include/X11R4 /usr/X386/include /usr/x386/include /usr/XFree86/include/X11 /usr/include /usr/local/include /usr/unsupported/include /usr/athena/include /usr/local/x11r5/include /usr/lpp/Xamples/include /usr/openwin/include /usr/openwin/share/include' if test "$ac_x_includes" = no; then # Guess where to find include files, by looking for Xlib.h. # First, try using that file with no special directory specified. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then # We can compile using X headers with no special include directory. ac_x_includes= else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 for ac_dir in $ac_x_header_dirs; do if test -r "$ac_dir/X11/Xlib.h"; then ac_x_includes=$ac_dir break fi done fi rm -f conftest.err conftest.$ac_ext fi # $ac_x_includes = no if test "$ac_x_libraries" = no; then # Check for the libraries. # See if we find them without any special options. # Don't add to $LIBS permanently. ac_save_LIBS=$LIBS LIBS="-lX11 $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { XrmInitialize () ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then LIBS=$ac_save_LIBS # We can link X programs with no special library path. ac_x_libraries= else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 LIBS=$ac_save_LIBS for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` do # Don't even attempt the hair of trying to link an X program! for ac_extension in a so sl dylib la dll; do if test -r "$ac_dir/libX11.$ac_extension"; then ac_x_libraries=$ac_dir break 2 fi done done fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi # $ac_x_libraries = no case $ac_x_includes,$ac_x_libraries in #( no,* | *,no | *\'*) # Didn't find X, or a directory has "'" in its name. ac_cv_have_x="have_x=no";; #( *) # Record where we found X for the cache. ac_cv_have_x="have_x=yes\ ac_x_includes='$ac_x_includes'\ ac_x_libraries='$ac_x_libraries'" esac fi ;; #( *) have_x=yes;; esac eval "$ac_cv_have_x" fi # $with_x != no if test "$have_x" != yes; then { $as_echo "$as_me:$LINENO: result: $have_x" >&5 $as_echo "$have_x" >&6; } no_x=yes else # If each of the values was on the command line, it overrides each guess. test "x$x_includes" = xNONE && x_includes=$ac_x_includes test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries # Update the cache value to reflect the command line values. ac_cv_have_x="have_x=yes\ ac_x_includes='$x_includes'\ ac_x_libraries='$x_libraries'" { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } fi if test "$no_x" = yes; then # Not all programs may use this symbol, but it does not hurt to define it. cat >>confdefs.h <<\_ACEOF #define X_DISPLAY_MISSING 1 _ACEOF X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= else if test -n "$x_includes"; then X_CFLAGS="$X_CFLAGS -I$x_includes" fi # It would also be nice to do this for all -L options, not just this one. if test -n "$x_libraries"; then X_LIBS="$X_LIBS -L$x_libraries" # For Solaris; some versions of Sun CC require a space after -R and # others require no space. Words are not sufficient . . . . { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 $as_echo_n "checking whether -R must be followed by a space... " >&6; } ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } X_LIBS="$X_LIBS -R$x_libraries" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 LIBS="$ac_xsave_LIBS -R $x_libraries" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } X_LIBS="$X_LIBS -R $x_libraries" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: neither works" >&5 $as_echo "neither works" >&6; } fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag LIBS=$ac_xsave_LIBS fi # Check for system-dependent libraries X programs must link with. # Do this before checking for the system-independent R6 libraries # (-lICE), since we may need -lsocket or whatever for X linking. if test "$ISC" = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" else # Martyn Johnson says this is needed for Ultrix, if the X # libraries were built with DECnet support. And Karl Berry says # the Alpha needs dnet_stub (dnet does not exist). ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char XOpenDisplay (); int main () { return XOpenDisplay (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then : else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dnet_ntoa (); int main () { return dnet_ntoa (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_dnet_dnet_ntoa=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dnet_dnet_ntoa=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" fi if test $ac_cv_lib_dnet_dnet_ntoa = no; then { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet_stub $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dnet_ntoa (); int main () { return dnet_ntoa (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_dnet_stub_dnet_ntoa=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dnet_stub_dnet_ntoa=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" fi fi fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS="$ac_xsave_LIBS" # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, # to get the SysV transport functions. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) # needs -lnsl. # The nsl library prevents programs from opening the X display # on Irix 5.2, according to T.E. Dickey. # The functions gethostbyname, getservbyname, and inet_addr are # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5 $as_echo_n "checking for gethostbyname... " >&6; } if test "${ac_cv_func_gethostbyname+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define gethostbyname to an innocuous variant, in case declares gethostbyname. For example, HP-UX 11i declares gettimeofday. */ #define gethostbyname innocuous_gethostbyname /* System header to define __stub macros and hopefully few prototypes, which can conflict with char gethostbyname (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef gethostbyname /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_gethostbyname || defined __stub___gethostbyname choke me #endif int main () { return gethostbyname (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_func_gethostbyname=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_gethostbyname=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 $as_echo "$ac_cv_func_gethostbyname" >&6; } if test $ac_cv_func_gethostbyname = no; then { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lnsl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_nsl_gethostbyname=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_nsl_gethostbyname=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" fi if test $ac_cv_lib_nsl_gethostbyname = no; then { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbsd $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_bsd_gethostbyname=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_bsd_gethostbyname=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" fi fi fi # lieder@skyler.mavd.honeywell.com says without -lsocket, # socket/setsockopt and other routines are undefined under SCO ODT # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary # on later versions), says Simon Leinen: it contains gethostby* # variants that don't use the name server (or something). -lsocket # must be given before -lnsl if both are needed. We assume that # if connect needs -lnsl, so does gethostbyname. { $as_echo "$as_me:$LINENO: checking for connect" >&5 $as_echo_n "checking for connect... " >&6; } if test "${ac_cv_func_connect+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define connect to an innocuous variant, in case declares connect. For example, HP-UX 11i declares gettimeofday. */ #define connect innocuous_connect /* System header to define __stub macros and hopefully few prototypes, which can conflict with char connect (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef connect /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char connect (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_connect || defined __stub___connect choke me #endif int main () { return connect (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_func_connect=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_connect=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 $as_echo "$ac_cv_func_connect" >&6; } if test $ac_cv_func_connect = no; then { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 $as_echo_n "checking for connect in -lsocket... " >&6; } if test "${ac_cv_lib_socket_connect+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $X_EXTRA_LIBS $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char connect (); int main () { return connect (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_socket_connect=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_socket_connect=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 $as_echo "$ac_cv_lib_socket_connect" >&6; } if test "x$ac_cv_lib_socket_connect" = x""yes; then X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" fi fi # Guillermo Gomez says -lposix is necessary on A/UX. { $as_echo "$as_me:$LINENO: checking for remove" >&5 $as_echo_n "checking for remove... " >&6; } if test "${ac_cv_func_remove+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define remove to an innocuous variant, in case declares remove. For example, HP-UX 11i declares gettimeofday. */ #define remove innocuous_remove /* System header to define __stub macros and hopefully few prototypes, which can conflict with char remove (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef remove /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char remove (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_remove || defined __stub___remove choke me #endif int main () { return remove (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_func_remove=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_remove=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 $as_echo "$ac_cv_func_remove" >&6; } if test $ac_cv_func_remove = no; then { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5 $as_echo_n "checking for remove in -lposix... " >&6; } if test "${ac_cv_lib_posix_remove+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lposix $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char remove (); int main () { return remove (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_posix_remove=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_posix_remove=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 $as_echo "$ac_cv_lib_posix_remove" >&6; } if test "x$ac_cv_lib_posix_remove" = x""yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" fi fi # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. { $as_echo "$as_me:$LINENO: checking for shmat" >&5 $as_echo_n "checking for shmat... " >&6; } if test "${ac_cv_func_shmat+set}" = set; then $as_echo_n "(cached) " >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define shmat to an innocuous variant, in case declares shmat. For example, HP-UX 11i declares gettimeofday. */ #define shmat innocuous_shmat /* System header to define __stub macros and hopefully few prototypes, which can conflict with char shmat (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef shmat /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shmat (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_shmat || defined __stub___shmat choke me #endif int main () { return shmat (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_func_shmat=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_shmat=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 $as_echo "$ac_cv_func_shmat" >&6; } if test $ac_cv_func_shmat = no; then { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 $as_echo_n "checking for shmat in -lipc... " >&6; } if test "${ac_cv_lib_ipc_shmat+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lipc $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shmat (); int main () { return shmat (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_ipc_shmat=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_ipc_shmat=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } if test "x$ac_cv_lib_ipc_shmat" = x""yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" fi fi fi # Check for libraries that X11R6 Xt/Xaw programs need. ac_save_LDFLAGS=$LDFLAGS test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to # check for ICE first), but we must link in the order -lSM -lICE or # we get undefined symbols. So assume we have SM if we have ICE. # These have to be linked with before -lX11, unlike the other # libraries we check for below, so use a different variable. # John Interrante, Karl Berry { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lICE $X_EXTRA_LIBS $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char IceConnectionNumber (); int main () { return IceConnectionNumber (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then ac_cv_lib_ICE_IceConnectionNumber=yes else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_ICE_IceConnectionNumber=no fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" fi LDFLAGS=$ac_save_LDFLAGS fi ORIG_X_SAVE_LIBS="$LIBS" LIBS="$X_PRE_LIBS $LIBS $X_LIBS -lX11 $X_EXTRA_LIBS" X_LIBS="$LIBS" # Check whether --enable-gui was given. if test "${enable_gui+set}" = set; then enableval=$enable_gui; else enable_gui=qt3 fi if test "x$enable_gui" = "xqt3" || test "x$enable_gui" = "xyes"; then QT_VERSION=3 FATAL=0 # Check whether --with-qt-dir was given. if test "${with_qt_dir+set}" = set; then withval=$with_qt_dir; qt_cv_dir=`eval echo "$withval"/` fi # Check whether --with-qt-includes was given. if test "${with_qt_includes+set}" = set; then withval=$with_qt_includes; qt_cv_includes=`eval echo "$withval"` fi # Check whether --with-qt-libraries was given. if test "${with_qt_libraries+set}" = set; then withval=$with_qt_libraries; qt_cv_libraries=`eval echo "$withval"` fi if test -z "$qt_cv_dir"; then qt_cv_dir=$QTDIR fi if test -n "$qt_cv_dir"; then if test -z "$qt_cv_includes"; then qt_cv_includes=$qt_cv_dir/include fi if test -z "$qt_cv_libraries"; then qt_cv_libraries=$qt_cv_dir/lib fi fi QT_INCLUDES= QT_LDFLAGS= if test -n "$qt_cv_includes"; then QT_INCLUDES="-isystem $qt_cv_includes" fi if test -n "$qt_cv_libraries"; then QT_LDFLAGS="-L$qt_cv_libraries" fi { $as_echo "$as_me:$LINENO: checking for moc2" >&5 $as_echo_n "checking for moc2... " >&6; } if test "${qt_cv_path_moc2+set}" = set; then $as_echo_n "(cached) " >&6 else qt_cv_path_moc2="NONE" if test -n "$ac_moc2"; then qt_cv_path_moc2="$ac_moc2"; else dirs="$qt_cv_dir/bin" qt_save_IFS=$IFS IFS=':' for dir in $PATH; do dirs="$dirs $dir" done IFS=$qt_save_IFS for dir in $dirs; do if test -x "$dir/moc2"; then if test -n ""; then evalstr="$dir/moc2 2>&1 " if eval $evalstr; then qt_cv_path_moc2="$dir/moc2" break fi else qt_cv_path_moc2="$dir/moc2" break fi fi done fi fi if test -z "$qt_cv_path_moc2" || test "$qt_cv_path_moc2" = "NONE"; then { $as_echo "$as_me:$LINENO: result: not found" >&5 $as_echo "not found" >&6; } else { $as_echo "$as_me:$LINENO: result: $qt_cv_path_moc2" >&5 $as_echo "$qt_cv_path_moc2" >&6; } ac_moc2=$qt_cv_path_moc2 fi { $as_echo "$as_me:$LINENO: checking for moc" >&5 $as_echo_n "checking for moc... " >&6; } if test "${qt_cv_path_moc+set}" = set; then $as_echo_n "(cached) " >&6 else qt_cv_path_moc="NONE" if test -n "$ac_moc1"; then qt_cv_path_moc="$ac_moc1"; else dirs="$qt_cv_dir/bin" qt_save_IFS=$IFS IFS=':' for dir in $PATH; do dirs="$dirs $dir" done IFS=$qt_save_IFS for dir in $dirs; do if test -x "$dir/moc"; then if test -n ""; then evalstr="$dir/moc 2>&1 " if eval $evalstr; then qt_cv_path_moc="$dir/moc" break fi else qt_cv_path_moc="$dir/moc" break fi fi done fi fi if test -z "$qt_cv_path_moc" || test "$qt_cv_path_moc" = "NONE"; then { $as_echo "$as_me:$LINENO: result: not found" >&5 $as_echo "not found" >&6; } else { $as_echo "$as_me:$LINENO: result: $qt_cv_path_moc" >&5 $as_echo "$qt_cv_path_moc" >&6; } ac_moc1=$qt_cv_path_moc fi if test -n "$ac_moc1" -a -n "$ac_moc2"; then $ac_moc1 -v 2>&1 | grep "Qt 3" >/dev/null if test "$?" = 0; then ac_moc=$ac_moc1; else ac_moc=$ac_moc2; fi else if test -n "$ac_moc1"; then ac_moc=$ac_moc1; else ac_moc=$ac_moc2; fi fi if test -z "$ac_moc" -a "$FATAL" = 1; then { { $as_echo "$as_me:$LINENO: error: moc binary not found in \$PATH or $qt_cv_dir/bin !" >&5 $as_echo "$as_me: error: moc binary not found in \$PATH or $qt_cv_dir/bin !" >&2;} { (exit 1); exit 1; }; } fi MOC=$ac_moc { $as_echo "$as_me:$LINENO: checking for uic" >&5 $as_echo_n "checking for uic... " >&6; } if test "${qt_cv_path_uic+set}" = set; then $as_echo_n "(cached) " >&6 else qt_cv_path_uic="NONE" if test -n "$ac_uic"; then qt_cv_path_uic="$ac_uic"; else dirs="$qt_cv_dir/bin" qt_save_IFS=$IFS IFS=':' for dir in $PATH; do dirs="$dirs $dir" done IFS=$qt_save_IFS for dir in $dirs; do if test -x "$dir/uic"; then if test -n ""; then evalstr="$dir/uic 2>&1 " if eval $evalstr; then qt_cv_path_uic="$dir/uic" break fi else qt_cv_path_uic="$dir/uic" break fi fi done fi fi if test -z "$qt_cv_path_uic" || test "$qt_cv_path_uic" = "NONE"; then { $as_echo "$as_me:$LINENO: result: not found" >&5 $as_echo "not found" >&6; } else { $as_echo "$as_me:$LINENO: result: $qt_cv_path_uic" >&5 $as_echo "$qt_cv_path_uic" >&6; } ac_uic=$qt_cv_path_uic fi if test -z "$ac_uic" -a "$FATAL" = 1; then { { $as_echo "$as_me:$LINENO: error: uic binary not found in \$PATH or $qt_cv_dir/bin !" >&5 $as_echo "$as_me: error: uic binary not found in \$PATH or $qt_cv_dir/bin !" >&2;} { (exit 1); exit 1; }; } fi UIC=$ac_uic { $as_echo "$as_me:$LINENO: checking in lib for Qt library name" >&5 $as_echo_n "checking in lib for Qt library name... " >&6; } if test "${qt_cv_libname+set}" = set; then $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu SAVE_CXXFLAGS=$CXXFLAGS CXXFLAGS="$CXXFLAGS $QT_INCLUDES $QT_LDFLAGS" for libname in -lqt-mt -lqt3 -lqt2 -lqt; do SAVE_LIBS="$LIBS" LIBS="$LIBS $libname" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { QString s("mangle_failure"); #if (QT_VERSION < 221) break_me_(\\\); #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then qt_cv_libname=$libname else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS="$SAVE_LIBS" if test -n "$qt_cv_libname"; then break; fi done CXXFLAGS=$SAVE_CXXFLAGS fi if test -z "$qt_cv_libname"; then { $as_echo "$as_me:$LINENO: result: failed" >&5 $as_echo "failed" >&6; } if test "$FATAL" = 1 ; then { { $as_echo "$as_me:$LINENO: error: Cannot compile a simple Qt executable. Check you have the right \$QTDIR !" >&5 $as_echo "$as_me: error: Cannot compile a simple Qt executable. Check you have the right \$QTDIR !" >&2;} { (exit 1); exit 1; }; } fi else { $as_echo "$as_me:$LINENO: result: $qt_cv_libname" >&5 $as_echo "$qt_cv_libname" >&6; } fi if test -z "$qt_cv_libname"; then if test -n "$qt_cv_dir"; then qt_cv_libraries=$qt_cv_dir/lib64 QT_LDFLAGS="-L$qt_cv_libraries" { $as_echo "$as_me:$LINENO: checking in lib64 for Qt library name" >&5 $as_echo_n "checking in lib64 for Qt library name... " >&6; } if test "${qt_cv_libname+set}" = set; then $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu SAVE_CXXFLAGS=$CXXFLAGS CXXFLAGS="$CXXFLAGS $QT_INCLUDES $QT_LDFLAGS" for libname in -lqt-mt -lqt3 -lqt2 -lqt; do SAVE_LIBS="$LIBS" LIBS="$LIBS $libname" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { QString s("mangle_failure"); #if (QT_VERSION < 221) break_me_(\\\); #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then qt_cv_libname=$libname else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS="$SAVE_LIBS" if test -n "$qt_cv_libname"; then break; fi done CXXFLAGS=$SAVE_CXXFLAGS fi if test -z "$qt_cv_libname"; then { $as_echo "$as_me:$LINENO: result: failed" >&5 $as_echo "failed" >&6; } if test "$FATAL" = 1 ; then { { $as_echo "$as_me:$LINENO: error: Cannot compile a simple Qt executable. Check you have the right \$QTDIR !" >&5 $as_echo "$as_me: error: Cannot compile a simple Qt executable. Check you have the right \$QTDIR !" >&2;} { (exit 1); exit 1; }; } fi else { $as_echo "$as_me:$LINENO: result: $qt_cv_libname" >&5 $as_echo "$qt_cv_libname" >&6; } fi fi fi QT_LIB=$qt_cv_libname; if test -n "$qt_cv_libname"; then { $as_echo "$as_me:$LINENO: checking Qt version" >&5 $as_echo_n "checking Qt version... " >&6; } if test "${lyx_cv_qtversion+set}" = set; then $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu SAVE_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $QT_INCLUDES" cat > conftest.$ac_ext < "%%%"QT_VERSION_STR"%%%" EOF lyx_cv_qtversion=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | \ grep '^"%%%"' 2>/dev/null | \ sed -e 's/"%%%"//g' -e 's/"//g'` rm -f conftest.$ac_ext CPPFLAGS=$SAVE_CPPFLAGS fi { $as_echo "$as_me:$LINENO: result: $lyx_cv_qtversion" >&5 $as_echo "$lyx_cv_qtversion" >&6; } QT_VERSION=$lyx_cv_qtversion fi if test -n "$QT_LIB"; then QT_LIBS="$QT_LIB $QT_LDFLAGS" fi QT_CFLAGS="$QT_INCLUDES" fi if test "x$enable_gui" = "xqt4"; then QT_VERSION=4 pkg_failed=no { $as_echo "$as_me:$LINENO: checking for QT" >&5 $as_echo_n "checking for QT... " >&6; } if test -n "$QT_CFLAGS"; then pkg_cv_QT_CFLAGS="$QT_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"Qt3Support QtGui QtCore \"") >&5 ($PKG_CONFIG --exists --print-errors "Qt3Support QtGui QtCore ") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_QT_CFLAGS=`$PKG_CONFIG --cflags "Qt3Support QtGui QtCore " 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$QT_LIBS"; then pkg_cv_QT_LIBS="$QT_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"Qt3Support QtGui QtCore \"") >&5 ($PKG_CONFIG --exists --print-errors "Qt3Support QtGui QtCore ") 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_QT_LIBS=`$PKG_CONFIG --libs "Qt3Support QtGui QtCore " 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then QT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "Qt3Support QtGui QtCore " 2>&1` else QT_PKG_ERRORS=`$PKG_CONFIG --print-errors "Qt3Support QtGui QtCore " 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$QT_PKG_ERRORS" >&5 { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } echo "You requested QT4 but its build files are not available. Exiting now." exit elif test $pkg_failed = untried; then echo "You requested QT4 but its build files are not available. Exiting now." exit else QT_CFLAGS=$pkg_cv_QT_CFLAGS QT_LIBS=$pkg_cv_QT_LIBS { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; } : fi MOC=$(pkg-config --variable=moc_location QtCore) UIC=$(dirname $(pkg-config --variable=uic_location QtCore))/uic3 QT_VERSION=$(pkg-config --modversion QtCore) if test "x$MOC" = "x"; then echo "WARNING: Your QtCore.pc file is buggy, it doesn't provide the variable 'moc_location'" echo "WARNING: I will try to find it in your PATH ..." # Extract the first word of "moc", so it can be a program name with args. set dummy moc; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_MOC+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$MOC"; then ac_cv_prog_MOC="$MOC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_MOC="moc" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi MOC=$ac_cv_prog_MOC if test -n "$MOC"; then { $as_echo "$as_me:$LINENO: result: $MOC" >&5 $as_echo "$MOC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$MOC" = "x"; then echo "WARNING: You can fix this by adding the location of moc to your path." echo "WARNING: Exiting now." exit fi fi if test "x$UIC" = "x3"; then echo "WARNING: Your QtCore.pc file is buggy, it doesn't provide the variable 'uic_location'" echo "WARNING: I will try to find it in your PATH ..." # Extract the first word of "uic3", so it can be a program name with args. set dummy uic3; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_UIChelp+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$UIChelp"; then ac_cv_prog_UIChelp="$UIChelp" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_UIChelp="uic3" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi UIChelp=$ac_cv_prog_UIChelp if test -n "$UIChelp"; then { $as_echo "$as_me:$LINENO: result: $UIChelp" >&5 $as_echo "$UIChelp" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi if test "x$UIChelp" = "x"; then echo "WARNING: You can fix this by adding the location of uic3 to your path." echo "WARNING: Exiting now." exit else UIC="$UIChelp" fi fi flags_has_qt3support=$(echo $QT_CFLAGS | grep QT3_SUPPORT) if test "x$flags_has_qt3support" = "x" ; then echo "WARNING: Your Qt3Support package is buggy; it dosn't include the 'QT3_SUPPORT' flag" echo "WARNING: adding it manually" QT_CFLAGS="$QT_CFLAGS -DQT3_SUPPORT" fi fi if test -n "$QT_LIBS"; then have_qt_TRUE= have_qt_FALSE='#' else have_qt_TRUE='#' have_qt_FALSE= fi LIBS="$ORIG_X_SAVE_LIBS" # Check whether --enable-pch was given. if test "${enable_pch+set}" = set; then enableval=$enable_pch; enable_pch=$enableval else enable_pch=no fi if test "$enable_pch" = yes; then { $as_echo "$as_me:$LINENO: checking whether ${CXX} support precompiled header" >&5 $as_echo_n "checking whether ${CXX} support precompiled header... " >&6; } ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu SAVE_CXXFLAGS=$CXXFLAGS CXXFLAGS=-Winvalid-pch cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; }; OP_CXXFLAGS="${OP_CXXFLAGS} -include bits/stdc++.h" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CXXFLAGS=$SAVE_CXXFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi # It's just rude to go over the net to build XSLTPROC_FLAGS=--nonet DOCBOOK_ROOT= if test ! -f /etc/xml/catalog; then for i in /usr/share/sgml/docbook/stylesheet/xsl/nwalsh /usr/share/sgml/docbook/xsl-stylesheets/; do if test -d "$i"; then DOCBOOK_ROOT=$i fi done # Last resort - try net if test -z "$DOCBOOK_ROOT"; then XSLTPROC_FLAGS= fi else XML_CATALOG=/etc/xml/catalog CAT_ENTRY_START='' fi # Extract the first word of "xsltproc", so it can be a program name with args. set dummy xsltproc; ac_word=$2 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_XSLTPROC+set}" = set; then $as_echo_n "(cached) " >&6 else if test -n "$XSLTPROC"; then ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_XSLTPROC="xsltproc" $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi XSLTPROC=$ac_cv_prog_XSLTPROC if test -n "$XSLTPROC"; then { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5 $as_echo "$XSLTPROC" >&6; } else { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi XSLTPROC_WORKS=no if test -n "$XSLTPROC"; then { $as_echo "$as_me:$LINENO: checking whether xsltproc works" >&5 $as_echo_n "checking whether xsltproc works... " >&6; } if test -n "$XML_CATALOG"; then DB_FILE="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl" else DB_FILE="$DOCBOOK_ROOT/docbook.xsl" fi $XSLTPROC $XSLTPROC_FLAGS $DB_FILE >/dev/null 2>&1 << END END if test "$?" = 0; then XSLTPROC_WORKS=yes fi { $as_echo "$as_me:$LINENO: result: $XSLTPROC_WORKS" >&5 $as_echo "$XSLTPROC_WORKS" >&6; } fi if test "$XSLTPROC_WORKS" = "yes"; then have_xsltproc_TRUE= have_xsltproc_FALSE='#' else have_xsltproc_TRUE='#' have_xsltproc_FALSE= fi LIBS="$ORIG_SAVE_LIBS" LIBERTY_LIBS="-liberty $DL_LIB $INTL_LIB" BFD_LIBS="-lbfd -liberty $DL_LIB $INTL_LIB $Z_LIB" POPT_LIBS="-lpopt" # do NOT put tests here, they will fail in the case X is not installed ! { $as_echo "$as_me:$LINENO: checking whether ${CC} -W is understood" >&5 $as_echo_n "checking whether ${CC} -W is understood... " >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu SAVE_CFLAGS=$CFLAGS CFLAGS=-W cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; }; OP_CFLAGS="${OP_CFLAGS} -W" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS=$SAVE_CFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:$LINENO: checking whether ${CXX} -W is understood" >&5 $as_echo_n "checking whether ${CXX} -W is understood... " >&6; } ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu SAVE_CXXFLAGS=$CXXFLAGS CXXFLAGS=-W cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; }; OP_CXXFLAGS="${OP_CXXFLAGS} -W" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CXXFLAGS=$SAVE_CXXFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:$LINENO: checking whether ${CC} -Wall is understood" >&5 $as_echo_n "checking whether ${CC} -Wall is understood... " >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu SAVE_CFLAGS=$CFLAGS CFLAGS=-Wall cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; }; OP_CFLAGS="${OP_CFLAGS} -Wall" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS=$SAVE_CFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:$LINENO: checking whether ${CXX} -Wall is understood" >&5 $as_echo_n "checking whether ${CXX} -Wall is understood... " >&6; } ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu SAVE_CXXFLAGS=$CXXFLAGS CXXFLAGS=-Wall cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; }; OP_CXXFLAGS="${OP_CXXFLAGS} -Wall" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CXXFLAGS=$SAVE_CXXFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:$LINENO: checking whether ${CC} -fno-common is understood" >&5 $as_echo_n "checking whether ${CC} -fno-common is understood... " >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu SAVE_CFLAGS=$CFLAGS CFLAGS=-fno-common cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; }; OP_CFLAGS="${OP_CFLAGS} -fno-common" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS=$SAVE_CFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:$LINENO: checking whether ${CXX} -fno-common is understood" >&5 $as_echo_n "checking whether ${CXX} -fno-common is understood... " >&6; } ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu SAVE_CXXFLAGS=$CXXFLAGS CXXFLAGS=-fno-common cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; }; OP_CXXFLAGS="${OP_CXXFLAGS} -fno-common" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CXXFLAGS=$SAVE_CXXFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:$LINENO: checking whether ${CXX} -ftemplate-depth-50 is understood" >&5 $as_echo_n "checking whether ${CXX} -ftemplate-depth-50 is understood... " >&6; } ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu SAVE_CXXFLAGS=$CXXFLAGS CXXFLAGS=-ftemplate-depth-50 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; }; OP_CXXFLAGS="${OP_CXXFLAGS} -ftemplate-depth-50" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CXXFLAGS=$SAVE_CXXFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:$LINENO: checking whether ${CC} -Wdeclaration-after-statement is understood" >&5 $as_echo_n "checking whether ${CC} -Wdeclaration-after-statement is understood... " >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu SAVE_CFLAGS=$CFLAGS CFLAGS=-Wdeclaration-after-statement cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; }; OP_CFLAGS="${OP_CFLAGS} -Wdeclaration-after-statement" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS=$SAVE_CFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu # Check whether --enable-gcov was given. if test "${enable_gcov+set}" = set; then enableval=$enable_gcov; enable_gcov=$enableval else enable_gcov=no fi if test "$enable_gcov" = yes; then { $as_echo "$as_me:$LINENO: checking whether ${CC} -fprofile-arcs is understood" >&5 $as_echo_n "checking whether ${CC} -fprofile-arcs is understood... " >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu SAVE_CFLAGS=$CFLAGS CFLAGS=-fprofile-arcs cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; }; OP_CFLAGS="${OP_CFLAGS} -fprofile-arcs" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS=$SAVE_CFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:$LINENO: checking whether ${CXX} -fprofile-arcs is understood" >&5 $as_echo_n "checking whether ${CXX} -fprofile-arcs is understood... " >&6; } ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu SAVE_CXXFLAGS=$CXXFLAGS CXXFLAGS=-fprofile-arcs cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; }; OP_CXXFLAGS="${OP_CXXFLAGS} -fprofile-arcs" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CXXFLAGS=$SAVE_CXXFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:$LINENO: checking whether ${CC} -ftest-coverage is understood" >&5 $as_echo_n "checking whether ${CC} -ftest-coverage is understood... " >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu SAVE_CFLAGS=$CFLAGS CFLAGS=-ftest-coverage cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; }; OP_CFLAGS="${OP_CFLAGS} -ftest-coverage" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS=$SAVE_CFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:$LINENO: checking whether ${CXX} -ftest-coverage is understood" >&5 $as_echo_n "checking whether ${CXX} -ftest-coverage is understood... " >&6; } ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu SAVE_CXXFLAGS=$CXXFLAGS CXXFLAGS=-ftest-coverage cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; }; OP_CXXFLAGS="${OP_CXXFLAGS} -ftest-coverage" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CXXFLAGS=$SAVE_CXXFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi # Check whether --enable-werror was given. if test "${enable_werror+set}" = set; then enableval=$enable_werror; enable_werror=$enableval else enable_werror=yes fi if test "$enable_werror" = yes; then # enable -Werror for non-release versions. if echo "$VERSION" | grep git >/dev/null; then { $as_echo "$as_me:$LINENO: checking whether ${CC} -Werror is understood" >&5 $as_echo_n "checking whether ${CC} -Werror is understood... " >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu SAVE_CFLAGS=$CFLAGS CFLAGS=-Werror cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; }; OP_CFLAGS="${OP_CFLAGS} -Werror" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS=$SAVE_CFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:$LINENO: checking whether ${CXX} -Werror is understood" >&5 $as_echo_n "checking whether ${CXX} -Werror is understood... " >&6; } ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu SAVE_CXXFLAGS=$CXXFLAGS CXXFLAGS=-Werror cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" $as_echo "$ac_try_echo") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then { $as_echo "$as_me:$LINENO: result: yes" >&5 $as_echo "yes" >&6; }; OP_CXXFLAGS="${OP_CXXFLAGS} -Werror" else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { $as_echo "$as_me:$LINENO: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CXXFLAGS=$SAVE_CXXFLAGS ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi fi # Check whether --enable-optimization was given. if test "${enable_optimization+set}" = set; then enableval=$enable_optimization; enable_optimization=$enableval else enable_optimisation=yes fi if test "$enable_optimization" = "no"; then CFLAGS=`echo $CFLAGS | sed 's/-O2//g'` CXXFLAGS=`echo $CXXFLAGS | sed 's/-O2//g'` fi # Check whether --enable-account-check was given. if test "${enable_account_check+set}" = set; then enableval=$enable_account_check; enable_account_check=$enableval else enable_account_check=yes fi if test "x$enable_account_check" = "xyes"; then CHECK_ACCOUNT_TRUE= CHECK_ACCOUNT_FALSE='#' else CHECK_ACCOUNT_TRUE='#' CHECK_ACCOUNT_FALSE= fi # fixups for config.h if test "$prefix" = "NONE"; then my_op_prefix="$ac_default_prefix" else my_op_prefix="$prefix" fi my_op_datadir="$my_op_prefix/share" if test "$exec_prefix" = "NONE"; then my_op_exec_prefix="$my_op_prefix" else my_op_exec_prefix="$exec_prefix" fi my_op_bindir="$my_op_exec_prefix/bin" OP_DATADIR=`eval echo "$my_op_datadir/$PACKAGE/"` cat >>confdefs.h <<_ACEOF #define OP_DATADIR "$OP_DATADIR" _ACEOF OP_BINDIR=`eval echo "$my_op_bindir/"` cat >>confdefs.h <<_ACEOF #define OP_BINDIR "$OP_BINDIR" _ACEOF OP_DOCDIR=`eval echo "${my_op_prefix}/share/doc/$PACKAGE/"` ac_config_files="$ac_config_files Makefile pe_counting/Makefile libpe_utils/Makefile pe_profiling/Makefile libperf_events/Makefile m4/Makefile libutil/Makefile libutil/tests/Makefile libutil++/Makefile libutil++/tests/Makefile libop/Makefile libop/tests/Makefile libopagent/Makefile libopt++/Makefile libdb/Makefile libdb/tests/Makefile libabi/Makefile libabi/tests/Makefile libregex/Makefile libregex/tests/Makefile libregex/stl.pat libregex/tests/mangled-name daemon/Makefile events/Makefile utils/Makefile doc/Makefile doc/xsl/catalog-1.xml doc/oprofile.1 doc/opcontrol.1 doc/ophelp.1 doc/op-check-perfevents.1 doc/oprof_start.1 doc/opreport.1 doc/opannotate.1 doc/opgprof.1 doc/oparchive.1 doc/opimport.1 doc/operf.1 doc/ocount.1 doc/srcdoc/Doxyfile libpp/Makefile opjitconv/Makefile pp/Makefile gui/Makefile gui/ui/Makefile agents/Makefile agents/jvmti/Makefile agents/jvmpi/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${BUILD_FOR_PERF_EVENT_TRUE}" && test -z "${BUILD_FOR_PERF_EVENT_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_FOR_PERF_EVENT\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"BUILD_FOR_PERF_EVENT\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${BUILD_JVMTI_AGENT_TRUE}" && test -z "${BUILD_JVMTI_AGENT_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_JVMTI_AGENT\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"BUILD_JVMTI_AGENT\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${BUILD_JVMPI_AGENT_TRUE}" && test -z "${BUILD_JVMPI_AGENT_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_JVMPI_AGENT\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"BUILD_JVMPI_AGENT\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${have_qt_TRUE}" && test -z "${have_qt_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"have_qt\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"have_qt\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${have_xsltproc_TRUE}" && test -z "${have_xsltproc_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"have_xsltproc\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"have_xsltproc\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${CHECK_ACCOUNT_TRUE}" && test -z "${CHECK_ACCOUNT_FALSE}"; then { { $as_echo "$as_me:$LINENO: error: conditional \"CHECK_ACCOUNT\" was never defined. Usually this means the macro was only invoked conditionally." >&5 $as_echo "$as_me: error: conditional \"CHECK_ACCOUNT\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi : ${CONFIG_STATUS=./config.status} ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 # Save the log message, to keep $[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by OProfile $as_me 0.9.9, which was generated by GNU Autoconf 2.63. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTION]... [FILE]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_version="\\ OProfile config.status 0.9.9 configured by $0, generated by GNU Autoconf 2.63, with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2008 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header { $as_echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; };; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) { $as_echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *) ac_config_targets="$ac_config_targets $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # Quote evaled strings. for var in SED \ GREP \ EGREP \ FGREP \ LD \ NM \ LN_S \ lt_SP2NL \ lt_NL2SP \ reload_flag \ OBJDUMP \ deplibs_check_method \ file_magic_cmd \ AR \ AR_FLAGS \ STRIP \ RANLIB \ CC \ CFLAGS \ compiler \ lt_cv_sys_global_symbol_pipe \ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ SHELL \ ECHO \ lt_prog_compiler_no_builtin_flag \ lt_prog_compiler_wl \ lt_prog_compiler_pic \ lt_prog_compiler_static \ lt_cv_prog_compiler_c_o \ need_locks \ DSYMUTIL \ NMEDIT \ LIPO \ OTOOL \ OTOOL64 \ shrext_cmds \ export_dynamic_flag_spec \ whole_archive_flag_spec \ compiler_needs_object \ with_gnu_ld \ allow_undefined_flag \ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_flag_spec_ld \ hardcode_libdir_separator \ fix_srcfile_path \ exclude_expsyms \ include_expsyms \ file_list_spec \ variables_saved_for_relink \ libname_spec \ library_names_spec \ soname_spec \ finish_eval \ old_striplib \ striplib \ compiler_lib_search_dirs \ predep_objects \ postdep_objects \ predeps \ postdeps \ compiler_lib_search_path \ LD_CXX \ compiler_CXX \ lt_prog_compiler_no_builtin_flag_CXX \ lt_prog_compiler_wl_CXX \ lt_prog_compiler_pic_CXX \ lt_prog_compiler_static_CXX \ lt_cv_prog_compiler_c_o_CXX \ export_dynamic_flag_spec_CXX \ whole_archive_flag_spec_CXX \ compiler_needs_object_CXX \ with_gnu_ld_CXX \ allow_undefined_flag_CXX \ no_undefined_flag_CXX \ hardcode_libdir_flag_spec_CXX \ hardcode_libdir_flag_spec_ld_CXX \ hardcode_libdir_separator_CXX \ fix_srcfile_path_CXX \ exclude_expsyms_CXX \ include_expsyms_CXX \ file_list_spec_CXX \ compiler_lib_search_dirs_CXX \ predep_objects_CXX \ postdep_objects_CXX \ predeps_CXX \ postdeps_CXX \ compiler_lib_search_path_CXX; do case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in reload_cmds \ old_postinstall_cmds \ old_postuninstall_cmds \ old_archive_cmds \ extract_expsyms_cmds \ old_archive_from_new_cmds \ old_archive_from_expsyms_cmds \ archive_cmds \ archive_expsym_cmds \ module_cmds \ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ postinstall_cmds \ postuninstall_cmds \ finish_cmds \ sys_lib_search_path_spec \ sys_lib_dlsearch_path_spec \ old_archive_cmds_CXX \ old_archive_from_new_cmds_CXX \ old_archive_from_expsyms_cmds_CXX \ archive_cmds_CXX \ archive_expsym_cmds_CXX \ module_cmds_CXX \ module_expsym_cmds_CXX \ export_symbols_cmds_CXX \ prelink_cmds_CXX; do case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Fix-up fallback echo if it was mangled by the above quoting rules. case \$lt_ECHO in *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` ;; esac ac_aux_dir='$ac_aux_dir' xsi_shell='$xsi_shell' lt_shell_append='$lt_shell_append' # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi PACKAGE='$PACKAGE' VERSION='$VERSION' TIMESTAMP='$TIMESTAMP' RM='$RM' ofile='$ofile' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "pe_counting/Makefile") CONFIG_FILES="$CONFIG_FILES pe_counting/Makefile" ;; "libpe_utils/Makefile") CONFIG_FILES="$CONFIG_FILES libpe_utils/Makefile" ;; "pe_profiling/Makefile") CONFIG_FILES="$CONFIG_FILES pe_profiling/Makefile" ;; "libperf_events/Makefile") CONFIG_FILES="$CONFIG_FILES libperf_events/Makefile" ;; "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; "libutil/Makefile") CONFIG_FILES="$CONFIG_FILES libutil/Makefile" ;; "libutil/tests/Makefile") CONFIG_FILES="$CONFIG_FILES libutil/tests/Makefile" ;; "libutil++/Makefile") CONFIG_FILES="$CONFIG_FILES libutil++/Makefile" ;; "libutil++/tests/Makefile") CONFIG_FILES="$CONFIG_FILES libutil++/tests/Makefile" ;; "libop/Makefile") CONFIG_FILES="$CONFIG_FILES libop/Makefile" ;; "libop/tests/Makefile") CONFIG_FILES="$CONFIG_FILES libop/tests/Makefile" ;; "libopagent/Makefile") CONFIG_FILES="$CONFIG_FILES libopagent/Makefile" ;; "libopt++/Makefile") CONFIG_FILES="$CONFIG_FILES libopt++/Makefile" ;; "libdb/Makefile") CONFIG_FILES="$CONFIG_FILES libdb/Makefile" ;; "libdb/tests/Makefile") CONFIG_FILES="$CONFIG_FILES libdb/tests/Makefile" ;; "libabi/Makefile") CONFIG_FILES="$CONFIG_FILES libabi/Makefile" ;; "libabi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES libabi/tests/Makefile" ;; "libregex/Makefile") CONFIG_FILES="$CONFIG_FILES libregex/Makefile" ;; "libregex/tests/Makefile") CONFIG_FILES="$CONFIG_FILES libregex/tests/Makefile" ;; "libregex/stl.pat") CONFIG_FILES="$CONFIG_FILES libregex/stl.pat" ;; "libregex/tests/mangled-name") CONFIG_FILES="$CONFIG_FILES libregex/tests/mangled-name" ;; "daemon/Makefile") CONFIG_FILES="$CONFIG_FILES daemon/Makefile" ;; "events/Makefile") CONFIG_FILES="$CONFIG_FILES events/Makefile" ;; "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;; "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; "doc/xsl/catalog-1.xml") CONFIG_FILES="$CONFIG_FILES doc/xsl/catalog-1.xml" ;; "doc/oprofile.1") CONFIG_FILES="$CONFIG_FILES doc/oprofile.1" ;; "doc/opcontrol.1") CONFIG_FILES="$CONFIG_FILES doc/opcontrol.1" ;; "doc/ophelp.1") CONFIG_FILES="$CONFIG_FILES doc/ophelp.1" ;; "doc/op-check-perfevents.1") CONFIG_FILES="$CONFIG_FILES doc/op-check-perfevents.1" ;; "doc/oprof_start.1") CONFIG_FILES="$CONFIG_FILES doc/oprof_start.1" ;; "doc/opreport.1") CONFIG_FILES="$CONFIG_FILES doc/opreport.1" ;; "doc/opannotate.1") CONFIG_FILES="$CONFIG_FILES doc/opannotate.1" ;; "doc/opgprof.1") CONFIG_FILES="$CONFIG_FILES doc/opgprof.1" ;; "doc/oparchive.1") CONFIG_FILES="$CONFIG_FILES doc/oparchive.1" ;; "doc/opimport.1") CONFIG_FILES="$CONFIG_FILES doc/opimport.1" ;; "doc/operf.1") CONFIG_FILES="$CONFIG_FILES doc/operf.1" ;; "doc/ocount.1") CONFIG_FILES="$CONFIG_FILES doc/ocount.1" ;; "doc/srcdoc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/srcdoc/Doxyfile" ;; "libpp/Makefile") CONFIG_FILES="$CONFIG_FILES libpp/Makefile" ;; "opjitconv/Makefile") CONFIG_FILES="$CONFIG_FILES opjitconv/Makefile" ;; "pp/Makefile") CONFIG_FILES="$CONFIG_FILES pp/Makefile" ;; "gui/Makefile") CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;; "gui/ui/Makefile") CONFIG_FILES="$CONFIG_FILES gui/ui/Makefile" ;; "agents/Makefile") CONFIG_FILES="$CONFIG_FILES agents/Makefile" ;; "agents/jvmti/Makefile") CONFIG_FILES="$CONFIG_FILES agents/jvmti/Makefile" ;; "agents/jvmpi/Makefile") CONFIG_FILES="$CONFIG_FILES agents/jvmpi/Makefile" ;; *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || { $as_echo "$as_me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=' ' ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\).*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\).*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 $as_echo "$as_me: error: could not setup config files machinery" >&2;} { (exit 1); exit 1; }; } _ACEOF # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/ s/:*\${srcdir}:*/:/ s/:*@srcdir@:*/:/ s/^\([^=]*=[ ]*\):*/\1/ s/:*$// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_t=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_t"; then break elif $ac_last_try; then { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 $as_echo "$as_me: error: could not setup config headers machinery" >&2;} { (exit 1); exit 1; }; } fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} { (exit 1); exit 1; }; };; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} { (exit 1); exit 1; }; };; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac ac_file_inputs="$ac_file_inputs '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$tmp/stdin" \ || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 $as_echo "$as_me: error: could not create $ac_file" >&2;} { (exit 1); exit 1; }; } ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` { as_dir="$ac_dir" case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p ' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 $as_echo "$as_me: error: could not create $ac_file" >&2;} { (exit 1); exit 1; }; } test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&2;} rm -f "$tmp/stdin" case $ac_file in -) cat "$tmp/out" && rm -f "$tmp/out";; *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; esac \ || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 $as_echo "$as_me: error: could not create $ac_file" >&2;} { (exit 1); exit 1; }; } ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" } >"$tmp/config.h" \ || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 $as_echo "$as_me: error: could not create $ac_file" >&2;} { (exit 1); exit 1; }; } if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$tmp/config.h" "$ac_file" \ || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 $as_echo "$as_me: error: could not create $ac_file" >&2;} { (exit 1); exit 1; }; } fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 $as_echo "$as_me: error: could not create -" >&2;} { (exit 1); exit 1; }; } fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` { as_dir=$dirpart/$fdir case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ;; "libtool":C) # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi cfgfile="${ofile}T" trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008 Free Software Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. # # GNU Libtool is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of # the License, or (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, or # obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # The names of the tagged configurations supported by this script. available_tags="CXX " # ### BEGIN LIBTOOL CONFIG # Which release of libtool.m4 was used? macro_version=$macro_version macro_revision=$macro_revision # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # What type of objects to build. pic_mode=$pic_mode # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="\$SED -e 1s/^X//" # A grep program that handles long lines. GREP=$lt_GREP # An ERE matcher. EGREP=$lt_EGREP # A literal string matcher. FGREP=$lt_FGREP # A BSD- or MS-compatible name lister. NM=$lt_NM # Whether we need soft or hard links. LN_S=$lt_LN_S # What is the maximum length of a command? max_cmd_len=$max_cmd_len # Object file suffix (normally "o"). objext=$ac_objext # Executable file suffix (normally ""). exeext=$exeext # whether the shell understands "unset". lt_unset=$lt_unset # turn spaces into newlines. SP2NL=$lt_lt_SP2NL # turn newlines into spaces. NL2SP=$lt_lt_NL2SP # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # An object symbol dumper. OBJDUMP=$lt_OBJDUMP # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == "file_magic". file_magic_cmd=$lt_file_magic_cmd # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A symbol stripping program. STRIP=$lt_STRIP # Commands used to install an old-style archive. RANLIB=$lt_RANLIB old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # A C compiler. LTCC=$lt_CC # LTCC compiler flags. LTCFLAGS=$lt_CFLAGS # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix # The name of the directory that contains temporary libtool files. objdir=$objdir # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # An echo program that does not interpret backslashes. ECHO=$lt_ECHO # Used to examine libraries when file_magic_cmd begins with "file". MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL # Tool to change global to local symbols on Mac OS X. NMEDIT=$lt_NMEDIT # Tool to manipulate fat objects and archives on Mac OS X. LIPO=$lt_LIPO # ldd/readelf like tool for Mach-O binaries on Mac OS X. OTOOL=$lt_OTOOL # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. OTOOL64=$lt_OTOOL64 # Old archive suffix (normally "a"). libext=$libext # Shared library suffix (normally ".so"). shrext_cmds=$lt_shrext_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Variables whose values should be saved in libtool wrapper scripts and # restored at link time. variables_saved_for_relink=$lt_variables_saved_for_relink # Do we need the "lib" prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Library versioning type. version_type=$version_type # Shared library runtime path variable. runpath_var=$runpath_var # Shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Command to use after installation of a shared archive. postinstall_cmds=$lt_postinstall_cmds # Command to use after uninstallation of a shared archive. postuninstall_cmds=$lt_postuninstall_cmds # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # As "finish_cmds", except a single script fragment to be evaled but # not shown. finish_eval=$lt_finish_eval # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Compile-time system search path for libraries. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # The linker used to build libraries. LD=$lt_LD # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds # A language specific compiler. CC=$lt_compiler # Is the compiler the GNU compiler? with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # If ld is used when linking, flag to hardcode \$libdir into a binary # during linking. This must work even if \$libdir does not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \${shlibpath_var} if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds # Specify filename containing input files. file_list_spec=$lt_file_list_spec # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects postdep_objects=$lt_postdep_objects predeps=$lt_predeps postdeps=$lt_postdeps # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path # ### END LIBTOOL CONFIG _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac ltmain="$ac_aux_dir/ltmain.sh" # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) case $xsi_shell in yes) cat << \_LT_EOF >> "$cfgfile" # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac } # func_basename file func_basename () { func_basename_result="${1##*/}" } # func_dirname_and_basename file append nondir_replacement # perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # Implementation must be kept synchronized with func_dirname # and func_basename. For efficiency, we do not delegate to # those functions but instead duplicate the functionality here. func_dirname_and_basename () { case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac func_basename_result="${1##*/}" } # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). func_stripname () { # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are # positional parameters, so assign one to ordinary parameter first. func_stripname_result=${3} func_stripname_result=${func_stripname_result#"${1}"} func_stripname_result=${func_stripname_result%"${2}"} } # func_opt_split func_opt_split () { func_opt_split_opt=${1%%=*} func_opt_split_arg=${1#*=} } # func_lo2o object func_lo2o () { case ${1} in *.lo) func_lo2o_result=${1%.lo}.${objext} ;; *) func_lo2o_result=${1} ;; esac } # func_xform libobj-or-source func_xform () { func_xform_result=${1%.*}.lo } # func_arith arithmetic-term... func_arith () { func_arith_result=$(( $* )) } # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=${#1} } _LT_EOF ;; *) # Bourne compatible functions. cat << \_LT_EOF >> "$cfgfile" # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { # Extract subdirectory from the argument. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi } # func_basename file func_basename () { func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` } # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # func_strip_suffix prefix name func_stripname () { case ${2} in .*) func_stripname_result=`$ECHO "X${3}" \ | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; *) func_stripname_result=`$ECHO "X${3}" \ | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; esac } # sed scripts: my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' my_sed_long_arg='1s/^-[^=]*=//' # func_opt_split func_opt_split () { func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` } # func_lo2o object func_lo2o () { func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` } # func_xform libobj-or-source func_xform () { func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` } # func_arith arithmetic-term... func_arith () { func_arith_result=`expr "$@"` } # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` } _LT_EOF esac case $lt_shell_append in yes) cat << \_LT_EOF >> "$cfgfile" # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "$1+=\$2" } _LT_EOF ;; *) cat << \_LT_EOF >> "$cfgfile" # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "$1=\$$1\$2" } _LT_EOF ;; esac sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" cat <<_LT_EOF >> "$ofile" # ### BEGIN LIBTOOL TAG CONFIG: CXX # The linker used to build libraries. LD=$lt_LD_CXX # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds_CXX # A language specific compiler. CC=$lt_compiler_CXX # Is the compiler the GNU compiler? with_gcc=$GCC_CXX # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_CXX # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_CXX # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_CXX # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_CXX # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object_CXX # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds_CXX archive_expsym_cmds=$lt_archive_expsym_cmds_CXX # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds_CXX module_expsym_cmds=$lt_module_expsym_cmds_CXX # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld_CXX # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_CXX # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_CXX # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX # If ld is used when linking, flag to hardcode \$libdir into a binary # during linking. This must work even if \$libdir does not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct_CXX # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \${shlibpath_var} if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute_CXX # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L_CXX # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic_CXX # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath_CXX # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_CXX # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path_CXX # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols_CXX # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_CXX # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_CXX # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_CXX # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds_CXX # Specify filename containing input files. file_list_spec=$lt_file_list_spec_CXX # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_CXX # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects_CXX postdep_objects=$lt_postdep_objects_CXX predeps=$lt_predeps_CXX postdeps=$lt_postdeps_CXX # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX # ### END LIBTOOL TAG CONFIG: CXX _LT_EOF ;; esac done # for ac_tag { (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi if test -r doc/xsl/catalog.xml; then if cmp doc/xsl/catalog-1.xml doc/xsl/catalog.xml > /dev/null; then echo doc/xsl/catalog.xml is unchanged else cp -f doc/xsl/catalog-1.xml doc/xsl/catalog.xml fi else cp -f doc/xsl/catalog-1.xml doc/xsl/catalog.xml fi if test "x$enable_gui" = "xno" ; then echo "No GUI will be built as it was explicitly disabled." else if test -z "$QT_LIBS"; then echo "Warning: QT version $QT_VERSION was requested but not found. No GUI will be built." else echo "Building GUI with QT $QT_VERSION" fi fi if ! test "x$enable_account_check" = "xyes"; then : elif test "`getent passwd oprofile 2>/dev/null`" == "" || \ test "`getent group oprofile 2>/dev/null`" == ""; then if test `id -u` != "0"; then echo "Warning: The user account 'oprofile:oprofile' does not exist on the system." echo " To profile JITed code, this special user account must exist." echo " Please ask your system administrator to add the following user and group:" echo " user name : 'oprofile'" echo " group name: 'oprofile'" echo " The 'oprofile' group must be the default group for the 'oprofile' user." else echo "Warning: The user account 'oprofile:oprofile' does not exist on the system." echo " To profile JITed code, this special user account must exist." echo " Please add the following user and group:" echo " user name : 'oprofile'" echo " group name: 'oprofile'" echo " The 'oprofile' group must be the default group for the 'oprofile' user." fi fi if test "$PERF_EVENT_H_EXISTS" != "yes" && test "$kernel_may_have_perf_events_support" = "yes"; then echo "Warning: perf_event.h not found. Either install the kernel headers package or" echo "use the --with-kernel option if you want the non-root, single application" echo "profiling support provided by operf." echo "" echo "If you run 'make' now, only the legacy ocontrol-based profiler will be built." fi if test "$KERNELDIR" != "" && test "$kernel_has_perf_events_support" != "yes"; then if ! test -d $KERNELDIR; then echo "WARNING: You passed '--with-kernel=$KERNELDIR', but $KERNELDIR" echo "does not exist." else echo "Warning: You requested to build with the '--with-kernel' option, but your kernel" echo "headers were not accessible at the given location. Be sure you have run the following" echo "command from within your kernel source tree:" echo " make headers_install INSTALL_HDR_PATH=" echo "Then pass to oprofile's '--with-kernel' configure option." fi echo "" echo "If you run 'make' now, only the legacy ocontrol-based profiler will be built." fi oprofile-0.9.9/configure.ac0000664000076400007640000004175112175510156012604 00000000000000# Autoconf script for oprofile # # Copyright 1999 Olaf Titz # Adapted for oprofile # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version # 2 of the License, or (at your option) any later version. # AC_PREREQ(2.13) AC_INIT([OProfile], [0.9.9]) AC_CONFIG_SRCDIR([libop/op_config.h]) AM_INIT_AUTOMAKE AC_CONFIG_HEADERS(config.h) AC_CHECK_DECLS([basename], [], [], [[#include ]]) AC_PROG_RANLIB AC_PROG_LIBTOOL PKG_PROG_PKG_CONFIG dnl for the man page DATE="`date '+%a %d %B %Y'`" AC_SUBST(DATE) # Since we should not permanently alter user environment variables, we'll # save the contents of the original flags in case the user has set them # prior to running this configue script. CPPFLAGS_SAVE="$CPPFLAGS" LDFLAGS_SAVE="$LDFLAGS" AC_ARG_WITH(binutils, [ --with-binutils=dir Path to binutils installation to use], BINUTILSDIR=$withval) if test "$BINUTILSDIR" != ""; then LD="$BINUTILSDIR/ld" CPPFLAGS="$CPPFLAGS -I$BINUTILSDIR/include" AC_ARG_WITH(binutils-libname, [ --with-binutils-libname Lib dir name under binutils installation; @<:@lib@:>@]], BINUTILSLIB=$withval) if test "$BINUTILSLIB" = ""; then BINUTILSLIB="lib" fi LDFLAGS="$LDFLAGS -L$BINUTILSDIR/$BINUTILSLIB -Xlinker -R -Xlinker $BINUTILSDIR/$BINUTILSLIB" OP_LDFLAGS="$LDFLAGS" OP_CPPFLAGS="$CPPFLAGS" else OP_LDFLAGS= OP_CPPFLAGS= fi # We can't restore original flag values for CPPFLAGS and LDFLAGS until we're done # checking for bfd.h and libiberty.h (in AX_BINUTILS). AC_PROG_CC AC_PROG_CPP AC_PROG_CXX AC_CHECK_PROG(LD,ld,ld,) test "$LD" || AC_ERROR(ld not found) # --with-kernel for cross compilation AC_ARG_WITH(kernel, [AS_HELP_STRING([--with-kernel=dir], [Path to kernel include directory (e.g. /tmp/linux-xyz) to use. If this option is not specified, configure will look for kernel header files in the usual installation location for a kernel-headers package -- /usr. Use this option in cross-compile enviroments or in situations where the host system does not support perf_events but you wish to build binaries for a target system that does support perf_events. Because of OProfile's use of syscalls, kernel headers used during build must match the architecture of the intended target system. NOTE: Run the command 'make headers_install INSTALL_HDR_PATH=' from the root directory of your kernel source tree, and use for oprofile's '--with-kernel' configure option.])], KERNELDIR=$withval) dnl Check kernel version for perf_events supported if test "$KERNELDIR" != ""; then if test -d $KERNELDIR; then KINC="$KERNELDIR/include" PERF_EVENT_FLAGS=" -I$KERNELDIR/include" AC_SUBST(PERF_EVENT_FLAGS) PERF_EVENT_H="$KERNELDIR/include/linux/perf_event.h" else echo "$KERNELDIR does not exist." fi else PERF_EVENT_H="/usr/include/linux/perf_event.h" fi PERF_EVENT_H_EXISTS="no" kernel_may_have_perf_events_support="no" AX_KERNEL_VERSION(2, 6, 31, <=, kernel_may_have_perf_events_support="yes", kernel_has_perf_events_support="no") dnl The AX_KERNEL_VERSION macro may return kernel_may_have_perf_events_support="yes", dnl indicating a partial answer. Some architectures do not implement the Performance dnl Events Kernel Subsystem even with kernel versions > 2.6.31 -- i.e., not even dnl implementing the perf_event_open syscall to return ENOSYS. So the check below dnl will identify and handle such situations. if test "$kernel_may_have_perf_events_support" = "yes"; then AC_CHECK_HEADER($PERF_EVENT_H,PERF_EVENT_H_EXISTS="yes") AC_MSG_CHECKING([kernel supports perf_events]) if test "$PERF_EVENT_H_EXISTS" = "yes"; then rm -f test-for-PERF_EVENT_OPEN AC_LANG_CONFTEST( [AC_LANG_PROGRAM([[#include #include #include #include ]], [[struct perf_event_attr attr; pid_t pid; memset(&attr, 0, sizeof(attr)); attr.size = sizeof(attr); attr.sample_type = PERF_SAMPLE_IP; pid = getpid(); syscall(__NR_perf_event_open, &attr, pid, 0, -1, 0); ]]) ]) $CC conftest.$ac_ext $CFLAGS $LDFLAGS $LIBS $PERF_EVENT_FLAGS -o test-for-PERF_EVENT_OPEN > /dev/null 2>&1 if test -f test-for-PERF_EVENT_OPEN; then kernel_has_perf_events_support="yes" AC_MSG_RESULT(yes) else AC_MSG_RESULT(no) kernel_has_perf_events_support="no" fi rm -f test-for-PERF_EVENT_OPEN else AC_MSG_RESULT(unknown -- perf_event.h not found) fi else AC_MSG_RESULT(kernel supports perf_events... no) kernel_has_perf_events_support="no" fi AM_CONDITIONAL(BUILD_FOR_PERF_EVENT, test "$kernel_has_perf_events_support" = "yes") if test "$kernel_has_perf_events_support" = "yes"; then HAVE_PERF_EVENTS='1' AC_MSG_CHECKING([whether PERF_RECORD_MISC_GUEST_KERNEL is defined in perf_event.h]) rm -f test-for-PERF_GUEST AC_LANG_CONFTEST( [AC_LANG_PROGRAM([[#include ]], [[unsigned int pr_guest_kern = PERF_RECORD_MISC_GUEST_KERNEL; unsigned int pr_guest_user = PERF_RECORD_MISC_GUEST_USER;]]) ]) $CC conftest.$ac_ext $CFLAGS $LDFLAGS $LIBS $PERF_EVENT_FLAGS -o test-for-PERF_GUEST > /dev/null 2>&1 if test -f test-for-PERF_GUEST; then echo "yes" HAVE_PERF_GUEST_MACROS='1' else echo "no" HAVE_PERF_GUEST_MACROS='0' fi AC_DEFINE_UNQUOTED(HAVE_PERF_GUEST_MACROS, $HAVE_PERF_GUEST_MACROS, [PERF_RECORD_MISC_GUEST_KERNEL is defined in perf_event.h]) rm -f test-for-PERF_GUEST* AC_MSG_CHECKING([whether precise_ip is defined in perf_event.h]) rm -f test-for-precise-ip AC_LANG_CONFTEST( [AC_LANG_PROGRAM([[#include ]], [[struct perf_event_attr attr; attr.precise_ip = 2;]]) ]) $CC conftest.$ac_ext $CFLAGS $LDFLAGS $LIBS $PERF_EVENT_FLAGS -o test-for-precise-ip > /dev/null 2>&1 if test -f test-for-precise-ip; then echo "yes" HAVE_PERF_PRECISE_IP='1' else echo "no" HAVE_PERF_PRECISE_IP='0' fi AC_DEFINE_UNQUOTED(HAVE_PERF_PRECISE_IP, $HAVE_PERF_PRECISE_IP, [precise_ip is defined in perf_event.h]) rm -f test-for-precise-ip* else HAVE_PERF_EVENTS='0' AC_MSG_RESULT([No perf_events support available; falling back to legacy oprofile]) fi AC_DEFINE_UNQUOTED(HAVE_PERF_EVENTS, $HAVE_PERF_EVENTS, [Kernel support for perf_events exists]) AC_CANONICAL_HOST if test "$HAVE_PERF_EVENTS" = "1"; then PFM_LIB= if test "$host_cpu" = "powerpc64"; then AC_CHECK_HEADER(perfmon/pfmlib.h,,[AC_MSG_ERROR([pfmlib.h not found; usually provided in papi devel package])]) AC_CHECK_LIB(pfm,pfm_get_os_event_encoding, HAVE_LIBPFM3='0'; HAVE_LIBPFM='1', [ AC_CHECK_LIB(pfm, pfm_get_event_name, HAVE_LIBPFM3='1'; HAVE_LIBPFM='1', [AC_MSG_ERROR([libpfm not found; usually provided in papi devel package])])]) PFM_LIB="-lpfm" AC_DEFINE_UNQUOTED(HAVE_LIBPFM3, $HAVE_LIBPFM3, [Define to 1 if using libpfm3; 0 if using newer libpfm]) AC_DEFINE_UNQUOTED(HAVE_LIBPFM, $HAVE_LIBPFM, [Define to 1 if libpfm is available]) fi AC_SUBST(PFM_LIB) fi AC_ARG_WITH(java, [ --with-java=java-home Path to Java home directory (default is "no"; "yes" will use /usr as Java home)], JAVA_HOMEDIR=$with_java, [with_java=no]) if test "x$with_java" = "xyes"; then JAVA_HOMEDIR="/usr" else if test "x$with_java" = "xno"; then JAVA_HOMEDIR= fi fi AC_SUBST(JAVA_HOMEDIR) if test -n "$JAVA_HOMEDIR"; then AC_CHECK_FILE("$JAVA_HOMEDIR/include/jvmti.h",JVMTI_H_EXISTS="yes",) AC_CHECK_FILE("$JAVA_HOMEDIR/include/jvmpi.h",JVMPI_H_EXISTS="yes",) fi AM_CONDITIONAL(BUILD_JVMTI_AGENT, test -n "$JVMTI_H_EXISTS") AM_CONDITIONAL(BUILD_JVMPI_AGENT, test -n "$JVMPI_H_EXISTS") AX_MALLOC_ATTRIBUTE AX_BUILTIN_EXPECT AC_SUBST(EXTRA_CFLAGS_MODULE) topdir=`pwd` AC_SUBST(topdir) AX_EXTRA_DIRS ORIG_SAVE_LIBS="$LIBS" dnl advanced glibc features which we need but may not be present AC_CHECK_FUNCS(sched_setaffinity perfmonctl) AC_CHECK_LIB(popt, poptGetContext,, AC_MSG_ERROR([popt library not found])) AX_BINUTILS # Now we can restore original flag values, and may as well do the # AC_SUBST, too. CPPFLAGS="$CPPFLAGS_SAVE" LDFLAGS="$LDFLAGS_SAVE" AC_SUBST(OP_CPPFLAGS) AC_SUBST(OP_LDFLAGS) AX_CELL_SPU # C++ tests AC_LANG_CPLUSPLUS AX_POPT_CONST AX_CHECK_SSTREAM dnl bfd.h pre 1998 check only for gnu 2.xx series, so gcc 3.0 can't compile it AC_MSG_CHECKING([whether bfd defines bool]) AC_TRY_COMPILE([#include ], [], AC_MSG_RESULT([no]);, AC_MSG_RESULT([yes]); AC_DEFINE(TRUE_FALSE_ALREADY_DEFINED, 1, [whether bfd.h defines bool values])) dnl smart demangler need to know what are the underlined type for some typedef AX_TYPEDEFED_NAME(size_t, "unsigned" "unsigned long", SIZE_T_TYPE) AC_SUBST(SIZE_T_TYPE) AX_TYPEDEFED_NAME(ptrdiff_t, "int" "long", PTRDIFF_T_TYPE) AC_SUBST(PTRDIFF_T_TYPE) AC_PATH_XTRA ORIG_X_SAVE_LIBS="$LIBS" LIBS="$X_PRE_LIBS $LIBS $X_LIBS -lX11 $X_EXTRA_LIBS" X_LIBS="$LIBS" AC_SUBST(X_LIBS) AC_ARG_ENABLE(gui,[ --enable-gui compile with gui component (qt3|qt4|yes|no), if not given or set to yes, gui defaults to qt3],, enable_gui=qt3) if test "x$enable_gui" = "xqt3" || test "x$enable_gui" = "xyes"; then QT_VERSION=3 QT_DO_IT_ALL if test -n "$QT_LIB"; then QT_LIBS="$QT_LIB $QT_LDFLAGS" fi QT_CFLAGS="$QT_INCLUDES" fi if test "x$enable_gui" = "xqt4"; then QT_VERSION=4 PKG_CHECK_MODULES(QT, Qt3Support QtGui QtCore ,,[ echo "You requested QT4 but its build files are not available. Exiting now." exit ]) MOC=$(pkg-config --variable=moc_location QtCore) UIC=$(dirname $(pkg-config --variable=uic_location QtCore))/uic3 QT_VERSION=$(pkg-config --modversion QtCore) dnl following are some sanity tests and workarounds for buggy QtCore.pc files if test "x$MOC" = "x"; then echo "WARNING: Your QtCore.pc file is buggy, it doesn't provide the variable 'moc_location'" echo "WARNING: I will try to find it in your PATH ..." AC_CHECK_PROG(MOC, moc, moc) if test "x$MOC" = "x"; then echo "WARNING: You can fix this by adding the location of moc to your path." echo "WARNING: Exiting now." exit fi fi if test "x$UIC" = "x3"; then echo "WARNING: Your QtCore.pc file is buggy, it doesn't provide the variable 'uic_location'" echo "WARNING: I will try to find it in your PATH ..." AC_CHECK_PROG(UIChelp, uic3, uic3) if test "x$UIChelp" = "x"; then echo "WARNING: You can fix this by adding the location of uic3 to your path." echo "WARNING: Exiting now." exit else UIC="$UIChelp" fi fi flags_has_qt3support=$(echo $QT_CFLAGS | grep QT3_SUPPORT) if test "x$flags_has_qt3support" = "x" ; then echo "WARNING: Your Qt3Support package is buggy; it dosn't include the 'QT3_SUPPORT' flag" echo "WARNING: adding it manually" QT_CFLAGS="$QT_CFLAGS -DQT3_SUPPORT" fi fi AM_CONDITIONAL(have_qt, test -n "$QT_LIBS") LIBS="$ORIG_X_SAVE_LIBS" dnl enable pch for c++ AC_ARG_ENABLE(pch, [ --enable-pch enable precompiled header (default is disabled)], enable_pch=$enableval, enable_pch=no) if test "$enable_pch" = yes; then AX_CHECK_PRECOMPILED_HEADER(OP_CXXFLAGS) fi AX_CHECK_DOCBOOK dnl finally restore the original libs setting LIBS="$ORIG_SAVE_LIBS" LIBERTY_LIBS="-liberty $DL_LIB $INTL_LIB" BFD_LIBS="-lbfd -liberty $DL_LIB $INTL_LIB $Z_LIB" POPT_LIBS="-lpopt" AC_SUBST(LIBERTY_LIBS) AC_SUBST(BFD_LIBS) AC_SUBST(POPT_LIBS) # do NOT put tests here, they will fail in the case X is not installed ! AX_CFLAGS_OPTION(OP_CFLAGS,[-W]) AX_CXXFLAGS_OPTION(OP_CXXFLAGS,[-W]) AX_CFLAGS_OPTION(OP_CFLAGS,[-Wall]) AX_CXXFLAGS_OPTION(OP_CXXFLAGS,[-Wall]) AX_CFLAGS_OPTION(OP_CFLAGS,[-fno-common]) AX_CXXFLAGS_OPTION(OP_CXXFLAGS,[-fno-common]) AX_CXXFLAGS_OPTION(OP_CXXFLAGS,[-ftemplate-depth-50]) AX_CFLAGS_OPTION(OP_CFLAGS,[-Wdeclaration-after-statement]) dnl enable option to use GCC test coverage AC_ARG_ENABLE(gcov, [ --enable-gcov enable option for gcov coverage testing (default is disabled)], enable_gcov=$enableval, enable_gcov=no) if test "$enable_gcov" = yes; then AX_CFLAGS_OPTION(OP_CFLAGS,[-fprofile-arcs]) AX_CXXFLAGS_OPTION(OP_CXXFLAGS,[-fprofile-arcs]) AX_CFLAGS_OPTION(OP_CFLAGS,[-ftest-coverage]) AX_CXXFLAGS_OPTION(OP_CXXFLAGS,[-ftest-coverage]) fi AC_ARG_ENABLE(werror, [ --disable-werror disable -Werror flag (default is enabled for non-release)], enable_werror=$enableval, enable_werror=yes) if test "$enable_werror" = yes; then # enable -Werror for non-release versions. if echo "$VERSION" | grep git >/dev/null; then AX_CFLAGS_OPTION(OP_CFLAGS,[-Werror]) AX_CXXFLAGS_OPTION(OP_CXXFLAGS,[-Werror]) fi fi AC_ARG_ENABLE(optimization, [ --disable-optimization disable optimization flags (default is enabled)], enable_optimization=$enableval, enable_optimisation=yes) if test "$enable_optimization" = "no"; then CFLAGS=`echo $CFLAGS | sed 's/-O2//g'` CXXFLAGS=`echo $CXXFLAGS | sed 's/-O2//g'` fi AC_ARG_ENABLE(account-check, [ --disable-account-check disable account check (default is enabled)], enable_account_check=$enableval, enable_account_check=yes) AM_CONDITIONAL(CHECK_ACCOUNT, test "x$enable_account_check" = "xyes") AC_SUBST(OP_CFLAGS) AC_SUBST(OP_CXXFLAGS) # fixups for config.h if test "$prefix" = "NONE"; then my_op_prefix="$ac_default_prefix" else my_op_prefix="$prefix" fi my_op_datadir="$my_op_prefix/share" if test "$exec_prefix" = "NONE"; then my_op_exec_prefix="$my_op_prefix" else my_op_exec_prefix="$exec_prefix" fi my_op_bindir="$my_op_exec_prefix/bin" OP_DATADIR=`eval echo "$my_op_datadir/$PACKAGE/"` AC_DEFINE_UNQUOTED(OP_DATADIR, "$OP_DATADIR", [package data directory]) OP_BINDIR=`eval echo "$my_op_bindir/"` AC_DEFINE_UNQUOTED(OP_BINDIR, "$OP_BINDIR", [package binary directory]) OP_DOCDIR=`eval echo "${my_op_prefix}/share/doc/$PACKAGE/"` AC_SUBST(OP_DOCDIR) AC_OUTPUT(Makefile \ pe_counting/Makefile \ libpe_utils/Makefile \ pe_profiling/Makefile \ libperf_events/Makefile \ m4/Makefile \ libutil/Makefile \ libutil/tests/Makefile \ libutil++/Makefile \ libutil++/tests/Makefile \ libop/Makefile \ libop/tests/Makefile \ libopagent/Makefile \ libopt++/Makefile \ libdb/Makefile \ libdb/tests/Makefile \ libabi/Makefile \ libabi/tests/Makefile \ libregex/Makefile \ libregex/tests/Makefile \ libregex/stl.pat \ libregex/tests/mangled-name \ daemon/Makefile \ events/Makefile \ utils/Makefile \ doc/Makefile \ doc/xsl/catalog-1.xml \ doc/oprofile.1 \ doc/opcontrol.1 \ doc/ophelp.1 \ doc/op-check-perfevents.1 \ doc/oprof_start.1 \ doc/opreport.1 \ doc/opannotate.1 \ doc/opgprof.1 \ doc/oparchive.1 \ doc/opimport.1 \ doc/operf.1 \ doc/ocount.1 \ doc/srcdoc/Doxyfile \ libpp/Makefile \ opjitconv/Makefile \ pp/Makefile \ gui/Makefile \ gui/ui/Makefile \ agents/Makefile \ agents/jvmti/Makefile \ agents/jvmpi/Makefile) AX_COPY_IF_CHANGE(doc/xsl/catalog-1.xml, doc/xsl/catalog.xml) if test "x$enable_gui" = "xno" ; then echo "No GUI will be built as it was explicitly disabled." else if test -z "$QT_LIBS"; then echo "Warning: QT version $QT_VERSION was requested but not found. No GUI will be built." else echo "Building GUI with QT $QT_VERSION" fi fi if ! test "x$enable_account_check" = "xyes"; then : elif test "`getent passwd oprofile 2>/dev/null`" == "" || \ test "`getent group oprofile 2>/dev/null`" == ""; then if test `id -u` != "0"; then echo "Warning: The user account 'oprofile:oprofile' does not exist on the system." echo " To profile JITed code, this special user account must exist." echo " Please ask your system administrator to add the following user and group:" echo " user name : 'oprofile'" echo " group name: 'oprofile'" echo " The 'oprofile' group must be the default group for the 'oprofile' user." else echo "Warning: The user account 'oprofile:oprofile' does not exist on the system." echo " To profile JITed code, this special user account must exist." echo " Please add the following user and group:" echo " user name : 'oprofile'" echo " group name: 'oprofile'" echo " The 'oprofile' group must be the default group for the 'oprofile' user." fi fi if test "$PERF_EVENT_H_EXISTS" != "yes" && test "$kernel_may_have_perf_events_support" = "yes"; then echo "Warning: perf_event.h not found. Either install the kernel headers package or" echo "use the --with-kernel option if you want the non-root, single application" echo "profiling support provided by operf." echo "" echo "If you run 'make' now, only the legacy ocontrol-based profiler will be built." fi if test "$KERNELDIR" != "" && test "$kernel_has_perf_events_support" != "yes"; then if ! test -d $KERNELDIR; then echo "WARNING: You passed '--with-kernel=$KERNELDIR', but $KERNELDIR" echo "does not exist." else echo "Warning: You requested to build with the '--with-kernel' option, but your kernel" echo "headers were not accessible at the given location. Be sure you have run the following" echo "command from within your kernel source tree:" echo " make headers_install INSTALL_HDR_PATH=" echo "Then pass to oprofile's '--with-kernel' configure option." fi echo "" echo "If you run 'make' now, only the legacy ocontrol-based profiler will be built." fi oprofile-0.9.9/ChangeLog-20050000664000076400007640000006533012175510133012446 000000000000002005-12-30 Philippe Elie * libutil++/bfd_support.cpp: bfd_find_nearest_line() can return NULL in the sixth parameters, check the returned value. Problem reported by Nicolas Savoire 2005-12-07 Maynard Johnson * events/ppc64/power5/events: Change counter for CYCLES in order to use PM_CYC vs PM_RUN_CYC. This makes a difference now with kernels > 2.6.14 since the PowerPC runlatch is now honored and PM_RUN_CYC counts CYCLES only when not in idle loop. 2005-12-05 Will Cohen * libpp/arrange_profiles.cpp: Correct anon namespace for gcc 4.1. 2005-11-30 Junichi Uekawa * doc/oprofile.1.in: $prefix is unprocessed, use @prefix@ instead. 2005-11-17 Sean Lee * utils/opcontrol: Fix a typo. Cleanup load_module_26() 2005-10-19 John Levon * daemon/opd_cookie.c: use __MIPSEB__ not _MIPSEB 2005-10-18 Maynard Johnson * events/ppc64/power4/event_mappings: * events/ppc64/970/event_mappings: * events/ppc64/power5/events: * events/ppc64/power5/event_mappings: Ensure SAMPLE_ENABLE bit is set correctly, in preparation for coming change in PPC64 driver. Also, based on user input, add new event CYCLES_RND_SMPL for Power5. 2005-10-18 David Daney * daemon/opd_cookie.c: Handle MIPS o32 for both big and little endian. 2005-10-18 Andy Fleming * events/Makefile.am: * events/ppc/e500v2/events: * events/ppc/e500v2/unit_masks: * libop/op_cpu_type.c: * libop/op_cpu_type.h: * libop/op_events.c: * utils/ophelp.c: add support for latest e500 processor 2005-09-08 Philippe Elie * libop/op_events.c: * libop/op_events.h: * libpp/op_header.cpp: use 32 bits unsigned int for unit mask, u16 use was an historical artefact coming from the p6 implementation. This allow to pass more information and will be used by P4 driver. 2005-09-01 Philippe Elie * gui/oprof_start.cpp: the last unit mask checkbox is no longer a "validate all unit mask" so don't treat it specially. It avoid to lost the last bit in the unit mask each time oprof_start is used. 2005-08-31 Philippe Elie * doc/oprofile.1.in: quote .BR strings 2005-08-31 John Levon * doc/oprofile.1.in: document archive: specifier 2005-08-30 Philippe Elie * pp/oparchive_options.cpp: fix #1276058, oparchive must force merging to avoid trigerring some sanity check in arrange_profiles(). Allowing merging is not a problem as merging doesn't occur in oparchive. 2005-08-25 Philippe Elie * events/x86-64/hammer/unit_masks: * events/x86-64/hammer/events: new events to count data cache access/miss by lock'ed insn. 2005-08-24 Maynard Johnson * events/ppc64/power4/events: * events/ppc64/power4/event_mappings: * events/ppc64/power5/events: * events/ppc64/power5/event_mappings: * events/ppc64/970/events: * events/ppc64/970/event_mappings: Add all supported events and groups. This change some events name. 2005-08-24 Philippe Elie * libutil++/op_bfd.cpp: minor tidy * daemon/opd_trans.c: more static function * events/ppc/e500/events: typo 2005-08-19 Philippe Elie * libdb/db_stat.c: use 64 bits to cumulate samples count. 2005-08-18 Philippe Elie * libutil++/file_manip.cpp: Change the last modification time after copying it. 2005-08-17 Philippe Elie * libdb/odb.h: * libdb/db_manage.c: * libdb/db_insert.c: split the api in two part, one to update a node (or create it) by incrementing by one its associated value and one to create a new node with a given value. This optimize the fast path used by the daemon. Sanity check inside the fast path has been removed too. * daemon/opd_sfile.c: * daemon/liblegacy/opd_proc.c: * libabi/opimport.cpp: * libabi/tests/abi_test.cpp: * libdb/tests/db_test.c: update according 2005-08-17 Philippe Elie * libutil++/bfd_support.h: * libutil++/op_bfd.cpp: comment how and why we can use the debuginfo bfd object. 2005-08-16 Philippe Elie * libutil++/file_manip.cpp: fix compilation on GCC 2.95.x 2005-08-15 Philippe Elie Fix #1256978: sum of samples count overflow * libutil/op_types.h: typedef a unsigned 64 bits count_type * libpp/callgraph_container.cpp: * libpp/format_output.cpp: * libpp/profile.cpp: * libpp/profile.h: * libpp/profile_container.cpp: * libpp/symbol.h: * libutil/op_types.h: * libutil++/growable_vector.h: * pp/opreport.cpp: use it all over place where we need to sum up samples count * pp/opgprof.cpp: check for samples count capping for callgraph output 2005-08-15 Philippe Elie * libdb/tests/db_test.c: add a better speed test 2005-08-13 Maynard Johnson * gui/oprof_start.h: * libop/op_events.c: * libop/op_events.h: * libpp/op_header.cpp: change op_event.val field from u8 to u32 to allow event numbers higher than 0X100. 2005-08-13 Philippe Elie * libdb/odb.h: * libdb/db_insert.c: * libdb/db_manage.c: use a two step node allocation to ensure adding a node will be sort of atomically visible in another process 2005-08-13 Philippe Elie * libdb/odb.h: clarify the way odb_get_iterator work * libpp/profile.cpp: use odb_get_iterator properly to ensure we account zero relative offset. This fix a corner case when kernel module get a sample at the first byte of their .text section. 2005-08-11 Philippe Elie * libutil++/file_manip.cpp: fix a race when changing the mode and owner of copied file. * pp/oparchive.cpp: warn if a file can't be copied, avoid to copy inexisting image for anon mammping 2005-08-11 Philippe Elie * gui/oprof_start.cpp: * gui/oprof_start_config.cpp: * gui/oprof_start_config.h: * gui/ui/oprof_start.base.ui: * libop/op_config.h: add --cpu-buffer-size for 2.6 2005-08-10 Philippe Elie * libutil++/file_manip.h: * libutil++/file_manip.cpp: preserve as many of file attributes and owner we can when copying a file. This affected running oparchive with root right allowing non root user to read all archived binaries. Problem started in cvs the 2005-08-07 2005-08-09 Philippe Elie * daemon/opd_anon.c: * daemon/opd_kernel.c: fix two scanf potential buffer overflow 2005-08-09 Philippe Elie * module/x86/cpu_type.c: fix #1254390, problem and solution by Thomas Kho * module/oprofile.c: * module/oprofile.h: #1266604 fix a compilation problem with gcc <= 3.3. It's not worth to try to continue to use fastcall for op_do_profile. * module/x86/op_model_p4.c: backport some change from the 2.6 driver: on some P4 model 3 IQ_ESCR0/1 doesn't exist and acessing them fault. 2005-08-08 Philippe Elie * doc/opcontrol.1.in: * doc/oprofile.xml: document opcontrol --buffer-watershed * gui/oprof_start.cpp: * gui/oprof_start_config.cpp: * gui/oprof_start_config.h: * gui/ui/oprof_start.base.ui: * utils/opcontrol: implement 2.6 buffer_watershed 2005-08-07 Philippe Elie * libutil++/file_manip.h: * libutil++/file_manip.cpp: use iostream to copy file * libpp/populate.cpp: check_mtime() even when using archive: spec * pp/oparchive.cpp: fix comment 2005-08-07 Philippe Elie * pp/opreport.cpp: don't throw a std::string but an op_runtime_error 2005-08-07 Philippe Elie * daemon/oprofiled.c: * daemon/liblegacy/init.c: * daemon/liblegacy/opd_image.c: * daemon/liblegacy/opd_parse_proc.c: * gui/oprof_start.cpp: * gui/oprof_start_util.cpp: * libdb/db_debug.c: * libdb/db_insert.c: * libdb/db_manage.c: * libdb/tests/db_test.c: * libop/op_events.c: * libop/tests/alloc_counter_tests.c: * libop/tests/parse_event_tests.c: * libopt++/popt_options.cpp: * libpp/arrange_profiles.cpp: * libpp/callgraph_container.cpp: * libpp/filename_spec.cpp: * libpp/image_errors.cpp: * libpp/name_storage.cpp: * libpp/profile_container.cpp: * libpp/profile_spec.cpp: * libregex/op_regex.cpp: * libregex/tests/regex_test.cpp: * libutil++/string_manip.cpp: * pp/opannotate.cpp: * pp/opgprof_options.cpp: * pp/opreport.cpp: * pp/opreport_options.cpp: * utils/ophelp.c: coding style 2005-08-06 Philippe Elie * doc/oprofile.xml: more documentation about annotated source and inlined functions. * libpp/profile_container.cpp: * libpp/profile_container.h: * libpp/symbol_container.cpp: * libpp/symbol_container.h: new public interface to select all symbols defined in a given source file. * pp/opannotate.cpp: when no source file is available we can at least output all symbols name/samples count belonging to this source. 2005-08-06 Philippe Elie * libpp/profile_container.cpp: * libpp/profile_container.h: * libpp/symbol_container.cpp: * libpp/symbol_container.h: find symbol by source filename, linenr : change public interface to return multiple symbols * pp/opannotate.cpp: Fix #1252754 2005-08-04 Philippe Elie * doc/opimport.1.in: * doc/oprofile.xml: improve documentation about opimport 2005-08-04 Philippe Elie * gui/ui/oprof_start.base.ui: handle ui events help string when using keyboard to navigate through event list 2005-08-04 Philippe Elie * libabi/Makefile.am: * libabi/abi.cpp: * libabi/abi.h: * libabi/op_abi.h: * libabi/tests/Makefile.am: * libabi/op_abi.cpp: removed * libabi/op_abi.c: new file, abi file writing in plain C * configure.in: * daemon/Makefile.am: * daemon/oprofiled.c: * daemon/liblegacy/Makefile.am: * doc/Makefile.am: * doc/oprofile.xml: build unconditionnaly libabi * doc/opimport.1.in: new file, man page for opimport, need some tweaking probably 2005-08-03 Philippe Elie * gui/oprof_start.cpp: * gui/oprof_start.h: * gui/oprof_start_config.cpp: * gui/oprof_start_config.h: * gui/ui/oprof_start.base.ui: add a button to reset the profiling session and an edit field to setup the callgraph depth 2005-08-03 Philippe Elie * gui/oprof_start_util.h: * gui/oprof_start_util.cpp: * gui/oprof_start.cpp: hardcode config directory to /root, rename get_user_filename() to get_config_filename() 2005-08-03 Philippe Elie * gui/oprof_start_util.cpp: fix detection of stopped daemon. Fix a miscounted interrupt nr after a start/stop/start 2005-08-03 Philippe Elie * doc/oprofile.xml: improve documentation about RTC mode. 2005-08-03 Philippe Elie * gui/oprof_start.cpp: fix events parsing according to the way we store them in setupfile changed by the last patch. 2005-08-02 Richard Purdie * HACKING: Add note about bashisms being bad * doc/oprofile.xml: Remove bash dependency * utils/opcontrol: remove bashisms from the script 2005-08-02 Richard Purdie * utils/opcontrol: remove some bashism, not yet enough to remove bash dependency 2005-07-21 John Levon * configure.in: bump to 0.9.2cvs 2005-07-18 John Levon * libutil++/tests/Makefile.am: canonicalize SRCDIR to fix make check 2005-07-18 John Levon * configure.in: bump to 0.9.1 2005-07-11 John Levon * module/oprofile.c: fix for GCC 3.4, spotted by Jason Lunz 2005-01-06 Ralf Baechle * events/Makefile.am: * events/mips/24K/events: * events/mips/24K/unit_masks: * libop/op_events.c: * libop/op_cpu_type.h: * libop/op_cpu_type.c: * utils/ophelp.c: Add MIPS 24K support 2005-06-16 Richard Purdie * utils/opcontrol: fix ARM kernels again after 2005-05-04 change to op_bfd.cpp broke it again. Only look for .text section for our kernel range. 2005-06-13 Richard Purdie * libpp/callgraph_container.cpp: * libpp/profile.cpp: ignore any symbols before .text for start_offset profiles 2005-06-02 Jason Lunz * libpp/diff_container.cpp: * libpp/format_output.cpp: * libutil++/bfd_support.cpp: * libutil++/op_bfd.cpp: fix compilation on GCC 2.95.x, older glibc 2005-06-01 Philippe Elie * pp/opannotate_options.cpp: error out if --assembly and --output-dir are used together * doc/opannotate.1.in: * doc/oprofile.xml: update docucmentation according. 2005-05-31 John Levon * configure.in: bump to 0.9.1cvs 2005-05-27 John Levon * libpp/diff_container.cpp: convert the diffs into an actual percentage! * configure.in: bump to 0.9 2005-05-26 John Levon * daemon/opd_cookie.c: * daemon/opd_sfile.c: * daemon/opd_trans.c: fixes for image filtering 2005-05-09 Will Cohen * daemon/opd_sfile.c: Fix variable declaration to compile on gcc 3.4. 2005-05-04 Philippe Elie * pp/common_option.cpp: split argument "{}" in two separate argument 2005-05-04 John Levon * doc/oprofile.xml: fix typos 2005-05-04 Philippe Elie * libutil++/cverb.cpp: * libutil++/cverb.h: fix comment, remove unecessary friend declaration. 2005-05-04 John Levon * daemon/liblegacy/opd_kernel.c: fix previous workaround so it only triggers on x86 2005-05-04 John Levon * libutil++/op_bfd.h: * libutil++/op_bfd.cpp: don't assume .text is the first SEC_CODE section. Keep a map of section file offsets to fix up dbfd symbols. Remove broken sanity checks. 2005-05-02 John Levon * doc/oprofile.xml: small change 2005-05-02 John Levon * daemon/Makefile.am: * daemon/opd_anon.h: * daemon/opd_anon.c: * daemon/init.c: * daemon/opd_cookie.c: * daemon/opd_events.h: * daemon/opd_events.c: * daemon/opd_mangling.c: * daemon/opd_sfile.h: * daemon/opd_sfile.c: * daemon/opd_trans.h: * daemon/opd_trans.c: * daemon/liblegacy/opd_sample_files.c: * doc/oprofile.xml: * libabi/abi.cpp: * libabi/opimport.cpp: * libabi/tests/abi_test.cpp: * libop/op_mangle.h: * libop/op_mangle.c: * libop/op_sample_file.h: * libpp/callgraph_container.cpp: * libpp/image_errors.cpp: * libpp/op_header.cpp: * libpp/parse_filename.cpp: * libpp/populate.cpp: * libpp/profile.h: * libpp/profile.cpp: * libpp/profile_spec.cpp: * libutil++/op_bfd.h: * libutil++/op_bfd.cpp: * pp/opannotate.cpp: * pp/opgprof.cpp: add basic anon mapping support 2005-04-28 John Levon * utils/opcontrol: * doc/opcontrol.1.in: * doc/oprofile.xml: add opcontrol --status 2005-04-28 Philippe Elie * daemon/opd_sfile.c: clear only 256 entry in the sfile lru list 2005-04-28 John Levon * libabi/abi.cpp: * libabi/op_import.cpp: add cg_to_is_kernel to abi * configure.in: * libabi/tests/Makefile.am: * libabi/tests/abi_test.cpp: move test to subdir 2005-04-28 Philippe Elie * module/ia64/op_pmu.c: compile fix, pfm_syst_info has been added between 2.4.20 and 2.4.21 2005-04-27 Philippe Elie * libutil/op_file.h: op_file_readable() accept only regular file * libutil/op_file.c: * libutil++/tests/file_manip_tests.cpp: 2005-04-27 John Levon * daemon/opd_sfile.h: * daemon/opd_sfile.c: rewrite. Fix --no-vmlinux taking up CPU when using call graph profiling 2005-04-27 John Levon * daemon/oprofiled.h: remove dead prototype 2005-04-25 Philippe Elie * daemon/opd_mangling.c: protect last against sfile lru deletion * daemon/opd_sfile.c: allow null sfile to sfile_get(), sfile_put() 2005-04-24 John Levon * daemon/opd_cookie.h: * daemon/opd_cookie.c: * daemon/opd_trans.c: * daemon/opd_sfile.c: * daemon/opd_stats.h: * daemon/opd_stats.c: handle NO_COOKIE (drop on the floor) * m4/qt.m4: allow gcc 4.0 compile with Qt headers by using -isystem 2005-04-23 John Levon * configure.in: add --with-gcc, --with-binutils (for development use only, undocumented) 2005-04-22 Philippe Elie * libpp/locate_images.h: add a virtual dtor to extra_images::matcher 2005-04-22 John Levon * doc/internals.xml: some paragraphs on call graphs * libop/op_events.h: * libop/op_events.c: * libutil/op_deviceio.h: * libutil/op_deviceio.c: * libutil/op_fileio.h: * libutil/op_fileio.c: remove dead code * libutil/op_lock_file.h: * libutil/op_lock_file.c: make a function static * libutil++/Makefile.am: * libutil++/op_bfd.h: * libutil++/op_bfd.cpp: * libutil++/bfd_support.h: * libutil++/bfd_support.cpp: move lots of BFD gunk into a separate file. Fix synth symbols support, with lots of testing by Maynard. * libutil++/comma_list.h: remove unused set_p * pp/opannotate.cpp: complain less verbosely if the input file couldn't be found 2005-04-14 John Levon * libutil++/growable_vector.h: * libpp/diff_container.cpp: fix fill() * pp/opreport.cpp: fix multiple apps for diff output 2005-04-14 John Levon * daemon/opd_interface.h: * daemon/opd_trans.c: remove legacy TRACE_END * daemon/liblegacy/opd_kernel.c: * daemon/liblegacy/opd_proc.c: avoid attributing "no mapping" samples to vmlinux when using --no-vmlinux via a sick hack 2005-04-13 John Levon * libutil++/growable_vector.h: add fill() * libutil++/diff_container.cpp: use it * libpp/symbol_sort.cpp: code clean up 2005-04-13 John Levon * libpp/diff_container.h: * libpp/diff_container.cpp: syms doesn't need to be a member 2005-04-13 Nathan Tallent * utils/opcontrol: fix unquoted variable references in 'test' expressions 2005-04-13 Maynard Johnson * libutil++/op_bfd.cpp: skip null-name section symbols 2005-04-12 Philippe Elie * libutil++/string_manip.cpp: fix double formating when value are negative 2005-04-12 John Levon * libpp/arrange_profiles.h: * libpp/arrange_profiles.cpp: * pp/opreport_options.cpp: * pp/common_option.cpp: verify diff profile classes match 2005-04-12 John Levon * doc/oprofile.xml: * doc/oprofile.1.in: document diff profiles 2005-04-12 John Levon * libpp/diff_container.cpp: fix duplicate syms in output * pp/opreport.cpp: * libpp/diff_container.h: * libpp/diff_container.cpp: implement thresholding etc. 2005-04-12 John Levon * libpp/Makefile.am: * libpp/count_array.cpp: * libpp/count_array.h: * libpp/diff_container.cpp: * libpp/diff_container.h: * libpp/format_flags.h: * libpp/format_output.cpp: * libpp/format_output.h: * libpp/profile_spec.cpp: * libpp/profile_spec.h: * libpp/symbol.h: * libpp/symbol_functors.cpp: * libpp/symbol_sort.cpp: * libpp/symbol_sort.h: * libutil++/Makefile.am: * libutil++/growable_vector.h: * libutil++/string_manip.cpp: * libutil++/string_manip.h: * pp/common_option.cpp: * pp/common_option.h: * pp/opannotate.cpp: * pp/opannotate_options.cpp: * pp/opannotate_options.h: * pp/oparchive.cpp: * pp/oparchive_options.cpp: * pp/oparchive_options.h: * pp/opdiff.cpp: * pp/opdiff_options.cpp: * pp/opdiff_options.h: * pp/opgprof.cpp: * pp/opgprof_options.cpp: * pp/opgprof_options.h: * pp/opreport.cpp: * pp/opreport_options.cpp: * pp/opreport_options.h: implement an initial version of diff profiling 2005-04-11 John Levon * doc/oprofile.xml: * doc/opreport.1.in: * doc/opannotate.1.in: * pp/opreport_options.cpp: * pp/opannotate_options.cpp: add -D and -% 2005-04-11 John Levon * pp/opannotate.cpp: fix opannotate matching several binaries 2005-04-09 Philippe Elie * libutil++/op_bfd.cpp: fix a segfault if a binary file can't be accessed (opreport -gl; opannotate) problem and solution pointed by Maynard P. Johnson . * libutil++/op_bfd.h: op_bfd member function must check for a NULL ibfd before using it. 2005-04-07 John Levon * libutil/tests/Makefile.am: * libutil++/tests/Makefile.am: * libdb/tests/Makefile.am: * libop/tests/Makefile.am: fix tests build 2005-04-07 John Levon * m4/Makefile.am: * m4/binutils.m4: * configure.in: move binutils stuff into a macro * doc/oprofile.xml: fixes and improvements 2005-04-07 John Levon * libpp/callgraph_container.cpp: hoist image/app name lookup outside of the loop 2005-04-07 John Levon * libutil++/op_bfd.cpp: performance improvements with handling symbols 2005-04-06 John Levon * libpp/populate.h: * libpp/populate.cpp: * libpp/callgraph_container.cpp: * libutil++/cached_value.h: * libutil++/op_bfd.h: * libutil++/op_bfd.cpp: * pp/opannotate.cpp: * pp/opreport.cpp: * libutil++/tests/Makefile.am: * libutil++/tests/cached_value_tests.cpp: tweak CRC buffer. Do delayed debug info searching (makes no actual difference). 2005-04-05 John Levon * libpp/format_output.cpp: add separator at first function for opreport -c 2005-04-05 John Levon * libpp/callgraph_container.h: * libpp/callgraph_container.cpp: * pp/opreport.cpp: * pp/opreport_options.cpp: implement -i / -e for opreport -c 2005-04-05 John Levon * libpp/format_output.h: * libpp/format_output.cpp: * pp/opreport.cpp: * pp/opreport_options.cpp: implement --global-percent for opreport -c 2005-04-04 John Levon * configure.in: * doc/Makefile.am: * doc/oprofile.xml: * doc/opstack.1.in: * doc/opreport.1.in: * doc/oprofile.1.in: * pp/.cvsignore: * pp/Makefile.am: * pp/opreport.cpp: * pp/opreport_options.cpp: * pp/opreport_options.h: * pp/opstack.cpp: * pp/opstack_options.cpp: * pp/opstack_options.h: remove opstack in favour of opreport -c * libpp/callgraph_container.cpp: fix for new call-graph code * doc/oprofile.xml: * doc/oparchive.1.in: document -x, re-organise manual 2005-04-04 Maynard Johnson * configure.in: further check for bfd synthesised symbols support 2005-04-04 John Levon * libpp/callgraph_container.cpp: * libpp/callgraph_container.h: * libpp/format_flags.h: * libpp/format_output.cpp: * libpp/format_output.h: * libpp/symbol.cpp: * libpp/symbol.h: * libpp/symbol_sort.cpp: * libpp/symbol_sort.h: * libutil++/op_bfd.cpp: * pp/common_option.cpp: * pp/common_option.h: * pp/opstack.cpp: * pp/opstack_options.cpp: * pp/opstack_options.h: re-whack call-graph collection and output format 2005-04-03 Maynard Johnson * configure.in: * libutil++/op_bfd.h: * libutil++/op_bfd.cpp: synthesis dotted symbols if necessary 2005-03-31 John Levon * HACKING: * TODO: * configure.in: * doc/Makefile.am: * doc/op_help.1.in: * doc/ophelp.1.in: * doc/oprofile.xml: * libabi/.cvsignore: * libabi/Makefile.am: * libabi/opimport.cpp: * utils/.cvsignore: * utils/Makefile.am: * utils/opcontrol: * utils/ophelp.c: rename op_import->opimport, op_help->ophelp. Allow normal user to use opcontrol --list-events 2005-03-31 John Levon * doc/internals.xml: more internals docs 2005-03-29 John Levon * libpp/callgraph_container.h: * libpp/callgraph_container.cpp: * libpp/format_output.h: * libpp/format_output.cpp: * libpp/profile_container.h: * libpp/symbol.h: * libpp/symbol_sort.h: * libpp/symbol_sort.cpp: * libpp/symbol_container.h: * libpp/symbol_container.cpp: * pp/opreport_options.h: header file cleanup 2005-03-26 John Levon * Makefile.am: * doc/oprofile.xml: * m4/configmodule.m4: * module/x86/Makefile.in: * module/x86/hammer_entry.S: * module/x86/hammer_ia32entry.S: * module/x86/hammer_op_syscalls.c: * module/x86/hammer_oprofile_nmi.S: * module/x86/op_apic.h: * module/x86/op_arch.h: * module/x86/op_nmi.c: remove x86-64 support for 2.4 kernels, as it's non-functional 2005-03-26 John Levon * daemon/oprofiled.c: honour oprofiled -v first, complain if --events option is missing instead of core dumping * doc/oprofiled.xml: explain opreport -d behaviour for no-symbol binaries 2005-03-14 Maynard Johnson * utils/op_help.c: * doc/oprofile.xml: Update PPC64-related documentation to include URL links to IBM publications. 2005-03-22 John Levon * configure.in: bump to 0.9cvs 2005-03-19 Philippe Elie * configure.in: bump to 0.8.2 2005-03-18 Philippe Elie * events/i386/p4/events: * events/i386/p4/unit_masks: * events/i386/p4-ht/events: * events/i386/p4-ht/unit_masks: remove FRONT_END_EVENT, EXECUTION_EVENT and REPLAY_EVENT. * libop/tests/alloc_counter_tests.c: update test according events removal 2005-03-18 Philippe Elie * utils/opcontrol: revert last patch, bash can't do integer arithmetic on hexadecimal. 2005-02-21 John Levon * utils/opcontrol: further validation of the kernel range to prevent an unrelocated vmlinux being used 2005-02-07 John Levon * events/arm/xscale1/unit_masks: fix 'zero' unit mask 2005-01-25 Maynard Johnson * doc/oprofile.xml: Add PowerPC 64-bit processor support information 2005-01-24 Philippe Elie * libutil++/op_bfd.cpp: always initialize op_bfd_symbol:symb_hidden and symb_weak, not a bug fix but a cleanup. 2005-01-04 Andy Fleming * events/Makefile.am: * events/ppc/e500/events: * events/ppc/e500/unit_masks: * libop/op_events.c: * libop/op_cpu_type.h: * libop/op_cpu_type.c: * utils/op_help.c: Add PPC e500 support 2005-01-02 Philippe Elie * pp/opannotate.cpp: fix #1093162 by simplifying the code, this was likely to be a compiler problem but the new code is simpler. oprofile-0.9.9/config.sub0000755000076400007640000010316712175510233012273 00000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 # Free Software Foundation, Inc. timestamp='2009-11-20' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Please send patches to . Submit a context # diff and a properly formatted GNU ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ kopensolaris*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray | -microblaze) os= basic_machine=$1 ;; -bluegene*) os=-cnk ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nios | nios2 \ | ns16k | ns32k \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | rx \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | ubicom32 \ | v850 | v850e \ | we32k \ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown ;; m6811 | m68hc11 | m6812 | m68hc12 | picochip) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* | rx-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ | tron-* \ | ubicom32-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aros) basic_machine=i386-pc os=-aros ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; bluegene*) basic_machine=powerpc-ibm os=-cnk ;; c90) basic_machine=c90-cray os=-unicos ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; microblaze) basic_machine=microblaze-xilinx ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; mvs) basic_machine=i370-ibm os=-mvs ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc) basic_machine=powerpc-unknown ;; ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff ;; tic55x | c55x*) basic_machine=tic55x-unknown os=-coff ;; tic6x | c6x*) basic_machine=tic6x-unknown os=-coff ;; tile*) basic_machine=tile-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; z80-*-coff) basic_machine=z80-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -auroraux) os=-auroraux ;; -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ | -sym* | -kopensolaris* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -cnk*|-aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: oprofile-0.9.9/ChangeLog-20110000664000076400007640000000107012175510133012432 000000000000002011-02-25 Maynard Johnson From this date forward, ChangeLog entries will not be necessary, since 'git log' can now be used to show changes in the repository. 2011-02-09 William Cohen * libpp/format_output.h: Do not use mutable for reference variable. 2011-01-17 Will Deacon * events/arm/armv7-ca9/events: Add missing TLB event 2011-01-05 William Cohen * utils/opcontrol: Add argument checking for numerical arguments See ChangeLog-2010 for earlier changelogs. oprofile-0.9.9/libop/0000775000076400007640000000000012175511554011476 500000000000000oprofile-0.9.9/libop/op_parse_event.h0000664000076400007640000000206412175510133014572 00000000000000/** * @file op_parse_event.h * event parsing * * You can have silliness here. * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef OP_PARSE_EVENT_H #define OP_PARSE_EVENT_H #include struct parsed_event { char * name; int count; int unit_mask; char * unit_mask_name; int kernel; int user; int unit_mask_valid; }; /** * @param parsed_events array of events to fill in * @param max_events size of parsed_events * @param events null terminated array of events string on the form * event_name:count[:unit_mask:kernel:user] * * parse events given by the nil terminated array events and fill in * parsed_events with results. Events validity are not checked except. * A fatal error occur if number of events is greater than max_events. * * Return the number of events parsed. */ size_t parse_events(struct parsed_event * parsed_events, size_t max_events, char const * const * events, int check_count); #endif /* !OP_PARSE_EVENT_H */ oprofile-0.9.9/libop/op_hw_config.h0000664000076400007640000000153612175510133014225 00000000000000/** * @file op_hw_config.h * Configuration parameters that are dependent on CPU/architecture * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef OP_HW_CONFIG_H #define OP_HW_CONFIG_H /** maximum number of counters, up to 4 for Athlon (18 for P4). The primary * use of this variable is for static/local array dimension. Never use it in * loop or in array index access/index checking unless you know what you * made. */ #ifdef __alpha__ #define OP_MAX_COUNTERS 20 #else #define OP_MAX_COUNTERS 8 #endif /** maximum number of events between interrupts. Counters are 40 bits, but * for convenience we only use 32 bits. The top bit is used for overflow * detection, so user can set up to (2^31)-1 */ #define OP_MAX_PERF_COUNT 2147483647UL #endif /* OP_HW_CONFIG_H */ oprofile-0.9.9/libop/op_mangle.h0000664000076400007640000000234512175510133013524 00000000000000/** * @file op_mangle.h * Mangling of sample file names * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef OP_MANGLE_H #define OP_MANGLE_H #include #ifdef __cplusplus extern "C" { #endif enum mangle_flags { MANGLE_NONE = 0, MANGLE_CPU = (1 << 0), MANGLE_TGID = (1 << 1), MANGLE_TID = (1 << 2), MANGLE_KERNEL = (1 << 3), MANGLE_CALLGRAPH = (1 << 4), MANGLE_ANON = (1 << 5), MANGLE_CG_ANON = (1 << 6), }; /** * Temporary structure for passing parameters to * op_mangle_filename. */ struct mangle_values { int flags; char const * image_name; char const * anon_name; char const * dep_name; char const * cg_image_name; char const * event_name; int count; unsigned int unit_mask; pid_t tgid; pid_t tid; int cpu; }; /** * op_mangle_filename - mangle a sample filename * @param values parameters to use as mangling input * * See also PP:3 for the encoding scheme * * Returns a char* pointer to the mangled string. Caller * is responsible for freeing this string. */ char * op_mangle_filename(struct mangle_values const * values); #ifdef __cplusplus } #endif #endif /* OP_MANGLE_H */ oprofile-0.9.9/libop/op_alloc_counter.h0000664000076400007640000000161212175510133015106 00000000000000/** * @file op_alloc_counter.h * hardware counter allocation * * You can have silliness here. * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef OP_ALLOC_COUNTER_H #define OP_ALLOC_COUNTER_H #include #include "op_cpu_type.h" struct op_event; #ifdef __cplusplus extern "C" { #endif /** * @param pev array of selected event we want to bind to counter * @param nr_events size of pev array * @param cpu_type cpu type * * Try to calculate a binding between passed event in pev and counter number. * The binding is returned in a size_t * where returned ptr[i] is the counter * number bound to pev[i] */ size_t * map_event_to_counter(struct op_event const * pev[], int nr_events, op_cpu cpu_type); #ifdef __cplusplus } #endif #endif /* !OP_ALLOC_COUNTER_H */ oprofile-0.9.9/libop/op_sample_file.h0000664000076400007640000000143112175510133014534 00000000000000/** * @file op_sample_file.h * Sample file format * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef OP_SAMPLE_FILE_H #define OP_SAMPLE_FILE_H #include "op_types.h" #include #include /* header of the sample files */ struct opd_header { u8 magic[4]; u32 version; u32 cpu_type; u32 ctr_event; u32 ctr_um; u32 ctr_count; // for cg file the from_cg_is_kernel u32 is_kernel; double cpu_speed; u64 mtime; u32 cg_to_is_kernel; /* spu_profile=1 says sample file contains Cell BE SPU profile data */ u32 spu_profile; uint64_t embedded_offset; u64 anon_start; u64 cg_to_anon_start; /* binary compatibility reserve */ u32 reserved1[1]; }; #endif /* OP_SAMPLE_FILE_H */ oprofile-0.9.9/libop/op_cpu_type.h0000664000076400007640000001375212175510133014115 00000000000000/** * @file op_cpu_type.h * CPU type determination * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef OP_CPU_TYPE_H #define OP_CPU_TYPE_H #ifdef __cplusplus extern "C" { #endif /** * Supported cpu type. Always add new CPU types at the very end. */ typedef enum { CPU_NO_GOOD = -1, /**< unsupported CPU type */ CPU_PPRO, /**< Pentium Pro */ CPU_PII, /**< Pentium II series */ CPU_PIII, /**< Pentium III series */ CPU_ATHLON, /**< AMD P6 series */ CPU_TIMER_INT, /**< CPU using the timer interrupt */ CPU_RTC, /**< other CPU to use the RTC */ CPU_P4, /**< Pentium 4 / Xeon series */ CPU_IA64, /**< Generic IA64 */ CPU_IA64_1, /**< IA64 Merced */ CPU_IA64_2, /**< IA64 McKinley */ CPU_HAMMER, /**< AMD Hammer family */ CPU_P4_HT2, /**< Pentium 4 / Xeon series with 2 hyper-threads */ CPU_AXP_EV4, /**< Alpha EV4 family */ CPU_AXP_EV5, /**< Alpha EV5 family */ CPU_AXP_PCA56, /**< Alpha PCA56 family */ CPU_AXP_EV6, /**< Alpha EV6 family */ CPU_AXP_EV67, /**< Alpha EV67 family */ CPU_P6_MOBILE, /**< Pentium M series */ CPU_ARM_XSCALE1, /**< ARM XScale 1 */ CPU_ARM_XSCALE2, /**< ARM XScale 2 */ CPU_PPC64_POWER4, /**< ppc64 POWER4 family */ CPU_PPC64_POWER5, /**< ppc64 POWER5 family */ CPU_PPC64_POWER5p, /**< ppc64 Power5+ family */ CPU_PPC64_970, /**< ppc64 970 family */ CPU_MIPS_20K, /**< MIPS 20K */ CPU_MIPS_24K, /**< MIPS 24K */ CPU_MIPS_25K, /**< MIPS 25K */ CPU_MIPS_34K, /**< MIPS 34K */ CPU_MIPS_5K, /**< MIPS 5K */ CPU_MIPS_R10000, /**< MIPS R10000 */ CPU_MIPS_R12000, /**< MIPS R12000 */ CPU_MIPS_RM7000, /**< QED RM7000 */ CPU_MIPS_RM9000, /**< PMC-Sierra RM9000 */ CPU_MIPS_SB1, /**< Broadcom SB1 */ CPU_MIPS_VR5432, /**< NEC VR5432 */ CPU_MIPS_VR5500, /**< MIPS VR5500, VR5532 and VR7701 */ CPU_PPC_E500, /**< e500 */ CPU_PPC_E500_2, /**< e500v2 */ CPU_CORE, /**< Core Solo / Duo series */ CPU_PPC_7450, /**< PowerPC G4 */ CPU_CORE_2, /**< Intel Core 2 */ CPU_PPC64_POWER6, /**< ppc64 POWER6 family */ CPU_PPC64_970MP, /**< ppc64 970MP */ CPU_PPC64_CELL, /**< ppc64 Cell Broadband Engine*/ CPU_FAMILY10, /**< AMD family 10 */ CPU_PPC64_PA6T, /**< ppc64 PA6T */ CPU_ARM_MPCORE, /**< ARM MPCore */ CPU_ARM_V6, /**< ARM V6 */ CPU_PPC64_POWER5pp, /**< ppc64 Power5++ family */ CPU_PPC_E300, /**< e300 */ CPU_AVR32, /**< AVR32 */ CPU_ARM_V7, /**< ARM Cortex-A8 */ CPU_ARCH_PERFMON, /**< Intel architectural perfmon */ CPU_FAMILY11H, /**< AMD family 11h */ CPU_PPC64_POWER7, /**< ppc64 POWER7 family */ CPU_PPC64_IBM_COMPAT_V1, /**< IBM PPC64 processor compat mode version 1 */ CPU_CORE_I7, /* Intel Core i7, Nehalem */ CPU_ATOM, /* First generation Intel Atom */ CPU_MIPS_LOONGSON2, /* < loongson2 family */ CPU_NEHALEM, /* Intel Nehalem microarchitecture */ CPU_ARM_V7_CA9, /**< ARM Cortex-A9 */ CPU_MIPS_74K, /**< MIPS 74K */ CPU_MIPS_1004K, /**< MIPS 1004K */ CPU_FAMILY12H, /**< AMD family 12h */ CPU_FAMILY14H, /**< AMD family 14h */ CPU_FAMILY15H, /**< AMD family 15h */ CPU_WESTMERE, /* Intel Westmere microarchitecture */ CPU_ARM_SCORPION, /**< ARM SCORPION */ CPU_ARM_SCORPIONMP, /**< ARM SCORPIONMP */ CPU_SANDYBRIDGE, /* Intel Sandy-Bridge microarchitecture */ CPU_TILE_TILE64, /**< Tilera TILE64 family */ CPU_TILE_TILEPRO, /**< Tilera TILEPro family (Pro64 or Pro36) */ CPU_TILE_TILEGX, /**< Tilera TILE-GX family */ CPU_S390_Z10, /* IBM System z10 */ CPU_S390_Z196, /* IBM zEnterprise z196 */ CPU_IVYBRIDGE, /* Intel Ivy-Bridge microarchitecture */ CPU_ARM_V7_CA5, /**< ARM Cortex-A5 */ CPU_ARM_V7_CA7, /**< ARM Cortex-A7 */ CPU_ARM_V7_CA15, /**< ARM Cortex-A15 */ CPU_HASWELL, /** < Intel Haswell microarchitecture */ CPU_S390_ZEC12, /**< IBM zEnterprise EC12 */ CPU_AMD64_GENERIC, /**< AMD64 Generic */ CPU_PPC64_ARCH_V1, /** < IBM Power architected events version 1 */ CPU_PPC64_POWER8, /**< ppc64 POWER8 family */ MAX_CPU_TYPE } op_cpu; /** * the CPU lowest common denominator * * returns 1 if there are variations for the base cpu type; */ int op_cpu_variations(op_cpu cpu_type); /** * get the CPU lowest common denominator * * returns cpu_type if cpu_type does not have a lowest common denominator. */ op_cpu op_cpu_base_type(op_cpu cpu_type); /** * get the CPU type from the kernel * * returns CPU_NO_GOOD if the CPU could not be identified. * This function can not work if the module is not loaded */ op_cpu op_get_cpu_type(void); /** * get the cpu number based on string * @param cpu_string with either the cpu type identifier or cpu type number * * The function returns CPU_NO_GOOD if no matching string was found. */ op_cpu op_get_cpu_number(char const * cpu_string); /** * get the cpu string. * @param cpu_type the cpu type identifier * * The function always return a valid char const * the core cpu denomination * or "invalid cpu type" if cpu_type is not valid. */ char const * op_get_cpu_type_str(op_cpu cpu_type); /** * op_get_cpu_name - get the cpu name * @param cpu_type the cpu identifier name * * The function always return a valid char const * * Return the OProfile CPU name, e.g. "i386/pii" */ char const * op_get_cpu_name(op_cpu cpu_type); #if defined(__i386__) || defined(__x86_64__) int op_is_cpu_vendor(char * vendor); #endif /** * compute the number of counters available * @param cpu_type numeric processor type * * returns 0 if the CPU could not be identified */ int op_get_nr_counters(op_cpu cpu_type); typedef enum { OP_INTERFACE_NO_GOOD = -1, OP_INTERFACE_26 } op_interface; /** * get the INTERFACE used to communicate between daemon and the kernel * * returns OP_INTERFACE_NO_GOOD if the INTERFACE could not be identified. * This function will identify the interface as OP_INTERFACE_NO_GOOD if * the module is not loaded. */ op_interface op_get_interface(void); /** * determine if the /dev/oprofile/timer is available * * return true if the kernel modules provides the /dev/oprofile * interface for timer mode sampling. */ int op_cpu_has_timer_fs(void); #ifdef __cplusplus } #endif #endif /* OP_CPU_TYPE_H */ oprofile-0.9.9/libop/op_xml_events.h0000664000076400007640000000070212175510133014440 00000000000000/** * @file op_xml_events.h * routines for generating event files in XML * * @remark Copyright 2008 OProfile authors * @remark Read the file COPYING * * @author Dave Nomura */ #ifndef OP_XML_EVENTS_H #define OP_XML_EVENTS_H #include "op_events.h" void xml_help_for_event(struct op_event const * event); void open_xml_events(char const * title, char const * doc, op_cpu cpu_type); void close_xml_events(void); #endif /* OP_XML_EVENTS_H */ oprofile-0.9.9/libop/op_hw_specific.h0000664000076400007640000000752412175510133014550 00000000000000/* * @file architecture specific interfaces * @remark Copyright 2008 Intel Corporation * @remark Read the file COPYING * @author Andi Kleen */ #if defined(__i386__) || defined(__x86_64__) /* Assume we run on the same host as the profilee */ #define num_to_mask(x) ((1U << (x)) - 1) typedef struct { unsigned eax, ebx, ecx, edx; } cpuid_data; #if defined(__i386__) static inline void cpuid(int func, cpuid_data * p) { asm("push %%ebx; cpuid; mov %%ebx, %%esi; pop %%ebx" : "=a" (p->eax), "=S" (p->ebx), "=c" (p->ecx), "=d" (p->edx) : "0" (func)); } #else static inline void cpuid(int func, cpuid_data * p) { asm("cpuid" : "=a" (p->eax), "=b" (p->ebx), "=c" (p->ecx), "=d" (p->edx) : "0" (func)); } #endif static inline int cpuid_vendor(char *vnd) { union { struct { unsigned b,d,c; }; char v[12]; } v; cpuid_data data; cpuid(0, &data); v.b = data.ebx; v.c = data.ecx; v.d = data.edx; return !strncmp(v.v, vnd, 12); } static inline unsigned int cpuid_signature() { cpuid_data data; cpuid(1, &data); return data.eax; } static inline unsigned int cpu_model(unsigned int eax) { unsigned model = (eax & 0xf0) >> 4; unsigned ext_model = (eax & 0xf0000) >> 12; return ext_model + model; } static inline unsigned int cpu_family(unsigned int eax) { unsigned family = (eax & 0xf00) >> 8; unsigned ext_family = (eax & 0xff00000) >> 20; return ext_family + family; } static inline unsigned int cpu_stepping(unsigned int eax) { return (eax & 0xf); } /* Work around Nehalem spec update AAJ79: CPUID incorrectly indicates unhalted reference cycle architectural event is supported. We assume steppings after C0 report correct data in CPUID. */ static inline void workaround_nehalem_aaj79(unsigned *ebx) { unsigned eax; if (!cpuid_vendor("GenuineIntel")) return; eax = cpuid_signature(); if (cpu_family(eax) != 6 || cpu_model(eax) != 26 || cpu_stepping(eax) > 4) return; *ebx |= (1 << 2); /* disable unsupported event */ } static inline unsigned arch_get_filter(op_cpu cpu_type) { if (op_cpu_base_type(cpu_type) == CPU_ARCH_PERFMON) { cpuid_data data; cpuid(0xa, &data); workaround_nehalem_aaj79(&data.ebx); return data.ebx & num_to_mask(data.eax >> 24); } return -1U; } static inline int arch_num_counters(op_cpu cpu_type) { if (op_cpu_base_type(cpu_type) == CPU_ARCH_PERFMON) { cpuid_data data; cpuid(0xa, &data); return (data.eax >> 8) & 0xff; } return -1; } static inline unsigned arch_get_counter_mask(void) { cpuid_data data; cpuid(0xa, &data); return num_to_mask((data.eax >> 8) & 0xff); } static inline op_cpu op_cpu_specific_type(op_cpu cpu_type) { if (cpu_type == CPU_ARCH_PERFMON) { /* Already know is Intel family 6, so just check the model. */ int model = cpu_model(cpuid_signature()); switch(model) { case 0x0f: case 0x16: case 0x17: case 0x1d: return CPU_CORE_2; case 0x1a: case 0x1e: case 0x1f: case 0x2e: return CPU_CORE_I7; case 0x1c: return CPU_ATOM; case 0x25: /* Westmere mobile/desktop/entry level server */ case 0x2c: /* Westmere-EP (Intel Xeon 5600 series) */ case 0x2f: /* Westmere-EX */ return CPU_WESTMERE; case 0x2a: case 0x2d: return CPU_SANDYBRIDGE; case 0x3a: case 0x3e: return CPU_IVYBRIDGE; case 0x3c: case 0x3f: case 0x45: case 0x46: case 0x47: return CPU_HASWELL; } } return cpu_type; } #else static inline unsigned arch_get_filter(op_cpu cpu_type) { /* Do something with passed arg to shut up the compiler warning */ if (cpu_type != CPU_NO_GOOD) return 0; return 0; } static inline int arch_num_counters(op_cpu cpu_type) { /* Do something with passed arg to shut up the compiler warning */ if (cpu_type != CPU_NO_GOOD) return -1; return -1; } static inline unsigned arch_get_counter_mask(void) { return 0; } static inline op_cpu op_cpu_specific_type(op_cpu cpu_type) { return cpu_type; } #endif oprofile-0.9.9/libop/op_config.h0000664000076400007640000000614012175510133013523 00000000000000/** * @file op_config.h * * Parameters a user may want to change. See * also op_config_24.h * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie * @Modifications Daniel Hansel */ #ifndef OP_CONFIG_H #define OP_CONFIG_H #if defined(__cplusplus) extern "C" { #endif enum { OPERF_SAMPLES, /**< nr. samples */ OPERF_KERNEL, /**< nr. kernel samples */ OPERF_PROCESS, /**< nr. userspace samples */ OPERF_INVALID_CTX, /**< nr. samples lost due to sample address not in expected range for domain */ OPERF_LOST_KERNEL, /**< nr. kernel samples lost */ OPERF_LOST_SAMPLEFILE, /**< nr samples for which sample file can't be opened */ OPERF_LOST_NO_MAPPING, /**< nr samples lost due to no mapping */ OPERF_NO_APP_KERNEL_SAMPLE, /** #include #include #include "op_xml_out.h" char const * xml_tag_map[] = { "NONE", "id", "profile", "processor", "cputype", "title", "schemaversion", "mhz", "setup", "timersetup", "rtcinterrupts", "eventsetup", "eventname", "unitmask", "setupcount", "separatedcpus", "options", "session", "debuginfo", "details", "excludedependent", "excludesymbols", "imagepath", "includesymbols", "merge", "classes", "class", "cpu", "event", "mask", "process", "pid", "thread", "tid", "binary", "module", "name", "callers", "callees", "symbol", "idref", "self", "detaillo", "detailhi", "symboltable", "symboldata", "startingaddr", "file", "line", "codelength", "summarydata", "sampledata", "count", "detailtable", "symboldetails", "detaildata", "vmaoffset", "bytestable", "bytes", "help_events", "header", "title", "doc", "event", "event_name", "group", "desc", "counter_mask", "min_count", "ext", "unit_masks", "default", "category", "unit_mask", "mask", "desc", "extra" }; #define MAX_BUF_LEN 2048 char const * xml_tag_name(tag_t tag) { return xml_tag_map[tag]; } void open_xml_element(tag_t tag, int with_attrs, char *buffer, size_t max) { char *buf; int size, ret; buffer[max - 1] = '\0'; size = strlen(buffer); buf = &buffer[size]; size = max - 1 - size; ret = snprintf(buf, size, "<%s%s", xml_tag_name(tag), (with_attrs ? " " : ">\n")); if (ret < 0 || ret >= size) { fprintf(stderr,"open_xml_element: snprintf failed\n"); exit(EXIT_FAILURE); } } void close_xml_element(tag_t tag, int has_nested, char *buffer, size_t max) { char *buf; int size, ret; buffer[max - 1] = '\0'; size = strlen(buffer); buf = &buffer[size]; size = max - 1 - size; if (tag == NONE) ret = snprintf(buf, size, "%s\n", (has_nested ? ">" : "/>")); else ret = snprintf(buf, size, "\n", xml_tag_name(tag)); if (ret < 0 || ret >= size) { fprintf(stderr, "close_xml_element: snprintf failed\n"); exit(EXIT_FAILURE); } } void init_xml_int_attr(tag_t attr, int value, char *buffer, size_t max) { char *buf; int size, ret; buffer[max - 1] = '\0'; size = strlen(buffer); buf = &buffer[size]; size = max - 1 - size; ret = snprintf(buf, size, " %s=\"%d\"", xml_tag_name(attr), value); if (ret < 0 || ret >= size) { fprintf(stderr,"init_xml_int_attr: snprintf failed\n"); exit(EXIT_FAILURE); } } void init_xml_dbl_attr(tag_t attr, double value, char *buffer, size_t max) { char *buf; int size, ret; buffer[max - 1] = '\0'; size = strlen(buffer); buf = &buffer[size]; size = max - 1 - size; ret = snprintf(buf, size, " %s=\"%.2f\"", xml_tag_name(attr), value); if (ret < 0 || ret >= size) { fprintf(stderr, "init_xml_dbl_attr: snprintf failed\n"); exit(EXIT_FAILURE); } } static void xml_quote(char const *str, char *buffer, size_t max) { char *buf; char *quote; char *pos = (char*)str; size_t size; int ret; buffer[max - 1] = '\0'; size = strlen(buffer); buf = &buffer[size]; size = max - 1 - size; if (size < strlen(pos) + 2) goto Error; *buf = '"'; buf++; size--; while (*pos) { switch(*pos) { case '&': quote = "&"; break; case '<': quote = "<"; break; case '>': quote = ">"; break; case '"': quote = """; break; default: *buf = *pos; pos++; buf++; size--; continue; } pos++; ret = snprintf(buf, size, "%s", quote); if (ret < 0 || ret >= (int)size) goto Error; buf += ret; size -= ret; if (size < strlen(pos)) goto Error; } if (!size) goto Error; *buf = '"'; buf++; *buf = '\0'; return; Error: fprintf(stderr,"quote_str: buffer overflow\n"); exit(EXIT_FAILURE); } void init_xml_str_attr(tag_t attr, char const *str, char *buffer, size_t max) { char *buf; int size, ret; buffer[max - 1] = '\0'; size = strlen(buffer); buf = &buffer[size]; size = max - 1 - size; ret = snprintf(buf, size, " %s=", xml_tag_name(attr)); if (ret < 0 || ret >= size) goto Error; buf += ret; size -= ret; if (!size) goto Error; xml_quote(str, buf, size); return; Error: fprintf(stderr,"init_xml_str_attr: snprintf failed\n"); exit(EXIT_FAILURE); } oprofile-0.9.9/libop/op_xml_out.h0000664000076400007640000000332012175510133013742 00000000000000/** * @file op_xml_out.h * utility routines for writing XML * * @remark Copyright 2008 OProfile authors * @remark Read the file COPYING * * @author Dave Nomura */ #ifndef OP_XML_OUT_H #define OP_XML_OUT_H #ifdef __cplusplus extern "C" { #endif typedef enum { NONE=0, TABLE_ID, PROFILE, PROCESSOR, CPU_NAME, TITLE, SCHEMA_VERSION, MHZ, SETUP, TIMER_SETUP, RTC_INTERRUPTS, EVENT_SETUP, EVENT_NAME, UNIT_MASK, SETUP_COUNT, SEPARATED_CPUS, OPTIONS, SESSION, DEBUG_INFO, DETAILS, EXCLUDE_DEPENDENT, EXCLUDE_SYMBOLS, IMAGE_PATH, INCLUDE_SYMBOLS, MERGE, CLASSES, CLASS, CPU_NUM, EVENT_NUM, EVENT_MASK, PROCESS, PROC_ID, THREAD, THREAD_ID, BINARY, MODULE, NAME, CALLERS, CALLEES, SYMBOL, ID_REF, SELFREF, DETAIL_LO, DETAIL_HI, SYMBOL_TABLE, SYMBOL_DATA, STARTING_ADDR, SOURCE_FILE, SOURCE_LINE, CODE_LENGTH, SUMMARY, SAMPLE, COUNT, DETAIL_TABLE, SYMBOL_DETAILS, DETAIL_DATA, VMA, BYTES_TABLE, BYTES, HELP_EVENTS, HELP_HEADER, HELP_TITLE, HELP_DOC, HELP_EVENT, HELP_EVENT_NAME, HELP_EVENT_GROUP, HELP_EVENT_DESC, HELP_COUNTER_MASK, HELP_MIN_COUNT, HELP_EXT, HELP_UNIT_MASKS, HELP_DEFAULT_MASK, HELP_UNIT_MASKS_CATEGORY, HELP_UNIT_MASK, HELP_UNIT_MASK_VALUE, HELP_UNIT_MASK_DESC, HELP_UNIT_EXTRA_VALUE, } tag_t; char const * xml_tag_name(tag_t tag); void open_xml_element(tag_t tag, int with_attrs, char *buffer, size_t size); void close_xml_element(tag_t tag, int has_nested, char *buffer, size_t size); void init_xml_int_attr(tag_t attr, int value, char *buffer, size_t size); void init_xml_dbl_attr(tag_t attr, double value, char *buffer, size_t size); void init_xml_str_attr(tag_t attr, char const *str, char *buffer, size_t size); #ifdef __cplusplus } #endif #endif /* OP_XML_OUT_H */ oprofile-0.9.9/libop/op_config.c0000664000076400007640000000446112175510133013522 00000000000000/** * @file op_config.c * Oprofile configuration parameters. * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Nathan Tallent * @Modifications Daniel Hansel */ #include "op_config.h" #include #include #include #include #include /* paths in op_config.h */ char op_session_dir[PATH_MAX]; char op_samples_dir[PATH_MAX]; char op_samples_current_dir[PATH_MAX]; char op_lock_file[PATH_MAX]; char op_log_file[PATH_MAX]; char op_pipe_file[PATH_MAX]; char op_dump_status[PATH_MAX]; /* paths in op_config_24.h */ char op_device[PATH_MAX]; char op_note_device[PATH_MAX]; char op_hash_device[PATH_MAX]; char * stats_filenames[OPERF_MAX_STATS] = { "total_samples", "", "", "lost_invalid_domain", "lost_kernel", "lost_samplefile", "lost_no_mapping", "lost_no_app_for_kernel_sample", "lost_no_app_for_user_sample", "lost_bt_no_mapping", "lost_invalid_hypervisor_addr", "lost_records_by_kernel", }; void init_op_config_dirs(char const * session_dir) { int session_dir_len; assert(session_dir); session_dir_len = strlen(session_dir); if (session_dir_len + strlen("/samples/oprofiled.log") > PATH_MAX) { fprintf(stderr, "Session_dir string \"%s\" is too large.\n", session_dir); exit(EXIT_FAILURE); } strcpy(op_session_dir, session_dir); strcpy(op_samples_dir, op_session_dir); strcat(op_samples_dir, "/samples/"); strcpy(op_samples_current_dir, op_samples_dir); strcat(op_samples_current_dir, "/current/"); strcpy(op_lock_file, op_session_dir); strcat(op_lock_file, "/lock"); strcpy(op_pipe_file, op_session_dir); strcat(op_pipe_file, "/opd_pipe"); strcpy(op_log_file, op_samples_dir); strcat(op_log_file, "oprofiled.log"); strcpy(op_dump_status, op_session_dir); strcat(op_dump_status, "/complete_dump"); } oprofile-0.9.9/libop/op_interface.h0000664000076400007640000000420012175510133014211 00000000000000/** * @file op_interface.h * * Module / user space interface for 2.4 * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef OP_INTERFACE_H #define OP_INTERFACE_H #include "op_config.h" #include "op_types.h" /*@{\name notifications types encoded in op_note::type */ /** fork(),vfork(),clone() */ #define OP_FORK 1 /** mapping */ #define OP_MAP 2 /** execve() */ #define OP_EXEC 4 /** init_module() */ #define OP_DROP_MODULES 8 /** exit() */ #define OP_EXIT 16 /*@}*/ /** Data type to transfer samples counts from the module to the daemon */ struct op_sample { unsigned long eip; /**< eip value where occur interrupt */ u32 counter; /**< counter nr */ u32 pid; /**< 32 bits can hold any pid */ u32 tgid; /**< always equal to pid for kernel < 2.4.0 */ }; /** the current kernel-side profiler state */ enum oprof_state { STOPPED = 0, STOPPING = 1, RUNNING = 2 }; /** * The head structure of a kernel sample buffer. */ struct op_buffer_head { int cpu_nr; /**< the CPU number of this buffer */ size_t count; /**< number of samples in this buffer */ enum oprof_state state; /**< current profiler state */ struct op_sample buffer[0]; /**< the sample buffer */ } __attribute__((__packed__)); /** * Data type used by the module to notify daemon of fork/exit/mapping etc. * Meanings of fields depend on the type of notification encoded in the type * field. * \sa OP_FORK, OP_EXEC, OP_MAP, OP_DROP_MODULES and OP_EXIT */ struct op_note { unsigned long addr; unsigned long len; unsigned long offset; unsigned int hash; unsigned int pid; unsigned int tgid; unsigned short type; }; /** * A path component. Directory name are stored as a stack of path components. * Note than the name index acts also as an unique identifier */ struct op_hash_index { /** index inside the string pool */ u32 name; /** parent component, zero if this component is the root */ u32 parent; } __attribute__((__packed__)); /** size of hash map in bytes */ #define OP_HASH_MAP_SIZE (OP_HASH_MAP_NR * sizeof(struct op_hash_index) + POOL_SIZE) #endif /* OP_INTERFACE_H */ oprofile-0.9.9/libop/Makefile.in0000664000076400007640000005322012175510234013457 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libop DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) ARFLAGS = cru libop_a_AR = $(AR) $(ARFLAGS) libop_a_LIBADD = am_libop_a_OBJECTS = op_events.$(OBJEXT) op_parse_event.$(OBJEXT) \ op_cpu_type.$(OBJEXT) op_mangle.$(OBJEXT) \ op_get_interface.$(OBJEXT) op_alloc_counter.$(OBJEXT) \ op_config.$(OBJEXT) op_xml_events.$(OBJEXT) \ op_xml_out.$(OBJEXT) op_netburst.$(OBJEXT) libop_a_OBJECTS = $(am_libop_a_OBJECTS) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libop_a_SOURCES) DIST_SOURCES = $(libop_a_SOURCES) RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ SUBDIRS = . tests AM_CPPFLAGS = -I${top_srcdir}/libutil @OP_CPPFLAGS@ AM_CFLAGS = @OP_CFLAGS@ noinst_LIBRARIES = libop.a libop_a_SOURCES = \ op_events.c \ op_events.h \ op_parse_event.c \ op_parse_event.h \ op_cpu_type.c \ op_cpu_type.h \ op_mangle.c \ op_mangle.h \ op_get_interface.c \ op_interface.h \ op_alloc_counter.c \ op_alloc_counter.h \ op_hw_config.h \ op_config.c \ op_config.h \ op_sample_file.h \ op_xml_events.c \ op_xml_events.h \ op_xml_out.c \ op_xml_out.h \ op_hw_specific.h \ op_netburst.c \ op_netburst.h all: all-recursive .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libop/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign libop/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) libop.a: $(libop_a_OBJECTS) $(libop_a_DEPENDENCIES) -rm -f libop.a $(libop_a_AR) libop.a $(libop_a_OBJECTS) $(libop_a_LIBADD) $(RANLIB) libop.a mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/op_alloc_counter.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/op_config.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/op_cpu_type.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/op_events.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/op_get_interface.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/op_mangle.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/op_netburst.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/op_parse_event.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/op_xml_events.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/op_xml_out.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(LIBRARIES) installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \ mostlyclean-am distclean: distclean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic clean-libtool \ clean-noinstLIBRARIES ctags ctags-recursive distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/libop/op_xml_events.c0000664000076400007640000000646312175510133014445 00000000000000/** * @file op_xml_events.c * routines for generating event files in XML * * @remark Copyright 2008 OProfile authors * @remark Read the file COPYING * * @author Dave Nomura */ #include #include #include "op_events.h" #include "op_list.h" #include "op_cpu_type.h" #include "op_xml_out.h" static op_cpu cpu_type; #define MAX_BUFFER 16384 static char buffer[MAX_BUFFER]; void open_xml_events(char const * title, char const * doc, op_cpu the_cpu_type) { char const * schema_version = "1.1"; buffer[0] = '\0'; cpu_type = the_cpu_type; open_xml_element(HELP_EVENTS, 1, buffer, MAX_BUFFER); init_xml_str_attr(SCHEMA_VERSION, schema_version, buffer, MAX_BUFFER); close_xml_element(NONE, 1, buffer, MAX_BUFFER); open_xml_element(HELP_HEADER, 1, buffer, MAX_BUFFER); init_xml_str_attr(HELP_TITLE, title, buffer, MAX_BUFFER); init_xml_str_attr(HELP_DOC, doc, buffer, MAX_BUFFER); close_xml_element(NONE, 0, buffer, MAX_BUFFER); printf("%s", buffer); } void close_xml_events(void) { buffer[0] = '\0'; close_xml_element(HELP_EVENTS, 0, buffer, MAX_BUFFER); printf("%s", buffer); } static void xml_do_arch_specific_event_help(struct op_event const *event, char *buffer, size_t size) { switch (cpu_type) { case CPU_PPC64_CELL: init_xml_int_attr(HELP_EVENT_GROUP, event->val / 100, buffer, size); break; default: break; } } void xml_help_for_event(struct op_event const * event) { uint i; int has_nested = strcmp(event->unit->name, "zero"); buffer[0] = '\0'; open_xml_element(HELP_EVENT, 1, buffer, MAX_BUFFER); init_xml_str_attr(HELP_EVENT_NAME, event->name, buffer, MAX_BUFFER); xml_do_arch_specific_event_help(event, buffer, MAX_BUFFER); init_xml_str_attr(HELP_EVENT_DESC, event->desc, buffer, MAX_BUFFER); init_xml_int_attr(HELP_COUNTER_MASK, event->counter_mask, buffer, MAX_BUFFER); if (event->ext) init_xml_str_attr(HELP_EXT, event->ext, buffer, MAX_BUFFER); init_xml_int_attr(HELP_MIN_COUNT, event->min_count, buffer, MAX_BUFFER); if (has_nested) { char um_type[10]; close_xml_element(NONE, 1, buffer, MAX_BUFFER); open_xml_element(HELP_UNIT_MASKS, 1, buffer, MAX_BUFFER); init_xml_int_attr(HELP_DEFAULT_MASK, event->unit->default_mask, buffer, MAX_BUFFER); switch (event->unit->unit_type_mask){ case utm_bitmask: strncpy(um_type, "bitmask", sizeof(um_type)); break; case utm_exclusive: strncpy(um_type, "exclusive", sizeof(um_type)); break; case utm_mandatory: strncpy(um_type, "mandatory", sizeof(um_type)); break; } init_xml_str_attr(HELP_UNIT_MASKS_CATEGORY, um_type, buffer, MAX_BUFFER); close_xml_element(NONE, 1, buffer, MAX_BUFFER); for (i = 0; i < event->unit->num; i++) { open_xml_element(HELP_UNIT_MASK, 1, buffer, MAX_BUFFER); init_xml_int_attr(HELP_UNIT_MASK_VALUE, event->unit->um[i].value, buffer, MAX_BUFFER); init_xml_str_attr(HELP_UNIT_MASK_DESC, event->unit->um[i].desc, buffer, MAX_BUFFER); if (event->unit->um[i].extra) init_xml_int_attr(HELP_UNIT_EXTRA_VALUE, event->unit->um[i].extra, buffer, MAX_BUFFER); close_xml_element(NONE, 0, buffer, MAX_BUFFER); } close_xml_element(HELP_UNIT_MASKS, 0, buffer, MAX_BUFFER); } close_xml_element(has_nested ? HELP_EVENT : NONE, has_nested, buffer, MAX_BUFFER); printf("%s", buffer); } oprofile-0.9.9/libop/op_cpu_type.c0000664000076400007640000004621412175510133014107 00000000000000/** * @file op_cpu_type.c * CPU type determination * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include "op_cpu_type.h" #include "op_hw_specific.h" struct cpu_descr { char const * pretty; char const * name; op_cpu cpu; unsigned int nr_counters; }; static struct cpu_descr const cpu_descrs[MAX_CPU_TYPE] = { { "Pentium Pro", "i386/ppro", CPU_PPRO, 2 }, { "PII", "i386/pii", CPU_PII, 2 }, { "PIII", "i386/piii", CPU_PIII, 2 }, { "Athlon", "i386/athlon", CPU_ATHLON, 4 }, { "CPU with timer interrupt", "timer", CPU_TIMER_INT, 1 }, { "CPU with RTC device", "rtc", CPU_RTC, 1 }, { "P4 / Xeon", "i386/p4", CPU_P4, 8 }, { "IA64", "ia64/ia64", CPU_IA64, 4 }, { "Itanium", "ia64/itanium", CPU_IA64_1, 4 }, { "Itanium 2", "ia64/itanium2", CPU_IA64_2, 4 }, { "AMD64 processors", "x86-64/hammer", CPU_HAMMER, 4 }, { "P4 / Xeon with 2 hyper-threads", "i386/p4-ht", CPU_P4_HT2, 4 }, { "Alpha EV4", "alpha/ev4", CPU_AXP_EV4, 2 }, { "Alpha EV5", "alpha/ev5", CPU_AXP_EV5, 3 }, { "Alpha PCA56", "alpha/pca56", CPU_AXP_PCA56, 3 }, { "Alpha EV6", "alpha/ev6", CPU_AXP_EV6, 2 }, { "Alpha EV67", "alpha/ev67", CPU_AXP_EV67, 20 }, { "Pentium M (P6 core)", "i386/p6_mobile", CPU_P6_MOBILE, 2 }, { "ARM/XScale PMU1", "arm/xscale1", CPU_ARM_XSCALE1, 3 }, { "ARM/XScale PMU2", "arm/xscale2", CPU_ARM_XSCALE2, 5 }, { "ppc64 POWER4", "ppc64/power4", CPU_PPC64_POWER4, 8 }, { "ppc64 POWER5", "ppc64/power5", CPU_PPC64_POWER5, 6 }, { "ppc64 POWER5+", "ppc64/power5+", CPU_PPC64_POWER5p, 6 }, { "ppc64 970", "ppc64/970", CPU_PPC64_970, 8 }, { "MIPS 20K", "mips/20K", CPU_MIPS_20K, 1}, { "MIPS 24K", "mips/24K", CPU_MIPS_24K, 2}, { "MIPS 25K", "mips/25K", CPU_MIPS_25K, 2}, { "MIPS 34K", "mips/34K", CPU_MIPS_34K, 2}, { "MIPS 5K", "mips/5K", CPU_MIPS_5K, 2}, { "MIPS R10000", "mips/r10000", CPU_MIPS_R10000, 2 }, { "MIPS R12000", "mips/r12000", CPU_MIPS_R12000, 4 }, { "QED RM7000", "mips/rm7000", CPU_MIPS_RM7000, 1 }, { "PMC-Sierra RM9000", "mips/rm9000", CPU_MIPS_RM9000, 2 }, { "Sibyte SB1", "mips/sb1", CPU_MIPS_SB1, 4 }, { "NEC VR5432", "mips/vr5432", CPU_MIPS_VR5432, 2 }, { "NEC VR5500", "mips/vr5500", CPU_MIPS_VR5500, 2 }, { "e500", "ppc/e500", CPU_PPC_E500, 4 }, { "e500v2", "ppc/e500v2", CPU_PPC_E500_2, 4 }, { "Core Solo / Duo", "i386/core", CPU_CORE, 2 }, { "PowerPC G4", "ppc/7450", CPU_PPC_7450, 6 }, { "Core 2", "i386/core_2", CPU_CORE_2, 2 }, { "ppc64 POWER6", "ppc64/power6", CPU_PPC64_POWER6, 4 }, { "ppc64 970MP", "ppc64/970MP", CPU_PPC64_970MP, 8 }, { "ppc64 Cell Broadband Engine", "ppc64/cell-be", CPU_PPC64_CELL, 8 }, { "AMD64 family10", "x86-64/family10", CPU_FAMILY10, 4 }, { "ppc64 PA6T", "ppc64/pa6t", CPU_PPC64_PA6T, 6 }, { "ARM 11MPCore", "arm/mpcore", CPU_ARM_MPCORE, 2 }, { "ARM V6 PMU", "arm/armv6", CPU_ARM_V6, 3 }, { "ppc64 POWER5++", "ppc64/power5++", CPU_PPC64_POWER5pp, 6 }, { "e300", "ppc/e300", CPU_PPC_E300, 4 }, { "AVR32", "avr32", CPU_AVR32, 3 }, { "ARM Cortex-A8", "arm/armv7", CPU_ARM_V7, 5 }, { "Intel Architectural Perfmon", "i386/arch_perfmon", CPU_ARCH_PERFMON, 0}, { "AMD64 family11h", "x86-64/family11h", CPU_FAMILY11H, 4 }, { "ppc64 POWER7", "ppc64/power7", CPU_PPC64_POWER7, 6 }, { "ppc64 compat version 1", "ppc64/ibm-compat-v1", CPU_PPC64_IBM_COMPAT_V1, 4 }, { "Intel Core/i7", "i386/core_i7", CPU_CORE_I7, 4 }, { "Intel Atom", "i386/atom", CPU_ATOM, 2 }, { "Loongson2", "mips/loongson2", CPU_MIPS_LOONGSON2, 2 }, { "Intel Nehalem microarchitecture", "i386/nehalem", CPU_NEHALEM, 4 }, { "ARM Cortex-A9", "arm/armv7-ca9", CPU_ARM_V7_CA9, 7 }, { "MIPS 74K", "mips/74K", CPU_MIPS_74K, 4}, { "MIPS 1004K", "mips/1004K", CPU_MIPS_1004K, 2}, { "AMD64 family12h", "x86-64/family12h", CPU_FAMILY12H, 4 }, { "AMD64 family14h", "x86-64/family14h", CPU_FAMILY14H, 4 }, { "AMD64 family15h", "x86-64/family15h", CPU_FAMILY15H, 6 }, { "Intel Westmere microarchitecture", "i386/westmere", CPU_WESTMERE, 4 }, { "ARMv7 Scorpion", "arm/armv7-scorpion", CPU_ARM_SCORPION, 5 }, { "ARMv7 ScorpionMP", "arm/armv7-scorpionmp", CPU_ARM_SCORPIONMP, 5 }, { "Intel Sandy Bridge microarchitecture", "i386/sandybridge", CPU_SANDYBRIDGE, 8 }, { "TILE64", "tile/tile64", CPU_TILE_TILE64, 2 }, { "TILEPro", "tile/tilepro", CPU_TILE_TILEPRO, 4 }, { "TILE-GX", "tile/tilegx", CPU_TILE_TILEGX, 4 }, { "IBM System z10", "s390/z10", CPU_S390_Z10, 1 }, { "IBM zEnterprise z196", "s390/z196", CPU_S390_Z196, 1 }, { "Intel Ivy Bridge microarchitecture", "i386/ivybridge", CPU_IVYBRIDGE, 8 }, { "ARM Cortex-A5", "arm/armv7-ca5", CPU_ARM_V7_CA5, 3 }, { "ARM Cortex-A7", "arm/armv7-ca7", CPU_ARM_V7_CA7, 5 }, { "ARM Cortex-A15", "arm/armv7-ca15", CPU_ARM_V7_CA15, 7 }, { "Intel Haswell microarchitecture", "i386/haswell", CPU_HASWELL, 4 }, { "IBM zEnterprise EC12", "s390/zEC12", CPU_S390_ZEC12, 1 }, { "AMD64 generic", "x86-64/generic", CPU_AMD64_GENERIC, 4 }, { "IBM Power Architected Events V1", "ppc64/architected_events_v1", CPU_PPC64_ARCH_V1, 6 }, { "ppc64 POWER8", "ppc64/power8", CPU_PPC64_POWER8, 6 }, }; static size_t const nr_cpu_descrs = sizeof(cpu_descrs) / sizeof(struct cpu_descr); static char * _get_cpuinfo_cpu_type_line(char * buf, int len, const char * prefix, int token) { char * ret = NULL; char * end = NULL; int prefix_len = strlen(prefix); FILE * fp = fopen("/proc/cpuinfo", "r"); if (!fp) { perror("Unable to open /proc/cpuinfo\n"); return ret; } memset(buf, 0, len); while (!ret) { if (fgets(buf, len, fp) == NULL) { fprintf(stderr, "Did not find processor type in /proc/cpuinfo.\n"); break; } if (!strncmp(buf, prefix, prefix_len)) { ret = buf + prefix_len; /* Strip leading whitespace and ':' delimiter */ while (*ret && (*ret == ':' || isspace(*ret))) ++ret; buf = ret; /* if token param 0 then read the whole line else * first token only. */ if (token == 0) { /* Trim trailing whitespace */ end = buf + strlen(buf) - 1; while (isspace(*end)) --end; *(++end) = '\0'; break; } else { /* Scan ahead to the end of the token */ while (*buf && !isspace(*buf)) ++buf; /* Trim trailing whitespace */ *buf = '\0'; break; } } } fclose(fp); return ret; } static char * _get_cpuinfo_cpu_type(char * buf, int len, const char * prefix) { return _get_cpuinfo_cpu_type_line(buf, len, prefix, 1); } // The aux vector stuff below is currently only used by ppc64 arch static ElfW(auxv_t) * auxv_buf = NULL; static ElfW(auxv_t) * _auxv_fetch() { ElfW(auxv_t) * auxv_temp = (ElfW(auxv_t) *)auxv_buf; int auxv_f; size_t page_size = getpagesize(); ssize_t bytes; if(auxv_temp == NULL) { auxv_f = open("/proc/self/auxv", O_RDONLY); if(auxv_f == -1) { perror("Cannot open /proc/self/auxv"); fprintf(stderr, "Assuming native platform profiling is supported.\n"); return NULL; } else { auxv_temp = (ElfW(auxv_t) *)malloc(page_size); if (!auxv_temp) { perror("Allocation of space for auxv failed."); close(auxv_f); return NULL; } bytes = read(auxv_f, (void *)auxv_temp, page_size); if (bytes <= 0) { free(auxv_temp); close(auxv_f); perror("Error /proc/self/auxv read failed"); return NULL; } if (close(auxv_f)) { perror("Error close failed"); fprintf(stderr, "Recoverable error. Continuing.\n"); } } auxv_buf = auxv_temp; } return (ElfW(auxv_t) *)auxv_temp; } static const char * fetch_at_hw_platform(ElfW(Addr) type) { int i = 0; const char * platform = NULL; ElfW(auxv_t) * my_auxv = NULL; if ((my_auxv = (ElfW(auxv_t)*) _auxv_fetch()) == NULL) return NULL; do { if(my_auxv[i].a_type == type) { platform = (const char *)my_auxv[i].a_un.a_val; break; } i++; } while (my_auxv[i].a_type != AT_NULL); return platform; } static void release_at_hw_platform(void) { if (auxv_buf) { free(auxv_buf); auxv_buf = NULL; } } static op_cpu _try_ppc64_arch_generic_cpu(void) { const char * platform, * base_platform; op_cpu cpu_type = CPU_NO_GOOD; platform = fetch_at_hw_platform(AT_PLATFORM); base_platform = fetch_at_hw_platform(AT_BASE_PLATFORM); if (!platform || !base_platform) { fprintf(stderr, "NULL returned for one or both of AT_PLATFORM/AT_BASE_PLATFORM\n"); fprintf(stderr, "AT_PLATFORM: %s; \tAT_BASE_PLATFORM: %s\n", platform, base_platform); release_at_hw_platform(); return cpu_type; } // FIXME whenever a new IBM Power processor is added -- need to ensure // we're returning the correct version of the architected events file. if (strcmp(platform, base_platform)) { // If platform and base_platform differ by only a "+" at the end of the name, we // consider these equal. int platforms_are_equivalent = 0; size_t p1_len, p2_len; p1_len = strlen(platform); p2_len = strlen(base_platform); if (p2_len == (p1_len + 1)) { if ((strncmp(platform, base_platform, p1_len) == 0) && (base_platform[p2_len - 1] == '+')) { platforms_are_equivalent = 1; } } if (!platforms_are_equivalent) { if (strcmp(platform, "power7") == 0) cpu_type = CPU_PPC64_ARCH_V1; } } release_at_hw_platform(); return cpu_type; } static op_cpu _get_ppc64_cpu_type(void) { int i; size_t len; char line[100], cpu_type_str[64], cpu_name_lowercase[64], * cpu_name; op_cpu cpu_type = CPU_NO_GOOD; cpu_type = _try_ppc64_arch_generic_cpu(); if (cpu_type != CPU_NO_GOOD) return cpu_type; cpu_name = _get_cpuinfo_cpu_type(line, 100, "cpu"); if (!cpu_name) return CPU_NO_GOOD; len = strlen(cpu_name); for (i = 0; i < (int)len ; i++) cpu_name_lowercase[i] = tolower(cpu_name[i]); cpu_type_str[0] = '\0'; strcat(cpu_type_str, "ppc64/"); strncat(cpu_type_str, cpu_name_lowercase, len); cpu_type = op_get_cpu_number(cpu_type_str); return cpu_type; } static op_cpu _get_arm_cpu_type(void) { unsigned long cpuid, vendorid; char line[100]; char * cpu_part, * cpu_implementer; cpu_implementer = _get_cpuinfo_cpu_type(line, 100, "CPU implementer"); if (!cpu_implementer) return CPU_NO_GOOD; errno = 0; vendorid = strtoul(cpu_implementer, NULL, 16); if (errno) { fprintf(stderr, "Unable to parse CPU implementer %s\n", cpu_implementer); return CPU_NO_GOOD; } cpu_part = _get_cpuinfo_cpu_type(line, 100, "CPU part"); if (!cpu_part) return CPU_NO_GOOD; errno = 0; cpuid = strtoul(cpu_part, NULL, 16); if (errno) { fprintf(stderr, "Unable to parse CPU part %s\n", cpu_part); return CPU_NO_GOOD; } if (vendorid == 0x41) { /* ARM Ltd. */ switch (cpuid) { case 0xb36: case 0xb56: case 0xb76: return op_get_cpu_number("arm/armv6"); case 0xb02: return op_get_cpu_number("arm/mpcore"); case 0xc05: return op_get_cpu_number("arm/armv7-ca5"); case 0xc07: return op_get_cpu_number("arm/armv7-ca7"); case 0xc08: return op_get_cpu_number("arm/armv7"); case 0xc09: return op_get_cpu_number("arm/armv7-ca9"); case 0xc0f: return op_get_cpu_number("arm/armv7-ca15"); } } else if (vendorid == 0x69) { /* Intel xscale */ switch (cpuid >> 9) { case 1: return op_get_cpu_number("arm/xscale1"); case 2: return op_get_cpu_number("arm/xscale2"); } } return CPU_NO_GOOD; } static op_cpu _get_tile_cpu_type(void) { int i; size_t len; char line[100], cpu_type_str[64], cpu_name_lowercase[64], * cpu_name; cpu_name = _get_cpuinfo_cpu_type(line, 100, "model name"); if (!cpu_name) return CPU_NO_GOOD; len = strlen(cpu_name); for (i = 0; i < (int)len ; i++) cpu_name_lowercase[i] = tolower(cpu_name[i]); cpu_type_str[0] = '\0'; strcat(cpu_type_str, "tile/"); strncat(cpu_type_str, cpu_name_lowercase, len); return op_get_cpu_number(cpu_type_str); } #if defined(__x86_64__) || defined(__i386__) int op_is_cpu_vendor(char * vendor) { return cpuid_vendor(vendor); } static unsigned cpuid_eax(unsigned func) { cpuid_data d; cpuid(func, &d); return d.eax; } static inline int perfmon_available(void) { unsigned eax; if (cpuid_eax(0) < 10) return 0; eax = cpuid_eax(10); if ((eax & 0xff) == 0) return 0; return (eax >> 8) & 0xff; } static int cpu_info_number(char *name, unsigned long *number) { char buf[100]; char *end; if (!_get_cpuinfo_cpu_type(buf, sizeof buf, name)) return 0; *number = strtoul(buf, &end, 0); return end > buf; } static op_cpu _get_intel_cpu_type(void) { unsigned eax, family, model; if (perfmon_available()) return op_cpu_specific_type(CPU_ARCH_PERFMON); /* Handle old non arch perfmon CPUs */ eax = cpuid_signature(); family = cpu_family(eax); model = cpu_model(eax); if (family == 6) { /* Reproduce kernel p6_init logic. Only for non arch perfmon cpus */ switch (model) { case 0 ... 2: return op_get_cpu_number("i386/ppro"); case 3 ... 5: return op_get_cpu_number("i386/pii"); case 6 ... 8: case 10 ... 11: return op_get_cpu_number("i386/piii"); case 9: case 13: return op_get_cpu_number("i386/p6_mobile"); } } else if (family == 15) { unsigned long siblings; /* Reproduce kernel p4_init() logic */ if (model > 6 || model == 5) return CPU_NO_GOOD; if (!cpu_info_number("siblings", &siblings) || siblings == 1) return op_get_cpu_number("i386/p4"); if (siblings == 2) return op_get_cpu_number("i386/p4-ht"); } return CPU_NO_GOOD; } static op_cpu _get_amd_cpu_type(void) { unsigned eax, family; op_cpu ret = CPU_NO_GOOD; char buf[20] = {'\0'}; eax = cpuid_signature(); family = cpu_family(eax); /* These family does not exist in the past.*/ if (family < 0x0f || family == 0x13) return ret; switch (family) { case 0x0f: ret = op_get_cpu_number("x86-64/hammer"); break; case 0x10: ret = op_get_cpu_number("x86-64/family10"); break; case 0x11: case 0x12: case 0x14: case 0x15: /* From family11h and forward, we use the same naming scheme */ snprintf(buf, 20, "x86-64/family%xh", family); ret = op_get_cpu_number(buf); break; default: /* Future processors */ snprintf(buf, 20, "x86-64/generic"); ret = op_get_cpu_number(buf); break; } return ret; } static op_cpu _get_x86_64_cpu_type(void) { op_cpu ret = CPU_NO_GOOD; if (cpuid_vendor("GenuineIntel")) { ret = _get_intel_cpu_type(); } else if (cpuid_vendor("AuthenticAMD")) { ret = _get_amd_cpu_type(); } return ret; } #else static op_cpu _get_x86_64_cpu_type(void) { return CPU_NO_GOOD; } #endif struct mips_cpu_descr { const char * key; const char * value; }; static struct mips_cpu_descr mips_cpu_descrs[] = { { .key = "MIPS 5Kc", .value = "mips/5K" }, /* CPU_5KC */ { .key = "MIPS 20Kc", .value = "mips/20K" }, /* CPU_20KC */ { .key = "MIPS 24Kc", .value = "mips/24K" }, /* CPU_24K */ { .key = "MIPS 25Kc", .value = "mips/25K" }, /* CPU_25KF */ { .key = "MIPS 34Kc", .value = "mips/34K" }, /* CPU_34K */ { .key = "MIPS 74Kc", .value = "mips/74K" }, /* CPU_74K */ { .key = "MIPS M14Kc", .value = "mips/M14Kc" }, /* CPU_M14KC */ { .key = "RM9000", .value = "mips/rm9000" }, /* CPU_RM9000 */ { .key = "R10000", .value = "mips/r10000" }, /* CPU_R10000 */ { .key = "R12000", .value = "mips/r12000" }, /* CPU_R12000 */ { .key = "R14000", .value = "mips/r12000" }, /* CPU_R14000 */ { .key = "ICT Loongson-2", .value = "mips/loongson2" }, /* CPU_LOONGSON2 */ { .key = NULL, .value = NULL } }; static const char * _get_mips_op_name(const char * key) { struct mips_cpu_descr * p_it = mips_cpu_descrs; size_t len; while (p_it->key != NULL) { len = strlen(p_it->key); if (0 == strncmp(key, p_it->key, len)) return p_it->value; ++p_it; } return NULL; } static op_cpu _get_mips_cpu_type(void) { char line[100]; char * cpu_model; const char * op_name = NULL; cpu_model = _get_cpuinfo_cpu_type_line(line, 100, "cpu model", 0); if (!cpu_model) return CPU_NO_GOOD; op_name = _get_mips_op_name(cpu_model); if (op_name) return op_get_cpu_number(op_name); return CPU_NO_GOOD; } static op_cpu __get_cpu_type_alt_method(void) { struct utsname uname_info; if (uname(&uname_info) < 0) { perror("uname failed"); return CPU_NO_GOOD; } if (strncmp(uname_info.machine, "x86_64", 6) == 0 || fnmatch("i?86", uname_info.machine, 0) == 0) { return _get_x86_64_cpu_type(); } if (strncmp(uname_info.machine, "ppc64", 5) == 0) { return _get_ppc64_cpu_type(); } if (strncmp(uname_info.machine, "arm", 3) == 0) { return _get_arm_cpu_type(); } if (strncmp(uname_info.machine, "tile", 4) == 0) { return _get_tile_cpu_type(); } if (strncmp(uname_info.machine, "mips", 4) == 0) { return _get_mips_cpu_type(); } return CPU_NO_GOOD; } int op_cpu_variations(op_cpu cpu_type) { switch (cpu_type) { case CPU_ARCH_PERFMON: return 1; default: return 0; } } op_cpu op_cpu_base_type(op_cpu cpu_type) { /* All the processors that support CPU_ARCH_PERFMON */ switch (cpu_type) { case CPU_CORE_2: case CPU_CORE_I7: case CPU_ATOM: case CPU_NEHALEM: case CPU_HASWELL: case CPU_WESTMERE: case CPU_SANDYBRIDGE: case CPU_IVYBRIDGE: return CPU_ARCH_PERFMON; default: /* assume processor in a class by itself */ return cpu_type; } } op_cpu op_get_cpu_type(void) { int cpu_type = CPU_NO_GOOD; char str[100]; FILE * fp; fp = fopen("/proc/sys/dev/oprofile/cpu_type", "r"); if (!fp) { /* Try 2.6's oprofilefs one instead. */ fp = fopen("/dev/oprofile/cpu_type", "r"); if (!fp) { if ((cpu_type = __get_cpu_type_alt_method()) == CPU_NO_GOOD) { fprintf(stderr, "Unable to open cpu_type file for reading\n"); fprintf(stderr, "Make sure you have done opcontrol --init\n"); } return cpu_type; } } if (!fgets(str, 99, fp)) { fprintf(stderr, "Could not read cpu type.\n"); fclose(fp); return cpu_type; } cpu_type = op_get_cpu_number(str); if (op_cpu_variations(cpu_type)) cpu_type = op_cpu_specific_type(cpu_type); fclose(fp); return cpu_type; } op_cpu op_get_cpu_number(char const * cpu_string) { int cpu_type = CPU_NO_GOOD; size_t i; for (i = 0; i < nr_cpu_descrs; ++i) { if (!strcmp(cpu_descrs[i].name, cpu_string)) { cpu_type = cpu_descrs[i].cpu; break; } } /* Attempt to convert into a number */ if (cpu_type == CPU_NO_GOOD) sscanf(cpu_string, "%d\n", &cpu_type); if (cpu_type <= CPU_NO_GOOD || cpu_type >= MAX_CPU_TYPE) cpu_type = CPU_NO_GOOD; return cpu_type; } char const * op_get_cpu_type_str(op_cpu cpu_type) { if (cpu_type <= CPU_NO_GOOD || cpu_type >= MAX_CPU_TYPE) return "invalid cpu type"; return cpu_descrs[cpu_type].pretty; } char const * op_get_cpu_name(op_cpu cpu_type) { if (cpu_type <= CPU_NO_GOOD || cpu_type >= MAX_CPU_TYPE) return "invalid cpu type"; return cpu_descrs[cpu_type].name; } int op_get_nr_counters(op_cpu cpu_type) { int cnt; if (cpu_type <= CPU_NO_GOOD || cpu_type >= MAX_CPU_TYPE) return 0; cnt = arch_num_counters(cpu_type); if (cnt >= 0) return cnt; return op_cpu_has_timer_fs() ? cpu_descrs[cpu_type].nr_counters + 1 : cpu_descrs[cpu_type].nr_counters; } int op_cpu_has_timer_fs(void) { static int cached_has_timer_fs_p = -1; FILE * fp; if (cached_has_timer_fs_p != -1) return cached_has_timer_fs_p; fp = fopen("/dev/oprofile/timer", "r"); cached_has_timer_fs_p = !!fp; if (fp) fclose(fp); return cached_has_timer_fs_p; } oprofile-0.9.9/libop/op_alloc_counter.c0000664000076400007640000001474212175510133015111 00000000000000/** * @file op_alloc_counter.c * hardware counter allocation * * You can have silliness here. * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include #include #include #include "op_events.h" #include "op_libiberty.h" typedef struct counter_arc_head { /** the head of allowed counter for this event */ struct list_head next; } counter_arc_head; typedef struct counter_arc { /** counter nr */ int counter; /** the next counter allowed for this event */ struct list_head next; } counter_arc; /** * @param pev an array of event * @param nr_events number of entry in pev * * build an array of counter list allowed for each events * counter_arc_head[i] is the list of allowed counter for pev[i] events * The returned pointer is an array of nr_events entry */ static counter_arc_head * build_counter_arc(struct op_event const * pev[], int nr_events) { counter_arc_head * ctr_arc; int i; ctr_arc = xmalloc(nr_events * sizeof(*ctr_arc)); for (i = 0; i < nr_events; ++i) { int j; u32 mask = pev[i]->counter_mask; list_init(&ctr_arc[i].next); for (j = 0; mask; ++j) { if (mask & (1 << j)) { counter_arc * arc = xmalloc(sizeof(counter_arc)); arc->counter = j; /* we are looping by increasing counter number, * allocation use a left to right tree walking * so we add at end to ensure counter will * be allocated by increasing number: it's not * required but a bit less surprising when * debugging code */ list_add_tail(&arc->next, &ctr_arc[i].next); mask &= ~(1 << j); } } } return ctr_arc; } /** * @param ctr_arc the array to deallocate * @param nr_events number of entry in array * * deallocate all previously allocated resource by build_counter_arc() */ static void delete_counter_arc(counter_arc_head * ctr_arc, int nr_events) { int i; for (i = 0; i < nr_events; ++i) { struct list_head * pos, * pos2; list_for_each_safe(pos, pos2, &ctr_arc[i].next) { counter_arc * arc = list_entry(pos, counter_arc, next); list_del(&arc->next); free(arc); } } free(ctr_arc); } /** * @param ctr_arc tree description, ctr_arc[i] is the i-th level of tree. * @param max_depth number of entry in array ctr_arc == depth of tree * @param depth current level we are exploring * @param allocated_mask current counter already allocated mask * @param counter_map array of counter number mapping, returned results go * here * * return non zero on succees, in this case counter_map is set to the counter * mapping number. * * Solution is searched through a simple backtracking exploring recursively all * possible solution until one is found, prunning is done in O(1) by tracking * a bitmask of already allocated counter. Walking through node is done in * preorder left to right. * * In case of extended events (required no phisical counters), the associated * counter_map entry will be -1. * * Possible improvment if neccessary: partition counters in class of counter, * two counter belong to the same class if they allow exactly the same set of * event. Now using a variant of the backtrack algo can works on class of * counter rather on counter (this is not an improvment if each counter goes * in it's own class) */ static int allocate_counter(counter_arc_head const * ctr_arc, int max_depth, int depth, u32 allocated_mask, size_t * counter_map) { struct list_head * pos; if (depth == max_depth) return 1; /* If ctr_arc is not available, counter_map is -1 */ if((&ctr_arc[depth].next)->next == &ctr_arc[depth].next) { counter_map[depth] = -1; if (allocate_counter(ctr_arc, max_depth, depth + 1, allocated_mask, counter_map)) return 1; } else { list_for_each(pos, &ctr_arc[depth].next) { counter_arc const * arc = list_entry(pos, counter_arc, next); if (allocated_mask & (1 << arc->counter)) continue; counter_map[depth] = arc->counter; if (allocate_counter(ctr_arc, max_depth, depth + 1, allocated_mask | (1 << arc->counter), counter_map)) return 1; } } return 0; } /* determine which directories are counter directories */ static int perfcounterdir(const struct dirent * entry) { return (isdigit(entry->d_name[0])); } /** * @param mask pointer where to place bit mask of unavailable counters * * return >= 0 number of counters that are available * < 0 could not determine number of counters * */ static int op_get_counter_mask(u32 * mask) { struct dirent **counterlist; int count, i; /* assume nothing is available */ u32 available=0; count = scandir("/dev/oprofile", &counterlist, perfcounterdir, alphasort); if (count < 0) /* unable to determine bit mask */ return -1; /* convert to bit map (0 where counter exists) */ for (i=0; id_name); free(counterlist[i]); } /* Append the timer counter to the mask of hardware counters. */ if (op_cpu_has_timer_fs()) { available |= 1 << (op_get_nr_counters(op_get_cpu_type()) - 1); count++; } *mask=~available; free(counterlist); return count; } size_t * map_event_to_counter(struct op_event const * pev[], int nr_events, op_cpu cpu_type) { counter_arc_head * ctr_arc; size_t * counter_map; int i, nr_counters, nr_pmc_events; op_cpu curr_cpu_type; u32 unavailable_counters = 0; /* Either ophelp or one of the libop tests may invoke this * function with a non-native cpu_type. If so, we should not * call op_get_counter_mask because that will look for real counter * information in oprofilefs. */ curr_cpu_type = op_get_cpu_type(); if (cpu_type != curr_cpu_type) nr_counters = op_get_nr_counters(cpu_type); else nr_counters = op_get_counter_mask(&unavailable_counters); /* no counters then probably perfmon managing perfmon hw */ if (nr_counters <= 0) { nr_counters = op_get_nr_counters(cpu_type); unavailable_counters = (~0) << nr_counters; } /* Check to see if we have enough physical counters to map events*/ for (i = 0, nr_pmc_events = 0; i < nr_events; i++) if(pev[i]->ext == NULL) if (++nr_pmc_events > nr_counters) return 0; ctr_arc = build_counter_arc(pev, nr_events); counter_map = xmalloc(nr_events * sizeof(size_t)); if (!allocate_counter(ctr_arc, nr_events, 0, unavailable_counters, counter_map)) { free(counter_map); counter_map = 0; } delete_counter_arc(ctr_arc, nr_events); return counter_map; } oprofile-0.9.9/libop/op_parse_event.c0000664000076400007640000000466312175510133014574 00000000000000/** * @file op_parse_event.c * event parsing * * You can have silliness here. * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include #include #include #include "op_parse_event.h" #include "op_string.h" #include "op_events.h" static char * next_part(char const ** str) { char const * c; char * ret; if ((*str)[0] == '\0') return NULL; if ((*str)[0] == ':') ++(*str); c = *str; while (*c != '\0' && *c != ':') ++c; if (c == *str) return NULL; ret = op_xstrndup(*str, c - *str); *str += c - *str; return ret; } static int parse_ulong(char const * str) { unsigned long value; char * end; value = strtoul(str, &end, 0); if (end && *end) { fprintf(stderr, "Invalid event part %s\n", str); exit(EXIT_FAILURE); } return value; } size_t parse_events(struct parsed_event * parsed_events, size_t max_events, char const * const * events, int check_count) { size_t i = 0; int timer_event_found_p = 0; while (events[i]) { char const * cp = events[i]; char * part = next_part(&cp); if (i >= max_events) { fprintf(stderr, "Too many events specified: CPU " "only has %lu counters.\n", (unsigned long) max_events); exit(EXIT_FAILURE); } if (!part) { fprintf(stderr, "Invalid event %s\n", cp); exit(EXIT_FAILURE); } if (strcmp(part, TIMER_EVENT_NAME) == 0) timer_event_found_p = 1; parsed_events[i].name = part; if (check_count) { part = next_part(&cp); if (!part) { fprintf(stderr, "Invalid count for event %s\n", events[i]); exit(EXIT_FAILURE); } parsed_events[i].count = parse_ulong(part); free(part); } parsed_events[i].unit_mask = 0; part = next_part(&cp); if (part) { parsed_events[i].unit_mask_valid = 1; if (!isdigit(*part)) parsed_events[i].unit_mask_name = part; else { parsed_events[i].unit_mask = parse_ulong(part); free(part); } } parsed_events[i].kernel = 1; part = next_part(&cp); if (part) { parsed_events[i].kernel = parse_ulong(part); free(part); } parsed_events[i].user = 1; part = next_part(&cp); if (part) { parsed_events[i].user = parse_ulong(part); free(part); } ++i; } if (i > 1 && timer_event_found_p) { fprintf(stderr, "TIMER event cannot be used in combination with" " hardware counters.\n"); exit(EXIT_FAILURE); } return i; } oprofile-0.9.9/libop/op_get_interface.c0000664000076400007640000000112312175510133015044 00000000000000/** * @file op_get_interface.c * Determine which oprofile kernel interface used * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Will Cohen */ #include #include #include #include "op_cpu_type.h" #include "op_file.h" op_interface op_get_interface(void) { static op_interface current_interface = OP_INTERFACE_NO_GOOD; if (current_interface != OP_INTERFACE_NO_GOOD) return current_interface; if (op_file_readable("/dev/oprofile/cpu_type")) current_interface = OP_INTERFACE_26; return current_interface; } oprofile-0.9.9/libop/tests/0000775000076400007640000000000012175511554012640 500000000000000oprofile-0.9.9/libop/tests/utf8_checker.sh0000775000076400007640000000123712175510133015464 00000000000000#!/bin/sh # This script validates that all event descriptions in the various # architecture-specific events files contain only UTF-8 characters. # While this is not a requirement for the command-line tools of oprofile, # many GUI tools (in particular, the oprofile plugin from Eclipse LTP) do # have such a requirement. CMD_OUTPUT=$(find ../../events/ -name events -type f | xargs cat | perl -ne '/^(([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})*)(.*)$/;print "$ARGV:$.:".($-[3]+1).":$_" if length($3)') if [ -n "$CMD_OUTPUT" ] ; then echo " << UTF-8 validation of events files FAILED >>" echo "$CMD_OUTPUT" exit 1 fi oprofile-0.9.9/libop/tests/Makefile.in0000664000076400007640000005151112175510234014622 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ check_PROGRAMS = cpu_type_tests$(EXEEXT) parse_event_tests$(EXEEXT) \ load_events_files_tests$(EXEEXT) alloc_counter_tests$(EXEEXT) \ mangle_tests$(EXEEXT) TESTS = $(check_PROGRAMS) utf8_checker.sh subdir = libop/tests DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am_alloc_counter_tests_OBJECTS = alloc_counter_tests.$(OBJEXT) alloc_counter_tests_OBJECTS = $(am_alloc_counter_tests_OBJECTS) alloc_counter_tests_DEPENDENCIES = $(COMMON_LIBS) am_cpu_type_tests_OBJECTS = cpu_type_tests.$(OBJEXT) cpu_type_tests_OBJECTS = $(am_cpu_type_tests_OBJECTS) cpu_type_tests_DEPENDENCIES = $(COMMON_LIBS) am_load_events_files_tests_OBJECTS = \ load_events_files_tests.$(OBJEXT) load_events_files_tests_OBJECTS = \ $(am_load_events_files_tests_OBJECTS) load_events_files_tests_DEPENDENCIES = $(COMMON_LIBS) am_mangle_tests_OBJECTS = mangle_tests.$(OBJEXT) mangle_tests_OBJECTS = $(am_mangle_tests_OBJECTS) mangle_tests_DEPENDENCIES = $(COMMON_LIBS) am_parse_event_tests_OBJECTS = parse_event_tests.$(OBJEXT) parse_event_tests_OBJECTS = $(am_parse_event_tests_OBJECTS) parse_event_tests_DEPENDENCIES = $(COMMON_LIBS) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(alloc_counter_tests_SOURCES) $(cpu_type_tests_SOURCES) \ $(load_events_files_tests_SOURCES) $(mangle_tests_SOURCES) \ $(parse_event_tests_SOURCES) DIST_SOURCES = $(alloc_counter_tests_SOURCES) \ $(cpu_type_tests_SOURCES) $(load_events_files_tests_SOURCES) \ $(mangle_tests_SOURCES) $(parse_event_tests_SOURCES) ETAGS = etags CTAGS = ctags am__tty_colors = \ red=; grn=; lgn=; blu=; std= DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBERTY_LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ AM_CPPFLAGS = \ -I ${top_srcdir}/libutil \ -I ${top_srcdir}/libop \ @OP_CPPFLAGS@ AM_CFLAGS = @OP_CFLAGS@ -DOPROFILE_SRCDIR=\"@top_srcdir@\" COMMON_LIBS = ../libop.a ../../libutil/libutil.a EXTRA_DIST = utf8_checker.sh cpu_type_tests_SOURCES = cpu_type_tests.c cpu_type_tests_LDADD = ${COMMON_LIBS} parse_event_tests_SOURCES = parse_event_tests.c parse_event_tests_LDADD = ${COMMON_LIBS} alloc_counter_tests_SOURCES = alloc_counter_tests.c alloc_counter_tests_LDADD = ${COMMON_LIBS} load_events_files_tests_SOURCES = load_events_files_tests.c load_events_files_tests_LDADD = ${COMMON_LIBS} mangle_tests_SOURCES = mangle_tests.c mangle_tests_LDADD = ${COMMON_LIBS} all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libop/tests/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign libop/tests/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-checkPROGRAMS: @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list alloc_counter_tests$(EXEEXT): $(alloc_counter_tests_OBJECTS) $(alloc_counter_tests_DEPENDENCIES) @rm -f alloc_counter_tests$(EXEEXT) $(LINK) $(alloc_counter_tests_OBJECTS) $(alloc_counter_tests_LDADD) $(LIBS) cpu_type_tests$(EXEEXT): $(cpu_type_tests_OBJECTS) $(cpu_type_tests_DEPENDENCIES) @rm -f cpu_type_tests$(EXEEXT) $(LINK) $(cpu_type_tests_OBJECTS) $(cpu_type_tests_LDADD) $(LIBS) load_events_files_tests$(EXEEXT): $(load_events_files_tests_OBJECTS) $(load_events_files_tests_DEPENDENCIES) @rm -f load_events_files_tests$(EXEEXT) $(LINK) $(load_events_files_tests_OBJECTS) $(load_events_files_tests_LDADD) $(LIBS) mangle_tests$(EXEEXT): $(mangle_tests_OBJECTS) $(mangle_tests_DEPENDENCIES) @rm -f mangle_tests$(EXEEXT) $(LINK) $(mangle_tests_OBJECTS) $(mangle_tests_LDADD) $(LIBS) parse_event_tests$(EXEEXT): $(parse_event_tests_OBJECTS) $(parse_event_tests_DEPENDENCIES) @rm -f parse_event_tests$(EXEEXT) $(LINK) $(parse_event_tests_OBJECTS) $(parse_event_tests_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/alloc_counter_tests.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpu_type_tests.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/load_events_files_tests.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mangle_tests.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/parse_event_tests.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags check-TESTS: $(TESTS) @failed=0; all=0; xfail=0; xpass=0; skip=0; \ srcdir=$(srcdir); export srcdir; \ list=' $(TESTS) '; \ $(am__tty_colors); \ if test -n "$$list"; then \ for tst in $$list; do \ if test -f ./$$tst; then dir=./; \ elif test -f $$tst; then dir=; \ else dir="$(srcdir)/"; fi; \ if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$tst[\ \ ]*) \ xpass=`expr $$xpass + 1`; \ failed=`expr $$failed + 1`; \ col=$$red; res=XPASS; \ ;; \ *) \ col=$$grn; res=PASS; \ ;; \ esac; \ elif test $$? -ne 77; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$tst[\ \ ]*) \ xfail=`expr $$xfail + 1`; \ col=$$lgn; res=XFAIL; \ ;; \ *) \ failed=`expr $$failed + 1`; \ col=$$red; res=FAIL; \ ;; \ esac; \ else \ skip=`expr $$skip + 1`; \ col=$$blu; res=SKIP; \ fi; \ echo "$${col}$$res$${std}: $$tst"; \ done; \ if test "$$all" -eq 1; then \ tests="test"; \ All=""; \ else \ tests="tests"; \ All="All "; \ fi; \ if test "$$failed" -eq 0; then \ if test "$$xfail" -eq 0; then \ banner="$$All$$all $$tests passed"; \ else \ if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \ banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \ fi; \ else \ if test "$$xpass" -eq 0; then \ banner="$$failed of $$all $$tests failed"; \ else \ if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \ banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \ fi; \ fi; \ dashes="$$banner"; \ skipped=""; \ if test "$$skip" -ne 0; then \ if test "$$skip" -eq 1; then \ skipped="($$skip test was not run)"; \ else \ skipped="($$skip tests were not run)"; \ fi; \ test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$skipped"; \ fi; \ report=""; \ if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ report="Please report to $(PACKAGE_BUGREPORT)"; \ test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$report"; \ fi; \ dashes=`echo "$$dashes" | sed s/./=/g`; \ if test "$$failed" -eq 0; then \ echo "$$grn$$dashes"; \ else \ echo "$$red$$dashes"; \ fi; \ echo "$$banner"; \ test -z "$$skipped" || echo "$$skipped"; \ test -z "$$report" || echo "$$report"; \ echo "$$dashes$$std"; \ test "$$failed" -eq 0; \ else :; fi distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) $(MAKE) $(AM_MAKEFLAGS) check-TESTS check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-checkPROGRAMS clean-generic clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: check-am install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \ clean-checkPROGRAMS clean-generic clean-libtool ctags \ distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/libop/tests/parse_event_tests.c0000664000076400007640000000306612175510133016456 00000000000000/** * @file parse_event_tests.c * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include #include #include #include "op_parse_event.h" struct events_test { /* second pointer is the null terminating array marker */ char const * const tests[2]; struct parsed_event expected; }; static struct events_test const events[] = { { { "FOO:3000:0:0:0", 0 }, { "FOO", 3000, 0, NULL, 0, 0, 0 } }, { { "BAR:3000", 0 }, { "BAR", 3000, 0, NULL, 1, 1, 0 } }, { { "FOOBAR:3000:1:1:1", 0 }, { "FOOBAR", 3000, 1, NULL, 1, 1, 0 } }, { { NULL, NULL }, { 0, 0, 0, NULL, 0, 0, 0 } } }; static void do_test(struct events_test const * ev) { struct parsed_event parsed; parse_events(&parsed, 1, ev->tests, 1); if (strcmp(ev->expected.name, parsed.name) || ev->expected.count != parsed.count || ev->expected.unit_mask != parsed.unit_mask || ev->expected.kernel != parsed.kernel || ev->expected.user != parsed.user) { printf("for %s expect { %s, %d, %d, %d, %d } found " "{ %s, %d, %d, %d, %d }\n", ev->tests[0], ev->expected.name, ev->expected.count, ev->expected.unit_mask, ev->expected.kernel, ev->expected.user, parsed.name, parsed.count, parsed.unit_mask, parsed.kernel, parsed.user); exit(EXIT_FAILURE); } } int main(void) { struct events_test const * ev; for (ev = events; ev->tests[0]; ++ev) do_test(ev); return 0; } oprofile-0.9.9/libop/tests/load_events_files_tests.c0000664000076400007640000000102712175510133017623 00000000000000/** * @file load_events_files_tests.c * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include #include #include "op_events.h" #include "op_cpu_type.h" int main(void) { op_cpu cpu_type; setenv("OPROFILE_EVENTS_DIR", OPROFILE_SRCDIR "/events", 1); for (cpu_type = CPU_NO_GOOD + 1; cpu_type < MAX_CPU_TYPE; ++cpu_type) { if (cpu_type != CPU_TIMER_INT) { op_events(cpu_type); op_free_events(); } } return 0; } oprofile-0.9.9/libop/tests/Makefile.am0000664000076400007640000000154012175510133014604 00000000000000AM_CPPFLAGS = \ -I ${top_srcdir}/libutil \ -I ${top_srcdir}/libop \ @OP_CPPFLAGS@ AM_CFLAGS = @OP_CFLAGS@ -DOPROFILE_SRCDIR=\"@top_srcdir@\" COMMON_LIBS = ../libop.a ../../libutil/libutil.a LIBS = @LIBERTY_LIBS@ check_PROGRAMS = \ cpu_type_tests \ parse_event_tests \ load_events_files_tests \ alloc_counter_tests \ mangle_tests EXTRA_DIST = utf8_checker.sh cpu_type_tests_SOURCES = cpu_type_tests.c cpu_type_tests_LDADD = ${COMMON_LIBS} parse_event_tests_SOURCES = parse_event_tests.c parse_event_tests_LDADD = ${COMMON_LIBS} alloc_counter_tests_SOURCES = alloc_counter_tests.c alloc_counter_tests_LDADD = ${COMMON_LIBS} load_events_files_tests_SOURCES = load_events_files_tests.c load_events_files_tests_LDADD = ${COMMON_LIBS} mangle_tests_SOURCES = mangle_tests.c mangle_tests_LDADD = ${COMMON_LIBS} TESTS = ${check_PROGRAMS} utf8_checker.sh oprofile-0.9.9/libop/tests/mangle_tests.c0000664000076400007640000000463612175510133015412 00000000000000/** * @file mangle_tests.c * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include #include #include #include "op_libiberty.h" #include "op_mangle.h" #include "op_config.h" struct test_input { struct mangle_values values; char const * result; }; static struct test_input const tests[] = { { { MANGLE_NONE, "foo", "", "bar", NULL, "EVENT", 0, 0, 0, 0, 0 }, "{root}/bar/{dep}/{root}/foo/EVENT.0.0.all.all.all" }, { { MANGLE_CPU, "foo", "", "bar", NULL, "EVENT", 0, 0, 0, 0, 2 }, "{root}/bar/{dep}/{root}/foo/EVENT.0.0.all.all.2" }, { { MANGLE_TID, "foo", "", "bar", NULL, "EVENT", 0, 0, 0, 33, 0 }, "{root}/bar/{dep}/{root}/foo/EVENT.0.0.all.33.all" }, { { MANGLE_TGID, "foo", "", "bar", NULL, "EVENT", 0, 0, 34, 0, 0 }, "{root}/bar/{dep}/{root}/foo/EVENT.0.0.34.all.all" }, { { MANGLE_KERNEL, "foo", "", "bar", NULL, "EVENT", 0, 0, 0, 0, 0 }, "{kern}/bar/{dep}/{kern}/foo/EVENT.0.0.all.all.all" }, { { MANGLE_CALLGRAPH, "foo-from", "", "bar-from", "foo-to", "EVENT", 0, 0, 0, 0, 0 }, "{root}/bar-from/{dep}/{root}/foo-from/{cg}/{root}/foo-to/EVENT.0.0.all.all.all" }, { { MANGLE_CPU|MANGLE_TID|MANGLE_TID|MANGLE_TGID|MANGLE_KERNEL, "foo", "", "bar", NULL, "EVENT", 1234, 8192, 34, 35, 2 }, "{kern}/bar/{dep}/{kern}/foo/EVENT.1234.8192.34.35.2" }, { { MANGLE_CPU|MANGLE_TID|MANGLE_TID|MANGLE_TGID|MANGLE_KERNEL, "foo1/foo2", "", "bar1/bar2", NULL, "EVENT", 1234, 8192, 34, 35, 2 }, "{root}/bar1/bar2/{dep}/{root}/foo1/foo2/EVENT.1234.8192.34.35.2" }, { { MANGLE_CALLGRAPH|MANGLE_CPU|MANGLE_TID|MANGLE_TID|MANGLE_TGID|MANGLE_KERNEL, "bar1/bar2", "", "bar1/bar2", "bar1/bar2-to", "EVENT", 1234, 8192, 34, 35, 2 }, "{root}/bar1/bar2/{dep}/{root}/bar1/bar2/{cg}/{root}/bar1/bar2-to/EVENT.1234.8192.34.35.2" }, { { 0, NULL, NULL, NULL, NULL, NULL, 0, 0, 0, 0, 0 }, NULL } }; int main(void) { struct test_input const * test; for (test = tests; test->result; ++test) { char * result = op_mangle_filename(&test->values); char * expect = xmalloc(strlen(test->result) + strlen(op_samples_current_dir) + 1); strcpy(expect, op_samples_current_dir); strcat(expect, test->result); if (strcmp(result, expect)) { fprintf(stderr, "test %d:\nfound: %s\nexpect: %s\n", (int)(test - tests), result, expect); exit(EXIT_FAILURE); } free(expect); free(result); } return EXIT_SUCCESS; } oprofile-0.9.9/libop/tests/alloc_counter_tests.c0000664000076400007640000001214612175510133016773 00000000000000/** * @file alloc_counter_tests.c * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include #include #include "op_parse_event.h" #include "op_alloc_counter.h" #include "op_events.h" #include "op_hw_config.h" #include "op_cpu_type.h" #include "op_events.h" /* FIXME: alpha description events need 20 but when running test on x86 * OP_MAX_COUNTERS is 8, so we can't use it */ #define MAX_EVENTS 20 /* some test are setup to fail in a known way */ enum failure_type { no_failure, fail_to_find_event, fail_to_alloc_counter }; struct allocated_counter { op_cpu cpu_type; char const * const * events; size_t alloc_map[MAX_EVENTS]; /* expected failure for this test */ enum failure_type failure; }; /* not more than MAX_EVENTS string for all these arrays */ static char const * const events_alpha_ev4_1[] = { "ISSUES:4096:0:1:1", NULL }; static char const * const events_alpha_ev4_2[] = { "UNKNOWN_EVENT:4096:0:1:1", NULL }; static char const * const events_ppro_1[] = { "CPU_CLK_UNHALTED:4096:0:1:1", NULL }; static char const * const events_ppro_2[] = { "CPU_CLK_UNHALTED:4096:0:1:1", "DATA_MEM_REFS:4096:0:1:1", NULL }; static char const * const events_ppro_3[] = { /* fail_to_alloc_counter: 2 event to counter 0 */ "COMP_FLOP_RET:4096:0:1:1", "FLOPS:4096:0:1:1", NULL }; static char const * const events_ppro_4[] = { "FLOPS:4096:0:1:1", "FP_ASSIST:4096:0:1:1", NULL }; static char const * const events_ppro_5[] = { "FP_ASSIST:4096:0:1:1", "FLOPS:4096:0:1:1", NULL }; static char const * const events_p4_1[] = { "BRANCH_RETIRED:4096:1:1:1", "MISPRED_BRANCH_RETIRED:4096:1:1:1", "BPU_FETCH_REQUEST:4096:1:1:1", "ITLB_REFERENCE:4096:1:1:1", "MEMORY_CANCEL:4096:4:1:1", "MEMORY_COMPLETE:4096:1:1:1", "TC_MS_XFER:4096:1:1:1", "UOP_QUEUE_WRITES:4096:1:1:1", NULL }; static char const * const events_p4_2[] = { /* fail_to_alloc_counter: 3 event to counter 3, 7 */ "BRANCH_RETIRED:4096:1:1:1", "MISPRED_BRANCH_RETIRED:4096:1:1:1", "INSTR_RETIRED:4096:1:1:1", "BPU_FETCH_REQUEST:4096:1:1:1", "ITLB_REFERENCE:4096:1:1:1", "MEMORY_CANCEL:4096:4:1:1", "MEMORY_COMPLETE:4096:1:1:1", "TC_MS_XFER:4096:1:1:1", NULL }; static char const * const events_mips_34k[] = { /* fail_to_alloc_counter: w/o 2006-8-03 Jeremiah Lott patch, see * ChangeLog */ "DTLB_MISSES:500:0:1:1", "JR_31_INSNS:500:0:1:1", NULL }; static struct allocated_counter const tests[] = { { CPU_AXP_EV4, events_alpha_ev4_1, { 0 }, no_failure }, { CPU_AXP_EV4, events_alpha_ev4_2, { -1 }, fail_to_find_event }, { CPU_PPRO, events_ppro_1, { 0 }, no_failure }, { CPU_PPRO, events_ppro_2, { 0, 1 }, no_failure }, { CPU_PPRO, events_ppro_3, { -1 }, fail_to_alloc_counter }, { CPU_PPRO, events_ppro_4, { 0, 1 }, no_failure }, { CPU_PPRO, events_ppro_5, { 1, 0 }, no_failure }, { CPU_P4, events_p4_1, { 3, 7, 0, 4, 2, 6, 1, 5 }, no_failure }, { CPU_P4, events_p4_2, { -1 }, fail_to_alloc_counter }, { CPU_MIPS_34K, events_mips_34k, { 1, 0 }, no_failure }, { CPU_NO_GOOD, 0, { 0 }, 0 } }; static void show_events(char const * const * events) { for ( ; *events; ++events) printf("%s\n", *events); } static void show_counter_map(size_t const * counter_map, size_t nr_events) { size_t i; for (i = 0; i < nr_events; ++i) printf("%lu ", (unsigned long)counter_map[i]); printf("\n"); } static void do_test(struct allocated_counter const * it) { size_t i; size_t * counter_map; size_t nr_events; struct parsed_event parsed[MAX_EVENTS]; struct op_event const * event[MAX_EVENTS]; op_events(it->cpu_type); nr_events = parse_events(parsed, MAX_EVENTS, it->events, 1); for (i = 0; i < nr_events; ++i) { event[i] = find_event_by_name(parsed[i].name, parsed[i].unit_mask, parsed[i].unit_mask_valid); if (!event[i]) { if (it->failure == fail_to_find_event) goto free_events; printf("Can't find events %s for cpu %s\n", parsed[i].name, op_get_cpu_type_str(it->cpu_type)); exit(EXIT_FAILURE); } } counter_map = map_event_to_counter(event, nr_events, it->cpu_type); if (!counter_map) { if (it->failure == fail_to_alloc_counter) goto free_events; printf("Can't map this set of events to counter:\n"); show_events(it->events); exit(EXIT_FAILURE); } for (i = 0; i < nr_events; ++i) { if (counter_map[i] != it->alloc_map[i]) { printf("Incorrect allocation map for these events:\n"); show_events(it->events); printf("(expect, found):\n"); show_counter_map(it->alloc_map, nr_events); show_counter_map(counter_map, nr_events); exit(EXIT_FAILURE); } } if (it->failure != no_failure) { /* test should fail but success! */ printf("test should fail with a failure type %d but succeed " "for events:\n", it->failure); for (i = 0; i < nr_events; ++i) printf("%s\n", it->events[i]); exit(EXIT_FAILURE); } free(counter_map); free_events: op_free_events(); } int main(void) { struct allocated_counter const * it; setenv("OPROFILE_EVENTS_DIR", OPROFILE_SRCDIR "/events", 1); for (it = tests; it->cpu_type != CPU_NO_GOOD; ++it) do_test(it); return 0; } oprofile-0.9.9/libop/tests/cpu_type_tests.c0000664000076400007640000000345112175510133015771 00000000000000/** * @file cpu_type_tests.c * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include #include #include #include #include "op_cpu_type.h" static struct cpu_type { char const * name; op_cpu type; } cpu_str[] = { { "i386/ppro", CPU_PPRO }, { "i386/pii", CPU_PII }, { "i386/piii", CPU_PIII }, { "i386/athlon", CPU_ATHLON }, { "timer", CPU_TIMER_INT }, { "rtc", CPU_RTC }, { "i386/p4", CPU_P4 }, { "ia64/ia64", CPU_IA64 }, { "ia64/itanium", CPU_IA64_1 }, { "ia64/itanium2", CPU_IA64_2 }, { "x86-64/hammer", CPU_HAMMER }, { "i386/p4-ht", CPU_P4_HT2 }, { "alpha/ev4", CPU_AXP_EV4 }, { "alpha/ev5", CPU_AXP_EV5 }, { "alpha/pca56", CPU_AXP_PCA56 }, { "alpha/ev6", CPU_AXP_EV6 }, { "alpha/ev67", CPU_AXP_EV67 }, { "tile/tile64", CPU_TILE_TILE64 }, { "tile/tilepro", CPU_TILE_TILEPRO }, { "tile/tilegx", CPU_TILE_TILEGX }, { "foo", CPU_NO_GOOD }, { "-3", CPU_NO_GOOD }, { "2927", CPU_NO_GOOD }, { "", CPU_NO_GOOD }, { NULL, CPU_NO_GOOD } }; static void test(struct cpu_type const * cpu) { char const * name; op_cpu type; name = op_get_cpu_name(cpu->type); if (cpu->type != CPU_NO_GOOD && strcmp(cpu->name, name)) { printf("for %d expect %s found %s\n", cpu->type, cpu->name, name); exit(EXIT_FAILURE); } if (cpu->type == CPU_NO_GOOD && strcmp("invalid cpu type", name)) { printf("for %d expect %s found %s\n", cpu->type, "invalid cpu type", name); exit(EXIT_FAILURE); } type = op_get_cpu_number(cpu->name); if (type != cpu->type) { printf("for %s expect %d found %d\n", cpu->name, cpu->type, type); exit(EXIT_FAILURE); } } int main(void) { struct cpu_type * cpu; for (cpu = cpu_str; cpu->name; ++cpu) test(cpu); return 0; } oprofile-0.9.9/libop/op_events.h0000664000076400007640000001074712175510133013572 00000000000000/** * @file op_events.h * Details of PMC profiling events * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef OP_EVENTS_H #define OP_EVENTS_H #ifdef __cplusplus extern "C" { #endif #include "op_cpu_type.h" #include "op_types.h" #include "op_list.h" #define EXTRA_EDGE (1U << 18) #define EXTRA_MIN_VAL EXTRA_EDGE #define EXTRA_ANY (1U << 21) #define EXTRA_INV (1U << 23) #define EXTRA_CMASK_SHIFT 24 #define EXTRA_CMASK_MASK 0xff #define EXTRA_PEBS (1U << 19) /* fake, mapped to pin control, but mapped back for perf */ #define EXTRA_NONE (1U << 22) /* mapped to enabled */ /* * For timer based sampling some targets (e.g. s390) use a virtual * counter whose file system resides in /dev/oprofile/timer. These * macros set the values used to define a specific timer event solely * used by the timer counter. */ #define TIMER_EVENT_NAME "TIMER" #define TIMER_EVENT_UNIT_MASK_NAME "timer_unit_mask" #define TIMER_EVENT_DESC "Timer based sampling" #define TIMER_EVENT_VALUE (u32)-1 /** Describe an unit mask type. Events can optionally use a filter called * the unit mask. the mask type can be a bitmask or a discrete value */ enum unit_mask_type { utm_mandatory, /**< useless but required by the hardware */ utm_exclusive, /**< only one of the values is allowed */ utm_bitmask /**< bitmask */ }; #define MAX_UNIT_MASK 64 /** Describe an unit mask. */ struct op_unit_mask { char * name; /**< name of unit mask type */ u32 num; /**< number of possible unit masks */ enum unit_mask_type unit_type_mask; u32 default_mask; /**< only the gui use it */ char * default_mask_name; struct op_described_um { u32 extra; u32 value; char * name; char * desc; } um[MAX_UNIT_MASK]; struct list_head um_next; /**< next um in list */ int used; /**< used by events file parser */ }; /** Describe an event. */ struct op_event { u32 counter_mask; /**< bitmask of allowed counter */ u32 val; /**< event number */ /** which unit mask if any allowed */ struct op_unit_mask * unit; char * name; /**< the event name */ char * desc; /**< the event description */ int min_count; /**< minimum counter value allowed */ int filter; /**< architecture specific filter or -1 */ char * ext; /**< extended events */ struct list_head event_next; /**< next event in list */ }; /** Return the known events list. Idempotent */ struct list_head * op_events(op_cpu cpu_type); /** Find a given event, returns NULL on error */ struct op_event * op_find_event(op_cpu cpu_type, u32 nr, u32 um); struct op_event * op_find_event_any(op_cpu cpu_type, u32 nr); /** Find a given event by name */ struct op_event * find_event_by_name(char const * name, unsigned um, int um_valid); /** * Find a mapping for a given event ID for architectures requiring additional information * from what is held in the events file. */ char const * find_mapping_for_event(u32 val, op_cpu cpu_type); /** op_check_events() return code */ enum op_event_check { OP_OK_EVENT = 0, /**< event is valid and allowed */ OP_INVALID_EVENT = 1, /**< event number is invalid */ OP_INVALID_UM = 2, /**< unit mask is invalid */ OP_INVALID_COUNTER = 4 /**< event is not allowed for the given counter */ }; /** * sanity check event values * @param ctr counter number * @param event value for counter * @param um unit mask for counter * @param cpu_type processor type * * Check that the counter event and unit mask values are allowed. * * The function returns bitmask of failure cause 0 otherwise * * \sa op_cpu, OP_EVENTS_OK */ int op_check_events(int ctr, u32 event, u32 um, op_cpu cpu_type); /** * free memory used by any call to above function. Need to be called only once */ void op_free_events(void); struct op_default_event_descr { char * name; unsigned long count; unsigned long um; }; /** * op_default_event - return the details of the default event * @param cpu_type cpu type * @param descr filled event description * * Fills in the event description if applicable */ void op_default_event(op_cpu cpu_type, struct op_default_event_descr * descr); /** * op_resolve_unit_mask - resolve a unit mask in a parsed event. * @pe parsed event * @extra pointer to extra mask or NULL. * * Fills in the extra mask for the unit mask. */ struct parsed_event; void op_resolve_unit_mask(struct parsed_event *pe, u32 *extra); #ifdef __cplusplus } #endif #endif /* OP_EVENTS_H */ oprofile-0.9.9/libop/op_mangle.c0000664000076400007640000000547312175510133013524 00000000000000/** * @file op_mangle.c * Mangling of sample file names * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include "op_mangle.h" #include #include #include "op_libiberty.h" #include "op_sample_file.h" #include "op_config.h" static void append_image(char * dest, int flags, int anon, char const * name, char const * anon_name) { if ((flags & MANGLE_KERNEL) && !strchr(name, '/')) { strcat(dest, "{kern}/"); } else if (anon && anon_name) { strcat(dest, "{anon:"); strcat(dest, anon_name); strcat(dest,"}/"); } else { strcat(dest, "{root}/"); } strcat(dest, name); strcat(dest, "/"); } char * op_mangle_filename(struct mangle_values const * values) { char * mangled; size_t len; int anon = values->flags & MANGLE_ANON; int cg_anon = values->flags & MANGLE_CG_ANON; /* if dep_name != image_name we need to invert them (and so revert them * unconditionally because if they are equal it doesn't hurt to invert * them), see P:3, FIXME: this is a bit weirds, we prolly need to * reword pp_interface */ char const * image_name = values->dep_name; char const * anon_name = values->anon_name; char const * dep_name = values->image_name; char const * cg_image_name = values->cg_image_name; len = strlen(op_samples_current_dir) + strlen(dep_name) + 1 + strlen(values->event_name) + 1 + strlen(image_name) + 1; // Just to silence Coverity, check cg_image_name and anon_name below for !=NULL. if (cg_image_name && (values->flags & MANGLE_CALLGRAPH)) len += strlen(cg_image_name) + 1; if (anon_name && (anon || cg_anon)) len += strlen(anon_name); /* provision for tgid, tid, unit_mask, cpu and some {root}, {dep}, * {kern}, {anon} and {cg} marker */ /* FIXME: too ugly */ len += 256; mangled = xmalloc(len); strcpy(mangled, op_samples_current_dir); append_image(mangled, values->flags, 0, image_name, anon_name); strcat(mangled, "{dep}" "/"); append_image(mangled, values->flags, anon, dep_name, anon_name); if (cg_image_name && (values->flags & MANGLE_CALLGRAPH)) { strcat(mangled, "{cg}" "/"); append_image(mangled, values->flags, cg_anon, cg_image_name, anon_name); } strcat(mangled, values->event_name); sprintf(mangled + strlen(mangled), ".%d.%d.", values->count, values->unit_mask); if (values->flags & MANGLE_TGID) { sprintf(mangled + strlen(mangled), "%d.", values->tgid); } else { sprintf(mangled + strlen(mangled), "%s.", "all"); } if (values->flags & MANGLE_TID) { sprintf(mangled + strlen(mangled), "%d.", values->tid); } else { sprintf(mangled + strlen(mangled), "%s.", "all"); } if (values->flags & MANGLE_CPU) { sprintf(mangled + strlen(mangled), "%d", values->cpu); } else { sprintf(mangled + strlen(mangled), "%s", "all"); } return mangled; } oprofile-0.9.9/libop/op_events.c0000664000076400007640000010107012175510133013553 00000000000000/** * @file op_events.c * Details of PMC profiling events * * You can have silliness here. * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include "op_events.h" #include "op_libiberty.h" #include "op_fileio.h" #include "op_string.h" #include "op_cpufreq.h" #include "op_hw_specific.h" #include "op_parse_event.h" #include #include #include #include static LIST_HEAD(events_list); static LIST_HEAD(um_list); static char const * filename; static unsigned int line_nr; static void delete_event(struct op_event * event); static void read_events(char const * file); static void read_unit_masks(char const * file); static void free_unit_mask(struct op_unit_mask * um); static char *build_fn(const char *cpu_name, const char *fn) { char *s; static const char *dir; if (dir == NULL) dir = getenv("OPROFILE_EVENTS_DIR"); if (dir == NULL) dir = OP_DATADIR; s = xmalloc(strlen(dir) + strlen(cpu_name) + strlen(fn) + 5); sprintf(s, "%s/%s/%s", dir, cpu_name, fn); return s; } static void parse_error(char const * context) { fprintf(stderr, "oprofile: parse error in %s, line %u\n", filename, line_nr); fprintf(stderr, "%s\n", context); exit(EXIT_FAILURE); } static int parse_int(char const * str) { int value; if (sscanf(str, "%d", &value) != 1) parse_error("expected decimal value"); return value; } static int parse_hex(char const * str) { int value; /* 0x/0X to force the use of hexa notation for field intended to be in hexadecimal */ if (sscanf(str, "0x%x", &value) != 1 && sscanf(str, "0X%x", &value) != 1) parse_error("expected hexadecimal value"); return value; } static u64 parse_long_hex(char const * str) { u64 value; if (sscanf(str, "%Lx", &value) != 1) parse_error("expected long hexadecimal value"); fflush(stderr); return value; } static void include_um(const char *start, const char *end) { char *s; char cpu[end - start + 1]; int old_line_nr; const char *old_filename; strncpy(cpu, start, end - start); cpu[end - start] = 0; s = build_fn(cpu, "unit_masks"); old_line_nr = line_nr; old_filename = filename; read_unit_masks(s); line_nr = old_line_nr; filename = old_filename; free(s); } /* extra:cmask=12,inv,edge */ unsigned parse_extra(const char *s) { unsigned v, w; int o; /* This signifies that the first word of the description is unique */ v = EXTRA_NONE; while (*s) { if (isspace(*s)) break; if (strisprefix(s, "edge")) { v |= EXTRA_EDGE; s += 4; } else if (strisprefix(s, "inv")) { v |= EXTRA_INV; s += 3; } else if (sscanf(s, "cmask=%x%n", &w, &o) >= 1) { v |= (w & EXTRA_CMASK_MASK) << EXTRA_CMASK_SHIFT; s += o; } else if (strisprefix(s, "any")) { v |= EXTRA_ANY; s += 3; } else if (strisprefix(s, "pebs")) { v |= EXTRA_PEBS; s += 4; } else { parse_error("Illegal extra field modifier"); } if (*s == ',') ++s; } return v; } /* name:MESI type:bitmask default:0x0f */ static void parse_um(struct op_unit_mask * um, char const * line) { int seen_name = 0; int seen_type = 0; int seen_default = 0; char const * valueend = line + 1; char const * tagend = line + 1; char const * start = line; while (*valueend) { valueend = skip_nonws(valueend); while (*tagend != ':' && *tagend) ++tagend; if (valueend == tagend) break; if (!*tagend) parse_error("parse_um() expected :value"); ++tagend; if (strisprefix(start, "include")) { if (seen_name + seen_type + seen_default > 0) parse_error("include must be on its own"); free_unit_mask(um); include_um(tagend, valueend); return; } if (strisprefix(start, "name")) { if (seen_name) parse_error("duplicate name: tag"); seen_name = 1; um->name = op_xstrndup(tagend, valueend - tagend); } else if (strisprefix(start, "type")) { if (seen_type) parse_error("duplicate type: tag"); seen_type = 1; if (strisprefix(tagend, "mandatory")) { um->unit_type_mask = utm_mandatory; } else if (strisprefix(tagend, "bitmask")) { um->unit_type_mask = utm_bitmask; } else if (strisprefix(tagend, "exclusive")) { um->unit_type_mask = utm_exclusive; } else { parse_error("invalid unit mask type"); } } else if (strisprefix(start, "default")) { if (seen_default) parse_error("duplicate default: tag"); seen_default = 1; if (0 != strncmp(tagend, "0x", 2)) { um->default_mask_name = op_xstrndup( tagend, valueend - tagend); } else { um->default_mask = parse_hex(tagend); } } else { parse_error("invalid unit mask tag"); } valueend = skip_ws(valueend); tagend = valueend; start = valueend; } if (!um->name) parse_error("Missing name for unit mask"); if (!seen_type) parse_error("Missing type for unit mask"); } /* \t0x08 (M)odified cache state */ /* \t0x08 extra:inv,cmask=... mod_cach_state (M)odified cache state */ static void parse_um_entry(struct op_described_um * entry, char const * line) { char const * c = line; /* value */ c = skip_ws(c); entry->value = parse_hex(c); /* extra: */ c = skip_nonws(c); c = skip_ws(c); if (!*c) goto invalid_out; if (strisprefix(c, "extra:")) { c += 6; entry->extra = parse_extra(c); /* named mask */ c = skip_nonws(c); c = skip_ws(c); if (!*c) goto invalid_out; /* "extra:" !!ALWAYS!! followed by named mask */ entry->name = op_xstrndup(c, strcspn(c, " \t")); c = skip_nonws(c); c = skip_ws(c); } else { entry->extra = 0; } /* desc */ if (!*c) { /* This is a corner case where the named unit mask entry * only has one word. This should really be fixed in the * unit_mask file */ entry->desc = xstrdup(entry->name); } else entry->desc = xstrdup(c); return; invalid_out: parse_error("invalid unit mask entry"); } static struct op_unit_mask * new_unit_mask(void) { struct op_unit_mask * um = xmalloc(sizeof(struct op_unit_mask)); memset(um, '\0', sizeof(struct op_unit_mask)); list_add_tail(&um->um_next, &um_list); return um; } static void free_unit_mask(struct op_unit_mask * um) { list_del(&um->um_next); free(um); um = NULL; } /* * name:zero type:mandatory default:0x0 * \t0x0 No unit mask */ static void read_unit_masks(char const * file) { struct op_unit_mask * um = NULL; char * line; FILE * fp = fopen(file, "r"); if (!fp) { fprintf(stderr, "oprofile: could not open unit mask description file %s\n", file); exit(EXIT_FAILURE); } filename = file; line_nr = 1; line = op_get_line(fp); while (line) { if (empty_line(line) || comment_line(line)) goto next; if (line[0] != '\t') { um = new_unit_mask(); parse_um(um, line); } else { if (!um) parse_error("no unit mask name line"); parse_um_entry(&um->um[um->num], line); ++(um->num); } next: free(line); line = op_get_line(fp); ++line_nr; } fclose(fp); } static u32 parse_counter_mask(char const * str) { u32 mask = 0; char const * numstart = str; while (*numstart) { mask |= 1 << parse_int(numstart); while (*numstart && *numstart != ',') ++numstart; /* skip , unless we reach eos */ if (*numstart) ++numstart; numstart = skip_ws(numstart); } return mask; } static struct op_unit_mask * try_find_um(char const * value) { struct list_head * pos; list_for_each(pos, &um_list) { struct op_unit_mask * um = list_entry(pos, struct op_unit_mask, um_next); if (strcmp(value, um->name) == 0) { um->used = 1; return um; } } return NULL; } static struct op_unit_mask * find_um(char const * value) { struct op_unit_mask * um = try_find_um(value); if (um) return um; fprintf(stderr, "oprofile: could not find unit mask %s\n", value); exit(EXIT_FAILURE); } /* um:a,b,c,d merge multiple unit masks */ static struct op_unit_mask * merge_um(char * value) { int num; char *s; struct op_unit_mask *new, *um; enum unit_mask_type type = -1U; um = try_find_um(value); if (um) return um; new = new_unit_mask(); new->name = xstrdup(value); new->used = 1; num = 0; while ((s = strsep(&value, ",")) != NULL) { unsigned c; um = find_um(s); if (type == -1U) type = um->unit_type_mask; if (um->unit_type_mask != type) parse_error("combined unit mask must be all the same types"); if (type != utm_bitmask && type != utm_exclusive) parse_error("combined unit mask must be all bitmasks or exclusive"); new->default_mask |= um->default_mask; new->num += um->num; if (new->num > MAX_UNIT_MASK) parse_error("too many members in combined unit mask"); for (c = 0; c < um->num; c++, num++) { new->um[num] = um->um[c]; new->um[num].desc = xstrdup(new->um[num].desc); } } if (type == -1U) parse_error("Empty unit mask"); new->unit_type_mask = type; return new; } /* parse either a "tag:value" or a ": trailing description string" */ static int next_token(char const ** cp, char ** name, char ** value) { size_t tag_len; size_t val_len; char const * c = *cp; char const * end; char const * colon; c = skip_ws(c); end = colon = c; end = skip_nonws(end); colon = strchr(colon, ':'); if (!colon) { if (*c) parse_error("next_token(): garbage at end of line"); return 0; } if (colon >= end) parse_error("next_token() expected ':'"); tag_len = colon - c; val_len = end - (colon + 1); if (!tag_len) { /* : trailing description */ end = skip_ws(end); *name = xstrdup("desc"); *value = xstrdup(end); end += strlen(end); } else { /* tag:value */ *name = op_xstrndup(c, tag_len); *value = op_xstrndup(colon + 1, val_len); end = skip_ws(end); } *cp = end; return 1; } static void include_events (char *value) { char * event_file; const char *old_filename; int old_line_nr; event_file = build_fn(value, "events"); old_line_nr = line_nr; old_filename = filename; read_events(event_file); line_nr = old_line_nr; filename = old_filename; free(event_file); } static struct op_event * new_event(void) { struct op_event * event = xmalloc(sizeof(struct op_event)); memset(event, '\0', sizeof(struct op_event)); list_add_tail(&event->event_next, &events_list); return event; } static void free_event(struct op_event * event) { list_del(&event->event_next); free(event); } /* event:0x00 counters:0 um:zero minimum:4096 name:ISSUES : Total issues */ /* event:0x00 ext:xxxxxx um:zero minimum:4096 name:ISSUES : Total issues */ static void read_events(char const * file) { struct op_event * event = NULL; char * line; char * name; char * value; char const * c; int seen_event, seen_counters, seen_um, seen_minimum, seen_name, seen_ext; FILE * fp = fopen(file, "r"); int tags; if (!fp) { fprintf(stderr, "oprofile: could not open event description file %s\n", file); exit(EXIT_FAILURE); } filename = file; line_nr = 1; line = op_get_line(fp); while (line) { if (empty_line(line) || comment_line(line)) goto next; tags = 0; seen_name = 0; seen_event = 0; seen_counters = 0; seen_ext = 0; seen_um = 0; seen_minimum = 0; event = new_event(); event->filter = -1; event->ext = NULL; c = line; while (next_token(&c, &name, &value)) { if (strcmp(name, "name") == 0) { if (seen_name) parse_error("duplicate name: tag"); seen_name = 1; if (strchr(value, '/') != NULL) parse_error("invalid event name"); if (strchr(value, '.') != NULL) parse_error("invalid event name"); event->name = value; } else if (strcmp(name, "event") == 0) { if (seen_event) parse_error("duplicate event: tag"); seen_event = 1; event->val = parse_hex(value); free(value); } else if (strcmp(name, "counters") == 0) { if (seen_counters) parse_error("duplicate counters: tag"); seen_counters = 1; if (!strcmp(value, "cpuid")) event->counter_mask = arch_get_counter_mask(); else event->counter_mask = parse_counter_mask(value); free(value); } else if (strcmp(name, "ext") == 0) { if (seen_ext) parse_error("duplicate ext: tag"); seen_ext = 1; event->ext = value; } else if (strcmp(name, "um") == 0) { if (seen_um) parse_error("duplicate um: tag"); seen_um = 1; if (strchr(value, ',')) event->unit = merge_um(value); else event->unit = find_um(value); free(value); } else if (strcmp(name, "minimum") == 0) { if (seen_minimum) parse_error("duplicate minimum: tag"); seen_minimum = 1; event->min_count = parse_int(value); free(value); } else if (strcmp(name, "desc") == 0) { event->desc = value; } else if (strcmp(name, "filter") == 0) { event->filter = parse_int(value); free(value); } else if (strcmp(name, "include") == 0) { if (tags > 0) parse_error("tags before include:"); free_event(event); include_events(value); free(value); c = skip_ws(c); if (*c != '\0' && *c != '#') parse_error("non whitespace after include:"); break; } else { parse_error("unknown tag"); } tags++; free(name); } next: free(line); line = op_get_line(fp); ++line_nr; } fclose(fp); } /* usefull for make check */ static int check_unit_mask(struct op_unit_mask const * um, char const * cpu_name) { u32 i; int err = 0; if (!um->used) { fprintf(stderr, "um %s is not used\n", um->name); err = EXIT_FAILURE; } if (um->unit_type_mask == utm_mandatory && um->num != 1) { fprintf(stderr, "mandatory um %s doesn't contain exactly one " "entry (%s)\n", um->name, cpu_name); err = EXIT_FAILURE; } else if (um->unit_type_mask == utm_bitmask) { u32 default_mask = um->default_mask; for (i = 0; i < um->num; ++i) default_mask &= ~um->um[i].value; if (default_mask) { fprintf(stderr, "um %s default mask is not valid " "(%s)\n", um->name, cpu_name); err = EXIT_FAILURE; } } else if (um->unit_type_mask == utm_exclusive) { if (um->default_mask_name) { for (i = 0; i < um->num; ++i) { if (0 == strcmp(um->default_mask_name, um->um[i].name)) break; } } else { for (i = 0; i < um->num; ++i) { if (um->default_mask == um->um[i].value) break; } } if (i == um->num) { fprintf(stderr, "exclusive um %s default value is not " "valid (%s)\n", um->name, cpu_name); err = EXIT_FAILURE; } } return err; } static void arch_filter_events(op_cpu cpu_type) { struct list_head * pos, * pos2; unsigned filter = arch_get_filter(cpu_type); if (!filter) return; list_for_each_safe (pos, pos2, &events_list) { struct op_event * event = list_entry(pos, struct op_event, event_next); if (event->filter >= 0 && ((1U << event->filter) & filter)) delete_event(event); } } static void load_events_name(const char *cpu_name) { char * event_file; char * um_file; event_file = build_fn(cpu_name, "events"); um_file = build_fn(cpu_name, "unit_masks"); read_unit_masks(um_file); read_events(event_file); free(um_file); free(event_file); } static void load_events(op_cpu cpu_type) { const char * cpu_name = op_get_cpu_name(cpu_type); struct list_head * pos; struct op_event *event; struct op_unit_mask *unit_mask; int err = 0; if (!list_empty(&events_list)) return; load_events_name(cpu_name); arch_filter_events(cpu_type); /* sanity check: all unit mask must be used */ list_for_each(pos, &um_list) { struct op_unit_mask * um = list_entry(pos, struct op_unit_mask, um_next); err |= check_unit_mask(um, cpu_name); } if (err) exit(err); if (!op_cpu_has_timer_fs()) return; /* sanity check: Don't use event `TIMER' since it is predefined. */ list_for_each(pos, &events_list) { struct op_event * event = list_entry(pos, struct op_event, event_next); if (strcmp(event->name, TIMER_EVENT_NAME) == 0) { fprintf(stderr, "Error: " TIMER_EVENT_NAME " event cannot be redefined.\n"); exit(EXIT_FAILURE); } if (event->val == TIMER_EVENT_VALUE) { fprintf(stderr, "Error: Event %s uses " TIMER_EVENT_NAME " which is reserverd for timer based sampling.\n", event->name); exit(EXIT_FAILURE); } } list_for_each(pos, &um_list) { struct op_unit_mask * um = list_entry(pos, struct op_unit_mask, um_next); if (strcmp(um->name, TIMER_EVENT_UNIT_MASK_NAME) == 0) { fprintf(stderr, "Error: " TIMER_EVENT_UNIT_MASK_NAME " unit mask cannot be redefined.\n"); exit(EXIT_FAILURE); } } unit_mask = new_unit_mask(); unit_mask->name = xstrdup(TIMER_EVENT_UNIT_MASK_NAME); unit_mask->num = 1; unit_mask->unit_type_mask = utm_mandatory; unit_mask->um[0].extra = 0; unit_mask->um[0].value = 0; unit_mask->um[0].name = xstrdup(""); unit_mask->um[0].desc = xstrdup("No unit mask"); unit_mask->used = 1; event = new_event(); event->name = xstrdup(TIMER_EVENT_NAME); event->desc = xstrdup(TIMER_EVENT_DESC); event->val = TIMER_EVENT_VALUE; event->unit = unit_mask; event->min_count = 0; event->filter = 0; event->counter_mask = 1 << (op_get_nr_counters(cpu_type) - 1); event->ext = NULL; event->filter = -1; } struct list_head * op_events(op_cpu cpu_type) { load_events(cpu_type); arch_filter_events(cpu_type); return &events_list; } static void delete_unit_mask(struct op_unit_mask * unit) { u32 cur; for (cur = 0 ; cur < unit->num ; ++cur) { if (unit->um[cur].desc) free(unit->um[cur].desc); } if (unit->name) free(unit->name); list_del(&unit->um_next); free(unit); } static void delete_event(struct op_event * event) { if (event->name) free(event->name); if (event->desc) free(event->desc); list_del(&event->event_next); free(event); } void op_free_events(void) { struct list_head * pos, * pos2; list_for_each_safe(pos, pos2, &events_list) { struct op_event * event = list_entry(pos, struct op_event, event_next); delete_event(event); } list_for_each_safe(pos, pos2, &um_list) { struct op_unit_mask * unit = list_entry(pos, struct op_unit_mask, um_next); delete_unit_mask(unit); } } /* There can be actually multiple events here, so this is not quite correct */ static struct op_event * find_event_any(u32 nr) { struct list_head * pos; list_for_each(pos, &events_list) { struct op_event * event = list_entry(pos, struct op_event, event_next); if (event->val == nr) return event; } return NULL; } static struct op_event * find_event_um(u32 nr, u32 um) { struct list_head * pos; unsigned int i; list_for_each(pos, &events_list) { struct op_event * event = list_entry(pos, struct op_event, event_next); if (event->val == nr) { for (i = 0; i < event->unit->num; i++) { if (event->unit->um[i].value == um) return event; } } } return NULL; } static FILE * open_event_mapping_file(char const * cpu_name) { char * ev_map_file; char * dir; dir = getenv("OPROFILE_EVENTS_DIR"); if (dir == NULL) dir = OP_DATADIR; ev_map_file = xmalloc(strlen(dir) + strlen("/") + strlen(cpu_name) + strlen("/") + + strlen("event_mappings") + 1); strcpy(ev_map_file, dir); strcat(ev_map_file, "/"); strcat(ev_map_file, cpu_name); strcat(ev_map_file, "/"); strcat(ev_map_file, "event_mappings"); filename = ev_map_file; return (fopen(ev_map_file, "r")); } /** * This function is PPC64-specific. */ static char const * get_mapping(u32 nr, FILE * fp) { char * line; char * name; char * value; char const * c; char * map = NULL; int seen_event = 0, seen_mmcr0 = 0, seen_mmcr1 = 0, seen_mmcra = 0; u32 mmcr0 = 0; u64 mmcr1 = 0; u32 mmcra = 0; int event_found = 0; line_nr = 1; line = op_get_line(fp); while (line && !event_found) { if (empty_line(line) || comment_line(line)) goto next; seen_event = 0; seen_mmcr0 = 0; seen_mmcr1 = 0; seen_mmcra = 0; mmcr0 = 0; mmcr1 = 0; mmcra = 0; c = line; while (next_token(&c, &name, &value)) { if (strcmp(name, "event") == 0) { u32 evt; if (seen_event) parse_error("duplicate event tag"); seen_event = 1; evt = parse_hex(value); if (evt == nr) event_found = 1; free(value); } else if (strcmp(name, "mmcr0") == 0) { if (seen_mmcr0) parse_error("duplicate mmcr0 tag"); seen_mmcr0 = 1; mmcr0 = parse_hex(value); free(value); } else if (strcmp(name, "mmcr1") == 0) { if (seen_mmcr1) parse_error("duplicate mmcr1: tag"); seen_mmcr1 = 1; mmcr1 = parse_long_hex(value); free(value); } else if (strcmp(name, "mmcra") == 0) { if (seen_mmcra) parse_error("duplicate mmcra: tag"); seen_mmcra = 1; mmcra = parse_hex(value); free(value); } else { parse_error("unknown tag"); } free(name); } next: free(line); line = op_get_line(fp); ++line_nr; } if (event_found) { if (!seen_mmcr0 || !seen_mmcr1 || !seen_mmcra) { fprintf(stderr, "Error: Missing information in line %d of event mapping file %s\n", line_nr, filename); exit(EXIT_FAILURE); } map = xmalloc(70); snprintf(map, 70, "mmcr0:%u mmcr1:%Lu mmcra:%u", mmcr0, mmcr1, mmcra); } return map; } char const * find_mapping_for_event(u32 nr, op_cpu cpu_type) { char const * cpu_name = op_get_cpu_name(cpu_type); FILE * fp = open_event_mapping_file(cpu_name); char const * map = NULL; switch (cpu_type) { case CPU_PPC64_PA6T: case CPU_PPC64_970: case CPU_PPC64_970MP: case CPU_PPC64_POWER4: case CPU_PPC64_POWER5: case CPU_PPC64_POWER5p: case CPU_PPC64_POWER5pp: case CPU_PPC64_POWER6: case CPU_PPC64_POWER7: case CPU_PPC64_IBM_COMPAT_V1: // For ppc64 types of CPU_PPC64_ARCH_V1 and higher, we don't need an event_mappings file if (!fp) { fprintf(stderr, "oprofile: could not open event mapping file %s\n", filename); exit(EXIT_FAILURE); } else { map = get_mapping(nr, fp); } break; default: break; } if (fp) fclose(fp); return map; } static int match_event(int i, struct op_event *event, unsigned um) { unsigned v = event->unit->um[i].value; switch (event->unit->unit_type_mask) { case utm_exclusive: case utm_mandatory: return v == um; case utm_bitmask: return (v & um) || (!v && v == 0); } abort(); } struct op_event * find_event_by_name(char const * name, unsigned um, int um_valid) { struct list_head * pos; list_for_each(pos, &events_list) { struct op_event * event = list_entry(pos, struct op_event, event_next); if (strcmp(event->name, name) == 0) { if (um_valid) { unsigned i; for (i = 0; i < event->unit->num; i++) if (match_event(i, event, um)) return event; continue; } return event; } } return NULL; } static struct op_event * find_next_event(struct op_event * e) { struct list_head * n; for (n = e->event_next.next; n != &events_list; n = n->next) { struct op_event * ne = list_entry(n, struct op_event, event_next); if (!strcmp(e->name, ne->name)) return ne; } return NULL; } struct op_event * op_find_event(op_cpu cpu_type, u32 nr, u32 um) { struct op_event * event; load_events(cpu_type); event = find_event_um(nr, um); return event; } struct op_event * op_find_event_any(op_cpu cpu_type, u32 nr) { load_events(cpu_type); return find_event_any(nr); } static int _is_um_valid_bitmask(struct op_event * event, u32 passed_um) { int duped_um[MAX_UNIT_MASK]; int retval = 0; u32 masked_val = 0; u32 i, k; int dup_value_used = 0; struct op_event evt; struct op_unit_mask * tmp_um = xmalloc(sizeof(struct op_unit_mask)); struct op_unit_mask * tmp_um_no_dups = xmalloc(sizeof(struct op_unit_mask)); memset(tmp_um, '\0', sizeof(struct op_unit_mask));; memset(tmp_um_no_dups, '\0', sizeof(struct op_unit_mask)); memset(duped_um, '\0', sizeof(int) * MAX_UNIT_MASK); // First, we make a copy of the event, with just its unit mask values. evt.unit = tmp_um; evt.unit->num = event->unit->num; for (i = 0; i < event->unit->num; i++) evt.unit->um[i].value = event->unit->um[i].value; // Next, we sort the unit mask values in ascending order. for (i = 1; i < evt.unit->num; i++) { int j = i - 1; u32 tmp = evt.unit->um[i].value; while (j >= 0 && tmp < evt.unit->um[j].value) { evt.unit->um[j + 1].value = evt.unit->um[j].value; j -= 1; } evt.unit->um[j + 1].value = tmp; } /* Now we remove duplicates. Duplicate unit mask values were not * allowed until the "named unit mask" support was added in * release 0.9.7. The down side to this is that if the user passed * a unit mask value that includes one of the duplicated values, * we have no way of differentiating between the duplicates, so * the meaning of the bitmask would be ambiguous if we were to * allow it. Thus, we must prevent the user from specifying such * bitmasks. */ for (i = 0, k = 0; k < evt.unit->num; i++) { tmp_um_no_dups->um[i].value = evt.unit->um[k].value; tmp_um_no_dups->num++; k++; while ((evt.unit->um[i].value == evt.unit->um[k].value) && i < evt.unit->num) { k++; duped_um[i] = 1; } } evt.unit = tmp_um_no_dups; // Now check if passed um==0 and if the defined event has a UM with value '0'. if (!passed_um) { for (i = 0; i < evt.unit->num; i++) { if (!evt.unit->um[i].value) return 1; } } /* Finally, we'll see if the passed unit mask value can be matched with a * mask of available unit mask values. We check for this by determining * whether the exact bits set in the current um are also set in the * passed um; if so, we OR those bits into a cumulative masked_val variable. * Simultaneously, we check if the passed um contains a non-unique unit * mask value, in which case, it's invalid.. */ for (i = 0; i < evt.unit->num; i++) { if ((evt.unit->um[i].value & passed_um) == evt.unit->um[i].value) { masked_val |= evt.unit->um[i].value; if (duped_um[i]) { dup_value_used = 1; break; } } } if (dup_value_used) { fprintf(stderr, "Ambiguous bitmask: Unit mask values" " cannot include non-unique numerical values (i.e., 0x%x).\n", evt.unit->um[i].value); fprintf(stderr, "Use ophelp to see the unit mask values for event %s.\n", event->name); } else if (masked_val == passed_um && passed_um != 0) { retval = 1; } free(tmp_um); free(tmp_um_no_dups); return retval; } int op_check_events(int ctr, u32 nr, u32 um, op_cpu cpu_type) { int ret = OP_INVALID_EVENT; size_t i; u32 ctr_mask = 1 << ctr; struct list_head * pos; load_events(cpu_type); list_for_each(pos, &events_list) { struct op_event * event = list_entry(pos, struct op_event, event_next); if (event->val != nr) continue; ret = OP_OK_EVENT; if ((event->counter_mask & ctr_mask) == 0) ret |= OP_INVALID_COUNTER; if (event->unit->unit_type_mask == utm_bitmask) { if (!_is_um_valid_bitmask(event, um)) ret |= OP_INVALID_UM; } else { for (i = 0; i < event->unit->num; ++i) { if (event->unit->um[i].value == um) break; } if (i == event->unit->num) ret |= OP_INVALID_UM; } if (ret == OP_OK_EVENT) return ret; } return ret; } void op_default_event(op_cpu cpu_type, struct op_default_event_descr * descr) { descr->name = ""; descr->um = 0x0; /* A fixed value of CPU cycles; this should ensure good * granulity even on faster CPUs, though it will generate more * interrupts. */ descr->count = 100000; switch (cpu_type) { case CPU_PPRO: case CPU_PII: case CPU_PIII: case CPU_P6_MOBILE: case CPU_CORE: case CPU_CORE_2: case CPU_ATHLON: case CPU_HAMMER: case CPU_FAMILY10: case CPU_ARCH_PERFMON: case CPU_FAMILY11H: case CPU_ATOM: case CPU_CORE_I7: case CPU_NEHALEM: case CPU_HASWELL: case CPU_WESTMERE: case CPU_SANDYBRIDGE: case CPU_IVYBRIDGE: case CPU_MIPS_LOONGSON2: case CPU_FAMILY12H: case CPU_FAMILY14H: case CPU_FAMILY15H: case CPU_AMD64_GENERIC: descr->name = "CPU_CLK_UNHALTED"; break; case CPU_RTC: descr->name = "RTC_INTERRUPTS"; descr->count = 1024; break; case CPU_P4: case CPU_P4_HT2: descr->name = "GLOBAL_POWER_EVENTS"; descr->um = 0x1; break; case CPU_IA64: case CPU_IA64_1: case CPU_IA64_2: descr->count = 1000000; descr->name = "CPU_CYCLES"; break; case CPU_AXP_EV4: case CPU_AXP_EV5: case CPU_AXP_PCA56: case CPU_AXP_EV6: case CPU_AXP_EV67: descr->name = "CYCLES"; break; // we could possibly use the CCNT case CPU_ARM_XSCALE1: case CPU_ARM_XSCALE2: case CPU_ARM_MPCORE: case CPU_ARM_V6: case CPU_ARM_V7: case CPU_ARM_V7_CA5: case CPU_ARM_V7_CA7: case CPU_ARM_V7_CA9: case CPU_ARM_V7_CA15: case CPU_AVR32: case CPU_ARM_SCORPION: case CPU_ARM_SCORPIONMP: descr->name = "CPU_CYCLES"; break; case CPU_PPC64_PA6T: case CPU_PPC64_970: case CPU_PPC64_970MP: case CPU_PPC_7450: case CPU_PPC64_POWER4: case CPU_PPC64_POWER5: case CPU_PPC64_POWER6: case CPU_PPC64_POWER5p: case CPU_PPC64_POWER5pp: case CPU_PPC64_CELL: case CPU_PPC64_POWER7: case CPU_PPC64_IBM_COMPAT_V1: case CPU_PPC64_ARCH_V1: case CPU_PPC64_POWER8: descr->name = "CYCLES"; break; case CPU_MIPS_20K: descr->name = "CYCLES"; break; case CPU_MIPS_24K: case CPU_MIPS_34K: case CPU_MIPS_74K: case CPU_MIPS_1004K: descr->name = "INSTRUCTIONS"; break; case CPU_MIPS_5K: case CPU_MIPS_25K: descr->name = "CYCLES"; break; case CPU_MIPS_R10000: case CPU_MIPS_R12000: descr->name = "INSTRUCTIONS_GRADUATED"; break; case CPU_MIPS_RM7000: case CPU_MIPS_RM9000: descr->name = "INSTRUCTIONS_ISSUED"; break; case CPU_MIPS_SB1: descr->name = "INSN_SURVIVED_STAGE7"; break; case CPU_MIPS_VR5432: case CPU_MIPS_VR5500: descr->name = "INSTRUCTIONS_EXECUTED"; break; case CPU_PPC_E500: case CPU_PPC_E500_2: case CPU_PPC_E300: descr->name = "CPU_CLK"; break; case CPU_S390_Z10: case CPU_S390_Z196: case CPU_S390_ZEC12: if (op_get_nr_counters(cpu_type) > 1) { descr->name = "HWSAMPLING"; descr->count = 4127518; } else { descr->name = TIMER_EVENT_NAME; descr->count = 10000; } break; case CPU_TILE_TILE64: case CPU_TILE_TILEPRO: case CPU_TILE_TILEGX: descr->name = "ONE"; break; // don't use default, if someone add a cpu he wants a compiler // warning if he forgets to handle it here. case CPU_TIMER_INT: case CPU_NO_GOOD: case MAX_CPU_TYPE: break; } } static void extra_check(struct op_event *e, char *name, unsigned w) { int found; unsigned i; if (!e->unit->um[w].extra) { fprintf(stderr, "Named unit mask (%s) not allowed for event without 'extra:' values.\n" "Please specify the numerical value for the unit mask. See 'opcontrol'\n" "or 'operf' man page for more info.\n", name); exit(EXIT_FAILURE); } found = 0; for (i = 0; i < e->unit->num; i++) { int len = strcspn(e->unit->um[i].desc, " \t"); if (!strncmp(name, e->unit->um[i].desc, len) && name[len] == '\0') found++; } if (found > 1) { fprintf(stderr, "Unit mask name `%s' not unique. Please use a numerical unit mask\n", name); exit(EXIT_FAILURE); } } static void do_resolve_unit_mask(struct op_event *e, struct parsed_event *pe, u32 *extra) { unsigned i; /* If not specified um and the default um is name type * we populate pe unitmask name with default name */ if ((e->unit->default_mask_name != NULL) && (pe->unit_mask_name == NULL) && (!pe->unit_mask_valid)) { pe->unit_mask_name = xstrdup(e->unit->default_mask_name); } for (;;) { if (pe->unit_mask_name == NULL) { /* For numerical unit mask */ int found = 0; /* Use default unitmask if not specified */ if (!pe->unit_mask_valid) { pe->unit_mask_valid = 1; pe->unit_mask = e->unit->default_mask; } /* Checking to see there are any duplicate numerical unit mask * in which case it should be using named unit mask instead. */ for (i = 0; i < e->unit->num; i++) { if (e->unit->um[i].value == (unsigned int)pe->unit_mask) found++; } if (found > 1) { fprintf(stderr, "Unit mask (0x%x) is non unique.\n" "Please specify the unit mask using the first " "word of the description\n", pe->unit_mask); exit(EXIT_FAILURE); } if (i == e->unit->num) { e = find_next_event(e); if (e != NULL) continue; } return; } else { /* For named unit mask */ for (i = 0; i < e->unit->num; i++) { int len = 0; if (e->unit->um[i].name) len = strlen(e->unit->um[i].name); if (len && (!strncmp(pe->unit_mask_name, e->unit->um[i].name, len)) && (pe->unit_mask_name[len] == '\0')) break; } if (i == e->unit->num) { e = find_next_event(e); if (e != NULL) continue; fprintf(stderr, "Cannot find unit mask %s for %s\n", pe->unit_mask_name, pe->name); exit(EXIT_FAILURE); } extra_check(e, pe->unit_mask_name, i); pe->unit_mask_valid = 1; pe->unit_mask = e->unit->um[i].value; if (extra) { if (e->unit->um[i].extra == EXTRA_NONE) *extra = e->unit->um[i].value; else *extra = e->unit->um[i].extra; } return; } } } void op_resolve_unit_mask(struct parsed_event *pe, u32 *extra) { struct op_event *e; e = find_event_by_name(pe->name, 0, 0); if (!e) { fprintf(stderr, "Cannot find event %s\n", pe->name); exit(EXIT_FAILURE); } return do_resolve_unit_mask(e, pe, extra); } oprofile-0.9.9/libop/op_netburst.h0000664000076400007640000001717512175510133014136 00000000000000/* * @file libop/op_netburst.h * Definitions of structures and methods for handling Intel Netburst events. * * @remark Copyright 2013 OProfile authors * @remark Read the file COPYING * * Created on: May 14, 2013 * @author Maynard Johnson * (C) Copyright IBM Corp. 2013 * * NOTE: The code in this file was largely borrowed from a libpfm file, * so we include below the Copyright and licensing information from that file. */ /* * Copyright (c) 2006 IBM Corp. * Contributed by Kevin Corry * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. * * pfmlib_netburst_priv.h * * Structures and definitions for use in the Pentium4/Xeon/EM64T libpfm code. */ #ifndef OP_NETBURST_H_ #define OP_NETBURST_H_ #ifdef __cplusplus extern "C" { #endif /* ESCR: Event Selection Control Register * * These registers are used to select which event to count along with options * for that event. There are (up to) 45 ESCRs, but each data counter is * restricted to a specific set of ESCRs. */ /** * netburst_escr_value_t * * Bit-wise breakdown of the ESCR registers. * * Bits Description * ------- ----------- * 63 - 31 Reserved * 30 - 25 Event Select * 24 - 9 Event Mask * 8 - 5 Tag Value * 4 Tag Enable * 3 T0 OS - Enable counting in kernel mode (thread 0) * 2 T0 USR - Enable counting in user mode (thread 0) * 1 T1 OS - Enable counting in kernel mode (thread 1) * 0 T1 USR - Enable counting in user mode (thread 1) **/ #define EVENT_MASK_BITS 16 #define EVENT_SELECT_BITS 6 typedef union { unsigned long long val; struct { unsigned long t1_usr:1; unsigned long t1_os:1; unsigned long t0_usr:1; unsigned long t0_os:1; unsigned long tag_enable:1; unsigned long tag_value:4; unsigned long event_mask:EVENT_MASK_BITS; unsigned long event_select:EVENT_SELECT_BITS; unsigned long reserved:1; } bits; } netburst_escr_value_t; /* CCCR: Counter Configuration Control Register * * These registers are used to configure the data counters. There are 18 * CCCRs, one for each data counter. */ /** * netburst_cccr_value_t * * Bit-wise breakdown of the CCCR registers. * * Bits Description * ------- ----------- * 63 - 32 Reserved * 31 OVF - The data counter overflowed. * 30 Cascade - Enable cascading of data counter when alternate * counter overflows. * 29 - 28 Reserved * 27 OVF_PMI_T1 - Generate interrupt for LP1 on counter overflow * 26 OVF_PMI_T0 - Generate interrupt for LP0 on counter overflow * 25 FORCE_OVF - Force interrupt on every counter increment * 24 Edge - Enable rising edge detection of the threshold comparison * output for filtering event counts. * 23 - 20 Threshold Value - Select the threshold value for comparing to * incoming event counts. * 19 Complement - Select how incoming event count is compared with * the threshold value. * 18 Compare - Enable filtering of event counts. * 17 - 16 Active Thread - Only used with HT enabled. * 00 - None: Count when neither LP is active. * 01 - Single: Count when only one LP is active. * 10 - Both: Count when both LPs are active. * 11 - Any: Count when either LP is active. * 15 - 13 ESCR Select - Select which ESCR to use for selecting the * event to count. * 12 Enable - Turns the data counter on or off. * 11 - 0 Reserved **/ typedef union { unsigned long long val; struct { unsigned long reserved1:12; unsigned long enable:1; unsigned long escr_select:3; unsigned long active_thread:2; unsigned long compare:1; unsigned long complement:1; unsigned long threshold:4; unsigned long edge:1; unsigned long force_ovf:1; unsigned long ovf_pmi_t0:1; unsigned long ovf_pmi_t1:1; unsigned long reserved2:2; unsigned long cascade:1; unsigned long overflow:1; } bits; } netburst_cccr_value_t; /** * netburst_event_mask_t * * Defines one bit of the event-mask for one Pentium4 event. * * @name: Event mask name * @desc: Event mask description * @bit: The bit position within the event_mask field. **/ typedef struct { char *name; char *desc; unsigned int bit; unsigned int flags; } netburst_event_mask_t; /* * netburst_event_mask_t->flags */ #define NETBURST_FL_DFL 0x1 /* event mask is default */ #define MAX_ESCRS_PER_EVENT 2 /* * These are the unique event codes used by perf_events. * They need to be encoded in the ESCR.event_select field when * programming for perf_events. * NOTE: Only 36 of the events specified below have counterparts * in oprofile's p4 event list */ enum netburst_event_code { P4_EVENT_TC_DELIVER_MODE, P4_EVENT_BPU_FETCH_REQUEST, P4_EVENT_ITLB_REFERENCE, P4_EVENT_MEMORY_CANCEL, P4_EVENT_MEMORY_COMPLETE, P4_EVENT_LOAD_PORT_REPLAY, P4_EVENT_STORE_PORT_REPLAY, P4_EVENT_MOB_LOAD_REPLAY, P4_EVENT_PAGE_WALK_TYPE, P4_EVENT_BSQ_CACHE_REFERENCE, P4_EVENT_IOQ_ALLOCATION, P4_EVENT_IOQ_ACTIVE_ENTRIES, P4_EVENT_FSB_DATA_ACTIVITY, P4_EVENT_BSQ_ALLOCATION, P4_EVENT_BSQ_ACTIVE_ENTRIES, P4_EVENT_SSE_INPUT_ASSIST, P4_EVENT_PACKED_SP_UOP, P4_EVENT_PACKED_DP_UOP, P4_EVENT_SCALAR_SP_UOP, P4_EVENT_SCALAR_DP_UOP, P4_EVENT_64BIT_MMX_UOP, P4_EVENT_128BIT_MMX_UOP, P4_EVENT_X87_FP_UOP, P4_EVENT_TC_MISC, P4_EVENT_GLOBAL_POWER_EVENTS, P4_EVENT_TC_MS_XFER, P4_EVENT_UOP_QUEUE_WRITES, P4_EVENT_RETIRED_MISPRED_BRANCH_TYPE, P4_EVENT_RETIRED_BRANCH_TYPE, P4_EVENT_RESOURCE_STALL, P4_EVENT_WC_BUFFER, P4_EVENT_B2B_CYCLES, P4_EVENT_BNR, P4_EVENT_SNOOP, P4_EVENT_RESPONSE, P4_EVENT_FRONT_END_EVENT, P4_EVENT_EXECUTION_EVENT, P4_EVENT_REPLAY_EVENT, P4_EVENT_INSTR_RETIRED, P4_EVENT_UOPS_RETIRED, P4_EVENT_UOP_TYPE, P4_EVENT_BRANCH_RETIRED, P4_EVENT_MISPRED_BRANCH_RETIRED, P4_EVENT_X87_ASSIST, P4_EVENT_MACHINE_CLEAR, P4_EVENT_INSTR_COMPLETED, }; typedef struct { char *name; char *desc; unsigned int event_select; unsigned int escr_select; enum netburst_event_code perf_code; /* perf_event event code, enum P4_EVENTS */ int allowed_escrs[MAX_ESCRS_PER_EVENT]; netburst_event_mask_t event_masks[EVENT_MASK_BITS]; } netburst_entry_t; #define NETBURST_ATTR_U 0 #define NETBURST_ATTR_K 1 #define NETBURST_ATTR_C 2 #define NETBURST_ATTR_E 3 #define NETBURST_ATTR_T 4 #define _NETBURST_ATTR_U (1 << NETBURST_ATTR_U) #define _NETBURST_ATTR_K (1 << NETBURST_ATTR_K) #define P4_REPLAY_REAL_MASK 0x00000003 int op_netburst_get_perf_encoding(const char * evt_name, unsigned long evt_um, int do_kernel, int do_user, u64 * config); #ifdef __cplusplus } #endif #endif // OP_NETBURST_H_ oprofile-0.9.9/libop/Makefile.am0000664000076400007640000000104512175510133013442 00000000000000SUBDIRS = . tests AM_CPPFLAGS=-I${top_srcdir}/libutil @OP_CPPFLAGS@ AM_CFLAGS = @OP_CFLAGS@ noinst_LIBRARIES = libop.a libop_a_SOURCES = \ op_events.c \ op_events.h \ op_parse_event.c \ op_parse_event.h \ op_cpu_type.c \ op_cpu_type.h \ op_mangle.c \ op_mangle.h \ op_get_interface.c \ op_interface.h \ op_alloc_counter.c \ op_alloc_counter.h \ op_hw_config.h \ op_config.c \ op_config.h \ op_sample_file.h \ op_xml_events.c \ op_xml_events.h \ op_xml_out.c \ op_xml_out.h \ op_hw_specific.h \ op_netburst.c \ op_netburst.h oprofile-0.9.9/libop/op_netburst.c0000664000076400007640000011350612175510133014124 00000000000000/** * @file libop/op_netburst.c * Definitions of Netburst events and a function for obtaining an encoding * for a given event/unit mask in perf_events format. * * @remark Copyright 2013 OProfile authors * @remark Read the file COPYING * * Created on: May 14, 2013 * @author Maynard Johnson * (C) Copyright IBM Corp. 2013 * */ #include "config.h" #include #include "op_types.h" #include "op_netburst.h" /** * netburst_events * * Array of events that can be counted on Pentium4. **/ netburst_entry_t op_netburst_events[] = { /* 0 */ {.name = "TC_DELIVER_MODE", .desc = "The duration (in clock cycles) of the operating modes of " "the trace cache and decode engine in the processor package", .event_select = 0x1, .escr_select = 0x1, .allowed_escrs = { 9, 32 }, .perf_code = P4_EVENT_TC_DELIVER_MODE, .event_masks = { {.name = "DD", .desc = "Both logical CPUs in deliver mode", .bit = 0, }, {.name = "DB", .desc = "Logical CPU 0 in deliver mode and " "logical CPU 1 in build mode", .bit = 1, }, {.name = "DI", .desc = "Logical CPU 0 in deliver mode and logical CPU 1 " "either halted, under machine clear condition, or " "transitioning to a long microcode flow", .bit = 2, }, {.name = "BD", .desc = "Logical CPU 0 in build mode and " "logical CPU 1 is in deliver mode", .bit = 3, }, {.name = "BB", .desc = "Both logical CPUs in build mode", .bit = 4, }, {.name = "BI", .desc = "Logical CPU 0 in build mode and logical CPU 1 " "either halted, under machine clear condition, or " "transitioning to a long microcode flow", .bit = 5, }, {.name = "ID", .desc = "Logical CPU 0 either halted, under machine clear " "condition, or transitioning to a long microcode " "flow, and logical CPU 1 in deliver mode", .bit = 6, }, {.name = "IB", .desc = "Logical CPU 0 either halted, under machine clear " "condition, or transitioning to a long microcode " "flow, and logical CPU 1 in build mode", .bit = 7, }, }, }, /* 1 */ {.name = "BPU_FETCH_REQUEST", .desc = "Instruction fetch requests by the Branch Prediction Unit", .event_select = 0x3, .escr_select = 0x0, .allowed_escrs = { 0, 23 }, .perf_code = P4_EVENT_BPU_FETCH_REQUEST, .event_masks = { {.name = "TCMISS", .desc = "Trace cache lookup miss", .bit = 0, .flags = NETBURST_FL_DFL, }, }, }, /* 2 */ {.name = "ITLB_REFERENCE", .desc = "Translations using the Instruction " "Translation Look-Aside Buffer", .event_select = 0x18, .escr_select = 0x3, .allowed_escrs = { 3, 26 }, .perf_code = P4_EVENT_ITLB_REFERENCE, .event_masks = { {.name = "HIT", .desc = "ITLB hit", .bit = 0, }, {.name = "MISS", .desc = "ITLB miss", .bit = 1, }, {.name = "HIT_UC", .desc = "Uncacheable ITLB hit", .bit = 2, }, }, }, /* 3 */ {.name = "MEMORY_CANCEL", .desc = "Canceling of various types of requests in the " "Data cache Address Control unit (DAC)", .event_select = 0x2, .escr_select = 0x5, .allowed_escrs = { 15, 38 }, .perf_code = P4_EVENT_MEMORY_CANCEL, .event_masks = { {.name = "ST_RB_FULL", .desc = "Replayed because no store request " "buffer is available", .bit = 2, }, {.name = "64K_CONF", .desc = "Conflicts due to 64K aliasing", .bit = 3, }, }, }, /* 4 */ {.name = "MEMORY_COMPLETE", .desc = "Completions of a load split, store split, " "uncacheable (UC) split, or UC load", .event_select = 0x8, .escr_select = 0x2, .allowed_escrs = { 13, 36 }, .perf_code = P4_EVENT_MEMORY_COMPLETE, .event_masks = { {.name = "LSC", .desc = "Load split completed, excluding UC/WC loads", .bit = 0, }, {.name = "SSC", .desc = "Any split stores completed", .bit = 1, }, }, }, /* 5 */ {.name = "LOAD_PORT_REPLAY", .desc = "Replayed events at the load port", .event_select = 0x4, .escr_select = 0x2, .allowed_escrs = { 13, 36 }, .perf_code = P4_EVENT_LOAD_PORT_REPLAY, .event_masks = { {.name = "SPLIT_LD", .desc = "Split load", .bit = 1, .flags = NETBURST_FL_DFL, }, }, }, /* 6 */ {.name = "STORE_PORT_REPLAY", .desc = "Replayed events at the store port", .event_select = 0x5, .escr_select = 0x2, .allowed_escrs = { 13, 36 }, .perf_code = P4_EVENT_STORE_PORT_REPLAY, .event_masks = { {.name = "SPLIT_ST", .desc = "Split store", .bit = 1, .flags = NETBURST_FL_DFL, }, }, }, /* 7 */ {.name = "MOB_LOAD_REPLAY", .desc = "Count of times the memory order buffer (MOB) " "caused a load operation to be replayed", .event_select = 0x3, .escr_select = 0x2, .allowed_escrs = { 2, 25 }, .perf_code = P4_EVENT_MOB_LOAD_REPLAY, .event_masks = { {.name = "NO_STA", .desc = "Replayed because of unknown store address", .bit = 1, }, {.name = "NO_STD", .desc = "Replayed because of unknown store data", .bit = 3, }, {.name = "PARTIAL_DATA", .desc = "Replayed because of partially overlapped data " "access between the load and store operations", .bit = 4, }, {.name = "UNALGN_ADDR", .desc = "Replayed because the lower 4 bits of the " "linear address do not match between the " "load and store operations", .bit = 5, }, }, }, /* 8 */ {.name = "PAGE_WALK_TYPE", .desc = "Page walks that the page miss handler (PMH) performs", .event_select = 0x1, .escr_select = 0x4, .allowed_escrs = { 4, 27 }, .perf_code = P4_EVENT_PAGE_WALK_TYPE, .event_masks = { {.name = "DTMISS", .desc = "Page walk for a data TLB miss (load or store)", .bit = 0, }, {.name = "ITMISS", .desc = "Page walk for an instruction TLB miss", .bit = 1, }, }, }, /* 9 */ {.name = "BSQ_CACHE_REFERENCE", .desc = "Cache references (2nd or 3rd level caches) as seen by the " "bus unit. Read types include both load and RFO, and write " "types include writebacks and evictions", .event_select = 0xC, .escr_select = 0x7, .allowed_escrs = { 7, 30 }, .perf_code = P4_EVENT_BSQ_CACHE_REFERENCE, .event_masks = { {.name = "RD_2ndL_HITS", .desc = "Read 2nd level cache hit Shared", .bit = 0, }, {.name = "RD_2ndL_HITE", .desc = "Read 2nd level cache hit Exclusive", .bit = 1, }, {.name = "RD_2ndL_HITM", .desc = "Read 2nd level cache hit Modified", .bit = 2, }, {.name = "RD_3rdL_HITS", .desc = "Read 3rd level cache hit Shared", .bit = 3, }, {.name = "RD_3rdL_HITE", .desc = "Read 3rd level cache hit Exclusive", .bit = 4, }, {.name = "RD_3rdL_HITM", .desc = "Read 3rd level cache hit Modified", .bit = 5, }, {.name = "RD_2ndL_MISS", .desc = "Read 2nd level cache miss", .bit = 8, }, {.name = "RD_3rdL_MISS", .desc = "Read 3rd level cache miss", .bit = 9, }, {.name = "WR_2ndL_MISS", .desc = "A writeback lookup from DAC misses the 2nd " "level cache (unlikely to happen)", .bit = 10, }, }, }, /* 10 */ {.name = "IOQ_ALLOCATION", .desc = "Count of various types of transactions on the bus. A count " "is generated each time a transaction is allocated into the " "IOQ that matches the specified mask bits. An allocated entry " "can be a sector (64 bytes) or a chunk of 8 bytes. Requests " "are counted once per retry. All 'TYPE_BIT*' event-masks " "together are treated as a single 5-bit value", .event_select = 0x3, .escr_select = 0x6, .allowed_escrs = { 6, 29 }, .perf_code = P4_EVENT_IOQ_ALLOCATION, .event_masks = { {.name = "TYPE_BIT0", .desc = "Bus request type (bit 0)", .bit = 0, }, {.name = "TYPE_BIT1", .desc = "Bus request type (bit 1)", .bit = 1, }, {.name = "TYPE_BIT2", .desc = "Bus request type (bit 2)", .bit = 2, }, {.name = "TYPE_BIT3", .desc = "Bus request type (bit 3)", .bit = 3, }, {.name = "TYPE_BIT4", .desc = "Bus request type (bit 4)", .bit = 4, }, {.name = "ALL_READ", .desc = "Count read entries", .bit = 5, }, {.name = "ALL_WRITE", .desc = "Count write entries", .bit = 6, }, {.name = "MEM_UC", .desc = "Count UC memory access entries", .bit = 7, }, {.name = "MEM_WC", .desc = "Count WC memory access entries", .bit = 8, }, {.name = "MEM_WT", .desc = "Count write-through (WT) memory access entries", .bit = 9, }, {.name = "MEM_WP", .desc = "Count write-protected (WP) memory access entries", .bit = 10, }, {.name = "MEM_WB", .desc = "Count WB memory access entries", .bit = 11, }, {.name = "OWN", .desc = "Count all store requests driven by processor, as " "opposed to other processor or DMA", .bit = 13, }, {.name = "OTHER", .desc = "Count all requests driven by other " "processors or DMA", .bit = 14, }, {.name = "PREFETCH", .desc = "Include HW and SW prefetch requests in the count", .bit = 15, }, }, }, /* 11 */ {.name = "IOQ_ACTIVE_ENTRIES", .desc = "Number of entries (clipped at 15) in the IOQ that are " "active. An allocated entry can be a sector (64 bytes) " "or a chunk of 8 bytes. This event must be programmed in " "conjuction with IOQ_allocation. All 'TYPE_BIT*' event-masks " "together are treated as a single 5-bit value", .event_select = 0x1A, .escr_select = 0x6, .allowed_escrs = { 29, -1 }, .perf_code = P4_EVENT_IOQ_ACTIVE_ENTRIES, .event_masks = { {.name = "TYPE_BIT0", .desc = "Bus request type (bit 0)", .bit = 0, }, {.name = "TYPE_BIT1", .desc = "Bus request type (bit 1)", .bit = 1, }, {.name = "TYPE_BIT2", .desc = "Bus request type (bit 2)", .bit = 2, }, {.name = "TYPE_BIT3", .desc = "Bus request type (bit 3)", .bit = 3, }, {.name = "TYPE_BIT4", .desc = "Bus request type (bit 4)", .bit = 4, }, {.name = "ALL_READ", .desc = "Count read entries", .bit = 5, }, {.name = "ALL_WRITE", .desc = "Count write entries", .bit = 6, }, {.name = "MEM_UC", .desc = "Count UC memory access entries", .bit = 7, }, {.name = "MEM_WC", .desc = "Count WC memory access entries", .bit = 8, }, {.name = "MEM_WT", .desc = "Count write-through (WT) memory access entries", .bit = 9, }, {.name = "MEM_WP", .desc = "Count write-protected (WP) memory access entries", .bit = 10, }, {.name = "MEM_WB", .desc = "Count WB memory access entries", .bit = 11, }, {.name = "OWN", .desc = "Count all store requests driven by processor, as " "opposed to other processor or DMA", .bit = 13, }, {.name = "OTHER", .desc = "Count all requests driven by other " "processors or DMA", .bit = 14, }, {.name = "PREFETCH", .desc = "Include HW and SW prefetch requests in the count", .bit = 15, }, }, }, /* 12 */ {.name = "FSB_DATA_ACTIVITY", .desc = "Count of DRDY or DBSY events that " "occur on the front side bus", .event_select = 0x17, .escr_select = 0x6, .allowed_escrs = { 6, 29 }, .perf_code = P4_EVENT_FSB_DATA_ACTIVITY, .event_masks = { {.name = "DRDY_DRV", .desc = "Count when this processor drives data onto the bus. " "Includes writes and implicit writebacks", .bit = 0, }, {.name = "DRDY_OWN", .desc = "Count when this processor reads data from the bus. " "Includes loads and some PIC transactions. Count " "DRDY events that we drive. Count DRDY events sampled " "that we own", .bit = 1, }, {.name = "DRDY_OTHER", .desc = "Count when data is on the bus but not being sampled " "by the processor. It may or may not be driven by " "this processor", .bit = 2, }, {.name = "DBSY_DRV", .desc = "Count when this processor reserves the bus for use " "in the next bus cycle in order to drive data", .bit = 3, }, {.name = "DBSY_OWN", .desc = "Count when some agent reserves the bus for use in " "the next bus cycle to drive data that this processor " "will sample", .bit = 4, }, {.name = "DBSY_OTHER", .desc = "Count when some agent reserves the bus for use in " "the next bus cycle to drive data that this processor " "will NOT sample. It may or may not be being driven " "by this processor", .bit = 5, }, }, }, /* 13 */ {.name = "BSQ_ALLOCATION", .desc = "Allocations in the Bus Sequence Unit (BSQ). The event mask " "bits consist of four sub-groups: request type, request " "length, memory type, and a sub-group consisting mostly of " "independent bits (5 through 10). Must specify a mask for " "each sub-group", .event_select = 0x5, .escr_select = 0x7, .allowed_escrs = { 7, -1 }, .perf_code = P4_EVENT_BSQ_ALLOCATION, .event_masks = { {.name = "REQ_TYPE0", .desc = "Along with REQ_TYPE1, request type encodings are: " "0 - Read (excludes read invalidate), 1 - Read " "invalidate, 2 - Write (other than writebacks), 3 - " "Writeback (evicted from cache)", .bit = 0, }, {.name = "REQ_TYPE1", .desc = "Along with REQ_TYPE0, request type encodings are: " "0 - Read (excludes read invalidate), 1 - Read " "invalidate, 2 - Write (other than writebacks), 3 - " "Writeback (evicted from cache)", .bit = 1, }, {.name = "REQ_LEN0", .desc = "Along with REQ_LEN1, request length encodings are: " "0 - zero chunks, 1 - one chunk, 3 - eight chunks", .bit = 2, }, {.name = "REQ_LEN1", .desc = "Along with REQ_LEN0, request length encodings are: " "0 - zero chunks, 1 - one chunk, 3 - eight chunks", .bit = 3, }, {.name = "REQ_IO_TYPE", .desc = "Request type is input or output", .bit = 5, }, {.name = "REQ_LOCK_TYPE", .desc = "Request type is bus lock", .bit = 6, }, {.name = "REQ_CACHE_TYPE", .desc = "Request type is cacheable", .bit = 7, }, {.name = "REQ_SPLIT_TYPE", .desc = "Request type is a bus 8-byte chunk split across " "an 8-byte boundary", .bit = 8, }, {.name = "REQ_DEM_TYPE", .desc = "0: Request type is HW.SW prefetch. " "1: Request type is a demand", .bit = 9, }, {.name = "REQ_ORD_TYPE", .desc = "Request is an ordered type", .bit = 10, }, {.name = "MEM_TYPE0", .desc = "Along with MEM_TYPE1 and MEM_TYPE2, " "memory type encodings are: 0 - UC, " "1 - USWC, 4- WT, 5 - WP, 6 - WB", .bit = 11, }, {.name = "MEM_TYPE1", .desc = "Along with MEM_TYPE0 and MEM_TYPE2, " "memory type encodings are: 0 - UC, " "1 - USWC, 4- WT, 5 - WP, 6 - WB", .bit = 12, }, {.name = "MEM_TYPE2", .desc = "Along with MEM_TYPE0 and MEM_TYPE1, " "memory type encodings are: 0 - UC, " "1 - USWC, 4- WT, 5 - WP, 6 - WB", .bit = 13, }, }, }, /* 14 */ {.name = "BSQ_ACTIVE_ENTRIES", .desc = "Number of BSQ entries (clipped at 15) currently active " "(valid) which meet the subevent mask criteria during " "allocation in the BSQ. Active request entries are allocated " "on the BSQ until de-allocated. De-allocation of an entry " "does not necessarily imply the request is filled. This " "event must be programmed in conjunction with BSQ_allocation", .event_select = 0x6, .escr_select = 0x7, .allowed_escrs = { 30, -1 }, .perf_code = P4_EVENT_BSQ_ACTIVE_ENTRIES, .event_masks = { {.name = "REQ_TYPE0", .desc = "Along with REQ_TYPE1, request type encodings are: " "0 - Read (excludes read invalidate), 1 - Read " "invalidate, 2 - Write (other than writebacks), 3 - " "Writeback (evicted from cache)", .bit = 0, }, {.name = "REQ_TYPE1", .desc = "Along with REQ_TYPE0, request type encodings are: " "0 - Read (excludes read invalidate), 1 - Read " "invalidate, 2 - Write (other than writebacks), 3 - " "Writeback (evicted from cache)", .bit = 1, }, {.name = "REQ_LEN0", .desc = "Along with REQ_LEN1, request length encodings are: " "0 - zero chunks, 1 - one chunk, 3 - eight chunks", .bit = 2, }, {.name = "REQ_LEN1", .desc = "Along with REQ_LEN0, request length encodings are: " "0 - zero chunks, 1 - one chunk, 3 - eight chunks", .bit = 3, }, {.name = "REQ_IO_TYPE", .desc = "Request type is input or output", .bit = 5, }, {.name = "REQ_LOCK_TYPE", .desc = "Request type is bus lock", .bit = 6, }, {.name = "REQ_CACHE_TYPE", .desc = "Request type is cacheable", .bit = 7, }, {.name = "REQ_SPLIT_TYPE", .desc = "Request type is a bus 8-byte chunk split across " "an 8-byte boundary", .bit = 8, }, {.name = "REQ_DEM_TYPE", .desc = "0: Request type is HW.SW prefetch. " "1: Request type is a demand", .bit = 9, }, {.name = "REQ_ORD_TYPE", .desc = "Request is an ordered type", .bit = 10, }, {.name = "MEM_TYPE0", .desc = "Along with MEM_TYPE1 and MEM_TYPE2, " "memory type encodings are: 0 - UC, " "1 - USWC, 4- WT, 5 - WP, 6 - WB", .bit = 11, }, {.name = "MEM_TYPE1", .desc = "Along with MEM_TYPE0 and MEM_TYPE2, " "memory type encodings are: 0 - UC, " "1 - USWC, 4- WT, 5 - WP, 6 - WB", .bit = 12, }, {.name = "MEM_TYPE2", .desc = "Along with MEM_TYPE0 and MEM_TYPE1, " "memory type encodings are: 0 - UC, " "1 - USWC, 4- WT, 5 - WP, 6 - WB", .bit = 13, }, }, }, /* 15 */ {.name = "SSE_INPUT_ASSIST", .desc = "Number of times an assist is requested to handle problems " "with input operands for SSE/SSE2/SSE3 operations; most " "notably denormal source operands when the DAZ bit isn't set", .event_select = 0x34, .escr_select = 0x1, .allowed_escrs = { 12, 35 }, .perf_code = P4_EVENT_SSE_INPUT_ASSIST, .event_masks = { {.name = "ALL", .desc = "Count assists for SSE/SSE2/SSE3 uops", .bit = 15, .flags = NETBURST_FL_DFL, }, }, }, /* 16 */ {.name = "PACKED_SP_UOP", .desc = "Number of packed single-precision uops", .event_select = 0x8, .escr_select = 0x1, .perf_code = P4_EVENT_PACKED_SP_UOP, .allowed_escrs = { 12, 35 }, .event_masks = { {.name = "ALL", .desc = "Count all uops operating on packed " "single-precisions operands", .bit = 15, .flags = NETBURST_FL_DFL, }, {.name = "TAG0", .desc = "Tag this event with tag bit 0 " "for retirement counting with execution_event", .bit = 16, }, {.name = "TAG1", .desc = "Tag this event with tag bit 1 " "for retirement counting with execution_event", .bit = 17, }, {.name = "TAG2", .desc = "Tag this event with tag bit 2 " "for retirement counting with execution_event", .bit = 18, }, {.name = "TAG3", .desc = "Tag this event with tag bit 3 " "for retirement counting with execution_event", .bit = 19, }, }, }, /* 17 */ {.name = "PACKED_DP_UOP", .desc = "Number of packed double-precision uops", .event_select = 0xC, .escr_select = 0x1, .allowed_escrs = { 12, 35 }, .perf_code = P4_EVENT_PACKED_DP_UOP, .event_masks = { {.name = "ALL", .desc = "Count all uops operating on packed " "double-precisions operands", .bit = 15, .flags = NETBURST_FL_DFL, }, {.name = "TAG0", .desc = "Tag this event with tag bit 0 " "for retirement counting with execution_event", .bit = 16, }, {.name = "TAG1", .desc = "Tag this event with tag bit 1 " "for retirement counting with execution_event", .bit = 17, }, {.name = "TAG2", .desc = "Tag this event with tag bit 2 " "for retirement counting with execution_event", .bit = 18, }, {.name = "TAG3", .desc = "Tag this event with tag bit 3 " "for retirement counting with execution_event", .bit = 19, }, }, }, /* 18 */ {.name = "SCALAR_SP_UOP", .desc = "Number of scalar single-precision uops", .event_select = 0xA, .escr_select = 0x1, .allowed_escrs = { 12, 35 }, .perf_code = P4_EVENT_SCALAR_SP_UOP, .event_masks = { {.name = "ALL", .desc = "Count all uops operating on scalar " "single-precisions operands", .bit = 15, .flags = NETBURST_FL_DFL, }, {.name = "TAG0", .desc = "Tag this event with tag bit 0 " "for retirement counting with execution_event", .bit = 16, }, {.name = "TAG1", .desc = "Tag this event with tag bit 1 " "for retirement counting with execution_event", .bit = 17, }, {.name = "TAG2", .desc = "Tag this event with tag bit 2 " "for retirement counting with execution_event", .bit = 18, }, {.name = "TAG3", .desc = "Tag this event with tag bit 3 " "for retirement counting with execution_event", .bit = 19, }, }, }, /* 19 */ {.name = "SCALAR_DP_UOP", .desc = "Number of scalar double-precision uops", .event_select = 0xE, .escr_select = 0x1, .allowed_escrs = { 12, 35 }, .perf_code = P4_EVENT_SCALAR_DP_UOP, .event_masks = { {.name = "ALL", .desc = "Count all uops operating on scalar " "double-precisions operands", .bit = 15, .flags = NETBURST_FL_DFL, }, {.name = "TAG0", .desc = "Tag this event with tag bit 0 " "for retirement counting with execution_event", .bit = 16, }, {.name = "TAG1", .desc = "Tag this event with tag bit 1 " "for retirement counting with execution_event", .bit = 17, }, {.name = "TAG2", .desc = "Tag this event with tag bit 2 " "for retirement counting with execution_event", .bit = 18, }, {.name = "TAG3", .desc = "Tag this event with tag bit 3 " "for retirement counting with execution_event", .bit = 19, }, }, }, /* 20 */ {.name = "64BIT_MMX_UOP", .desc = "Number of MMX instructions which " "operate on 64-bit SIMD operands", .event_select = 0x2, .escr_select = 0x1, .allowed_escrs = { 12, 35 }, .perf_code = P4_EVENT_64BIT_MMX_UOP, .event_masks = { {.name = "ALL", .desc = "Count all uops operating on 64-bit SIMD integer " "operands in memory or MMX registers", .bit = 15, .flags = NETBURST_FL_DFL, }, {.name = "TAG0", .desc = "Tag this event with tag bit 0 " "for retirement counting with execution_event", .bit = 16, }, {.name = "TAG1", .desc = "Tag this event with tag bit 1 " "for retirement counting with execution_event", .bit = 17, }, {.name = "TAG2", .desc = "Tag this event with tag bit 2 " "for retirement counting with execution_event", .bit = 18, }, {.name = "TAG3", .desc = "Tag this event with tag bit 3 " "for retirement counting with execution_event", .bit = 19, }, }, }, /* 21 */ {.name = "128BIT_MMX_UOP", .desc = "Number of MMX instructions which " "operate on 128-bit SIMD operands", .event_select = 0x1A, .escr_select = 0x1, .allowed_escrs = { 12, 35 }, .perf_code = P4_EVENT_128BIT_MMX_UOP, .event_masks = { {.name = "ALL", .desc = "Count all uops operating on 128-bit SIMD integer " "operands in memory or MMX registers", .bit = 15, .flags = NETBURST_FL_DFL, }, {.name = "TAG0", .desc = "Tag this event with tag bit 0 " "for retirement counting with execution_event", .bit = 16, }, {.name = "TAG1", .desc = "Tag this event with tag bit 1 " "for retirement counting with execution_event", .bit = 17, }, {.name = "TAG2", .desc = "Tag this event with tag bit 2 " "for retirement counting with execution_event", .bit = 18, }, {.name = "TAG3", .desc = "Tag this event with tag bit 3 " "for retirement counting with execution_event", .bit = 19, }, }, }, /* 22 */ {.name = "X87_FP_UOP", .desc = "Number of x87 floating-point uops", .event_select = 0x4, .escr_select = 0x1, .allowed_escrs = { 12, 35 }, .perf_code = P4_EVENT_X87_FP_UOP, .event_masks = { {.name = "ALL", .desc = "Count all x87 FP uops", .bit = 15, .flags = NETBURST_FL_DFL, }, {.name = "TAG0", .desc = "Tag this event with tag bit 0 " "for retirement counting with execution_event", .bit = 16, }, {.name = "TAG1", .desc = "Tag this event with tag bit 1 " "for retirement counting with execution_event", .bit = 17, }, {.name = "TAG2", .desc = "Tag this event with tag bit 2 " "for retirement counting with execution_event", .bit = 18, }, {.name = "TAG3", .desc = "Tag this event with tag bit 3 " "for retirement counting with execution_event", .bit = 19, }, }, }, /* 23 */ {.name = "TC_misc", .desc = "Miscellaneous events detected by the TC. The counter will " "count twice for each occurrence", .event_select = 0x6, .escr_select = 0x1, .allowed_escrs = { 9, 32 }, .perf_code = P4_EVENT_TC_MISC, .event_masks = { {.name = "FLUSH", .desc = "Number of flushes", .bit = 4, .flags = NETBURST_FL_DFL, }, }, }, /* 24 */ {.name = "GLOBAL_POWER_EVENTS", .desc = "Counts the time during which a processor is not stopped", .event_select = 0x13, .escr_select = 0x6, .allowed_escrs = { 6, 29 }, .perf_code = P4_EVENT_GLOBAL_POWER_EVENTS, .event_masks = { {.name = "RUNNING", .desc = "The processor is active (includes the " "handling of HLT STPCLK and throttling", .bit = 0, .flags = NETBURST_FL_DFL, }, }, }, /* 25 */ {.name = "TC_MS_XFER", .desc = "Number of times that uop delivery changed from TC to MS ROM", .event_select = 0x5, .escr_select = 0x0, .allowed_escrs = { 8, 31 }, .perf_code = P4_EVENT_TC_MS_XFER, .event_masks = { {.name = "CISC", .desc = "A TC to MS transfer occurred", .bit = 0, .flags = NETBURST_FL_DFL, }, }, }, /* 26 */ {.name = "UOP_QUEUE_WRITES", .desc = "Number of valid uops written to the uop queue", .event_select = 0x9, .escr_select = 0x0, .allowed_escrs = { 8, 31 }, .perf_code = P4_EVENT_UOP_QUEUE_WRITES, .event_masks = { {.name = "FROM_TC_BUILD", .desc = "The uops being written are from TC build mode", .bit = 0, }, {.name = "FROM_TC_DELIVER", .desc = "The uops being written are from TC deliver mode", .bit = 1, }, {.name = "FROM_ROM", .desc = "The uops being written are from microcode ROM", .bit = 2, }, }, }, /* 27 */ {.name = "RETIRED_MISPRED_BRANCH_TYPE", .desc = "Number of retiring mispredicted branches by type", .event_select = 0x5, .escr_select = 0x2, .allowed_escrs = { 10, 33 }, .perf_code = P4_EVENT_RETIRED_MISPRED_BRANCH_TYPE, .event_masks = { {.name = "CONDITIONAL", .desc = "Conditional jumps", .bit = 1, }, {.name = "CALL", .desc = "Indirect call branches", .bit = 2, }, {.name = "RETURN", .desc = "Return branches", .bit = 3, }, {.name = "INDIRECT", .desc = "Returns, indirect calls, or indirect jumps", .bit = 4, }, }, }, /* 28 */ {.name = "RETIRED_BRANCH_TYPE", .desc = "Number of retiring branches by type", .event_select = 0x4, .escr_select = 0x2, .allowed_escrs = { 10, 33 }, .perf_code = P4_EVENT_RETIRED_BRANCH_TYPE, .event_masks = { {.name = "CONDITIONAL", .desc = "Conditional jumps", .bit = 1, }, {.name = "CALL", .desc = "Indirect call branches", .bit = 2, }, {.name = "RETURN", .desc = "Return branches", .bit = 3, }, {.name = "INDIRECT", .desc = "Returns, indirect calls, or indirect jumps", .bit = 4, }, }, }, /* 29 */ {.name = "resource_stall", .desc = "Occurrences of latency or stalls in the Allocator", .event_select = 0x1, .escr_select = 0x1, .allowed_escrs = { 17, 40 }, .perf_code = P4_EVENT_RESOURCE_STALL, .event_masks = { {.name = "SBFULL", .desc = "A stall due to lack of store buffers", .bit = 5, .flags = NETBURST_FL_DFL, }, }, }, /* 30 */ {.name = "WC_Buffer", .desc = "Number of Write Combining Buffer operations", .event_select = 0x5, .escr_select = 0x5, .allowed_escrs = { 15, 38 }, .perf_code = P4_EVENT_WC_BUFFER, .event_masks = { {.name = "WCB_EVICTS", .desc = "WC Buffer evictions of all causes", .bit = 0, }, {.name = "WCB_FULL_EVICT", .desc = "WC Buffer eviction; no WC buffer is available", .bit = 1, }, }, }, /* 31 */ {.name = "b2b_cycles", .desc = "Number of back-to-back bus cycles", .event_select = 0x16, .escr_select = 0x3, .allowed_escrs = { 6, 29 }, .perf_code = P4_EVENT_B2B_CYCLES, .event_masks = { {.name = "BIT1", .desc = "bit 1", .bit = 1, }, {.name = "BIT2", .desc = "bit 2", .bit = 2, }, {.name = "BIT3", .desc = "bit 3", .bit = 3, }, {.name = "BIT4", .desc = "bit 4", .bit = 4, }, {.name = "BIT5", .desc = "bit 5", .bit = 4, }, {.name = "BIT6", .desc = "bit 6", .bit = 4, }, }, }, /* 32 */ {.name = "bnr", .desc = "Number of bus-not-ready conditions", .event_select = 0x8, .escr_select = 0x3, .allowed_escrs = { 6, 29 }, .perf_code = P4_EVENT_BNR, .event_masks = { {.name = "BIT0", .desc = "bit 0", .bit = 0, }, {.name = "BIT1", .desc = "bit 1", .bit = 1, }, {.name = "BIT2", .desc = "bit 2", .bit = 2, }, }, }, /* 33 */ {.name = "snoop", .desc = "Number of snoop hit modified bus traffic", .event_select = 0x6, .escr_select = 0x3, .allowed_escrs = { 6, 29 }, .perf_code = P4_EVENT_SNOOP, .event_masks = { {.name = "BIT2", .desc = "bit 2", .bit = 2, }, {.name = "BIT6", .desc = "bit 6", .bit = 6, }, {.name = "BIT7", .desc = "bit 7", .bit = 7, }, }, }, /* 34 */ {.name = "response", .desc = "Count of different types of responses", .event_select = 0x4, .escr_select = 0x3, .allowed_escrs = { 6, 29 }, .perf_code = P4_EVENT_RESPONSE, .event_masks = { {.name = "BIT1", .desc = "bit 1", .bit = 1, }, {.name = "BIT2", .desc = "bit 2", .bit = 2, }, {.name = "BIT8", .desc = "bit 8", .bit = 8, }, {.name = "BIT9", .desc = "bit 9", .bit = 9, }, }, }, /* 35 */ {.name = "front_end_event", .desc = "Number of retirements of tagged uops which are specified " "through the front-end tagging mechanism", .event_select = 0x8, .escr_select = 0x5, .allowed_escrs = { 21, 43 }, .perf_code = P4_EVENT_FRONT_END_EVENT, .event_masks = { {.name = "NBOGUS", .desc = "The marked uops are not bogus", .bit = 0, }, {.name = "BOGUS", .desc = "The marked uops are bogus", .bit = 1, }, }, }, /* 36 */ {.name = "execution_event", .desc = "Number of retirements of tagged uops which are specified " "through the execution tagging mechanism. The event-mask " "allows from one to four types of uops to be tagged", .event_select = 0xC, .escr_select = 0x5, .allowed_escrs = { 21, 43 }, .perf_code = P4_EVENT_EXECUTION_EVENT, .event_masks = { {.name = "NBOGUS0", .desc = "The marked uops are not bogus", .bit = 0, }, {.name = "NBOGUS1", .desc = "The marked uops are not bogus", .bit = 1, }, {.name = "NBOGUS2", .desc = "The marked uops are not bogus", .bit = 2, }, {.name = "NBOGUS3", .desc = "The marked uops are not bogus", .bit = 3, }, {.name = "BOGUS0", .desc = "The marked uops are bogus", .bit = 4, }, {.name = "BOGUS1", .desc = "The marked uops are bogus", .bit = 5, }, {.name = "BOGUS2", .desc = "The marked uops are bogus", .bit = 6, }, {.name = "BOGUS3", .desc = "The marked uops are bogus", .bit = 7, }, }, }, /* 37 */ {.name = "replay_event", .desc = "Number of retirements of tagged uops which are specified " "through the replay tagging mechanism", .event_select = 0x9, .escr_select = 0x5, .allowed_escrs = { 21, 43 }, .perf_code = P4_EVENT_REPLAY_EVENT, .event_masks = { {.name = "NBOGUS", .desc = "The marked uops are not bogus", .bit = 0, }, {.name = "BOGUS", .desc = "The marked uops are bogus", .bit = 1, }, {.name = "L1_LD_MISS", .desc = "Virtual mask for L1 cache load miss replays", .bit = 2, }, {.name = "L2_LD_MISS", .desc = "Virtual mask for L2 cache load miss replays", .bit = 3, }, {.name = "DTLB_LD_MISS", .desc = "Virtual mask for DTLB load miss replays", .bit = 4, }, {.name = "DTLB_ST_MISS", .desc = "Virtual mask for DTLB store miss replays", .bit = 5, }, {.name = "DTLB_ALL_MISS", .desc = "Virtual mask for all DTLB miss replays", .bit = 6, }, {.name = "BR_MSP", .desc = "Virtual mask for tagged mispredicted branch replays", .bit = 7, }, {.name = "MOB_LD_REPLAY", .desc = "Virtual mask for MOB load replays", .bit = 8, }, {.name = "SP_LD_RET", .desc = "Virtual mask for split load replays. Use with load_port_replay event", .bit = 9, }, {.name = "SP_ST_RET", .desc = "Virtual mask for split store replays. Use with store_port_replay event", .bit = 10, }, }, }, /* 38 */ {.name = "INSTR_RETIRED", .desc = "Number of instructions retired during a clock cycle", .event_select = 0x2, .escr_select = 0x4, .allowed_escrs = { 20, 42 }, .perf_code = P4_EVENT_INSTR_RETIRED, .event_masks = { {.name = "NBOGUSNTAG", .desc = "Non-bogus instructions that are not tagged", .bit = 0, }, {.name = "NBOGUSTAG", .desc = "Non-bogus instructions that are tagged", .bit = 1, }, {.name = "BOGUSNTAG", .desc = "Bogus instructions that are not tagged", .bit = 2, }, {.name = "BOGUSTAG", .desc = "Bogus instructions that are tagged", .bit = 3, }, }, }, /* 39 */ {.name = "UOPS_RETIRED", .desc = "Number of uops retired during a clock cycle", .event_select = 0x1, .escr_select = 0x4, .allowed_escrs = { 20, 42 }, .perf_code = P4_EVENT_UOPS_RETIRED, .event_masks = { {.name = "NBOGUS", .desc = "The marked uops are not bogus", .bit = 0, }, {.name = "BOGUS", .desc = "The marked uops are bogus", .bit = 1, }, }, }, /* 40 */ {.name = "UOP_TYPE", .desc = "This event is used in conjunction with with the front-end " "mechanism to tag load and store uops", .event_select = 0x2, .escr_select = 0x2, .allowed_escrs = { 18, 41 }, .perf_code = P4_EVENT_UOP_TYPE, .event_masks = { {.name = "TAGLOADS", .desc = "The uop is a load operation", .bit = 1, }, {.name = "TAGSTORES", .desc = "The uop is a store operation", .bit = 2, }, }, }, /* 41 */ {.name = "BRANCH_RETIRED", .desc = "Number of retirements of a branch", .event_select = 0x6, .escr_select = 0x5, .allowed_escrs = { 21, 43 }, .perf_code = P4_EVENT_BRANCH_RETIRED, .event_masks = { {.name = "MMNP", .desc = "Branch not-taken predicted", .bit = 0, }, {.name = "MMNM", .desc = "Branch not-taken mispredicted", .bit = 1, }, {.name = "MMTP", .desc = "Branch taken predicted", .bit = 2, }, {.name = "MMTM", .desc = "Branch taken mispredicted", .bit = 3, }, }, }, /* 42 */ {.name = "MISPRED_BRANCH_RETIRED", .desc = "Number of retirements of mispredicted " "IA-32 branch instructions", .event_select = 0x3, .escr_select = 0x4, .allowed_escrs = { 20, 42 }, .perf_code = P4_EVENT_MISPRED_BRANCH_RETIRED, .event_masks = { {.name = "BOGUS", .desc = "The retired instruction is not bogus", .bit = 0, .flags = NETBURST_FL_DFL, }, }, }, /* 43 */ {.name = "X87_ASSIST", .desc = "Number of retirements of x87 instructions that required " "special handling", .event_select = 0x3, .escr_select = 0x5, .allowed_escrs = { 21, 43 }, .perf_code = P4_EVENT_X87_ASSIST, .event_masks = { {.name = "FPSU", .desc = "Handle FP stack underflow", .bit = 0, }, {.name = "FPSO", .desc = "Handle FP stack overflow", .bit = 1, }, {.name = "POAO", .desc = "Handle x87 output overflow", .bit = 2, }, {.name = "POAU", .desc = "Handle x87 output underflow", .bit = 3, }, {.name = "PREA", .desc = "Handle x87 input assist", .bit = 4, }, }, }, /* 44 */ {.name = "MACHINE_CLEAR", .desc = "Number of occurances when the entire " "pipeline of the machine is cleared", .event_select = 0x2, .escr_select = 0x5, .allowed_escrs = { 21, 43 }, .perf_code = P4_EVENT_MACHINE_CLEAR, .event_masks = { {.name = "CLEAR", .desc = "Counts for a portion of the many cycles while the " "machine is cleared for any cause. Use edge-" "triggering for this bit only to get a count of " "occurances versus a duration", .bit = 0, }, {.name = "MOCLEAR", .desc = "Increments each time the machine is cleared due to " "memory ordering issues", .bit = 2, }, {.name = "SMCLEAR", .desc = "Increments each time the machine is cleared due to " "self-modifying code issues", .bit = 6, }, }, }, /* 45 */ {.name = "instr_completed", .desc = "Instructions that have completed and " "retired during a clock cycle (models 3, 4, 6 only)", .event_select = 0x7, .escr_select = 0x4, .allowed_escrs = { 21, 42 }, .perf_code = P4_EVENT_INSTR_COMPLETED, .event_masks = { {.name = "NBOGUS", .desc = "Non-bogus instructions", .bit = 0, }, {.name = "BOGUS", .desc = "Bogus instructions", .bit = 1, }, }, }, }; #define NETBURST_EVENT_COUNT (sizeof(op_netburst_events)/sizeof(netburst_entry_t)) int op_netburst_get_perf_encoding(const char * evt_name, unsigned long evt_um, int do_kernel, int do_user, u64 * config) { unsigned int evmask = 0; const char *n; unsigned int i, evt_idx, um_idx; int bit; int tag_enable = 0, tag_value = 0; int perf_code; netburst_escr_value_t escr; netburst_cccr_value_t cccr; u64 escr_val; evt_idx = um_idx = 0xffffffff; // Match up event name with netburst event index for (i = 0; i < NETBURST_EVENT_COUNT; i++) { if (!strcmp(evt_name, op_netburst_events[i].name)) { evt_idx = i; break; } } if (evt_idx == 0xffffffff) return -1; // Iterate through unit masks of the event to find UM idx for (i = 0; op_netburst_events[evt_idx].event_masks[i].name; i++) { if (evt_um == (unsigned long)(1 << op_netburst_events[evt_idx].event_masks[i].bit)) { um_idx = i; break; } } if (um_idx == 0xffffffff) return -1; perf_code = op_netburst_events[evt_idx].perf_code; bit = op_netburst_events[evt_idx].event_masks[um_idx].bit; n = op_netburst_events[evt_idx].event_masks[um_idx].name; if (bit < EVENT_MASK_BITS && n) { evmask |= (1 << bit); } else if (bit >= EVENT_MASK_BITS && n) { tag_value |= (1 << (bit - EVENT_MASK_BITS)); tag_enable = 1; } if (do_user) { escr.bits.t1_usr = 1; escr.bits.t0_usr = 1; } if (do_kernel) { escr.bits.t1_os = 1; escr.bits.t0_os = 1; } escr.bits.tag_enable = tag_enable; escr.bits.tag_value = tag_value; escr.bits.event_mask = evmask; escr.bits.event_select = op_netburst_events[evt_idx].event_select; cccr.bits.enable = 1; cccr.bits.escr_select = op_netburst_events[evt_idx].escr_select; cccr.bits.active_thread = 3; escr_val = escr.val & ~(0x3full << 25); escr_val |= perf_code << 25; *config = (escr_val << 32) | cccr.val; return 0; } oprofile-0.9.9/daemon/0000775000076400007640000000000012175511555011635 500000000000000oprofile-0.9.9/daemon/opd_ibs_trans.h0000664000076400007640000000233312175510133014544 00000000000000/** * @file daemon/opd_ibs_trans.h * AMD Family10h Instruction Based Sampling (IBS) translation. * * @remark Copyright 2008 OProfile authors * @remark Read the file COPYING * * @author Jason Yeh * @author Paul Drongowski * @author Suravee Suthikulpanit * Copyright (c) 2008 Advanced Micro Devices, Inc. */ #ifndef OPD_IBS_TRANS_H #define OPD_IBS_TRANS_H struct ibs_fetch_sample; struct ibs_op_sample; struct transient; struct ibs_translation_table { unsigned int event; void (*translator)(struct transient *); }; extern void trans_ibs_fetch (struct transient * trans, unsigned int selected_flag); extern void trans_ibs_op (struct transient * trans, unsigned int selected_flag); extern void trans_ibs_op_ls (struct transient * trans, unsigned int selected_flag); extern void trans_ibs_op_nb (struct transient * trans, unsigned int selected_flag); extern int trans_ibs_op_rip_invalid (struct transient * trans); extern void trans_ibs_op_mask_reserved (unsigned int family, struct transient * trans); extern void trans_ibs_op_ls_memaccess(struct transient * trans); extern void trans_ibs_op_bta (struct transient * trans); #endif // OPD_IBS_TRANS_H oprofile-0.9.9/daemon/opd_kernel.h0000664000076400007640000000175212175510133014044 00000000000000/** * @file daemon/opd_kernel.h * Dealing with the kernel and kernel module images * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie * Modified by Aravind Menon for Xen * These modifications are: * Copyright (C) 2005 Hewlett-Packard Co. */ #ifndef OPD_KERNEL_H #define OPD_KERNEL_H #include "op_types.h" #include "op_list.h" struct transient; /** create the kernel image */ void opd_create_vmlinux(char const * name, char const * arg); void opd_create_xen(char const * name, char const * arg); /** opd_reread_module_info - parse /proc/modules for kernel modules */ void opd_reread_module_info(void); /** Describes a kernel module or vmlinux itself */ struct kernel_image { char * name; vma_t start; vma_t end; struct list_head list; }; /** Find a kernel_image based upon the given parameters in trans. */ struct kernel_image * find_kernel_image(struct transient const * trans); #endif /* OPD_KERNEL_H */ oprofile-0.9.9/daemon/opd_ibs_trans.c0000664000076400007640000004364712175510133014554 00000000000000/** * @file daemon/opd_ibs_trans.c * AMD Instruction Based Sampling (IBS) translation. * * @remark Copyright 2008 - 2010 OProfile authors * @remark Read the file COPYING * * @author Jason Yeh * @author Paul Drongowski * @author Suravee Suthikulpanit * Copyright (c) 2008 Advanced Micro Devices, Inc. */ #include "opd_ibs.h" #include "opd_ibs_macro.h" #include "opd_ibs_trans.h" #include "opd_trans.h" #include "opd_printf.h" #include #include extern FILE * bta_log; extern FILE * memaccess_log; /* * --------------------- FETCH DERIVED FUNCTION */ void trans_ibs_fetch (struct transient * trans, unsigned int selected_flag) { struct ibs_fetch_sample * trans_fetch = ((struct ibs_sample*)(trans->ext))->fetch; if ((selected_flag) == 0) return; CHECK_FETCH_SELECTED_FLAG(DE_IBS_FETCH_ALL) { /* IBS all fetch samples (kills + attempts) */ AGG_IBS_EVENT(DE_IBS_FETCH_ALL); } CHECK_FETCH_SELECTED_FLAG(DE_IBS_FETCH_KILLED) { /* IBS killed fetches ("case 0") -- All interesting event * flags are clear */ if (IBS_FETCH_KILLED(trans_fetch)) AGG_IBS_EVENT(DE_IBS_FETCH_KILLED); } CHECK_FETCH_SELECTED_FLAG(DE_IBS_FETCH_ATTEMPTED) { /* Any non-killed fetch is an attempted fetch */ AGG_IBS_EVENT(DE_IBS_FETCH_ATTEMPTED); } CHECK_FETCH_SELECTED_FLAG(DE_IBS_FETCH_COMPLETED) { if (IBS_FETCH_FETCH_COMPLETION(trans_fetch)) /* IBS Fetch Completed */ AGG_IBS_EVENT(DE_IBS_FETCH_COMPLETED); } CHECK_FETCH_SELECTED_FLAG(DE_IBS_FETCH_ABORTED) { if (!IBS_FETCH_FETCH_COMPLETION(trans_fetch)) /* IBS Fetch Aborted */ AGG_IBS_EVENT(DE_IBS_FETCH_ABORTED); } CHECK_FETCH_SELECTED_FLAG(DE_IBS_L1_ITLB_HIT) { /* IBS L1 ITLB hit */ if (IBS_FETCH_L1_TLB_HIT(trans_fetch)) AGG_IBS_EVENT(DE_IBS_L1_ITLB_HIT); } CHECK_FETCH_SELECTED_FLAG(DE_IBS_ITLB_L1M_L2H) { /* IBS L1 ITLB miss and L2 ITLB hit */ if (IBS_FETCH_ITLB_L1M_L2H(trans_fetch)) AGG_IBS_EVENT(DE_IBS_ITLB_L1M_L2H); } CHECK_FETCH_SELECTED_FLAG(DE_IBS_ITLB_L1M_L2M) { /* IBS L1 & L2 ITLB miss; complete ITLB miss */ if (IBS_FETCH_ITLB_L1M_L2M(trans_fetch)) AGG_IBS_EVENT(DE_IBS_ITLB_L1M_L2M); } CHECK_FETCH_SELECTED_FLAG(DE_IBS_IC_MISS) { /* IBS instruction cache miss */ if (IBS_FETCH_INST_CACHE_MISS(trans_fetch)) AGG_IBS_EVENT(DE_IBS_IC_MISS); } CHECK_FETCH_SELECTED_FLAG(DE_IBS_IC_HIT) { /* IBS instruction cache hit */ if (IBS_FETCH_INST_CACHE_HIT(trans_fetch)) AGG_IBS_EVENT(DE_IBS_IC_HIT); } CHECK_FETCH_SELECTED_FLAG(DE_IBS_FETCH_4K_PAGE) { if (IBS_FETCH_PHYS_ADDR_VALID(trans_fetch) && IBS_FETCH_TLB_PAGE_SIZE_4K(trans_fetch)) AGG_IBS_EVENT(DE_IBS_FETCH_4K_PAGE); } CHECK_FETCH_SELECTED_FLAG(DE_IBS_FETCH_2M_PAGE) { if (IBS_FETCH_PHYS_ADDR_VALID(trans_fetch) && IBS_FETCH_TLB_PAGE_SIZE_2M(trans_fetch)) AGG_IBS_EVENT(DE_IBS_FETCH_2M_PAGE); } CHECK_FETCH_SELECTED_FLAG(DE_IBS_FETCH_1G_PAGE) { if (IBS_FETCH_PHYS_ADDR_VALID(trans_fetch) && IBS_FETCH_TLB_PAGE_SIZE_1G(trans_fetch)) AGG_IBS_EVENT(DE_IBS_FETCH_1G_PAGE); } CHECK_FETCH_SELECTED_FLAG(DE_IBS_FETCH_XX_PAGE) { } CHECK_FETCH_SELECTED_FLAG(DE_IBS_FETCH_LATENCY) { if (IBS_FETCH_FETCH_LATENCY(trans_fetch)) AGG_IBS_COUNT(DE_IBS_FETCH_LATENCY, IBS_FETCH_FETCH_LATENCY(trans_fetch)); } } /* * --------------------- OP DERIVED FUNCTION */ void trans_ibs_op (struct transient * trans, unsigned int selected_flag) { struct ibs_op_sample * trans_op = ((struct ibs_sample*)(trans->ext))->op; if ((selected_flag) == 0) return; CHECK_OP_SELECTED_FLAG(DE_IBS_OP_ALL) { /* All IBS op samples */ AGG_IBS_EVENT(DE_IBS_OP_ALL); } CHECK_OP_SELECTED_FLAG(DE_IBS_OP_TAG_TO_RETIRE) { /* Tally retire cycle counts for all sampled macro-ops * IBS tag to retire cycles */ if (IBS_OP_TAG_TO_RETIRE_CYCLES(trans_op)) AGG_IBS_COUNT(DE_IBS_OP_TAG_TO_RETIRE, IBS_OP_TAG_TO_RETIRE_CYCLES(trans_op)); } CHECK_OP_SELECTED_FLAG(DE_IBS_OP_COMP_TO_RETIRE) { /* IBS completion to retire cycles */ if (IBS_OP_COM_TO_RETIRE_CYCLES(trans_op)) AGG_IBS_COUNT(DE_IBS_OP_COMP_TO_RETIRE, IBS_OP_COM_TO_RETIRE_CYCLES(trans_op)); } CHECK_OP_SELECTED_FLAG(DE_IBS_BRANCH_RETIRED) { if (IBS_OP_BRANCH_RETIRED(trans_op)) /* IBS Branch retired op */ AGG_IBS_EVENT(DE_IBS_BRANCH_RETIRED) ; } CHECK_OP_SELECTED_FLAG(DE_IBS_BRANCH_MISP) { if (IBS_OP_BRANCH_RETIRED(trans_op) /* Test branch-specific event flags */ /* IBS mispredicted Branch op */ && IBS_OP_BRANCH_MISPREDICT(trans_op)) AGG_IBS_EVENT(DE_IBS_BRANCH_MISP) ; } CHECK_OP_SELECTED_FLAG(DE_IBS_BRANCH_TAKEN) { if (IBS_OP_BRANCH_RETIRED(trans_op) /* IBS taken Branch op */ && IBS_OP_BRANCH_TAKEN(trans_op)) AGG_IBS_EVENT(DE_IBS_BRANCH_TAKEN); } CHECK_OP_SELECTED_FLAG(DE_IBS_BRANCH_MISP_TAKEN) { if (IBS_OP_BRANCH_RETIRED(trans_op) /* IBS mispredicted taken branch op */ && IBS_OP_BRANCH_TAKEN(trans_op) && IBS_OP_BRANCH_MISPREDICT(trans_op)) AGG_IBS_EVENT(DE_IBS_BRANCH_MISP_TAKEN); } CHECK_OP_SELECTED_FLAG(DE_IBS_RETURN) { if (IBS_OP_BRANCH_RETIRED(trans_op) /* IBS return op */ && IBS_OP_RETURN(trans_op)) AGG_IBS_EVENT(DE_IBS_RETURN); } CHECK_OP_SELECTED_FLAG(DE_IBS_RETURN_MISP) { if (IBS_OP_BRANCH_RETIRED(trans_op) /* IBS mispredicted return op */ && IBS_OP_RETURN(trans_op) && IBS_OP_BRANCH_MISPREDICT(trans_op)) AGG_IBS_EVENT(DE_IBS_RETURN_MISP); } CHECK_OP_SELECTED_FLAG(DE_IBS_RESYNC) { /* Test for a resync macro-op */ if (IBS_OP_BRANCH_RESYNC(trans_op)) AGG_IBS_EVENT(DE_IBS_RESYNC); } } /* * --------------------- OP LS DERIVED FUNCTION */ void trans_ibs_op_ls (struct transient * trans, unsigned int selected_flag) { struct ibs_op_sample * trans_op = ((struct ibs_sample*)(trans->ext))->op; /* Preliminary check */ if (!IBS_OP_IBS_LD_OP(trans_op) && !IBS_OP_IBS_ST_OP(trans_op)) return; if ((selected_flag) == 0) return; CHECK_OP_LS_SELECTED_FLAG(DE_IBS_LS_ALL_OP) { /* Count the number of LS op samples */ AGG_IBS_EVENT(DE_IBS_LS_ALL_OP) ; } CHECK_OP_LS_SELECTED_FLAG(DE_IBS_LS_LOAD_OP) { if (IBS_OP_IBS_LD_OP(trans_op)) /* TALLy an IBS load derived event */ AGG_IBS_EVENT(DE_IBS_LS_LOAD_OP) ; } CHECK_OP_LS_SELECTED_FLAG(DE_IBS_LS_STORE_OP) { if (IBS_OP_IBS_ST_OP(trans_op)) /* Count and handle store operations */ AGG_IBS_EVENT(DE_IBS_LS_STORE_OP); } CHECK_OP_LS_SELECTED_FLAG(DE_IBS_LS_DTLB_L1H) { if (IBS_OP_IBS_DC_LIN_ADDR_VALID(trans_op) && !IBS_OP_IBS_DC_L1_TLB_MISS(trans_op)) /* L1 DTLB hit -- This is the most frequent case */ AGG_IBS_EVENT(DE_IBS_LS_DTLB_L1H); } CHECK_OP_LS_SELECTED_FLAG(DE_IBS_LS_DTLB_L1M_L2H) { /* l2_translation_size = 1 */ if (IBS_OP_IBS_DC_LIN_ADDR_VALID(trans_op) && IBS_OP_IBS_DC_L1_TLB_MISS(trans_op) && !IBS_OP_IBS_DC_L2_TLB_MISS(trans_op)) /* L1 DTLB miss, L2 DTLB hit */ AGG_IBS_EVENT(DE_IBS_LS_DTLB_L1M_L2H); } CHECK_OP_LS_SELECTED_FLAG(DE_IBS_LS_DTLB_L1M_L2M) { if (IBS_OP_IBS_DC_LIN_ADDR_VALID(trans_op) && IBS_OP_IBS_DC_L1_TLB_MISS(trans_op) && IBS_OP_IBS_DC_L2_TLB_MISS(trans_op)) /* L1 DTLB miss, L2 DTLB miss */ AGG_IBS_EVENT(DE_IBS_LS_DTLB_L1M_L2M); } CHECK_OP_LS_SELECTED_FLAG(DE_IBS_LS_DC_MISS) { if (IBS_OP_IBS_DC_MISS(trans_op)) AGG_IBS_EVENT(DE_IBS_LS_DC_MISS); } CHECK_OP_LS_SELECTED_FLAG(DE_IBS_LS_DC_HIT) { if (!IBS_OP_IBS_DC_MISS(trans_op)) AGG_IBS_EVENT(DE_IBS_LS_DC_HIT); } CHECK_OP_LS_SELECTED_FLAG(DE_IBS_LS_MISALIGNED) { if (IBS_OP_IBS_DC_MISS_ACC(trans_op)) AGG_IBS_EVENT(DE_IBS_LS_MISALIGNED); } CHECK_OP_LS_SELECTED_FLAG(DE_IBS_LS_BNK_CONF_LOAD) { if (IBS_OP_IBS_DC_LD_BNK_CON(trans_op)) AGG_IBS_EVENT(DE_IBS_LS_BNK_CONF_LOAD); } CHECK_OP_LS_SELECTED_FLAG(DE_IBS_LS_BNK_CONF_STORE) { if (IBS_OP_IBS_DC_ST_BNK_CON(trans_op)) AGG_IBS_EVENT(DE_IBS_LS_BNK_CONF_STORE); } CHECK_OP_LS_SELECTED_FLAG(DE_IBS_LS_STL_FORWARDED) { if (IBS_OP_IBS_LD_OP(trans_op) /* Data forwarding info are valid only for load ops */ && IBS_OP_IBS_DC_ST_TO_LD_FWD(trans_op)) AGG_IBS_EVENT(DE_IBS_LS_STL_FORWARDED) ; } CHECK_OP_LS_SELECTED_FLAG(DE_IBS_LS_STL_CANCELLED) { if (IBS_OP_IBS_LD_OP(trans_op)) if (IBS_OP_IBS_DC_ST_TO_LD_CAN(trans_op)) AGG_IBS_EVENT(DE_IBS_LS_STL_CANCELLED) ; } CHECK_OP_LS_SELECTED_FLAG(DE_IBS_LS_UC_MEM_ACCESS) { if (IBS_OP_IBS_DC_UC_MEM_ACC(trans_op)) AGG_IBS_EVENT(DE_IBS_LS_UC_MEM_ACCESS); } CHECK_OP_LS_SELECTED_FLAG(DE_IBS_LS_WC_MEM_ACCESS) { if (IBS_OP_IBS_DC_WC_MEM_ACC(trans_op)) AGG_IBS_EVENT(DE_IBS_LS_WC_MEM_ACCESS); } CHECK_OP_LS_SELECTED_FLAG(DE_IBS_LS_LOCKED_OP) { if (IBS_OP_IBS_LOCKED_OP(trans_op)) AGG_IBS_EVENT(DE_IBS_LS_LOCKED_OP); } CHECK_OP_LS_SELECTED_FLAG(DE_IBS_LS_MAB_HIT) { if (IBS_OP_IBS_DC_MAB_HIT(trans_op)) AGG_IBS_EVENT(DE_IBS_LS_MAB_HIT); } CHECK_OP_LS_SELECTED_FLAG(DE_IBS_LS_L1_DTLB_4K) { /* l1_translation */ if (IBS_OP_IBS_DC_LIN_ADDR_VALID(trans_op) && !IBS_OP_IBS_DC_L1_TLB_MISS(trans_op) && !IBS_OP_IBS_DC_L1_TLB_HIT_2MB(trans_op) && !IBS_OP_IBS_DC_L1_TLB_HIT_1GB(trans_op)) /* This is the most common case, unfortunately */ AGG_IBS_EVENT(DE_IBS_LS_L1_DTLB_4K) ; } CHECK_OP_LS_SELECTED_FLAG(DE_IBS_LS_L1_DTLB_2M) { /* l1_translation */ if (IBS_OP_IBS_DC_LIN_ADDR_VALID(trans_op) && !IBS_OP_IBS_DC_L1_TLB_MISS(trans_op) && IBS_OP_IBS_DC_L1_TLB_HIT_2MB(trans_op)) /* 2M L1 DTLB page translation */ AGG_IBS_EVENT(DE_IBS_LS_L1_DTLB_2M); } CHECK_OP_LS_SELECTED_FLAG(DE_IBS_LS_L1_DTLB_1G) { /* l1_translation */ if (IBS_OP_IBS_DC_LIN_ADDR_VALID(trans_op) && !IBS_OP_IBS_DC_L1_TLB_MISS(trans_op) && !IBS_OP_IBS_DC_L1_TLB_HIT_2MB(trans_op) && IBS_OP_IBS_DC_L1_TLB_HIT_1GB(trans_op)) /* 1G L1 DTLB page translation */ AGG_IBS_EVENT(DE_IBS_LS_L1_DTLB_1G); } CHECK_OP_LS_SELECTED_FLAG(DE_IBS_LS_L1_DTLB_RES) { } CHECK_OP_LS_SELECTED_FLAG(DE_IBS_LS_L2_DTLB_4K) { /* l2_translation_size = 1 */ if (IBS_OP_IBS_DC_LIN_ADDR_VALID(trans_op) && IBS_OP_IBS_DC_L1_TLB_MISS(trans_op) && !IBS_OP_IBS_DC_L2_TLB_MISS(trans_op) /* L2 DTLB page translation */ && !IBS_OP_IBS_DC_L2_TLB_HIT_2MB(trans_op) && !IBS_OP_IBS_DC_L2_TLB_HIT_1GB(trans_op)) /* 4K L2 DTLB page translation */ AGG_IBS_EVENT(DE_IBS_LS_L2_DTLB_4K); } CHECK_OP_LS_SELECTED_FLAG(DE_IBS_LS_L2_DTLB_2M) { /* l2_translation_size = 1 */ if (IBS_OP_IBS_DC_LIN_ADDR_VALID(trans_op) && IBS_OP_IBS_DC_L1_TLB_MISS(trans_op) && !IBS_OP_IBS_DC_L2_TLB_MISS(trans_op) /* L2 DTLB page translation */ && IBS_OP_IBS_DC_L2_TLB_HIT_2MB(trans_op) && !IBS_OP_IBS_DC_L2_TLB_HIT_1GB(trans_op)) /* 2M L2 DTLB page translation */ AGG_IBS_EVENT(DE_IBS_LS_L2_DTLB_2M); } CHECK_OP_LS_SELECTED_FLAG(DE_IBS_LS_L2_DTLB_1G) { /* l2_translation_size = 1 */ if (IBS_OP_IBS_DC_LIN_ADDR_VALID(trans_op) && IBS_OP_IBS_DC_L1_TLB_MISS(trans_op) && !IBS_OP_IBS_DC_L2_TLB_MISS(trans_op) /* L2 DTLB page translation */ && !IBS_OP_IBS_DC_L2_TLB_HIT_2MB(trans_op) && IBS_OP_IBS_DC_L2_TLB_HIT_1GB(trans_op)) /* 2M L2 DTLB page translation */ AGG_IBS_EVENT(DE_IBS_LS_L2_DTLB_1G); } CHECK_OP_LS_SELECTED_FLAG(DE_IBS_LS_L2_DTLB_RES2) { } CHECK_OP_LS_SELECTED_FLAG(DE_IBS_LS_DC_LOAD_LAT) { if (IBS_OP_IBS_LD_OP(trans_op) /* If the load missed in DC, tally the DC load miss latency */ && IBS_OP_IBS_DC_MISS(trans_op)) /* DC load miss latency is only reliable for load ops */ AGG_IBS_COUNT(DE_IBS_LS_DC_LOAD_LAT, IBS_OP_DC_MISS_LATENCY(trans_op)) ; } } /* * --------------------- OP NB DERIVED FUNCTION * * NB data is only guaranteed reliable for load operations * that miss in L1 and L2 cache. NB data arrives too late * to be reliable for store operations */ void trans_ibs_op_nb (struct transient * trans, unsigned int selected_flag) { struct ibs_op_sample * trans_op = ((struct ibs_sample*)(trans->ext))->op; /* Preliminary check */ if ((selected_flag) == 0) return; if (!IBS_OP_IBS_LD_OP(trans_op)) return; if (!IBS_OP_IBS_DC_MISS(trans_op)) return; if (IBS_OP_NB_IBS_REQ_SRC(trans_op) == 0) return; CHECK_OP_NB_SELECTED_FLAG(DE_IBS_NB_LOCAL) { if (!IBS_OP_NB_IBS_REQ_DST_PROC(trans_op)) /* Request was serviced by local processor */ AGG_IBS_EVENT(DE_IBS_NB_LOCAL) ; } CHECK_OP_NB_SELECTED_FLAG(DE_IBS_NB_REMOTE) { if (IBS_OP_NB_IBS_REQ_DST_PROC(trans_op)) /* Request was serviced by remote processor */ AGG_IBS_EVENT(DE_IBS_NB_REMOTE) ; } CHECK_OP_NB_SELECTED_FLAG(DE_IBS_NB_LOCAL_L3) { if (!IBS_OP_NB_IBS_REQ_DST_PROC(trans_op) && IBS_OP_NB_IBS_REQ_SRC_01(trans_op)) AGG_IBS_EVENT(DE_IBS_NB_LOCAL_L3); } CHECK_OP_NB_SELECTED_FLAG(DE_IBS_NB_LOCAL_CACHE) { if (!IBS_OP_NB_IBS_REQ_DST_PROC(trans_op) && IBS_OP_NB_IBS_REQ_SRC_02(trans_op)) AGG_IBS_EVENT(DE_IBS_NB_LOCAL_CACHE); } CHECK_OP_NB_SELECTED_FLAG(DE_IBS_NB_REMOTE_CACHE) { if (IBS_OP_NB_IBS_REQ_DST_PROC(trans_op) && IBS_OP_NB_IBS_REQ_SRC_02(trans_op)) AGG_IBS_EVENT(DE_IBS_NB_REMOTE_CACHE) ; } CHECK_OP_NB_SELECTED_FLAG(DE_IBS_NB_LOCAL_DRAM) { if (!IBS_OP_NB_IBS_REQ_DST_PROC(trans_op) && IBS_OP_NB_IBS_REQ_SRC_03(trans_op)) AGG_IBS_EVENT(DE_IBS_NB_LOCAL_DRAM); } CHECK_OP_NB_SELECTED_FLAG(DE_IBS_NB_REMOTE_DRAM) { if (IBS_OP_NB_IBS_REQ_DST_PROC(trans_op) && IBS_OP_NB_IBS_REQ_SRC_03(trans_op)) AGG_IBS_EVENT(DE_IBS_NB_REMOTE_DRAM) ; } CHECK_OP_NB_SELECTED_FLAG(DE_IBS_NB_LOCAL_OTHER) { if (!IBS_OP_NB_IBS_REQ_DST_PROC(trans_op) && IBS_OP_NB_IBS_REQ_SRC_07(trans_op)) AGG_IBS_EVENT(DE_IBS_NB_LOCAL_OTHER); } CHECK_OP_NB_SELECTED_FLAG(DE_IBS_NB_REMOTE_OTHER) { if (IBS_OP_NB_IBS_REQ_DST_PROC(trans_op) && IBS_OP_NB_IBS_REQ_SRC_07(trans_op)) AGG_IBS_EVENT(DE_IBS_NB_REMOTE_OTHER) ; } CHECK_OP_NB_SELECTED_FLAG(DE_IBS_NB_CACHE_STATE_M) { if (IBS_OP_NB_IBS_REQ_SRC_02(trans_op) && !IBS_OP_NB_IBS_CACHE_HIT_ST(trans_op)) AGG_IBS_EVENT(DE_IBS_NB_CACHE_STATE_M) ; } CHECK_OP_NB_SELECTED_FLAG(DE_IBS_NB_CACHE_STATE_O) { if (IBS_OP_NB_IBS_REQ_SRC_02(trans_op) && IBS_OP_NB_IBS_CACHE_HIT_ST(trans_op)) AGG_IBS_EVENT(DE_IBS_NB_CACHE_STATE_O) ; } CHECK_OP_NB_SELECTED_FLAG(DE_IBS_NB_LOCAL_LATENCY) { if (!IBS_OP_NB_IBS_REQ_DST_PROC(trans_op)) /* Request was serviced by local processor */ AGG_IBS_COUNT(DE_IBS_NB_LOCAL_LATENCY, IBS_OP_DC_MISS_LATENCY(trans_op)); } CHECK_OP_NB_SELECTED_FLAG(DE_IBS_NB_REMOTE_LATENCY) { if (IBS_OP_NB_IBS_REQ_DST_PROC(trans_op)) /* Request was serviced by remote processor */ AGG_IBS_COUNT(DE_IBS_NB_REMOTE_LATENCY, IBS_OP_DC_MISS_LATENCY(trans_op)); } } int trans_ibs_op_rip_invalid (struct transient * trans) { struct ibs_op_sample * trans_op = ((struct ibs_sample*)(trans->ext))->op; if (IBS_OP_RIP_INVALID(trans_op)) return 1; return 0; } void trans_ibs_op_mask_reserved (unsigned int family, struct transient * trans) { struct ibs_op_sample * trans_op = ((struct ibs_sample*)(trans->ext))->op; switch (family) { case 0x10: /* Reserved IbsRipInvalid (MSRC001_1035[38])*/ trans_op->ibs_op_data1_high &= ~MASK_RIP_INVALID; break; case 0x12: /* Reserved NbIbsReqDstProc (MSRCC001_1036[4]) */ trans_op->ibs_op_data2_low &= ~NB_MASK_REQ_DST_PROC; /* Reserved NbIbsReqCacheHitSt (MSRCC001_1036[5]) */ trans_op->ibs_op_data2_low &= ~NB_MASK_L3_STATE; break; case 0x14: /* Reserved NbIbsReqDstProc (MSRCC001_1036[4]) */ trans_op->ibs_op_data2_low &= ~NB_MASK_REQ_DST_PROC; /* Reserved NbIbsReqCacheHitSt (MSRCC001_1036[5]) */ trans_op->ibs_op_data2_low &= ~NB_MASK_L3_STATE; /* Reserved IbsDcL1tlbHit1G (MSRC001_1037[5]) */ trans_op->ibs_op_data3_low &= ~DC_MASK_L1_HIT_1G; /* Reserved IbsDcLdBnkCon (MSRC001_1037[9]) */ trans_op->ibs_op_data3_low &= ~DC_MASK_LD_BANK_CONFLICT; /* Reserved IbsDcStBnkCon (MSRC001_1037[10]) */ trans_op->ibs_op_data3_low &= ~DC_MASK_ST_BANK_CONFLICT; /* Reserved IbsDcStToLdCan (MSRC001_1037[12]) */ trans_op->ibs_op_data3_low &= ~DC_MASK_ST_TO_LD_CANCEL; /* Reserved IbsDcL2tlbHit1G (MSRC001_1037[19]) */ trans_op->ibs_op_data3_low &= ~DC_MASK_L2_HIT_1G; break; case 0x15: default: break; } } void trans_ibs_op_bta(struct transient * trans) { static cookie_t old_cookie = NO_COOKIE; static cookie_t old_app_cookie = NO_COOKIE; struct ibs_op_sample * trans_op = ((struct ibs_sample*)(trans->ext))->op; if (!bta_log) return; if (!trans_op->ibs_op_brtgt_addr) return; if( old_app_cookie == INVALID_COOKIE || old_app_cookie == NO_COOKIE || old_app_cookie != trans->app_cookie) { old_app_cookie = trans->cookie; } if (trans->in_kernel == 1) { old_cookie = NO_COOKIE; } else { if( old_cookie == INVALID_COOKIE || old_cookie == NO_COOKIE || old_cookie != trans->cookie) { old_cookie = trans->cookie; } } fprintf(bta_log, "0x%016llx,0x%016llx,%02lu %08u,%08u,0x%08x,0x%08lx\n", trans->app_cookie, trans->cookie, trans->cpu, trans->tgid, trans->tid, (unsigned int)trans->pc, trans_op->ibs_op_brtgt_addr); } void trans_ibs_op_ls_memaccess(struct transient * trans) { static cookie_t old_cookie = NO_COOKIE; static cookie_t old_app_cookie = NO_COOKIE; struct ibs_op_sample * trans_op = ((struct ibs_sample*)(trans->ext))->op; if (!memaccess_log) return; if( old_app_cookie == INVALID_COOKIE || old_app_cookie == NO_COOKIE || old_app_cookie != trans->app_cookie) { old_app_cookie = trans->cookie; } if (trans->in_kernel == 1) { old_cookie = NO_COOKIE; } else { if( old_cookie == INVALID_COOKIE || old_cookie == NO_COOKIE || old_cookie != trans->cookie) { old_cookie = trans->cookie; } } fprintf(memaccess_log, "0x%016llx,0x%016llx,%02lu,%08u,%08u,0x%08x,0x%08u:%08x,0x%08x:%08x,%s,%08u\n", trans->app_cookie, trans->cookie, trans->cpu, trans->tgid, trans->tid, (unsigned int)trans->pc, trans_op->ibs_op_phys_addr_high, trans_op->ibs_op_phys_addr_low, trans_op->ibs_op_ldst_linaddr_high, trans_op->ibs_op_ldst_linaddr_low, (IBS_OP_IBS_LD_OP(trans_op))? "LD": "ST", (unsigned int) IBS_OP_DC_MISS_LATENCY(trans_op)); } oprofile-0.9.9/daemon/opd_stats.c0000664000076400007640000000561012175510133013712 00000000000000/** * @file daemon/opd_stats.c * Management of daemon statistics * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include "opd_stats.h" #include "opd_extended.h" #include "oprofiled.h" #include "op_get_time.h" #include #include #include unsigned long opd_stats[OPD_MAX_STATS]; /** * print_if - print an integer value read from file filename, * do nothing if the value read == -1 except if force is non-zero */ static void print_if(char const * fmt, char const * path, char const * filename, int force) { int value = opd_read_fs_int(path, filename, 0); if (value != -1 || force) printf(fmt, value); } /** * opd_print_stats - print out latest statistics */ void opd_print_stats(void) { DIR * dir; struct dirent * dirent; printf("\n%s\n", op_get_time()); printf("\n-- OProfile Statistics --\n"); printf("Nr. sample dumps: %lu\n", opd_stats[OPD_DUMP_COUNT]); printf("Nr. non-backtrace samples: %lu\n", opd_stats[OPD_SAMPLES]); printf("Nr. kernel samples: %lu\n", opd_stats[OPD_KERNEL]); printf("Nr. lost samples (no kernel/user): %lu\n", opd_stats[OPD_NO_CTX]); printf("Nr. lost kernel samples: %lu\n", opd_stats[OPD_LOST_KERNEL]); printf("Nr. incomplete code structs: %lu\n", opd_stats[OPD_DANGLING_CODE]); printf("Nr. samples lost due to sample file open failure: %lu\n", opd_stats[OPD_LOST_SAMPLEFILE]); printf("Nr. samples lost due to no permanent mapping: %lu\n", opd_stats[OPD_LOST_NO_MAPPING]); printf("Nr. user context kernel samples lost due to no app info available: %lu\n", opd_stats[OPD_NO_APP_KERNEL_SAMPLE]); print_if("Nr. samples lost due to buffer overflow: %u\n", "/dev/oprofile/stats", "event_lost_overflow", 1); print_if("Nr. samples lost due to no mapping: %u\n", "/dev/oprofile/stats", "sample_lost_no_mapping", 1); print_if("Nr. backtraces skipped due to no file mapping: %u\n", "/dev/oprofile/stats", "bt_lost_no_mapping", 0); print_if("Nr. samples lost due to no mm: %u\n", "/dev/oprofile/stats", "sample_lost_no_mm", 1); opd_ext_print_stats(); if (!(dir = opendir("/dev/oprofile/stats/"))) goto out; while ((dirent = readdir(dir))) { int cpu_nr; char path[256]; if (sscanf(dirent->d_name, "cpu%d", &cpu_nr) != 1) continue; snprintf(path, 256, "/dev/oprofile/stats/%s", dirent->d_name); printf("\n---- Statistics for cpu : %d\n", cpu_nr); print_if("Nr. samples lost cpu buffer overflow: %u\n", path, "sample_lost_overflow", 1); print_if("Nr. samples lost task exit: %u\n", path, "sample_lost_task_exit", 0); print_if("Nr. samples received: %u\n", path, "sample_received", 1); print_if("Nr. backtrace aborted: %u\n", path, "backtrace_aborted", 0); print_if("Nr. samples lost invalid pc: %u\n", path, "sample_invalid_eip", 0); } closedir(dir); out: fflush(stdout); } oprofile-0.9.9/daemon/opd_stats.h0000664000076400007640000000175012175510133013720 00000000000000/** * @file daemon/opd_stats.h * Management of daemon statistics * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef OPD_STATS_H #define OPD_STATS_H extern unsigned long opd_stats[]; enum { OPD_SAMPLES, /**< nr. samples */ OPD_KERNEL, /**< nr. kernel samples */ OPD_PROCESS, /**< nr. userspace samples */ OPD_NO_CTX, /**< nr. samples lost due to not knowing if in the kernel or not */ OPD_LOST_KERNEL, /**< nr. kernel samples lost */ OPD_LOST_SAMPLEFILE, /**< nr samples for which sample file can't be opened */ OPD_LOST_NO_MAPPING, /**< nr samples lost due to no mapping */ OPD_DUMP_COUNT, /**< nr. of times buffer is read */ OPD_DANGLING_CODE, /**< nr. partial code notifications (buffer overflow */ OPD_NO_APP_KERNEL_SAMPLE, /** */ #define _GNU_SOURCE #include "oprofiled.h" #include "opd_perfmon.h" #include "opd_events.h" #include "op_cpu_type.h" #include "op_libiberty.h" #include "op_hw_config.h" #include #include #include #include #include #include #include #include #include #include #include #ifdef HAVE_SCHED_SETAFFINITY #include #endif extern op_cpu cpu_type; #ifndef HAVE_SCHED_SETAFFINITY /* many glibc's are not yet up to date */ #ifndef __NR_sched_setaffinity #define __NR_sched_setaffinity 1231 #endif /* Copied from glibc's and and munged */ #define CPU_SETSIZE 1024 #define __NCPUBITS (8 * sizeof (unsigned long)) typedef struct { unsigned long __bits[CPU_SETSIZE / __NCPUBITS]; } cpu_set_t; #define CPU_SET(cpu, cpusetp) \ ((cpusetp)->__bits[(cpu)/__NCPUBITS] |= (1UL << ((cpu) % __NCPUBITS))) #define CPU_ZERO(cpusetp) \ memset((cpusetp), 0, sizeof(cpu_set_t)) static int sched_setaffinity(pid_t pid, size_t len, cpu_set_t const * cpusetp) { return syscall(__NR_sched_setaffinity, pid, len, cpusetp); } #endif #ifndef HAVE_PERFMONCTL #ifndef __NR_perfmonctl #define __NR_perfmonctl 1175 #endif static int perfmonctl(int fd, int cmd, void * arg, int narg) { return syscall(__NR_perfmonctl, fd, cmd, arg, narg); } #endif static unsigned char uuid[16] = { 0x77, 0x7a, 0x6e, 0x61, 0x20, 0x65, 0x73, 0x69, 0x74, 0x6e, 0x72, 0x20, 0x61, 0x65, 0x0a, 0x6c }; static size_t nr_cpus; struct child { pid_t pid; int up_pipe[2]; int ctx_fd; sig_atomic_t sigusr1; sig_atomic_t sigusr2; sig_atomic_t sigterm; }; static struct child * children; static void perfmon_start_child(int ctx_fd) { if (perfmonctl(ctx_fd, PFM_START, 0, 0) == -1) { exit(EXIT_FAILURE); } } static void perfmon_stop_child(int ctx_fd) { if (perfmonctl(ctx_fd, PFM_STOP, 0, 0) == -1) { exit(EXIT_FAILURE); } } static void child_sigusr1(int val __attribute__((unused))) { size_t i; for (i = 0; i < nr_cpus; ++i) { if (children[i].pid == getpid()) { children[i].sigusr1 = 1; return; } } } static void child_sigusr2(int val __attribute__((unused))) { size_t i; for (i = 0; i < nr_cpus; ++i) { if (children[i].pid == getpid()) { children[i].sigusr2 = 1; return; } } } static void child_sigterm(int val __attribute__((unused))) { kill(getppid(), SIGTERM); } static void set_affinity(size_t cpu) { cpu_set_t set; int err; CPU_ZERO(&set); CPU_SET(cpu, &set); err = sched_setaffinity(getpid(), sizeof(set), &set); if (err == -1) { perror("Failed to set affinity"); exit(EXIT_FAILURE); } } static void setup_signals(void) { struct sigaction act; sigset_t mask; sigemptyset(&mask); sigaddset(&mask, SIGUSR1); sigaddset(&mask, SIGUSR2); sigprocmask(SIG_BLOCK, &mask, NULL); act.sa_handler = child_sigusr1; act.sa_flags = 0; sigemptyset(&act.sa_mask); if (sigaction(SIGUSR1, &act, NULL)) { perror("oprofiled: install of SIGUSR1 handler failed"); exit(EXIT_FAILURE); } act.sa_handler = child_sigusr2; act.sa_flags = 0; sigemptyset(&act.sa_mask); if (sigaction(SIGUSR2, &act, NULL)) { perror("oprofiled: install of SIGUSR2 handler failed"); exit(EXIT_FAILURE); } act.sa_handler = child_sigterm; act.sa_flags = 0; sigemptyset(&act.sa_mask); if (sigaction(SIGTERM, &act, NULL)) { perror("oprofiled: install of SIGTERM handler failed"); exit(EXIT_FAILURE); } } /** create the per-cpu context */ static void create_context(struct child * self) { pfarg_context_t ctx; int err; memset(&ctx, 0, sizeof(pfarg_context_t)); memcpy(&ctx.ctx_smpl_buf_id, &uuid, 16); ctx.ctx_flags = PFM_FL_SYSTEM_WIDE; err = perfmonctl(0, PFM_CREATE_CONTEXT, &ctx, 1); if (err == -1) { perror("CREATE_CONTEXT failed"); exit(EXIT_FAILURE); } self->ctx_fd = ctx.ctx_fd; } /** program the perfmon counters */ static void write_pmu(struct child * self) { pfarg_reg_t pc[OP_MAX_COUNTERS]; pfarg_reg_t pd[OP_MAX_COUNTERS]; int err; size_t i; memset(pc, 0, sizeof(pc)); memset(pd, 0, sizeof(pd)); #define PMC_GEN_INTERRUPT (1UL << 5) #define PMC_PRIV_MONITOR (1UL << 6) /* McKinley requires pmc4 to have bit 23 set (enable PMU). * It is supposedly ignored in other pmc registers. */ #define PMC_MANDATORY (1UL << 23) #define PMC_USER (1UL << 3) #define PMC_KERNEL (1UL << 0) for (i = 0; i < op_nr_counters && opd_events[i].name; ++i) { struct opd_event * event = &opd_events[i]; pc[i].reg_num = event->counter + 4; pc[i].reg_value = PMC_GEN_INTERRUPT; pc[i].reg_value |= PMC_PRIV_MONITOR; pc[i].reg_value |= PMC_MANDATORY; (event->user) ? (pc[i].reg_value |= PMC_USER) : (pc[i].reg_value &= ~PMC_USER); (event->kernel) ? (pc[i].reg_value |= PMC_KERNEL) : (pc[i].reg_value &= ~PMC_KERNEL); pc[i].reg_value &= ~(0xff << 8); pc[i].reg_value |= ((event->value & 0xff) << 8); pc[i].reg_value &= ~(0xf << 16); pc[i].reg_value |= ((event->um & 0xf) << 16); pc[i].reg_smpl_eventid = event->counter; } for (i = 0; i < op_nr_counters && opd_events[i].name; ++i) { struct opd_event * event = &opd_events[i]; pd[i].reg_value = ~0UL - event->count + 1; pd[i].reg_short_reset = ~0UL - event->count + 1; pd[i].reg_num = event->counter + 4; } err = perfmonctl(self->ctx_fd, PFM_WRITE_PMCS, pc, i); if (err == -1) { perror("Couldn't write PMCs"); exit(EXIT_FAILURE); } err = perfmonctl(self->ctx_fd, PFM_WRITE_PMDS, pd, i); if (err == -1) { perror("Couldn't write PMDs"); exit(EXIT_FAILURE); } } static void load_context(struct child * self) { pfarg_load_t load_args; int err; memset(&load_args, 0, sizeof(load_args)); load_args.load_pid = self->pid; err = perfmonctl(self->ctx_fd, PFM_LOAD_CONTEXT, &load_args, 1); if (err == -1) { perror("Couldn't load context"); exit(EXIT_FAILURE); } } static void notify_parent(struct child * self, size_t cpu) { for (;;) { ssize_t ret; ret = write(self->up_pipe[1], &cpu, sizeof(size_t)); if (ret == sizeof(size_t)) break; if (ret < 0 && errno != EINTR) { perror("Failed to write child pipe:"); exit(EXIT_FAILURE); } } } static struct child * inner_child; void close_pipe(void) { close(inner_child->up_pipe[1]); } static void run_child(size_t cpu) { struct child * self = &children[cpu]; self->pid = getpid(); self->sigusr1 = 0; self->sigusr2 = 0; self->sigterm = 0; inner_child = self; if (atexit(close_pipe)){ close_pipe(); exit(EXIT_FAILURE); } umask(0); /* Change directory to allow directory to be removed */ if (chdir("/") < 0) { perror("Unable to chdir to \"/\""); exit(EXIT_FAILURE); } setup_signals(); set_affinity(cpu); create_context(self); write_pmu(self); load_context(self); notify_parent(self, cpu); /* Redirect standard files to /dev/null */ freopen( "/dev/null", "r", stdin); freopen( "/dev/null", "w", stdout); freopen( "/dev/null", "w", stderr); for (;;) { sigset_t sigmask; sigfillset(&sigmask); sigdelset(&sigmask, SIGUSR1); sigdelset(&sigmask, SIGUSR2); sigdelset(&sigmask, SIGTERM); if (self->sigusr1) { perfmon_start_child(self->ctx_fd); self->sigusr1 = 0; } if (self->sigusr2) { perfmon_stop_child(self->ctx_fd); self->sigusr2 = 0; } sigsuspend(&sigmask); } } static void wait_for_child(struct child * child) { size_t tmp; for (;;) { ssize_t ret; ret = read(child->up_pipe[0], &tmp, sizeof(size_t)); if (ret == sizeof(size_t)) break; if ((ret < 0 && errno != EINTR) || ret == 0 ) { perror("Failed to read child pipe"); exit(EXIT_FAILURE); } } printf("Perfmon child up on CPU%d\n", (int)tmp); fflush(stdout); close(child->up_pipe[0]); } static struct child* xen_ctx; void perfmon_init(void) { size_t i; long nr; if (cpu_type == CPU_TIMER_INT) return; if (!no_xen) { xen_ctx = xmalloc(sizeof(struct child)); xen_ctx->pid = getpid(); xen_ctx->up_pipe[0] = -1; xen_ctx->up_pipe[1] = -1; xen_ctx->sigusr1 = 0; xen_ctx->sigusr2 = 0; xen_ctx->sigterm = 0; create_context(xen_ctx); write_pmu(xen_ctx); load_context(xen_ctx); return; } nr = sysconf(_SC_NPROCESSORS_ONLN); if (nr == -1) { fprintf(stderr, "Couldn't determine number of CPUs.\n"); exit(EXIT_FAILURE); } nr_cpus = nr; children = xmalloc(sizeof(struct child) * nr_cpus); bzero(children, sizeof(struct child) * nr_cpus); for (i = 0; i < nr_cpus; ++i) { int ret; if (pipe(children[i].up_pipe)) { perror("Couldn't create child pipe"); exit(EXIT_FAILURE); } ret = fork(); if (ret == -1) { perror("Couldn't fork perfmon child"); exit(EXIT_FAILURE); } else if (ret == 0) { close(children[i].up_pipe[0]); run_child(i); } else { children[i].pid = ret; close(children[i].up_pipe[1]); printf("Waiting on CPU%d\n", (int)i); wait_for_child(&children[i]); } } } void perfmon_exit(void) { size_t i; if (cpu_type == CPU_TIMER_INT) return; if (!no_xen) return; for (i = 0; i < nr_cpus; ++i) { if (children[i].pid) { int c_pid = children[i].pid; children[i].pid = 0; if (kill(c_pid, SIGKILL)==0) waitpid(c_pid, NULL, 0); } } } void perfmon_start(void) { size_t i; if (cpu_type == CPU_TIMER_INT) return; if (!no_xen) { perfmon_start_child(xen_ctx->ctx_fd); return; } for (i = 0; i < nr_cpus; ++i) { if (kill(children[i].pid, SIGUSR1)) { perror("Unable to start perfmon"); exit(EXIT_FAILURE); } } } void perfmon_stop(void) { size_t i; if (cpu_type == CPU_TIMER_INT) return; if (!no_xen) { perfmon_stop_child(xen_ctx->ctx_fd); return; } for (i = 0; i < nr_cpus; ++i) if (kill(children[i].pid, SIGUSR2)) { perror("Unable to stop perfmon"); exit(EXIT_FAILURE); } } #endif /* __ia64__ */ oprofile-0.9.9/daemon/opd_events.h0000664000076400007640000000212412175510133014062 00000000000000/** * @file daemon/opd_events.h * Event details for each counter * * @remark Copyright 2002, 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef OPD_EVENTS_H #include "op_types.h" #include #include /** event description for setup (perfmon) and mangling */ struct opd_event { char * name; unsigned long value; unsigned long counter; unsigned long count; unsigned long um; unsigned long kernel; unsigned long user; }; /* needed for opd_perfmon.c */ extern struct opd_event opd_events[]; /** parse the events into the opd_events array */ void opd_parse_events(char const * events); /** Find the event for the given counter */ struct opd_event * find_counter_event(unsigned long counter); struct opd_header; /** fill the sample file header with event info etc. */ void fill_header(struct opd_header * header, unsigned long counter, vma_t anon_start, vma_t anon_end, int is_kernel, int cg_to_is_kernel, int spu_samples, uint64_t embed_offset, time_t mtime); #endif /* OPD_EVENTS_H */ oprofile-0.9.9/daemon/opd_pipe.c0000664000076400007640000000372712175510133013520 00000000000000/** * @file daemon/opd_pipe.c * Functions handling the $SESSIONDIR/opd_pipe FIFO special file. * NOTE: This code is dealing with potentially insecure input. * * @remark Copyright 2008 OProfile authors * @remark Read the file COPYING * * @author Daniel Hansel */ #include "opd_pipe.h" #include "opd_printf.h" #include "op_config.h" #include #include #include #include #include #include #include static int fifo; static FILE * fifo_fd = NULL; void opd_create_pipe(void) { mode_t orig_umask = umask(0111); if (mkfifo(op_pipe_file, 0666) == -1) { if (errno != EEXIST) { perror("oprofiled: couldn't create pipe: "); exit(EXIT_FAILURE); } } umask(orig_umask); } void opd_open_pipe(void) { fifo = open(op_pipe_file, O_RDONLY | O_NONBLOCK); if (fifo == -1) { perror("oprofiled: couldn't open pipe: "); exit(EXIT_FAILURE); } } void opd_close_pipe(void) { if (fifo_fd) fclose(fifo_fd); close(fifo); } int is_jitconv_requested(void) { /* number of dropped (unknown) requests */ static long nr_drops = 0; /* modulus to output only a few warnings to avoid flooding oprofiled.log */ static int mod_cnt_drops = 1; char line[256]; int i, ret = 0; /* get a file descriptor to the pipe */ if (!fifo_fd) fifo_fd = fdopen(fifo, "r"); if (fifo_fd == NULL) { perror("oprofiled: couldn't create file descriptor: "); exit(EXIT_FAILURE); } /* read up to 99 lines to check for 'do_jitconv' */ for (i = 0; i < 99; i++) { /* just break if no new line is found */ if (fgets(line, 256, fifo_fd) == NULL) break; line[strlen(line) - 1] = '\0'; if (strstr(line, "do_jitconv") != NULL) { ret = 1; } else { nr_drops++; if (nr_drops % mod_cnt_drops == 0) { printf( "Warning: invalid pipe request received (dropped request(s): %ld)\n", nr_drops); /* increase modulus to avoid flooding log file */ mod_cnt_drops *= 5; } } } return ret; } oprofile-0.9.9/daemon/opd_mangling.c0000664000076400007640000001106012175510133014344 00000000000000/** * @file daemon/opd_mangling.c * Mangling and opening of sample files * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include #include "opd_mangling.h" #include "opd_kernel.h" #include "opd_cookie.h" #include "opd_sfile.h" #include "opd_anon.h" #include "opd_printf.h" #include "opd_events.h" #include "oprofiled.h" #include "op_file.h" #include "op_sample_file.h" #include "op_config.h" #include "op_mangle.h" #include "op_events.h" #include "op_libiberty.h" #include #include #include #include #include static char const * get_dep_name(struct sfile const * sf) { if (sf->anon) return find_cookie(sf->app_cookie); /* avoid to call find_cookie(), caller can recover using image_name */ if (sf->cookie == sf->app_cookie) return NULL; if (!separate_kernel && !(separate_lib && !sf->kernel)) return NULL; /* this will fail if e.g. kernel thread */ if (sf->app_cookie == 0) return NULL; return find_cookie(sf->app_cookie); } static char * mangle_anon(struct anon_mapping const * anon) { char * name = xmalloc(PATH_MAX); snprintf(name, 1024, "%u.0x%llx.0x%llx", (unsigned int)anon->tgid, anon->start, anon->end); return name; } static char * mangle_filename(struct sfile * last, struct sfile const * sf, int counter, int cg) { char * mangled; struct mangle_values values; struct opd_event * event = find_counter_event(counter); values.flags = 0; // To silence Coverity values.anon_name = NULL; values.cg_image_name = NULL; if (sf->kernel) { values.image_name = sf->kernel->name; values.flags |= MANGLE_KERNEL; } else if (sf->anon) { values.flags |= MANGLE_ANON; values.image_name = mangle_anon(sf->anon); values.anon_name = sf->anon->name; } else { values.image_name = find_cookie(sf->cookie); } values.dep_name = get_dep_name(sf); if (!values.dep_name) values.dep_name = values.image_name; /* FIXME: log */ if (!values.image_name || !values.dep_name) return NULL; if (separate_thread) { values.flags |= MANGLE_TGID | MANGLE_TID; values.tid = sf->tid; values.tgid = sf->tgid; } if (separate_cpu) { values.flags |= MANGLE_CPU; values.cpu = sf->cpu; } if (cg) { values.flags |= MANGLE_CALLGRAPH; if (last->kernel) { values.cg_image_name = last->kernel->name; } else if (last->anon) { values.flags |= MANGLE_CG_ANON; values.cg_image_name = mangle_anon(last->anon); values.anon_name = last->anon->name; } else { values.cg_image_name = find_cookie(last->cookie); } /* FIXME: log */ if (!values.cg_image_name) { if (values.flags & MANGLE_ANON) free((char *)values.image_name); return NULL; } } values.event_name = event->name; values.count = event->count; values.unit_mask = event->um; mangled = op_mangle_filename(&values); if (values.flags & MANGLE_ANON) free((char *)values.image_name); if (values.flags & MANGLE_CG_ANON) free((char *)values.cg_image_name); return mangled; } int opd_open_sample_file(odb_t *file, struct sfile *last, struct sfile * sf, int counter, int cg) { char * mangled; char const * binary; int spu_profile = 0; vma_t last_start = 0; int err; mangled = mangle_filename(last, sf, counter, cg); if (!mangled) return EINVAL; verbprintf(vsfile, "Opening \"%s\"\n", mangled); err = create_path(mangled); if (err) { fprintf(stderr, "oprofiled: create path for %s failed: %s\n", mangled, strerror(err)); goto out; } /* locking sf will lock associated cg files too */ sfile_get(sf); if (sf != last) sfile_get(last); retry: err = odb_open(file, mangled, ODB_RDWR, sizeof(struct opd_header)); /* This can naturally happen when racing against opcontrol --reset. */ if (err) { if (err == EMFILE) { if (sfile_lru_clear()) { printf("LRU cleared but odb_open() fails for %s.\n", mangled); abort(); } goto retry; } fprintf(stderr, "oprofiled: open of %s failed: %s\n", mangled, strerror(err)); goto out; } if (!sf->kernel) binary = find_cookie(sf->cookie); else binary = sf->kernel->name; if (last && last->anon) last_start = last->anon->start; if (sf->embedded_offset != UNUSED_EMBEDDED_OFFSET) spu_profile = 1; fill_header(odb_get_data(file), counter, sf->anon ? sf->anon->start : 0, last_start, !!sf->kernel, last ? !!last->kernel : 0, spu_profile, sf->embedded_offset, binary ? op_get_mtime(binary) : 0); out: sfile_put(sf); if (sf != last) sfile_put(last); free(mangled); return err; } oprofile-0.9.9/daemon/opd_events.c0000664000076400007640000001007712175510133014063 00000000000000/** * @file daemon/opd_events.c * Event details for each counter * * @remark Copyright 2002, 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include "config.h" #include "opd_events.h" #include "opd_printf.h" #include "opd_extended.h" #include "oprofiled.h" #include "op_string.h" #include "op_config.h" #include "op_cpufreq.h" #include "op_cpu_type.h" #include "op_libiberty.h" #include "op_hw_config.h" #include "op_sample_file.h" #include "op_events.h" #include #include extern op_cpu cpu_type; struct opd_event opd_events[OP_MAX_COUNTERS]; static double cpu_speed; static void malformed_events(void) { fprintf(stderr, "oprofiled: malformed events passed " "on the command line\n"); exit(EXIT_FAILURE); } static char * copy_token(char ** c, char delim) { char * tmp = *c; char * tmp2 = *c; char * str; if (!**c) return NULL; while (*tmp2 && *tmp2 != delim) ++tmp2; if (tmp2 == tmp) return NULL; str = op_xstrndup(tmp, tmp2 - tmp); *c = tmp2; if (**c) ++*c; return str; } static unsigned long copy_ulong(char ** c, char delim) { unsigned long val = 0; char * str = copy_token(c, delim); if (!str) malformed_events(); val = strtoul(str, NULL, 0); free(str); return val; } void opd_parse_events(char const * events) { char * ev = xstrdup(events); char * c; size_t cur = 0; cpu_speed = op_cpu_frequency(); if (cpu_type == CPU_TIMER_INT) { struct opd_event * event = &opd_events[0]; event->name = xstrdup("TIMER"); event->value = event->counter = event->count = event->um = 0; event->kernel = 1; event->user = 1; return; } if (!ev || !strlen(ev)) { fprintf(stderr, "oprofiled: no events passed.\n"); exit(EXIT_FAILURE); } verbprintf(vmisc, "Events: %s\n", ev); c = ev; while (*c && cur < op_nr_counters) { struct opd_event * event = &opd_events[cur]; if (!(event->name = copy_token(&c, ':'))) malformed_events(); event->value = copy_ulong(&c, ':'); event->counter = copy_ulong(&c, ':'); event->count = copy_ulong(&c, ':'); event->um = copy_ulong(&c, ':'); event->kernel = copy_ulong(&c, ':'); event->user = copy_ulong(&c, ','); ++cur; } if (*c) { fprintf(stderr, "oprofiled: too many events passed.\n"); exit(EXIT_FAILURE); } free(ev); } struct opd_event * find_counter_event(unsigned long counter) { size_t i; struct opd_event * ret = NULL; if (counter >= OP_MAX_COUNTERS) { if((ret = opd_ext_find_counter_event(counter)) != NULL) return ret; } /* * The kernel modules will put a 0 as counter number into the * samples when timer based sampling is used. So this * theoretically might get confused here with the first * hardware counter also having number zero. However, TIMER * is never allowed to be used together with other events. * So it is safe to map this to the timer event without * actually doing the lookup. */ if (op_cpu_has_timer_fs() && strcmp(opd_events[0].name, TIMER_EVENT_NAME) == 0 && !opd_events[1].name) { return &opd_events[0]; } for (i = 0; i < op_nr_counters && opd_events[i].name; ++i) { if (counter == opd_events[i].counter) return &opd_events[i]; } fprintf(stderr, "Unknown event for counter %lu\n", counter); abort(); return NULL; } void fill_header(struct opd_header * header, unsigned long counter, vma_t anon_start, vma_t cg_to_anon_start, int is_kernel, int cg_to_is_kernel, int spu_samples, uint64_t embed_offset, time_t mtime) { struct opd_event * event = find_counter_event(counter); memset(header, '\0', sizeof(struct opd_header)); header->version = OPD_VERSION; memcpy(header->magic, OPD_MAGIC, sizeof(header->magic)); header->cpu_type = cpu_type; header->ctr_event = event->value; header->ctr_count = event->count; header->ctr_um = event->um; header->is_kernel = is_kernel; header->cg_to_is_kernel = cg_to_is_kernel; header->cpu_speed = cpu_speed; header->mtime = mtime; header->anon_start = anon_start; header->spu_profile = spu_samples; header->embedded_offset = embed_offset; header->cg_to_anon_start = cg_to_anon_start; } oprofile-0.9.9/daemon/oprofiled.h0000664000076400007640000000312212175510133013676 00000000000000/** * @file daemon/oprofiled.h * Initialisation and setup * * @remark Copyright 2002, 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie * Modified by Aravind Menon for Xen * These modifications are: * Copyright (C) 2005 Hewlett-Packard Co. */ #ifndef OPROFILED_H #include struct oprofiled_ops { void (*init)(void); void (*start)(void); void (*exit)(void); }; /** * opd_open_logfile - open the log file * * Open the logfile on stdout and stderr. This function * assumes that 1 and 2 are the lowest close()d file * descriptors. Failure to open on either descriptor is * a fatal error. */ void opd_open_logfile(void); /** * is_image_ignored - check if we must ignore this image * @param name the name to check * * Return true if the image should not be profiled */ int is_image_ignored(char const * name); /** return the int in the given oprofilefs file, error is fatal if !is_fatal */ int opd_read_fs_int(char const * path, char const * name, int is_fatal); /** global variable positioned by signal handler */ extern sig_atomic_t signal_alarm; extern sig_atomic_t signal_hup; extern sig_atomic_t signal_term; extern sig_atomic_t signal_child; extern sig_atomic_t signal_usr1; extern sig_atomic_t signal_usr2; extern unsigned int op_nr_counters; extern int separate_lib; extern int separate_kernel; extern int separate_thread; extern int separate_cpu; extern int no_vmlinux; extern char * vmlinux; extern char * kernel_range; extern int no_xen; extern char * xenimage; extern char * xen_range; #endif /* OPROFILED_H */ oprofile-0.9.9/daemon/opd_perfmon.h0000664000076400007640000000550712175510133014234 00000000000000/** * @file opd_perfmon.h * perfmonctl() handling * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon */ #ifndef OPD_PERFMON_H #define OPD_PERFMON_H #ifdef __ia64__ #include void perfmon_init(void); void perfmon_exit(void); void perfmon_start(void); void perfmon_stop(void); /* The following is from asm/perfmon.h. When it's installed on * enough boxes, we can remove this and include the platform * perfmon.h */ typedef unsigned char pfm_uuid_t[16]; /* custom sampling buffer identifier type */ /* * Request structure used to define a context */ typedef struct { pfm_uuid_t ctx_smpl_buf_id; /* which buffer format to use (if needed) */ unsigned long ctx_flags; /* noblock/block */ unsigned short ctx_nextra_sets; /* number of extra event sets (you always get 1) */ unsigned short ctx_reserved1; /* for future use */ int ctx_fd; /* return arg: unique identification for context */ void *ctx_smpl_vaddr; /* return arg: virtual address of sampling buffer, is used */ unsigned long ctx_reserved2[11];/* for future use */ } pfarg_context_t; /* * Request structure used to write/read a PMC or PMD */ typedef struct { unsigned int reg_num; /* which register */ unsigned short reg_set; /* event set for this register */ unsigned short reg_reserved1; /* for future use */ unsigned long reg_value; /* initial pmc/pmd value */ unsigned long reg_flags; /* input: pmc/pmd flags, return: reg error */ unsigned long reg_long_reset; /* reset after buffer overflow notification */ unsigned long reg_short_reset; /* reset after counter overflow */ unsigned long reg_reset_pmds[4]; /* which other counters to reset on overflow */ unsigned long reg_random_seed; /* seed value when randomization is used */ unsigned long reg_random_mask; /* bitmask used to limit random value */ unsigned long reg_last_reset_val;/* return: PMD last reset value */ unsigned long reg_smpl_pmds[4]; /* which pmds are accessed when PMC overflows */ unsigned long reg_smpl_eventid; /* opaque sampling event identifier */ unsigned long reg_reserved2[3]; /* for future use */ } pfarg_reg_t; typedef struct { pid_t load_pid; /* process to load the context into */ unsigned short load_set; /* first event set to load */ unsigned short load_reserved1; /* for future use */ unsigned long load_reserved2[3]; /* for future use */ } pfarg_load_t; #define PFM_WRITE_PMCS 0x01 #define PFM_WRITE_PMDS 0x02 #define PFM_STOP 0x04 #define PFM_START 0x05 #define PFM_CREATE_CONTEXT 0x08 #define PFM_LOAD_CONTEXT 0x10 #define PFM_FL_SYSTEM_WIDE 0x02 #else void perfmon_init(void) { } void perfmon_exit(void) { } void perfmon_start(void) { } void perfmon_stop(void) { } #endif /* __ia64__ */ #endif /* OPD_PERFMON_H */ oprofile-0.9.9/daemon/Makefile.in0000664000076400007640000004650112175510233013620 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ bin_PROGRAMS = oprofiled$(EXEEXT) subdir = daemon DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am_oprofiled_OBJECTS = init.$(OBJEXT) oprofiled.$(OBJEXT) \ opd_stats.$(OBJEXT) opd_pipe.$(OBJEXT) opd_sfile.$(OBJEXT) \ opd_kernel.$(OBJEXT) opd_trans.$(OBJEXT) opd_cookie.$(OBJEXT) \ opd_events.$(OBJEXT) opd_mangling.$(OBJEXT) \ opd_perfmon.$(OBJEXT) opd_anon.$(OBJEXT) opd_spu.$(OBJEXT) \ opd_extended.$(OBJEXT) opd_ibs.$(OBJEXT) \ opd_ibs_trans.$(OBJEXT) oprofiled_OBJECTS = $(am_oprofiled_OBJECTS) oprofiled_DEPENDENCIES = ../libabi/libabi.a ../libdb/libodb.a \ ../libop/libop.a ../libutil/libutil.a DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(oprofiled_SOURCES) DIST_SOURCES = $(oprofiled_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @POPT_LIBS@ @LIBERTY_LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ oprofiled_SOURCES = \ init.c \ oprofiled.c \ oprofiled.h \ opd_stats.c \ opd_pipe.c \ opd_pipe.h \ opd_sfile.c \ opd_sfile.h \ opd_kernel.c \ opd_kernel.h \ opd_trans.c \ opd_trans.h \ opd_printf.h \ opd_stats.h \ opd_cookie.c \ opd_cookie.h \ opd_events.c \ opd_events.h \ opd_interface.h \ opd_mangling.c \ opd_mangling.h \ opd_perfmon.h \ opd_perfmon.c \ opd_anon.h \ opd_anon.c \ opd_spu.c \ opd_extended.h \ opd_extended.c \ opd_ibs.h \ opd_ibs.c \ opd_ibs_macro.h \ opd_ibs_trans.h \ opd_ibs_trans.c AM_CPPFLAGS = \ -I ${top_srcdir}/libabi \ -I ${top_srcdir}/libutil \ -I ${top_srcdir}/libop \ -I ${top_srcdir}/libdb \ @OP_CPPFLAGS@ # -fno-omit-frame-pointer needed for daemon build: see ChangeLog-2004 02-23 AM_CFLAGS = @OP_CFLAGS@ -fno-omit-frame-pointer AM_LDFLAGS = @OP_LDFLAGS@ oprofiled_LDADD = \ ../libabi/libabi.a \ ../libdb/libodb.a \ ../libop/libop.a \ ../libutil/libutil.a oprofiled_LINK = $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign daemon/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign daemon/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p || test -f $$p1; \ then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list oprofiled$(EXEEXT): $(oprofiled_OBJECTS) $(oprofiled_DEPENDENCIES) @rm -f oprofiled$(EXEEXT) $(oprofiled_LINK) $(oprofiled_OBJECTS) $(oprofiled_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/init.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/opd_anon.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/opd_cookie.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/opd_events.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/opd_extended.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/opd_ibs.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/opd_ibs_trans.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/opd_kernel.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/opd_mangling.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/opd_perfmon.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/opd_pipe.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/opd_sfile.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/opd_spu.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/opd_stats.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/opd_trans.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/oprofiled.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic clean-libtool ctags distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-binPROGRAMS install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am \ uninstall-binPROGRAMS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/daemon/opd_ibs_macro.h0000664000076400007640000003736512175510133014533 00000000000000/** * @file daemon/opd_ibs_macro.h * AMD Instruction Based Sampling (IBS) related macro. * * @remark Copyright 2008-2010 OProfile authors * @remark Read the file COPYING * * @author Jason Yeh * @author Paul Drongowski * @author Suravee Suthikulpanit * Copyright (c) 2008 Advanced Micro Devices, Inc. */ #ifndef OPD_IBS_MACRO_H #define OPD_IBS_MACRO_H /** * The following defines are bit masks that are used to select * IBS fetch event flags and values at the * MSRC001_1030 IBS Fetch Control Register (IbsFetchCtl) */ #define FETCH_MASK_LATENCY 0x0000ffff #define FETCH_MASK_COMPLETE 0x00040000 #define FETCH_MASK_IC_MISS 0x00080000 #define FETCH_MASK_PHY_ADDR 0x00100000 #define FETCH_MASK_PG_SIZE 0x00600000 #define FETCH_MASK_L1_MISS 0x00800000 #define FETCH_MASK_L2_MISS 0x01000000 #define FETCH_MASK_KILLED \ (FETCH_MASK_L1_MISS|FETCH_MASK_L2_MISS|FETCH_MASK_PHY_ADDR|\ FETCH_MASK_COMPLETE|FETCH_MASK_IC_MISS) /** * The following defines are bit masks that are used to select * IBS op event flags and values at the MSR level. */ /* MSRC001_1035 IBS Op Data Register (IbsOpData) */ #define BR_MASK_RETIRE 0x0000ffff #define MASK_RIP_INVALID 0x00000040 #define BR_MASK_BRN_RET 0x00000020 #define BR_MASK_BRN_MISP 0x00000010 #define BR_MASK_BRN_TAKEN 0x00000008 #define BR_MASK_RETURN 0x00000004 #define BR_MASK_MISP_RETURN 0x00000002 #define BR_MASK_BRN_RESYNC 0x00000001 /* MSRC001_1036 IBS Op Data Register (IbsOpData2) */ #define NB_MASK_L3_STATE 0x00000020 #define NB_MASK_REQ_DST_PROC 0x00000010 #define NB_MASK_REQ_DATA_SRC 0x00000007 /* MSRC001_1037 IBS Op Data Register (IbsOpData3) */ #define DC_MASK_L2_HIT_1G 0x00080000 #define DC_MASK_PHY_ADDR_VALID 0x00040000 #define DC_MASK_LIN_ADDR_VALID 0x00020000 #define DC_MASK_MAB_HIT 0x00010000 #define DC_MASK_LOCKED_OP 0x00008000 #define DC_MASK_UC_MEM_ACCESS 0x00004000 #define DC_MASK_WC_MEM_ACCESS 0x00002000 #define DC_MASK_ST_TO_LD_CANCEL 0x00001000 #define DC_MASK_ST_TO_LD_FOR 0x00000800 #define DC_MASK_ST_BANK_CONFLICT 0x00000400 #define DC_MASK_LD_BANK_CONFLICT 0x00000200 #define DC_MASK_MISALIGN_ACCESS 0x00000100 #define DC_MASK_DC_MISS 0x00000080 #define DC_MASK_L2_HIT_2M 0x00000040 #define DC_MASK_L1_HIT_1G 0x00000020 #define DC_MASK_L1_HIT_2M 0x00000010 #define DC_MASK_L2_TLB_MISS 0x00000008 #define DC_MASK_L1_TLB_MISS 0x00000004 #define DC_MASK_STORE_OP 0x00000002 #define DC_MASK_LOAD_OP 0x00000001 /** * IBS derived events: * * IBS derived events are identified by event select values which are * similar to the event select values that identify performance monitoring * counter (PMC) events. Event select values for IBS derived events begin * at 0xf000. * * The definitions in this file *must* match definitions * of IBS derived events. More information * about IBS derived events is given in the Software Oprimization * Guide. */ /** * The following defines associate a 16-bit select value with an IBS * derived fetch event. */ #define DE_IBS_FETCH_ALL 0xf000 #define DE_IBS_FETCH_KILLED 0xf001 #define DE_IBS_FETCH_ATTEMPTED 0xf002 #define DE_IBS_FETCH_COMPLETED 0xf003 #define DE_IBS_FETCH_ABORTED 0xf004 #define DE_IBS_L1_ITLB_HIT 0xf005 #define DE_IBS_ITLB_L1M_L2H 0xf006 #define DE_IBS_ITLB_L1M_L2M 0xf007 #define DE_IBS_IC_MISS 0xf008 #define DE_IBS_IC_HIT 0xf009 #define DE_IBS_FETCH_4K_PAGE 0xf00a #define DE_IBS_FETCH_2M_PAGE 0xf00b #define DE_IBS_FETCH_1G_PAGE 0xf00c #define DE_IBS_FETCH_XX_PAGE 0xf00d #define DE_IBS_FETCH_LATENCY 0xf00e #define IBS_FETCH_BASE 0xf000 #define IBS_FETCH_END 0xf00e #define IBS_FETCH_MAX (IBS_FETCH_END - IBS_FETCH_BASE + 1) #define IS_IBS_FETCH(x) (IBS_FETCH_BASE <= x && x <= IBS_FETCH_END) #define IBS_FETCH_OFFSET(x) (x - IBS_FETCH_BASE) #define CHECK_FETCH_SELECTED_FLAG(x) if ( selected_flag & (1 << IBS_FETCH_OFFSET(x))) /** * The following defines associate a 16-bit select value with an IBS * derived branch/return macro-op event. */ #define DE_IBS_OP_ALL 0xf100 #define DE_IBS_OP_TAG_TO_RETIRE 0xf101 #define DE_IBS_OP_COMP_TO_RETIRE 0xf102 #define DE_IBS_BRANCH_RETIRED 0xf103 #define DE_IBS_BRANCH_MISP 0xf104 #define DE_IBS_BRANCH_TAKEN 0xf105 #define DE_IBS_BRANCH_MISP_TAKEN 0xf106 #define DE_IBS_RETURN 0xf107 #define DE_IBS_RETURN_MISP 0xf108 #define DE_IBS_RESYNC 0xf109 #define IBS_OP_BASE 0xf100 #define IBS_OP_END 0xf109 #define IBS_OP_MAX (IBS_OP_END - IBS_OP_BASE + 1) #define IS_IBS_OP(x) (IBS_OP_BASE <= x && x <= IBS_OP_END) #define IBS_OP_OFFSET(x) (x - IBS_OP_BASE) #define CHECK_OP_SELECTED_FLAG(x) if ( selected_flag & (1 << IBS_OP_OFFSET(x))) /** * The following defines associate a 16-bit select value with an IBS * derived load/store event. */ #define DE_IBS_LS_ALL_OP 0xf200 #define DE_IBS_LS_LOAD_OP 0xf201 #define DE_IBS_LS_STORE_OP 0xf202 #define DE_IBS_LS_DTLB_L1H 0xf203 #define DE_IBS_LS_DTLB_L1M_L2H 0xf204 #define DE_IBS_LS_DTLB_L1M_L2M 0xf205 #define DE_IBS_LS_DC_MISS 0xf206 #define DE_IBS_LS_DC_HIT 0xf207 #define DE_IBS_LS_MISALIGNED 0xf208 #define DE_IBS_LS_BNK_CONF_LOAD 0xf209 #define DE_IBS_LS_BNK_CONF_STORE 0xf20a #define DE_IBS_LS_STL_FORWARDED 0xf20b #define DE_IBS_LS_STL_CANCELLED 0xf20c #define DE_IBS_LS_UC_MEM_ACCESS 0xf20d #define DE_IBS_LS_WC_MEM_ACCESS 0xf20e #define DE_IBS_LS_LOCKED_OP 0xf20f #define DE_IBS_LS_MAB_HIT 0xf210 #define DE_IBS_LS_L1_DTLB_4K 0xf211 #define DE_IBS_LS_L1_DTLB_2M 0xf212 #define DE_IBS_LS_L1_DTLB_1G 0xf213 #define DE_IBS_LS_L1_DTLB_RES 0xf214 #define DE_IBS_LS_L2_DTLB_4K 0xf215 #define DE_IBS_LS_L2_DTLB_2M 0xf216 #define DE_IBS_LS_L2_DTLB_1G 0xf217 #define DE_IBS_LS_L2_DTLB_RES2 0xf218 #define DE_IBS_LS_DC_LOAD_LAT 0xf219 #define IBS_OP_LS_BASE 0xf200 #define IBS_OP_LS_END 0xf219 #define IBS_OP_LS_MAX (IBS_OP_LS_END - IBS_OP_LS_BASE + 1) #define IS_IBS_OP_LS(x) (IBS_OP_LS_BASE <= x && x <= IBS_OP_LS_END) #define IBS_OP_LS_OFFSET(x) (x - IBS_OP_LS_BASE) #define CHECK_OP_LS_SELECTED_FLAG(x) if ( selected_flag & (1 << IBS_OP_LS_OFFSET(x))) /** * The following defines associate a 16-bit select value with an IBS * derived Northbridge (NB) event. */ #define DE_IBS_NB_LOCAL 0xf240 #define DE_IBS_NB_REMOTE 0xf241 #define DE_IBS_NB_LOCAL_L3 0xf242 #define DE_IBS_NB_LOCAL_CACHE 0xf243 #define DE_IBS_NB_REMOTE_CACHE 0xf244 #define DE_IBS_NB_LOCAL_DRAM 0xf245 #define DE_IBS_NB_REMOTE_DRAM 0xf246 #define DE_IBS_NB_LOCAL_OTHER 0xf247 #define DE_IBS_NB_REMOTE_OTHER 0xf248 #define DE_IBS_NB_CACHE_STATE_M 0xf249 #define DE_IBS_NB_CACHE_STATE_O 0xf24a #define DE_IBS_NB_LOCAL_LATENCY 0xf24b #define DE_IBS_NB_REMOTE_LATENCY 0xf24c #define IBS_OP_NB_BASE 0xf240 #define IBS_OP_NB_END 0xf24c #define IBS_OP_NB_MAX (IBS_OP_NB_END - IBS_OP_NB_BASE + 1) #define IS_IBS_OP_NB(x) (IBS_OP_NB_BASE <= x && x <= IBS_OP_NB_END) #define IBS_OP_NB_OFFSET(x) (x - IBS_OP_NB_BASE) #define CHECK_OP_NB_SELECTED_FLAG(x) if ( selected_flag & (1 << IBS_OP_NB_OFFSET(x))) #define OP_MAX_IBS_COUNTERS (IBS_FETCH_MAX + IBS_OP_MAX + IBS_OP_LS_MAX + IBS_OP_NB_MAX) /** * These macro decodes IBS hardware-level event flags and fields. * Translation results are either zero (false) or non-zero (true), except * the fetch latency, which is a 16-bit cycle count, and the fetch page size * field, which is a 2-bit unsigned integer. */ /** Bits 47:32 IbsFetchLat: instruction fetch latency */ #define IBS_FETCH_FETCH_LATENCY(x) ((unsigned short)(x->ibs_fetch_ctl_high & FETCH_MASK_LATENCY)) /** Bit 50 IbsFetchComp: instruction fetch complete. */ #define IBS_FETCH_FETCH_COMPLETION(x) ((x->ibs_fetch_ctl_high & FETCH_MASK_COMPLETE) != 0) /** Bit 51 IbsIcMiss: instruction cache miss. */ #define IBS_FETCH_INST_CACHE_MISS(x) ((x->ibs_fetch_ctl_high & FETCH_MASK_IC_MISS) != 0) /** Bit 52 IbsPhyAddrValid: instruction fetch physical address valid. */ #define IBS_FETCH_PHYS_ADDR_VALID(x) ((x->ibs_fetch_ctl_high & FETCH_MASK_PHY_ADDR) != 0) enum IBSL1PAGESIZE { L1TLB4K = 0, L1TLB2M, L1TLB1G, L1TLB_INVALID }; /** Bits 54:53 IbsL1TlbPgSz: instruction cache L1TLB page size. */ #define IBS_FETCH_TLB_PAGE_SIZE(x) ((unsigned short)((x->ibs_fetch_ctl_high >> 21) & 0x3)) #define IBS_FETCH_TLB_PAGE_SIZE_4K(x) (IBS_FETCH_TLB_PAGE_SIZE(x) == L1TLB4K) #define IBS_FETCH_TLB_PAGE_SIZE_2M(x) (IBS_FETCH_TLB_PAGE_SIZE(x) == L1TLB2M) #define IBS_FETCH_TLB_PAGE_SIZE_1G(x) (IBS_FETCH_TLB_PAGE_SIZE(x) == L1TLB1G) /** Bit 55 IbsL1TlbMiss: instruction cache L1TLB miss. */ #define IBS_FETCH_M_L1_TLB_MISS(x) ((x->ibs_fetch_ctl_high & FETCH_MASK_L1_MISS) != 0) /** Bit 56 IbsL2TlbMiss: instruction cache L2TLB miss. */ #define IBS_FETCH_L2_TLB_MISS(x) ((x->ibs_fetch_ctl_high & FETCH_MASK_L2_MISS) != 0) /** A fetch is a killed fetch if all the masked bits are clear */ #define IBS_FETCH_KILLED(x) ((x->ibs_fetch_ctl_high & FETCH_MASK_KILLED) == 0) #define IBS_FETCH_INST_CACHE_HIT(x) (IBS_FETCH_FETCH_COMPLETION(x) && !IBS_FETCH_INST_CACHE_MISS(x)) #define IBS_FETCH_L1_TLB_HIT(x) (!IBS_FETCH_M_L1_TLB_MISS(x) && IBS_FETCH_PHYS_ADDR_VALID(x)) #define IBS_FETCH_ITLB_L1M_L2H(x) (IBS_FETCH_M_L1_TLB_MISS(x) && !IBS_FETCH_L2_TLB_MISS(x)) #define IBS_FETCH_ITLB_L1M_L2M(x) (IBS_FETCH_M_L1_TLB_MISS(x) && IBS_FETCH_L2_TLB_MISS(x)) /** * These macros translates IBS op event data from its hardware-level * representation .It hides the MSR layout of IBS op data. */ /** * MSRC001_1035 IBS OP Data Register (IbsOpData) * * 15:0 IbsCompToRetCtr: macro-op completion to retire count */ #define IBS_OP_COM_TO_RETIRE_CYCLES(x) ((unsigned short)(x->ibs_op_data1_low & BR_MASK_RETIRE)) /** 31:16 tag_to_retire_cycles : macro-op tag to retire count. */ #define IBS_OP_TAG_TO_RETIRE_CYCLES(x) ((unsigned short)((x->ibs_op_data1_low >> 16) & BR_MASK_RETIRE)) /** 32 op_branch_resync : resync macro-op. */ #define IBS_OP_BRANCH_RESYNC(x) ((x->ibs_op_data1_high & BR_MASK_BRN_RESYNC) != 0) /** 33 op_mispredict_return : mispredicted return macro-op. */ #define IBS_OP_MISPREDICT_RETURN(x) ((x->ibs_op_data1_high & BR_MASK_MISP_RETURN) != 0) /** 34 IbsOpReturn: return macro-op. */ #define IBS_OP_RETURN(x) ((x->ibs_op_data1_high & BR_MASK_RETURN) != 0) /** 35 IbsOpBrnTaken: taken branch macro-op. */ #define IBS_OP_BRANCH_TAKEN(x) ((x->ibs_op_data1_high & BR_MASK_BRN_TAKEN) != 0) /** 36 IbsOpBrnMisp: mispredicted branch macro-op. */ #define IBS_OP_BRANCH_MISPREDICT(x) ((x->ibs_op_data1_high & BR_MASK_BRN_MISP) != 0) /** 37 IbsOpBrnRet: branch macro-op retired. */ #define IBS_OP_BRANCH_RETIRED(x) ((x->ibs_op_data1_high & BR_MASK_BRN_RET) != 0) /** 38 IbsRipInvalid: RIP invalid. */ #define IBS_OP_RIP_INVALID(x) ((x->ibs_op_data1_high & MASK_RIP_INVALID) != 0) /** * MSRC001_1036 IBS Op Data 2 Register (IbsOpData2) * * 5 NbIbsReqCacheHitSt: IBS L3 cache state */ #define IBS_OP_NB_IBS_CACHE_HIT_ST(x) ((x->ibs_op_data2_low & NB_MASK_L3_STATE) != 0) /** 4 NbIbsReqDstProc: IBS request destination processor */ #define IBS_OP_NB_IBS_REQ_DST_PROC(x) ((x->ibs_op_data2_low & NB_MASK_REQ_DST_PROC) != 0) /** 2:0 NbIbsReqSrc: Northbridge IBS request data source */ #define IBS_OP_NB_IBS_REQ_SRC(x) ((unsigned char)(x->ibs_op_data2_low & NB_MASK_REQ_DATA_SRC)) #define IBS_OP_NB_IBS_REQ_SRC_01(x) (IBS_OP_NB_IBS_REQ_SRC(x) == 0x01) #define IBS_OP_NB_IBS_REQ_SRC_02(x) (IBS_OP_NB_IBS_REQ_SRC(x) == 0x02) #define IBS_OP_NB_IBS_REQ_SRC_03(x) (IBS_OP_NB_IBS_REQ_SRC(x) == 0x03) #define IBS_OP_NB_IBS_REQ_SRC_07(x) (IBS_OP_NB_IBS_REQ_SRC(x) == 0x07) /** * MSRC001_1037 IBS Op Data3 Register * * Bits 47:32 IbsDcMissLat */ #define IBS_OP_DC_MISS_LATENCY(x) ((unsigned short)(x->ibs_op_data3_high & 0xffff)) /** 0 IbsLdOp: Load op */ #define IBS_OP_IBS_LD_OP(x) ((x->ibs_op_data3_low & DC_MASK_LOAD_OP) != 0) /** 1 IbsStOp: Store op */ #define IBS_OP_IBS_ST_OP(x) ((x->ibs_op_data3_low & DC_MASK_STORE_OP) != 0) /** 2 ibs_dc_l1_tlb_miss: Data cache L1TLB miss */ #define IBS_OP_IBS_DC_L1_TLB_MISS(x) ((x->ibs_op_data3_low & DC_MASK_L1_TLB_MISS) != 0) /** 3 ibs_dc_l2_tlb_miss: Data cache L2TLB miss */ #define IBS_OP_IBS_DC_L2_TLB_MISS(x) ((x->ibs_op_data3_low & DC_MASK_L2_TLB_MISS) != 0) /** 4 IbsDcL1tlbHit2M: Data cache L1TLB hit in 2M page */ #define IBS_OP_IBS_DC_L1_TLB_HIT_2MB(x) ((x->ibs_op_data3_low & DC_MASK_L1_HIT_2M) != 0) /** 5 ibs_dc_l1_tlb_hit_1gb: Data cache L1TLB hit in 1G page */ #define IBS_OP_IBS_DC_L1_TLB_HIT_1GB(x) ((x->ibs_op_data3_low & DC_MASK_L1_HIT_1G) != 0) /** 6 ibs_dc_l2_tlb_hit_2mb: Data cache L2TLB hit in 2M page */ #define IBS_OP_IBS_DC_L2_TLB_HIT_2MB(x) ((x->ibs_op_data3_low & DC_MASK_L2_HIT_2M) != 0) /** 7 ibs_dc_miss: Data cache miss */ #define IBS_OP_IBS_DC_MISS(x) ((x->ibs_op_data3_low & DC_MASK_DC_MISS) != 0) /** 8 ibs_dc_miss_acc: Misaligned access */ #define IBS_OP_IBS_DC_MISS_ACC(x) ((x->ibs_op_data3_low & DC_MASK_MISALIGN_ACCESS) != 0) /** 9 ibs_dc_ld_bnk_con: Bank conflict on load operation */ #define IBS_OP_IBS_DC_LD_BNK_CON(x) ((x->ibs_op_data3_low & DC_MASK_LD_BANK_CONFLICT) != 0) /** 10 ibs_dc_st_bnk_con: Bank conflict on store operation */ #define IBS_OP_IBS_DC_ST_BNK_CON(x) ((x->ibs_op_data3_low & DC_MASK_ST_BANK_CONFLICT) != 0) /** 11 ibs_dc_st_to_ld_fwd : Data forwarded from store to load operation */ #define IBS_OP_IBS_DC_ST_TO_LD_FWD(x) ((x->ibs_op_data3_low & DC_MASK_ST_TO_LD_FOR) != 0) /** 12 ibs_dc_st_to_ld_can: Data forwarding from store to load operation cancelled */ #define IBS_OP_IBS_DC_ST_TO_LD_CAN(x) ((x->ibs_op_data3_low & DC_MASK_ST_TO_LD_CANCEL) != 0) /** 13 ibs_dc_wc_mem_acc : WC memory access */ #define IBS_OP_IBS_DC_WC_MEM_ACC(x) ((x->ibs_op_data3_low & DC_MASK_WC_MEM_ACCESS) != 0) /** 14 ibs_dc_uc_mem_acc : UC memory access */ #define IBS_OP_IBS_DC_UC_MEM_ACC(x) ((x->ibs_op_data3_low & DC_MASK_UC_MEM_ACCESS) != 0) /** 15 ibs_locked_op: Locked operation */ #define IBS_OP_IBS_LOCKED_OP(x) ((x->ibs_op_data3_low & DC_MASK_LOCKED_OP) != 0) /** 16 ibs_dc_mab_hit : MAB hit */ #define IBS_OP_IBS_DC_MAB_HIT(x) ((x->ibs_op_data3_low & DC_MASK_MAB_HIT) != 0) /** 17 IbsDcLinAddrValid: Data cache linear address valid */ #define IBS_OP_IBS_DC_LIN_ADDR_VALID(x) ((x->ibs_op_data3_low & DC_MASK_LIN_ADDR_VALID) != 0) /** 18 ibs_dc_phy_addr_valid: Data cache physical address valid */ #define IBS_OP_IBS_DC_PHY_ADDR_VALID(x) ((x->ibs_op_data3_low & DC_MASK_PHY_ADDR_VALID) != 0) /** 19 ibs_dc_l2_tlb_hit_1gb: Data cache L2TLB hit in 1G page */ #define IBS_OP_IBS_DC_L2_TLB_HIT_1GB(x) ((x->ibs_op_data3_low & DC_MASK_L2_HIT_1G) != 0) /** * Aggregate the IBS derived event. Increase the * derived event count by one. */ #define AGG_IBS_EVENT(EV) opd_log_ibs_event(EV, trans) /** * Aggregate the IBS latency/cycle counts. Increase the * derived event count by the specified count value. */ #define AGG_IBS_COUNT(EV, COUNT) opd_log_ibs_count(EV, trans, COUNT) #endif /*OPD_IBS_MACRO_H*/ oprofile-0.9.9/daemon/opd_anon.h0000664000076400007640000000171112175510133013512 00000000000000/** * @file opd_anon.h * Anonymous region handling. * * @remark Copyright 2005 OProfile authors * @remark Read the file COPYING * * @author John Levon */ #ifndef OPD_ANON_H #define OPD_ANON_H #include "op_types.h" #include "op_list.h" #include "opd_cookie.h" #include struct transient; /** * Shift useful bits into play for VMA hashing. */ #define VMA_SHIFT 13 /* Maximum size of the image name considered */ #define MAX_IMAGE_NAME_SIZE 20 struct anon_mapping { /** start of the mapping */ vma_t start; /** end of the mapping */ vma_t end; /** tgid of the app */ pid_t tgid; /** cookie of the app */ cookie_t app_cookie; /** hash list */ struct list_head list; /** lru list */ struct list_head lru_list; char name[MAX_IMAGE_NAME_SIZE+1]; }; /** * Try to find an anonymous mapping for the given pc/tgid pair. */ struct anon_mapping * find_anon_mapping(struct transient *); void anon_init(void); #endif /* OPD_ANON_H */ oprofile-0.9.9/daemon/opd_interface.h0000664000076400007640000000243512175510133014523 00000000000000/** * @file opd_interface.h * * Module / user space interface for 2.6 kernels and above * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie * Modified by Aravind Menon for Xen * These modifications are: * Copyright (C) 2005 Hewlett-Packard Co. */ #ifndef OPD_INTERFACE_H #define OPD_INTERFACE_H #define CTX_SWITCH_CODE 1 #define CPU_SWITCH_CODE 2 #define COOKIE_SWITCH_CODE 3 #define KERNEL_ENTER_SWITCH_CODE 4 #define USER_ENTER_SWITCH_CODE 5 #define MODULE_LOADED_CODE 6 #define CTX_TGID_CODE 7 #define TRACE_BEGIN_CODE 8 /* Code 9 used to be TRACE_END_CODE which is not used anymore */ /* Code 9 is now considered an unknown escape code */ #define XEN_ENTER_SWITCH_CODE 10 /* * Ugly work-around for the unfortunate collision between Xenoprof's * DOMAIN_SWITCH_CODE (in use on x86) and Cell's SPU_PROFILING_CODE * (in use with Power): */ #if defined(__powerpc__) #define SPU_PROFILING_CODE 11 #define SPU_CTX_SWITCH_CODE 12 #else #define DOMAIN_SWITCH_CODE 11 /* Code 12 is now considered an unknown escape code */ #endif /* AMD's Instruction-Based Sampling (IBS) escape code */ #define IBS_FETCH_SAMPLE 13 #define IBS_OP_SAMPLE 14 #define LAST_CODE 15 #endif /* OPD_INTERFACE_H */ oprofile-0.9.9/daemon/opd_mangling.h0000664000076400007640000000134312175510133014354 00000000000000/** * @file daemon/opd_mangling.h * Mangling and opening of sample files * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef OPD_MANGLING_H #define OPD_MANGLING_H #include "odb.h" struct sfile; /* * opd_open_sample_file - open a sample file * @param sf sfile to open sample file for * @param counter counter number * @param cg if this is a callgraph file * * Open image sample file for the sfile, counter * counter and set up memory mappings for it. * * Returns 0 on success. */ int opd_open_sample_file(odb_t *file, struct sfile *last, struct sfile * sf, int counter, int cg); #endif /* OPD_MANGLING_H */ oprofile-0.9.9/daemon/oprofiled.c0000664000076400007640000002676412175510133013712 00000000000000/** * @file daemon/oprofiled.c * Initialisation and setup * * @remark Copyright 2002, 2003 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie * Modified by Aravind Menon for Xen * These modifications are: * Copyright (C) 2005 Hewlett-Packard Co. */ #include "config.h" #include "oprofiled.h" #include "opd_printf.h" #include "opd_events.h" #include "opd_extended.h" #include "op_config.h" #include "op_version.h" #include "op_hw_config.h" #include "op_libiberty.h" #include "op_file.h" #include "op_abi.h" #include "op_string.h" #include "op_cpu_type.h" #include "op_popt.h" #include "op_lockfile.h" #include "op_list.h" #include "op_fileio.h" #include #include #include #include #include #include #include #include #include #include #include sig_atomic_t signal_alarm; sig_atomic_t signal_hup; sig_atomic_t signal_term; sig_atomic_t signal_child; sig_atomic_t signal_usr1; sig_atomic_t signal_usr2; uint op_nr_counters; op_cpu cpu_type; int no_event_ok; int vsfile; int vsamples; int varcs; int vmodule; int vmisc; int vext; int separate_lib; int separate_kernel; int separate_thread; int separate_cpu; int no_vmlinux; char * vmlinux; char * kernel_range; char * session_dir; int no_xen; char * xenimage; char * xen_range; static char * verbose; static char * binary_name_filter; static char * events; static char * ext_feature; static int showvers; static struct oprofiled_ops * opd_ops; extern struct oprofiled_ops opd_26_ops; #define OPD_IMAGE_FILTER_HASH_SIZE 32 static struct list_head images_filter[OPD_IMAGE_FILTER_HASH_SIZE]; static struct poptOption options[] = { { "session-dir", 0, POPT_ARG_STRING, &session_dir, 0, "place sample database in dir instead of default location", "/var/lib/oprofile", }, { "kernel-range", 'r', POPT_ARG_STRING, &kernel_range, 0, "Kernel VMA range", "start-end", }, { "vmlinux", 'k', POPT_ARG_STRING, &vmlinux, 0, "vmlinux kernel image", "file", }, { "no-vmlinux", 0, POPT_ARG_NONE, &no_vmlinux, 0, "vmlinux kernel image file not available", NULL, }, { "xen-range", 0, POPT_ARG_STRING, &xen_range, 0, "Xen VMA range", "start-end", }, { "xen-image", 0, POPT_ARG_STRING, &xenimage, 0, "Xen image", "file", }, { "image", 0, POPT_ARG_STRING, &binary_name_filter, 0, "image name filter", "profile these comma separated image" }, { "separate-lib", 0, POPT_ARG_INT, &separate_lib, 0, "separate library samples for each distinct application", "[0|1]", }, { "separate-kernel", 0, POPT_ARG_INT, &separate_kernel, 0, "separate kernel samples for each distinct application", "[0|1]", }, { "separate-thread", 0, POPT_ARG_INT, &separate_thread, 0, "thread-profiling mode", "[0|1]" }, { "separate-cpu", 0, POPT_ARG_INT, &separate_cpu, 0, "separate samples for each CPU", "[0|1]" }, { "events", 'e', POPT_ARG_STRING, &events, 0, "events list", "[events]" }, { "version", 'v', POPT_ARG_NONE, &showvers, 0, "show version", NULL, }, { "verbose", 'V', POPT_ARG_STRING, &verbose, 0, "be verbose in log file", "all,sfile,arcs,samples,module,misc", }, { "ext-feature", 'x', POPT_ARG_STRING, &ext_feature, 1, "enable extended feature", ":[args]", }, POPT_AUTOHELP { NULL, 0, 0, NULL, 0, NULL, NULL, }, }; void opd_open_logfile(void) { if (open(op_log_file, O_WRONLY|O_CREAT|O_NOCTTY|O_APPEND, 0644) == -1) { perror("oprofiled: couldn't re-open stdout: "); exit(EXIT_FAILURE); } if (dup2(1, 2) == -1) { perror("oprofiled: couldn't dup stdout to stderr: "); exit(EXIT_FAILURE); } } /** * opd_fork - fork and return as child * * fork() and exit the parent with _exit(). * Failure is fatal. */ static void opd_fork(void) { switch (fork()) { case -1: perror("oprofiled: fork() failed: "); exit(EXIT_FAILURE); break; case 0: break; default: /* parent */ _exit(EXIT_SUCCESS); break; } } static void opd_go_daemon(void) { opd_fork(); if (chdir(op_session_dir)) { fprintf(stderr, "oprofiled: opd_go_daemon: couldn't chdir to %s: %s", op_session_dir, strerror(errno)); exit(EXIT_FAILURE); } if (setsid() < 0) { perror("oprofiled: opd_go_daemon: couldn't setsid: "); exit(EXIT_FAILURE); } opd_fork(); } static void opd_write_abi(void) { char * cbuf; cbuf = xmalloc(strlen(op_session_dir) + 5); strcpy(cbuf, op_session_dir); strcat(cbuf, "/abi"); op_write_abi_to_file(cbuf); free(cbuf); } /** * opd_alarm - sync files and report stats */ static void opd_alarm(int val __attribute__((unused))) { signal_alarm = 1; } /* re-open logfile for logrotate */ static void opd_sighup(int val __attribute__((unused))) { signal_hup = 1; } static void opd_sigterm(int val __attribute__((unused))) { signal_term = 1; } static void opd_sigchild(int val __attribute__((unused))) { signal_child = 1; } static void opd_sigusr1(int val __attribute__((unused))) { signal_usr1 = 1; } static void opd_sigusr2(int val __attribute__((unused))) { signal_usr2 = 1; } static void opd_setup_signals(void) { struct sigaction act; act.sa_handler = opd_alarm; act.sa_flags = 0; sigemptyset(&act.sa_mask); if (sigaction(SIGALRM, &act, NULL)) { perror("oprofiled: install of SIGALRM handler failed: "); exit(EXIT_FAILURE); } act.sa_handler = opd_sighup; act.sa_flags = 0; sigemptyset(&act.sa_mask); sigaddset(&act.sa_mask, SIGALRM); if (sigaction(SIGHUP, &act, NULL)) { perror("oprofiled: install of SIGHUP handler failed: "); exit(EXIT_FAILURE); } act.sa_handler = opd_sigterm; act.sa_flags = 0; sigemptyset(&act.sa_mask); sigaddset(&act.sa_mask, SIGTERM); if (sigaction(SIGTERM, &act, NULL)) { perror("oprofiled: install of SIGTERM handler failed: "); exit(EXIT_FAILURE); } act.sa_handler = opd_sigchild; act.sa_flags = 0; sigemptyset(&act.sa_mask); sigaddset(&act.sa_mask, SIGCHLD); if (sigaction(SIGCHLD, &act, NULL)) { perror("oprofiled: install of SIGCHLD handler failed: "); exit(EXIT_FAILURE); } act.sa_handler = opd_sigusr1; act.sa_flags = 0; sigemptyset(&act.sa_mask); sigaddset(&act.sa_mask, SIGTERM); if (sigaction(SIGUSR1, &act, NULL)) { perror("oprofiled: install of SIGUSR1 handler failed: "); exit(EXIT_FAILURE); } act.sa_handler = opd_sigusr2; act.sa_flags = 0; sigemptyset(&act.sa_mask); sigaddset(&act.sa_mask, SIGTERM); if (sigaction(SIGUSR2, &act, NULL)) { perror("oprofiled: install of SIGUSR2 handler failed: "); exit(EXIT_FAILURE); } } struct opd_hashed_name { char * name; struct list_head next; }; static void add_image_filter(char const * name) { size_t hash; struct opd_hashed_name * elt = xmalloc(sizeof(struct opd_hashed_name)); elt->name = xmalloc(PATH_MAX); if (!realpath(name, elt->name)) { free(elt->name); free(elt); return; } hash = op_hash_string(elt->name); verbprintf(vmisc, "Adding to image filter: \"%s\"\n", elt->name); list_add(&elt->next, &images_filter[hash % OPD_IMAGE_FILTER_HASH_SIZE]); } static void opd_parse_image_filter(void) { size_t i; char const * last = binary_name_filter; char const * cur = binary_name_filter; if (!binary_name_filter) return; for (i = 0; i < OPD_IMAGE_FILTER_HASH_SIZE; ++i) list_init(&images_filter[i]); while ((cur = strchr(last, ',')) != NULL) { char * tmp = op_xstrndup(last, cur - last); add_image_filter(tmp); free(tmp); last = cur + 1; } add_image_filter(last); } int is_image_ignored(char const * name) { size_t hash; struct list_head * pos; if (!binary_name_filter) return 0; hash = op_hash_string(name); list_for_each(pos, &images_filter[hash % OPD_IMAGE_FILTER_HASH_SIZE]) { struct opd_hashed_name * hashed_name = list_entry(pos, struct opd_hashed_name, next); if (!strcmp(hashed_name->name, name)) return 0; } return 1; } /** return the int in the given oprofilefs file */ int opd_read_fs_int(char const * path, char const * name, int fatal) { char filename[PATH_MAX + 1]; snprintf(filename, PATH_MAX, "%s/%s", path, name); return op_read_int_from_file(filename, fatal); } static void opd_handle_verbose_option(char const * name) { if (!strcmp(name, "all")) { vsfile = 1; vsamples = 1; varcs = 1; vmodule = 1; vmisc = 1; vext= 1; } else if (!strcmp(name, "sfile")) { vsfile = 1; } else if (!strcmp(name, "arcs")) { varcs = 1; } else if (!strcmp(name, "samples")) { vsamples = 1; } else if (!strcmp(name, "module")) { vmodule = 1; } else if (!strcmp(name, "misc")) { vmisc = 1; } else if (!strcmp(name, "ext")) { vext= 1; } else { fprintf(stderr, "unknown verbose options\n"); exit(EXIT_FAILURE); } } static void opd_parse_verbose(void) { char const * last = verbose; char const * cur = verbose; if (!verbose) return; while ((cur = strchr(last, ',')) != NULL) { char * tmp = op_xstrndup(last, cur - last); opd_handle_verbose_option(tmp); free(tmp); last = cur + 1; } opd_handle_verbose_option(last); } static void opd_options(int argc, char const * argv[]) { poptContext optcon; char * tmp; optcon = op_poptGetContext(NULL, argc, argv, options, 0); if (showvers) show_version(argv[0]); opd_parse_verbose(); if (separate_kernel) separate_lib = 1; cpu_type = op_get_cpu_type(); op_nr_counters = op_get_nr_counters(cpu_type); if (!no_vmlinux) { if (!vmlinux || !strcmp("", vmlinux)) { fprintf(stderr, "oprofiled: no vmlinux specified.\n"); poptPrintHelp(optcon, stderr, 0); exit(EXIT_FAILURE); } /* canonicalise vmlinux filename. fix #637805 */ tmp = xmalloc(PATH_MAX); if (realpath(vmlinux, tmp)) vmlinux = tmp; else free(tmp); if (!kernel_range || !strcmp("", kernel_range)) { fprintf(stderr, "oprofiled: no kernel VMA range specified.\n"); poptPrintHelp(optcon, stderr, 0); exit(EXIT_FAILURE); } } if(opd_ext_initialize(ext_feature) != EXIT_SUCCESS) exit(EXIT_FAILURE); if (events == NULL && no_event_ok == 0) { fprintf(stderr, "oprofiled: no events specified.\n"); poptPrintHelp(optcon, stderr, 0); exit(EXIT_FAILURE); } if (!xenimage || !strcmp("", xenimage)) { no_xen = 1; } else { no_xen = 0; /* canonicalise xen image filename. */ tmp = xmalloc(PATH_MAX); if (realpath(xenimage, tmp)) xenimage = tmp; else free(tmp); if (!xen_range || !strcmp("", xen_range)) { fprintf(stderr, "oprofiled: no Xen VMA range specified.\n"); poptPrintHelp(optcon, stderr, 0); exit(EXIT_FAILURE); } } if (events != NULL) opd_parse_events(events); opd_parse_image_filter(); poptFreeContext(optcon); } /* determine what kernel we're running and which daemon * to use */ static struct oprofiled_ops * get_ops(void) { /* Support for 2.4 kernel was removed in oprofile 0.9.8, so * only "2.6" interface is supported. Later kernels also * comply with the 2.6 interface. */ switch (op_get_interface()) { case OP_INTERFACE_26: printf("Using 2.6+ OProfile kernel interface.\n"); return &opd_26_ops; default: break; } fprintf(stderr, "Couldn't determine kernel version.\n"); exit(EXIT_FAILURE); return NULL; } int main(int argc, char const * argv[]) { int err; struct rlimit rlim = { 2048, 2048 }; opd_options(argc, argv); init_op_config_dirs(session_dir); opd_setup_signals(); err = setrlimit(RLIMIT_NOFILE, &rlim); if (err) perror("warning: could not set RLIMIT_NOFILE to 2048: "); opd_write_abi(); opd_ops = get_ops(); opd_ops->init(); opd_go_daemon(); /* clean up every 10 minutes */ alarm(60 * 10); if (op_write_lock_file(op_lock_file)) { fprintf(stderr, "oprofiled: could not create lock file %s\n", op_lock_file); exit(EXIT_FAILURE); } opd_ops->start(); opd_ops->exit(); return 0; } oprofile-0.9.9/daemon/opd_trans.c0000664000076400007640000001720512175510133013706 00000000000000/** * @file daemon/opd_trans.c * Processing the sample buffer * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie * Modified by Aravind Menon for Xen * These modifications are: * Copyright (C) 2005 Hewlett-Packard Co. * * Modified by Maynard Johnson * These modifications are: * (C) Copyright IBM Corporation 2007 */ #include "opd_trans.h" #include "opd_kernel.h" #include "opd_sfile.h" #include "opd_anon.h" #include "opd_stats.h" #include "opd_printf.h" #include "opd_interface.h" #include #include #include #include #include #include extern size_t kernel_pointer_size; void clear_trans_last(struct transient * trans) { trans->last = NULL; trans->last_anon = NULL; } void clear_trans_current(struct transient * trans) { trans->current = NULL; trans->anon = NULL; } uint64_t pop_buffer_value(struct transient * trans) { uint64_t val; if (!trans->remaining) { fprintf(stderr, "BUG: popping empty buffer !\n"); abort(); } if (kernel_pointer_size == 4) { uint32_t const * lbuf = (void const *)trans->buffer; val = *lbuf; } else { uint64_t const * lbuf = (void const *)trans->buffer; val = *lbuf; } trans->remaining--; trans->buffer += kernel_pointer_size; return val; } int enough_remaining(struct transient * trans, size_t size) { if (trans->remaining >= size) return 1; verbprintf(vmisc, "Dangling ESCAPE_CODE.\n"); opd_stats[OPD_DANGLING_CODE]++; return 0; } static void opd_put_sample(struct transient * trans, unsigned long long pc) { unsigned long long event; if (!enough_remaining(trans, 1)) { trans->remaining = 0; return; } event = pop_buffer_value(trans); if (trans->tracing != TRACING_ON) trans->event = event; trans->pc = pc; /* sfile can change at each sample for kernel */ if (trans->in_kernel != 0) clear_trans_current(trans); if (!trans->in_kernel && trans->cookie == NO_COOKIE) trans->anon = find_anon_mapping(trans); /* get the current sfile if needed */ if (!trans->current) trans->current = sfile_find(trans); /* * can happen if kernel sample falls through the cracks, or if * it's a sample from an anon region we couldn't find */ if (!trans->current) goto out; if (trans->tracing != TRACING_ON) { opd_stats[OPD_SAMPLES]++; opd_stats[trans->in_kernel == 1 ? OPD_KERNEL : OPD_PROCESS]++; } /* FIXME: this logic is perhaps too harsh? */ if (trans->current->ignored || (trans->last && trans->last->ignored)) goto out; /* log the sample or arc */ sfile_log_sample(trans); out: /* switch to trace mode */ if (trans->tracing == TRACING_START) trans->tracing = TRACING_ON; update_trans_last(trans); } static void code_unknown(struct transient * trans __attribute__((unused))) { fprintf(stderr, "Unknown code !\n"); abort(); } static void code_ctx_switch(struct transient * trans) { clear_trans_current(trans); if (!enough_remaining(trans, 5)) { trans->remaining = 0; return; } trans->tid = pop_buffer_value(trans); trans->app_cookie = pop_buffer_value(trans); /* must be ESCAPE_CODE, CTX_TGID_CODE, tgid. Like this * because tgid was added later in a compatible manner. */ pop_buffer_value(trans); pop_buffer_value(trans); trans->tgid = pop_buffer_value(trans); if (vmisc) { char const * app = find_cookie(trans->app_cookie); printf("CTX_SWITCH to tid %lu, tgid %lu, cookie %llx(%s)\n", (unsigned long)trans->tid, (unsigned long)trans->tgid, trans->app_cookie, app ? app : "none"); } } static void code_cpu_switch(struct transient * trans) { clear_trans_current(trans); if (!enough_remaining(trans, 1)) { trans->remaining = 0; return; } trans->cpu = pop_buffer_value(trans); verbprintf(vmisc, "CPU_SWITCH to %lu\n", trans->cpu); } static void code_cookie_switch(struct transient * trans) { clear_trans_current(trans); if (!enough_remaining(trans, 1)) { trans->remaining = 0; return; } trans->cookie = pop_buffer_value(trans); if (vmisc) { char const * name = verbose_cookie(trans->cookie); verbprintf(vmisc, "COOKIE_SWITCH to cookie %s(%llx)\n", name, trans->cookie); } } static void code_kernel_enter(struct transient * trans) { verbprintf(vmisc, "KERNEL_ENTER_SWITCH to kernel\n"); trans->in_kernel = 1; clear_trans_current(trans); /* subtlety: we must keep trans->cookie cached, * even though it's meaningless for the kernel - * we won't necessarily get a cookie switch on * kernel exit. See comments in opd_sfile.c */ } static void code_user_enter(struct transient * trans) { verbprintf(vmisc, "USER_ENTER_SWITCH to user-space\n"); trans->in_kernel = 0; clear_trans_current(trans); clear_trans_last(trans); } static void code_module_loaded(struct transient * trans __attribute__((unused))) { verbprintf(vmodule, "MODULE_LOADED_CODE\n"); opd_reread_module_info(); clear_trans_current(trans); clear_trans_last(trans); } /* * This also implicitly signals the end of the previous * trace, so we never explicitly set TRACING_OFF when * processing a buffer. */ static void code_trace_begin(struct transient * trans) { verbprintf(varcs, "TRACE_BEGIN\n"); trans->tracing = TRACING_START; } static void code_xen_enter(struct transient * trans) { verbprintf(vmisc, "XEN_ENTER_SWITCH to xen\n"); trans->in_kernel = 1; trans->current = NULL; /* subtlety: we must keep trans->cookie cached, even though it's * meaningless for Xen - we won't necessarily get a cookie switch * on Xen exit. See comments in opd_sfile.c. It seems that we can * get away with in_kernel = 1 as long as we supply the correct * Xen image, and its address range in startup find_kernel_image * is modified to look in the Xen image also */ } extern void code_spu_profiling(struct transient * trans); extern void code_spu_ctx_switch(struct transient * trans); extern void code_ibs_fetch_sample(struct transient * trans); extern void code_ibs_op_sample(struct transient * trans); handler_t handlers[LAST_CODE + 1] = { &code_unknown, &code_ctx_switch, &code_cpu_switch, &code_cookie_switch, &code_kernel_enter, &code_user_enter, &code_module_loaded, /* tgid handled differently */ &code_unknown, &code_trace_begin, &code_unknown, &code_xen_enter, #if defined(__powerpc__) &code_spu_profiling, &code_spu_ctx_switch, #else &code_unknown, &code_unknown, #endif &code_ibs_fetch_sample, &code_ibs_op_sample, }; extern void (*special_processor)(struct transient *); void opd_process_samples(char const * buffer, size_t count) { struct transient trans = { .buffer = buffer, .remaining = count, .tracing = TRACING_OFF, .current = NULL, .last = NULL, .cookie = INVALID_COOKIE, .app_cookie = INVALID_COOKIE, .anon = NULL, .last_anon = NULL, .pc = 0, .last_pc = 0, .event = 0, .in_kernel = -1, .cpu = -1, .tid = -1, .embedded_offset = UNUSED_EMBEDDED_OFFSET, .tgid = -1, .ext = NULL }; /* FIXME: was uint64_t but it can't compile on alpha where uint64_t * is an unsigned long and below the printf("..." %llu\n", code) * generate a warning, this look like a stopper to use c98 types :/ */ unsigned long long code; if (special_processor) { special_processor(&trans); return; } while (trans.remaining) { code = pop_buffer_value(&trans); if (!is_escape_code(code)) { opd_put_sample(&trans, code); continue; } if (!trans.remaining) { verbprintf(vmisc, "Dangling ESCAPE_CODE.\n"); opd_stats[OPD_DANGLING_CODE]++; break; } // started with ESCAPE_CODE, next is type code = pop_buffer_value(&trans); if (code >= LAST_CODE) { fprintf(stderr, "Unknown code %llu\n", code); abort(); } handlers[code](&trans); } } oprofile-0.9.9/daemon/opd_anon.c0000664000076400007640000001251512175510133013511 00000000000000/** * @file opd_anon.c * Anonymous region handling. * * Our caching of maps has some problems: if we get tgid reuse, * and it's the same application, we might end up with wrong * maps. The same happens in an unmap-remap case. There's not much * we can do about this, we just hope it's not too common... * * What is relatively common is expanding anon maps, which leaves us * with lots of separate sample files. * * @remark Copyright 2005 OProfile authors * @remark Read the file COPYING * * @author John Levon * @Modifications Gisle Dankel */ #include "opd_anon.h" #include "opd_trans.h" #include "opd_sfile.h" #include "opd_printf.h" #include "op_libiberty.h" #include #include #include #include #define HASH_SIZE 1024 #define HASH_BITS (HASH_SIZE - 1) /* * Note that this value is tempered by the fact that when we miss in the * anon cache, we'll tear down all the mappings for that tgid. Thus, LRU * of a mapping can potentially clear out a much larger number of * mappings. */ #define LRU_SIZE 8192 #define LRU_AMOUNT (LRU_SIZE/8) static struct list_head hashes[HASH_SIZE]; static struct list_head lru; static size_t nr_lru; static void do_lru(struct transient * trans) { size_t nr_to_kill = LRU_AMOUNT; struct list_head * pos; struct list_head * pos2; struct anon_mapping * entry; list_for_each_safe(pos, pos2, &lru) { entry = list_entry(pos, struct anon_mapping, lru_list); if (trans->anon == entry) clear_trans_current(trans); if (trans->last_anon == entry) clear_trans_last(trans); sfile_clear_anon(entry); list_del(&entry->list); list_del(&entry->lru_list); --nr_lru; free(entry); if (nr_to_kill-- == 0) break; } } static unsigned long hash_anon(pid_t tgid, cookie_t app) { return ((app >> DCOOKIE_SHIFT) ^ (tgid >> 2)) & (HASH_SIZE - 1); } static void clear_anon_maps(struct transient * trans) { unsigned long hash = hash_anon(trans->tgid, trans->app_cookie); pid_t tgid = trans->tgid; cookie_t app = trans->app_cookie; struct list_head * pos; struct list_head * pos2; struct anon_mapping * entry; clear_trans_current(trans); list_for_each_safe(pos, pos2, &hashes[hash]) { entry = list_entry(pos, struct anon_mapping, list); if (entry->tgid == tgid && entry->app_cookie == app) { if (trans->last_anon == entry) clear_trans_last(trans); sfile_clear_anon(entry); list_del(&entry->list); list_del(&entry->lru_list); --nr_lru; free(entry); } } if (vmisc) { char const * name = verbose_cookie(app); printf("Cleared anon maps for tgid %u (%s).\n", tgid, name); } } static void add_anon_mapping(struct transient * trans, vma_t start, vma_t end, char * name) { unsigned long hash = hash_anon(trans->tgid, trans->app_cookie); struct anon_mapping * m = xmalloc(sizeof(struct anon_mapping)); m->tgid = trans->tgid; m->app_cookie = trans->app_cookie; m->start = start; m->end = end; strncpy(m->name, name, MAX_IMAGE_NAME_SIZE); list_add_tail(&m->list, &hashes[hash]); list_add_tail(&m->lru_list, &lru); if (++nr_lru == LRU_SIZE) do_lru(trans); if (vmisc) { char const * name = verbose_cookie(m->app_cookie); printf("Added anon map 0x%llx-0x%llx for tgid %u (%s).\n", start, end, m->tgid, name); } } /* 42000000-4212f000 r-xp 00000000 16:03 424334 /lib/tls/libc-2.3.2.so */ static void get_anon_maps(struct transient * trans) { FILE * fp = NULL; char buf[PATH_MAX]; vma_t start, end; int ret; snprintf(buf, PATH_MAX, "/proc/%d/maps", trans->tgid); fp = fopen(buf, "r"); if (!fp) return; while (fgets(buf, PATH_MAX, fp) != NULL) { char tmp[MAX_IMAGE_NAME_SIZE + 1]; char name[MAX_IMAGE_NAME_SIZE + 1]; /* Some anon maps have labels like * [heap], [stack], [vdso], [vsyscall] ... * Keep track of these labels. If a map has no name, call it "anon". * Ignore all mappings starting with "/" (file or shared memory object) */ strcpy(name, "anon"); ret = sscanf(buf, "%llx-%llx %20s %20s %20s %20s %20s", &start, &end, tmp, tmp, tmp, tmp, name); if (ret < 6 || name[0] == '/') continue; add_anon_mapping(trans, start, end, name); } fclose(fp); } static int anon_match(struct transient const * trans, struct anon_mapping const * anon) { if (!anon) return 0; if (trans->tgid != anon->tgid) return 0; if (trans->app_cookie != anon->app_cookie) return 0; if (trans->pc < anon->start) return 0; return (trans->pc < anon->end); } struct anon_mapping * find_anon_mapping(struct transient * trans) { unsigned long hash = hash_anon(trans->tgid, trans->app_cookie); struct list_head * pos; struct anon_mapping * entry; int tried = 0; if (anon_match(trans, trans->anon)) return (trans->anon); retry: list_for_each(pos, &hashes[hash]) { entry = list_entry(pos, struct anon_mapping, list); if (anon_match(trans, entry)) goto success; } if (!tried) { clear_anon_maps(trans); get_anon_maps(trans); tried = 1; goto retry; } return NULL; success: /* * Typically, there's one big mapping that matches. Let's go * faster. */ list_del(&entry->list); list_add(&entry->list, &hashes[hash]); verbprintf(vmisc, "Found range 0x%llx-0x%llx for tgid %u, pc %llx.\n", entry->start, entry->end, (unsigned int)entry->tgid, trans->pc); return entry; } void anon_init(void) { size_t i; for (i = 0; i < HASH_SIZE; ++i) list_init(&hashes[i]); list_init(&lru); } oprofile-0.9.9/daemon/opd_cookie.c0000664000076400007640000001137212175510133014027 00000000000000/** * @file opd_cookie.c * cookie -> name cache * * @remark Copyright 2002, 2005 OProfile authors * @remark Read the file COPYING * * @author John Levon */ #include "opd_cookie.h" #include "oprofiled.h" #include "op_list.h" #include "op_libiberty.h" #include #include #include #include #include #include #ifndef __NR_lookup_dcookie #if defined(__i386__) #define __NR_lookup_dcookie 253 #elif defined(__x86_64__) #define __NR_lookup_dcookie 212 #elif defined(__powerpc__) #define __NR_lookup_dcookie 235 #elif defined(__alpha__) #define __NR_lookup_dcookie 406 #elif defined(__hppa__) #define __NR_lookup_dcookie 223 #elif defined(__ia64__) #define __NR_lookup_dcookie 1237 #elif defined(__sparc__) /* untested */ #define __NR_lookup_dcookie 208 #elif defined(__s390__) || defined (__s390x__) #define __NR_lookup_dcookie 110 #elif defined(__arm__) #define __NR_lookup_dcookie (__NR_SYSCALL_BASE+249) #elif defined(__mips__) #include /* O32 */ #if _MIPS_SIM == _MIPS_SIM_ABI32 #define __NR_lookup_dcookie 4247 /* N64 */ #elif _MIPS_SIM == _MIPS_SIM_ABI64 #define __NR_lookup_dcookie 5206 /* N32 */ #elif _MIPS_SIM == _MIPS_SIM_NABI32 #define __NR_lookup_dcookie 6206 #else #error Unknown MIPS ABI: Dunno __NR_lookup_dcookie #endif #else #error Please define __NR_lookup_dcookie for your architecture #endif #endif /* __NR_lookup_dcookie */ #if (defined(__powerpc__) && !defined(__powerpc64__)) || defined(__hppa__)\ || (defined(__s390__) && !defined(__s390x__)) \ || (defined(__mips__) && (_MIPS_SIM == _MIPS_SIM_ABI32) \ && defined(__MIPSEB__)) \ || (defined(__arm__) && defined(__ARM_EABI__) \ && defined(__ARMEB__)) static inline int lookup_dcookie(cookie_t cookie, char * buf, size_t size) { return syscall(__NR_lookup_dcookie, (unsigned long)(cookie >> 32), (unsigned long)(cookie & 0xffffffff), buf, size); } #elif (defined(__mips__) && (_MIPS_SIM == _MIPS_SIM_ABI32)) \ || (defined(__arm__) && defined(__ARM_EABI__)) \ || (defined(__tile__) && !defined(__LP64__)) static inline int lookup_dcookie(cookie_t cookie, char * buf, size_t size) { return syscall(__NR_lookup_dcookie, (unsigned long)(cookie & 0xffffffff), (unsigned long)(cookie >> 32), buf, size); } #else static inline int lookup_dcookie(cookie_t cookie, char * buf, size_t size) { return syscall(__NR_lookup_dcookie, cookie, buf, size); } #endif struct cookie_entry { cookie_t value; char * name; int ignored; struct list_head list; }; #define HASH_SIZE 512 #define HASH_BITS (HASH_SIZE - 1) static struct list_head hashes[HASH_SIZE]; static struct cookie_entry * create_cookie(cookie_t cookie) { int err; struct cookie_entry * entry = xmalloc(sizeof(struct cookie_entry)); entry->value = cookie; entry->name = xmalloc(PATH_MAX + 1); err = lookup_dcookie(cookie, entry->name, PATH_MAX); if (err < 0) { fprintf(stderr, "Lookup of cookie %llx failed, errno=%d\n", cookie, errno); free(entry->name); entry->name = NULL; entry->ignored = 0; } else { entry->ignored = is_image_ignored(entry->name); } return entry; } /* Cookie monster want cookie! */ static unsigned long hash_cookie(cookie_t cookie) { return (cookie >> DCOOKIE_SHIFT) & (HASH_SIZE - 1); } char const * find_cookie(cookie_t cookie) { unsigned long hash = hash_cookie(cookie); struct list_head * pos; struct cookie_entry * entry; if (cookie == INVALID_COOKIE || cookie == NO_COOKIE) return NULL; list_for_each(pos, &hashes[hash]) { entry = list_entry(pos, struct cookie_entry, list); if (entry->value == cookie) goto out; } /* not sure this can ever happen due to is_cookie_ignored */ entry = create_cookie(cookie); list_add(&entry->list, &hashes[hash]); out: return entry->name; } int is_cookie_ignored(cookie_t cookie) { unsigned long hash = hash_cookie(cookie); struct list_head * pos; struct cookie_entry * entry; if (cookie == INVALID_COOKIE || cookie == NO_COOKIE) return 1; list_for_each(pos, &hashes[hash]) { entry = list_entry(pos, struct cookie_entry, list); if (entry->value == cookie) goto out; } entry = create_cookie(cookie); list_add(&entry->list, &hashes[hash]); out: return entry->ignored; } char const * verbose_cookie(cookie_t cookie) { unsigned long hash = hash_cookie(cookie); struct list_head * pos; struct cookie_entry * entry; if (cookie == INVALID_COOKIE) return "invalid"; if (cookie == NO_COOKIE) return "anonymous"; list_for_each(pos, &hashes[hash]) { entry = list_entry(pos, struct cookie_entry, list); if (entry->value == cookie) { if (!entry->name) return "failed lookup"; return entry->name; } } return "not hashed"; } void cookie_init(void) { size_t i; for (i = 0; i < HASH_SIZE; ++i) list_init(&hashes[i]); } oprofile-0.9.9/daemon/opd_sfile.h0000664000076400007640000000562612175510133013672 00000000000000/** * @file daemon/opd_sfile.h * Management of sample files * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef OPD_SFILE_H #define OPD_SFILE_H #include "opd_cookie.h" #include "odb.h" #include "op_hw_config.h" #include "op_types.h" #include "op_list.h" #include struct kernel_image; struct transient; #define CG_HASH_SIZE 16 #define UNUSED_EMBEDDED_OFFSET ~0LLU /** * Each set of sample files (where a set is over the physical counter * types) will have one of these for it. We match against the * descriptions here to find which sample DB file we need to modify. * * cg files are stored in the hash. */ struct sfile { /** hash value for this sfile */ unsigned long hashval; /** cookie value for the binary profiled */ cookie_t cookie; /** cookie value for the application owner, INVALID_COOKIE if not set */ cookie_t app_cookie; /** thread ID, -1 if not set */ pid_t tid; /** thread group ID, -1 if not set */ pid_t tgid; /** CPU number */ unsigned int cpu; /** kernel image if applicable */ struct kernel_image * kernel; /** anonymous mapping */ struct anon_mapping * anon; /** embedded offset for Cell BE SPU */ uint64_t embedded_offset; /** hash table link */ struct list_head hash; /** lru list */ struct list_head lru; /** true if this file should be ignored in profiles */ int ignored; /** opened sample files */ odb_t files[OP_MAX_COUNTERS]; /** extended sample files */ odb_t * ext_files; /** hash table of opened cg sample files */ struct list_head cg_hash[CG_HASH_SIZE]; }; /** a call-graph entry */ struct cg_entry { /** where arc is to */ struct sfile to; /** next in the hash slot */ struct list_head hash; }; /** clear any sfiles that are for the kernel */ void sfile_clear_kernel(void); struct anon_mapping; /** clear any sfiles for the given anon mapping */ void sfile_clear_anon(struct anon_mapping *); /** sync sample files */ void sfile_sync_files(void); /** close sample files */ void sfile_close_files(void); /** clear out a certain amount of LRU entries * return non-zero if the lru is already empty */ int sfile_lru_clear(void); /** remove a sfile from the lru list, protecting it from sfile_lru_clear() */ void sfile_get(struct sfile * sf); /** add this sfile to lru list */ void sfile_put(struct sfile * sf); /** * Find the sfile for the current parameters. Note that is required * that the PC value be set appropriately (needed for kernel images) */ struct sfile * sfile_find(struct transient const * trans); /** Log the sample in a previously located sfile. */ void sfile_log_sample(struct transient const * trans); /** Log the event/cycle count in a previously located sfile */ void sfile_log_sample_count(struct transient const * trans, unsigned long int count); /** initialise hashes */ void sfile_init(void); #endif /* OPD_SFILE_H */ oprofile-0.9.9/daemon/opd_extended.h0000664000076400007640000000407212175510133014362 00000000000000/** * @file opd_extended.h * OProfile Extended Feature * * @remark Copyright 2007-2009 OProfile authors * @remark Read the file COPYING * * @author Suravee Suthikulpanit * Copyright (c) 2009 Advanced Micro Devices, Inc. */ #ifndef OPD_EXTENDED_H #define OPD_EXTENDED_H #include "opd_trans.h" #include "odb.h" #include #include /** * OProfile Extended Feature Table Entry */ struct opd_ext_feature { // Feature name const char* feature; // Feature handlers struct opd_ext_handlers * handlers; }; /** * OProfile Extended handlers */ struct opd_ext_handlers { // Extended init int (*ext_init)(char const *); // Extended deinit int (*ext_deinit)(); // Extended statistics int (*ext_print_stats)(); // Extended sfile handlers struct opd_ext_sfile_handlers * ext_sfile; }; /** * OProfile Extended sub-handlers (sfile) */ struct opd_ext_sfile_handlers { int (*create)(struct sfile *); int (*dup)(struct sfile *, struct sfile *); int (*close)(struct sfile *); int (*sync)(struct sfile *); odb_t * (*get)(struct transient const *, int); struct opd_event * (*find_counter_event)(unsigned long); }; /** * @param value: commandline input option string * * Parse the specified extended feature */ extern int opd_ext_initialize(char const * value); /** * @param value: commandline input option string * * Deinitialize */ extern int opd_ext_deinitialize(); /** * Print out extended feature statistics in oprofiled.log file */ extern void opd_ext_print_stats(); /** * opd_sfile extended sfile handling functions */ extern void opd_ext_sfile_create(struct sfile * sf); extern void opd_ext_sfile_dup (struct sfile * to, struct sfile * from); extern void opd_ext_sfile_close(struct sfile * sf); extern void opd_ext_sfile_sync(struct sfile * sf); extern odb_t * opd_ext_sfile_get(struct transient const * trans, int is_cg); /** * @param counter: counter index * * Get event struct opd_event from the counter index value. */ extern struct opd_event * opd_ext_find_counter_event(unsigned long counter); #endif oprofile-0.9.9/daemon/opd_cookie.h0000664000076400007640000000143312175510133014031 00000000000000/** * @file opd_cookie.h * cookie -> name cache * * @remark Copyright 2002, 2005 OProfile authors * @remark Read the file COPYING * * @author John Levon */ #ifndef OPD_COOKIE_H #define OPD_COOKIE_H typedef unsigned long long cookie_t; #define INVALID_COOKIE ~0LLU #define NO_COOKIE 0LLU /** * Shift value to remove trailing zero on a dcookie value, 7 is sufficient * for most architecture */ #define DCOOKIE_SHIFT 7 /** * Return the name of the given dcookie. May return * NULL on failure. */ char const * find_cookie(cookie_t cookie); /** return true if this cookie should be ignored */ int is_cookie_ignored(cookie_t cookie); /** give a textual description of the cookie */ char const * verbose_cookie(cookie_t cookie); void cookie_init(void); #endif /* OPD_COOKIE_H */ oprofile-0.9.9/daemon/opd_ibs.h0000664000076400007640000001102012175510133013326 00000000000000/** * @file daemon/opd_ibs.h * AMD Family10h Instruction Based Sampling (IBS) handling. * * @remark Copyright 2008-2010 OProfile authors * @remark Read the file COPYING * * @author Jason Yeh * @author Paul Drongowski * @author Suravee Suthikulpanit * Copyright (c) 2008 Advanced Micro Devices, Inc. */ #ifndef OPD_IBS_H #define OPD_IBS_H #include #include "opd_ibs_macro.h" struct transient; struct opd_event; /** * IBS information is processed in two steps. The first step decodes * hardware-level IBS information and saves it in decoded form. The * second step translates the decoded IBS information into IBS derived * events. IBS information is tallied and is reported as derived events. */ struct ibs_sample { struct ibs_fetch_sample * fetch; struct ibs_op_sample * op; }; /** * This struct represents the hardware-level IBS fetch information. * Each field corresponds to a model-specific register (MSR.) See the * BIOS and Kernel Developer's Guide for AMD Model Family 10h Processors * for further details. */ struct ibs_fetch_sample { unsigned long int rip; /* MSRC001_1030 IBS Fetch Control Register */ unsigned int ibs_fetch_ctl_low; unsigned int ibs_fetch_ctl_high; /* MSRC001_1031 IBS Fetch Linear Address Register */ unsigned int ibs_fetch_lin_addr_low; unsigned int ibs_fetch_lin_addr_high; /* MSRC001_1032 IBS Fetch Physical Address Register */ unsigned int ibs_fetch_phys_addr_low; unsigned int ibs_fetch_phys_addr_high; unsigned int dummy_event; }; /** This struct represents the hardware-level IBS op information. */ struct ibs_op_sample { unsigned long int rip; /* MSRC001_1034 IBS Op Logical Address Register */ unsigned int ibs_op_lin_addr_low; unsigned int ibs_op_lin_addr_high; /* MSRC001_1035 IBS Op Data Register */ unsigned int ibs_op_data1_low; unsigned int ibs_op_data1_high; /* MSRC001_1036 IBS Op Data 2 Register */ unsigned int ibs_op_data2_low; unsigned int ibs_op_data2_high; /* MSRC001_1037 IBS Op Data 3 Register */ unsigned int ibs_op_data3_low; unsigned int ibs_op_data3_high; /* MSRC001_1038 IBS DC Linear Address */ unsigned int ibs_op_ldst_linaddr_low; unsigned int ibs_op_ldst_linaddr_high; /* MSRC001_1039 IBS DC Physical Address */ unsigned int ibs_op_phys_addr_low; unsigned int ibs_op_phys_addr_high; /* MSRC001_103B IBS Branch Target Address */ unsigned long ibs_op_brtgt_addr; }; /** * Handle an IBS fetch sample escape code sequence. An IBS fetch sample * is represented as an escape code sequence. (See the comment for the * function code_ibs_op_sample() for the sequence of entries in the event * buffer.) When this function is called, the ESCAPE_CODE and IBS_FETCH_CODE * have already been removed from the event buffer. Thus, 7 more event buffer * entries are needed in order to process a complete IBS fetch sample. */ extern void code_ibs_fetch_sample(struct transient * trans); /** * Handle an IBS op sample escape code sequence. An IBS op sample * is represented as an escape code sequence: * * IBS fetch IBS op * --------------- ---------------- * ESCAPE_CODE ESCAPE_CODE * IBS_FETCH_CODE IBS_OP_CODE * Offset Offset * IbsFetchLinAd low IbsOpRip low <-- Logical (virtual) RIP * IbsFetchLinAd high IbsOpRip high <-- Logical (virtual) RIP * IbsFetchCtl low IbsOpData low * IbsFetchCtl high IbsOpData high * IbsFetchPhysAd low IbsOpData2 low * IbsFetchPhysAd high IbsOpData2 high * IbsOpData3 low * IbsOpData3 high * IbsDcLinAd low * IbsDcLinAd high * IbsDcPhysAd low * IbsDcPhysAd high * * When this function is called, the ESCAPE_CODE and IBS_OP_CODE have * already been removed from the event buffer. Thus, 13 more event buffer * entries are needed to process a complete IBS op sample. * * The IbsFetchLinAd and IbsOpRip are the linear (virtual) addresses * that were generated by the IBS hardware. These addresses are mapped * into the offset. */ extern void code_ibs_op_sample(struct transient * trans); /** Log the specified IBS derived event. */ extern void opd_log_ibs_event(unsigned int event, struct transient * trans); /** Log the specified IBS cycle count. */ extern void opd_log_ibs_count(unsigned int event, struct transient * trans, unsigned int count); #endif /*OPD_IBS_H*/ oprofile-0.9.9/daemon/opd_sfile.c0000664000076400007640000004360312175510133013662 00000000000000/** * @file daemon/opd_sfile.c * Management of sample files * * @remark Copyright 2002, 2005 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include "opd_sfile.h" #include "opd_trans.h" #include "opd_kernel.h" #include "opd_mangling.h" #include "opd_anon.h" #include "opd_printf.h" #include "opd_stats.h" #include "opd_extended.h" #include "oprofiled.h" #include "op_libiberty.h" #include #include #include #include #include #include #define HASH_SIZE 2048 #define HASH_BITS (HASH_SIZE - 1) /** All sfiles are hashed into these lists */ static struct list_head hashes[HASH_SIZE]; /* This data structure is used to help us determine when we should * discard user context kernel samples for which we no longer have * an app name to which we can attribute them. This can happen (especially * on a busy system) in the following scenario: * - A user context switch occurs. * - User context kernel samples are recorded for this process. * - The user process ends. * - The above-mentioned sample information is first recorded into the per-CPU * buffer and later transferred to the main event buffer. Since the process * for which this context switch was recorded ended before the transfer * occurs, the app cookie that is recorded into the event buffer along with the * CTX_SWITCH_CODE will be set to NO_COOKIE. When the oprofile userspace daemon * processes the CTX_SWITCH_CODE, it sets trans->app_cookie to NO_COOKIE and then * continues to process the kernel samples. But having no appname in order to * locate the appropriate sample file, it creates a new sample file of the form: * /current/{kern}//{dep}/{kern}//... * * This is not really an invalid form for sample files, since it is certainly valid for * oprofile to collect samples for kernel threads that are not running in any process context. * Such samples would be stored in sample files like this, and opreport would show those * samples as having an appname of "". But if the tgid/tid info for * the sample is from a defunct user process, we should discard these samples. Not doing so * can lead to strange results when generating reports by tgid/tid (i.e., appname of * "" instead of the real app name associated with the given tgid/tid. * The following paragraph describes the technique for identifying and discarding such samples. * * When processing a kernel sample for which trans->app_cookie==NO_COOKIE, we inspect the * /proc//cmdline file. Housekeeping types of kernel threads (e.g., kswapd, watchdog) * won't have a command line since they exist and operate outside of a process context. * However, other kernel "tasks" do operate within a process context (e.g., some kernel * driver functions, kernel functions invoked via a syscall, etc.). When we get samples * for the latter type of task but no longer have app name info for the process for which * the kernel task is performing work, we cannot correctly attribute those kernel samples * to a user application, so they should be discarded. We classify the two different types * of kernel "tasks" based on whether or not the /proc//cmdline is empty. We cache * the results in kernel_cmdlines for fast lookup when processing samples. */ static struct list_head kernel_cmdlines[HASH_SIZE]; struct kern_cmdline { pid_t kern_pid; struct list_head hash; unsigned int has_cmdline; }; /** All sfiles are on this list. */ static LIST_HEAD(lru_list); /* FIXME: can undoubtedly improve this hashing */ /** Hash the transient parameters for lookup. */ static unsigned long sfile_hash(struct transient const * trans, struct kernel_image * ki) { unsigned long val = 0; if (separate_thread) { val ^= trans->tid << 2; val ^= trans->tgid << 2; } if (separate_kernel || ((trans->anon || separate_lib) && !ki)) val ^= trans->app_cookie >> (DCOOKIE_SHIFT + 3); if (separate_cpu) val ^= trans->cpu; /* cookie meaningless for kernel, shouldn't hash */ if (trans->in_kernel && ki) { val ^= ki->start >> 14; val ^= ki->end >> 7; return val & HASH_BITS; } if (trans->cookie != NO_COOKIE) { val ^= trans->cookie >> DCOOKIE_SHIFT; return val & HASH_BITS; } if (!separate_thread) val ^= trans->tgid << 2; if (trans->anon) { val ^= trans->anon->start >> VMA_SHIFT; val ^= trans->anon->end >> (VMA_SHIFT + 1); } return val & HASH_BITS; } static int do_match(struct sfile const * sf, cookie_t cookie, cookie_t app_cookie, struct kernel_image const * ki, struct anon_mapping const * anon, pid_t tgid, pid_t tid, unsigned int cpu) { /* this is a simplified check for "is a kernel image" AND * "is the right kernel image". Also handles no-vmlinux * correctly. */ if (sf->kernel != ki) return 0; if (separate_thread) { if (sf->tid != tid || sf->tgid != tgid) return 0; } if (separate_cpu) { if (sf->cpu != cpu) return 0; } if (separate_kernel || ((anon || separate_lib) && !ki)) { if (sf->app_cookie != app_cookie) return 0; } /* ignore the cached trans->cookie for kernel images, * it's meaningless and we checked all others already */ if (ki) return 1; if (sf->anon != anon) return 0; return sf->cookie == cookie; } static int trans_match(struct transient const * trans, struct sfile const * sfile, struct kernel_image const * ki) { return do_match(sfile, trans->cookie, trans->app_cookie, ki, trans->anon, trans->tgid, trans->tid, trans->cpu); } int sfile_equal(struct sfile const * sf, struct sfile const * sf2) { return do_match(sf, sf2->cookie, sf2->app_cookie, sf2->kernel, sf2->anon, sf2->tgid, sf2->tid, sf2->cpu); } static int is_sf_ignored(struct sfile const * sf) { if (sf->kernel) { if (!is_image_ignored(sf->kernel->name)) return 0; /* Let a dependent kernel image redeem the sf if we're * executing on behalf of an application. */ return is_cookie_ignored(sf->app_cookie); } /* Anon regions are always dependent on the application. * Otherwise, let a dependent image redeem the sf. */ if (sf->anon || is_cookie_ignored(sf->cookie)) return is_cookie_ignored(sf->app_cookie); return 0; } /** create a new sfile matching the current transient parameters */ static struct sfile * create_sfile(unsigned long hash, struct transient const * trans, struct kernel_image * ki) { size_t i; struct sfile * sf; sf = xmalloc(sizeof(struct sfile)); sf->hashval = hash; /* The logic here: if we're in the kernel, the cached cookie is * meaningless (though not the app_cookie if separate_kernel) */ sf->cookie = trans->in_kernel ? INVALID_COOKIE : trans->cookie; sf->app_cookie = INVALID_COOKIE; sf->tid = (pid_t)-1; sf->tgid = (pid_t)-1; sf->cpu = 0; sf->kernel = ki; sf->anon = trans->anon; for (i = 0 ; i < op_nr_counters ; ++i) odb_init(&sf->files[i]); if (trans->ext) opd_ext_sfile_create(sf); else sf->ext_files = NULL; for (i = 0; i < CG_HASH_SIZE; ++i) list_init(&sf->cg_hash[i]); if (separate_thread) sf->tid = trans->tid; if (separate_thread || trans->cookie == NO_COOKIE) sf->tgid = trans->tgid; if (separate_cpu) sf->cpu = trans->cpu; if (separate_kernel || ((trans->anon || separate_lib) && !ki)) sf->app_cookie = trans->app_cookie; sf->ignored = is_sf_ignored(sf); sf->embedded_offset = trans->embedded_offset; /* If embedded_offset is a valid value, it means we're * processing a Cell BE SPU profile; in which case, we * want sf->app_cookie to hold trans->app_cookie. */ if (trans->embedded_offset != UNUSED_EMBEDDED_OFFSET) sf->app_cookie = trans->app_cookie; return sf; } struct sfile * sfile_find(struct transient const * trans) { struct sfile * sf; struct list_head * pos; struct kernel_image * ki = NULL; unsigned long hash; /* There is a small race where this *can* happen, see * caller of cpu_buffer_reset() in the kernel */ if (trans->in_kernel == -1) { verbprintf(vsamples, "Losing sample at 0x%llx of unknown provenance.\n", trans->pc); opd_stats[OPD_NO_CTX]++; return NULL; } /* we might need a kernel image start/end to hash on */ if (trans->in_kernel) { ki = find_kernel_image(trans); if (!ki) { verbprintf(vsamples, "Lost kernel sample %llx\n", trans->pc); opd_stats[OPD_LOST_KERNEL]++; return NULL; } // We *know* that PID 0, 1, and 2 are pure kernel context tasks, so // we always want to keep these samples. if ((trans->tgid == 0) || (trans->tgid == 1) || (trans->tgid == 2)) goto find_sfile; // Decide whether or not this kernel sample should be discarded. // See detailed description above where the kernel_cmdlines hash // table is defined. if (trans->app_cookie == NO_COOKIE) { int found = 0; struct kern_cmdline * kcmd; hash = (trans->tgid << 2) & HASH_BITS; list_for_each(pos, &kernel_cmdlines[hash]) { kcmd = list_entry(pos, struct kern_cmdline, hash); if (kcmd->kern_pid == trans->tgid) { found = 1; if (kcmd->has_cmdline) { verbprintf(vsamples, "Dropping user context kernel sample 0x%llx " "for process %u due to no app cookie available.\n", (unsigned long long)trans->pc, trans->tgid); opd_stats[OPD_NO_APP_KERNEL_SAMPLE]++; return NULL; } break; } } if (!found) { char name[32], dst[8]; int fd, dropped = 0; kcmd = (struct kern_cmdline *)xmalloc(sizeof(*kcmd)); kcmd->kern_pid = trans->tgid; snprintf(name, sizeof name, "/proc/%u/cmdline", trans->tgid); fd = open(name, O_RDONLY); if(fd==-1) { // Most likely due to process ending, so we'll assume it used to have a cmdline kcmd->has_cmdline = 1; verbprintf(vsamples, "Open of /proc/%u/cmdline failed, so dropping " "kernel sameple 0x%llx\n", trans->tgid, (unsigned long long)trans->pc); opd_stats[OPD_NO_APP_KERNEL_SAMPLE]++; dropped = 1; } else { if((read(fd, dst, 8) < 1)) { verbprintf(vsamples, "No cmdline for PID %u\n", trans->tgid); kcmd->has_cmdline = 0; } else { // This *really* shouldn't happen. If it does, then why don't // we have an app_cookie? dst[7] = '\0'; verbprintf(vsamples, "Start of cmdline for PID %u is %s\n", trans->tgid, dst); kcmd->has_cmdline = 1; opd_stats[OPD_NO_APP_KERNEL_SAMPLE]++; dropped = 1; } close(fd); } list_add(&kcmd->hash, &kernel_cmdlines[hash]); if (dropped) return NULL; } } } else if (trans->cookie == NO_COOKIE && !trans->anon) { if (vsamples) { char const * app = verbose_cookie(trans->app_cookie); printf("No anon map for pc %llx, app %s.\n", trans->pc, app); } opd_stats[OPD_LOST_NO_MAPPING]++; return NULL; } find_sfile: hash = sfile_hash(trans, ki); list_for_each(pos, &hashes[hash]) { sf = list_entry(pos, struct sfile, hash); if (trans_match(trans, sf, ki)) { sfile_get(sf); goto lru; } } sf = create_sfile(hash, trans, ki); list_add(&sf->hash, &hashes[hash]); lru: sfile_put(sf); return sf; } void sfile_dup(struct sfile * to, struct sfile * from) { size_t i; memcpy(to, from, sizeof (struct sfile)); for (i = 0 ; i < op_nr_counters ; ++i) odb_init(&to->files[i]); opd_ext_sfile_dup(to, from); for (i = 0; i < CG_HASH_SIZE; ++i) list_init(&to->cg_hash[i]); list_init(&to->hash); list_init(&to->lru); } static odb_t * get_file(struct transient const * trans, int is_cg) { struct sfile * sf = trans->current; struct sfile * last = trans->last; struct cg_entry * cg; struct list_head * pos; unsigned long hash; odb_t * file; if ((trans->ext) != NULL) return opd_ext_sfile_get(trans, is_cg); if (trans->event >= op_nr_counters) { fprintf(stderr, "%s: Invalid counter %lu\n", __FUNCTION__, trans->event); abort(); } file = &sf->files[trans->event]; if (!is_cg) goto open; hash = last->hashval & (CG_HASH_SIZE - 1); /* Need to look for the right 'to'. Since we're looking for * 'last', we use its hash. */ list_for_each(pos, &sf->cg_hash[hash]) { cg = list_entry(pos, struct cg_entry, hash); if (sfile_equal(last, &cg->to)) { file = &cg->to.files[trans->event]; goto open; } } cg = xmalloc(sizeof(struct cg_entry)); sfile_dup(&cg->to, last); list_add(&cg->hash, &sf->cg_hash[hash]); file = &cg->to.files[trans->event]; open: if (!odb_open_count(file)) opd_open_sample_file(file, last, sf, trans->event, is_cg); /* Error is logged by opd_open_sample_file */ if (!odb_open_count(file)) return NULL; return file; } static void verbose_print_sample(struct sfile * sf, vma_t pc, uint counter) { char const * app = verbose_cookie(sf->app_cookie); printf("0x%llx(%u): ", pc, counter); if (sf->anon) { printf("anon (tgid %u, 0x%llx-0x%llx), ", (unsigned int)sf->anon->tgid, sf->anon->start, sf->anon->end); } else if (sf->kernel) { printf("kern (name %s, 0x%llx-0x%llx), ", sf->kernel->name, sf->kernel->start, sf->kernel->end); } else { printf("%s(%llx), ", verbose_cookie(sf->cookie), sf->cookie); } printf("app %s(%llx)", app, sf->app_cookie); } static void verbose_sample(struct transient const * trans, vma_t pc) { printf("Sample "); verbose_print_sample(trans->current, pc, trans->event); printf("\n"); } static void verbose_arc(struct transient const * trans, vma_t from, vma_t to) { printf("Arc "); verbose_print_sample(trans->current, from, trans->event); printf(" -> 0x%llx", to); printf("\n"); } static void sfile_log_arc(struct transient const * trans) { int err; vma_t from = trans->pc; vma_t to = trans->last_pc; uint64_t key; odb_t * file; file = get_file(trans, 1); /* absolute value -> offset */ if (trans->current->kernel) from -= trans->current->kernel->start; if (trans->last->kernel) to -= trans->last->kernel->start; if (trans->current->anon) from -= trans->current->anon->start; if (trans->last->anon) to -= trans->last->anon->start; if (varcs) verbose_arc(trans, from, to); if (!file) { opd_stats[OPD_LOST_SAMPLEFILE]++; return; } /* Possible narrowings to 32-bit value only. */ key = to & (0xffffffff); key |= ((uint64_t)from) << 32; err = odb_update_node(file, key); if (err) { fprintf(stderr, "%s: %s\n", __FUNCTION__, strerror(err)); abort(); } } void sfile_log_sample(struct transient const * trans) { sfile_log_sample_count(trans, 1); } void sfile_log_sample_count(struct transient const * trans, unsigned long int count) { int err; vma_t pc = trans->pc; odb_t * file; if (trans->tracing == TRACING_ON) { /* can happen if kernel sample falls through the cracks, * see opd_put_sample() */ if (trans->last) sfile_log_arc(trans); return; } file = get_file(trans, 0); /* absolute value -> offset */ if (trans->current->kernel) pc -= trans->current->kernel->start; if (trans->current->anon) pc -= trans->current->anon->start; if (vsamples) verbose_sample(trans, pc); if (!file) { opd_stats[OPD_LOST_SAMPLEFILE]++; return; } err = odb_update_node_with_offset(file, (odb_key_t)pc, count); if (err) { fprintf(stderr, "%s: %s\n", __FUNCTION__, strerror(err)); abort(); } } static int close_sfile(struct sfile * sf, void * data __attribute__((unused))) { size_t i; /* it's OK to close a non-open odb file */ for (i = 0; i < op_nr_counters; ++i) odb_close(&sf->files[i]); opd_ext_sfile_close(sf); return 0; } static void kill_sfile(struct sfile * sf) { close_sfile(sf, NULL); list_del(&sf->hash); list_del(&sf->lru); } static int sync_sfile(struct sfile * sf, void * data __attribute__((unused))) { size_t i; for (i = 0; i < op_nr_counters; ++i) odb_sync(&sf->files[i]); opd_ext_sfile_sync(sf); return 0; } static int is_sfile_kernel(struct sfile * sf, void * data __attribute__((unused))) { return !!sf->kernel; } static int is_sfile_anon(struct sfile * sf, void * data) { return sf->anon == data; } typedef int (*sfile_func)(struct sfile *, void *); static void for_one_sfile(struct sfile * sf, sfile_func func, void * data) { size_t i; int free_sf = func(sf, data); for (i = 0; i < CG_HASH_SIZE; ++i) { struct list_head * pos; struct list_head * pos2; list_for_each_safe(pos, pos2, &sf->cg_hash[i]) { struct cg_entry * cg = list_entry(pos, struct cg_entry, hash); if (free_sf || func(&cg->to, data)) { kill_sfile(&cg->to); list_del(&cg->hash); free(cg); } } } if (free_sf) { kill_sfile(sf); free(sf); } } static void for_each_sfile(sfile_func func, void * data) { struct list_head * pos; struct list_head * pos2; list_for_each_safe(pos, pos2, &lru_list) { struct sfile * sf = list_entry(pos, struct sfile, lru); for_one_sfile(sf, func, data); } } void sfile_clear_kernel(void) { for_each_sfile(is_sfile_kernel, NULL); } void sfile_clear_anon(struct anon_mapping * anon) { for_each_sfile(is_sfile_anon, anon); } void sfile_sync_files(void) { for_each_sfile(sync_sfile, NULL); } void sfile_close_files(void) { for_each_sfile(close_sfile, NULL); } static int always_true(void) { return 1; } #define LRU_AMOUNT 256 /* * Clear out older sfiles. Note the current sfiles we're using * will not be present in this list, due to sfile_get/put() pairs * around the caller of this. */ int sfile_lru_clear(void) { struct list_head * pos; struct list_head * pos2; int amount = LRU_AMOUNT; if (list_empty(&lru_list)) return 1; list_for_each_safe(pos, pos2, &lru_list) { struct sfile * sf; if (!--amount) break; sf = list_entry(pos, struct sfile, lru); for_one_sfile(sf, (sfile_func)always_true, NULL); } return 0; } void sfile_get(struct sfile * sf) { if (sf) list_del(&sf->lru); } void sfile_put(struct sfile * sf) { if (sf) list_add_tail(&sf->lru, &lru_list); } void sfile_init(void) { size_t i = 0; for (; i < HASH_SIZE; ++i) { list_init(&hashes[i]); list_init(&kernel_cmdlines[i]); } } oprofile-0.9.9/daemon/opd_kernel.c0000664000076400007640000001132212175510133014031 00000000000000/** * @file daemon/opd_kernel.c * Dealing with the kernel and kernel module samples * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie * Modified by Aravind Menon for Xen * These modifications are: * Copyright (C) 2005 Hewlett-Packard Co. */ #include "opd_kernel.h" #include "opd_sfile.h" #include "opd_trans.h" #include "opd_printf.h" #include "opd_stats.h" #include "oprofiled.h" #include "op_fileio.h" #include "op_config.h" #include "op_libiberty.h" #include #include #include #include static LIST_HEAD(modules); static struct kernel_image vmlinux_image; static struct kernel_image xen_image; void opd_create_vmlinux(char const * name, char const * arg) { /* vmlinux is *not* on the list of modules */ list_init(&vmlinux_image.list); /* for no vmlinux */ if (no_vmlinux) { vmlinux_image.name = "no-vmlinux"; return; } vmlinux_image.name = xstrdup(name); sscanf(arg, "%llx,%llx", &vmlinux_image.start, &vmlinux_image.end); verbprintf(vmisc, "kernel_start = %llx, kernel_end = %llx\n", vmlinux_image.start, vmlinux_image.end); if (!vmlinux_image.start && !vmlinux_image.end) { fprintf(stderr, "error: mis-parsed kernel range: %llx-%llx\n", vmlinux_image.start, vmlinux_image.end); exit(EXIT_FAILURE); } } void opd_create_xen(char const * name, char const * arg) { /* xen is *not* on the list of modules */ list_init(&xen_image.list); /* for no xen */ if (no_xen) { xen_image.name = "no-xen"; return; } xen_image.name = xstrdup(name); sscanf(arg, "%llx,%llx", &xen_image.start, &xen_image.end); verbprintf(vmisc, "xen_start = %llx, xen_end = %llx\n", xen_image.start, xen_image.end); if (!xen_image.start && !xen_image.end) { fprintf(stderr, "error: mis-parsed xen range: %llx-%llx\n", xen_image.start, xen_image.end); exit(EXIT_FAILURE); } } /** * Allocate and initialise a kernel image description * @param name image name * @param start start address * @param end end address */ static struct kernel_image * opd_create_module(char const * name, vma_t start, vma_t end) { struct kernel_image * image = xmalloc(sizeof(struct kernel_image)); image->name = xstrdup(name); image->start = start; image->end = end; list_add(&image->list, &modules); return image; } /** * Clear and free all kernel image information and reset * values. */ static void opd_clear_modules(void) { struct list_head * pos; struct list_head * pos2; struct kernel_image * image; list_for_each_safe(pos, pos2, &modules) { image = list_entry(pos, struct kernel_image, list); if (image->name) free(image->name); free(image); } list_init(&modules); /* clear out lingering references */ sfile_clear_kernel(); } /* * each line is in the format: * * module_name 16480 1 dependencies Live 0xe091e000 * * without any blank space in each field */ void opd_reread_module_info(void) { FILE * fp; char * line; struct kernel_image * image; int module_size; char ref_count[32+1]; int ret; char module_name[256+1]; char live_info[32+1]; char dependencies[4096+1]; unsigned long long start_address; if (no_vmlinux) return; opd_clear_modules(); printf("Reading module info.\n"); fp = op_try_open_file("/proc/modules", "r"); if (!fp) { printf("oprofiled: /proc/modules not readable, " "can't process module samples.\n"); return; } while (1) { line = op_get_line(fp); if (!line) break; if (line[0] == '\0') { free(line); continue; } ret = sscanf(line, "%256s %u %32s %4096s %32s %llx", module_name, &module_size, ref_count, dependencies, live_info, &start_address); if (ret != 6) { printf("bad /proc/modules entry: %s\n", line); free(line); continue; } image = opd_create_module(module_name, start_address, start_address + module_size); verbprintf(vmodule, "module %s start %llx end %llx\n", image->name, image->start, image->end); free(line); } op_close_file(fp); } /** * find a kernel image by PC value * @param trans holds PC value to look up * * find the kernel image which contains this PC. * * Return %NULL if not found. */ struct kernel_image * find_kernel_image(struct transient const * trans) { struct list_head * pos; struct kernel_image * image = &vmlinux_image; if (no_vmlinux) return image; if (image->start <= trans->pc && image->end > trans->pc) return image; list_for_each(pos, &modules) { image = list_entry(pos, struct kernel_image, list); if (image->start <= trans->pc && image->end > trans->pc) return image; } if (xen_image.start <= trans->pc && xen_image.end > trans->pc) return &xen_image; return NULL; } oprofile-0.9.9/daemon/init.c0000664000076400007640000001674312175510133012666 00000000000000/** * @file daemon/init.c * Daemon set up and main loop for 2.6 * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie * @Modifications Daniel Hansel * Modified by Aravind Menon for Xen * These modifications are: * Copyright (C) 2005 Hewlett-Packard Co. */ #include "config.h" #include "oprofiled.h" #include "opd_stats.h" #include "opd_sfile.h" #include "opd_pipe.h" #include "opd_kernel.h" #include "opd_trans.h" #include "opd_anon.h" #include "opd_perfmon.h" #include "opd_printf.h" #include "opd_extended.h" #include "op_version.h" #include "op_config.h" #include "op_deviceio.h" #include "op_get_time.h" #include "op_libiberty.h" #include "op_fileio.h" #include #include #include #include #include #include #include #include size_t kernel_pointer_size; static fd_t devfd; static char * sbuf; static size_t s_buf_bytesize; extern char * session_dir; static char start_time_str[32]; static int jit_conversion_running; static void opd_sighup(void); static void opd_alarm(void); static void opd_sigterm(void); static void opd_sigchild(void); static void opd_do_jitdumps(void); /** * opd_open_files - open necessary files * * Open the device files and the log file, * and mmap() the hash map. */ static void opd_open_files(void) { devfd = op_open_device("/dev/oprofile/buffer"); if (devfd == -1) { if (errno == EINVAL) fprintf(stderr, "Failed to open device. Possibly you have passed incorrect\n" "parameters. Check /var/log/messages."); else perror("Failed to open profile device"); exit(EXIT_FAILURE); } /* give output before re-opening stdout as the logfile */ printf("Using log file %s\n", op_log_file); /* set up logfile */ close(0); close(1); if (open("/dev/null", O_RDONLY) == -1) { perror("oprofiled: couldn't re-open stdin as /dev/null: "); exit(EXIT_FAILURE); } opd_open_logfile(); opd_create_pipe(); printf("oprofiled started %s", op_get_time()); printf("kernel pointer size: %lu\n", (unsigned long)kernel_pointer_size); fflush(stdout); } /** Done writing out the samples, indicate with complete_dump file */ static void complete_dump(void) { FILE * status_file; retry: status_file = fopen(op_dump_status, "w"); if (!status_file && errno == EMFILE) { if (sfile_lru_clear()) { printf("LRU cleared but file open fails for %s.\n", op_dump_status); abort(); } goto retry; } if (!status_file) { perror("warning: couldn't set complete_dump: "); return; } fprintf(status_file, "1\n"); fclose(status_file); } /** * opd_do_samples - process a sample buffer * @param opd_buf buffer to process * * Process a buffer of samples. * * If the sample could be processed correctly, it is written * to the relevant sample file. */ static void opd_do_samples(char const * opd_buf, ssize_t count) { size_t num = count / kernel_pointer_size; opd_stats[OPD_DUMP_COUNT]++; verbprintf(vmisc, "Read buffer of %d entries.\n", (unsigned int)num); opd_process_samples(opd_buf, num); complete_dump(); } static void opd_do_jitdumps(void) { pid_t childpid; int arg_num; unsigned long long end_time = 0ULL; struct timeval tv; char end_time_str[32]; char opjitconv_path[PATH_MAX + 1]; char * exec_args[7]; if (jit_conversion_running) return; jit_conversion_running = 1; childpid = fork(); switch (childpid) { case -1: perror("Error forking JIT dump process!"); break; case 0: gettimeofday(&tv, NULL); end_time = tv.tv_sec; sprintf(end_time_str, "%llu", end_time); sprintf(opjitconv_path, "%s/%s", OP_BINDIR, "opjitconv"); arg_num = 0; exec_args[arg_num++] = "opjitconv"; if (vmisc) exec_args[arg_num++] = "-d"; exec_args[arg_num++] = "--delete-jitdumps"; exec_args[arg_num++] = session_dir; exec_args[arg_num++] = start_time_str; exec_args[arg_num++] = end_time_str; exec_args[arg_num] = (char *) NULL; execvp(opjitconv_path, exec_args); fprintf(stderr, "Failed to exec %s: %s\n", exec_args[0], strerror(errno)); /* We don't want any cleanup in the child */ _exit(EXIT_FAILURE); default: break; } } /** * opd_do_read - enter processing loop * @param buf buffer to read into * @param size size of buffer * * Read some of a buffer from the device and process * the contents. */ static void opd_do_read(char * buf, size_t size) { opd_open_pipe(); while (1) { ssize_t count = -1; /* loop to handle EINTR */ while (count < 0) { count = op_read_device(devfd, buf, size); /* we can lose an alarm or a hup but * we don't care. */ if (signal_alarm) { signal_alarm = 0; opd_alarm(); } if (signal_hup) { signal_hup = 0; opd_sighup(); } if (signal_term) opd_sigterm(); if (signal_child) opd_sigchild(); if (signal_usr1) { signal_usr1 = 0; perfmon_start(); } if (signal_usr2) { signal_usr2 = 0; perfmon_stop(); } if (is_jitconv_requested()) { verbprintf(vmisc, "Start opjitconv was triggered\n"); opd_do_jitdumps(); } } opd_do_samples(buf, count); } opd_close_pipe(); } /** opd_alarm - sync files and report stats */ static void opd_alarm(void) { sfile_sync_files(); opd_print_stats(); alarm(60 * 10); } /** re-open files for logrotate/opcontrol --reset */ static void opd_sighup(void) { printf("Received SIGHUP.\n"); /* We just close them, and re-open them lazily as usual. */ sfile_close_files(); close(1); close(2); opd_open_logfile(); } static void clean_exit(void) { perfmon_exit(); unlink(op_lock_file); } static void opd_sigterm(void) { opd_do_jitdumps(); opd_print_stats(); printf("oprofiled stopped %s", op_get_time()); opd_ext_deinitialize(); exit(EXIT_FAILURE); } /* SIGCHLD received from JIT dump child process. */ static void opd_sigchild(void) { int child_status; wait(&child_status); jit_conversion_running = 0; if (WIFEXITED(child_status) && (!WEXITSTATUS(child_status))) { verbprintf(vmisc, "JIT dump processing complete.\n"); } else { printf("JIT dump processing exited abnormally: %d\n", WEXITSTATUS(child_status)); } } static void opd_26_init(void) { size_t i; size_t opd_buf_size; unsigned long long start_time = 0ULL; struct timeval tv; opd_create_vmlinux(vmlinux, kernel_range); opd_create_xen(xenimage, xen_range); opd_buf_size = opd_read_fs_int("/dev/oprofile/", "buffer_size", 1); kernel_pointer_size = opd_read_fs_int("/dev/oprofile/", "pointer_size", 1); s_buf_bytesize = opd_buf_size * kernel_pointer_size; sbuf = xmalloc(s_buf_bytesize); opd_reread_module_info(); for (i = 0; i < OPD_MAX_STATS; i++) opd_stats[i] = 0; perfmon_init(); cookie_init(); sfile_init(); anon_init(); /* must be /after/ perfmon_init() at least */ if (atexit(clean_exit)) { perfmon_exit(); perror("oprofiled: couldn't set exit cleanup: "); exit(EXIT_FAILURE); } /* trigger kernel module setup before returning control to opcontrol */ opd_open_files(); gettimeofday(&tv, NULL); start_time = 0ULL; start_time = tv.tv_sec; sprintf(start_time_str, "%llu", start_time); } static void opd_26_start(void) { /* simple sleep-then-process loop */ opd_do_read(sbuf, s_buf_bytesize); } static void opd_26_exit(void) { opd_print_stats(); printf("oprofiled stopped %s", op_get_time()); free(sbuf); free(vmlinux); /* FIXME: free kernel images, sfiles etc. */ } struct oprofiled_ops opd_26_ops = { .init = opd_26_init, .start = opd_26_start, .exit = opd_26_exit, }; oprofile-0.9.9/daemon/opd_spu.c0000664000076400007640000001136112175510133013363 00000000000000/** * @file daemon/opd_spu.c * Processing the sample buffer for Cell BE SPU profile * * @remark Copyright 2007 OProfile authors * @remark Read the file COPYING * * @author Maynard Johnson * (C) Copyright IBM Corporation 2007 */ #include "opd_interface.h" #include "opd_printf.h" #include "opd_sfile.h" #include "opd_stats.h" #include "opd_trans.h" #include "op_libiberty.h" #include #include struct spu_context_info { pid_t tid; pid_t tgid; cookie_t app_cookie; uint64_t embedded_offset; cookie_t spu_cookie; }; static struct spu_context_info * spu_context_cache; /* Forward declaration */ static void process_spu_samples(struct transient * trans); void (*special_processor)(struct transient *); /* * This function is called when the first value found in the * buffer (after the beginning ESCAPE_CODE) is SPU_PROFILING_CODE. * Once we get here, the rest of the processing of the buffer is * Cell-SPU-specific, so we do not need to return until the * trans.buffer is empty. */ void code_spu_profiling(struct transient * trans) { /* Next value in buffer is the number of SPUs. */ unsigned long long num_spus = pop_buffer_value(trans); /* Free the cache from previous run */ free(spu_context_cache); spu_context_cache = xmalloc(sizeof(struct spu_context_info) * num_spus); special_processor = process_spu_samples; process_spu_samples(trans); } void code_spu_ctx_switch(struct transient * trans) { clear_trans_current(trans); if (!enough_remaining(trans, 6)) { trans->remaining = 0; return; } /* First value in the buffer for an SPU context switch is * the SPU number. For SPU profiling, 'cpu' = 'spu'. */ trans->cpu = pop_buffer_value(trans); trans->tid = pop_buffer_value(trans); trans->tgid = pop_buffer_value(trans); trans->app_cookie = pop_buffer_value(trans); if (vmisc) { char const * app = find_cookie(trans->app_cookie); printf("SPU_CTX_SWITCH to tid %lu, tgid %lu, cookie %llx(%s)\n", (unsigned long)trans->tid, (unsigned long)trans->tgid, trans->app_cookie, app ? app : "none"); } /* The trans->cookie will point to the binary file where the SPU ELF * can be found. If the SPU ELF is embedded, it may be embedded in * either the executable application binary or a shared lib. If shared * library, then trans->cookie will differ from the previously obtained * trans->app_cookie. For the non-embedded case, trans->cookie always * points to a separate binary file. */ trans->cookie = pop_buffer_value(trans); trans->embedded_offset = pop_buffer_value(trans); } static void cache_spu_context_info(struct transient * trans) { int i = trans->cpu; spu_context_cache[i].tid = trans->tid; spu_context_cache[i].tgid = trans->tgid; spu_context_cache[i].app_cookie = trans->app_cookie; spu_context_cache[i].embedded_offset = trans->embedded_offset; spu_context_cache[i].spu_cookie = trans->cookie; } static void update_trans_for_spu(struct transient * trans) { int i = trans->cpu; trans->tid = spu_context_cache[i].tid; trans->tgid = spu_context_cache[i].tgid; trans->app_cookie = spu_context_cache[i].app_cookie; trans->embedded_offset = spu_context_cache[i].embedded_offset; trans->cookie = spu_context_cache[i].spu_cookie; } #define SPU_NUM_MASK 0xFFFFFFFF00000000ULL #define SPU_CYCLES_COUNTER 0 static void opd_put_spu_sample (struct transient * trans, unsigned long long pc) { unsigned long spu_number = (pc & SPU_NUM_MASK) >> 32; if (trans->cpu != spu_number) { trans->cpu = spu_number; clear_trans_current(trans); update_trans_for_spu(trans); } /* get the current sfile if needed */ if (!trans->current) trans->current = sfile_find(trans); if (trans->tracing != TRACING_ON) trans->event = SPU_CYCLES_COUNTER; trans->pc = (pc & ~SPU_NUM_MASK); /* log the sample or arc */ sfile_log_sample(trans); /* switch to trace mode */ if (trans->tracing == TRACING_START) trans->tracing = TRACING_ON; update_trans_last(trans); } /* * This function processes SPU context switches and * SPU program counter samples. After processing a * context switch (via handlers[code)), we cache the * SPU context information that has been temporarily * stored in trans. */ static void process_spu_samples(struct transient * trans) { unsigned long long code; trans->in_kernel = 0; while (trans->remaining) { code = pop_buffer_value(trans); if (!is_escape_code(code)) { opd_put_spu_sample(trans, code); continue; } if (!trans->remaining) { verbprintf(vmisc, "Dangling ESCAPE_CODE.\n"); opd_stats[OPD_DANGLING_CODE]++; break; } /* started with ESCAPE_CODE, next is type */ code = pop_buffer_value(trans); if (code >= LAST_CODE) { fprintf(stderr, "Unknown code %llu\n", code); abort(); } handlers[code](trans); cache_spu_context_info(trans); } } oprofile-0.9.9/daemon/Makefile.am0000664000076400007640000000206012175510133013576 00000000000000oprofiled_SOURCES = \ init.c \ oprofiled.c \ oprofiled.h \ opd_stats.c \ opd_pipe.c \ opd_pipe.h \ opd_sfile.c \ opd_sfile.h \ opd_kernel.c \ opd_kernel.h \ opd_trans.c \ opd_trans.h \ opd_printf.h \ opd_stats.h \ opd_cookie.c \ opd_cookie.h \ opd_events.c \ opd_events.h \ opd_interface.h \ opd_mangling.c \ opd_mangling.h \ opd_perfmon.h \ opd_perfmon.c \ opd_anon.h \ opd_anon.c \ opd_spu.c \ opd_extended.h \ opd_extended.c \ opd_ibs.h \ opd_ibs.c \ opd_ibs_macro.h \ opd_ibs_trans.h \ opd_ibs_trans.c LIBS=@POPT_LIBS@ @LIBERTY_LIBS@ AM_CPPFLAGS = \ -I ${top_srcdir}/libabi \ -I ${top_srcdir}/libutil \ -I ${top_srcdir}/libop \ -I ${top_srcdir}/libdb \ @OP_CPPFLAGS@ # -fno-omit-frame-pointer needed for daemon build: see ChangeLog-2004 02-23 AM_CFLAGS = @OP_CFLAGS@ -fno-omit-frame-pointer AM_LDFLAGS = @OP_LDFLAGS@ bin_PROGRAMS = oprofiled oprofiled_LDADD = \ ../libabi/libabi.a \ ../libdb/libodb.a \ ../libop/libop.a \ ../libutil/libutil.a oprofiled_LINK = $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ oprofile-0.9.9/daemon/opd_trans.h0000664000076400007640000000365512175510133013717 00000000000000/** * @file daemon/opd_trans.h * Processing the sample buffer * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie * * Modified by Maynard Johnson * These modifications are: * (C) Copyright IBM Corporation 2007 */ #ifndef OPD_TRANS_H #define OPD_TRANS_H #include "opd_cookie.h" #include "op_types.h" #include struct sfile; struct anon_mapping; enum tracing_type { TRACING_OFF, TRACING_START, TRACING_ON }; /** * Transient values used for parsing the event buffer. * Note that these are reset for each buffer read, but * that should be ok as in the kernel, cpu_buffer_reset() * ensures that a correct context starts off the buffer. */ struct transient { char const * buffer; size_t remaining; enum tracing_type tracing; struct sfile * current; struct sfile * last; struct anon_mapping * anon; struct anon_mapping * last_anon; cookie_t cookie; cookie_t app_cookie; vma_t pc; vma_t last_pc; unsigned long event; int in_kernel; unsigned long cpu; pid_t tid; pid_t tgid; uint64_t embedded_offset; void * ext; }; typedef void (*handler_t)(struct transient *); extern handler_t handlers[]; uint64_t pop_buffer_value(struct transient * trans); int enough_remaining(struct transient * trans, size_t size); static inline void update_trans_last(struct transient * trans) { trans->last = trans->current; trans->last_anon = trans->anon; trans->last_pc = trans->pc; } extern size_t kernel_pointer_size; static inline int is_escape_code(uint64_t code) { return kernel_pointer_size == 4 ? code == ~0LU : code == ~0LLU; } void opd_process_samples(char const * buffer, size_t count); /** used when we need to clear data that's been freed */ void clear_trans_last(struct transient * trans); /** used when we need to clear data that's been freed */ void clear_trans_current(struct transient * trans); #endif /* OPD_TRANS_H */ oprofile-0.9.9/daemon/opd_pipe.h0000664000076400007640000000210312175510133013510 00000000000000/** * @file daemon/opd_pipe.h * Functions handling the $SESSIONDIR/opd_pipe FIFO special file. * NOTE: This code is dealing with potencially insecure input. * * @remark Copyright 2008 OProfile authors * @remark Read the file COPYING * * @author Daniel Hansel */ #ifndef OPD_PIPE_H_ #define OPD_PIPE_H_ /** * opd_create_pipe - creates the oprofiled fifo file * * Creates the Oprofile daemon fifo pipe to enable communication between * the daemon and the 'opcontrol --dump' command. Failure to create the pipe * is a fatal error. */ void opd_create_pipe(void); /** * opd_open_pipe - opens the oprofiled fifo file */ void opd_open_pipe(void); /** * opd_close_pipe - closes the oprofiled fifo file * * Closes the Oprofile daemon fifo pipe. */ void opd_close_pipe(void); /** * is_jitconv_requested - check for request to jit conversion * * Checks the Oprofile daemon fifo pipe for do_jitconv request. * If jit conversion is requested ('do_jitconv' is sent) the check returns 1. * Otherwise it returns 0. */ int is_jitconv_requested(void); #endif /*OPD_PIPE_H_*/ oprofile-0.9.9/daemon/opd_printf.h0000664000076400007640000000153312175510133014063 00000000000000/** * @file daemon/opd_printf.h * Output routines * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef OPD_PRINTF_H #define OPD_PRINTF_H /// log all sample file name manipulation; sample files open, close, /// sfile LRU etc. voluminous. FIXME need to be splitted (filename manip, files /// handling) ? extern int vsfile; /// log samples, voluminous. extern int vsamples; /// log arc, very voluminous. extern int varcs; /// kernel module handling extern int vmodule; /// extended feature extern int vext; /// all others not fitting in above category, not voluminous. extern int vmisc; #define verbprintf(x, args...) \ do { \ /* look like fragile but we must catch verbrintf("%s", "") */ \ if (x == 1) \ printf(args); \ } while (0) #endif /* OPD_PRINTF_H */ oprofile-0.9.9/daemon/opd_extended.c0000664000076400007640000001063112175510133014353 00000000000000/** * @file opd_extended.c * OProfile Extended Feature * * @remark Copyright 2007-2009 OProfile authors * @remark Read the file COPYING * * @author Suravee Suthikulpanit * Copyright (c) 2009 Advanced Micro Devices, Inc. */ #include "opd_extended.h" #include "op_string.h" #include #include /* This global variable is >= 0 * if extended feature is enabled */ static int opd_ext_feat_index; extern struct opd_ext_handlers ibs_handlers; /** * OProfile Extended Feature Table * * This table contains a list of extended features. */ static struct opd_ext_feature ext_feature_table[] = { {"ibs", &ibs_handlers }, { NULL, NULL } }; static int get_index_for_feature(char const * name) { int ret = -1; unsigned int i; if(!name) return ret; for (i = 0 ; ext_feature_table[i].feature != NULL ; i++ ) { if(!strncmp(name, ext_feature_table[i].feature, strlen(ext_feature_table[i].feature))) { ret = i; break; } } return ret; } static inline int is_ext_enabled() { if (opd_ext_feat_index >= 0 && ext_feature_table[opd_ext_feat_index].handlers != NULL) return 1; else return 0; } static inline int is_ext_sfile_enabled() { if (opd_ext_feat_index >= 0 && ext_feature_table[opd_ext_feat_index].handlers != NULL && ext_feature_table[opd_ext_feat_index].handlers->ext_sfile != NULL) return 1; else return 0; } /** * Param "value" is the input from CML option with the format: * * ::::..... * * where param1,2.3,..n are optional. */ int opd_ext_initialize(char const * value) { int ret = EXIT_FAILURE; char * tmp = NULL, * name = NULL, * args = NULL; if(!value) { opd_ext_feat_index = -1; return 0; } tmp = op_xstrndup(value, strlen(value)); /* Parse feature name*/ if((name = strtok_r(tmp, ":", &args)) == NULL) goto err_out; if((opd_ext_feat_index = get_index_for_feature(name)) < 0) goto err_out; ret = ext_feature_table[opd_ext_feat_index].handlers->ext_init(args); return ret; err_out: fprintf(stderr,"opd_ext_initialize: Invalid extended feature option: %s\n", value); return ret; } int opd_ext_deinitialize() { int ret = EXIT_FAILURE; if(opd_ext_feat_index == -1) { return 0; } ret = ext_feature_table[opd_ext_feat_index].handlers->ext_deinit(); return ret; } void opd_ext_print_stats() { if (is_ext_enabled() && ext_feature_table[opd_ext_feat_index].handlers->ext_print_stats != NULL) { printf("\n-- OProfile Extended-Feature Statistics --\n"); ext_feature_table[opd_ext_feat_index].handlers->ext_print_stats(); } } /** * opd_sfile extended APIs */ void opd_ext_sfile_create(struct sfile * sf) { /* Creating ext sfile only if extended feature is enable*/ if (is_ext_sfile_enabled() && ext_feature_table[opd_ext_feat_index].handlers->ext_sfile->create != NULL) ext_feature_table[opd_ext_feat_index].handlers->ext_sfile->create(sf); } void opd_ext_sfile_dup (struct sfile * to, struct sfile * from) { /* Duplicate ext sfile only if extended feature is enable*/ if (is_ext_sfile_enabled() && ext_feature_table[opd_ext_feat_index].handlers->ext_sfile->dup != NULL) ext_feature_table[opd_ext_feat_index].handlers->ext_sfile->dup(to, from); } void opd_ext_sfile_close (struct sfile * sf) { /* Close ext sfile only if extended feature is enable*/ if (is_ext_sfile_enabled() && ext_feature_table[opd_ext_feat_index].handlers->ext_sfile->close != NULL) ext_feature_table[opd_ext_feat_index].handlers->ext_sfile->close(sf); } void opd_ext_sfile_sync(struct sfile * sf) { /* Sync ext sfile only if extended feature is enable*/ if (is_ext_sfile_enabled() && ext_feature_table[opd_ext_feat_index].handlers->ext_sfile->sync != NULL) ext_feature_table[opd_ext_feat_index].handlers->ext_sfile->sync(sf); } odb_t * opd_ext_sfile_get(struct transient const * trans, int is_cg) { /* Get ext sfile only if extended feature is enable*/ if (is_ext_sfile_enabled() && ext_feature_table[opd_ext_feat_index].handlers->ext_sfile->get != NULL) return ext_feature_table[opd_ext_feat_index].handlers->ext_sfile->get(trans, is_cg); return NULL; } struct opd_event * opd_ext_find_counter_event(unsigned long counter) { /* Only if extended feature is enable*/ if (is_ext_sfile_enabled() && ext_feature_table[opd_ext_feat_index].handlers->ext_sfile->find_counter_event != NULL) return ext_feature_table[opd_ext_feat_index].handlers->ext_sfile->find_counter_event(counter); return NULL; } oprofile-0.9.9/daemon/opd_ibs.c0000664000076400007640000004743012175510133013337 00000000000000/** * @file daemon/opd_ibs.c * AMD Family10h Instruction Based Sampling (IBS) handling. * * @remark Copyright 2007-2010 OProfile authors * @remark Read the file COPYING * * @author Jason Yeh * @author Paul Drongowski * @author Suravee Suthikulpanit * Copyright (c) 2008 Advanced Micro Devices, Inc. */ #include "op_hw_config.h" #include "op_events.h" #include "op_string.h" #include "op_hw_specific.h" #include "op_libiberty.h" #include "opd_printf.h" #include "opd_trans.h" #include "opd_events.h" #include "opd_kernel.h" #include "opd_anon.h" #include "opd_sfile.h" #include "opd_interface.h" #include "opd_mangling.h" #include "opd_extended.h" #include "opd_ibs.h" #include "opd_ibs_trans.h" #include "opd_ibs_macro.h" #include #include #include #include #include extern op_cpu cpu_type; extern int no_event_ok; extern int sfile_equal(struct sfile const * sf, struct sfile const * sf2); extern void sfile_dup(struct sfile * to, struct sfile * from); extern char * session_dir; /* IBS Select Counters */ static unsigned int ibs_selected_size; /* These flags store the IBS-derived events selection. */ static unsigned int ibs_fetch_selected_flag; static unsigned int ibs_op_selected_flag; static unsigned int ibs_op_ls_selected_flag; static unsigned int ibs_op_nb_selected_flag; /* IBS Statistics */ static unsigned long ibs_fetch_sample_stats; static unsigned long ibs_fetch_incomplete_stats; static unsigned long ibs_op_sample_stats; static unsigned long ibs_op_incomplete_stats; static unsigned long ibs_derived_event_stats; /* * IBS Virtual Counter */ struct opd_event ibs_vc[OP_MAX_IBS_COUNTERS]; /* IBS Virtual Counter Index(VCI) Map*/ unsigned int ibs_vci_map[OP_MAX_IBS_COUNTERS]; /* CPUID information */ unsigned int ibs_family; unsigned int ibs_model; unsigned int ibs_stepping; /* IBS Extended MSRs */ static unsigned long ibs_bta_enabled; /* IBS log files */ FILE * memaccess_log; FILE * bta_log; /** * This function converts IBS fetch event flags and values into * derived events. If the tagged (sampled) fetched caused a derived * event, the derived event is tallied. */ static void opd_log_ibs_fetch(struct transient * trans) { struct ibs_fetch_sample * trans_fetch = ((struct ibs_sample*)(trans->ext))->fetch; if (!trans_fetch) return; trans_ibs_fetch(trans, ibs_fetch_selected_flag); } /** * This function translates the IBS op event flags and values into * IBS op derived events. If an op derived event occured, it's tallied. */ static void opd_log_ibs_op(struct transient * trans) { struct ibs_op_sample * trans_op = ((struct ibs_sample*)(trans->ext))->op; if (!trans_op) return; trans_ibs_op_mask_reserved(ibs_family, trans); if (trans_ibs_op_rip_invalid(trans) != 0) return; trans_ibs_op(trans, ibs_op_selected_flag); trans_ibs_op_ls(trans, ibs_op_ls_selected_flag); trans_ibs_op_nb(trans, ibs_op_nb_selected_flag); trans_ibs_op_ls_memaccess(trans); trans_ibs_op_bta(trans); } static void opd_put_ibs_sample(struct transient * trans) { unsigned long long event = 0; struct kernel_image * k_image = NULL; struct ibs_fetch_sample * trans_fetch = ((struct ibs_sample*)(trans->ext))->fetch; if (!enough_remaining(trans, 1)) { trans->remaining = 0; return; } /* IBS can generate samples with invalid dcookie and * in kernel address range. Map such samples to vmlinux * only if the user either specifies a range, or vmlinux. */ if (trans->cookie == INVALID_COOKIE && (k_image = find_kernel_image(trans)) != NULL && (k_image->start != 0 && k_image->end != 0) && trans->in_kernel == 0) trans->in_kernel = 1; if (trans->tracing != TRACING_ON) trans->event = event; /* sfile can change at each sample for kernel */ if (trans->in_kernel != 0) clear_trans_current(trans); if (!trans->in_kernel && trans->cookie == NO_COOKIE) trans->anon = find_anon_mapping(trans); /* get the current sfile if needed */ if (!trans->current) trans->current = sfile_find(trans); /* * can happen if kernel sample falls through the cracks, or if * it's a sample from an anon region we couldn't find */ if (!trans->current) goto out; if (trans_fetch) opd_log_ibs_fetch(trans); else opd_log_ibs_op(trans); out: /* switch to trace mode */ if (trans->tracing == TRACING_START) trans->tracing = TRACING_ON; update_trans_last(trans); } static void get_ibs_bta_status() { FILE * fp = NULL; char buf[PATH_MAX]; /* Default to disable */ ibs_bta_enabled = 0; snprintf(buf, PATH_MAX, "/dev/oprofile/ibs_op/branch_target"); fp = fopen(buf, "r"); if (!fp) return; while (fgets(buf, PATH_MAX, fp) != NULL) ibs_bta_enabled = strtoul(buf, NULL, 10); fclose(fp); } void code_ibs_fetch_sample(struct transient * trans) { struct ibs_fetch_sample * trans_fetch = NULL; if (!enough_remaining(trans, 7)) { verbprintf(vext, "not enough remaining\n"); trans->remaining = 0; ibs_fetch_incomplete_stats++; return; } ibs_fetch_sample_stats++; trans->ext = xmalloc(sizeof(struct ibs_sample)); ((struct ibs_sample*)(trans->ext))->fetch = xmalloc(sizeof(struct ibs_fetch_sample)); trans_fetch = ((struct ibs_sample*)(trans->ext))->fetch; trans_fetch->rip = pop_buffer_value(trans); trans_fetch->ibs_fetch_lin_addr_low = pop_buffer_value(trans); trans_fetch->ibs_fetch_lin_addr_high = pop_buffer_value(trans); trans_fetch->ibs_fetch_ctl_low = pop_buffer_value(trans); trans_fetch->ibs_fetch_ctl_high = pop_buffer_value(trans); trans_fetch->ibs_fetch_phys_addr_low = pop_buffer_value(trans); trans_fetch->ibs_fetch_phys_addr_high = pop_buffer_value(trans); verbprintf(vsamples, "FETCH_X CPU:%ld PID:%ld RIP:%lx CTL_H:%x LAT:%d P_HI:%x P_LO:%x L_HI:%x L_LO:%x\n", trans->cpu, (long)trans->tgid, trans_fetch->rip, (trans_fetch->ibs_fetch_ctl_high >> 16) & 0x3ff, (trans_fetch->ibs_fetch_ctl_high) & 0xffff, trans_fetch->ibs_fetch_phys_addr_high, trans_fetch->ibs_fetch_phys_addr_low, trans_fetch->ibs_fetch_lin_addr_high, trans_fetch->ibs_fetch_lin_addr_low) ; /* Overwrite the trans->pc with the more accurate trans_fetch->rip */ trans->pc = trans_fetch->rip; opd_put_ibs_sample(trans); free(trans_fetch); free(trans->ext); trans->ext = NULL; } static void get_ibs_op_bta_sample(struct transient * trans, struct ibs_op_sample * trans_op) { // Check remaining if (!enough_remaining(trans, 2)) { verbprintf(vext, "not enough remaining\n"); trans->remaining = 0; ibs_op_incomplete_stats++; return; } if (ibs_bta_enabled == 1) { trans_op->ibs_op_brtgt_addr = pop_buffer_value(trans); // Check if branch target address is valid (MSRC001_1035[37] == 1] if ((trans_op->ibs_op_data1_high & (0x00000001 << 5)) == 0) { trans_op->ibs_op_brtgt_addr = 0; } } else { trans_op->ibs_op_brtgt_addr = 0; } } void code_ibs_op_sample(struct transient * trans) { struct ibs_op_sample * trans_op= NULL; if (!enough_remaining(trans, 13)) { verbprintf(vext, "not enough remaining\n"); trans->remaining = 0; ibs_op_incomplete_stats++; return; } ibs_op_sample_stats++; trans->ext = xmalloc(sizeof(struct ibs_sample)); ((struct ibs_sample*)(trans->ext))->op = xmalloc(sizeof(struct ibs_op_sample)); trans_op = ((struct ibs_sample*)(trans->ext))->op; trans_op->rip = pop_buffer_value(trans); trans_op->ibs_op_lin_addr_low = pop_buffer_value(trans); trans_op->ibs_op_lin_addr_high = pop_buffer_value(trans); trans_op->ibs_op_data1_low = pop_buffer_value(trans); trans_op->ibs_op_data1_high = pop_buffer_value(trans); trans_op->ibs_op_data2_low = pop_buffer_value(trans); trans_op->ibs_op_data2_high = pop_buffer_value(trans); trans_op->ibs_op_data3_low = pop_buffer_value(trans); trans_op->ibs_op_data3_high = pop_buffer_value(trans); trans_op->ibs_op_ldst_linaddr_low = pop_buffer_value(trans); trans_op->ibs_op_ldst_linaddr_high = pop_buffer_value(trans); trans_op->ibs_op_phys_addr_low = pop_buffer_value(trans); trans_op->ibs_op_phys_addr_high = pop_buffer_value(trans); get_ibs_op_bta_sample(trans, trans_op); verbprintf(vsamples, "IBS_OP_X CPU:%ld PID:%d RIP:%lx D1HI:%x D1LO:%x D2LO:%x D3HI:%x D3LO:%x L_LO:%x P_LO:%x\n", trans->cpu, trans->tgid, trans_op->rip, trans_op->ibs_op_data1_high, trans_op->ibs_op_data1_low, trans_op->ibs_op_data2_low, trans_op->ibs_op_data3_high, trans_op->ibs_op_data3_low, trans_op->ibs_op_ldst_linaddr_low, trans_op->ibs_op_phys_addr_low); /* Overwrite the trans->pc with the more accurate trans_op->rip */ trans->pc = trans_op->rip; opd_put_ibs_sample(trans); free(trans_op); free(trans->ext); trans->ext = NULL; } /** Convert IBS event to value used for data structure indexing */ static unsigned long ibs_event_to_counter(unsigned long x) { unsigned long ret = ~0UL; if (IS_IBS_FETCH(x)) ret = (x - IBS_FETCH_BASE); else if (IS_IBS_OP(x)) ret = (x - IBS_OP_BASE + IBS_FETCH_MAX); else if (IS_IBS_OP_LS(x)) ret = (x - IBS_OP_LS_BASE + IBS_OP_MAX + IBS_FETCH_MAX); else if (IS_IBS_OP_NB(x)) ret = (x - IBS_OP_NB_BASE + IBS_OP_LS_MAX + IBS_OP_MAX + IBS_FETCH_MAX); return (ret != ~0UL) ? ret + OP_MAX_COUNTERS : ret; } void opd_log_ibs_event(unsigned int event, struct transient * trans) { ibs_derived_event_stats++; trans->event = event; sfile_log_sample_count(trans, 1); } void opd_log_ibs_count(unsigned int event, struct transient * trans, unsigned int count) { ibs_derived_event_stats++; trans->event = event; sfile_log_sample_count(trans, count); } static unsigned long get_ibs_vci_key(unsigned int event) { unsigned long key = ibs_event_to_counter(event); if (key == ~0UL || key < OP_MAX_COUNTERS) return ~0UL; key = key - OP_MAX_COUNTERS; return key; } static int ibs_parse_and_set_events(char * str) { char * tmp, * ptr, * tok1, * tok2 = NULL; int is_done = 0; struct op_event * event = NULL; op_cpu cpu_type = CPU_NO_GOOD; unsigned long key; if (!str) return -1; cpu_type = op_get_cpu_type(); op_events(cpu_type); tmp = op_xstrndup(str, strlen(str)); ptr = tmp; while (is_done != 1 && (tok1 = strtok_r(ptr, ",", &tok2)) != NULL) { if ((ptr = strstr(tok1, ":")) != NULL) { *ptr = '\0'; is_done = 1; } // Resove event number event = find_event_by_name(tok1, 0, 0); if (!event) return -1; // Grouping if (IS_IBS_FETCH(event->val)) { ibs_fetch_selected_flag |= 1 << IBS_FETCH_OFFSET(event->val); } else if (IS_IBS_OP(event->val)) { ibs_op_selected_flag |= 1 << IBS_OP_OFFSET(event->val); } else if (IS_IBS_OP_LS(event->val)) { ibs_op_ls_selected_flag |= 1 << IBS_OP_LS_OFFSET(event->val); } else if (IS_IBS_OP_NB(event->val)) { ibs_op_nb_selected_flag |= 1 << IBS_OP_NB_OFFSET(event->val); } else { return -1; } key = get_ibs_vci_key(event->val); if (key == ~0UL) return -1; ibs_vci_map[key] = ibs_selected_size; /* Initialize part of ibs_vc */ ibs_vc[ibs_selected_size].name = tok1; ibs_vc[ibs_selected_size].value = event->val; ibs_vc[ibs_selected_size].counter = ibs_selected_size + OP_MAX_COUNTERS; ibs_vc[ibs_selected_size].kernel = 1; ibs_vc[ibs_selected_size].user = 1; ibs_selected_size++; ptr = NULL; } return 0; } static int ibs_parse_counts(char * str, unsigned long int * count) { char * tmp, * tok1, * tok2 = NULL, *end = NULL; if (!str) return -1; tmp = op_xstrndup(str, strlen(str)); tok1 = strtok_r(tmp, ":", &tok2); if (tok1) { *count = strtoul(tok1, &end, 10); } else { fprintf(stderr, "Invalid count specification in %s\n", str); return -1; } if ((end && *end) || *count == 0 || errno == EINVAL || errno == ERANGE) { fprintf(stderr,"Invalid count (%s)\n", str); return -1; } return 0; } static int ibs_parse_and_set_um_fetch(char const * str) { if (!str) return -1; return 0; } static int ibs_parse_and_set_um_op(char const * str, unsigned long int * ibs_op_um) { char * end = NULL; if (!str) return -1; *ibs_op_um = strtoul(str, &end, 16); if ((end && *end) || errno == EINVAL || errno == ERANGE) { fprintf(stderr,"Invalid unitmaks (%s)\n", str); return -1; } return 0; } static void check_cpuid_family_model_stepping() { #if defined(__i386__) || defined(__x86_64__) unsigned eax = cpuid_signature(); ibs_family = cpu_family(eax); ibs_model = cpu_model(eax); ibs_stepping = cpu_stepping(eax); #else ibs_family = 0; ibs_model = 0; ibs_stepping = 0; #endif } static int ibs_init(char const * argv) { char * tmp, * ptr, * tok1, * tok2 = NULL; unsigned int i = 0; unsigned long int ibs_fetch_count = 0; unsigned long int ibs_op_count = 0; unsigned long int ibs_op_um = 0; if (!argv) return -1; if (empty_line(argv) != 0) return -1; tmp = op_xstrndup(argv, strlen(argv)); ptr = (char *) skip_ws(tmp); // "fetch:event1,event2,....:count:um|op:event1,event2,.....:count:um" tok1 = strtok_r(ptr, "|", &tok2); while (tok1 != NULL) { if (!strncmp("fetch:", tok1, strlen("fetch:"))) { // Get to event section tok1 = tok1 + strlen("fetch:"); if (ibs_parse_and_set_events(tok1) == -1) return -1; // Get to count section while (tok1) { if (*tok1 == '\0') return -1; if (*tok1 != ':') { tok1++; } else { tok1++; break; } } if (ibs_parse_counts(tok1, &ibs_fetch_count) == -1) return -1; // Get to um section while (tok1) { if (*tok1 == '\0') return -1; if (*tok1 != ':') { tok1++; } else { tok1++; break; } } if (ibs_parse_and_set_um_fetch(tok1) == -1) return -1; } else if (!strncmp("op:", tok1, strlen("op:"))) { // Get to event section tok1 = tok1 + strlen("op:"); if (ibs_parse_and_set_events(tok1) == -1) return -1; // Get to count section while (tok1) { if (*tok1 == '\0') return -1; if (*tok1 != ':') { tok1++; } else { tok1++; break; } } if (ibs_parse_counts(tok1, &ibs_op_count) == -1) return -1; // Get to um section while (tok1) { if (*tok1 == '\0') return -1; if (*tok1 != ':') { tok1++; } else { tok1++; break; } } if (ibs_parse_and_set_um_op(tok1, &ibs_op_um)) return -1; } else return -1; tok1 = strtok_r(NULL, "|", &tok2); } /* Initialize ibs_vc */ for (i = 0 ; i < ibs_selected_size ; i++) { if (IS_IBS_FETCH(ibs_vc[i].value)) { ibs_vc[i].count = ibs_fetch_count; ibs_vc[i].um = 0; } else { ibs_vc[i].count = ibs_op_count; ibs_vc[i].um = ibs_op_um; } } // Allow no event no_event_ok = 1; check_cpuid_family_model_stepping(); get_ibs_bta_status(); /* Create IBS memory access log */ memaccess_log = NULL; if (ibs_op_um & 0x2) { char filename[PATH_MAX]; char * log_file = "/samples/ibs_memaccess.log"; size_t path_len = strlen(session_dir) + strlen(log_file); if (path_len < PATH_MAX) { strcpy(filename, session_dir); strcat(filename, log_file); memaccess_log = fopen(filename, "w"); } if ( memaccess_log == NULL) { verbprintf(vext, "Warning: Cannot create ibs_memaccess.log\n"); } else { fprintf (memaccess_log, "# IBS Memory Access Log\n\n"); fprintf (memaccess_log, "# Format: app_cookie,cookie,cpu,tgid,tid,pc,branch-target-address,\n"); fprintf (memaccess_log, "# phy-hi:phy-low,lin-hi:lin-low,accese-type,latency\n\n"); } } // Create IBS Branch Target Address (BTA) log bta_log = NULL; if (ibs_bta_enabled) { char filename[PATH_MAX]; char * log_file = "/samples/ibs_bta.log"; size_t path_len = strlen(session_dir) + strlen(log_file); if (path_len < PATH_MAX) { strcpy(filename, session_dir); strcat(filename, log_file); bta_log = fopen(filename, "w"); } if ( bta_log == NULL) { verbprintf(vext, "Warning: Cannot create ibs_bta.log\n"); } else { fprintf (bta_log, "# IBS Memory Access Log\n\n"); fprintf (bta_log, "# Format: app_cookie,cookie,cpu,tgid,tid,pc,branch-target-address\n\n"); } } return 0; } static int ibs_deinit() { if (memaccess_log) { fclose (memaccess_log); memaccess_log = NULL; } if (bta_log) { fclose (bta_log); bta_log = NULL; } return 0; } static int ibs_print_stats() { printf("Nr. IBS Fetch samples : %lu (%lu entries)\n", ibs_fetch_sample_stats, (ibs_fetch_sample_stats * 7)); printf("Nr. IBS Fetch incompletes : %lu\n", ibs_fetch_incomplete_stats); printf("Nr. IBS Op samples : %lu (%lu entries)\n", ibs_op_sample_stats, (ibs_op_sample_stats * 13)); printf("Nr. IBS Op incompletes : %lu\n", ibs_op_incomplete_stats); printf("Nr. IBS derived events : %lu\n", ibs_derived_event_stats); return 0; } static int ibs_sfile_create(struct sfile * sf) { unsigned int i; sf->ext_files = xmalloc(ibs_selected_size * sizeof(odb_t)); for (i = 0 ; i < ibs_selected_size ; ++i) odb_init(&sf->ext_files[i]); return 0; } static int ibs_sfile_dup (struct sfile * to, struct sfile * from) { unsigned int i; if (from->ext_files != NULL) { to->ext_files = xmalloc(ibs_selected_size * sizeof(odb_t)); for (i = 0 ; i < ibs_selected_size ; ++i) odb_init(&to->ext_files[i]); } else { to->ext_files = NULL; } return 0; } static int ibs_sfile_close(struct sfile * sf) { unsigned int i; if (sf->ext_files != NULL) { for (i = 0; i < ibs_selected_size ; ++i) odb_close(&sf->ext_files[i]); free(sf->ext_files); sf->ext_files= NULL; } return 0; } static int ibs_sfile_sync(struct sfile * sf) { unsigned int i; if (sf->ext_files != NULL) { for (i = 0; i < ibs_selected_size ; ++i) odb_sync(&sf->ext_files[i]); } return 0; } static odb_t * ibs_sfile_get(struct transient const * trans, int is_cg) { struct sfile * sf = trans->current; struct sfile * last = trans->last; struct cg_entry * cg; struct list_head * pos; unsigned long hash; odb_t * file; unsigned long counter, ibs_vci, key; /* Note: "trans->event" for IBS is not the same as traditional * events. Here, it has the actual event (0xfxxx), while the * traditional event has the event index. */ key = get_ibs_vci_key(trans->event); if (key == ~0UL) { fprintf(stderr, "%s: Invalid IBS event %lu\n", __func__, trans->event); abort(); } ibs_vci = ibs_vci_map[key]; counter = ibs_vci + OP_MAX_COUNTERS; /* Creating IBS sfile if it not already exists */ if (sf->ext_files == NULL) ibs_sfile_create(sf); file = &(sf->ext_files[ibs_vci]); if (!is_cg) goto open; hash = last->hashval & (CG_HASH_SIZE - 1); /* Need to look for the right 'to'. Since we're looking for * 'last', we use its hash. */ list_for_each(pos, &sf->cg_hash[hash]) { cg = list_entry(pos, struct cg_entry, hash); if (sfile_equal(last, &cg->to)) { file = &(cg->to.ext_files[ibs_vci]); goto open; } } cg = xmalloc(sizeof(struct cg_entry)); sfile_dup(&cg->to, last); list_add(&cg->hash, &sf->cg_hash[hash]); file = &(cg->to.ext_files[ibs_vci]); open: if (!odb_open_count(file)) opd_open_sample_file(file, last, sf, counter, is_cg); /* Error is logged by opd_open_sample_file */ if (!odb_open_count(file)) return NULL; return file; } /** Filled opd_event structure with IBS derived event information * from the given counter value. */ static struct opd_event * ibs_sfile_find_counter_event(unsigned long counter) { unsigned long ibs_vci; if (counter >= OP_MAX_COUNTERS + OP_MAX_IBS_COUNTERS || counter < OP_MAX_COUNTERS) { fprintf(stderr,"Error: find_ibs_counter_event : " "invalid counter value %lu.\n", counter); abort(); } ibs_vci = counter - OP_MAX_COUNTERS; return &ibs_vc[ibs_vci]; } struct opd_ext_sfile_handlers ibs_sfile_handlers = { .create = &ibs_sfile_create, .dup = &ibs_sfile_dup, .close = &ibs_sfile_close, .sync = &ibs_sfile_sync, .get = &ibs_sfile_get, .find_counter_event = &ibs_sfile_find_counter_event }; struct opd_ext_handlers ibs_handlers = { .ext_init = &ibs_init, .ext_deinit = &ibs_deinit, .ext_print_stats = &ibs_print_stats, .ext_sfile = &ibs_sfile_handlers }; oprofile-0.9.9/install-sh0000755000076400007640000003253712175510233012316 00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2009-04-28.21; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. nl=' ' IFS=" "" $nl" # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit=${DOITPROG-} if test -z "$doit"; then doit_exec=exec else doit_exec=$doit fi # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_glob='?' initialize_posix_glob=' test "$posix_glob" != "?" || { if (set -f) 2>/dev/null; then posix_glob= else posix_glob=: fi } ' posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false no_target_directory= usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve the last data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *' '* | *' '* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) dst_arg=$2 shift;; -T) no_target_directory=true;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call `install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then trap '(exit $?); exit' 1 2 13 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names starting with `-'. case $src in -*) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # Protect names starting with `-'. case $dst in -*) dst=./$dst;; esac # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else # Prefer dirname, but fall back on a substitute if dirname fails. dstdir=` (dirname "$dst") 2>/dev/null || expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$dst" : 'X\(//\)[^/]' \| \ X"$dst" : 'X\(//\)$' \| \ X"$dst" : 'X\(/\)' \| . 2>/dev/null || echo X"$dst" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q' ` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writeable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. ls_ld_tmpdir=`ls -ld "$tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/d" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; -*) prefix='./';; *) prefix='';; esac eval "$initialize_posix_glob" oIFS=$IFS IFS=/ $posix_glob set -f set fnord $dstdir shift $posix_glob set +f IFS=$oIFS prefixes= for d do test -z "$d" && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && eval "$initialize_posix_glob" && $posix_glob set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && $posix_glob set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: oprofile-0.9.9/opjitconv/0000775000076400007640000000000012175511556012406 500000000000000oprofile-0.9.9/opjitconv/debug_line.c0000664000076400007640000003120412175510133014555 00000000000000/** * @file debug_line.c * DWARF 2 debug line info creation helper * * @remark Copyright 2007 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie */ #include "config.h" #include #include #include #include #include #include #include #include "opjitconv.h" #include "jitdump.h" #include "opagent.h" #include "op_libiberty.h" #include "op_growable_buffer.h" /* * Terminology comes from the TIS DWARF Debugging Information Format * version 2.0 */ typedef uint32_t uword; typedef uint16_t uhalf; typedef int32_t sword; typedef int16_t shalf; typedef uint8_t ubyte; typedef int8_t sbyte; /* * Many of the following enum are incomplete and define only the subset * of DWARF we use. */ enum lns_opcode { DW_LNS_copy=1, DW_LNS_advance_pc, DW_LNS_advance_line, DW_LNS_set_file, DW_LNS_set_column, DW_LNS_negate_stmt, DW_LNS_set_basic_block, DW_LNS_const_add_pc, DW_LNS_fixed_advance_pc, /* Adding new opcode needs an update of the standard_opcode_length * array */ DW_LNS_max_opcode, }; enum lne_opcode { DW_LNE_end_sequence = 1, DW_LNE_set_address, DW_LNE_define_file }; enum dw_tag { DW_TAG_compile_unit = 0x11, }; enum dw_at { DW_AT_name = 0x03, DW_AT_stmt_list = 0x10, DW_AT_low_pc, DW_AT_high_pc, DW_AT_language, DW_AT_compdir = 0x1b, DW_AT_producer = 0x25, }; enum dw_children { DW_CHILDREN_no, DW_CHILDREN_yes }; enum dw_form { DW_FORM_data4 = 0x06, }; struct debug_line_header { // Not counting this field uword total_length; // version number (2 currently) uhalf version; // relative offset from next field to // program statement uword prolog_length; ubyte minimum_instruction_length; ubyte default_is_stmt; // line_base - see DWARF 2 specs sbyte line_base; // line_range - see DWARF 2 specs ubyte line_range; // number of opcode + 1 ubyte opcode_base; /* follow the array of opcode args nr: ubytes [nr_opcode_base] */ /* follow the search directories index, zero terminated string * terminated by an empty string. */ /* follow an array of { filename, LEB128, LEB128, LEB128 }, first is * the directory index entry, 0 means current directory, then mtime * and filesize, last entry is followed by en empty string. */ /* follow the first program statement */ } __attribute__((packed)); /* DWARF 2 spec talk only about one possible compilation unit header while * binutils can handle two flavours of dwarf 2, 32 and 64 bits, this is not * related to the used arch, an ELF 32 can hold more than 4 Go of debug * information. For now we handle only DWARF 2 32 bits comp unit. It'll only * become a problem if we generate more than 4GB of debug information. */ struct compilation_unit_header { uword total_length; uhalf version; uword debug_abbrev_offset; ubyte pointer_size; } __attribute__((packed)); /* field filled at run time are marked with -1 */ static struct debug_line_header const default_debug_line_header = { -1, 2, -1, 1, /* could be better when min instruction size != 1 */ 1, /* we don't take care about basic block */ -5, /* sensible value for line base ... */ 14, /* ... and line range are guessed statically */ DW_LNS_max_opcode }; static ubyte const standard_opcode_length[DW_LNS_max_opcode - 1] = { 0, 1, 1, 1, 1, 0, 0, 0, 1 }; /* field filled at run time are marked with -1 */ static struct compilation_unit_header const default_comp_unit_header = { -1, 2, 0, /* we reuse the same abbrev entries for all comp unit */ -1 }; static void emit_uword(struct growable_buffer * b, uword data) { add_data(b, &data, sizeof(uword)); } static void emit_string(struct growable_buffer * b, char const * s) { add_data(b, s, strlen(s) + 1); } static void emit_unsigned_LEB128(struct growable_buffer * b, unsigned long data) { do { ubyte cur = data & 0x7F; data >>= 7; if (data) cur |= 0x80; add_data(b, &cur, 1); } while (data); } static void emit_signed_LEB128(struct growable_buffer * b, long data) { int more = 1; int negative = data < 0; int size = sizeof(long) * CHAR_BIT; while (more) { ubyte cur = data & 0x7F; data >>= 7; if (negative) data |= - (1 << (size - 7)); if ((data == 0 && !(cur & 0x40)) || (data == -1l && (cur & 0x40))) more = 0; else cur |= 0x80; add_data(b, &cur, 1); } } static void emit_extended_opcode(struct growable_buffer * b, ubyte opcode, void * data, size_t data_len) { add_data(b, "", 1); emit_unsigned_LEB128(b, data_len + 1); add_data(b, &opcode, 1); add_data(b, data, data_len); } static void emit_opcode(struct growable_buffer * b, ubyte opcode) { add_data(b, &opcode, 1); } static void emit_opcode_signed(struct growable_buffer * b, ubyte opcode, long data) { add_data(b, &opcode, 1); emit_signed_LEB128(b, data); } static void emit_opcode_unsigned(struct growable_buffer * b, ubyte opcode, unsigned long data) { add_data(b, &opcode, 1); emit_unsigned_LEB128(b, data); } static void emit_advance_pc(struct growable_buffer * b, unsigned long delta_pc) { emit_opcode_unsigned(b, DW_LNS_advance_pc, delta_pc); } static void emit_advance_lineno(struct growable_buffer * b, long delta_lineno) { emit_opcode_signed(b, DW_LNS_advance_line, delta_lineno); } static void emit_lne_end_of_sequence(struct growable_buffer * b) { emit_extended_opcode(b, DW_LNE_end_sequence, NULL, 0); } static void emit_set_file(struct growable_buffer * b, unsigned long index) { emit_opcode_unsigned(b, DW_LNS_set_file, index); } static void emit_lne_define_filename(struct growable_buffer * b, char const * filename) { /* emit_extended_opcode() can't be used here, we have additional * data to output and the len field will be miscalculated. */ add_data(b, "", 1); /* strlen(filename) + zero terminator + len field + 3 bytes for the dir * entry, timestamp and filesize */ emit_unsigned_LEB128(b, strlen(filename) + 5); emit_opcode(b, DW_LNE_define_file); emit_string(b, filename); add_data(b, "\0\0\0", 3); } static void emit_lne_set_address(struct growable_buffer * b, void const * address) { emit_extended_opcode(b, DW_LNE_set_address, &address, sizeof(unsigned long)); } static ubyte get_special_opcode(struct debug_line_info const * line, unsigned int last_lineno, unsigned long last_vma) { unsigned int temp; unsigned long delta_addr; /* See TIS DWARF Debugging Information Format version 2.0 § 6.2.5.1 */ temp = (line->lineno - last_lineno) - default_debug_line_header.line_base; if (temp >= default_debug_line_header.line_range) return 0; delta_addr = (line->vma - last_vma) / default_debug_line_header.minimum_instruction_length; /* This is not sufficient to ensure opcode will be in [0-256] but * sufficient to ensure when summing with the delta lineno we will * not overflow the unsigned long opcode */ if (delta_addr <= 256 / default_debug_line_header.line_range) { unsigned long opcode = temp + (delta_addr * default_debug_line_header.line_range) + default_debug_line_header.opcode_base; return opcode <= 255 ? opcode : 0; } return 0; } static void emit_lineno_info(struct growable_buffer * b, struct debug_line_info const * line, size_t nr_entry, unsigned long code_addr) { size_t i; /* * Machine state at start of a statement program * address = 0 * file = 1 * line = 1 * column = 0 * is_stmt = default_is_stmt as given in the debug_line_header * basic block = 0 * end sequence = 0 */ /* start state of the state machine we take care of */ unsigned long last_vma = code_addr; unsigned int last_lineno = 1; char const * cur_filename = NULL; unsigned long cur_file_index = 0; /* FIXME: relocatable address? */ emit_lne_set_address(b, (void const *)code_addr); emit_advance_lineno(b, line[0].lineno - last_lineno); last_lineno = line[0].lineno; emit_lne_define_filename(b, line[0].filename); cur_filename = line[0].filename; emit_set_file(b, ++cur_file_index); emit_opcode(b, DW_LNS_copy); for (i = 0; i < nr_entry; i++) { int need_copy = 0; ubyte special_opcode; if (!cur_filename || strcmp(cur_filename, line[i].filename)) { emit_lne_define_filename(b, line[i].filename); cur_filename = line[i].filename; emit_set_file(b, ++cur_file_index); need_copy = 1; } if ((special_opcode = get_special_opcode(&line[i], last_lineno, last_vma)) != 0) { last_lineno = line[i].lineno; last_vma = line[i].vma; emit_opcode(b, special_opcode); } else { if (last_lineno != line[i].lineno) { emit_advance_lineno(b, line[i].lineno - last_lineno); last_lineno = line[i].lineno; need_copy = 1; } if (last_vma != line[i].vma) { emit_advance_pc(b, line[i].vma - last_vma); last_vma = line[i].vma; need_copy = 1; } if (need_copy) emit_opcode(b, DW_LNS_copy); } } } static void add_debug_line(struct growable_buffer * b, struct debug_line_info const * line, size_t nr_entry, unsigned long code_addr) { struct debug_line_header * dbg_header; size_t old_size; old_size = b->size; add_data(b, &default_debug_line_header, sizeof(default_debug_line_header)); add_data(b, &standard_opcode_length, sizeof(standard_opcode_length)); // empty directory entry add_data(b, "", 1); // empty filename directory add_data(b, "", 1); dbg_header = b->p + old_size; dbg_header->prolog_length = (b->size - old_size) - offsetof(struct debug_line_header, minimum_instruction_length); emit_lineno_info(b, line, nr_entry, code_addr); emit_lne_end_of_sequence(b); dbg_header = b->p + old_size; dbg_header->total_length = (b->size - old_size) - offsetof(struct debug_line_header, version); } static void add_compilation_unit(struct growable_buffer * b, size_t offset_debug_line) { struct compilation_unit_header * comp_unit_header; size_t old_size = b->size; add_data(b, &default_comp_unit_header, sizeof(default_comp_unit_header)); emit_unsigned_LEB128(b, 1); emit_uword(b, offset_debug_line); comp_unit_header = b->p + old_size; comp_unit_header->total_length = (b->size - old_size) - offsetof(struct compilation_unit_header, version); comp_unit_header->pointer_size = sizeof(void *); } static void create_debug_abbrev(struct growable_buffer * b) { emit_unsigned_LEB128(b, 1); emit_unsigned_LEB128(b, DW_TAG_compile_unit); emit_unsigned_LEB128(b, DW_CHILDREN_yes); emit_unsigned_LEB128(b, DW_AT_stmt_list); emit_unsigned_LEB128(b, DW_FORM_data4); emit_unsigned_LEB128(b, 0); } static struct growable_buffer b_line; static struct growable_buffer b_debug_info; static struct growable_buffer b_debug_abbrev; int init_debug_line_info(bfd * abfd) { asection * line_section, * debug_info, * debug_abbrev; struct jitentry_debug_line * debug_line; init_buffer(&b_line); init_buffer(&b_debug_info); init_buffer(&b_debug_abbrev); for (debug_line = jitentry_debug_line_list; debug_line; debug_line = debug_line->next) { struct jr_code_debug_info const * rec = debug_line->data; if (rec->nr_entry) { size_t i; void const * data = rec + 1; struct debug_line_info * dbg_line = xmalloc(rec->nr_entry * sizeof(struct debug_line_info)); for (i = 0; i < rec->nr_entry; ++i) { dbg_line[i].vma = *(unsigned long *)data; data += sizeof(unsigned long); dbg_line[i].lineno = *(unsigned int *)data; data += sizeof(unsigned int); dbg_line[i].filename = data; data += strlen(data) + 1; } add_compilation_unit(&b_debug_info, b_line.size); add_debug_line(&b_line, dbg_line, rec->nr_entry, rec->code_addr); create_debug_abbrev(&b_debug_abbrev); free(dbg_line); } } line_section = create_section(abfd, ".debug_line", b_line.size, 0, SEC_HAS_CONTENTS|SEC_READONLY|SEC_DEBUGGING); if (!line_section) return -1; debug_info = create_section(abfd, ".debug_info", b_debug_info.size, 0, SEC_HAS_CONTENTS|SEC_READONLY|SEC_DEBUGGING); if (!debug_info) return -1; debug_abbrev = create_section(abfd, ".debug_abbrev", b_debug_abbrev.size, 0, SEC_HAS_CONTENTS|SEC_READONLY|SEC_DEBUGGING); if (!debug_abbrev) return -1; return 0; } int finalize_debug_line_info(bfd * abfd) { asection * line_section, * debug_info, * debug_abbrev; line_section = bfd_get_section_by_name(abfd, ".debug_line"); if (!line_section) return -1; debug_info = bfd_get_section_by_name(abfd, ".debug_info"); if (!debug_info) return -1; debug_abbrev = bfd_get_section_by_name(abfd, ".debug_abbrev"); if (!debug_abbrev) return -1; fill_section_content(abfd, line_section, b_line.p, 0, b_line.size); fill_section_content(abfd, debug_info, b_debug_info.p, 0, b_debug_info.size); fill_section_content(abfd, debug_abbrev, b_debug_abbrev.p, 0, b_debug_abbrev.size); free_buffer(&b_line); free_buffer(&b_debug_info); free_buffer(&b_debug_abbrev); return 0; } oprofile-0.9.9/opjitconv/opjitconv.c0000664000076400007640000006004712175510133014502 00000000000000/** * @file opjitconv.c * Convert a jit dump file to an ELF file * * @remark Copyright 2007 OProfile authors * @remark Read the file COPYING * * @author Jens Wilke * @Modifications Maynard Johnson * @Modifications Daniel Hansel * @Modifications Gisle Dankel * * Copyright IBM Corporation 2007 * */ #include "opjitconv.h" #include "opd_printf.h" #include "op_file.h" #include "op_libiberty.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include /* * list head. The linked list is used during parsing (parse_all) to * hold all jitentry elements. After parsing, the program works on the * array structures (entries_symbols_ascending, entries_address_ascending) * and the linked list is not used any more. */ struct jitentry * jitentry_list = NULL; struct jitentry_debug_line * jitentry_debug_line_list = NULL; /* Global variable for asymbols so we can free the storage later. */ asymbol ** syms; /* jit dump header information */ enum bfd_architecture dump_bfd_arch; int dump_bfd_mach; char const * dump_bfd_target_name; /* user information for special user 'oprofile' */ struct passwd * pw_oprofile; char sys_cmd_buffer[PATH_MAX + 1]; /* the bfd handle of the ELF file we write */ bfd * cur_bfd; /* count of jitentries in the list */ u32 entry_count; /* maximul space in the entry arrays, needed to add entries */ u32 max_entry_count; /* array pointing to all jit entries, sorted by symbol names */ struct jitentry ** entries_symbols_ascending; /* array pointing to all jit entries sorted by address */ struct jitentry ** entries_address_ascending; /* debug flag, print some information */ int debug; /* indicates opjitconv invoked by non-root user via operf */ int non_root; /* indicates we should delete jitdump files owned by the user */ int delete_jitdumps; LIST_HEAD(jitdump_deletion_candidates); /* * Front-end processing from this point to end of the source. * From main(), the general flow is as follows: * 1. Find all anonymous samples directories * 2. Find all JIT dump files * 3. For each JIT dump file: * 3.1 Find matching anon samples dir (from list retrieved in step 1) * 3.2 mmap the JIT dump file * 3.3 Call op_jit_convert to create ELF file if necessary */ /* Callback function used for get_matching_pathnames() call to obtain * matching path names. */ static void get_pathname(char const * pathname, void * name_list) { struct list_head * names = (struct list_head *) name_list; struct pathname * pn = xmalloc(sizeof(struct pathname)); pn->name = xstrdup(pathname); list_add(&pn->neighbor, names); } static void delete_pathname(struct pathname * pname) { free(pname->name); list_del(&pname->neighbor); free(pname); } static void delete_path_names_list(struct list_head * list) { struct list_head * pos1, * pos2; list_for_each_safe(pos1, pos2, list) { struct pathname * pname = list_entry(pos1, struct pathname, neighbor); delete_pathname(pname); } } static int mmap_jitdump(char const * dumpfile, struct op_jitdump_info * file_info) { int rc = OP_JIT_CONV_OK; int dumpfd; dumpfd = open(dumpfile, O_RDONLY); if (dumpfd < 0) { if (errno == ENOENT) rc = OP_JIT_CONV_NO_DUMPFILE; else rc = OP_JIT_CONV_FAIL; goto out; } rc = fstat(dumpfd, &file_info->dmp_file_stat); if (rc < 0) { perror("opjitconv:fstat on dumpfile"); rc = OP_JIT_CONV_FAIL; goto out; } file_info->dmp_file = mmap(0, file_info->dmp_file_stat.st_size, PROT_READ, MAP_PRIVATE, dumpfd, 0); if (file_info->dmp_file == MAP_FAILED) { perror("opjitconv:mmap\n"); rc = OP_JIT_CONV_FAIL; } out: if (dumpfd != -1) close(dumpfd); return rc; } static char const * find_anon_dir_match(struct list_head * anon_dirs, char const * proc_id) { struct list_head * pos; /* Current PID_MAX_LIMIT (as defined in include/linux/threads.h) is * 4 x 4 x 1024 * 1024 (for 64-bit kernels) * So need to have space for 7 chars for proc_id. */ char match_filter[12]; snprintf(match_filter, 12, "*/%s.*", proc_id); list_for_each(pos, anon_dirs) { struct pathname * anon_dir = list_entry(pos, struct pathname, neighbor); if (!fnmatch(match_filter, anon_dir->name, 0)) return anon_dir->name; } return NULL; } int change_owner(char * path) { int rc = OP_JIT_CONV_OK; int fd; if (non_root) return rc; fd = open(path, 0); if (fd < 0) { printf("opjitconv: File cannot be opened for changing ownership.\n"); rc = OP_JIT_CONV_FAIL; goto out; } if (fchown(fd, pw_oprofile->pw_uid, pw_oprofile->pw_gid) != 0) { printf("opjitconv: Changing ownership failed (%s).\n", strerror(errno)); close(fd); rc = OP_JIT_CONV_FAIL; goto out; } close(fd); out: return rc; } /* Copies the given file to the temporary working directory and sets ownership * to 'oprofile:oprofile'. */ int copy_dumpfile(char const * dumpfile, char * tmp_dumpfile) { int rc = OP_JIT_CONV_OK; sprintf(sys_cmd_buffer, "/bin/cp -p %s %s", dumpfile, tmp_dumpfile); if (system(sys_cmd_buffer) != 0) { printf("opjitconv: Calling system() to copy files failed.\n"); rc = OP_JIT_CONV_FAIL; goto out; } if (change_owner(tmp_dumpfile) != 0) { printf("opjitconv: Changing ownership of temporary dump file failed.\n"); rc = OP_JIT_CONV_FAIL; goto out; } out: return rc; } /* Copies the created ELF file located in the temporary working directory to the * final destination (i.e. given ELF file name) and sets ownership to the * current user. */ int copy_elffile(char * elf_file, char * tmp_elffile) { int rc = OP_JIT_CONV_OK; int fd; sprintf(sys_cmd_buffer, "/bin/cp -p %s %s", tmp_elffile, elf_file); if (system(sys_cmd_buffer) != 0) { printf("opjitconv: Calling system() to copy files failed.\n"); rc = OP_JIT_CONV_FAIL; goto out; } fd = open(elf_file, 0); if (fd < 0) { printf("opjitconv: File cannot be opened for changing ownership.\n"); rc = OP_JIT_CONV_FAIL; goto out; } if (fchown(fd, getuid(), getgid()) != 0) { printf("opjitconv: Changing ownership failed (%s).\n", strerror(errno)); close(fd); rc = OP_JIT_CONV_FAIL; goto out; } close(fd); out: return rc; } /* Look for an anonymous samples directory that matches the process ID * given by the passed JIT dmp_pathname. If none is found, it's an error * since by agreement, all JIT dump files should be removed every time * the user does --reset. If we do find the matching samples directory, * we create an ELF file (.jo) and place it in that directory. */ static int process_jit_dumpfile(char const * dmp_pathname, struct list_head * anon_sample_dirs, unsigned long long start_time, unsigned long long end_time, char * tmp_conv_dir) { int result_dir_length, proc_id_length; int rc = OP_JIT_CONV_OK; int jofd; struct stat file_stat; time_t dumpfile_modtime; struct op_jitdump_info dmp_info; char * elf_file = NULL; char * proc_id = NULL; char const * anon_dir; char const * dumpfilename = rindex(dmp_pathname, '/'); /* temporary copy of dump file created for conversion step */ char * tmp_dumpfile; /* temporary ELF file created during conversion step */ char * tmp_elffile; verbprintf(debug, "Processing dumpfile %s\n", dmp_pathname); /* Check if the dump file is a symbolic link. * We should not trust symbolic links because we only produce normal dump * files (no links). */ if (lstat(dmp_pathname, &file_stat) == -1) { printf("opjitconv: lstat for dumpfile failed (%s).\n", strerror(errno)); rc = OP_JIT_CONV_FAIL; goto out; } if (S_ISLNK(file_stat.st_mode)) { printf("opjitconv: dumpfile path is corrupt (symbolic links not allowed).\n"); rc = OP_JIT_CONV_FAIL; goto out; } if (dumpfilename) { size_t tmp_conv_dir_length = strlen(tmp_conv_dir); char const * dot_dump = rindex(++dumpfilename, '.'); if (!dot_dump) goto chk_proc_id; proc_id_length = dot_dump - dumpfilename; proc_id = xmalloc(proc_id_length + 1); memcpy(proc_id, dumpfilename, proc_id_length); proc_id[proc_id_length] = '\0'; verbprintf(debug, "Found JIT dumpfile for process %s\n", proc_id); tmp_dumpfile = xmalloc(tmp_conv_dir_length + 1 + strlen(dumpfilename) + 1); strncpy(tmp_dumpfile, tmp_conv_dir, tmp_conv_dir_length); tmp_dumpfile[tmp_conv_dir_length] = '\0'; strcat(tmp_dumpfile, "/"); strcat(tmp_dumpfile, dumpfilename); } chk_proc_id: if (!proc_id) { printf("opjitconv: dumpfile path is corrupt.\n"); rc = OP_JIT_CONV_FAIL; goto out; } if (!(anon_dir = find_anon_dir_match(anon_sample_dirs, proc_id))) { /* With the capability of profiling with operf (as well as with * the legacy oprofile daemon), users will not be using opcontrol * to remove all jitdump files; instead, opjitconv will remove old * jitdump files (see _cleanup_jitdumps() for details). But this cleanup * strategy makes it quite likely that opjitconv will sometimes find * jitdump files that are not owned by the current user or are in use * by other operf users, thus, the current profile data would not have * matching anon samples for such jitdump files. */ verbprintf(debug, "Informational message: No matching anon samples for %s\n", dmp_pathname); rc = OP_JIT_CONV_NO_MATCHING_ANON_SAMPLES; goto free_res1; } if (copy_dumpfile(dmp_pathname, tmp_dumpfile) != OP_JIT_CONV_OK) goto free_res1; if ((rc = mmap_jitdump(tmp_dumpfile, &dmp_info)) == OP_JIT_CONV_OK) { char * anon_path_seg = rindex(anon_dir, '/'); if (!anon_path_seg) { printf("opjitconv: Bad path for anon sample: %s\n", anon_dir); rc = OP_JIT_CONV_FAIL; goto free_res2; } result_dir_length = ++anon_path_seg - anon_dir; /* create final ELF file name */ elf_file = xmalloc(result_dir_length + strlen(proc_id) + strlen(".jo") + 1); strncpy(elf_file, anon_dir, result_dir_length); elf_file[result_dir_length] = '\0'; strcat(elf_file, proc_id); strcat(elf_file, ".jo"); /* create temporary ELF file name */ tmp_elffile = xmalloc(strlen(tmp_conv_dir) + 1 + strlen(proc_id) + strlen(".jo") + 1); strncpy(tmp_elffile, tmp_conv_dir, strlen(tmp_conv_dir)); tmp_elffile[strlen(tmp_conv_dir)] = '\0'; strcat(tmp_elffile, "/"); strcat(tmp_elffile, proc_id); strcat(tmp_elffile, ".jo"); // Check if final ELF file exists already jofd = open(elf_file, O_RDONLY); if (jofd < 0) goto create_elf; rc = fstat(jofd, &file_stat); close(jofd); if (rc < 0) { perror("opjitconv:fstat on .jo file"); rc = OP_JIT_CONV_FAIL; goto free_res3; } if (dmp_info.dmp_file_stat.st_mtime > dmp_info.dmp_file_stat.st_ctime) dumpfile_modtime = dmp_info.dmp_file_stat.st_mtime; else dumpfile_modtime = dmp_info.dmp_file_stat.st_ctime; /* Final ELF file already exists, so if dumpfile has not been * modified since the ELF file's mod time, we don't need to * do ELF creation again. */ if (!(file_stat.st_ctime < dumpfile_modtime || file_stat.st_mtime < dumpfile_modtime)) { rc = OP_JIT_CONV_ALREADY_DONE; goto free_res3; } create_elf: verbprintf(debug, "Converting %s to %s\n", dmp_pathname, elf_file); /* Set eGID of the special user 'oprofile'. */ if (!non_root && setegid(pw_oprofile->pw_gid) != 0) { perror("opjitconv: setegid to special user failed"); rc = OP_JIT_CONV_FAIL; goto free_res3; } /* Set eUID of the special user 'oprofile'. */ if (!non_root && seteuid(pw_oprofile->pw_uid) != 0) { perror("opjitconv: seteuid to special user failed"); rc = OP_JIT_CONV_FAIL; goto free_res3; } /* Convert the dump file as the special user 'oprofile'. */ rc = op_jit_convert(dmp_info, tmp_elffile, start_time, end_time); if (rc < 0) goto free_res3; /* Set eUID back to the original user. */ if (!non_root && seteuid(getuid()) != 0) { perror("opjitconv: seteuid to original user failed"); rc = OP_JIT_CONV_FAIL; goto free_res3; } /* Set eGID back to the original user. */ if (!non_root && setegid(getgid()) != 0) { perror("opjitconv: setegid to original user failed"); rc = OP_JIT_CONV_FAIL; goto free_res3; } rc = copy_elffile(elf_file, tmp_elffile); free_res3: free(elf_file); free(tmp_elffile); free_res2: munmap(dmp_info.dmp_file, dmp_info.dmp_file_stat.st_size); } free_res1: free(proc_id); free(tmp_dumpfile); out: return rc; } /* If non-NULL value is returned, caller is responsible for freeing memory.*/ static char * get_procid_from_dirname(char * dirname) { char * ret = NULL; if (dirname) { char * proc_id; int proc_id_length; char * fname = rindex(dirname, '/'); char const * dot = index(++fname, '.'); if (!dot) goto out; proc_id_length = dot - fname; proc_id = xmalloc(proc_id_length + 1); memcpy(proc_id, fname, proc_id_length); proc_id[proc_id_length] = '\0'; ret = proc_id; } out: return ret; } static void filter_anon_samples_list(struct list_head * anon_dirs) { struct procid { struct procid * next; char * pid; }; struct procid * pid_list = NULL; struct procid * id, * nxt; struct list_head * pos1, * pos2; list_for_each_safe(pos1, pos2, anon_dirs) { struct pathname * pname = list_entry(pos1, struct pathname, neighbor); char * proc_id = get_procid_from_dirname(pname->name); if (proc_id) { int found = 0; for (id = pid_list; id != NULL; id = id->next) { if (!strcmp(id->pid, proc_id)) { /* Already have an entry for this * process ID, so delete this entry * from anon_dirs. */ free(pname->name); list_del(&pname->neighbor); free(pname); found = 1; } } if (!found) { struct procid * this_proc = xmalloc(sizeof(struct procid)); this_proc->pid = proc_id; this_proc->next = pid_list; pid_list = this_proc; } } else { printf("Unexpected result in processing anon sample" " directory\n"); } } for (id = pid_list; id; id = nxt) { free(id->pid); nxt = id->next; free(id); } } static void _add_jitdumps_to_deletion_list(void * all_jitdumps, char const * jitdump_dir ) { struct list_head * jd_fnames = (struct list_head *) all_jitdumps; struct list_head * pos1, *pos2; size_t dir_len = strlen(jitdump_dir); list_for_each_safe(pos1, pos2, jd_fnames) { struct pathname * dmpfile = list_entry(pos1, struct pathname, neighbor); struct stat mystat; char dmpfile_pathname[dir_len + 20]; int fd; memset(dmpfile_pathname, '\0', dir_len + 20); strcpy(dmpfile_pathname, jitdump_dir); strcat(dmpfile_pathname,dmpfile->name); fd = open(dmpfile_pathname, O_RDONLY); if (fd < 0) { // Non-fatal error, so just display debug message and continue verbprintf(debug, "opjitconv: cannot open jitdump file %s\n", dmpfile_pathname); continue; } if (fstat(fd, &mystat) < 0) { // Non-fatal error, so just display debug message and continue verbprintf(debug, "opjitconv: cannot fstat jitdump file"); close(fd); continue; } close(fd); if (geteuid() == mystat.st_uid) { struct jitdump_deletion_candidate * jdc = xmalloc(sizeof(struct jitdump_deletion_candidate)); jdc->name = xstrdup(dmpfile->name); list_add(&jdc->neighbor, &jitdump_deletion_candidates); } } } static int op_process_jit_dumpfiles(char const * session_dir, unsigned long long start_time, unsigned long long end_time) { struct list_head * pos1, * pos2; int rc = OP_JIT_CONV_OK; char jitdumpfile[PATH_MAX + 1]; char oprofile_tmp_template[PATH_MAX + 1]; char const * jitdump_dir = "/tmp/.oprofile/jitdump/"; LIST_HEAD(jd_fnames); char const * anon_dir_filter = "*/{dep}/{anon:anon}/[0-9]*.*"; LIST_HEAD(anon_dnames); char const * samples_subdir = "/samples/current"; int samples_dir_len = strlen(session_dir) + strlen(samples_subdir); char * samples_dir; /* temporary working directory for dump file conversion step */ char * tmp_conv_dir = NULL; if (non_root) sprintf(oprofile_tmp_template, "%s/tmp", session_dir); else strcpy(oprofile_tmp_template, "/tmp/oprofile.XXXXXX"); /* Create a temporary working directory used for the conversion step. */ if (non_root) { sprintf(sys_cmd_buffer, "/bin/rm -rf %s", oprofile_tmp_template); if (system(sys_cmd_buffer) != 0) { printf("opjitconv: Removing temporary working directory %s failed.\n", oprofile_tmp_template); rc = OP_JIT_CONV_TMPDIR_NOT_REMOVED; } else { if (!mkdir(oprofile_tmp_template, S_IRWXU | S_IRWXG )) tmp_conv_dir = oprofile_tmp_template; } } else { tmp_conv_dir = mkdtemp(oprofile_tmp_template); } if (tmp_conv_dir == NULL) { printf("opjitconv: Temporary working directory %s cannot be created.\n", oprofile_tmp_template); perror("Exiting due to error"); rc = OP_JIT_CONV_FAIL; goto out; } errno = 0; if ((rc = get_matching_pathnames(&jd_fnames, get_pathname, jitdump_dir, "*.dump", NO_RECURSION)) < 0 || list_empty(&jd_fnames)) { if (errno) { if (errno != ENOENT) { char msg[PATH_MAX]; strcpy(msg, "opjitconv: fatal error trying to find JIT dump files in "); strcat(msg, jitdump_dir); perror(msg); rc = OP_JIT_CONV_FAIL; } else { verbprintf(debug, "opjitconv: Non-fatal error trying to find JIT dump files in %s: %s\n", jitdump_dir, strerror(errno)); rc = OP_JIT_CONV_NO_DUMPFILE; } } goto rm_tmp; } if (delete_jitdumps) _add_jitdumps_to_deletion_list(&jd_fnames, jitdump_dir); /* Get user information (i.e. UID and GID) for special user 'oprofile'. */ if (non_root) { pw_oprofile = NULL; } else { pw_oprofile = getpwnam("oprofile"); if (pw_oprofile == NULL) { printf("opjitconv: User information for special user oprofile cannot be found.\n"); rc = OP_JIT_CONV_FAIL; goto rm_tmp; } } /* Change ownership of the temporary working directory to prevent other users * to attack conversion process. */ if (change_owner(tmp_conv_dir) != 0) { printf("opjitconv: Changing ownership of temporary directory failed.\n"); rc = OP_JIT_CONV_FAIL; goto rm_tmp; } samples_dir = xmalloc(samples_dir_len + 1); sprintf(samples_dir, "%s%s", session_dir, samples_subdir); if (get_matching_pathnames(&anon_dnames, get_pathname, samples_dir, anon_dir_filter, MATCH_DIR_ONLY_RECURSION) < 0 || list_empty(&anon_dnames)) { rc = OP_JIT_CONV_NO_ANON_SAMPLES; goto rm_tmp; } /* When using get_matching_pathnames to find anon samples, * the list that's returned may contain multiple entries for * one or more processes; e.g., * 6868.0x100000.0x103000 * 6868.0xdfe77000.0xdec40000 * 7012.0x100000.0x103000 * 7012.0xdfe77000.0xdec40000 * * So we must filter the list so there's only one entry per * process. */ filter_anon_samples_list(&anon_dnames); /* get_matching_pathnames returns only filename segment when * NO_RECURSION is passed, so below, we add back the JIT * dump directory path to the name. */ list_for_each_safe(pos1, pos2, &jd_fnames) { struct pathname * dmpfile = list_entry(pos1, struct pathname, neighbor); strncpy(jitdumpfile, jitdump_dir, PATH_MAX); strncat(jitdumpfile, dmpfile->name, PATH_MAX); rc = process_jit_dumpfile(jitdumpfile, &anon_dnames, start_time, end_time, tmp_conv_dir); if (rc == OP_JIT_CONV_FAIL) { verbprintf(debug, "JIT convert error %d\n", rc); goto rm_tmp; } delete_pathname(dmpfile); } delete_path_names_list(&anon_dnames); rm_tmp: /* Delete temporary working directory with all its files * (i.e. dump and ELF file). */ sprintf(sys_cmd_buffer, "/bin/rm -rf '%s'", tmp_conv_dir); if (system(sys_cmd_buffer) != 0) { printf("opjitconv: Removing temporary working directory failed.\n"); rc = OP_JIT_CONV_TMPDIR_NOT_REMOVED; } out: return rc; } static void _cleanup_jitdumps(void) { struct list_head * pos1, *pos2; char const * jitdump_dir = "/tmp/.oprofile/jitdump/"; size_t dir_len = strlen(jitdump_dir); char dmpfile_pathname[dir_len + 20]; char proc_fd_dir[PATH_MAX]; if (!delete_jitdumps) return; /* The delete_jitdumps flag tells us to try to delete the jitdump files we found * that belong to this user. Only operf should pass the --delete-jitdumps * argument to opjitconv since legacy oprofile uses opcontrol to delete old * jitdump files. * * The code below will only delete jitdump files that are not currently * being used by another process. */ list_for_each_safe(pos1, pos2, &jitdump_deletion_candidates) { DIR * dir; struct dirent * dirent; int pid; size_t dmpfile_name_len; int do_not_delete = 0; struct jitdump_deletion_candidate * cand = list_entry(pos1, struct jitdump_deletion_candidate, neighbor); memset(dmpfile_pathname, '\0', dir_len + 20); memset(proc_fd_dir, '\0', PATH_MAX); if ((sscanf(cand->name, "%d", &pid)) != 1) { verbprintf(debug, "Cannot get process id from jitdump file %s\n", cand->name); continue; } strcpy(dmpfile_pathname, jitdump_dir); strcat(dmpfile_pathname, cand->name); dmpfile_name_len = strlen(dmpfile_pathname); sprintf(proc_fd_dir, "/proc/%d/fd/", pid); if ((dir = opendir(proc_fd_dir))) { size_t proc_fd_dir_len = strlen(proc_fd_dir); while ((dirent = readdir(dir))) { if (dirent->d_type == DT_LNK) { char buf[1024]; char fname[1024]; memset(buf, '\0', 1024); memset(fname, '\0', 1024); memset(buf, '\0', 1024); strcpy(fname, proc_fd_dir); strncat(fname, dirent->d_name, 1023 - proc_fd_dir_len); if (readlink(fname, buf, 1023) > 0) { verbprintf(debug, "readlink found for %s\n", buf); if (strncmp(buf, dmpfile_pathname, dmpfile_name_len) == 0) { do_not_delete = 1; break; } } } } closedir(dir); } if (!do_not_delete) { if (remove(dmpfile_pathname)) verbprintf(debug, "Unable to delete %s: %s\n", dmpfile_pathname, strerror(errno)); } } list_for_each_safe(pos1, pos2, &jitdump_deletion_candidates) { struct jitdump_deletion_candidate * pname = list_entry(pos1, struct jitdump_deletion_candidate, neighbor); free(pname->name); list_del(&pname->neighbor); free(pname); } } int main(int argc, char ** argv) { unsigned long long start_time, end_time; char session_dir[PATH_MAX]; int rc = 0; size_t sessdir_len = 0; char * path_end; debug = 0; if (argc > 1 && strcmp(argv[1], "-d") == 0) { debug = 1; argc--; argv++; } non_root = 0; if (argc > 1 && strcmp(argv[1], "--non-root") == 0) { non_root = 1; argc--; argv++; } delete_jitdumps = 0; if (argc > 1 && strcmp(argv[1], "--delete-jitdumps") == 0) { delete_jitdumps = 1; argc--; argv++; } if (argc != 4) { printf("Usage: opjitconv [-d] " " \n"); fflush(stdout); rc = EXIT_FAILURE; goto out; } /* * Check for a maximum of 4096 bytes (Linux path name length limit) decremented * by 16 bytes (will be used later for appending samples sub directory). * Integer overflows according to the session dir parameter (user controlled) * are not possible anymore. */ path_end = memchr(argv[1], '\0', PATH_MAX); if (!path_end || ((sessdir_len = (path_end - argv[1])) >= PATH_MAX - 16)) { printf("opjitconv: Path name length limit exceeded for session directory\n"); rc = EXIT_FAILURE; goto out; } memset(session_dir, '\0', PATH_MAX); assert(sessdir_len < (PATH_MAX - 16 - 1)); strncpy(session_dir, argv[1], sessdir_len); session_dir[PATH_MAX -1] = '\0'; start_time = atol(argv[2]); end_time = atol(argv[3]); if (start_time > end_time) { rc = EXIT_FAILURE; goto out; } verbprintf(debug, "start time/end time is %llu/%llu\n", start_time, end_time); rc = op_process_jit_dumpfiles(session_dir, start_time, end_time); if (delete_jitdumps) _cleanup_jitdumps(); if (rc > OP_JIT_CONV_OK) { verbprintf(debug, "opjitconv: Ending with rc = %d. This code" " is usually OK, but can be useful for debugging" " purposes.\n", rc); rc = OP_JIT_CONV_OK; } fflush(stdout); if (rc == OP_JIT_CONV_OK) rc = EXIT_SUCCESS; else rc = EXIT_FAILURE; out: _exit(rc); } oprofile-0.9.9/opjitconv/conversion.c0000664000076400007640000000364412175510133014654 00000000000000/** * @file conversion.c * Convert a jit dump file to an ELF file * * @remark Copyright 2008 OProfile authors * @remark Read the file COPYING * * @author Daniel Hansel * * Copyright IBM Corporation 2008 * */ #include #include "opjitconv.h" static void free_jit_records(void) { struct jitentry * entry, * next; for (entry = jitentry_list; entry; entry = next) { if (entry->sym_name_malloced) free(entry->symbol_name); next = entry->next; free(entry); } jitentry_list = NULL; } static void free_jit_debug_line(void) { struct jitentry_debug_line * entry, * next; for (entry = jitentry_debug_line_list; entry; entry = next) { next = entry->next; free(entry); } jitentry_debug_line_list = NULL; } int op_jit_convert(struct op_jitdump_info file_info, char const * elffile, unsigned long long start_time, unsigned long long end_time) { void const * jitdump = file_info.dmp_file; int rc= OP_JIT_CONV_OK; entry_count = 0; max_entry_count = 0; syms = NULL; cur_bfd = NULL; jitentry_list = NULL; jitentry_debug_line_list = NULL; entries_symbols_ascending = entries_address_ascending = NULL; if ((rc = parse_all(jitdump, jitdump + file_info.dmp_file_stat.st_size, end_time)) == OP_JIT_CONV_FAIL) goto out; create_arrays(); if ((rc = resolve_overlaps(start_time)) == OP_JIT_CONV_FAIL) goto out; disambiguate_symbol_names(); if (!entry_count) return OP_JIT_CONV_NO_JIT_RECS_IN_DUMPFILE; if ((cur_bfd = open_elf(elffile)) == NULL) { rc = OP_JIT_CONV_FAIL; goto out; } init_debug_line_info(cur_bfd); if ((rc = partition_sections()) == OP_JIT_CONV_FAIL) goto out; if ((rc = fill_sections()) == OP_JIT_CONV_FAIL) goto out; finalize_debug_line_info(cur_bfd); if (cur_bfd) bfd_close(cur_bfd); free(syms); out: free_jit_records(); free_jit_debug_line(); free(entries_symbols_ascending); free(entries_address_ascending); return rc; } oprofile-0.9.9/opjitconv/create_bfd.c0000664000076400007640000001536512175510133014550 00000000000000/** * @file create_bfd.c * Routine to handle elf file creation * * @remark Copyright 2007 OProfile authors * @remark Read the file COPYING * * @author Jens Wilke * @Modifications Maynard Johnson * @Modifications Philippe Elie * @Modifications Daniel Hansel * * Copyright IBM Corporation 2007 * */ #include "opjitconv.h" #include "opd_printf.h" #include "op_libiberty.h" #include #include #include #include /* Create the symbols and fill the syms array for all functions * from start_idx to end_idx pointing into entries_address_ascending array */ static int fill_symtab(void) { int rc = OP_JIT_CONV_OK; u32 i; int r; struct jitentry const * e; asymbol * s; asection * section = NULL; /* Check for valid value of entry_count to avoid integer overflow. */ if (entry_count > UINT32_MAX - 1) { bfd_perror("invalid entry_count value"); rc = OP_JIT_CONV_FAIL; goto out; } syms = xmalloc(sizeof(asymbol *) * (entry_count+1)); syms[entry_count] = NULL; assert(entries_address_ascending[0]->section); // Do this to silence Coverity section = entries_address_ascending[0]->section; for (i = 0; i < entry_count; i++) { e = entries_address_ascending[i]; if (e->section) section = e->section; s = bfd_make_empty_symbol(cur_bfd); if (!s) { bfd_perror("bfd_make_empty_symbol"); rc = OP_JIT_CONV_FAIL; goto out; } s->name = e->symbol_name; s->section = section; s->flags = BSF_GLOBAL | BSF_FUNCTION; s->value = e->vma - section->vma; verbprintf(debug,"add sym: name=%s, value=%llx\n", s->name, (unsigned long long)s->value); syms[i] = s; } r = bfd_set_symtab(cur_bfd, syms, entry_count); if (r == FALSE) { bfd_perror("bfd_set_symtab"); rc = OP_JIT_CONV_FAIL; } out: return rc; } /* * create a new section. */ asection * create_section(bfd * abfd, char const * section_name, size_t size, bfd_vma vma, flagword flags) { asection * section; verbprintf(debug, "create_section() %s\n", section_name); section = bfd_make_section(abfd, section_name); if (section == NULL) { bfd_perror("bfd_make_section"); goto error; } bfd_set_section_vma(abfd, section, vma); if (bfd_set_section_size(abfd, section, size) == FALSE) { bfd_perror("bfd_set_section_size"); goto error; } if (bfd_set_section_flags(abfd, section, flags) == FALSE) { bfd_perror("bfd_set_section_flags"); goto error; } return section; error: return NULL; } /* create a .text section. end_idx: index last jitentry (inclusive!) */ static int create_text_section(int start_idx, int end_idx) { int rc = OP_JIT_CONV_OK; asection * section; char const * section_name; int idx = start_idx; unsigned long long vma_start = entries_address_ascending[start_idx]->vma; struct jitentry * ee = entries_address_ascending[end_idx]; unsigned long long vma_end = ee->vma + ee->code_size; int size = vma_end - vma_start; section_name = bfd_get_unique_section_name(cur_bfd, ".text", &idx); verbprintf(debug, "section idx=%i, name=%s, vma_start=%llx, size=%i\n", idx, section_name, vma_start, size); section = create_section(cur_bfd, section_name, size, vma_start, SEC_ALLOC|SEC_LOAD|SEC_READONLY|SEC_CODE|SEC_HAS_CONTENTS); if (section) entries_address_ascending[start_idx]->section = section; else rc = OP_JIT_CONV_FAIL; return rc; } /* fill a section contents at a given offset from the start of the section */ int fill_section_content(bfd * abfd, asection * section, void const * b, file_ptr offset, size_t sz) { if (bfd_set_section_contents(abfd, section, b, offset, sz) == FALSE) { bfd_perror("bfd_set_section_contents"); return OP_JIT_CONV_FAIL; } return OP_JIT_CONV_OK; } /* * Copy all code of the functions that are within start_idx and end_idx to * the section. */ static int fill_text_section_content(asection * section, int start_idx, int end_idx) { int rc = OP_JIT_CONV_OK; unsigned long long vma_start = entries_address_ascending[start_idx]->vma; struct jitentry const * e; int i; for (i = start_idx; i <= end_idx; i++) { e = entries_address_ascending[i]; verbprintf(debug, "section = %s, i = %i, code = %llx," " vma = %llx, offset = %llx," "size = %i, name = %s\n", section->name, i, (unsigned long long) (uintptr_t) e->code, e->vma, e->vma - vma_start, e->code_size, e->symbol_name); /* the right part that is created by split_entry may * have no code; also, the agent may have passed NULL * for the code location. */ if (e->code) { rc = fill_section_content(cur_bfd, section, e->code, (file_ptr) (e->vma - vma_start), (bfd_size_type)e->code_size); if (rc != OP_JIT_CONV_OK) break; } } return rc; } /* Walk over the symbols sorted by address and create ELF sections. Whenever we * have a gap greater or equal to 4096 make a new section. */ int partition_sections(void) { int rc = OP_JIT_CONV_OK; u32 i, j; struct jitentry const * pred; struct jitentry const * entry; unsigned long long end_addr; // i: start index of the section i = 0; for (j = 1; j < entry_count; j++) { entry = entries_address_ascending[j]; pred = entries_address_ascending[j - 1]; end_addr = pred->vma + pred->code_size; // calculate gap between code, if it is more than one page // create an additional section if ((entry->vma - end_addr) >= 4096) { rc = create_text_section(i, j - 1); if (rc == OP_JIT_CONV_FAIL) goto out; i = j; } } // this holds always if we have at least one jitentry if (i < entry_count) rc = create_text_section(i, entry_count - 1); out: return rc; } /* Fill the code content into the sections created by partition_sections() */ int fill_sections(void) { int rc = OP_JIT_CONV_OK; u32 i, j; asection * section; rc = fill_symtab(); if (rc == OP_JIT_CONV_FAIL) goto out; verbprintf(debug, "opjitconv: fill_sections\n"); i = 0; for (j = 1; j < entry_count; j++) { if (entries_address_ascending[j]->section) { section = entries_address_ascending[i]->section; rc = fill_text_section_content(section, i, j - 1); if (rc == OP_JIT_CONV_FAIL) goto out; i = j; } } // this holds always if we have at least one jitentry if (i < entry_count) { section = entries_address_ascending[i]->section; rc = fill_text_section_content(section, i, entry_count - 1); } out: return rc; } /* create the elf file */ bfd * open_elf(char const * filename) { bfd * abfd; abfd = bfd_openw(filename, dump_bfd_target_name); if (!abfd) { bfd_perror("bfd_openw"); goto error1; } if (bfd_set_format(abfd, bfd_object) == FALSE) { bfd_perror("bfd_set_format"); goto error; } if (bfd_set_arch_mach(abfd, dump_bfd_arch, dump_bfd_mach) == FALSE) { bfd_perror("bfd_set_arch_mach"); goto error; } return abfd; error: bfd_close(abfd); error1: return NULL; } oprofile-0.9.9/opjitconv/opjitconv.h0000664000076400007640000001026612175510133014505 00000000000000/** * @file opjitconv.h * Convert a jit dump file to an ELF file * * @remark Copyright 2007 OProfile authors * @remark Read the file COPYING * * @author Jens Wilke * @Modifications Maynard Johnson * @Modifications Philippe Elie * @Modifications Daniel Hansel * * Copyright IBM Corporation 2007 * */ #ifndef OPJITCONV_H #define OPJITCONV_H #define OP_JIT_CONV_OK 0 #define OP_JIT_CONV_FAIL -1 #define OP_JIT_CONV_NO_DUMPFILE 1 #define OP_JIT_CONV_NO_ANON_SAMPLES 2 #define OP_JIT_CONV_NO_MATCHING_ANON_SAMPLES 3 #define OP_JIT_CONV_NO_JIT_RECS_IN_DUMPFILE 4 #define OP_JIT_CONV_ALREADY_DONE 5 #define OP_JIT_CONV_TMPDIR_NOT_REMOVED 6 #include "config.h" #include #include #include #include "op_list.h" #include "op_types.h" /* Structure that contains all information * for one function entry in the jit dump file. * the jit dump file gets mmapped and code and * symbol_name point directly into the file */ struct jitentry { /* linked list. see jitentry_list */ struct jitentry * next; /* vma */ unsigned long long vma; /* point to code in the memory mapped file */ void const * code; /* size of the jitted code */ int code_size; /* point to the name in memory mapped jitdump file, or * to a malloced string, if we have a disambiguation replacement */ char * symbol_name; /* sym_name_malloced ==1 means we need to free the memory when done. */ int sym_name_malloced; /* seconds since epoch when the code was created */ unsigned long long life_start; /* seconds since epoch when the code was overwritten */ unsigned long long life_end; /* after ordering and partitioning this is the ELF * section we put this code to */ asection * section; }; struct jitentry_debug_line { struct jitentry_debug_line * next; struct jr_code_debug_info const * data; /* seconds since epoch when the code was created */ unsigned long long life_start; /* seconds since epoch when the code was overwritten */ unsigned long long life_end; void const * end; }; struct op_jitdump_info { void * dmp_file; struct stat dmp_file_stat; }; struct pathname { char * name; struct list_head neighbor; }; struct jitdump_deletion_candidate { char * name; struct list_head neighbor; }; /* jitsymbol.c */ void create_arrays(void); int resolve_overlaps(unsigned long long start_time); void disambiguate_symbol_names(void); /* parse_dump.c */ int parse_all(void const * start, void const * end, unsigned long long end_time); /* conversion.c */ int op_jit_convert(struct op_jitdump_info file_info, char const * elffile, unsigned long long start_time, unsigned long long end_time); /* create_bfd.c */ bfd * open_elf(char const * filename); int partition_sections(void); int fill_sections(void); asection * create_section(bfd * abfd, char const * section_name, size_t size, bfd_vma vma, flagword flags); int fill_section_content(bfd * abfd, asection * section, void const * b, file_ptr offset, size_t sz); /* debug_line.c */ int init_debug_line_info(bfd * abfd); int finalize_debug_line_info(bfd * abfd); /* jit dump header information */ extern enum bfd_architecture dump_bfd_arch; extern int dump_bfd_mach; extern char const * dump_bfd_target_name; /* * list head. The linked list is used during parsing (parse_all) to * hold all jitentry elements. After parsing, the program works on the * array structures (entries_symbols_ascending, entries_address_ascending) * and the linked list is not used any more. */ extern struct jitentry * jitentry_list; /* count of jitentries in the list */ extern u32 entry_count; /* list head for debug line information */ extern struct jitentry_debug_line * jitentry_debug_line_list; /* maximum space in the entry arrays, needed to add entries */ extern u32 max_entry_count; /* array pointing to all jit entries, sorted by symbol names */ extern struct jitentry ** entries_symbols_ascending; /* array pointing to all jit entries sorted by address */ extern struct jitentry ** entries_address_ascending; /* Global variable for asymbols so we can free the storage later. */ extern asymbol ** syms; /* the bfd handle of the ELF file we write */ extern bfd * cur_bfd; /* debug flag, print some information */ extern int debug; #endif /* OPJITCONV_H */ oprofile-0.9.9/opjitconv/Makefile.in0000664000076400007640000004327612175510234014377 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ bin_PROGRAMS = opjitconv$(EXEEXT) subdir = opjitconv DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am_opjitconv_OBJECTS = opjitconv.$(OBJEXT) conversion.$(OBJEXT) \ parse_dump.$(OBJEXT) jitsymbol.$(OBJEXT) create_bfd.$(OBJEXT) \ debug_line.$(OBJEXT) opjitconv_OBJECTS = $(am_opjitconv_OBJECTS) opjitconv_DEPENDENCIES = $(needed_libs) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(opjitconv_SOURCES) DIST_SOURCES = $(opjitconv_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @BFD_LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ AM_CPPFLAGS = -I ${top_srcdir}/libopagent \ -I ${top_srcdir}/libutil \ -I ${top_srcdir}/daemon \ @OP_CPPFLAGS@ AM_CFLAGS = @OP_CFLAGS@ AM_LDFLAGS = @OP_LDFLAGS@ needed_libs = \ ../libutil/libutil.a opjitconv_LDADD = $(needed_libs) opjitconv_SOURCES = \ opjitconv.c \ opjitconv.h \ conversion.c \ parse_dump.c \ jitsymbol.c \ create_bfd.c \ debug_line.c all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign opjitconv/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign opjitconv/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p || test -f $$p1; \ then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list opjitconv$(EXEEXT): $(opjitconv_OBJECTS) $(opjitconv_DEPENDENCIES) @rm -f opjitconv$(EXEEXT) $(LINK) $(opjitconv_OBJECTS) $(opjitconv_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/conversion.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bfd.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/debug_line.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jitsymbol.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/opjitconv.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/parse_dump.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic clean-libtool ctags distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-binPROGRAMS install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am \ uninstall-binPROGRAMS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/opjitconv/Makefile.am0000664000076400007640000000063712175510133014356 00000000000000AM_CPPFLAGS = -I ${top_srcdir}/libopagent \ -I ${top_srcdir}/libutil \ -I ${top_srcdir}/daemon \ @OP_CPPFLAGS@ AM_CFLAGS = @OP_CFLAGS@ AM_LDFLAGS = @OP_LDFLAGS@ bin_PROGRAMS = opjitconv LIBS = @BFD_LIBS@ needed_libs = \ ../libutil/libutil.a opjitconv_LDADD = $(needed_libs) opjitconv_SOURCES = \ opjitconv.c \ opjitconv.h \ conversion.c \ parse_dump.c \ jitsymbol.c \ create_bfd.c \ debug_line.c oprofile-0.9.9/opjitconv/jitsymbol.c0000664000076400007640000003441312175510133014501 00000000000000/** * @file jitsymbol.c * Handle symbols found in jitted code dump * * @remark Copyright 2007 OProfile authors * @remark Read the file COPYING * * @author Jens Wilke * @Modifications Maynard Johnson * @Modifications Philippe Elie * @Modifications Daniel Hansel * * Copyright IBM Corporation 2007 * */ #include "opjitconv.h" #include "opd_printf.h" #include "op_libiberty.h" #include "op_types.h" #include #include #include #include #include #include #include typedef int (*compare_symbol)(void const *, void const *); /* count the entries in the jitentry_list */ static u32 count_entries(void) { struct jitentry const * entry; u32 cnt = 0; for (entry = jitentry_list; entry; entry = entry->next) cnt++; return cnt; } static void fill_entry_array(struct jitentry * entries[]) { int i = 0; struct jitentry * entry; for (entry = jitentry_list; entry; entry = entry->next) entries[i++] = entry; } /* create an array pointing to the jitentry structures which is sorted * according to the comparator rule given by parameter compar */ static struct jitentry ** create_sorted_array(compare_symbol compare) { struct jitentry ** array = xmalloc(sizeof(struct jitentry *) * entry_count); fill_entry_array(array); qsort(array, entry_count, sizeof(struct jitentry *), compare); return array; } /* comparator method for qsort which sorts jitentries by symbol_name */ static int cmp_symbolname(void const * a, void const * b) { struct jitentry * a0 = *(struct jitentry **) a; struct jitentry * b0 = *(struct jitentry **) b; return strcmp(a0->symbol_name, b0->symbol_name); } /* comparator method for qsort which sorts jitentries by address */ static int cmp_address(void const * a, void const * b) { struct jitentry * a0 = *(struct jitentry **) a; struct jitentry * b0 = *(struct jitentry **) b; if (a0->vma < b0->vma) return -1; if (a0->vma == b0->vma) return 0; return 1; } /* resort address_ascending array */ static void resort_address(void) { u32 i; qsort(entries_address_ascending, entry_count, sizeof(struct jitentry *), cmp_address); // lower entry_count if entries are invalidated for (i = 0; i < entry_count; ++i) { if (entries_address_ascending[i]->vma) break; } if (i) { entry_count -= i; memmove(&entries_address_ascending[0], &entries_address_ascending[i], sizeof(struct jitentry *) * entry_count); } } /* Copy address_ascending array to entries_symbols_ascending and resort it. */ static void resort_symbol(void) { memcpy(entries_symbols_ascending, entries_address_ascending, sizeof(struct jitentry *) * entry_count); qsort(entries_symbols_ascending, entry_count, sizeof(struct jitentry *), cmp_symbolname); } /* allocate, populate and sort the jitentry arrays */ void create_arrays(void) { max_entry_count = entry_count = count_entries(); entries_symbols_ascending = create_sorted_array(cmp_symbolname); entries_address_ascending = create_sorted_array(cmp_address); } /* add a new create jitentry to the array. mallocs new arrays if space is * needed */ static void insert_entry(struct jitentry * entry) { if (entry_count == max_entry_count) { if (max_entry_count < UINT32_MAX - 18) max_entry_count += 18; else if (max_entry_count < UINT32_MAX) max_entry_count += 1; else { fprintf(stderr, "Amount of JIT dump file entries is too large.\n"); exit(EXIT_FAILURE); } entries_symbols_ascending = (struct jitentry **) xrealloc(entries_symbols_ascending, sizeof(struct jitentry *) * max_entry_count); entries_address_ascending = (struct jitentry **) xrealloc(entries_address_ascending, sizeof(struct jitentry *) * max_entry_count); } entries_address_ascending[entry_count++] = entry; } /* add a suffix to the name to differenciate it */ static char * replacement_name(char * s, int i) { int cnt = 1; int j = i; char * res; while ((j = j/10)) cnt++; cnt += 2 + strlen(s); res = xmalloc(cnt); snprintf(res, cnt, "%s~%i", s, i); return res; } /* * Mark the entry so it is not included in the ELF file. We do this by * writing a 0 address as magic vma and sorting * it out later */ static void invalidate_entry(struct jitentry * e) { verbprintf(debug, "invalidate_entry: addr=%llx, name=%s\n", e->vma, e->symbol_name); e->vma = 0; } /* * Invalidate all symbols that are not alive at sampling start time. */ static void invalidate_earlybirds(unsigned long long start_time) { u32 i; int flag; struct jitentry * a; flag = 0; for (i = 0; i < entry_count; i++) { a = entries_address_ascending[i]; if (a->life_end < start_time) { invalidate_entry(a); flag = 1; } } if (flag) { resort_address(); resort_symbol(); } } /* select the symbol with the longest life time in the index range */ static int select_one(int start_idx, int end_idx) { int i; int candidate = OP_JIT_CONV_FAIL; unsigned long long lifetime = 0; unsigned long long x; struct jitentry const * e; for (i = start_idx; i <= end_idx; i++) { e = entries_address_ascending[i]; x = e->life_end - e->life_start; if (candidate == -1 || x > lifetime) { candidate = i; lifetime = x; } } return candidate; } /* * We decided to keep one entry in favor of the other. Instead of dropping * the overlapping entry we split or truncate it to not overlap any more. * * Looking on the address regions, we may have the following situation: * * split: |------------| * keep: |---| * * The split entry may be splitted in a left part and a right part. E.g.: * * split0/1: |--| |---| * keep: |---| * * However, both parts may or may not exist. */ static void split_entry(struct jitentry * split, struct jitentry const * keep) { unsigned long long start_addr_keep = keep->vma; unsigned long long end_addr_keep = keep->vma + keep->code_size; unsigned long long end_addr_split = split->vma + split->code_size; unsigned long long start_addr_split = split->vma; // do we need a right part? if (end_addr_split > end_addr_keep) { struct jitentry * new_entry = xcalloc(1, sizeof(struct jitentry)); char * s = NULL; /* Check for max. length to avoid possible integer overflow. */ if (strlen(split->symbol_name) > SIZE_MAX - 3) { fprintf(stderr, "Length of symbol name is too large.\n"); exit(EXIT_FAILURE); } else { s = xmalloc(strlen(split->symbol_name) + 3); strcpy(s, split->symbol_name); strcat(s, "#1"); } new_entry->vma = end_addr_keep; new_entry->code_size = end_addr_split - end_addr_keep; new_entry->symbol_name = s; new_entry->sym_name_malloced = 1; new_entry->life_start = split->life_start; new_entry->life_end = split->life_end; // the right part does not have an associated code, because we // don't know whether the split part begins at an opcode new_entry->code = NULL; verbprintf(debug, "split right (new) name=%s, start=%llx," " end=%llx\n", new_entry->symbol_name, new_entry->vma, new_entry->vma + new_entry->code_size); insert_entry(new_entry); } // do we need a left part? if (start_addr_split < start_addr_keep) { char * s = NULL; /* Check for max. length to avoid possible integer overflow. */ if (strlen(split->symbol_name) > SIZE_MAX - 3) { fprintf(stderr, "Length of symbol name is too large.\n"); exit(EXIT_FAILURE); } else { s = xmalloc(strlen(split->symbol_name) + 3); strcpy(s, split->symbol_name); strcat(s, "#0"); } split->code_size = start_addr_keep - start_addr_split; if (split->sym_name_malloced) free(split->symbol_name); split->symbol_name = s; split->sym_name_malloced = 1; verbprintf(debug, "split left name=%s, start=%llx, end=%llx\n", split->symbol_name, split->vma, split->vma + split->code_size); } else { invalidate_entry(split); } } /* * Scans through the index range and splits/truncates entries that overlap * with the one indexed by keep_idx. Returns the total lifetime of the symbols * found to overlap. * Returns ULONG_MAX on error. */ static unsigned long long eliminate_overlaps(int start_idx, int end_idx, int keep_idx) { unsigned long long retval; struct jitentry const * keep = entries_address_ascending[keep_idx]; struct jitentry * e; unsigned long long start_addr_keep = keep->vma; unsigned long long end_addr_keep = keep->vma + keep->code_size; unsigned long long start_addr_entry, end_addr_entry; int i; unsigned long long min_start = keep->life_start; unsigned long long max_end = keep->life_end; for (i = start_idx; i <= end_idx; i++) { if (i == keep_idx) continue; e = entries_address_ascending[i]; start_addr_entry = e->vma; end_addr_entry = e->vma + e->code_size; if (debug) { if (!(start_addr_entry <= end_addr_entry)) { verbprintf(debug, "assert failed:" " start_addr_entry <=" " end_addr_entry\n"); retval = ULONG_MAX; goto out; } if (!(start_addr_keep <= end_addr_keep)) { verbprintf(debug, "assert failed: " "start_addr_keep <=" " end_addr_keep\n"); retval = ULONG_MAX; goto out; } } if (start_addr_entry < end_addr_keep && end_addr_entry > start_addr_keep) { if (e->life_start < min_start) min_start = e->life_start; if (e->life_end > max_end) max_end = e->life_end; split_entry(e, keep); } } retval = max_end - min_start; out: return retval; } /* * Within the index range (into the array entries_address_ascending), find the * symbol with the maximal lifetime and split/truncate all symbols that overlap * with it (i.e. that there won't be any overlaps anymore). */ static int handle_overlap_region(int start_idx, int end_idx) { int rc = OP_JIT_CONV_OK; int idx; struct jitentry * e; int cnt; char * name; int i, j; unsigned long long totaltime, pct; if (debug) { for (i = start_idx; i <= end_idx; i++) { e = entries_address_ascending[i]; verbprintf(debug, "overlap idx=%i, name=%s, " "start=%llx, end=%llx, life_start=%lli, " "life_end=%lli, lifetime=%lli\n", i, e->symbol_name, e->vma, e->vma + e->code_size, e->life_start, e->life_end, e->life_end - e->life_start); } } idx = select_one(start_idx, end_idx); // This can't happen, but we check anyway, just to silence Coverity if (idx == OP_JIT_CONV_FAIL) { rc = OP_JIT_CONV_FAIL; goto out; } totaltime = eliminate_overlaps(start_idx, end_idx, idx); if (totaltime == ULONG_MAX) { rc = OP_JIT_CONV_FAIL; goto out; } e = entries_address_ascending[idx]; pct = (totaltime == 0) ? 100 : (e->life_end - e->life_start) * 100 / totaltime; cnt = 1; j = pct; while ((j = j/10)) cnt++; // Mark symbol name with a %% to indicate the overlap. cnt += strlen(e->symbol_name) + 2 + 1; name = xmalloc(cnt); snprintf(name, cnt, "%s%%%llu", e->symbol_name, pct); if (e->sym_name_malloced) free(e->symbol_name); e->symbol_name = name; e->sym_name_malloced = 1; verbprintf(debug, "selected idx=%i, name=%s\n", idx, e->symbol_name); out: return rc; } /* * one scan through the symbols to find overlaps. * return 1 if an overlap is found. this is repeated until no more overlap * is there. * Process: There may be more than two overlapping symbols with each other. * The index range of symbols found to overlap are passed to * handle_overlap_region. */ static int scan_overlaps(void) { int i, j; unsigned long long end_addr, end_addr2; struct jitentry const * a; int flag = 0; // entry_count can be incremented by split_entry() during the loop, // save the inital value as loop count int loop_count = entry_count; verbprintf(debug,"count=%i, scan overlaps...\n", entry_count); i = 0; end_addr = 0; for (j = 1; j < loop_count; j++) { /** * Take a symbol [i] and look for the next symbol(s) [j] that are overlapping * symbol [i]. If a symbol [j] is found that is not overlapping symbol [i] the * symbols [i]..[j-1] are handled to be not overlapping anymore. * See descriptions of handle_overlap_region() and eliminate_overlaps() for * further details of this handling. * E.g. possible cases to be handled could be: * * sym1 |-----------| * sym2 |---| * * sym1 |--------| * sym2 |--------| * * sym1 |--------| * sym2 |-------| * sym3 |---------| * * But in the following case * * sym1 |--------| * sym2 |-------------| * sym3 |----------| * * sym3 would not overlap with sym1. Therefore handle_overlap_regio() would * only be called for sym1 up to sym2. */ a = entries_address_ascending[j - 1]; end_addr2 = a->vma + a->code_size; if (end_addr2 > end_addr) end_addr = end_addr2; a = entries_address_ascending[j]; if (end_addr <= a->vma) { if (i != j - 1) { if (handle_overlap_region(i, j - 1) == OP_JIT_CONV_FAIL) { flag = OP_JIT_CONV_FAIL; goto out; } flag = 1; } i = j; } } if (i != j - 1) { if (handle_overlap_region(i, j - 1) == OP_JIT_CONV_FAIL) flag = OP_JIT_CONV_FAIL; else flag = 1; } out: return flag; } /* search for symbols that have overlapping address ranges and decide for * one */ int resolve_overlaps(unsigned long long start_time) { int rc = OP_JIT_CONV_OK; int cnt = 0; invalidate_earlybirds(start_time); while ((rc = scan_overlaps()) && rc != OP_JIT_CONV_FAIL) { resort_address(); if (cnt == 0) { verbprintf(debug, "WARNING: overlaps detected. " "Removing overlapping JIT methods\n"); } cnt++; } if (cnt > 0 && rc != OP_JIT_CONV_FAIL) resort_symbol(); return rc; } /* * scan through the sorted array and replace identical symbol names by unique * ones by adding a counter value. */ void disambiguate_symbol_names(void) { u32 j; int cnt, rep_cnt; struct jitentry * a; struct jitentry * b; rep_cnt = 0; for (j = 1; j < entry_count; j++) { a = entries_symbols_ascending[j - 1]; cnt = 1; do { b = entries_symbols_ascending[j]; if (strcmp(a->symbol_name, b->symbol_name) == 0) { if (b->sym_name_malloced) free(b->symbol_name); b->symbol_name = replacement_name(a->symbol_name, cnt); b->sym_name_malloced = 1; j++; cnt++; rep_cnt++; } else { break; } } while (j < entry_count); } /* recurse to avoid that the added suffix also creates a collision */ if (rep_cnt) { qsort(entries_symbols_ascending, entry_count, sizeof(struct jitentry *), cmp_symbolname); disambiguate_symbol_names(); } } oprofile-0.9.9/opjitconv/parse_dump.c0000664000076400007640000001522012175510133014617 00000000000000/** * @file parse_dump.c * parse a jit dump file * * @remark Copyright 2007 OProfile authors * @remark Read the file COPYING * * @author Jens Wilke * @Modifications Maynard Johnson * @Modifications Philippe Elie * @Modifications Daniel Hansel * * Copyright IBM Corporation 2007 * */ #include "opjitconv.h" #include "jitdump.h" #include "opd_printf.h" #include "op_libiberty.h" #include #include /* parse a code load record and add the entry to the jitentry list */ static int parse_code_load(void const * ptr_arg, int size, unsigned long long end_time) { struct jitentry * entry; int rc = OP_JIT_CONV_OK; char const * ptr = ptr_arg; struct jr_code_load const * rec = ptr_arg; char const * end; size_t padding_count, rec_totalsize; end = rec->code_addr ? ptr + size : NULL; entry = xcalloc(1, sizeof(struct jitentry)); // jitentry constructor entry->next = NULL; ptr += sizeof(*rec); /* symbol_name can be malloced so we cast away the constness. */ entry->symbol_name = (char *)ptr; entry->sym_name_malloced = 0; ptr += strlen(ptr) + 1; entry->code = rec->code_addr ? ptr : NULL; entry->vma = rec->vma; entry->code_size = rec->code_size; entry->section = NULL; entry->life_start = rec->timestamp; // if nothing else is known the symbol lives till the end of the // sampling run, this value may be overwritten by an unload record1 // later entry->life_end = end_time; // build list entry->next = jitentry_list; jitentry_list = entry; /* padding bytes are calculated over the complete record * (i.e. header + symbol name + code) */ rec_totalsize = sizeof(*rec) + strlen(entry->symbol_name) + 1 + entry->code_size; padding_count = PADDING_8ALIGNED(rec_totalsize); verbprintf(debug, "record0: name=%s, vma=%llx, code_size=%i, " "padding_count=%llu, life_start=%lli, life_end=%lli\n", entry->symbol_name, entry->vma, entry->code_size, (unsigned long long)padding_count, entry->life_start, entry->life_end); /* If end == NULL, the dump does not include code, and this sanity * check is skipped. */ if (end && (ptr + entry->code_size + padding_count != end)) { verbprintf(debug, "record total size mismatch\n"); rc = OP_JIT_CONV_FAIL; } return rc; } /* * parse a code unload record. Search for existing record with this code * address and fill life_end field with the timestamp. linear search not very * efficient. FIXME: inefficient */ static void parse_code_unload(void const * ptr, unsigned long long end_time) { struct jr_code_unload const * rec = ptr; struct jitentry * entry; verbprintf(debug,"record1: vma=%llx, life_end=%lli\n", rec->vma, rec->timestamp); /** * Normally we won't get a jr_code_unload with a zero time stamp or * a zero code address. The code address is directly provided by the JVMTI. * The documentation of JVMTI does not say anything about the address value if * it could be zero or not. Therefore it is only a sanity check at the moment. */ if (rec->timestamp > 0 && rec->vma != 0) { for (entry = jitentry_list; entry; entry = entry->next) { if (entry->vma == rec->vma && entry->life_end == end_time) { entry->life_end = rec->timestamp; verbprintf(debug,"matching record found\n"); break; } } } } /* * There is no real parsing here, we just record a pointer to the data, * we will interpret on the fly the record when building the bfd file. */ static void parse_code_debug_info(void const * ptr, void const * end, unsigned long long end_time) { struct jr_code_debug_info const * rec = ptr; struct jitentry_debug_line * debug_line = xmalloc(sizeof(struct jitentry_debug_line)); debug_line->data = rec; debug_line->end = end; debug_line->life_start = rec->timestamp; debug_line->life_end = end_time; debug_line->next = jitentry_debug_line_list; jitentry_debug_line_list = debug_line; } /* parse all entries in the jit dump file and build jitentry_list. * the code needs to check always whether there is enough * to read remaining. this is because the file may be written to * concurrently. */ static int parse_entries(void const * ptr, void const * end, unsigned long long end_time) { int rc = OP_JIT_CONV_OK; struct jr_prefix const * rec = ptr; while ((void *)rec + sizeof(struct jr_prefix) < end) { if (((void *) rec + rec->total_size) > end) { verbprintf(debug, "record past end of file\n"); rc = OP_JIT_CONV_FAIL; break; } switch (rec->id) { case JIT_CODE_LOAD: if (parse_code_load(rec, rec->total_size, end_time)) { rc = OP_JIT_CONV_FAIL; break; } break; case JIT_CODE_UNLOAD: parse_code_unload(rec, end_time); break; // end of VM live time, no action case JIT_CODE_CLOSE: break; case JIT_CODE_DEBUG_INFO: if (rec->total_size == 0) { /* op_write_debug_line_info() ensures to write records with * totalsize > 0. */ rc = OP_JIT_CONV_FAIL; break; } parse_code_debug_info(rec, end, end_time); break; default: verbprintf(debug, "unknown record type\n"); rc = OP_JIT_CONV_FAIL; break; } /* advance to next record (incl. possible padding bytes) */ rec = (void *)rec + rec->total_size; } return rc; } /* parse the jit dump header information * The ptr arg is the address of the pointer to the mmapped * file, which we modify below. */ static int parse_header(char const ** ptr, char const * end) { int rc = OP_JIT_CONV_OK; struct jitheader const * header; if (*ptr + sizeof(struct jitheader) >= end) { verbprintf(debug, "opjitconv: EOF in jitdump file, no header\n"); rc = OP_JIT_CONV_FAIL; goto out; } header = (struct jitheader *)*ptr; if (header->magic != JITHEADER_MAGIC) { verbprintf(debug, "opjitconv: Wrong jitdump file magic\n"); rc = OP_JIT_CONV_FAIL; goto out; } if (header->version != JITHEADER_VERSION) { verbprintf(debug, "opjitconv: Wrong jitdump file version\n"); rc = OP_JIT_CONV_FAIL; goto out; } if (*ptr + header->totalsize > end) { verbprintf(debug, "opjitconv: EOF in jitdump file, not enough " "data for header\n"); rc = OP_JIT_CONV_FAIL; goto out; } dump_bfd_arch = header->bfd_arch; dump_bfd_mach = header->bfd_mach; dump_bfd_target_name = header->bfd_target; verbprintf(debug, "header: bfd-arch=%i, bfd-mach=%i," " bfd_target_name=%s\n", dump_bfd_arch, dump_bfd_mach, dump_bfd_target_name); *ptr = *ptr + header->totalsize; out: return rc; } /* Read in the memory mapped jitdump file. * Build up jitentry structure and set global variables. */ int parse_all(void const * start, void const * end, unsigned long long end_time) { char const * ptr = start; if (!parse_header(&ptr, end)) return parse_entries(ptr, end, end_time); else return OP_JIT_CONV_FAIL; } oprofile-0.9.9/ChangeLog-20070000664000076400007640000006010412175510133012442 000000000000002007-12-11 Philippe Elie * libutil++/op_bfd.h: remove sym_offset(), we can get what did sym_offset() in a simpler way at call site * libutil++/op_bfd.cpp: * libpp/callgraph_container.cpp: * libpp/profile_container.cpp: * libpp/profile_container.h: 2007-11-25 Philippe Elie * daemon/opd_stats.c: dump invalid pc count, added to oprofile stats fs 2.6.24-rc 2007-11-15 Dave Nomura * fixed a some typos in manually patched event files 2007-11-15 Dave Nomura * libpp/format_output.cpp: output XML SYMBOL_DATA for callers/callees * libpp/format.h: 2007-11-15 Dave Nomura * events/ppc64/power6/event_mappings: updated Power6 event files * events/ppc64/power6/events: 2007-11-15 Philippe Elie handle --root which act as a replacement (a prefix) for the / fs * libpp/locate_images.cpp: root path search taking care if a root path is given we never search through "/" * libpp/locate_images.h: * libpp/populate.cpp: * libpp/populate_for_spu.cpp: use the right path to check last modification time, this is yet again a change in behavior, module was never found a this point, even if we found them later, and we didn't try to check_mtime(), so opreport is again a bit more verbose * libutil++/op_bfd.cpp: be more cautious when checking if we can try to open the bfd file, don't open it in the '/' fs if a --root is given * libpp/profile_spec.cpp: convey the root_path all over the code. * libpp/profile_spec.h: * pp/common_option.cpp: * pp/common_option.h: * pp/opannotate_options.cpp: * pp/oparchive.cpp: * pp/oparchive_options.cpp: * pp/opgprof_options.cpp: * pp/opreport_options.cpp: * doc/opannotate.1.in: document --root * doc/oparchive.1.in: * doc/opgprof.1.in: * doc/opreport.1.in: * doc/oprofile.xml: 2007-11-10 Dave Nomura * libutil++/bfd_support.cpp: is_correct_function() is itended to deal with missing debug information, if linenr != 0, don't call it since we know we have valid debug info 2007-11-08 Haavard Skinnemoen * utils/opcontrol: Busybox's implementation of "kill" doesn't understand the "-s SIG" option. Use "-SIG" instead. 2007-11-07 Philippe Elie Compile fix for gcc 2.95.3 * libpp/format_output.cpp: unused local var, then unused params * libpp/format_output.h: * libpp/op_header.cpp: missing include * libutil++/bfd_spu_support.cpp: gcc 2.95.3 do not like struct bfd, 2.95 get it wrong probably but anyway all these struct are useless. 2007-11-06 Philippe Elie * pp/opannotate.cpp: for module we didn't use the right image name, this bug appeared after 0.9.3 release 2007-11-05 Richard Purdie * events/arm/armv6/events: Fix armv6 events to match mainline kernels 2007-11-04 Philippe Elie * utils/opcontrol: nmi watchdog is now cleanly handled in the kernel but it can be on by default even if CONFIG_WATCHDOG=n, a sysctl exists to put it off. We need to check this in opcontrol since we returned success if a counter is missing and starting oprofile with oprof_start silently failed. 2007-11-03 Richard Purdie * pp/oparchive.cpp: Check list_files option before calling create_dir() for debug files. 2007-11-03 Philippe Elie with --xml and --details, bfd open/close was done one time per symbols, not one time per application. Solved by moving open/close in the caller and cache bfd object, this work because --xml imply symbols are sorted by app name then lib name. This is not perfect as we can open/close multiple time bfd object with --separate=library but still a real win. Quick test showed an improvement by over 40 times. Improvement grows as number of symbols per binary. * libpp/xml_utils.cpp: move bfd open ... * libpp/xml_utils.h: * libpp/format_output.cpp: ... here * libpp/format_output.h: * pp/opreport.cpp: 2007-11-02 Philippe Elie * pp/opreport_options.cpp: --xml is not compatible with --sort since xml output need some predefined sort options, we warned against the use of --sort but didn't reset the sort options to default. 2007-11-01 Philippe Elie * pp/oparchive_options.cpp: oparchive need to be run as root if you want to get save all binaries, generally I don't like to restrict user to do silly things but --output-directory / is an easy typo to do and will completely screw up the box. 2007-10-30 Philippe Elie * libpp/format_output.cpp: Fix #931882, xml output not changed at the moment. 2007-10-30 Philippe Elie Prepare #931882 fix, continue to move down real filename retrieval by extending image_name_storage which can hold now the real image name and the image as derived from the sample filename. Use the new api in a compatible way with the old behavior, no output change intended. * libpp/format_output.cpp: * libpp/format_output.h: * libpp/locate_images.cpp: * libpp/locate_images.h: * libpp/name_storage.cpp: * libpp/name_storage.h: * libpp/symbol.cpp: * libpp/symbol.h: * libpp/xml_utils.cpp: * libpp/xml_utils.h: * pp/opreport.cpp: 2007-10-29 Philippe Elie * libpp/image_errors.cpp: Pass to image_errors the archive_path through an extra_images to ensure no duplicate error message occur nor we miss error, this fix two bugs, one with differential profile an error message was missing when two binary are missing, another with opreport where the same error message was duplicate because in on case we passed the real binary name (prefixed with archive_path) while latter we passed the short form of the binary name. * libpp/image_errors.h: * libpp/callgraph_container.cpp: * libpp/populate.cpp: * libpp/populate_for_spu.cpp: * libpp/xml_utils.cpp: * libutil++/op_bfd.h: * pp/opannotate.cpp: global var archive_path is no longer used * pp/opannotate_options.cpp: * pp/opannotate_options.h: * pp/oparchive.cpp: * pp/opgprof.cpp: * pp/opgprof_options.h: * pp/opreport.cpp: * pp/opreport_options.cpp: * pp/opreport_options.h: 2007-10-29 Philippe Elie Cleanup the way per spec archive_path is handled, as extra_images is built using an archive_path it make no sense to pass archive_path as parameter all over the place, rather make it a member of extra_images and use it, anyway it was required the archive_path passed to find_image_path() was the same as used to build the extra_images. As a side effect it fix a corner case: oparchive archive:tmp1 -o tmp2 was not working for module, archiving from an archive should work now. * libpp/arrange_profiles.cpp: * libpp/arrange_profiles.h: * libpp/callgraph_container.cpp: * libpp/callgraph_container.h: * libpp/locate_images.cpp: * libpp/locate_images.h: * libpp/populate.cpp: * libpp/populate.h: * libpp/populate_for_spu.cpp: * libpp/populate_for_spu.h: * libpp/profile_spec.cpp: * libpp/xml_utils.cpp: * libpp/xml_utils.h: * libutil++/op_bfd.cpp: * libutil++/op_bfd.h: * libutil++/op_spu_bfd.cpp: * pp/opannotate.cpp: * pp/oparchive.cpp: * pp/oparchive_options.cpp: * pp/oparchive_options.h: * pp/opgprof.cpp: * pp/opgprof_options.cpp: * pp/opreport.cpp: 2007-10-29 Philippe Elie * libutil++/file_manip.cpp: do not create the output file if the input file can not be read. It change oparchive behavior which created empty file with input file like -rws--x--x 1 root root 2007-10-28 Philippe Elie * libpp/format_output.cpp: minor overkill 2007-10-27 Philippe Elie Fix #1819350, it turned out this implied another fix for differential profile, extra_images must be built per profile specification not globally so most of this patch pass an extra_images down to op_bfd. The way image name resolution has changed. We fixup an image name only when really needed, when opening a bfd file, when checking a binary exists and when we try matching an image name with a profile specification, this robustify differential profile. This patch also allow a profile_spec ala image:*oprofile.ko which was broken too. It's now mandatory to use the same -p option used with oparchive when using an archive with other pp tools, it was already the case but was broken, this patch does not clarify the documentation about this point because I suspect oparchive should be modified to save at the top level directory the contents of -p option, pp tools will use that automatically and --image_path will be obsoleted when used with an archive. This patch except clarifying than --image-path with archive: is a bit special does not add any user level visible change. * libpp/arrange_profiles.cpp: * libpp/arrange_profiles.h: * libpp/callgraph_container.cpp: * libpp/callgraph_container.h: * libpp/locate_images.cpp: * libpp/locate_images.h: * libpp/populate.cpp: * libpp/populate_for_spu.cpp: * libpp/profile_container.cpp: * libpp/profile_container.h: * libpp/profile_spec.cpp: * libpp/profile_spec.h: * libpp/xml_utils.cpp: * libpp/xml_utils.h: * libutil++/Makefile.am: * libutil++/op_bfd.cpp: * libutil++/op_bfd.h: * libutil++/op_spu_bfd.cpp: * pp/common_option.cpp: * pp/common_option.h: * pp/opannotate.cpp: * pp/opannotate_options.cpp: * pp/oparchive.cpp: * pp/oparchive_options.cpp: * pp/opgprof.cpp: * pp/opgprof_options.cpp: * pp/opreport.cpp: * pp/opreport_options.cpp: 2007-10-27 Philippe Elie * libpp/profile_spec.cpp: look like an obvious typo, we must fixup the string we are parsing not a previously seen or empty string 2007-10-25 Philippe Elie * libutil++/sparse_array.h: size() return the max index while we want the max index + 1, the only user is diff_container, differential container is broken in 0.9.3. This fix bug #1820202 2007-10-25 Philippe Elie * utils/opcontrol: fix the previous opcontrol --reset patch, it was broken if the daemon is running because --reset imply --dump so we can use this --reset shortcut only if the daemon is not running. 2007-10-25 Philippe Elie * utils/opcontrol: if objdump is missing the error message is obscure, this fix bug #1564920 by checking if objdump exists and is an executable before using it 2007-10-25 Philippe Elie * utils/opcontrol: --reset doesn't need to load the module, it was counter-intuitive than the sequence opcontrol --deinit; opcontrol --reset must be followed by another opcontrol --deinit 2007-10-25 Philippe Elie * utils/opcontrol: error out earlier if the module is not loaded even for --list-events or --dump to avoid obscure error message 2007-10-24 Philippe Elie * libop/op_config.h: bump sample filename format, should have been done before 0.9.3 * libpp/op_header.cpp: do not use odb_open() to read the sample file header, if it fails it can return EINVAL if sanity checking fails so we can't know if the failure came from a sample file format change or some other failure. This explain some "sample_filename: Invalid argument" we got in bug report when user didn't cleanup the sample file directory. * libpp/profile.cpp: use read_header() first to check the sample file format to get better error message. 2007-10-19 Philippe Elie * libop/op_events.c: force the use of hexa notation in event file for the field intended to be in hexacidemal so make check will catch attempt to use decimal notation for them. * events/mips/20K/events: all event number were in decimal but parsed as hexadecimal, this fix bug #1717298 * events/mips/24K/events: * events/mips/25K/events: * events/mips/5K/events: * events/mips/r12000/events: * events/mips/sb1/events: * events/mips/vr5432/events: * events/mips/vr5500/events: * events/mips/34K/events: comment a bunch of overlapping event. * events/ppc64/cell-be/unit_masks: well, 0 == 0x0 but it's easier to catch real error by forcing hexa notation for default unit mask. * libop/tests/alloc_counter_tests.c: fix mips/34K test, the used event has been remoded 2007-10-17 Philippe Elie * doc/oprofile.xml: fix dead url * utils/ophelp.c: 2007-10-17 Jason Yeh * events/x86-64/family10/events: This patch updates the events and unit_masks files to match the BIOS and Kernel Developer's Guide For AMD Family 10h Processors Rev 3.00 released on September 07, 2007. The notable changes are L3 cache events and updates to corresponding unit masks. * events/x86-64/family10/unit_masks: 2007-10-17 Philippe Elie * utils/opcontrol: newer shell accept if -z ... but older need if test -z. This broke opcontrol --dump with bash 2.x and probably other shell. With bash the error when running opcontrol as non root was: /usr/local/bin/opcontrol: line 1670: -z: command not found 2007-10-12 Philippe Elie * libop/op_events.c: check for '.' inside event name, they can't work * events/i386/core_2/events: change '.' by '_' in events name * events/ppc64/cell-be/events: 2007-10-11 Maynard Johnson * events/ppc64/970MP/event_mappings: Turn off profiling in hypervisor on 970MP to prevent lost interrupts 2007-10-10 Maynard Johnson * events/ppc64/970MP/events: * events/ppc64/970MP/event_mappings: Fix MMCR values and counter-to-event mappings on a few 970MP groups 2007-10-09 Melchior Franz * libregex/op_regex.cpp: Fix broken string concatenation 2007-10-05 Will Cohen * utils/opcontrol: Modify opcontrol to allow short form -l and -d for normal users. 2007-09-25 Brian Twichell * utils/opcontrol: Modify opcontrol to use a more inclusive kernel range 2007-08-23 Maynard Johnson * daemon/opd_anon.c: Make anonymous sample recording work with 32-bit OProfile and 64-bit anonymous code 2007-08-14 John Levon * doc/oprofile.xml: * doc/opcontrol.1.in: clarify behaviour of opcontrol -e 2007-08-02 Jens Wilke * ChangeLog: Correct the date from previous patch (maynardj) * libutil++/op_bfd.cpp: Fix sym_offset calculation. Bug triggers on 64 bit systems with code mapped with an address >4G. 2007-08-02 Jens Wilke * libpp/profile_container.cpp: Remove unnecessary offset calculation. 2007-07-18 Maynard Johnson * doc/Makefile.am: Include buffers diagram in dist * doc/oprofile.xml: Correct filename reference to opreport.xsd 2007-07-16 Maynard Johnson * configure.in: Bump to 0.9.4cvs. 2007-07-16 Maynard Johnson * configure.in: * Makefile.am: Bump release to 0.9.3 and add a line to EXTRA_DIST to distribute ChangeLog-2006. 2007-07-09 Maynard Johnson * doc/opreport.xsd: * libpp/xml_utils.cpp: Correct schema version bump 2007-07-02 Maynard Johnson * libpp/populate_for_spu.cpp: Fix logic in is_spu_profile() to handle '--separate=thread' option. 2007-06-27 Maynard Johnson * ChangeLog: ChangeLog cleanup 2007-06-15 Maynard Johnson * doc/opreport.xsd: * libpp/xml_utils.cpp: Bump schema version to 2.0 to coincide with callgraph elements added recently to the schema 2007-06-13 Maynard Johnson * doc/oprofile.xml: * events/Makefile.am: * events/ppc64/power5++/event_mappings: * events/ppc64/power5++/events: * events/ppc64/power5++/unit_masks: * libop/op_cpu_type.c: * libop/op_cpu_type.h: * libop/op_events.c: * utils/opcontrol: * utils/ophelp.c: Add support for POWER5++ (i.e., POWER5+ with PMU set to POWER6 mode) 2007-06-12 dean gaudet * events/i386/core_2/events: * events/i386/core_2/unit_masks: updates to match 253669-022US ISA vol 3B from Intel. (Including fix for #1580064 from Arun Sharma.) 2007-06-08 dean gaudet * events/x86-64/hammer/events: * events/x86-64/hammer/unit_masks: updates from December 2006 AMD update 2007-05-31 Maynard Johnson * libpp/symbol.h: * libutil++/bfd_support.h: * m4/cellspubfdsupport.m4: Fixups for compile failures on older Linux distributions 2007-05-29 Dave Nomura * libregex/demangle_symbol.cpp: Strip off leading '.' generated for elf6r-powerpc targets in mangled symbol names. 2007-05-24 Richard Purdie * events/arm/xscale1/events: * events/arm/xscale2/events: Add extra Xscale PMU event definitions 2007-05-24 Richard Purdie * events/arm/armv6/events: * events/arm/armv6/unit_masks: * libop/op_cpu_type.c: * libop/op_cpu_type.h: * libop/op_events.c: * utils/ophelp.c: Name ARM11 support to be consistent with the kernel, remove some duplicate code and add some extra events 2007-05-24 Richard Purdie * oprofile/pp/oparchive.cpp: If the debug files have the same name as the original binary, the binary gets overwritten. Add in a .debug directory to avoid this. 2007-05-23 Joerg Wagner * events/Makefile.am: * events/arm/mpcore/events: * events/arm/mpcore/unit_masks: * libop/op_cpu_type.c: * libop/op_cpu_type.h: * libop/op_events.c: * utils/ophelp.c: ARM MPCore support 2007-05-23 Riku Voipio * events/Makefile.am: * events/arm/armv6/events: * events/arm/armv6/unit_masks: * libop/op_cpu_type.c: * libop/op_cpu_type.h: * libop/op_events.c: * utils/ophelp.c: ARM11 support 2007-05-21 Richard Purdie * doc/opreport.xsd: * libpp/format_output.cpp: * libpp/format_output.h: * libpp/xml_utils.cpp: * libutil++/xml_output.cpp: * libutil++/xml_output.h: * pp/opreport.cpp: * pp/opreport_options.cpp: Add callgraph XML output 2007-05-20 Dean Gaudet * events/i386/core_2/events: ITLB_MISS_RETIRED,MEM_LOAD_RETIRED only work with counter 0 2007-05-20 Richard Purdie * libpp/callgraph_container.cpp: * libpp/callgraph_container.h: * libpp/format_output.cpp: * libpp/format_output.h: * libpp/symbol.h: * libpp/symbol_sort.cpp: * libpp/symbol_sort.h: * pp/opreport.cpp: Convert cg_collection to symbol_collection and use dynamic casting allowing more code reuse for callgraphs 2007-05-19 Richard Purdie * doc/oparchive.1.in: * doc/oprofile.xml: * pp/oparchive.cpp: * pp/oparchive_options.cpp: * pp/oparchive_options.h: Add --list-files option to list all files that would be handled by oparchive. 2007-05-19 Olof Johansson * events/Makefile.in: * events/ppc64/pa6t/event_mappings: * events/ppc64/pa6t/events: * events/ppc64/pa6t/unit_masks: * libop/op_cpu_type.c: * libop/op_cpu_type.h: * libop/op_events.c: * utils/opcontrol: * utils/ophelp.c: PA Semi 6T support 2007-05-09 Richard Purdie * oprofile/daemon/opd_cookie.c: Fix syscall for ARM EABI 2007-05-10 Maynard Johnson * libpp/Makefile.am: * libpp/populate.cpp: * libpp/populate_for_spu.cpp: * libpp/populate_for_spu.h: * libpp/profile.h: * libpp/profile.cpp: * libutil++/Makefile.am: * libutil++/bfd_spu_support.cpp: * libutil++/bfd_support.h: * libutil++/op_bfd.h: * libutil++/op_spu_bfd.cpp: * libpp/xml_utils.cpp: * libpp/profile_container.cpp: * libpp/symbol.h: Patch 3 of 3 for adding support for profiling Cell Broadband Engine SPU 2007-05-10 Maynard Johnson * daemon/liblegacy/opd_sample_files.c: * daemon/opd_events.c: * daemon/opd_events.h: * daemon/opd_interface.h: * daemon/Makefile.am: * daemon/opd_mangling.c: * daemon/opd_sfile.c: * daemon/opd_sfile.h: * daemon/opd_spu.c: * daemon/opd_trans.c: * daemon/opd_trans.h: * libop/op_sample_file.h: Patch 2 of 3 for adding support for profiling Cell Broadband Engine SPU 2007-05-10 Maynard Johnson * configure.in: * doc/oprofile.xml: * events/ppc64/cell-be/events: * m4/Makefile.am: * m4/cellspubfdsupport.m4: * utils/opcontrol: Patch 1 of 3 for adding support for profiling Cell Broadband Engine SPU 2007-04-25 Manoj Ekbote * events/mips/sb1/events: fix SB1 events 2007-04-19 Dave Nomura * events/ppc64/power6/events: counter 3 should have been used in the specification of the default CYCLES event, not counter 1 2007-04-13 Will Cohen * libop/op_cpu_type.c: * libop/op_cpu_type.h: Move new entries to end of list to improve backward compatibility with enum values. 2007-04-11 John Levon * doc/oprofile.xml: IRC channel is on OFTC 2007-04-10 Philippe Elie * utils/ophelp.c: if userspace doesn't recognize the cpu type warn the user it can use timer mode or upgrade oprofile. 2007-04-04 Maynard johnson * libutil++/file_manip.cpp: catch result from chown() to avoid compilation warning (treated as error) 2007-03-23 Jason Yeh * events/Makefile.am: * events/x86-64/family10/events: * events/x86-64/family10/unit_masks: * libop/op_cpu_type.c: * libop/op_cpu_type.h: * libop/op_events.c: * utils/ophelp.c: Add AMD Family 10 support. 2007-02-28 Rob Bradford * pp/oparchive.cpp: return from main 2007-02-21 Rob Bradford Reverted previous patches. * pp/oparchive.cpp: Save debuginfo files in .debug sub directory. * pp/oparchive.cpp: * pp/oparchive_options.h: * pp/oparchive_options.cpp: List files option. 2007-02-21 Rob Bradford * pp/oparchive.cpp: Save debuginfo files in .debug sub directory. * pp/oparchive.cpp: * pp/oparchive_options.h: * pp/oparchive_options.cpp: List files option. 2007-02-16 Philippe Elie * daemon/opd_mangling.c: missing initialisation when mangling an anon and callgraph filename. Fix given by Amitabha Roy. 2007-02-06 Dave Nomura * libpp/symbol.h: * libutil++/Makefile.am: * libutil++/sparse_array.h: represent count_array_t as a sparse array type based on std::map rather than growable_vector which is based on std::vector to reduce the excessive heap usage on large profiles. 2007-02-02 Amitabha Roy * daemon/opd_anon.c: * daemon/opd_anon.h: * daemon/opd_mangling.c: * libop/op_mangle.c: * libop/op_mangle.h: * libpp/parse_filename.cpp: save and report name of anonymous mapping if there is one (as self-contradictory as that sounds). 2007-02-02 Dave Nomura * events/Makefile.am: * events/ppc64/970MP/event_mappings: * events/ppc64/970MP/events: * events/ppc64/970MP/unit_masks: * libop/op_cpu_type.c: * libop/op_cpu_type.h: * libop/op_events.c: * utils/ophelp.c: PPC970MP has different hardware counters than the rest of the PPC family and must be treated as a different architecture by oprofile. 2007-01-31 Dave Nomura * libpp/xml_utils.cpp: opreport -X was still getting some incorrect symbols attributed to the when processing a --separate=lib profile. 2007-01-29 Philippe Elie * daemon/oprofiled.c: no need for 0755 for the log file mode, use 0644 * utils/opcontrol: don't create the log in opcontrol 2007-01-26 Dave Nomura * libpp/format_output.cpp: * libpp/xml_utils.cpp: opreport -X was mixing the symbols associated with an application with those of a library when processing a --separate=lib profile. 2007-01-02 Dave Nomura * events/Makefile.am: * events/ppc64/power6/event_mappings: * events/ppc64/power6/events: * events/ppc64/power6/unit_masks: * libop/op_cpu_type.c: * libop/op_cpu_type.h: * libop/op_events.c: * utils/opcontrol: * utils/ophelp.c: Add support for Power6 See ChangeLog-2006 for earlier changelogs. oprofile-0.9.9/libopagent/0000775000076400007640000000000012175511554012515 500000000000000oprofile-0.9.9/libopagent/opagent.c0000664000076400007640000002651712175510133014241 00000000000000/** * @file opagent.c * Interface to report symbol names and dynamically generated code to Oprofile * * @remark Copyright 2007 OProfile authors * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * @author Jens Wilke * @Modifications Daniel Hansel * * Copyright IBM Corporation 2007 * */ /****************************************************************** * ATTENTION: * When adding new functions to this interface, you MUST update * opagent_symbols.ver. * * If a change is made to an existing exported function, perform the * the following steps. As an example, assume op_open_agent() * is being updated to include a 'dump_code' parameter. * 1. Update the opagent.ver file with a new version node, and * add the op_open_agent to it. Note that op_open_agent * is also still declared in the original version node. * 2. Add '__asm__(".symver ") directives to this .c source file. * For this example, the directives would be as follows: * __asm__(".symver op_open_agent_1_0,op_open_agent@OPAGENT_1.0"); * __asm__(".symver op_open_agent_2_0,op_open_agent@@OPAGENT_2.0"); * 3. Update the declaration of op_open_agent in the header file with * the additional parameter. * 4. Change the name of the original op_open_agent to "op_open_agent_1_0" * in this .c source file. * 5. Add the new op_open_agent_2_0(int dump_code) function in this * .c source file. * * See libopagent/Makefile.am for more information. *******************************************************************/ #include "config.h" #include #include #include #include #include #include #include #include #include #include #include #include #include "opagent.h" #include "op_config.h" #include "jitdump.h" // Declare BFD-related global variables. static char * _bfd_target_name; static int _bfd_arch; static unsigned int _bfd_mach; // Define BFD-related global variables. static int define_bfd_vars(void) { bfd * bfd; bfd_boolean r; int len; #define MAX_PATHLENGTH 2048 char mypath[MAX_PATHLENGTH]; len = readlink("/proc/self/exe", mypath, sizeof(mypath)); if (len < 0) { fprintf(stderr, "libopagent: readlink /proc/self/exe failed\n"); return -1; } if (len >= MAX_PATHLENGTH) { fprintf(stderr, "libopagent: readlink /proc/self/exe returned" " path length longer than %d.\n", MAX_PATHLENGTH); return -1; } mypath[len] = '\0'; bfd_init(); bfd = bfd_openr(mypath, NULL); if (bfd == NULL) { bfd_perror("bfd_openr error. Cannot get required BFD info"); return -1; } r = bfd_check_format(bfd, bfd_object); if (!r) { bfd_perror("bfd_get_arch error. Cannot get required BFD info"); return -1; } _bfd_target_name = bfd->xvec->name; _bfd_arch = bfd_get_arch(bfd); _bfd_mach = bfd_get_mach(bfd); return 0; } /** * Define the version of the opagent library. */ #define OP_MAJOR_VERSION 1 #define OP_MINOR_VERSION 0 #define TMP_OPROFILE_DIR "/tmp/.oprofile" #define JITDUMP_DIR TMP_OPROFILE_DIR "/jitdump" #define MSG_MAXLEN 20 op_agent_t op_open_agent(void) { char pad_bytes[7] = {0, 0, 0, 0, 0, 0, 0}; int pad_cnt; char dump_path[PATH_MAX]; char err_msg[PATH_MAX + 16]; int rc; struct jitheader header; int fd; struct timeval tv; FILE * dumpfile = NULL; /* Coverity complains about 'time-of-check-time-of-use' race if we do stat() on * a file (or directory) and then open or create it afterwards. So instead, * we'll try to open it and see what happens. */ int create_dir = 0; DIR * dir1 = opendir(TMP_OPROFILE_DIR); if (!dir1) { if (errno == ENOENT) { create_dir = 1; } else if (errno == ENOTDIR) { fprintf(stderr, "Error: Creation of directory %s failed. File exists where directory is expected.\n", TMP_OPROFILE_DIR); return NULL; } } else { closedir(dir1); } if (create_dir) { create_dir = 0; rc = mkdir(TMP_OPROFILE_DIR, S_IRWXU | S_IRWXG | S_IRWXO); if (rc && (errno != EEXIST)) { fprintf(stderr, "Error trying to create %s dir.\n", TMP_OPROFILE_DIR); return NULL; } } dir1 = opendir(JITDUMP_DIR); if (!dir1) { if (errno == ENOENT) { create_dir = 1; } else if (errno == ENOTDIR) { fprintf(stderr, "Error: Creation of directory %s failed. File exists where directory is expected.\n", JITDUMP_DIR); return NULL; } } else { closedir(dir1); } if (create_dir) { rc = mkdir(JITDUMP_DIR, S_IRWXU | S_IRWXG | S_IRWXO); if (rc && (errno != EEXIST)) { fprintf(stderr, "Error trying to create %s dir.\n", JITDUMP_DIR); return NULL; } } snprintf(dump_path, PATH_MAX, "%s/%i.dump", JITDUMP_DIR, getpid()); snprintf(err_msg, PATH_MAX + 16, "Error opening %s\n", dump_path); // make the dump file only accessible for the user for security reason. fd = creat(dump_path, S_IRUSR|S_IWUSR); if (fd == -1) { fprintf(stderr, "%s\n", err_msg); return NULL; } dumpfile = fdopen(fd, "w"); if (!dumpfile) { fprintf(stderr, "%s\n", err_msg); close(fd); return NULL; } if (define_bfd_vars()) { fclose(dumpfile); return NULL; } header.magic = JITHEADER_MAGIC; header.version = JITHEADER_VERSION; header.totalsize = sizeof(header) + strlen(_bfd_target_name) + 1; /* calculate amount of padding '\0' */ pad_cnt = PADDING_8ALIGNED(header.totalsize); header.totalsize += pad_cnt; header.bfd_arch = _bfd_arch; header.bfd_mach = _bfd_mach; if (gettimeofday(&tv, NULL)) { fclose(dumpfile); fprintf(stderr, "gettimeofday failed\n"); return NULL; } header.timestamp = tv.tv_sec; snprintf(err_msg, PATH_MAX + 16, "Error writing to %s", dump_path); if (!fwrite(&header, sizeof(header), 1, dumpfile)) { fclose(dumpfile); fprintf(stderr, "%s\n", err_msg); return NULL; } if (!fwrite(_bfd_target_name, strlen(_bfd_target_name) + 1, 1, dumpfile)) { fclose(dumpfile); fprintf(stderr, "%s\n", err_msg); return NULL; } /* write padding '\0' if necessary */ if (pad_cnt && !fwrite(pad_bytes, pad_cnt, 1, dumpfile)) { fclose(dumpfile); fprintf(stderr, "%s\n", err_msg); return NULL; } fflush(dumpfile); return (op_agent_t)dumpfile; } int op_close_agent(op_agent_t hdl) { struct jr_code_close rec; struct timeval tv; FILE * dumpfile = (FILE *) hdl; if (!dumpfile) { errno = EINVAL; return -1; } rec.id = JIT_CODE_CLOSE; rec.total_size = sizeof(rec); if (gettimeofday(&tv, NULL)) { fprintf(stderr, "gettimeofday failed\n"); return -1; } rec.timestamp = tv.tv_sec; if (!fwrite(&rec, sizeof(rec), 1, dumpfile)) return -1; fclose(dumpfile); dumpfile = NULL; return 0; } int op_write_native_code(op_agent_t hdl, char const * symbol_name, uint64_t vma, void const * code, unsigned int const size) { struct jr_code_load rec; struct timeval tv; size_t sz_symb_name; char pad_bytes[7] = { 0, 0, 0, 0, 0, 0, 0 }; size_t padding_count; FILE * dumpfile = (FILE *) hdl; if (!dumpfile) { errno = EINVAL; fprintf(stderr, "Invalid hdl argument\n"); return -1; } sz_symb_name = strlen(symbol_name) + 1; rec.id = JIT_CODE_LOAD; rec.code_size = size; rec.vma = vma; rec.code_addr = (u64) (uintptr_t) code; rec.total_size = code ? sizeof(rec) + sz_symb_name + size : sizeof(rec) + sz_symb_name; /* calculate amount of padding '\0' */ padding_count = PADDING_8ALIGNED(rec.total_size); rec.total_size += padding_count; if (gettimeofday(&tv, NULL)) { fprintf(stderr, "gettimeofday failed\n"); return -1; } rec.timestamp = tv.tv_sec; /* locking makes sure that we continuously write this record, if * we are called within a multi-threaded context */ flockfile(dumpfile); /* Write record, symbol name, code (optionally), and (if necessary) * additonal padding \0 bytes. */ if (fwrite_unlocked(&rec, sizeof(rec), 1, dumpfile) && fwrite_unlocked(symbol_name, sz_symb_name, 1, dumpfile)) { if (code) fwrite_unlocked(code, size, 1, dumpfile); if (padding_count) fwrite_unlocked(pad_bytes, padding_count, 1, dumpfile); /* Always flush to ensure conversion code to elf will see * data as soon as possible */ fflush_unlocked(dumpfile); funlockfile(dumpfile); return 0; } fflush_unlocked(dumpfile); funlockfile(dumpfile); return -1; } int op_write_debug_line_info(op_agent_t hdl, void const * code, size_t nr_entry, struct debug_line_info const * compile_map) { struct jr_code_debug_info rec; long cur_pos, last_pos; struct timeval tv; size_t i; size_t padding_count; char padd_bytes[7] = {0, 0, 0, 0, 0, 0, 0}; int rc = -1; FILE * dumpfile = (FILE *) hdl; if (!dumpfile) { errno = EINVAL; fprintf(stderr, "Invalid hdl argument\n"); return -1; } /* write nothing if no entries are provided */ if (nr_entry == 0) return 0; rec.id = JIT_CODE_DEBUG_INFO; rec.code_addr = (uint64_t)(uintptr_t)code; /* will be fixed after writing debug line info */ rec.total_size = 0; rec.nr_entry = nr_entry; if (gettimeofday(&tv, NULL)) { fprintf(stderr, "gettimeofday failed\n"); return -1; } rec.timestamp = tv.tv_sec; flockfile(dumpfile); if ((cur_pos = ftell(dumpfile)) == -1l) goto error; if (!fwrite_unlocked(&rec, sizeof(rec), 1, dumpfile)) goto error; for (i = 0; i < nr_entry; ++i) { if (!fwrite_unlocked(&compile_map[i].vma, sizeof(compile_map[i].vma), 1, dumpfile) || !fwrite_unlocked(&compile_map[i].lineno, sizeof(compile_map[i].lineno), 1, dumpfile) || !fwrite_unlocked(compile_map[i].filename, strlen(compile_map[i].filename) + 1, 1, dumpfile)) goto error; } if ((last_pos = ftell(dumpfile)) == -1l) goto error; rec.total_size = last_pos - cur_pos; padding_count = PADDING_8ALIGNED(rec.total_size); rec.total_size += padding_count; if (padding_count && !fwrite(padd_bytes, padding_count, 1, dumpfile)) goto error; if (fseek(dumpfile, cur_pos, SEEK_SET) == -1l) goto error; if (!fwrite_unlocked(&rec, sizeof(rec), 1, dumpfile)) goto error; if (fseek(dumpfile, last_pos + padding_count, SEEK_SET) == -1) goto error; rc = 0; error: fflush_unlocked(dumpfile); funlockfile(dumpfile); return rc; } int op_unload_native_code(op_agent_t hdl, uint64_t vma) { struct jr_code_unload rec; struct timeval tv; FILE * dumpfile = (FILE *) hdl; if (!dumpfile) { errno = EINVAL; fprintf(stderr, "Invalid hdl argument\n"); return -1; } rec.id = JIT_CODE_UNLOAD; rec.vma = vma; rec.total_size = sizeof(rec); if (gettimeofday(&tv, NULL)) { fprintf(stderr, "gettimeofday failed\n"); return -1; } rec.timestamp = tv.tv_sec; if (!fwrite(&rec, sizeof(rec), 1, dumpfile)) return -1; fflush(dumpfile); return 0; } int op_major_version(void) { return OP_MAJOR_VERSION; } int op_minor_version(void) { return OP_MINOR_VERSION; } oprofile-0.9.9/libopagent/opagent.h0000664000076400007640000001202412175510133014232 00000000000000/** * @file opagent.h * Interface to report symbol names and dynamically generated code to Oprofile * * @remark Copyright 2007 OProfile authors * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * @author Jens Wilke * @Modifications Daniel Hansel * * Copyright IBM Corporation 2007 * */ #ifndef _LIB_OPAGENT_H #define _LIB_OPAGENT_H #include #include #if defined(__cplusplus) extern "C" { #endif struct debug_line_info { unsigned long vma; unsigned int lineno; /* The filename format is unspecified, absolute path, relative etc. */ char const * filename; }; typedef void * op_agent_t; /** * This function must be called by agents before any other function. * Creates and opens a JIT dump file in /tmp/.oprofile/jitdump * using the naming convention .dump. * * Returns a valid op_agent_t handle or NULL. If NULL is returned, errno * is set to indicate the nature of the error. **/ op_agent_t op_open_agent(void); /** * Frees all resources and closes open file handles. * * hdl: Handle returned from an earlier call to op_open_agent() * * Returns 0 on success; -1 otherwise. If -1 is returned, errno is * set to indicate the nature of the error. **/ int op_close_agent(op_agent_t hdl); /** * Signal the dynamic generation of native code from a virtual machine. * Writes a JIT dump record to the open JIT dump file using * the passed information. * * hdl: Handle returned from an earlier call to op_open_agent() * symbol_name: The name of the symbol being dynamically compiled. * This name can (and should) contain all necessary * information to disambiguate it from symbols of the * same name; e.g., class, method signature. * vma: The virtual memory address of the executable code. * code: Pointer to the location of the compiled code. * Theoretically, this may be a different location from * that given by the vma argument. For some JIT compilers, * obtaining the code may be impractical. For this (or any other) * reason, the agent can choose to pass NULL for this paraemter. * If NULL is passed, no code will be copied into the JIT dump * file. * code_size: Size of the compiled code. * * Returns 0 on success; -1 otherwise. If -1 is returned, errno is * set to indicate the nature of the error. **/ int op_write_native_code(op_agent_t hdl, char const * symbol_name, uint64_t vma, void const * code, const unsigned int code_size); /** * Add debug line information to a piece of code. An op_write_native_code() * with the same code pointer should have occurred before this call. It's not * necessary to provide one lineno information entry per machine instruction; * the array can contain hole. * * hdl: Handle returned from an earlier call to op_open_agent() * code: Pointer to the location of the code with debug info * nr_entry: Number of entries in compile_map * compile_map: Array of struct debug_line_info. See the JVMTI agent * library implementation for an example of what information * should be retrieved from a VM to fill out this data structure. * * Returns 0 on success; -1 otherwise. If -1 is returned, errno is * set to indicate the nature of the error. **/ int op_write_debug_line_info(op_agent_t hdl, void const * code, size_t nr_entry, struct debug_line_info const * compile_map); /** * Signal the invalidation of native code from a virtual machine. * * hdl: Handle returned from an earlier call to op_open_agent() * vma: The virtual memory address of the compiled code being unloaded. * An op_write_native_code() with the same vma should have * occurred before this call. * * Returns 0 on success; -1 otherwise. If -1 is returned, errno is * set to indicate the nature of the error. **/ int op_unload_native_code(op_agent_t hdl, uint64_t vma); /** * Returns the major version number of the libopagent library that will be used. **/ int op_major_version(void); /** * Returns the minor version number of the libopagent library that will be used. **/ int op_minor_version(void); /* idea how to post additional information for a piece of code. we use the code address as reference int op_write_loader_name(const void* code_addr, char const * loader_name); */ #if defined(__cplusplus) } #endif #endif oprofile-0.9.9/libopagent/Makefile.in0000664000076400007640000005103412175510234014477 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libopagent DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__installdirs = "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(includedir)" LTLIBRARIES = $(pkglib_LTLIBRARIES) am__DEPENDENCIES_1 = libopagent_la_DEPENDENCIES = $(am__DEPENDENCIES_1) am_libopagent_la_OBJECTS = libopagent_la-opagent.lo libopagent_la_OBJECTS = $(am_libopagent_la_OBJECTS) libopagent_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libopagent_la_CFLAGS) \ $(CFLAGS) $(libopagent_la_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libopagent_la_SOURCES) DIST_SOURCES = $(libopagent_la_SOURCES) HEADERS = $(include_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ pkglib_LTLIBRARIES = libopagent.la # install opagent.h to include directory include_HEADERS = opagent.h libopagent_la_SOURCES = opagent.c \ jitdump.h \ opagent.h EXTRA_DIST = opagent_symbols.ver libopagent_la_CFLAGS = -fPIC libopagent_la_CPPFLAGS = -I ${top_srcdir}/libop \ -I ${top_srcdir}/libutil \ @OP_CPPFLAGS@ libopagent_la_LIBADD = $(BFD_LIBS) # Do not increment the major version for this library except to # intentionally break backward ABI compatability. Use the # symbol versioning technique (via the version script) to add new or # change existing functions; then just increment the minor version. # # See http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html # for information about library versioning. # # See http://www.gnu.org/software/gnulib/manual/html_node/LD-Version-Scripts.html # for details about the --version-script option. libopagent_la_LDFLAGS = -version-info 1:1:0 \ -Wl,--version-script=${top_srcdir}/libopagent/opagent_symbols.ver \ @OP_LDFLAGS@ all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libopagent/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign libopagent/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(pkglibdir)" || $(MKDIR_P) "$(DESTDIR)$(pkglibdir)" @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkglibdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkglibdir)"; \ } uninstall-pkglibLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkglibdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkglibdir)/$$f"; \ done clean-pkglibLTLIBRARIES: -test -z "$(pkglib_LTLIBRARIES)" || rm -f $(pkglib_LTLIBRARIES) @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libopagent.la: $(libopagent_la_OBJECTS) $(libopagent_la_DEPENDENCIES) $(libopagent_la_LINK) -rpath $(pkglibdir) $(libopagent_la_OBJECTS) $(libopagent_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libopagent_la-opagent.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< libopagent_la-opagent.lo: opagent.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libopagent_la_CPPFLAGS) $(CPPFLAGS) $(libopagent_la_CFLAGS) $(CFLAGS) -MT libopagent_la-opagent.lo -MD -MP -MF $(DEPDIR)/libopagent_la-opagent.Tpo -c -o libopagent_la-opagent.lo `test -f 'opagent.c' || echo '$(srcdir)/'`opagent.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libopagent_la-opagent.Tpo $(DEPDIR)/libopagent_la-opagent.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='opagent.c' object='libopagent_la-opagent.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libopagent_la_CPPFLAGS) $(CPPFLAGS) $(libopagent_la_CFLAGS) $(CFLAGS) -c -o libopagent_la-opagent.lo `test -f 'opagent.c' || echo '$(srcdir)/'`opagent.c mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-includeHEADERS: $(include_HEADERS) @$(NORMAL_INSTALL) test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)" @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \ done uninstall-includeHEADERS: @$(NORMAL_UNINSTALL) @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ test -n "$$files" || exit 0; \ echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(includedir)" && rm -f $$files ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(includedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-pkglibLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-includeHEADERS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-pkglibLTLIBRARIES install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-includeHEADERS uninstall-pkglibLTLIBRARIES .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-pkglibLTLIBRARIES ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-includeHEADERS install-info \ install-info-am install-man install-pdf install-pdf-am \ install-pkglibLTLIBRARIES install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am \ uninstall-includeHEADERS uninstall-pkglibLTLIBRARIES # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/libopagent/opagent_symbols.ver0000664000076400007640000000030112175510133016342 00000000000000OPAGENT_1.0 { global: op_open_agent; op_close_agent; op_write_native_code; op_write_debug_line_info; op_unload_native_code; op_major_version; op_minor_version; local: *; }; oprofile-0.9.9/libopagent/jitdump.h0000664000076400007640000000331612175510133014255 00000000000000/** * @file jitdump.h * Header structure of a JIT-dump file. * * @remark Copyright 2007 OProfile authors * @remark Read the file COPYING * * @author Jens Wilke * @Modifications Daniel Hansel * * Copyright IBM Corporation 2007 * */ #include #include #include #include "op_types.h" #ifndef JITDUMP_H #define JITDUMP_H /** * Magic to do a sanity check that this is a dump file * characters "jItO" */ #define JITHEADER_MAGIC 0x4F74496A /** * Macro to calculate count of padding bytes * to extend a size to be 8-byte aligned. */ #define PADDING_8ALIGNED(x) ((((x) + 7) & 7) ^ 7) /** * Version number to avoid conflicts, increase * this whenever the header is changed */ #define JITHEADER_VERSION 1 struct jitheader { /* characters "jItO" */ u32 magic; /* version of the dump */ u32 version; u32 totalsize; u32 bfd_arch; u32 bfd_mach; u64 timestamp; char bfd_target[0]; }; enum jit_record_type { JIT_CODE_LOAD=0, JIT_CODE_UNLOAD=1, JIT_CODE_CLOSE=2, JIT_CODE_DEBUG_INFO=3 }; /* each record starts always with a id and a total_size */ struct jr_prefix { u32 id; u32 total_size; }; /* record0 (id=0) logs a jitted code */ struct jr_code_load { u32 id; u32 total_size; u64 timestamp; u64 vma; u64 code_addr; u32 code_size; u32 align; }; /* record1 (id=1) logs a code unload */ struct jr_code_unload { u32 id; u32 total_size; u64 timestamp; u64 vma; }; /* record2 (id=2) logs end of JVM livetime */ struct jr_code_close { u32 id; u32 total_size; u64 timestamp; }; /* record3 (id=3) logs debug line information. */ struct jr_code_debug_info { u32 id; u32 total_size; u64 timestamp; u64 code_addr; u32 nr_entry; u32 align; }; #endif /* !JITDUMP_H */ oprofile-0.9.9/libopagent/Makefile.am0000664000076400007640000000200212175510133014453 00000000000000pkglib_LTLIBRARIES = libopagent.la # install opagent.h to include directory include_HEADERS = opagent.h libopagent_la_SOURCES = opagent.c \ jitdump.h \ opagent.h EXTRA_DIST = opagent_symbols.ver libopagent_la_CFLAGS = -fPIC libopagent_la_CPPFLAGS = -I ${top_srcdir}/libop \ -I ${top_srcdir}/libutil \ @OP_CPPFLAGS@ libopagent_la_LIBADD = $(BFD_LIBS) # Do not increment the major version for this library except to # intentionally break backward ABI compatability. Use the # symbol versioning technique (via the version script) to add new or # change existing functions; then just increment the minor version. # # See http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html # for information about library versioning. # # See http://www.gnu.org/software/gnulib/manual/html_node/LD-Version-Scripts.html # for details about the --version-script option. libopagent_la_LDFLAGS = -version-info 1:1:0 \ -Wl,--version-script=${top_srcdir}/libopagent/opagent_symbols.ver \ @OP_LDFLAGS@ oprofile-0.9.9/ChangeLog-20030000664000076400007640000051641512175510133012451 000000000000002003-12-29 Philippe Elie * configure.in: my_op_prefix is not necessarily suffixed by a '/' 2003-12-29 John Levon * configure.in: * doc/*.1.in: add HTML docs to SEE ALSO 2003-12-29 John Levon * doc/opcontrol.1.in: * doc/oprofile.xml: minor language cleanups * utils/opcontrol: only allow --verbose when it makes sense 2003-12-28 Philippe Elie * libutil++/tests/file_manip_tests.cpp: ensure filename passed to op_realpath() exists 2003-12-28 John Levon * doc/internals.xml: * libutil++/file_manip.h: fix typos 2003-12-16 Philippe Elie * utils/opcontrol: error message rewording 2003-12-16 Carlo Wood * libregex/tests/Makefile.am: avoid to install mangled-name test file 2003-11-20 John Levon * libregex/op_regex.cpp: move global ctor out of namespace anon (bug #845616) 2003-11-19 Philippe Elie * libpp/arrange_profiles.cpp: merge all unit mask before generating event description string 2003-11-17 Philippe Elie * libpp/arrange_profiles.cpp: put unitmask in the same axis as event:count, meaning than unitmask is now a part of the event specification. 2003-12-19 Philippe Elie * daemon/opd_sfile.c: we reversed to/from pc in call graph sample 2003-11-23 Philippe Elie * libpp/profile.h: * pp/opgprof.cpp: oops a simplify a bit too cg handling in my last patch, it was segfaulting each time no cg file was found... 2003-11-15 Philippe Elie * pp/opgprof.cpp: simplify a bit cg handling, we don't need to know if we retrieved some cg files since the profile_t will be empty in this case 2003-11-15 Philippe Elie * libpp/profile.h: iterator::vma() must return the full key not only an unsigned int. * pp/opgprof.cpp: implement merging of cg files. 2003-11-15 Philippe Elie * libpp/profile_spec.cpp: * libpp/profile_spec.h: * pp/opannotate_options.cpp: * pp/opgprof_options.cpp: * pp/opreport_options.cpp: filter call graph samples files 2003-11-14 Philippe Elie * daemon/opd_mangling.c: oops, it's better to really open the cg file * daemon/opd_sfile.c: * daemon/opd_stats.c: * daemon/opd_stats.h: * daemon/liblegacy/opd_24_stats.c: * daemon/liblegacy/opd_24_stats.h: * daemon/liblegacy/opd_proc.c: log sample lost due to sample file open failure 2003-11-15 Philippe Elie * daemon/liblegacy/opd_parse_proc.c: always provide an image name for parsed process in /proc 2003-11-15 Philippe Elie * doc/oprofile.xml: * libop/op_cpu_type.c: s/hammer/AMD64 processors/ for user visible name. 2003-11-13 John Levon * libutil/op_file.h: * libutil/op_file.c: remove op_c_dirname(), op_relative_to_absolute_path(), op_is_directory(), op_follow_link(), in favour of using realpath(3) * libutil/tests/file_tests.c: fixes for above changes * libutil++/file_manip.h: * libutil++/file_manip.cpp: changes from above. Add op_realpath(). * libutil++/tests/file_manip_tests.cpp: changes from above. * daemon/oprofiled.c: * daemon/liblegacy/opd_parse_proc.c: * gui/oprof_start_util.cpp: * libpp/locate_images.cpp: * libpp/profile_spec.cpp: * pp/opannotate.cpp: changes from above 2003-11-12 John Levon * configure.in: bump to 0.8cvs 2003-11-11 John Levon * configure.in: bump to 0.7.1 2003-11-11 Joseph VanAndel * daemon/liblegacy/init.c: fix #840046 (segfault when starting profiler with --no-vmlinux setup), this bug was present in 0.7.0. 2003-11-11 Philippe Elie * libpp/profile_spec.cpp: more precise error message * libutil++/tests/file_manip_tests.cpp: corner case test added for dirname 2003-11-11 Philippe Elie * libpp/arrange_profiles.cpp: report_error() shows only distinct conflicting name. 2003-11-10 Philippe Elie * doc/opcontrol.1.in: reverse kernel:user in event setting description. Fix #838968 2003-11-09 Philippe Elie * daemon/init.c: * daemon/liblegacy/init.c: move opd_read_fs_int ... * daemon/oprofiled.h: * daemon/oprofiled.c: here * daemon/liblegacy/opd_24_stats.c: dump kernel note buffer overflow and buffer overlow 2003-11-09 Philippe Elie * utils/op_help.c: do not use OP_MAX_COUNTERS but get counter number at runtime 2003-11-09 Philippe Elie * libutil++/tests/string_manip_tests.cpp: rtrim/ltrim/trim tests 2003-11-08 Philippe Elie * libop/tests/Makefile.am: * libop/tests/mangle_tests.c: new tests: sample filename mangling 2003-11-08 Philippe Elie * module/x86/op_syscalls.c: fix build with 2.2 kernel 2003-11-06 Philippe Elie * Makefile.am: use .PHONY for module goal to not statisfy this goal with the subdir named module * m4/findkernel.m4: minor fix. 2003-11-06 John Levon * Makefile.am: minor cleanup 2003-11-06 John Levon * gui/Makefile.am: remove unused -DKVERSION 2003-11-06 John Levon * configure.in: add --disable-werror and --disable-optimization * doc/oprofile.xml: document above. Remove docs for * --enable-gcov (only useful to developers) 2003-11-06 Philippe Elie * daemon/opd_kernel.c: * daemon/liblegacy/opd_kernel.c: be less paranoid about kernel range, this is slightly different than the patch Thomas Spatzier tested but it can't hurt (famous last words ...). This fixes s390x where kernel start can be zero and was rejected. 2003-11-06 Thomas Spatzier * daemon/opd_cookie.c: changed an #if defined for selecting right system call for IBM s390 or s390x, respectively 2003-11-04 Philippe Elie * libutil++/path_filter.cpp: remove 2 identical FIXME * libutil++/tests/file_manip_tests.cpp: * libutil++/tests/path_filter_tests.cpp: reflect the behavior by new tests 2003-11-04 Philippe Elie * libdb/db_manage.c: * libop/op_events.h: -pedantic fix 2003-11-04 Philippe Elie * daemon/opd_sfile.c: * daemon/liblegacy/opd_kernel.c: * libutil/op_cpufreq.c: * libutil/op_file.c: a few s/goto/break/ * libpp/format_output.cpp: padding never used after initialization 2003-11-04 Philippe Elie * libutil++/comma_list.h: don't accept cumulative behavior * libutil++/string_manip.cpp: separate_token() return by value * gui/oprof_start.cpp: * libopt++/popt_options.cpp: * libpp/parse_filename.cpp: * libpp/profile_spec.cpp: * libutil++/comma_list.h: * libutil++/string_filter.cpp: * libutil++/string_manip.cpp: * libutil++/string_manip.h: * libutil++/tests/comma_list_tests.cpp: * libutil++/tests/string_manip_tests.cpp: update according * libpp/profile_spec.cpp: remove all trace of defunct op_alias 2003-11-04 Philippe Elie * daemon/liblegacy/opd_image.c: * daemon/liblegacy/opd_image.h: * daemon/liblegacy/opd_mapping.c: * daemon/liblegacy/opd_mapping.h: * daemon/liblegacy/opd_proc.c: * gui/oprof_start.cpp: * gui/oprof_start.h: * gui/oprof_start_config.cpp: * gui/oprof_start_util.cpp: * libop/op_config_24.h: * libpp/format_output.cpp: * libpp/op_header.cpp: * libpp/profile.h: * libpp/profile_container.cpp: * libpp/profile_spec.cpp: * libpp/profile_spec.h: * libpp/symbol.h: * libpp/symbol_sort.cpp: * libutil++/stream_util.cpp: * libutil++/stream_util.h: * libutil++/utility.h: * pp/common_option.cpp: * pp/common_option.h: * pp/opannotate_options.h: * pp/opgprof.cpp: * pp/opgprof_options.cpp: * pp/opgprof_options.h: * pp/opreport_options.cpp: * pp/opreport_options.h: * pp/populate.cpp: remove some .h dependencies 2003-11-03 Philippe Elie * libutil++/tests/Makefile.am: * libutil++/tests/utility_tests.cpp: new test files convering most of utility.h and op_exception.h 2003-11-02 Philippe Elie * libpp/parse_filename.cpp: avoid repetitive vector::erase(v.begin()) * libregex/stl.pat.in: * libregex/tests/mangled-name.in: add (i|o)stream operator(>>|<<) 2003-11-02 Philippe Elie * daemon/liblegacy/opd_image.h: * daemon/liblegacy/opd_image.c: * daemon/liblegacy/opd_proc.c: * daemon/liblegacy/opd_sample_files.c: sparse sample file array allocated by line. 2003-11-02 Philippe Elie * libutil++/glob_filter.h: * libutil++/path_filter.h: * libutil++/string_filter.h: comment fix to match implementation * libutil++/tests/path_filter_tests.cpp: new file test * libutil++/tests/Makefile.am: upate build * libutil++/tests/string_filter_tests.cpp: test white space at start of pattern 2003-11-02 Philippe Elie * libutil++/string_manip.cpp: format_double can only format percent * libutil++/string_manip.h: * libpp/format_output.cpp: * libutil++/tests/string_manip_tests.cpp: * pp/opannotate.cpp: * pp/opreport.cpp: s/format_double/format_percent/ 2003-11-02 Philippe Elie * libutil++/glob_filter.h: * libutil++/string_filter.h: * libutil++/tests/string_filter_tests.cpp: minor tidy * libutil++/tests/glob_filter_tests.cpp: new file * libutil++/tests/Makefile.am: update build 2003-11-01 Philippe Elie * libpp/arrange_profiles.cpp: typo * libutil++/generic_spec.cpp: removed file * libutil++/Makefile.am: update according * libutil++/generic_spec.h: ensure generic_spec will not link * libutil++/path_filter.cpp: minor tidy 2003-11-01 Philippe Elie * libutil++/tests/string_manip_tests.cpp: ehance output on failure * module/oprofile.h: * module/oprofile.c: two new read-only sysctl: nr_buffer_overflow and nr_note_buffer_overflow 2003-11-01 Philippe Elie * libutil++/tests/Makefile.am: * libutil++/tests/file_manip_tests.cpp: don't use getcwd nor __FILE__ but ${topdir} and hard coded filename 2003-11-01 John Levon * daemon/liblegacy/opd_parse_proc.c: use op_follow_link * libutil/op_file.c: * libutil/op_file.h: make op_get_link() static, rename op_basename to op_c_basename * libutil++/file_manip.cpp: * libutil++/file_manip.h: rename to op_basename()/op_dirname(). Use op_follow_link() for follow_link(). * libutil++/tests/file_manip_tests.cpp: * gui/oprof_start_util.cpp: * libpp/locate_images.cpp: * libpp/name_storage.cpp: * libutil++/path_filter.cpp: * pp/opannotate.cpp: * pp/opreport.cpp: fixup from above changes 2003-11-01 Philippe Elie * libutil++/op_bfd.h: has_debug_info() new member * pp/populate.h: * pp/populate.cpp: * pp/opannotate.cpp: use it to error out when --assembly is not requested and no debug information exists 2003-10-31 Philippe Elie * pp/common_option.cpp: don't exit() if merge_by.lib is set through !allow_lib 2003-10-31 Philippe Elie * pp/opreport_options.cpp: move handle_merge_option() ... * pp/common_option.h: * pp/common_option.cpp: here * pp/opannotate_options.cpp: use it but disallow --merge=lib 2003-10-31 Philippe Elie * libutil/op_file.c: * libutil/op_file.h: implement dirname(), is_directory() and op_follow_link() * daemon/oprofiled.c: follow symlink for image filter * libutil++/file_manip.cpp: * libutil++/file_manip.h: * gui/oprof_start_util.cpp: * libpp/profile_spec.cpp: rename op_follow_link() to follow_link() 2003-10-31 Philippe Elie * libutil/tests/file_tests.c: "//usr" --> "//usr" * libutil++/tests/.cvsignore: * libutil++/tests/Makefile.am: * libutil++/tests/file_manip_tests.cpp: new tests file. 2003-10-31 John Levon * daemon/opd_perfmon.c: fix compilation 2003-10-30 John Levon * libpp/profile_spec.cpp: introduce a helper function to make the comma_list matching clear 2003-10-30 Philippe Elie * libutil++/comma_list.h: is_set() new member * libpp/profile_spec.cpp: fix matching logic for cpu/tid/tgid 2003-10-30 John Levon * libutil++/generic_spec.h: add value() and is_set(), remove bool parameter from T value match() (it was never set to true) * libutil++/comma_list.h: do not accept generic_spec, the behaviour was to implicitly not match an "all" generic_spec. Instead: * libpp/profile_spec.cpp: encode the matching behaviour explicitly, and add a comment. * libutil++/tests/comma_list_tests.cpp: fix to match the above 2003-10-30 John Levon * Makefile.am: re-order build subdirs * libabi/Makefile.am: only build abitest on make check * pp/Makefile.am: pp_common not pp_commons 2003-10-30 John Levon * libutil++/tests/Makefile.am: * libutil++/tests/comma_list_tests.cpp: Add. 2003-10-30 John Levon * doc/Makefile.am: improve chunk rules 2003-10-30 John Levon * libutil++/tests/Makefile.am: * libutil++/tests/string_filter_tests.cpp: Add. * libutil++/tests/string_manip_tests.cpp: fix header include 2003-10-30 John Levon * libutil++/tests/string_manip_tests.cpp: fix tobool test ("33" is not castable to bool) 2003-10-30 Philippe Elie * libutil++/string_manip.cpp: * libutil++/string_manip.h: remove tostr()/tobool/touint(), rename lexical_cast_no_ws<> to op_lexical_cast<> * gui/oprof_start.cpp: * gui/oprof_start_config.cpp: * libpp/arrange_profiles.cpp: * libpp/filename_spec.cpp: * libpp/op_header.cpp: * libutil++/comma_list.h: * libutil++/generic_spec.h: * libutil++/tests/string_manip_tests.cpp: use op_lexical_cast<> 2003-10-29 John Levon * pp/common_option.h: use std namespace 2003-10-28 Jason Lunz * doc/oprofile.1.in: document cpu,tid,tgid in profile spec 2003-10-29 Philippe Elie * libpp/profile_spec.cpp: error out for all tag:value specified more than once. 2003-10-29 Philippe Elie * doc/opannotate.1.in: * doc/opreport.1.in: * doc/oprofile.xml: * libregex/demangle_symbol.cpp: * libregex/demangle_symbol.h: * pp/common_option.cpp: * pp/common_option.h: * pp/opannotate_options.cpp: * pp/opannotate_options.h: * pp/opreport_options.cpp: * pp/opreport_options.h: remove --no-demangle, --smart-demangle and --demangle, replace them with --demangle=none|smart|normal 2003-10-29 Philippe Elie * libutil++/tests: new directory * libutil++/tests/string_manip_tests.cpp: new tests file * configure.in: * libutil++/Makefile.am: * libutil++/tests/.cvsignore: * libutil++/tests/Makefile.am: handle new test * libutil++/string_manip.h: * libutil++/string_manip.cpp: correct implementation of separate_token to match the documentation * daemon/liblegacy/opd_image.c: fix comment 2003-10-28 Philippe Elie * libpp/count_array.cpp: * libpp/count_array.h: * libpp/locate_images.h: * libpp/parse_filename.cpp: * libpp/profile.cpp: * libpp/profile.h: * libpp/profile_spec.cpp: * libpp/symbol_sort.cpp: minor tidy 2003-10-28 Jason Lunz * doc/opcontrol.1.in: better wording for --separate= * doc/oprofile.1.in: typo 2003-10-28 Philippe Elie * daemon/liblegacy/init.c: * daemon/liblegacy/opd_24_stats.c: * daemon/liblegacy/opd_24_stats.h: * daemon/liblegacy/opd_image.c: * daemon/liblegacy/opd_image.h: * daemon/liblegacy/opd_kernel.c: * daemon/liblegacy/opd_kernel.h: * daemon/liblegacy/opd_mapping.c: * daemon/liblegacy/opd_mapping.h: * daemon/liblegacy/opd_parse_proc.c: * daemon/liblegacy/opd_parse_proc.h: * daemon/liblegacy/opd_proc.c: * daemon/liblegacy/opd_proc.h: * daemon/liblegacy/opd_sample_files.c: * daemon/liblegacy/opd_sample_files.h: move doygen comment from *.c to *.h. Add some doxygen comment. 2003-10-27 Philippe Elie * daemon/liblegacy/opd_24_stats.c: * daemon/liblegacy/opd_image.h: * daemon/liblegacy/opd_image.h: nr_images static 2003-10-27 John Levon * doc/opcontrol.1.in: document --image= * doc/oprofile.xml: * utils/opcontrol: make user specify "--image=all" to reset. Clean up help message. Ensure note table size is given a value. Add '-t' for '--stop', and '-i' for '--image'. 2003-10-27 John Levon * doc/oprofile.xml: document opcontrol --image= 2003-10-27 John Levon * daemon/opd_events.h: * daemon/opd_events.c: move code for handling event descriptions here, and share find_counter_event(), plus fill_header() * daemon/opd_mangling.c: * daemon/opd_perfmon.c: * daemon/oprofiled.c: * daemon/oprofiled.h: * daemon/liblegacy/opd_proc.c: * daemon/liblegacy/opd_sample_files.c: changes from above 2003-10-27 John Levon * daemon/oprofiled.c: fix help text * daemon/liblegacy/init.c: * daemon/liblegacy/opd_proc.h: * daemon/liblegacy/opd_proc.c: clean up headers a bit 2003-10-27 Philippe Elie * gui/oprof_start.cpp: check we can get kernel interface 2003-10-27 John Levon * daemon/liblegacy/Makefile.am: remove unneeded -I for abi 2003-10-27 John Levon * daemon/init.c: * daemon/opd_perfmon.c: move timer interrupt checks into perfmon 2003-10-27 John Levon * daemon/oprofiled.c: use op_get_interface() * libop/op_get_interface.c: simplify 2003-10-26 Philippe Elie * gui/ui/oprof_start.base.ui: * gui/oprof_start.cpp: * gui/oprof_start.h: check separate_lib checkbox when separate_kernel_cb is checked 2003-10-26 Philippe Elie * utils/opcontrol: allow to reset --image through empty --image= or --image 2003-10-26 John Levon * daemon/opd_cookie.c: reduce the hash table size somewhat * various: fixes for doxygen 2003-10-26 John Levon * HACKING: * configure.in: * Makefile.am: * dae/: move all of 2.4 daemon code to ... * daemon/liblegacy/: here * daemon/Makefile.am: * daemon/opd_util.h: * daemon/opd_util.c: move to ... * daemon/oprofiled.h: * daemon/oprofiled.c: here, and call the right operations depending upon oprofile kernel version. * daemon/init.c: * daemon/liblegacy/init.c: init and running for each version 2003-10-26 John Levon * daemon/opd_cookie.c: make sure to create the cookie for the ignore value if it's not found * daemon/opd_sfile.c: simplify ignored logic 2003-10-26 John Levon * doc/internals.xml: * doc/buffers.png: add a diagram 2003-10-26 Philippe Elie implement image filtering: * dae/opd_image.h: add a field filtered * dae/opd_image.c: set it at image creation * dae/opd_proc.c: don't record sample when !image->filtered * daemon/opd_cookie.h: add a field filtered * daemon/opd_cookie.c: set it a cookie_entry creation. * daemon/opd_sfile.h: add a field filtered * daemon/opd_file.c: set it a opd_sfile struct creation * daemon/opd_trans.c: record sample if filtered * daemon/opd_util.h: export opd_hash_name(), is_image_filtered() * daemon/opd_util.c: implement --image=xxx * oprofiled.c: #include "config.h" not <> * utils/opcontrol: handle --image 2003-10-26 John Levon * doc/oprofile.xml: remove some outdated stuff 2003-10-25 John Levon * doc/internals.xml: more docs 2003-10-25 John Levon * daemon/opd_perfmon.c: cleanups 2003-10-24 John Levon * doc/internals.xml: write some more 2003-10-23 John Levon * configure.in: bump to 0.7.1cvs 2003-10-22 John Levon * libop/tests/Makefile.am: * libop/tests/load_events_files_tests.c: * libop/tests/alloc_counter_tests.c: fix make distcheck * configure.in: bump to 0.7 2003-10-22 John Levon * daemon/Makefile.am: * daemon/opd_perfmon.h: * daemon/opd_perfmon.c: re-enable. Wait for children. More safety checking. * daemon/oprofiled.c: only use perfmon if !timer 2003-10-20 Philippe Elie * doc/oprofile.xml: * doc/oprofile.1.in: s/physical CPU/CPU/ 2003-10-20 John Levon * daemon/Makefile.am: * daemon/opd_perfmon.h: disable perfmon nicely * gui/oprof_start.cpp: * gui/oprof_start_config.h: * gui/oprof_start_config.cpp: * gui/ui/oprof_start.base.ui: Fix reading of separate parameters. Add CPU and thread separation 2003-10-20 Philippe Elie * libpp/profile_spec.cpp: relative path are relative to current dir not filename. 2003-10-20 John Levon * doc/oprofile.xml: * doc/opreport.1.in: fix --merge docs and profile specs 2003-10-20 John Levon * dae/opd_sample_files.c: * daemon/opd_mangling.c: * libabi/abi.cpp: * libabi/abi_test.cpp: * libabi/op_import.cpp: * libop/op_config.h: * libop/op_sample_file.h: * libpp/op_header.cpp: remove ctr and separate_* from header. Re-arrange it a little, and make it 64 bytes on ILP32. Bump the version. 2003-10-20 John Levon * libpp/arrange_profiles.cpp: rework the clashing-axes error message to be nicer to the user 2003-10-20 John Levon * libpp/arrange_profiles.cpp: if tid == tgid for every profile class, allow axes of both TID and TGID - there is no actual difference, only theoretical 2003-10-20 Philippe Elie * dae/oprofiled.c: correct an error message * libop/op_alloc_counter.h: remove bogus FIXME * libutil++/child_reader.cpp: avoid quadratic behaviour if child does a lot of output in stderr * libpp/opgprof.cpp: fix comment 2003-10-19 Philippe Elie * gui/oprof_start.cpp: redundant return 2003-10-19 John Levon * libop/op_events.c: move to a fixed value for the default event count value 2003-10-19 Philippe Elie remove some FIXME: * libpp/format_output.h: remove first_output bool member * libpp/format_output.cpp: call output_header from the right place * libpp/op_header.h: remove bogus FIXME * libregex/tests/Makefile.am: fix dependencies on mangled-name file, fix make dist * libregex/tests/mangled-name.in: simplify a bit and remove a bogus FIXME * libregex/tests/regex_test.cpp: fix comment * module/ia64/op_syscalls.c: * module/x86/hammer_op_syscalls.c: * module/x86/op_syscalls.c: remove some FIXME 2003-10-17 Philippe Elie * libpp/arrange_profiles.cpp: clarify suggestion. * pp/opreport_options.cpp: update options help string for --merge. * libpp/profile_container.cpp: * libpp/profile_spec.cpp: * pp/common_option.cpp: * pp/populate.cpp: ';' are not necessary to end namespace 2003-10-17 Philippe Elie * libpp/arrange_profiles.cpp: use a set instead of a vector<...> to replace a O(N*M) by a O(N*log(M)) behavior. (N number of samples files, M number of class). 2003-10-17 Philippe Elie * libutil++/op_bfd.cpp: show filename when warning about no debug information available. get_linenr(): s/filename/source_filename/ 2003-10-16 Philippe Elie * events/ia64/itanium/events: counter 0,1 not 2,3 for IA64_INST_RETIRED * daemon/opd_util.c: opd_parse_events() fix use after free. 2003-10-16 John Levon * daemon/opd_perfmon.c: disable the code 2003-10-15 John Levon * daemon/opd_perfmon.c: fflushes to improve order of debug log 2003-10-15 John Levon * daemon/opd_perfmon.c: fix dumb allocation typo; handle signals correctly; wait for children to come up before returning 2003-10-15 Philippe Elie * dae/opd_sample_files.c: * daemon/opd_mangling.c: * daemon/opd_perfmon.c: * daemon/opd_util.c: check we not overflow op_nr_counters 2003-10-15 Philippe Elie * events/ia64/itanium/events: correct counter available according to intel doc. 2003-10-15 John Levon * dae/opd_image.c: * dae/opd_kernel.c: * dae/opd_proc.c: * dae/opd_sample_files.c: * dae/oprofiled.c: * daemon/opd_kernel.c: * daemon/opd_mangling.c: * daemon/opd_sfile.c: * daemon/opd_trans.c: * daemon/opd_util.c: * daemon/opd_util.h: * daemon/oprofiled.c: merge the options handling for dae and daemon 2003-10-15 Philippe Elie * daemon/opd_perfmon.c: * module/ia64/op_pmu.c: bit mask for event select field is 8 bits not 7 2003-10-14 John Levon * configure.in: * m4/findkernel.m4: * utils/opcontrol: 2.5 refs -> 2.6 2003-10-14 John Levon * utils/opcontrol: merge some 2.4/6 code 2003-10-14 John Levon * dae/opd_image.c: * dae/opd_sample_files.c: * dae/oprofiled.c: * utils/opcontrol: use --events for 2.4 daemon too * daemon/opd_perfmon.c: * daemon/opd_mangling.c: fix counter numbering on !perfmon 2003-10-14 John Levon * configure.in: xmemdup not xmemdump 2003-10-14 John Levon * daemon/opd_perfmon.c: propagate a SIGTERM up to the parent. 2003-10-14 John Levon * m4/perfmon.m4: * configure.in: remove pfmlib checks * daemon/opd_util.h: * daemon/opd_util.c: * daemon/opd_mangling.c: * daemon/oprofiled.c: parse more detailed events passed on command line * daemon/opd_perfmon.h: * daemon/opd_perfmon.c: don't use libpfm at all, do it ourselves. * utils/opcontrol: pass more of the events info to the daemon 2003-10-14 John Levon * m4/perfmon.m4: * configure.in: look for pfmlib 3 * daemon/Makefile.am: * daemon/opd_perfmon.h: * daemon/opd_perfmon.c: interface to perfmon on 2.6 IA64 * daemon/opd_mangling.c: * daemon/oprofiled.c: read event descriptions from command line not oprofilefs * daemon/opd_util.h: * daemon/opd_util.c: receive SIGUSR1/2 for perfmon * utils/opcontrol: handle multiple oprofileds. Send SIGUSR1/2 on start/stop. Pass in events list to oprofiled on 2.6. Don't attempt to fill in oprofilefs with event info if using perfmon. 2003-10-14 Philippe Elie * daemon/opd_mangling.c: * daemon/opd_sfile.c: * daemon/opd_sfile.h: protect the sfile we are acting on to be freed by sfile_lru_clear() * libdb/db_manage.c: * libdb/odb_hash.h: Do not put hash->descr in an inconsistent state when a failure occur. 2003-10-13 Philippe Elie * module/oprofile.c: don't restore syscall and stop counter twice 2003-10-13 Will Cohen * libop/op_parse_event.c(parse_events): Correct fprintf. 2003-10-13 Philippe Elie * module/x86/hammer_op_syscalls.c: pass tgid to daemon. Not tested! 2003-10-12 John Levon * utils/opcontrol: share --separate-cpu/thread code now 2003-10-12 Philippe Elie * configure.in: add libregex/tests/mangled-name.in * libregex/tests/mangled-name.txt: move ... * libregex/tests/mangled-name.in: here, tune to support different arch * libregex/tests/Makefile.am: s/mangled-name.txt/mangled-name.in * libregex/stl.pat.in: fix iterator<... ptrdiff_t> * libregex/tests/Makefile.am: update according to filename change * libregex/tests/regex_test.cpp: really fails on exception. 2003-10-12 Philippe Elie * dae/oprofiled.c: don't set cpu_number when !--separate=cpu * libop/tests/alloc_counter_tests.c: printf format for 64 bits arch * libop/tests/cpu_type_tests.c: #include * libop/tests/parse_event_tests.c: #include 2003-10-11 Philippe Elie * libop/op_interface.h: struct op_sample: remove packed attribute 2003-10-11 Philippe Elie * dae/opd_image.c: * dae/opd_image.h: reference count opd_image. Remove modification time checking. Remove hash field. Tidy * dae/opd_kernel.c: pass tid, tgid to op_get_kernel_image() * dae/opd_mapping.c: * dae/opd_mapping.h: use module hash code for image name to index a cache of name, this hash code is no longer used elsewhere. When killing map delete associated image, reference count of image will check for a real delete. * dae/opd_parse_proc.c: get tgid from /proc/pid/status * dae/opd_proc.c: create an opd_proc by process when separate_thread == true. Tidy by adding an opd_for_each_proc() * dae/opd_proc.h: add tid/tgid to opd_proc struct * dae/opd_sample_files.c: * dae/opd_sample_files.h: lru all samples files, allowing to cleanup a part of the lru if we go out of resource. Remove opd_handle_old_sample_files() since we no longer check for image modification time. * dae/opd_stats.c: * dae/opd_stats.h: statistics for opd_image struct depth search * dae/oprofiled.c: add --separate-cpu and --separate-thread * libop/op_interface.h: add tgid to samples struct passed from module to daemon. * module/compat22.h: * module/compat24.h: op_get_tgid() return tgid, fall back to return tid on 2.2 kernel. * module/oprofile.c: * module/ia64/op_syscalls.c: pass tgid to daemon. NOT TESTED but I think it's ok. Note than even if it's broken ia64 should work w/o --separate=thread * module/x86/op_syscalls.c: pass tgid to daemon. * utils/opcontrol: enable 2.4 thread/cpu separation * libdb/tests/db_test.c: verbose on when we provide filename of db file to test on command line. 2003-10-11 Philippe Elie * libop/op_cpu_type.h: * libop/op_cpu_type.c: constification * utils/op_help.c: check only if CPU_NO_GOOD not range * libutil/tests/Makefile.am: * libregex/tests/Makefile.am: * libdb/tests/Makefile.am: s/TEST = (.*)/TESTS = ${check_PROGRAMS}/ * libop/tests/alloc_counter_tests.c: comment fix * libop/tests/Makefile.am: * libop/tests/cpu_type_tests.c: new file, test libop/op_cpu_type.c 2003-10-10 Will Cohen * libop/op_cpu_type.h (op_get_cpu_number): Clarify comment. * libop/op_cpu_type.c (op_get_cpu_number): Check number. * utils/op_help.c (main): Make check with CPU_NO_GOOD. 2003-10-10 Will Cohen * libop/op_cpu_type.h (op_get_cpu_number): Declare. * libop/op_cpu_type.c (op_get_cpu_number): New. (op_get_cpu_type): Use op_get_cpu_number. * utils/op_help.c (main): Use op_get_cpu_number. 2003-10-10 John Levon * libop/op_parse_event.c: fix compile for IA64 2003-10-09 John Levon * doc/oprofile.xml: document "no results" and how to fix it 2003-10-08 John Levon * utils/op_help.c: standardise name * gui/oprof_start.cpp: Qt 2.3.1 compile fix (bug 819943) 2003-10-07 Philippe Elie * dae/opd_kernel.c: memory leak * dae/opd_mapping.c: * dae/opd_mapping.h: * dae/opd_parse_proc.c: * dae/opd_proc.c: * dae/opd_proc.h: use a list of struct opd_map instead of an array, remove last_map optimization. * dae/oprofiled.c: memory leak * libutil/op_cpufreq.c: memory leak, FILE* leak * libutil/op_list.h: fix @author 2003-10-06 Philippe Elie * dae/oprofiled.c: * dae/opd_proc.h: * dae/opd_proc.c: use struct list_head to chain opd_proc struct in hash table * utils/op_help.c: comment fix 2003-10-06 John Levon * utils/opcontrol: work around 2.6 daemon's signal handling race that could cause it to hang during a --shutdown 2003-10-05 Philippe Elie * events/i386/p4/events: * events/i386/p4-ht/events: put GLOBAL_POWER_EVENTS on top * events/i386/pii/unit_masks: * events/i386/piii/unit_masks: typo in help string * utils/op_help.c: show "counter: all" instead an enumeration of all counter 2003-10-02 Philippe Elie * events/*.events *.unit_masks: move these files to subdir named arch/processor_name/events and arch/processor_name/unit_masks * events/Makefile.am: update according * libop/op_events.c: now it's safe to allow loading events file from a directory provided through environment var OPROFILE_EVENTS_FILE_DIR * libop/tests/alloc_counter_tests.c: use it * libop/tests/load_events_files_tests.c: use it 2003-10-02 Philippe Elie * libop/op_events.c: revert last commit (allowed to find events files description directory in alternate directory) * libop/tests/Makefile.am: * libop/tests/load_events_files_tests.c: new files. Validate events description file by loading them. * libutil/op_cpufreq.c: comment why we don't have any code handling s390 2003-10-01 Philippe Elie * configure.in: * libop/Makefile.am: new subdir * libop/op_events.c: allow to retrieve events file dir through environment variable * utils/op_help.c: move parse_events() and parsed_event struct to ... * libop/op_parse_event.h: * libop/op_parse_event.c: these new files * libop/tests/Makefile.am: new tests subdir * libop/tests/alloc_counter_tests.c: events mapping to counter nr tests * libop/tests/parse_event_tests.c: event parsing tests 2003-10-01 Philippe Elie * libop/op_alloc_counter.c: add forward declaration * libop/op_alloc_counter.c: alloc counter in increasing number order, it's less surprising. 2003-10-01 Philippe Elie * libdb/tests/db_test.c: if previous tests fails a corrupted samples file can exist in test dir and will be re-used, remove() it. 2003-10-01 John Levon * daemon/opd_sfile.c: * libabi/op_import.cpp: * libop/op_interface.h: * libpp/locate_images.h: small cleanups * pp/opreport_options.cpp: don't complain about "-x -m all" 2003-09-28 Philippe Elie * libutil/op_file.c: * libutil/tests/file_tests.c: honor posix "//" filename namespace 2003-09-28 Philippe Elie * libop/op_alloc_counter.h: * libop/op_alloc_counter.c: change allocator by a backtracking algorithm walking only through possible solution. 2003-09-26 Philippe Elie * libdb/tests/db_test.c: success must be silent * dae/oprofiled.c: * daemon/oprofiled.c: * libutil/op_deviceio.c: * libutil/op_deviceio.h: op_open_device(): remove unused parameter fatal 2003-09-26 Philippe Elie * libutil/tests/file_tests.c: Fix some test: in some case the pathname component must be valid since we lstat() them. Fix a segfault due to missing ',' 2003-09-26 John Levon * libdb/tests/Makefile.am: * libregex/tests/Makefile.am: * libutil/tests/Makefile.am: don't build tests unless "make check" 2003-09-26 John Levon * libutil/op_file.c: don't test for NULL path passed in, we want to crash here instead of in xstrdup * configure.in: * libutil/Makefile.am: * libutil/tests/Makefile.am: * libutil/tests/file_tests.c: * libutil/tests/string_tests.c: add some unit tests for libutil string and path handling 2003-09-26 Philippe Elie * libdb/db_debug.c: remove useless display interface * libdb/db_db_travel.c: remove callback interface * libdb/odb_hash.h: remove display/callback interface * libdb/db_test.cpp: move to tests subdir * libdb/Makefile.am: update according * libdb/tests: new dir * libdb/tests/.cvsignore: * libdb/tests/Makefile.am: new files * libdb/tests/db_test.cpp: shorter tests * libregex/mangled-name.txt: * libregex/regex_testc.cpp: move to ... * libregex/tests: new directory * libdb/Makefile.am: update according * libregex/tests/.cvsignore: * libregex/tests/Makefile.am: new files 2003-09-26 John Levon * libabi/abi_test.cpp: * libabi/op_import.cpp: small cleanups 2003-09-25 John Levon * daemon/opd_cookie.c: * daemon/opd_kernel.c: * daemon/opd_sfile.c: * daemon/opd_trans.c: * daemon/oprofiled.c: trivial cleanups 2003-09-25 Marc Herbert * configure.in: fix prefix stuff to allow stow to work 2003-09-25 Philippe Elie * pch-c++.h: remove * Makefile.am: update according * configure.in: no longer need for conditional enable_pch * m4/precompiledheader.m4: don't use -Winvalid-pch 2003-09-25 Philippe Elie * daemon/opd_sfile.c: sfile_lru_clear() return 0 if lru is empty * daemon/opd_mangling.c: abort() if lru was empty (not tested) * daemon/oprofiled.c: likewise; opd_alarm(): don't sfile_lru_clear() * utils/op_help.c: * daemon/opd_sfile.h: * daemon/opd_cookie.h: s/()/(void)/ in some function prototype and definition * daemon/opd_cookie.c: s/"not looked up"/"not hashed"/ 2003-09-25 John Levon * daemon/oprofiled.c: push rlimit down back to 2048. This gives a running RSS of about 10Mb when thread profiling on my box, which seems reasonable (at 8192 it was hitting 40Mb) 2003-09-25 Philippe Elie * doc/oprofile.xml: clarify what means a configured kernel. 2003-09-25 John Levon * daemon/opd_sfile.c: bump LRU_AMOUNT to 1000 2003-09-24 John Levon * doc/opcontrol.1.in: * doc/oprofile.xml: document thread and cpu profiling a bit * daemon/opd_mangling.c: * daemon/opd_sfile.c: * daemon/oprofiled.c: * utils/opcontrol: implement per-CPU profiling, not tested yet 2003-09-24 John Levon * dae/opd_proc.c: * dae/opd_sample_files.c: * daemon/opd_mangling.c: * daemon/opd_sfile.c: * libabi/abi_test.cpp: * libabi/op_import.cpp: * libdb/db_insert.c: * libdb/db_manage.c: * libdb/db_test.c: * libdb/odb_hash.h: * libpp/op_header.cpp: * libpp/profile.cpp: remove samples_odb_t.err_msg entirely - prefer UNIX-style errno returns. Modify error messages to match 2003-09-24 John Levon * dae/opd_sample_files.c: * daemon/opd_sample_files.c: * libpp/op_header.cpp: * libpp/profile.cpp: * libabi/abi_test.cpp: * libabi/op_import.cpp: * libdb/db_test.c: * libdb/odb_hash.h: * libdb/odb_manage.c: make odb_open return errno instead of EXIT_FAILURE/SUCCESS to allow EMFILE handling. Also do not leak fd's on failure. * libutil/op_types.h: cookie_t moved into daemon/ * daemon/: major rewrite: move to a hash on all parameters of struct transient. Lots of readability cleanups, plus resistance to cookie lookup failures, and hitting open file limits. Additionally thread profiling for kernel threads is enabled now. 2003-09-24 John Levon * daemon/opd_image.c: remove support for missing CTX_TGID 2003-09-24 John Levon * daemon/oprofiled.c: remove /proc/kcore support 2003-09-22 Philippe Elie * dae/opd_parse_proc.c: both op_file.h and op_fileio.h are needed 2003-09-22 John Levon * doc/CodingStyle: document doxygen placing rule * libop/op_alloc_counter.h: * libop/op_get_interface.c: * libutil++/file_manip.cpp: * libutil++/file_manip.h: * libutil++/op_bfd.cpp: * libutil++/op_bfd.h: * libutil/op_deviceio.c: * libutil/op_deviceio.h: * libutil/op_get_time.c: * libutil/op_get_time.h: * libutil/op_libiberty.c: * libutil/op_libiberty.h: * libutil/op_lockfile.c: * libutil/op_lockfile.h: * libutil/op_popt.c: * libutil/op_popt.h: follow the above * libutil/op_file.c: * libutil/op_file.h: * libutil/op_fileio.c: * libutil/op_fileio.h: * dae/opd_parse_proc.c: * libutil++/string_manip.cpp: move op_get_link to op_file 2003-09-22 John Levon * libutil/op_fileio.h: * libutil/op_fileio.c: warn about op_get_link() restrictions * libutil++/file_manip.h: * libutil++/file_manip.cpp: s/op_read_link/op_follow_link, and behaviour change to match * libpp/profile_spec.cpp: * gui/oprof_start_util.cpp: use op_follow_link 2003-09-22 Philippe Elie * dae/makefile.am: missing AM_CFLAGS setting * dae/oprofiled.c: * daemon/oprofiled.c: handle signal in read loop * daemon/opd_util.h: * daemon/opd_util.c: move opd_setup_signal() from dae/ daemon/ 2003-09-22 John Levon * dae/oprofiled.c: * daemon/oprofiled.c: mask SIGTERM too to prevent the possibility of empty sample files 2003-09-21 Philippe Elie * libpp/format_output.h: * libpp/format_output.cpp: * pp/opreport.cpp: format_output::show_header no hide_header 2003-09-21 Philippe Elie * doc/opreport.1.in: * doc/oprofile.xml: * libpp/format_output.h: * libpp/format_output.cpp: * pp/opreport.cpp: --global_percent must be effective for detailed output too 2003-09-21 John Levon * pp/opreport_options.cpp: prevent --global-percent when appropriate 2003-09-21 John Levon * Makefile.am: back out broken make clean change 2003-09-21 John Levon * Makefile.am: make clean now removes *.html * internals.xml: add some outline sections 2003-09-21 John Levon * doc/internals.xml: provide a short overview and start a glossary * libpp/count_array.h: * libpp/format_output.cpp: * libpp/format_output.h: * libpp/profile.cpp: * libpp/profile.h: * libpp/profile_container.cpp: * libpp/profile_container.h: * pp/opreport.cpp: replace residual references to count groups with profile class concept 2003-09-21 John Levon * doc/Makefile.am: * doc/internals.xml: start an internals manual ... 2003-09-19 John Levon * pp/image_errors.cpp: missing include 2003-09-19 John Levon * libopt++/popt_options.h: * libopt++/popt_options.cpp: remove additional_help stuff, unused for some time 2003-09-18 John Levon * libutil++/Makefile.am: * libutil++/image_flags.h: move to ... * libpp/Makefile.am: * libpp/image_error.h: ... here, and rename * libutil++/op_bfd.h: * libutil++/op_bfd.cpp: take an in-out bool instead of image_flags * libpp/arrange_profiles.cpp: * libpp/arrange_profiles.h: * libpp/locate_images.cpp: * libpp/locate_images.h: * libpp/profile_spec.cpp: * pp/image_errors.cpp: * pp/opgprof.cpp: * pp/populate.cpp: changes from above 2003-09-18 John Levon * libutil++/Makefile.am: * libutil++/image_flags.h: flags for image read failure * libpp/profile_spec.cpp: * libpp/locate_images.h: * libpp/locate_images.cpp: * libpp/arrange_profiles.h: * libpp/arrange_profiles.cpp: use image_flags * libutil++/op_bfd.h: * libutil++/op_bfd.cpp: use image_flags, no longer error out on format failure * pp/Makefile.am: * pp/image_errors.cpp: * pp/image_errors.h: errors previously reported in locate_images are now reported here by the client * pp/opannotate.cpp: * pp/opgprof.cpp: * pp/opgprof_options.cpp: * pp/opreport.cpp: * pp/populate.h: * pp/populate.cpp: use the above 2003-09-18 Philippe Elie * libpp/format_output.cpp: use 9 not 12 for % field width * libutil++/string_manip.cpp: shrink 100.0000 to 100.000 * pp/opreport.cpp: s/" "/' ' 2003-09-18 John Levon * pp/opannotate_options.cpp: * pp/opreport_options.cpp: clean up error messages * pp/opgprof_options.h: * pp/opgprof_options.cpp: * pp/opgprof.cpp: use inverted_profile API 2003-09-18 Philippe Elie * utils/opcontrol: overwrite all current settings with --separate, this change behavior of --separate=kernel,library now we really setup both in this case. 2003-09-18 John Levon * libpp/locate_images.cpp: rewrite a little * libutil++/op_bfd.cpp: set fsize to default to -1, for fake artificial symbol 2003-09-18 Philippe Elie * libpp/locate_images.h: * libpp/locate_images.cpp: find_module_path() extra bool parameter to know if we fail to retrieve the image. * libpp/arrange_profiles.h: * libpp/arrange_profiles.cpp: use it and save this bool in inverted_profile struct * libpp/profile_spec.cpp: update caller according * libutil++/op_bfd.h: * libutil++/op_bfd.cpp: use the above change to create fake op_bfd * pp/opgprof_options.cpp: * pp/opgprof.cpp: update caller but never allow fake op_bfd * pp/populate.cpp: allow to create fake op_bfd 2003-09-18 John Levon * dae/opd_image.c: * dae/opd_proc.c: * dae/opd_sample_files.c: * dae/oprofiled.c: * daemon/opd_image.c: * daemon/opd_image.h: * daemon/opd_kernel.c: * daemon/opd_sample_files.c: * daemon/oprofiled.c: * gui/oprof_start.cpp: * gui/oprof_start_config.cpp: * gui/oprof_start_config.h: * gui/ui/oprof_start.base.ui: * libabi/abi.cpp: * libabi/abi_test.cpp: * libabi/op_import.cpp: * libop/op_sample_file.h: * libpp/op_header.cpp: * utils/opcontrol: renamings of separate stuff 2003-09-17 Philippe Elie * dae/opd_kernel.c: thinko in opd_get_module_info(): we must take care to re-use a previously created module not to create a new 2003-09-17 John Levon * daemon/opd_kernel.c: logging improvements 2003-09-17 Philippe Elie * dae/opd_kernel.c: * daemon/opd_kernel.c: fix use after free of module 2003-09-17 John Levon * daemon/opd_image.c: fix thread profiling when --separate-library=0 2003-09-17 Philippe Elie * dae/opd_kernel.c: add module to list of module ... * daemon/opd_kernel.c: s/print/verbprintf 2003-09-17 Philippe Elie * libop/op_config.h: remove OPD_MAX_MODULEs * dae/opd_kernel.c: * daemon/opd_kernel.c: remove fixed array of modules replaced by a list. Unify the way we create opd_module * utils/opcontrol: don't use --thread-profiling for 2.4 2003-09-17 Ka Fai Lu I adapted slightly this patch Phil. * daemon/opd_image.c: * daemon/opd_image.h: * daemon/opd_kernel.c: * daemon/opd_sample_files.c: * daemon/oprofiled.c: * utils/opcontrol: implement per thread profiling 2003-09-16 Philippe Elie * libopt++/popt_options.h: * libpp/locate_images.cpp: minor tidy 2003-09-16 John Levon * utils/opcontrol: don't pass pid/pgrp filter to 2.6 daemon * dae/oprofiled.c: * daemon/oprofiled.c: setrlimit to 8192 (lame workaround for now), minor cleanups 2003-09-15 John Levon * common_option.cpp: rename the array to avoid a link error in GCC 3.4 2003-09-15 John Levon * libop/Makefile.am: * libop/op_interface_25.h: move to ... * daemon/Makefile.am: * daemon/opd_interface.h: ... here * daemon/opd_image.c: * daemon/oprofiled.c: use above. Remove pointless command line options. * libop/op_config_25.h: remove. * libop/op_hw_config.h: move DCOOKIE_SHIFT to opd_interface.h 2003-09-15 John Levon * configure.in: use -Wdeclaration-after-statement if available * README: * daemon/opd_util.c: * daemon/opd_util.h: * doc/opannotate.1.in: * doc/opgprof.1.in: * doc/opreport.1.in: * doc/oprofile.1.in: * doc/oprofile.xml: * gui/oprof_start.cpp: * gui/oprof_start_util.cpp: * libop/op_cpu_type.c: * libop/op_cpu_type.h: * libop/op_get_interface.c: * libpp/locate_images.cpp: remove references to 2.5, replaced with 2.6 2003-09-15 John Levon * doc/opreport.1.in: document --show-address 2003-09-15 John Levon * libpp/arrange_profiles.cpp: * libpp/arrange_profiles.h: * pp/populate.cpp: more commentary 2003-09-14 Philippe Elie * pp/opreport.cpp: handle 2.95 right io manipulator and the lack of a proper setw(w) << std::string 2003-09-14 John Levon * pp/opreport.cpp: re-add header for image summary 2003-09-14 John Levon * libpp/arrange_profiles.cpp: throw an exception if there are two many unmerged profiles, with details of how to fix it * pp/opgprof_options.cpp: * pp/common_option.cpp: clean up error messages 2003-09-14 John Levon * libpp/arrange_profiles.h: * libpp/arrange_profiles.cpp: add location of images when inverting profiles * libpp/locate_images.cpp: return empty string if file isn't readable * pp/opannotate.cpp: use the above * pp/opreport.cpp: use the above; place warnings before any other output 2003-09-14 John Levon * pp/opgprof_options.cpp: use locate_image_path 2003-09-14 John Levon * Makefile.am: * populate.h: * populate.cpp: shared code for populating from inverted profiles * opreport.cpp: * opannotate.cpp: use above 2003-09-14 John Levon * libpp/arrange_profiles.h: * libpp/arrange_profiles.cpp: add invert_profiles * pp/opreport.cpp: use it 2003-09-14 John Levon * doc/oprofile.xml: * pp/opreport.cpp: * pp/opreport_options.cpp: * pp/opreport_options.h: Turn off VMA report by default, add --show-address 2003-09-14 John Levon * pp/opreport.cpp: nice formatting of image report column headers, respect --no-header 2003-09-14 Philippe Elie * libpp/arrange_profiles.cpp: use string::erase() not string::clear() for 2.95 * libutil++/generic_spec.h: allow to ignore "all" match * libutil++/comma_list.h: use it 2003-09-14 John Levon * pp/opreport.cpp: output column headers for image report 2003-09-14 John Levon * libpp/op_header.h: * libpp/op_header.cpp: output header info to a string not a stream * libpp/arrange_profiles.h: * libpp/arrange_profiles.cpp: give classes a long name, and fill in global event/cpu info * pp/opannotate.cpp: * pp/opannotate_options.cpp: * pp/opannotate_options.h: * pp/opgprof_options.cpp: * pp/opreport.cpp: * pp/opreport_options.cpp: * pp/opreport_options.h: use the class long names and info 2003-09-14 Philippe Elie * libpp/profile_spec.cpp: handle symlink 2003-09-14 John Levon * arrange_profiles.h: * arrange_profiles.cpp: Add code to give short names to each class, unused yet 2003-09-14 Philippe Elie * libpp/arrange_profiles.cpp: missing include<> with gcc 2.95 2003-09-14 John Levon * libpp/Makefile.am: * libpp/split_sample_filename.cpp: * libpp/split_sample_filename.h: rename as ... * libpp/parse_filename.cpp: * libpp/parse_filename.h: ... this * libpp/filename_spec.cpp: * libpp/arrange_profiles.cpp: * libpp/arrange_profiles.h: sort classes for niceness, changes from above * pp/opreport.cpp: remove needless double check of exclude_dependent * libutil++/string_manip.cpp: touint should init to 0 in case of parse failure 2003-09-14 Philippe Elie * configure.in: fix maximum template depth to 50 * libutil/op_fileio.c: op_get_link() don't truncate silently results * m4/sstream.m4: use OP_CXXFLAGS not CXXFLAGS 2003-09-14 John Levon * pp/partition_files.h: * pp/partition_files.cpp: remove, now unused 2003-09-14 John Levon * pp/opannotate.cpp: * pp/opannotate_options.cpp: * pp/opannotate_options.h: use arrange_profiles API 2003-09-14 John Levon * pp/opgprof_options.h: * pp/opgprof_options.cpp: * pp/opgprof.cpp: use arrange_profiles API 2003-09-14 John Levon * libpp/Makefile.am: * libpp/arrange_profiles.cpp: * libpp/arrange_profiles.h: introduce new code for partitioning profiles and handling merging * libpp/partition_files.h: * pp/opreport_options.cpp: * pp/opreport_options.h: * pp/opreport.cpp: use the above code * libpp/format_flags.h: * libpp/profile_container.cpp: remove unneeded multiple apps hint * libpp/count_array.cpp: * libpp/count_array.h: remove unnecessary code 2003-09-14 John Levon * configure.in: back to 0.7cvs 2003-09-14 John Levon * pp/opannotate.cpp: gcc 2.91 workaround (in 0.6.1 release) 2003-09-14 John Levon * configure.in: bump to 0.6.1 2003-09-13 John Levon * doc/oprofile.xml: document "incorrect source attribution" a bit 2003-09-12 Philippe Elie * libpp/op_header.cpp: typo in comment 2003-09-11 John Levon * configure.in: check for -lintl, tweak -ldl check 2003-09-11 John Levon * dae/oprofiled.c: * daemon/oprofiled.c: * libdb/db_manage.c: * libdb/db_test.c: correct headers 2003-09-11 John Levon * op_lockfile.c: use correct headers 2003-09-07 Philippe Elie * utils/op_help.c: check than all events are distincts 2003-09-06 Philippe Elie * pch-c++.h: * m4/precompiledheader.m4: new file to handle precompiled header * m4/Makefile.am: * configure.in: * Makefile.am: handle precompiled header 2003-09-05 John Levon * opd_image.c: cleanup of ctx_switch_set_image() 2003-09-05 Philippe Elie * daemon/opd_image.c: After a context switch ensure we update correctly the current image. 2003-09-04 Philippe Elie * pp/opreport.cpp: * pp/opannotate.cpp: catch op_bfd exception and recover gracefully 2003-09-04 Philippe Elie * utils/opcontrol: tweak "signaling daemon " message as suggested by Carlo Wood 2003-09-04 John Levon * doc/oprofile.xml: mention --reset in "Getting Started" 2003-09-03 John Levon * libop/op_events.c: * libpp/op_header.cpp: * dae/opd_sample_files.c: * daemon/opd_sample_files.c: propagate event error back up to caller * libdb/odb_hash.h: fix comment 2003-09-02 John Levon * dae/opd_image.c: * dae/opd_proc.c: * dae/oprofiled.c: * daemon/opd_image.c: use abort() not exit() on "can't happen" errors 2003-09-02 John Levon * dae/opd_proc.c: * daemon/opd_image.c: fix error message 2003-08-28 Philippe Elie * events/alpha.ev6.events: fix duplicate um tag 2003-08-28 John Levon * events/i386.athlon.events: fix duplicate minimum tag * daemon/opd_image.c: * libop/op_events.c: check for duplicate tags 2003-08-28 John Levon 2003-08-27 Will Cohen * utils/op_help.c (resolve_events): Typecast printf argument. 2003-08-25 Philippe Elie * pp/opannotate_options.cpp: * pp/opannotate_options.h: * pp/opannotate.cpp: enable multiple events * pp/opreport_options.cpp: remove #if 0 .... #endif 2003-08-25 Philippe Elie * libpp/count_array.cpp: avoid to access invalid memory 2003-08-25 Philippe Elie * configure.in: * m4/builtinexpect.m4: * m4/configmodule.m4: * module/Makefile.in: * module/ia64/Makefile.in: * module/x86/makefile.in: always use EXTRA_CFLAGS_MODULE not EXTRA_CFLAGS for module build flags 2003-08-23 Philippe Elie * libregex/op_regex.h: * libregex/op_regex.cpp: tidy * libutil++/op_bfd.cpp: remove obsolete comment 2003-08-23 Philippe Elie * libutil++/file_manip.h: * libutil++/file_manip.cpp: is_directory(dirname): return true if dirname exists * pp/common_option.cpp: validate --image-path parameters 2003-08-22 Philippe Elie * events/i386.p4.events: clarify than 128BIT_MMX_UOP count only integer SSE2 ops * pp/opreport.cpp: minor spacing change in output 2003-08-22 John Levon * daemon/oprofiled.c: report the kernel pointer size 2003-08-22 John Levon * daemon/oprofiled.c: read new /dev/oprofile/pointer_size in preference to kcore. kcore code will eventually go. 2003-08-21 John Levon * libutil++/op_bfd.cpp: update gcc2_compiled. comment to reflect reality 2003-08-19 Philippe Elie * pp/opreport.cpp: really merge when --merge=lib and image name are specified. 2003-08-16 Philippe Elie * pp/opannotate.cpp: output threshold percent when necessary. 2003-08-16 Philippe Elie * libutil++/op_bfd.cpp: remove ELF-based symbol size code 2003-08-15 William Cohen * doc/opcontrol.1.in: * doc/oprofile.1.in: * doc/oprofile.xml: Correct path to /root/.oprofile/daemonrc. 2003-08-15 Thomas Spatzier * daemon/opd_cookie.h: fix s390 syscall 2003-08-14 Philippe Elie * libutil++/string_manip.cpp: erase_to_last_of() is not a ltrim() 2003-08-14 Philippe Elie Dave Jones suggested this change. * module/x86/op_model_p4.c: remove superflous ';' at end of some macro 2003-08-14 Philippe Elie * libutil++/string_manip.h: remove erase_from_last_of() * libutil++/string_manip.cpp: and tidy erase_to_last_of(), rtrim() and ltrim() 2003-08-13 Philippe Elie * libutil++/op_bfd.h: * libpp/profile_container.cpp: remove nil_symbol_index 2003-08-13 John Levon * libpp/profile_container.cpp: * libpp/profile_container.h: remove "base_vma" parameter to add_samples(), we can just re-grab it straight from the abfd 2003-08-13 John Levon * libpp/profile_container.cpp: * libpp/profile_container.h: remove unused "zero samples" optimization hint: it's always false * pp/opannotate.cpp: * pp/opgprof.cpp: * pp/opreport.cpp: from above 2003-08-12 John Levon * pp/opreport.cpp: small trivialities 2003-08-12 Philippe Elie * libregex/stl.pat.in: minor fix/improvements * libregex/mangled-name.txt: add tests 2003-08-12 Philippe Elie * pp/opreport.cpp: fix thinko when --merge=lib 2003-08-12 John Levon * pp/opreport.cpp: s/count_groups_summary/summary_container/g 2003-08-12 John Levon * doc/oprofile.xml: document opreport's side-by-side a little bit 2003-08-12 John Levon * pp/opreport.cpp: s/group_summary/app_summary/, and a lot of other renamings to clarify the count groups usage. 2003-08-12 John Levon * utils/op_help.c: add --unit-mask * utils/opcontrol: use --unit-mask 2003-08-12 Philippe Elie * pp/opreport.cpp: re write using count_array_t 2003-08-11 John Levon * libpp/count_array.cpp: * libpp/count_array.h: auto-resize the number of groups based on how we index. * libpp/profile_container.cpp: remove check * pp/opannotate.cpp: count_array.zero() not .empty() 2003-08-11 John Levon * libpp/filename_spec.h: * libpp/profile_spec.cpp: * libpp/profile_spec.h: add comments, allow comma lists for event, count, and unit mask * libutil++/comma_list.h: implement missing method 2003-08-11 John Levon * libpp/format_output.cpp: * libpp/format_output.h: add set_nr_groups(), remove pp_nr_counters. * libpp/profile_container.cpp: * libpp/profile_container.h: * pp/opannotate.cpp: * pp/opgprof.cpp: * pp/opreport.cpp: count_group not counter 2003-08-11 John Levon * libpp/Makefile.am: * libpp/counter_array.cpp: * libpp/counter_array.h: rename to ... * libpp/count_array.h: * libpp/count_array.cpp: ... this ... * libpp/format_output.cpp: * libpp/format_output.h: * libpp/profile.cpp: * libpp/profile.h: * libpp/profile_container.cpp: * libpp/profile_container.h: * libpp/sample_container.cpp: * libpp/sample_container.h: * libpp/symbol.h: * pp/opannotate.cpp: * pp/opgprof.cpp: * pp/opreport.cpp: ... and several renamings to starting change the notion from "counters" to the more general notion of "count groups" 2003-08-10 Philippe Elie Multiple counter support for pp tools. * libpp/counter_array.h: * libpp/counter_array.cpp: resurrected from pp-interface-branch, for now memory use is inefficient. * libpp/Makefile.am: add counter_array.cpp .h * libpp/format_out.h: * libpp/format_out.cpp: handle multiple counter + a general tidy * libpp/format_flags.h: remove ff_immutable_mask and some nasty requisite on flags value * libpp/profile_container.h: * libpp/profile_container.cpp: * libpp/sample_container.h: * libpp/sample_container.cpp: * libpp/symbol.h: * libpp/symbol_container.cpp: * libpp/symbol_sort.cpp: * pp/opreport.cpp: handle multiple counter * pp/opannotate.cpp: partial handling of multiple counter * pp/opgprof.cpp: * pp/opreport.cpp: minor bits 2003-08-08 Will Cohen * dae/Makefile.am: * daemon/Makefile.am: Correct library linking order. * daemon/opd_util.c: Add needed include files. 2003-08-08 Philippe Elie * utils/opcontrol: move_and_remove() do nothing if source doesn't exist 2003-08-08 Philippe Elie revert the previous patch * dae/Makefile.am: * dae/opd_sample_files.h: * dae/opd_sample_files.c: * daemon/Makefile.am: * daemon/opd_sample_files.c: un-share opd_sample_files code 2003-08-08 John Levon * dae/Makefile.am: * dae/opd_sample_files.h: * dae/opd_sample_files.c: * daemon/Makefile.am: * daemon/opd_sample_files.c: share opd_sample_files code 2003-08-08 John Levon * dae/oprofiled.c: * daemon/oprofiled.c: * daemon/opd_util.h: * daemon/opd_util.c: share opd_write_abi() 2003-08-08 Philippe Elie * libop/op_alloc_counter.c: * libop/op_events.h: minor doxygen fix 2003-08-08 John Levon * dae/Makefile.am: * dae/oprofiled.c: * daemon/Makefile.am: * daemon/oprofiled.c: * daemon/opd_util.h: * daemon/opd_util.c: share some small bits of code between the daemons 2003-08-08 John Levon * dae/oprofiled.c: * daemon/oprofiled.c: remove mypid, unused 2003-08-08 John Levon * dae/Makefile.am: * dae/opd_printf.h: remove duplicate header and use daemon/opd_printf.h 2003-08-08 John Levon * dae/opd_image.c: * dae/opd_sample_files.h: * dae/opd_sample_files.c: * daemon/opd_image.c: * daemon/opd_sample_files.h: * daemon/opd_sample_files.c: remove "create" bool from opd_mangle_filename(): only one callsite needs that functionality, open code the create instead * dae/opd_proc.c: * dae/opd_sample_files.h: * dae/opd_sample_files.c: * daemon/opd_sample_files.h: * daemon/opd_sample_files.c: return error from opd_open_sample_filename(). Do not fail when odb_open fails due to --reset races. * dae/oprofiled.c: * daemon/oprofiled.c: a little more verbosity. * libutil/op_file.h: * libutil/op_file.c: fix create_dir/path() comments, don't use access() * utils/opcontrol: reduce chance of --reset races 2003-08-06 Philippe Elie * libpp/symbol_sort.h: * libpp/symbol_sort.cpp: add app_name sort order, force sort order for criteria unspecified by user. * pp/opreport_options.cpp: update --sort option help string. 2003-08-04 John Levon * doc/oprofile.xml: * doc/opannotate.1.in: * pp/opannotate.cpp: * pp/opannotate_options.h: * pp/opannotate_options.cpp: add --base-dirs 2003-08-04 John Levon * doc/oprofile.xml: * doc/opannotate.1.in: * pp/opannotate.cpp: * pp/opannotate_options.h: * pp/opannotate_options.cpp: add --search-dirs 2003-08-04 John Levon * doc/oprofile.xml: * doc/opannotate.1.in: * pp/opannotate.cpp: * pp/opannotate_options.h: * pp/opannotate_options.cpp: remove --source-dir and --base-dir, they're confusing and not useful in the current form 2003-08-03 John Levon * utils/opcontrol: avoid using ps, it's very slow with kallsyms 2003-08-03 Philippe Elie * libutil++/op_bfd.cpp: c++ static function doesn't get a mangled name in debug info (see gcc #11774). Try to recover through a not completely reliable mechanism but better than ignoring the problem 2003-08-02 Philippe Elie * pp/opreport.cpp: minor: more consistency about function ordering 2003-08-02 Philippe Elie * libpp/profile.h: * libpp/profile.cpp: profile::sample_count() new to allow raw access to samples count * pp/opreport.cpp: use above function to implement opreport (w/o -l or --details options). opreport is roughly twice faster. 2003-08-02 Philippe Elie * pp/opreport.cpp: clarify multiple counter support 2003-08-01 John Levon * libregex/stl.pat.in: fix _List_iterator regex (from Phil) 2003-07-31 Philippe Elie * pp/opannotate.cpp: output cpu type and cpu speed. 2003-07-30 John Levon * libpp/partition_files.cpp: remove some apparently dead code 2003-07-30 John Levon * events/i386.p4.unit_masks: make flame_uops value mandatory, Yuan.Lu@rrze.uni-erlangen.de does not see any events without setting the unit mask 2003-07-30 John Levon * libutil++/op_bfd.h: * libutil++/op_bfd.cpp: bfd_openr() keeps a copy of the passed in char * around, sickenly enough. Ensure lifetimes will always be correct by adding a filename data member to op_bfd 2003-07-29 Philippe Elie * libpp/op_header.h: * libpp/op_header.cpp: separate output of cpu_type, cpu_speed and counter setup * libpp/partition_files.h: * libpp/partition_files.cpp: unmergeable_profile() split profile by the unmergeable. * pp/opreport_options.h: * pp/opreport_options.cpp: * pp/opreport.cpp: initial multiple counter output, multiple counter with -l is not yet available. 2003-07-29 John Levon * doc/opcontrol.1.in: update for --event 2003-07-29 John Levon * configure.in: * doc/srcdoc/Doxyfile.in: * oprof_report/: remove badly out of date oprof_report 2003-07-28 John Levon * configure.in: bump to 0.7cvs 2003-07-26 John Levon * configure.in: bump to 0.6 2003-07-26 John Levon * utils/opcontrol: fix call of op_help 2003-07-26 John Levon * gui/oprof_start.cpp: replace folder icons with clearer red/green circles 2003-07-26 John Levon * gui/oprof_start.cpp: actually select and show the default event 2003-07-26 John Levon * gui/oprof_start.cpp: small string tweak, show "conflicts" message consistently 2003-07-26 John Levon * gui/oprof_start.cpp: don't use invalidated iterator 2003-07-26 Philippe Elie * gui/oprof_start.cpp: fix for 2.91.66 * libpp/profile.cpp: typo invoking an undefined behavior revealed by gcc stl debug mode * libpp/profile.h: ensure we provide the right typedef to std:: for profile::const_iterator revealed by gcc stl debug mode at compile time. The implementation is a bit tricky to work with old compiler * libpp/symbol_sort.cpp: compare must define a weak ordered relation order, revealed by gcc stl debug mode. 2003-07-26 Philippe Elie * gui/ui/oprof_start.base.ui: * gui/oprof_start.h: * gui/oprof_start.cpp: change UI to use the new counter allocation API * libop/op_alloc_counter.h: * libop/op_alloc_counter.c: * utils/op_help.c: minor const-ness api change 2003-07-25 Will Cohen * utils/opcontrol: Restrict the search path. 2003-07-25 Philippe Elie * libop/op_alloc_counter.c: use tabulation * libop/op_events.c: * libop/op_events.h: find_event_by_name() new * utils/op_help.c: use find_event_by_name() 2003-07-24 Philippe Elie * utils/op_help.c: make valgrind happy + minor cleanup 2003-07-24 Philippe Elie * libop/op_alloc_counter.h: * libop/op_alloc_counter.c: new file providing mapping from an event list to hardware counter number * utils/op_help.c: use the above api 2003-07-24 Philippe Elie * utils/op_help.c: fix hardware counter allocation order 2003-07-23 John Levon * doc/oprofile.xml: comment out --base-dir mention 2003-07-23 John Levon * doc/oprofile.xml: remove mention of oprof_start_event 2003-07-23 John Levon * dae/oprofiled.c: * daemon/oprofiled.c: don't uselessly try to unlink non-existent lockfile * daemon/opd_image.c: * daemon/oprofiled.c: clean up buffer read messages 2003-07-23 John Levon * utils/opcontrol: error out at --setup time if vmlinux is not valid. Cleanup the error message if so * daemon/opd_kernel.c: fix potential null deref 2003-07-21 John Levon * gui/oprof_start.cpp: select "No event" when switching counter if needed 2003-07-21 John Levon * gui/oprof_start.cpp: fix default event choosing when daemonrc exists 2003-07-21 Philippe Elie * gui/oprof_start.cpp: thinko in has_unique_event(), don't warn for no counter with CPU_TIMER_INT 2003-07-21 Philippe Elie * gui/oprof_start.cpp: allow to de-select a counter 2003-07-21 John Levon * gui/oprof_start.cpp: * gui/oprof_start_util.h: * gui/oprof_start_util.cpp: remove uptime pretty printing. It's broken for 2.5 and ugly code 2003-07-21 John Levon * gui/oprof_start.h: * gui/oprof_start.cpp: use a default event if no events are set yet 2003-07-20 Philippe Elie * m4/compileroption.m4: fix for autoconf 2.13 2003-07-19 Philippe Elie * gui/oprof_start.cpp: * libpp/format_output.cpp: * libpp/format_output.h: * pp/opannotate.cpp: * pp/opreport_options.cpp: minor tidy 2003-07-19 Philippe Elie * gui/oprof_start.cpp: RTC mode was not working 2003-07-16 Philippe Elie * gui/oprof_start_config.h: * gui/oprof_start_config.cpp: remove dead code, fix kernel_only read 2003-07-16 John Levon * utils/opcontrol: fix typo that was partly breaking CPU_TIMER_INT 2003-07-16 John Levon * gui/oprof_start.h: * gui/oprof_start.cpp: fixes for CPU_TIMER_INT 2003-07-16 John Levon * gui/ui/oprof_start.base.ui: remove add/remove event buttons, fix resize weirdness * gui/oprof_start.h: * gui/oprof_start.cpp: remove add/remove event buttons, allow short-form event descriptions 2003-07-15 Philippe Elie * gui/persistent_config.h: remove * gui/oprof_start.h: * gui/oprof_start.cpp: debug, remove dead code, works better now, see TODO 2003-07-15 Philippe Elie * gui/oprof_start.h: * gui/oprof_start.cpp: * gui/oprof_start_util.cpp: re-enable partially the gui, sorta of working if cautioulsy used 2003-07-15 John Levon * gui/ui/oprof_start_base.ui: * gui/oprof_start.h: * gui/oprof_start.cpp: some steps towards fixing gui for the new events stuff 2003-07-15 John Levon * libop/op_events.h: * libop/op_events.c: add op_default_event * utils/op_help.c: move default event stuff to libop, fix -c option 2003-07-15 John Levon * utils/op_help.c: fix default RTC event to be "RTC_INTERRUPTS" 2003-07-15 Philippe Elie * utils/opcontrol * events/rtc..events: use RTC_INTERRUPTS as event name 2003-07-15 Philippe Elie * daemon/opd_sample_files.c: C89 compile fix 2003-07-15 John Levon * utils/opcontrol: * utils/op_help.c: move the default event strings into op_help.c instead of in opcontrol 2003-07-15 John Levon * doc/oprofile.xml: document event name for timer interrupt * daemon/opd_sample_files.c: handle CPU_TIMER_INT * utils/op_help.c: fix a core dump 2003-07-13 Philippe Elie * daemon/opd_image.c: verbprintf() when starting reading buffer not printf 2003-07-12 Philippe Elie * from BRANCH_CALLGRAPH: * daemon/opd_image.c: printf -> verbprintf, fix comment * daemon/opd_kernel.c: kernel/module samples statistics was wrong * daemon/opd_image.c: * daemon/opd_image.h: * daemon/opd_kernel.c: * daemon/opd_kernel.h: import cleanup from branch, mainly don't handle samples in opd_kernel.c but return (creating if necessary) an opd_image struct where the sample must go and let opd_image caller in opd_image.c do sample insertion 2003-07-11 Philippe Elie * utils/opcontrol: shows basename $0 with --version * libpp/op_header.cpp: formating 2003-07-11 Philippe Elie * utils/opcontrol: don't try to save current if the directory doesn't exist 2003-07-11 Philippe Elie * libutil++/stream_util.h: * libutil++/stream_util.cpp: new file, io_state() save object * libutil++/Makefile.am: handle new file * libutil++/op_bfd.cpp: * pp/opreport.cpp: * libpp/op_header.cpp: use io_state 2003-07-09 Philippe Elie * module/x86/op_model_p4.c: reflect intel documentation fix. 2003-07-08 Will Cohen * daemon/opd_kernel.c: Handle /proc/modules format. 2003-07-08 Will Cohen * doc/oprofile.xml: * configure.in: --enable-gcov option and documentation. 2003-07-08 Will Cohen * utils/opcontrol: Correct P4 default event. 2003-06-03 John Levon * from BRANCH_CALLGRAPH * libdb/odb_hash.h: * libdb/db_manage.c: * libdb/db_insert.c: namespace safety * libpp/partition_files.cpp: * libpp/profile.cpp: spacing, add a FIXME 2003-07-07 Philippe Elie * pp/opannotate.cpp: * pp/opgprof.cpp: * pp/opreport.cpp: cleanup walking through multimap with a pair 2003-07-05 Philippe Elie * daemon/opd_image.c: * libdb/db_insert.c: 64 bits arch compile fix, thanks to Falk Hueffner 2003-07-02 Philippe Elie * pp/opreport.cpp: honor options::show_header 2003-06-30 Graydon Hoare * libpp/op_header.cpp: Handle printing multiple bitmask values. 2003-06-19 John Levon * doc/Makefile.am: fix make distcheck 2003-06-18 John Levon * pp/opannotate_options.c: hide the unhandled --base-dir option 2003-06-18 John Levon * pp/Makefile.am: don't build opdiff 2003-06-17 Will Cohen * daemon/opd_cookie.h: Add s390 syscall value. 2003-06-17 John Levon * utils/opcontrol: don't accept "-r" - it's too easy to typo 2003-06-17 John Levon * doc/srcdoc/Doxyfile: removed * doc/srcdoc/Doxyfile.in: * configure.in: generate doxygen version nr. automatically 2003-06-17 Philippe Elie * libdb/db_insert.cpp: missing initialization of error message on error path 2003-06-17 John Levon * utils/opcontrol: accept some short forms for common operations 2003-06-17 John Levon * utils/opcontrol: accept --foo blah as well as --foo=blah 2003-06-16 John Levon * utils/opcontrol: "opcontrol" will show usage instead of doing nothing 2003-06-16 Will Cohen * libabi/abi.cpp: * libabi/op_import.cpp: Add required include for cassert. 2003-06-16 John Levon * events/x86-64.hammer.unit_masks: remove some bogus FIXMEs 2003-06-15 John Levon * README: fix autogen.sh line 2003-06-15 John Levon * daemon/opd_image.c: 64 bit fixes 2003-06-15 John Levon * utils/op_help.c: c89 fix 2003-06-15 John Levon * daemon/opd_image.c: c89 fix 2003-06-15 John Levon * doc/oprofile.xml: document --event * utils/opcontrol: * utils/op_help.c: allow unit mask, kernel, user to be optional. Verify not too many events are passed. 2003-06-15 John Levon * libop/op_cpu_type.c: fix nr_counters cpu type check * utils/op_help: implement --check_events, event validation and counter allocation * utils/opcontrol: use the above, implement --event=default 2003-06-14 John Levon * daemon/opd_image.c: fix a stupid error in my previous TGID patch 2003-06-12 Graydon Hoare * libop/op_events.c (op_check_events): Check bitmasks as well as exclusive values, for unit masks. 2003-06-12 John Levon * daemon/opd_image.c: we were not handling a truncated TGID entry properly 2003-06-12 John Levon * libutil++/unique_storage.h: missing typename 2003-06-11 Philippe Elie * pp/opannotate_options.cpp: typo in option name 2003-06-11 Philippe Elie * libutil++/op_bfd.cpp: boring_symbol() new to get a better choice when eliminating symbol at identical vma 2003-06-11 Philippe Elie * utils/opcontrol: fix rtc option checking, bug added after 0.5.3, no big deal 2003-06-11 Philippe Elie * libregex/op_regex.cpp: * libpp/profile.cpp: compile fix, tree was broken by my previous patch 2003-06-11 Jason Yeh * events/i386.athlon.events: add CPU_CLK_UNHALTED * utils/opcontrol: use the above by default * events/x86-64.hammer.events: * events/x86-64.hammer.unit_masks: various fixes 2003-06-11 Philippe Elie * libpp/op_header.cpp: * libpp/profile.cpp: * libpp/profile_spec.cpp: * libpp/symbol_sort.cpp: * libregex/op_regex.cpp: * libutil++/op_bfd.cpp: use exception rather exit(EXIT_FAILURE) in library code 2003-06-11 John Levon * daemon/opd_image.c: future-proof the code handlers 2003-06-11 Philippe Elie * pp/opannotate.cpp: output_asm() avoid output when the set of selected symbols doesn't contain any samples 2003-06-11 Philippe Elie * libutil++/unique_storage.h: we don't need to check if key is present before trying to insert it 2003-06-10 Philippe Elie * libpp/name_storage.h: minor tidy * libutil++/unique_storage.h: small efficiency improvement 2003-06-09 John Levon * pp/Makefile.am: * libutil/Makefile.am: fix make distcheck 2003-06-09 John Levon * libpp/opp_symbol.h: rename to ... * libpp/symbol.h: ... this * libpp/Makefile.am: * libpp/format_output.h: * libpp/format_output.cpp: * libpp/profile_container.h: * libpp/profile_container.cpp: * libpp/sample_container.h: * libpp/sample_container.cpp: * libpp/symbol_functors.h: * libpp/symbol_sort.cpp: fix up from above and some header cleanups 2003-06-09 John Levon * libpp/profile.h: std::pair not pair 2003-06-08 Philippe Elie * libpp/profile.cpp: don't underflow start offset when the vma range is unknown * pp/opreport.cpp: use samples_range() not samples_range(0, ~0) 2003-06-08 Philippe Elie * libpp/profile.h: * libpp/profile.cpp: replace accumulate_samples() API by an iterator interface * libpp/profile_container.h: * libpp/profilecontainer.cpp: * pp/opreport.cpp: use new API 2003-06-08 Philippe Elie * include/sstream: replace old version by the once shipped with 2.95.3, seekg() in the old was not working 2003-06-08 John Levon * libpp/name_storage.h: don't need to define the tag structs * libutil++/unique_storage.h: fix the comments, make get() public 2003-06-08 Philippe Elie * libpp/profile_container.cpp: * libutil++/string_manip.cpp: gcc 2.91.66 fix 2003-06-08 John Levon * libpp/name_storage.h: * libpp/name_storage.cpp: * libpp/opp_symbol.h: * libpp/profile_container.cpp: * libpp/symbol_functors.cpp: * libutil++/unique_storage.h: don't derive from I() at all for id_value, it's not needed. Hide .id and provide operator<(), operator==(), operator!=(), and set() 2003-06-08 John Levon * libutil++/unique_storage.h: make some of id_value only visible to unique_storage. 2003-06-08 John Levon * libpp/name_storage.h: * libutil++/unique_storage.h: move the ID class into unique_storage, and make it derive from the template parameter, to give simpler type safe support 2003-06-08 John Levon * libutil++/Makefile.am: * libutil++/unique_storage.h: add new template for unique storage of values * libpp/name_storage.h: * libpp/name_storage.cpp: use it 2003-06-07 Philippe Elie * libpp/profile_container.cpp: fix order of file output with opannotate --source to be consistent with other tools 2003-06-07 John Levon * libpp/profile_container.cpp: fix operator< 2003-06-07 Philippe Elie * libpp/profile.h: * libpp/profile.cpp: change API to walk through vma with non zero samples count rather looking for all vma. This is not very clean, an iterator interface will be perhaps a better idea. Measures shows it's to do it so for now I apply it. * libpp/profile_container.cpp: update according to above change. 2003-06-07 Philippe Elie * libpp/profile_container.h: * libpp/profile_container.cpp: * libpp/symbol_container.h: * libpp/symbol_container.cpp: remove dead api find_symbol(string symbol_name) 2003-06-07 Philippe Elie * libpp/name_storage.h: * libpp/name_storage.cpp: * libpp/profile_container.cpp: * libpp/profile_container.h: * libpp/sample_container.h: * libpp/sample_container.cpp: * libpp/symbol_container.h: * libpp/symbol_container.cpp: * pp/opannotate.cpp: replace some use of string filename by debug_name_id 2003-06-05 John Levon * daemon/Makefile.am: * daemon/opd_kernel.c: * daemon/p_module.h: remove p_module.h, unused * daemon/opd_cookie.h: use __NR_lookup_dcookie and use our definitions only if it's not defined * daemon/opd_image.c: * daemon/opd_kernel.c: * daemon/opd_sample_files.c: * daemon/oprofiled.c: pedantry * libabi/op_import.cpp: * libabi/abi_test.cpp: fix build from odb change * libop/op_config.h: move NR_CPUS to ... * libop/op_config_24.h: ... here * libop/op_hw_config.h: remove unused OP_COUNT_MAX 2003-06-03 Philippe Elie * libpp/op_header.cpp: * libpp/profile.cpp: * dae/opd_proc.c: * dae/opd_sample_files.c: * daemon/opd_image.c: * daemon/opd_sample_files.c: * libdb/odb_hash.h: * libdb/db_insert.c: * libdb/db_manage.c: * libdb/db_test.c: error message is now a field of a samples_odb_t 2003-06-03 John Levon * libutil++/child_reader.cpp: * libabi/abi.cpp: * libabi/abi.h: * libabi/abi_test.cpp: * libabi/op_api.h: * libabi/op_abi.cpp: * libabi/op_import.cpp: pedantry, remove unused code 2003-06-01 Philippe Elie * dae/oprofiled.c: * libop/oprofiled.c: * libop/op_cpu_type.c: * module/oprofile.c: * module/oprofile.h: * pp/opdiff.cpp: more static data and function 2003-05-31 Philippe Elie * gui/oprof_start_util.h: * libdb/db_stat.c: * libdb/odb_hash.h: * libpp/format_output.h: * libpp/locate_image.h: * libpp/name_storage.h: * libpp/partition_files.h: * libpp/profile.h: * libutil++/op_bfd.h: * libutil++/op_bfd.cpp: improve doxygen comment 2003-05-31 Philippe Elie * configure.in: use AC_DEFINE_UNQUOTED() to define version string in config.h not in version-1.h * Makefile.am: distclean-local: is no longer used * version-1.h.in: delete * libutil/op_version.h: * libutil/op_version.c: new file: package version output * libutil/Makefile.am: * dae/oprofiled.c: * daemon/oprofiled.c: * gui/oprof_start.h: * libop/op_events.c: * libopt++/popt_options.cpp: * libregex/demangle_sybol.cpp: * module/oprofile.c: * utils/op_help.c: tweak # include according 2003-05-30 Dan Zink * module/x86/op_apic.c: really disable the apic if it was disabled 2003-05-29 John Levon * utils/opcontrol: don't allow --rtc-value if not RTC mode 2003-05-27 John Levon * libutil++/string_manip.h: add * pp/opannotate.cpp: use '\n' not endl * pp/opreport.cpp: untie cout 2003-05-29 Philippe Elie * merge with pp-interface-branch: following ChangeLog was unmerged to branch 2003-05-27 John Levon * configure.in: oprofile 0.5.3 is released, back to 0.6cvs 2003-05-26 John Levon * doc/oprofile.xml: update docs for --no-vmlinux 2003-05-26 John Levon * libop/op_interface_25.h: * daemon/opd_image.c: handle tgid for future compatibility, fix compile on older gccs 2003-05-26 John Levon * libop/op_interface_25.h: add LAST_CODE * daemon/opd_stats.h: * daemon/opd_stats.c: count short reads of buffer and unplaceable samples * daemon/opd_image.c: rewrite buffer parsing code, handle window where we can't place a sample 2003-05-26 John Levon * libutil++/utility.h: fix typo * utils/opcontrol: fix typo 2003-05-16 John Levon * pp/counter_profile.cpp: remove bogus cpu speed consistency check 2003-05-09 John Levon * m4/Makefile.am: * m4/compileroption.m4: add a generalised compiler option tester * configure.in: use it, add -fno-common 2003-05-09 John Levon * daemon/oprofiled.c: * dae/oprofiled.c: remove duplicate declaration found via -fno-common 2003-05-04 John Levon * doc/oprofile.xml: fix validation errors from xmllint --valid 2003-05-28 Philippe Elie * libpp/profile_spec.cpp: make image:/path/to:image working 2003-05-28 Philippe Elie * libutil++/string_manip.h: * libutil++/string_manip.cpp: specialize lexical_cast_no_ws to accept hexadecimal input * pp/common_option.cpp: missing << endl 2003-05-27 Philippe Elie * doc/oprofile.xml: update example in "Interpreting profiling results" section 2003-05-26 John Levon * doc/oprofile.xml: add new pp tools options 2003-05-26 John Levon * doc/opreport.1.in: * doc/opgprof.1.in: * doc/opannotate.1.in: * doc/op_help.1.in: complete 2003-05-26 John Levon * configure.in: * doc/Makefile.am: * doc/oprofile.1.in: * doc/op_help.1.in: * doc/opcontrol.1.in: * doc/opreport.1.in: * doc/opannotate.1.in: * doc/opgprof.1.in: re-organise and add manpages 2003-05-26 John Levon * doc/oprofile.xml: start to document the pp interface 2003-05-26 Philippe Elie * pp/opreport.cpp: remove automatic switch to --symbols mode 2003-05-26 Philippe Elie * libpp/symbol_sort.h: * pp/opannotate_options.cpp: * pp/opgprof_options.cpp: * pp/opreport_options.cpp: handle meaningless options combinations 2003-05-26 Philippe Elie * pp/opgprof_options.cpp: no need to use unmergeable_profile here 2003-05-25 Philippe Elie * events/i386.piii.unit_masks: tweak comment, change default unit mask for kni instruction to 0 and type to exclusive 2003-05-25 Philippe Elie * libpp/profile_container.cpp: thinko * pp/opreport.cpp: typo 2003-05-25 John Levon * libopt++/popt_options.h: * libopt++/popt_options.cpp: obvious cleanup, remove some dead code 2003-05-25 Philippe Elie * libpp/format_flags: cf_image_name new column_flags flag * libpp/profile_container.cpp: use above flag. Don't compare app_name by string but id * pp/opreport.cpp: hide image_name when un-necessary 2003-05-24 Philippe Elie * doc/srcdoc/Doxyfile: * libpp/profile.h: * libpp/profile_container.h: * libutil++/utility.h: remove gcc 2.91 noncopyable as empty base class work-around 2003-05-23 Philippe Elie * configure.in: do early check of libiberty * libpp/symbol_sort.cpp: 2.91 compile fix 2003-05-22 Philippe Elie * libutil++/child_reader.h: minor #include fix 2003-05-22 Philippe Elie * libpp/name_storage.cpp: debug_name_storage::name() return an empty string when for zero id to avoid exception 2003-05-21 Philippe Elie * libpp/profile.cpp: * libpp/op_header.h: * libpp/op_header.cpp: when sample file differ output the sample filename * pp/opannotate.cpp: remove spurious output * */Makefile.am: * configure.in: handle our own OP_CFLAGS, OP_CXXFLAGS to let user free to use make CFLAGS= 2003-05-20 Philippe Elie * libpp/profile_spec.h: * libpp/profile_spec.cpp: remove lib_image_exclude, use image_exclude instead. match() Handle image exclusion. * libregex/stl.pat.in: FIXME * libutil++/string_manip.h: compile fix 2003-05-19 John Levon * libutil++/comma_list.h: * libpp/filename_spec.cpp: * libutil++/string_manip.h: * libutil++/generic_spec.h: rename strict_convert<> to lexical_cast_no_ws<> 2003-05-19 John Levon * libutil++/generic_spec.h: move strict_convert<> to... * libutil++/string_manip.h: ...here 2003-05-19 John Levon * libutil++/generic_spec.h: comma_list isn't a friend any more * libutil++/comma_list.h: use generic_spec<>::match() directly 2003-05-19 John Levon * libpp/name_storage.h: s/name_map/stored_names/, it's not a map any more. 2003-05-19 Philippe Elie * libregex/mangled-name.txt: * libregex/stl.pat.in: partial handling of _Identity<> and _Select1st<>, pattern fail if type are too complex 2003-05-19 Philippe Elie * libpp/format_output.cpp: small cleanup * libpp/name_storage.h: * libpp/name_storage.cpp: ensure type safety by providing distinct type identifier for each name_storage based container * libpp/profile_container.cpp: * libpp/sample_container.cpp: * libpp/symbol_functors.cpp: * libpp/symbol_sort.cpp: * libpp/opp_symbol.h: use the name identifier api * libpp/op_header.cpp: * libpp/partition_files.cpp: use a set not a name_storage * libpp/format_output.cpp: small cleanup 2003-05-18 Philippe Elie * libpp/partition_files.cpp: merge partition entry when necessary fixing a corner case when a binary can be a dependent or a primary image and was not merged 2003-05-18 Philippe Elie * pp/opreport_options.cpp: * pp/opannotate_options.cpp: remove conflicting options shortcut 2003-05-18 Philippe Elie * libregex/stl.pat.in: add list::{const_}+iterator 2003-05-17 Philippe Elie * libpp/name_storage.cpp: basename() return an empty string for nil id 2003-05-17 Philippe Elie * libutil++/op_bfd.cpp: get_linenr() init linenr to zero * libpp/name_storage.cpp: don't use id zero * libpp/opp_symbol.h: now we use id and not string we must provide default ctor to initialize the id * libpp/profile_container.cpp: init debug info entry only if get_linenr() succeed 2003-05-17 Philippe Elie * libdb/db_manage.c: better handling of zero sample file size when opening in read only mode * module/x86/op_nmi.c: printk format fix 2003-05-17 John Levon * pp/opannotate_option.cpp: * pp/opreport_options.cpp: command line changes 2003-05-17 John Levon * libpp/name_storage.h: * libpp/name_storage.cpp: add present() * libpp/op_header.cpp: * libpp/partition_files.cpp: use a name store to track what we've warned about, and clean up the warnings a bit 2003-05-16 John Levon * libutil++/op_bfd.h: * libutil++/op_bfd.cpp: expose anonymous symbols to the world as "??sectionname". Useful for .plt and .fini, which are quite common. * libpp/name_storage.cpp: demangle anonymous symbols nicely. 2003-05-16 John Levon * libpp/symbol_sort.cpp: fix image-sorting 2003-05-16 John Levon * libpp/name_storage.h: * libpp/name_storage.cpp: make ID be per-container 2003-05-16 John Levon * libpp/name_storage.h: * libpp/name_storage.cpp: merge processed names into one string, remove the boolean 2003-05-16 John Levon * libpp/name_storage.h: * libpp/name_storage.cpp: whoops, use string not stored_name for the ID map 2003-05-16 John Levon * libpp/name_storage.h: * libpp/name_storage.cpp: split into three stores for debug filenames, symbols, and images * libpp/format_output.cpp: * libpp/profile_container.cpp: * libpp/sample_container.cpp: * libpp/symbol_container.cpp: * libpp/symbol_sort.cpp: * pp/opannotate.cpp: changes from above 2003-05-16 John Levon * libpp/Makefile.am: * libpp/name_storage.h: * libpp/name_storage.cpp: add shared storage and caching of symbol and file names * libpp/opp_symbol.h: * libpp/format_output.cpp: * libpp/profile_container.cpp: * libpp/sample_container.cpp: * libpp/symbol_container.cpp: * libpp/symbol_container.h: * libpp/symbol_sort.cpp: * libpp/symbol_sort.h: * pp/opannotate.cpp: * pp/opreport.cpp: use it * pp/opgprof_options.cpp: add unused demangle options to hack-fix the build 2003-05-16 John Levon * libpp/symbol_sort.cpp: fix --sort debug 2003-05-16 John Levon * libutil++/op_bfd.h: * libutil++/op_bfd.cpp: remove have_debug_info() 2003-05-16 Philippe Elie * libpp/op_header.cpp: remove cpu_speed checking * libutil++/op_bfd.h: * libutil++/op_bfd.cpp: bail out in get_linenr() if binary doesn't contain any debug info. Speed up my test case opreport --debug-info -l by 25 2003-05-16 John Levon * libutil++/op_bfd.cpp: clean up interesting_symbol a bit 2003-05-16 John Levon * libutil++/op_bfd.cpp: make sure linenr is always set to something * libpp/opp_symbol.h: linenr should be unsigned * libpp/profile_container.cpp: remove some unneeded copies 2003-05-16 John Levon * pp/opannotate.cpp: small renaming 2003-05-15 John Levon * libpp/symbol_container.h: * libpp/symbol_container.cpp: add begin(), end(), remove symbols_by_count() * libpp/profile_container.cpp: use symbol container iterator directly in select_symbols() 2003-05-15 John Levon * libpp/format_output.h: * libpp/format_output.cpp: * libpp/profile_container.h: * libpp/profile_container.cpp: * libpp/symbol_container.h: * libpp/symbol_container.cpp: * libpp/symbol_sort.h: * libpp/symbol_sort.cpp: * pp/opannotate.cpp: * pp/opreport.cpp: * pp/opgprof.cpp: move symbol_collection typedef into global namespace, and use consistently 2003-05-15 John Levon * libpp/format_output.h: * libpp/format_output.cpp: add vma_format_64bit(), remove bool parameter from output() * pp/opreport.cpp: change from above, refactor flags code into get_format_flags() helper 2003-05-12 Philippe Elie * libpp/format_output.h: * libpp/format_output.cpp: * libpp/symbol_sort.h: * libpp/symbol_sort.cpp: handle reverse sort in sorting not in output * pp/opannotate.cpp: * pp/opreport.cpp: update according 2003-05-12 Philippe Elie * libpp/symbol_sort.h: * libpp/symbol_sort.cpp: handle sort order as specified on command line * pp/opgprof.cpp: sort symbol is not necessary for gprof * pp/opreport.cpp: * pp/opreport_options.cpp: * pp/opannotate.cpp: use new sort API 2003-05-12 John Levon * libpp/symbol_sort.h: * libpp/symbol_sort.cpp: partial implementation of other sort options 2003-05-12 John Levon * libpp/Makefile.am: * libpp/symbol_sort.h: * libpp/symbol_sort.cpp: add sorting code * symbol_functors.h: move some less() into symbol_sort.cpp * libpp/profile_container.h: * libpp/profile_container.cpp: don't pass in sort option to select_symbols(), do it in caller * pp/opannotate.cpp: * pp/opgprof.cpp: * pp/opreport.cpp: * pp/opreport_options.h: * pp/opreport_options.cpp: from the above 2003-05-12 John Levon * format_flags.h: remove vma64_p. Add column_flags * libpp/profile_container.h: * libpp/profile_container.cpp: pass in a struct to select_symbols. Generate hints for 64-bit VMA and multiple apps in the profile. * pp/opannotate.cpp: * pp/opgprof.cpp: * pp/opreport.cpp: use the above 2003-05-12 John Levon * libpp/format_output.cpp: * libpp/format_flags.h: * pp/opreport.cpp: trivial renaming of flags 2003-05-11 John Levon * libpp/format_output.cpp: * libpp/format_flags.h: better output for the default of short filenames 2003-05-11 John Levon * pp/opreport.cpp: improve the app/image name column showing a bit 2003-05-11 John Levon * pp/opreport.cpp: default to -l if we were just going to show one image summary. 2003-05-11 John Levon * pp/opreport.cpp: move some code around that outputs the image summaries 2003-05-11 John Levon * libpp/format_output.h: * libpp/format_output.cpp: * pp/opreport.cpp: * pp/opreport_options.h: * pp/opreport_options.cpp: s/--short-filename/--long-filenames/ 2003-05-11 John Levon * libpp/profile_spec.h: * libpp/profile_spec.cpp: take exclude_dependent not include_dependent * pp/opannotate_options.c: * pp/opgprof_options.c: * pp/opreport_options.h: * pp/opreport_options.c: change to use exclude_dependent, remove --hide-dependent 2003-05-11 John Levon * locate_images.h: * locate_images.cpp: extra_images can now use relative paths for its search dirs. Move most of the warnings out of find_image_path, and make it also handle relative paths. Return the file even if it wasn't readable. * libpp/partition_files.cpp: give warnings when necessary. * libpp/profile_spec.h: * libpp/profile_spec.cpp: handle relative paths inside image specs, as stated in pp_interface; also use the extra images search path for resolution. * pp/opannotate_options.cpp: * pp/opreport_options.cpp: * pp/opgprof_options.cpp: changes from above 2003-05-11 John Levon * libpp/format_flags.h: source doc improvements 2003-05-11 John Levon * libpp/opp_symbol.h: move vma64_p to ... * libpp/format_flags.h: ... here 2003-05-11 John Levon * libpp/Makefile.am: * libpp/outsymbflags.h: * libpp/format_flags.h: * libpp/profile_container.h: * libpp/format_output.h: * libpp/format_output.cpp: * pp/opreport.cpp: rename outsymbflags to format_flags 2003-05-11 John Levon * profile_container.h: * profile_container.cpp: * opannotate.cpp: clean up select_filename() in a similar fashion 2003-05-11 John Levon * libpp/profile_container.h: * libpp/profile_container.cpp: * pp/opreport.cpp: * pp/opannotate.cpp: * pp/opgprof.cpp: another select_symbols() API cleanup 2003-05-11 John Levon * pp/opgprof.cpp: use select_symbols so we can handle --threshold 2003-05-11 Philippe Elie * pp/opannotate.cpp: use threshold for source output 2003-05-11 John Levon * pp/common_option.h: * pp/common_option.cpp: * pp/opannotate_options.cpp: * pp/opreport_options.cpp: make --threshold be a common option. 2003-05-11 John Levon * pp/profile_container.h: * pp/profile_container.cpp: * pp/opannotate.cpp: * pp/opreport.cpp: clean up select_symbols interface 2003-05-11 John Levon * pp/opreport.cpp: make --threshold work for image summaries too 2003-05-11 John Levon * pp/opreport_options.cpp: fix --threshold description to match reality 2003-05-11 John Levon * libpp/partition_files.h: * libpp/partition_files.cpp: * pp/opannotate_options.cpp: * pp/opgprof_options.cpp: * pp/opreport.cpp: * pp/opreport_options.cpp: rename merge_by members 2003-05-11 John Levon * pp/opreport.cpp: add some logic to not output duplicate lines for dep images when we've already shown all the possible details in the main image summary 2003-05-11 John Levon * pp/common_option.h: use std:: 2003-05-11 Philippe Elie * pp/opreport_options.cpp: move handle_threshold() * pp/common_option.h: * pp/common_option.cpp: here * pp/opannotate_options.h: * pp/opannotate_options.cpp: * pp/opannotate.cpp: handle --threshold 2003-05-10 John Levon * libop/op_mangle.h: * libop/op_mangle.c: use a temp struct for passing the mangle parameters with a set of flags. * dae/opd_sample_files.c: * daemon/opd_sample_files.c: use it 2003-05-10 John Levon * Makefile.am: * HACKING: * libop++/: * pp/Makefile.am: * libpp/Makefile.am: * libpp/op_header.h: * libpp/op_header.cpp: remove libop++ after moving op_header into libpp 2003-05-10 John Levon * libop++/op_header.cpp: make CPU info take up one line not two 2003-05-10 John Levon * libop++/Makefile.am: * libop++/op_header.cpp: * libop++/op_print_event.h: * libop++/op_print_event.cpp: remove op_print_event files, making it a function local to op_header.cpp 2003-05-10 John Levon * libop++/op_header.h: * libop++/op_header.cpp: make output_header() be an operator<< * pp/opannotate.cpp: * pp/opreport.cpp: changes from the above * libpp/profile.h: small cleanup 2003-05-10 Philippe Elie * libutil++/string_manip.h: * libutil++/string_manip.cpp: replace format_percent() by format_double() * libpp/format_output.cpp: * pp/opannotate.cpp: * pp/opreport.cpp: use format_double() 2003-05-09 John Levon * libpp/opp_symbol.h: app name, image name should be in symbol not in file_location * libpp/format_output.cpp: * libpp/profile_container.h: * libpp/profile_container.cpp: * libpp/symbol_container.cpp: * libpp/symbol_functors.cpp: changes from above 2003-05-09 John Levon * libpp/format_output.h: * libpp/format_output.cpp: vma_64 doesn't need to be in field_datum. make one output() private 2003-05-09 John Levon * libpp/format_output.h: * libpp/format_output.cpp: pass a symbol ref not name down into the formatters 2003-05-09 John Levon * libutil++/string_manip.h: * libutil++/string_manip.cpp: sample_filename() is unused 2003-05-09 Philippe Elie * libop++/op_header.h: * libop++/op_header.cpp: read_header() new * libop++/Makefile.in: we depend on libdb * pp/opannotate.cpp: * pp/opreport.cpp: better way to get sample file header 2003-05-09 Philippe Elie * libpp/format_output.cpp: remove redundant map formater * pp/opannotate.cpp: spurious cout 2003-05-08 John Levon * pp/opreport.cpp: * pp/opreport_options.cpp: * pp/opreport_options.h: clean up cout stuff as suggested by Phil 2003-05-08 John Levon * libpp/profile_spec.h: * libpp/profile_spec.c: rename the set_p variables, remove pointless is_empty() function * pp/opreport.cpp: split collation and output into two separate functions. Rename the temporary structures so it's hopefully a bit more obvious what's happening. Add sourcedocs. 2003-05-08 John Levon * pp/opreport_options.h: * pp/opreport_options.cpp: add options::cout, --output-file option * pp/opreport.cpp: use options::cout 2003-05-08 John Levon * pp/format_output.cpp: fix cumulative column widths 2003-05-08 John Levon * opreport_options.h: add accumulated * opreport.cpp: handle --accumulated 2003-05-08 Philippe Elie * libpp/symbol_container.cpp: minor tidy * libpp/profile.h: * libpp/profile.cpp: allow to cumulate sample file * libpp/profile_container.h: * libpp/profile_container.cpp: remove free function add_samples() * pp/annotate.cpp: * pp/opgprof.cpp: * pp/opreport.cpp: when possible cumulate samples into a profile_t first before cumulating them in a profile_container 2003-05-07 John Levon * pp/opannotate.cpp: small cleanup 2003-05-07 John Levon * pp/opreport_options.cpp: remove unneeded include 2003-05-07 John Levon * libpp/Makefile.am: * libpp/parse_cmdline.h: * libpp/parse_cmdline.cpp: rename to ... * libpp/profile_spec.h: * libpp/profile_spec.cpp: this. Make handle_nonoptions() be a static factory create() method instead. Make select_sample_filenames() be a member generate_file_list() instead. Concomitant cleanups. * libpp/filename_spec.h: * pp/opannotate_options.cpp: * pp/opgprof_options.cpp: * pp/opreport_options.cpp: changes from above 2003-05-07 John Levon * libpp/profile.cpp: fix stupid error in last commit 2003-05-07 John Levon * libpp/profile.h: * libpp/profile.cpp: remove sample_filename member, bogus old spurious check, set_start_offset(). * libpp/profile_container.cpp: * pp/opannotate.cpp: * pp/opreport.cpp: changes from above 2003-05-07 John Levon * libpp/derive_files.h: * libpp/derive_files.cpp: rename files as ... * libpp/locate_images.h: * libpp/locate_images.cpp: this. * libpp/Makefile.am: * libpp/partition_files.h: * pp/common_option.h: * pp/opgprof.cpp: * pp/opgprof_options.h: * pp/opreport_options.h: changes from above 2003-05-07 John Levon * libpp/derive_files.h: * libpp/derive_files.cpp: rework into extra_images class * libpp/partition_files.h: * libpp/partition_files.cpp: * pp/common_option.h: * pp/common_option.cpp: * pp/opannotate.cpp: * pp/opgprof.cpp: * pp/opreport.cpp: use the above 2003-05-07 John Levon * libpp/Makefile.am: * session.h: * session.cpp: remove session.{h,cpp} 2003-05-07 Philippe Elie * pp/oprofpp.cpp pp/oprofpp_options.cpp pp/oprofpp_options.h: * pp/op_time.cpp pp/op_time_options.cpp pp/op_time_options.h: * pp/op_to_source.cpp pp/op_to_source_options.cpp: * pp/op_to_source_options.h pp/op_merge.cpp: removed files * pp/Makefile.am: update 2003-05-06 Philippe Elie * pp/opgprof.cpp: infamous typo * pp/opannotate.cpp: output sample file header 2003-05-06 Philippe Elie * libpop++/op_mangling.h: * libpop++/op_mangling.cpp: removed file * libop++/op_header.h: * libop++/op_header.cpp: new file, misc function acting on sample file header stolen from libpp/profile.(cpp|h) * libop++/op_print_event.h: typo * libop++/op_print_event.cpp: save/restore ostream state * libop++/Makefile.am: update * libop/op_sample_file.h: remove dead #define OPD_MANGLE_CHAR * libpp/profile.h: * libpp/profile.cpp: move some member function to free function in libop++/op_header.(cpp|h) * libpp/profile_container.cpp: minor call change * libpp/Makefile.am: op_merge can't be compiled currently inhibit build * libpp/opreport.cpp: output sample file header 2003-05-06 Philippe Elie * libutil++/path_filter.h: default param to empty string not "*" * libpp/symbol_functors.h: remove dead code * pp/opgprof.cpp: off by one in histsize calculation 2003-05-04 Philippe Elie * libutil/op_file.h: * libutil/op_file.c: sanitize create_path() * libutil++/path_filter.h: default ctor match all * libpp/profile_container.h: * libpp/profile_container.cpp: * libpp/sample_container.h: * libpp/sample_container.cpp: * libpp/symbol_container.h: * libpp/symbol_container.cpp: extend api to allow selecting symbol restricted to one application, ditto for retrieving samples * pp/opannotate_options.h: * pp/opannotate_options.cpp: * pp/opannotate.cpp: implement * pp/opgprof_options.h: * pp/opgprof_options.cpp: * pp/opreport_options.h: * pp/opreport_options.cpp: comment fix * pp/opreport.cpp: update to match new profile_container api 2003-05-03 Philippe Elie * pp/opreport.cpp: don't show dependent file if !--include-dependent 2003-05-02 Philippe Elie * libpp/partition_files.h: * libpp/partition_files.cpp: sort_by_image_name() new return a list of sample filename sorted by bfd image name. * libpp/profile_container.cpp: add_samples() don't build op_bfd object used here but pass it as parameters * pp/opgprof.cpp: * pp/opreport.cpp: use the above change to avoid opening multiple time a bfd object. * pp/opannotate_options.cpp: add --(include|exclude)-symbols * libpp/parse_cmdline.cpp: * pp/opgprof_options.cpp: * pp/opreport.cpp: make a distinction in error message between no sample available and sample file available but no one was selected 2003-05-01 Philippe Elie * pp/opannotate_options.h: * pp/opannotate_options.cpp: * pp/opdiff.cpp: * pp/opdiff_options.h: * pp/opdiff_options.cpp: * pp/opgprof.cpp: * pp/opgprof_options.h: * pp/opgprof_options.cpp: * pp/opreport.cpp: * pp/opreport_options.h: * pp/opreport_options.cpp: move common options handling ... * pp/common_option.h: * pp/common_option.cpp: here * pp/opannotate.cpp: add options * libpp/parse_cmdline.cpp: #include ... 2003-05-01 Philippe Elie * libpp/counter_util.h: * libpp/counter_util.cpp: remove these files from cvs * libpp/derive_files.h: * libpp/derive_files.cpp: remove dead code derive_files() + typo * libpp/parse_cmdline.cpp: select_sample_filename() throw if empty session after filtering * pp/common_option.cpp: catch invalid_argument, return failure on catched exception 2003-05-01 Philippe Elie * libutil++/op_bfd.cpp: remove _init from excluded symbol * libpp/profile_container.cpp: tidy * pp/opgprof.cpp: fix capping samples 2003-04-30 John Levon * pp/opgprof.cpp: * pp/opgprof_options.cpp: * libpp/profile.cpp: tiny cleanups, fix compile 2003-04-30 Philippe Elie * libdb/db_stat.c: minor improvement to stat, useful to track missed sample by our tools. * pp/op_report.cpp: move matching_sample_filename() to ... * libpp/parse_cmdline.h: * libpp/parse_cmdline.cpp: here renamed select_sample_filename() * libpp/profile_container.h: * libpp/profile_container.cpp: expose begin() / end() from sample_container * pp/common_option.h: * pp/common_option.cpp: move option which was not really common to .. * pp/opreport_options.h: * pp/opreport_options.cpp: here * pp/opannotate_options.h: * pp/opannotate_options.cpp: and here * pp/operport.cpp: * pp/opannotate.cpp: better to return a value from main() ... * pp/opgprof_options.h: * pp/opgprof_options.cpp: * pp/opgprof.cpp: implement opgprof 2003-04-29 Philippe Elie * libpp/parse_cmdline.h: * libpp/parse_cmdline.cpp: handle opreport /lib/libc-2.2.5.so, now non tag, non option argument match either an image name or lib name 2003-04-29 John Levon * libutil++/op_bfd.cpp: remove "static " inside anon namespace 2003-04-28 Philippe Elie * libpp/format_output.h: * libpp/format_output.cpp: need header tweaking * pp/opannotate.cpp: * pp/opgprof.cpp: minor tidy * pp/opreport_options.h: * pp/opreport_options.cpp: * pp/opreport.cpp: handle -no-header and --image-path 2003-04-28 Philippe Elie * libutil++/glob_filter.cpp: * libutil++/path_filter.cpp: * libutil++/string_filter.cpp: #include 2003-04-28 John Levon * libutil++/string_filter.cpp: * libutil++/string_filter.h: * libutil++/glob_filter.h: * libutil++/glob_filter.cpp: * libutil++/path_filter.h: * libutil++/path_filter.cpp: use std::find[_if], share some code 2003-04-28 Philippe Elie * libutil++/op_bfd.cpp: replace a loop by a std::copy() 2003-04-28 John Levon * libutil++/op_bfd.h: * libutil++/op_bfd.cpp: cleanup of last fix 2003-04-28 John Levon * libutil++/op_bfd.h: * libutil++/op_bfd.cpp: make symbol filtering happen *after* adding of artificial symbol 2003-04-28 John Levon * libutil++/string_filter.cpp: * libutil++/glob_filter.cpp: * libutil++/path_filter.cpp: match as true if include_list is empty and not excluded * libutil++/op_bfd.h: * libutil++/op_bfd.cpp: use string_filter to filter symbols * libpp/profile_container.h: * libpp/profile_container.cpp: * pp/opreport_options.h: * pp/opreport_options.cpp: * pp/opreport.cpp: changes from using string_filter 2003-04-28 Philippe Elie * pp/opreport.cpp: finish to remove use of split_sample_filename 2003-04-28 John Levon * libutil++/filename_match.h: * libutil++/filename_match.cpp: replace with ... * libutil++/Makefile.am: * libutil++/string_filter.h: * libutil++/string_filter.cpp: * libutil++/glob_filter.h: * libutil++/glob_filter.cpp: * libutil++/path_filter.h: * libutil++/path_filter.cpp: .. split up variants of the filters * libpp/parse_cmdline.cpp: use glob_filter * pp/op_to_source.cpp: use path_filter 2003-04-28 Philippe Elie * libpp/partition_files.h: * libpp/partition_files.cpp: * libpp/split_sample_filename.h: * libpp/split_sample_filename.cpp: * pp/opreport.cpp: replace some use of std::string sample_filename by a split_sample_filename struct 2003-04-28 John Levon * libutil++/filename_match.h: * libutil++/filename_match.cpp: use file-scope not private static member function 2003-04-27 Philippe Elie * libpp/format_output.h: * libpp/format_output.cpp: remove all string based output format flag * libpp/format_output.cpp: move options::demangle handling ... * libregx/demangle_symbol.cpp: here * libpp/profile_container.h: * libpp/profile_container.cpp: * pp/opreport_options.h: * pp/opreport_options.cpp: * pp/opreport.cpp: handle --include-symbols 2003-04-27 Philippe Elie * pp/opreport_options.h: * pp/opreport_options.cpp: * pp/opreport.cpp: handle --threshold, remove --ignore-symbols 2003-04-27 John Levon * libpp/: minor spacing etc. 2003-04-27 Philippe Elie * libpp/outsymbflag.h: remove osf_short_xxx variant * libpp/format_output.h: * libpp/format_output.cpp: replace osf_short_xxx by a boolean * libpp/profile_container.cpp: update according * pp/opreport_options.h: export short_filename option * pp/opreport.cpp: use short_filename 2003-04-27 Philippe Elie * libpp/symbol_functors.h: add less_symbol predicate * libpp/symbol_functors.cpp: new file, less_symbol implementation * libpp/Makefile.am: symbol_functors.cpp * libpp/symbol_container.h: * libpp/symbol_container.cpp: use a node based container for symbols ensuring validity of symbol pointer over a symbol_container life time * libpp/sample_container.h: * libpp/sample_container.cpp: ditto as above for samples * libpp/profile_container.h: * libpp/profile_container.cpp: use this new api to merge symbols and sample. * libpp/format_output.h: * libpp/format_output.cpp: use new api to iterate over sample by symbol * pp/opreport.cpp: detailed output 2003-04-27 John Levon * pp/opreport.cpp: make opreport -l put largest results at the top like opreport does 2003-04-26 Philippe Elie * libpp/profile_container.h: comment * pp/opreport_options.h: more options export * pp/opreport.cpp: implement -l. Doesn't works correctly: --merge=lib 2003-04-25 Philippe Elie * pp/opreport_options.h: export global_percent * pp/opreport.cpp: finish to implement op_time like behavior. Remains to implement op_time -l 2003-04-25 Philippe Elie * libpp/partition_files.cpp: fix a crash when profile spec is empty * pp/opreport_options.cpp: bail out if no samples files are found 2003-04-25 John Levon * pp/opreport_options.cpp: --hide-dependent should have 'h' as short form. Add a FIXME for a crash 2003-04-25 Philippe Elie * libpp/partition_files.cpp: thinko in sample filename partition * pp/opreport_options.h: export more options * pp/opreport_options.cpp: add --hide-dependent, change --merge to not default to all * pp/opreport.cpp: handle --hide-dependent --include-dependent and --merge=lib. Code is ugly, tidy incoming 2003-04-25 John Levon * libpp/format_output.cpp: * libpp/format_output.h: * libpp/outsymbflag.h: "immutable" not "imutable" * libpp/partition_files.cpp: include to compile 2003-04-24 Philippe Elie * libpp/partition_files.h: typo * libpp/profile.cpp: difficult to get right result with a random value in profile::start_offset * pp/opreport_options.h: export options::reverse_sort * pp/opreport_options.cpp: bail out if we get multiple counter * pp/opreport.cpp: raw output result for application (not symbol) output. 2003-04-24 Philippe Elie * libpp/filename_spec.h: * libpp/filename_spec.cpp: * libpp/parse_cmdline.h: * libpp/parse_cmdline.cpp: * libpp/split_sample_filename.h: * libpp/split_sample_filename.cpp: s/unit_mask/unitmask * libpp/merge_spec.cpp: * libpp/merge_spec.h: rename to * libpp/partition_files.h: * libpp/partition_files.cpp: here. Add and merge_option. partition_files is now a class. * pp/opreport_options.h: * pp/opreport_options.cpp: * pp/opreport.cpp: update according to the above. Add a roughly support to count samples for plain op_time opreport like 2003-04-24 John Levon * libpp/profile_container.h: * libpp/profile_container.cpp: chop off the _t of the class name * libpp/format_output.cpp: * libpp/format_output.h: * libpp/symbol_container.cpp: * libpp/symbol_container.h: * pp/op_time.cpp: * pp/op_to_source.cpp: * pp/oprofpp.cpp: changes from the above 2003-04-24 John Levon * libpp/profile_container.h: * libpp/profile_container.cpp: pedantry for sample_container indices. * libpp/sample_container.h: * libpp/sample_container.cpp: various cleanups and docs. Add and use size_type. * libpp/symbol_container.h: * libpp/symbol_container.cpp: renamings. Add and use size_type. 2003-04-24 John Levon * libpp/symbol_container.h: * libpp/symbol_container.cpp: remove unused operator[]. Add some docs. Some small cleanups 2003-04-24 John Levon * libpp/symbol_container_imp.h: * libpp/symbol_container_imp.cpp: * libpp/sample_container_imp.h: * libpp/sample_container_imp.cpp: These classes weren't using the pimpl idiom, so the _imp was spurious. Remove that as well as removing the _t from the names, and rename to ... * libpp/symbol_container.h: * libpp/symbol_container.cpp: * libpp/sample_container.h: * libpp/sample_container.cpp: ...files moved from the above with new names. 2003-04-23 Philippe Elie * libutil++/generic_spec.h: minor formating tweak * libpp/parse_cmdline.h: * libpp/parse_cmdline.cpp: handle_non_options(): return parse_cmdline by value * libpp/merge_spec.h: * libpp/merge_spec.cpp: new files: partition list of samples filename according to merge options. * libpp/Makefile.am: update * pp/opreport_options.cpp: more options handling, use partition_files() 2003-04-22 John Levon * pp/opreport_options.cpp: compile fix 2003-04-21 Philippe Elie * libutil++/filename_match.h: * libutil++/filename_match.cpp: add strict_match() * libutil++/generic_spec.cpp: generic_spec::set() was not setting is_all member leading to bad matching * libpp/filename_spec.cpp: minor tidy * libpp/parse_cmdline.h: * libpp/parse_cmdline.cpp: fix match() * libpp/split_sample_filename.h: * libpp/split_sample_filename.cpp: handle sample file base directory * libop++/op_print_event.h: * libop++/op_print_event.cpp: * libpp/format_output.h: * libpp/format_output.cpp: * libpp/opp_symbol.h: * libpp/profile.h: * libpp/profile.cpp: * libpp/profile_container.h: * libpp/profile_container.cpp: * libpp/sample_container_imp.h: * libpp/sample_container_imp.cpp: * libpp/symbol_container_imp.h: * libpp/symbol_container_imp.cpp: * libpp/symbol_functors.h: remove all use of counter number * libpp/counter_array.h: * libpp/counter_array.cpp: * libpp/counter_profile.h: * libpp/counter_profile.cpp: no longer used, move some bits to libpp/profile.(h|cpp) and remove these files. * libpp/Makefile.am: update according * pp/op_merge.cpp: use profile_t not counter_profile_t * pp/makefile.am: correct lib for op_merge * pp/opreport_options.cpp: more options handling 2003-04-19 Philippe Elie * libopt++/popt_options.cpp: don't show help_str with --usage * libpp/format_output.cpp: typo * libutil/op_file.c: create dir with 755 not 700 * pp/common_option.cpp: source formating * libpp/parse_cmdline.h: * libpp/parse_cmdline.cpp: handle_non_options() new * pp/opreport_options.cpp: handle more options * pp/opsummary.cpp: * pp/opsummary_options.h: * pp/opsummary_options.cpp: remove, opreport should do its job. * pp/Makefile.am: update 2003-04-18 Philippe Elie * libopt++/popt_options.cpp: allow "no-" prefix to long option name implicitly specify the value must be negated * libopt++/popt_options.cpp: update doxygen documentation * libpp/format_output.h: missing #include * libpp/format_output.cpp: space + minor change * pp/opannotate_options.h: * pp/opannotate_options.cpp: * pp/opdiff_options.h: * pp/opdiff_options.cpp: * pp/opgprof_options.h: * pp/opgprof_options.cpp: * pp/opreport_options.h: * pp/opreport_options.cpp: * pp/opsummary_options.h: * pp/opsummary_options.cpp: new skeleton file * pp/opannotate.cpp: * pp/opdiff.cpp: * pp/opgprof.cpp: * pp/opreport.cpp: * pp/opsummary.cpp: update to handle options * pp/common_option.cpp: follow more closely pp_interface * pp/opsummary_options.cpp: start to handle opsummary option * pp/Makefile.am: update 2003-04-17 Philippe Elie * libpp/format_output.h: * libpp/format_output.cpp: * libpp/outsymbflag.h: * libpp/profile_container.h: * libpp/profile_container.cpp: osf_header/osf_details are no longer flags but separate boolean. 2003-04-17 Philippe Elie * dae/opd_kernel.c: * daemon/opd_kernel.c: remove leading '/' on module name fixing 2.5 module not under {kern} and similar case for "no-vmlinux" with 2.4/2.5 * libutil/op_file.c: tiny tidy 2003-04-17 Philippe Elie * libop/op_mangle.c: app_name and image was reversed, {dep} was missing 2003-04-17 John Levon * libpp/filename_spec.h: * libutil++/comma_list.h: compile fixes 2003-04-17 Philippe Elie * utils/opcontrol: better --reset handling 2003-04-16 Philippe Elie * dae works, daemon compiles but not tested. * libop/op_config.h: * libpp/op_session.h: * libpp/session.cpp: * pp/op_merge: handle new path to samples files. * libutil++/file_manip.h: * libutil++/file_manip.cpp: move create_dir(), create_path() ... * libutil/op_file.h: * libutil/op_file.c: here. Remove op_move_regular_file() * daemon/opd_image.c: * daemon/opd_sample_files.h: * daemon/opd_sample_files.c: * dae/opd_image.c: * dae/opd_sample_files.h: * dae/opd_sample_files.c: use new filename scheme * daemon/oprofiled.c: * dae/oprofiled.c: remove samples files backup stuff * libop/op_mangle.h: * libop/op_mangle.c: ugly modification to handle new samples filename * utils/opcontrol: handle new samples files path, --save and --reset are working too. * gui/oprof_start_util.cpp: use new create_path() API 2003-04-16 Philippe Elie * pp/common_option.cpp: * pp/common_option.h: * libregex/demangle_symbol.cpp: rename demangle_and_shrink to smart_demangle 2003-04-16 Philippe Elie * starting branch pp-interface-branch * Makefile.am: * configure.in: handle new sub dir libpp * libutil++/comma_list.h: new file handling of comma separated list of items. * libutil++/generic_spec.cpp: * libutil++/generic_spec.h: new file * libutil++/Makefile.am: handle new file * pp/counter_array.*: * pp/counter_profile.*: * pp/counter_util.*: * pp/derive_files.*: * pp/format_output.*: * pp/opp_symbol.h: * pp/outsymbflag.h: * pp/profile.*: * pp/profile_container.*: * pp/sample_container_imp.*: * pp/session.*: * pp/symbol_container_imp.*: * pp/symbol_functors.*: move to * libpp/*: here * libpp/filename_spec.cpp: * libpp/filename_spec.h: new file handling of pp sample filename * libpp/parse_cmdline.cpp: * libpp/parse_cmdline.h: new file, handling of command line tag:value * libpp/Makefile.am: new file build libpp.a * pp/common_option.h: * pp/common_option.cpp: common option to pp tools. Implement common entry point to pp tools. * pp/opannotate.cpp: * pp/opdiff.cpp: * pp/opgprof.cpp: * pp/opreport.cpp: * pp/opsummary.cpp: skeleton file for all pp tools. * pp/Makefile.am: remove old pp tools, add the news. 2003-04-28 Alex Tsariounov * module/ia64/op_pmu.c: fix compile 2003-04-24 Philippe Elie * module/compat22.h: add cpuid_edx when linux version < 2.2.21 2003-04-24 Dave Jones * events/x86-64.hammer.events: * events/x86-64.hammer.unit_masks: typo fixes from AMD. * module/x86/cpu_type.c: Check for APIC on Athlon before enabling it. 2003-04-15 Philippe Elie * events/i386-ht.events: all events allow only one counter, remove three events due to ESCR restriction. * events/i386.events: add some comments. * module/x86/op_model_p4.c: synch with linux 2.5 mainline - except events CTR_BPU_0 all virtual counter was not working. - Prevents a segfault when using incorrect counter number. - ESCR event select is 6 bits length not 5. - Don't fail silently in p4_setup_ctrs(). * module/x86/op_msr.h: match name used in linux. 2003-04-15 John Levon * doc/oprofile.1.in: * doc/oprofile.xml: small english fixes 2003-04-14 Philippe Elie * dae/opd_kernel.c: * dae/opd_proc.c: * dae/oprofiled.c: * utils/opcontrol: * doc/oprofile.1.in: * doc/oprofile.xml: handle --no-vmlinux * daemon/opd_kernel.c: use no-vmlinux not /no-vmlinux when user specify --no-vmlinux 2003-04-08 John Levon * HACKING: describe what happens with oprofile-www 2003-04-08 Philippe Elie * libutil++/op_bfd.cpp: check for #717720 and direct user to FAQ if detected. Note than we don't detect all symptom of this bug. 2003-04-08 Philippe Elie * libutil++/op_exception.h: op_runtime_error is no longer abstract * libregex/op_regex.h: comment and tidy * libregex/op_regex.cpp: tidy 2003-04-07 Philippe Elie * pp/op_to_source.cpp: make each line be prefixed with the samples counts. It was too hard to find samples inside previous format. 2003-04-07 Philippe Elie * libutil++/string_manip.cpp: work around for gcc 2.95 * p/op_to_source.cpp: minor cleanup 2003-04-07 John Levon * pp/op_to_source.cpp: cheat a bit to get better indentation on the default setup, by widening counter width to 7. 2003-04-07 John Levon * pp/op_to_source.cpp: append symbol summary annotations separate from the prolog samples on the same line. 2003-04-07 John Levon * pp/op_to_source.cpp: only output line 0 annotation if samples found there. 2003-04-07 John Levon * utils/opcontrol: make sure --ctrX-event=none gets noticed 2003-04-06 John Levon * libutil++/string_manip.h: * libutil++/string_manip.cpp: remove ws_prefix(). Add format_percent(). * pp/op_to_source.cpp: make each line be prefixed with the sample counts, instead of on a line above, to preserve line numbering. 2003-04-06 John Levon * pp/op_to_source.cpp: some renamings for clarity 2003-04-06 John Levon * pp/op_to_source.cpp: move extract_blank_at_begin() to ... * libutil++/string_manip.cpp: ... here, and rename as ws_prefix(). 2003-04-06 John Levon * pp/op_to_source.cpp: prefix comment lines. Output the general footer on each separate file. Output the info at the bottom when outputting separate files (towards maintaining line numbering). 2003-04-06 John Levon * pp/op_to_source.cpp: construct a file-scope cmdline string, instead of passing it around. 2003-04-06 John Levon * libregex/op_regexp.cpp: re-arrange a bit 2003-04-06 John Levon * configure.in: * all Makefile.am: don't blindly set $LIBS, use explicit mention of which libs are needed. * dae/Makefile.am: * daemon/Makefile.am: only link with C++ if needed. 2003-04-05 Philippe Elie * libop/op_config_24.h: * module/oprofile.c: * module/oprofile.c: make watermark size proportional to buffer size. 2003-04-05 Philippe Elie * libop/op_events.h: * libop/op_events.c: re-add op_min_count(); * dae/oprofiled.c: * daemon/oprofiled.c: use op_min_count() fixing #715923 2003-04-01 John Levon * libdb/Makefile.am: fix make dist * daemon/opd_cookie.h: add SPARC syscall number. The system call function is OK for sparc/sparc64 2003-03-31 Will Cohen * libdb/odb_hash.h: Renamed db_hash.h. * dae/Makefile.am: * dae/opd_image.c: * dae/opd_image.h: * dae/opd_proc.c: * dae/opd_sample_files.c: * daemon/Makefile.am: * daemon/opd_image.c: * daemon/opd_image.h: * daemon/opd_sample_files.c: * libabi/Makefile.am: * libabi/abi.cpp: * libabi/abi_test.cpp: * libabi/op_import.cpp: * libdb/Makefile.am: * libdb/db_debug.c: * libdb/db_hash.h: * libdb/db_insert.c: * libdb/db_manage.c: * libdb/db_stat.c: * libdb/db_test.c: * libdb/db_travel.c: * pp/Makefile.am: * pp/counter_profile.cpp: * pp/counter_profile.h: * pp/op_merge.cpp: Change names to avoid libdb.a name conflicts. 2003-03-30 John Levon * configure.in: bump to 0.6cvs * doc/oprofile.xml: fix id. Add java etc. mention * utils/Makefile.am: * utils/op_start: * utils/op_start_25: * utils/op_stop: * utils/op_stop_25: * utils/op_dump: * utils/op_dump_25: * utils/op_session: finally remove the back compat crap * HACKING: add release-notes policy 2003-03-30 John Levon * configure.in: bump to 0.5.2 2003-03-30 John Levon * Makefile.am: remove op_arch.h for ia64 2003-03-27 John Levon * doc/oprofile.xml: several more examples and fixes 2003-03-26 John Levon From a patch by Bryan Rittmeyer. * module/oprofile.c: * module/oprofile.h: push "irq_enabled" test into arch code, don't pass struct pt_regs. * module/x86/op_arch.h: cleanups * module/x86/op_model_athlon.c: * module/x86/op_model_ppro.c: * module/x86/op_model_p4.c: * module/x86/op_rtc.c: changes from above * module/ia64/op_arch.h: remove * module/ia64/op_pmu.c: change from above 2003-03-24 John Levon * doc/oprofile.xml: document prologues, and inline functions 2003-03-24 Will Cohen * libutil/op_fileio.c (op_get_line): Use lower cost getc(). 2003-03-24 John Levon * m4/configmodule.m4: fix quoting problem for awk 2003-03-23 John Levon * configure.in: * m4/: move lots of stuff into separate .m4 files * m4/typedef.m4: improve configure message 2003-03-23 John Levon * configure.in: * m4/Makefile.am: * m4/copyifchange.m4: * m4/docbook.m4: * m4/kerneloption.m4: * m4/kernelversion.m4: * m4/resultyn.m4: move configure.in macros to m4/ 2003-03-23 John Levon * m4/ChangeLog: add comment * m4/typedef.m4: can't use AC_LANG_PUSH/POP 2003-03-23 Philippe Elie * TODO: update * m4/Makefile.am: * m4/typedef.m4: new file to get underlined type for a typedef. * configure.in: get at configure time the real underlined type for size_t and ptrdiff_t * libregex/stl.pat: move to ... * libregex/stl.pat.in: here. Use @SIZE_T_TYPE@ and @PTRDIFF_T_TYPE@ * libregex/Makefile.am: update according * libregex/.cvsignore: ignore stl.pat 2003-03-22 Philippe Elie * utils/opcontrol: use $OP_HELP not op_help * utils/op_help.c: remove short option for --get-cpu-frequency 2003-03-22 Philippe Elie * TODO: update * m4: new directory * m4/.cvsignore: new * acinclude.m4: move to * m4/qt.m4: here * m4/Makefile.am: new for EXTRA_DIST = all our .m4 * Makefile.am: * configure.in: * autogen.sh: handle m4 subdir, add -I m4 to aclocal flags 2003-03-22 Philippe Elie Suggested by John * libutil/op_cpufreq.c: typo in comment * utils/op_help.c: add --get-cpu-frequency, intentionnaly not documented. * utils/opcontrol: use op_help --get-cpu-frequency and remove ugly shell script doing the same thing. 2003-03-22 Philippe Elie * libutil/op_cpufreq.h: * libutil/op_cpufreq.c: new file exporting op_cpu_frequency() * libutil/Makefile.am: update according * utils/opcontrol: handle other arch * gui/oprof_start_util.h: * gui/oprof_start_util.cpp: remove get_cpu_speed() * gui/oprof_start.h: * gui/oprof_start.cpp: and use instead op_cpu_frequency() * daemon/oprofiled.c: * dae/oprofiled.c: replace --cpu-speed option by a call to op_cpu_frequencey() 2003-03-20 John Levon * doc/oprofile.xml: doc some 2.5 module stuff 2003-03-20 John Levon * utils/opcontrol: fix opcontrol --dump to do something * daemon/opd_image.c: give a printf when reading the buffer. 2003-03-19 Philippe Elie * libutil++/op_bfd.cpp: correct get_vma_range() * pp/oprofpp.cpp: do_dump_gprof() this time it's right! 2003-03-18 John Levon * pp/profile.cpp: improve mtime warning for 2.5 modules 2003-03-18 John Levon * pp/derive_files.cpp: some more 2.5 modules derivation fixes 2003-03-18 Philippe Elie * pp/derive_files.cpp: fix handling of 2.5 module name 2003-03-18 John Levon * daemon/opd_image.c: * libop/op_interface_25.h: rename to MODULE_LOADED_CODE 2003-03-18 Philippe Elie * TODO: update * pp/derive_files.cpp: special to retrieve 2.5 module 2003-03-18 Philippe Elie * TODO: update * pp/symbol_container_imp.h: * pp/symbol_container_imp.cpp: * pp/profile_container.h: * pp/profile_container.cpp: find(string symbol_name) return a vector of symbol rather a a single symbol * pp/oprofpp.cpp: use above change so oprofpp -s will show all symbol with the same name. * pp/symbol_functors.h: remove unused functors equal_symbol_by_name 2003-03-17 Philippe Elie * TODO: update * libutil/op_fileio.h: * libutil/op_fileio.c: op_write_u64() new * libutil/op_types.h: continue our silly typedef: add u64 * libutil++/op_bfd.h: * libutil++/op_bfd.cpp: op_bfd::arch_bits_per_address() new allowing to get, on a per-binary basis, the vma size. * pp/oprofpp.cpp: fix 64 bits arch gprof output. Fix multiplier and get the multiplier of gprof file at runtime. Fix a very old bug where we credit the samples to previous gprof bin having the effect than sample at start of function was credited to the previous function 2003-03-17 John Levon * daemon/opd_kernel.c: * daemon/opd_kernel.h: * daemon/opd_image.c: * daemon/oprofiled.c: don't try to reread the module list on a failed EIP match. We must have the module load notification instead. 2003-03-17 John Levon * daemon/opd_kernel.c: fix module accounting. Remove quick-drop code that can't work. * doc/oprofile.1.in: * doc/oprofile.xml: english tweaks 2003-03-17 Philippe Elie * TODO: update * doc/oprofile.1.in: * doc/oprofile.xml: remove documentation about -P, update doc about -p * pp/derive_files.h: * pp/derive_files.cpp: check_image_name(), add_to_alternate_filename() functions moved from op_time.cpp * pp/op_time_options.h: * pp/op_time_options.cpp: * pp/op_time.cpp: remove -P option, minor cleanup * pp/oprofpp_options.h: * pp/oprofpp_options.cpp: * pp/oprofpp.cpp: add -p option, minor cleanup * pp/op_to_source.cpp: minor cleanup 2003-03-16 Philippe Elie * utils/opcontrol: check return code for --ctr??-event=none 2003-03-16 Philippe Elie * gui/oprof_start.cpp: check for --separate=xxxx in the right order. Old code do: if user set separate=library and separate=kernel only separate=library was taken by opcontrol 2003-03-16 Philippe Elie * configure.in: typo 2003-03-16 John Levon * configure.in: more docbook macro fixes 2003-03-15 Philippe Elie * libutil/op_libiberty.h: cut&paste typo breaking compilation on box w/o libiberty.h * daemon/opd_image.c: remove bogus fprintf. compilation was broken on alpha. * configure.in: xsltproc checking fix, was always accepted even on box where xsltproc is not installed 2003-03-15 Philippe Elie * TODO: update * Makefile.am: add ChangeLog-2002 in dist files * all Makefile.am: put one item by line for most xxxx = blah * doc/CodingStyle: rationale for the above change 2003-03-15 Philippe Elie * libop/op_events.c: minor cleanup 2003-03-15 Dave Jones * module/x86/op_nmi.c: Remove stale debug code from yesterdays commit. 2003-03-15 Philippe Elie * configure.in: add checking for existence of xmemdup() * libutil/Makefile.am: * libutil/op_string.h: * libutil/op_string.c: new, a few C string handling function * libutil/op_libiberty.h: * libutil/op_libiberty.c: xmemdup() new. * libop/op_events.h: * libop/op_events.c: tidy parser. Add op_free_events(). Fix minor buglet. * dae/oprofiled.c: * daemon/oprofiled.c: fix memleak from parsing events files * gui/Makefile.am: * pp/Makefile.am: fix lib ordering, now libop depend on libutil * utils/op_help.c: error message if invalid cpu type. Fix op_help when using timer interrupt. 2003-03-14 Andi Kleen * module/x86/op_nmi.c: Fix another possible race condition. 2003-03-14 Philippe Elie * TODO: update * libregex/stl.pat: support for rb tree, set/map, anonymous namespace. Fix incorrect pattern for gcc 3.2. Handle 2.95 vector/string iterator and a few stl free function handling. add all C++ base type. * libregex/mangled-name.txt: test for the above change 2003-03-14 Philippe Elie * gui/oprof_start.cpp: gcc 2.91 warning work around 2003-03-14 Philippe Elie * libop/op_events.c: fix a daemon segfault depending on the used libc version, added 2003-03-04 (0.5.1 is ok) 2003-03-13 Dave Jones * events/x86-64.hammer.events: Remove duplicate minimum tag from RETIRED_INSNS counter. 2003-03-11 John Levon * module/ia64/op_pmu.c: include op_arch.h not arch.h 2003-03-10 Philippe Elie * configure.in: remove unsupported --warnnet, fix docbook root dir test * doc/oprofile.xml: typo 2003-03-10 John Levon * doc/Makefile.am: * configure.in: * doc/xsl/catalog-1.xml.in: more docbook changes 2003-03-10 John Levon * configure.in: * doc/Makefile.am: * doc/xsl/xhtml.xsl: * doc/xsl/xhtml-chunk.xsl: * doc/xsl/catalog-1.xml.in: Use a catalog for finding the XSL, so we only have one .in file now. 2003-03-08 Will Cohen * doc/Makefile.am: Correct path for htmldir. 2003-03-08 John Levon * libop/op_cpu_type.c: improve error message * utils/op_help.c: show CPU name in events list. Show CPU pretty name in op_help --get-cpu-type. 2003-03-08 John Levon * configure.in: specify distcheck ./configure flags. Add version.h to distclean. * doc/Makefile.am: * doc/xsl/xhtml-1.in: * doc/xsl/xhtml-chunk-1.in: fix make distcheck 2003-03-08 Philippe Elie * doc/xsl/.cvsignore: update * module/x86/cpu_type.c: is not necessary 2003-03-07 John Levon * README: document autogen.sh 2003-03-07 Philippe Elie * TODO: update * doc/xsl/xhtml.xsl.in: move to * doc/xsl/xhtml-1.xsl.in: here * doc/xsl/xhtml-chunk.xsl.in: move to * doc/xsl/xhtml-chunk-1.xsl.in: here * doc/Makefile.am; update according * configure.in: avoid to touch doc/xsl generated files 2003-03-07 Philippe Elie * TODO: update * daemon/opd_image.c: * daemon/op_stats.c: * daemon/opd_stats.h: add statistics for nil image whilst receiving user space samples. 2003-03-06 Philippe Elie * TODO: update * libdb/db_hash.h: * libdb/db_insert.c: get error message from db_insert() * libdb/db_test.c: * dae/opd_proc.c: * daemon/opd_image.c: * libabi/abi_test.cpp: * libabi/op_import.cpp: * pp/op_merge.cpp: update according to the new api 2003-03-06 John Levon * doc/oprofile.xml: pedantry 2003-03-06 Philippe Elie * TODO: update * doc/oprofile.1.in: * doc/oprofile.xml: document --smart-demangle 2003-03-06 Philippe Elie * module/ia64/op_pmu.c: * module/x86/op_nmi.c: remove #include 2003-03-06 John Levon * utils/opcontrol: sh != C. This is the last opcontrol bug, honest ! OK, maybe not. 2003-03-06 Philippe Elie * TODO: update * gui/oprof_start.cpp: save_config() gcc 2.95.3 warning work-around 2003-03-05 John Levon * utils/opcontrol: Make --setup optional (e.g. opcontrol --no-vmlinux). Fix a bug in the --setup exclusive arg testing. * doc/oprofile.xml: reflect the above 2003-03-05 John Levon * libutil++/string_manip.h: * libutil++/string_manip.cpp: cleanup, use s.find because older gcc's don't have the right s.compare 2003-03-04 John Levon * utils/opcontrol: only sleep 2 after dump on 2.4 2003-03-04 John Levon * configure.in: tweak the xsltproc test 2003-03-04 John Levon * configure.in: * doc/Makefile.am: don't try to build the docs if it will fail. 2003-03-04 John Levon * utils/opcontrol: * daemon/opd_kernel.h: * daemon/opd_image.c: * daemon/opd_kernel.c: * daemon/oprofiled.c: implement --no-vmlinux. Remove back compat for is_kernel. * gui/uioprof_start.base.ui: * gui/oprof_start.cpp: * gui/oprof_start_config.h: * gui/oprof_start_config.cpp: support the above * doc/oprofile.1.in: * doc/oprofile.xml: doc the above 2003-03-04 John Levon * utils/opcontrol: allow --version, --help early on 2003-03-04 John Levon * libop/op_events.c: alter the parser to give file/linenr on error, and handle more whitespace. 2003-03-04 John Levon * gui/oprof_start.cpp: * gui/oprof_start.h: * gui/oprof_start_config.cpp: * gui/oprof_start_config.h: * libutil++/string_manip.h: * libutil++/string_manip.cpp: add is_prefix(), make the trimmers take an argument 2003-03-04 John Levon * gui/oprof_start.cpp: * gui/oprof_start.h: * gui/oprof_start_config.cpp: * gui/oprof_start_config.h: * gui/persistent_config.h: * libutil++/string_manip.h: * libutil++/string_manip.cpp: add split(), tobool(), touint() * utils/opcontrol: don't write BUF_SIZE twice. Write RTC_VALUE properly. Write KERNEL_ONLY 2003-03-03 John Levon * gui/oprof_start.cpp: use --ctrX-event=none, --separate=none. --pid/pgrp-filter=0 was already being done. 2003-03-03 John Levon * doc/oprofile.1.in: * doc/oprofile.xml: * doc/opcontrol: add --ctrX-event=none 2003-03-03 Will Cohen * gui/oprof_start.cpp (oprof_start::on_start_profiler): Limit check to only utm_bitmask. 2003-03-03 Will Cohen * events/ia64.itanium2.events: * events/ia64.itanium2.unit_masks: Add Itanium 2 events. 2003-03-03 Will Cohen * libop/op_events.h: * libop/op_events.c: Correct checking for the number of unit masks. 2003-03-03 John Levon * doc/oprofile.1.in: * doc/oprofile.xml: another round of cleanups * pp/op_merge.cpp: --counter not --use-counter, for consistency 2003-03-03 John Levon Patch from Chris Moller, modified. * dae/opd_proc.c: * dae/opd_sample_files.c: * daemon/opd_image.c: * daemon/opd_sample_files.c: * libabi/abi_test.cpp: * libabi/op_import.cpp: * libdb/db_hash.h: * libdb/db_insert.c: * libdb/db_manage.c: * libdb/db_test.c: * pp/counter_profile.cpp: * pp/op_merge.cpp: push asserts in libdb down into the clients. 2003-03-03 John Levon * doc/oprofile.xml: * doc/oprofile.1.in: * utils/opcontrol: add --separate=none, --pid/pgrp-filter=non 2003-03-03 John Levon * configure.in: * doc/Makefile.am: * doc/oprofile.xml: * doc/xsl/xhtml-chunk.xsl.in: * doc/xsl/xhtml.xsl.in: * doc/xsl/xhtml-common.xsl: Add version to the docs. Some doc cleanups 2003-03-02 John Levon * utils/opcontrol: --separate=library should turn kernel off 2003-03-02 John Levon * events/Makefile.am: fix uninstall 2003-03-02 John Levon * doc/oprofile.xml: more re-workings prodded by aeb 2003-03-02 John Levon * daemon/opd_kernel.c: remove /proc/ksyms reading 2003-03-02 John Levon * libutil/op_fileio.c: change op_get_line to return NULL on EOF. Also bump up the default allocation some. * dae/opd_kernel.c: * dae/opd_parse_proc.c: * daemon/opd_kernel.c: * libop/op_events.c: changes from the above 2003-03-02 John Levon * configure.in: * Makefile.am: * events/: add text files describing the CPU counters and unit masks. Install them. * libop/op_events.h: * libop/op_events.c: remove the bletcherous hard coded descriptions. * module/ia64/op_pmu.c: * module/x86/op_nmi.c: remove another big of validation * libutil/op_list.h: make C++ friendly * libop/op_cpu_type.h: * libop/op_cpu_type.c: add op_get_cpu_name() * libop/Makefile: * libop/op_events_desc.h: * libop/op_events_desc.cpp: removed * libop++/op_print_event.cpp: * utils/Makefile.am: * utils/op_help.c: * gui/oprof_start.h: * gui/oprof_start.cpp: changes from above 2003-03-01 John Levon * doc/oprofile.xml: tweaks * utils/opcontrol: scale the default event count. Please test ... 2003-03-01 John Levon * utils/opcontrol: setup default events. Allow part-setting using --setup. Fix a help text. * doc/oprofile.xml: changes from the above 2003-03-01 John Levon * libop/op_cpu_type.c: fix alpha/ev4 mis-detection 2003-03-01 John Levon * doc/oprofile.xml: expand intro a little, small fixes 2003-03-01 John Levon * pp/format_output.cpp: use "%" not "%-age" 2003-02-28 John Levon * utils/opcontrol: fix IS_TIMER setting, noticed by Duncan Sands 2003-02-28 John Levon * configure.in: bump to 0.6cvs 2003-02-28 John Levon * doc/Makefile.am: tweak * libregex/Makefile.am: fix make dist 2003-02-27 John Levon * configure.in: bump to 0.5.1 2003-02-27 John Levon * doc/oprofile.xml: clarify --separate=kernel 2003-02-25 John Levon * configure.in: clarify --with-kernel-support * libop/op_events.c: * module/x86/op_nmi.c: * module/ia64/op_nmi.c: remove sanity checking - it's the wrong place to have such code, is a barrier to op_events cleanup, and makes life harder for NDAers. 2003-02-25 Will Cohen * utils/opcontrol (do_deinit): Correct search for /dev/oprofile. 2003-02-24 Dave Jones * module/x86/op_apic.[c|h]: move NMI gate setup to architecture specific SET_NMI_GATE macro. x86=no change. Make x86-64 use the kernels _set_gate instead of its own open coded variant. 2003-02-23 John Levon * version-1.h.in: another rename 2003-02-23 John Levon * configure.in: set up OP_DATADIR and OP_BINDIR * gui/oprof_start.cpp: * libregex/demangle_symbol.cpp: use the above * version_tpl.h.in: move to ... * version.h.in.in: ... here 2003-02-23 Philippe Elie * TODO: update * configure.in: add AX_COPY_IF_CHANGE() use it to generate version.h * .cvsignore: update * gui/Makefile.am: * gui/oprof_start.cpp: * libregex/Makefile.am: * libregex/demangle_symbol.cpp: don't use -DBINDIR, rather include version.h to get install path 2003-02-23 John Levon * README: quick start build insns 2003-02-23 Philippe Elie * TODO: update * libregex/Makefile.am: install stl.pat in $prefix/share/oprofile * libregex/demangle_symbol.cpp: use DATADIR not BINDIR * libregex/magle-name.txt: add test for pointer * libregex/stl.pat: partial support for pointer 2003-02-23 John Levon * autogen.sh: error out if options passed 2003-02-23 John Levon * libregex/op_regex.h: * libregex/regex_test.cpp: fix std:: 2003-02-23 Philippe Elie * libutil++/demangle_symbol.cpp: * libutil++/demangle_symbol.h: move to * libregex/demangle_symbol.cpp: * libregex/demangle_symbol.h: here to avoid circular reference between libutil++ and libregex * libregex/Makefile.am: * libutil++/Makefile.am: update according to file move * pp/Makefile.am: * pp/op_time.cpp: * pp/op_time_options.cpp: * pp/op_to_source.cpp: * pp/op_to_source_options.cpp: * pp/oprofpp.cpp: * pp/oprofpp_options.cpp: add -D --Demangle options enabling C++ demangled name filtering. 2003-02-23 Philippe Elie * libutil++/string_manip.h: * libutil++/string_manip.cpp: trim(), ltrim(), rtrim() new functions * Makefile.am: handle libregex directory * configure.in: handle libregex/Makefile * libregex/.cvsignore: * libregex/Makefile.am : * libregex/mangled-name.txt: * libregex/op_regex.cpp: * libregex/op_regex.h: * libregex/regex_test.cpp: * libregex/stl.pat: new file implementing a match and replace regular expression around glibc regex. Not used for now, next commit will use this for pp tools C++ name demangling. 2003-02-22 John Levon * configure.in: fix X, non-Qt build case 2003-02-22 John Levon * libutil++/Makefile.am: fix make dist 2003-02-21 Dave Jones * configure.in: Enable building on hammer again. 2003-02-21 John Levon * utils/opcontrol: "Params used" was lying 2003-02-20 John Levon * daemon/opd_image.c: Fixed a bitch of a bug with separate-kernel, now attribution of kernel samples should be more accurate 2003-02-20 John Levon * utils/opcontrol: set LIB_SAMPLES if KERNEL_SAMPLES in .daemonrc 2003-02-20 John Levon * dae/opd_stats.h: * dae/opd_stats.c: * daemon/opd_stats.h: * daemon/opd_stats.c: * dae/opd_proc.c: * daemon/opd_image.c: remove unused OPD_SAMPLE_COUNTS. Actually count samples for 2.5 2003-02-20 John Levon * libop/op_interface_25.h: * daemon/opd_kernel.c: implement module dropping * daemon/opd_image.c: * daemon/opd_kernel.c: attempt to make verbose logs less confusing 2003-02-22 Dave Jones * libop/op_events.c: segregload is utm_mask not utm_exclusive 2003-02-20 Philippe Elie * TODO: update * pp/output_format.h: * pp/output_format.cpp: * pp/op_time.cpp: * pp/oprofpp.cpp: * pp/opp_symbol.h: better handling of 64/32 bits bfd_vma in output 2003-02-20 John Levon * libutil++/op_exception.h: * libutil++/op_exception.cpp: throw() where needed 2003-02-19 Philippe Elie * TODO: update * daemon/opd_image.h: * daemon/opd_image.cpp: * daemon/opd_kernel.cpp: fix thinko with --separate=kernel resulting in duplicate opening of the same samples file. 2003-02-19 Philippe Elie * libutil++/op_exception.h: * libutil++/op_exception.cpp: new files, base class for exception. Not used for now. 2003-02-19 John Levon * acinclude.m4: update from upstream * gui/ui/oprof_start.base.ui: * gui/oprof_start.cpp: separate --setup,--start. Hide non-2.5 stuff in 2.5. 2003-02-18 Philippe Elie * TODO: update * dae/opd_sample_files.c: * daemon/opd_sample_files.c: opd_handle_old_sample_file() don't try to delete old samples files if they don't exist. 2003-02-18 Will Cohen * utils/opcontrol (do_options): Better option error checking. 2003-02-17 Will Cohen * pp/format_output.h (show_help): namespace std. 2003-02-17 Will Cohen * TODO: update. 2003-02-17 Philippe Elie From Anton Blanchard : * daemon/opd_image.c: cookie_t fix for 64 bits 2003-02-17 Philippe Elie * TODO: update * libopt++/popt_options.cpp: * libopt++/popt_options.h: handle an user specific additional help string * pp/output_format.h: * pp/output_format.cpp: * pp/op_time_options.cpp: * pp/oprofpp_options.cpp: use it to show in --output_format options details. 2003-02-14 Philippe Elie * doc/oprofile.1.in: * doc/oprofile.xml: * pp/oprofpp_options.cpp: allow --show-shared-libs with -s 2003-02-13 Philippe Elie * TODO: update * pp/output_format.h: * pp/output_format.cpp: fix #686272, crash when using oprofpp -s symb_name. 2003-02-13 Philippe Elie * dae/opd_kernel.h: * dae/opd_image.h: * dae/opd_image.c: don't use hash entry zero for kernel image fix #686175 2003-02-13 Will Cohen * daemon/opd_cookie.h(opd_nr_lookup_dcookie): Correct number. 2003-02-13 Will Cohen * daemon/opd_cookie.h(opd_nr_lookup_dcookie): Add x86_64. 2003-02-13 John Levon * dae/opd_image.c: little cleanup and fix error message to not lie 2003-02-12 Philippe Elie * doc/oprofile.1.in: * doc/oprofile.xml: enhance doc about --separate=kernel * utils/opcontrol: handle gracefully opcontrol --deinit if profiler was already shutdown. Avoid wrong warning when umount /dev/oprofile 2003-02-12 Will Cohen * gui/oprof_start.cpp (oprof_start::oprof_start, oprof_start::on_flush_profiler_data, oprof_start::on_start_profiler, oprof_start::on_stop_profiler): Use opcontrol. * gui/oprof_start_util.cpp (daemon_status::daemon_status): Allow reading interrupt info from new kernel interface. * libop/op_get_interface.c: New. * libop/Makefile.am: Add libop/op_get_interface.c. * libop/op_cpu_type.h: Add enum op_interface. I Added some bits. Phil * gui/oprof_start.cpp: correct --separate= handling * gui/oprof_start_util.cpp: read only the real number of interrupts 2003-02-12 Philippe Elie * utils/opcontrol: handle --note-table-size --kernel-only (2.4 kernel) 2003-02-12 Philippe Elie * utils/op_start: map --separate-samples to daemon option --separate-lib-samples. 2003-02-11 Philippe Elie * dae/opd_image.c: * dae/opd_kernel.c: * dae/opd_kernel.h: * dae/opd_parse_proc.c: * dae/opd_proc.c: * dae/opd_proc.h: * dae/opd_sample_files.c: * dae/oprofiled.c: * daemon/opd_image.c: * daemon/opd_image.h: * daemon/opd_kernel.c: * daemon/opd_kernel.h: * daemon/opd_sample_files.c: * daemon/oprofiled.c: per application kernel samples files * doc/oprofile.1.in: * doc/oprofile.xml: document opcontrol --separate=kernel * gui/oprof_start.cpp: * gui/oprof_start_config.cpp: * gui/oprof_start_config.h: * gui/ui/oprof_start.base.ui: remove ignore_daemon checkbox, handle --separate=[library|kernel] * libop/op_sample_file.h: add separate_kernel_samples field, file format is backward compatible * libabi/abi.cpp: * libabi/abi_test.cpp: * libabi/op_import.cpp: handle new samples file header field * pp/counter_profile.cpp: dump new sample files header field. * utils/opcontrol: handle --separate=kernel 2003-02-09 Will Cohen * utils/opcontrol: Add rtc-value option. 2003-02-09 John Levon * utils/opcontrol: stale lock file detection 2003-02-06 Will Cohen * utils/opcontrol (do_dump): Do not exit if no daemon. 2003-02-06 Will cohen * doc/oprofile.1.in: Update man page information. 2003-02-03 John Levon * configure.in: 0.6cvs 2003-02-02 John Levon * configure.in: bump to 0.5 2003-02-02 John Levon * configure.in: disable x86_64 2003-02-02 John Levon * pp/format_output.cpp: revert previous patch, Phil's x86 binutils is built with 64-bit bfd_vma 2003-02-01 John Levon * utils/opcontrol: rename --separate-samples to --separate=library for future proofing. * pp/format_output.cpp: output vma at a suitable width 2003-01-31 Will Cohen * utils/opcontrol(get_kernel_range): Match only .text segment. 2003-01-31 Graydon Hoare * libabi/abi.cpp * libabi/abi_test.cpp * libabi/op_import.cpp: Treat endianness as a property of the datum being imported, rather than the memory architecture. 2003-01-31 Dave Jones * module/x86/op_model_athlon.c: Don't poke reserved bits in the counter. Only rdmsr/wrmsr counters that we've enabled in the NMI handler. ulong->uint conversion. 2003-01-30 Philippe Elie From Randolph Chung : * daemon/opd_cookie.h: add parisc support 2003-01-30 John Levon From Anton Blanchard : * daemon/opd_cookie.h: add ppc32/64 * utils/op_start_25: fix start of kernel for ppc 2003-01-30 Will Cohen * utils/opcontrol(get_kernel_range): Avoid using perl arithmetic. 2003-01-29 Dave Jones * utils/opcontrol: Trying to use the options --pid-filter=pid and --pgmr-filter=pgmr, opcontrol returned "command not found. This was due to 2 missing 'test' statements. 2003-01-29 Philippe Elie * pp/op_to_source.cpp: read vma with strtoull not strtoul fixing 32/64 failure to read output of objdump 2003-01-29 Dave Jones * libop/op_cpu_type.c: Clue the user in on why the cpu type isn't recognised, by suggesting the module wasn't loaded. * libop/op_events.c: Doh, unit masks use bit numbers, not values. 2003-01-28 Philippe Elie * utils/op_help.c: get cpu type only if not forced on command line. Avoid wrong warning about unsupported cpu type. 2003-01-27 Will Cohen * daemon/opd_cookie.h(opd_nr_lookup_dcookie): Add ia64 version. 2003-01-27 Dave Jones * libop/op_events.c: K8 HT events are utm_exclusive, not utm_bitmask * libop/op_events.c: Add additional K8 unit masks. 2003-01-23 Philippe Elie * libop/op_interface_25.h: * daemon/opd_image.c: prepare drop modules support. exit() when receiving unknown escape code. 2003-01-23 Randolph Chung Added minor change: backward compatibility, u_int to uint, fix 32/64 bits escape code marker comparison. Phil * libop/op_interface_25.h: * daemon/opd_kernel.c: * daemon/opd_image.c: new scheme to recognize kernel or user space eip, now kernel module pass the relevent information through escape sequence. 2003-01-21 Dave Jones * libop/op_events.c: Add unit mask for Hypertransport events. 2003-01-21 Dave Jones * libop/op_events.c: Add x86-64 specific events. 2003-01-21 Philippe Elie * daemon/opd_kernel.c: use sscanf to parse /proc/modules 2003-01-20 Philippe Elie * daemon/opd_kernel.c: more robust /proc/modules parsing. 2003-01-20 Philippe Elie * daemon/opd_kernel.c: 2.5 modules support, for now I keep the code for /proc/ksyms parsing in daemon. Let's it living a few weeks please. 2003-01-18 Falk Hueffner I added to the original patch all %L to %ll, Phil * daemon/opd_image.c: * daemon/opd_kernel.c: * libutil/op_types.h: 64 bits printf/scanf safety. 2003-01-18 Falk Hueffner * libop/op_cpu_type.h: * libop/op_cpu_type.c: add Alpha CPU families. * libop/op_events.h: make op_event.cpu_mask u32, since we now have more than 16 CPU types * libop/op_hw_config.h: bump OP_MAX_COUNTERS to 20 for Alpha * libop/op_events.c: add Alpha events * daemon/opd_cookie.h: add dcookie syscall number for Alpha * utils/op_help.c (main): add help string for Alpha 2003-01-18 John Levon * module/Makefile.in: * module/x86/Makefile.in: * module/ia64/Makefile.in: kernel headers are too fubar for -Werror. So I'm taking my ball home. 2003-01-17 John Levon * HACKING: * doc/CodingStyle: add 2003-01-17 John Levon * TODO: some updates 2003-01-15 Philippe Elie * module/x86/op_model_p4.c: pmc_setup_one_p4_counter() show clearly than event == 0 is an error 2003-01-15 John Levon * utils/opcontrol: prefer oprofiled/op_help binaries in the same dir as opcontrol 2003-01-12 Philippe Elie * libop/op_events.c: rename OP_P4_HT2 to OP_P4_ALL 2003-01-12 Philippe Elie * libop++/op_print_event.cpp: no event,nor unit mask for CPU_TIMER_INT, problem reported by Ka Fai Lu. 2003-01-12 John Levon From Graydon Hoare * libop/op_cpu_type.h: * libop/op_cpu_type.c: add P4 HT * libop/op_events.c: tag P4 HT events 2003-01-11 Randolph Chung * daemon/oprofiled.c: fix ELF sniff 2003-01-11 John Levon * daemon/opd_image.c: bail out immediately on dcookie lookup failure. 2003-01-10 John Levon * daemon/opd_cookie.h: insulate against missing arch support for sys_lookup_dcookie * daemon/opd_image.c: use the above 2003-01-10 John Levon * daemon/opd_image.c: * daemon/oprofiled.c: move complete_dump to a better place 2003-01-10 John Levon * libutil/op_types.h: add cookie_t and vma_t * daemon/opd_image.c: * daemon/opd_image.h: * daemon/opd_kernel.c: * daemon/opd_kernel.h: use above types, and kernel_pointer_size * daemon/oprofiled.c: sniff /proc/kcore for kernel_pointer_size 2003-01-10 Philippe Elie * libopt++/popt_options.cpp: * libopt++/popt_options.h: work-around to support both gcc new parser and gcc 2.95 2003-01-08 John Levon * libop/op_type.cpp: support for ascii-string cpu types 2003-01-08 Philippe Elie * libutil++/op_bfd.cpp: * libutil++/op_bfd.h: * pp/oprofpp.cpp: more use of bfd_vma 2003-01-08 Philippe Elie * libdb/Makefile.am: fix include dir * libdb/db_test.c: don't assume than sizeof(struct opd_header) == 128 2003-01-06 Philippe Elie * libutil++/op_bfd.h: fix for 64 bits. 2003-01-06 Philippe Elie * libabi/abi.cpp: * libabi/op_import.cpp: broken by my last change in libdb. 2003-01-06 Philippe Elie * db/db_hash.h: do_hash() use db_key_t as parameter 2003-01-04 John Levon * pp/op_time.cpp: suggest opcontrol --dump instead * utils/opcontrol: implement --start-daemon. Fix a number of bugs * doc/oprofile.xml: * doc/oprofile.1.in: document --start-daemon 2003-01-03 Will Cohen * daemon/oprofiled.c (opd_do_samples): Typecast to match arguments. See ChangeLog-2002 for earlier changelogs. oprofile-0.9.9/COPYING0000664000076400007640000004311012175510133011333 00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. oprofile-0.9.9/config.guess0000755000076400007640000012761512175510233012634 00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 # Free Software Foundation, Inc. timestamp='2009-11-20' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Per Bothner. Please send patches (context # diff format) to and include a ChangeLog # entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm:riscos:*:*|arm:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) echo i386-pc-auroraux${UNAME_RELEASE} exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval $set_cc_for_build SUN_ARCH="i386" # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH="x86_64" fi fi echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[456]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) case ${UNAME_MACHINE} in pc98) echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; authenticamd | genuineintel | EM64T) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; 8664:Windows_NT:*) echo x86_64-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-unknown-linux-gnu else echo ${UNAME_MACHINE}-unknown-linux-gnueabi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; cris:Linux:*:*) echo cris-axis-linux-gnu exit ;; crisv32:Linux:*:*) echo crisv32-axis-linux-gnu exit ;; frv:Linux:*:*) echo frv-unknown-linux-gnu exit ;; i*86:Linux:*:*) LIBC=gnu eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; mips:Linux:*:* | mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef ${UNAME_MACHINE} #undef ${UNAME_MACHINE}el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=${UNAME_MACHINE}el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=${UNAME_MACHINE} #else CPU= #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; or32:Linux:*:*) echo or32-unknown-linux-gnu exit ;; padre:Linux:*:*) echo sparc-unknown-linux-gnu exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-gnu ;; PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; esac exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-gnu exit ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configury will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in i386) eval $set_cc_for_build if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then UNAME_PROCESSOR="x86_64" fi fi ;; unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; i*86:AROS:*:*) echo ${UNAME_MACHINE}-pc-aros exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: oprofile-0.9.9/ChangeLog-20010000664000076400007640000016431312175510133012443 000000000000002001-12-31 Philippe Elie * module/op_init.c: * module/oprofile.c: export cpu type preparing for user space cpu detection change * module/oprofile.h: preparatory work to add support for preempt patch * pp/oprofpp.cpp: cleanup #if 0 ... #else ... #endif * pp/orofpp_util.cpp: allow to deduce image name from shared lib samples files name produced with --separate-samples * gui/oprof_start.cpp: minor fix 2001-12-31 John Levon * various files: use op_cpu enum for cpu type * all .cvsignore: * Rules.make.in: * all Makefile.in: hide .d files in .deps directories 2001-12-31 John Levon * Makefile.in: move config.h.in to maintainerclean - it is included in a tarball so a distclean shouldn't remove it 2001-12-31 John Levon * TODO: update * gui/ui/oprof_start.base.ui: * doc/oprofile.sgml: * doc/oprofile.1.in: small updates * oprofile.c: more detail on locking requirements for wake_up 2001-12-31 Michel Dagenais * gui/oprof_start.cpp: * gui/oprof_start.h: show total samples so far 2001-12-29 Philippe Elie * dae/oprofiled.c: * dae/op_start: --separate-samples is working * gui/oprof_start.cpp: * gui/oprof_start_config.cpp: * gui/oprof_start_config.h: * gui/ui/oprof_start.base.ui: handle separating for shared libs, off by default. * doc/oprofile.sgml: * doc/oprofile.1.in: document --show-shared-libs * pp/opf_filter.h: * pp/opf_container.cpp: new class samples_files_t to easier access to subset of symbols/samples or source filename from multiple image * pp/Makefile.in: * pp/op_time.cpp: * pp/opf_filter.cpp: * pp/oprofpp.cpp: * pp/oprofpp.h: * pp/oprofpp_util.cpp: implement --show-shared-libs except for opf_filter * util/file_manip.h: * util/file_manip.cpp: new function to manipulate sample file name and list of sample file name. 2001-12-27 Philippe Elie * dae/op_stop: always do an op_dump before stopping * gui/oprof_start.cpp: op_dump before op_stop no longer required 2001-12-26 Philippe Elie * pp/opf_filter.cpp: * pp/opf_filter.h: * pp/oprofpp.h: * pp/opf_filter.cpp: * pp/oprofpp_util.cpp: * pp/oprofpp.cpp: * pp/op_time.c: remove some use of global var samplefile and imagefile * pp/oprofpp.cpp: do_dump_gprof() free memory too soon. (was bugged from 2001-12-05) * doc/oprofile.sgml: remove mention about oprof-thread 2001-12-23 Philippe Elie * util/string_manip.h: * util/string_manip.cpp: separate_token() new function * pp/opf_filter.cpp: * pp/oprofpp.cpp: * pp/oprofpp.h: * pp/oprofpp_util.cpp: * doc/oprofil.1.in: * doc/oprofile.sgml: add support for --exclude-symbol * TODO: update 2001-12-22 Philippe Elie * dae/op_start: add --separate-samples * dae/oprofiled.c: ditto * dae/opd_proc.c: * dae/opd_util.h: * dae/opd_util.c: * dae/oprofiled.h: implementation of above * pp/op_time.cpp: * doc/oprofile.1.in: * doc/oprfile.sgml: handle and document above * pp/oprofpp_util.cpp: minor change related * dae/oprofiled.c: bug fix while blocking signal * doc/Makefile.in: avoid unecessary build of html doc 2001-12-22 Dave Jones * config.h.in: Readd to CVS. 2001-12-18 Dave Jones * Makefile.in: Make documentation build again. 2001-12-14 Philippe Elie * dae/opd_proc.c: memory leak fix in opd_init_images() 2001-12-12 Philippe Elie * module/oprofile.h: change slightly op_hash() * util/file_manip.h: * util/file_manip.cpp: * util/string_manip.h: * util/string_manip.cpp: * util/child_reader.h: * util/child_reader.cpp: cleanup John's FIXME * dae/opd_util.h: * dae/opd_util.c: move libiberty things to ... * util/misc.h: * util/misc.c: here * util/Makefile.in: update * dae/Makefile.in: * pp/Makefile.in: * doc/Makefile.in: install the html doc 2001-12-10 John Levon * dae/oprofiled.c: fix sigprocmask() blooper 2001-12-09 John Levon * TODO: update again * util/child_reader.h: * util/child_reader.cpp: * util/file_manip.cpp: * util/string_manip.cpp: pedantic cleanup + FIXMEs 2001-12-09 John Levon * configure.in: add FIXME comment * util/file_manip.h: add FIXME comment, avoid warning with // 2001-12-09 John Levon * TODO: update 2001-12-09 Philippe Elie * dae/opd_proc.c: verbprintf() what cause the deletion of a sample file + minor cleanup * doc/oprofile.sgml: document samples files backup 2001-12-07 Philippe Elie * dae/oprofiled.h: * dae/opd_proc.c: handle an accessed field of deleted of deleted procs to defer deleting the procs. This greatly reduce the Nr of lost samples due to no proc information. 2001-12-06 Philippe Elie * dae/oprofiled.h: * dae/opd_proc.c: separate stats for kernel and modules address space and minor cleanup 2001-12-05 Philippe Elie * Rules.make.in: * dae/Makefile.in: * events/Makefile.in: * pp/Makefile.in: * util/Makefile.in: tidy * module/Makefile.in: * gui/Makefile.in: use auto-deps * util/child_reader.h: allow to compile with -ansi * util/child_reader.cpp: fix memory leak fix * pp/oprofpp.cpp: fix memory leak * TODO: update 2001-12-05 Philippe Elie * autogen.sh: use autoheader to create config.h * configure.in: handle missing libiberty.h and missing xcalloc in libiberty.a * dae/opd_util.cpp: * dae/opd_proc.c: * dae/opd_util.h: * dae/oprofiled.c: * evets/Makefile.in * pp/oprof_convert.c: * pp/oprofpp.cpp: * pp/oprofpp_util.cpp: replace opd_malloc() and related by xmalloc. * util/op_popt.c: add call to xmalloc_set_program_name() * ./cvsignore: add config.h, config.h.in 2001-12-04 Dave Jones * events/op_events_desc.c: Add recognition for alternative PIII string. Reported by Lev Iserovich 2001-12-04 Philippe Elie * dae/opd_util.c: * dae/opd_util.c: move common fuctionnality to ... * util/file_manip.h * util/file_manip.c: here * pp/oprof_convert.c: reflect above change * pp/oprof_convert.c: * pp/opf_filter.cpp: ditto + minor cleanup * gui/Makefile.in: * pp/Makefile.in: reflect above change 2001-12-02 Philippe Elie * pp/oprofpp.h: * pp/oprofpp.cpp: * pp/oprofpp_util.cpp: * pp/opf_filter.cpp: small tidies 2001-12-01 Philippe Elie * Makefile.in: build util sub-dir first * dae/opd_util.h: * dae/opd_util.c: move opd_GetContext() ... * util/opd_popt.h: * util/opd_popt.c: in these new files * pp/oprofpp.cpp: * pp/opf_filter.cpp: * pp/op_time.cpp: * dae/oprofiled.c: free the poptContext + cleanup popt * events/op_help.c: * events/Makefile.in: use the popt library * pp/oprofpp.cpp: allow to use --output-linenr-info with --list-symbols. * doc/oprofile.1.in: * doc/oprofile.sgml: reflect it 2001-12-01 Philippe Elie * dae/opd_proc.c: * dae/opd_util.c: * dae/opd_util.h: * dae/oprofiled.c: backup if needed old samples files in a separate directory * pp/oprofpp.h: * pp/oprofpp_util.cpp: cleanup + minor buglet fix * util/file_manip.h: * util/file_manip.cpp: create_file_list() new to create a list of all the file in a directory * pp/op_time.cpp: new utility * pp/Makefile.in: handle op_time * doc/oprofile.sgml: * doc/oprofile.1.in: Document op_time 2001-11-30 Philippe Elie * configure.in: cvs add Rules.make.in. 2001-11-30 Dave Jones * configure.in: suppress reference to an inexistant Rules.make.in 2001-11-29 Philippe Elie * pp/oprofpp_util.cpp: do not remove leading underscore to avoid C++ demangling failure 2001-11-27 Philippe Elie * configure.in: * pp/Makefile.in: work-around for gcc 3.0 and bfd pre-1998 * doc/oprofile.sgml: typo 2001-11-26 Philippe Elie * Rules.make.in: new to add autodeps and share commons definitions * all Makefile.in except module, gui: use autodeps * doc/oprofile.1.in: typo * util/filemanip.h: missing std:: 2001-11-25 Philippe Elie * oprofile-tests/understanding/persistent.cpp: new * util/persistent.h: new. An attempt to provide a better configuration saving/restoring library. Not yet linked to oprof_start. 2001-11-22 Philippe Elie * pp/oprofpp_util.cpp: take care than get_linenr() get line nr and filename info from bfd for the right symbol and not for the nearest symbol with debug info (#484660) 2001-11-15 Philippe Elie * module/oprofile.h: work around against a gcc 2.91.66 code generation bug in oprof_exit() 2001-11-14 Philippe Elie * dae/op_start: do not pass bufsize, note_bufsize and kernel_only as option to the daemon but ... * dae/oprofiled.c: read them from sysctl * dae/opd_proc.c: in opd_handle_old_sample_file() do not delete sample file if mtime differ but backup it. * doc/oprofile.sgml: * pp/oprof_convert.c: * pp/oprofpp_util.cpp: replace session number by backup number * util/string_manip.cpp: fix stupid bug in rtrim() 2001-11-13 Philippe Elie * gui/oprof_start.h: * gui/oprof_start.cpp: * dae/opd_util.h: * dae/opd_util.cpp: small cleanup * module/oprofile.c: simplify a little what the nmi handler * doc/oprofile.sgml: clarify op_to_source options * pp/child_reader.cpp: * pp/child_reader.h: move these ... * util/child_reader.cpp: * util/child_reader.h: here * util/file_manip.h: * util/file_manip.cpp: new * gui/Makefile.in: * gui/oprof_start_util.h: * gui/oprof_start_util.cpp: * pp/Makefile.in: * pp/opf_filter.cpp: use child_reader and file_manip * pp/oprofpp_util.cpp: change ordering of opening in opp_bfd ctr to avoid cryptic error message * TODO: update 2001-11-12 Philippe Elie * events: new directory * events/Makefile.in: * events/op_events.c: * events/op_events_desc.c: * events/op_help.c: new, splitted from op_events.c * pp/oprofpp_util.cpp: new, splitted from oprofpp.cpp * pp/oprofpp.h: * pp/oprofpp.c: * op_user.h: * all Makefile.in: update * op_events.c: remove 2001-11-12 Philippe Elie * op_events.c: last commit was bad * pp/oprofpp.c: use sstream 2001-11-12 Philippe Elie * util: new directory * util/string_manip.cpp: * util/string_manip.h: new * Makefile.in: handle util directory * pp/Makefile.in: * pp/opf_filter.h: * pp/opf_filter.cpp: * gui/Makefile.in: * gui/oprof_start_util.cpp: * gui/oprof_start_util.h: update to use string_manip.cpp * op_events.c: * op_user.h: * pp/opf_filter.h: * pp/opf_filter.cpp: * pp/opf_container.cpp: remove dead code 2001-11-11 Dave Jones * module/oprofile.[c|h]: Change MSR defines from MSR_IA32_xxx from MSR_P6_xxx, based on info on Linux kernel from Mikael Pettersson that these MSRs don't exist on Pentium 4. 2001-11-11 Philippe Elie * gui/oprof_start.cpp: fix record_config() * op_user.h: fix one comment 2001-11-10 Bob Montgomery * module/oprofile.c: fix pid/pgrp filter to reset counter 2001-11-08 John Levon * TODO: update * configure.in: bump to 0.0.8cvs 2001-11-07 John Levon * acinclude.m4: * configure.in: fixes for configuration when Qt2 not found * child_reader.h: * child_reader.cpp: compile with gcc 3.0 2001-11-07 John Levon * configure.in: bump to 0.0.7 2001-11-07 John Levon * configure.in: * module/oprofile.h: * module/oprofile.c: fail if hard_get_current() exists - this won't work 2001-11-06 Philippe Elie * doc/oprofile.1.in: reformat options * doc/oprofile.sgml: clarify options that require argument. Document short option * gui/oprof_start_util.cpp: fix basename() * pp/oprofpp.cpp: * pp/oprofpp.h: * pp/opf_filter.cpp: better options handling * module/oprofile.c: update one comment * TODO: update 2001-11-06 John Levon * configure.in: * module/oprofile.h: * module/oprofile.c: support for hard_get_current() 2001-11-06 John Levon * module/oprofile.h: * module/oprofile.c: make allow_unload exist for UP too (default to 1) 2001-11-05 John Levon * TODO: update * module/oprofile.c: fix nr_interrupts sysctl 2001-11-04 Philippe Elie * dae/op_start: * gui/oprof_start.cpp: * gui/oprof_start_config.cpp: * gui/oprof_start_config.h: * gui/ui/oprof_start.base.ui: handle note table size sysctl * module/op_syscalls.c: handle dname hash coding collision with a linear search. * module/oprofile.c: * module/oprofile.h: * module/op_syscalls.c: Use a struct to hold the whole sysctl settable things rather global var. 2001-11-03 Philippe Elie * modules/oprofile.h: add a sysctl struct to hold all sysctl set-able variable * modules/oprofile.c: two bugs fixes. 2001-11-02 Philippe Elie * modules/oprofile.h: minor cleanup * modules/oprofile.c: better handling of irq statistics 2001-10-31 John Levon * module/oprofile.c: add comment about unfixable races. 2001-10-30 John Levon * Move module code into module/ subdir. Bye bye CVS history :/ 2001-10-30 John Levon * op_x86.c: complain properly about lAPIC-less machines 2001-10-26 John Levon * TODO: update 2001-10-26 H. J. Lu * Makefile.in: use $(LD) not ld 2001-10-25 Philippe Elie * configure.in: fix version.h checking for gcc 2.91.66 2001-10-25 John Levon * Makefile.in: * doc/Makefile.in: * dae/Makefile.in: * pp/Makefile.in: * gui/Makefile.in: add $DESTDIR to prefix (part from H.J. Lu) 2001-10-25 H. J. Lu * configure.in: better version.h workaround * doc/*.1: * doc/Makefile.in: better .so manpage install 2001-10-25 Philippe Elie * doc/oprofile.sgml: minor change. * pp/opf_filter.cpp: repair short option -a and -s 2001-10-24 Philippe Elie * pp/op_to_source: remove from cvs * pp/Makefile.in: opf_filter application renamed to op_to_source * pp/child_reader.h: new * pp/child_reader.cpp: new, allow to fork a child and read its stdout/stderr * pp/opf_filter.h: * pp/opf_filter.cpp: use child_reader to launch objdump. op_to_source -a and -s must be specified with long form --assembly and --source-with-assembly. This also speed-up assembly output. Doc not updated. 2001-10-18 John Levon * configure.in: workaround #2, hopefully fixing Mandrake (bug #471448) 2001-10-17 John Levon * oprofile.c: don't mask when restoring MSR values * doc/Makefile.in: don't use man symlinks 2001-10-17 John Levon * oprofile.c: save original counter setup and restore on unload (bug #464094) 2001-10-16 John Levon * configure.in: * oprofile.h: workaround for Mandrake randomly back-porting things. 2001-10-16 John Levon * dae/opd_proc.c: * gui/oprof_start.cpp: * gui/oprof_start_config.cpp: * gui/oprof_start_config.h: * gui/oprof_start_util.cpp: * pp/opf_container.cpp: * pp/opf_filter.h: * pp/opf_filter.cpp: * pp/oprof_convert.cpp: add note device to gui, general cleanup 2001-10-16 John Levon * oprofile.h: fix likely() macro 2001-10-14 John Levon * TODO: update * op_syscalls.c: * op_user.h: * oprofile.h: * oprofile.c: * dae/op_start: * dae/opd_proc.c: * dae/oprofiled.h: * dae/oprofiled.c: use a separate map buffer. 2001-10-14 John Levon * acinclude.m4: don't give up if we can't find moc 2001-10-14 John Levon * oprofile.c: merge no-thread code 2001-10-14 John Levon * dae/opd_proc.c: * dae/oprofiled.c: * op_user.h: * oprofile.h: * op_syscalls.c: use string pool. Prime hash table with common entries. Consider parent in name_hash. 2001-10-13 Philippe Elie * doc/oprofile.sgml: minor change * pp/opf_filter.cpp: better warning 2001-10-13 John Levon * configure.in: 0.0.6 has been released -> 0.0.7cvs 2001-10-12 John Levon * TODO: update * doc/oprofile.sgml: new docs for annotation filter 2001-10-12 John Levon * pp/opf_filter.cpp: make output filters more like diff (needs doc), briefer info message 2001-10-12 John Levon * doc/Makefile.in: add FIXME * gui/oprof_start.cpp: fix std:: * acinclude.m4: more fixes 2001-10-12 Philippe Elie * gui/oprof_start_util.cpp: use select() rather non-blocking mode to read output from the child process 2001-10-11 Philippe Elie * doc/oprofile.sgml: * doc/oprofile.1.in: * pp/opf_filter: make --output and --no-output more intuitive 2001-10-09 Philippe Elie * doc/oprofile.sgml: * doc/oprofile.1.in: clarify doc * pp/opf_filter.cpp: corner case fix in --output-dir and --source-dir handling. 2001-10-08 John Levon * acinclude.m4: * configure.in: * gui/Makefile.in: fix idiot config bug of mine 2001-10-06 Philippe Elie * pp/opf_filter.cpp: * pp/op_to_source: small cleanup 2001-10-05 Philippe Elie * doc/oprofile.1.in: * doc/oprofile.sgml: * pp/op_to_source: * pp/opf_filter.cpp: implement --output and --no-output to allow output file generation filtering 2001-10-04 John Levon * TODO: update 2001-10-03 Philippe Elie * doc/oprofile.1.in: * doc/oprofile.sgml: * pp/op_to_source: * pp/opf_filter.cpp: implement --source-dir and --output-dir to generated separated annoted source file. 2001-10-03 Philippe Elie * pp/oprofpp.cpp * pp/oprofpp.h * pp/opf_filter.cpp: minor cleanup 2001-10-03 John Levon * TODO: update * Makefile.in: remove generated files on make distclean * acinclude.m4: update from source 2001-10-02 Philippe Elie * pp/oprofpp.cpp: fix a silly bug in do_list_symbols (oprofpp -l) 2001-10-02 John Levon * doc/oprofile.sgml: fix * Makefile.in: dist fix 2001-10-02 John Levon * TODO: update * configure.in: -> 0.0.5 for release 2001-10-01 Philippe Elie * pp/opf_container.cpp: * pp/opf_filter.h: comment * pp/opf_filter.cpp: speed-up 2001-09-30 Philippe Elie * pp/opf_container.cpp: * pp/opf_filter.cpp: * pp/oprofpp.cpp: * pp/oprofpp.h: cleanup 2001-09-30 Philippe Elie * gui/oprof_start.cpp: * gui/oprof_start.h: * gui/ui/oprof_start.base.ui: cleanup 2001-09-29 Philippe Elie * pp/opf_filter.cpp: check if we need debug info to work. * gui/oprof_start.cpp: use one config file by counter. Store selected counter in oprof_start_config * gui/oprof_start.cpp: * gui/persistent_config.h: remove dirty flag in persistent_config_t template class 2001-09-29 John Levon * TODO: update * gui/oprof_start.cpp: * gui/ui/oprof_start_base.ui: * gui/oprof_start_config.h: * gui/oprof_start_config.cpp: add verbose option * pp/opf_container.cpp: * pp/opf_filter.cpp: some FIXMEs and little cleanups 2001-09-29 Philippe Elie * pp/oprofpp.cpp: bug fix when calling the bfd lib. 2001-09-29 Philippe Elie * gui/oprof_start.cpp: two minor fixes. 2001-09-28 John Levon * various files: the footer is now a header ! * dae/opd_start.c: fix msync !! * gui/oprof_start.cpp: * gui/oprof_start_util.h: * gui/oprof_start_util.cpp: better default event count value. Save CPU type to oprofile file. 2001-09-28 Philippe Elie * pp/opf_filter.c: fix op_to_source [-a] [-s] 2001-09-28 Philippe Elie * doc/oprofile.sgml: oops, correct bad merging with John's last update. 2001-09-27 Philippe Elie * doc/oprofile.1.in: minor change * op_events.c: remove --gui-description stuff * pp/opf_filter.cpp: remove use of temporary array to pass argument to the popt library 2001-09-27 John Levon * doc/oprofile.sgml: updates * gui/oprof_start_util.cpp: fix compile, revert g++ extension (different on g++ 3.0) 2001-09-27 John Levon * gui/oprof_start_util.cpp: use g++ extension to avoid using temporary files 2001-09-27 John Levon * gui/oprof_start_util.cpp: fix crasher bug 2001-09-27 John Levon * gui/oprof_start.h: * gui/oprof_start.cpp: get per-counter config working 2001-09-27 John Levon * pp/Makefile.in: * pp/oprofpp.c: * pp/oprofpp.cpp: rename file 2001-09-27 John Levon * pp/opf_container.cpp: * pp/oprofpp.h: * pp/oprofpp.c: speed improvements 2001-09-26 Philippe Elie * configure.in: typo * pp/oprofpp.c: fix oprofpp -s. Use std::string (work not yet finish) * pp/oprofpp.h: ditto * pp/opf_filter.cpp: ditto 2001-09-26 John Levon * oprofile.c: add nr_interrupts * gui/oprof_start.h: * gui/oprof_start.cpp: * gui/oprof_start_util.h: * gui/oprof_start_util.cpp: * gui/oprof_start_config.h: * gui/oprof_start_config.cpp: * gui/ui/oprof_start_base.ui: add daemon status display, fix basename() 2001-09-26 John Levon * configure.in: remove broken bit * pp/Makefile.in: fix options * doc/oprofile.sgml: minor changes 2001-09-26 Philippe Elie * pp/Makefile.in: increase level of warning * pp/oprof_convert.c: minor fix to avoid warning * dae/opd_util.c: ditto * pp/oprofpp.c: get_linenr() never return null in filename (fix bug #464482). symcomp() ensure correct vma comparison (fix #464093) * dae/opd_util.c: minor fixe in op_poptGetContext() * gui/oprof_start.cpp: minor cleanup 2001-09-25 John Levon * dae/op_stop: * gui/oprof_start_config.cpp: use pidof instead 2001-09-25 John Levon * gui/oprof_start_config.cpp: fix is_profiler_started() too 2001-09-25 John Levon * dae/op_stop: fix terribly stupid error 2001-09-25 John Levon * op_event.c: whooops 2001-09-25 John Levon * gui/oprof_start.cpp: std:: fix * dae/op_start: * op_events.c: robustness fix 2001-09-25 John Levon * gui/oprof_start.cpp: fix silly bug 2001-09-24 John Levon * pp/opf_filter.cpp: "fix" compile error 2001-09-24 John Levon * gui/oprofile: * gui/Makefile.in: remove old gui 2001-09-24 John Levon * dae/op_start: make a little more robust 2001-09-24 John Levon * include/sstream: * Makefile.in: * configure.in: * pp/Makefile.in: * gui/Makefile.in: configure/make fixes * op_events.c: re-order for Athlon 2001-09-23 John Levon * pp/oprofpp.c: small cleanup 2001-09-23 John Levon * oprofile.h: * op_x86.c: support for 2.4.10 2001-09-23 John Levon * gui/oprof_start.h: * gui/oprof_start.cpp: rework validator stuff a bit 2001-09-23 John Levon * gui/oprof_start.cpp: use std::find_if * gui/oprof_start_config.cpp: * gui/oprof_start_util.cpp: minor tidies 2001-09-23 John Levon * dae/op_dump: * dae/op_start: echo errors to stderr * gui/oprof_start_util.h: * gui/oprof_start_util.cpp: * gui/oprof_start.cpp: use fork/exec to spawn children 2001-09-23 John Levon * TODO: update * gui/Makefile.in: * gui/oprof_start_config.h: * gui/oprof_start_config.cpp: * gui/oprof_start_util.h: * gui/oprof_start_util.cpp: * gui/oprof_start.h: * gui/oprof_start.cpp: new file for util functions 2001-09-23 John Levon * dae/opd_util.c: * dae/opd_util.h: * dae/oprofiled.c: * pp/oprofpp.c: * pp/opf_filter.cpp: * configure.in: enable __builtin_expect, fix popt problem * pp/oprof_convert.c: small fixes * op_events.c: shorten event descriptions for GUI * gui/*: many more updates * pp/Makefile.in: fix 2001-09-21 John Levon * dae/opd_proc.c: removed over-verbose line * configure.in: * oprofile.h: * oprofile.c: add likely/unlikely, take note lock on dump 2001-09-21 Philippe Elie * pp/opf_filter.h: move declaration of counter_array_t to * pp/oprofpp.h: here * pp/oprofpp.c: define and use counter_array_t + minor cleanup * pp/opf_filter.cpp: remove definition of counter_array_t 2001-09-21 Philippe Elie * Makefile.in: remove aclocal.m4 in distclean * pp/Makefile.in: use $(CXX) and $(CXXFLAGS) * pp/opf_container.cpp: * pp/opf_filter.cpp: * pp/opf_filter.h: * pp/oprofpp.c: * pp/oprofpp.h: cleanup 2001-09-20 Philippe Elie * Makefile.in: minor change in module building * pp/Makefile.in: link oprofpp with opf_filter * pp/op_to_source: avoid pipe from oprofpp to opf_filter * pp/opf_filter.h: remove a few member function * pp/opf_container.cpp: ditto + minor cleanup * pp/opf_filter.cpp: oprofpp is no longer piped to opf_filter but linked with it. Many change, needs additional cleanup * pp/oprofpp.c: group all stuff in two class. Rather a a C with class than a full C++ file for now. Fix a bug in filename handling. * pp/oprofpp.h: add opp_bfd and opp_samples_files class. * dae/opd_util.c: add a few explicit cast for C++ compile * dae/opd_util.h: wrap function declaratio with extern "C" 2001-09-19 John Levon * oprofile.c: fix silly read valid bug 2001-09-19 John Levon * Makefile.in: whoops, missed op_util.o from build 2001-09-19 John Levon * dae/oprofiled.c: fix little bug, tidy a bit * TODO: update 2001-09-18 John Levon * Makefile.in: * op_syscalls.c: * op_util.c: * oprofile.h: move some code around * oprofile.c: fix a tiny bug 2001-09-18 John Levon * dae/opd_proc.c: * dae/oprofiled.h: implement hashing of images * doc/oprofile.sgml: fix -- issue and use 2001-09-18 John Levon * .cvsignore: * README: update * configure.in: small cleanup * op_init.c: add comment * oprofile.h: * op_syscalls.c: * op_x86.c: move fixmap stuff, remove disable APIC * oprofile.c: init failure fix * doc/oprofile.sgml: * dae/opd_proc.c: fix handle_old_sample_files() bug, check mtime hasn't changed on a new map 2001-09-16 John Levon * acinclude.m4: * autogen.sh: * configure.in: * gui/Makefile.in: * gui/ui/Makefile.in: * gui/ui/oprof_start.base.ui: * gui/oprof_start.h: autoconfiscation for Qt2 * gui/oprof_start_config.cpp: add comments 2001-09-16 Philippe Elie * pp/opf_filter.cpp: fix unrecognized input * pp/opf_container.cpp: better error messages. put op_nr_counters in the global namespace (gcc 2.91 work around) 2001-09-16 John Levon * pp/oprofpp.cpp: small tidy 2001-09-16 Philippe Elie * pp/opf_filter.cpp: minor tidy * gui/oprof_start.base.ui: new oprof_start gui * gui/oprof_start.cpp: new, derived class of oprof_start_base * gui/oprof_start.h: ditto * gui/oprof_start_impl.cpp: implementation of oprof_start class * gui/oprof_start_config.cpp: utilities function for oprof_start * gui/oprof_start_config.h: ditto * gui/persistent_config.h: utility template * gui/oprof_start_main.cpp: main() for oprof_start * gui/Makefile.in: handle this stuff 2001-09-15 John Levon * pp/oprofpp.c: some cleanup 2001-09-15 John Levon * pp/oprofpp.c: allow non-matching mtimes in order to allow pp on different machines. Make conflicting counter specifications a fatal error 2001-09-15 John Levon * all Makefile.in: install should depend on all * pp/oprofpp.c: fixes for Athlon 4 counters. Enable debug info for list-symbol. Some stricter checking 2001-09-15 Philippe Elie * op_events.c: some static variable to global * op_user.h: export these * oprofile.c: typo in comment * dae/opd_proc.c: fix size of samples files 2001-09-13 Dave Jones * doc/oprofile.1.in: Update so it doesn't say 'Intel only' * dae/op_start: Fix output so that it prints [0-3] instead of [0-4[ 2001-09-12 Philippe Elie * pp/oprofpp.c: fix cpu type output for opf_filter * dae/op_stop: return error code properly 2001-09-12 John Levon * pp/oprofpp.c: print name of cpu type * dae/op_stop: * dae/op_start: re-organise, tidy 2001-09-12 John Levon * oprofile.c: fix small but triggerable SMP dump race 2001-09-12 John Levon * oprofile.h: * oprofile.c: * op_x86.c: move some code about * op_syscalls.c: add comment 2001-09-12 John Levon * configure.in: remove warning * op_user.h: * op_events.c: fix and clean up cpu type detection * op_init.c: fix email * oprofile.c: add IRQ stats. Not sure whether to keep... 2001-09-12 John Levon * oprofile.h: * oprofile.c: use cpu_number_map (pedantry thing) 2001-09-07 Philippe Elie * oprofile.c: remove /proc/.../cpu_type. Check if user mode cpu type detection is identical to module cpu type * op_events.h: * op_events.c: add op_get_cpu_type(). script can get cpu_type by op_help --get-cpu-type * gui/oprofile: use it * dae/oprofiled.c: ditto * dae/op_start: ditto, pass expected_cpu_type to module * doc/oprofile.sgml: update * doc/oprofile.1.in: update * pp/oprofpp.c: get cpu_type from samples file * pp/opf_filter.cpp: get cpu type from stdin 2001-09-06 John Levon * dae/opd_proc.c: use j not i in msync ! 2001-09-06 John Levon * dae/op_start: more sanity checking of options 2001-09-06 John Levon * doc/oprofile.sgml: update a bit 2001-09-06 John Levon * : make op_nr_counters a var (no pp support for > 2 yet) * dae/oprofiled.c: don't print help when counter event etc. are wrong 2001-09-06 John Levon * oprofile.h: * oprofile.c: use MODULE_LICENSE 2001-09-06 John Levon * op_user.h: add missing prototype * dae/op_start: fix counter extraction 2001-09-05 Philippe Elie * pp/oprofpp.c: fix a few corner case, cleanup. * dae/opd_proc: ditto. * dae/op_start: better handling of counter number * dae/opd_proc: minor change. * op_user.h: enable support for four counters * oprofile.c: ditto. Split functions * op_events.c: expose op_get_cpu_type_str(int) to world. 2001-09-04 John Levon * oprofile.h: * oprofile.c: don't restore delivery mode to LVTPC (causes APIC error on SMP). Fix for silly sem hang with do_dump 2001-09-04 John Levon * dae/op_start: fix typo bug 2001-09-04 John Levon * doc/oprofile.sgml: some small tidies 2001-09-04 John Levon * oprofile.c: change lvtpc_apic_restore to be more careful ! 2001-09-02 John Levon * oprofile.c: don't allow unload on SMP unless allow_unload is set. Still needs docs (no point till SMP works). 2001-09-02 John Levon * dae/op_dump: complain if not root more clearly. 2001-09-02 John Levon * oprofile.c: remove bogus setting for NMI oopser. smp_apic_restore() -> lvtpc_apic_restore() 2001-09-01 Philippe Elie * oprofile.c: fix pmc_setup() * pp/Makefile.in: * dae/Makefile.in: fix uninstall problem 2001-08-31 Philippe Elie * oprofile.h: * dae/oprofiled.h: * op_user.h: * oprofpp.h: * dae/opd_util.h: share commmon declarations, put it in op_user.h, include op_user.h in other .h when necessary. * op_events.c: * all Makefile.in: update dependancies. 2001-08-30 Philippe Elie * oprofile.c: use loop instead of fixed counter number 2001-08-26 Philippe Elie * op_events.c: add option to op_help for the gui * gui/oprofile: use op_help to build description of events, accept Athlon (only 2 counters) 2001-08-25 Philippe Elie * pp/oprofpp.c: * dae/op_start: use loop instead of fixed number of counter. 2001-08-24 Philippe Elie * pp/oprof_convert.c: add v4 --> v5 conversion 2001-08-23 Philippe Elie * oprofile.c: correct some comment. 2001-08-22 Philippe Elie * op_user.h: * dae/opd_proc.c: * dae/opd_util.c: * dae/opd_util.h: * dae/oprofiled.h: * dae/oprofiled.c: * dae/oprofiled.c: row to column file format, lot of changes. 2001-08-21 Philippe Elie * op_events.c: Add Athlon string/unit maks description 2001-08-20 Philippe Elie * op_events.c: change in handling of search/check events * dae/oprofiled.c: * dae/oprofiled.h: * oprofile.c: * oprofile.h: * pp/oprofpp.c: * pp/oprofpp.h: reflects caller/prototype, lot of changes. 2001-08-31 John Levon * Makefile.in: * op_x86.c: * oprofile.h: * oprofile.c: a prototype detector for SMP hardware, some small cleanup 2001-08-20 Dave Jones * doc/oprofile.sgml: Updated to reflect new Athlon/Duron capabilities. * pp/oprof_convert.c: * pp/oprofpp.c: use EXIT_FAILURE | EXIT_SUCCESS in exit() calls. * oprofile.c: Make non-exported functions static and remove duplicate definitions. 2001-08-19 John Levon * dae/op_start: handle celeries in cpu type 2001-08-19 John Levon * op_init.c: * oprofile.h: * oprofile.c: small tidies of the Athlon support 2001-08-19 Dave Jones * op_events.c: * op_init.c: * oprofile.h: * oprofile.c: * dae/op_start: * dae/oprofiled.h: * dae/oprofiled.c: initial Athlon support 2001-08-19 Philippe Elie * oprofile.c: use symbolic constant for all apic setup, no generated code change 2001-08-18 Philippe Elie * Makefile.in: * dae/Makefile.in: * pp/Makefile.in: * doc/Makefile.in: * gui/Makefile.in: add uninstall target 2001-08-18 John Levon * dae/opd_proc.c: tiny cleanup 2001-08-17 Philippe Elie * dae/opd_proc.c: * TODO: minor cleanup. 2001-08-16 Philippe Elie * gui/oprofile: * dae/op_start: * doc/oprofile.1.in: document and use op_dump 2001-08-16 John Levon * configure.in: bump version to 0.0.5cvs 2001-08-16 John Levon * all Makefile.in: mkdir install files 2001-08-15 Philippe Elie * dae/opd_proc.c: fix a FILE* leak in opd_get_ascii_maps() 2001-08-14 John Levon * op_syscalls.c: don't return negative hashes ! revert dname len "fix" use a much better hash function * dae/opd_proc.c: protect against negative hashes 2001-08-14 John Levon * op_syscalls.c: some small fixes * oprofile.c: add back unmasking code during set_gate, but only LVTPC 2001-08-11 John Levon * oprofile.h: 2.4.8 doesn't either. *sigh*. looks like we need some autoconfery :( 2001-08-11 John Levon * oprofile.h: 2.4.7-linus doesn't include the Andrew Morton complete_and_exit(). Hopefully this will make it into 2.4.8, I'm banking on this. 2001-08-11 John Levon * dae/op_dump: * doc/oprofile.sgml: * dae/Makefile.in: a little utility for dumping 2001-08-11 Dave Jones * oprofile.h: * oprofile.c: back-compat code and use of new struct completion for the thread 2001-08-11 John Levon * oprofile.c: corner case where an a miss against a full count, we were attributing wrong (reported by Bob Montgomery) 2001-08-11 John Levon * oprofile.c: use a simple cli/sti when installing the NMI handler. It should work and avoids the unmasking problem. 2001-08-10 John Levon * dae/oprofiled.h: fix header include (from Dave Jones) * op_syscalls.c: * oprofile.c: fix undefined symbol (from Dave Jones) 2001-08-10 John Levon * oprofile.c: small tidy in apic setup 2001-08-02 John Levon * oprofile.c: fix mod unload race, small fixes * dae/op_start: make sysctl error actually appear * doc/oprofile.sgml: document need for modutils 2.4.6 * op_syscalls.c: fix stupid mod use count problem 2001-07-28 John Levon * dae/opd_proc.c: d'oh, fat-fingered a slow memleak in the a-ksymoops modules fix 2001-07-27 Philippe Elie * pp/oprof_convert.c: fix bug when conversion skip more than one version. 2001-07-27 John Levon * doc/Makefile.in: ln -s -> ln -sf * dae/opd_util.c: actually include the right header * dae/opd_util.h: compile freestanding from oprofiled.h 2001-07-26 John Levon * oprofile.c: fix comment * doc/oprofile.sgml: document symbolless modules not working * dae/Makefile.in: * dae/opd_proc.c: * dae/oprofiled.h: catch modules with no symbols via query_module() and ignore samples for them quickly 2001-07-25 Philippe Elie * dae/op_start: beautify the output of op_start --help * pp/op_to_source: ditto. better argument checking. * pp/oprof_convert.c: * pp/oprofpp.h: * dae/oprofiled.h: fix problem with opd_footer, don't bump opd_footer version number ! 2001-07-25 John Levon * pp/Makefile.in: * pp/oprof_convert.c: convert to v4 * pp/oprofpp.c: use opd_strdup 2001-07-25 John Levon * dae/opd_util.c: small tidy 2001-07-24 Philippe Elie * dae/opd_util.c: * dae/opd_util.h: add relative path name to absolute path name stuff * pp/oprofpp.c: use it. * pp/op_to_source: simplify code to reflect above change. 2001-07-25 John Levon * dae/opd_proc.c: fix uninitialised pointer access (reported by ) that could segfault oprofile in case of module load/unload activity * Makefile.in: * dae/opd_proc.c: * dae/opd_util.c: * dae/opd_util.h: * dae/oprofiled.c: * dae/oprofiled.h: * pp/Makefile.in: * pp/oprofpp.c: * pp/oprofpp.h: use mtime() instead of md5sum(). Still doesn't handle "./a; gcc -o a a.c; ./a" 2001-07-22 Philippe Elie * doc/oprofile.1.in: * doc/oprofile.sgml: * pp/opf_filter.h: * pp/opf_filter.cpp: * pp/opf_container.cpp: implement and document filtering for assembly output. 2001-07-21 Philippe Elie * doc/oprofile.sgml: * gui/oprofile: * oprofile.c: remove edge_detect support. * pp/oprofpp.c: check counter range for each event type. * oprofile.c: ditto. * gui/oprofile: ditto and save setup for each event type. * oprofile.h: op_check_range() : display the allowed range. 2001-07-18 Philippe Elie * dae/op_start: disable all counters before starting the setup. 2001-07-18 John Levon * doc/oprofile.sgml: add in bit I forgot about not profiling ring 0 2001-07-18 John Levon * doc/oprofile.sgml: added a warning about very low counter values (from Philippe, modified) 2001-07-15 John Levon * oprofile.c: * oprofile.h: * dae/op_start: * dae/oprofiled.c: * doc/oprofile.sgml: remove ability to set different values on different CPUs 2001-07-15 John Levon * TODO: remove done thing 2001-07-15 John Levon * dae/opd_proc.c: backup old sample files if the profiling details (count, unit mask etc.) disagree. Fixes #435245 2001-07-15 Philippe Elie * dae/oprofiled.c: fix oprofiled --version to work even if the profiler is not already started. * gui/oprofile: many cleanup. Fix bug track #435248. Make the gui more independant on the number of counter. * pp/op_to_source: fix bug in command line arguments handling. * pp/opf_filter.h: * pp/opf_filter.cpp: * pp/opf_container.cpp: Apply some cleanup suggested by John, principally change few inheritance to composition. * pp/oprof_convert.c: fix --version. 2001-07-14 Philippe Elie * doc/oprofile.sgml: * doc/oprofile.1.in: minor doc fix. 2001-07-14 John Levon * doc/oprofile.sgml: small tidies 2001-07-01 Philippe Elie * doc/oprofile.1.in: * doc/oprofile.sgml: document op_to_source, oprof_convert and the oprofile gui * gui/oprofile: onStartProfiling() check that count is in the allowed range. onStopProfiling() flush the samples 2001-07-14 John Levon * Makefile.in: dist fix 2001-07-14 John Levon * doc/oprofile.sgml: make it clear we want vmlinux not vmlinuz * doc/html/: remove generated files from CVS * Makefile.in: changes to create HTML files on dist 2001-06-30 John Levon * pp/Makefile.in: fix the fix * pp/opf_filter.h: very minor changes 2001-06-29 John Levon * pp/Makefile.in: fix up for opf_filter * configure.in: add AC_PROG_CXX 2001-06-29 Philippe Elie * pp/opf_filter.cpp: * pp/opf_container.cpp: * pp/opf_filter.h: * pp/op_to_source: new file which provide a source annotation utility. * pp/Makefile.in: build and install opf_filter / op_to_source 2001-06-29 John Levon * configure.in: * dae/opd_util.h: hide __attribute__((malloc)) warnings when necessary. Document --with-cc bug. 2001-06-29 Philippe Elie * gui/oprofile: more saving of the user setup. 2001-06-27 John Levon * dae/opd_util.c: document get_line() restriction 2001-06-27 Philippe Elie * dae/oprofiled.c: fix cpu_speed_str/cpu_speed variable setup logic. * gui/oprofile: save advanced setup form to persistent storage. Add many validation. 2001-06-25 John Levon * op_events.c: * pp/oprof_convert.c: add missing headers, remove CVS blip * dae/opd_util.h: specify malloc attribute. gives warnings on older compilers, who cares. I doubt this will help but it can't harm 2001-06-25 John Levon * pp/oprof_convert.c: continue if an error with one file occurs * dae/op_stop: remove rmmod again - it is user's choice on when/whether to unload 2001-06-23 Philippe Elie * pp/op_start: add missing support for specifying the log filename. Get correct cpu speed information for smp as suggested by John. * dae/oprofiled.c: Correct a warning with some older version of the popt library. * pp/oprofpp: as above. * gui/oprofile: advanced setup form added. * pp/oprof_convert.c: version and help option support. 2001-06-23 John Levon * pp/.cvsignore: add oprof_convert 2001-06-23 Philippe Elie * pp/oprof_convert.c: new utility to convert samples files when the opd_footer struct is changed. * pp/Makefile.in: reflect the above change. Tidy some unnecessary blank. * Makefile.in: Tidy some unnecessary blank/tabulation. 2001-06-23 John Levon * README: update 2001-06-22 John Levon * oprofile.c: always have smp_apic_restore() 2001-06-22 John Levon * various: made spacing more consistent in C source, removed unused utility functions. 2001-06-22 John Levon * oprofile.c: actually call smp_apic_restore() on UP * dae/op_start: don't remove the module immediately after inserting it ! 2001-06-22 Philippe Elie * dae/oprofiled.h, pp/oprofpp.h: change the opd_footer struct. Bump OPD_VERSION to reflect the file format change. * pp/oprofpp.c: reflect the above change * dae/oprofiled.c: reflect the above change, many options supressed because setup is read from the /proc/sys/dev/oprofile files. * dae/opd_proc: suppress some "extern variable" which no longer exist. * dae/op_start: reflect the above change 2001-06-22 Philippe Elie * dae/op_start: add --ctr[0|1]-edge-detect * gui/oprofile: add edge detect stuff * oprofile.c: add edge-detect stuff, the edge-detect is an experimental feature which do not work actually (no effect for now). Because this is experimental no documentation are provided on this option. 2001-06-22 John Levon * configure.in: * dae/op_stop: * doc/oprofile.sgml: * op_init.c: * op_syscalls.c: * oprofile.h: * oprofile.c: add and document the ability to make the module unloadable. Not well tested (but seems to work). * doc/oprofile.sgml: document compile-time options better, thank Philippe 2001-06-21 John Levon * oprofile.c: remove stale comments. fix theoretical memory leaks when setting up the sysctls fails, small tidy 2001-06-19 John Levon * README: * doc/oprofile.sgml: * doc/html/: s/sourceforge/sf/ 2001-06-16 Philippe Elie * op_events.c: op_check_events() fix two bad use of op_check_unit_mask(). op_get_um_desc() fix a typo. 2001-06-14 Philippe Elie * op_events.c: struct op_unit_mask, struct op_unit_desc allow up to seven unit masks. Reflect this change in data, op_check_unit_mask() and callers of op_check_unit_mask(). 2001-06-12 John Levon * results/intro: tidy up * results/kernel-compile/time-aves.pl: fix regexps * results/latex/: results from the LaTeX runs 2001-06-09 Philippe Elie * dae/op_start: avoid chmod to a non existing directory and setup access mode from 700 to 755. Replace use of the sysctl utility by a do_sysctl() function. * gui/oprofile: some cleanup and bugfix. * pp/oprofpp.c: add new output options --list-all-symbols-details, --output-linenr-info * doc/oprofile.1.in: * doc/oprofile.sgml: update documentation about the new oprofpp option 2001-06-09 John Levon * configure.in: fix build with CONFIG_MODVERSIONS enabled. 2001-06-04 John Levon * dae/oprofiled.c: move logfile message to before close(1) to not need to use stderr 2001-06-03 John Levon * gui/: new directory * Makefile.in: * configure.in: * gui/.cvsignore: * gui/Makefile.in: * gui/oprofile: Philippe's prototype tcl/tk startup script. Requires more work. 2001-06-03 John Levon * pp/oprofpp.h: remove libiberty header that was apparently breaking install on slackware 2001-06-03 John Levon * README: update 2001-06-03 Philippe Elie * op_events.c: allow unit mask option to be bit mask 2001-06-01 John Levon * dae/opd_proc.c: actually use opd_get_count - fix bug with counter 1 reported results * dae/op_start: fix broken shell scripting * dae/oprofpp.c: fix list-symbols output 2001-04-30 John Levon * dae/op_start: better error reporting * dae/opd_proc.c: fix indentation 2001-04-08 John Levon * configure.in: 0.0.3 has been released. Bump cvs version to 0.0.4 2001-04-05 John Levon * dae/opd_proc.c: remove forced dumping. It was causing overhead spikes * doc/html/results.html: * doc/oprofile.sgml: * dae/op_start: Hopefully document dump clearly enough 2001-04-05 John Levon * oprofile.h: * op_syscalls.c: 2.4.3 and above have a rw mmap_sem 2001-04-05 John Levon * doc/html/: added missing files 2001-04-05 John Levon * doc/oprofile.sgml: * doc/html/resources.html: add URLs 2001-04-05 John Levon * pp/oprofpp.c: fix gprof output bug. It works OK now, but MULTIPLIER == 1 will break for some reason 2001-04-05 John Levon * doc/oprofile.sgml: * doc/html/: finish SGML documentation (for now) 2001-04-04 John Levon * doc/Makefile.in: * doc/oprofile.sgml: * doc/oprofile: start SGML documentation 2001-04-04 John Levon * configure.in: * Makefile.in: * doc/Makefile.in: * doc/oprofile.1.in: add a manpage 2001-04-04 John Levon * pp/oprofpp.c: get some sort of half-working output in gprof format. Currently the numbers are screwed up, need a major trawl through gprof source to see what's going on. 2001-04-04 John Levon * dae/Makefile.in: * dae/md5.c: * dae/md5.h: * dae/opd_proc.c: * dae/oprofiled.h: * pp/Makefile.in: * pp/oprofpp.c: * pp/oprofpp.h: use md5sums to verify sample file integrity. Stored in each sample file footer are md5sums of the binary. These are checked by the daemon when re-using an old file, and by the post-processor. Bump OPD_VERSION to reflect the file format change. * dae/oprofiled.c: make start up more friendly * dae/op_start: make script more friendly 2001-03-10 John Levon * dae/opd_proc.c: fixed some error messages * results/kernel-compile/raw/ccu.gnuplot: add 2001-02-05 John Levon * TODO: update * results/intro: update * results/kernel-compile/: update, add FIG files * results/lmbench: lmbench results * results/output/kernel-ac12-output: add readprofile output 2001-02-04 John Levon * TODO: update * op_syscalls.c: small re-org, some micro-optimisations to do_hash() * pp/oprofpp.c: clean up --list-symbol output a little * results/kernel-compile/overhead: update with results * results/kernel-compile/time-aves.pl: add gnuplot output * results/kernel-compile/raw/ : raw output files * results/output/ : new dir for example output * results/output/libc-2.1.92.so: output from libc profile * results/output/kernel-ac12-output: output from kernel profile * results/output/do_anonymous_page: detailed symbol profile * results/output/oprofile.module: output for oprofile module 2001-02-03 John Levon * TODO: update * oprofile.h: * op_syscalls.c: make do_hash() non-recursive * oprofile.c: make thread wake up half as often * dae/opd_proc.c: quiesce dump sysctl make resilient against broken sample (don't exceed mmap) * pp/oprofpp.c: --gcc-demangle -> --demangle, just too annoying to live 2001-02-01 John Levon * oprofile.h: add op_save_syscalls() * oprofile.c: let interrupt_sleep_on() die add kernel_only option sysctl dumps everything it can now * op_syscalls.c: add op_save_syscalls() * dae/opd_proc.c: * dae/oprofiled.c: * dae/op_start: add --kernel-only * doc/guide.lyx: mention --kernel-only * TODO: update 2001-02-01 John Levon * Makefile.in: split out op_init.c * autogen.sh: new file * configure.in: fix --with-cc. Split out op_init.c * op_init.c: new file, to allow rest -march=i686 * oprofile.c: cut out init stuff to op_init.c * opd_proc.c: more verbose * results/kernel-compile/time-aves.pl: work with other time format too 2001-01-25 John Levon * configure.in: add --with-cc option * pp/oprofpp.c: fix const discard warnings 2001-01-25 John Levon * configure.in: must check for liberty *after* libdl 2001-01-24 John Levon * oprofile.c: we're not using op_check_ctr() return value, so don't have one 2001-01-23 John Levon * configure.in: * op_syscalls.c: * oprofile.c: * oprofile.h: stripped the NMI error handling stuff * op_events.c: fixed silly bug in the other place too :P * dae/oprofiled.c: improved error messages 2001-01-22 John Levon * op_events.c: fix silly bug so you can set both counters at once * oprofile.c: don't disable/enable counters in the interrupt handler. It's expensive and doesn't really buy anything. Fix a silly EBUSY bug when open fails once. * dae/op_start: don't remove old sample files pass correct event to daemon for ctr1 2001-01-22 John Levon * op_syscalls.c:do_hash(): use strcpy not strncpy. It's probably faster, and if d_name.len is corrupted the kernel has bigger things to worry about. 2001-01-22 John Levon * dae/guide.lyx: * dae/guide.html: update docs a little 2001-01-22 John Levon * dae/op_start: * op_user.h: bump up hash table size * results/kernel-compile/overhead: intro to kernel compile tests * results/kernel-compile/time-aves.pl: script to generate averages + overheads * op_syscalls.c: three fixes to do_hash(). It's going to be a pain to make iterative :( 2001-01-21 John Levon * results/: Started a collection of results 2001-01-20 John Levon * TODO: update * configure.in: add comment * Makefile.in: moved oprofile_k.c to op_syscalls.c, op_user.h added * op_syscalls.c: rename of oprofile_k.c map buffer is dead now use vmalloc() and friends for hash map Reworking of hash_map stuff into abb's linked hash map structure * op_user.h: new file representing shared structs etc. between daemon and kernel module Reworked OP_ flags in count. Reworked hash map structure * oprofile.c: get along with the new UP APIC stuff in 2.4.0ac9 remove extraneous lock_kernel() default buffer size added map buffer died Use up_and_exit() in kernel thread to fix zombies :P Set diethreaddie = 0 in start_thread() oprof_put_mapping() added we weren't turning OFF kernel/user counting when asked to * oprofile.h: move shared stuff to op_user.h increase the watermark to a much safer 768 * dae/Makefile.in: dependencies on op_user.h and version.h * dae/op_start: hide confusing output of op_stop --verbose option map buffer died * dae/opd_proc.c: --verbose option don't insist on new sample files Rework mapping code Be a little more forgiving with unstattable images * dae/opd_util.h: * dae/opd_util.c: add fatal flag to opd_get_fsize(). * dae/oprofiled.h: --verbose option move common code to op_user.h * dae/oprofiled.c: add --verbose option (very verbose !) map buffer died Add code for unpacking mapping notifications, rework mapping recognition * doc/guide.html: * doc/guide.lyx: some small updates * pp/oprofpp.c: fix segfault on failure to open binary. add --verbose option * pp/oprofpp.h: add --verbose option 2000-01-12 John Levon * oprofile.c: use standard kernel names for MSRs. Don't re-do fixmap if UP oopser patch is installed. Allow UP oopser to work if patches enabled, disable otherwise * oprofile.h: use standard kernel names for MSRs. * oprofile_k.c: only include fixmap code if necessary * configure.in: bump minor version 2000-12-15 John Levon * configure.in: default to /lib/modules/`uname -r`/build as kernel source directory * doc/guide.lyx: * doc/guide.html: update documentation 2000-12-13 John Levon * configure.in: bump minor version * oprofile.c: added KERN_ where needed, exclude the Pentium IV * pp/oprofpp.c: allow "oprofpp -l /bin/mv" and friends, some minor fixes 2000-12-12 John Levon * Makefile.in: * configure.in: approximate working modversions a little more * op_events.c: op_help INST_RETIRED will print out the value now * op_ioctl.h: * oprofile.c: * oprofile.h: * oprofile_k.c: * dae/Makefile.in: * dae/op_start: * dae/op_stop: * dae/opd_proc.c: * dae/oprofctl.c: * dae/oprofctl.h: * dae/oprofiled.h: ioctl() didn't last long. Replaced with sysctls. This has had a knock-on effect of moving the start/stop mechanism into the driver open/close routines * dae/oprofiled.c: must open devices in "reverse" order now * oprofile_k.c: fix X86_FEATURE_PGE testing * oprofile.c: use daemonize() * pp/oprofpp.c: fix working on constant argv 2000-11-04 John Levon * oprofile.c: what if signal happens later ? * dae/opd_util.c: clarify opd_read_device() API 2000-11-04 John Levon * ChangeLog: started ChangeLog (cue gc koan) * op_ioctl.h: added FIXME comment * oprofile.c: slight cleanup * oprofile.h: cleanups, use u16 for data->ctrs, data->next * pp/oprofpp.c: added comments * pp/oprofpp.h: fixed #defines oprofile-0.9.9/ChangeLog-20060000664000076400007640000001737512175510133012455 000000000000002006-12-14 Maynard Johnson * doc/oprofile.xml: * events/Makefile.am: * events/ppc64/cell-be/events: * events/ppc64/cell-be/unit_masks: * libop/op_cpu_type.c: * libop/op_cpu_type.h: * libop/op_events.c: * utils/opcontrol: * utils/ophelp.c Add support for Cell Broadband Engine 2006-12-14 Dave Nomura * daemon/init.c: move open_opd_files call to initialization phase 2006-12-11 Maynard Johnson * m4/kerneloption.m4: * m4/kernelversion.m4: eliminate/replace usage of obsolete kernel header linux/config.h 2006-12-06 Daniel Jacobowitz * libopt++/popt_options.cpp: complete fix for static initialisation ordering bug on ARM 2006-11-24 John Levon * doc/oprofile.xml: * doc/oprofile.1.in: warn about braces parsing in differential mode. * doc/opreport.1.in: * doc/oparchive.1.in: * doc/opannotate.1.in: * doc/opgprof.1.in: point explicitly to oprofile(1) * pp/opreport_options.cpp: --xml is incompatible with differential profiles. 2006-11-22 Philippe Elie * libop/op_alloc_counter.c: reapply 2006-8-03 Jeremiah Lott patch which was accidentally reverted, as a sideeffect this patch change counter allocation order. It can't hurt since our storage don't take care about counter number. * libop/tests/alloc_counter_tests.c: add a test case for this patch. Take care about counter allocation order change. 2006-11-19 Maynard Johnson * doc/oprofile.xml: Document platforms where callgraph is supported 2006-11-17 Dave Nomura * doc/Makefile.am: * doc/opreport.1.in: * doc/opreport.xsd: * doc/oprofile.xml: * libop/op_alloc_counter.c: * libpp/Makefile.am: * libpp/arrange_profiles.cpp: * libpp/format_output.cpp: * libpp/format_output.h: * libpp/op_header.cpp: * libpp/profile_container.cpp: * libpp/symbol.cpp: * libpp/symbol.h: * libpp/xml_utils.cpp: * libpp/xml_utils.h: * libutil++/Makefile.am: * libutil++/bfd_support.cpp: * libutil++/cverb.cpp: * libutil++/cverb.h: * libutil++/op_bfd.cpp: * libutil++/op_bfd.h: * libutil++/xml_output.cpp: * libutil++/xml_output.h: * pp/common_option.cpp: * pp/common_option.h: * pp/oparchive_options.cpp: * pp/opgprof_options.cpp: * pp/opreport.cpp: * pp/opreport_options.cpp: * pp/opreport_options.h: XML output support. 2006-8-03 Jeremiah Lott * libop/op_alloc_counter.c: allocate_counter(...) was returning prior to considering all possible allocation strategies. 2006-11-15 Adam Bordelon * doc/internals.xml: * doc/opannotate.1.in: * doc/oparchive.1.in: * doc/opcontrol.1.in: * doc/opgprof.1.in: * doc/opreport.1.in: * doc/oprofile.xml: Documented --session-dir option. * daemon/init.c: * daemon/liblegacy/init.c: * daemon/oprofiled.c: * libop/Makefile.am: * libop/op_config.c: * libop/op_config.h: * libop/op_config_24.h: * libop/op_mangle.c: * libpp/profile_spec.c: * pp/common_option.cpp: * utils/opcontrol: Added --session-dir option, to place sample database in dir instead of default location (/var/lib/oprofile), and program can be run as normal user. 2006-11-15 John Levon * events/x86-64/hammer/events: fix event names with '/' in them (bug 1597054) * libop/op_events.c: check for '/' and fail if so 2006-11-09 Philippe Elie * doc/opreport.1.in: * doc/oprofile.xml: --long-filenames : -f is the short opt, not -l 2006-10-16 Richard Purdie * libutil++/bfd_support.cpp: Ignore uninteresting arm mapping symbols 2006-10-16 Richard Purdie * utils/opcontrol: Remove a bashism in validate_separate_args() 2006-10-13 Maynard Johnson * doc/opcontrol.1.in: Document callgraph support for PowerPC 2006-09-25 Jon Callan * libopt++/popt_options.cpp: fix static init order problem, seen on ARM. 2006-09-21 Dean Gaudet * events/i386/core_2/events: rename some events * events/i386/core_2/unit_masks: various fixes for double-counting events 2006-09-21 Mark A. Greer * events/ppc/7450/events: * events/ppc/7450/unit_masks: * utils/ophelp.c: ppc 745x event improvements. 2006-09-15 Will Cohen * Makefile.am: Add ChangeLog-2004 and ChangeLog-2005 to distro. 2006-09-15 Will Cohen * configure.in: Bump to 0.9.3cvs. 2006-09-15 Will Cohen * configure.in: Bump to 0.9.2. 2006-09-11 Will Cohen * configure.in: Bump to 0.9.2.1rc1. 2006-09-11 Will Cohen * events/i386/core_2/unit_masks: * events/i386/core_2/events: Correct names and masks. 2006-09-07 Benjamin LaHaise * events/i386/core_2/events: Correct some event names. 2006-09-05 Will Cohen * configure.in: bump to 0.9.2 2006-09-05 Will Cohen * libpp/symbol_container.cpp: Explicit casting. 2006-08-27 Ray Bryant * events/x86-64/hammer/events: * events/x86-64/hammer/unit_masks: * libop/op_events.h: make names match the BKDG names from AMD 2006-08-22 Benjamin LaHaise * events/Makefile.am: * events/i386/core_2/events: * events/i386/core_2/unit_masks: * libop/op_cpu_type.h: * libop/op_cpu_type.c: * libop/op_events.c: * utils/ophelp.c: support Intel Core 2 events 2006-07-15 Luca Barbato * events/Makefile.am: * events/ppc/7450/events: * events/ppc/7450/unit_masks: * libop/op_cpu_type.h: * libop/op_cpu_type.c: * libop/op_events.c: * utils/ophelp.c: support PowerPC G4 events 2006-06-21 Ralf Baechle * libop/op_cpu_type.h: * utils/ophelp.c: * libop/op_cpu_type.c: * libop/op_events.c: * events/Makefile.am: * events/mips/5K: * events/mips/20K: * events/mips/25K: * events/mips/34K: add new MIPS support. 2006-05-13 Benjamin LaHaise * events/Makefile.am: * events/i386/core/events: * events/i386/core/unit_masks: * libop/op_cpu_type.h: * libop/op_cpu_type.c: * libop/op_events.c: * module/x86/cpu_type.c: * utils/ophelp.c: support Intel Core Duo events 2006-03-01 Andreas Krebbel * utils/opcontrol: (do_save_setup): Save KERNEL_RANGE and XEN_RANGE values into setup file. (do_load_setup): Print KERNEL_RANGE, XENIMAGE and XEN_RANGE values in verbose mode. 2006-03-19 John Levon * daemon/opd_anon.c: bump LRU size to avoid significant maps parsing overhead. 2006-03-19 John Levon * daemon/opd_anon.c: * daemon/opd_sfile.h: * daemon/opd_sfile.c: make sure we protect trans->last if it's an anon sf, and we need to do cleanup. Speed cleanup somewhat. 2006-02-17 Maynard Johnson * doc/oprofile.xml: * events/ppc64/power5+/events: * events/ppc64/power5+/event_mappings: * events/ppc64/unit_masks: * events/Makefile.am: * libop/op_events.c: * libop/op_cpu_type.c: * libop/op_cpu_type.h: * utils/opcontrol: * utils/ophelp.c: Add support for Power5+ 2006-02-10 Will Cohen * utils/opcontrol: Use full paths for which and dirname. 2006-01-22 John Levon * doc/oprofile.xml: mention 2.4 + power management 2006-01-16 Mike Carlson * doc/opcontrol.1.in: fix typo 2006-01-16 Jose Renato Santos * daemon/init.c: * daemon/opd_interface.h: * daemon/opd_kernel.h: * daemon/opd_kernel.c: * daemon/opd_trans.c: * daemon/oprofiled.h: * daemon/oprofiled.c: * doc/opcontrol.1.in: * utils/opcontrol: Added support for Xen See ChangeLog-2005 for earlier changelogs. oprofile-0.9.9/autogen.sh0000775000076400007640000000200012175510133012272 00000000000000#!/bin/sh # run to generate needed files not in Git repository # NB: if you run this file with AUTOMAKE, AUTOCONF, etc. environment # variables set, you *must* run "configure" with the same variables # set. this is because "configure" will embed the values of these variables # into the generated Makefiles, as @AUTOMAKE@, @AUTOCONF@ etc. and it will # trigger regeneration of configuration state using those programs when any # of Makefile.am etc. change. run() { echo "Running $1 ..." $1 } set -e ACLOCAL=${ACLOCAL:-aclocal} AUTOHEADER=${AUTOHEADER:-autoheader} AUTOMAKE=${AUTOMAKE:-automake} AUTOCONF=${AUTOCONF:-autoconf} if $AUTOMAKE --version | grep -q " 1.4$" then echo "" echo "Automake 1.4 not supported. please set \$AUTOMAKE" echo "to point to a newer automake, or upgrade." echo "" exit 1 fi if test -n "$1"; then echo "autogen.sh doesn't take any options" >&2 exit 1 fi libtoolize --automake -c run "$ACLOCAL -I m4" run $AUTOHEADER run "$AUTOMAKE --foreign --add-missing --copy" run $AUTOCONF oprofile-0.9.9/README0000664000076400007640000000262312175510133011164 00000000000000This is an alpha release version of oprofile, a transparent low-overhead system-wide profiler. You can find some documentation in the doc/ directory. Please visit the oprofile website at : http://oprofile.sf.net/ oprofile was written by John Levon and Philippe Elie . Maynard Johnson is the current maintainer. Dave Jones provided bug fixes and support for the AMD Athlon, and AMD Hammer families of CPUs. Bob Montgomery provided bug fixes, the initial RTC driver and the initial ia64 driver. Will Cohen integrated the ia64 driver into the oprofile release, and contributed bug fixes and several cleanups. Graydon Hoare provided P4 port, bug fixes and cleanups. Ralf Baechle provided the MIPS port. Other contributors are listed in the ChangeLog. Building -------- Please read the installation instructions in doc/oprofile.html or http://oprofile.sourceforge.net/doc/install.html. Only 2.6 kernels are supported. Quick start : (If using git: ./autogen.sh first. You need automake 1.5 or higher. You can specify a different version, e.g. ACLOCAL=aclocal-1.5 AUTOMAKE=automake-1.5 AUTOCONF=autoconf-2.13 AUTOHEADER=autoheader-2.13 ./autogen.sh) Then run the following commands ./configure [options] (use './configure --help' to see options) make oprofile-0.9.9/gui/0000775000076400007640000000000012175511560011152 500000000000000oprofile-0.9.9/gui/oprof_start_config.h0000664000076400007640000000207112175510133015125 00000000000000/** * @file oprof_start_config.h * GUI startup config management * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #ifndef OPROF_START_CONFIG_H #define OPROF_START_CONFIG_H #include #include #include /// Store the setup of one event struct event_setting { event_setting(); uint count; uint umask; bool os_ring_count; bool user_ring_count; }; /** * Store the general configuration of the profiler. * There is no save(), instead opcontrol --setup must be * called. This uses opcontrol's daemonrc file. */ struct config_setting { config_setting(); void load(std::istream & in); uint buffer_size; uint note_table_size; std::string kernel_filename; bool no_kernel; bool verbose; bool separate_lib; bool separate_kernel; bool separate_cpu; bool separate_thread; uint callgraph_depth; uint buffer_watershed; uint cpu_buffer_size; }; std::istream & operator>>(std::istream & in, config_setting & object); #endif // ! OPROF_START_CONFIG_H oprofile-0.9.9/gui/Makefile.in0000664000076400007640000006123212175510233013137 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @have_qt_TRUE@bin_PROGRAMS = oprof_start$(EXEEXT) subdir = gui DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am__oprof_start_SOURCES_DIST = oprof_start.cpp oprof_start_config.cpp \ oprof_start_util.cpp oprof_start_main.cpp oprof_start.h \ oprof_start_config.h oprof_start_util.h am__objects_1 = oprof_start.$(OBJEXT) oprof_start_config.$(OBJEXT) \ oprof_start_util.$(OBJEXT) oprof_start_main.$(OBJEXT) @have_qt_TRUE@am_oprof_start_OBJECTS = $(am__objects_1) @have_qt_TRUE@nodist_oprof_start_OBJECTS = oprof_start.moc.$(OBJEXT) oprof_start_OBJECTS = $(am_oprof_start_OBJECTS) \ $(nodist_oprof_start_OBJECTS) @have_qt_TRUE@oprof_start_DEPENDENCIES = ../libutil++/libutil++.a \ @have_qt_TRUE@ ../libop/libop.a ../libutil/libutil.a \ @have_qt_TRUE@ ui/liboprof_start.a DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(oprof_start_SOURCES) $(nodist_oprof_start_SOURCES) DIST_SOURCES = $(am__oprof_start_SOURCES_DIST) RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ SUBDIRS = ui dist_sources = \ oprof_start.cpp \ oprof_start_config.cpp \ oprof_start_util.cpp \ oprof_start_main.cpp \ oprof_start.h \ oprof_start_config.h \ oprof_start_util.h EXTRA_DIST = $(dist_sources) @have_qt_TRUE@AM_CPPFLAGS = \ @have_qt_TRUE@ @QT_CFLAGS@ \ @have_qt_TRUE@ -I ${top_srcdir}/libop \ @have_qt_TRUE@ -I ${top_srcdir}/libutil++ \ @have_qt_TRUE@ -I ${top_srcdir}/libutil \ @have_qt_TRUE@ @OP_CPPFLAGS@ @have_qt_TRUE@AM_CXXFLAGS = @OP_CXXFLAGS@ @have_qt_TRUE@oprof_start_SOURCES = $(dist_sources) @have_qt_TRUE@nodist_oprof_start_SOURCES = oprof_start.moc.cpp @have_qt_TRUE@oprof_start_LDADD = \ @have_qt_TRUE@ ../libutil++/libutil++.a \ @have_qt_TRUE@ ../libop/libop.a \ @have_qt_TRUE@ ../libutil/libutil.a \ @have_qt_TRUE@ ui/liboprof_start.a \ @have_qt_TRUE@ @QT_LIBS@ \ @have_qt_TRUE@ @X_LIBS@ all: all-recursive .SUFFIXES: .SUFFIXES: .cpp .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign gui/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign gui/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p || test -f $$p1; \ then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list oprof_start$(EXEEXT): $(oprof_start_OBJECTS) $(oprof_start_DEPENDENCIES) @rm -f oprof_start$(EXEEXT) $(CXXLINK) $(oprof_start_OBJECTS) $(oprof_start_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/oprof_start.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/oprof_start.moc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/oprof_start_config.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/oprof_start_main.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/oprof_start_util.Po@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(PROGRAMS) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." @have_qt_FALSE@clean-local: clean: clean-recursive clean-am: clean-binPROGRAMS clean-generic clean-libtool clean-local \ mostlyclean-am distclean: distclean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-binPROGRAMS \ clean-generic clean-libtool clean-local ctags ctags-recursive \ distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-binPROGRAMS \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ uninstall-binPROGRAMS @have_qt_TRUE@oprof_start.moc.cpp: ${top_srcdir}/gui/oprof_start.h @have_qt_TRUE@ $(MOC) -o $@ ${top_srcdir}/gui/oprof_start.h @have_qt_TRUE@clean-local: @have_qt_TRUE@ rm -f oprof_start.moc.cpp # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/gui/oprof_start_util.h0000664000076400007640000000214212175510133014634 00000000000000/** * @file oprof_start_util.h * Miscellaneous helpers for the GUI start * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #ifndef OPROF_START_UTIL_H #define OPROF_START_UTIL_H #include #include #include /// Store various daemon status data struct daemon_status { /// fill various data member according to the current daemon status daemon_status(); bool running; ///< true if daemon is running unsigned int nr_interrupts; ///< nr_interrupts from profiling start }; inline double ratio(double x1, double x2) { return fabs(((x1 - x2) / x2)) * 100; } std::string const get_config_filename(std::string const & filename); bool check_and_create_config_dir(); std::string const format(std::string const & orig, uint const maxlen); int do_exec_command(std::string const & cmd, std::vector const & args = std::vector()); std::string const do_open_file_or_dir(std::string const & base_dir, bool dir_only); bool verify_argument(std::string const & str); #endif // OPROF_START_UTIL_H oprofile-0.9.9/gui/oprof_start.h0000664000076400007640000000764112175510133013610 00000000000000/** * @file oprof_start.h * The GUI start main class * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #ifndef OPROF_START_H #define OPROF_START_H #include #include #include #include "config.h" #include "ui/oprof_start.base.h" #include "oprof_start_config.h" #include "op_events.h" #ifndef QT3_SUPPORT #define Q3ListViewItem QListViewItem #endif class QIntValidator; class QListViewItem; class QTimerEvent; /// a struct describing a particular event type struct op_event_descr { op_event_descr(); /// bit mask of allowed counters uint counter_mask; /// hardware event number u32 val; /// unit mask values if applicable op_unit_mask const * unit; /// name of event std::string name; /// description of event std::string help_str; /// minimum counter value uint min_count; }; class oprof_start : public oprof_start_base { Q_OBJECT public: oprof_start(); protected slots: /// select the kernel image filename void choose_kernel_filename(); /// flush profiler void on_flush_profiler_data(); /// start profiler void on_start_profiler(); /// stop profiler void on_stop_profiler(); /// events selection change void event_selected(); /// the mouse is over an event void event_over(Q3ListViewItem *); /// state of separate_kernel_cb changed void on_separate_kernel_cb_changed(int); /// reset sample files void on_reset_sample_files(); /// close the dialog void accept(); /// WM hide event void closeEvent(QCloseEvent * e); /// timer event void timerEvent(QTimerEvent * e); private: /// the counter combo has been activated void fill_events_listbox(); /// fill the event details and gui setup void fill_events(); /// find an event description by name op_event_descr const & locate_event(std::string const & name) const; /// update config on user change void record_selected_event_config(); /// update config and validate bool record_config(); /// calculate unit mask for given event and unit mask part void get_unit_mask_part(op_event_descr const & descr, uint num, bool selected, uint & mask); /// calculate unit mask for given event uint get_unit_mask(op_event_descr const & descr); /// set the unit mask widgets for given event void setup_unit_masks(op_event_descr const & descr); /// return the maximum perf counter value for the current cpu type uint max_perf_count() const; /// show an event's settings void display_event(op_event_descr const & descrp); /// hide unit mask widgets void hide_masks(void); /// read the events set in daemonrc void read_set_events(); /// use the default event void setup_default_event(); /// load the extra config file void load_config_file(); /// save the config bool save_config(); /// redraw the event list by changing icon status void draw_event_list(); /// return true if item is selectable or already selected bool is_selectable_event(Q3ListViewItem * item); /// try to alloc counters for the selected_events bool alloc_selected_events() const; /// validator for event count QIntValidator* event_count_validator; /// all available events for this hardware std::vector v_events; /// current event configs for each counter typedef std::map event_setting_map; event_setting_map event_cfgs; /// The currently selected events. We must track this because /// with multiple selection listbox QT doesn't allow to know /// what is the last selected item. events_selected() update it std::set selected_events; Q3ListViewItem * current_event; /// current config config_setting config; /// the expansion of "~" directory std::string user_dir; /// CPU type op_cpu cpu_type; /// CPU speed in MHz double cpu_speed; /// total number of available HW counters uint op_nr_counters; /// Total number of samples for this run unsigned long total_nr_interrupts; }; #endif // OPROF_START_H oprofile-0.9.9/gui/ui/0000775000076400007640000000000012175511560011567 500000000000000oprofile-0.9.9/gui/ui/Makefile.in0000664000076400007640000003776312175510234013571 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = gui/ui DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) ARFLAGS = cru liboprof_start_a_AR = $(AR) $(ARFLAGS) liboprof_start_a_LIBADD = @have_qt_TRUE@nodist_liboprof_start_a_OBJECTS = \ @have_qt_TRUE@ oprof_start.base.$(OBJEXT) \ @have_qt_TRUE@ oprof_start.base.moc.$(OBJEXT) liboprof_start_a_OBJECTS = $(nodist_liboprof_start_a_OBJECTS) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(nodist_liboprof_start_a_SOURCES) DIST_SOURCES = ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ EXTRA_DIST = oprof_start.base.ui @have_qt_TRUE@AM_CPPFLAGS = @QT_CFLAGS@ @OP_CPPFLAGS@ @have_qt_TRUE@AM_CXXFLAGS = @OP_CXXFLAGS@ @have_qt_TRUE@noinst_LIBRARIES = liboprof_start.a @have_qt_TRUE@nodist_liboprof_start_a_SOURCES = oprof_start.base.cpp oprof_start.base.moc.cpp all: all-am .SUFFIXES: .SUFFIXES: .cpp .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign gui/ui/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign gui/ui/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) liboprof_start.a: $(liboprof_start_a_OBJECTS) $(liboprof_start_a_DEPENDENCIES) -rm -f liboprof_start.a $(liboprof_start_a_AR) liboprof_start.a $(liboprof_start_a_OBJECTS) $(liboprof_start_a_LIBADD) $(RANLIB) liboprof_start.a mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/oprof_start.base.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/oprof_start.base.moc.Po@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." @have_qt_FALSE@clean-local: clean: clean-am clean-am: clean-generic clean-libtool clean-local \ clean-noinstLIBRARIES mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-local clean-noinstLIBRARIES ctags \ distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am @have_qt_TRUE@oprof_start.base.h: oprof_start.base.ui @have_qt_TRUE@ $(UIC) -o $@ $< @have_qt_TRUE@oprof_start.base.cpp: oprof_start.base.h oprof_start.base.ui @have_qt_TRUE@ $(UIC) -o $@ -impl $^ @have_qt_TRUE@oprof_start.base.moc.cpp: oprof_start.base.h @have_qt_TRUE@ $(MOC) -o $@ $< @have_qt_TRUE@clean-local: @have_qt_TRUE@ rm -f oprof_start.base.h oprof_start.base.cpp oprof_start.base.moc.cpp # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/gui/ui/Makefile.am0000664000076400007640000000102312175510133013532 00000000000000EXTRA_DIST = oprof_start.base.ui if have_qt AM_CPPFLAGS = @QT_CFLAGS@ @OP_CPPFLAGS@ AM_CXXFLAGS = @OP_CXXFLAGS@ noinst_LIBRARIES = liboprof_start.a nodist_liboprof_start_a_SOURCES = oprof_start.base.cpp oprof_start.base.moc.cpp oprof_start.base.h: oprof_start.base.ui $(UIC) -o $@ $< oprof_start.base.cpp: oprof_start.base.h oprof_start.base.ui $(UIC) -o $@ -impl $^ oprof_start.base.moc.cpp: oprof_start.base.h $(MOC) -o $@ $< clean-local: rm -f oprof_start.base.h oprof_start.base.cpp oprof_start.base.moc.cpp endif oprofile-0.9.9/gui/ui/oprof_start.base.ui0000664000076400007640000020114312175510133015315 00000000000000 oprof_start_base QDialog name oprof_start_base geometry 0 0 625 735 caption Start profiler sizeGripEnabled true margin 11 spacing 6 QTabWidget name setup_config_tab QWidget name counter_setup_page title &Setup margin 11 spacing 6 QGroupBox name counter_group title Events margin 11 spacing 6 QLayoutWidget name Layout10 margin 0 spacing 6 QListView text Removedincode clickable false resizeable true name events_list minimumSize 250 0 selectionMode Multi toolTip Available events QLayoutWidget name Layout9 margin 0 spacing 6 QCheckBox name os_ring_count_cb text Profile &kernel toolTip Profile kernel code QCheckBox name user_ring_count_cb text Profile &user binaries toolTip Profile user libraries and applications QLayoutWidget name Layout16 margin 0 spacing 6 QLabel name TextLabel1_2 text C&ount buddy event_count_edit QLineEdit name event_count_edit sizePolicy 1 0 toolTip Set the count value name Spacer13_2 orientation Horizontal sizeType Expanding sizeHint 20 20 QButtonGroup name unit_mask_group sizePolicy 1 5 title Unit mask toolTip Unit mask settings for this event margin 11 spacing 6 QCheckBox name check0 text check0 QCheckBox name check1 text check1 QCheckBox name check2 text check2 QCheckBox name check3 text check3 QCheckBox name check4 text check4 QCheckBox name check5 text check5 QCheckBox name check6 text check6 QCheckBox name check7 text check7 name Spacer14 orientation Vertical sizeType Expanding sizeHint 20 20 QCheckBox name check11 text check11 QCheckBox name check13 text check13 QCheckBox name check15 text check15 QCheckBox name check10 text check10 QCheckBox name check14 text check14 QCheckBox name check9 text check9 QCheckBox name check8 text check8 QCheckBox name check12 text check12 QLabel name event_help_label enabled true sizePolicy 1 1 frameShape WinPanel frameShadow Sunken text QWidget name configuration_page title &Configuration margin 11 spacing 6 QLayoutWidget name Layout11 margin 0 spacing 6 QLabel name TextLabel1 text &Kernel image file buddy kernel_filename_edit QLineEdit name kernel_filename_edit toolTip The vmlinux file of the running kernel QToolButton name kernel_filename_tb text ... QCheckBox name no_vmlinux text No kernel image toolTip No kernel image available. Disables kernel profiling. QLayoutWidget name Layout12 margin 0 spacing 6 QLayoutWidget name Layout11 margin 0 spacing 6 QLineEdit name buffer_size_edit toolTip The size of the profiler's buffers QLineEdit name note_table_size_edit QLabel name cpu_buffer_size_label text Cpu buffer size buddy cpu_buffer_size_edit QLineEdit name cpu_buffer_size_edit QLabel name buffer_size_label text &Buffer size buddy buffer_size_edit QLabel name note_table_size_label text Note Size buddy note_table_size_edit QLineEdit name buffer_watershed_edit QLabel name buffer_watershed_label text Buffer watershed buddy buffer_watershed_edit name Spacer11 orientation Horizontal sizeType Expanding sizeHint 20 20 QLayoutWidget name Layout36 margin 0 spacing 6 QLayoutWidget name Layout34 margin 0 spacing 6 QCheckBox name verbose text &Verbose toolTip Very verbose output in log file QCheckBox name separate_lib_cb text Per-application profiles toolTip Separate samples for each shared library. This increases the time and space overhead of OProfile. QCheckBox name separate_kernel_cb text Per-application profiles, including kernel toolTip Separate samples for each shared library and kernel samples. This increases the time and space overhead of OProfile. QCheckBox name separate_cpu_cb text Per-CPU profiles toolTip Separate samples for each shared library and kernel samples. This increases the time and space overhead of OProfile. QCheckBox name separate_thread_cb text Per-thread/task profiles toolTip Separate samples for each shared library and kernel samples. This increases the time and space overhead of OProfile. QLayoutWidget name Layout33 margin 0 spacing 6 QLabel name callgraph_depth_label text callgraph depth, zero to disable buddy callgraph_depth_edit QLineEdit name callgraph_depth_edit name Spacer12 orientation Horizontal sizeType Expanding sizeHint 20 20 name Spacer9 orientation Vertical sizeType Expanding sizeHint 20 20 QLabel name daemon_label frameShape Panel frameShadow Sunken text toolTip Current daemon status QLayoutWidget name Layout37 margin 0 spacing 6 QPushButton name start_profiler_btn text St&art QPushButton name flush_profiler_data_btn text &Flush QPushButton name stop_profiler_btn text Stop name Spacer5 orientation Horizontal sizeType Expanding sizeHint 20 20 QPushButton name reset_sample_files_btn text Reset sample files QPushButton name quit_and_save_btn text Save and &quit autoDefault true start_profiler_btn clicked() oprof_start_base on_start_profiler() stop_profiler_btn clicked() oprof_start_base on_stop_profiler() flush_profiler_data_btn clicked() oprof_start_base on_flush_profiler_data() quit_and_save_btn clicked() oprof_start_base accept() kernel_filename_tb clicked() oprof_start_base choose_kernel_filename() no_vmlinux toggled(bool) kernel_filename_tb setDisabled(bool) no_vmlinux toggled(bool) kernel_filename_edit setDisabled(bool) no_vmlinux toggled(bool) TextLabel1 setDisabled(bool) separate_kernel_cb stateChanged(int) oprof_start_base on_separate_kernel_cb_changed(int) reset_sample_files_btn clicked() oprof_start_base on_reset_sample_files() events_list selectionChanged() oprof_start_base event_selected() events_list currentChanged(QListViewItem*) oprof_start_base event_over(QListViewItem *) events_list onItem(QListViewItem*) oprof_start_base event_over(QListViewItem *) choose_kernel_filename() event_over(QListViewItem *) event_selected() on_reset_sample_files() on_flush_profiler_data() on_separate_kernel_cb_changed(int) on_start_profiler() on_stop_profiler() setup_config_tab events_list os_ring_count_cb user_ring_count_cb event_count_edit check0 check1 check2 check3 check4 check5 check6 check7 check8 check9 check10 check11 check12 check13 check14 check15 start_profiler_btn flush_profiler_data_btn stop_profiler_btn reset_sample_files_btn quit_and_save_btn kernel_filename_edit no_vmlinux buffer_size_edit note_table_size_edit buffer_watershed_edit verbose separate_lib_cb separate_kernel_cb separate_cpu_cb separate_thread_cb callgraph_depth_edit oprofile-0.9.9/gui/oprof_start_config.cpp0000664000076400007640000000444212175510133015464 00000000000000/** * @file oprof_start_config.cpp * GUI startup config management * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #include #include #include #include #include #include "string_manip.h" #include "oprof_start_config.h" #include "op_config.h" using namespace std; event_setting::event_setting() : count(0), umask(0), os_ring_count(0), user_ring_count(0) { } config_setting::config_setting() : buffer_size(OP_DEFAULT_BUF_SIZE), note_table_size(0), no_kernel(false), verbose(false), separate_lib(false), separate_kernel(false), separate_cpu(false), separate_thread(false), callgraph_depth(0), buffer_watershed(0), cpu_buffer_size(0) { struct utsname info; /* Guess path to vmlinux based on kernel currently running. */ if (uname(&info)) { perror("oprof_start: Unable to determine OS release."); } else { string const version(info.release); string const vmlinux_path("/lib/modules/" + version + "/build/vmlinux"); kernel_filename = vmlinux_path; } } void config_setting::load(istream & in) { string str; while (getline(in, str)) { string val = split(str, '='); if (str == "BUF_SIZE") { buffer_size = op_lexical_cast(val); if (buffer_size < OP_DEFAULT_BUF_SIZE) buffer_size = OP_DEFAULT_BUF_SIZE; } else if (str == "VMLINUX") { if (val == "none") { kernel_filename = ""; no_kernel = true; } else if (!val.empty()) { no_kernel = false; kernel_filename = val; } } else if (str == "SEPARATE_LIB") { separate_lib = op_lexical_cast(val); } else if (str == "SEPARATE_KERNEL") { separate_kernel = op_lexical_cast(val); } else if (str == "SEPARATE_CPU") { separate_cpu = op_lexical_cast(val); } else if (str == "SEPARATE_THREAD") { separate_thread = op_lexical_cast(val); } else if (str == "CALLGRAPH") { callgraph_depth = op_lexical_cast(val); } else if (str == "BUF_WATERSHED") { buffer_watershed = op_lexical_cast(val); } else if (str == "CPU_BUF_SIZE") { cpu_buffer_size = op_lexical_cast(val); } } } istream & operator>>(istream & in, config_setting & object) { object.load(in); return in; } oprofile-0.9.9/gui/oprof_start_util.cpp0000664000076400007640000001533012175510133015172 00000000000000/** * @file oprof_start_util.cpp * Miscellaneous helpers for the GUI start * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #include #include #include #include #include #include #include #include #include #include #include #include #include "op_file.h" #include "file_manip.h" #include "child_reader.h" #include "op_libiberty.h" #include "oprof_start.h" #include "oprof_start_util.h" using namespace std; namespace { // return the ~ expansion suffixed with a '/' string const get_config_dir() { return "/root"; } string daemon_pid; } // namespace anon daemon_status::daemon_status() : running(false), nr_interrupts(0) { int HZ; if (!daemon_pid.empty()) { string proc_filename = string("/proc/") + daemon_pid + "/exe"; string const exec = op_realpath(proc_filename); if (exec == proc_filename) daemon_pid.erase(); else running = true; } if (daemon_pid.empty()) { DIR * dir; struct dirent * dirent; if (!(dir = opendir("/proc"))) { perror("oprofiled: /proc directory could not be opened. "); exit(EXIT_FAILURE); } while ((dirent = readdir(dir))) { string const exec = op_realpath(string("/proc/") + dirent->d_name + "/exe"); string const name = op_basename(exec); if (name != "oprofiled") continue; daemon_pid = dirent->d_name; running = true; } closedir(dir); } HZ = sysconf(_SC_CLK_TCK); if (HZ == -1) { perror("oprofiled: Unable to determine clock ticks per second. "); exit(EXIT_FAILURE); } if (daemon_pid.empty()) return; nr_interrupts = 0; switch (op_get_interface()) { case OP_INTERFACE_26: { static unsigned int old_sum_interrupts; unsigned int sum_interrupts = 0; glob_t file_names; file_names.gl_offs = 0; glob("/dev/oprofile/stats/cpu*/sample_received", GLOB_DOOFFS, NULL, &file_names); for (size_t i = 0; i < file_names.gl_pathc; ++i) { ifstream ifs3(file_names.gl_pathv[i]); if (ifs3) { unsigned int file_interrupts; ifs3 >> file_interrupts; sum_interrupts += file_interrupts; } } if (old_sum_interrupts > sum_interrupts) // occur if we stop/restart daemon. old_sum_interrupts = 0; nr_interrupts = sum_interrupts - old_sum_interrupts; old_sum_interrupts = sum_interrupts; globfree(&file_names); } break; default: break; } } /** * get_config_filename - get absolute filename of file in user $HOME * @param filename the relative filename * * Get the absolute path of a file in a user's home directory. */ string const get_config_filename(string const & filename) { return get_config_dir() + "/" + filename; } /** * check_and_create_config_dir - make sure config dir is accessible * * Returns %true if the dir is accessible. */ bool check_and_create_config_dir() { string dir = get_config_filename(".oprofile"); char * name = xstrdup(dir.c_str()); if (create_dir(name)) { ostringstream out; out << "unable to create " << dir << " directory "; out << "cause: " << strerror(errno); QMessageBox::warning(0, 0, out.str().c_str()); free(name); return false; } free(name); return true; } /** * format - re-format a string * @param orig string to format * @param maxlen width of line * * Re-formats a string to fit into a certain width, * breaking lines at spaces between words. * * Returns the formatted string */ string const format(string const & orig, uint const maxlen) { string text(orig); istringstream ss(text); vector lines; string oline; string line; while (getline(ss, oline)) { if (line.size() + oline.size() < maxlen) { lines.push_back(line + oline); line.erase(); } else { lines.push_back(line); line.erase(); string s; string word; istringstream oss(oline); while (oss >> word) { if (line.size() + word.size() > maxlen) { lines.push_back(line); line.erase(); } line += word + " "; } } } if (line.size()) lines.push_back(line); string ret; for(vector::const_iterator it = lines.begin(); it != lines.end(); ++it) ret += *it + "\n"; return ret; } /** * do_exec_command - execute a command * @param cmd command name * @param args arguments to command * * Execute a command synchronously. An error message is shown * if the command returns a non-zero status, which is also returned. * * The arguments are verified and will refuse to execute if they contain * shell metacharacters. */ int do_exec_command(string const & cmd, vector const & args) { ostringstream err; bool ok = true; // verify arguments for (vector::const_iterator cit = args.begin(); cit != args.end(); ++cit) { if (verify_argument(*cit)) continue; QMessageBox::warning(0, 0, string( "Could not execute: Argument \"" + *cit + "\" contains shell metacharacters.\n").c_str()); return EINVAL; } child_reader reader(cmd, args); if (reader.error()) ok = false; if (ok) reader.get_data(cout, err); int ret = reader.terminate_process(); if (ret) { string error = reader.error_str() + "\n"; error += "Failed: \n" + err.str() + "\n"; string cmdline = cmd; for (vector::const_iterator cit = args.begin(); cit != args.end(); ++cit) { cmdline += " " + *cit + " "; } error += "\n\nCommand was :\n\n" + cmdline + "\n"; QMessageBox::warning(0, 0, format(error, 50).c_str()); } return ret; } /** * do_open_file_or_dir - open file/directory * @param base_dir directory to start at * @param dir_only directory or filename to select * * Select a file or directory. The selection is returned; * an empty string if the selection was cancelled. */ string const do_open_file_or_dir(string const & base_dir, bool dir_only) { QString result; if (dir_only) { result = QFileDialog::getExistingDirectory(base_dir.c_str(), 0, "open_file_or_dir", "Get directory name", true); } else { result = QFileDialog::getOpenFileName(base_dir.c_str(), 0, 0, "open_file_or_dir", "Get filename"); } if (result.isNull()) return string(); else return result.latin1(); } /** * verify_argument - check string for potentially dangerous characters * * This function returns false if the string contains dangerous shell * metacharacters. * * WWW Security FAQ dangerous chars: * * & ; ` ' \ " | * ? ~ < > ^ ( ) [ ] { } $ \n \r * * David Wheeler: ! # * * We allow '-' because we disallow whitespace. We allow ':' and '=' */ bool verify_argument(string const & str) { if (str.find_first_not_of( "ABCDEFGHIJKLMNOPQRSTUVWXYZ" "abcdefghijklmnopqrstuvwxyz0123456789_:=-+%,./") != string::npos) return false; return true; } oprofile-0.9.9/gui/oprof_start.cpp0000664000076400007640000006435212175510133014145 00000000000000/** * @file oprof_start.cpp * The GUI start main class * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #include #include #include #include #include #include #include #include #include #if QT3_SUPPORT #include #include #include #include #include #include #include #include #include #include #include #include #include #else #include #include #include #include #include #include #include #include #include #include #include #include #include #define Q3ListView QListView #endif #include "oprof_start.h" #include "op_config.h" #include "string_manip.h" #include "op_cpufreq.h" #include "op_alloc_counter.h" #include "oprof_start_util.h" #include "file_manip.h" #include "op_hw_config.h" using namespace std; static char const * green_xpm[] = { "16 16 2 1", " c None", ". c #00FF00", " ....... ", " ........... ", " ............. ", " ............. ", "............... ", "............... ", "............... ", "............... ", "............... ", "............... ", "............... ", " ............. ", " ............. ", " ........... ", " ....... ", " " }; static char const * red_xpm[] = { "16 16 2 1", " c None", ". c #FF0000", " ....... ", " ........... ", " ............. ", " ............. ", "............... ", "............... ", "............... ", "............... ", "............... ", "............... ", "............... ", " ............. ", " ............. ", " ........... ", " ....... ", " " }; static QPixmap * green_pixmap; static QPixmap * red_pixmap; static op_event_descr null_evt; op_event_descr::op_event_descr() : counter_mask(0), val(0), unit(0), min_count(0) { } oprof_start::oprof_start() : oprof_start_base(0, 0, false, 0), event_count_validator(new QIntValidator(event_count_edit)), current_event(0), cpu_speed(op_cpu_frequency()), total_nr_interrupts(0) { green_pixmap = new QPixmap(green_xpm); red_pixmap = new QPixmap(red_xpm); vector args; args.push_back("--init"); if (do_exec_command(OP_BINDIR "/opcontrol", args)) exit(EXIT_FAILURE); cpu_type = op_get_cpu_type(); op_nr_counters = op_get_nr_counters(cpu_type); if (cpu_type == CPU_TIMER_INT) { setup_config_tab->removePage(counter_setup_page); } else { fill_events(); } op_interface interface = op_get_interface(); if (interface == OP_INTERFACE_NO_GOOD) { QMessageBox::warning(this, 0, "Couldn't determine kernel" " interface version"); exit(EXIT_FAILURE); } bool is_26 = interface == OP_INTERFACE_26; if (is_26) { note_table_size_edit->hide(); note_table_size_label->hide(); if (!op_file_readable("/dev/oprofile/backtrace_depth")) { callgraph_depth_label->hide(); callgraph_depth_edit->hide(); } } else { callgraph_depth_label->hide(); callgraph_depth_edit->hide(); buffer_watershed_label->hide(); buffer_watershed_edit->hide(); cpu_buffer_size_label->hide(); cpu_buffer_size_edit->hide(); } // setup the configuration page. kernel_filename_edit->setText(config.kernel_filename.c_str()); no_vmlinux->setChecked(config.no_kernel); buffer_size_edit->setText(QString().setNum(config.buffer_size)); buffer_watershed_edit->setText(QString().setNum(config.buffer_watershed)); cpu_buffer_size_edit->setText(QString().setNum(config.cpu_buffer_size)); note_table_size_edit->setText(QString().setNum(config.note_table_size)); callgraph_depth_edit->setText(QString().setNum(config.callgraph_depth)); verbose->setChecked(config.verbose); separate_lib_cb->setChecked(config.separate_lib); separate_kernel_cb->setChecked(config.separate_kernel); separate_cpu_cb->setChecked(config.separate_cpu); separate_thread_cb->setChecked(config.separate_thread); // the unit mask check boxes hide_masks(); event_count_edit->setValidator(event_count_validator); QIntValidator * iv; iv = new QIntValidator(OP_MIN_BUF_SIZE, OP_MAX_BUF_SIZE, buffer_size_edit); buffer_size_edit->setValidator(iv); note_table_size_edit->setValidator(iv); iv = new QIntValidator(0, INT_MAX, callgraph_depth_edit); callgraph_depth_edit->setValidator(iv); iv = new QIntValidator(0, INT_MAX, buffer_watershed_edit); buffer_watershed_edit->setValidator(iv); iv = new QIntValidator(0, OP_MAX_CPU_BUF_SIZE, cpu_buffer_size_edit); cpu_buffer_size_edit->setValidator(iv); // daemon status timer startTimer(5000); timerEvent(0); resize(minimumSizeHint()); // force the pixmap re-draw event_selected(); } void oprof_start::fill_events() { // we need to build the event descr stuff before loading the // configuration because we use locate_event to get an event descr // from its name. struct list_head * pos; struct list_head * events = op_events(cpu_type); list_for_each(pos, events) { struct op_event * event = list_entry(pos, struct op_event, event_next); op_event_descr descr; descr.counter_mask = event->counter_mask; descr.val = event->val; if (event->unit->num) { descr.unit = event->unit; } else { descr.unit = 0; } descr.name = event->name; descr.help_str = event->desc; descr.min_count = event->min_count; for (uint ctr = 0; ctr < op_nr_counters; ++ctr) { uint count; if (!(descr.counter_mask & (1 << ctr))) continue; if (cpu_type == CPU_RTC) { count = 1024; } else { /* setting to cpu Hz / 2000 gives a safe value for * all events, and a good one for most. */ if (cpu_speed) count = int(cpu_speed * 500); else count = descr.min_count * 100; } event_cfgs[descr.name].count = count; event_cfgs[descr.name].umask = 0; if (descr.unit) event_cfgs[descr.name].umask = descr.unit->default_mask; event_cfgs[descr.name].os_ring_count = 1; event_cfgs[descr.name].user_ring_count = 1; } v_events.push_back(descr); } events_list->header()->hide(); events_list->setSorting(-1); fill_events_listbox(); read_set_events(); // FIXME: why this ? if (cpu_type == CPU_RTC) events_list->setCurrentItem(events_list->firstChild()); load_config_file(); } namespace { /// find the first item with the given text in column 0 or return NULL Q3ListViewItem * findItem(Q3ListView * view, char const * name) { // Qt 2.3.1 does not have QListView::findItem() Q3ListViewItem * item = view->firstChild(); while (item && strcmp(item->text(0).latin1(), name)) item = item->nextSibling(); return item; } }; void oprof_start::setup_default_event() { struct op_default_event_descr descr; op_default_event(cpu_type, &descr); event_cfgs[descr.name].umask = descr.um; event_cfgs[descr.name].count = descr.count; event_cfgs[descr.name].user_ring_count = 1; event_cfgs[descr.name].os_ring_count = 1; Q3ListViewItem * item = findItem(events_list, descr.name); if (item) item->setSelected(true); } void oprof_start::read_set_events() { string name = get_config_filename(".oprofile/daemonrc"); ifstream in(name.c_str()); if (!in) { setup_default_event(); return; } string str; bool one_enabled = false; while (getline(in, str)) { string const val = split(str, '='); string const name = str; if (!is_prefix(name, "CHOSEN_EVENTS_")) continue; one_enabled = true; // CHOSEN_EVENTS_#nr=CPU_CLK_UNHALTED:10000:0:1:1 vector parts = separate_token(val, ':'); if (parts.size() != 5 && parts.size() != 2) { cerr << "invalid configuration file\n"; // FIXME exit(EXIT_FAILURE); } string ev_name = parts[0]; event_cfgs[ev_name].count = op_lexical_cast(parts[1]); // CPU_CLK_UNHALTED:10000 is also valid if (parts.size() == 5) { event_cfgs[ev_name].umask = op_lexical_cast(parts[2]); event_cfgs[ev_name].user_ring_count = op_lexical_cast(parts[3]); event_cfgs[ev_name].os_ring_count = op_lexical_cast(parts[4]); } else { event_cfgs[ev_name].umask = 0; event_cfgs[ev_name].user_ring_count = 1; event_cfgs[ev_name].os_ring_count = 1; } Q3ListViewItem * item = findItem(events_list, ev_name.c_str()); if (item) item->setSelected(true); } // use default event if none set if (!one_enabled) setup_default_event(); } void oprof_start::load_config_file() { string name = get_config_filename(".oprofile/daemonrc"); ifstream in(name.c_str()); if (!in) { if (!check_and_create_config_dir()) return; ofstream out(name.c_str()); if (!out) { QMessageBox::warning(this, 0, "Unable to open configuration " "file ~/.oprofile/daemonrc"); } return; } in >> config; } // user request a "normal" exit so save the config file. void oprof_start::accept() { // record the previous settings record_selected_event_config(); save_config(); QDialog::accept(); } void oprof_start::closeEvent(QCloseEvent *) { accept(); } void oprof_start::timerEvent(QTimerEvent *) { static time_t last = time(0); daemon_status dstat; flush_profiler_data_btn->setEnabled(dstat.running); stop_profiler_btn->setEnabled(dstat.running); start_profiler_btn->setEnabled(!dstat.running); reset_sample_files_btn->setEnabled(!dstat.running); if (!dstat.running) { daemon_label->setText("Profiler is not running."); return; } ostringstream ss; ss << "Profiler running:"; time_t curr = time(0); total_nr_interrupts += dstat.nr_interrupts; if (curr - last) ss << " (" << dstat.nr_interrupts / (curr - last) << " interrupts / second, total " << total_nr_interrupts << ")"; daemon_label->setText(ss.str().c_str()); last = curr; } void oprof_start::fill_events_listbox() { setUpdatesEnabled(false); for (vector::reverse_iterator cit = v_events.rbegin(); cit != v_events.rend(); ++cit) { new Q3ListViewItem(events_list, cit->name.c_str()); } setUpdatesEnabled(true); update(); } void oprof_start::display_event(op_event_descr const & descr) { setUpdatesEnabled(false); setup_unit_masks(descr); os_ring_count_cb->setEnabled(true); user_ring_count_cb->setEnabled(true); event_count_edit->setEnabled(true); event_setting & cfg = event_cfgs[descr.name]; os_ring_count_cb->setChecked(cfg.os_ring_count); user_ring_count_cb->setChecked(cfg.user_ring_count); QString count_text; count_text.setNum(cfg.count); event_count_edit->setText(count_text); event_count_validator->setRange(descr.min_count, max_perf_count()); setUpdatesEnabled(true); update(); } bool oprof_start::is_selectable_event(Q3ListViewItem * item) { if (item->isSelected()) return true; selected_events.insert(item); bool ret = false; if (alloc_selected_events()) ret = true; selected_events.erase(item); return ret; } void oprof_start::draw_event_list() { Q3ListViewItem * cur; for (cur = events_list->firstChild(); cur; cur = cur->nextSibling()) { if (is_selectable_event(cur)) cur->setPixmap(0, *green_pixmap); else cur->setPixmap(0, *red_pixmap); } } bool oprof_start::alloc_selected_events() const { vector events; set::const_iterator it; for (it = selected_events.begin(); it != selected_events.end(); ++it) events.push_back(find_event_by_name((*it)->text(0).latin1(),0,0)); size_t * map = map_event_to_counter(&events[0], events.size(), cpu_type); if (!map) return false; free(map); return true; } void oprof_start::event_selected() { // The deal is simple: QT lack of a way to know what item was the last // (de)selected item so we record a set of selected items and diff // it in the appropriate way with the previous list of selected items. set current_selection; Q3ListViewItem * cur; for (cur = events_list->firstChild(); cur; cur = cur->nextSibling()) { if (cur->isSelected()) current_selection.insert(cur); } // First remove the deselected item. vector new_deselected; set_difference(selected_events.begin(), selected_events.end(), current_selection.begin(), current_selection.end(), back_inserter(new_deselected)); vector::const_iterator it; for (it = new_deselected.begin(); it != new_deselected.end(); ++it) selected_events.erase(*it); // Now try to add the newly selected item if enough HW resource exists vector new_selected; set_difference(current_selection.begin(), current_selection.end(), selected_events.begin(), selected_events.end(), back_inserter(new_selected)); for (it = new_selected.begin(); it != new_selected.end(); ++it) { selected_events.insert(*it); if (!alloc_selected_events()) { (*it)->setSelected(false); selected_events.erase(*it); } else { current_event = *it; } } draw_event_list(); if (current_event) display_event(locate_event(current_event->text(0).latin1())); } void oprof_start::event_over(Q3ListViewItem * item) { op_event_descr const & descr = locate_event(item->text(0).latin1()); string help_str = descr.help_str.c_str(); if (!is_selectable_event(item)) { help_str += " conflicts with:"; set::const_iterator it; for (it = selected_events.begin(); it != selected_events.end(); ) { Q3ListViewItem * temp = *it; selected_events.erase(it++); if (is_selectable_event(item)) { help_str += " "; help_str += temp->text(0).latin1(); } selected_events.insert(temp); } } event_help_label->setText(help_str.c_str()); } /// select the kernel image filename void oprof_start::choose_kernel_filename() { string name = kernel_filename_edit->text().latin1(); string result = do_open_file_or_dir(name, false); if (!result.empty()) kernel_filename_edit->setText(result.c_str()); } // this record the current selected event setting in the event_cfg[] stuff. // FIXME: need validation? void oprof_start::record_selected_event_config() { if (!current_event) return; string name(current_event->text(0).latin1()); event_setting & cfg = event_cfgs[name]; op_event_descr const & curr = locate_event(name); cfg.count = event_count_edit->text().toUInt(); cfg.os_ring_count = os_ring_count_cb->isChecked(); cfg.user_ring_count = user_ring_count_cb->isChecked(); cfg.umask = get_unit_mask(curr); } // validate and save the configuration (The qt validator installed // are not sufficient to do the validation) bool oprof_start::record_config() { config.kernel_filename = kernel_filename_edit->text().latin1(); config.no_kernel = no_vmlinux->isChecked(); uint temp = buffer_size_edit->text().toUInt(); if (temp < OP_MIN_BUF_SIZE || temp > OP_MAX_BUF_SIZE) { ostringstream error; error << "buffer size out of range: " << temp << " valid range is [" << OP_MIN_BUF_SIZE << ", " << OP_MAX_BUF_SIZE << "]"; QMessageBox::warning(this, 0, error.str().c_str()); return false; } config.buffer_size = temp; temp = buffer_watershed_edit->text().toUInt(); // watershed above half of buffer size make little sense. if (temp > config.buffer_size / 2) { ostringstream error; error << "buffer watershed out of range: " << temp << " valid range is [0 (use default), buffer size/2] " << "generally 0.25 * buffer size is fine"; QMessageBox::warning(this, 0, error.str().c_str()); return false; } config.buffer_watershed = temp; temp = cpu_buffer_size_edit->text().toUInt(); if ((temp != 0 && temp < OP_MIN_CPU_BUF_SIZE) || temp > OP_MAX_CPU_BUF_SIZE) { ostringstream error; error << "cpu buffer size out of range: " << temp << " valid range is [" << OP_MIN_CPU_BUF_SIZE << ", " << OP_MAX_CPU_BUF_SIZE << "] (size = 0: use default)"; QMessageBox::warning(this, 0, error.str().c_str()); return false; } config.cpu_buffer_size = temp; // Note table size is a 2.4 kernel thingy. We'll just set it to // zero here since it's not used. // FIXME: Some day we should do a proper cleanup of the GUI to remove // all leftover junk having anything to do with 2.4 kernels. config.note_table_size = 0; temp = callgraph_depth_edit->text().toUInt(); if (temp > INT_MAX) { ostringstream error; error << "callgraph depth out of range: " << temp << " valid range is [" << 0 << ", " << INT_MAX << "]"; QMessageBox::warning(this, 0, error.str().c_str()); return false; } config.callgraph_depth = temp; config.verbose = verbose->isChecked(); config.separate_lib = separate_lib_cb->isChecked(); config.separate_kernel = separate_kernel_cb->isChecked(); config.separate_cpu = separate_cpu_cb->isChecked(); config.separate_thread = separate_thread_cb->isChecked(); return true; } void oprof_start::get_unit_mask_part(op_event_descr const & descr, uint num, bool selected, uint & mask) { if (!selected) return; if (num >= descr.unit->num) return; if (descr.unit->unit_type_mask == utm_bitmask) mask |= descr.unit->um[num].value; else mask = descr.unit->um[num].value; } // return the unit mask selected through the unit mask check box uint oprof_start::get_unit_mask(op_event_descr const & descr) { uint mask = 0; if (!descr.unit) return 0; // mandatory mask is transparent for user. if (descr.unit->unit_type_mask == utm_mandatory) { mask = descr.unit->default_mask; return mask; } get_unit_mask_part(descr, 0, check0->isChecked(), mask); get_unit_mask_part(descr, 1, check1->isChecked(), mask); get_unit_mask_part(descr, 2, check2->isChecked(), mask); get_unit_mask_part(descr, 3, check3->isChecked(), mask); get_unit_mask_part(descr, 4, check4->isChecked(), mask); get_unit_mask_part(descr, 5, check5->isChecked(), mask); get_unit_mask_part(descr, 6, check6->isChecked(), mask); get_unit_mask_part(descr, 7, check7->isChecked(), mask); get_unit_mask_part(descr, 8, check8->isChecked(), mask); get_unit_mask_part(descr, 9, check9->isChecked(), mask); get_unit_mask_part(descr, 10, check10->isChecked(), mask); get_unit_mask_part(descr, 11, check11->isChecked(), mask); get_unit_mask_part(descr, 12, check12->isChecked(), mask); get_unit_mask_part(descr, 13, check13->isChecked(), mask); get_unit_mask_part(descr, 14, check14->isChecked(), mask); get_unit_mask_part(descr, 15, check15->isChecked(), mask); return mask; } void oprof_start::hide_masks() { check0->hide(); check1->hide(); check2->hide(); check3->hide(); check4->hide(); check5->hide(); check6->hide(); check7->hide(); check8->hide(); check9->hide(); check10->hide(); check11->hide(); check12->hide(); check13->hide(); check14->hide(); check15->hide(); } void oprof_start::setup_unit_masks(op_event_descr const & descr) { #define OP_MAX_HANDLED_UMS 16 op_unit_mask const * um = descr.unit; hide_masks(); if (!um || um->unit_type_mask == utm_mandatory) return; if (um->num > OP_MAX_HANDLED_UMS) { ostringstream error; error << "Number of unit masks (" << um->num << ") is greater than max allowed (" << OP_MAX_HANDLED_UMS << ")."; QMessageBox::warning(this, 0, error.str().c_str()); return; } event_setting & cfg = event_cfgs[descr.name]; unit_mask_group->setExclusive(um->unit_type_mask == utm_exclusive); QCheckBox * check = NULL; for (size_t i = 0; i < um->num; ++i) { switch (i) { case 0: check = check0; break; case 1: check = check1; break; case 2: check = check2; break; case 3: check = check3; break; case 4: check = check4; break; case 5: check = check5; break; case 6: check = check6; break; case 7: check = check7; break; case 8: check = check8; break; case 9: check = check9; break; case 10: check = check10; break; case 11: check = check11; break; case 12: check = check12; break; case 13: check = check13; break; case 14: check = check14; break; case 15: check = check15; break; } check->setText(um->um[i].desc); if (um->unit_type_mask == utm_exclusive) check->setChecked(cfg.umask == um->um[i].value); else check->setChecked(cfg.umask & um->um[i].value); check->show(); } } uint oprof_start::max_perf_count() const { return cpu_type == CPU_RTC ? OP_MAX_RTC_COUNT : OP_MAX_PERF_COUNT; } void oprof_start::on_flush_profiler_data() { vector args; args.push_back("--dump"); if (daemon_status().running) do_exec_command(OP_BINDIR "/opcontrol", args); else QMessageBox::warning(this, 0, "The profiler is not started."); } // user is happy of its setting. void oprof_start::on_start_profiler() { // save the current settings record_selected_event_config(); bool one_enable = false; Q3ListViewItem * cur; for (cur = events_list->firstChild(); cur; cur = cur->nextSibling()) { if (!cur->isSelected()) continue; // the missing reference is intended: gcc 2.91.66 can compile // "op_event_descr const & descr = ..." w/o a warning op_event_descr const descr = locate_event(cur->text(0).latin1()); event_setting & cfg = event_cfgs[cur->text(0).latin1()]; one_enable = true; if (!cfg.os_ring_count && !cfg.user_ring_count) { QMessageBox::warning(this, 0, "You must select to " "profile at least one of user binaries/kernel"); return; } if (cfg.count < descr.min_count || cfg.count > max_perf_count()) { ostringstream out; out << "event " << descr.name << " count of range: " << cfg.count << " must be in [ " << descr.min_count << ", " << max_perf_count() << "]"; QMessageBox::warning(this, 0, out.str().c_str()); return; } if (descr.unit && descr.unit->unit_type_mask == utm_bitmask && cfg.umask == 0) { ostringstream out; out << "event " << descr.name << " invalid unit mask: " << cfg.umask << endl; QMessageBox::warning(this, 0, out.str().c_str()); return; } } if (one_enable == false && cpu_type != CPU_TIMER_INT) { QMessageBox::warning(this, 0, "No counters enabled.\n"); return; } if (daemon_status().running) { // gcc 2.91 work around int user_choice = 0; user_choice = QMessageBox::warning(this, 0, "Profiler already started:\n\n" "stop and restart it?", "&Restart", "&Cancel", 0, 0, 1); if (user_choice == 1) return; // this flush profiler data also. on_stop_profiler(); } vector args; // save_config validate and setup the config if (save_config()) { // now actually start args.push_back("--start"); if (config.verbose) args.push_back("--verbose"); do_exec_command(OP_BINDIR "/opcontrol", args); } total_nr_interrupts = 0; timerEvent(0); } bool oprof_start::save_config() { if (!record_config()) return false; vector args; // saving config is done by running opcontrol --setup with appropriate // setted parameters so we use the same config file as command line // tools args.push_back("--setup"); bool one_enabled = false; vector tmpargs; tmpargs.push_back("--setup"); Q3ListViewItem * cur; for (cur = events_list->firstChild(); cur; cur = cur->nextSibling()) { if (!cur->isSelected()) continue; event_setting & cfg = event_cfgs[cur->text(0).latin1()]; op_event_descr const & descr = locate_event(cur->text(0).latin1()); one_enabled = true; string arg = "--event=" + descr.name; arg += ":" + op_lexical_cast(cfg.count); arg += ":" + op_lexical_cast(cfg.umask); arg += ":" + op_lexical_cast(cfg.os_ring_count); arg += ":" + op_lexical_cast(cfg.user_ring_count); tmpargs.push_back(arg); } // only set counters if at least one is enabled if (one_enabled) args = tmpargs; if (config.no_kernel) { args.push_back("--no-vmlinux"); } else { args.push_back("--vmlinux=" + config.kernel_filename); } args.push_back("--buffer-size=" + op_lexical_cast(config.buffer_size)); args.push_back("--buffer-watershed=" + op_lexical_cast(config.buffer_watershed)); args.push_back("--cpu-buffer-size=" + op_lexical_cast(config.cpu_buffer_size)); if (op_file_readable("/dev/oprofile/backtrace_depth")) { args.push_back("--callgraph=" + op_lexical_cast(config.callgraph_depth)); } string sep = "--separate="; if (config.separate_lib) sep += "library,"; if (config.separate_kernel) sep += "kernel,"; if (config.separate_cpu) sep += "cpu,"; if (config.separate_thread) sep += "thread,"; if (sep == "--separate=") sep += "none"; args.push_back(sep); // 2.95 work-around, it didn't like return !do_exec_command() bool ret = !do_exec_command(OP_BINDIR "/opcontrol", args); return ret; } // flush and stop the profiler if it was started. void oprof_start::on_stop_profiler() { vector args; args.push_back("--shutdown"); if (daemon_status().running) do_exec_command(OP_BINDIR "/opcontrol", args); else QMessageBox::warning(this, 0, "The profiler is already stopped."); timerEvent(0); } void oprof_start::on_separate_kernel_cb_changed(int state) { if (state == 2) separate_lib_cb->setChecked(true); } void oprof_start::on_reset_sample_files() { int ret = QMessageBox::warning(this, 0, "Are you sure you want to " "reset your last profile session ?", "Yes", "No", 0, 0, 1); if (!ret) { vector args; args.push_back("--reset"); if (!do_exec_command(OP_BINDIR "/opcontrol", args)) // the next timer event will overwrite the message daemon_label->setText("Last profile session reseted."); else QMessageBox::warning(this, 0, "Can't reset profiling session."); } } /// function object for matching against name class event_name_eq { string name_; public: explicit event_name_eq(string const & s) : name_(s) {} bool operator()(op_event_descr const & d) const { return d.name == name_; } }; // helper to retrieve an event descr through its name. op_event_descr const & oprof_start::locate_event(string const & name) const { vector::const_iterator it = find_if(v_events.begin(), v_events.end(), event_name_eq(name)); // Failure to find the event should NEVER happen; I had to put this here to silence Coverity. if (it != v_events.end()) return *it; QMessageBox::warning((oprof_start *)this, 0, "Could not locate event. Returning null event."); null_evt.help_str = ""; null_evt.name = ""; return null_evt; } oprofile-0.9.9/gui/Makefile.am0000664000076400007640000000142712175510133013125 00000000000000SUBDIRS = ui dist_sources = \ oprof_start.cpp \ oprof_start_config.cpp \ oprof_start_util.cpp \ oprof_start_main.cpp \ oprof_start.h \ oprof_start_config.h \ oprof_start_util.h EXTRA_DIST = $(dist_sources) if have_qt AM_CPPFLAGS = \ @QT_CFLAGS@ \ -I ${top_srcdir}/libop \ -I ${top_srcdir}/libutil++ \ -I ${top_srcdir}/libutil \ @OP_CPPFLAGS@ AM_CXXFLAGS = @OP_CXXFLAGS@ bin_PROGRAMS = oprof_start oprof_start_SOURCES = $(dist_sources) nodist_oprof_start_SOURCES = oprof_start.moc.cpp oprof_start_LDADD = \ ../libutil++/libutil++.a \ ../libop/libop.a \ ../libutil/libutil.a \ ui/liboprof_start.a \ @QT_LIBS@ \ @X_LIBS@ oprof_start.moc.cpp: ${top_srcdir}/gui/oprof_start.h $(MOC) -o $@ ${top_srcdir}/gui/oprof_start.h clean-local: rm -f oprof_start.moc.cpp endif oprofile-0.9.9/gui/oprof_start_main.cpp0000664000076400007640000000115112175510133015135 00000000000000/** * @file oprof_start_main.cpp * main routine for GUI start * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie * @author John Levon */ #include #include #include #include #include "oprof_start.h" using namespace std; int main(int argc, char* argv[]) { QApplication a(argc, argv); oprof_start* dlg; try { dlg = new oprof_start(); } catch (exception e) { cerr << "Initialization error: " << e.what() << endl; exit(EXIT_FAILURE); } a.setMainWidget(dlg); dlg->show(); return a.exec(); } oprofile-0.9.9/m4/0000775000076400007640000000000012175511554010711 500000000000000oprofile-0.9.9/m4/builtinexpect.m40000664000076400007640000000060112175510133013737 00000000000000dnl builtin_expect is used in module we can't add that in config.h AC_DEFUN([AX_BUILTIN_EXPECT], [ AC_MSG_CHECKING([whether __builtin_expect is understood]) SAVE_CFLAGS=$CFLAGS CFLAGS="-Werror $CFLAGS" AC_TRY_LINK(,[ int i; if (__builtin_expect(i, 0)) { } ], AC_MSG_RESULT([yes]); EXTRA_CFLAGS_MODULE="$EXTRA_CFLAGS_MODULE -DEXPECT_OK", AC_MSG_RESULT([no]);) CFLAGS=$SAVE_CFLAGS ] ) oprofile-0.9.9/m4/qt.m40000664000076400007640000001101612175510133011506 00000000000000dnl find a binary in the path AC_DEFUN([QT_FIND_PATH], [ AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(qt_cv_path_$1, [ qt_cv_path_$1="NONE" if test -n "$$2"; then qt_cv_path_$1="$$2"; else dirs="$3" qt_save_IFS=$IFS IFS=':' for dir in $PATH; do dirs="$dirs $dir" done IFS=$qt_save_IFS for dir in $dirs; do if test -x "$dir/$1"; then if test -n "$5"; then evalstr="$dir/$1 $5 2>&1 " if eval $evalstr; then qt_cv_path_$1="$dir/$1" break fi else qt_cv_path_$1="$dir/$1" break fi fi done fi ]) if test -z "$qt_cv_path_$1" || test "$qt_cv_path_$1" = "NONE"; then AC_MSG_RESULT(not found) $4 else AC_MSG_RESULT($qt_cv_path_$1) $2=$qt_cv_path_$1 fi ]) dnl Find the uic compiler on the path or in qt_cv_dir AC_DEFUN([QT_FIND_UIC], [ QT_FIND_PATH(uic, ac_uic, $qt_cv_dir/bin) if test -z "$ac_uic" -a "$FATAL" = 1; then AC_MSG_ERROR([uic binary not found in \$PATH or $qt_cv_dir/bin !]) fi ]) dnl Find the right moc in path/qt_cv_dir AC_DEFUN([QT_FIND_MOC], [ QT_FIND_PATH(moc2, ac_moc2, $qt_cv_dir/bin) QT_FIND_PATH(moc, ac_moc1, $qt_cv_dir/bin) if test -n "$ac_moc1" -a -n "$ac_moc2"; then dnl found both. Prefer Qt3's if it exists else moc2 $ac_moc1 -v 2>&1 | grep "Qt 3" >/dev/null if test "$?" = 0; then ac_moc=$ac_moc1; else ac_moc=$ac_moc2; fi else if test -n "$ac_moc1"; then ac_moc=$ac_moc1; else ac_moc=$ac_moc2; fi fi if test -z "$ac_moc" -a "$FATAL" = 1; then AC_MSG_ERROR([moc binary not found in \$PATH or $qt_cv_dir/bin !]) fi ]) dnl check a particular libname AC_DEFUN([QT_TRY_LINK], [ SAVE_LIBS="$LIBS" LIBS="$LIBS $1" AC_TRY_LINK([ #include #include ], [ QString s("mangle_failure"); #if (QT_VERSION < 221) break_me_(\\\); #endif ], qt_cv_libname=$1, ) LIBS="$SAVE_LIBS" ]) dnl check we can do a compile AC_DEFUN([QT_CHECK_COMPILE], [ AC_MSG_CHECKING([$1 for Qt library name]) AC_CACHE_VAL(qt_cv_libname, [ AC_LANG_CPLUSPLUS SAVE_CXXFLAGS=$CXXFLAGS CXXFLAGS="$CXXFLAGS $QT_INCLUDES $QT_LDFLAGS" for libname in -lqt-mt -lqt3 -lqt2 -lqt; do QT_TRY_LINK($libname) if test -n "$qt_cv_libname"; then break; fi done CXXFLAGS=$SAVE_CXXFLAGS ]) if test -z "$qt_cv_libname"; then AC_MSG_RESULT([failed]) if test "$FATAL" = 1 ; then AC_MSG_ERROR([Cannot compile a simple Qt executable. Check you have the right \$QTDIR !]) fi else AC_MSG_RESULT([$qt_cv_libname]) fi ]) dnl get Qt version we're using AC_DEFUN([QT_GET_VERSION], [ AC_CACHE_CHECK([Qt version],lyx_cv_qtversion, [ AC_LANG_CPLUSPLUS SAVE_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $QT_INCLUDES" cat > conftest.$ac_ext < "%%%"QT_VERSION_STR"%%%" EOF lyx_cv_qtversion=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | \ grep '^"%%%"' 2>/dev/null | \ sed -e 's/"%%%"//g' -e 's/"//g'` rm -f conftest.$ac_ext CPPFLAGS=$SAVE_CPPFLAGS ]) QT_VERSION=$lyx_cv_qtversion AC_SUBST(QT_VERSION) ]) dnl start here AC_DEFUN([QT_DO_IT_ALL], [ dnl Please leave this alone. I use this file in dnl oprofile. FATAL=0 AC_ARG_WITH(qt-dir, [ --with-qt-dir where the root of Qt is installed ], [ qt_cv_dir=`eval echo "$withval"/` ]) AC_ARG_WITH(qt-includes, [ --with-qt-includes where the Qt includes are. ], [ qt_cv_includes=`eval echo "$withval"` ]) AC_ARG_WITH(qt-libraries, [ --with-qt-libraries where the Qt library is installed.], [ qt_cv_libraries=`eval echo "$withval"` ]) dnl pay attention to $QTDIR unless overridden if test -z "$qt_cv_dir"; then qt_cv_dir=$QTDIR fi dnl derive inc/lib if needed if test -n "$qt_cv_dir"; then if test -z "$qt_cv_includes"; then qt_cv_includes=$qt_cv_dir/include fi if test -z "$qt_cv_libraries"; then qt_cv_libraries=$qt_cv_dir/lib fi fi dnl flags for compilation QT_INCLUDES= QT_LDFLAGS= if test -n "$qt_cv_includes"; then QT_INCLUDES="-isystem $qt_cv_includes" fi if test -n "$qt_cv_libraries"; then QT_LDFLAGS="-L$qt_cv_libraries" fi AC_SUBST(QT_INCLUDES) AC_SUBST(QT_LDFLAGS) QT_FIND_MOC MOC=$ac_moc AC_SUBST(MOC) QT_FIND_UIC UIC=$ac_uic AC_SUBST(UIC) QT_CHECK_COMPILE(in lib) if test -z "$qt_cv_libname"; then if test -n "$qt_cv_dir"; then dnl Try again using lib64 vs lib qt_cv_libraries=$qt_cv_dir/lib64 QT_LDFLAGS="-L$qt_cv_libraries" QT_CHECK_COMPILE(in lib64) fi fi QT_LIB=$qt_cv_libname; AC_SUBST(QT_LIB) if test -n "$qt_cv_libname"; then QT_GET_VERSION fi ]) oprofile-0.9.9/m4/extradirs.m40000664000076400007640000000160412175510133013071 00000000000000dnl AX_EXTRA_DIRS - Let user specify extra dirs for include/libs AC_DEFUN([AX_EXTRA_DIRS], [ AC_ARG_WITH(extra-includes, [ --with-extra-includes=DIR add extra include paths], use_extra_includes="$withval", use_extra_includes=NO ) if test -n "$use_extra_includes" && \ test "$use_extra_includes" != "NO"; then ac_save_ifs=$IFS IFS=':' for dir in $use_extra_includes; do extra_includes="$extra_includes -I$dir" done IFS=$ac_save_ifs CPPFLAGS="$CPPFLAGS $extra_includes" fi AC_ARG_WITH(extra-libs, [ --with-extra-libs=DIR add extra library paths], use_extra_libs=$withval, use_extra_libs=NO ) if test -n "$use_extra_libs" && \ test "$use_extra_libs" != "NO"; then ac_save_ifs=$IFS IFS=':' for dir in $use_extra_libs; do extra_libraries="$extra_libraries -L$dir" done IFS=$ac_save_ifs LDFLAGS="$LDFLAGS $extra_libraries" fi ] ) oprofile-0.9.9/m4/copyifchange.m40000664000076400007640000000041612175510133013523 00000000000000dnl AX_COPY_IF_CHANGE(source, dest) dnl copy source to dest if they don't compare equally or if dest doesn't exist AC_DEFUN([AX_COPY_IF_CHANGE], [ if test -r $2; then if cmp $1 $2 > /dev/null; then echo $2 is unchanged else cp -f $1 $2 fi else cp -f $1 $2 fi ]) oprofile-0.9.9/m4/cellspubfdsupport.m40000664000076400007640000000327112175510133014646 00000000000000dnl AX_CELL_SPU - check for needed binutils stuff for Cell BE SPU AC_DEFUN([AX_CELL_SPU], [ # On Cell BE architecture, OProfile uses bfd_openr_iovec when processing some # SPU profiles. To parse embedded SPU ELF on Cell BE, OProfile requires a # version of bfd_openr_iovec that supports the elf32-spu target. # This version of the function also has a 7th parameter that's been added. # First, we check for existence of the base bfd_openr_iovec. If it exists, # we then use a temporary test program below that passes 7 arguments to # bfd_openr_iovec; if it compiles OK, we assume we have the right BFD # library to support Cell BE SPU profiling. AC_LANG_PUSH(C) AC_CHECK_LIB(bfd, bfd_openr_iovec, [bfd_openr_iovec_exists="yes"], [bfd_openr_iovec_exists="no"] ) if test "$bfd_openr_iovec_exists" = "yes"; then AC_MSG_CHECKING([whether bfd_openr_iovec has seven parameters]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include #include ], [[struct bfd *nbfd = bfd_openr_iovec("some-file", "elf32-spu", NULL, NULL, NULL, NULL, NULL); return 0; ]])], [AC_DEFINE([HAVE_BFD_OPENR_IOVEC_WITH_7PARMS], [], [Defined if you have the version of bfd_openr_iovec with 7 parameters]) bfd_open_iovec_7="yes" AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])] ) fi AC_LANG_POP(C) arch="unknown" AC_ARG_WITH(target, [ --with-target=cell-be Check BFD support for Cell Broadband Engine SPU profiling], arch=$withval) if test "$arch" = "cell-be"; then if test "$bfd_open_iovec_7" = "yes"; then AC_MSG_NOTICE([BFD library has support for Cell Broadband Engine SPU profiling]) else AC_ERROR([BFD library does not support elf32-spu target; SPU profiling is unsupported]) fi fi ] ) oprofile-0.9.9/m4/binutils.m40000664000076400007640000000343012175510133012714 00000000000000dnl AX_BINUTILS - check for needed binutils stuff AC_DEFUN([AX_BINUTILS], [ dnl some distro have a libiberty.a but does not have a libiberty.h AC_CHECK_HEADERS(libiberty.h) AC_CHECK_LIB(iberty, cplus_demangle,, AC_MSG_ERROR([liberty library not found])) AC_CHECK_FUNCS(xcalloc) AC_CHECK_FUNCS(xmemdup) AC_CHECK_LIB(dl, dlopen, LIBS="$LIBS -ldl"; DL_LIB="-ldl", DL_LIB="") AC_CHECK_LIB(intl, main, LIBS="$LIBS -lintl"; INTL_LIB="-lintl", INTL_LIB="") AC_CHECK_LIB(bfd, bfd_openr, LIBS="-lbfd $LIBS"; Z_LIB="", [AC_CHECK_LIB(z, compress, dnl Use a different bfd function here so as not to use cached result from above [AC_CHECK_LIB(bfd, bfd_fdopenr, LIBS="-lbfd -lz $LIBS"; Z_LIB="-lz", [AC_MSG_ERROR([bfd library not found])], -lz) ], [AC_MSG_ERROR([libz library not found; required by libbfd])]) ] ) AC_LANG_PUSH(C) # Determine if bfd_get_synthetic_symtab macro is available OS="`uname`" if test "$OS" = "Linux"; then AC_MSG_CHECKING([whether bfd_get_synthetic_symtab() exists in BFD library]) rm -f test-for-synth AC_LANG_CONFTEST( [AC_LANG_PROGRAM([[#include ]], [[asymbol * synthsyms; bfd * ibfd = 0; long synth_count = bfd_get_synthetic_symtab(ibfd, 0, 0, 0, 0, &synthsyms); extern const bfd_target bfd_elf64_powerpc_vec; extern const bfd_target bfd_elf64_powerpcle_vec; char * ppc_name = bfd_elf64_powerpc_vec.name; char * ppcle_name = bfd_elf64_powerpcle_vec.name; printf("%s %s\n", ppc_name, ppcle_name);]]) ]) $CC conftest.$ac_ext $CFLAGS $LDFLAGS $LIBS -o test-for-synth > /dev/null 2>&1 if test -f test-for-synth; then echo "yes" SYNTHESIZE_SYMBOLS='1' else echo "no" SYNTHESIZE_SYMBOLS='0' fi AC_DEFINE_UNQUOTED(SYNTHESIZE_SYMBOLS, $SYNTHESIZE_SYMBOLS, [Synthesize special symbols when needed]) rm -f test-for-synth* fi AC_LANG_POP(C) ] ) oprofile-0.9.9/m4/compileroption.m40000664000076400007640000000127212175510133014130 00000000000000dnl AX_CFLAGS_OPTIONS(var-name, option) dnl add option to var-name if $CC support it. AC_DEFUN([AX_CFLAGS_OPTION], [ AC_MSG_CHECKING([whether ${CC} $2 is understood]) AC_LANG_SAVE AC_LANG_C SAVE_CFLAGS=$CFLAGS CFLAGS=$2 AC_TRY_COMPILE(,[;],AC_MSG_RESULT([yes]); $1="${$1} $2",AC_MSG_RESULT([no])) CFLAGS=$SAVE_CFLAGS AC_LANG_RESTORE ]) dnl AX_CXXFLAGS_OPTIONS(var-name, option) dnl add option to var-name if $CXX support it. AC_DEFUN([AX_CXXFLAGS_OPTION], [ AC_MSG_CHECKING([whether ${CXX} $2 is understood]) AC_LANG_SAVE AC_LANG_CPLUSPLUS SAVE_CXXFLAGS=$CXXFLAGS CXXFLAGS=$2 AC_TRY_COMPILE(,[;],AC_MSG_RESULT([yes]); $1="${$1} $2",AC_MSG_RESULT([no])) CXXFLAGS=$SAVE_CXXFLAGS AC_LANG_RESTORE ]) oprofile-0.9.9/m4/typedef.m40000664000076400007640000000176012175510133012527 00000000000000dnl AX_CHECK_TYPEDEF(typedef_name, type, action-if-true, action-if-false) dnl exec action-if-true if typedef_name is a typedef to type else exec dnl action-if-false dnl currently work only with type typedef'ed in stddef.h AC_DEFUN([AX_CHECK_TYPEDEF], [ dnl AC_LANG_PUSH(C) not in autoconf 2.13 AC_LANG_SAVE AC_LANG_C SAVE_CFLAGS=$CFLAGS CFLAGS="-Werror $CFLAGS" AC_TRY_COMPILE( [ #include ], [ typedef void (*fct1)($1); typedef void (*fct2)($2); fct1 f1 = 0; fct2 f2 = 0; if (f1 == f2) {} ], [$3],[$4]) CFLAGS=$SAVE_CFLAGS AC_LANG_RESTORE ]) dnl AX_TYPEDEFED_NAME(typedef_name, candidate_list, var_name) dnl set var_name to the typedef name of $1 which must be in canditate_list dnl else produce a fatal error AC_DEFUN([AX_TYPEDEFED_NAME], [ AC_MSG_CHECKING([type of $1]) for f in $2; do AX_CHECK_TYPEDEF($1, $f, $3="$f", $3="") if test -n "${$3}"; then break fi done if test -n "${$3}"; then AC_MSG_RESULT([${$3}]) else AC_MSG_ERROR([not found]) fi ]) oprofile-0.9.9/m4/ltversion.m40000644000076400007640000000127712175510226013120 00000000000000# ltversion.m4 -- version numbers -*- Autoconf -*- # # Copyright (C) 2004 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # Generated from ltversion.in. # serial 3017 ltversion.m4 # This file is part of GNU Libtool m4_define([LT_PACKAGE_VERSION], [2.2.6b]) m4_define([LT_PACKAGE_REVISION], [1.3017]) AC_DEFUN([LTVERSION_VERSION], [macro_version='2.2.6b' macro_revision='1.3017' _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) _LT_DECL(, macro_revision, 0) ]) oprofile-0.9.9/m4/Makefile.in0000664000076400007640000002570612175510234012702 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # You will need to run autogen.sh after adding something here manually VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = m4 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ EXTRA_DIST = \ binutils.m4 \ builtinexpect.m4 \ compileroption.m4 \ copyifchange.m4 \ docbook.m4 \ extradirs.m4 \ mallocattribute.m4 \ poptconst.m4 \ precompiledheader.m4 \ qt.m4 \ resultyn.m4 \ sstream.m4 \ typedef.m4 all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign m4/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign m4/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/m4/precompiledheader.m40000664000076400007640000000117312175510133014541 00000000000000dnl AX_CXXFLAGS_OPTIONS(var-name, option) dnl add option to var-name if $CXX support it. AC_DEFUN([AX_CHECK_PRECOMPILED_HEADER], [ AC_MSG_CHECKING([whether ${CXX} support precompiled header]) AC_LANG_SAVE AC_LANG_CPLUSPLUS SAVE_CXXFLAGS=$CXXFLAGS dnl we consider than if -Winvalid-pch is accepted pch will works ... CXXFLAGS=-Winvalid-pch dnl but we don't want -Winvalid-pch else compilation will fail due -Werror and dnl the fact than some pch will be invalid for the given compilation option AC_TRY_COMPILE(,[;],AC_MSG_RESULT([yes]); $1="${$1} -include bits/stdc++.h", AC_MSG_RESULT([no])) CXXFLAGS=$SAVE_CXXFLAGS AC_LANG_RESTORE ]) oprofile-0.9.9/m4/docbook.m40000664000076400007640000000244012175510133012503 00000000000000dnl AX_CHECK_DOCBOOK AC_DEFUN([AX_CHECK_DOCBOOK], [ # It's just rude to go over the net to build XSLTPROC_FLAGS=--nonet DOCBOOK_ROOT= if test ! -f /etc/xml/catalog; then for i in /usr/share/sgml/docbook/stylesheet/xsl/nwalsh /usr/share/sgml/docbook/xsl-stylesheets/; do if test -d "$i"; then DOCBOOK_ROOT=$i fi done # Last resort - try net if test -z "$DOCBOOK_ROOT"; then XSLTPROC_FLAGS= fi else XML_CATALOG=/etc/xml/catalog CAT_ENTRY_START='' fi AC_CHECK_PROG(XSLTPROC,xsltproc,xsltproc,) XSLTPROC_WORKS=no if test -n "$XSLTPROC"; then AC_MSG_CHECKING([whether xsltproc works]) if test -n "$XML_CATALOG"; then DB_FILE="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl" else DB_FILE="$DOCBOOK_ROOT/docbook.xsl" fi $XSLTPROC $XSLTPROC_FLAGS $DB_FILE >/dev/null 2>&1 << END END if test "$?" = 0; then XSLTPROC_WORKS=yes fi AC_MSG_RESULT($XSLTPROC_WORKS) fi AM_CONDITIONAL(have_xsltproc, test "$XSLTPROC_WORKS" = "yes") AC_SUBST(XML_CATALOG) AC_SUBST(XSLTPROC_FLAGS) AC_SUBST(DOCBOOK_ROOT) AC_SUBST(CAT_ENTRY_START) AC_SUBST(CAT_ENTRY_END) ]) oprofile-0.9.9/m4/ltoptions.m40000644000076400007640000002724212175510226013126 00000000000000# Helper functions for option handling. -*- Autoconf -*- # # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 6 ltoptions.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) # ------------------------------------------ m4_define([_LT_MANGLE_OPTION], [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) # --------------------------------------- # Set option OPTION-NAME for macro MACRO-NAME, and if there is a # matching handler defined, dispatch to it. Other OPTION-NAMEs are # saved as a flag. m4_define([_LT_SET_OPTION], [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), _LT_MANGLE_DEFUN([$1], [$2]), [m4_warning([Unknown $1 option `$2'])])[]dnl ]) # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) # ------------------------------------------------------------ # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. m4_define([_LT_IF_OPTION], [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) # ------------------------------------------------------- # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME # are set. m4_define([_LT_UNLESS_OPTIONS], [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), [m4_define([$0_found])])])[]dnl m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 ])[]dnl ]) # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) # ---------------------------------------- # OPTION-LIST is a space-separated list of Libtool options associated # with MACRO-NAME. If any OPTION has a matching handler declared with # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about # the unknown option and exit. m4_defun([_LT_SET_OPTIONS], [# Set options m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [_LT_SET_OPTION([$1], _LT_Option)]) m4_if([$1],[LT_INIT],[ dnl dnl Simply set some default values (i.e off) if boolean options were not dnl specified: _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no ]) _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no ]) dnl dnl If no reference was made to various pairs of opposing options, then dnl we run the default mode handler for the pair. For example, if neither dnl `shared' nor `disable-shared' was passed, we enable building of shared dnl archives by default: _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], [_LT_ENABLE_FAST_INSTALL]) ]) ])# _LT_SET_OPTIONS ## --------------------------------- ## ## Macros to handle LT_INIT options. ## ## --------------------------------- ## # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) # ----------------------------------------- m4_define([_LT_MANGLE_DEFUN], [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) # ----------------------------------------------- m4_define([LT_OPTION_DEFINE], [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl ])# LT_OPTION_DEFINE # dlopen # ------ LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes ]) AU_DEFUN([AC_LIBTOOL_DLOPEN], [_LT_SET_OPTION([LT_INIT], [dlopen]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `dlopen' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) # win32-dll # --------- # Declare package support for building win32 dll's. LT_OPTION_DEFINE([LT_INIT], [win32-dll], [enable_win32_dll=yes case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; esac test -z "$AS" && AS=as _LT_DECL([], [AS], [0], [Assembler program])dnl test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl ])# win32-dll AU_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_REQUIRE([AC_CANONICAL_HOST])dnl _LT_SET_OPTION([LT_INIT], [win32-dll]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `win32-dll' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) # _LT_ENABLE_SHARED([DEFAULT]) # ---------------------------- # implement the --enable-shared flag, and supports the `shared' and # `disable-shared' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_SHARED], [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([shared], [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) _LT_DECL([build_libtool_libs], [enable_shared], [0], [Whether or not to build shared libraries]) ])# _LT_ENABLE_SHARED LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) # Old names: AC_DEFUN([AC_ENABLE_SHARED], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) ]) AC_DEFUN([AC_DISABLE_SHARED], [_LT_SET_OPTION([LT_INIT], [disable-shared]) ]) AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_SHARED], []) dnl AC_DEFUN([AM_DISABLE_SHARED], []) # _LT_ENABLE_STATIC([DEFAULT]) # ---------------------------- # implement the --enable-static flag, and support the `static' and # `disable-static' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_STATIC], [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([static], [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_static=]_LT_ENABLE_STATIC_DEFAULT) _LT_DECL([build_old_libs], [enable_static], [0], [Whether or not to build static libraries]) ])# _LT_ENABLE_STATIC LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) # Old names: AC_DEFUN([AC_ENABLE_STATIC], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) ]) AC_DEFUN([AC_DISABLE_STATIC], [_LT_SET_OPTION([LT_INIT], [disable-static]) ]) AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_STATIC], []) dnl AC_DEFUN([AM_DISABLE_STATIC], []) # _LT_ENABLE_FAST_INSTALL([DEFAULT]) # ---------------------------------- # implement the --enable-fast-install flag, and support the `fast-install' # and `disable-fast-install' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_FAST_INSTALL], [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([fast-install], [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) _LT_DECL([fast_install], [enable_fast_install], [0], [Whether or not to optimize for fast installation])dnl ])# _LT_ENABLE_FAST_INSTALL LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) # Old names: AU_DEFUN([AC_ENABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `fast-install' option into LT_INIT's first parameter.]) ]) AU_DEFUN([AC_DISABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], [disable-fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `disable-fast-install' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) # _LT_WITH_PIC([MODE]) # -------------------- # implement the --with-pic flag, and support the `pic-only' and `no-pic' # LT_INIT options. # MODE is either `yes' or `no'. If omitted, it defaults to `both'. m4_define([_LT_WITH_PIC], [AC_ARG_WITH([pic], [AS_HELP_STRING([--with-pic], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [pic_mode="$withval"], [pic_mode=default]) test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl ])# _LT_WITH_PIC LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) # Old name: AU_DEFUN([AC_LIBTOOL_PICMODE], [_LT_SET_OPTION([LT_INIT], [pic-only]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `pic-only' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) ## ----------------- ## ## LTDL_INIT Options ## ## ----------------- ## m4_define([_LTDL_MODE], []) LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], [m4_define([_LTDL_MODE], [nonrecursive])]) LT_OPTION_DEFINE([LTDL_INIT], [recursive], [m4_define([_LTDL_MODE], [recursive])]) LT_OPTION_DEFINE([LTDL_INIT], [subproject], [m4_define([_LTDL_MODE], [subproject])]) m4_define([_LTDL_TYPE], []) LT_OPTION_DEFINE([LTDL_INIT], [installable], [m4_define([_LTDL_TYPE], [installable])]) LT_OPTION_DEFINE([LTDL_INIT], [convenience], [m4_define([_LTDL_TYPE], [convenience])]) oprofile-0.9.9/m4/lt~obsolete.m40000644000076400007640000001311312175510226013435 00000000000000# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- # # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004. # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 4 lt~obsolete.m4 # These exist entirely to fool aclocal when bootstrapping libtool. # # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) # which have later been changed to m4_define as they aren't part of the # exported API, or moved to Autoconf or Automake where they belong. # # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us # using a macro with the same name in our local m4/libtool.m4 it'll # pull the old libtool.m4 in (it doesn't see our shiny new m4_define # and doesn't know about Autoconf macros at all.) # # So we provide this file, which has a silly filename so it's always # included after everything else. This provides aclocal with the # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything # because those macros already exist, or will be overwritten later. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. # # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. # Yes, that means every name once taken will need to remain here until # we give up compatibility with versions before 1.7, at which point # we need to keep only those names which we still refer to. # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])]) m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) oprofile-0.9.9/m4/resultyn.m40000664000076400007640000000022112175510133012743 00000000000000 dnl AX_MSG_RESULT_YN(a) dnl results "yes" iff a==1, "no" else AC_DEFUN([AX_MSG_RESULT_YN], [x=no test "x$1" = "x1" && x=yes AC_MSG_RESULT($x)]) oprofile-0.9.9/m4/libtool.m40000644000076400007640000077341112175510226012545 00000000000000# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008 Free Software Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. m4_define([_LT_COPYING], [dnl # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008 Free Software Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. # # GNU Libtool is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of # the License, or (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, or # obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. ]) # serial 56 LT_INIT # LT_PREREQ(VERSION) # ------------------ # Complain and exit if this libtool version is less that VERSION. m4_defun([LT_PREREQ], [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, [m4_default([$3], [m4_fatal([Libtool version $1 or higher is required], 63)])], [$2])]) # _LT_CHECK_BUILDDIR # ------------------ # Complain if the absolute build directory name contains unusual characters m4_defun([_LT_CHECK_BUILDDIR], [case `pwd` in *\ * | *\ *) AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; esac ]) # LT_INIT([OPTIONS]) # ------------------ AC_DEFUN([LT_INIT], [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT AC_BEFORE([$0], [LT_LANG])dnl AC_BEFORE([$0], [LT_OUTPUT])dnl AC_BEFORE([$0], [LTDL_INIT])dnl m4_require([_LT_CHECK_BUILDDIR])dnl dnl Autoconf doesn't catch unexpanded LT_ macros by default: m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 dnl unless we require an AC_DEFUNed macro: AC_REQUIRE([LTOPTIONS_VERSION])dnl AC_REQUIRE([LTSUGAR_VERSION])dnl AC_REQUIRE([LTVERSION_VERSION])dnl AC_REQUIRE([LTOBSOLETE_VERSION])dnl m4_require([_LT_PROG_LTMAIN])dnl dnl Parse OPTIONS _LT_SET_OPTIONS([$0], [$1]) # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ltmain" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl _LT_SETUP # Only expand once: m4_define([LT_INIT]) ])# LT_INIT # Old names: AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PROG_LIBTOOL], []) dnl AC_DEFUN([AM_PROG_LIBTOOL], []) # _LT_CC_BASENAME(CC) # ------------------- # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. m4_defun([_LT_CC_BASENAME], [for cc_temp in $1""; do case $cc_temp in compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` ]) # _LT_FILEUTILS_DEFAULTS # ---------------------- # It is okay to use these file commands and assume they have been set # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. m4_defun([_LT_FILEUTILS_DEFAULTS], [: ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} ])# _LT_FILEUTILS_DEFAULTS # _LT_SETUP # --------- m4_defun([_LT_SETUP], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl _LT_DECL([], [host_alias], [0], [The host system])dnl _LT_DECL([], [host], [0])dnl _LT_DECL([], [host_os], [0])dnl dnl _LT_DECL([], [build_alias], [0], [The build system])dnl _LT_DECL([], [build], [0])dnl _LT_DECL([], [build_os], [0])dnl dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl dnl AC_REQUIRE([AC_PROG_LN_S])dnl test -z "$LN_S" && LN_S="ln -s" _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl dnl AC_REQUIRE([LT_CMD_MAX_LEN])dnl _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_CMD_RELOAD])dnl m4_require([_LT_CHECK_MAGIC_METHOD])dnl m4_require([_LT_CMD_OLD_ARCHIVE])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl _LT_CONFIG_LIBTOOL_INIT([ # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi ]) if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi _LT_CHECK_OBJDIR m4_require([_LT_TAG_COMPILER])dnl _LT_PROG_ECHO_BACKSLASH case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\([["`\\]]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld="$lt_cv_prog_gnu_ld" old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o _LT_CC_BASENAME([$compiler]) # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then _LT_PATH_MAGIC fi ;; esac # Use C for the default configuration in the libtool script LT_SUPPORTED_TAG([CC]) _LT_LANG_C_CONFIG _LT_LANG_DEFAULT_CONFIG _LT_CONFIG_COMMANDS ])# _LT_SETUP # _LT_PROG_LTMAIN # --------------- # Note that this code is called both from `configure', and `config.status' # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, # `config.status' has no value for ac_aux_dir unless we are using Automake, # so we pass a copy along to make sure it has a sensible value anyway. m4_defun([_LT_PROG_LTMAIN], [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) ltmain="$ac_aux_dir/ltmain.sh" ])# _LT_PROG_LTMAIN ## ------------------------------------- ## ## Accumulate code for creating libtool. ## ## ------------------------------------- ## # So that we can recreate a full libtool script including additional # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS # in macros and then make a single call at the end using the `libtool' # label. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) # ---------------------------------------- # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL_INIT], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_INIT], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_INIT]) # _LT_CONFIG_LIBTOOL([COMMANDS]) # ------------------------------ # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) # ----------------------------------------------------- m4_defun([_LT_CONFIG_SAVE_COMMANDS], [_LT_CONFIG_LIBTOOL([$1]) _LT_CONFIG_LIBTOOL_INIT([$2]) ]) # _LT_FORMAT_COMMENT([COMMENT]) # ----------------------------- # Add leading comment marks to the start of each line, and a trailing # full-stop to the whole comment if one is not present already. m4_define([_LT_FORMAT_COMMENT], [m4_ifval([$1], [ m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) )]) ## ------------------------ ## ## FIXME: Eliminate VARNAME ## ## ------------------------ ## # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) # ------------------------------------------------------------------- # CONFIGNAME is the name given to the value in the libtool script. # VARNAME is the (base) name used in the configure script. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on # VARNAME. Any other value will be used directly. m4_define([_LT_DECL], [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], [m4_ifval([$1], [$1], [$2])]) lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) m4_ifval([$4], [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) lt_dict_add_subkey([lt_decl_dict], [$2], [tagged?], [m4_ifval([$5], [yes], [no])])]) ]) # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) # -------------------------------------------------------- m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_tag_varnames], [_lt_decl_filter([tagged?], [yes], $@)]) # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) # --------------------------------------------------------- m4_define([_lt_decl_filter], [m4_case([$#], [0], [m4_fatal([$0: too few arguments: $#])], [1], [m4_fatal([$0: too few arguments: $#: $1])], [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], [lt_dict_filter([lt_decl_dict], $@)])[]dnl ]) # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) # -------------------------------------------------- m4_define([lt_decl_quote_varnames], [_lt_decl_filter([value], [1], $@)]) # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_dquote_varnames], [_lt_decl_filter([value], [2], $@)]) # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_varnames_tagged], [m4_assert([$# <= 2])dnl _$0(m4_quote(m4_default([$1], [[, ]])), m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) m4_define([_lt_decl_varnames_tagged], [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_all_varnames], [_$0(m4_quote(m4_default([$1], [[, ]])), m4_if([$2], [], m4_quote(lt_decl_varnames), m4_quote(m4_shift($@))))[]dnl ]) m4_define([_lt_decl_all_varnames], [lt_join($@, lt_decl_varnames_tagged([$1], lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl ]) # _LT_CONFIG_STATUS_DECLARE([VARNAME]) # ------------------------------------ # Quote a variable value, and forward it to `config.status' so that its # declaration there will have the same value as in `configure'. VARNAME # must have a single quote delimited value for this to work. m4_define([_LT_CONFIG_STATUS_DECLARE], [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) # _LT_CONFIG_STATUS_DECLARATIONS # ------------------------------ # We delimit libtool config variables with single quotes, so when # we write them to config.status, we have to be sure to quote all # embedded single quotes properly. In configure, this macro expands # each variable declared with _LT_DECL (and _LT_TAGDECL) into: # # ='`$ECHO "X$" | $Xsed -e "$delay_single_quote_subst"`' m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAGS # ---------------- # Output comment and list of tags supported by the script m4_defun([_LT_LIBTOOL_TAGS], [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl available_tags="_LT_TAGS"dnl ]) # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) # ----------------------------------- # Extract the dictionary values for VARNAME (optionally with TAG) and # expand to a commented shell variable setting: # # # Some comment about what VAR is for. # visible_name=$lt_internal_name m4_define([_LT_LIBTOOL_DECLARE], [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [description])))[]dnl m4_pushdef([_libtool_name], m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), [0], [_libtool_name=[$]$1], [1], [_libtool_name=$lt_[]$1], [2], [_libtool_name=$lt_[]$1], [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl ]) # _LT_LIBTOOL_CONFIG_VARS # ----------------------- # Produce commented declarations of non-tagged libtool config variables # suitable for insertion in the LIBTOOL CONFIG section of the `libtool' # script. Tagged libtool config variables (even for the LIBTOOL CONFIG # section) are produced by _LT_LIBTOOL_TAG_VARS. m4_defun([_LT_LIBTOOL_CONFIG_VARS], [m4_foreach([_lt_var], m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAG_VARS(TAG) # ------------------------- m4_define([_LT_LIBTOOL_TAG_VARS], [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) # _LT_TAGVAR(VARNAME, [TAGNAME]) # ------------------------------ m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) # _LT_CONFIG_COMMANDS # ------------------- # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of # variables for single and double quote escaping we saved from calls # to _LT_DECL, we can put quote escaped variables declarations # into `config.status', and then the shell code to quote escape them in # for loops in `config.status'. Finally, any additional code accumulated # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. m4_defun([_LT_CONFIG_COMMANDS], [AC_PROVIDE_IFELSE([LT_OUTPUT], dnl If the libtool generation code has been placed in $CONFIG_LT, dnl instead of duplicating it all over again into config.status, dnl then we will have config.status run $CONFIG_LT later, so it dnl needs to know what name is stored there: [AC_CONFIG_COMMANDS([libtool], [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], dnl If the libtool generation code is destined for config.status, dnl expand the accumulated commands and init code now: [AC_CONFIG_COMMANDS([libtool], [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) ])#_LT_CONFIG_COMMANDS # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], [ # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' _LT_CONFIG_STATUS_DECLARATIONS LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # Quote evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_quote_varnames); do case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_dquote_varnames); do case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Fix-up fallback echo if it was mangled by the above quoting rules. case \$lt_ECHO in *'\\\[$]0 --fallback-echo"')dnl " lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` ;; esac _LT_OUTPUT_LIBTOOL_INIT ]) # LT_OUTPUT # --------- # This macro allows early generation of the libtool script (before # AC_OUTPUT is called), incase it is used in configure for compilation # tests. AC_DEFUN([LT_OUTPUT], [: ${CONFIG_LT=./config.lt} AC_MSG_NOTICE([creating $CONFIG_LT]) cat >"$CONFIG_LT" <<_LTEOF #! $SHELL # Generated by $as_me. # Run this file to recreate a libtool stub with the current configuration. lt_cl_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _LTEOF cat >>"$CONFIG_LT" <<\_LTEOF AS_SHELL_SANITIZE _AS_PREPARE exec AS_MESSAGE_FD>&1 exec AS_MESSAGE_LOG_FD>>config.log { echo AS_BOX([Running $as_me.]) } >&AS_MESSAGE_LOG_FD lt_cl_help="\ \`$as_me' creates a local libtool stub from the current configuration, for use in further configure time tests before the real libtool is generated. Usage: $[0] [[OPTIONS]] -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files Report bugs to ." lt_cl_version="\ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) configured by $[0], generated by m4_PACKAGE_STRING. Copyright (C) 2008 Free Software Foundation, Inc. This config.lt script is free software; the Free Software Foundation gives unlimited permision to copy, distribute and modify it." while test $[#] != 0 do case $[1] in --version | --v* | -V ) echo "$lt_cl_version"; exit 0 ;; --help | --h* | -h ) echo "$lt_cl_help"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --quiet | --q* | --silent | --s* | -q ) lt_cl_silent=: ;; -*) AC_MSG_ERROR([unrecognized option: $[1] Try \`$[0] --help' for more information.]) ;; *) AC_MSG_ERROR([unrecognized argument: $[1] Try \`$[0] --help' for more information.]) ;; esac shift done if $lt_cl_silent; then exec AS_MESSAGE_FD>/dev/null fi _LTEOF cat >>"$CONFIG_LT" <<_LTEOF _LT_OUTPUT_LIBTOOL_COMMANDS_INIT _LTEOF cat >>"$CONFIG_LT" <<\_LTEOF AC_MSG_NOTICE([creating $ofile]) _LT_OUTPUT_LIBTOOL_COMMANDS AS_EXIT(0) _LTEOF chmod +x "$CONFIG_LT" # configure is writing to config.log, but config.lt does its own redirection, # appending to config.log, which fails on DOS, as config.log is still kept # open by configure. Here we exec the FD to /dev/null, effectively closing # config.log, so it can be properly (re)opened and appended to by config.lt. if test "$no_create" != yes; then lt_cl_success=: test "$silent" = yes && lt_config_lt_args="$lt_config_lt_args --quiet" exec AS_MESSAGE_LOG_FD>/dev/null $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false exec AS_MESSAGE_LOG_FD>>config.log $lt_cl_success || AS_EXIT(1) fi ])# LT_OUTPUT # _LT_CONFIG(TAG) # --------------- # If TAG is the built-in tag, create an initial libtool script with a # default configuration from the untagged config vars. Otherwise add code # to config.status for appending the configuration named by TAG from the # matching tagged config vars. m4_defun([_LT_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_CONFIG_SAVE_COMMANDS([ m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl m4_if(_LT_TAG, [C], [ # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi cfgfile="${ofile}T" trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # _LT_COPYING _LT_LIBTOOL_TAGS # ### BEGIN LIBTOOL CONFIG _LT_LIBTOOL_CONFIG_VARS _LT_LIBTOOL_TAG_VARS # ### END LIBTOOL CONFIG _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac _LT_PROG_LTMAIN # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) _LT_PROG_XSI_SHELLFNS sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ], [cat <<_LT_EOF >> "$ofile" dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded dnl in a comment (ie after a #). # ### BEGIN LIBTOOL TAG CONFIG: $1 _LT_LIBTOOL_TAG_VARS(_LT_TAG) # ### END LIBTOOL TAG CONFIG: $1 _LT_EOF ])dnl /m4_if ], [m4_if([$1], [], [ PACKAGE='$PACKAGE' VERSION='$VERSION' TIMESTAMP='$TIMESTAMP' RM='$RM' ofile='$ofile'], []) ])dnl /_LT_CONFIG_SAVE_COMMANDS ])# _LT_CONFIG # LT_SUPPORTED_TAG(TAG) # --------------------- # Trace this macro to discover what tags are supported by the libtool # --tag option, using: # autoconf --trace 'LT_SUPPORTED_TAG:$1' AC_DEFUN([LT_SUPPORTED_TAG], []) # C support is built-in for now m4_define([_LT_LANG_C_enabled], []) m4_define([_LT_TAGS], []) # LT_LANG(LANG) # ------------- # Enable libtool support for the given language if not already enabled. AC_DEFUN([LT_LANG], [AC_BEFORE([$0], [LT_OUTPUT])dnl m4_case([$1], [C], [_LT_LANG(C)], [C++], [_LT_LANG(CXX)], [Java], [_LT_LANG(GCJ)], [Fortran 77], [_LT_LANG(F77)], [Fortran], [_LT_LANG(FC)], [Windows Resource], [_LT_LANG(RC)], [m4_ifdef([_LT_LANG_]$1[_CONFIG], [_LT_LANG($1)], [m4_fatal([$0: unsupported language: "$1"])])])dnl ])# LT_LANG # _LT_LANG(LANGNAME) # ------------------ m4_defun([_LT_LANG], [m4_ifdef([_LT_LANG_]$1[_enabled], [], [LT_SUPPORTED_TAG([$1])dnl m4_append([_LT_TAGS], [$1 ])dnl m4_define([_LT_LANG_]$1[_enabled], [])dnl _LT_LANG_$1_CONFIG($1)])dnl ])# _LT_LANG # _LT_LANG_DEFAULT_CONFIG # ----------------------- m4_defun([_LT_LANG_DEFAULT_CONFIG], [AC_PROVIDE_IFELSE([AC_PROG_CXX], [LT_LANG(CXX)], [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) AC_PROVIDE_IFELSE([AC_PROG_F77], [LT_LANG(F77)], [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) AC_PROVIDE_IFELSE([AC_PROG_FC], [LT_LANG(FC)], [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal dnl pulling things in needlessly. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([LT_PROG_GCJ], [LT_LANG(GCJ)], [m4_ifdef([AC_PROG_GCJ], [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([A][M_PROG_GCJ], [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([LT_PROG_GCJ], [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) AC_PROVIDE_IFELSE([LT_PROG_RC], [LT_LANG(RC)], [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) ])# _LT_LANG_DEFAULT_CONFIG # Obsolete macros: AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_CXX], []) dnl AC_DEFUN([AC_LIBTOOL_F77], []) dnl AC_DEFUN([AC_LIBTOOL_FC], []) dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) # _LT_TAG_COMPILER # ---------------- m4_defun([_LT_TAG_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC ])# _LT_TAG_COMPILER # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. m4_defun([_LT_COMPILER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ])# _LT_COMPILER_BOILERPLATE # _LT_LINKER_BOILERPLATE # ---------------------- # Check for linker boilerplate output or warnings with # the simple link test code. m4_defun([_LT_LINKER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ])# _LT_LINKER_BOILERPLATE # _LT_REQUIRED_DARWIN_CHECKS # ------------------------- m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ case $host_os in rhapsody* | darwin*) AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) AC_CHECK_TOOL([LIPO], [lipo], [:]) AC_CHECK_TOOL([OTOOL], [otool], [:]) AC_CHECK_TOOL([OTOOL64], [otool64], [:]) _LT_DECL([], [DSYMUTIL], [1], [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) _LT_DECL([], [NMEDIT], [1], [Tool to change global to local symbols on Mac OS X]) _LT_DECL([], [LIPO], [1], [Tool to manipulate fat objects and archives on Mac OS X]) _LT_DECL([], [OTOOL], [1], [ldd/readelf like tool for Mach-O binaries on Mac OS X]) _LT_DECL([], [OTOOL64], [1], [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], [lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -rf libconftest.dylib* rm -f conftest.* fi]) AC_CACHE_CHECK([for -exported_symbols_list linker flag], [lt_cv_ld_exported_symbols_list], [lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [lt_cv_ld_exported_symbols_list=yes], [lt_cv_ld_exported_symbols_list=no]) LDFLAGS="$save_LDFLAGS" ]) case $host_os in rhapsody* | darwin1.[[012]]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10.[[012]]*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; then _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' fi if test "$DSYMUTIL" != ":"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac ]) # _LT_DARWIN_LINKER_FEATURES # -------------------------- # Checks for linker and compiler features on darwin m4_defun([_LT_DARWIN_LINKER_FEATURES], [ m4_require([_LT_REQUIRED_DARWIN_CHECKS]) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(whole_archive_flag_spec, $1)='' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" case $cc_basename in ifort*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; then output_verbose_link_cmd=echo _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" m4_if([$1], [CXX], [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" fi ],[]) else _LT_TAGVAR(ld_shlibs, $1)=no fi ]) # _LT_SYS_MODULE_PATH_AIX # ----------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. m4_defun([_LT_SYS_MODULE_PATH_AIX], [m4_require([_LT_DECL_SED])dnl AC_LINK_IFELSE(AC_LANG_PROGRAM,[ lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi],[]) if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ])# _LT_SYS_MODULE_PATH_AIX # _LT_SHELL_INIT(ARG) # ------------------- m4_define([_LT_SHELL_INIT], [ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], [AC_DIVERT_PUSH(NOTICE)]) $1 AC_DIVERT_POP ])# _LT_SHELL_INIT # _LT_PROG_ECHO_BACKSLASH # ----------------------- # Add some code to the start of the generated configure script which # will find an echo command which doesn't interpret backslashes. m4_defun([_LT_PROG_ECHO_BACKSLASH], [_LT_SHELL_INIT([ # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$lt_ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` ;; esac ECHO=${lt_ECHO-echo} if test "X[$]1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X[$]1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then # Yippee, $ECHO works! : else # Restart under the correct shell. exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} fi if test "X[$]1" = X--fallback-echo; then # used as fallback echo shift cat <<_LT_EOF [$]* _LT_EOF exit 0 fi # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH if test -z "$lt_ECHO"; then if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if { echo_test_string=`eval $cmd`; } 2>/dev/null && { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null then break fi done fi if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then ECHO="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$ECHO" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. ECHO='print -r' elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} else # Try using printf. ECHO='printf %s\n' if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL ECHO="$CONFIG_SHELL [$]0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then ECHO="$CONFIG_SHELL [$]0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "[$]0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} else # Oops. We lost completely, so just stick with echo. ECHO=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. lt_ECHO=$ECHO if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" fi AC_SUBST(lt_ECHO) ]) _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) _LT_DECL([], [ECHO], [1], [An echo program that does not interpret backslashes]) ])# _LT_PROG_ECHO_BACKSLASH # _LT_ENABLE_LOCK # --------------- m4_defun([_LT_ENABLE_LOCK], [AC_ARG_ENABLE([libtool-lock], [AS_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '[#]line __oline__ "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; sparc*-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) LD="${LD-ld} -m elf64_sparc" ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks="$enable_libtool_lock" ])# _LT_ENABLE_LOCK # _LT_CMD_OLD_ARCHIVE # ------------------- m4_defun([_LT_CMD_OLD_ARCHIVE], [AC_CHECK_TOOL(AR, ar, false) test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru _LT_DECL([], [AR], [1], [The archiver]) _LT_DECL([], [AR_FLAGS], [1]) AC_CHECK_TOOL(STRIP, strip, :) test -z "$STRIP" && STRIP=: _LT_DECL([], [STRIP], [1], [A symbol stripping program]) AC_CHECK_TOOL(RANLIB, ranlib, :) test -z "$RANLIB" && RANLIB=: _LT_DECL([], [RANLIB], [1], [Commands used to install an old-style archive]) # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi _LT_DECL([], [old_postinstall_cmds], [2]) _LT_DECL([], [old_postuninstall_cmds], [2]) _LT_TAGDECL([], [old_archive_cmds], [2], [Commands used to build an old-style archive]) ])# _LT_CMD_OLD_ARCHIVE # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([_LT_COMPILER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi fi $RM conftest* ]) if test x"[$]$2" = xyes; then m4_if([$5], , :, [$5]) else m4_if([$6], , :, [$6]) fi ])# _LT_COMPILER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------- # Check whether the given linker option works AC_DEFUN([_LT_LINKER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $3" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&AS_MESSAGE_LOG_FD $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi else $2=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" ]) if test x"[$]$2" = xyes; then m4_if([$4], , :, [$4]) else m4_if([$5], , :, [$5]) fi ])# _LT_LINKER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) # LT_CMD_MAX_LEN #--------------- AC_DEFUN([LT_CMD_MAX_LEN], [AC_REQUIRE([AC_CANONICAL_HOST])dnl # find the maximum length of command line arguments AC_MSG_CHECKING([the maximum length of command line arguments]) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8 ; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ = "XX$teststring$teststring"; } >/dev/null 2>&1 && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac ]) if test -n $lt_cv_sys_max_cmd_len ; then AC_MSG_RESULT($lt_cv_sys_max_cmd_len) else AC_MSG_RESULT(none) fi max_cmd_len=$lt_cv_sys_max_cmd_len _LT_DECL([], [max_cmd_len], [0], [What is the maximum length of a command?]) ])# LT_CMD_MAX_LEN # Old name: AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) # _LT_HEADER_DLFCN # ---------------- m4_defun([_LT_HEADER_DLFCN], [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl ])# _LT_HEADER_DLFCN # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # ---------------------------------------------------------------- m4_defun([_LT_TRY_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test "$cross_compiling" = yes; then : [$4] else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF [#line __oline__ "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } else puts (dlerror ()); return status; }] _LT_EOF if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_dlunknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_TRY_DLOPEN_SELF # LT_SYS_DLOPEN_SELF # ------------------ AC_DEFUN([LT_SYS_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ]) ;; *) AC_CHECK_FUNC([shl_load], [lt_cv_dlopen="shl_load"], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen="dlopen"], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) ]) ]) ]) ]) ]) ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi _LT_DECL([dlopen_support], [enable_dlopen], [0], [Whether dlopen is supported]) _LT_DECL([dlopen_self], [enable_dlopen_self], [0], [Whether dlopen of programs is supported]) _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], [Whether dlopen of statically linked programs is supported]) ])# LT_SYS_DLOPEN_SELF # Old name: AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) # _LT_COMPILER_C_O([TAGNAME]) # --------------------------- # Check to see if options -c and -o are simultaneously supported by compiler. # This macro does not hard code the compiler like AC_PROG_CC_C_O. m4_defun([_LT_COMPILER_C_O], [m4_require([_LT_DECL_SED])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . 2>&AS_MESSAGE_LOG_FD $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* ]) _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], [Does compiler simultaneously support -c and -o options?]) ])# _LT_COMPILER_C_O # _LT_COMPILER_FILE_LOCKS([TAGNAME]) # ---------------------------------- # Check to see if we can do hard links to lock some files if needed m4_defun([_LT_COMPILER_FILE_LOCKS], [m4_require([_LT_ENABLE_LOCK])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_COMPILER_C_O([$1]) hard_links="nottested" if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no AC_MSG_RESULT([$hard_links]) if test "$hard_links" = no; then AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) ])# _LT_COMPILER_FILE_LOCKS # _LT_CHECK_OBJDIR # ---------------- m4_defun([_LT_CHECK_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null]) objdir=$lt_cv_objdir _LT_DECL([], [objdir], [0], [The name of the directory that contains temporary libtool files])dnl m4_pattern_allow([LT_OBJDIR])dnl AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", [Define to the sub-directory in which libtool stores uninstalled libraries.]) ])# _LT_CHECK_OBJDIR # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) # -------------------------------------- # Check hardcoding attributes. m4_defun([_LT_LINKER_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_TAGVAR(hardcode_action, $1)= if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || test -n "$_LT_TAGVAR(runpath_var, $1)" || test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then # We can hardcode non-existent directories. if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then # Linking always hardcodes the temporary library directory. _LT_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi _LT_TAGDECL([], [hardcode_action], [0], [How to hardcode a shared library path into an executable]) ])# _LT_LINKER_HARDCODE_LIBPATH # _LT_CMD_STRIPLIB # ---------------- m4_defun([_LT_CMD_STRIPLIB], [m4_require([_LT_DECL_EGREP]) striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) _LT_DECL([], [striplib], [1]) ])# _LT_CMD_STRIPLIB # _LT_SYS_DYNAMIC_LINKER([TAG]) # ----------------------------- # PORTME Fill in your ld.so characteristics m4_defun([_LT_SYS_DYNAMIC_LINKER], [AC_REQUIRE([AC_CANONICAL_HOST])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_OBJDUMP])dnl m4_require([_LT_DECL_SED])dnl AC_MSG_CHECKING([dynamic linker characteristics]) m4_if([$1], [], [ if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` else lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path/$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo="/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[[lt_foo]]++; } if (lt_freq[[lt_foo]] == 1) { print lt_foo; } }'` sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi]) library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[[4-9]]*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[[01]] | aix4.[[01]].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[[45]]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[[123]]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[[01]]* | freebsdelf3.[[01]]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix[[3-9]]*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], [shlibpath_overrides_runpath=yes])]) LDFLAGS=$save_LDFLAGS libdir=$save_libdir # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Add ABI-specific directories to the system library path. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[[89]] | openbsd2.[[89]].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac AC_MSG_RESULT([$dynamic_linker]) test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi _LT_DECL([], [variables_saved_for_relink], [1], [Variables whose values should be saved in libtool wrapper scripts and restored at link time]) _LT_DECL([], [need_lib_prefix], [0], [Do we need the "lib" prefix for modules?]) _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) _LT_DECL([], [version_type], [0], [Library versioning type]) _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) _LT_DECL([], [shlibpath_overrides_runpath], [0], [Is shlibpath searched before the hard-coded library search path?]) _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) _LT_DECL([], [library_names_spec], [1], [[List of archive names. First name is the real one, the rest are links. The last name is the one that the linker finds with -lNAME]]) _LT_DECL([], [soname_spec], [1], [[The coded name of the library, if different from the real name]]) _LT_DECL([], [postinstall_cmds], [2], [Command to use after installation of a shared archive]) _LT_DECL([], [postuninstall_cmds], [2], [Command to use after uninstallation of a shared archive]) _LT_DECL([], [finish_cmds], [2], [Commands used to finish a libtool library installation in a directory]) _LT_DECL([], [finish_eval], [1], [[As "finish_cmds", except a single script fragment to be evaled but not shown]]) _LT_DECL([], [hardcode_into_libs], [0], [Whether we should hardcode library paths into libraries]) _LT_DECL([], [sys_lib_search_path_spec], [2], [Compile-time system search path for libraries]) _LT_DECL([], [sys_lib_dlsearch_path_spec], [2], [Run-time system search path for libraries]) ])# _LT_SYS_DYNAMIC_LINKER # _LT_PATH_TOOL_PREFIX(TOOL) # -------------------------- # find a file program which can recognize shared library AC_DEFUN([_LT_PATH_TOOL_PREFIX], [m4_require([_LT_DECL_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [case $MAGIC_CMD in [[\\/*] | ?:[\\/]*]) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="m4_if([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$1; then lt_cv_path_MAGIC_CMD="$ac_dir/$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac]) MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi _LT_DECL([], [MAGIC_CMD], [0], [Used to examine libraries when file_magic_cmd begins with "file"])dnl ])# _LT_PATH_TOOL_PREFIX # Old name: AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) # _LT_PATH_MAGIC # -------------- # find a file program which can recognize a shared library m4_defun([_LT_PATH_MAGIC], [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# _LT_PATH_MAGIC # LT_PATH_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([LT_PATH_LD], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl AC_ARG_WITH([gnu-ld], [AS_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test "$withval" = no || with_gnu_ld=yes], [with_gnu_ld=no])dnl ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[[3-9]]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. linux* | k*bsd*-gnu) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; esac ]) file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown _LT_DECL([], [deplibs_check_method], [1], [Method to check whether dependent libraries are shared objects]) _LT_DECL([], [file_magic_cmd], [1], [Command to use when deplibs_check_method == "file_magic"]) ])# _LT_CHECK_MAGIC_METHOD # LT_PATH_NM # ---------- # find the pathname to a BSD- or MS-compatible name lister AC_DEFUN([LT_PATH_NM], [AC_REQUIRE([AC_PROG_CC])dnl AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done : ${lt_cv_path_NM=no} fi]) if test "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else # Didn't find any BSD compatible name lister, look for dumpbin. AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) AC_SUBST([DUMPBIN]) if test "$DUMPBIN" != ":"; then NM="$DUMPBIN" fi fi test -z "$NM" && NM=nm AC_SUBST([NM]) _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], [lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) cat conftest.out >&AS_MESSAGE_LOG_FD if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest*]) ])# LT_PATH_NM # Old names: AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_PROG_NM], []) dnl AC_DEFUN([AC_PROG_NM], []) # LT_LIB_M # -------- # check for math library AC_DEFUN([LT_LIB_M], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM="-lm") ;; esac AC_SUBST([LIBM]) ])# LT_LIB_M # Old name: AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_CHECK_LIBM], []) # _LT_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------- m4_defun([_LT_COMPILER_NO_RTTI], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test "$GCC" = yes; then _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], [Compiler flag to turn off builtin functions]) ])# _LT_COMPILER_NO_RTTI # _LT_CMD_GLOBAL_SYMBOLS # ---------------------- m4_defun([_LT_CMD_GLOBAL_SYMBOLS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_PATH_NM])dnl AC_REQUIRE([LT_PATH_LD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_TAG_COMPILER])dnl # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[[BCDEGRST]]' # Regexp to match symbols that can be accessed directly from C. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[[ABCDGISTW]]' ;; hpux*) if test "$host_cpu" = ia64; then symcode='[[ABCDEGRST]]' fi ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris*) symcode='[[BDRT]]' ;; sco3.2v5*) symcode='[[DT]]' ;; sysv4.2uw2*) symcode='[[DT]]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[[ABDT]]' ;; sysv4) symcode='[[DFNSTU]]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGIRSTW]]' ;; esac # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function # and D for any global variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK ['"\ " {last_section=section; section=\$ 3};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ " s[1]~/^[@?]/{print s[1], s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx]" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if AC_TRY_EVAL(ac_compile); then # Now try to grab the symbols. nlist=conftest.nm if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ const struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[[]] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" CFLAGS="$lt_save_CFLAGS" else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done ]) if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], [Take the output of nm and produce a listing of raw symbols and C names]) _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], [Transform the output of nm in a proper C declaration]) _LT_DECL([global_symbol_to_c_name_address], [lt_cv_sys_global_symbol_to_c_name_address], [1], [Transform the output of nm in a C name address pair]) _LT_DECL([global_symbol_to_c_name_address_lib_prefix], [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], [Transform the output of nm in a C name address pair when lib prefix is needed]) ]) # _LT_CMD_GLOBAL_SYMBOLS # _LT_COMPILER_PIC([TAGNAME]) # --------------------------- m4_defun([_LT_COMPILER_PIC], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_wl, $1)= _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)= AC_MSG_CHECKING([for $compiler option to produce PIC]) m4_if([$1], [CXX], [ # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix[[4-9]]*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; dgux*) case $cc_basename in ec++*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # KAI C++ Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64 which still supported -KPIC. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xlc* | xlC*) # IBM XL 8.0 on PPC _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test "$GCC" = yes; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; hpux9* | hpux10* | hpux11*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; linux* | k*bsd*-gnu) case $cc_basename in # old Intel for x86_64 which still supported -KPIC. ecc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # Lahey Fortran 8.1. lf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xl*) # IBM XL C 8.0/Fortran 10.1 on PPC _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; *Sun\ F*) # Sun Fortran 8.3 passes all unrecognized flags to the linker _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='' ;; esac ;; esac ;; newsos6) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; rdos*) _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" ;; esac AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], [How to pass a linker flag through the compiler]) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], [Additional compiler flags for building library objects]) # # Check to make sure the static flag actually works. # wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], [Compiler flag to prevent dynamic linking]) ])# _LT_COMPILER_PIC # _LT_LINKER_SHLIBS([TAGNAME]) # ---------------------------- # See if the linker supports building shared libraries. m4_defun([_LT_LINKER_SHLIBS], [AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) m4_if([$1], [CXX], [ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in aix[[4-9]]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" ;; cygwin* | mingw* | cegcc*) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] ], [ runpath_var= _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_cmds, $1)= _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(old_archive_from_new_cmds, $1)= _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_TAGVAR(thread_safe_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_TAGVAR(include_expsyms, $1)= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. dnl Note also adjust exclude_expsyms for C++ above. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac _LT_TAGVAR(ld_shlibs, $1)=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[[3-9]]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu) tmp_diet=no if test "$host_os" = linux-dietlibc; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then tmp_addflag= tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 _LT_TAGVAR(whole_archive_flag_spec, $1)= tmp_sharedflag='--shared' ;; xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi case $cc_basename in xlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then runpath_var= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. _LT_TAGVAR(hardcode_minus_L, $1)=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix[[4-9]]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' if test "$GCC" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; bsdi[[45]]*) _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; freebsd1*) _LT_TAGVAR(ld_shlibs, $1)=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" AC_LINK_IFELSE(int foo(void) {}, _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' ) LDFLAGS="$save_LDFLAGS" else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' else case $host_os in openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' ;; esac fi else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='${wl}' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' fi ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(ld_shlibs, $1)=no ;; esac if test x$host_vendor = xsni; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' ;; esac fi fi ]) AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl _LT_DECL([], [extract_expsyms_cmds], [2], [The commands to extract the exported symbol list from a shared archive]) # # Do we need to explicitly link libc? # case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_TAGVAR(archive_cmds_need_lc, $1)=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $_LT_TAGVAR(archive_cmds, $1) in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. AC_MSG_CHECKING([whether -lc should be explicitly linked in]) $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) _LT_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) then _LT_TAGVAR(archive_cmds_need_lc, $1)=no else _LT_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) ;; esac fi ;; esac _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], [Whether or not to add -lc for building shared libraries]) _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], [enable_shared_with_static_runtimes], [0], [Whether or not to disallow shared libs when runtime libs are static]) _LT_TAGDECL([], [export_dynamic_flag_spec], [1], [Compiler flag to allow reflexive dlopens]) _LT_TAGDECL([], [whole_archive_flag_spec], [1], [Compiler flag to generate shared objects directly from archives]) _LT_TAGDECL([], [compiler_needs_object], [1], [Whether the compiler copes with passing no objects directly]) _LT_TAGDECL([], [old_archive_from_new_cmds], [2], [Create an old-style archive from a shared archive]) _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], [Create a temporary old-style archive to link instead of a shared archive]) _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) _LT_TAGDECL([], [archive_expsym_cmds], [2]) _LT_TAGDECL([], [module_cmds], [2], [Commands used to build a loadable module if different from building a shared archive.]) _LT_TAGDECL([], [module_expsym_cmds], [2]) _LT_TAGDECL([], [with_gnu_ld], [1], [Whether we are building with GNU ld or not]) _LT_TAGDECL([], [allow_undefined_flag], [1], [Flag that allows shared libraries with undefined symbols to be built]) _LT_TAGDECL([], [no_undefined_flag], [1], [Flag that enforces no undefined symbols]) _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], [Flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]) _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], [[If ld is used when linking, flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]]) _LT_TAGDECL([], [hardcode_libdir_separator], [1], [Whether we need a single "-rpath" flag with a separated argument]) _LT_TAGDECL([], [hardcode_direct], [0], [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_direct_absolute], [0], [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the resulting binary and the resulting library dependency is "absolute", i.e impossible to change by setting ${shlibpath_var} if the library is relocated]) _LT_TAGDECL([], [hardcode_minus_L], [0], [Set to "yes" if using the -LDIR flag during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_shlibpath_var], [0], [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_automatic], [0], [Set to "yes" if building a shared library automatically hardcodes DIR into the library and all subsequent libraries and executables linked against it]) _LT_TAGDECL([], [inherit_rpath], [0], [Set to yes if linker adds runtime paths of dependent libraries to runtime path list]) _LT_TAGDECL([], [link_all_deplibs], [0], [Whether libtool must link a program against all its dependency libraries]) _LT_TAGDECL([], [fix_srcfile_path], [1], [Fix the shell variable $srcfile for the compiler]) _LT_TAGDECL([], [always_export_symbols], [0], [Set to "yes" if exported symbols are required]) _LT_TAGDECL([], [export_symbols_cmds], [2], [The commands to list exported symbols]) _LT_TAGDECL([], [exclude_expsyms], [1], [Symbols that should not be listed in the preloaded symbols]) _LT_TAGDECL([], [include_expsyms], [1], [Symbols that must always be exported]) _LT_TAGDECL([], [prelink_cmds], [2], [Commands necessary for linking programs (against libraries) with templates]) _LT_TAGDECL([], [file_list_spec], [1], [Specify filename containing input files]) dnl FIXME: Not yet implemented dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], dnl [Compiler flag to generate thread safe objects]) ])# _LT_LINKER_SHLIBS # _LT_LANG_C_CONFIG([TAG]) # ------------------------ # Ensure that the configuration variables for a C compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to `libtool'. m4_defun([_LT_LANG_C_CONFIG], [m4_require([_LT_DECL_EGREP])dnl lt_save_CC="$CC" AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' _LT_TAG_COMPILER # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) LT_SYS_DLOPEN_SELF _LT_CMD_STRIPLIB # Report which library types will actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_CONFIG($1) fi AC_LANG_POP CC="$lt_save_CC" ])# _LT_LANG_C_CONFIG # _LT_PROG_CXX # ------------ # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ # compiler, we have our own version here. m4_defun([_LT_PROG_CXX], [ pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) AC_PROG_CXX if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_PROG_CXXCPP else _lt_caught_CXX_error=yes fi popdef([AC_MSG_ERROR]) ])# _LT_PROG_CXX dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([_LT_PROG_CXX], []) # _LT_LANG_CXX_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a C++ compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to `libtool'. m4_defun([_LT_LANG_CXX_CONFIG], [AC_REQUIRE([_LT_PROG_CXX])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl AC_LANG_PUSH(C++) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_caught_CXX_error" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration LT_PATH_LD # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aix[[4-9]]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' if test "$GXX" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to # export. _LT_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty # executable. _LT_SYS_MODULE_PATH_AIX _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared # libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd[[12]]*) # C++ shared libraries reported to be fairly broken before # switch to ELF _LT_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_TAGVAR(ld_shlibs, $1)=yes ;; gnu*) ;; hpux9*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; *) if test "$GXX" = yes; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) ;; *) _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' fi fi _LT_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | ecpc* ) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ $RANLIB $oldlib' _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; *) # Version 6 will use weak symbols _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; xl*) # IBM XL 8.0 on PPC, with GNU ld _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) _LT_TAGVAR(ld_shlibs, $1)=yes ;; openbsd2*) # C++ shared libraries are fairly broken _LT_TAGVAR(ld_shlibs, $1)=no ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd=echo else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; cxx*) case $host in osf3*) _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' ;; *) _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ $RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' ;; esac _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' case $host in osf3*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_TAGVAR(GCC, $1)="$GXX" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" CC=$lt_save_CC LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test "$_lt_caught_CXX_error" != yes AC_LANG_POP ])# _LT_LANG_CXX_CONFIG # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) # --------------------------------- # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. m4_defun([_LT_SYS_HIDDEN_LIBDEPS], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl # Dependencies to place before and after the object being linked: _LT_TAGVAR(predep_objects, $1)= _LT_TAGVAR(postdep_objects, $1)= _LT_TAGVAR(predeps, $1)= _LT_TAGVAR(postdeps, $1)= _LT_TAGVAR(compiler_lib_search_path, $1)= dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF int a; void foo (void) { a = 0; } _LT_EOF ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer*4 a a=0 return end _LT_EOF ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer a a=0 return end _LT_EOF ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF public class foo { private int a; public void bar (void) { a = 0; } }; _LT_EOF ]) dnl Parse the compiler output and extract the necessary dnl objects, libraries and library flags. if AC_TRY_EVAL(ac_compile); then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case $p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test $p = "-L" || test $p = "-R"; then prev=$p continue else prev= fi if test "$pre_test_object_deps_done" = no; then case $p in -L* | -R*) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" else _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$_LT_TAGVAR(postdeps, $1)"; then _LT_TAGVAR(postdeps, $1)="${prev}${p}" else _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" fi fi ;; *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test "$pre_test_object_deps_done" = no; then if test -z "$_LT_TAGVAR(predep_objects, $1)"; then _LT_TAGVAR(predep_objects, $1)="$p" else _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" fi else if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then _LT_TAGVAR(postdep_objects, $1)="$p" else _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling $1 test program" fi $RM -f confest.$objext # PORTME: override above test on systems where it is broken m4_if([$1], [CXX], [case $host_os in interix[[3-9]]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. _LT_TAGVAR(predep_objects,$1)= _LT_TAGVAR(postdep_objects,$1)= _LT_TAGVAR(postdeps,$1)= ;; linux*) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac if test "$solaris_use_stlport4" != yes; then _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; solaris*) case $cc_basename in CC*) # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac # Adding this requires a known-good setup of shared libraries for # Sun compiler versions before 5.6, else PIC objects from an old # archive will be linked into the output, leading to subtle bugs. if test "$solaris_use_stlport4" != yes; then _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; esac ]) case " $_LT_TAGVAR(postdeps, $1) " in *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; esac _LT_TAGVAR(compiler_lib_search_dirs, $1)= if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` fi _LT_TAGDECL([], [compiler_lib_search_dirs], [1], [The directories searched by this compiler when creating a shared library]) _LT_TAGDECL([], [predep_objects], [1], [Dependencies to place before and after the objects being linked to create a shared library]) _LT_TAGDECL([], [postdep_objects], [1]) _LT_TAGDECL([], [predeps], [1]) _LT_TAGDECL([], [postdeps], [1]) _LT_TAGDECL([], [compiler_lib_search_path], [1], [The library search path used internally by the compiler when linking a shared library]) ])# _LT_SYS_HIDDEN_LIBDEPS # _LT_PROG_F77 # ------------ # Since AC_PROG_F77 is broken, in that it returns the empty string # if there is no fortran compiler, we have our own version here. m4_defun([_LT_PROG_F77], [ pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) AC_PROG_F77 if test -z "$F77" || test "X$F77" = "Xno"; then _lt_disable_F77=yes fi popdef([AC_MSG_ERROR]) ])# _LT_PROG_F77 dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([_LT_PROG_F77], []) # _LT_LANG_F77_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a Fortran 77 compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_F77_CONFIG], [AC_REQUIRE([_LT_PROG_F77])dnl AC_LANG_PUSH(Fortran 77) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the F77 compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_disable_F77" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC CC=${F77-"f77"} compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) GCC=$G77 if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)="$G77" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC="$lt_save_CC" fi # test "$_lt_disable_F77" != yes AC_LANG_POP ])# _LT_LANG_F77_CONFIG # _LT_PROG_FC # ----------- # Since AC_PROG_FC is broken, in that it returns the empty string # if there is no fortran compiler, we have our own version here. m4_defun([_LT_PROG_FC], [ pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) AC_PROG_FC if test -z "$FC" || test "X$FC" = "Xno"; then _lt_disable_FC=yes fi popdef([AC_MSG_ERROR]) ])# _LT_PROG_FC dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([_LT_PROG_FC], []) # _LT_LANG_FC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for a Fortran compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_FC_CONFIG], [AC_REQUIRE([_LT_PROG_FC])dnl AC_LANG_PUSH(Fortran) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for fc test sources. ac_ext=${ac_fc_srcext-f} # Object file extension for compiled fc test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the FC compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_disable_FC" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC CC=${FC-"f95"} compiler=$CC GCC=$ac_cv_fc_compiler_gnu _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC="$lt_save_CC" fi # test "$_lt_disable_FC" != yes AC_LANG_POP ])# _LT_LANG_FC_CONFIG # _LT_LANG_GCJ_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Java Compiler compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_GCJ_CONFIG], [AC_REQUIRE([LT_PROG_GCJ])dnl AC_LANG_SAVE # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC GCC=yes CC=${GCJ-"gcj"} compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)="$LD" _LT_CC_BASENAME([$compiler]) # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC="$lt_save_CC" ])# _LT_LANG_GCJ_CONFIG # _LT_LANG_RC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for the Windows resource compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_RC_CONFIG], [AC_REQUIRE([LT_PROG_RC])dnl AC_LANG_SAVE # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' # Code to be used in simple link tests lt_simple_link_test_code="$lt_simple_compile_test_code" # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC GCC= CC=${RC-"windres"} compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes if test -n "$compiler"; then : _LT_CONFIG($1) fi GCC=$lt_save_GCC AC_LANG_RESTORE CC="$lt_save_CC" ])# _LT_LANG_RC_CONFIG # LT_PROG_GCJ # ----------- AC_DEFUN([LT_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj,) test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS)])])[]dnl ]) # Old name: AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_GCJ], []) # LT_PROG_RC # ---------- AC_DEFUN([LT_PROG_RC], [AC_CHECK_TOOL(RC, windres,) ]) # Old name: AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_RC], []) # _LT_DECL_EGREP # -------------- # If we don't have a new enough Autoconf to choose the best grep # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_EGREP], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_REQUIRE([AC_PROG_FGREP])dnl test -z "$GREP" && GREP=grep _LT_DECL([], [GREP], [1], [A grep program that handles long lines]) _LT_DECL([], [EGREP], [1], [An ERE matcher]) _LT_DECL([], [FGREP], [1], [A literal string matcher]) dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too AC_SUBST([GREP]) ]) # _LT_DECL_OBJDUMP # -------------- # If we don't have a new enough Autoconf to choose the best objdump # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_OBJDUMP], [AC_CHECK_TOOL(OBJDUMP, objdump, false) test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) AC_SUBST([OBJDUMP]) ]) # _LT_DECL_SED # ------------ # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. m4_defun([_LT_DECL_SED], [AC_PROG_SED test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], [Sed that helps us avoid accidentally triggering echo(1) options like -n]) ])# _LT_DECL_SED m4_ifndef([AC_PROG_SED], [ ############################################################ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # ############################################################ m4_defun([AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done ]) SED=$lt_cv_path_SED AC_SUBST([SED]) AC_MSG_RESULT([$SED]) ])#AC_PROG_SED ])#m4_ifndef # Old name: AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_SED], []) # _LT_CHECK_SHELL_FEATURES # ------------------------ # Find out whether the shell is Bourne or XSI compatible, # or has some other useful features. m4_defun([_LT_CHECK_SHELL_FEATURES], [AC_MSG_CHECKING([whether the shell understands some XSI constructs]) # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ = c,a/b,, \ && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes AC_MSG_RESULT([$xsi_shell]) _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) AC_MSG_CHECKING([whether the shell understands "+="]) lt_shell_append=no ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes AC_MSG_RESULT([$lt_shell_append]) _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl ])# _LT_CHECK_SHELL_FEATURES # _LT_PROG_XSI_SHELLFNS # --------------------- # Bourne and XSI compatible variants of some useful shell functions. m4_defun([_LT_PROG_XSI_SHELLFNS], [case $xsi_shell in yes) cat << \_LT_EOF >> "$cfgfile" # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac } # func_basename file func_basename () { func_basename_result="${1##*/}" } # func_dirname_and_basename file append nondir_replacement # perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # Implementation must be kept synchronized with func_dirname # and func_basename. For efficiency, we do not delegate to # those functions but instead duplicate the functionality here. func_dirname_and_basename () { case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac func_basename_result="${1##*/}" } # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). func_stripname () { # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are # positional parameters, so assign one to ordinary parameter first. func_stripname_result=${3} func_stripname_result=${func_stripname_result#"${1}"} func_stripname_result=${func_stripname_result%"${2}"} } # func_opt_split func_opt_split () { func_opt_split_opt=${1%%=*} func_opt_split_arg=${1#*=} } # func_lo2o object func_lo2o () { case ${1} in *.lo) func_lo2o_result=${1%.lo}.${objext} ;; *) func_lo2o_result=${1} ;; esac } # func_xform libobj-or-source func_xform () { func_xform_result=${1%.*}.lo } # func_arith arithmetic-term... func_arith () { func_arith_result=$(( $[*] )) } # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=${#1} } _LT_EOF ;; *) # Bourne compatible functions. cat << \_LT_EOF >> "$cfgfile" # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { # Extract subdirectory from the argument. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi } # func_basename file func_basename () { func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` } dnl func_dirname_and_basename dnl A portable version of this function is already defined in general.m4sh dnl so there is no need for it here. # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # func_strip_suffix prefix name func_stripname () { case ${2} in .*) func_stripname_result=`$ECHO "X${3}" \ | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; *) func_stripname_result=`$ECHO "X${3}" \ | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; esac } # sed scripts: my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' my_sed_long_arg='1s/^-[[^=]]*=//' # func_opt_split func_opt_split () { func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` } # func_lo2o object func_lo2o () { func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` } # func_xform libobj-or-source func_xform () { func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` } # func_arith arithmetic-term... func_arith () { func_arith_result=`expr "$[@]"` } # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` } _LT_EOF esac case $lt_shell_append in yes) cat << \_LT_EOF >> "$cfgfile" # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "$[1]+=\$[2]" } _LT_EOF ;; *) cat << \_LT_EOF >> "$cfgfile" # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "$[1]=\$$[1]\$[2]" } _LT_EOF ;; esac ]) oprofile-0.9.9/m4/mallocattribute.m40000664000076400007640000000063412175510133014261 00000000000000dnl AX_MALLOC_ATTRIBUTE - see if gcc will take __attribute__((malloc)) AC_DEFUN([AX_MALLOC_ATTRIBUTE], [ AC_MSG_CHECKING([whether malloc attribute is understood]) SAVE_CFLAGS=$CFLAGS CFLAGS="-Werror $CFLAGS" AC_TRY_COMPILE(,[ void monkey() __attribute__((malloc)); ],AC_MSG_RESULT([yes]); AC_DEFINE(MALLOC_ATTRIBUTE_OK, 1, [whether malloc attribute is understood]), AC_MSG_RESULT([no])) CFLAGS=$SAVE_CFLAGS ] ) oprofile-0.9.9/m4/sstream.m40000664000076400007640000000044712175510133012546 00000000000000dnl AX_CHECK_SSTREAM - check if local sstream is needed to compile OK AC_DEFUN([AX_CHECK_SSTREAM], [ AC_MSG_CHECKING([whether to use included sstream]) AC_TRY_COMPILE([#include ], [], AC_MSG_RESULT([no]);, AC_MSG_RESULT([yes]); OP_CXXFLAGS="$OP_CXXFLAGS -I\${top_srcdir}/include") ] ) oprofile-0.9.9/m4/ltsugar.m40000644000076400007640000001042412175510226012546 00000000000000# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- # # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 6 ltsugar.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) # lt_join(SEP, ARG1, [ARG2...]) # ----------------------------- # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their # associated separator. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier # versions in m4sugar had bugs. m4_define([lt_join], [m4_if([$#], [1], [], [$#], [2], [[$2]], [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) m4_define([_lt_join], [m4_if([$#$2], [2], [], [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) # lt_car(LIST) # lt_cdr(LIST) # ------------ # Manipulate m4 lists. # These macros are necessary as long as will still need to support # Autoconf-2.59 which quotes differently. m4_define([lt_car], [[$1]]) m4_define([lt_cdr], [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], [$#], 1, [], [m4_dquote(m4_shift($@))])]) m4_define([lt_unquote], $1) # lt_append(MACRO-NAME, STRING, [SEPARATOR]) # ------------------------------------------ # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. # Note that neither SEPARATOR nor STRING are expanded; they are appended # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). # No SEPARATOR is output if MACRO-NAME was previously undefined (different # than defined and empty). # # This macro is needed until we can rely on Autoconf 2.62, since earlier # versions of m4sugar mistakenly expanded SEPARATOR but not STRING. m4_define([lt_append], [m4_define([$1], m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) # ---------------------------------------------------------- # Produce a SEP delimited list of all paired combinations of elements of # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list # has the form PREFIXmINFIXSUFFIXn. # Needed until we can rely on m4_combine added in Autoconf 2.62. m4_define([lt_combine], [m4_if(m4_eval([$# > 3]), [1], [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl [[m4_foreach([_Lt_prefix], [$2], [m4_foreach([_Lt_suffix], ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) # ----------------------------------------------------------------------- # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. m4_define([lt_if_append_uniq], [m4_ifdef([$1], [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], [lt_append([$1], [$2], [$3])$4], [$5])], [lt_append([$1], [$2], [$3])$4])]) # lt_dict_add(DICT, KEY, VALUE) # ----------------------------- m4_define([lt_dict_add], [m4_define([$1($2)], [$3])]) # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) # -------------------------------------------- m4_define([lt_dict_add_subkey], [m4_define([$1($2:$3)], [$4])]) # lt_dict_fetch(DICT, KEY, [SUBKEY]) # ---------------------------------- m4_define([lt_dict_fetch], [m4_ifval([$3], m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) # ----------------------------------------------------------------- m4_define([lt_if_dict_fetch], [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], [$5], [$6])]) # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) # -------------------------------------------------------------- m4_define([lt_dict_filter], [m4_if([$5], [], [], [lt_join(m4_quote(m4_default([$4], [[, ]])), lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl ]) oprofile-0.9.9/m4/Makefile.am0000664000076400007640000000046112175510133012656 00000000000000 # You will need to run autogen.sh after adding something here manually EXTRA_DIST = \ binutils.m4 \ builtinexpect.m4 \ compileroption.m4 \ copyifchange.m4 \ docbook.m4 \ extradirs.m4 \ mallocattribute.m4 \ poptconst.m4 \ precompiledheader.m4 \ qt.m4 \ resultyn.m4 \ sstream.m4 \ typedef.m4 oprofile-0.9.9/m4/poptconst.m40000664000076400007640000000064412175510133013120 00000000000000dnl AX_POPT_CONST - check popt prototype AC_DEFUN([AX_POPT_CONST], [ AC_MSG_CHECKING([popt prototype]) SAVE_CXXFLAGS=$CXXFLAGS CXXFLAGS="-Werror $CXXFLAGS" AC_TRY_COMPILE([#include ], [ int c; char **v; poptGetContext(0, c, v, 0, 0); ], AC_MSG_RESULT([takes char **]);, AC_MSG_RESULT([takes const char **]); AC_DEFINE(CONST_POPT, 1, [whether popt prototype takes a const char **])) CXXFLAGS="$SAVE_CXXFLAGS" ] ) oprofile-0.9.9/m4/kernelversion.m40000664000076400007640000000053612175510133013755 00000000000000dnl AX_KERNEL_VERSION(major, minor, level, comparison, action-if-true, action-if-false) AC_DEFUN([AX_KERNEL_VERSION], [ SAVE_CFLAGS=$CFLAGS CFLAGS="-I$KINC -Werror" AC_TRY_COMPILE( [ #include ], [ #if LINUX_VERSION_CODE $4 KERNEL_VERSION($1, $2, $3) break_me_hard(\\\); #endif ], [$5],[$6],) CFLAGS=$SAVE_CFLAGS ]) oprofile-0.9.9/README_PACKAGERS0000664000076400007640000000664612175510133012555 00000000000000Building an RPM for OProfile ================================== When building an RPM for OProfile, please follow the RPM packaging guidelines described in: http://www.rpm.org/RPM-HOWTO/build.html New file to install as of release 0.9.3 --------------------------------------- As of release 0.9.3, opreport is capable of generating XML output. Tool developers who wish to use the xml output will need to have access to the doc/opreport.xsd file, which describes the schema. RPM packagers may install this file in the same package as the other standard OProfile components or in a separate devel package if desired. New files to install as of release 0.9.4 --------------------------------------- As of release 0.9.4, OProfile includes a JIT support library called libopagent. This library is needed at runtime when profiling JITed code from supported virtual machines. The install location for this library is: //oprofile And there's a new binary file to install that's used for JIT profiling called opjitconv. As with the other oprofile executables, this file is installed in the /bin directory. OProfile also includes support for profiling Java applications. This support must be configured by way of the '--with-java=' configure option. If your JDK is older than version 1.5, only a JVMPI agent library is built. If your JDK is version 1.5, both JVMPI and JVMTI agent libraries are built. If your JDK is 1.6 or newer, only the JVMTI agent library is built. As with libopagent described above, the install location for these is '/oprofile'. RPM packagers can install the /oprofile libraries in the same package as the other standard OProfile components or in a separate package if desired. It is recommended to run ldconfig in %post and %postun to add/remove the /oprofile path from the standard library search paths. On bi-arch platforms that support more than one "bitness" of userspace software (e.g., 32-bit and 64-bit programs), it is recommended that the libopagent and Java agent libraries be packaged in a separate RPM. You could then build OProfile twice -- once for each bitness type. You would then distribute both versions of the RPMs containing the libraries, but only one RPM containing the "base" OProfile (i.e., executables, scripts, etc.). The new JIT support also provides the ability for third parties to develop JIT agents for other virtual machines. The development files provided for this purpose are: doc/op-jit-devel.html include/opagent.h Again, the RPM packager may package these files in the default package or in a separate devel package. Requirement for building a binary RPM package ---------------------------------------- OProfile requires the special user account "oprofile" to exist for purposes of processing samples from JIT'ed code (e.g., Java applications). When defining the spec file for the OProfile RPM, you should add the automatic creation of the special "oprofile" user account. Please refer to the URL below for an example of how this can be done: http://fedoraproject.org/wiki/Packaging/UsersAndGroups For example, the following commands would add the necessary user account: %pre getent group oprofile >/dev/null || groupadd -r oprofile getent passwd oprofile >/dev/null || \ useradd -r -g oprofile -d /home/oprofile -s /sbin/nologin \ -c "Special user account to be used by OProfile" oprofile exit 0 oprofile-0.9.9/config.h.in0000664000076400007640000000622312175510232012327 00000000000000/* config.h.in. Generated from configure.ac by autoheader. */ /* whether popt prototype takes a const char ** */ #undef CONST_POPT /* Defined if you have the version of bfd_openr_iovec with 7 parameters */ #undef HAVE_BFD_OPENR_IOVEC_WITH_7PARMS /* Define to 1 if you have the declaration of `basename', and to 0 if you don't. */ #undef HAVE_DECL_BASENAME /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the `iberty' library (-liberty). */ #undef HAVE_LIBIBERTY /* Define to 1 if you have the header file. */ #undef HAVE_LIBIBERTY_H /* Define to 1 if libpfm is available */ #undef HAVE_LIBPFM /* Define to 1 if using libpfm3; 0 if using newer libpfm */ #undef HAVE_LIBPFM3 /* Define to 1 if you have the `popt' library (-lpopt). */ #undef HAVE_LIBPOPT /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the `perfmonctl' function. */ #undef HAVE_PERFMONCTL /* Kernel support for perf_events exists */ #undef HAVE_PERF_EVENTS /* PERF_RECORD_MISC_GUEST_KERNEL is defined in perf_event.h */ #undef HAVE_PERF_GUEST_MACROS /* precise_ip is defined in perf_event.h */ #undef HAVE_PERF_PRECISE_IP /* Define to 1 if you have the `sched_setaffinity' function. */ #undef HAVE_SCHED_SETAFFINITY /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to 1 if you have the `xcalloc' function. */ #undef HAVE_XCALLOC /* Define to 1 if you have the `xmemdup' function. */ #undef HAVE_XMEMDUP /* Define to the sub-directory in which libtool stores uninstalled libraries. */ #undef LT_OBJDIR /* whether malloc attribute is understood */ #undef MALLOC_ATTRIBUTE_OK /* package binary directory */ #undef OP_BINDIR /* package data directory */ #undef OP_DATADIR /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Synthesize special symbols when needed */ #undef SYNTHESIZE_SYMBOLS /* whether bfd.h defines bool values */ #undef TRUE_FALSE_ALREADY_DEFINED /* Version number of package */ #undef VERSION /* Define to 1 if the X Window System is missing or not being used. */ #undef X_DISPLAY_MISSING oprofile-0.9.9/pe_profiling/0000775000076400007640000000000012175511560013043 500000000000000oprofile-0.9.9/pe_profiling/Makefile.in0000664000076400007640000004417712175510234015042 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @BUILD_FOR_PERF_EVENT_TRUE@bin_PROGRAMS = operf$(EXEEXT) subdir = pe_profiling DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am__operf_SOURCES_DIST = operf.cpp @BUILD_FOR_PERF_EVENT_TRUE@am_operf_OBJECTS = operf.$(OBJEXT) operf_OBJECTS = $(am_operf_OBJECTS) @BUILD_FOR_PERF_EVENT_TRUE@operf_DEPENDENCIES = \ @BUILD_FOR_PERF_EVENT_TRUE@ ../libperf_events/libperf_events.a \ @BUILD_FOR_PERF_EVENT_TRUE@ ../libutil++/libutil++.a \ @BUILD_FOR_PERF_EVENT_TRUE@ ../libdb/libodb.a ../libop/libop.a \ @BUILD_FOR_PERF_EVENT_TRUE@ ../libutil/libutil.a \ @BUILD_FOR_PERF_EVENT_TRUE@ ../libabi/libabi.a DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(operf_SOURCES) DIST_SOURCES = $(am__operf_SOURCES_DIST) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBERTY_LIBS@ @PFM_LIB@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ @BUILD_FOR_PERF_EVENT_TRUE@AM_CPPFLAGS = \ @BUILD_FOR_PERF_EVENT_TRUE@ -I ${top_srcdir}/libutil \ @BUILD_FOR_PERF_EVENT_TRUE@ -I ${top_srcdir}/libop \ @BUILD_FOR_PERF_EVENT_TRUE@ -I ${top_srcdir}/libutil++ \ @BUILD_FOR_PERF_EVENT_TRUE@ -I ${top_srcdir}/libperf_events \ @BUILD_FOR_PERF_EVENT_TRUE@ @PERF_EVENT_FLAGS@ \ @BUILD_FOR_PERF_EVENT_TRUE@ @OP_CPPFLAGS@ @BUILD_FOR_PERF_EVENT_TRUE@operf_SOURCES = operf.cpp @BUILD_FOR_PERF_EVENT_TRUE@AM_CXXFLAGS = @OP_CXXFLAGS@ @BUILD_FOR_PERF_EVENT_TRUE@AM_LDFLAGS = @OP_LDFLAGS@ @BUILD_FOR_PERF_EVENT_TRUE@operf_LDADD = ../libperf_events/libperf_events.a \ @BUILD_FOR_PERF_EVENT_TRUE@ ../libutil++/libutil++.a \ @BUILD_FOR_PERF_EVENT_TRUE@ ../libdb/libodb.a \ @BUILD_FOR_PERF_EVENT_TRUE@ ../libop/libop.a \ @BUILD_FOR_PERF_EVENT_TRUE@ ../libutil/libutil.a \ @BUILD_FOR_PERF_EVENT_TRUE@ ../libabi/libabi.a all: all-am .SUFFIXES: .SUFFIXES: .cpp .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign pe_profiling/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign pe_profiling/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p || test -f $$p1; \ then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list operf$(EXEEXT): $(operf_OBJECTS) $(operf_DEPENDENCIES) @rm -f operf$(EXEEXT) $(CXXLINK) $(operf_OBJECTS) $(operf_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/operf.Po@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic clean-libtool ctags distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-binPROGRAMS install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am \ uninstall-binPROGRAMS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/pe_profiling/Makefile.am0000664000076400007640000000076612175510133015023 00000000000000LIBS=@LIBERTY_LIBS@ @PFM_LIB@ if BUILD_FOR_PERF_EVENT AM_CPPFLAGS = \ -I ${top_srcdir}/libutil \ -I ${top_srcdir}/libop \ -I ${top_srcdir}/libutil++ \ -I ${top_srcdir}/libperf_events \ @PERF_EVENT_FLAGS@ \ @OP_CPPFLAGS@ operf_SOURCES = operf.cpp AM_CXXFLAGS = @OP_CXXFLAGS@ AM_LDFLAGS = @OP_LDFLAGS@ bin_PROGRAMS = operf operf_LDADD = ../libperf_events/libperf_events.a \ ../libutil++/libutil++.a \ ../libdb/libodb.a \ ../libop/libop.a \ ../libutil/libutil.a \ ../libabi/libabi.a endif oprofile-0.9.9/pe_profiling/operf.cpp0000664000076400007640000016607012175510133014607 00000000000000/** * @file operf.cpp * Front-end (containing main) for handling a user request to run a profile * using the new Linux Performance Events Subsystem. * * @remark Copyright 2011 OProfile authors * @remark Read the file COPYING * * Created on: Dec 7, 2011 * @author Maynard Johnson * (C) Copyright IBM Corp. 2011 * * Modified by Maynard Johnson * (C) Copyright IBM Corporation 2012, 2013 * */ #include "config.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "operf_utils.h" #include "op_libiberty.h" #include "string_manip.h" #include "cverb.h" #include "operf_counter.h" #include "op_cpu_type.h" #include "op_cpufreq.h" #include "op_events.h" #include "op_string.h" #include "operf_kernel.h" #include "child_reader.h" #include "op_get_time.h" #include "operf_stats.h" #include "op_netburst.h" using namespace std; typedef enum END_CODE { ALL_OK = 0, APP_ABNORMAL_END = 1, PERF_RECORD_ERROR = 2, PERF_READ_ERROR = 4, PERF_BOTH_ERROR = 8 } end_code_t; // Globals char * app_name = NULL; bool use_cpu_minus_one = false; pid_t app_PID = -1; uint64_t kernel_start, kernel_end; operf_read operfRead; op_cpu cpu_type; double cpu_speed; uint op_nr_events; verbose vmisc("misc"); uid_t my_uid; bool no_vmlinux; int kptr_restrict; char * start_time_human_readable; #define DEFAULT_OPERF_OUTFILE "operf.data" #define CALLGRAPH_MIN_COUNT_SCALE 15 static char full_pathname[PATH_MAX]; static char * app_name_SAVE = NULL; static char ** app_args = NULL; static pid_t jitconv_pid = -1; static bool app_started; static pid_t operf_record_pid; static pid_t operf_read_pid; static string samples_dir; static bool startApp; static string outputfile; static char start_time_str[32]; static vector events; static bool jit_conversion_running; static void convert_sample_data(void); static int sample_data_pipe[2]; bool ctl_c = false; bool pipe_closed = false; namespace operf_options { bool system_wide; bool append; int pid; bool callgraph; int mmap_pages_mult; string session_dir; string vmlinux; bool separate_cpu; bool separate_thread; bool post_conversion; vector evts; } static const char * valid_verbose_vals[] = { "debug", "record", "convert", "misc", "sfile", "arcs", "all"}; #define NUM_VERBOSE_OPTIONS (sizeof(valid_verbose_vals)/sizeof(char *)) struct option long_options [] = { {"verbose", required_argument, NULL, 'V'}, {"session-dir", required_argument, NULL, 'd'}, {"vmlinux", required_argument, NULL, 'k'}, {"callgraph", no_argument, NULL, 'g'}, {"system-wide", no_argument, NULL, 's'}, {"append", no_argument, NULL, 'a'}, {"pid", required_argument, NULL, 'p'}, {"events", required_argument, NULL, 'e'}, {"separate-cpu", no_argument, NULL, 'c'}, {"separate-thread", no_argument, NULL, 't'}, {"lazy-conversion", no_argument, NULL, 'l'}, {"help", no_argument, NULL, 'h'}, {"version", no_argument, NULL, 'v'}, {"usage", no_argument, NULL, 'u'}, {NULL, 9, NULL, 0} }; const char * short_options = "V:d:k:gsap:e:ctlhuv"; vector verbose_string; void __set_event_throttled(int index) { if (index < 0) { cerr << "Unable to determine if throttling occurred for "; cerr << "event " << events[index].name << endl; } else { events[index].throttled = true; } } static void __print_usage_and_exit(const char * extra_msg) { if (extra_msg) cerr << extra_msg << endl; cerr << "usage: operf [ options ] [ --system-wide | --pid | [ command [ args ] ] ]" << endl; cerr << "See operf man page for details." << endl; exit(EXIT_FAILURE); } // Signal handler for main (parent) process. static void op_sig_stop(int val __attribute__((unused))) { // Received a signal to quit, so we need to stop the // app being profiled. size_t dummy __attribute__ ((__unused__)); ctl_c = true; if (cverb << vdebug) dummy = write(1, "in op_sig_stop\n", 15); if (startApp) kill(app_PID, SIGKILL); } // For child processes to manage a controlled stop after Ctl-C is done static void _handle_sigint(int val __attribute__((unused))) { size_t dummy __attribute__ ((__unused__)); /* Each process (parent and each forked child) will have their own copy of * the ctl_c variable, so this can be used by each process in managing their * shutdown procedure. */ ctl_c = true; if (cverb << vdebug) dummy = write(1, "in _handle_sigint\n", 19); return; } void _set_basic_SIGINT_handler_for_child(void) { struct sigaction act; sigset_t ss; sigfillset(&ss); sigprocmask(SIG_UNBLOCK, &ss, NULL); act.sa_handler = _handle_sigint; act.sa_flags = 0; sigemptyset(&act.sa_mask); sigaddset(&act.sa_mask, SIGINT); if (sigaction(SIGINT, &act, NULL)) { perror("operf: install of SIGINT handler failed: "); exit(EXIT_FAILURE); } } void set_signals_for_parent(void) { struct sigaction act; sigset_t ss; sigfillset(&ss); sigprocmask(SIG_UNBLOCK, &ss, NULL); act.sa_handler = op_sig_stop; act.sa_flags = 0; sigemptyset(&act.sa_mask); sigaddset(&act.sa_mask, SIGINT); if (sigaction(SIGINT, &act, NULL)) { perror("operf: install of SIGINT handler failed: "); exit(EXIT_FAILURE); } } static int app_ready_pipe[2], start_app_pipe[2], operf_record_ready_pipe[2]; static string args_to_string(void) { string ret; char * const * ptr = app_args + 1; while (*ptr != NULL) { ret.append(*ptr); ret += ' '; ptr++; } return ret; } void run_app(void) { // ASSUMPTION: app_name is a fully-qualified pathname char * app_fname = rindex(app_name, '/') + 1; app_args[0] = app_fname; string arg_str = args_to_string(); cverb << vdebug << "Exec args are: " << app_fname << " " << arg_str << endl; // Fake an exec to warm-up the resolver execvp("", app_args); // signal to the parent that we're ready to exec int startup = 1; if (write(app_ready_pipe[1], &startup, sizeof(startup)) < 0) { perror("Internal error on app_ready_pipe"); _exit(EXIT_FAILURE); } // wait for parent to tell us to start int startme = 0; if (read(start_app_pipe[0], &startme, sizeof(startme)) == -1) { perror("Internal error in run_app on start_app_pipe"); _exit(EXIT_FAILURE); } if (startme != 1) _exit(EXIT_SUCCESS); cverb << vdebug << "parent says start app " << app_name << endl; app_started = true; execvp(app_name, app_args); cerr << "Failed to exec " << app_fname << " " << arg_str << ": " << strerror(errno) << endl; /* We don't want any cleanup in the child */ _exit(EXIT_FAILURE); } int start_profiling(void) { // The only process that should return from this function is the process // which invoked it. Any forked process must do _exit() rather than return(). struct timeval tv; unsigned long long start_time = 0ULL; gettimeofday(&tv, NULL); start_time = 0ULL; start_time = tv.tv_sec; sprintf(start_time_str, "%llu", start_time); start_time_human_readable = op_get_time(); startApp = ((app_PID != operf_options::pid) && (operf_options::system_wide == false)); if (startApp) { if (pipe(app_ready_pipe) < 0 || pipe(start_app_pipe) < 0) { perror("Internal error: operf-record could not create pipe"); _exit(EXIT_FAILURE); } app_PID = fork(); if (app_PID < 0) { perror("Internal error: fork failed"); _exit(EXIT_FAILURE); } else if (app_PID == 0) { // child process for exec'ing app if (!operf_options::post_conversion) { close(sample_data_pipe[0]); close(sample_data_pipe[1]); } run_app(); } } // parent if (pipe(operf_record_ready_pipe) < 0) { perror("Internal error: could not create pipe"); return -1; } operf_record_pid = fork(); if (operf_record_pid < 0) { return -1; } else if (operf_record_pid == 0) { // operf-record process int ready = 0; int exit_code = EXIT_SUCCESS; _set_basic_SIGINT_handler_for_child(); close(operf_record_ready_pipe[0]); if (!operf_options::post_conversion) close(sample_data_pipe[0]); /* * Since an informative message will be displayed to the user if * an error occurs, we don't want to blow chunks here; instead, we'll * exit gracefully. Clear out the operf.data file as an indication * to the parent process that the profile data isn't valid. */ try { OP_perf_utils::vmlinux_info_t vi; int outfd; int flags = O_WRONLY | O_CREAT | O_TRUNC; vi.image_name = operf_options::vmlinux; vi.start = kernel_start; vi.end = kernel_end; if (operf_options::post_conversion) { outfd = open(outputfile.c_str(), flags, S_IRUSR|S_IWUSR); if (outfd < 0) { string errmsg = "Internal error: Could not create temporary output file. errno is "; errmsg += strerror(errno); throw runtime_error(errmsg); } } else { outfd = sample_data_pipe[1]; } operf_record operfRecord(outfd, operf_options::system_wide, app_PID, (operf_options::pid == app_PID), events, vi, operf_options::callgraph, operf_options::separate_cpu, operf_options::post_conversion); if (operfRecord.get_valid() == false) { /* If valid is false, it means that one of the "known" errors has * occurred: * - profiled process has already ended * - passed PID was invalid * - device or resource busy * - failure to mmap kernel profile data */ cerr << "operf record init failed" << endl; cerr << "usage: operf [ options ] [ --system-wide | --pid | [ command [ args ] ] ]" << endl; // Exit with SUCCESS to avoid the unnecessary "operf-record process ended // abnormally" message goto fail_out; } ready = 1; if (write(operf_record_ready_pipe[1], &ready, sizeof(ready)) < 0) { perror("Internal error on operf_record_ready_pipe"); exit_code = EXIT_FAILURE; goto fail_out; } // start recording operfRecord.recordPerfData(); cverb << vdebug << "Total bytes recorded from perf events: " << dec << operfRecord.get_total_bytes_recorded() << endl; } catch (runtime_error re) { /* If the user does ctl-c, the operf-record process may get interrupted * in a system call, causing problems with writes to the sample data pipe. * So we'll ignore such errors unless the user requests debug info. */ if (!ctl_c || (cverb << vmisc)) { cerr << "Caught runtime_error: " << re.what() << endl; exit_code = EXIT_FAILURE; } goto fail_out; } // done _exit(exit_code); fail_out: if (!ready){ /* ready==0 means we've not yet told parent we're ready, * but the parent is reading our pipe. So we tell the * parent we're not ready so it can continue. */ if (write(operf_record_ready_pipe[1], &ready, sizeof(ready)) < 0) { perror("Internal error on operf_record_ready_pipe"); } } _exit(exit_code); } else { // parent int recorder_ready = 0; int startup; close(operf_record_ready_pipe[1]); if (startApp) { if (read(app_ready_pipe[0], &startup, sizeof(startup)) == -1) { perror("Internal error on app_ready_pipe"); return -1; } else if (startup != 1) { cerr << "app is not ready to start; exiting" << endl; return -1; } } if (read(operf_record_ready_pipe[0], &recorder_ready, sizeof(recorder_ready)) == -1) { perror("Internal error on operf_record_ready_pipe"); return -1; } else if (recorder_ready != 1) { cverb << vdebug << "operf record process failure; exiting" << endl; if (startApp) { cverb << vdebug << "telling child to abort starting of app" << endl; startup = 0; if (write(start_app_pipe[1], &startup, sizeof(startup)) < 0) { perror("Internal error on start_app_pipe"); } } return -1; } if (startApp) { // Tell app_PID to start the app cverb << vdebug << "telling child to start app" << endl; if (write(start_app_pipe[1], &startup, sizeof(startup)) < 0) { perror("Internal error on start_app_pipe"); return -1; } } } if (!operf_options::system_wide) app_started = true; // parent returns return 0; } static end_code_t _kill_operf_read_pid(end_code_t rc) { // Now stop the operf-read process int waitpid_status; struct timeval tv; long long start_time_sec; long long usec_timer; bool keep_trying = true; waitpid_status = 0; gettimeofday(&tv, NULL); start_time_sec = tv.tv_sec; usec_timer = tv.tv_usec; /* We'll initially try the waitpid with WNOHANG once every 100,000 usecs. * If it hasn't ended within 5 seconds, we'll kill it and do one * final wait. */ while (keep_trying) { int option = WNOHANG; int wait_rc; gettimeofday(&tv, NULL); if (tv.tv_sec > start_time_sec + 5) { keep_trying = false; option = 0; cerr << "now trying to kill convert pid..." << endl; if (kill(operf_read_pid, SIGUSR1) < 0) { perror("Attempt to stop operf-read process failed"); rc = rc ? PERF_BOTH_ERROR : PERF_READ_ERROR; break; } } else { /* If we exceed the 100000 usec interval or if the tv_usec * value has rolled over to restart at 0, then we reset * the usec_timer to current tv_usec and try waitpid. */ if ((tv.tv_usec % 1000000) > (usec_timer + 100000) || (tv.tv_usec < usec_timer)) usec_timer = tv.tv_usec; else continue; } if ((wait_rc = waitpid(operf_read_pid, &waitpid_status, option)) < 0) { keep_trying = false; if (errno != ECHILD) { perror("waitpid for operf-read process failed"); rc = rc ? PERF_BOTH_ERROR : PERF_READ_ERROR; } } else if (wait_rc) { if (WIFEXITED(waitpid_status)) { keep_trying = false; if (!WEXITSTATUS(waitpid_status)) { cverb << vdebug << "operf-read process returned OK" << endl; } else if (WIFEXITED(waitpid_status)) { /* If user did ctl-c, operf-read may get spurious errors, like * broken pipe, etc. We ignore these unless the user asks for * debug output. */ if (!ctl_c || cverb << vdebug) { cerr << "operf-read process ended abnormally. Status = " << WEXITSTATUS(waitpid_status) << endl; rc = rc ? PERF_BOTH_ERROR : PERF_READ_ERROR; } } } else if (WIFSIGNALED(waitpid_status)) { keep_trying = false; /* If user did ctl-c, operf-read may get spurious errors, like * broken pipe, etc. We ignore these unless the user asks for * debug output. */ if (!ctl_c || cverb << vdebug) { cerr << "operf-read process killed by signal " << WTERMSIG(waitpid_status) << endl; rc = PERF_RECORD_ERROR; } } } } return rc; } static end_code_t _kill_operf_record_pid(void) { int waitpid_status = 0; end_code_t rc = ALL_OK; // stop operf-record process errno = 0; if (kill(operf_record_pid, SIGUSR1) < 0) { // If operf-record process is already ended, don't consider this an error. if (errno != ESRCH) { perror("Attempt to stop operf-record process failed"); rc = PERF_RECORD_ERROR; } } else { if (waitpid(operf_record_pid, &waitpid_status, 0) < 0) { perror("waitpid for operf-record process failed"); rc = PERF_RECORD_ERROR; } else { if (WIFEXITED(waitpid_status) && (!WEXITSTATUS(waitpid_status))) { cverb << vdebug << "operf-record process returned OK" << endl; } else if (WIFEXITED(waitpid_status)) { /* If user did ctl-c, operf-record may get spurious errors, like * broken pipe, etc. We ignore these unless the user asks for * debug output. */ if (!ctl_c || cverb << vdebug) { cerr << "operf-record process ended abnormally: " << WEXITSTATUS(waitpid_status) << endl; rc = PERF_RECORD_ERROR; } } else if (WIFSIGNALED(waitpid_status)) { if (!ctl_c || cverb << vdebug) { cerr << "operf-record process killed by signal " << WTERMSIG(waitpid_status) << endl; rc = PERF_RECORD_ERROR; } } } } return rc; } static end_code_t _run(void) { int waitpid_status = 0; end_code_t rc = ALL_OK; bool kill_record = true; // Fork processes with signals blocked. sigset_t ss; sigfillset(&ss); sigprocmask(SIG_BLOCK, &ss, NULL); /* By default (unless the user specifies --lazy-conversion), the operf-record process * writes the sample data to a pipe, from which the operf-read process reads. */ if (!operf_options::post_conversion && pipe(sample_data_pipe) < 0) { perror("Internal error: operf-record could not create pipe"); _exit(EXIT_FAILURE); } if (start_profiling() < 0) { return PERF_RECORD_ERROR; } // parent continues here if (startApp) cverb << vdebug << "app " << app_PID << " is running" << endl; /* If we're not doing system wide profiling and no app is started, then * there's no profile data to convert. So if this condition is NOT true, * then we'll do the convert. * Note that if --lazy-conversion is passed, then operf_options::post_conversion * will be set, and we will defer conversion until after the operf-record * process is done. */ if (!operf_options::post_conversion) { if (!(!app_started && !operf_options::system_wide)) { cverb << vdebug << "Forking read pid" << endl; operf_read_pid = fork(); if (operf_read_pid < 0) { perror("Internal error: fork failed"); _exit(EXIT_FAILURE); } else if (operf_read_pid == 0) { // child process close(sample_data_pipe[1]); _set_basic_SIGINT_handler_for_child(); convert_sample_data(); _exit(EXIT_SUCCESS); } // parent close(sample_data_pipe[0]); close(sample_data_pipe[1]); } } set_signals_for_parent(); if (startApp) { /* The user passed in a command or program name to start, so we'll need to do waitpid on that * process. However, while that user-requested process is running, it's possible we * may get an error in the operf-record process. If that happens, we want to know it right * away so we can stop profiling and kill the user app. Therefore, we must use WNOHANG * on the waitpid call and bounce back and forth between the user app and the operf-record * process, checking their status. The profiled app may end normally, abnormally, or by way * of ctrl-C. The operf-record process should not end here, except abnormally. The normal * flow is: * 1. profiled app ends or is stopped via ctrl-C * 2. keep_trying is set to false, so we drop out of while loop and proceed to end of function * 3. call _kill_operf_record_pid and _kill_operf_read_pid */ struct timeval tv; long long usec_timer; bool keep_trying = true; const char * app_process = "profiled app"; const char * record_process = "operf-record process"; waitpid_status = 0; gettimeofday(&tv, NULL); usec_timer = tv.tv_usec; cverb << vdebug << "going into waitpid on profiled app " << app_PID << endl; // We'll try the waitpid with WNOHANG once every 100,000 usecs. while (keep_trying) { pid_t the_pid = app_PID; int wait_rc; const char * the_process = app_process; gettimeofday(&tv, NULL); /* If we exceed the 100000 usec interval or if the tv_usec * value has rolled over to restart at 0, then we reset * the usec_timer to current tv_usec and try waitpid. */ if ((tv.tv_usec % 1000000) > (usec_timer + 100000) || (tv.tv_usec < usec_timer)) usec_timer = tv.tv_usec; else continue; bool trying_user_app = true; again: if ((wait_rc = waitpid(the_pid, &waitpid_status, WNOHANG)) < 0) { keep_trying = false; if (errno == EINTR) { // Ctrl-C will only kill the profiled app. See the op_sig_stop signal handler. cverb << vdebug << "Caught ctrl-C. Killed " << the_process << "." << endl; } else { cerr << "waitpid for " << the_process << " failed: " << strerror(errno) << endl; rc = trying_user_app ? APP_ABNORMAL_END : PERF_RECORD_ERROR; } } else if (wait_rc) { keep_trying = false; if (WIFEXITED(waitpid_status) && (!WEXITSTATUS(waitpid_status))) { cverb << vdebug << the_process << " ended normally." << endl; } else if (WIFEXITED(waitpid_status)) { cerr << the_process << " exited with the following status: " << WEXITSTATUS(waitpid_status) << endl; rc = trying_user_app ? APP_ABNORMAL_END : PERF_RECORD_ERROR; } else if (WIFSIGNALED(waitpid_status)) { if (WTERMSIG(waitpid_status) != SIGKILL) { cerr << the_process << " killed by signal " << WTERMSIG(waitpid_status) << endl; rc = trying_user_app ? APP_ABNORMAL_END : PERF_RECORD_ERROR; } } else { keep_trying = true; } } if (trying_user_app && (rc == ALL_OK)) { trying_user_app = false; the_pid = operf_record_pid; the_process = record_process; goto again; } else if (rc != ALL_OK) { // If trying_user_app == true, implies profiled app ended; otherwise, operf-record process abended. if (!trying_user_app) kill_record = false; } } } else { // User passed in --pid or --system-wide cout << "operf: Press Ctl-c or 'kill -SIGINT " << getpid() << "' to stop profiling" << endl; cverb << vdebug << "going into waitpid on operf record process " << operf_record_pid << endl; if (waitpid(operf_record_pid, &waitpid_status, 0) < 0) { if (errno == EINTR) { cverb << vdebug << "Caught ctrl-C. Killing operf-record process . . ." << endl; } else { cerr << "waitpid errno is " << errno << endl; perror("waitpid for operf-record process failed"); kill_record = false; rc = PERF_RECORD_ERROR; } } else { if (WIFEXITED(waitpid_status) && (!WEXITSTATUS(waitpid_status))) { cverb << vdebug << "waitpid for operf-record process returned OK" << endl; } else if (WIFEXITED(waitpid_status)) { kill_record = false; cerr << "operf-record process ended abnormally: " << WEXITSTATUS(waitpid_status) << endl; rc = PERF_RECORD_ERROR; } else if (WIFSIGNALED(waitpid_status)) { kill_record = false; cerr << "operf-record process killed by signal " << WTERMSIG(waitpid_status) << endl; rc = PERF_RECORD_ERROR; } } } if (kill_record) { if (operf_options::post_conversion) rc = _kill_operf_record_pid(); else rc = _kill_operf_read_pid(_kill_operf_record_pid()); } else { if (!operf_options::post_conversion) rc = _kill_operf_read_pid(rc); } return rc; } static void cleanup(void) { free(app_name_SAVE); free(app_args); events.clear(); verbose_string.clear(); if (operf_options::post_conversion) { string cmd = "rm -f " + outputfile; if (system(cmd.c_str()) != 0) cerr << "Unable to remove " << outputfile << endl; } } static void _jitconv_complete(int val __attribute__((unused))) { int child_status; pid_t the_pid = wait(&child_status); if (the_pid != jitconv_pid) { return; } jit_conversion_running = false; if (WIFEXITED(child_status) && (!WEXITSTATUS(child_status))) { cverb << vdebug << "JIT dump processing complete." << endl; } else { if (WIFSIGNALED(child_status)) cerr << "child received signal " << WTERMSIG(child_status) << endl; else cerr << "JIT dump processing exited abnormally: " << WEXITSTATUS(child_status) << endl; } } static void _set_signals_for_convert(void) { struct sigaction act; sigset_t ss; sigfillset(&ss); sigprocmask(SIG_UNBLOCK, &ss, NULL); act.sa_handler = _jitconv_complete; act.sa_flags = 0; sigemptyset(&act.sa_mask); sigaddset(&act.sa_mask, SIGCHLD); if (sigaction(SIGCHLD, &act, NULL)) { perror("operf: install of SIGCHLD handler failed: "); exit(EXIT_FAILURE); } } static void _do_jitdump_convert() { int arg_num; unsigned long long end_time = 0ULL; struct timeval tv; char end_time_str[32]; char opjitconv_path[PATH_MAX + 1]; char * exec_args[8]; jitconv_pid = fork(); switch (jitconv_pid) { case -1: perror("Error forking JIT dump process!"); break; case 0: { const char * jitconv_pgm = "opjitconv"; const char * debug_option = "-d"; const char * non_root_user = "--non-root"; const char * delete_jitdumps = "--delete-jitdumps"; gettimeofday(&tv, NULL); end_time = tv.tv_sec; sprintf(end_time_str, "%llu", end_time); sprintf(opjitconv_path, "%s/%s", OP_BINDIR, jitconv_pgm); arg_num = 0; exec_args[arg_num++] = (char *)jitconv_pgm; if (cverb << vdebug) exec_args[arg_num++] = (char *)debug_option; if (my_uid != 0) exec_args[arg_num++] = (char *)non_root_user; exec_args[arg_num++] = (char *)delete_jitdumps; exec_args[arg_num++] = (char *)operf_options::session_dir.c_str(); exec_args[arg_num++] = start_time_str; exec_args[arg_num++] = end_time_str; exec_args[arg_num] = (char *) NULL; execvp(opjitconv_path, exec_args); fprintf(stderr, "Failed to exec %s: %s\n", exec_args[0], strerror(errno)); /* We don't want any cleanup in the child */ _exit(EXIT_FAILURE); break; } default: // parent jit_conversion_running = true; break; } } static int __delete_old_previous_sample_data(const char *fpath, const struct stat *sb __attribute__((unused)), int tflag __attribute__((unused)), struct FTW *ftwbuf __attribute__((unused))) { if (remove(fpath)) { perror("sample data removal error"); return FTW_STOP; } else { return FTW_CONTINUE; } } /* Read perf_events sample data written by the operf-record process through * the sample_data_pipe or file (dependent on 'lazy-conversion' option) * and convert the perf format sample data to to oprofile format sample files. * * If not invoked with --lazy-conversion option, this function is executed by * the "operf-read" child process. If user does a ctrl-C, the parent will * execute _kill_operf_read_pid which will try to allow the conversion process * to complete, waiting 5 seconds before it forcefully kills the operf-read * process via 'kill SIGUSR1'. * * But if --lazy-conversion option is used, then it's the parent process that's * running convert_sample_data. If the user does a ctrl-C during this procedure, * the ctrl-C is handled via op_sig_stop which essentially does nothing to stop * the conversion procedure, which in general is fine. On the very rare chance * that the procedure gets stuck (hung) somehow, the user will have to do a * 'kill -KILL'. */ static void convert_sample_data(void) { int inputfd; string inputfname; int rc = EXIT_SUCCESS; int keep_waiting = 0; string current_sampledir = samples_dir + "/current/"; string previous_sampledir = samples_dir + "/previous"; string stats_dir = ""; current_sampledir.copy(op_samples_current_dir, current_sampledir.length(), 0); if (!app_started && !operf_options::system_wide) return; if (!operf_options::append) { int flags = FTW_DEPTH | FTW_ACTIONRETVAL; errno = 0; if (nftw(previous_sampledir.c_str(), __delete_old_previous_sample_data, 32, flags) !=0 && errno != ENOENT) { cerr << "Unable to remove old sample data at " << previous_sampledir << "." << endl; if (errno) cerr << strerror(errno) << endl; rc = EXIT_FAILURE; goto out; } if (rename(current_sampledir.c_str(), previous_sampledir.c_str()) < 0) { if (errno && (errno != ENOENT)) { cerr << "Unable to move old profile data to " << previous_sampledir << endl; cerr << strerror(errno) << endl; rc = EXIT_FAILURE; goto out; } } } rc = mkdir(current_sampledir.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH); if (rc && (errno != EEXIST)) { cerr << "Error trying to create " << current_sampledir << " dir." << endl; perror("mkdir failed with"); rc = EXIT_FAILURE; goto out; } if (operf_options::post_conversion) { inputfd = -1; inputfname = outputfile; } else { inputfd = sample_data_pipe[0]; inputfname = ""; } operfRead.init(inputfd, inputfname, current_sampledir, cpu_type, events, operf_options::system_wide); if ((rc = operfRead.readPerfHeader()) < 0) { if (rc != OP_PERF_HANDLED_ERROR) cerr << "Error: Cannot create read header info for sample data " << endl; rc = EXIT_FAILURE; goto out; } cverb << vdebug << "Successfully read header info for sample data " << endl; if (operfRead.is_valid()) { try { unsigned int num = operfRead.convertPerfData(); cverb << vdebug << "operf_read: Total bytes received from operf_record process: " << dec << num << endl; } catch (runtime_error e) { cerr << "Caught runtime error from operf_read::convertPerfData" << endl; cerr << e.what() << endl; rc = EXIT_FAILURE; goto out; } } _set_signals_for_convert(); cverb << vdebug << "Calling _do_jitdump_convert" << endl; _do_jitdump_convert(); while (jit_conversion_running && (keep_waiting < 2)) { sleep(1); keep_waiting++; } if (jit_conversion_running) { kill(jitconv_pid, SIGKILL); } out: if (!operf_options::post_conversion) _exit(rc); } static int find_app_file_in_dir(const struct dirent * d) { if (!strcmp(d->d_name, app_name)) return 1; else return 0; } static int get_PATH_based_pathname(char * path_holder, size_t n) { int retval = -1; char * real_path = getenv("PATH"); char * path = (char *) xstrdup(real_path); char * segment = strtok(path, ":"); while (segment) { struct dirent ** namelist; int rc = scandir(segment, &namelist, find_app_file_in_dir, NULL); if (rc < 0) { if (errno != ENOENT) { cerr << strerror(errno) << endl; cerr << app_name << " cannot be found in your PATH." << endl; break; } } else if (rc == 1) { size_t applen = strlen(app_name); size_t dirlen = strlen(segment); if (applen + dirlen + 2 > n) { cerr << "Path segment " << segment << " prepended to the passed app name is too long" << endl; retval = -1; break; } if (!strcmp(segment, ".")) { if (getcwd(path_holder, PATH_MAX) == NULL) { retval = -1; cerr << "getcwd [3] failed when processing /" << app_name << " found via PATH. Aborting." << endl; break; } } else { strncpy(path_holder, segment, dirlen); } strcat(path_holder, "/"); strncat(path_holder, app_name, applen); retval = 0; free(namelist[0]); free(namelist); break; } segment = strtok(NULL, ":"); } free(path); return retval; } int validate_app_name(void) { int rc = 0; struct stat filestat; size_t len = strlen(app_name); if (len > (size_t) (OP_APPNAME_LEN - 1)) { cerr << "app name longer than max allowed (" << OP_APPNAME_LEN << " chars)\n"; cerr << app_name << endl; rc = -1; goto out; } if (index(app_name, '/') == app_name) { // Full pathname of app was specified, starting with "/". strncpy(full_pathname, app_name, len); } else if ((app_name[0] == '.') && (app_name[1] == '/')) { // Passed app is in current directory; e.g., "./myApp" if (getcwd(full_pathname, PATH_MAX) == NULL) { rc = -1; cerr << "getcwd [1] failed when trying to find app name " << app_name << ". Aborting." << endl; goto out; } strcat(full_pathname, "/"); if ((strlen(full_pathname) + strlen(app_name + 2) + 1) > PATH_MAX) { rc = -1; cerr << "Length of current dir (" << full_pathname << ") and app name (" << (app_name + 2) << ") exceeds max allowed (" << PATH_MAX << "). Aborting." << endl; goto out; } strcat(full_pathname, (app_name + 2)); } else if (index(app_name, '/')) { // Passed app is in a subdirectory of cur dir; e.g., "test-stuff/myApp" if (getcwd(full_pathname, PATH_MAX) == NULL) { rc = -1; cerr << "getcwd [2] failed when trying to find app name " << app_name << ". Aborting." << endl; goto out; } strcat(full_pathname, "/"); strcat(full_pathname, app_name); } else { // Passed app name, at this point, MUST be found in PATH rc = get_PATH_based_pathname(full_pathname, PATH_MAX); } if (rc) { cerr << "Problem finding app name " << app_name << ". Aborting." << endl; goto out; } app_name_SAVE = app_name; app_name = full_pathname; if (stat(app_name, &filestat)) { char msg[OP_APPNAME_LEN + 50]; snprintf(msg, OP_APPNAME_LEN + 50, "Non-existent app name \"%s\"", app_name); perror(msg); rc = -1; } out: return rc; } static void _get_event_code(operf_event_t * event) { FILE * fp; char oprof_event_code[9]; string command; u64 base_code, config; char buf[20]; if ((snprintf(buf, 20, "%lu", event->count)) < 0) { cerr << "Error parsing event count of " << event->count << endl; exit(EXIT_FAILURE); } base_code = config = 0ULL; command = OP_BINDIR; command += "ophelp "; command += event->name; fp = popen(command.c_str(), "r"); if (fp == NULL) { cerr << "Unable to execute ophelp to get info for event " << event->name << endl; exit(EXIT_FAILURE); } if (fgets(oprof_event_code, sizeof(oprof_event_code), fp) == NULL) { pclose(fp); cerr << "Unable to find info for event " << event->name << endl; exit(EXIT_FAILURE); } pclose(fp); base_code = strtoull(oprof_event_code, (char **) NULL, 10); #if defined(__i386__) || defined(__x86_64__) // Setup EventSelct[11:8] field for AMD char mask[12]; const char * vendor_AMD = "AuthenticAMD"; if (op_is_cpu_vendor((char *)vendor_AMD)) { config = base_code & 0xF00ULL; config = config << 32; } // Setup EventSelct[7:0] field config |= base_code & 0xFFULL; // Setup unitmask field handle_named_um: if (event->um_name[0]) { command = OP_BINDIR; command += "ophelp "; command += "--extra-mask "; command += event->name; command += ":"; command += buf; command += ":"; command += event->um_name; fp = popen(command.c_str(), "r"); if (fp == NULL) { cerr << "Unable to execute ophelp to get info for event " << event->name << endl; exit(EXIT_FAILURE); } if (fgets(mask, sizeof(mask), fp) == NULL) { pclose(fp); cerr << "Unable to find unit mask info for " << event->um_name << " for event " << event->name << endl; exit(EXIT_FAILURE); } pclose(fp); // FIXME: The mask value here is the extra bits from the named unit mask. It's not // ideal to put that value into the UM's mask, since that's what will show up in // opreport. It would be better if we could somehow have the unit mask name that the // user passed to us show up in opreort. event->evt_um = strtoull(mask, (char **) NULL, 10); /* A value >= EXTRA_MIN_VAL returned by 'ophelp --extra-mask' is interpreted as a * valid extra value; otherwise we interpret it as a simple unit mask value * for a named unit mask with EXTRA_NONE. */ if (event->evt_um >= EXTRA_MIN_VAL) config |= event->evt_um; else config |= ((event->evt_um & 0xFFULL) << 8); } else if (!event->evt_um) { char * endptr; command.clear(); command = OP_BINDIR; command += "ophelp "; command += "--unit-mask "; command += event->name; command += ":"; command += buf; fp = popen(command.c_str(), "r"); if (fp == NULL) { cerr << "Unable to execute ophelp to get unit mask for event " << event->name << endl; exit(EXIT_FAILURE); } if (fgets(mask, sizeof(mask), fp) == NULL) { pclose(fp); cerr << "Unable to find unit mask info for event " << event->name << endl; exit(EXIT_FAILURE); } pclose(fp); event->evt_um = strtoull(mask, &endptr, 10); if ((endptr >= mask) && (endptr <= (mask + strlen(mask) - 1))) { // Must be a default named unit mask strncpy(event->um_name, mask, OP_MAX_UM_NAME_LEN); goto handle_named_um; } config |= ((event->evt_um & 0xFFULL) << 8); } else { config |= ((event->evt_um & 0xFFULL) << 8); } #else config = base_code; #endif event->op_evt_code = base_code; if (cpu_type == CPU_P4 || cpu_type == CPU_P4_HT2) { if (op_netburst_get_perf_encoding(event->name, event->evt_um, 1, 1, &config)) { cerr << "Unable to get event encoding for " << event->name << endl; exit(EXIT_FAILURE); } } event->evt_code = config; } #if PPC64_ARCH /* All ppc64 events (except CYCLES) have a _GRP suffix. This is * because the legacy opcontrol profiler can only profile events in * the same group (i.e., having the same _GRP suffix). But operf * can multiplex events, so we should allow the user to pass event * names without the _GRP suffix. * * If event name is not CYCLES or does not have a _GRP suffix, * we'll call ophelp and scan the list of events, searching for one * that matches up to the _GRP suffix. If we don't find a match, * then we'll exit with the expected error message for invalid event name. */ static string _handle_powerpc_event_spec(string event_spec) { FILE * fp; char line[MAX_INPUT]; size_t grp_pos; string evt, retval, err_msg; size_t evt_name_len; bool first_non_cyc_evt_found = false; bool event_found = false; char event_name[OP_MAX_EVT_NAME_LEN], event_spec_str[OP_MAX_EVT_NAME_LEN + 20], * count_str; string cmd = OP_BINDIR; cmd += "/ophelp"; strncpy(event_spec_str, event_spec.c_str(), event_spec.length() + 1); strncpy(event_name, strtok(event_spec_str, ":"), OP_MAX_EVT_NAME_LEN); count_str = strtok(NULL, ":"); if (!count_str) { err_msg = "Invalid count for event "; goto out; } if (!strcmp("CYCLES", event_name)) { event_found = true; goto out; } evt = event_name; // Need to make sure the event name truly has a _GRP suffix. grp_pos = evt.rfind("_GRP"); if ((grp_pos != string::npos) && ((evt = evt.substr(grp_pos, string::npos))).length() > 4) { char * end; strtoul(evt.substr(4, string::npos).c_str(), &end, 0); if (end && (*end == '\0')) { // Valid group number found after _GRP, so we can skip to the end. event_found = true; goto out; } } // If we get here, it implies the user passed a non-CYCLES event without a GRP suffix. // Lets try to find a valid suffix for it. fp = popen(cmd.c_str(), "r"); if (fp == NULL) { cerr << "Unable to execute ophelp to get info for event " << event_spec << endl; exit(EXIT_FAILURE); } evt_name_len = strlen(event_name); err_msg = "Cannot find event "; while (fgets(line, MAX_INPUT, fp)) { if (!first_non_cyc_evt_found) { if (!strncmp(line, "PM_", 3)) first_non_cyc_evt_found = true; else continue; } if (line[0] == ' ' || line[0] == '\t') continue; if (!strncmp(line, event_name, evt_name_len)) { // Found a potential match. Check if it's a perfect match. string save_event_name = event_name; size_t full_evt_len = index(line, ':') - line; memset(event_name, '\0', OP_MAX_EVT_NAME_LEN); strncpy(event_name, line, full_evt_len); string candidate = event_name; if (candidate.rfind("_GRP") == evt_name_len) { event_found = true; break; } else { memset(event_name, '\0', OP_MAX_EVT_NAME_LEN); strncpy(event_name, save_event_name.c_str(), evt_name_len); } } } pclose(fp); out: if (!event_found) { cerr << err_msg << event_name << endl; cerr << "Error retrieving info for event " << event_spec << endl; exit(EXIT_FAILURE); } retval = event_name; return retval + ":" + count_str; } #endif static void _process_events_list(void) { string cmd = OP_BINDIR; if (operf_options::evts.size() > OP_MAX_EVENTS) { cerr << "Number of events specified is greater than allowed maximum of " << OP_MAX_EVENTS << "." << endl; exit(EXIT_FAILURE); } cmd += "/ophelp --check-events "; for (unsigned int i = 0; i < operf_options::evts.size(); i++) { FILE * fp; string full_cmd = cmd; string event_spec = operf_options::evts[i]; #if PPC64_ARCH // Starting with CPU_PPC64_ARCH_V1, ppc64 events files are formatted like // other architectures, so no special handling is needed. if (cpu_type < CPU_PPC64_ARCH_V1) event_spec = _handle_powerpc_event_spec(event_spec); #endif if (operf_options::callgraph) { full_cmd += " --callgraph=1 "; } full_cmd += event_spec; fp = popen(full_cmd.c_str(), "r"); if (fp == NULL) { cerr << "Unable to execute ophelp to get info for event " << event_spec << endl; exit(EXIT_FAILURE); } if (fgetc(fp) == EOF) { pclose(fp); cerr << "Error retrieving info for event " << event_spec << endl; if (operf_options::callgraph) cerr << "Note: When doing callgraph profiling, the sample count must be" << endl << "15 times the minimum count value for the event." << endl; exit(EXIT_FAILURE); } pclose(fp); char * event_str = op_xstrndup(event_spec.c_str(), event_spec.length()); operf_event_t event; strncpy(event.name, strtok(event_str, ":"), OP_MAX_EVT_NAME_LEN - 1); event.count = atoi(strtok(NULL, ":")); /* Name and count are required in the event spec in order for * 'ophelp --check-events' to pass. But since unit mask and domain * control bits are optional, we need to ensure the result of strtok * is valid. */ char * info; #define _OP_UM 1 #define _OP_KERNEL 2 #define _OP_USER 3 int place = _OP_UM; char * endptr = NULL; event.evt_um = 0ULL; event.no_kernel = 0; event.no_user = 0; event.throttled = false; memset(event.um_name, '\0', OP_MAX_UM_NAME_LEN); while ((info = strtok(NULL, ":"))) { switch (place) { case _OP_UM: event.evt_um = strtoul(info, &endptr, 0); // If any of the UM part is not a number, then we // consider the entire part a string. if (*endptr) { event.evt_um = 0; strncpy(event.um_name, info, OP_MAX_UM_NAME_LEN - 1); } break; case _OP_KERNEL: if (atoi(info) == 0) event.no_kernel = 1; break; case _OP_USER: if (atoi(info) == 0) event.no_user = 1; break; } place++; } free(event_str); _get_event_code(&event); events.push_back(event); } #if PPC64_ARCH { /* For ppc64 architecture processors prior to the introduction of * architected_events_v1, the oprofile event code needs to be converted * to the appropriate event code to pass to the perf_event_open syscall. * But as of the introduction of architected_events_v1, the events * file contains the necessary event code information, so this conversion * step is no longer needed. */ using namespace OP_perf_utils; if ((cpu_type < CPU_PPC64_ARCH_V1) && !op_convert_event_vals(&events)) { cerr << "Unable to convert all oprofile event values to perf_event values" << endl; exit(EXIT_FAILURE); } } #endif } static void get_default_event(void) { operf_event_t dft_evt; struct op_default_event_descr descr; vector tmp_events; op_default_event(cpu_type, &descr); if (descr.name[0] == '\0') { cerr << "Unable to find default event" << endl; exit(EXIT_FAILURE); } memset(&dft_evt, 0, sizeof(dft_evt)); if (operf_options::callgraph) { struct op_event * _event; op_events(cpu_type); if ((_event = find_event_by_name(descr.name, 0, 0))) { dft_evt.count = _event->min_count * CALLGRAPH_MIN_COUNT_SCALE; } else { cerr << "Error getting event info for " << descr.name << endl; exit(EXIT_FAILURE); } } else { dft_evt.count = descr.count; } dft_evt.evt_um = descr.um; strncpy(dft_evt.name, descr.name, OP_MAX_EVT_NAME_LEN - 1); _get_event_code(&dft_evt); events.push_back(dft_evt); #if PPC64_ARCH { /* This section of code is for architectures such as ppc[64] for which * the oprofile event code needs to be converted to the appropriate event * code to pass to the perf_event_open syscall. */ using namespace OP_perf_utils; if ((cpu_type < CPU_PPC64_ARCH_V1) && !op_convert_event_vals(&events)) { cerr << "Unable to convert all oprofile event values to perf_event values" << endl; exit(EXIT_FAILURE); } } #endif } static void _process_session_dir(void) { if (operf_options::session_dir.empty()) { char * cwd = NULL; int rc; cwd = (char *) xmalloc(PATH_MAX); // set default session dir cwd = getcwd(cwd, PATH_MAX); if (cwd == NULL) { perror("Error calling getcwd"); exit(EXIT_FAILURE); } operf_options::session_dir = cwd; operf_options::session_dir +="/oprofile_data"; samples_dir = operf_options::session_dir + "/samples"; free(cwd); rc = mkdir(operf_options::session_dir.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH); if (rc && (errno != EEXIST)) { cerr << "Error trying to create " << operf_options::session_dir << " dir." << endl; perror("mkdir failed with"); exit(EXIT_FAILURE); } rc = mkdir(samples_dir.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH); if (rc && (errno != EEXIST)) { cerr << "Error trying to create " << samples_dir << " dir." << endl; perror("mkdir failed with"); exit(EXIT_FAILURE); } } else { struct stat filestat; int rc; if (stat(operf_options::session_dir.c_str(), &filestat)) { perror("stat operation on passed session-dir failed"); exit(EXIT_FAILURE); } if (!S_ISDIR(filestat.st_mode)) { cerr << "Passed session-dir " << operf_options::session_dir << " is not a directory" << endl; exit(EXIT_FAILURE); } samples_dir = operf_options::session_dir + "/samples"; rc = mkdir(samples_dir.c_str(), S_IRWXU); if (rc && (errno != EEXIST)) { cerr << "Error trying to create " << samples_dir << " dir." << endl; perror("mkdir failed with"); exit(EXIT_FAILURE); } } cverb << vdebug << "Using samples dir " << samples_dir << endl; } bool _get_vmlinux_address_info(vector args, string cmp_val, string &str) { bool found = false; child_reader reader("objdump", args); if (reader.error()) { cerr << "An error occurred while trying to get vmlinux address info:\n\n"; cerr << reader.error_str() << endl; exit(EXIT_FAILURE); } while (reader.getline(str)) { if (str.find(cmp_val.c_str()) != string::npos) { found = true; break; } } // objdump always returns SUCCESS so we must rely on the stderr state // of objdump. If objdump error message is cryptic our own error // message will be probably also cryptic ostringstream std_err; ostringstream std_out; reader.get_data(std_out, std_err); if (std_err.str().length()) { cerr << "An error occurred while getting vmlinux address info:\n\n"; cerr << std_err.str() << endl; // If we found the string we were looking for in objdump output, // treat this as non-fatal error. if (!found) exit(EXIT_FAILURE); } // force error code to be acquired reader.terminate_process(); // required because if objdump stop by signal all above things suceeed // (signal error message are not output through stdout/stderr) if (reader.error()) { cerr << "An error occur during the execution of objdump to get vmlinux address info:\n\n"; cerr << reader.error_str() << endl; if (!found) exit(EXIT_FAILURE); } return found; } string _process_vmlinux(string vmlinux_file) { vector args; char start[17], end[17]; string str, start_end; bool found; int ret; no_vmlinux = false; args.push_back("-h"); args.push_back(vmlinux_file); if ((found = _get_vmlinux_address_info(args, " .text", str))) { cverb << vmisc << str << endl; ret = sscanf(str.c_str(), " %*s %*s %*s %s", start); } if (!found || ret != 1){ cerr << "Unable to obtain vmlinux start address." << endl; cerr << "The specified vmlinux file (" << vmlinux_file << ") " << "does not seem to be valid." << endl; cerr << "Make sure you are using a non-compressed image file " << "(e.g. vmlinux not vmlinuz)" << endl; exit(EXIT_FAILURE); } args.clear(); args.push_back("-t"); args.push_back(vmlinux_file); if ((found = _get_vmlinux_address_info(args, " _etext", str))) { cverb << vmisc << str << endl; ret = sscanf(str.c_str(), "%s", end); } if (!found || ret != 1){ cerr << "Unable to obtain vmlinux end address." << endl; cerr << "The specified vmlinux file (" << vmlinux_file << ") " << "does not seem to be valid." << endl; cerr << "Make sure you are using a non-compressed image file " << "(e.g. vmlinux not vmlinuz)" << endl; exit(EXIT_FAILURE); } errno = 0; kernel_start = strtoull(start, NULL, 16); if (errno) { cerr << "Unable to convert vmlinux start address " << start << " to a valid hex value. errno is " << strerror(errno) << endl; exit(EXIT_FAILURE); } errno = 0; kernel_end = strtoull(end, NULL, 16); if (errno) { cerr << "Unable to convert vmlinux end address " << start << " to a valid hex value. errno is " << strerror(errno) << endl; exit(EXIT_FAILURE); } start_end = start; start_end.append(","); start_end.append(end); return start_end; } static void _print_valid_verbose_options(void) { cerr << "Valid verbosity options are: "; for (unsigned i = 0; i < (NUM_VERBOSE_OPTIONS - 1); i++) cerr << valid_verbose_vals[i] << ","; cerr << valid_verbose_vals[NUM_VERBOSE_OPTIONS - 1] << endl; } static bool _validate_verbose_args(char * verbosity) { bool valid_verbosity = true; char * verbose_cand = strtok(verbosity, ","); do { unsigned i; for (i = 0; i < (NUM_VERBOSE_OPTIONS); i++) { if (!strcmp(verbose_cand, valid_verbose_vals[i])) { verbose_string.push_back(verbose_cand); break; } } if (i == NUM_VERBOSE_OPTIONS) { valid_verbosity = false; cerr << "Verbosity argument " << verbose_cand << " is not valid." << endl; _print_valid_verbose_options(); } } while ((verbose_cand = strtok(NULL, ",")) && valid_verbosity); return valid_verbosity; } static int _process_operf_and_app_args(int argc, char * const argv[]) { bool keep_trying = true; int idx_of_non_options = 0; setenv("POSIXLY_CORRECT", "1", 0); while (keep_trying) { int option_idx = 0; int c = getopt_long(argc, argv, short_options, long_options, &option_idx); switch (c) { char * endptr; char * event; case -1: if (optind != argc) { idx_of_non_options = optind; } keep_trying = false; break; case '?': cerr << "non-option detected at optind " << optind << endl; keep_trying = false; idx_of_non_options = -1; break; case 'V': if (!_validate_verbose_args(optarg)) __print_usage_and_exit("NULL"); break; case 'd': operf_options::session_dir = optarg; break; case 'k': operf_options::vmlinux = optarg; break; case 'g': operf_options::callgraph = true; break; case 's': operf_options::system_wide = true; break; case 'a': operf_options::append = true; break; case 'p': operf_options::pid = strtol(optarg, &endptr, 10); if ((endptr >= optarg) && (endptr <= (optarg + strlen(optarg) - 1))) __print_usage_and_exit("operf: Invalid numeric value for --pid option."); break; case 'e': event = strtok(optarg, ","); do { operf_options::evts.push_back(event); } while ((event = strtok(NULL, ","))); break; case 'c': operf_options::separate_cpu = true; break; case 't': operf_options::separate_thread = true; break; case 'l': operf_options::post_conversion = true; break; case 'h': __print_usage_and_exit(NULL); break; case 'u': __print_usage_and_exit(NULL); break; case 'v': cout << argv[0] << ": " << PACKAGE << " " << VERSION << " compiled on " << __DATE__ << " " << __TIME__ << endl; exit(EXIT_SUCCESS); break; default: __print_usage_and_exit("unexpected end of arg parsing"); } } return idx_of_non_options; } static void process_args(int argc, char * const argv[]) { int non_options_idx = _process_operf_and_app_args(argc, argv); if (non_options_idx < 0) { __print_usage_and_exit(NULL); } else if ((non_options_idx) > 0) { if (operf_options::pid || operf_options::system_wide) __print_usage_and_exit(NULL); app_name = (char *) xmalloc(strlen(argv[non_options_idx]) + 1); strcpy(app_name, argv[non_options_idx]); // Note 1: app_args[0] is placeholder for app_fname (filled in later). // Note 2: app_args[] is set to NULL (required by execvp) if (non_options_idx < (argc -1)) { app_args = (char **) xmalloc((sizeof *app_args) * (argc - non_options_idx + 1)); for(int i = non_options_idx + 1; i < argc; i++) { app_args[i - non_options_idx] = argv[i]; } app_args[argc - non_options_idx] = NULL; } else { app_args = (char **) xmalloc((sizeof *app_args) * 2); app_args[1] = NULL; } if (validate_app_name() < 0) { __print_usage_and_exit(NULL); } } else { // non_options_idx == 0 if (operf_options::pid) { if (operf_options::system_wide) __print_usage_and_exit(NULL); app_PID = operf_options::pid; } else if (operf_options::system_wide) { app_PID = -1; } else { __print_usage_and_exit(NULL); } } /* At this point, we know which of the three kinds of profiles the user requested: * - profile app by name * - profile app by PID * - profile whole system */ if (!verbose::setup(verbose_string)) { cerr << "unknown --verbose= options\n"; exit(EXIT_FAILURE); } _process_session_dir(); if (operf_options::post_conversion) outputfile = samples_dir + "/" + DEFAULT_OPERF_OUTFILE; if (operf_options::evts.empty()) { // Use default event get_default_event(); } else { _process_events_list(); } op_nr_events = events.size(); if (operf_options::vmlinux.empty()) { no_vmlinux = true; operf_create_vmlinux(NULL, NULL); } else { string startEnd = _process_vmlinux(operf_options::vmlinux); operf_create_vmlinux(operf_options::vmlinux.c_str(), startEnd.c_str()); } return; } static int _get_cpu_for_perf_events_cap(void) { int retval; string err_msg; char cpus_online[257]; FILE * online_cpus; DIR *dir = NULL; int total_cpus = sysconf(_SC_NPROCESSORS_ONLN); if (!total_cpus) { err_msg = "Internal Error (1): Number of online cpus cannot be determined."; retval = -1; goto error; } online_cpus = fopen("/sys/devices/system/cpu/online", "r"); if (!online_cpus) { err_msg = "Internal Error (2): Number of online cpus cannot be determined."; retval = -1; goto error; } memset(cpus_online, 0, sizeof(cpus_online)); if ( fgets(cpus_online, sizeof(cpus_online), online_cpus) == NULL) { fclose(online_cpus); err_msg = "Internal Error (3): Number of online cpus cannot be determined."; retval = -1; goto error; } if (!cpus_online[0]) { fclose(online_cpus); err_msg = "Internal Error (4): Number of online cpus cannot be determined."; retval = -1; goto error; } if (index(cpus_online, ',') || cpus_online[0] != '0') { // A comma in cpus_online implies a gap, which in turn implies that not all // CPUs are online. if ((dir = opendir("/sys/devices/system/cpu")) == NULL) { fclose(online_cpus); err_msg = "Internal Error (5): Number of online cpus cannot be determined."; retval = -1; goto error; } else { struct dirent *entry = NULL; retval = OP_perf_utils::op_get_next_online_cpu(dir, entry); closedir(dir); } } else { // All CPUs are available, so we just arbitrarily choose CPU 0. retval = 0; } fclose(online_cpus); error: return retval; } static int _check_perf_events_cap(bool use_cpu_minus_one) { /* If perf_events syscall is not implemented, the syscall below will fail * with ENOSYS (38). If implemented, but the processor type on which this * program is running is not supported by perf_events, the syscall returns * ENOENT (2). */ struct perf_event_attr attr; pid_t pid ; int cpu_to_try = use_cpu_minus_one ? -1 : _get_cpu_for_perf_events_cap(); errno = 0; memset(&attr, 0, sizeof(attr)); attr.size = sizeof(attr); attr.sample_type = PERF_SAMPLE_IP; pid = getpid(); syscall(__NR_perf_event_open, &attr, pid, cpu_to_try, -1, 0); return errno; } static void _precheck_permissions_to_samplesdir(string sampledir, bool for_current) { /* Pre-check to make sure we have permission to remove old sample data * or to create new sample data in the specified sample data directory. * If the user wants us to remove old data, we don't actually do it now, * since the profile session may fail for some reason or the user may do ctl-c. * We should exit without unnecessarily removing the old sample data as * the user may expect it to still be there after an aborted run. */ string sampledir_testfile = sampledir + "/.xxxTeStFiLe"; ofstream afile; errno = 0; afile.open(sampledir_testfile.c_str()); if (!afile.is_open() && (errno != ENOENT)) { if (operf_options::append && for_current) cerr << "Unable to write to sample data directory at " << sampledir << "." << endl; else cerr << "Unable to remove old sample data at " << sampledir << "." << endl; if (errno) cerr << strerror(errno) << endl; cerr << "Try a manual removal of " << sampledir << endl; cleanup(); exit(1); } afile.close(); } static int _get_sys_value(const char * filename) { char str[10]; int _val = -999; FILE * fp = fopen(filename, "r"); if (fp == NULL) return _val; if (fgets(str, 9, fp)) sscanf(str, "%d", &_val); fclose(fp); return _val; } int main(int argc, char * const argv[]) { int rc; int perf_event_paranoid = _get_sys_value("/proc/sys/kernel/perf_event_paranoid"); my_uid = geteuid(); throttled = false; rc = _check_perf_events_cap(use_cpu_minus_one); if (rc == EACCES) { /* Early perf_events kernels required the cpu argument to perf_event_open * to be '-1' when setting up to profile a single process if 1) the user is * not root; and 2) perf_event_paranoid is > 0. An EACCES error would be * returned if passing '0' or greater for the cpu arg and the above criteria * was not met. Unfortunately, later kernels turned this requirement around * such that the passed cpu arg must be '0' or greater when the user is not * root. * * We don't really have a good way to check whether we're running on such an * early kernel except to try the perf_event_open with different values to see * what works. */ if (my_uid != 0 && perf_event_paranoid > 0) { use_cpu_minus_one = true; rc = _check_perf_events_cap(use_cpu_minus_one); } } if (rc == EBUSY) { cerr << "Performance monitor unit is busy. Do 'opcontrol --deinit' and try again." << endl; exit(1); } if (rc == ENOSYS) { cerr << "Your kernel does not implement a required syscall" << " for the operf program." << endl; } else if (rc == ENOENT) { cerr << "Your kernel's Performance Events Subsystem does not support" << " your processor type." << endl; } else if (rc) { cerr << "Unexpected error running operf: " << strerror(rc) << endl; } if (rc) { cerr << "Please use the opcontrol command instead of operf." << endl; exit(1); } cpu_type = op_get_cpu_type(); cpu_speed = op_cpu_frequency(); process_args(argc, argv); if (operf_options::system_wide && ((my_uid != 0) && (perf_event_paranoid > 0))) { cerr << "To do system-wide profiling, either you must be root or" << endl; cerr << "/proc/sys/kernel/perf_event_paranoid must be set to 0 or -1." << endl; cleanup(); exit(1); } if (cpu_type == CPU_NO_GOOD) { cerr << "Unable to ascertain cpu type. Exiting." << endl; cleanup(); exit(1); } if (my_uid != 0) { bool for_current = true; string current_sampledir = samples_dir + "/current"; _precheck_permissions_to_samplesdir(current_sampledir, for_current); if (!operf_options::append) { string previous_sampledir = samples_dir + "/previous"; for_current = false; _precheck_permissions_to_samplesdir(previous_sampledir, for_current); } } kptr_restrict = _get_sys_value("/proc/sys/kernel/kptr_restrict"); end_code_t run_result; if ((run_result = _run())) { if (startApp && app_started && (run_result != APP_ABNORMAL_END)) { int rc; cverb << vdebug << "Killing profiled app . . ." << endl; rc = kill(app_PID, SIGKILL); if (rc) { if (errno == ESRCH) cverb << vdebug << "Unable to kill profiled app because it has already ended" << endl; else perror("Attempt to kill profiled app failed."); } } if ((run_result == PERF_RECORD_ERROR) || (run_result == PERF_BOTH_ERROR)) { cerr << "Error running profiler" << endl; } else if (run_result == PERF_READ_ERROR) { cerr << "Error converting operf sample data to oprofile sample format" << endl; } else { cerr << "WARNING: Profile results may be incomplete due to to abend of profiled app." << endl; } } else { cerr << endl << "Profiling done." << endl; } if (operf_options::post_conversion) { if (!(!app_started && !operf_options::system_wide)) convert_sample_data(); } cleanup(); return run_result;; } oprofile-0.9.9/Makefile.am0000664000076400007640000000130712175510133012336 00000000000000#### ATTENTION #### # The agents directory must be kept as the last subdir SUBDIRS = \ . \ m4 \ libutil \ libop \ libopagent \ libdb \ libutil++ \ libopt++ \ libabi \ daemon \ utils \ libregex \ libpp \ opjitconv \ pp \ events \ doc \ gui \ libperf_events \ pe_profiling \ libpe_utils \ pe_counting \ agents #### ATTENTION #### # The agents directory must be kept as the last subdir ACLOCAL_AMFLAGS = -I m4 EXTRA_DIST = \ ChangeLog-2001 \ ChangeLog-2002 \ ChangeLog-2003 \ ChangeLog-2004 \ ChangeLog-2005 \ ChangeLog-2006 \ ChangeLog-2007 \ ChangeLog-2008 \ ChangeLog-2009 \ ChangeLog-2010 \ ChangeLog-2011 \ autogen.sh \ README_PACKAGERS \ include/sstream oprofile-0.9.9/ChangeLog-20020000664000076400007640000034016012175510133012440 000000000000002002-12-21 John Levon * Makefile.am: list module files explicitly, needed for make dist from separate objdir * configure.in: make both x86/ and ia64/ changelogs 2002-12-21 John Levon * module/Makefile.am: * configure.in: remove the ln -s arch in favour of using -I and AC_SUBST * module/ia64/arch.h: * module/x86/arch.h: rename to op_arch.h * utils/Makefile.am: fix make uninstall 2002-12-21 John Levon * utils/Makefile.am: fix back-compat scripts install for 2.5 kernel 2002-12-19 Will Cohen * utils/opcontrol: Revise kernel range computation. 2002-12-19 Philippe Elie * pp/op_time.cpp: minor formating fix * pp/oprofpp.cpp: fix #656123 corner case with --separate-sample 2002-12-17 John Levon * configure.in: remove oprof_report - breaks make dist 2002-12-17 Philippe Elie * libdb/*.c *.h: * libutil/op_fileio.c: * dae/opd_proc.c: doxygen comment fix 2002-12-16 Philippe Elie * module/ia64/op_syscalls.c: * module/x86/hammer_op_syscalls.c: * module/x86/op_syscalls.c: u16 pid to u32, tested/compiled only with 32 bits x86 2002-12-15 Philippe Elie * libutil++/string_manip.cpp: minor fix * pp/derive_files.cpp: comment 2002-12-14 Philippe Elie * pp/format_output.cpp: * pp/format_output.h: * pp/outsymbflag.h: * pp/opp_symbol.h: add an app_name field in file_location and formater options for this field. * pp/profile_container.cpp: * pp/profile_container.h: add_samples() add app_name parameter * pp/oprofpp.cpp: * pp/op_to_source.cpp: * pp/op_time.cpp: * pp/op_time_options.cpp: * pp/op_time_options.h: honor app_name parameter. No user visible change except for op_time -l when profiling with --separate-samples * doc/oprofile.1.in: * doc/oprofile.xml: update doc 2002-12-13 John Levon * doc/oprofile.xml: lots of fixes. Remove sysctl documentation as its really an internal feature and was cluttering up the user manual. 2002-12-13 John Levon * doc/oprofile.xml: some clarifications on timer interrupt 2002-12-12 John Levon * opcontrol: set one_enabled if timer interrupt. No behaviour change, but "safer" 2002-12-11 John Levon * pp/derive_files.h: * pp/op_time.cpp: * pp/op_time_options.cpp: * pp/op_to_source.cpp: * pp/opp_symbol.h: * pp/profile.h: * pp/profile_container.h: * utils/Makefile.am: small pedantries 2002-12-10 Will Cohen * utils/op_dump_25: * utils/opcontrol (do_dump): Correct TMPFILE. 2002-12-10 Will Cohen * daemon/opd_image.c (complete_dump): New. * libop/op_config.h (OP_DUMP_STATUS): New. * utils/op_dump_25: New file. * utils/Makefile.am: Add op_dump_25. * utils/opcontrol (do_dump): Revise how dump performed. 2002-12-10 Philippe Elie * pp/profile.cpp : oprofpp reported incorrectly counter setting when using multiple counter. Fix #651183 2002-12-10 Philippe Elie * pp/op_time.cpp: honor --excude-symbols. Fix #651165 2002-12-09 Philippe Elie * libutil++/op_bfd.cpp: stupid segfault when filtering included symbols 2002-12-09 Philippe Elie * libutil++/op_bfd.h: * libutil++/op_bfd.cpp: replace a 0(N²) by a 0(N) behavior * pp/output_format.cpp: actualize comment 2002-12-08 Philippe Elie * pp/profile.cpp: use scoped_ptr * libopt++/popt_options.h: * pp/counter_profile.cpp: minor cleanup 2002-12-08 Philippe Elie * pp/counter_profile.cpp: * pp/counter_profile.h: use scoped_ptr 2002-12-08 Philippe Elie * pp/counter_profile.h: * pp/counter_profile.cpp: relax samples_db_t sooner 2002-12-08 Philippe Elie * pp/opp_samples_files.cpp: * pp/opp_samples_files.h: * pp/samples_container.cpp: * pp/samples_container.h: * pp/samples_file.cpp: * pp/samples_file.h: rename class samples_file_t to counter_profile_t rename class opp_samples_files to profile_t rename class samples_container_t to profile_container_t rename file using the new class name as filename w/o _t suffix * pp/format_output.cpp: * pp/format_output.h: * pp/op_merge.cpp: * pp/op_time.cpp: * pp/op_to_source.cpp: * pp/oprofpp.cpp: * pp/symbol_container_imp.cpp: * pp/symbol_container_imp.h: * pp/Makefile.am: reflect above class/file name change 2002-12-06 Philippe Elie * libdb/db_manage.c: * libdb/db_hash.h: db_init() new to properly initialize a samples_db_t * dae/opd_image.c: * daemon/opd_imge.c: earlier init a samples_db_t object using db_init() rather a memset. This fix a potential bogosity cause we closed a lot of time file descriptor 0 2002-12-06 Philippe Elie * dae/opd_image.c: * dae/opd_image.h: * dae/opd_kernel.c: use hash table entry 0 for kernel and module image 2002-12-04 John Levon * pp/opp_symbol.h: * pp/opp_symbol.cpp: * pp/format_output.h: * pp/format_output.cpp: * others from above: create format_output namespace, some clean up 2002-12-04 Philippe Elie * daemon/opd_image.c: revert last change, it break daemon... 2002-12-04 Philippe Elie * daemon/opd_image.c: re-enable opd_check_image_mtime() it's not perfect but better than nothing * libutil++/cverb.cpp: comment fix 2002-12-04 Will Cohen * utils/opcontrol: Revised checking to determine kernel interface. 2002-12-04 Philippe Elie * libdb/db_test.c: measure system + user time * dae/oprofiled.c: better error message * daemon/oprofiled.c: write_abi() is static 2002-12-03 Philippe Elie * libdb/db_stat.c: * libdb/db_debug.c: Alex whisp me than a few code was not 64 bits size_t safe. 2002-12-03 John Levon * doc/oprofile.xml: * doc/oprofile.1.in: * doc/Makefile.am: remove references to deprecated stuff 2002-12-03 John Levon * utils/opcontrol: add --version 2002-12-03 John Levon * utils/op_start: * utils/op_start_25: * utils/op_stop_25: * utils/op_stop: print deprecation notice 2002-12-03 John Levon * utils/op_session.c: * utils/op_dump: print deprecation notice 2002-12-03 John Levon * utils/opcontrol: do not shutdown on --reset. Send signal on --reset/--save like op_session. Try to dump like op_session to hack race "fix" 2002-12-03 John Levon * utils/opcontrol: complain on opcontrol --save 2002-12-03 Philippe Elie * daemon/opd_kernel.c: * daemon/opd_kernel.h: minor cleanup * libabi/abi.cpp: * libabi/abi_test.cpp: * libabi/op_import.cpp: fix bad include filename. 2002-12-03 Philippe Elie * libdb/.cvsignore: * libdb/Makefile.am: * libdb/*.c --> db-hash-name.c to db_name.c * dae/opd_image.h: * daemon/opd_image.h: * pp/samples_file.h: include db_hash.h 2002-12-03 Philippe Elie * gui/oprof_start_config.cpp: allow default value change w/o breaking actual user. 2002-12-03 Philippe Elie * TODO: update * dae/opd_image.h: * dae/opd_kernel.c: * dae/opd_kernel.h: * dae/opd_parse_proc.c: * dae/opd_proc.c: * dae/opd_proc.h: * dae/opd_sample_files.c: * dae/oprofiled.c: * daemon/opd_image.h: * pp/op_merge.cpp: * pp/samples_file.h: * pp/samples_file.cpp: * pp/Makefile.am: * libabi/Makefile.am: * libabi/abi.cpp: * libabi/abi_test.cpp: * libabi/op_import.cpp: use hash table implementation of libdb * gui/oprof_start.cpp: * gui/oprof_start_config.cpp: * gui/oprof_start_config.h: * gui/ui/oprof_start.base.ui: * utils/op_start: * doc/oprofile.1.in: * doc/oprofile.xml: remove module hash table size * libdb/.cvsignore: update * libdb/Makefile.am: build libdb-hash.a * libdb/db-hash.h: * libdb/db-hash-debug.c: * libdb/db-hash-manage.c: * libdb/db-hash-test.c: * libdb/db-hash-insert.c: * libdb/db-hash-stat.c: * libdb/db-hash-travel.c: new files implementing a growable hash table * libdb/Makefile.am: update * libop/op_config_24.h: remove module hash table. Increase OP_PRE_WATERMARK, OP_DEFAULT_BUF_SIZE. * libop/op_interface.h: struct op_sample update. * module/oprofile.h: * module/oprofile.c: remove hash table 2002-12-02 John Levon * configure.in: remove annoying AC_REVISION() 2002-12-02 John Levon * utils/opcontrol: couple of minor cleanups 2002-12-02 John Levon * utils/opcontrol: fix --deinit, complain on missing argument 2002-12-02 Will Cohen * doc/Makefile.am: Generate opcontrol. * doc/oprofile.1.in: Add opcontrol information. * doc/oprofile.xml: Add opcontrol information. 2002-12-01 Will Cohen * utils/Makefile.am: Add opcontrol. * utils/opcontrol: New. 2002-12-01 John Levon * various files: don't use db_tree name outside of libdb, it's implementation detail for most case 2002-11-29 Graydon Hoare * module/x86/op_model_p4.c: fix dropped overflows. 2002-11-26 Graydon Hoare * module/x86/op_model_p4.c: fix CCCR-clearing logic. * module/x86/cpu_type.c: re-enable Pentium IV. 2002-11-25 John Levon * module/x86/cpu_type.c: disable Pentium IV till it works 2002-11-23 Philippe Elie * doc/oprofile.xml: start a FAQ. Clarify debug information vs symbol information. Explain why we don't use dynamic symbol 2002-11-20 John Levon * daemon/oprofiled.c: * utils/op_start_25: kernel_only is a no-op on 2.5, no point in it existing 2002-11-19 Philippe Elie * daemon/oprofiled.c: /dev/oprofile/kernel_only doesn't exists in timer int mode (second pass to fix #637804 ...) 2002-11-17 Graydon Hoare * module/x86/op_apic.h: * module/x86/op_apic.c: revert, use copy of kernel code. 2002-11-16 Philippe Elie * dae/opd_kernel.c: * dae/opd_mapping.c: * dae/opd_proc.c: * daemon/opd_image.c: * daemon/opd_kernel.c: * libop++/op_mangling.h: * libutil++/cverb.h: * pp/opp_samples_files.cpp: * pp/samples_file.cpp: doxygen fix * doc/srcdoc/Doxyfile: bump to 0.5 cvs 2002-11-14 Will Cohen * gui/Makefile.am: Use $(bindir). * oprof_report/Makefile.am: Use $(bindir). 2002-11-15 Dave Jones * module/x86/cputype.c: Make the AMD case a bit simpler. 2002-11-14 John Levon * dae/Makefile.am: * daemon/Makefile.am: proper fix for c++ link as suggested by Alexandre Duret-Lutz 2002-11-14 Philippe Elie * Makefile.am: we installed module in the wrong directory. 2002-11-14 Philippe Elie * libutil/op_file.c: op_simplify_path_name(): strip leading '/' * daemon/oprofiled.c: * dae/oprofiled.c: fix incorrect specification of vmlinux file through --vmlinux=/foo//bar fixing #637805 2002-11-14 Philippe Elie * utils/op_start_25: /dev/oprofile/kernel_only doesn't exists in timer int mode. fix #637804 2002-11-14 John Levon * dae/*: * daemon/*: * libutil++/op_bfd.h: * pp/samples_container.cpp: * pp/samples_container.h: doxygen anality 2002-11-14 John Levon * libopt++/popt_options.h: * libopt++/popt_options.cpp: place in popt namespace to avoid clash with getopt.h * libabi/abi_test.cpp: * libabi/op_import.cpp: * pp/op_merge.cpp: * pp/op_time_options.cpp: * pp/op_to_source_options.cpp: * pp/oprofpp_options.cpp: * pp/session.cpp: fix for above * libabi/abi.cpp: * libabi/abi.h: g++ 3.2 fixes * libabi/op_import.cpp: uninline extract * dae/Makefile.am: * daemon/Makefile.am: fix c++ link hack for -Werror 2002-11-13 Graydon Hoare ( this changeset is mostly Dave Jones' work ) * README: * TODO: * configure.in: * doc/oprofile.xml: * libop/op_cpu_type.c: * libop/op_cpu_type.h: * libop/op_events.c: * utils/op_help.c: * module/compat.h: * module/compat24.h: * module/op_util.c: * module/x86/Makefile.in: * module/x86/apic_compat.h: * module/x86/arch.h: * module/x86/cpu_type.c: * module/x86/op_fixmap.c: * module/x86/op_nmi.c: minor additions for hammer support. * module/x86/op_apic.c: * module/x86/op_apic.h: major cleanup; add hammer support. * module/x86/hammer_entry.S: * module/x86/hammer_ia32entry.S: * module/x86/hammer_op_syscalls.c: * module/x86/hammer_oprofile_nmi.S: new hammer support files. 2002-11-14 John Levon * configure.in: hack around case where clean checkout then ./configure --with-kernel-support 2002-11-12 Graydon Hoare * autogen.sh: support overriding autotool binary names. 2002-11-11 Philippe Elie * configure.in: honor --with-extra-libs 2002-11-11 Philippe Elie * configure.in: add -W -Wall and optionnaly -Werror to user space compilation 2002-11-11 John Levon * dae/Makefile.am: * daemon/Makefile.am: don't dist dummy.cpp 2002-11-11 John Levon * dae/Makefile.am: * daemon/Makefile.am: hack to fix --enable-abi 2002-11-10 John Levon * configure.in: * gui/Makefile.am: * oprof_report/Makefile.am: only use X libs where they're actually wanted 2002-11-10 John Levon * configure.in: make included sstream work again 2002-11-08 Will Cohen * doc/oprofile.xml: Update with IA64 information. 2002-11-10 John Levon * Makefile.am: remove oprof_report from SUBDIRS to avoid separate objdir problem 2002-11-10 John Levon * most Makefile.am: do the dist_sources trick properly 2002-11-10 John Levon * Makefile.am: * configure.in: * dae/Makefile.am: * daemon/Makefile.am: * utils/Makefile.am: s/WITH_KERNEL_SUPPORT/kernel_support * configure.in: * dae/Makefile.am: * dae/oprofiled.c: * daemon/Makefile.am: * daemon/oprofiled.c: * libabi/Makefile.am: approximate working --enable-abi more 2002-11-10 John Levon * dae/oprofiled.c: * daemon/oprofiled.c: abi tidy 2002-11-10 John Levon * autogen.sh: be verbose * gui/Makefile.am: * gui/ui/Makefile.am: * oprof_report/Makefile.am: * oprof_report/ui/Makefile.am: remove duplicate set MOC/UIC 2002-11-10 John Levon * Makefile.am: add comment * configure.in: no need to subst OPROFILE_25 2002-11-09 John Levon * TODO: update * configure.in: * most Makefile.am: make separate objdir work, except for module (impossible I suppose) 2002-11-09 John Levon * autogen.sh: use --foreign 2002-11-09 John Levon * configure.in: fix --with-kernel-support * doc/.cvsignore: add *.1 * libabi/Makefile.am: don't install abi_test 2002-11-09 John Levon * all cvsignore: add Makefile.in * gui/Makefile.am: move EXTRA_DIST out of qt check * gui/ui/Makefile.am: * oprof_report/ui/Makefile.am: fix AM_CPPFLAGS typo 2002-11-09 John Levon * all build files: use automake, written by Phil 2002-11-09 Philippe Elie * pp/samples_file.cpp: check than samples files version match expected version fixing #635759 2002-11-07 John Levon * configure.in: * module/compat.h: * module/compat24.h: * module/op_dname.c: * module/oprofile.c: * module/x86/op_fixmap.c: * module/x86/op_nmi.c: remove 2.5 support from old module code 2002-11-06 Will Cohen * configure.in: Tests for ia64 architecture. * dae/opd_mapping.c: Added includes. * oprofile/dae/oprofiled.c (opd_do_samples): Typecast. * libop/op_cpu_type.c (cpu_names, cpu_nr_counters): Add IA64 info. * libop/op_cpu_type.h (op_cpu): Add IA64 enums. * libop/op_events.c: Add defines for IA64 and IA64 events. * libop++/op_print_event.cpp: Change include order to work on IA64. * module/oprofile.c: Include "arch.h" file. (evict_op_entry): Use IRQ_ENABLED macro. (op_do_profile): Use INST_PTR and STATUS macros. (oprof_init_data): Factor out computation. * module/op_util.c (rvmalloc, rvfree): Typecasts. * module/x86/arch.h: New. * README: Update. * utils/op_help.c (main): Add IA64 information. * module/ia64/arch.h: * module/ia64/cpu_type.c: * module/ia64/IA64entry.h: * module/ia64/IA64minstate.h: * module/ia64/IA64syscallstub.h: * module/ia64/Makefile.in: * module/ia64/op_ia64_model.h: * module/ia64/op_pmu.c: * module/ia64/oprofile_stubs.S: * module/ia64/op_syscalls.c: New. 2002-11-06 John Levon * configure.in: 0.5cvs * Makefile.in: mention doxyfile in release steps 2002-11-06 Philippe Elie * pp/op_to_source.cpp: op_to_source --source-with-assembly: avoid to be confused by source line which look like an asm line and stop incorrectly the output. This change go in 0.4 release 2002-11-06 John Levon * configure.in: bump to 0.4 in prep for release 2002-11-06 John Levon * module/x86/cpu_type.c: detect if we actually are using HT (from Alex T) 2002-11-05 John Levon * doc/oprofile.xml: manual fixes from Will Cohen 2002-11-01 John Levon * daemon/opd_image.c: fix lookup_dcookie usage * libabi/.cvsignore: add 2002-11-01 Philippe Elie * module/x86/op_apic.c: restore correctly the lvtpc register 2002-11-01 Philippe Elie * libop/op_hw_config.h: define DCOOKIE_SHIFT * daemon/opd_image.c: use it 2002-11-01 Philippe Elie * pp/Makefile.in: cleanup, build and use libpp.a 2002-10-31 John Levon * pp/counter_array.cpp: using namespace std 2002-10-31 Philippe Elie * dae/.cvsignore: * dae/opd_image.c: * dae/opd_kernel.c: * dae/opd_sample_files.c: * dae/opd_stats.c: * dae/oprofiled.c: * daemon/opd_image.c: * daemon/opd_sample_files.c: * libop/op_config_24.h: cleanup, including some little merging from daemon to dae * daemon/opd_image.c: change dcookie hashing function * doc/oprofile.xml: typo 2002-10-26 Philippe Elie * libutil++/file_manip.cpp: * libutil++/op_bfd.h: * libutil++/op_bfd.cpp: cleanup * pp/counter_array.h: * pp/counter_array.cpp: add a bool empty() member to counter_array_t * pp/sample_container_imp.cpp: use it 2002-10-26 Philippe Elie * configure.in: minor cleanup. Use config.h rather than gcc -D option * libutil/op_libiberty.h: * libutil++/op_bfd.h: * pp/opp_symbol.h: #include * libutil/Makefile.in: * pp/Makefile.in: remove BFD_CXXFLAGS 2002-10-24 Philippe Elie * libutil++/op_bfd.cpp: * libutil++/op_bfd.h: allow to specify explicetly on which symbol we want to work. * pp/op_to_source_options.h: * pp/op_to_source_options.cpp: * pp/op_to_source.cpp: handle --include-symbol, for asm output only output for symbols with samplels or selected symbols. * pp/oprofp.cpp: * pp/samplesc_ontainer.cpp: minor change to reflect op_bfd api change 2002-10-24 Philippe Elie * daemon/opd_image.c: revert 64 bit dcookie patch commited accidentally with 2002-10-18 abi patch. 2002-10-21 Graydon Hoare * doc/oprofile.xml: Describe op_import and --enable-abi. 2002-10-20 Philippe Elie * pp/Makefile.in: * pp/session.cpp: * pp/session.h: * pp/op_time_options.cpp: * pp/op_to_source.cpp: * pp/oprofpp.cpp: * doc/oprofile.1.in: * doc/oprofile.xml: handle --session options 2002-10-19 John Levon * configure.in: AC_HELP_STRING is too new for my autoconf 2002-10-18 Graydon Hoare * libabi/*: Add support for abi descriptions, for portability. * daemon/oprofiled.c: * dae/oprofiled.c: Emit abi description on startup. * configure.in: Add --enable-abi option. * make.common.in: * Makefile.in: Support building libabi/ 2002-10-19 John Levon * utils/op_start_25: grep -o does not exist on any of my systems - fix 2002-10-19 Philippe Elie * libutil++/op_bfd.cpp: calculate symbol size after removing duplicate symbol. Fix #625678 2002-10-19 Philippe Elie * pp/op_to_source.cpp: * pp/op_to_source_options.cpp: * pp/op_to_source_options.h: * doc/oprofile.1.in: * doc/oprofile.xml: allow to pass multiple options to objdump * pp/opp_symbol.h: * pp/samples_container.cpp: store symbol size in symbol_entry object. 2002-10-19 Philippe Elie * libutil++/child_reader.cpp: In some pathological case getline() finished too early when child process write on stderr. 2002-10-18 Philippe Elie * libutill++/child_reader.cpp: read_block() : cumulate stderr output rather to overwrite always the same buffer space ... 2002-10-16 John Levon * utils/op_start_25: check if mounted, from Will Cohen Also mkdir the mountpoint 2002-10-16 Philippe Elie * configure.in: get linux include path earlier 2002-10-15 Philippe Elie * dae/oprofiled.c: * daemon/oprofiled: strerrno --> strerror 2002-10-14 Philippe Elie * libop/op_events.c: typo in L2_DBUS_BUSY_RD PPro event name 2002-10-13 Philippe Elie * README: update contrib * TODO: update * gui/oprof_start.cpp: better error message, fixme removal * libdb/db-insert.c: fix samples count overflow. * libdb/db.h: * libdb/db-manage.c: * libdb/db-debug.c: don't use page zero, use this value as nil page number, avoid to touch mmaped memory when growing the samples file. * libop/op_config.h: bump OPD_VERSION 2002-10-12 Philippe Elie * pp/samples_file.h: * pp/samples_file.cpp: move class opp_samples_files ... * pp/opp_samples_files.h: * pp/opp_samples_files.cpp: to these new files * pp/Makefile.in: * pp/op_to_source.cpp: * pp/oprofpp.cpp: reflect above change 2002-10-12 Philippe Elie * dae/opd_sample_files.c: fixme remove * dae/oprofiled.c: * daemon/oprofiled.c: minor error message improvement * pp/op_time.cpp: * pp/symbol_container.cpp: fixme remove * pp/samples_file.cpp: * pp/sample_file.h: privatize more data members 2002-10-12 Philippe Elie * libutil++/utility.h: op_ratio() new * pp/op_time.cpp: * pp/op_to_source.cpp: * pp/opp_symbol.cpp: * pp/samples_container.cpp: use op_ratio() 2002-10-11 Philippe Elie * libutil++/file_manip.cpp: * libutil++/filename_match.cpp: * libutil++/string_manip.cpp: * libutil++/string_manip.h: fix dirname(), basename(), remove rtrim() 2002-10-07 John Levon * daemon/opd_image.h: * daemon/opd_image.c: * daemon/oprofiled.c: * libop/op_interface_25.h: update to latest interface 2002-10-06 Philippe Elie * dae/opd_image.c: allow to free(image->app_name) 2002-10-05 Philippe Elie * daemon/opd_image.c: * dae/opd_image.c: spacing * dae/opd_mapping.c: * dae/opd_mapping.h: kill op_grow_maps() simplify adding map path * dae/opd_parse_proc.c: use opd_add_mapping() 2002-10-05 Philippe Elie * TODO: update * doc/oprofile.xml: more doc in interpreting results 2002-10-04 Philippe Elie * pp/opp_symbols.cpp: * pp/opp_symbols.h: * pp/outsymbflag.h: implement 'q' 'Q' format flags. Fix #618165 * pp/op_time_options.cpp: reject these formats for op_time * doc/oprofile.1.in: * doc/oprofile.xml: document them 2002-10-02 John Levon * Makefile.in: use -P to strip dead dirs on dist * dae/opd_parse_proc.c: spacing 2002-10-02 Philippe Elie * libdb/db-*.c/*.h: typedef tweaking for 64 bits arch (signaled by Dave Jones) * remove libdb/ChangeLog, old entries are: 2002-04-20 Philippe Elie * db-insert.c: check for count overflow 2002-04-20 Philippe Elie * db-manage.c: properly handle already existing db file * db.h: extern "C" wrapper 2002-04-19 Philippe Elie * *.c;*.h: make plugin db in oprofile more easy. 2002-04-18 Philippe Elie * *.c;*.h: prefix all public identifier with db_. Use typedef as much I can rather than plain unsigned int. 2002-04-17 Philippe Elie * db-debug.c: * db-insert.c: * db-manage.c: * dbtest.c: * db-travel.c: * db.h: add file locking and necessary stuff to allow plugging db in an imbedded file format like oprofile samples files. 2002-04-16 Philippe Elie * db-manage.c: silly bug fix, db works now with malloc/realloc or mmap/mremap memory allocation selected at compile time. 2002-04-14 Philippe Elie * first import standalone code to test btree samples files 2002-10-02 Philippe Elie * module/x86/op_msr.h: Hyper threading #define * module/x86/cpu_type.c: include op_msr.h 2002-10-02 Philippe Elie * */*.cpp: using std::xxx; --> using namespace std; 2002-10-01 Will Cohen * module/x86/cpu_type.c (p4_threads): New. (get_cpu_type): Use p4_threads(). * doc/oprofile.xml: Add comment about P4 HT support. 2002-10-01 John Levon * daemon/opd_image.c: fix non --separate-samples. Still broke. 2002-10-01 John Levon * libop/op_cpu_type.h: * libop/op_cpu_type.c: make this work on 2.5/normal both. Does not respect different mounted oprofilefs (yet) 2002-10-01 John Levon * daemon/.cvsignore: add * libop/op_interface_25.h: * daemon/opd_image.h: * daemon/opd_image.c: * daemon/oprofiled.c: fixups for new encoded interface. Fix --separate-samples * utils/op_start_25: startup fixes 2002-09-26 Will Cohen * module/x86/op_model_p4.c: Correct TC_DELIVER_MODE cccr select. 2002-09-23 Graydon Hoare * dae/oprofiled.c: * daemon/op_sample_files.c: * daemon/oprofiled.c: * pp/op_to_source.c: * utils/op_help.c: u8 unit mask -> u16 unit-mask. I'm not sure this catches *all* the instances, but it does appear to be an improvement 2002-09-30 William Cohen * libutil++/string_manip.cpp (sample_filename): Correct declaration. * pp/samples_container.h: Correct add_samples() declaration. 2002-09-29 Philippe Elie * libutil++/string_manip.cpp: * libutil++/string_manip.h: sample_filename() new * pp/samples_container.cpp: * pp/samples_container.h: add_samples() new * pp/op_merge.cpp: * pp/op_time.cpp: * pp/oprofpp.cpp: * pp/samples_file.cpp: use them + minor cleanup 2002-09-28 Philippe Elie * libopt++/popt_options.cpp: fix #615760, in rare case oprofpp called with lot of invalid arguments segfault during the help printing. All post-profile tools are concerned by this fix. * doc/oprofile.xml: small improvements * libutil++/op_bfd.cpp: improve error message when bfd_openr() fails. * TODO: update 2002-09-28 Philippe Elie * dae/opd_image.c: * dae/opd_kernel.c: * dae/opd_parse_proc.c: * dae/opd_parse_parse.h: * dae/opd_proc.c: * dae/opd_sample_files.c: * daemon/opd_image.c: * daemon/opd_kernel.c: * daemon/opd_sample_files.c: * libop/op_cpu_type.c: * libop/op_events.c: * libop/op_events_desc.c: * libopt++/popt_options.cpp: * libutil/op_deviceio.c: * libutil/op_file.c: * libutil++/file_manip.cpp: * libutil++/file_manip.h: * libutil++/string_manip.h: * pp/op_to_source.cpp: doxygen fix 2002-09-27 John Levon * configure.in: add --with-kernel-support for 2.5 * daemon/oprofiled.c: fix comment, give exit message on sig * utils/Makefile.in: * utils/op_stop_25: add 2.5 op_stop, no 2.5 op_dump * utils/op_start_25: use enable 2002-09-25 Bob Montgomery * module/oprofile.c: avoid to dump zero samples count, fix #615087 2002-09-25 Philippe Elie * dae/opd_image.c: fix #615166, ensure we recognize an existing image struct so we don't try to create db_tree_t object for the same samples files. * db/db-debug.c: display page index when something goes wrong * db/db-insert.c: be more strict on assertion 2002-09-25 Philippe Elie * doc/Makefile.in: remove dependencies for doc/html.xsl 2002-09-25 Philippe Elie * doc/xsl/.cvsignore: new * doc/oprofile.xml: document watchdog problem 2002-09-25 John Levon * module/x86/op_nmi.c: OP_MAX_CPUS is not necessarily static so use NR_CPUS for array instead. Fix a prototype. 2002-09-23 Graydon Hoare * doc/oprofile.xml: Add some P4 documentation. * configure.in: Add detection of different stylesheet paths. * doc/xsl/xhtml.xsl.in: Parameterize by configure's result. * doc/xsl/xhtml.xsl: Remove. * dae/opd_sample_files.c: Change unit mask from 8 to 16 bits. * gui/oprof_start.cpp: Change number of unit masks from 7 to 16. * gui/ui/oprof_start.base.ui: Likewise. * libop/op_cpu_type.c: Add P4 CPU type. * libop/op_events.h: Change unit mask bit width, number. * libop/op_events.c: Add P4 events, unit masks. * libop_op_hw_config.h: Set OP_MAX_COUNTERS to 8. * libop++/op_print_event.cpp: Change unit mask bit width. * libop++/op_print_event.h: Likewise. * module/oprofile.c: Add extra sysctls for counters 5-8. * module/x86/Makefile.in: Add op_model_p4.o to obj list. * module/x86/cpu_type.c: Change CPU identification to handle P4. * module/x86/op_apic.c: (enable_apic): APIC_MAXLVT < 4, not != 4. (check_cpu_ok): Accept CPU_P4. * module/x86/op_model_p4.c: New file. * module/x86/op_nmi.c: (get_model): Handle CPU_P4. Add sysctl names for counters 5-8. * module/x86/op_x86_model.h: Declare extern op_p4_spec. 2002-09-24 Philippe Elie * dae/opd_image.c: * dae/opd_image.h: * dae/opd_kernel.c: * dae/oprofiled.c: * dae/p_module.h: * dae/opd_image.c: * dae/opd_kernel.c: * dae/oprofiled.c: * dae/p_module.h: small blank/comment change to minimize diff between daemon and dae dir. 2002-09-23 John Levon * configure.in: fix for 2.5 patch to build 2002-09-23 John Levon * utils/Makefile.in: * utils/op_start_25: 2.5 patch start script 2002-09-23 John Levon * dae/opd_image.c: * libop/op_cpu_type.c: fix arrays 2002-09-23 John Levon * utils/op_start: use right value for RTC CPU 2002-09-23 John Levon * libop/op_config.h: * libop/op_config_24.h: * libop/op_config_25.h: split config file up * daemon/opd_kernel.c: * daemon/oprofiled.c: include op_config_25.h * dae/oprofiled.c: * dae/opd_image.c: * dae/opd_kernel.c: * dae/opd_mapping.c: include op_config_24.h * module/oprofile.h: include op_config_24.h * gui/oprof_start.cpp: * gui/oprof_start_config.cpp: fix from above (old support only right now) * libop/op_cpu_type.h: introduce 2.5-patch CPU_TIMER_INT 2002-09-23 John Levon * libop/op_interface_25.h: 2.5 interface * daemon/opd_image.c: * daemon/opd_sample_files.c: * daemon/oprofiled.c: * libop++/op_print_event.h: fix header * pp/op_to_source.cpp: change from above 2002-09-23 John Levon * daemon/: new 2.5 patch daemon code. WIP * configure.in: * Makefile.in: detect 2.5 patch and build appropriately 2002-09-23 John Levon * module/x86/op_msr.h: match kernel naming * module/x86/op_model_athlon.c: from above 2002-09-22 Philippe Elie * libdb/db-insert.c: bad cut&paste. Shame on me, I broke the build... 2002-09-22 Philippe Elie * libdb/db-insert.c: handle samples count overflow. * libdb/Makefile.in: db-test new target not built by default. * libdb/db-debug.c: more strict checking * libdb/db-test.c: allow db-test to be used as "db-test samples_dir/*" 2002-09-22 John Levon * dae/opd_stats.c: nicify * module/x86/op_model_pproc.c: * module/x86/op_model_athlon.c: drop macro prefixes, ws fixes * module/x86/op_nmi.c: fix save/restore possible crash, init possible leak 2002-09-22 Philippe Elie * module/x86/op_model_pproc.c: fix p6_start() * module/x86/op_model_athlon.c: fix athlon_start() * module/x86/op_nmi.c: pmc_save_registers() typo when checking null for kmalloc return value 2002-09-20 Graydon Hoare * module/x86/op_x86_model.h: New interface for MSRs. * module/x86/op_nmi.c: Use interface. * module/x86/op_model_ppro.c: New, code from op_nmi.c. * module/x86/op_model_athlon.c: New, code from op_nmi.c. * module/x86/Makefile.in: Reflect new files. 2002-09-20 John Levon * libutil++/op_bfd.cpp: fix a bug where we broke with multiple executable sections due to sorting the symbols wrongly. Fix #617288 and the duplicated #617264 * libutil++/op_bfd.h: fix an outdated comment * dae/opd_image.c: fix comment 2002-09-19 Graydon Hoare * libop/op_events.h: * libop/op_events_desc.c: Move descriptions from here. * libop/op_events_desc.h: * libop/op_events.c: To here. (um_*): Add new static unit masks. (op_events): Use pointers to static unit masks. * libop++/op_print_event.h: * libop++/op_print_event.cpp: * gui/oprof_start.h: * gui/oprof_start.cpp: * utils/op_help.c: Make compatible with struct changes. 2002-09-18 John Levon * utils/op_start: give an example for unit mask. 2002-09-18 Will Cohen * libop/op_mangle.c: (op_mangle_filename): Correct logic for generating mangled name. Fix #611107 2002-09-15 John Levon * libop/op_event.c: fix comment 2002-09-15 Philippe Elie * module/x86/cpu_type.c: allow to force RTC mode. * dae/oprofiled.c: checking when we need to backup samples dir in RTC mode was broken. 2002-09-14 Philippe Elie * libop/op_config.h: remove OP_MIN/MAX_PID, OP_MIN/MAX_PGRP * gui/oprof_start.cpp: pid_filter/pgrp_filter accept all integer 2002-09-13 John Levon * acinclude.m4: another tweak 2002-09-13 Philippe Elie * Makefile.in: never remove doc/oprofile.html. * acinclude.m4: small work-around for sed-related problem 2002-09-12 Will Cohen * Makefile.in: Separate kernel and user code build rules. 2002-09-12 Will Cohen * libutil++/child_reader.h (child_reader): Add missing "std::". * libutil++/child_reader.cpp (error_str): Ditto. 2002-09-12 John Levon * acinclude.m4: update from upstream 2002-09-12 John Levon * acinclude.m4: fix moc2/moc conflict, cache val 2002-09-12 Philippe Elie * libutil++/child_reader.cpp: * libutil++/child_reader.h: fix for child terminated by a signal * gui/oprof_start_util.cpp: * pp/op_to_source.cpp: use the the new child_reader interface 2002-09-11 John Levon * acinclude.m4: * configure.in: * gui/Makefile.in: replace with new Qt configure script 2002-09-11 Philippe Elie * acinclude.m4: fix qt3 detection in some corner case. 2002-09-11 Philippe Elie * pp/samples_container.cpp: * pp/samples_container.h: Check at run time we don't try to use an unitialized samples_container_t. 2002-09-11 Philippe Elie * pp/op_time.cpp: exit sooner when no samples files are available. 2002-09-09 Will Cohen * dae/opd_kernel.c (struct opd_module): (kernel_start, kernel_end): (opd_parse_kernel_range): (opd_drop_module_sample): (opd_find_module_by_eip): (opd_handle_module_sample): (opd_handle_kernel_sample): (opd_eip_is_kernel): * dae/opd_kernel.h (opd_handle_kernel_sample): (opd_eip_is_kernel): * dae/opd_mapping.c (opd_put_mapping): * dae/opd_mapping.h (struct opd_map): (opd_is_in_map): (opd_map_offset): * dae/opd_parse_proc.c (opd_add_ascii_map): * dae/opd_proc.c(verb_show_sample): (opd_put_image_sample): * dae/opd_proc.h (opd_put_image_sample): Change things referring to addresses to unsigned long for operation on 64-bit machines. 2002-09-07 Philippe Elie * all source file : remove email address from @author 2002-09-05 Philippe Elie * libop/op_interface.h: (op_sample, op_note): Make compatible with 64-bit targets. * dae/opd_proc.c: (opd_put_sample): Adjust verbprintf arguments. (opd_handle_fork): Ditto. * dae/oprofiled.c: (opd_do_samples): Ditto. 2002-09-04 Will Cohen * module/op_rtc.c: move to ... * module/x86/op_rtc.c: here * module/Makefile.in: * module/x86/Makefile.in: reflect file move 2002-09-03 Will Cohen * module/oprofile.h: (regparm3): remove, use FASTCALL instead. * module/oprofile.c: (op_do_profile): Eliminate regparm3. 2002-09-03 Will Cohen * module/oprofile.c: (oprof_read, oprof_note_read): Return ssize_t. 2002-08-30 Will Cohen * Makefile.in: * make.common.in: more DESTDIR change 2002-09-02 Dave Jones * module/x86/cpu_type.c: support hammer in ia32 mode 2002-09-02 John Levon * doc/oprofile.xml: mention Qt 3 2002-08-30 Will Cohen * doc/Makefile.in: Set MANDIR and CATDIR based on DESTDIR. 2002-08-16 Philippe Elie * dae/opd_kernel.c: * dae/opd_kernel.h: * dae/opd_proc.c: * dae/opd_proc.h: * dae/oprofiled.c: * libop/op_hw_config.h: * libop/op_interface.h: * module/oprofile.c: * module/oprofile.h: change the layout of data used between daemon/module (32 bits pid fix for 2.5.31) * gui/oprof_start_config.h: use pid_t * libutil/op_fileio.c: op_read_file(), op_write_file(), use %lu and cast, uglier solution but more portable than last fix * utils/op_start: typo 2002-08-14 William Cohen * libutil/op_fileio.c (op_read_file): Change fprintf specifier. (op_write_file): Ditto. 2002-08-08 Will Cohen * utils/op_start: Do not compute quantity of counters from CPUTYPE. Get counter names directly from /proc/sys/dev/oprofile. 2002-08-06 Philippe Elie * Makefile.in: * doc/Makefile.in: delete generated doc only on a make maintainerclean * pp/opp_symbol.cpp: small cleanup 2002-08-06 Philippe Elie * dae/opd_parse.c: * dae/opd_proc.c: * dae/opd_proc.h: fix #591275 which is a re-hash of #584723 we can now safely assume than proc->maps[0] is the primary image. Problem reported by William cohen 2002-08-03 Philippe Elie * libutil++/string_manip.h: * libutil++/string_manip.cpp: separate_token() treat escape sequence 2002-07-30 Philippe Elie * gui/oprof_start.cpp: apply misssing part from this patch 2002-07-27 Will Cohen * dae/oprofiled.c: * doc/oprofile.1.in: * util/oprof_start: * doc/oprofile.xml: clarify than pgrp filter is the tty program group id 2002-07-28 Philippe Elie * libop/op_cpu_type.c: * libop/op_cpu_type.h: * libop/op_events.h: * pp/samples_file.cpp: op_get_cpu_nr_counters() / op_get_nr_counters() merge * module/compat22.h: * module/x68/op_apic.c: __cli()/__sti() removal, this fix build up to 2.5.29 * module/op_fixmap.c: fix test_bit() warning 2002-07-27 Will Cohen * gui/oprof_start_config.cpp: config_setting::config_setting() uses uname to guess path to vmlinux. 2002-07-27 John Levon * dae/opd_stats.h: * dae/opd_stats.c: * dae/opd_proc.c: log unique samples vs. sample entries 2002-07-27 Will Cohen * dae/oprofiled.c: * gui/oprof_start.cpp: * libop/op_cpu_type.h: * libop/op_cpu_type.c: op_get_nr_counter() new, localize op_nr_counter computations. 2002-07-26 Philippe Elie * TODO: update * utils/op_start: fix #587093, some option of op_start was incorrectly checked 2002-07-26 Philippe Elie * pp/op_time_options.cpp: * pp/oprofpp_options.cpp: output format header or details are illegal if not combined with other output format flag * pp/opp_symbol.cpp: * pp/opp_symbol.h: * pp/oprofpp.cpp: * pp/outsymbflag.h: minor cleanup 2002-07-25 John Levon * configure.in: bump to 0.4cvs 2002-07-24 Kevin Puetz * gui/ui/oprof_start.base.ui: fix resize 2002-07-22 Philippe Elie * libutil/op_fileio.c: * libutil/op_fileio.h: opd_get_link() new, read a symlink filename * libutil++/file_manip.cpp: * libutil++/file_manip.h: opd_read_link() use the above function * dae/opd_image.c: * dae/opd_parse_proc.c: fix #584723 we can not assume than the first map in /proc/pid/maps is the the map for the binary image 2002-07-21 John Levon * configure.in: bump to 0.3 2002-07-17 William Cohen * gui/oprof_start_util.cpp: get HZ from sysconf 2002-07-17 Philippe Elie * gui/oprof_start.base.ui: revert patch 2002-07-13, reapply the same modification with QT2 designer rather QT3 designer 2002-07-14 John Levon * Makefile.in: set KVERS properly * dae/oprofiled.c: remove eip == 0 checking * module/oprofile.c: do check in evict_op_entry() instead, as suggested by Philippe 2002-07-13 Philippe Elie * TODO: update * make.deps: * gui/Makefile.in: fix include search path for dependencies generation 2002-07-13 John Levon * dae/oprofiled.c: don't throw away last samples on shutdown notification 2002-07-13 Philippe Elie * TODO: update * doc/oprofile.1.in: * doc/oprofile.xml: * gui/oprof_start.cpp: * gui/oprof_start_config.cpp: * gui/oprof_start_config.h: * gui/oprof_start.base.ui: remove kernel-range specification UI 2002-07-12 John Levon * TODO: update * dae/oprofiled.c: * libop/op_interface.h: * module/oprofile.c: * module/oprofile.h: * module/x86/op_nmi.c: * module/x86/op_syscalls.c: replace partial_stop,quitting,prof_on with single state variable, and clean up how shutdown is triggered. * module/oprofile.c: always init data->entries etc. for every CPU 2002-07-12 Philippe Elie * Makefile.in: typo in clean target * module/compat.h: * module/compat24.h: * module/oprofile.c: * module/x86/op_nmi.c: support for online/offline cpu for 2.5.23+ 2002-07-11 Philippe Elie * Makefile.in: * module/Makefile.in: * module/x86/Makefile.in: move all goal to the topdir Makefile 2002-07-10 Philippe Elie * TODO: update * pp/op_time.cpp: errno for file permission problem is EACCES not EPERM ... * module/x86/op_apic.c: * module/x86/op_fixmap.c: * module/x86/op_nmi.c: revert partially the 2002-06-26 patch, preempt need rather to be fixed before/after calling the op_int_operation functions pointer. 2002-07-09 Philippe Elie * gui/oprof_start.cpp: use not * libutil/op_libiberty.c: don't assume than string.h is included by libiberty.h as in old gcc release 2002-07-08 Philippe Elie * libutil++/op_bfd.h: * libutil++/op_bfd.cpp: pass vector by const reference rather than by value * pp/op_to_source.cpp: always output file even if the corresponding source file does not exist 2002-07-06 Philippe Elie * libopt++/popt_options.cpp: provide a dtor in derived class * doc/oprofile.1.in: * pp/op_to_source.cpp: --output --no-output are meaningfull in all case. 2002-07-06 Philippe Elie * gui/oprof_start.cpp: * pp/sample_container_imp.cpp: * pp/symbol_container_imp.cpp: * pp/op_to_source.cpp: fix an ISO corner case (3.4.2 #2) 2002-07-05 Philippe Elie * libutil++/filename_match.h: * libutil++/filename_match.cpp: constify * module/Makefile.in: small typo * Makefile.in: do not make uninstall in module/arch * pp/op_to_source_options.h: * pp/op_to_source_options.cpp: * pp/op_to_source.cpp: general cleanup, remove the output class and use free function instead, doxygen'ize them. 2002-07-04 Philippe Elie * libop/op_events.cpp: * libop/op_events.h: * module/x86/op_nmi.c: * dae/oprofiled.c: op_check_events() no longer accept 0 as valid events * pp/opp_symbol.cpp: small dead code removal * pp/opp_symbol.h: doxygen comment fix * configure.in: do not use AC_CHECK_FILE: this macro generate spurious warning with autoconf 2.2.13 * pp/op_to_source_options.h: * pp/op_to_source_options.cpp: * pp/op_to_source.cpp: * doc/oprofile.1.in: * doc/oprofile.xml: implement --objdump-params='params_strings' allowing to pass additional parameters to objdump. 2002-07-03 Philippe Elie * libutil/op_fileio.c: remove a FIXME, it's not worthwhile to try to use GNU getline() instead of op_get_line() * pp/op_time.cpp: * pp/op_time_options.cpp: * pp/op_time_options.h: * pp/oprofpp.cpp: remove minor FIXME * pp/opp_symbol.h: class outut_symbol: clarify why, with the current design, some function are public member rather private. 2002-07-01 Philippe Elie * configure.in: * module/compat.h: fix compile error with kernel <= 2.2.17 2002-07-01 Philippe Elie * TODO: minor upadte * configure.in: support 2.5.20 * dae/opd_image.c: * dae/opd_proc.c: * libop++/op_print_event.h: * libutil/op_popt.c: * pp/op_merge.cpp: * pp/samples_container.cpp: * pp/symbol_container_imp.cpp: * pp/symbol_functors.h: minor #include tweak 2002-06-30 Philippe Elie * libdb/db.h: * libdb/db-manage.c: constify db_sync() parameter. * dae/opd_image.c: fix #574459 "vmlinux samples file not backed up by op_session". Small cleanup by adding opd_for_each_image() 2002-06-29 Philippe Elie * TODO: update * libutil++/filename_match.cpp: * libutil++/filename_match.h: add a convenience ctor. * doc/oprofile.1.in: * doc/oprofile.xml: * op_time.cpp: better error message for EPERM problem * op_time_options.h: * op_time_options.cpp: allow the user to specify explicitely on which filename he want to work 2002-06-29 Philippe Elie * TODO: update * acinclude.m4: * configure.in: * make.common.in: * gui/Makefile.in: * gui/ui/Makefile.in: better qt3 handling * doc/oprofile.1.in: * doc/oprofile.xml: fix oprof_start --option=blah 2002-06-28 Philippe Elie * .cvsignore: minor fix * configure.in: * acinclude.m4: ugly temporary hack to compile with kde3/qt3 * oprof_start.cpp: * oprof_start_config.cpp: gcc-3.1 and qt3 fix (qt3 have an hex() somewhere ...) * module/x86/op_fixmap.c: minor comment fix 2002-06-26 Philippe Elie * TODO: update * module/compat.h: * module/x86/op_apic.c: * module/x86/op_fixmap.c: * module/x86/op_nmi.c: preemptible kernel support. This fix point #2 of kernel_src/Documentation/preempt-locking.txt 2002-06-25 Philippe Elie * TODO: update * doc/oprofile.1.in: * doc/oprofile.xml: document op_start --kernel-range option * gui/oprf_start.cpp: * gui/oprof_start.h: * gui/oprof_start_config.cpp: * gui/oprof_start_config.h: * gui/ui/oprof_start_base.ui: * utils/op_start: implement --kernel-range * gui/Makefile.in: force ui sub-dir build 2002-06-25 Philippe Elie * TODO: update * configure.in: new AX_KERNEL_VERSION() to allow kernel version check, use it to check minimal kernel version and fix 2.5.19 breakage * module/.cvsignore: * module/x86/.cvsignore: add .*.cmd * module/Makefile.in: * module/x86/Makefile.in: fix 2.5.19 make through EXTRA_CFLAGS_MODULE * module/compat22.h: fix missing BUG() definition in 2.2 kernel * module/x86/oprofile_nmi.S: fix minor 2.2 compile problem * pp/op_to_source.cpp: minor comment fix 2002-06-18 John Levon * utils/op_start: * pp/samples_file.h: * libop/op_config.h: * doc/oprofile.1.in: * doc/oprofile.xml: * dae/oprofiled.c: * dae/opd_kernel.h: * dae/opd_kernel.c: don't parse System.map any more, now we work based off vmlinux alone * dae/opd_proc.c: move eip_is_kernel() into opd_kernel.c 2002-06-18 John Levon * README: * doc/oprofile.xml: update credits 2002-06-16 John Levon * pp/op_time_options.h: * pp/op_time_options.cpp: move private stuff out of options namespace 2002-06-16 John Levon * pp/counter_util.cpp: stop when we reach the first available counter for sorting * pp/op_to_source.cpp: use absolute sample file name * pp/samples_file.cpp: better error message 2002-06-16 John Levon * various: remove spurious == false, == true 2002-06-15 John Levon * dae/oprofiled.c: * libop/op_interface.h: * libop++/op_print_event.h: * module/oprofile.c: define a buffer head for the module buffer interface, and use it * module/Makefile.in: oops, install the module properly 2002-06-15 John Levon * libop/Makefile.in: * libop/op_cpu_type.h: * libop/op_cpu_type.c: new files split out, defines changed * dae/opd_proc.c: * dae/opd_sample_files.c: * dae/oprofiled.c: * gui/oprof_start.cpp: * libop/op_events.h: * libop/op_events.c: * libop/op_events_desc.h: * libop/op_events_desc.c: * libop/op_interface.h: * libop++/op_print_event.h: * module/oprofile.h: * module/x86/op_nmi.c: changes from above 2002-06-15 John Levon * Makefile.in: compile module early as it's most likely to fail * TODO: update * doc/oprofile.xml: * configure.in: remove unneeded --with-cc * module/x86/Makefile.in: use USE_STANDARD_AS_RULE * module/x86/op_nmi.c: add preemption exclusion 2002-06-15 John Levon * dae/opd_parse_proc.c: remove FIXME. We are fine to assume first entry in maps is the executable, because this is exactly what the kernel does (see /proc/pid/exe) 2002-06-15 John Levon * pp/oprofpp.cpp: call check_mtime() correctly for shared libraries 2002-06-14 John Levon * libop/op_events.c: add warning * module/Makefile.in: link against libop.a like I meant to * module/oprofile.h: * module/oprofile.c: readability cleanup 2002-06-11 John Levon * module/compat.h: * module/x86/arch_compat.h: remove arch_compat.h, add BUG_ON() * module/op_util.c: return -EINVAL not 1 from check_range() * module/oprofile.c: use BUG_ON() in release functions, fix use of check_range, remove spurious check for malloc failure (already checked) * module/oprofile.h: clarify API * module/x86/op_msr.h: new file, MSR back-compat * module/x86/op_nmi.c: * module/x86/op_apic.c: use it 2002-06-10 John Levon * TODO: update * configure.in: remove old checks we don't need. Add to EXTRA_CFLAGS not KCFLAGS * module/Makefile.in: update to use Rules.make and kernel rules. * module/op_init.c: make this one include kernel modversion stuff for 2.2 * module/oprofile.h: remove __cacheline_aligned in wrong place * module/x86/Makefile.in: use Rules.make (hacky) * module/x86/arch.mak: remove * module/x86/op_fixmap.c: add missing header * module/x86/op_syscalls.c: my_sys_exit is not static 2002-06-09 Philippe Elie * libutil++/cverb.h: * libutil++/cverb.cpp: cverb ostream initializations * pp/op_merge.cpp: * pp/op_time_options.cpp: * pp/op_to_source_options.cpp: * pp/oprofpp_options.cpp: use it * utils/Makefile.in: fix a typo in lib dependencies 2002-06-07 Philippe Elie * TODO: update * pp/samples_container.cpp: * pp/samples_container.h: add an hint parameter to add() used to avoid recording all samples. * pp/oprofpp.cpp: use it for the -s option. This change slightly behavior of oprofpp -s, now percent are relative to the selected symbol, not to the whole samples file. Performance of oprofpp -s are improved a lot (40 times on vmlinux) * utils/Makefile.in: missing libs dependencies 2002-06-07 Philippe Elie * pp/Makefile.in: * dae/Makefile.in: * gui/Makefile.in: update dependencies for library 2002-06-07 Philippe Elie * libopt++/popt_options.cpp: * libopt++/popt_options.h: memory leak fix 2002-06-07 Philippe Elie * libutil++/Makefile.in: fix bfd compilation problem with gcc >= 3.0 and old bfd.h * module/Makefile.in: * module/x86/Makefile.in: fix -Werror typo * pp/op_merge.cpp: * pp/op_time_options.cpp: * pp/op_to_source_options.cpp: * pp/oprofpp_options.cpp: work around for cverb initialisations and gcc 2.91. * pp/op_to_source.cpp: use the right comand line argument. 2002-06-07 John Levon * TODO: update * libutil++/utility.h: fix stupid bug, add scoped_array * libutil++/op_bfd.h: * libutil++/op_bfd.cpp: use it 2002-06-07 John Levon * libutil++/utility.h: add a scoped_ptr * pp/op_to_source.cpp: * pp/samples_container.h: * pp/samples_container.cpp: use it 2002-06-07 John Levon * dae/opd_kernel.c: remove some duplicate code 2002-06-07 John Levon * pp/opp_symbol.cpp: kill last of the accursed char arrays 2002-06-07 John Levon * libutil++/op_bfd.cpp: * libutil++/op_bfd.h: * libutil++/verbose_ostream.h: * pp/op_merge.cpp: * pp/op_time_options.cpp: * pp/oprofpp_options.cpp: * pp/op_to_source_options.cpp: remove verbose_ostream in favour of a much simpler solution * module/oprofile.h: remove dead prototype 2002-06-06 John Levon * module/x86/Makefile.in: * module/Makefile.in: remove 2.91 check, add 2.5 check * module/compat22.h: * module/compat24.h: * module/apic_up_compat.h: move to ... * module/x86/op_apic.h: * module/x86/apic_compat.h: ... here * module/compat.h: move arch stuff to ... * module/x86/arch_compat.h: ... here 2002-06-06 Philippe Elie * configure.in: remove gcc 2.91 check * make.common.in: use -Werror even for gcc 2.91 * gui/oprof_start.cpp: * libutil++/op_bfd.cpp: * pp/derive_files.cpp: * pp/op_to_source.cpp: small tweak for gcc 2.91 and -Werror 2002-06-06 John Levon * module/op_rtc.c: use check_range 2002-06-06 John Levon * configure.in: fix typo so non-2.91 is detected * module/Makefile.in: * module/x86/Makefile.in: enable -Werror * module/op_dname.c: * module/oprofile.h: * module/oprofile.c: * module/op_util.h: * module/op_util.c: * module/x86/op_nmi.c: add op_util.h, make op_check_range a function check_range 2002-06-06 John Levon * module/Makefile.in: use @CC@, add clean for x86 * module/compat24.h: add path_hash prototype * module/x86/Makefile.in: use @CC@, make sure options get picked up 2002-06-06 John Levon * libutil/op_get_time.c: return "" not NULL on failure, so we don't try to printf NULL * module/op_dname.c: do_path_hash_2_4 should not be static now * module/oprofile.c: add const 2002-06-06 Philippe Elie * module/x86: new directory, for now some small portion of x86 dependant code remains in module/* mainly in oprofile.[ch]. This patch also don't take care about libop/* which are architecture dependant * module/op_apic.c: * module/op_nmi.c: * module/op_syscalls.c: * module/oprofile_nmi.S: * module/op_fixmap.c: move this file to ... * module/x86/op_apic.c: * module/x86/op_nmi.c: * module/x86/op_syscalls.c: * module/x86/oprofile_nmi.S: * module/x86/op_fixmap.c: these new files * module/x86/op_apic.c: x86 stuff * module/x86/arch.mak: specific arch makefile fragment * module/op_init.c: move cpu detection code ... * module/x86/cpu_type.c: here * module/Makefile: handle arch sub-dir * module/x86/.cvsignore: new * module/oprofile.h: declare the interface to the architecture dependant code * Makefile.in: * configure.in: handle module/arch * make.common.in: avoid -Werror with gcc 2.91 * make.deps: small tweak allowing to use it in module 2002-06-06 John Levon * configure.in: use CXXINCLUDES not CXXFLAGS for including sstream * make.common.in: remove duplicate -g -O2 * include/sstream: fix compiler warning to allow -Werror * libutil/op_file.c: * libutil/op_fileio.h: * libutil/op_fileio.c: more API fixage * libutil++/file_manip.cpp: add missing header 2002-06-06 John Levon * make.common.in: enable -Werror for CVS builds (not in module/) * dae/opd_image.c: * dae/oprofiled.c: * libutil/op_deviceio.h: * libutil/op_deviceio.c: API fixes * libutil++/file_manip.h: * libutil++/file_manip.cpp: * libutil++/op_bfd.h: * libutil++/op_bfd.cpp: * pp/op_time.cpp: * pp/oprofpp.cpp: * libutil/op_lockfile.c: * libutil/op_file.h: * libutil/op_file.c: add op_file_readable(), API fixes 2002-06-06 John Levon * utils/op_stop: fail early if ! root 2002-06-05 John Levon * pp/*: s/OutputSymbol/output_symbol/, s/OutSymbFlag/outsymbflag/ 2002-06-05 John Levon * pp/op_time_options.cpp: * pp/op_time_options.h: * pp/op_to_source_options.h: * pp/oprofpp_options.h: document 2002-06-05 John Levon * pp/Makefile.in: * pp/counter_util.h: * pp/counter_util.cpp: move from ... * pp/oprofpp.h: * pp/oprofpp_util.cpp: ... here (removed) * pp/op_time.cpp: * pp/op_time_options.cpp: * pp/op_to_source.cpp: * pp/opp_symbol.h: * pp/oprofpp.cpp: * pp/oprofpp_options.h: * pp/oprofpp_options.cpp: * pp/samples_container.h: * pp/samples_container.cpp: * pp/samples_file.h: * pp/samples_file.cpp: changes from above 2002-06-05 John Levon * libutil++/file_manip.h: * libutil++/file_manip.cpp: move oprofile specific stuff to ... * libop++/op_mangling.h: * libop++/op_mangling.cpp: ... here * pp/Makefile.in: * pp/op_bfd.h: * pp/op_bfd.cpp: move to ... * libutil++/Makefile.in: * libutil++/op_bfd.h: * libutil++/op_bfd.cpp: ... here * libutil++/verbose_ostream.h: add * pp/op_merge.cpp: * pp/op_time.cpp: * pp/op_time_options.h: * pp/op_time_options.cpp: * pp/op_to_source.cpp: * pp/op_to_source_options.h: * pp/op_to_source_options.cpp: * pp/oprofpp.h: * pp/oprofpp.cpp: * pp/oprofpp_options.h: * pp/oprofpp_options.cpp: * pp/oprofpp_util.cpp: * pp/samples_file.h: various changes and cleanups from above * pp/derive_files.cpp: remove now duplicate code 2002-06-05 John Levon * libutil++/file_manip.h: * libutil++/file_manip.cpp: simplify but don't break already absolute paths, remove dead code * pp/op_time_options.h: * pp/op_time_options.cpp: * pp/op_time.cpp: remove dead code * pp/op_to_source_options.h: * pp/op_to_source_options.cpp: * pp/oprofpp_options.h: * pp/oprofpp_options.cpp: variable name tweaks * pp/Makefile.in: * pp/op_to_source.cpp: * pp/oprofpp.cpp: * pp/oprofpp.h: * pp/oprofpp_util.cpp: * pp/derive_files.h: * pp/derive_files.cpp: factor command-line file derivation guessing out 2002-06-04 John Levon * libop++/op_print_event.cpp: * pp/op_bfd.h: * pp/op_time_options.cpp: * pp/op_to_source_options.cpp: * pp/oprofpp_options.cpp: fixes for std * pp/Makefile.in: * pp/oprofpp.h: * pp/oprofpp_util.cpp: * pp/samples_file.cpp: * pp/opp_symbol.h: * pp/counter_array.h: * pp/counter_array.cpp: factor out counter_array 2002-06-04 John Levon * pp/oprofpp.h: * pp/samples_file.cpp: * pp/oprofpp_util.cpp: remove a sanity check that wasn't particularly useful 2002-06-04 John Levon * libop++/Makefile.in: * libop++/op_mangling.h: * libop++/op_mangling.cpp: * pp/op_merge.cpp: * pp/op_time.cpp: * pp/oprofpp.cpp: * pp/oprofpp.h: * pp/oprofpp_util.cpp: move mangle/unmangle to libop++ 2002-06-04 John Levon * pp/Makefile.in: * pp/op_to_source.cpp: * pp/opp_symbol.cpp: * pp/demangle_symbol.h: * pp/demangle_symbol.cpp: move this ... * libutil++/Makefile.in: * libutil++/demangle_symbol.h: * libutil++/demangle_symbol.cpp: ... to here 2002-06-04 John Levon * make.common.in: * make.deps: split out CXXINCLUDES * Makefile.in: * configure.in: * libop++/Makefile.in: * libop++/op_print_event.h: * libop++/op_print_event.cpp: * pp/Makefile.in: * pp/oprofpp.h: * pp/oprofpp_util.cpp: * pp/samples_file.cpp: start libop++ library, move op_print_event there * pp/op_bfd.h: * pp/op_bfd.cpp: * pp/op_time.cpp: * pp/op_to_source.cpp: * pp/oprofpp.cpp: * pp/samples_file.h: * pp/samples_file.cpp: remove all knowledge of is_kernel from op_bfd, some minor cleanups 2002-06-04 John Levon * pp/op_bfd.h: * pp/op_bfd.cpp: * pp/samples_container.cpp: kill another char* * pp/outsymbflag.h: reduce fake dependencies with new file, little cleanup * pp/Makefile.in: * pp/demangle_symbol.cpp: * pp/op_merge.cpp: * pp/op_time.cpp: * pp/op_time_options.h: * pp/op_time_options.cpp: * pp/op_to_source.cpp: * pp/op_to_source_options.h: * pp/op_to_source_options.cpp: * pp/opp_symbol.h: * pp/oprofpp.h: * pp/oprofpp.cpp: * pp/oprofpp_options.h: * pp/oprofpp_options.cpp: * pp/oprofpp_util.cpp: Some more refactoring. More work needed... 2002-06-01 John Levon * doc/Makefile.in: fix DOCDIR (from Al Stone) 2002-06-01 John Levon * libutil++/file_manip.h: * libutil++/file_manip.cpp: clarify API * pp/oprofpp.cpp: fix bug 563324 resulting from above 2002-06-01 John Levon * make.common.in: make --with-extra-lib work again * dae/opd_image.h: * dae/opd_image.c: comment typos * doc/srcdoc/Doxyfile: generate PNG not GIF 2002-05-23 Philippe Elie * doc/srcdoc/Doxyfile: * libopt++/popt_options.cpp: * libopt++/popt_options.h: * pp/symbol_container_impl.h: small doxygen tweak. 2002-05-23 Philippe Elie * dae/oprofiled.c: minor bug when backing up samples dir * libopt++/popt_options.h: * libopt++/popt_options.cpp: avoid to force client code to explicitly select the option template specializations. * pp/op_merge.cpp: * pp/op_time.cpp: * pp/op_to_source.pp: * pp/oprofpp.cpp: we no longer need explicit template instantiations for options 2002-05-22 Philippe Elie * pp/oprofpp.cpp: fix a missing SAMPLES_DIR prepend 2002-05-22 John Levon * lib/util/op_file.c: * utils/op_session.c: restore accidentally lost commits : 2002-05-05 Philippe Elie * dae/op_session.c: tweak error message when session already exist. Avoid to op_dump when profiler is not started. 2002-05-05 Philippe Elie * dae/op_session.c: do not create empty session directory and backup oprofileg.log too * dae/opd_util.c: * op_user.h: minor related change 2002-05-22 John Levon * dae/*: complete re-organisation of files * libop/op_config.h: add VMA_OFFSET and MAX_MODULES tunables 2002-05-22 Philippe Elie * gui: * libdb: * libopt++: * libutil: * libutil++: * oprof_report: * pp: all C/c++ source/header file, fix a few doxygen warning, many const type to type const + other minor comestic change. 2002-05-22 John Levon * libopt++/popt_options.cpp: my usual boring shit * libopt++/popt_options.h: document * libutil/op_popt.h: POPT_TABLEEND missing in some popt.h * TODO: update * doc/oprofile.xml: add some to ack.html * libop/op_events_desc.c: fix long-standing typo 2002-05-22 Philippe Elie * configure.in: * Makefile.in: * libopt++/*: new directory, command line options handling * make.common.in: * pp/Makefile.in: * pp/op_merge.cpp: * pp/op_time.cpp: * pp/op_to_source.cpp: * pp/oprofpp.cpp: * pp/oprofpp.h: * pp/oprofpp_util.cpp: use libpopt++ 2002-05-19 Philippe Elie * TODO: update 2002-05-19 John Levon * pp/op_bfd.cpp: fix bug coming from mis-placed strlen() brackets * pp/op_bfd.h: * pp/op_bfd.cpp: kill some more char[]s to avoid silly bugs like the above * README: some minor change 2002-05-18 Philippe Elie * module/compat.h: * module/op_fixmap.c: * module/op_syscalls.c: * module/oprofile.c: * module/oprofile.h: * module/oprofile_nmi.S: fix module up to kernel 2.5.15 * module/compat22.h: small fix for 2.2 2002-05-17 Philippe Elie * module/op_fixmap.c: revert my last change :/. Something is wrong with oprofiel and 2.5.15 but elsewhere 2002-05-17 Philippe Elie * module/op_fixmap.c: fix a long time outstanding bug, we tested bit in the address of x86_capability rather the capability itself. 2002-05-17 Philippe Elie * dae/opd_proc.c: from a typo in opd_put_image_samples first incoming samples for each image was always ignored. As a side effect if opd_open_sample_file() fail the daemon will die with a seg fault. This behavior is in 0.2 release. fix #556918 2002-05-17 John Levon * utils/op_start: typo in detect stale lock file 2002-05-17 Philippe Elie * pp/*: gcc 3.1 compilation. 2002-05-16 Philippe Elie * dae/opd_proc.c: close samples files at cleanup * libdb/db-insert.cpp: if we don't lock the file when creating the root we must ensure than initialization is atomic * pp/op_bfd.cpp: * pp/op_bfd.h: * pp/op_time.cpp: * pp/op_to_source.cpp: * pp/oprofpp.cpp: * pp/oprofpp.h: * pp/oprofpp_util.cpp: * pp/samples_file.cpp: * pp/samples_file.h: move all coherency check between a op_bfd and it's related opp_samples_files outside these class * pp/samples_container.cpp: small modification allowing to privatize op_bfd::ibfd pointer. 2002-05-16 John Levon * libutil/op_lockfile.c: detect and remove stale lock files * utils/op_start: detect stale lock file 2002-05-15 John Levon * pp/Makefile.in: * pp/op_time.cpp: * pp/op_to_source.cpp: * pp/oprofpp.cpp: * pp/samples_container.h: * pp/samples_container.cpp: * pp/sample_container_imp.h: * pp/sample_container_imp.cpp: * pp/symbol_container_imp.h: * pp/symbol_container_imp.cpp: * pp/symbol_functors.h: some more file-refactoring, and some minor changes 2002-05-15 John Levon * pp/oprofpp.cpp: only allow -r with -l * doc/oprofile.1.in: document -r for oprofpp 2002-05-15 William Cohen * pp/oprofpp.cpp: Added "-r" reverse sort option. 2002-05-15 Philippe Elie * libutil++/utility.h: fix a copyright problem, work-around a (probable) gcc 2.91 bug. * pp/op_bfd.cpp: valgrind exposed a delete problem. * pp/op_time.cpp: * pp/op_to_source.cpp: * pp/oprofpp.cpp: * pp/samples_container.cpp: * pp/samples_container.h: * pp/samples_container.cpp: * pp/samples_container.h: change the handling of shared lib, we no longer allow samples_container_t to auto load related samples files belonging to a shared lib but we create at a higher level an explicit list of samples files : fix #555276 * pp/op_to_source.cpp: * pp/sample_container.cpp: * pp/opp_symbol.cpp: demangle symbol only when we output symbol name, not when we store symbol name in internal representation of symbol. 2002-05-14 Cliff Woolley * gui/oprof_start.cpp: allow Qt3 compilation 2002-05-13 Philippe Elie * doc/oprofile.xml: clarify RTC use, fix #555302 * gui/oprof_start_util.cpp: missing closedir(). Fix #555268 Thanks to William Cohen for his precise report. * module/Makefile.in: fix #555304, a non-native compiler can fail to compile oprofile * libutil++/utility.h: class noncopyable * pp/samples_file.h: use it 2002-05-12 Philippe Elie * libop/op_events_desc.c: * libop/op_events_desc.h: * pp/op_bfd.h: * pp/op_bfd.cpp: * pp/op_to_source.cpp: * pp/oprofpp.h: * pp/oprofpp.cpp: * pp/oprofpp_util.cpp: * pp/samples_file.cpp: * pp/samples_file.h: * pp/samplesfile.h: fix some FIXME 2002-05-12 John Levon * dae/oprofiled.c: delete lockfile on SIGTERM * pp/samples_file.h: * pp/samples_file.cpp: minor changes 2002-05-11 Philippe Elie * pp/op_bfd.cpp: * pp/op_bfd.h: ehance op_bfd_symbol ... * pp/oprofpp.cpp: * pp/samples_container.cpp: move handling of image w/o symbol in op_bfd * pp/samples_file.h: ehance comment (John's work) 2002-05-11 Philippe Elie * pp/op_bfd.cpp: * pp/op_bfd.h: * pp/oprofpp.cpp: * pp/oprofpp.h: * pp/samples_files.cpp: minor cleanup 2002-05-10 Philippe Elie * pp/op_bfd.h: * pp/op_bfd.cpp: * pp/opp_symbol.h: * pp/opp_symbol.cpp: * pp/oprofpp.cpp: * pp/samples_container.h: * pp/samples_container.cpp: more typedef for indexed things 2002-05-10 Philippe Elie * pp/*: split oprofpp_util.cpp, oprofpp.h to these .. * pp/samples_file.cpp: new file * pp/samples_file.h: new file * pp/op_bfd.cpp: new file * pp/opbfd.h: new file * pp/*: add a symbol_index_t typedef 2002-05-10 Philippe Elie * doc/srcdoc/Makefile: always clean before building * doc/srcdoc/Doxyfile: ehance file filtering * pp/oprofpp.h: small typo fix 2002-05-10 Philippe Elie * pp/oprofpp.h: * pp/oprofpp.cpp: * pp/oprofpp_util.cpp: * pp/samples_container.cpp: generalize infrastucture for symbol vma/size * pp/op_time.cpp: allow to exclude symbol with op_time -l 2002-05-09 John Levon * doc/xhtml-chunk.xsl: * doc/xhtml-common.xsl: * doc/xhtml.xsl: * doc/Makefile.in: some small improvements * doc/src/doc/Doyxfile: add FIXME * gui/oprof_start.cpp: * libop/op_events_desc.h: * libop/op_events_desc.c: * libutil/filename_match.h: * oprof_report/oprofpp_view.h: * pp/op_time.cpp: * pp/opp_symbol.h: * pp/oprofpp.h: * pp/oprofpp_util.cpp: * pp/samples_container.cpp: * pp/samples_container.h: more doxygen etc. fixes 2002-05-08 Philippe Elie * TODO: update * pp/op_symbol.cpp: better column handling with oprofpp -L 2002-05-08 Philippe Elie * dae/Makefile.in: * gui/Makefile.in: * pp/Makefile.in: * utils/Makefile.in: fix make uninstall 2002-05-08 Philippe Elie * pp/opf_filter.cpp: move to ... * pp/op_to_source.cpp: * pp/opf_container.cpp: move to .. * pp/samples_container.cpp: * pp/opf_filter.h: move to ... * pp/samples_container.h: * pp/Makefile.in: * pp/.cvsignore: update * oprof_report/hotspotview.cpp: * oprof_report/hotspotview.h: * oprof_report/op_view.h: * oprof_report/oprof_report.cpp: * oprof_report/oprof_report.h: * oprof_report/oprof_view.cpp: * oprof_report/oprof_view.h: * pp/op_time.cpp: * pp/opf_container.cpp: * pp/opf_filter.cpp: * pp/opf_filter.h: * pp/opp_symbol.cpp: * pp/opp_symbol.h: * pp/oprofpp.cpp: * pp/oprofpp.h: samples_files_t -> samples_container_t * ui/.cvsignore: update * pp/opf_filter.cpp: move filename_match ... * libutil++/filename_match.cpp: here * libutil++/filename_match.cpp: * libutil++/Makefile.in: * pp/Makefile.in: fix typo that prevent op_to_source to be recompiled 2002-05-08 John Levon * TODO: update * doc/Makefile.in: make clean delete *.html * libdb/db-debug.c: pedantry * libutil/op_fileio.h: * libutil/op_fileio.c: * pp/oprofpp.cpp: remove unused code and change function names 2002-05-08 Philippe Elie * libutil/op_libiberty.h: fix compile error (missing size_t definition) 2002-05-08 John Levon * Makefile.in: missing backslash 2002-05-07 John Levon * : OK I lied. Fix some doxygen warnings, and some char const *a -> const char * a * doc/srcdoc/Makefile: add 2002-05-07 John Levon * : ok, fix the headers properly. Last tedious patch, I promise. * dae/opd_util.h: finally remove ! 2002-05-06 John Levon * : move to new header style, doxygen should use @param blah not @blah: or \param blah * doc/srcdoc/Doxyfile: new file for api docs * scripts/Doxyfile: * scripts/dodoc: remove 2002-05-06 John Levon * configure.in: don't add KINC to BKCFLAGS directly * module/Makefile.in: re-write * TODO: update 2002-05-06 John Levon Massive re-organisation of code + build. Most files have been changed. Some small cosmetic changes. * libutil/: * libutil++/: general-purpose utility libs * libop/: oprofile-specific utility lib * utils/: moved op_start et al to this dir * events/: * util/: removed * libutil++/child_reader.cpp: make sure to set member "pid", not local variable 2002-05-05 Philippe Elie * dae/op_session.c: tweak error message when session already exist. Avoid to op_dump when profiler is not started. 2002-05-05 Philippe Elie * TODO: update: * dae/op_session.c: do not create empty session directory and backup oprofileg.log too * dae/opd_util.c: * op_user.h: minor related change 2002-05-05 John Levon * doc/oprofile.xml: update copyright for 2002 * doc/xsl/xhtml-chunk.xsl: indent=yes 2002-05-05 John Levon * TODO: update * Makefile.in: update my release steps 2002-05-05 John Levon * configure.in: ->0.3cvs * results/: hmm, remove /all/ the files 2002-05-04 John Levon * configure.in: bump to 0.2 2002-05-04 William Cohen * doc/oprofile.xml: add note on power management 2002-05-03 John Levon * doc/Makefile.in: * doc/xsl/xhtml-common.xsl: * doc/xsl/xhtml.xsl: * doc/xsl/xhtml-chunk.xsl: use some xsl to fix some of the problems (not all :() 2002-05-02 John Levon * TODO: update 2002-05-02 John Levon * dae/op_session.c: couple of improvements * dae/opd_util.c: fix warning * doc/oprofile.xml: some docs on op_session * pp/op_time.cpp: introduce -s parameter (should be in all utils) 2002-05-02 John Levon * oprof_report/Makefile.in: disable for release 2002-05-02 John Levon * results/: nuke this in favour of oprofile-tests module 2002-05-02 John Levon * TODO: update * op_user.h: * dae/op_start: * dae/op_stop: * dae/opd_util.h: * dae/opd_util.c: * dae/oprofiled.c: * dae/oprofiled.h: * doc/oprofile.1.in: * doc/oprofile.xml: * gui/oprof_start.h: * gui/oprof_start.cpp: * gui/oprof_start_config.h: * gui/oprof_start_config.cpp: * gui/ui/oprof_start_base.ui: * oprof_report/oprof_report.cpp: * pp/op_merge.cpp: * pp/op_time.cpp: * pp/opf_filter.cpp: * pp/oprofpp.cpp: * pp/oprofpp.h: * pp/oprofpp_util.cpp: remove useless command line options in anticipation of the new spec * libdb/db-manage.c: reset base_memory and fd on close * dae/.cvsignore: * dae/Makefile.in: * dae/op_session.c: * dae/opd_proc.c: * dae/opd_proc.h: * dae/oprofiled.h: * dae/oprofiled.c: use lock file for daemon. Implement named sessions 2002-05-02 Philippe Elie * pp/oprofpp.cpp: * pp/op_time.cpp: * pp/opf_container.cpp: * pp/opf_filter.cpp: * pp/oprofpp.cpp: * pp/oprofpp.h: * pp/oprofpp_util.cpp: fix sect_offset problem. now all class work on vma except samples_file_t which offset vma to samples files offset 2002-05-01 John Levon * dae/opd_proc.c: * libdb/db-manage.c: * libdb/db-test.c: * libdb/db.h: * pp/op_merge.cpp: * pp/op_time.cpp: * pp/oprofpp_util.cpp: allow read-only sample file reading * oprof_report/hotspot_view.cpp: fix warning 2002-05-01 John Levon * dae/op_start: * dae/oprofiled.c: * doc/oprofile.1.in: * doc/oprofile.xml: * gui/oprof_start.cpp: * module/op_nmi.c: * module/op_rtc.c: * module/op_syscalls.c: * module/oprofile.h: * module/oprofile.c: move pid/pgrp filter into userspace only. Remove --ignore-myself 2002-04-30 John Levon * op_user.h: * dae/opd_proc.c: * pp/oprofpp_util.cpp: first part of removing OPD_KERNEL_OFFSET 2002-04-30 John Levon * module/op_nmi.c: also allow user to see 0/ 1/ contents 2002-04-30 William Cohen * module/oprofile.c: Allow non-root examination of /proc/sys/dev/oprofile and initiation of dump. * dae/op_dump: modify message for above 2002-04-30 John Levon * TODO: update * libdb/Makefile: remove from CVS * dae/oprofiled.c: * module/oprofile.c: * module/oprofile.h: use better hash function. Fold unused/full entry case into eviction case for faster common path 2002-04-27 John Levon * configure.in: fix little blooper that shows up when CONFIG_M386 is chosen 2002-04-23 Philippe Elie * pp/oprofpp.cpp: * pp/oprofpp_util.cpp: yet another bug fix for --sort= and counter nr command line specification ... 2002-04-22 Philippe Elie * dae/opd_proc.c: opd_alarm() flush properly samples files * oprof_report/oprof_report.cpp: use the right filename when selecting a shared lib profiled with --separate-samples 2002-04-22 Philippe Elie * pp/op_merge.c: implement merging of the new file format files. 2002-04-21 Philippe Elie * oprof_report/Makefile.in: * oprof_report/oprof_report.cpp: use db 2002-04-20 Philippe Elie * dae/opd_proc.c: OPD_KERNEL_OFFSET thing * pp/oprofpp_util.cpp: 2002-04-20 Philippe Elie * dae/opd_proc.c: minor warning suppression * pp/Makefile.in: * pp/oprofpp.cpp: * pp/op_time.cpp: * pp/opf_container.cpp: * pp/opf_filter.cpp: * pp/oprofpp.h: handle the new db file format, this stuff is not yet extensively tested * pp/op_merge.c: not already updated, exit at run time with an error message 2002-04-19 Philippe Elie * dae/opd_proc.h: * dae/oprofiled.h: enable db samples file format 2002-04-19 Philippe Elie * libdb/*: initial import from oprofile-tests module note than this direcroty have it's own ChangeLog file * dae/Makefile.in: use libdb.a * dae/opd_util.h: use db.h. These change do not yet enable the db samples files format. 2002-04-16 John Levon * TODO: * doc/oprofile.xml: * pp/oprof_convert.c: * util/misc.h: * util/misc.c: * util/file_manip.h: * pp/Makefile.in: kill oprof_convert 2002-04-16 John Levon * pp/opf_container.cpp: * pp/oprofpp.h: * pp/demangle_symbol.h: * pp/demangle_symbol.cpp: * pp/Makefile.in: move demangle_symbol into own file * TODO: update some... 2002-04-11 Philippe Elie * pp/opf_filter.cpp: fix a memory leak uncovered by valgrind 2002-04-09 Philippe Elie * dae/oprofiled.h: move definition of linked list to ... * dae/opd_list.h: this new file * dae/opd_proc.c: iterate on opened sample file rather on image list to sync mmap'ed file 2002-04-07 Philippe Elie * pp/oprofpp.h: * oprof_report/oprof_report.cpp: * pp/op_time.cpp: * pp/opf_container.cpp: * pp/opf_filter.cpp: * pp/oprofpp_util.cpp: * pp/oprofpp.cpp: use samples_file_t as internal implementation of opp_samples_files. Now all samples files read are made through samples_file_t object. 2002-04-04 Philippe Elie * dae/op_start: fix bash1 detection * doc/Makefile.in: fix install target 2002-03-25 John Levon * configure.in: some preliminary stuff for NGPT * TODO: update * doc/Makefile.in: * doc/oprofile.sgml: * doc/oprofile.xml: move to DocBook/XML * doc/oprofile.xml: document Bash 2 dependency * dae/op_start: fix for /bin/bash being bash v1 - untested 2002-04-02 Philippe Elie * pp/oprofpp.cpp: * pp/oprofp_util.cpp: debug and use opp_bfd::symbol_size() 2002-03-30 Philippe Elie * ChangeLog: change my email address 2002-03-22 Philippe Elie * dae/op_start: default buffer size to zero and let module override the default. * module/op_rtc.c: * module/oprofile.h: * op_user.h: * gui/oprof_start.cpp: * gui/oprof_start_config.cpp: * gui/oprof_start_config.h: an another coherency fix, unhopefully this bug fix does not fix the configuration file (see # ) * pp/oprofpp.cpp: for gprof dump do not print events settings * pp/oprofpp.h: * pp/oprofpp_util.cpp: prepare using symbol size 2002-03-21 Philippe Elie * pp/opf_filter.cpp: * pp/oprofpp.cpp: * pp/oprofpp_util.cpp: factorize event settings output * pp/oprofpp.h: ditto + do_list_xxx/do_dump_gprof : static free function rather than member function. 2002-03-21 Philippe Elie * op_user.h: * pp/oprofpp.h: more doxygen comments * dae/opd_kernel.c: * dae/opd_proc.c: * dae/opd_util.c: * dae/oprofiled.c: * gui/oprof_start.cpp: * gui/oprof_start_util.cpp: exit(): use {EXIT_FAILURE|EXIT_SUCCESS} 2002-03-20 Philippe Elie * pp/opf_filter.h: simplify slightly interface of samples_files_t * oprof_report/oprof_report.cpp: * pp/op_time.cpp: * pp/opf_container.cpp: * pp/opf_filter.cpp: * pp/oprofp.cpp: reflect the new interface. * pp/opp_symbol.cpp: ParseOutputOption --> static member of OutputSymbol ... * pp/opp_symbol.h: * util/file_manip.h: * util/string_manip.h: doxygen comments 2002-03-19 Philippe Elie * scripts/Doxyfile: small tweak * op_user.h: * pp/opp_symbol.h: * pp/oprofpp.h: * util/child_reader.h: doxygen comments. 2002-03-19 Philippe Elie * pp/opf_filter.h: * pp/opf_container.cpp: remove delegation {symbol|samples}_container_t -> xxx_impl, no functionnal change * pp/*: start a more serious doxygenization. first step include fixing prototype and a client documentation for opp_bfd * script/Doxyfile: doxygen script for pp/*.h, util/*.h 2002-03-19 John Levon * module/op_fixmap.c: include pagemap.h, so we pick up highmem.h, which is needed with some kernels (missing kmap_pagetable define via pte_offset) 2002-03-18 Philippe Elie * pp/op_time.cpp: * doc/oprofile1.1.in: * doc/oprofile.sgml: allow reverse sort in all case * pp/opp_symbol.h: * pp/opp_symbol.cpp: remove unnecessary cast * oprof_report/oprof_report.cpp: * oprof_report/oprof_report.h: * oprof_report/*_view.*: revert partially 2002-03-17 patch, making again data change notification in two step. 2002-03-17 John Levon * pp/oprofpp_util.cpp: clarify binutils bug workaround 2002-03-17 Philippe Elie * oprof_report/op_view.h: * oprof_report/hostpost_view.cpp: * oprof_report/hostpost_view.h: * oprof_report/oprof_report.cpp: * oprof_report/oprof_report.h: * oprof_report/oprof_view.cpp: * oprof_report/oprof_view.h: simplify virtual interface + minor graphic bug fix 2002-03-16 Philippe Elie * TODO: update * oprof_report/hotspot_view.cpp: new * oprof_report/hotspot_view.h: new HotspotView class * oprof_report/oprof_report.cpp: * oprof_report/oprof_report.h: use HotspotView * oprof_report/Makefile.in: reflect above * pp/op_time.cpp: small tidy 2002-03-15 Philippe Elie * TODO: update * dae/oprofiled.c: fix --version when module is not loaded * pp/opp_symbol.cpp: * pp/opp_symbol.h: avoid to padd the last field, use a positive form for osf_header * pp/oprofpp.h: * pp/oprofpp.cpp: * pp/opf_filter.cpp: * pp/opprofpp_util.cpp: * pp/op_time.cpp: fix --sort option 2002-03-14 Philippe Elie * TODO: update * pp/op_time.cpp: * pp/opf_filter.cpp: * pp/opp_symbol.cpp: * pp/oprofpp_.cpp: * pp/oprofpp.h: * pp/oprofpp_util.cpp: handle -c0,1 and --sort #nr_ctr for all post-profile tools allowing a more precise way to specify on which counters tools must work 2002-03-13 Philippe Elie * pp/oprofpp_util.cpp: get_linenr() better handling of bfd_find_nearest_line. Fix #529622 * pp/opf_container.cpp: simplify symbol_container_impl * pp/opp_symbol.cpp: use ostringstream only when necessary 2002-03-09 John Levon * doc/oprofile.sgml: some laptops have a usable local APIC 2002-03-09 Philippe Elie * oprof_report: new directory, oprofpp/op_time like GUI * oprof_report/op_view.h: base class for view * oprof_report/oprof_report_main.cpp: * oprof_report/oprof_report.h: * oprof_report/oprof_report.cpp: main class * oprof_report/oprofpp_view.h: * oprof_report/oprofpp_view.cpp: oproffp like view * oprof_report/Makefile.in: * oprof_report/ui/oprof_report.base.ui: oprof_report UI * oprof_report/ui/Makefile.in: * Makefile.in: * configure.in: handle oprof_report * ui/Makefile.in: clarify how dependencies work 2002-03-08 John Levon * configure.in: bump to 0.2cvs * TODO: update 2002-03-07 Philippe Elie * pp/opf_container.cpp: handle osf_short_linr_info * pp/opp_symbol.cpp: tweak output output when linenr/filename is not available 2002-03-07 John Levon * util/Makefile.in: remove -pedantic (Phil don't you read comments ? ;) 2002-03-07 John Levon * TODO: update * pp/: use "invalid" not "illegal" 2002-03-06 John Levon * TODO: update 2002-03-06 Philippe Elie * pp/opfropp_util.cpp: more specific error messages * doc/oprofile.sgml: clarify problem about sparse samples files and filesystem. * util/file_manip.h: * util/file_manip.cpp: create_file_list() allow recursive file list creation. * pp/op_time.cpp: add option -p/-P to allow specifying alternate path name where to search for image name * doc/oprofile.1.in: * doc/oprofile.sgml: update option for op_time 2002-03-05 Philippe Elie * pp/oprofpp_util.cpp: remove multiple symbols belonging to the same vma (Fix #526098) Accept also all symbol types, we filter them by name. 2002-03-04 Philippe Elie * util/misc.h: minor comment fix * pp/oprofpp_util.cpp: tweak the last commit 2002-03-04 John Levon * pp/oprofpp_util.cpp: welcome in the local symbols ... 2002-03-03 Philippe Elie * pp/opf_filter.h: * pp/opf_container.cpp: samples_files_t::add() add an hint parameter on what information will needed. * pp/op_time.cpp: * pp/oprofpp.cpp: * pp/opf_filter.cpp: use it * pp/op_time.cpp: when a samples files for one counter does not exist avoid to load it (op_time -l) fix #525237 2002-03-02 Philippe Elie * pp/Makefile.in: add -pedantic to CXXFLAGS * pp/oprofpp.h: replace macro verpbrintf with a function * pp/oprofpp_util.cpp: implement it * pp/opp_symbol.h: * pp/op_time.cpp: fix pedantic warning * pp/opevents.cpp: * op_user.h: op_get_cpu_nr_counters() new * pp/op_time.cpp: * pp/opf_container.cpp: * pp/opf_filter.cpp: * pp/opf_filter.h: * pp/opp_symbol.cpp: * pp/oprofpp.cpp: * pp/oprofpp_util.cpp: remove global var op_nr_counters 2002-03-02 Philippe Elie * module/op_syscalls.c: do not pre-allocate some dname hash map entry for common pathname but pre alloc entry zero to reserve it * pp/op_time.cpp: add image name to the default output format * module/compat22.h: move cacheline_aligned macro to ... * module/op_cache.h: this new file * module/compat.h: use it * module/compat22.h: * module/oprofile.c: replace some __cacheline_aligned by __cacheline_aligned_in_smp 2002-03-01 Philippe Elie * dae/opd_kernel.c: * dae/opd_proc.c: simplify handling of kernel samples * pp/opt_time.cpp: * pp/opp_symbol.cpp: * pp/opp_symbol.h: * pp/oprofpp.cpp: * pp/oprofpp.h: tidy, gives a negative form to header output format * version.h.in: new macro show_version() to output version * doc/oprofile.sgml: document it * dae/oprofiled.c: * events/op_help.c: * pp/op_merge.cpp: * pp/op_time.cpp: * pp/opf_filter.cpp: * pp/oprofpp.cpp: use it 2002-03-01 John Levon * TODO: update * module/oprofile.c: * module/op_syscalls.c: merge note/map lock 2002-02-27 Philippe Elie * TODO: upadte * doc/oprofile.1.in: * doc/oprofile.sgml: * pp/opp_symbol.h: * pp/opp_symbol.cpp: * pp/oprofpp.cpp: use columned output for oprofpp -L, -s * pp/oprofpp.cpp: command-line counter specification was broken by my last patch * pp/opf_filter.cpp: ditto but bug comes from the far past 2002-02-26 Philippe Elie * pp/op_merge.cpp: small tidy * pp/op_time.cpp: * pp/opf_container.cpp: * pp/opf_filter.h: * pp/opf_filter.cpp: * pp/oprofpp.cpp: * pp/oprofpp.h: * pp/oprofpp_util.cpp: remove the nasty global var int ctr; pass it as parameter to each relevant function using it. * module/compat.h: support for 2.5.5. 2.4.18 also tested * pp/opp_symbol.h: * pp/opp_symbol.cpp: new, mainly for implementing --output-format * pp/op_time.cpp: * pp/oprofpp.cpp: use output format stuff * pp/Makefile.in: reflect above change * doc/oprofile.1.in: * doc/oprofile.sgml: document --output-format 2002-02-13 Philippe Elie * TODO: update * module/compat22.h: * module/compat24.h: * module/oprofile_nmi.S: small tidy * module/op_apic.c: * module/op_fixmap.c: * module/op_nmi.c: * module/oprofile.h: avoid memory leak of apic mapping 2002-02-12 Philippe Elie * TODO: update * pp/oprofpp_util.cpp: use stable sort and correct the comparison function on symbol vma * pp/opf_filter.cpp: remove a boring new line in output * module/makefile.in: optimize for 686 but do not use any specific 686 insn. * configure.in: check against CONFIG_PREEMPT 2002-02-10 John Levon * events/op_events_desc.c: remove dead code * module/compat.h: RedHat backported MODULE_LICENSE() * module/op_syscalls.c: * module/op_util.c: remove FIXMEs 2002-02-09 Bob Montgomery * module/op_rtc.c: right actual RTC value back * doc/oprofile.sgml: document that 2002-02-09 John Levon * module/op_init.c: set rtc cpu type directly 2002-02-08 Philippe Elie * TODO: update * module/oprofile_nmi.S: cut and copy from oprofile_nmi24.s * module/oprofile_nmi22.S: remove * module/oprofile_nmi22.S: remove * module/Makefile.in: reflect them * pp/opf_filter.cpp: do not print unit mask for RTC cpu type * doc/oprofile.sgml: document post-profile tools commons options 2002-02-05 Philippe Elie * TODO: update mainly by moving things to 0.1 * pp/opf_filter.h: * pp/opf_container.cpp: small cleanup + minor tweak to get more reliable sort order on filename. 2002-02-05 Philippe Elie * pp/opf_filter.h: declare create_artificial_symbol() * pp/oprofpp_util.cpp: show how elf symbols size could be handled. * pp/oprofpp_util.cpp: add BSF_GLOBAL symbols to symbols of interest. 2002-02-04 John Levon * module/oprofile.c: add [un]lock_sysctl 2002-02-04 John Levon * dae/oprofiled.h: * dae/oprofiled.c: * dae/opd_proc.c: free stuff on shutdown (to clean dmalloc reports) 2002-02-03 John Levon * configure.in: bump to 0.1 * TODO: update 2002-02-02 John Levon * configure.in: bump to 0.0.9 2002-02-02 John Levon * module/op_nmi.c: fix stupid bug spotted by Bob Montgomery 2002-02-01 Philippe Elie * module/compat.h: define REMAP_PAGE_RANGE * module/op_syscalls.c: use it (2.5.3 support) 2002-01-30 Philippe Elie * module/compat.h: * module/op_nmi.c: re-add explicit constant for all MSR_ constants. 2002-01-30 Philippe Elie * configure.in: * doc/oprofile.sgml: * module/compat22.h: remove support for kernel version prior to 2.2.11 * module/op_fixmap.c: * module/compat.h: small cleanup * module/oprofile.c: avoid multi-line literal string * pp/oprofpp_util.cpp: better to get_symbols() ;) 2002-01-29 John Levon * module/op_fixmap.c: remap fake mapping on 2.2 as well when necessary 2002-01-27 Philippe Elie * module/Makefile.in: sorry, -Werror is only usefull for test. * doc/oprofile.1.in: a few words about op_stop * module/compat.h: * module/compat22.h: * module/compat24.h: change pte_page_address definition for 2.2.20 * pp/opf_container.cpp: no warning when creating artificial symbols * pp/oprofpp_tuil.cpp: no warning for image without symbols 2002-01-27 John Levon * gui/oprof_start.cpp: * pp/op_merge.cpp: * pp/op_time.cpp: * pp/opf_container.cpp: std namespace fixes. 2002-01-27 John Levon * pp/op_time.cpp: small hacky output cleanup 2002-01-27 Philippe Elie * TODO: update * dae/opd_proc.c: small cleanup * doc/opf_container.cpp: handle image without symbols * doc/oprofile.1.in: * doc/oprofile.sgml: * doc/op_time.cpp: implement and document --demangle and --show-image-name * pp/oprofpp_util.cpp: add using elf symbols size but disable it 2002-01-26 John Levon * TODO: update * dae/opd_proc.c: tiny clean * doc/oprofile.sgml: spell fix 2002-01-26 Philippe Elie * TODO: update * pp/op_merge.c: remove FIXME * pp/op_time.cpp: minor fix * pp/opf_filter.h: * pp/opf_filter.cpp: * pp/oprofpp.cpp: * pp/opf_container.cpp: Show more clearly than samples_files_t support adding any number of samples files to the underlined container. 2002-01-26 Philippe Elie * pp/oprofpp_util.cpp: allow to load image without symbols * pp/Makefile.in: * pp/op_time: implement -l option that show symbols details. Currently with separate-samples files symbols are showed more than one time. This is a bug rather a feature. * doc/oprofile.1.in: * doc/oprofile.sgml: document op_time -l * dae/opd_proc.c: bug fix from last change 2002-01-25 John Levon * TODO: * dae/opd_proc.c: search maps in reverse order so we prefer newer mappings. 2002-01-25 Philippe Elie * pp/op_merge.cpp: minor fix + comment * pp/op_time.cpp: comment, use samples_file_t * pp/oprofpp.h: * pp/oprofpp_util.cpp: minor change 2002-01-24 John Levon * dae/opd_proc.c: remove stale comment * TODO: update * module/compat.h: * module/compat22.h: * module/compat24.h: fix for pte_page on 2.2.20+ 2002-01-24 Philippe Elie * op_merge.cpp: * oprofpp.h: * oprofpp_util.cpp: code move + cleanup 2002-01-23 Philippe Elie * util/shared_ptr.h: a templatized shared pointer. * pp/op_merge.c: new to merge samples files * pp/Makefile.in: * pp/opf_filter.cpp: * pp/opf_filter.h: * pp/oprofpp.h: * pp/oprofpp_util.cpp: minor change to add op_merge support * doc/Makefile.in: * doc/oprofile.1.in: * doc/oprofle.smgl: document op_merge 2002-01-22 John Levon * module/Makefile.in: can only depmod if we run that kernel * module/op_fixmap.c: deal with no APIC config for 2.4.10+ 2002-01-22 John Levon * module/Makefile.in: * module/oprofile.h: * module/oprofile.c: * module/op_x86.c: * module/op_apic.c: * module/op_fixmap.c: split op_x86.c. Various changes to only enable the APIC if it's not, and to remap / map the APIC as is necessary. * module/apic_up_compat.h: * module/compat.h: * module/compat22.h: clean up V_*() macros * module/op_init.c: remove FORCE_RTC 2002-01-22 Philippe Elie * TODO: update * dae/opd_proc.c: use remove not unlink * gui/oprof_start.cpp: use remove not system("rm xxx") * doc/Makefile.in: slightly improvment * doc/oprofile.1.in: move --help --version to a common section 2002-01-21 John Levon * module/compat22.h: fix missing cli() 2002-01-21 John Levon * module/oprofile.c: * module/compat22.h: * module/compat24.h: fix NMI wake-up for 2.2 SMP * module/op_dcache.h: add KERN_ERR * module/op_x86.c: cleanup a little 2002-01-21 Philippe Elie * TODO: update * doc/oprofile.1.in: * doc/oprofile.sgml: minor change * module/Makefile.in: auto-dependencies for compat.c * module/compat.c: * module/compat22.h: FIXME remove for vmalloc_32 2002-01-20 Philippe Elie * gui/oprof_start.cpp: fix configuration saving when switching of cpu_type. * module/Makefile.in: * module/compat.c: minor change * compat.h: add minor macro * oprofile.c: use minor instead MINOR (2.5.2 support) * op_x86.c: check SPIV (missing from a previous patch) 2002-01-20 John Levon * TODO: punt some things to next release * dae/opd_proc.c: fix printf of null 2002-01-20 John Levon * TODO: update * module/oprofile.c: add comment * module/compat22.h: * module/compat24.h: * module/op_syscalls.c: fix locking for out_mmap 2002-01-20 Philippe Elie * module/op_x86.c: check MSR + SPIV for enabling APIC * module/compat.c: don't attempt to get root * module/compat.h: NEED_FIXMAP fixes 2002-01-18 Philippe Elie * TODO: update * module/compat.h: * module/compat24.h: move things needed for 2.2/2.4 in compat.h 2002-01-18 John Levon * module/compat22.h: never wake up from NMI on 2.2 SMP for now :( 2002-01-18 John Levon * module/compat.h: * module/compat22.h: * module/compat24.h: s/VATLEAST/V_AT_LEAST/ * module/oprofile.c: remove dead code 2002-01-17 John Levon * module/compat.c: don't need to re-take BKL for d_path on 2.2 2002-01-17 John Levon * module/compat22.h: * module/compat24.h: * module/op_syscalls.c: we mustn't take the mmap sem under 2.2 2002-01-17 John Levon * module/compat22.h: * module/compat24.h: * module/op_syscalls.c: whoops, handy to lock the BKL when it is necessary. * dae/oprofiled.c: fix warning 2002-01-17 John Levon * op_user.h: * dae/op_start: * gui/oprof_start_config.h: * module/oprofile.h: bump note size and watermark, I was getting problems on my dual SMP box in kernel compiles 2002-01-17 John Levon * module/Makefile.in: * module/oprofile_nmi.S: * module/oprofile_nmi22.S: * module/oprofile_nmi24.S: split assembly for 2.2/4 * module/compat.h: * module/compat22.h: * module/compat24.h: s/AFTER/ATLEAST/ 2002-01-17 John Levon * module/compat24.h: define to have ->owner 2002-01-17 Philippe Elie * gui/oprof_start.h: * gui/oprof_start_config.h: * gui/oprof_start.cpp: validate the RTC max count 2002-01-17 John Levon * TODO: update * oprofile.c: * module/compat24.h: * module/compat22.h: fix compile, nmi wake up check * module/op_rtc.c: user/kernel profiling feature 2002-01-17 John Levon * doc/oprofile.sgml: clarification * module/compat22.h: * module/compat24.h: * module/oprofile.c: ->owner fixes 2002-01-17 John Levon * module/oprofile.h: clean up * module/compat.h: * module/compat22.h: * module/compat24.h: split header files up for readability 2002-01-17 Philippe Elie * TODO: update * doc/oprofile.sgml: speach about assembler * module/compat.h: small tweak for 2.2, no impact on 2.4 2002-01-16 John Levon * configure.in: look for rtc_lock * module/compat.h: use rtc_lock if there 2002-01-16 Philippe Elie * module/compat.h: * module/apic_up_compat.h: cleanup + allow compile !CONFIG_X86_LOCAL_APIC on 2.4/2.5. (only compile tested) 2002-01-15 Philippe Elie * events/op_events.c: avoid gui crash: event name must contain only one word. If you test RTC patch destroy ~/.oprofile/oprof_start_event#0 2002-01-15 John Levon * module/compat.h: * module/compat.c: * module/op_rtc.c: 2.2 modversions fix 2002-01-15 John Levon * TODO: update * module/compat.h: * module/compat.c: * module/op_rtc.c: fix 2.2 compile 2002-01-15 John Levon * module/Makefile.in: whoops, forgot to commit this 2002-01-15 John Levon * gui/oprof_start.cpp: some improvements for RTC 2002-01-15 John Levon * dae/op_stop: fix "op_start && op_stop" bug using multiple dump_stop writes. 2002-01-14 Dave Jones * pp/op_time.cpp: fix for printing (NaN%) in the zero sample case. 2002-01-14 John Levon * module/op_rtc.c: remove unneeded check 2002-01-14 John Levon * dae/op_start: fix for PMC case 2002-01-14 John Levon * TODO: update * dae/op_start: take --rtc-value * dae/oprofiled.c: set headers sensibly for RTC * doc/oprofile.1.in: update * doc/oprofile.sgml: RTC update * events/op_events_descr.c: * events/op_events.c: good name for RTC event * gui/oprof_start.cpp: basic support for RTC * module/op_rtc.c: implement and use rtc_value 2002-01-14 John Levon * TODO: update * dae/op_start: load module at start. Handle CPU_RTC. Avoid sysctl for now on RTC case. * dae/oprofiled.c: only read sysctls if PMC. Needs clean. * events/op_events.c: add RTC event. * events/op_events_desc.c: get CPU type from module. * module/op_init.c: detect CPU_RTC. * module/op_nmi.c: setup code moved from op_init.c * module/op_rtc.c: enable interrupt, fixed at 128 for now. * module/op_x86.c: add Athlon to needs_apic_setup checks * module/oprofile.c: use correct interrupt handler based on CPU type 2002-01-14 John Levon * TODO: update * op_user.h: add CPU_RTC * op_init.c: add FIXMEs * op_nmi.c: * op_rtc.c: * oprofile.h: * oprofile.c: implement abstract interrupt handler code 2002-01-14 John Levon * gui/oprof_start_config.cpp: fix vmlinux/system.map defaults 2002-01-13 Philippe Elie * configure.in: reject unsupported kernel version * module/apic_up_compat.h: * module/compat.h: small cleanup * module/op_x86.c: ditto, always put apic memory page as non cachable 2002-01-12 John Levon * gui/oprof_start_util.h: * gui/oprof_start_util.cpp: implement whitelist for arguments to op_start * TODO: update 2002-01-13 Philippe Elie * module/compat.h: * module/apic_up_compat.h: * module/op_x86.c: allow to run oprofile when !CONFIG_X86_LOCAL_APIC on 2.2.x kernel 2002-01-12 Philippe Elie * module/compat.h: fix some FIXME * module/op_x86.c: do not hang SMP kernel UP box with 2.2.x 2002-01-11 Philippe Elie * module/compat.h: support for UP from 2.2.0, for SMP from 2.2.8. It is worthwhile to try more support. !CONFIG_X86_LOCAL_APIC not yet supported. 2002-01-11 John Levon * TODO: update * dae/opd_proc.c: * doc/oprofile.sgml: * pp/op_time.cpp: add FIXMEs 2002-01-11 John Levon * module/oprofile.c: never return 0 unless we're really closing down 2002-01-11 John Levon * TODO: update * gui/Makefile.in: * gui/oprof_start.cpp: use absolute paths 2002-01-11 John Levon * doc/oprofile.sgml: add note about --with-linux 2002-01-11 John Levon * Rules.make.in: * gui/Makefile.in: * gui/oprof_start_config.h: * gui/oprof_start_config.cpp: remove kernel headers from userland ! 2002-01-11 John Levon * configure.in: remove dead checks. comment out APIC check, hide grep output * module/Makefile.in: add compat.c * apic_up_compat.h: UP 2.2 missing defines. Need to investigate fixmap situation. * compat.c: move 2.2 dcache code here * compat.h: dcache compat support. check for whether we should check for mptable. Don't do fixmap hack on 2.2 * op_dcache.h: shared dcache inline functions * op_syscalls.c: clean up dcache code for 2.2/2.4 * op_x86.c: update apic_need_setup for 2.2 and the possibility of not enabling APIC support on 2.4 too. Needs checking ! Also don't do mptable check on 2.2 * oprofile.h: add missing include guard ;) 2002-01-11 John Levon * module/compat.h: minor fixes 2002-01-11 Philippe Elie * module/compat.h: many change, can be used down to 2.2.8 * module/oprofile.h: move #ifdef on kernel version to compat.h * module/op_util.c: * module/op_syscalls.c: minor change * configure.in: comment unnecessary stuf. * module/Makefile.in: missing include path for oprofile.s 2002-01-10 John Levon * Makefile.in: update checklist for dist * module/oprofile.h: add apparently needed version.h 2002-01-10 John Levon * configure.in: fix accidental trashing of BKCFLAGS * module/op_util.c: include right header * module/compat.h: use correct smp_call_function 2002-01-10 Philippe Elie * module/compat.h: new file include backward compatibility stuff 2002-01-09 John Levon * doc/oprofile.sgml: update infodragon's email address * configure.in: bump to 0.0.9cvs 2002-01-08 John Levon * TODO: update * configure.in: fix case when X isn't installed. Bump to 0.0.8 2002-01-07 John Levon * util/Makefile.in: "fix" last g++ 3.0 problem with libiberty.h and string.h clashing prototypes by disabling -pedantic for this directory 2002-01-07 John Levon * pp/opf_container.cpp: * pp/opf_filter.h: * pp/oprofpp.cpp: * pp/oprofpp.h: * pp/oprofpp_util.cpp: * util/file_manip.h: * util/file_manip.cpp: * util/string_manip.h: fix most g++ 3.0 problems 2002-01-07 John Levon * TODO: update 2002-01-05 Philippe Elie * doc/oprofile.sgml: Avoid to use -- inside sgml comment 2002-01-05 John Levon * dae/op_start: * dae/op_stop: (very) hacky loop to wait for daemon start and stop 2002-01-05 John Levon * module/oprofile.c: revert my broken stop fix, and fix the old (new) one 2002-01-05 John Levon * dae/opd_kernel.c: * dae/opd_proc.c: * dae/opd_proc.h: * dae/opd_util.c: * dae/oprofiled.c: * dae/oprofiled.h: further minor cleanups 2002-01-04 John Levon * module/oprofile.c: change last change to have an explicit check in the sysctl dump, rather than generalised code. 2002-01-04 Philippe Elie * module/oprofile.c: do not re-enable counter during shutdown * dae/Makefile.in: fix opd_kernel.c dependancy 2002-01-04 John Levon * dae/Makefile.in: * dae/opd_proc.c: * dae/opd_kernel.c: move kernel/module stuff into new file. Some minor changes. 2002-01-04 John Levon * dae/oprofiled.c: remove extra dump 2002-01-04 John Levon * dae/opd_proc.c: minor crap 2002-01-04 John Levon * TODO: update * dae/oprofiled.c: * dae/oprofiled.h: * dae/opd_proc.c: print stats on shutdown too * module/oprofile.c: additional check against daemon hanging on shutdown :( 2002-01-04 John Levon * dae/op_stop: * dae/oprofiled.c: * doc/oprofile.sgml: * module/oprofile.h: * module/oprofile.c: implement new clean shutdown via sysctl dump_stop 2002-01-04 Philippe Elie * module/oprofile.c: add a warning when note buff overflow. 2002-01-04 John Levon * module/oprofile.c: pin note at the end on overflow 2002-01-03 Philippe Elie * dae/opd_proc.c: Apologies: stupid bug. Never forget than LRU list of samples files must not contain already unmaped files * module/oprofile.c: another silly bug, detected cpu was overwritten... 2002-01-03 John Levon * doc/oprofile.sgml: some fixes, comments 2002-01-03 Philippe Elie * doc/oprofile.sgml: improve documentation, corrected by John Levon 2002-01-03 John Levon * gui/oprof_start.h: * gui/oprof_start.cpp: * gui/ui/oprof_start.base.ui: remove the config buttons and save on a hide from the WM 2002-01-03 John Levon * module/oprofile.c: make sure note_pos never goes past the buffer :P 2002-01-03 John Levon * dae/opd_util.c: allow EAGAINs through as well 2002-01-02 Philippe Elie * pp/opf_container.cpp: * pp/opf_filter.cpp: minor change 2002-01-02 John Levon * doc/oprofile.sgml: various docs improvements 2002-01-02 John Levon * dae/oprofiled.c: better enable the actual profiling again :P 2002-01-02 John Levon * config.h.in: remove this again from CVS. 2002-01-02 John Levon * dae/op_stop: send SIGUSR1 to stop profiler * dae/opd_proc.c: reformat a little * dae/opd_util.h: * dae/opd_util.c: change opd_read_device semantics * dae/oprofiled.c: clean shutdown from SIGUSR1 * module/oprofile.c: handle non-blocking reads * pp/opf_filter.h: * pp/opf_filter.cpp: slight cleanups * TODO: update 2002-01-01 John Levon * oprofile.sgml: clarify that -g is not necessary for basic profiling (reported by Jeff Epler ) See ChangeLog-2001 for earlier changelogs. oprofile-0.9.9/doc/0000775000076400007640000000000012175511560011133 500000000000000oprofile-0.9.9/doc/op-check-perfevents.1.in0000664000076400007640000000134312175510134015407 00000000000000.TH OP-CHECK-PERFEVENTS 1 "@DATE@" "oprofile @VERSION@" .UC 4 .SH NAME op-check-perfevents \- checks for kernel perf pmu support .SH SYNOPSIS .br .B op-check-perfevents [ .I options ] .SH DESCRIPTION The small helper program .B op-check-perfevents determines whether the kernel supports the perf interface and returns a zero exit status if the perf pmu support is available. .SH OPTIONS .TP .BI "--help / -h" Show usage help message. .br .TP .BI "--verbose / -v" Print string describing the error number of perf_event_open syscall .br .SH ENVIRONMENT No special environment variables are recognised by op-check-perfevents. .SH VERSION .TP This man page is current for @PACKAGE@-@VERSION@. .SH SEE ALSO .BR @OP_DOCDIR@, .BR oprofile(1) oprofile-0.9.9/doc/operf.1.in0000664000076400007640000001471712175510134012663 00000000000000.\" Manpage for operf .\" Author: Breno Leitao .\" Modifications: Maynard Johnson .TH OPERF 1 "@DATE@" "oprofile @VERSION@" .SH NAME operf \- Performance profiler tool for Linux .SH SYNOPSIS .B operf [ .I options ] [ --system-wide | --pid | [ command [ args ] ] ] .SH DESCRIPTION Operf is an OProfile tool that can be used in place of opcontrol for profiling. Operf uses the Linux Performance Events Subsystem, and hence, does not require the use of the opcontrol daemon -- in fact, operf and opcontrol usage are mutually exclusive. .P By default, operf uses /oprofile_data as the session-dir and stores profiling data there. You can change this by way of the .I --session-dir option. .P The usual post-profiling analysis tools such as .BI opreport(1) and .BI opannotate(1) can be used to generate profile reports. The post-processing analysis tools will search for samples in .I /oprofile_data first. If that directory does not exist, the post-processing tools use the standard session-dir of /var/lib/oprofile. .P Statistics, such as total samples received and lost samples, are written to the operf.log file that can be found in the /samples directory. .br .SH OPTIONS .TP .BI command [args] The command or application to be profiled. .I args are the input arguments that the command or application requires. One (and only one) of either .I command , .I --pid or .I --system-wide is required. .br .TP .BI "--pid / -p " PID This option enables operf to profile a running application. .I PID should be the process ID of the process you wish to profile. When finished profiling (e.g., when the profiled process ends), press Ctrl-c to stop operf. If you run .BI operf .BI --pid as a background job (i.e., with the &), you .B must stop it in a controlled manner in order for it to process the profile data it has collected. Use .BI kill .BI -SIGINT .BI for this purpose. .br .TP .BI "--system-wide / -s" This option is for performing a system-wide profile. You must have root authority to run operf in this mode. When finished profiling, Ctrl-c to stop operf. If you run .BI operf .BI --system-wide as a background job (i.e., with the &), you .B must stop it in a controlled manner in order for it to process the profile data it has collected. Use .BI kill .BI -SIGINT .BI for this purpose. It is recommended that when running operf with this option, the user's current working directory should be /root or a subdirectory of /root to avoid storing sample data files in locations accessible by regular users. .br .TP .BI "--vmlinux / k " vmlinux_path A vmlinux file that matches the running kernel that has symbol and/or debuginfo. Kernel samples will be attributed to this binary, allowing post-processing tools (like opreport) to attribute samples to the appropriate kernel symbols. .TP .BI "--events / -e " event1[,event2[,...]] This option is for passing a comma-separated list of event specifications for profiling. Each event spec is of the form: .br .I " name:count[:unitmask[:kernel[:user]]]" .br You can specify unit mask values using either a numerical value (hex values .I must begin with "0x") or a symbolic name (if the .I name= field is shown in the .B ophelp output). For some named unit masks, the hex value is not unique; thus, OProfile tools enforce specifying such unit masks value by name. .P .RS Event names for some IBM PowerPC systems include a .I _GRP (group number) suffix. You can pass either the full event name or the base event name (i.e., without the suffix) to .B operf. If the base event name is passed, .B operf will automatically choose an appropriate group number suffix for the event; thus, OProfile post-processing tools will always show real event names that include the group number suffix. .P When no event specification is given, the default event for the running processor type will be used for profiling. Use .BI ophelp to list the available events for your processor type. .RE .br .TP .BI "--callgraph / -g" This option enables the callgraph to be saved during profiling. NOTE: The full callchain is recorded, so there is no depth limit. .br .TP .BI "--separate-thread / -t" This option categorizes samples by thread group ID (tgid) and thread ID (tid). The '--separate-thread' option is useful for seeing per-thread samples in multi-threaded applications. When used in conjunction with the '--system-wide' option, the '--separate-thread' option is also useful for seeing per-process (i.e., per-thread group) samples for the case where multiple processes are executing the same program during a profiling run. .br .TP .BI "--separate-cpu / -c" This option categorizes samples by cpu. .br .TP .BI "--session-dir / -d " path This option specifies the session path to hold the sample data. If not specified, the data is saved in the .I oprofile_data directory on the current path. .br .TP .BI "--lazy-conversion / -l" Use this option to reduce the overhead of .BI operf during profiling. Normally, profile data received from the kernel is converted to OProfile format during profiling time. This is typically not an issue when profiling a single application. But when using the .I --system-wide option, this on-the-fly conversion process can cause noticeable overhead, particularly on busy multi-processor systems. The .I --lazy-conversion option directs .BI operf to wait until profiling is completed to do the conversion of profile data. .br .TP .BI "--append / -a" By default, .I operf moves old profile data from /samples/current to /samples/previous. If a 'previous' profile already existed, it will be replaced. If the .I --append option is passed, old profile data is left in place and new profile data will be added to it, and the 'previous' profile (if one existed) will remain untouched. To access the 'previous' profile, simply add a session specification to the normal invocation of oprofile post-processing tools. For example: .br .BI " opreport" .BI session:previous .br .TP .BI "--verbose / -V " level A comma-separated list of debugging control values, used to increase the verbosity of the output. Valid values are: debug, record, convert, misc, sfile, arcs, or the special value, 'all'. .br .TP .BI "--version / -v" Show operf version. .br .TP .BI "--help / -h" Display brief usage message. .br .TP .BI "--usage / -u" Display brief usage message. .br .SH EXAMPLE $ operf make .SH VERSION This man page is current for @PACKAGE@-@VERSION@. .SH SEE ALSO opreport(1), opannotate(1). oprofile-0.9.9/doc/xsl/0000775000076400007640000000000012175511560011741 500000000000000oprofile-0.9.9/doc/xsl/catalog-1.xml.in0000664000076400007640000000121412175510134014552 00000000000000 @CAT_ENTRY_START@ @CAT_ENTRY_END@ oprofile-0.9.9/doc/xsl/xhtml-common.xsl0000664000076400007640000000345412175510134015035 00000000000000
        
          
        
      
        
      
oprofile-0.9.9/doc/xsl/xhtml.xsl0000664000076400007640000000074612175510134013550 00000000000000 oprofile-0.9.9/doc/xsl/xhtml-chunk.xsl0000664000076400007640000000342712175510134014655 00000000000000 Error is not a chunk! -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd oprofile-0.9.9/doc/opcontrol.1.in0000664000076400007640000001315112175510134013556 00000000000000.TH OPCONTROL 1 "@DATE@" "oprofile @VERSION@" .UC 4 .SH NAME opcontrol \- control OProfile profiling .SH SYNOPSIS .br .B opcontrol [ .I options ] .SH DESCRIPTION .B opcontrol can be used to start profiling, end a profiling session, dump profile data, and set up the profiling parameters. .SH OPTIONS .TP .BI "--help / -?" Show help message. .br .TP .BI "--version / -v" Show version. .br .TP .BI "--list-events / -l" Shows the monitorable events. .br .TP .BI "--init" Load the OProfile module if required and make the OProfile driver interface available. .br .TP .BI "--setup" Followed by list options for profiling setup. Store setup in ~root/.oprofile/daemonrc. Optional. .br .TP .BI "--status" Show configuration information. .br .TP .BI "--start-daemon" Start the oprofile daemon without starting profiling. .br .TP .BI "--start / -s" Start data collection with either arguments provided by --setup or with information saved in ~root/.oprofile/daemonrc. .br .TP .BI "--dump / -d" Force a flush of the collected profiling data to the daemon. .br .TP .BI "--stop / -t" Stop data collection. .br .TP .BI "--shutdown / -h" Stop data collection and kill the daemon. .br .TP .BI "--reset" Clear out data from current session, but leaves saved sessions. .br .TP .BI "--save="sessionname Save data from current session to sessionname. .br .TP .BI "--deinit" Shut down daemon. Unload the oprofile module and oprofilefs. .br .TP .BI "--session-dir="dir_path Use sample database out of directory dir_path instead of the default location (/var/lib/oprofile). .br .TP .BI "--buffer-size="num Set kernel buffer to num samples. The buffer watershed needs to be tweaked when changing this value. Rules: A non-zero value goes into effect after a '--shutdown/start' sequence. A value of zero sets this parameter back to default value, but does not go into effect until after '--deinit/init' sequence. .br .TP .BI "--buffer-watershed="num Set kernel buffer watershed to num samples. When buffer-size - buffer-watershed free entries remain in the kernel buffer, data will be flushed to the daemon. Most useful values are in the range [0.25 - 0.5] * buffer-size. Same rules as defined for buffer-size. .br .TP .BI "--cpu-buffer-size="num Set kernel per-cpu buffer to num samples. If you profile at high rate it can help to increase this if the log file show excessive count of sample lost cpu buffer overflow. Same rules as defined for buffer-size. .br .TP .BI "--event / -e "[event|"default"] Specify an event to measure for the hardware performance counters, or "default" for the default event. The event is of the form "CPU_CLK_UNHALTED:30000:0:1:1" where the numeric values are count, unit mask, kernel-space counting, user-space counting, respectively. Note that this over-rides all previous events selected; if you want to profile with two or more events simultaneously, you must specify them on the same opcontrol invocation. You can specify unit mask values using either a numerical value (hex values .I must begin with "0x") or a symbolic name (if the .I name= field is shown in the .B ophelp output). For some named unit masks, the hex value is not unique; thus, OProfile tools enforce specifying such unit masks value by name. .br .TP .BI "--separate / -p "[none,lib,kernel,thread,cpu,all] Separate samples based on the given separator. 'lib' separates dynamically linked library samples per application. 'kernel' separates kernel and kernel module samples per application; 'kernel' implies 'library'. 'thread' gives separation for each thread and task. 'cpu' separates for each CPU. 'all' implies all of the above options and 'none' turns off separation. .br .TP .BI "--callgraph / -c "[#depth] Enable callgraph sample collection with a maximum depth. Use 0 to disable callgraph profiling. This option is available on x86 using a 2.6+ kernel with callgraph support enabled. It is also available on PowerPC using a 2.6.17+ kernel. .br .TP .BI "--image / -i "[name,name...|"all"] Only profile the given absolute paths to binaries, or "all" to profile everything (the default). .br .TP .BI "--vmlinux="file vmlinux kernel image. .br .TP .BI "--no-vmlinux" Use this when you don't have a kernel vmlinux file, and you don't want to profile the kernel. .br .TP .BI "--verbose / -V "[options] Be verbose in the daemon log. This has a high overhead. .br .TP .BI "--kernel-range="start,end Set kernel range vma address in hexadecimal. .SH OPTIONS (specific to Xen) .TP .BI "--xen="file Xen image .br .TP .BI "--active-domains=" List of domain ids participating in a multi-domain profiling session. If more than one domain is specified in they should be separated using commas. This option can only be used in domain 0 which is the only domain that can coordinate a multi-domain profiling session. Including domain 0 in the list of active domains is optional. (e.g. --active-domains=2,5,6 and --active-domains=0,2,5,6 are equivalent) .br .SH OPTIONS (specific to System z) .TP .BI "--s390hwsampbufsize="num Number of 2MB areas used per CPU for storing sample data. The best size for the sample memory depends on the particular system and the workload to be measured. Providing the sampler with too little memory results in lost samples. Reserving too much system memory for the sampler impacts the overall performance and, hence, also the workload to be measured. .br .SH ENVIRONMENT No special environment variables are recognised by opcontrol. .SH FILES .TP .I /root/.oprofile/daemonrc Configuration file for opcontrol .TP .I /var/lib/oprofile/samples/ The location of the generated sample files. .SH VERSION .TP This man page is current for @PACKAGE@-@VERSION@. .SH SEE ALSO .BR @OP_DOCDIR@, .BR oprofile(1) oprofile-0.9.9/doc/op-jit-devel.html0000664000076400007640000005556112175510312014246 00000000000000 OProfile JIT agent developer guide

OProfile JIT agent developer guide

Maynard Johnson


Chapter 1. Developing a new JIT agent

OProfile includes a header file and library that are intended to be used by developers who wish to extend OProfile's JIT support to other non-supported virtual machines. This developer guide describes these development files and how to use them.

1. Overview

OProfile already includes some implementations that use the JIT support, e.g., the Java Virtual Machine Toolkit Interface (JVMTI) library, libjvmti_oprofile.so. In developing a new implementation, you will likely follow a similar (if not identical) procedure as was used in developing the JVMTI library. Following are the high level steps to follow:

  1. Ensure your virtual machine provides an API that, at minimum, can provide the following information about dynamically compiled code:
    • Notification when compilation occurs
    • Name of the symbol (i.e., function or class/method, etc.)
    • Address in anonymous memory where the compiled code was loaded
    • Length of the compiled code segment
  2. Write an agent library that communicates with your VM to obtain compiled code notifications. Invoke the required functions from opagent.h (Section 2, “Implementing JIT support for a new virtual machine”) and link your library with libopagent.so (installed at <oprofile_install_dir>/lib/oprofile).

2. Implementing JIT support for a new virtual machine

The JIT support API for OProfile is defined in <oprofile-install-dir>/include/opagent.h. Some parts of the API are mandatory for an agent library to use; other parts are optional. The mandatory functions are shown below.

op_agent_t op_open_agent(void);

void op_close_agent(op_agent_t hdl);

int op_write_native_code(op_agent_t hdl, char const * symbol_name,
                         uint64_t vma, const void * code,
                         const unsigned int code_size);

To implement this part of your library, you must perform the following steps:

  1. Implement a function to set up initial communication with the VM. Once communication to the VM is established, your agent library should call op_op_agent() and cache the returned op_agent_t handle for use in future calls.
  2. Perform any necessary steps to register with the VM to be notified of compiled code load events. Registration must include a callback function you will implement in the library to handle the compiled code load events.
  3. The callback function mentioned above must obtain all required information from the VM to pass to libopagent via op_write_native_code().
  4. When disconnecting from the VM, your library should call op_agent_close().

Use of the functions below are optional, depending on the kinds of information your VM can provide to your agent library. See the JVMTI agent library for an example of how to use these functions.

int op_unload_native_code(op_agent_t hdl, uint64_t vma);

int op_write_debug_line_info(op_agent_t hdl, void const * code,
                             size_t nr_entry,
                             struct debug_line_info const * compile_map);

Note

While the libopagent functions are thread-safe, you should not use them in signal handlers.

Chapter 2. The JIT support API

This chapter describes the JIT support API. See opagent.h for more details.

1. op_open_agent

Initializes the agent library.
#include <opagent.h>
op_agent_t op_open_agent(); 
void;
 

Description

This function must be called by agents before any other function. Creates and opens a JIT dump file in /var/lib/oprofile/jitdump using the naming convention <process_id>.dump.

Parameters

None

Return value

Returns a valid op_agent_t handle or NULL. If NULL is returned, errno is set to indicate the nature of the error. For a list of possible errno values, see the man pages for:

stat, creat, gettimeofday, fdopen, fwrite

2. op_close_agent

Uninitialize the agent library.
#include <opagent.h>
int op_close_agent(hdl); 
op_agent_t hdl;
 

Description

Frees all resources and closes open file handles.

Parameters

hdl : Handle returned from an earlier call to op_open_agent()

Return value

Returns 0 on success; -1 otherwise. If -1 is returned, errno is set to indicate the nature of the error. errno is set to EINVAL if an invalid op_agent_t handle is passed. For a list of other possible errno values, see the man pages for:

gettimeofday, fwrite

3. op_write_native_code

Write information about compiled code to a JIT dump file.
#include <opagent.h>
int op_write_native_code(hdl,  
 symbol_name,  
 vma,  
 code,  
 code_size); 
op_agent_thdl;
char const *symbol_name;
uint64_tvma;
void const *code;
const unsigned intcode_size;
 

Description

Signal the dynamic generation of native code from a virtual machine. Writes a JIT dump record to the open JIT dump file using the passed information.

Parameters

hdl : Handle returned from an earlier call to op_open_agent()

symbol_name : The name of the symbol being dynamically compiled. This name can (and should) contain all necessary information to disambiguate it from symbols of the same name; e.g., class, method signature.

vma : Virtual memory address of the executable code

code : Pointer to the location of the compiled code. Theoretically, this may be a different location from that given by the vma argument. For some JIT compilers, obtaining the code may be impractical. For this (or any other) reason, the agent can choose to pass NULL for this paraemter. If NULL is passed, no code will be copied into the JIT dump file.

code_size : Size of the compiled code

Return value

Returns 0 on success; -1 otherwise. If -1 is returned, errno is set to indicate the nature of the error. errno is set to EINVAL if an invalid op_agent_t handle is passed. For a list of other possible errno values, see the man pages for:

gettimeofday, fwrite

4. op_write_debug_line_info

Write debug information about compiled code to a JIT dump file.
#include <opagent.h>
int op_write_debug_line_info(hdl,  
 code,  
 nr_entry,  
 compile_map); 
op_agent_thdl;
void const *code;
size_tnr_entry;
struct debug_line_info const *compile_map;
 

Description

Add debug line information to a piece of code. An op_write_native_code() with the same code pointer should have occurred before this call. It's not necessary to provide one lineno information entry per machine instruction; the array can contain hole.

Parameters

hdl : Handle returned from an earlier call to op_open_agent()

code : Pointer to the location of the code with debug info

nr_entry : Number of entries in compile_map

compile_map : Array of struct debug_line_info. See the JVMTI agent library implementation for an example of what information should be retrieved from a VM to fill out this data structure.

Return value

Returns 0 on success; -1 otherwise. If -1 is returned, errno is set to indicate the nature of the error. errno is set to EINVAL if an invalid op_agent_t handle is passed. For a list of other possible errno values, see the man pages for:

gettimeofday, ftell, fwrite

5. op_unload_native_code

Write information to the JIT dump file about invalidated compiled code.
#include <opagent.h>
int op_unload_native_code(hdl,  
 vma); 
op_agent_thdl;
uint64_tvma;
 

Description

Signal the invalidation of native code from a virtual machine.

Parameters

hdl : Handle returned from an earlier call to op_open_agent()

vma : Virtual memory address of the compiled code being unloaded. An op_write_native_code() with the same vma should have occurred before this call.

Return value

Returns 0 on success; -1 otherwise. If -1 is returned, errno is set to indicate the nature of the error. errno is set to EINVAL if an invalid op_agent_t handle is passed. For a list of other possible errno values, see the man pages for:

gettimeofday, fwrite
oprofile-0.9.9/doc/oprofile.xml0000664000076400007640000050104012175510134013410 00000000000000 OProfile manual John Levon
levon@movementarian.org
2000-2004 Victoria University of Manchester, John Levon and others
Introduction This manual applies to OProfile version . OProfile is a set of performance monitoring tools for Linux 2.6 and higher systems, available on a number of architectures. OProfile provides the following features: Profiler Post-processing tools for analyzing profile data Event counter OProfile is capable of monitoring native hardware events occurring in all parts of a running system, from the kernel (including modules and interrupt handlers) to shared libraries to binaries. OProfile can collect event information for the whole system in the background with very little overhead. These features make it ideal for monitoring entire systems to determine bottle necks in real-world systems. Many CPUs provide "performance counters", hardware registers that can count "events"; for example, cache misses, or CPU cycles. OProfile can collect profiles of code based on the number of these occurring events: repeatedly, every time a certain (configurable) number of events has occurred, the PC value is recorded. This information is aggregated into profiles for each binary image. Alternatively, OProfile's event counting tool can collect simple raw event counts. Some hardware setups do not allow OProfile to use performance counters: in these cases, no events are available so OProfile operates in timer mode, as described in later chapters. Timer mode is only available in "legacy profiling mode" (see ). OProfile legacy profiling mode "Legacy" OProfile consists of the opcontrol shell script, the oprofiled daemon, and several post-processing tools (e.g., opreport). The opcontrol script is used for configuring, starting, and stopping a profiling session. An OProfile kernel driver (usually built as a kernel module) is used for collecting samples, which are then recorded into sample files by oprofiled. Using OProfile in "legacy mode" requires root user authority since the profiling is done on a system-wide basis, which may (if misused) cause adverse effects to the system. Profiling setup parameters that you specify using opcontrol are cached in /root/.oprofile/daemonrc. Subsequent runs of opcontrol --start will continue to use these cached values until you override them with new values. OProfile perf_events profiling mode As of release 0.9.8, OProfile now includes the ability to profile a single process versus the system-wide technique of legacy OProfile. With this new technique, the operf program is used to control profiling instead of the opcontrol script and oprofiled daemon of leagacy mode. Also, operf does not require the special OProfile kernel driver that legacy mode does; instead, it interfaces with the kernel to collect samples via the Linux Kernel Performance Events Subsystem (hereafter referred to as "perf_events"). Using operf to profile a single process can be done as a normal user; however, root authority is required to run operf in system-wide profiling mode. Note 1 The same OProfile post-processing tools are used whether you collect your profile with operf or opcontrol. Note 2 Some older processor models are not supported by the underlying perf_events kernel and, thus, are not supported by operf. If you receive the message Your kernel's Performance Events Subsystem does not support your processor type when attempting to use operf, try profiling with opcontrol to see if your processor type may be supported by OProfile's legacy mode. OProfile event counting mode As of release 0.9.9, OProfile now includes the ocount tool which provides the capability of collecting raw event counts on a per-application, per-process, per-cpu, or system-wide basis. Unlike the profiling tools, post-processing of the data collected is not necessary -- the data is displayed in the output of ocount. A common use case for event counting tools is when performance analysts want to determine the CPI (cycles per instruction) for an application. High CPI implies possible stalls, and many architectures provide events that give detailed information about the different types of stalls. The events provided are architecture-specific, so we refer the reader to the hardware manuals available for the processor type being used. Applications of OProfile OProfile is useful in a number of situations. You might want to use OProfile when you : need low overhead cannot use highly intrusive profiling methods need to profile interrupt handlers need to profile an application and its shared libraries need to profile dynamically compiled code of supported virtual machines (see ) need to capture the performance behaviour of entire system want to examine hardware effects such as cache misses want detailed source annotation want instruction-level profiles want call-graph profiles OProfile is not a panacea. OProfile might not be a complete solution when you : require call graph profiles on platforms other than x86, ARM, and PowerPC require 100% instruction-accurate profiles need function call counts or an interstitial profiling API cannot tolerate any disturbance to the system whatsoever need to profile interpreted or dynamically compiled code of non-supported virtual machines Support for dynamically compiled (JIT) code Older versions of OProfile were not capable of attributing samples to symbols from dynamically compiled code, i.e. "just-in-time (JIT) code". Typical JIT compilers load the JIT code into anonymous memory regions. OProfile reported the samples from such code, but the attribution provided was simply: anon: <tgid><address range> Due to this limitation, it wasn't possible to profile applications executed by virtual machines (VMs) like the Java Virtual Machine. OProfile now contains an infrastructure to support JITed code. A development library is provided to allow developers to add support for any VM that produces dynamically compiled code (see the OProfile JIT agent developer guide). In addition, built-in support is included for the following: JVMTI agent library for Java (1.5 and higher) JVMPI agent library for Java (1.5 and lower) For information on how to use OProfile's JIT support, see . No support for virtual machine guests OProfile currently does not support event-based profiling (i.e, using hardware events like cache misses, branch mispredicts) on virtual machine guests running under systems such as VMware. The list of supported events displayed by ophelp or 'opcontrol --list-events' is based on CPU type and does not take into account whether the running system is a guest system or real system. To use OProfile on such guest systems, you can use timer mode (see ). System requirements Linux kernel To use OProfile's JIT support, a kernel version 2.6.13 or later is required. In earlier kernel versions, the anonymous memory regions are not reported to OProfile and results in profiling reports without any samples in these regions. Profiling the Cell Broadband Engine PowerPC Processing Element (PPE) requires a kernel version of 2.6.18 or more recent. Profiling the Cell Broadband Engine Synergistic Processing Element (SPE) requires a kernel version of 2.6.22 or more recent. Additionally, full support of SPE profiling requires a BFD library from binutils code dated January 2007 or later. To ensure the proper BFD support exists, run the configure utility with --with-target=cell-be. Profiling the Cell Broadband Engine using SPU events requires a kernel version of 2.6.29-rc1 or more recent. Attempting to profile SPEs with kernel versions older than 2.6.22 may cause the system to crash. Instruction-Based Sampling (IBS) profile on AMD family10h processors requires kernel version 2.6.28-rc2 or later. Supported architecture For Intel IA32, processors as old as P6 generation or Pentium 4 core are supported. The AMD Athlon, Opteron, Phenom, and Turion CPUs are also supported. Older IA32 CPU types can be used with the timer mode of OProfile; please see later in this manual for details. OProfile also supports most processor types of the following architectures: Alpha, MIPS, ARM, x86-64, sparc64, PowerPC, AVR32, and, in timer mode, PA-RISC and s390. Uniprocessor or SMP SMP machines are fully supported. Required libraries These libraries are required : popt, bfd, liberty (debian users: libiberty is provided in binutils-dev package), dl, plus the standard C++ libraries. Required kernel headers In order to build the perf_events-enabled operf program, you need to either install the kernel-headers package for your system or use the --with-kernel configure option. Required user account For secure processing of sample data from JIT virtual machines (e.g., Java), the special user account "oprofile" must exist on the system. The 'configure' and 'make install' operations will print warning messages if this account is not found. If you intend to profile JITed code, you must create a group account named 'oprofile' and then create the 'oprofile' user account, setting the default group to 'oprofile'. A runtime error message is printed to the oprofile log when processing JIT samples if this special user account cannot be found. OProfile GUI The use of the GUI to start the profiler requires the Qt library. Either Qt 3 or Qt 4 should work. ELF Probably not too strenuous a requirement, but older A.OUT binaries/libraries are not supported. K&R coding style OK, so it's not really a requirement, but I wish it was... Internet resources Web page There is a web page (which you may be reading now) at http://oprofile.sf.net/. Download You can download a source tarball or check out code from the code repository at the sourceforge page, http://sf.net/projects/oprofile/. Mailing list There is a low-traffic OProfile-specific mailing list, details at http://sf.net/mail/?group_id=16191. Bug tracker There is a bug tracker for OProfile at SourceForge, http://sf.net/tracker/?group_id=16191&atid=116191. IRC channel Several OProfile developers and users sometimes hang out on channel #oprofile on the OFTC network. Installation First you need to build OProfile and install it. ./configure, make, make install is often all you need, but note these arguments to ./configure : Use this option if you need to profile Java applications. Also, see , "Required user account". This option is used to specify the location of the Java Development Kit (JDK) source tree you wish to use. This is necessary to get the interface description of the JVMPI (or JVMTI) interface to compile the JIT support code successfully. The Java Runtime Environment (JRE) does not include the development files that are required to compile the JIT support code, so the full JDK must be installed in order to use this option. By default, the Oprofile JIT support libraries will be installed in <oprof_install_dir>/lib/oprofile. To build and install OProfile and the JIT support libraries as 64-bit, you can do something like the following: # CFLAGS="-m64" CXXFLAGS="-m64" ./configure \ --with-java={my_jdk_installdir} \ --libdir=/usr/local/lib64 If you encounter errors building 64-bit, you should install libtool 1.5.26 or later since that release of libtool fixes known problems for certain platforms. If you install libtool into a non-standard location, you'll need to edit the invocation of 'aclocal' in OProfile's autogen.sh as follows (assume an install location of /usr/local): aclocal -I m4 -I /usr/local/share/aclocal Specify the location of Qt headers and libraries. It defaults to searching in $QTDIR if these are not specified. Development versions of OProfile build by default with . This option turns off. Disable the compiler flag (useful if you discover an OProfile bug and want to give a useful back-trace etc.) This option is used to specify the location of the kernel headers include directory needed to build the perf_events-enabled operf program. By default, the OProfile build system expects to find this directory under /usr. Use this option if your kernel headers are in a non-standard location or if building in a cross-compile enviroment or in a situation where the host system does not support perf_events but you wish to build binaries for a target system that does support perf_events. It is recommended that if you have a uniprocessor machine, you enable the local APIC / IO_APIC support for your kernel (this is automatically enabled for SMP kernels). With many BIOS (kernel >= 2.6.9 and UP kernel) it's not sufficient to enable the local APIC -- you must also turn it on explicitly at boot time by providing the "lapic" option to the kernel. If you use the NMI watchdog, be aware that the watchdog is disabled when profiling starts and not re-enabled until the profiling is stopped. Please note that you must save or have available the vmlinux file generated during a kernel compile, as OProfile needs it (you can use , but this will prevent kernel profiling). Uninstalling OProfile You must have the source tree available to uninstall OProfile; a make uninstall will remove all installed files except your configuration file in the directory ~/.oprofile. Overview Getting started with OProfile using <command>operf</command> Profiling with operf is the recommended profiling mode with OProfile. Using this mode not only allows you to target your profiling more precisely (i.e., single process or system-wide), it also allows OProfile to co-exist better with other tools on your system that may also be using the perf_events kernel subsystem. With operf, there is no initial setup needed -- simply invoke operf with the options you need; then run the OProfile post-processing tool(s). The operf syntax is as follows: operf [ options ] [ --system-wide | --pid=<PID> | [ command [ args ] ] ] A typical usage might look like this: operf ./my_test_program my_arg When ./my_test_program completes (or when you press Ctrl-C), profiling stops and you're ready to use opreport or other OProfile post-processing tools. By default, operf stores the sample data in <cur_dir>/oprofile_data/samples/current, and opreport and other post-processing tools will look in that location first for profile data, unless you pass the --session-dir option. Getting started with OProfile using legacy profiling mode Before you can use OProfile's legacy profiling mode, you must set it up. The minimum setup required for this is to tell OProfile where the vmlinux file corresponding to the running kernel is, for example : opcontrol --vmlinux=/boot/vmlinux-`uname -r` If you don't want to profile the kernel itself, you can tell OProfile you don't have a vmlinux file : opcontrol --no-vmlinux Now we are ready to start the daemon (oprofiled) which collects the profile data : opcontrol --start When you want to stop profiling, you can do so with : opcontrol --shutdown Note that unlike gprof, no instrumentation ( and options to gcc) is necessary. Periodically (or on opcontrol --shutdown or opcontrol --dump) the profile data is written out into the $SESSION_DIR/samples directory (by default at /var/lib/oprofile/samples). These profile files cover shared libraries, applications, the kernel (vmlinux), and kernel modules. You can clear the profile data (at any time) with opcontrol --reset. To place these sample database files in a specific directory instead of the default location (/var/lib/oprofile) use the option. You must also specify the to tell the tools to continue using this directory. opcontrol --no-vmlinux --session-dir=/home/me/tmpsession opcontrol --start --session-dir=/home/me/tmpsession You can get summaries of this data in a number of ways at any time. To get a summary of data across the entire system for all of these profiles, you can do : opreport [--session-dir=dir] Or to get a more detailed summary, for a particular image, you can do something like : opreport -l /boot/vmlinux-`uname -r` There are also a number of other ways of presenting the data, as described later in this manual. Note that OProfile will choose a default profiling setup for you. However, there are a number of options you can pass to opcontrol if you need to change something, also detailed later. Getting started with OProfile using <command>ocount</command> ocount is an OProfile tool that can be used to count native hardware events occurring in either a specific application, a set of processes or threads, a set of active system processors, or the entire system. The data collected during a counting session is displayed to stdout by default, but may also be saved to a file. The ocount syntax is as follows: ocount [ options ] [ --system-wide | --process-list <pids> | --thread-list <tids> | --cpu-list <cpus> [ command [ args ] ] ] A typical usage might look like this: ocount --events=CPU_CLK_UNHALTED,INST_RETIRED /home/user1/my_test_program my_arg When my_test_program completes (or when you press Ctrl-C), counting stops and the results are displayed to the screen (as shown below). Events were actively counted for 2.8 seconds. Event counts (actual) for /home/user1/my_test_program my_arg: Event Count % time counted CPU_CLK_UNHALTED 9,408,018,070 100.00 INST_RETIRED 16,719,918,108 100.00 Specifying performance counter events Both methods of profiling (operf and opcontrol) -- as well as event counting with ocount -- allow you to give one or more event specifications to provide details of how each hardware performance counter should be set up. With operf and ocount, you can provide a comma-separated list of event specfications using the --events option. With opcontrol, you use the --event option for each desired event specification. For profiling, the event specification is a colon-separated string of the form as described in the table below. For ocount, specification is of the form . Note the presence of the count field for profiling. The count field tells the profiler how many events should occur between a profile snapshot (usually referred to as a "sample"). Since ocount does not do sampling, the count field is not needed. If no event specs are passed to operf, ocount, or opcontrol, the default event will be used. With opcontrol, if you have previously specified some non-default event but want to revert to the default event, use . Use of this option overrides all previous event selections that have been cached. OProfile will allocate hardware counters as necessary, but some processor types have restrictions as to what hardware events may be counted simultaneously. operf and ocount use a multiplexing technique when such hardware restrictions are encountered, but opcontrol does not have this capability; instead, opcontrol will display an error message if you select an incompatible set of events. The symbolic event name, e.g. CPU_CLK_UNHALTED The counter reset value, e.g. 100000; use only for profiling The unit mask, as given in the events list: e.g. 0x0f; or a symbolic name if a name=<um_name> field is present Whether to profile kernel code Whether to profile userspace code The last three values are optional, if you omit them (e.g. ), they will be set to the default values (the default unit mask value for the given event, and profiling (or counting) both kernel and userspace code). Note that some events require a unit mask. You can specify unit mask values using either a numerical value (hex values must begin with "0x") or a symbolic name (if the name=<um_name> field is shown in the ophelp output). For some named unit masks, the hex value is not unique; thus, OProfile tools enforce specifying such unit masks value by name. When using legacy mode opcontrol on IBM PowerPC platforms, all events specified must be in the same group; i.e., the group number appended to the event name (e.g. <some-event-name>_GRP9 ) must be the same. When using operf or ocount on IBM PowerPC platforms, the above restriction regarding the same group number does not apply, and events may be specified with or without the group number suffix. If no group number suffix is given, one will be automatically assigned; thus, OProfile post-processing tools will always show real event names that include the group number suffix. If OProfile is using timer-interrupt mode, there is no event configuration possible. The table below lists the default profiling event for various processor types. The same events can be used for ocount, minus the count field. Processorcpu_typeDefault event Alpha EV4alpha/ev4CYCLES:100000:0:1:1 Alpha EV5alpha/ev5CYCLES:100000:0:1:1 Alpha PCA56alpha/pca56CYCLES:100000:0:1:1 Alpha EV6alpha/ev6CYCLES:100000:0:1:1 Alpha EV67alpha/ev67CYCLES:100000:0:1:1 ARM/XScale PMU1arm/xscale1CPU_CYCLES:100000:0:1:1 ARM/XScale PMU2arm/xscale2CPU_CYCLES:100000:0:1:1 ARM/MPCorearm/mpcoreCPU_CYCLES:100000:0:1:1 AVR32avr32CPU_CYCLES:100000:0:1:1 Athloni386/athlonCPU_CLK_UNHALTED:100000:0:1:1 Pentium Proi386/pproCPU_CLK_UNHALTED:100000:0:1:1 Pentium IIi386/piiCPU_CLK_UNHALTED:100000:0:1:1 Pentium IIIi386/piiiCPU_CLK_UNHALTED:100000:0:1:1 Pentium M (P6 core)i386/p6_mobileCPU_CLK_UNHALTED:100000:0:1:1 Pentium 4 (non-HT)i386/p4GLOBAL_POWER_EVENTS:100000:1:1:1 Pentium 4 (HT)i386/p4-htGLOBAL_POWER_EVENTS:100000:1:1:1 Hammerx86-64/hammerCPU_CLK_UNHALTED:100000:0:1:1 Family10hx86-64/family10CPU_CLK_UNHALTED:100000:0:1:1 Family11hx86-64/family11hCPU_CLK_UNHALTED:100000:0:1:1 Itaniumia64/itaniumCPU_CYCLES:100000:0:1:1 Itanium 2ia64/itanium2CPU_CYCLES:100000:0:1:1 TIMER_INTtimerNone selectable IBM pseriesPowerPC 4/5/6/7/8/970/CellCYCLES:100000:0:1:1 IBM s390timerNone selectable IBM s390xtimerNone selectable Tools summary This section gives a brief description of the available OProfile utilities and their purpose. ophelp This utility lists the available events and short descriptions. operf This is the recommended program for collecting profile data, discussed in . opcontrol Used for controlling OProfile data collection in legacy mode, discussed in . agent libraries Used by virtual machines (like the Java VM) to record information about JITed code being profiled. See . opreport This is the main tool for retrieving useful profile data, described in . opannotate This utility can be used to produce annotated source, assembly or mixed source/assembly. Source level annotation is available only if the application was compiled with debugging symbols. See . opgprof This utility can output gprof-style data files for a binary, for use with gprof -p. See . oparchive This utility can be used to collect executables, debuginfo, and sample files and copy the files into an archive. The archive is self-contained and can be moved to another machine for further analysis. See . opimport This utility converts sample database files from a foreign binary format (abi) to the native format. This is useful only when moving sample files between hosts, for analysis on platforms other than the one used for collection. See . Controlling the profiler Using <command>operf</command> This section describes in detail how operf is used to control profiling. Unless otherwise directed, operf will profile using the default event for your system. For most systems, the default event is some cycles-based event, assuming your processor type supports hardware performance counters. If your hardware does support performance counters, you can specify something other than the default hardware event on which to profile. The performance monitor counters can be programmed to count various hardware events, such as cache misses or MMX operations. The event chosen for each counter is reflected in the profile data collected by OProfile: functions and binaries at the top of the profiles reflect that most of the chosen events happened within that code. Additionally, each counter is programmed with a "count" value, which corresponds to how detailed the profile is. The lower the value, the more frequently profile samples are taken. You can choose to sample only kernel code, user-space code, or both (both is the default). Finally, some events have a "unit mask" -- this is a value that further restricts the types of event that are counted. You can see the event types and unit masks for your CPU using ophelp. More information on event specification can be found at . The operf command syntax is: operf [ options ] [ --system-wide | --pid=<PID> | [ command [ args ] ] ] When profiling an application using either the command or --pid option of operf, forks and execs of the profiled process will also be profiled. The samples from an exec'ed process will be attributed to the executable binary run by that process. See Following is a description of the operf options. The command or application to be profiled. The[args] are the input arguments that the command or application requires. Either command, --pid or --system-wide is required, but cannot be used simultaneously. This option enables operf to profile a running application. PID should be the process ID of the process you wish to profile. When finished profiling (e.g., when the profiled process ends), press Ctrl-c to stop operf. This option is for performing a system-wide profile. You must have root authority to run operf in this mode. When finished profiling, Ctrl-C to stop operf. If you run operf --system-wide as a background job (i.e., with the &), you must stop it in a controlled manner in order to process the profile data it has collected. Use kill -SIGINT <operf-PID> for this purpose. It is recommended that when running operf with this option, your current working directory should be /root or a subdirectory of /root to avoid storing sample data files in locations accessible by regular users. A vmlinux file that matches the running kernel that has symbol and/or debuginfo. Kernel samples will be attributed to this binary, allowing post-processing tools (like opreport) to attribute samples to the appropriate kernel symbols. If this option is not specified, all kernel samples will be attributed to a pseudo binary named "no-vmlinux". This option enables the callgraph to be saved during profiling. NOTE: The full callchain is recorded, so there is no depth limit. By default, operf moves old profile data from <session_dir>/samples/current to <session_dir>/samples/previous. If a 'previous' profile already existed, it will be replaced. If the --append option is passed, old profile data in 'current' is left in place and new profile data will be added to it, and the 'previous' profile (if one existed) will remain untouched. To access the 'previous' profile, simply add a session specification to the normal invocation of oprofile post-processing tools; for example: opreport session:previous This option is for passing a comma-separated list of event specifications for profiling. Each event spec is of the form: name:count[:unitmask[:kernel[:user]]] When no event specification is given, the default event for the running processor type will be used for profiling. Use ophelp to list the available events for your processor type. This option categorizes samples by thread group ID (tgid) and thread ID (tid). The --separate-thread option is useful for seeing per-thread samples in multi-threaded applications. When used in conjuction with the --system-wide option, --separate-thread is also useful for seeing per-process (i.e., per-thread group) samples for the case where multiple processes are executing the same program during a profiling run. This option categorizes samples by cpu. This option specifies the session directory to hold the sample data. If not specified, the data is saved in the oprofile_data directory on the current path. Use this option to reduce the overhead of operf during profiling. Normally, profile data received from the kernel is converted to OProfile format during profiling time. This is typically not an issue when profiling a single application. But when using the --system-wide option, this on-the-fly conversion process can cause noticeable overhead, particularly on busy multi-processor systems. The --lazy-conversion option directs operf to wait until profiling is completed to do the conversion of profile data. A comma-separated list of debugging control values used to increase the verbosity of the output. Valid values are: debug, record, convert, misc, sfile, arcs, and the special value, 'all'. Show operf version. Show a help message. Using <command>opcontrol</command> In this section we describe the configuration and control of the profiling system with opcontrol in more depth. See for a description of the preferred profiling method. The opcontrol script has a default setup, but you can alter this with the options given below. In particular, you can select specific hardware events on which to base your profile. See for an introduction to hardware events and performance counter configuration. The event types and unit masks for your CPU are listed by opcontrol --list-events or ophelp. The opcontrol script provides the following actions : Loads the OProfile module if required and makes the OProfile driver interface available. Followed by list arguments for profiling set up. List of arguments saved in /root/.oprofile/daemonrc. Giving this option is not necessary; you can just directly pass one of the setup options, e.g. opcontrol --no-vmlinux. Show configuration information. Start the oprofile daemon without starting actual profiling. The profiling can then be started using . This is useful for avoiding measuring the cost of daemon startup, as is a simple write to a file in oprofilefs. Start data collection with either arguments provided by or information saved in /root/.oprofile/daemonrc. Specifying the addition makes the daemon generate lots of debug data whilst it is running. Force a flush of the collected profiling data to the daemon. Stop data collection. Stop data collection and kill the daemon. Clears out data from current session, but leaves saved sessions. session_name Save data from current session to session_name. Shuts down daemon. Unload the OProfile module and oprofilefs. List event types and unit masks. Generate usage messages. There are a number of possible settings, of which, only (or ) is required. These settings are stored in ~/.oprofile/daemonrc. num Number of samples in kernel buffer. Buffer watershed needs to be tweaked when changing this value. num Set kernel buffer watershed to num samples. When remain only buffer-size - buffer-watershed free entries remain in the kernel buffer, data will be flushed to the daemon. Most useful values are in the range [0.25 - 0.5] * buffer-size. num Number of samples in kernel per-cpu buffer. If you profile at high rate, it can help to increase this if the log file show excessive count of samples lost due to cpu buffer overflow. [eventspec] Use the given performance counter event to profile. See below. dir_path Create/use sample database out of directory dir_path instead of the default location (/var/lib/oprofile). [none,lib,kernel,thread,cpu,all] By default, every profile is stored in a single file. Thus, for example, samples in the C library are all accredited to the /lib/libc.o profile. However, you choose to create separate sample files by specifying one of the below options. No profile separation (default) Create per-application profiles for libraries Create per-application profiles for the kernel and kernel modules Create profiles for each thread and each task Create profiles for each CPU All of the above options Note that also turns on . When using , samples in hardware interrupts, soft-irqs, or other asynchronous kernel contexts are credited to the task currently running. This means you will see seemingly nonsense profiles such as /bin/bash showing samples for the PPP modules, etc. Using creates a lot of sample files if you leave OProfile running for a while; it's most useful when used for short sessions, or when using image filtering. #depth Enable call-graph sample collection with a maximum depth. Use 0 to disable callgraph profiling. NOTE: Callgraph support is available on a limited number of platforms at this time; for example: x86 with 2.6 or higher kernel ARM with 2.6 or higher kernel PowerPC with 2.6.17 or higher kernel image,[images]|"all" Image filtering. If you specify one or more absolute paths to binaries, OProfile will only produce profile results for those binary images. This is useful for restricting the sometimes voluminous output you may get otherwise, especially with . Note that if you are using or , then if you specification an application binary, the shared libraries and kernel code are included. Specify the value "all" to profile everything (the default). file vmlinux kernel image. Use this when you don't have a kernel vmlinux file, and you don't want to profile the kernel. This still counts the total number of kernel samples, but can't give symbol-based results for the kernel or any modules. Examples Intel performance counter setup Here, we have a Pentium III running at 800MHz, and we want to look at where data memory references are happening most, and also get results for CPU time. # opcontrol --event=CPU_CLK_UNHALTED:400000 --event=DATA_MEM_REFS:10000 # opcontrol --vmlinux=/boot/2.6.0/vmlinux # opcontrol --start Starting the daemon separately Use to avoid the profiler startup affecting results. # opcontrol --vmlinux=/boot/2.6.0/vmlinux # opcontrol --start-daemon # my_favourite_benchmark --init # opcontrol --start ; my_favourite_benchmark --run ; opcontrol --stop Separate profiles for libraries and the kernel Here, we want to see a profile of the OProfile daemon itself, including when it was running inside the kernel driver, and its use of shared libraries. # opcontrol --separate=kernel --vmlinux=/boot/2.6.0/vmlinux # opcontrol --start # my_favourite_stress_test --run # opreport -l -p /lib/modules/2.6.0/kernel /usr/local/bin/oprofiled Profiling sessions It can often be useful to split up profiling data into several different time periods. For example, you may want to collect data on an application's startup separately from the normal runtime data. You can use the simple command opcontrol --save to do this. For example : # opcontrol --save=blah will create a sub-directory in $SESSION_DIR/samples containing the samples up to that point (the current session's sample files are moved into this directory). You can then pass this session name as a parameter to the post-profiling analysis tools, to only get data up to the point you named the session. If you do not want to save a session, you can do rm -rf $SESSION_DIR/samples/sessionname or, for the current session, opcontrol --reset. Setting up the JIT profiling feature To gather information about JITed code from a virtual machine, it needs to be instrumented with an agent library. We use the agent libraries for Java in the following example. To use the Java profiling feature, you must build OProfile with the "--with-java" option (). JVM instrumentation Add this to the startup parameters of the JVM (for JVMTI): or The JVMPI agent implementation is enabled with the command line option Currently, there is just one option available -- . For JVMPI, the convention for specifying an option is . For JVMTI, the option specification is simply the option name, implying "yes"; no option specified implies "no". The agent library (installed in <oprof_install_dir>/lib/oprofile) needs to be in the library search path (e.g. add the library directory to LD_LIBRARY_PATH). If the command line of the JVM is not accessible, it may be buried within shell scripts or a launcher program. It may also be possible to set an environment variable to add the instrumentation. For Sun JVMs this is JAVA_TOOL_OPTIONS. Please check your JVM documentation for further information on the agent startup options. Using <command>oprof_start</command> The oprof_start application provides a convenient way to start the profiler. Note that oprof_start is just a wrapper around the opcontrol script, so it does not provide more services than the script itself. After oprof_start is started you can select the event type for each counter; the sampling rate and other related parameters are explained in . The "Configuration" section allows you to set general parameters such as the buffer size, kernel filename etc. The counter setup interface should be self-explanatory; and related links contain information on using unit masks. A status line shows the current status of the profiler: how long it has been running, and the average number of interrupts received per second and the total, over all processors. Note that quitting oprof_start does not stop the profiler. Your configuration is saved in the same file as opcontrol uses; that is, ~/.oprofile/daemonrc. oprof_start does not currently support operf. Configuration details Hardware performance counters Most processor models include performance monitor units that can be configured to monitor (count) various types of hardware events. This section is where you can find architecture-specific information to help you use these events for profiling. You do not really need to read this section unless you are interested in using events other than the default event chosen by OProfile. Your CPU type may not include the requisite support for hardware performance counters, in which case you must use OProfile in timer mode (see ). The Intel hardware performance counters are detailed in the Intel IA-32 Architecture Manual, Volume 3, available from http://developer.intel.com/. The AMD Athlon/Opteron/Phenom/Turion implementation is detailed in http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/22007.pdf. For IBM PowerPC processors, documentation is available at https://www.power.org/. For example, https://www.power.org/events/Power7 contains specific information on the performance monitor unit for the IBM POWER7. These processors are capable of delivering an interrupt when a counter overflows. This is the basic mechanism on which OProfile is based. The delivery mode is NMI, so blocking interrupts in the kernel does not prevent profiling. When the interrupt handler is called, the current PC value and the current task are recorded into the profiling structure. This allows the overflow event to be attached to a specific assembly instruction in a binary image. OProfile receives this data from the kernel and writes it to the sample files. If we use an event such as CPU_CLK_UNHALTED or INST_RETIRED (GLOBAL_POWER_EVENTS or INSTR_RETIRED, respectively, on the Pentium 4), we can use the overflow counts as an estimate of actual time spent in each part of code. Alternatively we can profile interesting data such as the cache behaviour of routines with the other available counters. However there are several caveats. First, there are those issues listed in the Intel manual. There is a delay between the counter overflow and the interrupt delivery that can skew results on a small scale - this means you cannot rely on the profiles at the instruction level as being perfectly accurate. If you are using an "event-mode" counter such as the cache counters, a count registered against it doesn't mean that it is responsible for that event. However, it implies that the counter overflowed in the dynamic vicinity of that instruction, to within a few instructions. Further details on this problem can be found in and also in the Digital paper "ProfileMe: A Hardware Performance Counter". Each counter has several configuration parameters. First, there is the unit mask: this simply further specifies what to count. Second, there is the counter value, discussed below. Third, there is a parameter whether to increment counts whilst in kernel or user space. You can configure these separately for each counter. After each overflow event, the counter will be re-initialized such that another overflow will occur after this many events have been counted. Thus, higher values mean less-detailed profiling, and lower values mean more detail, but higher overhead. Picking a good value for this parameter is, unfortunately, somewhat of a black art. It is of course dependent on the event you have chosen. Specifying too large a value will mean not enough interrupts are generated to give a realistic profile (though this problem can be ameliorated by profiling for longer). Specifying too small a value can lead to higher performance overhead. OProfile in timer interrupt mode Some CPU types do not provide the needed hardware support to use the hardware performance counters. This includes some laptops, classic Pentiums, and other CPU types not yet supported by OProfile (such as Cyrix). On these machines, OProfile falls back to using the timer interrupt for profiling, back to using the real-time clock interrupt to collect samples. In timer mode, OProfile is not able to profile code that has interrupts disabled. You can force use of the timer interrupt by using the module parameter (or on the boot command line if OProfile is built-in). If OProfile was built as a kernel module, then you must pass the 'timer=1' parameter with the modprobe command. Do this before executing 'opcontrol --init' or edit the opcontrol command's invocation of modprobe to pass the 'timer=1' parameter. Timer mode is only available using the legacy opcontrol command. Pentium 4 support The Pentium 4 / Xeon performance counters are organized around 3 types of model specific registers (MSRs): 45 event selection control registers (ESCRs), 18 counter configuration control registers (CCCRs) and 18 counters. ESCRs describe a particular set of events which are to be recorded, and CCCRs bind ESCRs to counters and configure their operation. Unfortunately the relationship between these registers is quite complex; they cannot all be used with one another at any time. There is, however, a subset of 8 counters, 8 ESCRs, and 8 CCCRs which can be used independently of one another, so OProfile only accesses those registers, treating them as a bank of 8 "normal" counters, similar to those in the P6 or Athlon/Opteron/Phenom/Turion families of CPU. There is currently no support for Precision Event-Based Sampling (PEBS), nor any advanced uses of the Debug Store (DS). Current support is limited to the conservative extension of OProfile's existing interrupt-based model described above. Intel Itanium 2 support The Itanium 2 performance monitoring unit (PMU) organizes the counters as four pairs of performance event monitoring registers. Each pair is composed of a Performance Monitoring Configuration (PMC) register and Performance Monitoring Data (PMD) register. The PMC selects the performance event being monitored and the PMD determines the sampling interval. The IA64 Performance Monitoring Unit (PMU) triggers sampling with maskable interrupts. Thus, samples will not occur in sections of the IA64 kernel where interrupts are disabled. None of the advance features of the Itanium 2 performance monitoring unit such as opcode matching, address range matching, or precise event sampling are supported by this version of OProfile. The Itanium 2 support only maps OProfile's existing interrupt-based model to the PMU hardware. PowerPC64 support The performance monitoring unit (PMU) for the IBM PowerPC 64-bit processors consists of between 4 and 8 counters (depending on the model), plus three special purpose registers used for programming the counters -- MMCR0, MMCR1, and MMCRA. Advanced features such as instruction matching and thresholding are not supported by this version of OProfile. Later versions of the IBM POWER5+ processor (beginning with revision 3.0) run the performance monitor unit in POWER6 mode, effectively removing OProfile's access to counters 5 and 6. These two counters are dedicated to counting instructions completed and cycles, respectively. In POWER6 mode, however, the counters do not generate an interrupt on overflow and so are unusable by OProfile. Kernel versions 2.6.23 and higher will recognize this mode and export "ppc64/power5++" as the cpu_type to the oprofilefs pseudo filesystem. OProfile userspace responds to this cpu_type by removing these counters from the list of potential events to count. Without this kernel support, attempts to profile using an event from one of these counters will yield incorrect results -- typically, zero (or near zero) samples in the generated report. Cell Broadband Engine support The Cell Broadband Engine (CBE) processor core consists of a PowerPC Processing Element (PPE) and 8 Synergistic Processing Elements (SPE). PPEs and SPEs each consist of a processing unit (PPU and SPU, respectively) and other hardware components, such as memory controllers. A PPU has two hardware threads (aka "virtual CPUs"). The performance monitor unit of the CBE collects event information on one hardware thread at a time. Therefore, when profiling PPE events, OProfile collects the profile based on the selected events by time slicing the performance counter hardware between the two threads. The user must ensure the collection interval is long enough so that the time spent collecting data for each PPU is sufficient to obtain a good profile. To profile an SPU application, the user should specify the SPU_CYCLES event. When starting OProfile with SPU_CYCLES, the opcontrol script enforces certain separation parameters (separate=cpu,lib) to ensure that sufficient information is collected in the sample data in order to generate a complete report. The --merge=cpu option can be used to obtain a more readable report if analyzing the performance of each separate SPU is not necessary. Profiling with an SPU event (events 4100 through 4163) is not compatible with any other event. Further more, only one SPU event can be specified at a time. The hardware only supports profiling on one SPU per node at a time. The OProfile kernel code time slices between the eight SPUs to collect data on all SPUs. SPU profile reports have some unique characteristics compared to reports for standard architectures: Typically no "app name" column. This is really standard OProfile behavior when the report contains samples for just a single application, which is commonly the case when profiling SPUs. "CPU" equates to "SPU" Specifying '--long-filenames' on the opreport command does not always result in long filenames. This happens when the SPU application code is embedded in the PPE executable or shared library. The embedded SPU ELF data contains only the short filename (i.e., no path information) for the SPU binary file that was used as the source for embedding. The reason that just the short filename is used is because the original SPU binary file may not exist or be accessible at runtime. The performance analyst must have sufficient knowledge of the application to be able to correlate the SPU binary image names found in the report to the application's source files. Compile the application with -g and generate the OProfile report with -g to facilitate finding the right source file(s) on which to focus. AMD64 (x86_64) Instruction-Based Sampling (IBS) support Instruction-Based Sampling (IBS) is a new performance measurement technique available on AMD Family 10h processors. Traditional performance counter sampling is not precise enough to isolate performance issues to individual instructions. IBS, however, precisely identifies instructions which are not making the best use of the processor pipeline and memory hierarchy. For more information, please refer to the "Instruction-Based Sampling: A New Performance Analysis Technique for AMD Family 10h Processors" ( http://developer.amd.com/assets/AMD_IBS_paper_EN.pdf). There are two types of IBS profile types, described in the following sections. Profiling on IBS events is only supported with legacy mode profiling (i.e., with opcontrol). IBS Fetch IBS fetch sampling is a statistical sampling method which counts completed fetch operations. When the number of completed fetch operations reaches the maximum fetch count (the sampling period), IBS tags the fetch operation and monitors that operation until it either completes or aborts. When a tagged fetch completes or aborts, a sampling interrupt is generated and an IBS fetch sample is taken. An IBS fetch sample contains a timestamp, the identifier of the interrupted process, the virtual fetch address, and several event flags and values that describe what happened during the fetch operation. IBS Op IBS op sampling selects, tags, and monitors macro-ops as issued from AMD64 instructions. Two options are available for selecting ops for sampling: Cycles-based selection counts CPU clock cycles. The op is tagged and monitored when the count reaches a threshold (the sampling period) and a valid op is available. Dispatched op-based selection counts dispatched macro-ops. When the count reaches a threshold, the next valid op is tagged and monitored. In both cases, an IBS sample is generated only if the tagged op retires. Thus, IBS op event information does not measure speculative execution activity. The execution stages of the pipeline monitor the tagged macro-op. When the tagged macro-op retires, a sampling interrupt is generated and an IBS op sample is taken. An IBS op sample contains a timestamp, the identifier of the interrupted process, the virtual address of the AMD64 instruction from which the op was issued, and several event flags and values that describe what happened when the macro-op executed. Enabling IBS profiling is done simply by specifying IBS performance events through the "--event=" options. These events are listed in the opcontrol --list-events. opcontrol --event=IBS_FETCH_XXX:<count>:<um>:<kernel>:<user> opcontrol --event=IBS_OP_XXX:<count>:<um>:<kernel>:<user> Note: * All IBS fetch event must have the same event count and unitmask, as do those for IBS op. IBM System z hardware sampling support IBM System z provides a facility which does instruction sampling as part of the CPU. This has great advantages over the timer based sampling approach like better sampling resolution with less overhead and the possibility to get samples within code sections where interrupts are disabled (useful especially for Linux kernel code). Profiling with the instruction sampling facility is currently only supported with legacy mode profiling (i.e., with opcontrol). A public description of the System z CPU-Measurement Facilities can be found here: The Load-Program-Parameter and CPU-Measurement Facilities System z hardware sampling can be used for Linux instances in LPAR mode. The hardware sampling support used by OProfile was introduced for System z10 in October 2008. To enable hardware sampling for an LPAR you must activate the LPAR with authorization for basic sampling control. See the "Support Element Operations Guide" for your mainframe system for more information. The hardware sampling facility can be enabled and disabled using the event interface. A `virtual' counter 0 has been defined that only supports a single event, HWSAMPLING. By default the HWSAMPLING event is enabled on machines providing the facility. For both events only the `count', `kernel' and `user' options are evaluated by the kernel module. The `count' value is the sampling rate as it is passed to the CPU measurement facility. A sample will be taken by the hardware every `count' cycles. Using low values here will quickly fill up the sampling buffers and will generate CPU load on the OProfile daemon and the kernel module being busy flushing the hardware buffers. This might considerably impact the workload to be profiled. The unit mask `um' is required to be zero. The opcontrol tool provides a new option specific to System z hardware sampling: --s390hwsampbufsize="num": Number of 2MB areas used per CPU for storing sample data. The best size for the sample memory depends on the particular system and the workload to be measured. Providing the sampler with too little memory results in lost samples. Reserving too much system memory for the sampler impacts the overall performance and, hence, also the workload to be measured. A special counter /dev/oprofile/timer is provided by the kernel module allowing to switch back to timer mode sampling dynamically. The TIMER event is limited to be used only with this counter. The TIMER event can be specified using the as with every other event. opcontrol --event=TIMER:1 On z10 or later machines the default event is set to TIMER in case the hardware sampling facility is not available. Although required, the 'count' parameter of the TIMER event is ignored. The value may eventually be used for timer based sampling with a configurable sampling frequency, but this is currently not supported. Dangerous counter settings OProfile is a low-level profiler which allows continuous profiling with a low-overhead cost. When using OProfile legacy mode profiling, it may be possible to configure such a low a counter reset value (i.e., high sampling rate) that the system can become overloaded with counter interrupts and your system's responsiveness may be severely impacted. Whilst some validation is done on the count values you pass to opcontrol with your event specification, it is not foolproof. This can happen as follows: When the profiler count reaches zero, an NMI handler is called which stores the sample values in an internal buffer, then resets the counter to its original value. If the reset count you specified is very low, a pending NMI can be sent before the NMI handler has completed. Due to the priority of the NMI, the pending interrupt is delivered immediately after completion of the previous interrupt handler, and control never returns to other parts of the system. If all processors are stuck in this mode, the system will appear to be frozen. If this happens, it will be impossible to bring the system back to a workable state. There is no way to provide real security against this happening, other than making sure to use a reasonable value for the counter reset. For example, setting CPU_CLK_UNHALTED event type with a ridiculously low reset count (e.g. 500) is likely to freeze the system. In short : Don't try a foolish sample count value. Unfortunately the definition of a foolish value is really dependent on the event type. If ever in doubt, post a message to
oprofile-list@lists.sf.net.
The scenario described above cannot occur if you use operf for profiling instead of opcontrol, because the perf_events kernel subsystem automatically detects when performance monitor interrupts are arriving at a dangerous level and will throttle back the sampling rate.
Obtaining profiling results OK, so the profiler has been running, but it's not much use unless we can get some data out. Sometimes, OProfile does a little too good a job of keeping overhead low, and no data reaches the profiler. This can happen on lightly-loaded machines. If you're using OPorifle legacy mode, you can force a dump at any time with : opcontrol --dump This ensures that any profile data collected by the oprofiled daemon has been flusehd to disk. Remember to do a dump, stop, shutdown, or deinit before complaining there is no profiling data! Now that we've got some data, it has to be processed. That's the job of opreport, opannotate, or opgprof. Profile specifications All of the analysis tools take a profile specification. This is a set of definitions that describe which actual profiles should be examined. The simplest profile specification is empty: this will match all the available profile files for the current session (this is what happens when you do opreport). Specification parameters are of the form . For example, if I wanted to get a combined symbol summary for /bin/myprog and /bin/myprog2, I could do opreport -l image:/bin/myprog,/bin/myprog2. As a special case, you don't actually need to specify the part here: anything left on the command line is assumed to be an name. Similarly, if no is specified, then is assumed ("current" is a special name of the current / last profiling session). In addition to the comma-separated list shown above, some of the specification parameters can take glob-style values. For example, if I want to see image summaries for all binaries profiled in /usr/bin/, I could do opreport image:/usr/bin/\*. Note the necessity to escape the special character from the shell. For opreport, profile specifications can be used to define two profiles, giving differential output. This is done by enclosing each of the two specifications within curly braces, as shown in the examples below. Any specifications outside of curly braces are shared across both. Examples Image summaries for all profiles with DATA_MEM_REFS samples in the saved session called "stresstest" : # opreport session:stresstest event:DATA_MEM_REFS Symbol summary for the application called "test_sym53c8xx,9xx". Note the escaping is necessary as takes a comma-separated list. # opreport -l ./test/test_sym53c8xx\,9xx Image summaries for all binaries in the test directory, excepting boring-test : # opreport image:./test/\* image-exclude:./test/boring-test Differential profile of a binary stored in two archives : # opreport -l /bin/bash { archive:./orig } { archive:./new } Differential profile of an archived binary with the current session : # opreport -l /bin/bash { archive:./orig } { } Profile specification parameters archivepath A path to an archive made with oparchive. Absence of this tag, unlike others, means "the current system", equivalent to specifying "archive:". sessionlist A comma-separated list of session names to resolve in. Absence of this tag, unlike others, means "the current session", equivalent to specifying "session:current". sessionlist A comma-separated list of sessions to exclude. imagelist A comma-separated list of image names to resolve. Each entry may be relative path, glob-style name, or full path, e.g. opreport 'image:/usr/bin/oprofiled,*op*,./opreport' imagelist Same as , but the matching images are excluded. imagelist Same as , but only for images that are for a particular primary binary image (namely, an application). This only makes sense to use if you're using . This includes kernel modules and the kernel when using . imagelist Same as , but the matching images are excluded. eventlist The symbolic event name to match on, e.g. . You can pass a list of events for side-by-side comparison with opreport. When using the timer interrupt, the event is always "TIMER". eventcountlist The event count to match on, e.g. . Note that this value refers to the count value in the event spec you passed to opcontrol or operf when setting up to do a profile run. It has nothing to do with the sample counts in the profile data itself. You can pass a list of events for side-by-side comparison with opreport. When using the timer interrupt, the count is always 0 (indicating it cannot be set). masklist The unit mask value of the event to match on, e.g. . You can pass a list of events for side-by-side comparison with opreport. cpulist Only consider profiles for the given numbered CPU (starting from zero). This is only useful when using CPU profile separation. pidlist Only consider profiles for the given task groups. Unless some program is using threads, the task group ID of a process is the same as its process ID. This option corresponds to the POSIX notion of a thread group. This is only useful when using per-process profile separation. tidlist Only consider profiles for the given threads. When using recent thread libraries, all threads in a process share the same task group ID, but have different thread IDs. You can use this option in combination with to restrict the results to particular threads within a process. This is only useful when using per-process profile separation. Locating and managing binary images Each session's sample files can be found in the $SESSION_DIR/samples/ directory (default when using legacy mode: /var/lib/oprofile/samples/; default when using operf: <cur_dir>/oprofile_data/samples/). These are used, along with the binary image files, to produce human-readable data. In some circumstances (e.g., kernel modules), OProfile will not be able to find the binary images. All the tools have an option to which you can pass a comma-separated list of alternate paths to search. For example, I can let OProfile find my 2.6 modules by using --image-path /lib/modules/2.6.0/kernel/. It is your responsibility to ensure that the correct images are found when using this option. Note that if a binary image changes after the sample file was created, you won't be able to get useful symbol-based data out. This situation is detected for you. If you replace a binary, you should make sure to save the old binary if you need to do comparative profiles. What to do when you don't get any results When attempting to get output, you may see the error : error: no sample files found: profile specification too strict ? What this is saying is that the profile specification you passed in, when matched against the available sample files, resulted in no matches. There are a number of reasons this might happen: spelling You specified a binary name, but spelt it wrongly. Check your spelling ! profiler wasn't running Make very sure that OProfile was actually up and running when you ran the application you wish to profile. application didn't run long enough Remember OProfile is a statistical profiler - you're not guaranteed to get samples for short-running programs. You can help this by using a lower count for the performance counter, so there are a lot more samples taken per second. application spent most of its time in libraries Similarly, if the application spends little time in the main binary image itself, with most of it spent in shared libraries it uses, you might not see any samples for the binary image (i.e., executable) itself. If you're using OProfile legacy mode profiling, then we recommend using opcontrol --separate=lib before the profiling session so that opreport and friends show the library profiles on a per-application basis. This is done automatically when profiling with operf, so no special setup is necessary. specification was really too strict For example, you specified something like , but no task with that group ID ever ran the code. application didn't generate any events If you're using a particular event counter, for example counting MMX operations, the code might simply have not generated any events in the first place. Verify the code you're profiling does what you expect it to. you didn't specify kernel module name correctly If you're trying to get reports for a kernel module, make sure to use the option, and specify the module name with the .ko extension. Check if the module is one loaded from initrd. Image summaries and symbol summaries (<command>opreport</command>) The opreport utility is the primary utility you will use for getting formatted data out of OProfile. It produces two types of data: image summaries and symbol summaries. An image summary lists the number of samples for individual binary images such as libraries or applications. Symbol summaries provide per-symbol profile data. In the following example, we're getting an image summary for the whole system: $ opreport --long-filenames CPU: PIII, speed 863.195 MHz (estimated) Counted CPU_CLK_UNHALTED events (clocks processor is not halted) with a unit mask of 0x00 (No unit mask) count 23150 905898 59.7415 /usr/lib/gcc-lib/i386-redhat-linux/3.2/cc1plus 214320 14.1338 /boot/2.6.0/vmlinux 103450 6.8222 /lib/i686/libc-2.3.2.so 60160 3.9674 /usr/local/bin/madplay 31769 2.0951 /usr/local/oprofile-pp/bin/oprofiled 26550 1.7509 /usr/lib/libartsflow.so.1.0.0 23906 1.5765 /usr/bin/as 18770 1.2378 /oprofile 15528 1.0240 /usr/lib/qt-3.0.5/lib/libqt-mt.so.3.0.5 11979 0.7900 /usr/X11R6/bin/XFree86 11328 0.7471 /bin/bash ... If we had specified in the previous command, we would have gotten a symbol summary of all the images across the entire system. We can restrict this to only part of the system profile; for example, below is a symbol summary of the OProfile daemon. Note that as we used opcontrol --separate=lib,kernel, symbols from images that oprofiled has used are also shown. $ opreport -l -p /lib/modules/`uname -r` `which oprofiled` 2>/dev/null | more CPU: Core 2, speed 2.534e+06 MHz (estimated) Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (Unhalted core cycles) count 100000 samples % image name symbol name 1353 24.9447 vmlinux sidtab_context_to_sid 500 9.2183 vmlinux avtab_hash_eval 154 2.8392 vmlinux __link_path_walk 152 2.8024 vmlinux d_prune_aliases 120 2.2124 vmlinux avtab_search_node 104 1.9174 vmlinux find_next_bit 85 1.5671 vmlinux selinux_file_fcntl 82 1.5118 vmlinux avtab_write 81 1.4934 oprofiled odb_update_node_with_offset 73 1.3459 oprofiled opd_process_samples 72 1.3274 vmlinux avc_has_perm_noaudit 61 1.1246 libc-2.12.so _IO_vfscanf 59 1.0878 ext4.ko ext4_mark_iloc_dirty ... These are the two basic ways you are most likely to use regularly, but opreport can do a lot more than that, as described below. Merging separate profiles If you have used one of the options whilst profiling, there can be several separate profiles for a single binary image within a session. Normally the output will keep these images separated. So, for example, if you profiled with separation on a per-cpu basis (opcontrol --separate=cpu or operf --separate-cpu), you would see separate columns in the output of opreport for each CPU where samples were recorded. But it can be useful to merge these results back together to make the report more readable. The option allows you to do that. Side-by-side multiple results If you have used multiple events when profiling, by default you get side-by-side results of each event's sample values from opreport. You can restrict which events to list by appropriate use of the profile specifications, etc. Callgraph output This section provides details on how to use the OProfile callgraph feature. Callgraph details When using the option, you can see what functions are calling other functions in the output. Consider the following program: #include <string.h> #include <stdlib.h> #include <stdio.h> #define SIZE 500000 static int compare(const void *s1, const void *s2) { return strcmp(s1, s2); } static void repeat(void) { int i; char *strings[SIZE]; char str[] = "abcdefghijklmnopqrstuvwxyz"; for (i = 0; i < SIZE; ++i) { strings[i] = strdup(str); strfry(strings[i]); } qsort(strings, SIZE, sizeof(char *), compare); } int main() { while (1) repeat(); } When running with the call-graph option, OProfile will record the function stack every time it takes a sample. opreport --callgraph outputs an entry for each function, where each entry looks similar to: samples % image name symbol name 197 0.1548 cg main 127036 99.8452 cg repeat 84590 42.5084 libc-2.3.2.so strfry 84590 66.4838 libc-2.3.2.so strfry [self] 39169 30.7850 libc-2.3.2.so random_r 3475 2.7312 libc-2.3.2.so __i686.get_pc_thunk.bx ------------------------------------------------------------------------------- Here the non-indented line is the function we're focussing upon (strfry()). This line is the same as you'd get from a normal opreport output. Above the non-indented line we find the functions that called this function (for example, repeat() calls strfry()). The samples and percentage values here refer to the number of times we took a sample where this call was found in the stack; the percentage is relative to all other callers of the function we're focussing on. Note that these values are not call counts; they only reflect the call stack every time a sample is taken; that is, if a call is found in the stack at the time of a sample, it is recorded in this count. Below the line are functions that are called by strfry() (called callees). It's clear here that strfry() calls random_r(). We also see a special entry with a "[self]" marker. This records the normal samples for the function, but the percentage becomes relative to all callees. This allows you to compare time spent in the function itself compared to functions it calls. Note that if a function calls itself, then it will appear in the list of callees of itself, but without the "[self]" marker; so recursive calls are still clearly separable. You may have noticed that the output lists main() as calling strfry(), but it's clear from the source that this doesn't actually happen. See for an explanation. Callgraph and JIT support Callgraph output where anonymously mapped code is in the callstack can sometimes be misleading. For all such code, the samples for the anonymously mapped code are stored in a samples subdirectory named {anon:anon}/<tgid>.<begin_addr>.<end_addr>. As stated earlier, if this anonymously mapped code is JITed code from a supported VM like Java, OProfile creates an ELF file to provide a (somewhat) permanent backing file for the code. However, when viewing callgraph output, any anonymously mapped code in the callstack will be attributed to anon (<tgid>: range:<begin_addr>-<end_addr>, even if a .jo ELF file had been created for it. See the example below. ------------------------------------------------------------------------------- 1 2.2727 libj9ute23.so java.bin traceV 2 4.5455 libj9ute23.so java.bin utsTraceV 4 9.0909 libj9trc23.so java.bin fillInUTInterfaces 37 84.0909 libj9trc23.so java.bin twGetSequenceCounter 8 0.0154 libj9prt23.so java.bin j9time_hires_clock 27 61.3636 anon (tgid:10014 range:0x100000-0x103000) java.bin (no symbols) 9 20.4545 libc-2.4.so java.bin gettimeofday 8 18.1818 libj9prt23.so java.bin j9time_hires_clock [self] ------------------------------------------------------------------------------- The output shows that "anon (tgid:10014 range:0x100000-0x103000)" was a callee of j9time_hires_clock, even though the ELF file 10014.jo was created for this profile run. Unfortunately, there is currently no way to correlate that anonymous callgraph entry with its corresponding .jo file. Differential profiles with <command>opreport</command> Often, we'd like to be able to compare two profiles. For example, when analysing the performance of an application, we'd like to make code changes and examine the effect of the change. This is supported in opreport by giving a profile specification that identifies two different profiles. The general form is of: $ opreport <shared-spec> { <first-profile> } { <second-profile> } We lost our Dragon book down the back of the sofa, so you have to be careful to have spaces around those braces, or things will get hopelessly confused. We can only apologise. For each of the profiles, the shared section is prefixed, and then the specification is analysed. The usual parameters work both within the shared section, and in the sub-specification within the curly braces. A typical way to use this feature is with archives created with oparchive. Let's look at an example: $ ./a $ oparchive -o orig ./a $ opcontrol --reset # edit and recompile a $ ./a # now compare the current profile of a with the archived profile $ opreport -xl ./a { archive:./orig } { } CPU: PIII, speed 863.233 MHz (estimated) Counted CPU_CLK_UNHALTED events (clocks processor is not halted) with a unit mask of 0x00 (No unit mask) count 100000 samples % diff % symbol name 92435 48.5366 +0.4999 a 54226 --- --- c 49222 25.8459 +++ d 48787 25.6175 -2.2e-01 b Note that we specified an empty second profile in the curly braces, as we wanted to use the current session; alternatively, we could have specified another archive, or a tgid etc. We specified the binary a in the shared section, so we matched that in both the profiles we're diffing. As in the normal output, the results are sorted by the number of samples, and the percentage field represents the relative percentage of the symbol's samples in the second profile. Notice the new column in the output. This value represents the percentage change of the relative percent between the first and the second profile: roughly, "how much more important this symbol is". Looking at the symbol a(), we can see that it took roughly the same amount of the total profile in both the first and the second profile. The function c() was not in the new profile, so has been marked with ---. Note that the sample value is the number of samples in the first profile; since we're displaying results for the second profile, we don't list a percentage value for it, as it would be meaningless. d() is new in the second profile, and consequently marked with +++. When comparing profiles between different binaries, it should be clear that functions can change in terms of VMA and size. To avoid this problem, opreport considers a symbol to be the same if the symbol name, image name, and owning application name all match; any other factors are ignored. Note that the check for application name means that trying to compare library profiles between two different applications will not work as you might expect: each symbol will be considered different. Anonymous executable mappings Many applications, typically ones involving dynamic compilation into machine code (just-in-time, or "JIT", compilation), have executable mappings that are not backed by an ELF file. opreport has basic support for showing the samples taken in these regions; for example: $ opreport /usr/bin/mono -l CPU: ppc64 POWER5, speed 1654.34 MHz (estimated) Counted CYCLES events (Processor Cycles using continuous sampling) with a unit mask of 0x00 (No unit mask) count 100000 samples % image name symbol name 47 58.7500 mono (no symbols) 14 17.5000 anon (tgid:3189 range:0xf72aa000-0xf72fa000) (no symbols) 9 11.2500 anon (tgid:3189 range:0xf6cca000-0xf6dd9000) (no symbols) . . . . Note that, since such mappings are dependent upon individual invocations of a binary, these mappings are always listed as a dependent image, even when using the legacy mode command. Equally, the results are not affected by the option. As shown in the opreport output above, OProfile is unable to attribute the samples to any symbol(s) because there is no ELF file for this code. Enhanced support for JITed code is now available for some virtual machines; e.g., the Java Virtual Machine. For details about OProfile output for JITed code, see . For more information about JIT support in OProfile, see . XML formatted output The --xml option can be used to generate XML instead of the usual text format. This allows opreport to eliminate some of the constraints dictated by the two dimensional text format. For example, it is possible to separate the sample data across multiple events, cpus and threads. The XML schema implemented by opreport is found in doc/opreport.xsd. It contains more detailed comments about the structure of the XML generated by opreport. Since XML is consumed by a client program rather than a user, its structure is fairly static. In particular, the --sort option is incompatible with the --xml option. Percentages are not dislayed in the XML so the options related to percentages will have no effect. Full pathnames are always displayed in the XML so --long-filenames is not necessary. The --details option will cause all of the individual sample data to be included in the XML as well as the instruction byte stream for each symbol (for doing disassembly) and can result in very large XML files. Options for <command>opreport</command> Accumulate sample and percentage counts in the symbol list. Show callgraph information. Show source file and line for each symbol. none: no demangling. normal: use default demangler (default) smart: use pattern-matching to make C++ symbol demangling more readable. Show per-instruction details for all selected symbols. Note that, for binaries without symbol information, the VMA values shown are raw file offsets for the image binary. Do not include application-specific images for libraries, kernel modules and the kernel. This option only makes sense if the profile session used --separate. Exclude all the symbols in the given comma-separated list. Make all percentages relative to the whole profile. Show help message. Comma-separated list of additional paths to search for binaries. This is needed to find kernel modules. A path to a filesystem to search for additional binaries. Only include symbols in the given comma-separated list. Output full paths instead of basenames. Merge any profiles separated in a --separate session. Don't output a header detailing profiling parameters. Output to the given file instead of stdout. Reverse the sort from the default. dir_path Use sample database out of directory dir_path instead of the default location (/var/lib/oprofile). Show the VMA address of each symbol (off by default). Sort the list of symbols by, respectively, symbol address, number of samples, symbol name, debug filename and line number, binary image filename. List per-symbol information instead of a binary image summary. Only output data for symbols that have more than the given percentage of total samples. Give verbose debugging output. Show version. Generate XML output. Outputting annotated source (<command>opannotate</command>) The opannotate utility generates annotated source files or assembly listings, optionally mixed with source. If you want to see the source file, the profiled application needs to have debug information, and the source must be available through this debug information. For GCC, you must use the option when you are compiling. If the binary doesn't contain sufficient debug information, you can still use opannotate to get annotated assembly as long as the binary has (at least) symbol information. Note that for the reason explained in the results can be inaccurate. The debug information itself can add other problems; for example, the line number for a symbol can be incorrect. Assembly instructions can be re-ordered and moved by the compiler, and this can lead to crediting source lines with samples not really "owned" by this line. Also see . You can output the annotation to one single file, containing all the source found using the . You can use this in conjunction with to get combined source/assembly output. You can also output a directory of annotated source files that maintains the structure of the original sources. Each line in the annotated source is prepended with the samples for that line. Additionally, each symbol is annotated giving details for the symbol as a whole. An example: $ opannotate --source --output-dir=annotated /usr/local/oprofile-pp/bin/oprofiled $ ls annotated/home/moz/src/oprofile-pp/daemon/ opd_cookie.h opd_image.c opd_kernel.c opd_sample_files.c oprofiled.c Line numbers are maintained in the source files, but each file has a footer appended describing the profiling details. The actual annotation looks something like this : ... :static uint64_t pop_buffer_value(struct transient * trans) 11510 1.9661 :{ /* pop_buffer_value total: 89901 15.3566 */ : uint64_t val; : 10227 1.7469 : if (!trans->remaining) { : fprintf(stderr, "BUG: popping empty buffer !\n"); : exit(EXIT_FAILURE); : } : : val = get_buffer_value(trans->buffer, 0); 2281 0.3896 : trans->remaining--; 2296 0.3922 : trans->buffer += kernel_pointer_size; : return val; 10454 1.7857 :} ... The first number on each line is the number of samples, whilst the second is the relative percentage of total samples. Locating source files Of course, opannotate needs to be able to locate the source files for the binary image(s) in order to produce output. Some binary images have debug information where the given source file paths are relative, not absolute. You can specify search paths to look for these files (similar to gdb's command) with the option. Sometimes you may have a binary image which gives absolute paths for the source files, but you have the actual sources elsewhere (commonly, you've installed an SRPM for a binary on your system and you want annotation from an existing profile). You can use the option to redirect OProfile to look somewhere else for source files. For example, imagine we have a binary generated from a source file that is given in the debug information as /tmp/build/libfoo/foo.c, and you have the source tree matching that binary installed in /home/user/libfoo/. You can redirect OProfile to find foo.c correctly like this : $ opannotate --source --base-dirs=/tmp/build/libfoo/ --search-dirs=/home/user/libfoo/ --output-dir=annotated/ /lib/libfoo.so You can specify multiple (comma-separated) paths to both options. Usage of <command>opannotate</command> Output annotated assembly. If this is combined with --source, then mixed source / assembly annotations are output. Comma-separated list of path prefixes. This can be used to point OProfile to a different location for source files when the debug information specifies an absolute path on your system for the source that does not exist. The prefix is stripped from the debug source file paths, then searched in the search dirs specified by . none: no demangling. normal: use default demangler (default) smart: use pattern-matching to make C++ symbol demangling more readable. Do not include application-specific images for libraries, kernel modules and the kernel. This option only makes sense if the profile session used --separate. Exclude all files in the given comma-separated list of glob patterns. Exclude all the symbols in the given comma-separated list. Show help message. Comma-separated list of additional paths to search for binaries. This is needed to find kernel modules. A path to a filesystem to search for additional binaries. Only include files in the given comma-separated list of glob patterns. Only include symbols in the given comma-separated list. Pass the given parameters as extra values when calling objdump. If more than one option is to be passed to objdump, the parameters must be enclosed in a quoted string. An example of where this option is useful is when your toolchain does not automatically recognize instructions that are specific to your processor. For example, on IBM POWER7/RHEL 6, objdump must be told that a binary file may have POWER7-specific instructions. The opannotate option to show the POWER7-specific instructions is: --objdump-params=-Mpower7 The opannotate option to show the POWER7-specific instructions, the source code (--source) and the line numbers (-l) would be: --objdump-params="-Mpower7 -l --source" Output directory. This makes opannotate output one annotated file for each source file. This option can't be used in conjunction with --assembly. Comma-separated list of paths to search for source files. This is useful to find source files when the debug information only contains relative paths. Output annotated source. This requires debugging information to be available for the binaries. Only output data for symbols that have more than the given percentage of total samples. Give verbose debugging output. Show version. OProfile results with JIT samples After profiling a Java (or other supported VM) application, the OProfile JIT support creates ELF binaries from the intermediate files that were written by the agent library. The ELF binaries are named <tgid>.jo. With the symbol information stored in these ELF files, it is possible to map samples to the appropriate symbols. The usual analysis tools (opreport and/or opannotate) can now be used to get symbols and assembly code for the instrumented VM processes. Below is an example of a profile report of a Java application that has been instrumented with the provided agent library. $ opreport -l /usr/lib/jvm/jre-1.5.0-ibm/bin/java CPU: Core Solo / Duo, speed 2167 MHz (estimated) Counted CPU_CLK_UNHALTED events (Unhalted clock cycles) with a unit mask of 0x00 (Unhalted core cycles) count 100000 samples % image name symbol name 186020 50.0523 no-vmlinux no-vmlinux (no symbols) 34333 9.2380 7635.jo java void test.f1() 19022 5.1182 libc-2.5.so libc-2.5.so _IO_file_xsputn@@GLIBC_2.1 18762 5.0483 libc-2.5.so libc-2.5.so vfprintf 16408 4.4149 7635.jo java void test$HelloThread.run() 16250 4.3724 7635.jo java void test$test_1.f2(int) 15303 4.1176 7635.jo java void test.f2(int, int) 13252 3.5657 7635.jo java void test.f2(int) 5165 1.3897 7635.jo java void test.f4() 955 0.2570 7635.jo java void test$HelloThread.run()~ Depending on the JVM that is used, certain options of opreport and opannotate do NOT work since they rely on debug information (e.g. source code line number) that is not always available. The Sun JVM does provide the necessary debug information via the JVMTI[PI] interface, but other JVMs do not. As you can see in the opreport output, the JIT support agent for Java generates symbols to include the class and method signature. A symbol with the suffix ˜<n> (e.g. void test$HelloThread.run()˜1) means that this is the <n>th occurrence of the identical name. This happens if a method is re-JITed. A symbol with the suffix %<n>, means that the address space of this symbol was reused during the sample session (see ). The value <n> is the percentage of time that this symbol/code was present in relation to the total lifetime of all overlapping other symbols. A symbol of the form <return_val> <class_name>$<method_sig> denotes an inner class. <command>gprof</command>-compatible output (<command>opgprof</command>) If you're familiar with the output produced by GNU gprof, you may find opgprof useful. It takes a single binary as an argument, and produces a gmon.out file for use with gprof -p. If call-graph profiling is enabled, then this is also included. $ opgprof `which oprofiled` # generates gmon.out file $ gprof -p `which oprofiled` | head Flat profile: Each sample counts as 1 samples. % cumulative self self total time samples samples calls T1/call T1/call name 33.13 206237.00 206237.00 odb_insert 22.67 347386.00 141149.00 pop_buffer_value 9.56 406881.00 59495.00 opd_put_sample 7.34 452599.00 45718.00 opd_find_image 7.19 497327.00 44728.00 opd_process_samples Usage of <command>opgprof</command> Show help message. Comma-separated list of additional paths to search for binaries. This is needed to find kernel modules. A path to a filesystem to search for additional binaries. Output to the given file instead of the default, gmon.out Only output data for symbols that have more than the given percentage of total samples. Give verbose debugging output. Show version. Analyzing profile data on another system (<command>oparchive</command>) The oparchive utility generates a directory populated with executable, debug, and oprofile sample files. This directory can be copied to another (host) machine and analyzed offline, with no further need to access the data collection machine (target). The following command, executed on the target system, will collect the sample files, the executables associated with the sample files, and the debuginfo files associated with the executables and copy them into /tmp/current_data: # oparchive -o /tmp/current_data When transferring archived profile data to a host machine for offline analysis, you need to determine if the oprofile ABI format is compatible between the target system and the host system; if it isn't, you must run the opimport command to convert the target's sample data files to the format of your host system. See for more details. After your profile data is transferred to the host system and (if necessary) you have run the opimport command to convert the file format, you can now run the opreport and opannotate commands. However, you must provide an "archive specification" to let these post-processing tools know where to find of the profile data (sample files, executables, etc.); for example: # opreport archive:/home/user1/my_oprofile_archive --symbols Furthermore, if your profile was collected on your target system into a session-dir other than /var/lib/oprofile, the oparchive command will display a message similar to the following: # NOTE: The sample data in this archive is located at /home/user1/test-stuff/oprofile_data instead of the standard location of /var/lib/oprofile. Hence, when using opreport and other post-processing tools on this archive, you must pass the following option: --session-dir=/home/user1/test-stuff/oprofile_data Then the above opreport example would have to include that option. In some host/target development environments, all target executables, libraries, and debuginfo files are stored in a root directory on the host to facilitate offline analysis. In such cases, the oparchive command collects more data than is necessary; so, when copying the resulting output of oparchive, you can skip all of the executables, etc, and just archive the $SESSION_DIR tree located within the output directory you specified in your oparchive command. Then, when running the opreport or opannotate commands on your host system, pass the option to point to the location of your target's executables, etc. Usage of <command>oparchive</command> Show help message. Do not include application-specific images for libraries, kernel modules and the kernel. This option only makes sense if the profile session used --separate. Comma-separated list of additional paths to search for binaries. This is needed to find kernel modules. A path to a filesystem to search for additional binaries. Output to the given directory. There is no default. This must be specified. Only list the files that would be archived, don't copy them. Give verbose debugging output. Show version. Converting sample database files (<command>opimport</command>) This utility converts sample database files from a foreign binary format (abi) to the native format. This is required when moving sample files to a (host) system other than the one used for collection (target system), and the host and target systems are different architectures. The abi format of the sample files to be imported is described in a text file located in $SESSION_DIR/abi. If you are unsure if your target and host systems have compatible architectures (in regard to the OProfile ABI), simply diff a $SESSION_DIR/abi file from the target system with one from the host system. If any differences show up at all, you must run the opimport command. The oparchive command should be used on the machine where the profile was taken (target) in order to collect sample files and all other necessary information. The archive directory that is the output from oparchive should be copied to the system where you wish to perform your performance analysis (host). The following command converts an input sample file to the specified output sample file using the given abi file as a binary description of the input file and the curent platform abi as a binary description of the output file. (NOTE: The ellipses are used to make the example more compact and cannot be used in an actual command line.) # opimport -a /tmp/foreign-abi -o /tmp/imported/.../GLOBAL_POWER_EVENTS.200000.1.all.all.all /tmp/archived/var/lib/.../mprime/GLOBAL_POWER_EVENTS.200000.1.all.all.all Since opimport converts just one file at a time, an example shell script is provided below that will perform an import/conversion of all sample files in a samples directory collected from the target system. #!/bin/bash Usage: my-import.sh <input-abi-pathname> # NOTE: Start from the "samples" directory containing the "current" directory # to be imported mkdir current-imported cd current-imported; (cd ../current; find . -type d ! -name .) |xargs mkdir cd ../current; mv stats ../StatsSave; find . -type f | while read line; do opimport -a $1 -o ../current-imported/$line $line; done; mv ../StatsSave stats; Example usage: Assume that on the target system, a profile was collected using a session-dir of /var/lib/oprofile, and then oparchive -o profile1 was run. Then the profile1 directory is copied to the host system for analysis. To import the sample data in profile1, you would perform the following steps: $cd profile1/var/lib/oprofile/samples $my-import.sh `pwd`/../abi Usage of <command>opimport</command> Show help message. Input abi file description location. Force conversion even if the input and output abi are identical. Specify the output filename. If the output file already exists, the file is not overwritten but data are accumulated in. Sample filename are informative for post profile tools and must be kept identical, in other word the pathname from the first path component containing a '{' must be kept as it in the output filename. Give verbose debugging output. Show version. Interpreting profiling results The standard caveats of profiling apply in interpreting the results from OProfile: profile realistic situations, profile different scenarios, profile for as long as a time as possible, avoid system-specific artifacts, don't trust the profile data too much. Also bear in mind the comments on the performance counters above - you cannot rely on totally accurate instruction-level profiling. However, for almost all circumstances the data can be useful. Ideally a utility such as Intel's VTUNE would be available to allow careful instruction-level analysis; go hassle Intel for this, not me ;) Profiling interrupt latency This is an example of how the latency of delivery of profiling interrupts can impact the reliability of the profiling data. This is pretty much a worst-case-scenario example: these problems are fairly rare. double fun(double a, double b, double c) { double result = 0; for (int i = 0 ; i < 10000; ++i) { result += a; result *= b; result /= c; } return result; } Here the last instruction of the loop is very costly, and you would expect the result reflecting that - but (cutting the instructions inside the loop): $ opannotate -a -t 10 ./a.out 88 15.38% : 8048337: fadd %st(3),%st 48 8.391% : 8048339: fmul %st(2),%st 68 11.88% : 804833b: fdiv %st(1),%st 368 64.33% : 804833d: inc %eax : 804833e: cmp $0x270f,%eax : 8048343: jle 8048337 The problem comes from the x86 hardware; when the counter overflows the IRQ is asserted but the hardware has features that can delay the NMI interrupt: x86 hardware is synchronous (i.e. cannot interrupt during an instruction); there is also a latency when the IRQ is asserted, and the multiple execution units and the out-of-order model of modern x86 CPUs also causes problems. This is the same function, with annotation : $ opannotate -s -t 10 ./a.out :double fun(double a, double b, double c) :{ /* _Z3funddd total: 572 100.0% */ : double result = 0; 368 64.33% : for (int i = 0 ; i < 10000; ++i) { 88 15.38% : result += a; 48 8.391% : result *= b; 68 11.88% : result /= c; : } : return result; :} The conclusion: don't trust samples coming at the end of a loop, particularly if the last instruction generated by the compiler is costly. This case can also occur for branches. Always bear in mind that samples can be delayed by a few cycles from its real position. That's a hardware problem and OProfile can do nothing about it. Kernel profiling Interrupt masking OProfile uses non-maskable interrupts (NMI) on the P6 generation, Pentium 4, Athlon, Opteron, Phenom, and Turion processors. These interrupts can occur even in sections of the kernel where interrupts are disabled, allowing collection of samples in virtually all executable code. The timer interrupt mode and Itanium 2 collection mechanisms use maskable interrupts; therefore, these profiling mechanisms have "sample shadows", or blind spots: regions where no samples will be collected. Typically, the samples will be attributed to the code immediately after the interrupts are re-enabled. Idle time Your kernel is likely to support halting the processor when a CPU is idle. As the typical hardware events like CPU_CLK_UNHALTED do not count when the CPU is halted, the kernel profile will not reflect the actual amount of time spent idle. You can change this behaviour by booting with the option, which uses a different idle routine. This will appear as poll_idle() in your kernel profile. Profiling kernel modules OProfile profiles kernel modules by default. However, there are a couple of problems you may have when trying to get results. First, you may have booted via an initrd; this means that the actual path for the module binaries cannot be determined automatically. To get around this, you can use the option to the profiling tools to specify where to look for the kernel modules. In kernel version 2.6, the information on where kernel module binaries are located was removed. This means OProfile needs guiding with the option to find your modules. Normally, you can just use your standard module top-level directory for this. Note that due to this problem, OProfile cannot check that the modification times match; it is your responsibility to make sure you do not modify a binary after a profile has been created. If you have run insmod or modprobe to insert a module in a particular directory, it is important that you specify this directory with the option first, so that it over-rides an older module binary that might exist in other directories you've specified with . It is up to you to make sure that these values are correct: the kernel simply does not provide enough information for OProfile to get this information. Interpreting call-graph profiles Sometimes the results from call-graph profiles may be different to what you expect to see. The first thing to check is whether the target binaries where compiled with frame pointers enabled (if the binary was compiled using gcc's option, you will not get meaningful results). Note that as of this writing, the GCC developers plan to disable frame pointers by default. The Linux kernel is built without frame pointers by default; there is a configuration option you can use to turn it on under the "Kernel Hacking" menu. Often you may see a caller of a function that does not actually directly call the function you're looking at (e.g. if a() calls b(), which in turn calls c(), you may see an entry for a()->c()). What's actually occurring is that we are taking samples at the very start (or the very end) of c(); at these few instructions, we haven't yet created the new function's frame, so it appears as if a() is calling directly into c(). Be careful not to be misled by these entries. Like the rest of OProfile, call-graph profiling uses a statistical approach; this means that sometimes a backtrace sample is truncated, or even partially wrong. Bear this in mind when examining results. Inaccuracies in annotated source Side effects of optimizations The compiler can introduce some pitfalls in the annotated source output. The optimizer can move pieces of code in such manner that two line of codes are interlaced (instruction scheduling). Also debug info generated by the compiler can show strange behavior. This is especially true for complex expressions e.g. inside an if statement: if (a && .. b && .. c &&) here the problem come from the position of line number. The available debug info does not give enough details for the if condition, so all samples are accumulated at the position of the right brace of the expression. Using opannotate can help to show the real samples at an assembly level. Prologues and epilogues The compiler generally needs to generate "glue" code across function calls, dependent on the particular function call conventions used. Additionally other things need to happen, like stack pointer adjustment for the local variables; this code is known as the function prologue. Similar code is needed at function return, and is known as the function epilogue. This will show up in annotations as samples at the very start and end of a function, where there is no apparent executable code in the source. Inlined functions You may see that a function is credited with a certain number of samples, but the listing does not add up to the correct total. To pick a real example : :internal_sk_buff_alloc_security(struct sk_buff *skb) 353 2.342% :{ /* internal_sk_buff_alloc_security total: 1882 12.48% */ : : sk_buff_security_t *sksec; 15 0.0995% : int rc = 0; : 10 0.06633% : sksec = skb->lsm_security; 468 3.104% : if (sksec && sksec->magic == DSI_MAGIC) { : goto out; : } : : sksec = (sk_buff_security_t *) get_sk_buff_memory(skb); 3 0.0199% : if (!sksec) { 38 0.2521% : rc = -ENOMEM; : goto out; 10 0.06633% : } : memset(sksec, 0, sizeof (sk_buff_security_t)); 44 0.2919% : sksec->magic = DSI_MAGIC; 32 0.2123% : sksec->skb = skb; 45 0.2985% : sksec->sid = DSI_SID_NORMAL; 31 0.2056% : skb->lsm_security = sksec; : : out: : 146 0.9685% : return rc; : 98 0.6501% :} Here, the function is credited with 1,882 samples, but the annotations below do not account for this. This is usually because of inline functions - the compiler marks such code with debug entries for the inline function definition, and this is where opannotate annotates such samples. In the case above, memset is the most likely candidate for this problem. Examining the mixed source/assembly output can help identify such results. This problem is more visible when there is no source file available, in the following example it's trivially visible the sums of symbols samples is less than the number of the samples for this file. The difference must be accounted to inline functions. /* * Total samples for file : "arch/i386/kernel/process.c" * * 109 2.4616 */ /* default_idle total: 84 1.8970 */ /* cpu_idle total: 21 0.4743 */ /* flush_thread total: 1 0.0226 */ /* prepare_to_copy total: 1 0.0226 */ /* __switch_to total: 18 0.4065 */ The missing samples are not lost, they will be credited to another source location where the inlined function is defined. The inlined function will be credited from multiple call site and merged in one place in the annotated source file so there is no way to see from what call site are coming the samples for an inlined function. When running opannotate, you may get a warning "some functions compiled without debug information may have incorrect source line attributions". In some rare cases, OProfile is not able to verify that the derived source line is correct (when some parts of the binary image are compiled without debugging information). Be wary of results if this warning appears. Furthermore, for some languages the compiler can implicitly generate functions, such as default copy constructors. Such functions are labelled by the compiler as having a line number of 0, which means the source annotation can be confusing. Inaccuracy in line number information Depending on your compiler you can fall into the following problem: struct big_object { int a[500]; }; int main() { big_object a, b; for (int i = 0 ; i != 1000 * 1000; ++i) b = a; return 0; } Compiled with gcc 3.0.4 the annotated source is clearly inaccurate: :int main() :{ /* main total: 7871 100% */ : big_object a, b; : for (int i = 0 ; i != 1000 * 1000; ++i) : b = a; 7871 100% : return 0; :} The problem here is distinct from the IRQ latency problem; the debug line number information is not precise enough; again, looking at output of opannoatate -as can help. :int main() :{ : big_object a, b; : for (int i = 0 ; i != 1000 * 1000; ++i) : 80484c0: push %ebp : 80484c1: mov %esp,%ebp : 80484c3: sub $0xfac,%esp : 80484c9: push %edi : 80484ca: push %esi : 80484cb: push %ebx : b = a; : 80484cc: lea 0xfffff060(%ebp),%edx : 80484d2: lea 0xfffff830(%ebp),%eax : 80484d8: mov $0xf423f,%ebx : 80484dd: lea 0x0(%esi),%esi : return 0; 3 0.03811% : 80484e0: mov %edx,%edi : 80484e2: mov %eax,%esi 1 0.0127% : 80484e4: cld 8 0.1016% : 80484e5: mov $0x1f4,%ecx 7850 99.73% : 80484ea: repz movsl %ds:(%esi),%es:(%edi) 9 0.1143% : 80484ec: dec %ebx : 80484ed: jns 80484e0 : 80484ef: xor %eax,%eax : 80484f1: pop %ebx : 80484f2: pop %esi : 80484f3: pop %edi : 80484f4: leave : 80484f5: ret So here it's clear that copying is correctly credited with of all the samples, but the line number information is misplaced. objdump -dS exposes the same problem. Note that maintaining accurate debug information for compilers when optimizing is difficult, so this problem is not suprising. The problem of debug information accuracy is also dependent on the binutils version used; some BFD library versions contain a work-around for known problems of gcc, some others do not. This is unfortunate but we must live with that, since profiling is pointless when you disable optimisation (which would give better debugging entries). Assembly functions Often the assembler cannot generate debug information automatically. This means that you cannot get a source report unless you manually define the neccessary debug information; read your assembler documentation for how you might do that. The only debugging info needed currently by OProfile is the line-number/filename-VMA association. When profiling assembly without debugging info you can always get report for symbols, and optionally for VMA, through opreport -l or opreport -d, but this works only for symbols with the right attributes. For gas you can get this by .globl foo .type foo,@function whilst for nasm you must use GLOBAL foo:function ; [1] Note that OProfile does not need the global attribute, only the function attribute. Overlapping symbols in JITed code Some virtual machines (e.g., Java) may re-JIT a method, resulting in previously allocated space for a piece of compiled code to be reused. This means that, at one distinct code address, multiple symbols/methods may be present during the run time of the application. Since OProfile samples are buffered and don′t have timing information, there is no way to correlate samples with the (possibly) varying address ranges in which the code for a symbol may reside. An alternative would be flushing the OProfile sampling buffer when we get an unload event, but this could result in high overhead. To moderate the problem of overlapping symbols, OProfile tries to select the symbol that was present at this address range most of the time. Additionally, other overlapping symbols are truncated in the overlapping area. This gives reasonable results, because in reality, address reuse typically takes place during phase changes of the application -- in particular, during application startup. Thus, for optimum profiling results, start the sampling session after application startup and burn in. Using operf to profile fork/execs When profiling an application that forks one or more new processes, operf will record samples for both the parent process and forked processes. This is also true even if the forked process performs an exec of some sort (e.g., execvp). If the process does not perform an exec, you will see that opreport will attribute samples for the forked process to the main application executable. On the other hand, if the forked process does perform an exec, then opreport will attribute samples to the executable being exec'ed. To demonstrate this, consider the following examples. When using operf to profile a single application (either with the --pid option or command option), the normal opreport summary output (i.e., invoking opreport with no options) looks something like the following: CPU_CLK_UNHALT...| samples| %| ------------------ 112342 100.000 sprintft CPU_CLK_UNHALT...| samples| %| ------------------ 104209 92.7605 libc-2.12.so 7273 6.4740 sprintft 858 0.7637 no-vmlinux 2 0.0018 ld-2.12.so But if you profile an application that does a fork/exec, the opreport summary output will show samples for both the main application you profiled, as well as the exec'ed program. An example is shown below where s-m-fork is the main application being profiled, which in turn forks a process that does an execvp of the memcpyt program. CPU_CLK_UNHALT...| samples| %| ------------------ 133382 70.5031 memcpyt CPU_CLK_UNHALT...| samples| %| ------------------ 123852 92.8551 libc-2.12.so 8522 6.3892 memcpyt 1007 0.7550 no-vmlinux 1 7.5e-04 ld-2.12.so 55804 29.4969 s-m-fork CPU_CLK_UNHALT...| samples| %| ------------------ 51801 92.8267 libc-2.12.so 3589 6.4314 s-m-fork 414 0.7419 no-vmlinux Other discrepancies Another cause of apparent problems is the hidden cost of instructions. A very common example is two memory reads: one from L1 cache and the other from memory: the second memory read is likely to have more samples. There are many other causes of hidden cost of instructions. A non-exhaustive list: mis-predicted branch, TLB cache miss, partial register stall, partial register dependencies, memory mismatch stall, re-executed µops. If you want to write programs at the assembly level, be sure to take a look at the Intel and AMD documentation at http://developer.intel.com/ and http://developer.amd.com/devguides.jsp. Controlling the event counter Using <command>ocount</command> This section describes in detail how ocount is used. Unless the option is specified, ocount will use the default event for your system. For most systems, the default event is some cycles-based event, assuming your processor type supports hardware performance counters. The event specification used for ocount is slightly different from that required for profiling -- a count value is not needed. You can see the event information for your CPU using ophelp. More information on event specification can be found at . The ocount command syntax is: ocount [ options ] [ --system-wide | --process-list <pids> | --thread-list <tids> | --cpu-list <cpus> [ command [ args ] ] ] ocount has 5 run modes: system-wide process-list thread-list cpu-list command One and only one of these 5 run modes must be specified when you run ocount. If you run ocount using a run mode other than command [args], press Ctrl-c to stop it when finished counting (e.g., when the monitored process ends). If you background ocount (i.e., with ’&’) while using one these run modes, you must stop it in a controlled manner so that the data collection process can be shut down cleanly and final results can be displayed. Use kill -SIGINT <ocount-PID> for this purpose. Following is a description of the ocount options. The command or application to be profiled. The [args] are the input arguments that the command or application requires. The command and its arguments must be positioned at the end of the command line, after all other ocount options. Use this option to count events for one or more already-running applications, specified via a comma-separated list (PIDs). Event counts will be collected for all children of the passed process(es) as well. Use this option to count events for one or more already-running threads, specified via a comma-separated list (TIDs). Event counts will not be collected for any children of the passed thread(s). This option is for counting events for all processes running on your system. You must have root authority to run ocount in this mode. This option is for counting events on a subset of processors on your system. You must have root authority to run ocount in this mode. This is a comma-separated list, where each element in the list may be either a single processor number or a range of processor numbers; for example: ’-C 2,3,4-11,15’. This option is for passing a comma-separated list of event specifications for counting. Each event spec is of the form: name[:unitmask[:kernel[:user]]] When no event specification is given, the default event for the running processor type will be used for counting. Use ophelp to list the available events for your processor type. This option can be used in conjunction with either the --process-list or --thread-list option to display event counts on a per-thread (per-process) basis. Without this option, all counts are aggregated. This option can be used in conjunction with either the --system-wide or --cpu-list option to display event counts on a per-cpu basis. Without this option, all counts are aggregated. Results collected for each time interval are printed every num_seconds instead of the default of one dump of cumulative event counts at the end of the run. If num_intervals is specified, ocount exits after the specified number of intervals occur. Use this option to print results in the following brief format: [optional cpu or thread,]<event_name>,<count>,<percent_time_enabled> [ <int> ,]< string >,< u64 >,< double > If --timer-interval is specified, a separate line formatted as timestamp,<num_seconds_since_epoch> is printed ahead of each dump of event counts. Results are written to outfile_name instead of interactively to the terminal. Use this option to increase the verbosity of the output. Show ocount version. Show a help message. Acknowledgments Thanks to (in no particular order) : Arjan van de Ven, Rik van Riel, Juan Quintela, Philippe Elie, Phillipp Rumpf, Tigran Aivazian, Alex Brown, Alisdair Rawsthorne, Bob Montgomery, Ray Bryant, H.J. Lu, Jeff Esper, Will Cohen, Graydon Hoare, Cliff Woolley, Alex Tsariounov, Al Stone, Jason Yeh, Randolph Chung, Anton Blanchard, Richard Henderson, Andries Brouwer, Bryan Rittmeyer, Maynard P. Johnson, Richard Reich (rreich@rdrtech.com), Zwane Mwaikambo, Dave Jones, Charles Filtness; and finally Pulp, for "Intro".
oprofile-0.9.9/doc/oprofile.1.in0000664000076400007640000001155512175510134013364 00000000000000.TH OPROFILE 1 "@DATE@" "oprofile @VERSION@" .UC 4 .SH NAME oprofile \- a system-wide profiler .SH SYNOPSIS .br .B opcontrol [ .I options ] .br .B opreport [ .I options ] [ profile specification ] .br .B opannotate [ .I options ] [ profile specification ] .br .B oparchive [ .I options ] [ profile specification ] .br .B opgprof [ .I options ] [ profile specification ] .br .SH DESCRIPTION OProfile is a profiling system for systems running Linux 2.6 and greater. Profiling runs transparently in the background and profile data can be collected at any time. OProfile makes use of the hardware performance counters provided on Intel, AMD, and other processors, and uses a timer-interrupt based mechanism on CPUs without counters. OProfile can profile the whole system in high detail. .br For a gentle guide to using OProfile, please read the HTML documentation listed in SEE ALSO. .br .SH OPCONTROL .B opcontrol is used for starting and stopping the OProfile daemon, and providing set-up parameters. .SH OPREPORT .B opreport gives image and symbol-based profile summaries for the whole system or a subset of binary images. .SH OPANNOTATE .B opannotate can produce annotated source or mixed source and assembly output. .SH OPARCHIVE .B oparchive produces oprofile archive for offline analysis .SH OPGPROF .B opgprof can produce a gprof-format profile for a single binary. .SH PROFILE SPECIFICATIONS All of the post-profiling tools can take profile specifications, which is some combination of the following parameters. Enclosing part of a profile specification in curly braces { } can be used for differential profiles with .B opreport ; the braces .B must be surrounded by whitespace. .TP .BI "archive:"archive Path to the archive to inspect, as generated by .B oparchive .br .TP .BI "session:"sessionlist A comma-separated list of session names to resolve in. Absence of this tag, unlike all others, means "the current session", equivalent to specifying "session:current". .br .TP .BI "session-exclude:"sessionlist A comma-separated list of sessions to exclude. .br .TP .BI "image:"imagelist A comma-separated list of image names to resolve. Each entry may be relative path, glob-style name, or full path, e.g. opreport 'image:/usr/bin/oprofiled,*op*,./oprofpp' .br .TP .BI "image-exclude:"imagelist Same as image:, but the matching images are excluded. .br .TP .BI "lib-image:"imagelist Same as image:, but only for images that are for a particular primary binary image (namely, an application). This only makes sense to use if you're using --separate. This includes kernel modules and the kernel when using --separate=kernel. .br .TP .BI "lib-image-exclude:"imagelist Same as , but the matching images are excluded. .br .TP .BI "event:"eventname The symbolic event name to match on, e.g. event:DATA_MEM_REFS. .br .TP .BI "count:"eventcount The event count to match on, e.g. event:DATA_MEM_REFS count:30000. .br .TP .BI "unit-mask:"maskvalue The unit mask value of the event to match on, e.g. unit-mask:1. .br .TP .BI "cpu:"cpulist Only consider profiles for the given numbered CPU (starting from zero). This is only useful when using CPU profile separation. .br .TP .BI "tgid:"pidlist Only consider profiles for the given task groups. Unless some program is using threads, the task group ID of a process is the same as its process ID. This option corresponds to the POSIX notion of a thread group. This is only useful when using per-process profile separation. .br .TP .BI "tid:"tidlist Only consider profiles for the given threads. When using recent thread libraries, all threads in a process share the same task group ID, but have different thread IDs. You can use this option in combination with tgid: to restrict the results to particular threads within a process. This is only useful when using per-process profile separation. .SH ENVIRONMENT No special environment variables are recognised by oprofile. .SH FILES .TP .I $HOME/.oprofile/ Configuration files .TP .I /root/.oprofile/daemonrc Configuration file for opcontrol .TP .I @prefix@/share/oprofile/ Event description files used by OProfile. .TP .I /var/lib/oprofile/samples/oprofiled.log The user-space daemon logfile. .TP .I /dev/oprofile The device filesystem for communication with the Linux kernel module. .TP .I /var/lib/oprofile/samples/ The location of the generated sample files. .SH VERSION .TP This man page is current for @PACKAGE@-@VERSION@. .SH SEE ALSO .BR @OP_DOCDIR@, .BR opcontrol(1), .BR opreport(1), .BR opannotate(1), .BR oparchive(1), .BR opgprof(1), .BR gprof(1), .BR readprofile(1), .BR "CPU vendor architecture manuals" .SH COPYRIGHT oprofile is Copyright (C) 1998-2004 University of Manchester, UK, John Levon, and others. OProfile is released under the GNU General Public License, Version 2, or (at your option) any later version. .SH AUTHORS John Levon is the primary author. See the documentation for other contributors. oprofile-0.9.9/doc/opgprof.1.in0000664000076400007640000000262012175510134013212 00000000000000.TH OPGPROF 1 "@DATE@" "oprofile @VERSION@" .UC 4 .SH NAME opgprof \- produce gprof-format profile data .SH SYNOPSIS .br .B opgprof [ .I options ] [profile specification] .SH DESCRIPTION .B opgprof outputs gprof-format profile data for a given binary image, from an OProfile session. See oprofile(1) for how to write profile specifications. .SH OPTIONS .TP .BI "--help / -? / --usage" Show help message. .br .TP .BI "--version / -v" Show version. .br .TP .BI "--verbose / -V [options]" Give verbose debugging output. .br .TP .BI "--session-dir="dir_path Use sample database out of directory dir_path instead of the default location (/var/lib/oprofile). .br .TP .BI "--image-path / -p [paths]" Comma-separated list of additional paths to search for binaries. This is needed to find modules in kernels 2.6 and upwards. .br .TP .BI "--root / -R [path]" A path to a filesystem to search for additional binaries. .br .TP .BI "--threshold / -t [percentage]" Only output data for symbols that have more than the given percentage of total samples. .br .TP .BI "--output-filename / -o [file]" Output to the given file instead of the default, gmon.out .SH ENVIRONMENT No special environment variables are recognised by opgprof. .SH FILES .TP .I /var/lib/oprofile/samples/ The location of the generated sample files. .SH VERSION .TP This man page is current for @PACKAGE@-@VERSION@. .SH SEE ALSO .BR @OP_DOCDIR@, .BR oprofile(1) oprofile-0.9.9/doc/internals.html0000664000076400007640000025020612175510313013740 00000000000000 OProfile Internals

OProfile Internals


List of Figures

3.1. The OProfile buffers

Chapter 1. Introduction

This document is current for OProfile version 0.9.9. This document provides some details on the internal workings of OProfile for the interested hacker. This document assumes strong C, working C++, plus some knowledge of kernel internals and CPU hardware.

Note

Only the "new" implementation associated with kernel 2.6 and above is covered here. 2.4 uses a very different kernel module implementation and daemon to produce the sample files.

1. Overview

OProfile is a statistical continuous profiler. In other words, profiles are generated by regularly sampling the current registers on each CPU (from an interrupt handler, the saved PC value at the time of interrupt is stored), and converting that runtime PC value into something meaningful to the programmer.

OProfile achieves this by taking the stream of sampled PC values, along with the detail of which task was running at the time of the interrupt, and converting into a file offset against a particular binary file. Because applications mmap() the code they run (be it /bin/bash, /lib/libfoo.so or whatever), it's possible to find the relevant binary file and offset by walking the task's list of mapped memory areas. Each PC value is thus converted into a tuple of binary-image,offset. This is something that the userspace tools can use directly to reconstruct where the code came from, including the particular assembly instructions, symbol, and source line (via the binary's debug information if present).

Regularly sampling the PC value like this approximates what actually was executed and how often - more often than not, this statistical approximation is good enough to reflect reality. In common operation, the time between each sample interrupt is regulated by a fixed number of clock cycles. This implies that the results will reflect where the CPU is spending the most time; this is obviously a very useful information source for performance analysis.

Sometimes though, an application programmer needs different kinds of information: for example, "which of the source routines cause the most cache misses ?". The rise in importance of such metrics in recent years has led many CPU manufacturers to provide hardware performance counters capable of measuring these events on the hardware level. Typically, these counters increment once per each event, and generate an interrupt on reaching some pre-defined number of events. OProfile can use these interrupts to generate samples: then, the profile results are a statistical approximation of which code caused how many of the given event.

Consider a simplified system that only executes two functions A and B. A takes one cycle to execute, whereas B takes 99 cycles. Imagine we run at 100 cycles a second, and we've set the performance counter to create an interrupt after a set number of "events" (in this case an event is one clock cycle). It should be clear that the chances of the interrupt occurring in function A is 1/100, and 99/100 for function B. Thus, we statistically approximate the actual relative performance features of the two functions over time. This same analysis works for other types of events, providing that the interrupt is tied to the number of events occurring (that is, after N events, an interrupt is generated).

There are typically more than one of these counters, so it's possible to set up profiling for several different event types. Using these counters gives us a powerful, low-overhead way of gaining performance metrics. If OProfile, or the CPU, does not support performance counters, then a simpler method is used: the kernel timer interrupt feeds samples into OProfile itself.

The rest of this document concerns itself with how we get from receiving samples at interrupt time to producing user-readable profile information.

2. Components of the OProfile system

2.1. Architecture-specific components

If OProfile supports the hardware performance counters found on a particular architecture, code for managing the details of setting up and managing these counters can be found in the kernel source tree in the relevant arch/arch/oprofile/ directory. The architecture-specific implementation works via filling in the oprofile_operations structure at init time. This provides a set of operations such as setup(), start(), stop(), etc. that manage the hardware-specific details of fiddling with the performance counter registers.

The other important facility available to the architecture code is oprofile_add_sample(). This is where a particular sample taken at interrupt time is fed into the generic OProfile driver code.

2.2. oprofilefs

OProfile implements a pseudo-filesystem known as "oprofilefs", mounted from userspace at /dev/oprofile. This consists of small files for reporting and receiving configuration from userspace, as well as the actual character device that the OProfile userspace receives samples from. At setup() time, the architecture-specific may add further configuration files related to the details of the performance counters. For example, on x86, one numbered directory for each hardware performance counter is added, with files in each for the event type, reset value, etc.

The filesystem also contains a stats directory with a number of useful counters for various OProfile events.

2.3. Generic kernel driver

This lives in drivers/oprofile/, and forms the core of how OProfile works in the kernel. Its job is to take samples delivered from the architecture-specific code (via oprofile_add_sample()), and buffer this data, in a transformed form as described later, until releasing the data to the userspace daemon via the /dev/oprofile/buffer character device.

2.4. The OProfile daemon

The OProfile userspace daemon's job is to take the raw data provided by the kernel and write it to the disk. It takes the single data stream from the kernel and logs sample data against a number of sample files (found in $SESSION_DIR/samples/current/, by default located at /var/lib/oprofile/samples/current/. For the benefit of the "separate" functionality, the names/paths of these sample files are mangled to reflect where the samples were from: this can include thread IDs, the binary file path, the event type used, and more.

After this final step from interrupt to disk file, the data is now persistent (that is, changes in the running of the system do not invalidate stored data). So the post-profiling tools can run on this data at any time (assuming the original binary files are still available and unchanged, naturally).

2.5. Post-profiling tools

So far, we've collected data, but we've yet to present it in a useful form to the user. This is the job of the post-profiling tools. In general form, they collate a subset of the available sample files, load and process each one correlated against the relevant binary file, and finally produce user-readable information.

Chapter 2. Performance counter management

1. Providing a user interface

The performance counter registers need programming in order to set the type of event to count, etc. OProfile uses a standard model across all CPUs for defining these events as follows :

event The event type e.g. DATA_MEM_REFS
unit mask The sub-events to count (more detailed specification)
counter The hardware counter(s) that can count this event
count The reset value (how many events before an interrupt)
kernel Whether the counter should increment when in kernel space
user Whether the counter should increment when in user space

The term "unit mask" is borrowed from the Intel architectures, and can further specify exactly when a counter is incremented (for example, cache-related events can be restricted to particular state transitions of the cache lines).

All of the available hardware events and their details are specified in the textual files in the events directory. The syntax of these files should be fairly obvious. The user specifies the names and configuration details of the chosen counters via opcontrol. These are then written to the kernel module (in numerical form) via /dev/oprofile/N/ where N is the physical hardware counter (some events can only be used on specific counters; OProfile hides these details from the user when possible). On IA64, the perfmon-based interface behaves somewhat differently, as described later.

2. Programming the performance counter registers

We have described how the user interface fills in the desired configuration of the counters and transmits the information to the kernel. It is the job of the ->setup() method to actually program the performance counter registers. Clearly, the details of how this is done is architecture-specific; it is also model-specific on many architectures. For example, i386 provides methods for each model type that programs the counter registers correctly (see the op_model_* files in arch/i386/oprofile for the details). The method reads the values stored in the virtual oprofilefs files and programs the registers appropriately, ready for starting the actual profiling session.

The architecture-specific drivers make sure to save the old register settings before doing OProfile setup. They are restored when OProfile shuts down. This is useful, for example, on i386, where the NMI watchdog uses the same performance counter registers as OProfile; they cannot run concurrently, but OProfile makes sure to restore the setup it found before it was running.

In addition to programming the counter registers themselves, other setup is often necessary. For example, on i386, the local APIC needs programming in order to make the counter's overflow interrupt appear as an NMI (non-maskable interrupt). This allows sampling (and therefore profiling) of regions where "normal" interrupts are masked, enabling more reliable profiles.

2.1. Starting and stopping the counters

Initiating a profiling session is done via writing an ASCII '1' to the file /dev/oprofile/enable. This sets up the core, and calls into the architecture-specific driver to actually enable each configured counter. Again, the details of how this is done is model-specific (for example, the Athlon models can disable or enable on a per-counter basis, unlike the PPro models).

2.2. IA64 and perfmon

The IA64 architecture provides a different interface from the other architectures, using the existing perfmon driver. Register programming is handled entirely in user-space (see daemon/opd_perfmon.c for the details). A process is forked for each CPU, which creates a perfmon context and sets the counter registers appropriately via the sys_perfmonctl interface. In addition, the actual initiation and termination of the profiling session is handled via the same interface using PFM_START and PFM_STOP. On IA64, then, there are no oprofilefs files for the performance counters, as the kernel driver does not program the registers itself.

Instead, the perfmon driver for OProfile simply registers with the OProfile core with an OProfile-specific UUID. During a profiling session, the perfmon core calls into the OProfile perfmon driver and samples are registered with the OProfile core itself as usual (with oprofile_add_sample()).

Chapter 3. Collecting and processing samples

1. Receiving interrupts

Naturally, how the overflow interrupts are received is specific to the hardware architecture, unless we are in "timer" mode, where the logging routine is called directly from the standard kernel timer interrupt handler.

On the i386 architecture, the local APIC is programmed such that when a counter overflows (that is, it receives an event that causes an integer overflow of the register value to zero), an NMI is generated. This calls into the general handler do_nmi(); because OProfile has registered itself as capable of handling NMI interrupts, this will call into the OProfile driver code in arch/i386/oprofile. Here, the saved PC value (the CPU saves the register set at the time of interrupt on the stack available for inspection) is extracted, and the counters are examined to find out which one generated the interrupt. Also determined is whether the system was inside kernel or user space at the time of the interrupt. These three pieces of information are then forwarded onto the OProfile core via oprofile_add_sample(). Finally, the counter values are reset to the chosen count value, to ensure another interrupt happens after another N events have occurred. Other architectures behave in a similar manner.

2. Core data structures

Before considering what happens when we log a sample, we shall digress for a moment and look at the general structure of the data collection system.

OProfile maintains a small buffer for storing the logged samples for each CPU on the system. Only this buffer is altered when we actually log a sample (remember, we may still be in an NMI context, so no locking is possible). The buffer is managed by a two-handed system; the "head" iterator dictates where the next sample data should be placed in the buffer. Of course, overflow of the buffer is possible, in which case the sample is discarded.

It is critical to remember that at this point, the PC value is an absolute value, and is therefore only meaningful in the context of which task it was logged against. Thus, these per-CPU buffers also maintain details of which task each logged sample is for, as described in the next section. In addition, we store whether the sample was in kernel space or user space (on some architectures and configurations, the address space is not sub-divided neatly at a specific PC value, so we must store this information).

As well as these small per-CPU buffers, we have a considerably larger single buffer. This holds the data that is eventually copied out into the OProfile daemon. On certain system events, the per-CPU buffers are processed and entered (in mutated form) into the main buffer, known in the source as the "event buffer". The "tail" iterator indicates the point from which the CPU may be read, up to the position of the "head" iterator. This provides an entirely lock-free method for extracting data from the CPU buffers. This process is described in detail later in this chapter.

Figure 3.1. The OProfile buffers

The OProfile buffers

3. Logging a sample

As mentioned, the sample is logged into the buffer specific to the current CPU. The CPU buffer is a simple array of pairs of unsigned long values; for a sample, they hold the PC value and the counter for the sample. (The counter value is later used to translate back into the relevant event type the counter was programmed to).

In addition to logging the sample itself, we also log task switches. This is simply done by storing the address of the last task to log a sample on that CPU in a data structure, and writing a task switch entry into the buffer if the new value of current() has changed. Note that later we will directly de-reference this pointer; this imposes certain restrictions on when and how the CPU buffers need to be processed.

Finally, as mentioned, we log whether we have changed between kernel and userspace using a similar method. Both of these variables (last_task and last_is_kernel) are reset when the CPU buffer is read.

4. Logging stack traces

OProfile can also provide statistical samples of call chains (on x86). To do this, at sample time, the frame pointer chain is traversed, recording the return address for each stack frame. This will only work if the code was compiled with frame pointers, but we're careful to abort the traversal if the frame pointer appears bad. We store the set of return addresses straight into the CPU buffer. Note that, since this traversal is keyed off the standard sample interrupt, the number of times a function appears in a stack trace is not an indicator of how many times the call site was executed: rather, it's related to the number of samples we took where that call site was involved. Thus, the results for stack traces are not necessarily proportional to the call counts: typical programs will have many main() samples.

5. Synchronising the CPU buffers to the event buffer

At some point, we have to process the data in each CPU buffer and enter it into the main (event) buffer. The file buffer_sync.c contains the relevant code. We periodically (currently every HZ/4 jiffies) start the synchronisation process. In addition, we process the buffers on certain events, such as an application calling munmap(). This is particularly important for exit() - because the CPU buffers contain pointers to the task structure, if we don't process all the buffers before the task is actually destroyed and the task structure freed, then we could end up trying to dereference a bogus pointer in one of the CPU buffers.

We also add a notification when a kernel module is loaded; this is so that user-space can re-read /proc/modules to determine the load addresses of kernel module text sections. Without this notification, samples for a newly-loaded module could get lost or be attributed to the wrong module.

The synchronisation itself works in the following manner: first, mutual exclusion on the event buffer is taken. Remember, we do not need to do that for each CPU buffer, as we only read from the tail iterator (whilst interrupts might be arriving at the same buffer, but they will write to the position of the head iterator, leaving previously written entries intact). Then, we process each CPU buffer in turn. A CPU switch notification is added to the buffer first (for --separate=cpu support). Then the processing of the actual data starts.

As mentioned, the CPU buffer consists of task switch entries and the actual samples. When the routine sync_buffer() sees a task switch, the process ID and process group ID are recorded into the event buffer, along with a dcookie (see below) identifying the application binary (e.g. /bin/bash). The mmap_sem for the task is then taken, to allow safe iteration across the tasks' list of mapped areas. Each sample is then processed as described in the next section.

After a buffer has been read, the tail iterator is updated to reflect how much of the buffer was processed. Note that when we determined how much data there was to read in the CPU buffer, we also called cpu_buffer_reset() to reset last_task and last_is_kernel, as we've already mentioned. During the processing, more samples may have been arriving in the CPU buffer; this is OK because we are careful to only update the tail iterator to how much we actually read - on the next buffer synchronisation, we will start again from that point.

6. Identifying binary images

In order to produce useful profiles, we need to be able to associate a particular PC value sample with an actual ELF binary on the disk. This leaves us with the problem of how to export this information to user-space. We create unique IDs that identify a particular directory entry (dentry), and write those IDs into the event buffer. Later on, the user-space daemon can call the lookup_dcookie system call, which looks up the ID and fills in the full path of the binary image in the buffer user-space passes in. These IDs are maintained by the code in fs/dcookies.c; the cache lasts for as long as the daemon has the event buffer open.

7. Finding a sample's binary image and offset

We haven't yet described how we process the absolute PC value into something usable by the user-space daemon. When we find a sample entered into the CPU buffer, we traverse the list of mappings for the task (remember, we will have seen a task switch earlier, so we know which task's lists to look at). When a mapping is found that contains the PC value, we look up the mapped file's dentry in the dcookie cache. This gives the dcookie ID that will uniquely identify the mapped file. Then we alter the absolute value such that it is an offset from the start of the file being mapped (the mapping need not start at the start of the actual file, so we have to consider the offset value of the mapping). We store this dcookie ID into the event buffer; this identifies which binary the samples following it are against. In this manner, we have converted a PC value, which has transitory meaning only, into a static offset value for later processing by the daemon.

We also attempt to avoid the relatively expensive lookup of the dentry cookie value by storing the cookie value directly into the dentry itself; then we can simply derive the cookie value immediately when we find the correct mapping.

Chapter 4. Generating sample files

1. Processing the buffer

Now we can move onto user-space in our description of how raw interrupt samples are processed into useful information. As we described in previous sections, the kernel OProfile driver creates a large buffer of sample data consisting of offset values, interspersed with notification of changes in context. These context changes indicate how following samples should be attributed, and include task switches, CPU changes, and which dcookie the sample value is against. By processing this buffer entry-by-entry, we can determine where the samples should be accredited to. This is particularly important when using the --separate.

The file daemon/opd_trans.c contains the basic routine for the buffer processing. The struct transient structure is used to hold changes in context. Its members are modified as we process each entry; it is passed into the routines in daemon/opd_sfile.c for actually logging the sample to a particular sample file (which will be held in $SESSION_DIR/samples/current).

The buffer format is designed for conciseness, as high sampling rates can easily generate a lot of data. Thus, context changes are prefixed by an escape code, identified by is_escape_code(). If an escape code is found, the next entry in the buffer identifies what type of context change is being read. These are handed off to various handlers (see the handlers array), which modify the transient structure as appropriate. If it's not an escape code, then it must be a PC offset value, and the very next entry will be the numeric hardware counter. These values are read and recorded in the transient structure; we then do a lookup to find the correct sample file, and log the sample, as described in the next section.

1.1. Handling kernel samples

Samples from kernel code require a little special handling. Because the binary text which the sample is against does not correspond to any file that the kernel directly knows about, the OProfile driver stores the absolute PC value in the buffer, instead of the file offset. Of course, we need an offset against some particular binary. To handle this, we keep a list of loaded modules by parsing /proc/modules as needed. When a module is loaded, a notification is placed in the OProfile buffer, and this triggers a re-read. We store the module name, and the loading address and size. This is also done for the main kernel image, as specified by the user. The absolute PC value is matched against each address range, and modified into an offset when the matching module is found. See daemon/opd_kernel.c for the details.

2. Locating and creating sample files

We have a sample value and its satellite data stored in a struct transient, and we must locate an actual sample file to store the sample in, using the context information in the transient structure as a key. The transient data to sample file lookup is handled in daemon/opd_sfile.c. A hash is taken of the transient values that are relevant (depending upon the setting of --separate, some values might be irrelevant), and the hash value is used to lookup the list of currently open sample files. Of course, the sample file might not be found, in which case we need to create and open it.

OProfile uses a rather complex scheme for naming sample files, in order to make selecting relevant sample files easier for the post-profiling utilities. The exact details of the scheme are given in oprofile-tests/pp_interface, but for now it will suffice to remember that the filename will include only relevant information for the current settings, taken from the transient data. A fully-specified filename looks something like :

/var/lib/oprofile/samples/current/{root}/usr/bin/xmms/{dep}/{root}/lib/tls/libc-2.3.2.so/CPU_CLK_UNHALTED.100000.0.28082.28089.0

It should be clear that this identifies such information as the application binary, the dependent (library) binary, the hardware event, and the process and thread ID. Typically, not all this information is needed, in which cases some values may be replaced with the token all.

The code that generates this filename and opens the file is found in daemon/opd_mangling.c. You may have realised that at this point, we do not have the binary image file names, only the dcookie values. In order to determine a file name, a dcookie value is looked up in the dcookie cache. This is to be found in daemon/opd_cookie.c. Since dcookies are both persistent and unique during a sampling session, we can cache the values. If the value is not found in the cache, then we ask the kernel to do the lookup from value to file name for us by calling lookup_dcookie(). This looks up the value in a kernel-side cache (see fs/dcookies.c) and returns the fully-qualified file name to userspace.

3. Writing data to a sample file

Each specific sample file is a hashed collection, where the key is the PC offset from the transient data, and the value is the number of samples recorded against that offset. The files are mmap()ed into the daemon's memory space. The code to actually log the write against the sample file can be found in libdb/.

For recording stack traces, we have a more complicated sample filename mangling scheme that allows us to identify cross-binary calls. We use the same sample file format, where the key is a 64-bit value composed from the from,to pair of offsets.

Chapter 5. Generating useful output

All of the tools used to generate human-readable output have to take roughly the same steps to collect the data for processing. First, the profile specification given by the user has to be parsed. Next, a list of sample files matching the specification has to obtained. Using this list, we need to locate the binary file for each sample file, and then use them to extract meaningful data, before a final collation and presentation to the user.

1. Handling the profile specification

The profile specification presented by the user is parsed in the function profile_spec::create(). This creates an object representing the specification. Then we use profile_spec::generate_file_list() to search for all sample files and match them against the profile_spec.

To enable this matching process to work, the attributes of each sample file is encoded in its filename. This is a low-tech approach to matching specifications against candidate sample files, but it works reasonably well. A typical sample file might look like these:

/var/lib/oprofile/samples/current/{root}/bin/ls/{dep}/{root}/bin/ls/{cg}/{root}/bin/ls/CPU_CLK_UNHALTED.100000.0.all.all.all
/var/lib/oprofile/samples/current/{root}/bin/ls/{dep}/{root}/bin/ls/CPU_CLK_UNHALTED.100000.0.all.all.all
/var/lib/oprofile/samples/current/{root}/bin/ls/{dep}/{root}/bin/ls/CPU_CLK_UNHALTED.100000.0.7423.7424.0
/var/lib/oprofile/samples/current/{kern}/r128/{dep}/{kern}/r128/CPU_CLK_UNHALTED.100000.0.all.all.all

This looks unnecessarily complex, but it's actually fairly simple. First we have the session of the sample, by default located here /var/lib/oprofile/samples/current. This location can be changed by specifying the --session-dir option at command-line. This session could equally well be inside an archive from oparchive. Next we have one of the tokens {root} or {kern}. {root} indicates that the binary is found on a file system, and we will encode its path in the next section (e.g. /bin/ls). {kern} indicates a kernel module - on 2.6 kernels the path information is not available from the kernel, so we have to special-case kernel modules like this; we encode merely the name of the module as loaded.

Next there is a {dep} token, indicating another token/path which identifies the dependent binary image. This is used even for the "primary" binary (i.e. the one that was execve()d), as it simplifies processing. Finally, if this sample file is a normal flat profile, the actual file is next in the path. If it's a call-graph sample file, we need one further specification, to allow us to identify cross-binary arcs in the call graph.

The actual sample file name is dot-separated, where the fields are, in order: event name, event count, unit mask, task group ID, task ID, and CPU number.

This sample file can be reliably parsed (with parse_filename()) into a filename_spec. Finally, we can check whether to include the sample file in the final results by comparing this filename_spec against the profile_spec the user specified (for the interested, see valid_candidate() and profile_spec::match). Then comes the really complicated bit...

2. Collating the candidate sample files

At this point we have a duplicate-free list of sample files we need to process. But first we need to do some further arrangement: we need to classify each sample file, and we may also need to "invert" the profiles.

2.1. Classifying sample files

It's possible for utilities like opreport to show data in columnar format: for example, we might want to show the results of two threads within a process side-by-side. To do this, we need to classify each sample file into classes - the classes correspond with each opreport column. The function that handles this is arrange_profiles(). Each sample file is added to a particular class. If the sample file is the first in its class, a template is generated from the sample file. Each template describes a particular class (thus, in our example above, each template will have a different thread ID, and this uniquely identifies each class).

Each class has a list of "profile sets" matching that class's template. A profile set is either a profile of the primary binary image, or any of its dependent images. After all sample files have been listed in one of the profile sets belonging to the classes, we have to name each class and perform error-checking. This is done by identify_classes(); each class is checked to ensure that its "axis" is the same as all the others. This is needed because opreport can't produce results in 3D format: we can only differ in one aspect, such as thread ID or event name.

2.2. Creating inverted profile lists

Remember that if we're using certain profile separation options, such as "--separate=lib", a single binary could be a dependent image to many different binaries. For example, the C library image would be a dependent image for most programs that have been profiled. As it happens, this can cause severe performance problems: without some re-arrangement, these dependent binary images would be opened each time we need to process sample files for each program.

The solution is to "invert" the profiles via invert_profiles(). We create a new data structure where the dependent binary is first, and the primary binary images using that dependent binary are listed as sub-images. This helps our performance problem, as now we only need to open each dependent image once, when we process the list of inverted profiles.

3. Generating profile data

Things don't get any simpler at this point, unfortunately. At this point we've collected and classified the sample files into the set of inverted profiles, as described in the previous section. Now we need to process each inverted profile and make something of the data. The entry point for this is populate_for_image().

3.1. Processing the binary image

The first thing we do with an inverted profile is attempt to open the binary image (remember each inverted profile set is only for one binary image, but may have many sample files to process). The op_bfd class provides an abstracted interface to this; internally it uses libbfd. The main purpose of this class is to process the symbols for the binary image; this is also where symbol filtering happens. This is actually quite tricky, but should be clear from the source.

3.2. Processing the sample files

The class profile_container is a hold-all that contains all the processed results. It is a container of profile_t objects. The add_sample_files() method uses libdb to open the given sample file and add the key/value types to the profile_t. Once this has been done, profile_container::add() is passed the profile_t plus the op_bfd for processing.

profile_container::add() walks through the symbols collected in the op_bfd. op_bfd::get_symbol_range() gives us the start and end of the symbol as an offset from the start of the binary image, then we interrogate the profile_t for the relevant samples for that offset range. We create a symbol_entry object for this symbol and fill it in. If needed, here we also collect debug information from the op_bfd, and possibly record the detailed sample information (as used by opreport -d and opannotate). Finally the symbol_entry is added to a private container of profile_container - this symbol_container holds all such processed symbols.

4. Generating output

After the processing described in the previous section, we've now got full details of what we need to output stored in the profile_container on a symbol-by-symbol basis. To produce output, we need to replay that data and format it suitably.

opreport first asks the profile_container for a symbol_collection (this is also where thresholding happens). This is sorted, then a opreport_formatter is initialised. This object initialises a set of field formatters as requested. Then opreport_formatter::output() is called. This iterates through the (sorted) symbol_collection; for each entry, the selected fields (as set by the format_flags options) are output by calling the field formatters, with the symbol_entry passed in.

Chapter 6. Extended Feature Interface

1. Introduction

The Extended Feature Interface is a standard callback interface designed to allow extension to the OProfile daemon's sample processing. Each feature defines a set of callback handlers which can be enabled or disabled through the OProfile daemon's command-line option. This interface can be used to implement support for architecture-specific features or features not commonly used by general OProfile users.

2. Feature Name and Handlers

Each extended feature has an entry in the ext_feature_table in opd_extended.cpp. Each entry contains a feature name, and a corresponding set of handlers. Feature name is a unique string, which is used to identify a feature in the table. Each feature provides a set of handlers, which will be executed by the OProfile daemon from pre-determined locations to perform certain tasks. At runtime, the OProfile daemon calls a feature handler wrapper from one of the predetermined locations to check whether an extended feature is enabled, and whether a particular handler exists. Only the handlers of the enabled feature will be executed.

3. Enabling Features

Each feature is enabled using the OProfile daemon (oprofiled) command-line option "--ext-feature=<extended-feature-name>:[args]". The "extended-feature-name" is used to determine the feature to be enabled. The optional "args" is passed into the feature-specific initialization handler (ext_init). Currently, only one extended feature can be enabled at a time.

4. Type of Handlers

Each feature is responsible for providing its own set of handlers. Types of handler are:

4.1. ext_init Handler

"ext_init" handles initialization of an extended feature. It takes "args" parameter which is passed in through the "oprofiled --ext-feature=< extended-feature-name>:[args]". This handler is executed in the function opd_options() in the file daemon/oprofiled.c .

Note

The ext_init handler is required for all features.

4.2. ext_print_stats Handler

"ext_print_stats" handles the extended feature statistics report. It adds a new section in the OProfile daemon statistics report, which is normally outputed to the file /var/lib/oprofile/samples/oprofiled.log. This handler is executed in the function opd_print_stats() in the file daemon/opd_stats.c.

4.3. ext_sfile Handler

"ext_sfile" contains a set of handlers related to operations on the extended sample files (sample files for events related to extended feature). These operations include create_sfile(), sfile_dup(), close_sfile(), sync_sfile(), and get_file() as defined in daemon/opd_sfile.c. An additional field, odb_t * ext_file, is added to the struct sfile for storing extended sample files information.

5. Extended Feature Reference Implementation

5.1. Instruction-Based Sampling (IBS)

An example of extended feature implementation can be seen by examining the AMD Instruction-Based Sampling support.

5.1.1. IBS Initialization

Instruction-Based Sampling (IBS) is a new performance measurement technique available on AMD Family 10h processors. Enabling IBS profiling is done simply by specifying IBS performance events through the "--event=" options.

opcontrol --event=IBS_FETCH_XXX:<count>:<um>:<kernel>:<user>
opcontrol --event=IBS_OP_XXX:<count>:<um>:<kernel>:<user>

Note: * Count and unitmask for all IBS fetch events must be the same,
	as do those for IBS op.

IBS performance events are listed in opcontrol --list-events. When users specify these events, opcontrol verifies them using ophelp, which checks for the ext:ibs_fetch or ext:ibs_op tag in events/x86-64/family10/events file. Then, it configures the driver interface (/dev/oprofile/ibs_fetch/... and /dev/oprofile/ibs_op/...) and starts the OProfile daemon as follows.

oprofiled \
    --ext-feature=ibs:\
	fetch:<IBS_FETCH_EVENT1>,<IBS_FETCH_EVENT2>,...,:<IBS fetch count>:<IBS Fetch um>|\
	op:<IBS_OP_EVENT1>,<IBS_OP_EVENT2>,...,:<IBS op count>:<IBS op um>

Here, the OProfile daemon parses the --ext-feature option and checks the feature name ("ibs") before calling the the initialization function to handle the string containing IBS events, counts, and unitmasks. Then, it stores each event in the IBS virtual-counter table (struct opd_event ibs_vc[OP_MAX_IBS_COUNTERS]) and stores the event index in the IBS Virtual Counter Index (VCI) map (ibs_vci_map[OP_MAX_IBS_COUNTERS]) with IBS event value as the map key.

5.1.2. IBS Data Processing

During a profile session, the OProfile daemon identifies IBS samples in the event buffer using the "IBS_FETCH_CODE" or "IBS_OP_CODE". These codes trigger the handlers code_ibs_fetch_sample() or code_ibs_op_sample() listed in the handler_t handlers[] vector in daemon/opd_trans.c . These handlers are responsible for processing IBS samples and translate them into IBS performance events.

Unlike traditional performance events, each IBS sample can be derived into multiple IBS performance events. For each event that the user specifies, a combination of bits from Model-Specific Registers (MSR) are checked against the bitmask defining the event. If the condition is met, the event will then be recorded. The derivation logic is in the files daemon/opd_ibs_macro.h and daemon/opd_ibs_trans.[h,c].

5.1.3. IBS Sample File

Traditionally, sample file information (odb_t) is stored in the struct sfile::odb_t file[OP_MAX_COUNTER]. Currently, OP_MAX_COUNTER is 8 on non-alpha, and 20 on alpha-based system. Event index (the counter number on which the event is configured) is used to access the corresponding entry in the array. Unlike the traditional performance event, IBS does not use the actual counter registers (i.e. /dev/oprofile/0,1,2,3). Also, the number of performance events generated by IBS could be larger than OP_MAX_COUNTER (currently upto 13 IBS-fetch and 46 IBS-op events). Therefore IBS requires a special data structure and sfile handlers (struct opd_ext_sfile_handlers) for managing IBS sample files. IBS-sample-file information is stored in a memory allocated by handler ibs_sfile_create(), which can be accessed through struct sfile::odb_t * ext_files.

Glossary of OProfile source concepts and types

application image

The primary binary image used by an application. This is derived from the kernel and corresponds to the binary started upon running an application: for example, /bin/bash.

binary image

An ELF file containing executable code: this includes kernel modules, the kernel itself (a.k.a. vmlinux), shared libraries, and application binaries.

dcookie

Short for "dentry cookie". A unique ID that can be looked up to provide the full path name of a binary image.

dependent image

A binary image that is dependent upon an application, used with per-application separation. Most commonly, shared libraries. For example, if /bin/bash is running and we take some samples inside the C library itself due to bash calling library code, then the image /lib/libc.so would be dependent upon /bin/bash.

merging

This refers to the ability to merge several distinct sample files into one set of data at runtime, in the post-profiling tools. For example, per-thread sample files can be merged into one set of data, because they are compatible (i.e. the aggregation of the data is meaningful), but it's not possible to merge sample files for two different events, because there would be no useful meaning to the results.

profile class

A collection of profile data that has been collected under the same class template. For example, if we're using opreport to show results after profiling with two performance counters enabled profiling DATA_MEM_REFS and CPU_CLK_UNHALTED, there would be two profile classes, one for each event. Or if we're on an SMP system and doing per-cpu profiling, and we request opreport to show results for each CPU side-by-side, there would be a profile class for each CPU.

profile specification

The parameters the user passes to the post-profiling tools that limit what sample files are used. This specification is matched against the available sample files to generate a selection of profile data.

profile template

The parameters that define what goes in a particular profile class. This includes a symbolic name (e.g. "cpu:1") and the code-usable equivalent.

oprofile-0.9.9/doc/ophelp.1.in0000664000076400007640000000304112175510134013023 00000000000000.TH OPHELP 1 "@DATE@" "oprofile @VERSION@" .UC 4 .SH NAME ophelp \- list OProfile events .SH SYNOPSIS .br .B ophelp [ .I options ] [event name] .SH DESCRIPTION By default, .B ophelp lists the available performance counter options. If you give it a symbolic event name, it will return the hardware value (e.g. "ophelp DATA_MEM_REFS"). .SH OPTIONS .TP .BI "--cpu-type / -c" Show the events for the given numerical CPU type. .br .TP .BI "--get-cpu-type / -r" Show the symbolic CPU name. .br .TP .BI "--get-default-event / -d" .br Show the default event for the specified CPU type. .TP .BI "--check-events / -e [events]" Check the given space-separated event descriptions for validity. If the events are valid, show which pmu counter each event would be assigned to. .br .TP .BI "--callgraph [callgraph_depth]" Use the callgraph depth to compute the higher minimum sampling intervals for the events. .br .TP .BI "--unit-mask / -u [event]" Show the default unit mask for the given event. .br .TP .BI "--extra-mask / -E [event]" Show the extra unit mask for given event. .br .TP .BI "--xml / -X" List events in XML format. .br .TP .BI "--help / -? / --usage" Show help message. .br .TP .BI "--version / -v" Show version. .SH ENVIRONMENT No special environment variables are recognised by ophelp. .SH FILES .TP .I $prefix/share/oprofile/ Event description files used by OProfile. .TP .I /var/lib/oprofile/samples/ The location of the generated sample files. .SH VERSION .TP This man page is current for @PACKAGE@-@VERSION@. .SH SEE ALSO .BR @OP_DOCDIR@, .BR oprofile(1) oprofile-0.9.9/doc/op-jit-devel.xml0000664000076400007640000002721012175510134014072 00000000000000 OProfile JIT agent developer guide Maynard Johnson
maynardj@us.ibm.com
2007 IBM Corporation
Developing a new JIT agent OProfile includes a header file and library that are intended to be used by developers who wish to extend OProfile's JIT support to other non-supported virtual machines. This developer guide describes these development files and how to use them. Overview OProfile already includes some implementations that use the JIT support, e.g., the Java Virtual Machine Toolkit Interface (JVMTI) library, libjvmti_oprofile.so. In developing a new implementation, you will likely follow a similar (if not identical) procedure as was used in developing the JVMTI library. Following are the high level steps to follow: Ensure your virtual machine provides an API that, at minimum, can provide the following information about dynamically compiled code: Notification when compilation occurs Name of the symbol (i.e., function or class/method, etc.) Address in anonymous memory where the compiled code was loaded Length of the compiled code segment Write an agent library that communicates with your VM to obtain compiled code notifications. Invoke the required functions from opagent.h () and link your library with libopagent.so (installed at <oprofile_install_dir>/lib/oprofile). Implementing JIT support for a new virtual machine The JIT support API for OProfile is defined in <oprofile-install-dir>/include/opagent.h. Some parts of the API are mandatory for an agent library to use; other parts are optional. The mandatory functions are shown below. op_agent_t op_open_agent(void); void op_close_agent(op_agent_t hdl); int op_write_native_code(op_agent_t hdl, char const * symbol_name, uint64_t vma, const void * code, const unsigned int code_size); To implement this part of your library, you must perform the following steps: Implement a function to set up initial communication with the VM. Once communication to the VM is established, your agent library should call op_op_agent() and cache the returned op_agent_t handle for use in future calls. Perform any necessary steps to register with the VM to be notified of compiled code load events. Registration must include a callback function you will implement in the library to handle the compiled code load events. The callback function mentioned above must obtain all required information from the VM to pass to libopagent via op_write_native_code(). When disconnecting from the VM, your library should call op_agent_close(). Use of the functions below are optional, depending on the kinds of information your VM can provide to your agent library. See the JVMTI agent library for an example of how to use these functions. int op_unload_native_code(op_agent_t hdl, uint64_t vma); int op_write_debug_line_info(op_agent_t hdl, void const * code, size_t nr_entry, struct debug_line_info const * compile_map); While the libopagent functions are thread-safe, you should not use them in signal handlers. The JIT support API This chapter describes the JIT support API. See opagent.h for more details. op_open_agent Initializes the agent library. #include <opagent.h> op_agent_t op_open_agent void Description This function must be called by agents before any other function. Creates and opens a JIT dump file in /var/lib/oprofile/jitdump using the naming convention <process_id>.dump. Parameters None Return value Returns a valid op_agent_t handle or NULL. If NULL is returned, errno is set to indicate the nature of the error. For a list of possible errno values, see the man pages for: stat, creat, gettimeofday, fdopen, fwrite op_close_agent Uninitialize the agent library. #include <opagent.h> int op_close_agent op_agent_t hdl Description Frees all resources and closes open file handles. Parameters hdl : Handle returned from an earlier call to op_open_agent() Return value Returns 0 on success; -1 otherwise. If -1 is returned, errno is set to indicate the nature of the error. errno is set to EINVAL if an invalid op_agent_t handle is passed. For a list of other possible errno values, see the man pages for: gettimeofday, fwrite op_write_native_code Write information about compiled code to a JIT dump file. #include <opagent.h> int op_write_native_code op_agent_thdl char const *symbol_name uint64_tvma void const *code const unsigned intcode_size Description Signal the dynamic generation of native code from a virtual machine. Writes a JIT dump record to the open JIT dump file using the passed information. Parameters hdl : Handle returned from an earlier call to op_open_agent() symbol_name : The name of the symbol being dynamically compiled. This name can (and should) contain all necessary information to disambiguate it from symbols of the same name; e.g., class, method signature. vma : Virtual memory address of the executable code code : Pointer to the location of the compiled code. Theoretically, this may be a different location from that given by the vma argument. For some JIT compilers, obtaining the code may be impractical. For this (or any other) reason, the agent can choose to pass NULL for this paraemter. If NULL is passed, no code will be copied into the JIT dump file. code_size : Size of the compiled code Return value Returns 0 on success; -1 otherwise. If -1 is returned, errno is set to indicate the nature of the error. errno is set to EINVAL if an invalid op_agent_t handle is passed. For a list of other possible errno values, see the man pages for: gettimeofday, fwrite op_write_debug_line_info Write debug information about compiled code to a JIT dump file. #include <opagent.h> int op_write_debug_line_info op_agent_thdl void const *code size_tnr_entry struct debug_line_info const *compile_map Description Add debug line information to a piece of code. An op_write_native_code() with the same code pointer should have occurred before this call. It's not necessary to provide one lineno information entry per machine instruction; the array can contain hole. Parameters hdl : Handle returned from an earlier call to op_open_agent() code : Pointer to the location of the code with debug info nr_entry : Number of entries in compile_map compile_map : Array of struct debug_line_info. See the JVMTI agent library implementation for an example of what information should be retrieved from a VM to fill out this data structure. Return value Returns 0 on success; -1 otherwise. If -1 is returned, errno is set to indicate the nature of the error. errno is set to EINVAL if an invalid op_agent_t handle is passed. For a list of other possible errno values, see the man pages for: gettimeofday, ftell, fwrite op_unload_native_code Write information to the JIT dump file about invalidated compiled code. #include <opagent.h> int op_unload_native_code op_agent_thdl uint64_tvma Description Signal the invalidation of native code from a virtual machine. Parameters hdl : Handle returned from an earlier call to op_open_agent() vma : Virtual memory address of the compiled code being unloaded. An op_write_native_code() with the same vma should have occurred before this call. Return value Returns 0 on success; -1 otherwise. If -1 is returned, errno is set to indicate the nature of the error. errno is set to EINVAL if an invalid op_agent_t handle is passed. For a list of other possible errno values, see the man pages for: gettimeofday, fwrite
oprofile-0.9.9/doc/srcdoc/0000775000076400007640000000000012175511560012410 500000000000000oprofile-0.9.9/doc/srcdoc/Makefile0000664000076400007640000000012312175510134013760 00000000000000DOXYGEN=doxygen .PHONY: clean all: clean doxygen Doxyfile clean: rm -rf html/ oprofile-0.9.9/doc/srcdoc/Doxyfile.in0000664000076400007640000001571712175510134014452 00000000000000# Doxyfile 1.2.13-20020210 #--------------------------------------------------------------------------- # General configuration options #--------------------------------------------------------------------------- PROJECT_NAME = @PACKAGE@ PROJECT_NUMBER = @VERSION@ OUTPUT_DIRECTORY = OUTPUT_LANGUAGE = English EXTRACT_ALL = YES EXTRACT_PRIVATE = NO EXTRACT_STATIC = NO EXTRACT_LOCAL_CLASSES = YES HIDE_UNDOC_MEMBERS = NO HIDE_UNDOC_CLASSES = NO BRIEF_MEMBER_DESC = YES REPEAT_BRIEF = YES ALWAYS_DETAILED_SEC = NO INLINE_INHERITED_MEMB = NO FULL_PATH_NAMES = NO STRIP_FROM_PATH = INTERNAL_DOCS = NO STRIP_CODE_COMMENTS = NO CASE_SENSE_NAMES = YES SHORT_NAMES = NO HIDE_SCOPE_NAMES = NO VERBATIM_HEADERS = YES SHOW_INCLUDE_FILES = YES JAVADOC_AUTOBRIEF = YES INHERIT_DOCS = YES INLINE_INFO = YES SORT_MEMBER_DOCS = YES DISTRIBUTE_GROUP_DOC = NO TAB_SIZE = 8 GENERATE_TODOLIST = NO GENERATE_TESTLIST = NO GENERATE_BUGLIST = NO ALIASES = ENABLED_SECTIONS = MAX_INITIALIZER_LINES = 30 OPTIMIZE_OUTPUT_FOR_C = NO OPTIMIZE_OUTPUT_JAVA = NO SHOW_USED_FILES = YES #--------------------------------------------------------------------------- # configuration options related to warning and progress messages #--------------------------------------------------------------------------- QUIET = NO WARNINGS = YES WARN_IF_UNDOCUMENTED = YES WARN_FORMAT = "$file:$line: $text" WARN_LOGFILE = #--------------------------------------------------------------------------- # configuration options related to the input files #--------------------------------------------------------------------------- INPUT = ../../ FILE_PATTERNS = *.cpp *.c *.h RECURSIVE = YES EXCLUDE = ../../module EXCLUDE_SYMLINKS = NO EXCLUDE_PATTERNS = *.moc.cpp *.moc.h oprof_start.base.cpp EXAMPLE_PATH = EXAMPLE_PATTERNS = EXAMPLE_RECURSIVE = NO IMAGE_PATH = INPUT_FILTER = FILTER_SOURCE_FILES = NO #--------------------------------------------------------------------------- # configuration options related to source browsing #--------------------------------------------------------------------------- SOURCE_BROWSER = NO INLINE_SOURCES = NO REFERENCED_BY_RELATION = YES REFERENCES_RELATION = YES #--------------------------------------------------------------------------- # configuration options related to the alphabetical class index #--------------------------------------------------------------------------- ALPHABETICAL_INDEX = NO COLS_IN_ALPHA_INDEX = 5 IGNORE_PREFIX = #--------------------------------------------------------------------------- # configuration options related to the HTML output #--------------------------------------------------------------------------- GENERATE_HTML = YES HTML_OUTPUT = html HTML_FILE_EXTENSION = .html HTML_HEADER = HTML_FOOTER = HTML_STYLESHEET = HTML_ALIGN_MEMBERS = YES GENERATE_HTMLHELP = NO GENERATE_CHI = NO BINARY_TOC = NO TOC_EXPAND = NO DISABLE_INDEX = NO ENUM_VALUES_PER_LINE = 4 GENERATE_TREEVIEW = NO TREEVIEW_WIDTH = 250 #--------------------------------------------------------------------------- # configuration options related to the LaTeX output #--------------------------------------------------------------------------- GENERATE_LATEX = NO LATEX_OUTPUT = latex LATEX_CMD_NAME = latex MAKEINDEX_CMD_NAME = makeindex COMPACT_LATEX = NO PAPER_TYPE = a4wide EXTRA_PACKAGES = LATEX_HEADER = PDF_HYPERLINKS = NO USE_PDFLATEX = NO LATEX_BATCHMODE = NO #--------------------------------------------------------------------------- # configuration options related to the RTF output #--------------------------------------------------------------------------- GENERATE_RTF = NO RTF_OUTPUT = rtf COMPACT_RTF = NO RTF_HYPERLINKS = NO RTF_STYLESHEET_FILE = RTF_EXTENSIONS_FILE = #--------------------------------------------------------------------------- # configuration options related to the man page output #--------------------------------------------------------------------------- GENERATE_MAN = NO MAN_OUTPUT = man MAN_EXTENSION = .3 MAN_LINKS = NO #--------------------------------------------------------------------------- # configuration options related to the XML output #--------------------------------------------------------------------------- GENERATE_XML = NO #--------------------------------------------------------------------------- # configuration options for the AutoGen Definitions output #--------------------------------------------------------------------------- GENERATE_AUTOGEN_DEF = NO #--------------------------------------------------------------------------- # Configuration options related to the preprocessor #--------------------------------------------------------------------------- ENABLE_PREPROCESSING = YES MACRO_EXPANSION = YES EXPAND_ONLY_PREDEF = YES SEARCH_INCLUDES = YES INCLUDE_PATH = INCLUDE_FILE_PATTERNS = PREDEFINED = EXPAND_AS_DEFINED = SKIP_FUNCTION_MACROS = YES #--------------------------------------------------------------------------- # Configuration::addtions related to external references #--------------------------------------------------------------------------- TAGFILES = GENERATE_TAGFILE = ALLEXTERNALS = NO EXTERNAL_GROUPS = YES PERL_PATH = /usr/bin/perl #--------------------------------------------------------------------------- # Configuration options related to the dot tool #--------------------------------------------------------------------------- CLASS_DIAGRAMS = YES HAVE_DOT = YES CLASS_GRAPH = YES COLLABORATION_GRAPH = YES TEMPLATE_RELATIONS = YES HIDE_UNDOC_RELATIONS = YES INCLUDE_GRAPH = YES INCLUDED_BY_GRAPH = YES GRAPHICAL_HIERARCHY = YES DOT_IMAGE_FORMAT = png DOT_PATH = DOTFILE_DIRS = MAX_DOT_GRAPH_WIDTH = 1024 MAX_DOT_GRAPH_HEIGHT = 1024 GENERATE_LEGEND = YES DOT_CLEANUP = YES #--------------------------------------------------------------------------- # Configuration::additions related to the search engine #--------------------------------------------------------------------------- SEARCHENGINE = NO #CGI_NAME = search.cgi #CGI_URL = #DOC_URL = #DOC_ABSPATH = #BIN_ABSPATH = /usr/local/bin/ #EXT_DOC_PATHS = oprofile-0.9.9/doc/Makefile.in0000664000076400007640000004775412175510233013135 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @BUILD_FOR_PERF_EVENT_TRUE@am__append_1 = operf.1 \ @BUILD_FOR_PERF_EVENT_TRUE@ ocount.1 subdir = doc DIST_COMMON = $(dist_html_DATA) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/ocount.1.in \ $(srcdir)/op-check-perfevents.1.in $(srcdir)/opannotate.1.in \ $(srcdir)/oparchive.1.in $(srcdir)/opcontrol.1.in \ $(srcdir)/operf.1.in $(srcdir)/opgprof.1.in \ $(srcdir)/ophelp.1.in $(srcdir)/opimport.1.in \ $(srcdir)/opreport.1.in $(srcdir)/oprof_start.1.in \ $(srcdir)/oprofile.1.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = oprofile.1 opcontrol.1 ophelp.1 \ op-check-perfevents.1 oprof_start.1 opreport.1 opannotate.1 \ opgprof.1 oparchive.1 opimport.1 operf.1 ocount.1 CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' man1dir = $(mandir)/man1 am__installdirs = "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(htmldir)" NROFF = nroff MANS = $(man_MANS) DATA = $(dist_html_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = xsltproc XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = $(prefix)/share/doc/oprofile includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ RM = rm MANDIR = $(DESTDIR)@mandir@/man1 XHTML_STYLESHEET = $(srcdir)/xsl/xhtml.xsl CHUNK_XHTML_STYLESHEET = $(srcdir)/xsl/xhtml-chunk.xsl XML_CATALOG_FILES = xsl/catalog.xml STYLESHEETS = $(CHUNK_XHTML_STYLESHEET) $(srcdir)/xsl/xhtml-common.xsl man_MANS = oprofile.1 opcontrol.1 opreport.1 opannotate.1 opgprof.1 \ ophelp.1 op-check-perfevents.1 oprof_start.1 oparchive.1 \ opimport.1 $(am__append_1) dist_html_DATA = oprofile.html internals.html opreport.xsd op-jit-devel.html EXTRA_DIST = \ oprofile.1 \ oprofile.1.in \ oprofile.xml \ op-jit-devel.xml \ internals.xml \ buffers.png \ xsl/catalog-1.xml.in \ xsl/xhtml.xsl \ xsl/xhtml-common.xsl \ xsl/xhtml-chunk.xsl \ srcdoc/Doxyfile.in \ srcdoc/Makefile all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign doc/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign doc/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): oprofile.1: $(top_builddir)/config.status $(srcdir)/oprofile.1.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ opcontrol.1: $(top_builddir)/config.status $(srcdir)/opcontrol.1.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ ophelp.1: $(top_builddir)/config.status $(srcdir)/ophelp.1.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ op-check-perfevents.1: $(top_builddir)/config.status $(srcdir)/op-check-perfevents.1.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ oprof_start.1: $(top_builddir)/config.status $(srcdir)/oprof_start.1.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ opreport.1: $(top_builddir)/config.status $(srcdir)/opreport.1.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ opannotate.1: $(top_builddir)/config.status $(srcdir)/opannotate.1.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ opgprof.1: $(top_builddir)/config.status $(srcdir)/opgprof.1.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ oparchive.1: $(top_builddir)/config.status $(srcdir)/oparchive.1.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ opimport.1: $(top_builddir)/config.status $(srcdir)/opimport.1.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ operf.1: $(top_builddir)/config.status $(srcdir)/operf.1.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ ocount.1: $(top_builddir)/config.status $(srcdir)/ocount.1.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-man1: $(man_MANS) @$(NORMAL_INSTALL) test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)" @list=''; test -n "$(man1dir)" || exit 0; \ { for i in $$list; do echo "$$i"; done; \ l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.1[a-z]*$$/p'; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ done; } uninstall-man1: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man1dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.1[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ test -z "$$files" || { \ echo " ( cd '$(DESTDIR)$(man1dir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(man1dir)" && rm -f $$files; } install-dist_htmlDATA: $(dist_html_DATA) @$(NORMAL_INSTALL) test -z "$(htmldir)" || $(MKDIR_P) "$(DESTDIR)$(htmldir)" @list='$(dist_html_DATA)'; test -n "$(htmldir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(htmldir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(htmldir)" || exit $$?; \ done uninstall-dist_htmlDATA: @$(NORMAL_UNINSTALL) @list='$(dist_html_DATA)'; test -n "$(htmldir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ test -n "$$files" || exit 0; \ echo " ( cd '$(DESTDIR)$(htmldir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(htmldir)" && rm -f $$files tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @list='$(MANS)'; if test -n "$$list"; then \ list=`for p in $$list; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \ if test -n "$$list" && \ grep 'ab help2man is required to generate this page' $$list >/dev/null; then \ echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \ grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \ echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \ echo " typically \`make maintainer-clean' will remove them" >&2; \ exit 1; \ else :; fi; \ else :; fi @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(MANS) $(DATA) installdirs: for dir in "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(htmldir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-local mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic distclean-local dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dist_htmlDATA install-man install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-man1 install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-dist_htmlDATA uninstall-local uninstall-man uninstall-man: uninstall-man1 .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ clean-local distclean distclean-generic distclean-libtool \ distclean-local distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am \ install-dist_htmlDATA install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-man1 install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ uninstall-dist_htmlDATA uninstall-local uninstall-man \ uninstall-man1 @have_xsltproc_TRUE@oprofile.html: ${top_srcdir}/doc/oprofile.xml @have_xsltproc_TRUE@ XML_CATALOG_FILES=$(XML_CATALOG_FILES) $(XSLTPROC) $(XSLTPROC_FLAGS) -o $@ --stringparam version @VERSION@ $(XHTML_STYLESHEET) $< @have_xsltproc_TRUE@op-jit-devel.html: ${top_srcdir}/doc/op-jit-devel.xml @have_xsltproc_TRUE@ XML_CATALOG_FILES=$(XML_CATALOG_FILES) $(XSLTPROC) $(XSLTPROC_FLAGS) -o $@ --stringparam version @VERSION@ $(XHTML_STYLESHEET) $< @have_xsltproc_TRUE@internals.html: ${top_srcdir}/doc/internals.xml @have_xsltproc_TRUE@ XML_CATALOG_FILES=$(XML_CATALOG_FILES) $(XSLTPROC) $(XSLTPROC_FLAGS) -o $@ --stringparam version @VERSION@ $(XHTML_STYLESHEET) $< # rules to generate oprofile.sf.net/doc files @have_xsltproc_TRUE@doc/index.html: ${top_srcdir}/doc/oprofile.xml @have_xsltproc_TRUE@ -mkdir doc/ @have_xsltproc_TRUE@ $(XSLTPROC) -o doc/ $(XSLTPROC_FLAGS) --stringparam version @VERSION@ $(CHUNK_XHTML_STYLESHEET) $< @have_xsltproc_TRUE@doc/devel/index.html: ${top_srcdir}/doc/op-jit-devel.xml @have_xsltproc_TRUE@ -mkdir doc/devel/ @have_xsltproc_TRUE@ $(XSLTPROC) -o doc/devel/ $(XSLTPROC_FLAGS) --stringparam version @VERSION@ $(CHUNK_XHTML_STYLESHEET) $< @have_xsltproc_TRUE@doc/internals/index.html: ${top_srcdir}/doc/internals.xml @have_xsltproc_TRUE@ -mkdir doc/internals/ @have_xsltproc_TRUE@ $(XSLTPROC) -o doc/internals/ $(XSLTPROC_FLAGS) --stringparam version @VERSION@ $(CHUNK_XHTML_STYLESHEET) $< @have_xsltproc_TRUE@chunk: doc/index.html doc/internals/index.html doc/devel/index.html @have_xsltproc_TRUE@ cp ${top_srcdir}/doc/buffers.png doc/internals/ @have_xsltproc_FALSE@oprofile.html: @have_xsltproc_FALSE@ touch $@ @have_xsltproc_FALSE@internals.html: @have_xsltproc_FALSE@ touch $@ @have_xsltproc_FALSE@op-jit-devel.html: @have_xsltproc_FALSE@ touch $@ @have_xsltproc_FALSE@chunk: distclean-local: $(RM) -f xsl/catalog-1.xml xsl/catalog.xml clean-local: $(RM) -f $(generated_mans) # these files are not cleaned by make uninstall automake bug ? uninstall-local: rm -f @mandir@/cat1/oprofile.1.gz @for f in $(LINK_LIST); do \ rm -f $(CATDIR)/cat1/$$f.gz; \ done # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/doc/internals.xml0000664000076400007640000014427512175510134013605 00000000000000 OProfile Internals John Levon
levon@movementarian.org
2003 John Levon
Introduction This document is current for OProfile version . This document provides some details on the internal workings of OProfile for the interested hacker. This document assumes strong C, working C++, plus some knowledge of kernel internals and CPU hardware. Only the "new" implementation associated with kernel 2.6 and above is covered here. 2.4 uses a very different kernel module implementation and daemon to produce the sample files. Overview OProfile is a statistical continuous profiler. In other words, profiles are generated by regularly sampling the current registers on each CPU (from an interrupt handler, the saved PC value at the time of interrupt is stored), and converting that runtime PC value into something meaningful to the programmer. OProfile achieves this by taking the stream of sampled PC values, along with the detail of which task was running at the time of the interrupt, and converting into a file offset against a particular binary file. Because applications mmap() the code they run (be it /bin/bash, /lib/libfoo.so or whatever), it's possible to find the relevant binary file and offset by walking the task's list of mapped memory areas. Each PC value is thus converted into a tuple of binary-image,offset. This is something that the userspace tools can use directly to reconstruct where the code came from, including the particular assembly instructions, symbol, and source line (via the binary's debug information if present). Regularly sampling the PC value like this approximates what actually was executed and how often - more often than not, this statistical approximation is good enough to reflect reality. In common operation, the time between each sample interrupt is regulated by a fixed number of clock cycles. This implies that the results will reflect where the CPU is spending the most time; this is obviously a very useful information source for performance analysis. Sometimes though, an application programmer needs different kinds of information: for example, "which of the source routines cause the most cache misses ?". The rise in importance of such metrics in recent years has led many CPU manufacturers to provide hardware performance counters capable of measuring these events on the hardware level. Typically, these counters increment once per each event, and generate an interrupt on reaching some pre-defined number of events. OProfile can use these interrupts to generate samples: then, the profile results are a statistical approximation of which code caused how many of the given event. Consider a simplified system that only executes two functions A and B. A takes one cycle to execute, whereas B takes 99 cycles. Imagine we run at 100 cycles a second, and we've set the performance counter to create an interrupt after a set number of "events" (in this case an event is one clock cycle). It should be clear that the chances of the interrupt occurring in function A is 1/100, and 99/100 for function B. Thus, we statistically approximate the actual relative performance features of the two functions over time. This same analysis works for other types of events, providing that the interrupt is tied to the number of events occurring (that is, after N events, an interrupt is generated). There are typically more than one of these counters, so it's possible to set up profiling for several different event types. Using these counters gives us a powerful, low-overhead way of gaining performance metrics. If OProfile, or the CPU, does not support performance counters, then a simpler method is used: the kernel timer interrupt feeds samples into OProfile itself. The rest of this document concerns itself with how we get from receiving samples at interrupt time to producing user-readable profile information. Components of the OProfile system Architecture-specific components If OProfile supports the hardware performance counters found on a particular architecture, code for managing the details of setting up and managing these counters can be found in the kernel source tree in the relevant arch/arch/oprofile/ directory. The architecture-specific implementation works via filling in the oprofile_operations structure at init time. This provides a set of operations such as setup(), start(), stop(), etc. that manage the hardware-specific details of fiddling with the performance counter registers. The other important facility available to the architecture code is oprofile_add_sample(). This is where a particular sample taken at interrupt time is fed into the generic OProfile driver code. oprofilefs OProfile implements a pseudo-filesystem known as "oprofilefs", mounted from userspace at /dev/oprofile. This consists of small files for reporting and receiving configuration from userspace, as well as the actual character device that the OProfile userspace receives samples from. At setup() time, the architecture-specific may add further configuration files related to the details of the performance counters. For example, on x86, one numbered directory for each hardware performance counter is added, with files in each for the event type, reset value, etc. The filesystem also contains a stats directory with a number of useful counters for various OProfile events. Generic kernel driver This lives in drivers/oprofile/, and forms the core of how OProfile works in the kernel. Its job is to take samples delivered from the architecture-specific code (via oprofile_add_sample()), and buffer this data, in a transformed form as described later, until releasing the data to the userspace daemon via the /dev/oprofile/buffer character device. The OProfile daemon The OProfile userspace daemon's job is to take the raw data provided by the kernel and write it to the disk. It takes the single data stream from the kernel and logs sample data against a number of sample files (found in $SESSION_DIR/samples/current/, by default located at /var/lib/oprofile/samples/current/. For the benefit of the "separate" functionality, the names/paths of these sample files are mangled to reflect where the samples were from: this can include thread IDs, the binary file path, the event type used, and more. After this final step from interrupt to disk file, the data is now persistent (that is, changes in the running of the system do not invalidate stored data). So the post-profiling tools can run on this data at any time (assuming the original binary files are still available and unchanged, naturally). Post-profiling tools So far, we've collected data, but we've yet to present it in a useful form to the user. This is the job of the post-profiling tools. In general form, they collate a subset of the available sample files, load and process each one correlated against the relevant binary file, and finally produce user-readable information. Performance counter management Providing a user interface The performance counter registers need programming in order to set the type of event to count, etc. OProfile uses a standard model across all CPUs for defining these events as follows : The event type e.g. DATA_MEM_REFS The sub-events to count (more detailed specification) The hardware counter(s) that can count this event The reset value (how many events before an interrupt) Whether the counter should increment when in kernel space Whether the counter should increment when in user space The term "unit mask" is borrowed from the Intel architectures, and can further specify exactly when a counter is incremented (for example, cache-related events can be restricted to particular state transitions of the cache lines). All of the available hardware events and their details are specified in the textual files in the events directory. The syntax of these files should be fairly obvious. The user specifies the names and configuration details of the chosen counters via opcontrol. These are then written to the kernel module (in numerical form) via /dev/oprofile/N/ where N is the physical hardware counter (some events can only be used on specific counters; OProfile hides these details from the user when possible). On IA64, the perfmon-based interface behaves somewhat differently, as described later. Programming the performance counter registers We have described how the user interface fills in the desired configuration of the counters and transmits the information to the kernel. It is the job of the ->setup() method to actually program the performance counter registers. Clearly, the details of how this is done is architecture-specific; it is also model-specific on many architectures. For example, i386 provides methods for each model type that programs the counter registers correctly (see the op_model_* files in arch/i386/oprofile for the details). The method reads the values stored in the virtual oprofilefs files and programs the registers appropriately, ready for starting the actual profiling session. The architecture-specific drivers make sure to save the old register settings before doing OProfile setup. They are restored when OProfile shuts down. This is useful, for example, on i386, where the NMI watchdog uses the same performance counter registers as OProfile; they cannot run concurrently, but OProfile makes sure to restore the setup it found before it was running. In addition to programming the counter registers themselves, other setup is often necessary. For example, on i386, the local APIC needs programming in order to make the counter's overflow interrupt appear as an NMI (non-maskable interrupt). This allows sampling (and therefore profiling) of regions where "normal" interrupts are masked, enabling more reliable profiles. Starting and stopping the counters Initiating a profiling session is done via writing an ASCII '1' to the file /dev/oprofile/enable. This sets up the core, and calls into the architecture-specific driver to actually enable each configured counter. Again, the details of how this is done is model-specific (for example, the Athlon models can disable or enable on a per-counter basis, unlike the PPro models). IA64 and perfmon The IA64 architecture provides a different interface from the other architectures, using the existing perfmon driver. Register programming is handled entirely in user-space (see daemon/opd_perfmon.c for the details). A process is forked for each CPU, which creates a perfmon context and sets the counter registers appropriately via the sys_perfmonctl interface. In addition, the actual initiation and termination of the profiling session is handled via the same interface using PFM_START and PFM_STOP. On IA64, then, there are no oprofilefs files for the performance counters, as the kernel driver does not program the registers itself. Instead, the perfmon driver for OProfile simply registers with the OProfile core with an OProfile-specific UUID. During a profiling session, the perfmon core calls into the OProfile perfmon driver and samples are registered with the OProfile core itself as usual (with oprofile_add_sample()). Collecting and processing samples Receiving interrupts Naturally, how the overflow interrupts are received is specific to the hardware architecture, unless we are in "timer" mode, where the logging routine is called directly from the standard kernel timer interrupt handler. On the i386 architecture, the local APIC is programmed such that when a counter overflows (that is, it receives an event that causes an integer overflow of the register value to zero), an NMI is generated. This calls into the general handler do_nmi(); because OProfile has registered itself as capable of handling NMI interrupts, this will call into the OProfile driver code in arch/i386/oprofile. Here, the saved PC value (the CPU saves the register set at the time of interrupt on the stack available for inspection) is extracted, and the counters are examined to find out which one generated the interrupt. Also determined is whether the system was inside kernel or user space at the time of the interrupt. These three pieces of information are then forwarded onto the OProfile core via oprofile_add_sample(). Finally, the counter values are reset to the chosen count value, to ensure another interrupt happens after another N events have occurred. Other architectures behave in a similar manner. Core data structures Before considering what happens when we log a sample, we shall digress for a moment and look at the general structure of the data collection system. OProfile maintains a small buffer for storing the logged samples for each CPU on the system. Only this buffer is altered when we actually log a sample (remember, we may still be in an NMI context, so no locking is possible). The buffer is managed by a two-handed system; the "head" iterator dictates where the next sample data should be placed in the buffer. Of course, overflow of the buffer is possible, in which case the sample is discarded. It is critical to remember that at this point, the PC value is an absolute value, and is therefore only meaningful in the context of which task it was logged against. Thus, these per-CPU buffers also maintain details of which task each logged sample is for, as described in the next section. In addition, we store whether the sample was in kernel space or user space (on some architectures and configurations, the address space is not sub-divided neatly at a specific PC value, so we must store this information). As well as these small per-CPU buffers, we have a considerably larger single buffer. This holds the data that is eventually copied out into the OProfile daemon. On certain system events, the per-CPU buffers are processed and entered (in mutated form) into the main buffer, known in the source as the "event buffer". The "tail" iterator indicates the point from which the CPU may be read, up to the position of the "head" iterator. This provides an entirely lock-free method for extracting data from the CPU buffers. This process is described in detail later in this chapter.
The OProfile buffers
Logging a sample As mentioned, the sample is logged into the buffer specific to the current CPU. The CPU buffer is a simple array of pairs of unsigned long values; for a sample, they hold the PC value and the counter for the sample. (The counter value is later used to translate back into the relevant event type the counter was programmed to). In addition to logging the sample itself, we also log task switches. This is simply done by storing the address of the last task to log a sample on that CPU in a data structure, and writing a task switch entry into the buffer if the new value of current() has changed. Note that later we will directly de-reference this pointer; this imposes certain restrictions on when and how the CPU buffers need to be processed. Finally, as mentioned, we log whether we have changed between kernel and userspace using a similar method. Both of these variables (last_task and last_is_kernel) are reset when the CPU buffer is read. Logging stack traces OProfile can also provide statistical samples of call chains (on x86). To do this, at sample time, the frame pointer chain is traversed, recording the return address for each stack frame. This will only work if the code was compiled with frame pointers, but we're careful to abort the traversal if the frame pointer appears bad. We store the set of return addresses straight into the CPU buffer. Note that, since this traversal is keyed off the standard sample interrupt, the number of times a function appears in a stack trace is not an indicator of how many times the call site was executed: rather, it's related to the number of samples we took where that call site was involved. Thus, the results for stack traces are not necessarily proportional to the call counts: typical programs will have many main() samples. Synchronising the CPU buffers to the event buffer At some point, we have to process the data in each CPU buffer and enter it into the main (event) buffer. The file buffer_sync.c contains the relevant code. We periodically (currently every HZ/4 jiffies) start the synchronisation process. In addition, we process the buffers on certain events, such as an application calling munmap(). This is particularly important for exit() - because the CPU buffers contain pointers to the task structure, if we don't process all the buffers before the task is actually destroyed and the task structure freed, then we could end up trying to dereference a bogus pointer in one of the CPU buffers. We also add a notification when a kernel module is loaded; this is so that user-space can re-read /proc/modules to determine the load addresses of kernel module text sections. Without this notification, samples for a newly-loaded module could get lost or be attributed to the wrong module. The synchronisation itself works in the following manner: first, mutual exclusion on the event buffer is taken. Remember, we do not need to do that for each CPU buffer, as we only read from the tail iterator (whilst interrupts might be arriving at the same buffer, but they will write to the position of the head iterator, leaving previously written entries intact). Then, we process each CPU buffer in turn. A CPU switch notification is added to the buffer first (for support). Then the processing of the actual data starts. As mentioned, the CPU buffer consists of task switch entries and the actual samples. When the routine sync_buffer() sees a task switch, the process ID and process group ID are recorded into the event buffer, along with a dcookie (see below) identifying the application binary (e.g. /bin/bash). The mmap_sem for the task is then taken, to allow safe iteration across the tasks' list of mapped areas. Each sample is then processed as described in the next section. After a buffer has been read, the tail iterator is updated to reflect how much of the buffer was processed. Note that when we determined how much data there was to read in the CPU buffer, we also called cpu_buffer_reset() to reset last_task and last_is_kernel, as we've already mentioned. During the processing, more samples may have been arriving in the CPU buffer; this is OK because we are careful to only update the tail iterator to how much we actually read - on the next buffer synchronisation, we will start again from that point. Identifying binary images In order to produce useful profiles, we need to be able to associate a particular PC value sample with an actual ELF binary on the disk. This leaves us with the problem of how to export this information to user-space. We create unique IDs that identify a particular directory entry (dentry), and write those IDs into the event buffer. Later on, the user-space daemon can call the lookup_dcookie system call, which looks up the ID and fills in the full path of the binary image in the buffer user-space passes in. These IDs are maintained by the code in fs/dcookies.c; the cache lasts for as long as the daemon has the event buffer open. Finding a sample's binary image and offset We haven't yet described how we process the absolute PC value into something usable by the user-space daemon. When we find a sample entered into the CPU buffer, we traverse the list of mappings for the task (remember, we will have seen a task switch earlier, so we know which task's lists to look at). When a mapping is found that contains the PC value, we look up the mapped file's dentry in the dcookie cache. This gives the dcookie ID that will uniquely identify the mapped file. Then we alter the absolute value such that it is an offset from the start of the file being mapped (the mapping need not start at the start of the actual file, so we have to consider the offset value of the mapping). We store this dcookie ID into the event buffer; this identifies which binary the samples following it are against. In this manner, we have converted a PC value, which has transitory meaning only, into a static offset value for later processing by the daemon. We also attempt to avoid the relatively expensive lookup of the dentry cookie value by storing the cookie value directly into the dentry itself; then we can simply derive the cookie value immediately when we find the correct mapping.
Generating sample files Processing the buffer Now we can move onto user-space in our description of how raw interrupt samples are processed into useful information. As we described in previous sections, the kernel OProfile driver creates a large buffer of sample data consisting of offset values, interspersed with notification of changes in context. These context changes indicate how following samples should be attributed, and include task switches, CPU changes, and which dcookie the sample value is against. By processing this buffer entry-by-entry, we can determine where the samples should be accredited to. This is particularly important when using the . The file daemon/opd_trans.c contains the basic routine for the buffer processing. The struct transient structure is used to hold changes in context. Its members are modified as we process each entry; it is passed into the routines in daemon/opd_sfile.c for actually logging the sample to a particular sample file (which will be held in $SESSION_DIR/samples/current). The buffer format is designed for conciseness, as high sampling rates can easily generate a lot of data. Thus, context changes are prefixed by an escape code, identified by is_escape_code(). If an escape code is found, the next entry in the buffer identifies what type of context change is being read. These are handed off to various handlers (see the handlers array), which modify the transient structure as appropriate. If it's not an escape code, then it must be a PC offset value, and the very next entry will be the numeric hardware counter. These values are read and recorded in the transient structure; we then do a lookup to find the correct sample file, and log the sample, as described in the next section. Handling kernel samples Samples from kernel code require a little special handling. Because the binary text which the sample is against does not correspond to any file that the kernel directly knows about, the OProfile driver stores the absolute PC value in the buffer, instead of the file offset. Of course, we need an offset against some particular binary. To handle this, we keep a list of loaded modules by parsing /proc/modules as needed. When a module is loaded, a notification is placed in the OProfile buffer, and this triggers a re-read. We store the module name, and the loading address and size. This is also done for the main kernel image, as specified by the user. The absolute PC value is matched against each address range, and modified into an offset when the matching module is found. See daemon/opd_kernel.c for the details. Locating and creating sample files We have a sample value and its satellite data stored in a struct transient, and we must locate an actual sample file to store the sample in, using the context information in the transient structure as a key. The transient data to sample file lookup is handled in daemon/opd_sfile.c. A hash is taken of the transient values that are relevant (depending upon the setting of , some values might be irrelevant), and the hash value is used to lookup the list of currently open sample files. Of course, the sample file might not be found, in which case we need to create and open it. OProfile uses a rather complex scheme for naming sample files, in order to make selecting relevant sample files easier for the post-profiling utilities. The exact details of the scheme are given in oprofile-tests/pp_interface, but for now it will suffice to remember that the filename will include only relevant information for the current settings, taken from the transient data. A fully-specified filename looks something like : /var/lib/oprofile/samples/current/{root}/usr/bin/xmms/{dep}/{root}/lib/tls/libc-2.3.2.so/CPU_CLK_UNHALTED.100000.0.28082.28089.0 It should be clear that this identifies such information as the application binary, the dependent (library) binary, the hardware event, and the process and thread ID. Typically, not all this information is needed, in which cases some values may be replaced with the token all. The code that generates this filename and opens the file is found in daemon/opd_mangling.c. You may have realised that at this point, we do not have the binary image file names, only the dcookie values. In order to determine a file name, a dcookie value is looked up in the dcookie cache. This is to be found in daemon/opd_cookie.c. Since dcookies are both persistent and unique during a sampling session, we can cache the values. If the value is not found in the cache, then we ask the kernel to do the lookup from value to file name for us by calling lookup_dcookie(). This looks up the value in a kernel-side cache (see fs/dcookies.c) and returns the fully-qualified file name to userspace. Writing data to a sample file Each specific sample file is a hashed collection, where the key is the PC offset from the transient data, and the value is the number of samples recorded against that offset. The files are mmap()ed into the daemon's memory space. The code to actually log the write against the sample file can be found in libdb/. For recording stack traces, we have a more complicated sample filename mangling scheme that allows us to identify cross-binary calls. We use the same sample file format, where the key is a 64-bit value composed from the from,to pair of offsets. Generating useful output All of the tools used to generate human-readable output have to take roughly the same steps to collect the data for processing. First, the profile specification given by the user has to be parsed. Next, a list of sample files matching the specification has to obtained. Using this list, we need to locate the binary file for each sample file, and then use them to extract meaningful data, before a final collation and presentation to the user. Handling the profile specification The profile specification presented by the user is parsed in the function profile_spec::create(). This creates an object representing the specification. Then we use profile_spec::generate_file_list() to search for all sample files and match them against the profile_spec. To enable this matching process to work, the attributes of each sample file is encoded in its filename. This is a low-tech approach to matching specifications against candidate sample files, but it works reasonably well. A typical sample file might look like these: /var/lib/oprofile/samples/current/{root}/bin/ls/{dep}/{root}/bin/ls/{cg}/{root}/bin/ls/CPU_CLK_UNHALTED.100000.0.all.all.all /var/lib/oprofile/samples/current/{root}/bin/ls/{dep}/{root}/bin/ls/CPU_CLK_UNHALTED.100000.0.all.all.all /var/lib/oprofile/samples/current/{root}/bin/ls/{dep}/{root}/bin/ls/CPU_CLK_UNHALTED.100000.0.7423.7424.0 /var/lib/oprofile/samples/current/{kern}/r128/{dep}/{kern}/r128/CPU_CLK_UNHALTED.100000.0.all.all.all This looks unnecessarily complex, but it's actually fairly simple. First we have the session of the sample, by default located here /var/lib/oprofile/samples/current. This location can be changed by specifying the --session-dir option at command-line. This session could equally well be inside an archive from oparchive. Next we have one of the tokens {root} or {kern}. {root} indicates that the binary is found on a file system, and we will encode its path in the next section (e.g. /bin/ls). {kern} indicates a kernel module - on 2.6 kernels the path information is not available from the kernel, so we have to special-case kernel modules like this; we encode merely the name of the module as loaded. Next there is a {dep} token, indicating another token/path which identifies the dependent binary image. This is used even for the "primary" binary (i.e. the one that was execve()d), as it simplifies processing. Finally, if this sample file is a normal flat profile, the actual file is next in the path. If it's a call-graph sample file, we need one further specification, to allow us to identify cross-binary arcs in the call graph. The actual sample file name is dot-separated, where the fields are, in order: event name, event count, unit mask, task group ID, task ID, and CPU number. This sample file can be reliably parsed (with parse_filename()) into a filename_spec. Finally, we can check whether to include the sample file in the final results by comparing this filename_spec against the profile_spec the user specified (for the interested, see valid_candidate() and profile_spec::match). Then comes the really complicated bit... Collating the candidate sample files At this point we have a duplicate-free list of sample files we need to process. But first we need to do some further arrangement: we need to classify each sample file, and we may also need to "invert" the profiles. Classifying sample files It's possible for utilities like opreport to show data in columnar format: for example, we might want to show the results of two threads within a process side-by-side. To do this, we need to classify each sample file into classes - the classes correspond with each opreport column. The function that handles this is arrange_profiles(). Each sample file is added to a particular class. If the sample file is the first in its class, a template is generated from the sample file. Each template describes a particular class (thus, in our example above, each template will have a different thread ID, and this uniquely identifies each class). Each class has a list of "profile sets" matching that class's template. A profile set is either a profile of the primary binary image, or any of its dependent images. After all sample files have been listed in one of the profile sets belonging to the classes, we have to name each class and perform error-checking. This is done by identify_classes(); each class is checked to ensure that its "axis" is the same as all the others. This is needed because opreport can't produce results in 3D format: we can only differ in one aspect, such as thread ID or event name. Creating inverted profile lists Remember that if we're using certain profile separation options, such as "--separate=lib", a single binary could be a dependent image to many different binaries. For example, the C library image would be a dependent image for most programs that have been profiled. As it happens, this can cause severe performance problems: without some re-arrangement, these dependent binary images would be opened each time we need to process sample files for each program. The solution is to "invert" the profiles via invert_profiles(). We create a new data structure where the dependent binary is first, and the primary binary images using that dependent binary are listed as sub-images. This helps our performance problem, as now we only need to open each dependent image once, when we process the list of inverted profiles. Generating profile data Things don't get any simpler at this point, unfortunately. At this point we've collected and classified the sample files into the set of inverted profiles, as described in the previous section. Now we need to process each inverted profile and make something of the data. The entry point for this is populate_for_image(). Processing the binary image The first thing we do with an inverted profile is attempt to open the binary image (remember each inverted profile set is only for one binary image, but may have many sample files to process). The op_bfd class provides an abstracted interface to this; internally it uses libbfd. The main purpose of this class is to process the symbols for the binary image; this is also where symbol filtering happens. This is actually quite tricky, but should be clear from the source. Processing the sample files The class profile_container is a hold-all that contains all the processed results. It is a container of profile_t objects. The add_sample_files() method uses libdb to open the given sample file and add the key/value types to the profile_t. Once this has been done, profile_container::add() is passed the profile_t plus the op_bfd for processing. profile_container::add() walks through the symbols collected in the op_bfd. op_bfd::get_symbol_range() gives us the start and end of the symbol as an offset from the start of the binary image, then we interrogate the profile_t for the relevant samples for that offset range. We create a symbol_entry object for this symbol and fill it in. If needed, here we also collect debug information from the op_bfd, and possibly record the detailed sample information (as used by opreport -d and opannotate). Finally the symbol_entry is added to a private container of profile_container - this symbol_container holds all such processed symbols. Generating output After the processing described in the previous section, we've now got full details of what we need to output stored in the profile_container on a symbol-by-symbol basis. To produce output, we need to replay that data and format it suitably. opreport first asks the profile_container for a symbol_collection (this is also where thresholding happens). This is sorted, then a opreport_formatter is initialised. This object initialises a set of field formatters as requested. Then opreport_formatter::output() is called. This iterates through the (sorted) symbol_collection; for each entry, the selected fields (as set by the format_flags options) are output by calling the field formatters, with the symbol_entry passed in. Extended Feature Interface Introduction The Extended Feature Interface is a standard callback interface designed to allow extension to the OProfile daemon's sample processing. Each feature defines a set of callback handlers which can be enabled or disabled through the OProfile daemon's command-line option. This interface can be used to implement support for architecture-specific features or features not commonly used by general OProfile users. Feature Name and Handlers Each extended feature has an entry in the ext_feature_table in opd_extended.cpp. Each entry contains a feature name, and a corresponding set of handlers. Feature name is a unique string, which is used to identify a feature in the table. Each feature provides a set of handlers, which will be executed by the OProfile daemon from pre-determined locations to perform certain tasks. At runtime, the OProfile daemon calls a feature handler wrapper from one of the predetermined locations to check whether an extended feature is enabled, and whether a particular handler exists. Only the handlers of the enabled feature will be executed. Enabling Features Each feature is enabled using the OProfile daemon (oprofiled) command-line option "--ext-feature=<extended-feature-name>:[args]". The "extended-feature-name" is used to determine the feature to be enabled. The optional "args" is passed into the feature-specific initialization handler (ext_init). Currently, only one extended feature can be enabled at a time. Type of Handlers Each feature is responsible for providing its own set of handlers. Types of handler are: ext_init Handler "ext_init" handles initialization of an extended feature. It takes "args" parameter which is passed in through the "oprofiled --ext-feature=< extended-feature-name>:[args]". This handler is executed in the function opd_options() in the file daemon/oprofiled.c . The ext_init handler is required for all features. ext_print_stats Handler "ext_print_stats" handles the extended feature statistics report. It adds a new section in the OProfile daemon statistics report, which is normally outputed to the file /var/lib/oprofile/samples/oprofiled.log. This handler is executed in the function opd_print_stats() in the file daemon/opd_stats.c. ext_sfile Handler "ext_sfile" contains a set of handlers related to operations on the extended sample files (sample files for events related to extended feature). These operations include create_sfile(), sfile_dup(), close_sfile(), sync_sfile(), and get_file() as defined in daemon/opd_sfile.c. An additional field, odb_t * ext_file, is added to the struct sfile for storing extended sample files information. Extended Feature Reference Implementation Instruction-Based Sampling (IBS) An example of extended feature implementation can be seen by examining the AMD Instruction-Based Sampling support. IBS Initialization Instruction-Based Sampling (IBS) is a new performance measurement technique available on AMD Family 10h processors. Enabling IBS profiling is done simply by specifying IBS performance events through the "--event=" options. opcontrol --event=IBS_FETCH_XXX:<count>:<um>:<kernel>:<user> opcontrol --event=IBS_OP_XXX:<count>:<um>:<kernel>:<user> Note: * Count and unitmask for all IBS fetch events must be the same, as do those for IBS op. IBS performance events are listed in opcontrol --list-events. When users specify these events, opcontrol verifies them using ophelp, which checks for the ext:ibs_fetch or ext:ibs_op tag in events/x86-64/family10/events file. Then, it configures the driver interface (/dev/oprofile/ibs_fetch/... and /dev/oprofile/ibs_op/...) and starts the OProfile daemon as follows. oprofiled \ --ext-feature=ibs:\ fetch:<IBS_FETCH_EVENT1>,<IBS_FETCH_EVENT2>,...,:<IBS fetch count>:<IBS Fetch um>|\ op:<IBS_OP_EVENT1>,<IBS_OP_EVENT2>,...,:<IBS op count>:<IBS op um> Here, the OProfile daemon parses the --ext-feature option and checks the feature name ("ibs") before calling the the initialization function to handle the string containing IBS events, counts, and unitmasks. Then, it stores each event in the IBS virtual-counter table (struct opd_event ibs_vc[OP_MAX_IBS_COUNTERS]) and stores the event index in the IBS Virtual Counter Index (VCI) map (ibs_vci_map[OP_MAX_IBS_COUNTERS]) with IBS event value as the map key. IBS Data Processing During a profile session, the OProfile daemon identifies IBS samples in the event buffer using the "IBS_FETCH_CODE" or "IBS_OP_CODE". These codes trigger the handlers code_ibs_fetch_sample() or code_ibs_op_sample() listed in the handler_t handlers[] vector in daemon/opd_trans.c . These handlers are responsible for processing IBS samples and translate them into IBS performance events. Unlike traditional performance events, each IBS sample can be derived into multiple IBS performance events. For each event that the user specifies, a combination of bits from Model-Specific Registers (MSR) are checked against the bitmask defining the event. If the condition is met, the event will then be recorded. The derivation logic is in the files daemon/opd_ibs_macro.h and daemon/opd_ibs_trans.[h,c]. IBS Sample File Traditionally, sample file information (odb_t) is stored in the struct sfile::odb_t file[OP_MAX_COUNTER]. Currently, OP_MAX_COUNTER is 8 on non-alpha, and 20 on alpha-based system. Event index (the counter number on which the event is configured) is used to access the corresponding entry in the array. Unlike the traditional performance event, IBS does not use the actual counter registers (i.e. /dev/oprofile/0,1,2,3). Also, the number of performance events generated by IBS could be larger than OP_MAX_COUNTER (currently upto 13 IBS-fetch and 46 IBS-op events). Therefore IBS requires a special data structure and sfile handlers (struct opd_ext_sfile_handlers) for managing IBS sample files. IBS-sample-file information is stored in a memory allocated by handler ibs_sfile_create(), which can be accessed through struct sfile::odb_t * ext_files. Glossary of OProfile source concepts and types application image The primary binary image used by an application. This is derived from the kernel and corresponds to the binary started upon running an application: for example, /bin/bash. binary image An ELF file containing executable code: this includes kernel modules, the kernel itself (a.k.a. vmlinux), shared libraries, and application binaries. dcookie Short for "dentry cookie". A unique ID that can be looked up to provide the full path name of a binary image. dependent image A binary image that is dependent upon an application, used with per-application separation. Most commonly, shared libraries. For example, if /bin/bash is running and we take some samples inside the C library itself due to bash calling library code, then the image /lib/libc.so would be dependent upon /bin/bash. merging This refers to the ability to merge several distinct sample files into one set of data at runtime, in the post-profiling tools. For example, per-thread sample files can be merged into one set of data, because they are compatible (i.e. the aggregation of the data is meaningful), but it's not possible to merge sample files for two different events, because there would be no useful meaning to the results. profile class A collection of profile data that has been collected under the same class template. For example, if we're using opreport to show results after profiling with two performance counters enabled profiling DATA_MEM_REFS and CPU_CLK_UNHALTED, there would be two profile classes, one for each event. Or if we're on an SMP system and doing per-cpu profiling, and we request opreport to show results for each CPU side-by-side, there would be a profile class for each CPU. profile specification The parameters the user passes to the post-profiling tools that limit what sample files are used. This specification is matched against the available sample files to generate a selection of profile data. profile template The parameters that define what goes in a particular profile class. This includes a symbolic name (e.g. "cpu:1") and the code-usable equivalent.
oprofile-0.9.9/doc/oprof_start.1.in0000664000076400007640000000135712175510134014106 00000000000000.TH OPROF_START 1 "@DATE@" "oprofile @VERSION@" .UC 4 .SH NAME oprof_start \- A GUI interface for OProfile .SH SYNOPSIS .br .B oprof_start [ .I options ] .SH DESCRIPTION The .B oprof_start application provides a GUI interface to control the operation of OProfile. Running .B oprof_start requires root privileges and does not support .B operf due to .B oprof_start using the older .B opcontrol script. .SH ENVIRONMENT No special environment variables are recognised by oprof_start. .SH FILES .TP .I /root/.oprofile/daemonrc Configuration file for opcontrol .TP .I /var/lib/oprofile/samples/ The location of the generated sample files. .SH VERSION .TP This man page is current for @PACKAGE@-@VERSION@. .SH SEE ALSO .BR @OP_DOCDIR@, .BR oprofile(1) oprofile-0.9.9/doc/opreport.1.in0000664000076400007640000000770412175510134013420 00000000000000.TH OPREPORT 1 "@DATE@" "oprofile @VERSION@" .UC 4 .SH NAME opreport \- produce symbol or binary image summaries .SH SYNOPSIS .br .B opreport [ .I options ] [profile specification] .SH DESCRIPTION .B opreport outputs binary image summaries, or per-symbol data, from OProfile profiling sessions. See oprofile(1) for how to write profile specifications. .SH OPTIONS .TP .BI "--accumulated / -a" Accumulate sample and percentage counts in the symbol list. .br .TP .BI "--debug-info / -g" Show source file and line for each symbol. .br .TP .BI "--demangle / -D none|smart|normal" none: no demangling. normal: use default demangler (default) smart: use pattern-matching to make C++ symbol demangling more readable. .br .TP .BI "--callgraph / -c" Show call graph information if available. .br .TP .BI "--details / -d" Show per-instruction details for all selected symbols. .br .TP .BI "--exclude-dependent / -x" Do not include application-specific images for libraries, kernel modules and the kernel. This option only makes sense if the profile session used --separate. .br .TP .BI "--exclude-symbols / -e [symbols]" Exclude all the symbols in the given comma-separated list. .br .TP .BI "--global-percent / -%" Make all percentages relative to the whole profile. .br .TP .BI "--help / -? / --usage" Show help message. .br .TP .BI "--image-path / -p [paths]" Comma-separated list of additional paths to search for binaries. This is needed to find modules in kernels 2.6 and upwards. .br .TP .BI "--root / -R [path]" A path to a filesystem to search for additional binaries. .br .TP .BI "--include-symbols / -i [symbols]" Only include symbols in the given comma-separated list. .br .TP .BI "--long-filenames / -f" Output full paths instead of basenames. .br .TP .BI "--merge / -m [lib,cpu,tid,tgid,unitmask,all]" Merge any profiles separated in a --separate session. .br .TP .BI "--no-header / -n" Don't output a header detailing profiling parameters. .br .TP .BI "--output-file / -o [file]" Output to the given file instead of stdout. .br .TP .BI "--reverse-sort / -r" Reverse the sort from the default. .br .TP .BI "--session-dir="dir_path Use sample database from the specified directory .I dir_path instead of the default locations. If .I --session-dir is not specified, then .B opreport will search for samples in .I /oprofile_data first. If that directory does not exist, the standard session-dir of /var/lib/oprofile is used. .br .TP .BI "--show-address / -w" Show each symbol's VMA address. .br .TP .BI "--sort / -s [vma,sample,symbol,debug,image]" Sort the list of symbols by, respectively, symbol address, number of samples, symbol name, debug filename and line number, binary image filename. .br .TP .BI "--symbols / -l" List per-symbol information instead of a binary image summary. .br Usually, the total of all per-symbols samples for a given binary image equals the summary count for the binary image (shown by running .B opreport with no options). However, it's possible for some sample addresses to fall outside the range of any symbols for a given binary image. In such cases, the total number of per-symbols samples for the binary image may be less than the summary count for the image. Running .B opreport with the .I --verbose=debug option will display an informational message when this difference is detected. This difference is typically very small and can be ignored. .br .TP .BI "--threshold / -t [percentage]" Only output data for symbols that have more than the given percentage of total samples. .br .TP .BI "--verbose / -V [options]" Give verbose debugging output. .br .TP .BI "--version / -v" Show version. .br .TP .BI "--xml / -X" Generate XML output. .SH ENVIRONMENT No special environment variables are recognized by opreport. .SH FILES .I /oprofile_data/samples .RS 7 Or .RE .I /var/lib/oprofile/samples/ .LP .RS 7 The location of the generated sample files. .RE .SH VERSION .TP This man page is current for @PACKAGE@-@VERSION@. .SH SEE ALSO .BR @OP_DOCDIR@, .BR oprofile(1) oprofile-0.9.9/doc/oprofile.10000664000076400007640000001164312175510425012760 00000000000000.TH OPROFILE 1 "Mon 29 July 2013" "oprofile 0.9.9" .UC 4 .SH NAME oprofile \- a system-wide profiler .SH SYNOPSIS .br .B opcontrol [ .I options ] .br .B opreport [ .I options ] [ profile specification ] .br .B opannotate [ .I options ] [ profile specification ] .br .B oparchive [ .I options ] [ profile specification ] .br .B opgprof [ .I options ] [ profile specification ] .br .SH DESCRIPTION OProfile is a profiling system for systems running Linux 2.6 and greater. Profiling runs transparently in the background and profile data can be collected at any time. OProfile makes use of the hardware performance counters provided on Intel, AMD, and other processors, and uses a timer-interrupt based mechanism on CPUs without counters. OProfile can profile the whole system in high detail. .br For a gentle guide to using OProfile, please read the HTML documentation listed in SEE ALSO. .br .SH OPCONTROL .B opcontrol is used for starting and stopping the OProfile daemon, and providing set-up parameters. .SH OPREPORT .B opreport gives image and symbol-based profile summaries for the whole system or a subset of binary images. .SH OPANNOTATE .B opannotate can produce annotated source or mixed source and assembly output. .SH OPARCHIVE .B oparchive produces oprofile archive for offline analysis .SH OPGPROF .B opgprof can produce a gprof-format profile for a single binary. .SH PROFILE SPECIFICATIONS All of the post-profiling tools can take profile specifications, which is some combination of the following parameters. Enclosing part of a profile specification in curly braces { } can be used for differential profiles with .B opreport ; the braces .B must be surrounded by whitespace. .TP .BI "archive:"archive Path to the archive to inspect, as generated by .B oparchive .br .TP .BI "session:"sessionlist A comma-separated list of session names to resolve in. Absence of this tag, unlike all others, means "the current session", equivalent to specifying "session:current". .br .TP .BI "session-exclude:"sessionlist A comma-separated list of sessions to exclude. .br .TP .BI "image:"imagelist A comma-separated list of image names to resolve. Each entry may be relative path, glob-style name, or full path, e.g. opreport 'image:/usr/bin/oprofiled,*op*,./oprofpp' .br .TP .BI "image-exclude:"imagelist Same as image:, but the matching images are excluded. .br .TP .BI "lib-image:"imagelist Same as image:, but only for images that are for a particular primary binary image (namely, an application). This only makes sense to use if you're using --separate. This includes kernel modules and the kernel when using --separate=kernel. .br .TP .BI "lib-image-exclude:"imagelist Same as , but the matching images are excluded. .br .TP .BI "event:"eventname The symbolic event name to match on, e.g. event:DATA_MEM_REFS. .br .TP .BI "count:"eventcount The event count to match on, e.g. event:DATA_MEM_REFS count:30000. .br .TP .BI "unit-mask:"maskvalue The unit mask value of the event to match on, e.g. unit-mask:1. .br .TP .BI "cpu:"cpulist Only consider profiles for the given numbered CPU (starting from zero). This is only useful when using CPU profile separation. .br .TP .BI "tgid:"pidlist Only consider profiles for the given task groups. Unless some program is using threads, the task group ID of a process is the same as its process ID. This option corresponds to the POSIX notion of a thread group. This is only useful when using per-process profile separation. .br .TP .BI "tid:"tidlist Only consider profiles for the given threads. When using recent thread libraries, all threads in a process share the same task group ID, but have different thread IDs. You can use this option in combination with tgid: to restrict the results to particular threads within a process. This is only useful when using per-process profile separation. .SH ENVIRONMENT No special environment variables are recognised by oprofile. .SH FILES .TP .I $HOME/.oprofile/ Configuration files .TP .I /root/.oprofile/daemonrc Configuration file for opcontrol .TP .I /home/mpjohn/oprof-install/share/oprofile/ Event description files used by OProfile. .TP .I /var/lib/oprofile/samples/oprofiled.log The user-space daemon logfile. .TP .I /dev/oprofile The device filesystem for communication with the Linux kernel module. .TP .I /var/lib/oprofile/samples/ The location of the generated sample files. .SH VERSION .TP This man page is current for oprofile-0.9.9. .SH SEE ALSO .BR /home/mpjohn/oprof-install/share/doc/oprofile/, .BR opcontrol(1), .BR opreport(1), .BR opannotate(1), .BR oparchive(1), .BR opgprof(1), .BR gprof(1), .BR readprofile(1), .BR "CPU vendor architecture manuals" .SH COPYRIGHT oprofile is Copyright (C) 1998-2004 University of Manchester, UK, John Levon, and others. OProfile is released under the GNU General Public License, Version 2, or (at your option) any later version. .SH AUTHORS John Levon is the primary author. See the documentation for other contributors. oprofile-0.9.9/doc/oparchive.1.in0000664000076400007640000000376612175510134013532 00000000000000.TH OPARCHIVE 1 "@DATE@" "oprofile @VERSION@" .UC 4 .SH NAME oparchive \- produce archive of oprofile data for offline analysis .SH SYNOPSIS .br .B oparchive [ .I options ] [profile specification] .B -o [directory] .SH DESCRIPTION .B oparchive generates a directory populated with executable, debug, and oprofile sample files. This directory can be move to another machine via tar and analyzed without further use of the data collection machine. See oprofile(1) for how to write profile specifications. .SH OPTIONS .TP .BI "--help / -? / --usage" Show help message. .br .TP .BI "--version / -v" Show version. .br .TP .BI "--verbose / -V [options]" Give verbose debugging output. .br .TP .BI "--session-dir="dir_path Use sample database from the specified directory .I dir_path instead of the default locations. If .I --session-dir is not specified, then .B oparchive will search for samples in .I /oprofile_data first. If that directory does not exist, the standard session-dir of /var/lib/oprofile is used. .br .TP .BI "--image-path / -p [paths]" Comma-separated list of additional paths to search for binaries. This is needed to find modules in kernels 2.6 and upwards. .br .TP .BI "--root / -R [path]" A path to a filesystem to search for additional binaries. .br .TP .BI "--output-directory / -o [directory]" Output to the given directory. There is no default. This must be specified. .br .TP .BI "--exclude-dependent / -x" Do not include application-specific images for libraries, kernel modules and the kernel. This option only makes sense if the profile session used --separate. .br .TP .BI "--list-files / -l" Only list the files that would be archived, don't copy them. .SH ENVIRONMENT No special environment variables are recognised by oparchive. .SH FILES .I /oprofile_data/samples .RS 7 Or .RE .I /var/lib/oprofile/samples/ .LP .RS 7 The location of the generated sample files. .RE .SH VERSION .TP This man page is current for @PACKAGE@-@VERSION@. .SH SEE ALSO .BR @OP_DOCDIR@, .BR oprofile(1) oprofile-0.9.9/doc/opimport.1.in0000664000076400007640000000232012175510134013404 00000000000000.TH OPIMPORT 1 "@DATE@" "oprofile @VERSION@" .UC 4 .SH NAME opimport \- converts sample database files .SH SYNOPSIS .br .B opimport [ .I options ] input_file .SH DESCRIPTION .B opimport converts sample database files from a foreign binary format (abi) to the native format. .SH OPTIONS .TP .BI "--abi / -a" Input abi file description location. .br .TP .BI "--force / -f" Force conversion even if the input and output abi are identical. .br .TP .BI "--output / -o filename" Specify the output filename. If the output file already exists it is not overwritten but data are accumulated in. Sample filename are informative for post profile tools and must be kept identical, in other word the pathname from the first path component containing a '{' must be kept as it in the output filename. .br .TP .BI "--help / -? / --usage" Show help message. .br .TP .BI "--verbose / -V" Give verbose debugging output. .br .TP .BI "--version / -v" Show version. .SH ENVIRONMENT No special environment variables are recognised by opimport .SH FILES .TP .I /var/lib/oprofile/abi The abi file description of the sample database files .SH VERSION .TP This man page is current for @PACKAGE@-@VERSION@. .SH SEE ALSO .BR @OP_DOCDIR@, .BR oprofile(1) oprofile-0.9.9/doc/oprofile.html0000664000076400007640000103132412175510314013560 00000000000000 OProfile manual

OProfile manual


Table of Contents

1. Introduction
1. OProfile legacy profiling mode
2. OProfile perf_events profiling mode
3. OProfile event counting mode
4. Applications of OProfile
4.1. Support for dynamically compiled (JIT) code
4.2. No support for virtual machine guests
5. System requirements
6. Internet resources
7. Installation
8. Uninstalling OProfile
2. Overview
1. Getting started with OProfile using operf
2. Getting started with OProfile using legacy profiling mode
3. Getting started with OProfile using ocount
4. Specifying performance counter events
5. Tools summary
3. Controlling the profiler
1. Using operf
2. Using opcontrol
2.1. Examples
3. Setting up the JIT profiling feature
3.1. JVM instrumentation
4. Using oprof_start
5. Configuration details
5.1. Hardware performance counters
5.2. OProfile in timer interrupt mode
5.3. Pentium 4 support
5.4. Intel Itanium 2 support
5.5. PowerPC64 support
5.6. Cell Broadband Engine support
5.7. AMD64 (x86_64) Instruction-Based Sampling (IBS) support
5.8. IBM System z hardware sampling support
5.9. Dangerous counter settings
4. Obtaining profiling results
1. Profile specifications
1.1. Examples
1.2. Profile specification parameters
1.3. Locating and managing binary images
1.4. What to do when you don't get any results
2. Image summaries and symbol summaries (opreport)
2.1. Merging separate profiles
2.2. Side-by-side multiple results
2.3. Callgraph output
2.4. Differential profiles with opreport
2.5. Anonymous executable mappings
2.6. XML formatted output
2.7. Options for opreport
3. Outputting annotated source (opannotate)
3.1. Locating source files
3.2. Usage of opannotate
4. OProfile results with JIT samples
5. gprof-compatible output (opgprof)
5.1. Usage of opgprof
6. Analyzing profile data on another system (oparchive)
6.1. Usage of oparchive
7. Converting sample database files (opimport)
7.1. Usage of opimport
5. Interpreting profiling results
1. Profiling interrupt latency
2. Kernel profiling
2.1. Interrupt masking
2.2. Idle time
2.3. Profiling kernel modules
3. Interpreting call-graph profiles
4. Inaccuracies in annotated source
4.1. Side effects of optimizations
4.2. Prologues and epilogues
4.3. Inlined functions
4.4. Inaccuracy in line number information
5. Assembly functions
6. Overlapping symbols in JITed code
7. Using operf to profile fork/execs
8. Other discrepancies
6. Controlling the event counter
1. Using ocount
7. Acknowledgments

Chapter 1. Introduction

This manual applies to OProfile version 0.9.9. OProfile is a set of performance monitoring tools for Linux 2.6 and higher systems, available on a number of architectures. OProfile provides the following features:

  • Profiler
  • Post-processing tools for analyzing profile data
  • Event counter

OProfile is capable of monitoring native hardware events occurring in all parts of a running system, from the kernel (including modules and interrupt handlers) to shared libraries to binaries. OProfile can collect event information for the whole system in the background with very little overhead. These features make it ideal for monitoring entire systems to determine bottle necks in real-world systems.

Many CPUs provide "performance counters", hardware registers that can count "events"; for example, cache misses, or CPU cycles. OProfile can collect profiles of code based on the number of these occurring events: repeatedly, every time a certain (configurable) number of events has occurred, the PC value is recorded. This information is aggregated into profiles for each binary image. Alternatively, OProfile's event counting tool can collect simple raw event counts.

Some hardware setups do not allow OProfile to use performance counters: in these cases, no events are available so OProfile operates in timer mode, as described in later chapters. Timer mode is only available in "legacy profiling mode" (see Section 1, “OProfile legacy profiling mode”).

1. OProfile legacy profiling mode

"Legacy" OProfile consists of the opcontrol shell script, the oprofiled daemon, and several post-processing tools (e.g., opreport). The opcontrol script is used for configuring, starting, and stopping a profiling session. An OProfile kernel driver (usually built as a kernel module) is used for collecting samples, which are then recorded into sample files by oprofiled. Using OProfile in "legacy mode" requires root user authority since the profiling is done on a system-wide basis, which may (if misused) cause adverse effects to the system.

Note

Profiling setup parameters that you specify using opcontrol are cached in /root/.oprofile/daemonrc. Subsequent runs of opcontrol --start will continue to use these cached values until you override them with new values.

2. OProfile perf_events profiling mode

As of release 0.9.8, OProfile now includes the ability to profile a single process versus the system-wide technique of legacy OProfile. With this new technique, the operf program is used to control profiling instead of the opcontrol script and oprofiled daemon of leagacy mode. Also, operf does not require the special OProfile kernel driver that legacy mode does; instead, it interfaces with the kernel to collect samples via the Linux Kernel Performance Events Subsystem (hereafter referred to as "perf_events"). Using operf to profile a single process can be done as a normal user; however, root authority is required to run operf in system-wide profiling mode.

Note 1

The same OProfile post-processing tools are used whether you collect your profile with operf or opcontrol.

Note 2

Some older processor models are not supported by the underlying perf_events kernel and, thus, are not supported by operf. If you receive the message
  Your kernel's Performance Events Subsystem does not support your processor type
when attempting to use operf, try profiling with opcontrol to see if your processor type may be supported by OProfile's legacy mode.

3. OProfile event counting mode

As of release 0.9.9, OProfile now includes the ocount tool which provides the capability of collecting raw event counts on a per-application, per-process, per-cpu, or system-wide basis. Unlike the profiling tools, post-processing of the data collected is not necessary -- the data is displayed in the output of ocount. A common use case for event counting tools is when performance analysts want to determine the CPI (cycles per instruction) for an application. High CPI implies possible stalls, and many architectures provide events that give detailed information about the different types of stalls. The events provided are architecture-specific, so we refer the reader to the hardware manuals available for the processor type being used.

4. Applications of OProfile

OProfile is useful in a number of situations. You might want to use OProfile when you :

  • need low overhead

  • cannot use highly intrusive profiling methods

  • need to profile interrupt handlers

  • need to profile an application and its shared libraries

  • need to profile dynamically compiled code of supported virtual machines (see Section 4.1, “Support for dynamically compiled (JIT) code”)

  • need to capture the performance behaviour of entire system

  • want to examine hardware effects such as cache misses

  • want detailed source annotation

  • want instruction-level profiles

  • want call-graph profiles

OProfile is not a panacea. OProfile might not be a complete solution when you :

  • require call graph profiles on platforms other than x86, ARM, and PowerPC

  • require 100% instruction-accurate profiles

  • need function call counts or an interstitial profiling API

  • cannot tolerate any disturbance to the system whatsoever

  • need to profile interpreted or dynamically compiled code of non-supported virtual machines

4.1. Support for dynamically compiled (JIT) code

Older versions of OProfile were not capable of attributing samples to symbols from dynamically compiled code, i.e. "just-in-time (JIT) code". Typical JIT compilers load the JIT code into anonymous memory regions. OProfile reported the samples from such code, but the attribution provided was simply:

     anon: <tgid><address range>

Due to this limitation, it wasn't possible to profile applications executed by virtual machines (VMs) like the Java Virtual Machine. OProfile now contains an infrastructure to support JITed code. A development library is provided to allow developers to add support for any VM that produces dynamically compiled code (see the OProfile JIT agent developer guide). In addition, built-in support is included for the following:

  • JVMTI agent library for Java (1.5 and higher)
  • JVMPI agent library for Java (1.5 and lower)

For information on how to use OProfile's JIT support, see Section 3, “Setting up the JIT profiling feature”.

4.2. No support for virtual machine guests

OProfile currently does not support event-based profiling (i.e, using hardware events like cache misses, branch mispredicts) on virtual machine guests running under systems such as VMware. The list of supported events displayed by ophelp or 'opcontrol --list-events' is based on CPU type and does not take into account whether the running system is a guest system or real system. To use OProfile on such guest systems, you can use timer mode (see Section 5.2, “OProfile in timer interrupt mode”).

5. System requirements

Linux kernel

To use OProfile's JIT support, a kernel version 2.6.13 or later is required. In earlier kernel versions, the anonymous memory regions are not reported to OProfile and results in profiling reports without any samples in these regions.

Profiling the Cell Broadband Engine PowerPC Processing Element (PPE) requires a kernel version of 2.6.18 or more recent. Profiling the Cell Broadband Engine Synergistic Processing Element (SPE) requires a kernel version of 2.6.22 or more recent. Additionally, full support of SPE profiling requires a BFD library from binutils code dated January 2007 or later. To ensure the proper BFD support exists, run the configure utility with --with-target=cell-be. Profiling the Cell Broadband Engine using SPU events requires a kernel version of 2.6.29-rc1 or more recent.

Note

Attempting to profile SPEs with kernel versions older than 2.6.22 may cause the system to crash.

Instruction-Based Sampling (IBS) profile on AMD family10h processors requires kernel version 2.6.28-rc2 or later.

Supported architecture

For Intel IA32, processors as old as P6 generation or Pentium 4 core are supported. The AMD Athlon, Opteron, Phenom, and Turion CPUs are also supported. Older IA32 CPU types can be used with the timer mode of OProfile; please see later in this manual for details. OProfile also supports most processor types of the following architectures: Alpha, MIPS, ARM, x86-64, sparc64, PowerPC, AVR32, and, in timer mode, PA-RISC and s390.

Uniprocessor or SMP

SMP machines are fully supported.

Required libraries

These libraries are required : popt, bfd, liberty (debian users: libiberty is provided in binutils-dev package), dl, plus the standard C++ libraries.

Required kernel headers

In order to build the perf_events-enabled operf program, you need to either install the kernel-headers package for your system or use the --with-kernel configure option.

Required user account

For secure processing of sample data from JIT virtual machines (e.g., Java), the special user account "oprofile" must exist on the system. The 'configure' and 'make install' operations will print warning messages if this account is not found. If you intend to profile JITed code, you must create a group account named 'oprofile' and then create the 'oprofile' user account, setting the default group to 'oprofile'. A runtime error message is printed to the oprofile log when processing JIT samples if this special user account cannot be found.

OProfile GUI

The use of the GUI to start the profiler requires the Qt library. Either Qt 3 or Qt 4 should work.

ELF

Probably not too strenuous a requirement, but older A.OUT binaries/libraries are not supported.

K&R coding style

OK, so it's not really a requirement, but I wish it was...

6. Internet resources

Web page

There is a web page (which you may be reading now) at http://oprofile.sf.net/.

Download

You can download a source tarball or check out code from the code repository at the sourceforge page, http://sf.net/projects/oprofile/.

Mailing list

There is a low-traffic OProfile-specific mailing list, details at http://sf.net/mail/?group_id=16191.

Bug tracker

There is a bug tracker for OProfile at SourceForge, http://sf.net/tracker/?group_id=16191&atid=116191.

IRC channel

Several OProfile developers and users sometimes hang out on channel #oprofile on the OFTC network.

7. Installation

First you need to build OProfile and install it. ./configure, make, make install is often all you need, but note these arguments to ./configure :

--with-java

Use this option if you need to profile Java applications. Also, see Section 5, “System requirements”, "Required user account". This option is used to specify the location of the Java Development Kit (JDK) source tree you wish to use. This is necessary to get the interface description of the JVMPI (or JVMTI) interface to compile the JIT support code successfully.

Note

The Java Runtime Environment (JRE) does not include the development files that are required to compile the JIT support code, so the full JDK must be installed in order to use this option.

By default, the Oprofile JIT support libraries will be installed in <oprof_install_dir>/lib/oprofile. To build and install OProfile and the JIT support libraries as 64-bit, you can do something like the following:

			# CFLAGS="-m64" CXXFLAGS="-m64" ./configure \
			--with-java={my_jdk_installdir} \
			--libdir=/usr/local/lib64
			

Note

If you encounter errors building 64-bit, you should install libtool 1.5.26 or later since that release of libtool fixes known problems for certain platforms. If you install libtool into a non-standard location, you'll need to edit the invocation of 'aclocal' in OProfile's autogen.sh as follows (assume an install location of /usr/local):

aclocal -I m4 -I /usr/local/share/aclocal

--with-qt-dir/includes/libraries

Specify the location of Qt headers and libraries. It defaults to searching in $QTDIR if these are not specified.

--disable-werror

Development versions of OProfile build by default with -Werror. This option turns -Werror off.

--disable-optimization

Disable the -O2 compiler flag (useful if you discover an OProfile bug and want to give a useful back-trace etc.)

--with-kernel

This option is used to specify the location of the kernel headers include directory needed to build the perf_events-enabled operf program. By default, the OProfile build system expects to find this directory under /usr. Use this option if your kernel headers are in a non-standard location or if building in a cross-compile enviroment or in a situation where the host system does not support perf_events but you wish to build binaries for a target system that does support perf_events.

It is recommended that if you have a uniprocessor machine, you enable the local APIC / IO_APIC support for your kernel (this is automatically enabled for SMP kernels). With many BIOS (kernel >= 2.6.9 and UP kernel) it's not sufficient to enable the local APIC -- you must also turn it on explicitly at boot time by providing the "lapic" option to the kernel. If you use the NMI watchdog, be aware that the watchdog is disabled when profiling starts and not re-enabled until the profiling is stopped.

Please note that you must save or have available the vmlinux file generated during a kernel compile, as OProfile needs it (you can use --no-vmlinux, but this will prevent kernel profiling).

8. Uninstalling OProfile

You must have the source tree available to uninstall OProfile; a make uninstall will remove all installed files except your configuration file in the directory ~/.oprofile.

Chapter 2. Overview

1. Getting started with OProfile using operf

Profiling with operf is the recommended profiling mode with OProfile. Using this mode not only allows you to target your profiling more precisely (i.e., single process or system-wide), it also allows OProfile to co-exist better with other tools on your system that may also be using the perf_events kernel subsystem.

With operf, there is no initial setup needed -- simply invoke operf with the options you need; then run the OProfile post-processing tool(s). The operf syntax is as follows:

operf [ options ] [ --system-wide | --pid=<PID> | [ command [ args ] ] ]

A typical usage might look like this:

operf ./my_test_program my_arg

When ./my_test_program completes (or when you press Ctrl-C), profiling stops and you're ready to use opreport or other OProfile post-processing tools. By default, operf stores the sample data in <cur_dir>/oprofile_data/samples/current, and opreport and other post-processing tools will look in that location first for profile data, unless you pass the --session-dir option.

2. Getting started with OProfile using legacy profiling mode

Before you can use OProfile's legacy profiling mode, you must set it up. The minimum setup required for this is to tell OProfile where the vmlinux file corresponding to the running kernel is, for example :

opcontrol --vmlinux=/boot/vmlinux-`uname -r`

If you don't want to profile the kernel itself, you can tell OProfile you don't have a vmlinux file :

opcontrol --no-vmlinux

Now we are ready to start the daemon (oprofiled) which collects the profile data :

opcontrol --start

When you want to stop profiling, you can do so with :

opcontrol --shutdown

Note that unlike gprof, no instrumentation (-pg and -a options to gcc) is necessary.

Periodically (or on opcontrol --shutdown or opcontrol --dump) the profile data is written out into the $SESSION_DIR/samples directory (by default at /var/lib/oprofile/samples). These profile files cover shared libraries, applications, the kernel (vmlinux), and kernel modules. You can clear the profile data (at any time) with opcontrol --reset.

To place these sample database files in a specific directory instead of the default location (/var/lib/oprofile) use the --session-dir=dir option. You must also specify the --session-dir to tell the tools to continue using this directory.

opcontrol --no-vmlinux --session-dir=/home/me/tmpsession
opcontrol --start --session-dir=/home/me/tmpsession

You can get summaries of this data in a number of ways at any time. To get a summary of data across the entire system for all of these profiles, you can do :

opreport [--session-dir=dir]

Or to get a more detailed summary, for a particular image, you can do something like :

opreport -l /boot/vmlinux-`uname -r`

There are also a number of other ways of presenting the data, as described later in this manual. Note that OProfile will choose a default profiling setup for you. However, there are a number of options you can pass to opcontrol if you need to change something, also detailed later.

3. Getting started with OProfile using ocount

ocount is an OProfile tool that can be used to count native hardware events occurring in either a specific application, a set of processes or threads, a set of active system processors, or the entire system. The data collected during a counting session is displayed to stdout by default, but may also be saved to a file. The ocount syntax is as follows:

ocount [ options ] [ --system-wide | --process-list <pids> | --thread-list <tids> | --cpu-list <cpus> [ command [ args ] ] ]

A typical usage might look like this:

ocount --events=CPU_CLK_UNHALTED,INST_RETIRED /home/user1/my_test_program my_arg

When my_test_program completes (or when you press Ctrl-C), counting stops and the results are displayed to the screen (as shown below).

Events were actively counted for 2.8 seconds.
Event counts (actual) for /home/user1/my_test_program my_arg:
	Event                   Count                    % time counted
	CPU_CLK_UNHALTED        9,408,018,070            100.00
	INST_RETIRED            16,719,918,108           100.00

4. Specifying performance counter events

Both methods of profiling (operf and opcontrol) -- as well as event counting with ocount -- allow you to give one or more event specifications to provide details of how each hardware performance counter should be set up. With operf and ocount, you can provide a comma-separated list of event specfications using the --events option. With opcontrol, you use the --event option for each desired event specification. For profiling, the event specification is a colon-separated string of the form name:count:unitmask:kernel:user as described in the table below. For ocount, specification is of the form name:unitmask:kernel:user. Note the presence of the count field for profiling. The count field tells the profiler how many events should occur between a profile snapshot (usually referred to as a "sample"). Since ocount does not do sampling, the count field is not needed.

If no event specs are passed to operf, ocount, or opcontrol, the default event will be used. With opcontrol, if you have previously specified some non-default event but want to revert to the default event, use --event=default. Use of this option overrides all previous event selections that have been cached.

Note

OProfile will allocate hardware counters as necessary, but some processor types have restrictions as to what hardware events may be counted simultaneously. operf and ocount use a multiplexing technique when such hardware restrictions are encountered, but opcontrol does not have this capability; instead, opcontrol will display an error message if you select an incompatible set of events.

name The symbolic event name, e.g. CPU_CLK_UNHALTED
count The counter reset value, e.g. 100000; use only for profiling
unitmask The unit mask, as given in the events list: e.g. 0x0f; or a symbolic name if a name=<um_name> field is present
kernel Whether to profile kernel code
user Whether to profile userspace code

The last three values are optional, if you omit them (e.g. operf --events=DATA_MEM_REFS:30000), they will be set to the default values (the default unit mask value for the given event, and profiling (or counting) both kernel and userspace code). Note that some events require a unit mask.

You can specify unit mask values using either a numerical value (hex values must begin with "0x") or a symbolic name (if the name=<um_name> field is shown in the ophelp output). For some named unit masks, the hex value is not unique; thus, OProfile tools enforce specifying such unit masks value by name.

Note

When using legacy mode opcontrol on IBM PowerPC platforms, all events specified must be in the same group; i.e., the group number appended to the event name (e.g. <some-event-name>_GRP9 ) must be the same.

When using operf or ocount on IBM PowerPC platforms, the above restriction regarding the same group number does not apply, and events may be specified with or without the group number suffix. If no group number suffix is given, one will be automatically assigned; thus, OProfile post-processing tools will always show real event names that include the group number suffix.

If OProfile is using timer-interrupt mode, there is no event configuration possible.

The table below lists the default profiling event for various processor types. The same events can be used for ocount, minus the count field.

Processor cpu_type Default event
Alpha EV4 alpha/ev4 CYCLES:100000:0:1:1
Alpha EV5 alpha/ev5 CYCLES:100000:0:1:1
Alpha PCA56 alpha/pca56 CYCLES:100000:0:1:1
Alpha EV6 alpha/ev6 CYCLES:100000:0:1:1
Alpha EV67 alpha/ev67 CYCLES:100000:0:1:1
ARM/XScale PMU1 arm/xscale1 CPU_CYCLES:100000:0:1:1
ARM/XScale PMU2 arm/xscale2 CPU_CYCLES:100000:0:1:1
ARM/MPCore arm/mpcore CPU_CYCLES:100000:0:1:1
AVR32 avr32 CPU_CYCLES:100000:0:1:1
Athlon i386/athlon CPU_CLK_UNHALTED:100000:0:1:1
Pentium Pro i386/ppro CPU_CLK_UNHALTED:100000:0:1:1
Pentium II i386/pii CPU_CLK_UNHALTED:100000:0:1:1
Pentium III i386/piii CPU_CLK_UNHALTED:100000:0:1:1
Pentium M (P6 core) i386/p6_mobile CPU_CLK_UNHALTED:100000:0:1:1
Pentium 4 (non-HT) i386/p4 GLOBAL_POWER_EVENTS:100000:1:1:1
Pentium 4 (HT) i386/p4-ht GLOBAL_POWER_EVENTS:100000:1:1:1
Hammer x86-64/hammer CPU_CLK_UNHALTED:100000:0:1:1
Family10h x86-64/family10 CPU_CLK_UNHALTED:100000:0:1:1
Family11h x86-64/family11h CPU_CLK_UNHALTED:100000:0:1:1
Itanium ia64/itanium CPU_CYCLES:100000:0:1:1
Itanium 2 ia64/itanium2 CPU_CYCLES:100000:0:1:1
TIMER_INT timer None selectable
IBM pseries PowerPC 4/5/6/7/8/970/Cell CYCLES:100000:0:1:1
IBM s390 timer None selectable
IBM s390x timer None selectable

5. Tools summary

This section gives a brief description of the available OProfile utilities and their purpose.

ophelp

This utility lists the available events and short descriptions.

operf

This is the recommended program for collecting profile data, discussed in Section 1, “Using operf.

opcontrol

Used for controlling OProfile data collection in legacy mode, discussed in Section 2, “Using opcontrol.

agent libraries

Used by virtual machines (like the Java VM) to record information about JITed code being profiled. See Section 3, “Setting up the JIT profiling feature”.

opreport

This is the main tool for retrieving useful profile data, described in Section 2, “Image summaries and symbol summaries (opreport)”.

opannotate

This utility can be used to produce annotated source, assembly or mixed source/assembly. Source level annotation is available only if the application was compiled with debugging symbols. See Section 3, “Outputting annotated source (opannotate)”.

opgprof

This utility can output gprof-style data files for a binary, for use with gprof -p. See Section 5, “gprof-compatible output (opgprof)”.

oparchive

This utility can be used to collect executables, debuginfo, and sample files and copy the files into an archive. The archive is self-contained and can be moved to another machine for further analysis. See Section 6, “Analyzing profile data on another system (oparchive)”.

opimport

This utility converts sample database files from a foreign binary format (abi) to the native format. This is useful only when moving sample files between hosts, for analysis on platforms other than the one used for collection. See Section 7, “Converting sample database files (opimport)”.

Chapter 3. Controlling the profiler

1. Using operf

This section describes in detail how operf is used to control profiling. Unless otherwise directed, operf will profile using the default event for your system. For most systems, the default event is some cycles-based event, assuming your processor type supports hardware performance counters. If your hardware does support performance counters, you can specify something other than the default hardware event on which to profile. The performance monitor counters can be programmed to count various hardware events, such as cache misses or MMX operations. The event chosen for each counter is reflected in the profile data collected by OProfile: functions and binaries at the top of the profiles reflect that most of the chosen events happened within that code.

Additionally, each counter is programmed with a "count" value, which corresponds to how detailed the profile is. The lower the value, the more frequently profile samples are taken. You can choose to sample only kernel code, user-space code, or both (both is the default). Finally, some events have a "unit mask" -- this is a value that further restricts the types of event that are counted. You can see the event types and unit masks for your CPU using ophelp. More information on event specification can be found at Section 4, “Specifying performance counter events”.

The operf command syntax is:

operf [ options ] [ --system-wide | --pid=<PID> | [ command [ args ] ] ]

When profiling an application using either the command or --pid option of operf, forks and execs of the profiled process will also be profiled. The samples from an exec'ed process will be attributed to the executable binary run by that process. See Section 7, “Using operf to profile fork/execs”

Following is a description of the operf options.

command [args]

The command or application to be profiled. The[args] are the input arguments that the command or application requires. Either command, --pid or --system-wide is required, but cannot be used simultaneously.

--pid / -p [PID]

This option enables operf to profile a running application. PID should be the process ID of the process you wish to profile. When finished profiling (e.g., when the profiled process ends), press Ctrl-c to stop operf.

--system-wide / -s

This option is for performing a system-wide profile. You must have root authority to run operf in this mode. When finished profiling, Ctrl-C to stop operf. If you run operf --system-wide as a background job (i.e., with the &), you must stop it in a controlled manner in order to process the profile data it has collected. Use kill -SIGINT <operf-PID> for this purpose. It is recommended that when running operf with this option, your current working directory should be /root or a subdirectory of /root to avoid storing sample data files in locations accessible by regular users.

--vmlinux / k [vmlinux_path]

A vmlinux file that matches the running kernel that has symbol and/or debuginfo. Kernel samples will be attributed to this binary, allowing post-processing tools (like opreport) to attribute samples to the appropriate kernel symbols. If this option is not specified, all kernel samples will be attributed to a pseudo binary named "no-vmlinux".

--callgraph / -g

This option enables the callgraph to be saved during profiling. NOTE: The full callchain is recorded, so there is no depth limit.

--append / -a

By default, operf moves old profile data from <session_dir>/samples/current to <session_dir>/samples/previous. If a 'previous' profile already existed, it will be replaced. If the --append option is passed, old profile data in 'current' is left in place and new profile data will be added to it, and the 'previous' profile (if one existed) will remain untouched. To access the 'previous' profile, simply add a session specification to the normal invocation of oprofile post-processing tools; for example:

opreport session:previous

--events / -e [event1[,event2[,...]]]

This option is for passing a comma-separated list of event specifications for profiling. Each event spec is of the form:

name:count[:unitmask[:kernel[:user]]]

When no event specification is given, the default event for the running processor type will be used for profiling. Use ophelp to list the available events for your processor type.

--separate-thread / -t

This option categorizes samples by thread group ID (tgid) and thread ID (tid). The --separate-thread option is useful for seeing per-thread samples in multi-threaded applications. When used in conjuction with the --system-wide option, --separate-thread is also useful for seeing per-process (i.e., per-thread group) samples for the case where multiple processes are executing the same program during a profiling run.

--separate-cpu / -c

This option categorizes samples by cpu.

--session-dir / -d [path]

This option specifies the session directory to hold the sample data. If not specified, the data is saved in the oprofile_data directory on the current path.

---lazy-conversion / -l

Use this option to reduce the overhead of operf during profiling. Normally, profile data received from the kernel is converted to OProfile format during profiling time. This is typically not an issue when profiling a single application. But when using the --system-wide option, this on-the-fly conversion process can cause noticeable overhead, particularly on busy multi-processor systems. The --lazy-conversion option directs operf to wait until profiling is completed to do the conversion of profile data.

--verbose / -V [level]

A comma-separated list of debugging control values used to increase the verbosity of the output. Valid values are: debug, record, convert, misc, sfile, arcs, and the special value, 'all'.

--version -v

Show operf version.

--help / -h

Show a help message.

2. Using opcontrol

In this section we describe the configuration and control of the profiling system with opcontrol in more depth. See Section 1, “Using operf for a description of the preferred profiling method.

The opcontrol script has a default setup, but you can alter this with the options given below. In particular, you can select specific hardware events on which to base your profile. See Section 1, “Using operf for an introduction to hardware events and performance counter configuration. The event types and unit masks for your CPU are listed by opcontrol --list-events or ophelp.

The opcontrol script provides the following actions :

--init

Loads the OProfile module if required and makes the OProfile driver interface available.

--setup

Followed by list arguments for profiling set up. List of arguments saved in /root/.oprofile/daemonrc. Giving this option is not necessary; you can just directly pass one of the setup options, e.g. opcontrol --no-vmlinux.

--status

Show configuration information.

--start-daemon

Start the oprofile daemon without starting actual profiling. The profiling can then be started using --start. This is useful for avoiding measuring the cost of daemon startup, as --start is a simple write to a file in oprofilefs.

--start

Start data collection with either arguments provided by --setup or information saved in /root/.oprofile/daemonrc. Specifying the addition --verbose makes the daemon generate lots of debug data whilst it is running.

--dump

Force a flush of the collected profiling data to the daemon.

--stop

Stop data collection.

--shutdown

Stop data collection and kill the daemon.

--reset

Clears out data from current session, but leaves saved sessions.

--save=session_name

Save data from current session to session_name.

--deinit

Shuts down daemon. Unload the OProfile module and oprofilefs.

--list-events

List event types and unit masks.

--help

Generate usage messages.

There are a number of possible settings, of which, only --vmlinux (or --no-vmlinux) is required. These settings are stored in ~/.oprofile/daemonrc.

--buffer-size=num

Number of samples in kernel buffer. Buffer watershed needs to be tweaked when changing this value.

--buffer-watershed=num

Set kernel buffer watershed to num samples. When remain only buffer-size - buffer-watershed free entries remain in the kernel buffer, data will be flushed to the daemon. Most useful values are in the range [0.25 - 0.5] * buffer-size.

--cpu-buffer-size=num

Number of samples in kernel per-cpu buffer. If you profile at high rate, it can help to increase this if the log file show excessive count of samples lost due to cpu buffer overflow.

--event=[eventspec]

Use the given performance counter event to profile. See Section 4, “Specifying performance counter events” below.

--session-dir=dir_path

Create/use sample database out of directory dir_path instead of the default location (/var/lib/oprofile).

--separate=[none,lib,kernel,thread,cpu,all]

By default, every profile is stored in a single file. Thus, for example, samples in the C library are all accredited to the /lib/libc.o profile. However, you choose to create separate sample files by specifying one of the below options.

none No profile separation (default)
lib Create per-application profiles for libraries
kernel Create per-application profiles for the kernel and kernel modules
thread Create profiles for each thread and each task
cpu Create profiles for each CPU
all All of the above options

Note that --separate=kernel also turns on --separate=lib. When using --separate=kernel, samples in hardware interrupts, soft-irqs, or other asynchronous kernel contexts are credited to the task currently running. This means you will see seemingly nonsense profiles such as /bin/bash showing samples for the PPP modules, etc.

Using --separate=thread creates a lot of sample files if you leave OProfile running for a while; it's most useful when used for short sessions, or when using image filtering.

--callgraph=#depth

Enable call-graph sample collection with a maximum depth. Use 0 to disable callgraph profiling. NOTE: Callgraph support is available on a limited number of platforms at this time; for example:

  • x86 with 2.6 or higher kernel

  • ARM with 2.6 or higher kernel

  • PowerPC with 2.6.17 or higher kernel

--image=image,[images]|"all"

Image filtering. If you specify one or more absolute paths to binaries, OProfile will only produce profile results for those binary images. This is useful for restricting the sometimes voluminous output you may get otherwise, especially with --separate=thread. Note that if you are using --separate=lib or --separate=kernel, then if you specification an application binary, the shared libraries and kernel code are included. Specify the value "all" to profile everything (the default).

--vmlinux=file

vmlinux kernel image.

--no-vmlinux

Use this when you don't have a kernel vmlinux file, and you don't want to profile the kernel. This still counts the total number of kernel samples, but can't give symbol-based results for the kernel or any modules.

2.1. Examples

2.1.1. Intel performance counter setup

Here, we have a Pentium III running at 800MHz, and we want to look at where data memory references are happening most, and also get results for CPU time.

# opcontrol --event=CPU_CLK_UNHALTED:400000 --event=DATA_MEM_REFS:10000
# opcontrol --vmlinux=/boot/2.6.0/vmlinux
# opcontrol --start

2.1.2. Starting the daemon separately

Use --start-daemon to avoid the profiler startup affecting results.

# opcontrol --vmlinux=/boot/2.6.0/vmlinux
# opcontrol --start-daemon
# my_favourite_benchmark --init
# opcontrol --start ; my_favourite_benchmark --run ; opcontrol --stop

2.1.3. Separate profiles for libraries and the kernel

Here, we want to see a profile of the OProfile daemon itself, including when it was running inside the kernel driver, and its use of shared libraries.

# opcontrol --separate=kernel --vmlinux=/boot/2.6.0/vmlinux
# opcontrol --start
# my_favourite_stress_test --run
# opreport -l -p /lib/modules/2.6.0/kernel /usr/local/bin/oprofiled

2.1.4. Profiling sessions

It can often be useful to split up profiling data into several different time periods. For example, you may want to collect data on an application's startup separately from the normal runtime data. You can use the simple command opcontrol --save to do this. For example :

# opcontrol --save=blah

will create a sub-directory in $SESSION_DIR/samples containing the samples up to that point (the current session's sample files are moved into this directory). You can then pass this session name as a parameter to the post-profiling analysis tools, to only get data up to the point you named the session. If you do not want to save a session, you can do rm -rf $SESSION_DIR/samples/sessionname or, for the current session, opcontrol --reset.

3. Setting up the JIT profiling feature

To gather information about JITed code from a virtual machine, it needs to be instrumented with an agent library. We use the agent libraries for Java in the following example. To use the Java profiling feature, you must build OProfile with the "--with-java" option (Section 7, “Installation”).

3.1. JVM instrumentation

Add this to the startup parameters of the JVM (for JVMTI):

-agentpath:<libdir>/libjvmti_oprofile.so[=<options>] 

or

-agentlib:jvmti_oprofile[=<options>] 

The JVMPI agent implementation is enabled with the command line option

-Xrunjvmpi_oprofile[:<options>] 

Currently, there is just one option available -- debug. For JVMPI, the convention for specifying an option is option_name=[yes|no]. For JVMTI, the option specification is simply the option name, implying "yes"; no option specified implies "no".

The agent library (installed in <oprof_install_dir>/lib/oprofile) needs to be in the library search path (e.g. add the library directory to LD_LIBRARY_PATH). If the command line of the JVM is not accessible, it may be buried within shell scripts or a launcher program. It may also be possible to set an environment variable to add the instrumentation. For Sun JVMs this is JAVA_TOOL_OPTIONS. Please check your JVM documentation for further information on the agent startup options.

4. Using oprof_start

The oprof_start application provides a convenient way to start the profiler. Note that oprof_start is just a wrapper around the opcontrol script, so it does not provide more services than the script itself.

After oprof_start is started you can select the event type for each counter; the sampling rate and other related parameters are explained in Section 2, “Using opcontrol. The "Configuration" section allows you to set general parameters such as the buffer size, kernel filename etc. The counter setup interface should be self-explanatory; Section 5.1, “Hardware performance counters” and related links contain information on using unit masks.

A status line shows the current status of the profiler: how long it has been running, and the average number of interrupts received per second and the total, over all processors. Note that quitting oprof_start does not stop the profiler.

Your configuration is saved in the same file as opcontrol uses; that is, ~/.oprofile/daemonrc.

Note

oprof_start does not currently support operf.

5. Configuration details

5.1. Hardware performance counters

Most processor models include performance monitor units that can be configured to monitor (count) various types of hardware events. This section is where you can find architecture-specific information to help you use these events for profiling. You do not really need to read this section unless you are interested in using events other than the default event chosen by OProfile.

Note

Your CPU type may not include the requisite support for hardware performance counters, in which case you must use OProfile in timer mode (see Section 5.2, “OProfile in timer interrupt mode”).

The Intel hardware performance counters are detailed in the Intel IA-32 Architecture Manual, Volume 3, available from http://developer.intel.com/. The AMD Athlon/Opteron/Phenom/Turion implementation is detailed in http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/22007.pdf. For IBM PowerPC processors, documentation is available at https://www.power.org/. For example, https://www.power.org/events/Power7 contains specific information on the performance monitor unit for the IBM POWER7.

These processors are capable of delivering an interrupt when a counter overflows. This is the basic mechanism on which OProfile is based. The delivery mode is NMI, so blocking interrupts in the kernel does not prevent profiling. When the interrupt handler is called, the current PC value and the current task are recorded into the profiling structure. This allows the overflow event to be attached to a specific assembly instruction in a binary image. OProfile receives this data from the kernel and writes it to the sample files.

If we use an event such as CPU_CLK_UNHALTED or INST_RETIRED (GLOBAL_POWER_EVENTS or INSTR_RETIRED, respectively, on the Pentium 4), we can use the overflow counts as an estimate of actual time spent in each part of code. Alternatively we can profile interesting data such as the cache behaviour of routines with the other available counters.

However there are several caveats. First, there are those issues listed in the Intel manual. There is a delay between the counter overflow and the interrupt delivery that can skew results on a small scale - this means you cannot rely on the profiles at the instruction level as being perfectly accurate. If you are using an "event-mode" counter such as the cache counters, a count registered against it doesn't mean that it is responsible for that event. However, it implies that the counter overflowed in the dynamic vicinity of that instruction, to within a few instructions. Further details on this problem can be found in Chapter 5, Interpreting profiling results and also in the Digital paper "ProfileMe: A Hardware Performance Counter".

Each counter has several configuration parameters. First, there is the unit mask: this simply further specifies what to count. Second, there is the counter value, discussed below. Third, there is a parameter whether to increment counts whilst in kernel or user space. You can configure these separately for each counter.

After each overflow event, the counter will be re-initialized such that another overflow will occur after this many events have been counted. Thus, higher values mean less-detailed profiling, and lower values mean more detail, but higher overhead. Picking a good value for this parameter is, unfortunately, somewhat of a black art. It is of course dependent on the event you have chosen. Specifying too large a value will mean not enough interrupts are generated to give a realistic profile (though this problem can be ameliorated by profiling for longer). Specifying too small a value can lead to higher performance overhead.

5.2. OProfile in timer interrupt mode

Some CPU types do not provide the needed hardware support to use the hardware performance counters. This includes some laptops, classic Pentiums, and other CPU types not yet supported by OProfile (such as Cyrix). On these machines, OProfile falls back to using the timer interrupt for profiling, back to using the real-time clock interrupt to collect samples. In timer mode, OProfile is not able to profile code that has interrupts disabled.

You can force use of the timer interrupt by using the timer=1 module parameter (or oprofile.timer=1 on the boot command line if OProfile is built-in). If OProfile was built as a kernel module, then you must pass the 'timer=1' parameter with the modprobe command. Do this before executing 'opcontrol --init' or edit the opcontrol command's invocation of modprobe to pass the 'timer=1' parameter.

Note

Timer mode is only available using the legacy opcontrol command.

5.3. Pentium 4 support

The Pentium 4 / Xeon performance counters are organized around 3 types of model specific registers (MSRs): 45 event selection control registers (ESCRs), 18 counter configuration control registers (CCCRs) and 18 counters. ESCRs describe a particular set of events which are to be recorded, and CCCRs bind ESCRs to counters and configure their operation. Unfortunately the relationship between these registers is quite complex; they cannot all be used with one another at any time. There is, however, a subset of 8 counters, 8 ESCRs, and 8 CCCRs which can be used independently of one another, so OProfile only accesses those registers, treating them as a bank of 8 "normal" counters, similar to those in the P6 or Athlon/Opteron/Phenom/Turion families of CPU.

There is currently no support for Precision Event-Based Sampling (PEBS), nor any advanced uses of the Debug Store (DS). Current support is limited to the conservative extension of OProfile's existing interrupt-based model described above.

5.4. Intel Itanium 2 support

The Itanium 2 performance monitoring unit (PMU) organizes the counters as four pairs of performance event monitoring registers. Each pair is composed of a Performance Monitoring Configuration (PMC) register and Performance Monitoring Data (PMD) register. The PMC selects the performance event being monitored and the PMD determines the sampling interval. The IA64 Performance Monitoring Unit (PMU) triggers sampling with maskable interrupts. Thus, samples will not occur in sections of the IA64 kernel where interrupts are disabled.

None of the advance features of the Itanium 2 performance monitoring unit such as opcode matching, address range matching, or precise event sampling are supported by this version of OProfile. The Itanium 2 support only maps OProfile's existing interrupt-based model to the PMU hardware.

5.5. PowerPC64 support

The performance monitoring unit (PMU) for the IBM PowerPC 64-bit processors consists of between 4 and 8 counters (depending on the model), plus three special purpose registers used for programming the counters -- MMCR0, MMCR1, and MMCRA. Advanced features such as instruction matching and thresholding are not supported by this version of OProfile.

Note

Later versions of the IBM POWER5+ processor (beginning with revision 3.0) run the performance monitor unit in POWER6 mode, effectively removing OProfile's access to counters 5 and 6. These two counters are dedicated to counting instructions completed and cycles, respectively. In POWER6 mode, however, the counters do not generate an interrupt on overflow and so are unusable by OProfile. Kernel versions 2.6.23 and higher will recognize this mode and export "ppc64/power5++" as the cpu_type to the oprofilefs pseudo filesystem. OProfile userspace responds to this cpu_type by removing these counters from the list of potential events to count. Without this kernel support, attempts to profile using an event from one of these counters will yield incorrect results -- typically, zero (or near zero) samples in the generated report.

5.6. Cell Broadband Engine support

The Cell Broadband Engine (CBE) processor core consists of a PowerPC Processing Element (PPE) and 8 Synergistic Processing Elements (SPE). PPEs and SPEs each consist of a processing unit (PPU and SPU, respectively) and other hardware components, such as memory controllers.

A PPU has two hardware threads (aka "virtual CPUs"). The performance monitor unit of the CBE collects event information on one hardware thread at a time. Therefore, when profiling PPE events, OProfile collects the profile based on the selected events by time slicing the performance counter hardware between the two threads. The user must ensure the collection interval is long enough so that the time spent collecting data for each PPU is sufficient to obtain a good profile.

To profile an SPU application, the user should specify the SPU_CYCLES event. When starting OProfile with SPU_CYCLES, the opcontrol script enforces certain separation parameters (separate=cpu,lib) to ensure that sufficient information is collected in the sample data in order to generate a complete report. The --merge=cpu option can be used to obtain a more readable report if analyzing the performance of each separate SPU is not necessary.

Profiling with an SPU event (events 4100 through 4163) is not compatible with any other event. Further more, only one SPU event can be specified at a time. The hardware only supports profiling on one SPU per node at a time. The OProfile kernel code time slices between the eight SPUs to collect data on all SPUs.

SPU profile reports have some unique characteristics compared to reports for standard architectures:

  • Typically no "app name" column. This is really standard OProfile behavior when the report contains samples for just a single application, which is commonly the case when profiling SPUs.
  • "CPU" equates to "SPU"
  • Specifying '--long-filenames' on the opreport command does not always result in long filenames. This happens when the SPU application code is embedded in the PPE executable or shared library. The embedded SPU ELF data contains only the short filename (i.e., no path information) for the SPU binary file that was used as the source for embedding. The reason that just the short filename is used is because the original SPU binary file may not exist or be accessible at runtime. The performance analyst must have sufficient knowledge of the application to be able to correlate the SPU binary image names found in the report to the application's source files.

    Note

    Compile the application with -g and generate the OProfile report with -g to facilitate finding the right source file(s) on which to focus.

5.7. AMD64 (x86_64) Instruction-Based Sampling (IBS) support

Instruction-Based Sampling (IBS) is a new performance measurement technique available on AMD Family 10h processors. Traditional performance counter sampling is not precise enough to isolate performance issues to individual instructions. IBS, however, precisely identifies instructions which are not making the best use of the processor pipeline and memory hierarchy. For more information, please refer to the "Instruction-Based Sampling: A New Performance Analysis Technique for AMD Family 10h Processors" ( http://developer.amd.com/assets/AMD_IBS_paper_EN.pdf). There are two types of IBS profile types, described in the following sections.

Note

Profiling on IBS events is only supported with legacy mode profiling (i.e., with opcontrol).

5.7.1. IBS Fetch

IBS fetch sampling is a statistical sampling method which counts completed fetch operations. When the number of completed fetch operations reaches the maximum fetch count (the sampling period), IBS tags the fetch operation and monitors that operation until it either completes or aborts. When a tagged fetch completes or aborts, a sampling interrupt is generated and an IBS fetch sample is taken. An IBS fetch sample contains a timestamp, the identifier of the interrupted process, the virtual fetch address, and several event flags and values that describe what happened during the fetch operation.

5.7.2. IBS Op

IBS op sampling selects, tags, and monitors macro-ops as issued from AMD64 instructions. Two options are available for selecting ops for sampling:

  • Cycles-based selection counts CPU clock cycles. The op is tagged and monitored when the count reaches a threshold (the sampling period) and a valid op is available.
  • Dispatched op-based selection counts dispatched macro-ops. When the count reaches a threshold, the next valid op is tagged and monitored.

In both cases, an IBS sample is generated only if the tagged op retires. Thus, IBS op event information does not measure speculative execution activity. The execution stages of the pipeline monitor the tagged macro-op. When the tagged macro-op retires, a sampling interrupt is generated and an IBS op sample is taken. An IBS op sample contains a timestamp, the identifier of the interrupted process, the virtual address of the AMD64 instruction from which the op was issued, and several event flags and values that describe what happened when the macro-op executed.

Enabling IBS profiling is done simply by specifying IBS performance events through the "--event=" options. These events are listed in the opcontrol --list-events.

opcontrol --event=IBS_FETCH_XXX:<count>:<um>:<kernel>:<user>
opcontrol --event=IBS_OP_XXX:<count>:<um>:<kernel>:<user>

Note: * All IBS fetch event must have the same event count and unitmask,
        as do those for IBS op.

5.8. IBM System z hardware sampling support

IBM System z provides a facility which does instruction sampling as part of the CPU. This has great advantages over the timer based sampling approach like better sampling resolution with less overhead and the possibility to get samples within code sections where interrupts are disabled (useful especially for Linux kernel code).

Note

Profiling with the instruction sampling facility is currently only supported with legacy mode profiling (i.e., with opcontrol).

A public description of the System z CPU-Measurement Facilities can be found here: The Load-Program-Parameter and CPU-Measurement Facilities

System z hardware sampling can be used for Linux instances in LPAR mode. The hardware sampling support used by OProfile was introduced for System z10 in October 2008.

To enable hardware sampling for an LPAR you must activate the LPAR with authorization for basic sampling control. See the "Support Element Operations Guide" for your mainframe system for more information.

The hardware sampling facility can be enabled and disabled using the event interface. A `virtual' counter 0 has been defined that only supports a single event, HWSAMPLING. By default the HWSAMPLING event is enabled on machines providing the facility. For both events only the `count', `kernel' and `user' options are evaluated by the kernel module.

The `count' value is the sampling rate as it is passed to the CPU measurement facility. A sample will be taken by the hardware every `count' cycles. Using low values here will quickly fill up the sampling buffers and will generate CPU load on the OProfile daemon and the kernel module being busy flushing the hardware buffers. This might considerably impact the workload to be profiled.

The unit mask `um' is required to be zero.

The opcontrol tool provides a new option specific to System z hardware sampling:

  • --s390hwsampbufsize="num": Number of 2MB areas used per CPU for storing sample data. The best size for the sample memory depends on the particular system and the workload to be measured. Providing the sampler with too little memory results in lost samples. Reserving too much system memory for the sampler impacts the overall performance and, hence, also the workload to be measured.

A special counter /dev/oprofile/timer is provided by the kernel module allowing to switch back to timer mode sampling dynamically. The TIMER event is limited to be used only with this counter. The TIMER event can be specified using the --event= as with every other event.

opcontrol --event=TIMER:1

On z10 or later machines the default event is set to TIMER in case the hardware sampling facility is not available.

Although required, the 'count' parameter of the TIMER event is ignored. The value may eventually be used for timer based sampling with a configurable sampling frequency, but this is currently not supported.

5.9. Dangerous counter settings

OProfile is a low-level profiler which allows continuous profiling with a low-overhead cost. When using OProfile legacy mode profiling, it may be possible to configure such a low a counter reset value (i.e., high sampling rate) that the system can become overloaded with counter interrupts and your system's responsiveness may be severely impacted. Whilst some validation is done on the count values you pass to opcontrol with your event specification, it is not foolproof.

Note

This can happen as follows: When the profiler count reaches zero, an NMI handler is called which stores the sample values in an internal buffer, then resets the counter to its original value. If the reset count you specified is very low, a pending NMI can be sent before the NMI handler has completed. Due to the priority of the NMI, the pending interrupt is delivered immediately after completion of the previous interrupt handler, and control never returns to other parts of the system. If all processors are stuck in this mode, the system will appear to be frozen.

If this happens, it will be impossible to bring the system back to a workable state. There is no way to provide real security against this happening, other than making sure to use a reasonable value for the counter reset. For example, setting CPU_CLK_UNHALTED event type with a ridiculously low reset count (e.g. 500) is likely to freeze the system.

In short : Don't try a foolish sample count value. Unfortunately the definition of a foolish value is really dependent on the event type. If ever in doubt, post a message to

Note

The scenario described above cannot occur if you use operf for profiling instead of opcontrol, because the perf_events kernel subsystem automatically detects when performance monitor interrupts are arriving at a dangerous level and will throttle back the sampling rate.

Chapter 4. Obtaining profiling results

OK, so the profiler has been running, but it's not much use unless we can get some data out. Sometimes, OProfile does a little too good a job of keeping overhead low, and no data reaches the profiler. This can happen on lightly-loaded machines. If you're using OPorifle legacy mode, you can force a dump at any time with :

opcontrol --dump

This ensures that any profile data collected by the oprofiled daemon has been flusehd to disk. Remember to do a dump, stop, shutdown, or deinit before complaining there is no profiling data!

Now that we've got some data, it has to be processed. That's the job of opreport, opannotate, or opgprof.

1. Profile specifications

All of the analysis tools take a profile specification. This is a set of definitions that describe which actual profiles should be examined. The simplest profile specification is empty: this will match all the available profile files for the current session (this is what happens when you do opreport).

Specification parameters are of the form name:value[,value]. For example, if I wanted to get a combined symbol summary for /bin/myprog and /bin/myprog2, I could do opreport -l image:/bin/myprog,/bin/myprog2. As a special case, you don't actually need to specify the image: part here: anything left on the command line is assumed to be an image: name. Similarly, if no session: is specified, then session:current is assumed ("current" is a special name of the current / last profiling session).

In addition to the comma-separated list shown above, some of the specification parameters can take glob-style values. For example, if I want to see image summaries for all binaries profiled in /usr/bin/, I could do opreport image:/usr/bin/\*. Note the necessity to escape the special character from the shell.

For opreport, profile specifications can be used to define two profiles, giving differential output. This is done by enclosing each of the two specifications within curly braces, as shown in the examples below. Any specifications outside of curly braces are shared across both.

1.1. Examples

Image summaries for all profiles with DATA_MEM_REFS samples in the saved session called "stresstest" :

# opreport session:stresstest event:DATA_MEM_REFS

Symbol summary for the application called "test_sym53c8xx,9xx". Note the escaping is necessary as image: takes a comma-separated list.

# opreport -l ./test/test_sym53c8xx\,9xx

Image summaries for all binaries in the test directory, excepting boring-test :

# opreport image:./test/\* image-exclude:./test/boring-test

Differential profile of a binary stored in two archives :

# opreport -l /bin/bash { archive:./orig } { archive:./new }

Differential profile of an archived binary with the current session :

# opreport -l /bin/bash { archive:./orig } { }

1.2. Profile specification parameters

archive: archivepath

A path to an archive made with oparchive. Absence of this tag, unlike others, means "the current system", equivalent to specifying "archive:".

session: sessionlist

A comma-separated list of session names to resolve in. Absence of this tag, unlike others, means "the current session", equivalent to specifying "session:current".

session-exclude: sessionlist

A comma-separated list of sessions to exclude.

image: imagelist

A comma-separated list of image names to resolve. Each entry may be relative path, glob-style name, or full path, e.g.

opreport 'image:/usr/bin/oprofiled,*op*,./opreport'
image-exclude: imagelist

Same as image:, but the matching images are excluded.

lib-image: imagelist

Same as image:, but only for images that are for a particular primary binary image (namely, an application). This only makes sense to use if you're using --separate. This includes kernel modules and the kernel when using --separate=kernel.

lib-image-exclude: imagelist

Same as lib-image:, but the matching images are excluded.

event: eventlist

The symbolic event name to match on, e.g. event:DATA_MEM_REFS. You can pass a list of events for side-by-side comparison with opreport. When using the timer interrupt, the event is always "TIMER".

count: eventcountlist

The event count to match on, e.g. event:DATA_MEM_REFS count:30000. Note that this value refers to the count value in the event spec you passed to opcontrol or operf when setting up to do a profile run. It has nothing to do with the sample counts in the profile data itself. You can pass a list of events for side-by-side comparison with opreport. When using the timer interrupt, the count is always 0 (indicating it cannot be set).

unit-mask: masklist

The unit mask value of the event to match on, e.g. unit-mask:1. You can pass a list of events for side-by-side comparison with opreport.

cpu: cpulist

Only consider profiles for the given numbered CPU (starting from zero). This is only useful when using CPU profile separation.

tgid: pidlist

Only consider profiles for the given task groups. Unless some program is using threads, the task group ID of a process is the same as its process ID. This option corresponds to the POSIX notion of a thread group. This is only useful when using per-process profile separation.

tid: tidlist

Only consider profiles for the given threads. When using recent thread libraries, all threads in a process share the same task group ID, but have different thread IDs. You can use this option in combination with tgid: to restrict the results to particular threads within a process. This is only useful when using per-process profile separation.

1.3. Locating and managing binary images

Each session's sample files can be found in the $SESSION_DIR/samples/ directory (default when using legacy mode: /var/lib/oprofile/samples/; default when using operf: <cur_dir>/oprofile_data/samples/). These are used, along with the binary image files, to produce human-readable data. In some circumstances (e.g., kernel modules), OProfile will not be able to find the binary images. All the tools have an --image-path option to which you can pass a comma-separated list of alternate paths to search. For example, I can let OProfile find my 2.6 modules by using --image-path /lib/modules/2.6.0/kernel/. It is your responsibility to ensure that the correct images are found when using this option.

Note that if a binary image changes after the sample file was created, you won't be able to get useful symbol-based data out. This situation is detected for you. If you replace a binary, you should make sure to save the old binary if you need to do comparative profiles.

1.4. What to do when you don't get any results

When attempting to get output, you may see the error :

error: no sample files found: profile specification too strict ?

What this is saying is that the profile specification you passed in, when matched against the available sample files, resulted in no matches. There are a number of reasons this might happen:

spelling

You specified a binary name, but spelt it wrongly. Check your spelling !

profiler wasn't running

Make very sure that OProfile was actually up and running when you ran the application you wish to profile.

application didn't run long enough

Remember OProfile is a statistical profiler - you're not guaranteed to get samples for short-running programs. You can help this by using a lower count for the performance counter, so there are a lot more samples taken per second.

application spent most of its time in libraries

Similarly, if the application spends little time in the main binary image itself, with most of it spent in shared libraries it uses, you might not see any samples for the binary image (i.e., executable) itself. If you're using OProfile legacy mode profiling, then we recommend using opcontrol --separate=lib before the profiling session so that opreport and friends show the library profiles on a per-application basis. This is done automatically when profiling with operf, so no special setup is necessary.

specification was really too strict

For example, you specified something like tgid:3433, but no task with that group ID ever ran the code.

application didn't generate any events

If you're using a particular event counter, for example counting MMX operations, the code might simply have not generated any events in the first place. Verify the code you're profiling does what you expect it to.

you didn't specify kernel module name correctly

If you're trying to get reports for a kernel module, make sure to use the -p option, and specify the module name with the .ko extension. Check if the module is one loaded from initrd.

2. Image summaries and symbol summaries (opreport)

The opreport utility is the primary utility you will use for getting formatted data out of OProfile. It produces two types of data: image summaries and symbol summaries. An image summary lists the number of samples for individual binary images such as libraries or applications. Symbol summaries provide per-symbol profile data. In the following example, we're getting an image summary for the whole system:

$ opreport --long-filenames
CPU: PIII, speed 863.195 MHz (estimated)
Counted CPU_CLK_UNHALTED events (clocks processor is not halted) with a unit mask of 0x00 (No unit mask) count 23150
   905898 59.7415 /usr/lib/gcc-lib/i386-redhat-linux/3.2/cc1plus
   214320 14.1338 /boot/2.6.0/vmlinux
   103450  6.8222 /lib/i686/libc-2.3.2.so
    60160  3.9674 /usr/local/bin/madplay
    31769  2.0951 /usr/local/oprofile-pp/bin/oprofiled
    26550  1.7509 /usr/lib/libartsflow.so.1.0.0
    23906  1.5765 /usr/bin/as
    18770  1.2378 /oprofile
    15528  1.0240 /usr/lib/qt-3.0.5/lib/libqt-mt.so.3.0.5
    11979  0.7900 /usr/X11R6/bin/XFree86
    11328  0.7471 /bin/bash
    ...

If we had specified --symbols in the previous command, we would have gotten a symbol summary of all the images across the entire system. We can restrict this to only part of the system profile; for example, below is a symbol summary of the OProfile daemon. Note that as we used opcontrol --separate=lib,kernel, symbols from images that oprofiled has used are also shown.

$ opreport -l -p /lib/modules/`uname -r` `which oprofiled` 2>/dev/null | more
CPU: Core 2, speed 2.534e+06 MHz (estimated)
Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (Unhalted core cycles) count 100000
samples  %        image name               symbol name
1353     24.9447  vmlinux                  sidtab_context_to_sid
500       9.2183  vmlinux                  avtab_hash_eval
154       2.8392  vmlinux                  __link_path_walk
152       2.8024  vmlinux                  d_prune_aliases
120       2.2124  vmlinux                  avtab_search_node
104       1.9174  vmlinux                  find_next_bit
85        1.5671  vmlinux                  selinux_file_fcntl
82        1.5118  vmlinux                  avtab_write
81        1.4934  oprofiled                odb_update_node_with_offset
73        1.3459  oprofiled                opd_process_samples
72        1.3274  vmlinux                  avc_has_perm_noaudit
61        1.1246  libc-2.12.so             _IO_vfscanf
59        1.0878  ext4.ko                  ext4_mark_iloc_dirty
...

These are the two basic ways you are most likely to use regularly, but opreport can do a lot more than that, as described below.

2.1. Merging separate profiles

If you have used one of the --separate[*] options whilst profiling, there can be several separate profiles for a single binary image within a session. Normally the output will keep these images separated. So, for example, if you profiled with separation on a per-cpu basis (opcontrol --separate=cpu or operf --separate-cpu), you would see separate columns in the output of opreport for each CPU where samples were recorded. But it can be useful to merge these results back together to make the report more readable. The --merge option allows you to do that.

2.2. Side-by-side multiple results

If you have used multiple events when profiling, by default you get side-by-side results of each event's sample values from opreport. You can restrict which events to list by appropriate use of the event: profile specifications, etc.

2.3. Callgraph output

This section provides details on how to use the OProfile callgraph feature.

2.3.1. Callgraph details

When using the --callgraph option, you can see what functions are calling other functions in the output. Consider the following program:

#include <string.h>
#include <stdlib.h>
#include <stdio.h>

#define SIZE 500000

static int compare(const void *s1, const void *s2)
{
        return strcmp(s1, s2);
}

static void repeat(void)
{
        int i;
        char *strings[SIZE];
        char str[] = "abcdefghijklmnopqrstuvwxyz";

        for (i = 0; i < SIZE; ++i) {
                strings[i] = strdup(str);
                strfry(strings[i]);
        }

        qsort(strings, SIZE, sizeof(char *), compare);
}

int main()
{
        while (1)
                repeat();
}

When running with the call-graph option, OProfile will record the function stack every time it takes a sample. opreport --callgraph outputs an entry for each function, where each entry looks similar to:

samples  %        image name               symbol name
  197       0.1548  cg                       main
  127036   99.8452  cg                       repeat
84590    42.5084  libc-2.3.2.so            strfry
  84590    66.4838  libc-2.3.2.so            strfry [self]
  39169    30.7850  libc-2.3.2.so            random_r
  3475      2.7312  libc-2.3.2.so            __i686.get_pc_thunk.bx
-------------------------------------------------------------------------------

Here the non-indented line is the function we're focussing upon (strfry()). This line is the same as you'd get from a normal opreport output.

Above the non-indented line we find the functions that called this function (for example, repeat() calls strfry()). The samples and percentage values here refer to the number of times we took a sample where this call was found in the stack; the percentage is relative to all other callers of the function we're focussing on. Note that these values are not call counts; they only reflect the call stack every time a sample is taken; that is, if a call is found in the stack at the time of a sample, it is recorded in this count.

Below the line are functions that are called by strfry() (called callees). It's clear here that strfry() calls random_r(). We also see a special entry with a "[self]" marker. This records the normal samples for the function, but the percentage becomes relative to all callees. This allows you to compare time spent in the function itself compared to functions it calls. Note that if a function calls itself, then it will appear in the list of callees of itself, but without the "[self]" marker; so recursive calls are still clearly separable.

You may have noticed that the output lists main() as calling strfry(), but it's clear from the source that this doesn't actually happen. See Section 3, “Interpreting call-graph profiles” for an explanation.

2.3.2. Callgraph and JIT support

Callgraph output where anonymously mapped code is in the callstack can sometimes be misleading. For all such code, the samples for the anonymously mapped code are stored in a samples subdirectory named {anon:anon}/<tgid>.<begin_addr>.<end_addr>. As stated earlier, if this anonymously mapped code is JITed code from a supported VM like Java, OProfile creates an ELF file to provide a (somewhat) permanent backing file for the code. However, when viewing callgraph output, any anonymously mapped code in the callstack will be attributed to anon (<tgid>: range:<begin_addr>-<end_addr>, even if a .jo ELF file had been created for it. See the example below.

-------------------------------------------------------------------------------
  1         2.2727  libj9ute23.so            java.bin                 traceV
  2         4.5455  libj9ute23.so            java.bin                 utsTraceV
  4         9.0909  libj9trc23.so            java.bin                 fillInUTInterfaces
  37       84.0909  libj9trc23.so            java.bin                 twGetSequenceCounter
8         0.0154  libj9prt23.so            java.bin                 j9time_hires_clock
  27       61.3636  anon (tgid:10014 range:0x100000-0x103000) java.bin                 (no symbols)
  9        20.4545  libc-2.4.so              java.bin                 gettimeofday
  8        18.1818  libj9prt23.so            java.bin                 j9time_hires_clock [self]
-------------------------------------------------------------------------------

The output shows that "anon (tgid:10014 range:0x100000-0x103000)" was a callee of j9time_hires_clock, even though the ELF file 10014.jo was created for this profile run. Unfortunately, there is currently no way to correlate that anonymous callgraph entry with its corresponding .jo file.

2.4. Differential profiles with opreport

Often, we'd like to be able to compare two profiles. For example, when analysing the performance of an application, we'd like to make code changes and examine the effect of the change. This is supported in opreport by giving a profile specification that identifies two different profiles. The general form is of:

$ opreport <shared-spec> { <first-profile> } { <second-profile> }

Note

We lost our Dragon book down the back of the sofa, so you have to be careful to have spaces around those braces, or things will get hopelessly confused. We can only apologise.

For each of the profiles, the shared section is prefixed, and then the specification is analysed. The usual parameters work both within the shared section, and in the sub-specification within the curly braces.

A typical way to use this feature is with archives created with oparchive. Let's look at an example:

$ ./a
$ oparchive -o orig ./a
$ opcontrol --reset
  # edit and recompile a
$ ./a
  # now compare the current profile of a with the archived profile
$ opreport -xl ./a { archive:./orig } { }
CPU: PIII, speed 863.233 MHz (estimated)
Counted CPU_CLK_UNHALTED events (clocks processor is not halted) with a
unit mask of 0x00 (No unit mask) count 100000
samples  %        diff %    symbol name
92435    48.5366  +0.4999   a
54226    ---      ---       c
49222    25.8459  +++       d
48787    25.6175  -2.2e-01  b

Note that we specified an empty second profile in the curly braces, as we wanted to use the current session; alternatively, we could have specified another archive, or a tgid etc. We specified the binary a in the shared section, so we matched that in both the profiles we're diffing.

As in the normal output, the results are sorted by the number of samples, and the percentage field represents the relative percentage of the symbol's samples in the second profile.

Notice the new column in the output. This value represents the percentage change of the relative percent between the first and the second profile: roughly, "how much more important this symbol is". Looking at the symbol a(), we can see that it took roughly the same amount of the total profile in both the first and the second profile. The function c() was not in the new profile, so has been marked with ---. Note that the sample value is the number of samples in the first profile; since we're displaying results for the second profile, we don't list a percentage value for it, as it would be meaningless. d() is new in the second profile, and consequently marked with +++.

When comparing profiles between different binaries, it should be clear that functions can change in terms of VMA and size. To avoid this problem, opreport considers a symbol to be the same if the symbol name, image name, and owning application name all match; any other factors are ignored. Note that the check for application name means that trying to compare library profiles between two different applications will not work as you might expect: each symbol will be considered different.

2.5. Anonymous executable mappings

Many applications, typically ones involving dynamic compilation into machine code (just-in-time, or "JIT", compilation), have executable mappings that are not backed by an ELF file. opreport has basic support for showing the samples taken in these regions; for example:

$ opreport /usr/bin/mono -l
CPU: ppc64 POWER5, speed 1654.34 MHz (estimated)
Counted CYCLES events (Processor Cycles using continuous sampling) with a unit mask of 0x00 (No unit mask) count 100000
samples  %        image name    		                symbol name
47       58.7500  mono                     			(no symbols)
14       17.5000  anon (tgid:3189 range:0xf72aa000-0xf72fa000)  (no symbols)
9        11.2500  anon (tgid:3189 range:0xf6cca000-0xf6dd9000)  (no symbols)
.	 .	  .						.

Note that, since such mappings are dependent upon individual invocations of a binary, these mappings are always listed as a dependent image, even when using the legacy mode opcontrol --separate=none command. Equally, the results are not affected by the --merge option.

As shown in the opreport output above, OProfile is unable to attribute the samples to any symbol(s) because there is no ELF file for this code. Enhanced support for JITed code is now available for some virtual machines; e.g., the Java Virtual Machine. For details about OProfile output for JITed code, see Section 4, “OProfile results with JIT samples”.

For more information about JIT support in OProfile, see Section 4.1, “Support for dynamically compiled (JIT) code”.

2.6. XML formatted output

The --xml option can be used to generate XML instead of the usual text format. This allows opreport to eliminate some of the constraints dictated by the two dimensional text format. For example, it is possible to separate the sample data across multiple events, cpus and threads. The XML schema implemented by opreport is found in doc/opreport.xsd. It contains more detailed comments about the structure of the XML generated by opreport.

Since XML is consumed by a client program rather than a user, its structure is fairly static. In particular, the --sort option is incompatible with the --xml option. Percentages are not dislayed in the XML so the options related to percentages will have no effect. Full pathnames are always displayed in the XML so --long-filenames is not necessary. The --details option will cause all of the individual sample data to be included in the XML as well as the instruction byte stream for each symbol (for doing disassembly) and can result in very large XML files.

2.7. Options for opreport

--accumulated / -a

Accumulate sample and percentage counts in the symbol list.

--callgraph / -c

Show callgraph information.

--debug-info / -g

Show source file and line for each symbol.

--demangle / -D none|normal|smart

none: no demangling. normal: use default demangler (default) smart: use pattern-matching to make C++ symbol demangling more readable.

--details / -d

Show per-instruction details for all selected symbols. Note that, for binaries without symbol information, the VMA values shown are raw file offsets for the image binary.

--exclude-dependent / -x

Do not include application-specific images for libraries, kernel modules and the kernel. This option only makes sense if the profile session used --separate.

--exclude-symbols / -e [symbols]

Exclude all the symbols in the given comma-separated list.

--global-percent / -%

Make all percentages relative to the whole profile.

--help / -? / --usage

Show help message.

--image-path / -p [paths]

Comma-separated list of additional paths to search for binaries. This is needed to find kernel modules.

--root / -R [path]

A path to a filesystem to search for additional binaries.

--include-symbols / -i [symbols]

Only include symbols in the given comma-separated list.

--long-filenames / -f

Output full paths instead of basenames.

--merge / -m [lib,cpu,tid,tgid,unitmask,all]

Merge any profiles separated in a --separate session.

--no-header

Don't output a header detailing profiling parameters.

--output-file / -o [file]

Output to the given file instead of stdout.

--reverse-sort / -r

Reverse the sort from the default.

--session-dir=dir_path

Use sample database out of directory dir_path instead of the default location (/var/lib/oprofile).

--show-address / -w

Show the VMA address of each symbol (off by default).

--sort / -s [vma,sample,symbol,debug,image]

Sort the list of symbols by, respectively, symbol address, number of samples, symbol name, debug filename and line number, binary image filename.

--symbols / -l

List per-symbol information instead of a binary image summary.

--threshold / -t [percentage]

Only output data for symbols that have more than the given percentage of total samples.

--verbose / -V [options]

Give verbose debugging output.

--version / -v

Show version.

--xml / -X

Generate XML output.

3. Outputting annotated source (opannotate)

The opannotate utility generates annotated source files or assembly listings, optionally mixed with source. If you want to see the source file, the profiled application needs to have debug information, and the source must be available through this debug information. For GCC, you must use the -g option when you are compiling. If the binary doesn't contain sufficient debug information, you can still use opannotate --assembly to get annotated assembly as long as the binary has (at least) symbol information.

Note that for the reason explained in Section 5.1, “Hardware performance counters” the results can be inaccurate. The debug information itself can add other problems; for example, the line number for a symbol can be incorrect. Assembly instructions can be re-ordered and moved by the compiler, and this can lead to crediting source lines with samples not really "owned" by this line. Also see Chapter 5, Interpreting profiling results.

You can output the annotation to one single file, containing all the source found using the --source. You can use this in conjunction with --assembly to get combined source/assembly output.

You can also output a directory of annotated source files that maintains the structure of the original sources. Each line in the annotated source is prepended with the samples for that line. Additionally, each symbol is annotated giving details for the symbol as a whole. An example:

$ opannotate --source --output-dir=annotated /usr/local/oprofile-pp/bin/oprofiled
$ ls annotated/home/moz/src/oprofile-pp/daemon/
opd_cookie.h  opd_image.c  opd_kernel.c  opd_sample_files.c  oprofiled.c

Line numbers are maintained in the source files, but each file has a footer appended describing the profiling details. The actual annotation looks something like this :

...
               :static uint64_t pop_buffer_value(struct transient * trans)
 11510  1.9661 :{ /* pop_buffer_value total:  89901 15.3566 */
               :        uint64_t val;
               :
 10227  1.7469 :        if (!trans->remaining) {
               :                fprintf(stderr, "BUG: popping empty buffer !\n");
               :                exit(EXIT_FAILURE);
               :        }
               :
               :        val = get_buffer_value(trans->buffer, 0);
  2281  0.3896 :        trans->remaining--;
  2296  0.3922 :        trans->buffer += kernel_pointer_size;
               :        return val;
 10454  1.7857 :}
...

The first number on each line is the number of samples, whilst the second is the relative percentage of total samples.

3.1. Locating source files

Of course, opannotate needs to be able to locate the source files for the binary image(s) in order to produce output. Some binary images have debug information where the given source file paths are relative, not absolute. You can specify search paths to look for these files (similar to gdb's dir command) with the --search-dirs option.

Sometimes you may have a binary image which gives absolute paths for the source files, but you have the actual sources elsewhere (commonly, you've installed an SRPM for a binary on your system and you want annotation from an existing profile). You can use the --base-dirs option to redirect OProfile to look somewhere else for source files. For example, imagine we have a binary generated from a source file that is given in the debug information as /tmp/build/libfoo/foo.c, and you have the source tree matching that binary installed in /home/user/libfoo/. You can redirect OProfile to find foo.c correctly like this :

$ opannotate --source --base-dirs=/tmp/build/libfoo/ --search-dirs=/home/user/libfoo/ --output-dir=annotated/ /lib/libfoo.so

You can specify multiple (comma-separated) paths to both options.

3.2. Usage of opannotate

--assembly / -a

Output annotated assembly. If this is combined with --source, then mixed source / assembly annotations are output.

--base-dirs / -b [paths]/

Comma-separated list of path prefixes. This can be used to point OProfile to a different location for source files when the debug information specifies an absolute path on your system for the source that does not exist. The prefix is stripped from the debug source file paths, then searched in the search dirs specified by --search-dirs.

--demangle / -D none|normal|smart

none: no demangling. normal: use default demangler (default) smart: use pattern-matching to make C++ symbol demangling more readable.

--exclude-dependent / -x

Do not include application-specific images for libraries, kernel modules and the kernel. This option only makes sense if the profile session used --separate.

--exclude-file [files]

Exclude all files in the given comma-separated list of glob patterns.

--exclude-symbols / -e [symbols]

Exclude all the symbols in the given comma-separated list.

--help / -? / --usage

Show help message.

--image-path / -p [paths]

Comma-separated list of additional paths to search for binaries. This is needed to find kernel modules.

--root / -R [path]

A path to a filesystem to search for additional binaries.

--include-file [files]

Only include files in the given comma-separated list of glob patterns.

--include-symbols / -i [symbols]

Only include symbols in the given comma-separated list.

--objdump-params [params]

Pass the given parameters as extra values when calling objdump. If more than one option is to be passed to objdump, the parameters must be enclosed in a quoted string.

An example of where this option is useful is when your toolchain does not automatically recognize instructions that are specific to your processor. For example, on IBM POWER7/RHEL 6, objdump must be told that a binary file may have POWER7-specific instructions. The opannotate option to show the POWER7-specific instructions is:

   --objdump-params=-Mpower7

The opannotate option to show the POWER7-specific instructions, the source code (--source) and the line numbers (-l) would be:

   --objdump-params="-Mpower7 -l --source"

--output-dir / -o [dir]

Output directory. This makes opannotate output one annotated file for each source file. This option can't be used in conjunction with --assembly.

--search-dirs / -d [paths]

Comma-separated list of paths to search for source files. This is useful to find source files when the debug information only contains relative paths.

--source / -s

Output annotated source. This requires debugging information to be available for the binaries.

--threshold / -t [percentage]

Only output data for symbols that have more than the given percentage of total samples.

--verbose / -V [options]

Give verbose debugging output.

--version / -v

Show version.

4. OProfile results with JIT samples

After profiling a Java (or other supported VM) application, the OProfile JIT support creates ELF binaries from the intermediate files that were written by the agent library. The ELF binaries are named <tgid>.jo. With the symbol information stored in these ELF files, it is possible to map samples to the appropriate symbols.

The usual analysis tools (opreport and/or opannotate) can now be used to get symbols and assembly code for the instrumented VM processes.

Below is an example of a profile report of a Java application that has been instrumented with the provided agent library.

$ opreport -l /usr/lib/jvm/jre-1.5.0-ibm/bin/java
CPU: Core Solo / Duo, speed 2167 MHz (estimated)
Counted CPU_CLK_UNHALTED events (Unhalted clock cycles) with a unit mask of 0x00 (Unhalted core cycles) count 100000
samples  %        image name               symbol name
186020   50.0523  no-vmlinux               no-vmlinux               (no symbols)
34333     9.2380  7635.jo                  java                     void test.f1()
19022     5.1182  libc-2.5.so              libc-2.5.so              _IO_file_xsputn@@GLIBC_2.1
18762     5.0483  libc-2.5.so              libc-2.5.so              vfprintf
16408     4.4149  7635.jo                  java                     void test$HelloThread.run()
16250     4.3724  7635.jo                  java                     void test$test_1.f2(int)
15303     4.1176  7635.jo                  java                     void test.f2(int, int)
13252     3.5657  7635.jo                  java                     void test.f2(int)
5165      1.3897  7635.jo                  java                     void test.f4()
955       0.2570  7635.jo                  java                     void test$HelloThread.run()~

Note

Depending on the JVM that is used, certain options of opreport and opannotate do NOT work since they rely on debug information (e.g. source code line number) that is not always available. The Sun JVM does provide the necessary debug information via the JVMTI[PI] interface, but other JVMs do not.

As you can see in the opreport output, the JIT support agent for Java generates symbols to include the class and method signature. A symbol with the suffix ˜<n> (e.g. void test$HelloThread.run()˜1) means that this is the <n>th occurrence of the identical name. This happens if a method is re-JITed. A symbol with the suffix %<n>, means that the address space of this symbol was reused during the sample session (see Section 6, “Overlapping symbols in JITed code”). The value <n> is the percentage of time that this symbol/code was present in relation to the total lifetime of all overlapping other symbols. A symbol of the form <return_val> <class_name>$<method_sig> denotes an inner class.

5. gprof-compatible output (opgprof)

If you're familiar with the output produced by GNU gprof, you may find opgprof useful. It takes a single binary as an argument, and produces a gmon.out file for use with gprof -p. If call-graph profiling is enabled, then this is also included.

$ opgprof `which oprofiled` # generates gmon.out file
$ gprof -p `which oprofiled` | head
Flat profile:

Each sample counts as 1 samples.
  %   cumulative   self              self     total
 time   samples   samples    calls  T1/call  T1/call  name
 33.13 206237.00 206237.00                             odb_insert
 22.67 347386.00 141149.00                             pop_buffer_value
  9.56 406881.00 59495.00                             opd_put_sample
  7.34 452599.00 45718.00                             opd_find_image
  7.19 497327.00 44728.00                             opd_process_samples

5.1. Usage of opgprof

--help / -? / --usage

Show help message.

--image-path / -p [paths]

Comma-separated list of additional paths to search for binaries. This is needed to find kernel modules.

--root / -R [path]

A path to a filesystem to search for additional binaries.

--output-filename / -o [file]

Output to the given file instead of the default, gmon.out

--threshold / -t [percentage]

Only output data for symbols that have more than the given percentage of total samples.

--verbose / -V [options]

Give verbose debugging output.

--version / -v

Show version.

6. Analyzing profile data on another system (oparchive)

The oparchive utility generates a directory populated with executable, debug, and oprofile sample files. This directory can be copied to another (host) machine and analyzed offline, with no further need to access the data collection machine (target).

The following command, executed on the target system, will collect the sample files, the executables associated with the sample files, and the debuginfo files associated with the executables and copy them into /tmp/current_data:

# oparchive -o /tmp/current_data

When transferring archived profile data to a host machine for offline analysis, you need to determine if the oprofile ABI format is compatible between the target system and the host system; if it isn't, you must run the opimport command to convert the target's sample data files to the format of your host system. See Section 7, “Converting sample database files (opimport)” for more details.

After your profile data is transferred to the host system and (if necessary) you have run the opimport command to convert the file format, you can now run the opreport and opannotate commands. However, you must provide an "archive specification" to let these post-processing tools know where to find of the profile data (sample files, executables, etc.); for example:

# opreport archive:/home/user1/my_oprofile_archive --symbols

Furthermore, if your profile was collected on your target system into a session-dir other than /var/lib/oprofile, the oparchive command will display a message similar to the following:

# NOTE: The sample data in this archive is located at /home/user1/test-stuff/oprofile_data
instead of the standard location of /var/lib/oprofile.  Hence, when using opreport
and other post-processing tools on this archive, you must pass the following option:
        --session-dir=/home/user1/test-stuff/oprofile_data

Then the above opreport example would have to include that --session-dir option.

Note

In some host/target development environments, all target executables, libraries, and debuginfo files are stored in a root directory on the host to facilitate offline analysis. In such cases, the oparchive command collects more data than is necessary; so, when copying the resulting output of oparchive, you can skip all of the executables, etc, and just archive the $SESSION_DIR tree located within the output directory you specified in your oparchive command. Then, when running the opreport or opannotate commands on your host system, pass the --root option to point to the location of your target's executables, etc.

6.1. Usage of oparchive

--help / -? / --usage

Show help message.

--exclude-dependent / -x

Do not include application-specific images for libraries, kernel modules and the kernel. This option only makes sense if the profile session used --separate.

--image-path / -p [paths]

Comma-separated list of additional paths to search for binaries. This is needed to find kernel modules.

--root / -R [path]

A path to a filesystem to search for additional binaries.

--output-directory / -o [directory]

Output to the given directory. There is no default. This must be specified.

--list-files / -l

Only list the files that would be archived, don't copy them.

--verbose / -V [options]

Give verbose debugging output.

--version / -v

Show version.

7. Converting sample database files (opimport)

This utility converts sample database files from a foreign binary format (abi) to the native format. This is required when moving sample files to a (host) system other than the one used for collection (target system), and the host and target systems are different architectures. The abi format of the sample files to be imported is described in a text file located in $SESSION_DIR/abi. If you are unsure if your target and host systems have compatible architectures (in regard to the OProfile ABI), simply diff a $SESSION_DIR/abi file from the target system with one from the host system. If any differences show up at all, you must run the opimport command.

The oparchive command should be used on the machine where the profile was taken (target) in order to collect sample files and all other necessary information. The archive directory that is the output from oparchive should be copied to the system where you wish to perform your performance analysis (host).

The following command converts an input sample file to the specified output sample file using the given abi file as a binary description of the input file and the curent platform abi as a binary description of the output file. (NOTE: The ellipses are used to make the example more compact and cannot be used in an actual command line.)

# opimport -a /tmp/foreign-abi -o /tmp/imported/.../GLOBAL_POWER_EVENTS.200000.1.all.all.all /tmp/archived/var/lib/.../mprime/GLOBAL_POWER_EVENTS.200000.1.all.all.all

Since opimport converts just one file at a time, an example shell script is provided below that will perform an import/conversion of all sample files in a samples directory collected from the target system.

#!/bin/bash
Usage: my-import.sh <input-abi-pathname>

# NOTE: Start from the "samples" directory containing the "current" directory
# to be imported

mkdir current-imported
cd current-imported; (cd ../current; find . -type d ! -name .) |xargs mkdir
cd ../current; mv stats ../StatsSave; find . -type f | while read line; do opimport  -a $1 -o ../current-imported/$line $line; done; mv ../StatsSave stats;

Example usage: Assume that on the target system, a profile was collected using a session-dir of /var/lib/oprofile, and then oparchive -o profile1 was run. Then the profile1 directory is copied to the host system for analysis. To import the sample data in profile1, you would perform the following steps:

$cd profile1/var/lib/oprofile/samples
$my-import.sh `pwd`/../abi

7.1. Usage of opimport

--help / -? / --usage

Show help message.

--abi / -a [filename]

Input abi file description location.

--force / -f

Force conversion even if the input and output abi are identical.

--output / -o [filename]

Specify the output filename. If the output file already exists, the file is not overwritten but data are accumulated in. Sample filename are informative for post profile tools and must be kept identical, in other word the pathname from the first path component containing a '{' must be kept as it in the output filename.

--verbose / -V

Give verbose debugging output.

--version / -v

Show version.

Chapter 5. Interpreting profiling results

The standard caveats of profiling apply in interpreting the results from OProfile: profile realistic situations, profile different scenarios, profile for as long as a time as possible, avoid system-specific artifacts, don't trust the profile data too much. Also bear in mind the comments on the performance counters above - you cannot rely on totally accurate instruction-level profiling. However, for almost all circumstances the data can be useful. Ideally a utility such as Intel's VTUNE would be available to allow careful instruction-level analysis; go hassle Intel for this, not me ;)

1. Profiling interrupt latency

This is an example of how the latency of delivery of profiling interrupts can impact the reliability of the profiling data. This is pretty much a worst-case-scenario example: these problems are fairly rare.

double fun(double a, double b, double c)
{
 double result = 0;
 for (int i = 0 ; i < 10000; ++i) {
  result += a;
  result *= b;
  result /= c;
 }
 return result;
}

Here the last instruction of the loop is very costly, and you would expect the result reflecting that - but (cutting the instructions inside the loop):

$ opannotate -a -t 10 ./a.out

     88 15.38% : 8048337:       fadd   %st(3),%st
     48 8.391% : 8048339:       fmul   %st(2),%st
     68 11.88% : 804833b:       fdiv   %st(1),%st
    368 64.33% : 804833d:       inc    %eax
               : 804833e:       cmp    $0x270f,%eax
               : 8048343:       jle    8048337

The problem comes from the x86 hardware; when the counter overflows the IRQ is asserted but the hardware has features that can delay the NMI interrupt: x86 hardware is synchronous (i.e. cannot interrupt during an instruction); there is also a latency when the IRQ is asserted, and the multiple execution units and the out-of-order model of modern x86 CPUs also causes problems. This is the same function, with annotation :

$ opannotate -s -t 10 ./a.out

               :double fun(double a, double b, double c)
               :{ /* _Z3funddd total:     572 100.0% */
               : double result = 0;
    368 64.33% : for (int i = 0 ; i < 10000; ++i) {
     88 15.38% :  result += a;
     48 8.391% :  result *= b;
     68 11.88% :  result /= c;
               : }
               : return result;
               :}

The conclusion: don't trust samples coming at the end of a loop, particularly if the last instruction generated by the compiler is costly. This case can also occur for branches. Always bear in mind that samples can be delayed by a few cycles from its real position. That's a hardware problem and OProfile can do nothing about it.

2. Kernel profiling

2.1. Interrupt masking

OProfile uses non-maskable interrupts (NMI) on the P6 generation, Pentium 4, Athlon, Opteron, Phenom, and Turion processors. These interrupts can occur even in sections of the kernel where interrupts are disabled, allowing collection of samples in virtually all executable code. The timer interrupt mode and Itanium 2 collection mechanisms use maskable interrupts; therefore, these profiling mechanisms have "sample shadows", or blind spots: regions where no samples will be collected. Typically, the samples will be attributed to the code immediately after the interrupts are re-enabled.

2.2. Idle time

Your kernel is likely to support halting the processor when a CPU is idle. As the typical hardware events like CPU_CLK_UNHALTED do not count when the CPU is halted, the kernel profile will not reflect the actual amount of time spent idle. You can change this behaviour by booting with the idle=poll option, which uses a different idle routine. This will appear as poll_idle() in your kernel profile.

2.3. Profiling kernel modules

OProfile profiles kernel modules by default. However, there are a couple of problems you may have when trying to get results. First, you may have booted via an initrd; this means that the actual path for the module binaries cannot be determined automatically. To get around this, you can use the -p option to the profiling tools to specify where to look for the kernel modules.

In kernel version 2.6, the information on where kernel module binaries are located was removed. This means OProfile needs guiding with the -p option to find your modules. Normally, you can just use your standard module top-level directory for this. Note that due to this problem, OProfile cannot check that the modification times match; it is your responsibility to make sure you do not modify a binary after a profile has been created.

If you have run insmod or modprobe to insert a module in a particular directory, it is important that you specify this directory with the -p option first, so that it over-rides an older module binary that might exist in other directories you've specified with -p. It is up to you to make sure that these values are correct: the kernel simply does not provide enough information for OProfile to get this information.

3. Interpreting call-graph profiles

Sometimes the results from call-graph profiles may be different to what you expect to see. The first thing to check is whether the target binaries where compiled with frame pointers enabled (if the binary was compiled using gcc's -fomit-frame-pointer option, you will not get meaningful results). Note that as of this writing, the GCC developers plan to disable frame pointers by default. The Linux kernel is built without frame pointers by default; there is a configuration option you can use to turn it on under the "Kernel Hacking" menu.

Often you may see a caller of a function that does not actually directly call the function you're looking at (e.g. if a() calls b(), which in turn calls c(), you may see an entry for a()->c()). What's actually occurring is that we are taking samples at the very start (or the very end) of c(); at these few instructions, we haven't yet created the new function's frame, so it appears as if a() is calling directly into c(). Be careful not to be misled by these entries.

Like the rest of OProfile, call-graph profiling uses a statistical approach; this means that sometimes a backtrace sample is truncated, or even partially wrong. Bear this in mind when examining results.

4. Inaccuracies in annotated source

4.1. Side effects of optimizations

The compiler can introduce some pitfalls in the annotated source output. The optimizer can move pieces of code in such manner that two line of codes are interlaced (instruction scheduling). Also debug info generated by the compiler can show strange behavior. This is especially true for complex expressions e.g. inside an if statement:

	if (a && ..
	    b && ..
	    c &&)

here the problem come from the position of line number. The available debug info does not give enough details for the if condition, so all samples are accumulated at the position of the right brace of the expression. Using opannotate -a can help to show the real samples at an assembly level.

4.2. Prologues and epilogues

The compiler generally needs to generate "glue" code across function calls, dependent on the particular function call conventions used. Additionally other things need to happen, like stack pointer adjustment for the local variables; this code is known as the function prologue. Similar code is needed at function return, and is known as the function epilogue. This will show up in annotations as samples at the very start and end of a function, where there is no apparent executable code in the source.

4.3. Inlined functions

You may see that a function is credited with a certain number of samples, but the listing does not add up to the correct total. To pick a real example :

               :internal_sk_buff_alloc_security(struct sk_buff *skb)
 353 2.342%    :{ /* internal_sk_buff_alloc_security total: 1882 12.48% */
               :
               :        sk_buff_security_t *sksec;
  15 0.0995%   :        int rc = 0;
               :
  10 0.06633%  :        sksec = skb->lsm_security;
 468 3.104%    :        if (sksec && sksec->magic == DSI_MAGIC) {
               :                goto out;
               :        }
               :
               :        sksec = (sk_buff_security_t *) get_sk_buff_memory(skb);
   3 0.0199%   :        if (!sksec) {
  38 0.2521%   :                rc = -ENOMEM;
               :                goto out;
  10 0.06633%  :        }
               :        memset(sksec, 0, sizeof (sk_buff_security_t));
  44 0.2919%   :        sksec->magic = DSI_MAGIC;
  32 0.2123%   :        sksec->skb = skb;
  45 0.2985%   :        sksec->sid = DSI_SID_NORMAL;
  31 0.2056%   :        skb->lsm_security = sksec;
               :
               :      out:
               :
 146 0.9685%   :        return rc;
               :
  98 0.6501%   :}

Here, the function is credited with 1,882 samples, but the annotations below do not account for this. This is usually because of inline functions - the compiler marks such code with debug entries for the inline function definition, and this is where opannotate annotates such samples. In the case above, memset is the most likely candidate for this problem. Examining the mixed source/assembly output can help identify such results.

This problem is more visible when there is no source file available, in the following example it's trivially visible the sums of symbols samples is less than the number of the samples for this file. The difference must be accounted to inline functions.

/*
 * Total samples for file : "arch/i386/kernel/process.c"
 *
 *    109  2.4616
 */

 /* default_idle total:     84  1.8970 */
 /* cpu_idle total:         21  0.4743 */
 /* flush_thread total:      1  0.0226 */
 /* prepare_to_copy total:   1  0.0226 */
 /* __switch_to total:      18  0.4065 */

The missing samples are not lost, they will be credited to another source location where the inlined function is defined. The inlined function will be credited from multiple call site and merged in one place in the annotated source file so there is no way to see from what call site are coming the samples for an inlined function.

When running opannotate, you may get a warning "some functions compiled without debug information may have incorrect source line attributions". In some rare cases, OProfile is not able to verify that the derived source line is correct (when some parts of the binary image are compiled without debugging information). Be wary of results if this warning appears.

Furthermore, for some languages the compiler can implicitly generate functions, such as default copy constructors. Such functions are labelled by the compiler as having a line number of 0, which means the source annotation can be confusing.

4.4. Inaccuracy in line number information

Depending on your compiler you can fall into the following problem:

struct big_object { int a[500]; };

int main()
{
	big_object a, b;
	for (int i = 0 ; i != 1000 * 1000; ++i)
		b = a;
	return 0;
}

Compiled with gcc 3.0.4 the annotated source is clearly inaccurate:

               :int main()
               :{  /* main total: 7871 100% */
               :        big_object a, b;
               :        for (int i = 0 ; i != 1000 * 1000; ++i)
               :                b = a;
 7871 100%     :        return 0;
               :}

The problem here is distinct from the IRQ latency problem; the debug line number information is not precise enough; again, looking at output of opannoatate -as can help.

               :int main()
               :{
               :        big_object a, b;
               :        for (int i = 0 ; i != 1000 * 1000; ++i)
               : 80484c0:       push   %ebp
               : 80484c1:       mov    %esp,%ebp
               : 80484c3:       sub    $0xfac,%esp
               : 80484c9:       push   %edi
               : 80484ca:       push   %esi
               : 80484cb:       push   %ebx
               :                b = a;
               : 80484cc:       lea    0xfffff060(%ebp),%edx
               : 80484d2:       lea    0xfffff830(%ebp),%eax
               : 80484d8:       mov    $0xf423f,%ebx
               : 80484dd:       lea    0x0(%esi),%esi
               :        return 0;
    3 0.03811% : 80484e0:       mov    %edx,%edi
               : 80484e2:       mov    %eax,%esi
    1 0.0127%  : 80484e4:       cld
    8 0.1016%  : 80484e5:       mov    $0x1f4,%ecx
 7850 99.73%   : 80484ea:       repz movsl %ds:(%esi),%es:(%edi)
    9 0.1143%  : 80484ec:       dec    %ebx
               : 80484ed:       jns    80484e0
               : 80484ef:       xor    %eax,%eax
               : 80484f1:       pop    %ebx
               : 80484f2:       pop    %esi
               : 80484f3:       pop    %edi
               : 80484f4:       leave
               : 80484f5:       ret

So here it's clear that copying is correctly credited with of all the samples, but the line number information is misplaced. objdump -dS exposes the same problem. Note that maintaining accurate debug information for compilers when optimizing is difficult, so this problem is not suprising. The problem of debug information accuracy is also dependent on the binutils version used; some BFD library versions contain a work-around for known problems of gcc, some others do not. This is unfortunate but we must live with that, since profiling is pointless when you disable optimisation (which would give better debugging entries).

5. Assembly functions

Often the assembler cannot generate debug information automatically. This means that you cannot get a source report unless you manually define the neccessary debug information; read your assembler documentation for how you might do that. The only debugging info needed currently by OProfile is the line-number/filename-VMA association. When profiling assembly without debugging info you can always get report for symbols, and optionally for VMA, through opreport -l or opreport -d, but this works only for symbols with the right attributes. For gas you can get this by

.globl foo
	.type	foo,@function

whilst for nasm you must use

	  GLOBAL foo:function		; [1]

Note that OProfile does not need the global attribute, only the function attribute.

6. Overlapping symbols in JITed code

Some virtual machines (e.g., Java) may re-JIT a method, resulting in previously allocated space for a piece of compiled code to be reused. This means that, at one distinct code address, multiple symbols/methods may be present during the run time of the application.

Since OProfile samples are buffered and don′t have timing information, there is no way to correlate samples with the (possibly) varying address ranges in which the code for a symbol may reside. An alternative would be flushing the OProfile sampling buffer when we get an unload event, but this could result in high overhead.

To moderate the problem of overlapping symbols, OProfile tries to select the symbol that was present at this address range most of the time. Additionally, other overlapping symbols are truncated in the overlapping area. This gives reasonable results, because in reality, address reuse typically takes place during phase changes of the application -- in particular, during application startup. Thus, for optimum profiling results, start the sampling session after application startup and burn in.

7. Using operf to profile fork/execs

When profiling an application that forks one or more new processes, operf will record samples for both the parent process and forked processes. This is also true even if the forked process performs an exec of some sort (e.g., execvp). If the process does not perform an exec, you will see that opreport will attribute samples for the forked process to the main application executable. On the other hand, if the forked process does perform an exec, then opreport will attribute samples to the executable being exec'ed.

To demonstrate this, consider the following examples. When using operf to profile a single application (either with the --pid option or command option), the normal opreport summary output (i.e., invoking opreport with no options) looks something like the following:

CPU_CLK_UNHALT...|
  samples|      %|
------------------
   112342 100.000 sprintft
	CPU_CLK_UNHALT...|
	  samples|      %|
	------------------
	   104209 92.7605 libc-2.12.so
	     7273  6.4740 sprintft
	      858  0.7637 no-vmlinux
	        2  0.0018 ld-2.12.so

But if you profile an application that does a fork/exec, the opreport summary output will show samples for both the main application you profiled, as well as the exec'ed program. An example is shown below where s-m-fork is the main application being profiled, which in turn forks a process that does an execvp of the memcpyt program.

CPU_CLK_UNHALT...|
  samples|      %|
------------------
   133382 70.5031 memcpyt
	CPU_CLK_UNHALT...|
	  samples|      %|
	------------------
	   123852 92.8551 libc-2.12.so
	     8522  6.3892 memcpyt
	     1007  0.7550 no-vmlinux
	        1 7.5e-04 ld-2.12.so
    55804 29.4969 s-m-fork
	CPU_CLK_UNHALT...|
	  samples|      %|
	------------------
	    51801 92.8267 libc-2.12.so
	     3589  6.4314 s-m-fork
	      414  0.7419 no-vmlinux

8. Other discrepancies

Another cause of apparent problems is the hidden cost of instructions. A very common example is two memory reads: one from L1 cache and the other from memory: the second memory read is likely to have more samples. There are many other causes of hidden cost of instructions. A non-exhaustive list: mis-predicted branch, TLB cache miss, partial register stall, partial register dependencies, memory mismatch stall, re-executed µops. If you want to write programs at the assembly level, be sure to take a look at the Intel and AMD documentation at http://developer.intel.com/ and http://developer.amd.com/devguides.jsp.

Chapter 6. Controlling the event counter

Table of Contents

1. Using ocount

1. Using ocount

This section describes in detail how ocount is used. Unless the --events option is specified, ocount will use the default event for your system. For most systems, the default event is some cycles-based event, assuming your processor type supports hardware performance counters. The event specification used for ocount is slightly different from that required for profiling -- a count value is not needed. You can see the event information for your CPU using ophelp. More information on event specification can be found at Section 4, “Specifying performance counter events”.

The ocount command syntax is:

ocount [ options ] [ --system-wide | --process-list <pids> | --thread-list <tids> | --cpu-list <cpus> [ command [ args ] ] ]

ocount has 5 run modes:

  • system-wide
  • process-list
  • thread-list
  • cpu-list
  • command

One and only one of these 5 run modes must be specified when you run ocount. If you run ocount using a run mode other than command [args], press Ctrl-c to stop it when finished counting (e.g., when the monitored process ends). If you background ocount (i.e., with ’&’) while using one these run modes, you must stop it in a controlled manner so that the data collection process can be shut down cleanly and final results can be displayed. Use kill -SIGINT <ocount-PID> for this purpose.

Following is a description of the ocount options.

command [args]

The command or application to be profiled. The [args] are the input arguments that the command or application requires. The command and its arguments must be positioned at the end of the command line, after all other ocount options.

--process-list / -p [PIDs]

Use this option to count events for one or more already-running applications, specified via a comma-separated list (PIDs). Event counts will be collected for all children of the passed process(es) as well.

--thread-list / -r [TIDs]

Use this option to count events for one or more already-running threads, specified via a comma-separated list (TIDs). Event counts will not be collected for any children of the passed thread(s).

--system-wide / -s

This option is for counting events for all processes running on your system. You must have root authority to run ocount in this mode.

--cpu-list / -C [CPUs]

This option is for counting events on a subset of processors on your system. You must have root authority to run ocount in this mode. This is a comma-separated list, where each element in the list may be either a single processor number or a range of processor numbers; for example: ’-C 2,3,4-11,15’.

--events / -e [event1[,event2[,...]]]

This option is for passing a comma-separated list of event specifications for counting. Each event spec is of the form:

name[:unitmask[:kernel[:user]]]

When no event specification is given, the default event for the running processor type will be used for counting. Use ophelp to list the available events for your processor type.

--separate-thread / -t

This option can be used in conjunction with either the --process-list or --thread-list option to display event counts on a per-thread (per-process) basis. Without this option, all counts are aggregated.

--separate-cpu / -c

This option can be used in conjunction with either the --system-wide or --cpu-list option to display event counts on a per-cpu basis. Without this option, all counts are aggregated.

--time-interval / -i num_seconds[:num_intervals]

Results collected for each time interval are printed every num_seconds instead of the default of one dump of cumulative event counts at the end of the run. If num_intervals is specified, ocount exits after the specified number of intervals occur.

--brief-format / -b

Use this option to print results in the following brief format:

                  [optional cpu or thread,]<event_name>,<count>,<percent_time_enabled>
                  [        <int>         ,]<  string  >,< u64 >,<     double         >
        

If --timer-interval is specified, a separate line formatted as

                  timestamp,<num_seconds_since_epoch>
        

is printed ahead of each dump of event counts.

--output-file / -f outfile_name

Results are written to outfile_name instead of interactively to the terminal.

--verbose / -V

Use this option to increase the verbosity of the output.

--version -v

Show ocount version.

--help / -h

Show a help message.

Chapter 7. Acknowledgments

Thanks to (in no particular order) : Arjan van de Ven, Rik van Riel, Juan Quintela, Philippe Elie, Phillipp Rumpf, Tigran Aivazian, Alex Brown, Alisdair Rawsthorne, Bob Montgomery, Ray Bryant, H.J. Lu, Jeff Esper, Will Cohen, Graydon Hoare, Cliff Woolley, Alex Tsariounov, Al Stone, Jason Yeh, Randolph Chung, Anton Blanchard, Richard Henderson, Andries Brouwer, Bryan Rittmeyer, Maynard P. Johnson, Richard Reich (rreich@rdrtech.com), Zwane Mwaikambo, Dave Jones, Charles Filtness; and finally Pulp, for "Intro".

oprofile-0.9.9/doc/ocount.1.in0000664000076400007640000001317212175510134013051 00000000000000.\" an page for ocount .\" Author: Maynard Johnson .TH ocount 1 "@DATE@" "oprofile @VERSION@" .SH NAME ocount \- Event counting tool for Linux .SH SYNOPSIS .B ocount [ .I options ] [ --system-wide | --process-list | --thread-list | --cpu-list [ command [ args ] ] ] .SH DESCRIPTION .BI ocount is an OProfile tool that can be used to count native hardware events occurring in either a given application, a set of processes or threads, a subset of active system processors, or the entire system. The data collected during a counting session is displayed to stdout by default or, optionally, to a file. .P When counting multiple events, the kernel may not be able to count all events simultaneously and, thus, may need to multiplex the counting of the events. If this happens, the "Percent time enabled" column in the .B ocount output will be less than 100, but counts are scaled up to a 100% estimated value. .br .SH RUN MODES One (and only one) of the following .SB run modes must be specified. If you run .BI ocount using a run mode other than .BI "command " [args] , press Ctrl-c to stop .BI ocount when finished counting (e.g., when the monitored process ends). If you background .BI ocount (i.e., with '&') while using one these run modes, you .B must stop it in a controlled manner so that the data collection process can be shut down cleanly and final results can be displayed. Use .BI kill .BI -SIGINT .BI for this purpose. .TP .BI "command " [args] The .I command is the application for which to count events. .I args are the input arguments required by the application. The .I command and its arguments .B must be positioned at the end of the command line, after all ocount options. .br .TP .BI "--process-list / -p " pids Use this option to count events for one or more already-running applications, specified via a comma-separated list ( .I pids ). Event counts will be collected for all children of the passed process(es) as well. .br .TP .BI "--thread-list / -r " tids Use this option to count events for one or more already-running threads, specified via a comma-separated list ( .I tids ). Event counts will .B not be collected for any children of the passed thread(s). .br .TP .BI "--system-wide / -s" This option is for counting events for all processes running on your system. You must have root authority to run ocount in this mode. .br .TP .BI "--cpu-list / -C " cpus This option is for counting events on a subset of processors on your system. You must have root authority to run ocount in this mode. This is a comma-separated list, where each element in the list may be either a single processor number or a range of processor numbers; for example: '-C 2,3,4-11,15'. .br .SH OTHER OPTIONS .TP .BI "--events / -e " event1[,event2[,...]] This option is for passing a comma-separated list of event specifications for counting. Each event spec is of the form: .br .I " name[:unitmask[:kernel[:user]]]" .br .B Note: Do .B not include a .I count value in the event spec, as that parameter is only need when profiling. .P .RS You can specify unit mask values using either a numerical value (hex values .I must begin with "0x") or a symbolic name (if the .I name= field is shown in the .B ophelp output). For some named unit masks, the hex value is not unique; thus, OProfile tools enforce specifying such unit masks value by name. If no unit mask is specified, the default unit mask value for the event is used. .P Event names for certain processor types include a .I "_GRP" suffix. For such cases, the .I --events option may be specified with or without the .I "_GRP" suffix. .P When no event specification is given, the default event for the running processor type will be used for counting. Use .BI ophelp to list the available events for your processor type. .RE .br .TP .BI "--separate-thread / -t" This option can be used in conjunction with either the .I --process-list or .I --thread-list option to display event counts on a per-thread (per-process) basis. Without this option, all counts are aggregated. .P .RS .BI NOTE: If new threads are started by the process(es) being monitored after counting begins, the counts for those threads are aggregated with their parent's counts. .RE .br .TP .BI "--separate-cpu / -c" This option can be used in conjunction with either the .I --system-wide or .I --cpu-list option to display event counts on a per-cpu basis. Without this option, all counts are aggregated. .br .TP .BI "--time-interval / -i " num_seconds[:num_intervals] Results collected for each time interval are printed every .IR "num_seconds" instead of the default of one dump of cumulative event counts at the end of the run. If .I num_intervals is specified, .BI ocount exits after the specified number of intervals occur. .br .TP .BI "--brief-format / -b" Use this option to print results in the following brief format: .br [optional cpu or thread,],, .br [ ,]< string >,< u64 >,< double > .P .RS If .I --timer-interval is specified, a separate line formatted as .br timestamp, .br is printed ahead of each dump of event counts. .RE .TP .BI "--output-file / -f " outfile_name Results are written to .I outfile_name instead of interactively to the terminal. .br .TP .BI "--verbose / -V" Use this option to increase the verbosity of the output. .br .TP .BI "--version / -v" Show ocount version. .br .TP .BI "--help / -h" Display brief usage message. .br .TP .BI "--usage / -u" Display brief usage message. .br .SH EXAMPLE $ ocount make .SH VERSION This man page is current for @PACKAGE@-@VERSION@. .SH SEE ALSO operf(1). oprofile-0.9.9/doc/Makefile.am0000664000076400007640000000474512175510134013115 00000000000000RM=rm MANDIR=$(DESTDIR)@mandir@/man1 XSLTPROC=xsltproc XSLTPROC_FLAGS=@XSLTPROC_FLAGS@ XHTML_STYLESHEET=$(srcdir)/xsl/xhtml.xsl CHUNK_XHTML_STYLESHEET=$(srcdir)/xsl/xhtml-chunk.xsl XML_CATALOG_FILES=xsl/catalog.xml STYLESHEETS=$(CHUNK_XHTML_STYLESHEET) $(srcdir)/xsl/xhtml-common.xsl man_MANS = \ oprofile.1 \ opcontrol.1 \ opreport.1 \ opannotate.1 \ opgprof.1 \ ophelp.1 \ op-check-perfevents.1 \ oprof_start.1 \ oparchive.1 \ opimport.1 if BUILD_FOR_PERF_EVENT man_MANS += operf.1 \ ocount.1 endif htmldir = $(prefix)/share/doc/oprofile dist_html_DATA = oprofile.html internals.html opreport.xsd op-jit-devel.html if have_xsltproc oprofile.html: ${top_srcdir}/doc/oprofile.xml XML_CATALOG_FILES=$(XML_CATALOG_FILES) $(XSLTPROC) $(XSLTPROC_FLAGS) -o $@ --stringparam version @VERSION@ $(XHTML_STYLESHEET) $< op-jit-devel.html: ${top_srcdir}/doc/op-jit-devel.xml XML_CATALOG_FILES=$(XML_CATALOG_FILES) $(XSLTPROC) $(XSLTPROC_FLAGS) -o $@ --stringparam version @VERSION@ $(XHTML_STYLESHEET) $< internals.html: ${top_srcdir}/doc/internals.xml XML_CATALOG_FILES=$(XML_CATALOG_FILES) $(XSLTPROC) $(XSLTPROC_FLAGS) -o $@ --stringparam version @VERSION@ $(XHTML_STYLESHEET) $< # rules to generate oprofile.sf.net/doc files doc/index.html: ${top_srcdir}/doc/oprofile.xml -mkdir doc/ $(XSLTPROC) -o doc/ $(XSLTPROC_FLAGS) --stringparam version @VERSION@ $(CHUNK_XHTML_STYLESHEET) $< doc/devel/index.html: ${top_srcdir}/doc/op-jit-devel.xml -mkdir doc/devel/ $(XSLTPROC) -o doc/devel/ $(XSLTPROC_FLAGS) --stringparam version @VERSION@ $(CHUNK_XHTML_STYLESHEET) $< doc/internals/index.html: ${top_srcdir}/doc/internals.xml -mkdir doc/internals/ $(XSLTPROC) -o doc/internals/ $(XSLTPROC_FLAGS) --stringparam version @VERSION@ $(CHUNK_XHTML_STYLESHEET) $< chunk: doc/index.html doc/internals/index.html doc/devel/index.html cp ${top_srcdir}/doc/buffers.png doc/internals/ else oprofile.html: touch $@ internals.html: touch $@ op-jit-devel.html: touch $@ chunk: endif distclean-local: $(RM) -f xsl/catalog-1.xml xsl/catalog.xml clean-local: $(RM) -f $(generated_mans) # these files are not cleaned by make uninstall automake bug ? uninstall-local: rm -f @mandir@/cat1/oprofile.1.gz @for f in $(LINK_LIST); do \ rm -f $(CATDIR)/cat1/$$f.gz; \ done EXTRA_DIST = \ oprofile.1 \ oprofile.1.in \ oprofile.xml \ op-jit-devel.xml \ internals.xml \ buffers.png \ xsl/catalog-1.xml.in \ xsl/xhtml.xsl \ xsl/xhtml-common.xsl \ xsl/xhtml-chunk.xsl \ srcdoc/Doxyfile.in \ srcdoc/Makefile oprofile-0.9.9/doc/buffers.png0000664000076400007640000010356712175510134013225 00000000000000‰PNG  IHDR6·ð—®sBITÛáOà pHYsÐй‹çŸ IDATxœìÝ{\ÇÚ8ðI@Š$$¥Ü""bíñÖZ°b¥¢€’žZ¤j‹­×–úÚúªÕ*Öbµ¨ ~Z«O¡=õ" ¨oë¥*V-"x)Ò* Ê="°óûcN÷·Í&»$$çûW2;³;»“äÉ^Æ`hÀÔ]:_  ¡©;ÀÜY›º ;ƒ¬æ öü€î`¯x@¨ÀB*@×7nÜ /fÏžM—߸qƒœbõññqrrrrr‰„¼®©©a¾%ŠŠŠÈ|$‰L&³··wssÛ¹s'sY“H7Ô–N·rrr’H$vvv#GްÀ{À4ÂÂÂæÏŸßÐÐ`¹ ‚Š¢Ø3ä˜ÄÍÞÞ~Þ¼yׯ_׳o)))S§NõôôLMMe–ónÞ½{/X° 66výúõút Ó[„ `ëÖ­³¶¶þè£ôŸÆøÁƒ+V¬ðóóóððÐq’.ÊËËõéEQ©©©QQQ¯¿þú·ß~KQ=IÇ-yáÂ…Nw@Ï-À™x¯tS?]ˆqª¸¸øÔ©S ??_—PL111ìr??¿ÇklžÄ{êÉ“'ÞÞÞ+W®ÔÖP[÷˜ë~êÔ)‘HT__þüy„PAAsV·€ÚR®^½* 9:ЉìÀ^Ø`¯˜Lppð¼yóæÎÛÜÜÌ[™ù¹oß>µòŒŒŒ«W¯>~ü˜ÝDã$Ìø%eþÓG 2D ØÛÛÏ™3'&&&>>^—uaÇ"%%eòäÉ}ûö}á… …Ú1(]¶@uuµ‹‹‹îK×qãÐ!*€)mÚ´I¥R­Y³FÏùDDD„„„¼÷Þ{˜õ/›=I.—?zôˆ®P]]Ý·o_ú-ùymmm---]½zµµuç~ÓÜÜ|èС´´4@  ïÞ½ûÝwß=yò„Y‡w ddd„„„tºˆsã #À”Äbqrrrff¦þ³Ú¶m[~~þx'½öÚkëÖ­{ðàB¨¾¾>))iòäÉúw€-==ÝÞÞ¾¥¥…ÞÛ¨««ËÊÊbÖáØ*•*999%%%..NÏžplt¡˜XxxøÌ™3y«ùûû3oøÇ?þ¡VaÀ€üñâÅ‹™{ '%&&z{{5J&“ùøøôë×o×®]†Z¦”””E‹ÙØØ·¾¾¾‘‘‘jÇ ¦-àïï/“É\]]³³³ ÈœDoúX“>]`Ÿ¹“>]æ Æèö*ð€P€„ <,2 dï²0Rt°W€‡EîUpåt Ø«ÀB*ð°às ‚ÈÈÈööö{÷îEFF~úé§---+W®¼råJïÞ½kjj>øàƒ¨¨(vCvµiÓ¦mݺ533ÓÁÁ¡¾¾>""âƒ> …Áÿ¿Å~-¾ùæ›7ß|“¼.--]ºt)B(===22ýù0 Ò=ÒÖÇÇgÓ¦MÌGEE}üñÇÚÖ‹,h÷îÝß|ó££cCCCXXY »&EQQQQ±±±ÁÁÁ:.Tmèõb·…³Dô4ùµçx ýCV__ïììüäÉ“åË—«Tª/¾ø‚LR©T½{÷f7dWÛ±cGQQѾ}û¬­­ÛÚÚbbbžþù%K–h C‡½xñ¢H$ÒXAã[fImmmÿþýÕ;ʮ֧OŸßÿ]"‘ „ZZZD"‘ÆšŸþy¯^½H Ñq¡W£- 1HÖ‹.ÆÑsRÞÒÒòÏþÓÓÓcüÌ3ÏüöÛo¼ódWS(eeeôÛÒÒR///zÌÅ‘«V­Úºu«¶ ßÒ%Ož<Ù»wïˆ#´un8lذ?üðÞ½{5¿ÿþû¨¨(Š¢:´P« ­- G±È¯=w¨@ …¡C‡æååaŒ­¬¬Z[[yçÉ®¦VòôéÓ^½zaí¡¢¶¶Ö××·®®Ž;TÐRRR˜%¬¨¨àXeò¢¢¢bÞ¼y2™,((èâÅ‹kŽ5ŠÎ¶¦ûB5®‚ƶÚ: è®,òkÏ»WÁÔ¿ÿ[·nñΓ]Mm¯âæÍ› À …ÂöövŒq[[›Ú¿ï-[¶¬^½º{ ^^^ÿ÷ÿ§­{j [ZZvìØáææ¦±æåË—üÇth¡Wö*¸'„Š>øà­·Þjkk÷··WVVbŒ«ªªx«%&&Μ9“”´¶¶Î˜1#11cûl'BÆ8''Ç××W¥Riì]>ôôðáC©Tªm :tèÅ_ljjÒ}¡WBcl‘§(u9­MS©TK—.=wîœL&#—9…††*Š»wïrW{å•W’’’²²²ÂÃÃ?üðC¡PXPP°bÅ ’tsÍš5'Nd.7%%å­·Þ¢ûÀ>­M_P$ 9¬ðöÛo÷ë×/!!Ý=ºZhh(BÈÖÖ¶®®nÑ¢E¯½öš¶-õêÕƒZYYé²P« ±ÃtIZZšöQtÝ-Tè(..nݺu†ë‘éÞ=µçñYâhÌ_w»¯BGo­0ºwb  ôн ºƒ{à¡x@¨ÀB*ð€P€„ < Tà¡x@¨ÀB*,ÕñãǤR©D"qwwŽŽ&å@"‘899I$;;»‘#Gž;wޔߏqƒn~ãÆ :×EmmíäÉ“ÝÝÝ#""Hbm`(¦ÜÜÜ÷ßèÐ¡Ì t éðáófÍZºtiUUÕãÇÏœ93eÊzêÙ³g>|X[[[]]=vìØùóçsÏíã?öòò*//wss[µj•‘ûÞƒv˜îܹ3a„_ýÕÈ½î‰ ÑsssG5pàÀ¦§§›d]Œ¥«3´‚åöÜ (Š<<|ùòåÓ¦M3b¿»€²<à³Ï>[µjÕÞ½{›››1Æ·nÝJJJânõÚk¯­[·îÁƒ¡úúú¤¤¤É“'“¹Í˜1c÷îÝã}ûöEGG …ð©0Ã0:¢k«@N_·¶¶–––®^½ÚÚÚièmmm¯¾úêôéÓßzë­.è|—2ÝõγܞÐÑ£Gýýýíììz÷îíííGÊ‘–+dcccÉ>D¿~ýæÎ[[[K&ÕÖÖNš4ÉÍÍ-44ôñãÇ]·=€‡éÍ7ß8p BÈÝÝ}ìØ±]·ÝÝìììöìÙÓÔÔDQTYYYbb"™¤m˜.\zÿþ}Œq]]Ý”)S¢¢¢0Æ[¶lñòòjiiimm%×Su劕3v£,¹„Ù{0Ciii7n¼råŠ@ xæ™gÞxãøøx„@ Ðxœ°©©é£>:räHKKK¯^½¦L™’˜˜(‹•J%óv m-„ <à´vÐX] Ó¦L™rüøqÃvhsìØ1æ-è »‚˜˜2eŠt•ŒŒ =Ç ö*: |›À{oðoר`ï­G½ €É;vÌ”—õô)x@¨ÀB*ð€PÑy>>>NNNNNN‚?Se999ÕÔÔ©£G5j³~VVÖ¨Q£œœœÄbñ€6nÜHÊfÔÂGGG/\¸PmAN˜0!11‘Thnn¶µµ¥gØÚÚ*•JëëëÉœ9úÉ‘üK[ÚN‹Ã€˜úü|g˜ªçÚ–‹XŠùõ×_É—öúõ뤤¾¾ÞÎÎ.##ƒ¢(Š¢nݺ•ŸŸ¯ÖüóÏ?7n\KK sVÚÆÇLJ‡‡“:äšÅñãÇ“·………äAjS{«cò/¬)›Qé9¾ä’ö¥50L†¥m;w®ù Aƒd2™L&C‰ÅbòúáÇdê /¼0räHfóÌÌÌ‘#GÊd2…B‘@ÊémBQÔôéÓ,X ¶\ Ç¿yófR¡©©I$Ñ3|úô©££#É9_\\ÌÑÏŒŒŒ±cÇ:::ŠÅb77·éÓ§«u‰°¬a¢A¨0ÀrÙ¿A+W®ŒŒŒôôô\¹r%)¹}û6B¨ªªJ[óÌÌL…BQYY©6U[‚‡ÖÖVŒqlll`` Mcc#Æ8..níÚµìŽ1ßv(gw 0Lú0l¨ AD7,C… 8exE¥¦¦FEE½þúëß~û-y–½B¡7n\@@À®]»ª««Õš”””Ì;÷È‘#ì[Ú¾øâ‹OŸ>-**Âggg'$$‚‚‚„ÐÉ“''NœÈÝÉ%ÿê–`˜,EJJÊÔ©S===SSSIÉÇU*•ŸŸ¹ÙËË+00Ù$+++99ùСC666Ìrm øá‡¶¶6„Pvvv``à™3gH‚È“'O¾òÊ+Ü=Ä:g]µ`úG­®gªžk[.ú뿆S§N‰D¢úúúóçÏ#„ Hyccc||¼———P(ŒŒŒ,++£›=:((¨½½]ãrµ5 Ú¼ysII‰««+EQ¯¼òÊâÅ‹?~,•JÉßX¤ý9ÆMªi[SS}Tô\œŽWa˜ôÔ5{íííîîîß~ûíÒ¥K=<<ÈÆ§(jܸq>>>ÉÉÉj{r¡´´4—K—.±ª­¡J¥²µµ½páEQ^^^?ýô“H$ÊÌÌÄûûûÿøãìŽ1ß’tôä™älö*€F)))“'OîÛ·ï /¼ P(è¿B}úô‰‹‹+++;þ|{{{pppkk+™”””T^^¾lÙ23ÔÖ0(((???;;;,,L „††æääœ:uêå—_& X8ÐÉ¿´U`¸»&‹PPPPUUEB”——Ÿ9s!$²³³gÍšµqãÆþýû+•Ê[·nÑMÖ¯_?xðàádz禭¡­­­¿¿~~~iiiKK‹ŸŸßË/¿üý÷ß×ÖÖÞ¼ysôèÑÜäͺ:dÈúqL$­žåÑ3Ô˜„©z®m¹ˆñmjjRËp)‘HT*•Z“ÆÆF„ùãIšK$’/¿ü’»̆§OŸvpp 9zô(ÆøÚµk¡ððð;v°;†YÁ½½½·lÙ¢mM»÷¹ &ýuÍ^ÅÛo¿­T*1ÆE)Šyóæ1+SõóÏ?GDD¸»»?}ú”4/,,ôòòZ²d ÇÒÙ ×®]¾mÛ6²ˆÄÄD__ßÇ“¥³;Æ|K²þþûï—eÑÃDƒPa€å2? û÷ïwqq¡O¦ ‚Çß»woË–-wîÜ!çÓ:$—ËŸóíîÝ»µÍ™ý!¤T*5^Ö¬VÓ××—ÝÖüÁ(< Tà¡xÀiíƒç<[„©S§šº t*&ÝR@¨è0K¼ÐͲd¿íرcS¦LÑ>@›)S¦çuƒžÎULî”46r žþ Tà¡B_t&d‰Dbgg7räHúÑ@ÚR"3íÙ³gùòåÌŽVyyyŽŽŽ2™,<<œ<Ñ qæX³gÏfOÒ–É™ù–(**¢WS&“ÙÛÛ»¹¹íܹÓ¯ëÀ0 Sïu†©z®q¹ˆñ€—†††ØØØaÆaΊLJ¥²°°~ËÑ*''G*•fdd´···´´$''K¥Ò’’ÌùÒç'N°'±ûÏ~Ë.§(*--M(ÖÔÔè°Í:CÏñÕøÐ&ƒ3Ò3 €aÁCÈÍ1T`Œ‹ŠŠ¬¬¬¸S"ÓT*•‡‡㌻ÕðáÃÕ&-Z´hÆŒì>¨ý………yxx'`ëÿ„ÿ|t3ýxNƒ3v¨À0L†¡Â"ÀCÈÍTyy¹³³³Ž)‘óóó™©Ð8ZÕÔÔ\¹r%22’Y¨T*sssy»´nÝ:kkë>úHç•Ð cüàÁƒ+Vøùùyxxè?CSa2Oô1:ŒqttôÂ… éòŽpÓvL{nÌ#„j²²²Fåää$‹ °qãF„Є I…ææf[[[RŽjmm•J¥õõõd¶ÚŽ%"í39ŽXv=Cv¿dÉ’Ù³gó&P$Ž?μ “£ùHÉårf¡\.øð!oÇz÷î½{÷î;wè°IîÈü² 2D(º¸¸\¸páĉz+" “EظqãüñÅ_Ð%gÏž}È0bĺ¼¦¦¦¡¡áÿøGllì£Gè&ÿú׿rrr4Î_ÛÜ´ihh˜6mZ|||uuummm^^ž¿¿?ú3.©súôé–––ï¿ÿž^ijÏ>ëàà@ÞÞ¼y“,‹¹t™LvøðáY³f-]º´ªªêñãÇgΜ1Ï‹¼!TùÒÚÛÛÏ™3'&&&>>ž7%2Bcœ““J—p´’Éd¡êêjfaUU)G½Ûƒ¢(µæÁÁÁóæÍ›;wnss3ïê0lìÛ·O­<##ãêÕ«äçÒ²À0YЬ¬¬äääC‡ѹ§x ‚Š¢è°°°ùóç3K:íáÇ*•ÊÏÏÄf//¯ÀÀ@„P``à?üÐÖÖ†ÊÎÎ }ú´¨¨cœ È~áÉ“''NœÈ=[š=Ïu˜„©z®q¹HË FŽ”ÈÄúõë·nݪ{+riMff&}i££ã70Æ . ½ÿ>Ƹ®®nÊ”)QQQìîÑ÷Örô_Ûê0Ëoß¾mkk»ÿ~Žm¥=ÇW—ÓÚ4¦N3Æim„ÐèÑ£ƒ‚‚ÚÛÛÕÊ™bbbØå~~~?f6)..>uê”@ ÈÏÏg_o¦qn·*ÑØØïåå% ###IFnŒqPPÐæÍ›KJJ\]])Šzå•W/^üøñc©TJ.…à;r*‚¾bBA~±á (sX{Eb̘1¥¥¥j•““ãçç'‹î\¹BÊccc]\\¤Ri¿~ýæÎ[[[«±{dß–£ÿ!±X,cؾ};»Z||¼\.7Ò…˜]*0 Sg)Tzyy-Y²D­œ;4fddôîÝûöíÛìIóçÏ÷öö¾xñ"3TðZm(ŠúùçŸ#""ÜÝÝŸ>}Š1^»vmxxø¶mÛæÍ›‡1NLL$™½•J¥ÆÙ2ß>xð!ôûï¿k\–ZÃÎeZ…Pa.¡¢sªªª†jYu?ÆÃÄÁH¡¢¸¸¸¸¸X"‘|ùå—jåì™0˧N:iÒ$v*ìÚÚZWW×ððpƒ„ ‚\ˆLv,NŸ>íààrôèQŒ1¹ã2<<|ÇŽgË|KQ”··÷–-[4.ŬBœ«0æææmÛ¶™º€ “IåK—.MOO×½Õ¶mÛòóó8 V.‹“““333õéREEÅÖ­[é›TNœ8!—ËÝÜÜBþþþ䲺 & „ž}öYWW×ÌÌLÞsÚ!@ðÙgŸ­ZµjïÞ½ÍÍÍã[·n%%%éÓU#PažžžäT'0g0L¦2~üø;v¼ñÆôóWüýý™wBüãÿPk2`À€?þxñâÅÌkˆððpµËŠ´ÍYμ®L$={vüøñ‰D.—'%%eddˆD"„­­­¿¿@@¹HA Lš4I¡P 8P—5>}úþýû¿þúk'''{{ûI“&ÕÕÕ龡€ùÒs?ðÒs;ÃmÀ]îÖ¶p @ùï³ °E]|Mn@íú>[诠'È‚×a0,dâÀ€ TL"º¥€PÑa–u°ÎAnm‹¹µ{8­ 0¸ÊØ ·ö_(•J¥R)È‹²²2RþÖ[oÍš5‹®Æ|`½ z –©›€"Ïò̇z677ß¼y³¢¢¢¹¹¹wïÞ¦ëX¶n²W¡ÑñãÇ£££ÃÃÃõ¼§ŸÐJ"‘ØÙÙ9’¾¹T[f+¦={ö,_¾\­ÏÚZååå8::Êd²ððpò¨Ä™*K["0m ¹:‘kÌRÀH`¦>žÖ1Úú¬VøÚk¯UVVþøã¯¾úªZ…έ2{¹ˆñ<¯†††ØØØaÆaŒ:$‹=ÚÚÚJQÔÝ»wSSSÙ3T*•………ô[ŽVäÑÖô£­¥RiII æ|¦éð‰'Ø“Øýg¿e—S•––& ô°Rf·;Ýœ÷ɲ0Ra¤Ç’'æŠÅb[[Û#Fœ={–LÊÈÈ;v¬£££X,vss›>}:{ž»wï^¶l³„£UnnîØ±c%‰T* »zõ*ÝŽa¢ŸXΜ4hÐ ò|_Äxâ/Ix§öàË—/Ó«)•JûôéãêêÊ›Ý]{²lw 555½zõ"5E"yÚ³QCƸ¨¨ÈÊÊŠ¢¨Áƒó¿J¥òðð UÏÝjøðáj“-Z4cÆ vÔ>ÙaaaõõõØ?@øÏgjÒÏM3c‡ #eÆ{²,y Ý àÁ<>¼qãF²’³fÍRKLf$åååÎÎÎ:f¶ÊÏÏùå—­­ÿ{ºˆ£UMMÍ•+W"##™…J¥277—·KL†µä³D0RæÏÞÞ~Þ¼yׯ_Ǻe}òäÉ¥K—ÆŒCÞr·Z¾|ùúõë#""„B¡ÍüùógΜùé§ŸòöÊ€IX‘–<¯æ©Û†ŠÿûßÓ¦M#¯£££ÿýï«UPþÉ ‹#O!^²dÉìÙ³IBc'''î&Çg^øÏѪ¦¦!$—Ë™…r¹œìárëÝ»÷îÝ»wîÜI’8ò" ¨ æÑó!C†…B— .œ8qÂr/!ƒ‘² ÑÍŽžû&]ÌT}f/—Þ€ÖÖÖÞÞÞëÖ­kmmåÎlE”&t4Ì™‹üÐüñÇÌÂÜÜ\¹\Núð믿Òåׯ_GŒýem‰ÀÔ*h|Ë.gç3=ÇWÛ‘ )Ã2ê¨'Ožx{{¯\¹’;«(-66öàÁƒô[ŽV%%ßæ-ÿ IDAT%ìI¿üò‹P(Ä| ´%aUë?ý–I—<¯ Ìùd´¶¶–––®^½ÚÚÚÚÙÙÙÛÛûàÁƒ­®]»æáá!‹éŽV2™lĈjÇÐÒÓÓI*¹\Î|@uu5yn>Ó¦M›T*Õš5k:±‚L!!!ï½÷¶À[Öa¤,Ù[²··Ÿ3gNLLL||¼D"AUUUq´Âçä䄆†Ò%­ÈùçêêjfaUU)G}"EQj̓ƒƒçÍ›7wîÜææfÞÕaFf :¢_½z•ì§Z=N3UŸÙËEZþÜ8pÀÎÎnÏž=MMME•••%&&2+¬_¿~ëÖ­º·"gá233é³pŽŽŽ7nÜÀ/\¸044ôþýû㺺º)S¦DEE±»G?ƒ£ÿÚV‡Y~ûöm[[Ûýû÷so+}è9¾Ê­ #ÕiÆ>­MãÎ*JüòË/ãÇ×½Õˆ#脦ĢE‹Þxã Œ±\.?sæ ]žŸŸß·o_µî±“°jì¿.ä–çÕàà (³ã£GúûûÛÙÙõîÝÛÛÛ;..Ž9u̘1¥¥¥j•““ãçç'‹î\¹BÊccc]\\¤Ri¿~ýæÎK-Që9§ÇÑĺ¶oûöíìjñññr¹Üx×lte¨À0RÕe¡CDׄ ³SUU5tèPýçÓ]#TtŒ‡® "zgA¨°àPq÷îÝ“'Oê?ŸîÊ|BŒóI˜ ƒ¡¶s7y”eñôôôôô4u/?)‹ÐÜܼmÛ6S÷¢›ƒP°lÑ»\, €ìUt˜EßþÚs@&N BÀd ¢[ †-íöW‹¹µ-äÖîQà\Àd ·¶±Anm]B*ô›-Œ`êãicª>³—‹ ¿£è9¾‰[B&NÈ­ ¹µÎ ÇŽsqq©¬¬D‘‡sÈÎΞ5ký–£•ÆÜjyyyÎÎÎì>¨}²/^¼èååõî»ïb½?ÙEÝ¿ÿý÷ß÷óó3Þãõq—„ )ýuÁ“e!¢ë²à™ÈØl)`¤,äÖ6*ôù-Œ”ˆnn Tè 26[ )‹ݬéy«‹™ªÏìå"ÈïhzŽ/dâ$¯Í<'äÖ&¯!·¶™¨ÀßQ]*0ŒTgAnížÑi*L°\ÈïÈÍ¡¢s`¤8@nížÑi*L°\ÈØÌÍ|BŒÈ­m ·¶ƒüŽ–FÊ"@ní.¡`Ù ¢w¸XØ«è0ó¿Y ÈÄ €AA¨˜ DtK¡¢Ã°¥Ýþjq ·¶E€ÜÚ= œ«˜ äÖ66È­  ‹@¨ÀB…^ c³¥€‘ÀL}<­cLÕgöräw4=Ç2qbKÈÄ ¹µ!·¶Ñ™g¨ÀßÑ@Œ*0Œ”!@nížÑi*ôZ®ÚG26D„ )ýAnížÑip®Â0 ¿£¥€‘² [Û|@¨Ðäw´0R"º¹P¡/ÈØl)`¤,Dt³¦ça¬.fª>³—‹ ¿£è9¾‰“¼6óLœ[›¼†ÜÚFdþ¡C~G=te¨À0R¹µ{BD§A¨0Ár!¿#7c„ŠÎ‘â¹µ{BD§A¨0Ár!c37ó 0R ·¶E€ÜÚ ò;Z )‹¹µ»„ €eƒˆÞàbY<`¯¢ÃÌÿf€ '¡`2Ñ-„ŠÖvû«ÅÜÚrk÷(p®`2[ÛØ ·6€.¡§-ï1™:zôèQ£F1ëgee5ÊÉÉI,0`ãÆ¤œN¹Œ1ŽŽŽ^¸p¡Ú‚46œ0aBbb"©ÐÜÜlkkKϰµµU*•Ö×ד9sôS[‚hŽ,ЖF Ã0õñ´Ž1UŸµ-±\ó믿’oìõë×II}}½]FFEQEݺu+??_­ùçŸ>nܸ––欴5Œ'uÈÙEúÉš………cÇŽewLí-G:Iµšìl_F¥çør<ÉFÊ€ þ`mªÉÔ^xaäÈ‘Ì9dffŽ9R&“988(Š„„RNoŠ¢¦OŸ¾`ÁµEkl8~üøÍ›7“ MMM"‘ˆžáÓ§OëêêÈœ9ú©-•·å B…–ËþZ¹redd¤§§çÊ•+IÉíÛ·BUUUÚšgff*ŠÊÊJµ©Ú888ô±±±666㸸¸µkײ;Æ|ËN²ç„ ©N3Þ3  ¢$L5_E¥¦¦FEE½þúëß~û-I¢P(ưk×.µœ*¡’’’¹sç9rÄÙÙYm’¶†/¾øâÓ§O‹ŠŠ0ÆÙÙÙ €dæ:yòäĉ¹;©cÊî FÊR¤¤¤L:ÕÓÓ355•”<|øP¥Rùùù‘s^^^Ì&YYYÉÉɇ²±±a–kkøÃ?´µµ!„²³³Ïœ9ÓÔÔ„:yòä+¯¼ÂÝCŒñªU«”J¥µµµ@ ðôô$žíVô]]ÉT}Ö¶\ô׿ §N‰DõõõçÏŸGòÆÆÆøøx///¡PYVVF7=ztPPP{{»Æåjk´yóæ’’WWWŠ¢^yå•Å‹?~üX*•’ÿ°HûŸ r€›ÎY¯qMMõ!Ñsqºÿ]…‘ÒG—íU´··»»»ûí·K—.õð𠟢¨qãÆùøø$''«íÉ!„ÒÒÒ\\\.]ºÄž¹¶†*•ÊÖÖöÂ… EyyyýôÓO"‘(33cìïïÿã?²;Æ|[YY‰"Y.x×ö*B¥¤¤Lž<¹oß¾/¼ð‚B¡ ÿõéÓ'..®¬¬ìüùóíííÁÁÁ­­­dRRRRyyù²eË4ÎP[à  üüüììì°°0@š““sêÔ)f2zmx“P²?ÙÝŒ”E(((¨ªª")†ÊËËÏœ9ƒÙÙÙ³fÍÚ¸qcÿþý•Jå­[·è&ëׯ}úþýû¿þúk'''{{ûI“&‘Ë{)‹žžnooÏŒèuuuYYY[·n½{÷.)?qâ„\.wss£’‚¥K—¦§§3gÈÑÐßß¿¥¥¥°°p„ ¡gŸ}ÖÕÕ533“÷œ6BH |öÙg«V­Ú»woss3ÆøÖ­[III†Þ¦¦gÀéb¦ê³%n+K¤çv6`&NÀ¡kö*&Ož¼aÃæT¥RùꫯVUUEEE 0ÀÁÁA&“3æìÙ³ìæ{öì±³³£'aŒ9bŒékd1ÆsæÌQ(E±çÌ~‹µ§òF–¿WO–˜̸²+++KmêÑ£GÉ‹ƒò6çwÞyçæT¹\®­!B(??Ÿùv÷îÝÚæÌ~‹R*•/kV«éëëËnkæà*ð€P€œ«è0xr§E€Lœ„ €É@D·*:Ìâ.]°8[Û"@níÎULn16È­  ‹@¨ÀB*ô"HæŒqttôÂ… ér‰DâÄPTTD—Ëd2{{{77·;w2g5{ölúí7è³»s#K×(++kÔ¨QNNNb±xÀ€7nDM˜0!11‘Thnn¶µµ%å¡ÖÖV©TZ__OfëããC–Å\zMM BèøñãR©T"‘¸»»GGG«m ö*˜½‰ÄÎÎnäÈ‘ô“þ´­Óž={–/_Î,áh•——àèè(“ÉÂÃÃÉJçöÑ6úÚF¡0 ÀÔ§^:ÆT}f/iÉâ‹XÏS+§(*--M(ÖÔÔ0g~âÄ ò–ù@1Þ¹±Yta=ÇWãóј}khhˆ6læ\&¥RYXXH¿åh•““#•J322ÚÛÛ[ZZ’““¥RiII æÜ>£Ïî?û-»œý38c<.ÙÿéÓ§/X°€.‹Å2†Ë—/ÓåR©´OŸ>®®®Ì 䡘˜ú­ÚÖÖ67m_(ŒqffæÈ‘#e2™ƒƒƒB¡HHHÀ?~óæÍ¤BSS“H$"åã§OŸ:::’g4ˆ,‹¹ô‡bŒ322ÆŽëèè(‹ÝÜܦOŸ®¶5Ø« çvîz-—Œeff¦B¡¨¬¬T+×8ºœ<(Ÿ~2B(,,ÌÃä4Ð3Tܾ}!¤–Hc\PPààà@²oÆÆÆÚØØ466bŒãââÖ®]Ëž-úëCùÌüBrôÇlCƸ¨¨ÈÊÊŠ{uh*•ÊÃÃNYÊÝjøðáj“-Z4cÆ vÔ†XÛèkì'>`gÔPÿ½Ø5M*à”¾JJJæÎ{äÈggg›`Œ}ú´¨¨cœ  B'Ožœ8q"÷l«««KJJ4>;Ó²”——;;;ë¸:ùùùÌ̦­jjj®\¹É,T*•¹¹¹¼]2àèkû€YЬ¬¬äääC‡ÑÙDx ‚Š¢è°°°ùóç3K:íáÇ*•ÊÏÏd<õòò DþðÃmmm¡ìììÀÀÀ3gÎ455!„Nž<É›èc¼jÕª„„¥Rimm-<==gΜ©‡ B…¾´eñe¦Òe†2dˆP(tqq¹pá‰'˜Gó{÷î½{÷î;w’ßn]æ¦ $Ö†ä®Y²dÉìÙ³yW‡8~ü8ón>ŽVä\Ž\.gÊåò‡òvŒcô5êÄÌ"À/ó¡B_IIIåååË–-S+gî9îÛ·O­<##ãêÕ«äG‡)88xÞ¼ysçÎmnnÖenúôéWVVvþüùöööàààÖÖV„PPPP~~~vvvXX˜@  ÍÉÉ9uêó³6‰!TUU¥­{Ù|ßV{{û9sæÄÄÄÄÇÇó®Bcœ““J—p´"G¢™?%¤&)G½ÕŸ¢(µæÚF_£Î}ÀÌü÷ÒÖOÓþ÷‚P¡/¹\ž™™¹wïÞíÛ·ëÞ*"""$$ä½÷Þcþv›6mR©TkÖ¬1H÷ÁóÏ?àÀ{÷î•——£?w™?†š4iÒ7öîÝËû!äìììíí͑Ɯ‘ßÐÖÖÖÒÒÒÕ«W[[[ë²:×®]óðð‹Åt G+™L6bĈ´´4fazzzHHBH.—?zôˆ.¯®®VË 7ú03ÿ½´õÓ,þ{éyÆ£‹™ªÏìå¢?Ç2//O$¥¥¥©•³ç@—ß¾}ÛÖÖvÿþýìIô£utŸ›š{÷îmÙ²åÎ;ä,Ü¡C‡ärù“'O0Æ*•J$ÙØØ3¨E¹ºº"„JKK5ÎVííìììöìÙÓÔÔDQTYYYbb¢Æšæ|Z›Æ±:Äúõë·nݪ{+rTff&}”££ã70Æ . ½ÿ>Ƹ®®nÊ”)QQQìÆþwâfpÆ;­]\\,‘H¾üòKµröL˜åS§N4i;¹imm­««kxx¸>_(5ä’²²2ŒñéÓ§BBBŽ=Š1&×F‡‡‡ïرCãl™o)ŠòööÞ²e‹Æ¥ä W@™W¨ÀÍâ‹XWãmß¾³Æ>>>^.—“k6Ô&‘S[ôR´ÍYþÏþ“nnÑ „»2T`í«CŒ3†¢:¶ÊÉÉñóó‹ÅŽŽŽaaaW®\!å±±±...R©´_¿~sçέ­­ÕØ=æèk¬Ð‰˜Áõ (øïÅ® ¡¢ÃÌ'Tc0F¨èœªªª¡C‡ê?Ÿnɨ¡Ã/úƒPѽ™O¨¸{÷îÉ“'õŸO·dŒP ÎPÛòU •§§§§§§©{€éu“P!ðŸÿFé×€¾ÊÇÇgÓ¦M¡·Þz‹¢¨ÔÔTºòÔ©S%Irr2ï%öÐu“P¡Úe‹ÍÍÍ7oÞ¬¨¨hnnîÝ»7)LOOG}öÙg‹/þöÛoyçiq÷4õL‰êæ¡BÍñãÇ£££ÉS›^ýuæ¤9sæ<÷Üs¦ê=DtKÑ}nÁ£ïiÔXHŽ8ýç?ÿ™1cÆìÙ³ÿýï«5—Ëåä¼ p¦ p2ÈçΗ›¡2q‹Ð}ö*0ã\»!ôèÑ£cÇŽ>|!$‰êê꘷àVVVº¹¹uUg!tìØ1æóµ€ÁM™2…¾­DÝg¯‚×áÇ7nÜHþÍš5Kí4ÆÞ½{g̘aª¾€9ë>{Ñl …µµµÿú׿ÈÛèèèÄÄĘ˜R§¥¥E¡PlݺÕd3ÖMBó@fÜÃ¥­~HHy‚GD: szb¨ É 2+’õÞÉÉI"‘ØÙÙ9òܹsdÒñãǤR©D"qwwŽŽf7ß³gÏòåË™%­òòòe2Yxx8y€%éÃ7èj7nÜ Oì«=‹ŸžäãããäääääD÷ßÉÉ©¦¦†ù–(**¢WS&“ÙÛÛ»¹¹íܹÓ¯KÁH`¦ºÞ®sôìó?ü€ :}ú´žËEŒçy544ÄÆÆ6 sæËeR*•………ô[ŽVäÑÖô£­¥RiII æ|¦é°ÆôÂìþ³ß²ËÙŒAÏñå}Œ”Aéqä}b±ØÖÖvĈôSù222ÆŽëèè(‹ÝÜܦOŸÎžçîÝ»—-[Æ,áh•››;vìX‰D"•Jî^½J÷c˜bbbØ“ Dž0ˆ$©ÕžKxùòez5¥RiŸ>}\]]y³»ë¨o¨ :0¸CƸ¨¨ÈÊÊŠ¢¨Áƒó¿J¥òððhmm%o¹[ >\mÒ¢E‹f̘ÁîƒÚ';,,ÌÃÃ<Yÿ üç“úï޽˽vú0v¨À0R†`ì'ËBD7ú† ggg‘HÔ¡€Á*Ž;æââRYY‰"l8ü‹ô[ŽVäïÉüÁ,ÌËËsvvf÷Aí“}ñâE//¯wß}ëýɦ(êþýûï¿ÿ¾ŸŸý€ecè‚P#¥?c‡ Ý *zâ¹ ÂÇǧªªjݺuR©4???88888¸Óç0ZZZ —,Y2{ölÞ|¹ÄñãÇ™7q´ª©©AÉårf¡\.'?LÜ8Ò kÔ‰ Æ–FÊ‚”——;;;WWW—””оk“ŸŸÏÌQÊѪ¦¦æÊ•+ô³D ¥R™››ËÛ¥uëÖY[[ôÑG:¯„Vã¬X±ÂÏÏÏÃÃCÿUÏ !‡Õ«Wß¹sGŸ€A¾±ööösæÌ‰‰‰‰çÍ—‹Âçä䄆†Ò%­È1ÐêêjfaUU)G½ä—¢(µæÚÒ kÔ¹ ÆFÊ‚@D77=:Tz òÍlmm---]½zµµµµ³³³··÷Áƒ9Z]»vÍÃÃùdŽV2™lĈj·—§§§“[Cärù£Gèòêêê¾}ûªÍaÓ¦M*•jÍš5º¬‡ˆˆˆ÷Þ{ù“g)`¤,Dt³¦ça¬.¦gŸÉ¹Š€€ö¤ºº:0È"ÔÎa°—‹´‹äÈ—K¬_¿~ëÖ­º·"gá233é³pŽŽŽ7nÜÀ/\¸044”:¯««›2eJTT»{jé…5ö_Ûê0ËÕ2ƒžãÛ¡ÜÚ0RÖç*Š¢¼½½·lÙÂ1·_~ù…™²”·Õˆ#vìØÁ,Y´hÑo¼1–ËågΜ¡Ëóóóûöí«Ö½ÚÚZWW×ððpý‡iêÔ©“&M2ÛSJ4h º‡ ¬=_.1fÌ:K»Ž­rrrüüüÄb±££cXXØ•+WHycccll¬‹‹‹T*íׯßܹskkk5v™^XcÔñ ÆÆÐ•¡ÃHuV—… ]*ôÅ*vÀ0Ô¶ªªª:t¨þó鮌*:FŠCW† ½³ ·¶knnÞ¶m›©{øÁHu1¬ý R©ÔvTuuu}}½··w‡ZMœ8qâĉìò>}úlß¾}ûöí¼ÝKMM¥S/k¬ muÔÊãâââââ4Ö4*8>Oº8sæÌ¸qã8*Ô××ñÅ[·n%'!ƒ‚‚>ùä“   C]¥àéééééiY£‚‘²Ñ»€E† ãÑ$˜uÌÿ²6€ gO½ @¨ø/]‚À° ¢[ zþ¼ ²ß™8ÍP™8EèÑ¡ö$0-ˆèÆf¨ˆÞsCÅÍ›7[ZZ àÔsC¹ã‚ð깡‚è¨'† —Ó§OCõÄP1pàÀšº`1à!äx@¨ÀB*ð€P€„ < Tè%11±¦¦Fã `>`˜Ð„ ½,[¶¬ººZã `>`˜,DtsÖoÁ3 ÌH­ö˜&‹°lÙ²ˆˆ™LÆ~aê®óÝœA¨è0H˜j ½¡`2Ñ-„Š€Ýa‹‘‘aê.`^ô?òßöð#@¸Xx@¨ÀB*ð€P€„ < Tà¡ùnmŠ¢¶nÝš™™éààP__ñÁ…B@Iê̘1#**Š]²{÷îo¾ùÆÑѱ¡¡!,,léÒ¥Ì:B¡¢(„Pzz:)LLLôöö¦ÝÒÒ²råÊ+W®ôîÝ»¦¦æƒ>˜6mš¶ÎÐwÒ¯Á7ß|óæ›o’×¥¥¥K—.e/ŽÙ%ŸM›6‘’ööö{÷îEEE}üñdžÝÐ`¹4ß­˜˜XTT´oß>kkë¶¶¶˜˜˜çŸ~É’%Ì_çÿ¶g•ôéÓç÷ß—H$¡––‘HÄ®£±!±|ùr•JõÅ_ *•jÇŽ¼a†Š¡C‡^¼xQm¹j‹ãX‘ÚÚÚþýû?yòDÇ-=þ+…BQVVF¿---õòò"¿¤j5Ù%Æ ûðÃïÝ»ÇQG[!Æø™gžùí·ß:Úú5BhÕªU[·nÕVAÛÒIÉ“'OöîÝ;bÄ}€žIs¨°²²jmm¥ß>}ú´W¯^ø¯Ã4–TTTÌ›7O&“]¼xQ­NJJ ½`R[4wg˜«A¿¨­­õõõ­««ãj]¢ß8°¢¢B—m=„æÓÚîîî¿ýöýöîÝ»nnnjAÅÞÞ^c‰««ë®]»þøã¨¨(ú|]gÖ¬Yš÷kþ$—ËËËËué }Ú£½½Y_,ÏŸ?óæÍÜ bw cL¢sq4‡Š÷ßÿ“O>!?Ámmmk×®ÕqŽ!›¨¨¨ææf[Ñ‰Ž£££?ýôS²hŠ¢ªªª´ufðàÁ×®]C]¿~ÝÓÓ“9·wß}÷È‘#:.šÉÞÞþ«¯¾š3gœ«šæÓÚE%%%eee988444„‡‡øá‡jý·=«$44!dkk[WW·hÑ¢×^{Mí (ò#®ÖP¡Pܽ{!¤R©–.]zîÜ9™LF®†zå•W4v¦  `ÅŠr¹üÑ£GkÖ¬™8q"s¶)))o½õÖ~Z[­KÌ o¿ýv¿~ýôÙ²Ðm˜K¾Š¸¸¸uëÖ™¶42—[𢢢LÝš™Ë^³e.{Ì„ < Tà¡x@¨ÀB*ð€P€„ < Tà¡x@¨ÀB@ƒæææåË—»»» …Âþýû'%%i¬–šššššzìØ±.îèb¯t7Ë–-»ÿ>B(55ÕÔ}±TãÉ“'çääÐ%111ûöíc×íM8Ø IDAT¡Áƒ߸q£Ëººžµ©;ÐäÓ º†IþF899ÕÔÔt¨Iuuµ““B(##£¤¤™4T\]]ýôéÓ˜˜˜^xaàÀ_‘ëׯ“C† a–ûùù!„ÈžÈÔ«c,±Ï–Èܶ³Ž» ¦Ú«hooŸøàƒçž{ÎÎÎÎÊÊÊÕÕuÚ´iyyy:.%??¿¼¼!4mÚ4///îʃ úûßÿŽºsçŽÆó.¼ècggG^øúú ²pùòå±cÇöêÕkíÚµÌV×®][°`Á Aƒllllll|||,XÀüÌ#„ …@  ¯Â"ó$9ú­¯¯/oõÜž´»wï._¾|äÈ‘öööB¡°oß¾¾¾¾J¥Rã8겂„.›ËP«Ð­˜ú8XǰûŒ*..Æ755íܹӯÆ&77—L:tèX,>zôhkk+EQwïÞMMM%“rrr¤RiFFF{{{KKKrr²T*-))ážD/ëóÏ?7n\KK‹ZèlJ¥²°°P—™k\;Z}}½]FFEQEݺu+??_[eîYq0·ÏFGÏUPõ¿ÿû¿ìOû÷߯Ödûöí½zõ"SE"ólóâÅ‹y×cŒ?úè#R_Ç«’öïßOêüñÇXdzgÏ’j¯¿þºZÃÛ·oÓgø?ùä2•¢¨„„¡PÃ_C¡P˜@¯£ÆSÖd*yË{”þۓرc‡¶kÉbcc™5u_A]6—W¡Û@º|.Í »Ï诿€~øapp0Ƙ¢¨ÁƒõÕWç3|øpµI‹-š1c÷$²¬ÌÌL…BQYYÉîÒòs¬R©<<}UÕýû÷ïß¿_SSC¦’BîPaí‰1¦ïø³²²š;wnff毿þúË/¿¤§§“eVÖ}uÙ\†Z…î¤{†Šüü|{{{Œqee%ù¸³gBòþñÇ̼¼ðÜsÏ‘ ¶¶¶§Nb7œ?¾Ú²vìØA&mÞ¼™Ýú,óz§C…¡¶çW_}EjªhÒHŸdo.C­B7ÓMNk«©®®&ÁŸü1©ªªb×!÷WWW3 «ªªd2Ç$ò:))©¼¼|Ù²eÚ:Àü9&ûÑ㜜œÐÐPÞ™3Ûúûûk+ìÓ§O\\\YYÙùóçÛÛÛƒƒƒ[[[µ-½g:pà€­­-³„> L+(( /XÁBŸü§oIÓ†^J¥Ò¥oÍÍÍÚºD¸3xxx 4(88xÅŠä$íßþö·ÂÂBúÓ¦M›ÔJNŸ>M^„††²ëÓ…t5}j{Ò™9s&ïBõYAöæ2Ô*t3|·6‡ŒŒŒ„³³³··÷Áƒ?üðCµ:2™lĈiiiï¾û.]˜žžÂ1‰¼–Ëå™™™cÆŒ0`Àû￯K—®]»æááAN qϼCÁóÏ?àÀ{{ûòòrcܸk¹ …Z û.ß~û¼xóÍ79fÅû@ªgžyæòåË¡ŠŠ ]ÎQQQA7ä­Œ²²²rtt0`ÀèÑ£###CBB4žÂEšîZ'g¶B?tá­[·té 7CmOº3C‡å]¨>+ÈÞ\†Z…n¦»… •JõÍ7ߤ¤¤KDÁgŸ}ööÛo‹Åâèèh;;»Û·o§¥¥‘ c6nÜøÆoxzzNš4©­­mß¾}©©©äž&ŽI„¯¯ïáÇÃÂÂÜÝÝ###y;–‘‘1eÊòšwæ¼***¾ûî»W_}•\¯râÄ ¹\®ñž/ÀíéÓ§ä…··7Çͼ×6,33!téÒ%]BÅÅ‹é†+`Ã=·†{†.ljjÒY†ÚžtŸíííyjØ4Ô*tO]q¬ËpØ}F‰Åb©TêèèyýúuæÔ£GúûûÛÙÙõîÝÛÛÛ;..Žž”““ãçç'‹î\¹Â; 1ŽðìÙ³ÇÎÎîìÙ³ø¯ç*Äb±ŒaûöícÆŒ)--íÐÌ™k§VXUU5`À™L6fÌÒmKç˜U‡¶³iéÿ`ö$úš–~øAŸ¾:uŠÌgúôéºÔ'Þ „˜ç¸;Ï£áóÏ?O&ÑçÀ™êêêÈÔÑ£GóÎrœ«0Ôö=z4™ó\´6\A®B7ÓMB…™«ªª:t¨©{Ñaæ¶*V¬XAJ4žÕ][[Ùó¶¶fþ'ÐèæÍ›änmOO϶¶6;Ï£aTT™ôË/¿°§þüóÏdjtt4ïÜxC…¡¶çŒ3È|è¤8p ¸ ÝL÷<­mnš››·mÛfê^ ”J%y±gÏúº€N°²²Z³f B¨­­-&&æÉ“'Új>yò$&&†Ün½fÍ3ŒŠ>û}òäIöÔ¬¬,ò‚¾%[†Úž'N$/¾þúkÞʆ]AC­B÷dêˆÕ1–ØgKdnÛÙ{EÑ?4o¿ý¶¶4ºhoo§oÄ ®¨¨`×)//§ Ö¹'ËjÄѾíà™gž¡³zäÒ»¾}û>zôˆwn¤c¯ÂPÛ³±±±_¿~d>o¡}òä‰1VЀ«ÐÍ@¨Z™Ûv6F¨Àß¹s‡þUúÛßþöÕW_]ºté·ß~+--=uêÔ–-["""¾ûî;]zXWW7vìX2+;;»˜˜˜ýë_yyyyyy{÷î9s&}š400Píö®­cGÒ73ûøø8pàöíÛ·nÝúæ›oèÇx¨ÝüÜéP ·=9‚þ’œœœžž¾iӦɓ'“Ç1| » Ý „  •¹mg#… ŒñÍ›7GŒ´KIIѱ“Ož>>½zõ2™ì¥—^Z²dIaa¡1VЫÐ=èíe¤c€t+]ɲ>c°à[ðà'ÌØ $¸Xx@¨À£›„ È­ ¹µFgÚ˰:ŠÝg¹µ{@nm€©t·PA@nmëË;•]Ùâ>cè& ÔDFF^¸p!T]]]RRB?ÿ‹©¦¦æÊ•+j©&”Jenn.Ç$òº¤¤dîܹGŽqvvÖ½Wùùù/¿ür]]÷Ìu¡P(ưk×.µ„z`pÝ3TÈd2’íäñãÇHK’ÄJ.—3 årùÇ9&‘×ëׯWWW3ïï³·FÒ=ÏU˜È­ °h°W´‚í `¯ôhÍÍÍË—/www …ýû÷OJJâ. g²àÔF Û[¶lÙýû÷B©©©Æ˜?Æøïÿ{NNy[YYyõêUŽr´1ögÕ\˜î¼zg˜zkõ,&èN'šÖQff&™HHȯ¿þúã?}½½ýàÁƒ###=ªK—:ºP]¶žîc¡ãVÕEUUÕ§Ÿ~:zôhöú2kv•ÙsS›É±cÇ^~ùe;;»^½z=ÿüóô¸¨yðàÁÚµk_|ñEÞþ³×¥;„ È­­­2÷¬8˜ü³AêêêžþyµÏ´««ë­[·˜õuÿfv:Tlß¾½W¯^¤\$õíÛ—®¶xñbŠ¢4.ôöíÛb±˜¼æ ׯ_WË|E›9s&]MÇP¡qѺo(ÚŽ;lll4ö*66V—.ut¡¼[¯Cc¡ãVå•‘‘A:ceeåçç÷ÿÚ»ï¸*®ôàçÒDʽ "Ò±d5®Š€ E1¨¨`5êË–5q‰1ŘÝht=YºðrÕK@D$‚ ÖèÆ   F\Q H±àßç›ó›½s§Ü HñóþëræÌ™33—ûL=ODDDÏž=i^á*Ôí* [cõµZí| \µŸ~úIg¹{÷î¥J¥RõèÑcÀ€=zôàÇ ±—™Ü8éÝ%È­-VYùTaå†ýn°ÿ„É“'BèvÛ¸q£§§'-àÿ"(ÿÏ,***,,ôòò¢…………………%%%båt®;vÐòÀÀÀsçνxñ‚㸼¼¼ÈÈHZ¾mÛ6½ =z4!dܸqË—/?pà€ôZGDDй¦M›vöìÙ»wïæååeff®]»–?HpYY™°«………JmèOKejj:cÆŒäääk×®ýú믉‰‰‹/Þ²e‹’.ºPéU0t_(ܪҎ?Nëêѣǭ[·X¹V«õññÑû»T‡«,lÕ_¾|9!ÄÅŅ°0ZÎo?--ÍÄĄҽ{÷ëׯóûïëë+ìp]š[¨ÈÌÌ´±±á8ŽÞ^c_V>š ôÞ½{üÂôôôÖ­[KL¢ËJHHpvv>þ¼Þ>‘ŸcšâT¶q%¡B«Õöë×ÏÇÇ'&&F'`ˆ-]ÉTaå†ýn°ÿBÈøñãÙ \AA;æâ_l4ú?SIå²²2úYVVÆŸTYYI³.º¹¹Ñß,vT*ULLŒÂµ¶¶¶&„´iӆߔÙUлhƒ6Tii)=j655MMM5ºKFïá*±/ ÚªzÕÔÔЇ§ÍÍÍoß¾­dêp•õ¶Æê›˜˜ <¸¼¼œ–—””Ð`ggÇï¿···Xÿ铸ÿïÍó¶6rk7³ÜÚaaaÿþ÷¿ÙöíÛOŸ>~Þ·oßËéÃÞ½{é×iæÌ™:y­­­‡N¹sçί¿þ*œwæÌ™³fÍR¸ úØUEEÅï¿ÿ^ÛN¸h½âããiOÞ~ûí7Þx£ö]2”pŒØµßª™™™ÙÙÙ„èèèú~¹Áнæëë»ÿ~v N­V»¸¸BÊÊÊXŒŒŒ¼¼{#·oß¾_ýõ¢E‹è“!S§NÕû2­¡WonݺÅþÙºuë¶yóæóçÏÿöÛo7nÜ8zôèÚµk‡ºgÏÙv¤™˜˜DDDlܸñìÙ³7oÞܿ׮]iS›6mâWž3g-ÿä“O ثҋ6tCíß¿Ÿý†‡‡ÇÄĤ¤¤$&&®\¹rðàÁtdÙ.ÕÕÞ¡ ÝmU1cÆŒ¡õƒ‚‚rrrŠŠŠV¯^mnnîââB¯ÒémÝ®2dt¨à8Ž^د_¿qãÆ©ÕjBÈèÑ£i€733[wbÄW¹Á5Å>7E ¾Ù×ÝÁÁ! `Ô¨Q‘‘‘ôHÍÔÔôÿø‡Î8?iiiÂg'L˜ðìÙ³ÚßÖ¦®_¿Þ£G"nçÎJÚ‘ ÑøäÉ“kjjø•¯]»Æš‰ Ç$½hC7ÇqqqqbÏ*éR]íÆ }aÐVS\\ܹsgÙíììΞ=«··u»ÊtRmB…V«?¾NÊÊÊúôéC±µµ[w"½3'‰½u®w4`ÊÊʪk×®ï¾ûîµk×ôÎràÀ^½z™››[YY~÷Ýw4œÔU¨à8®¦¦æ‡~9r¤««+½ò`gg×½{÷I“&ÅÄÄ+lGLzzú‚ 5J¥255mß¾ý¨Q£:¤©cÇŽZZZZXX,[¶LᢠÚPT~~þܹs}||Z´h¡R©4Mß¾}ßÿý¬¬,%]2t¡J¶žò}aèVSZZº`ÁWWW•J¥V«ÇŸ——'ÑÛ:\e:©6¡‚mŠI“&õíÛwÈ!7n¤ãåРëáá!¶â*Öœq¿# ¢ñ'œiNšÖw ÅqœF£)-- :~ü¸Þ:Mø<ü„Õ7„d€WÁ©S§è †={ö«ƒ‡eš¿Gé=¼~üøñ_ÿúWúyäÈ‘b³7á³ PháÂ…'NœˆŒŒ ìÔ©S«V­ÊÊÊNž<¹zõj:ÌWTT”ÄHˆ¯„ÜÜÜÜÜܵk× ' 6l×®]ל›Ï(•JEß‘á8nܸqo¿ý6+···wä¹xñ"+×h4666íÛ·ß²e ¿)~š‡œœ¶%Zcoè:t¨gÏžŽŽŽvvvžžž_}õ!dÀ€«W¯¦ªªª,--i9!äùóçjµº¼¼œ6ëããC—Å_:5óàÁƒAAAjµÚÞÞÞÕÕ•½p Óþ*À+èÃ?üòË/ìîîNŸ{¶°°ðööž8qbjjjbb¢¢á Åjœôö™È¥¼«¯ÕjLLLX^LÚþáÇéŸtða…­ ‰åÁ^²d ¿èàÁƒ„þýûÓ?³²²è³ê:Íêü)‘6\§&”kŠß ¨Í笂:tèPLLÌÞ½{ÅRÆ ©Tªððp­VËeÈ!³fÍR:.Ф‡VWWûùùÑ´t:t !„„„„?~œÆ’’’râĉÊÊJBÈ‘#GXê1Ç-Z´hÅŠÑÑÑfff*•ÊÝݽ¡’Ï@óÖ¬BEnnîŒ3öïßߺuk…³pwÿþý?þØÏÏÏÍÍ•/]ºÔÌÌì£>ª}¯<<<úõë´uëV~ò»>}ú<{öìâŋǥ¤¤¬X±B¥RÑô^GŽ‘ÍLY\\œ››ËÆM¨?Í*Tˆ¥¼Ë5Ý¥KggçsçÎ>|˜5ßÚÚú_ÿú×–-[XjFÙÖĈåÁ¶´´ô÷÷ÏÌ̼qãÆÓ§Oýüü‚ƒƒúé§ßÿýúõë,I€‰´áÂ~Òö£U IDATôñÆiV¡B,åµX®iZž””tùòe–⊠›9sæŒ3tÒð‘¹Z,vhhhfffJJÊ!CT*UDDDjjêÑ£GƒƒƒùcUê%‘6\ØO–ëÀÍ*T‘òš2tèÐððpšîCgÒÊ•+«««?ÿüó:éž06½]qðàÁ!C†B ”““'{õ‰H¦ ¨[Í*T?R^/X° 11Qù\ëׯÏÌÌŒ×)·³³‹‰‰INN®M—îÞ½»nÝ:6\>?¶¿¿ÿÓ§O³²² @éÚµ«‹‹Krr²ì=mòGÚðE‹ÅÅÅUUUq—ŸŸ¿fÍšÚt@¯æ*!ýû÷ß´iÓøñãþùgZâïïÏbãÆ:³xzz~úé§óæÍ{ôè‘ΤÈÈHÇŠÄZã—ó/LYXXœ9s¦ÿþöööNNNkÖ¬IJJ¢Ï5ÓÛAAA4[¡J¥4h‡‡‡———’5}óÍ7wïÞ½mÛ6GGG›Aƒ•••)ßP 5á‘e›VŸ›"lg šáYÔ-„ PÐüUUU-\¸ÐÕÕÕÄĤmÛ¶xüa÷îÝ»víÚµkíiÛ›õº—1²,@3ÇqÜÈ‘#SSSéŸ<¸|ùrÃv©ÁÍŸ?Ÿ¾“´zõjé݆úðà !»víªÃf±½ù’ör½Ž3Uçê~ýA\Cïm¨-ö´wxxøµk×N:õý÷ß+Ÿ=77wÉ’%tuuµ°°P©T–––íÛ·÷÷÷Ÿ:uêúõëO:õüùsV_˜¡ó¶mÛ¶OŸ>ï½÷^nn.AÊS‘Ójü,ÓÌ“'OÖ­[׫W/šÙ»W¯^ëÖ­{òä‰NµîÝ»ÓF¾ýö[å›B ãª+'¶7k¹—e5ÉŸƒ:üY ½·¡¶fΜIwåÙ³g šñ¿ÿýïèÑ£•|InܸÁæ’:ÌÍÍããã…3ÊvŒV†Š¢¢¢^½z Ô«W¯¢¢"~MöêRzzºAÛDV}‡ ±½iô^V¨ _€â3êR\4W¯^¥  ìÂ… ƒ ¢Wi¬¬¬FLS”––æçç_¼xñĉ·oßkáøñãì3Çq555……….\Ø·o_qqñ³gϦL™Ò»wo…/I«©©1bÄ/¿üBùàƒ¦OŸNÙ¶mÛºuë~ùå—#Fdff²ñrÚ¶mK?8;;×~Ñ/“ØÞ4n/¬>¢PýiŠ}nа›öÛ¡ÕjÎRXXȆg1bÄýû÷Åjæåå­_¿þÁƒ¬DÉauyy9ŠŸ²páBå3R´šÎYËNöÙgŸñË?þøcZà ,X@ iÆé:Tßgb{Óˆ½l<ÐÌiµZúAùiâ{ï½GÏ'Þ|óͽ{÷¶iÓF¬¦——×¼yó”ûOµjÕŠ¥€<}ú´AóêÅqܪU«!ŽŽŽŸ~ú)ÒâÅ‹Õj5!dõêÕÜa†®‘……v³ Û›Fìeƒ TÀÿÈÏϧÃP¶nÝzëÖ­&&õò+Ñ­[7úááǵoí—_~¡cû=ÚÊÊŠ?ÉÚÚzäÈ‘„7nœ?žÒ PmÛ¶ÅUV…šC¨H=MñõõíÙ³'¿¾ÞL×D<;·ôŒH‘]8Ž;yòäÂ… MLL,--;vìøöÛoß¼yÓ ¦ŠŠŠ>ÿüs???µZmjjjaaáææÖ¿ÿ¸¸8Vgþüù4½GJJŠÞF~øáZ!//–tîÜ™–Ð?“’’BBB¬­­ÍÍÍ{÷î ·Û·o/\¸ðÏþ³‰‰I«V­:wî-V_¯+W®Ìž=»cÇŽææææææ>>>³gϾrå ¿Ž‡‡‡J¥ÊÍÍ¥Ò®†††J·üÃ?ÐsæÌ±µµUÞ%ƒ¼xñ‚~Ðùe7NFFýÀ®kñ±UÎÌ̤ °gÏžmÛ¶éÔTò=Q®¢¢â£>rss355m×®Ý_þò—èÔ¡;¥sçÎÂÙu¾]b{SÉ^ÎËË{ï½÷þô§?YYY™ššº¸¸Œ=:==]z¡.\ lÑ¢Åßÿþ÷ÿ›\×¶êXŸ‰ Áõµk×è:_½z•–ˆeºæÄ³sKÏØøSd­Á¿ûÛßÄþ íìì®]»¦°«W¯:99émgâĉ¬ÚÙ³g……|ô±™ÐÐPVÂ.LkµÚ>ø@ØþO?ý¤ÓȦM›Ä²ù¾óÎ;JVG«Õ®X±BïÁ¾‰‰ÉŠ+ØÕjwwwaéö#""hÍ .(é…ëÏœ9C«3Æ 9}÷*&MšD /]º$¬ÏN&Þzë-‰f~O¤±µ(++>Žåââ’ŸŸ/½.¦èŸb{Sv/oذ¡E‹´Ü‚NJÍ›7OçÞ[èÍ›7íììèçÿÿŸ¨p+4b}&‚PñÉ'ŸDEE¹»»òÉ'´„ê<9ÇŸ=99ÙÃÛNzÆcÇŽÙÚÚÒçÊßyçssóŠŠ Žã/^ü÷¿ÿ]Ø1þŸZ­¶S§N›7o[ÓW9TÐ#²… ¦¤¤Ü¸q£  àÈ‘#´c£GVØûí›6mÚÙ³gïÞ½›———™™¹víÚ 6°jZ­¶cÇŽ„–-[Ò=ÈwëÖ-zرsçNVÈþ¯–/_N/^¼eË–°°0ZÎo„ 9ljj:cÆŒäääk×®ýú믉‰‰tF%«CñòòÚµkW~~~~~þÎ;;tè@Ë·nÝJk²ç‹ KJJ¤Û§™ƒ[´hÁ[B9…¿øo½õ–Nok*‚ƒƒiáÇ…õY0~˜Rø=‘ÆÖbòäÉ„×_}óæÍ7nôôô¤åü_gẛbk¡woJïå;vÐòÀÀÀsçνxñ‚㸼¼¼ÈÈHZ¾mÛ6½ ¥ÏI7nùòåhΡâÅ‹®®®ß~ûí‚ ÜÜÜè6Òjµýúõóññ‰‰‰ÑùÝ'„$$$8;;Ÿ?^ظ،ÕÕÕ–––çÎÓjµ:t8}ú´……Err2Çqþþþ§NvŒÿ'=!-,,[ÓW9Tܹs§¦¦F§ðáÇôÉÑÑQa;ÖÖÖ„6mÚÐï€v¢½{÷nI4ÕÍB±ÿ+“Áƒ———Óò’’zÔoggÇ*—––Ò›¨¦¦¦©©© ;¯ãÑ£Gô¨°mÛ¶:4< —àmmmKKK…T¸:B¾«««q=”]Ü‹/hd%„8;;³¨\›PÁî|<{öLXÿÉ“'tê믿.Ѭòï‰þk%ãÇg' ØAú‘#G$ÖEØ”l¡XyYY™ƒƒ!ÄÅÅ¥¬¬Œ?©²²’>(Ì~uÚQ©TügÆšs¨8zô¨……Eyy9½°pìØ1Z^QQ±dÉ’:˜˜˜DEEååå±Ù}}}CCCž(b3†††®Zµ*77×ÅÅE«Õ8pÞ¼y¥¥¥jµš—I„ z+BìðècжªFûÝðöö6¨o-[¶$„´lÙRö€úúõë´å¡C‡òËkjj\]] !ùË_øåìÿÊÏϯººš?‰ÖçwróæÍ´Dá…&½6mÚDYµj•p*»OÆ?A14TÐÊ;v4®‡lq; “h֠µ`)¹¸¸H¬‹tSUè}Lè믿–mŸôj$ÄúLx?¬»wïvvvfû8;;[¥RíÛ·¯  `íÚµ·nÝ¢2íÝ»×ÉɉŽ&ÆfOOO·°°HHHà7.1cuuµ………¹¹9½T­Õj]\\o`"ùT||¼••Ulllee¥V«ÍËË£ï k¾j¡âîÝ»£F¢7“úõëM¯)Ô·¼óÎ;:Gžžž'NœÐ©YXXHo3Ñ’ââbzx(<€0(T°÷iks)\ú¥\vLÍ¿Òbh¨ ׄz§ÍPF¿®üÚk¯)Ù>쿎ô2!äâÅ‹ÂY.]ºD§N™2EºÊ¿'b$Vÿ¿ÿý/ÔºukVHKê)T°g@¼½½_Ç3ñ• ƒ^¾|9jttôˆ#ŠŠŠÆŽëééikk«ÑhΜ9#œ=66ÖÊÊŠMâ8NbFŽãBBBØ3²ÇMŸ>ÝÃÃý3K‡ Žã~üñG+++kkkooïÅ‹ë­ùJ…Šû÷ïÓÃ[ggçÄÄDþým£Œª««<8cÆ z¯beeuåÊjo¼ñzûömŽãÖ®]K±°°aP¨ —¶!ü{ΆbgÂg´8ŽcÉÕ}}}•tR¯/¾ø‚ÖŸ7ož=4zï°3éíÃ^Mà¯#{·Iø<ÇqìMv&Má÷D/‰Õg¯ãðïÕk¨`9?~\Iç%ÚoV¡êVÃnçùóçÓdddèLªý0;ì†ð‘ùÿûßtÒ?þñ­VÛµkWBÈøñã…í*&L˜@KÒÒÒŒîùرci#¿þú«pêþó:uܸqJ:©×µk×h}kkk, bôÞac£ò„Øm˜#F°B¶â³gÏÎò׿þ•NýÏþcP—¤¿'zI¬>ë9{‹ûã¿ÌÇÇG§òãÇÙ½%íë-gã_é} þ7çÛÚФeeeÑuÞxË–-7lØ@?³«Ltt4½²{÷îŸþ™þtŠÝÐVެ_VŽÝ>räˆpê¡C‡èÙW²%téÒeøðᄪªª1cÆ”——ËÎÂ~òjƒmöö‰^ì¡OŸ>¬°gÏžô˜}ûöéÜþüù¾}û!^^^:7È’þžêäÉ“ôCÿþýu&éôY«ÕNŸ>½öCžDGGÓ±±±ìÂ]­( 8DSìsSÔ°Û™%ŸÑ?##ƒ]JÖ{SHï¡11%88X8•¼Ó@åéé©÷ºAglÜ=½/] 3ð±÷*Úµk§³úwïÞÕh4„V­Zñ¯•q˜ÿÛo¿±k/]»v»iñìÙ³DDD\¾|¹6‹£ž Ê^eŠŠŠJHH½Klbb±qãÆ³gÏܼysÿþýô²!„=¨Æ—˜˜Hx–.]ª·eƒBÇqû÷ïgm†‡‡ÇÄĤ¤¤$&&®\¹rðàÁÒÏç0ì7ÑÇÇ'>>þæÍ›ùùù;vì`<è¼õmÜo÷éÓ§ù£®úúú~úé§Û·oß·oß·ß~»bÅŠ1cÆÐ[ !u*8Ž;|ø0{úµ×^[²dIBB±cÇÒÒÒbccGÍDšvúá‡æäääää|öÙgt–€€Ù—ÏøžñÇza…l`·o¾ù†_Ÿ=ßÜ·o߯¿þzÑ¢E„©S§úøø·¤A¡‚ã¸[·n±”nݺmÞ¼ùüùó¿ýöÛ7Ž=ºvíÚ¡C‡îÙ³G¶Òv›bŸ›¢†ÝÎ÷îÝcǘ|ï¾ûîåË—ù# IdS „0“'O¾ÎqÜÓ§OÙï ‰‰IAAÞ– ÇÅÅÅÑ„èˆa²´ZíòåËõibb²|ùr±Q}”4ÎwëÖ-v_TÂÀùç7µ¼“”œœ,1æ9!ÄÎÎnÇŽzç}ðàÞDÙ={öÕ#$±P±ï‰[}‡€€€Q£FEFFÒSSSSz÷‹_?--M¸+'L˜ðìÙ³ÚßÖ¦®_¿.?\ïX5ú7Ž’MÐxH¬3Ô¹ÜÑ………³gÏvvvV©TjµzôèÑìJÈæÍ›ÌÌÌúöí+6, “žž¾`Á‚ÀÀ@F£R©LMMÛ·o?jÔ¨C‡Iäaï²7E¯øvîÛ·ïéÓ§œœîÞ½+= @³‡‡eô8{ö,MäùÖ[o!N Tèñõ×_ÓÓ§OoØž4¸¢^Ùí|ïÞ=ww÷ššš€€€S§N5tw^s8« ©ªííímmmCCCÓÒÒøSÅÒVBÒÓÓƒ‚‚4Mdd$?/±Ø$±üÛ¬œŸ7›ºxñ"­»páBéÆùóÒnõJ¤.]oNï:ÞÍË¿þõ/šW™ 5„4͇eùÒ1õ*++·lÙbnnÎÆØ‘H[ššªV«“’’^¼xñôéÓ˜˜µZ››+=‰-K'ÿ6+'‚¡™èè謬,%묬N¡’ôàbÛMbªÞúMî»õ¡Y… jþüùô­Wé´Õ4ç-¿dîܹ&LžDDòoˆŠêêj77·çÏŸË6.\YBÙôàz×WvªÞúMî»õ¡9\€ÒuîÜ9BHqqqnn.0‹¯¤¤äÒ¥KQQQüÂèèè´´4‰IôsnnîŒ3öïßߺukå½ÊÌÌ .++“n\ ~ýúmݺµ¸¸XùŒÆi†¡B£ÑÐL‡¥¥¥„½×åKJJ!NNNüB''§‡JL¢Ÿ—-[Ö©S§×_]¬]ºtQýaêÔ©´ðàÁƒÃ† “mœ?ï™3gôªTª”””I“&}õÕWmÛ¶ŽŽÎÏÏ—^:@m4ÃPQ\\ìììL$ÓVÓ8uÉ‹ŠŠ4Ä$úY:ÿ6ùß‹“?¥«ªª¶lÙâè蘗—G'I¤­¦O"%''³'‘rrr¤'‘üÛDò¶ö²eËÖ­['»\½ó •¤Ûn¸­ Fh&¡ÂÎÎN­V;88DEE]½z•_Y,m5Çq©©©~~~vvvC† ¹té’ì$"’›*èÙ³aÆ€€þœJç¯N¡tzpáÒ%š2h;À+ ok×»âââ°°0þû}MEÓÚÎPšá½ŠÆ¦ªªjýúõ Ý ãá¬Da;…³ P2̺ÆCÚT€—g £ ŸUàvk}ÃyP8« ¡d4‡P¡7w4Í AñõõíÙ³'¿¾Dbj½y³¥g0`ÀêÕ«i…ªª*KKKÖàóçÏÕjuyy9mY¢Ÿb ÀY—¨œœÜ?€ÓpƒPC¬ÏD0Þµk×èo+CPIbj¼ÙÒ3.Y²$22’Ö9xð !¤ÿþôϬ¬¬ÀÀ@aÇtþ”H®S3;;ûeøÝ€úÐÎ*$ìܹsøðáîîî»ví¢%>¬®®öóó£yâ:tèŸåСC111{÷î577ç—‹ÍrüøñššBHJJJHHȉ'*++ !GŽ8p t9Ž[´hÑŠ+¢££ÍÌÌT*•»»ûĉëp#ÔRsZ­v×®]cÇŽ3fÌ·ß~«Õj‰\bj‰¼Ùb3öéÓçÙ³g/^ä8.%%eÅŠ*•êØ±c„#G޼ñÆÒ”HÐH4çPqìØ±¢¢¢aÆ;öÎ;'Nœ „H'¦–È›-6£¥¥¥¿¿ffæ7ž>}êççüÓO?ýþûïׯ_÷õõ•î¤DpŠŸ+»K—.Æm €ÚhÈP‘ŸŸŸ››[íïܹsðàÁ­ZµêÝ»·‡‡»%‘˜Z:o¶ØŒ¡¡¡™™™)))C† Q©T©©©G 63“yÉQ"8%¼WÐ0ä>ÉñãÇ !¡¡¡Í(ÖgÂûa­¬¬lÕªííí«««uf©¨¨ „Ыtöììl{{ûþóŸÒ}àϘ‘‘akkþã?rG³EFFnÚ´IØ1?µZ­··÷ÚµkÅÖ·µ Á5ü¨ÌḬ̀°°°°°ÌÌÌ:l611ÑÆÆ†=Å”]VVvèС»wï®[·îöíÛ´üðáÃNNNíÛ·g3vîÜyß¾} ,HLLä7(1£¿¿ÿÓ§O³²² @éÚµ«‹‹Krr²ì=mBˆJ¥úòË/-ZWUUÅq\~~þš5kêpSÔRÇŠÖ­[[XXÔyÀعsçܹsÙSL;wŽŠŠÚµk—……Å™3gú÷ïoooïää´fÍš¤¤$ þ¼ýû÷ß´iÓøñãþùgV(1#½]DÏcT*Õ Aƒ<<<¼¼¼”tõÍ7ßܽ{÷¶mÛmll TVVV' N4d¼'NÐgŠ’““¿ùæ›uëÖ=zôˆú·¿ý-44TlFdg{9°€jø³ Bˆ­­ígŸ}vëÖ­¥K—ªÕêzº$Æi¡‚BÀhœQ¨ 0›F*( €Æ£á‡) ¢/Xˆ)//×¹é€ñ2á¶64Ò³ h<Ìð˜‘>,+QAx>A¢ÅCœ/rc%3BQC  Ý/€WQ£ M# S£¸­]^^þå—_zzz.^¼øÑ£Gt¬ÙŒŒ …q‚¦ª¶···µµ MKKãOK[MIOO rppÐh4‘‘‘tDXéIbù·Y9?o6uñâEZ'66váÂ…Òó祫¯·P"=¸pézsz²à•÷r²ýôY:\ íŒÂÉuzNþ©»²²rË–-æææiiit’DÚêÔÔTµZ””ôâÅ‹§OŸÆÄĨÕêÜÜ\éID$ÿ6+'‚üÞLtttVV–’ÆuVV§PIzp±í&1Uoý†ý†@#Ñð¡Â  A‰… jþüùaaaÇiµÚN:mÞ¼Yo#¯¿þºÎ¤¹sçN˜0Az]Vrr²‡‡Çƒ„}û9®®®vss{þü¹lã•Õ)¼yó&!¤¨¨H¸„ ¨ *jŸÚHç033ÓÆÆ†ã¸B …-<|ørïÞ=~azzzëÖ­%&Ñe%$$8;;Ÿ?^§KÒ¡‚&[•m\I¨Ðjµýúõóññ‰‰‰Ñ Pò^…³³sNNŽò{ i4šªª*"™¶º¤¤„âääÄ/trrzøð¡Ä$úY"ÿ6Åφ=uêTZxðàÁaÆÉ6Ο÷Ì™3z ¥Óƒë]:@m4d¨ðòòêÔ©S7[\\ìììL$ÓVk4Z“_XTT¤Ñh$&ÑÏÒù·Éÿ¹oß¾Âq\jjjDD„lãüyýýýÅ %Òƒ —PKâ ¨º•””Niݺµ··÷÷ß/¬£Ñhzôè‘À/LLL —˜D?;99%''ÇÅÅmذAa—®\¹âææfgg'Û¸AT*U¯^½âãã îܹcD м”Ë\uL§çäC骪ª-[¶8::æååÑIñññVVV±±±•••Z­6//oõêÕt})99™=‰äàà““#=‰-+==ÝÂÂ"!óyìêIDAT!A§Dßý€eË–­[·Nv¹zç¬]»öÖ­[ô ¨½{÷:99=yòD¬‰¦ ÚÎðÊj’?ÂPagg§V«¢¢¢®^½Ê¯üã?úûû[YYY[[{{{/^¼˜MJMMõóó³³³spp2dÈ¥K—d'ñmccc­¬¬Îœ9Ãýo¨ ğ nܸaPãüµÓ),**;v¬§§§­­­F£  }[ºDSmgxe©¸&8è^Ó.°¸¸8,,Œÿ~_SÑ´¶3ÔŸfx¯¢±©ªªZ¿~}C÷Àx8«QØÎ@á¬d T€ŒF4¹¡£ àåÀYÈhÂg¸ÝZßpÞÎ*@BÈ@¨ ¡d T€ „ P2*@BÈ@¨ ¡d T€ „ P2*@F΂‡m/Î*@F>«@níú†ó6 pV2*@BÈ@¨ ¡d T€ „ P2*@BÈ@¨ ¡d T€ „ P2šp<ähx9pV2šðYrk×7œ·…³ P2*@BÈ@¨ ¡d T€ „ P2*@BÈ@¨ ¡d T€ „ Ñ„³à!GÀ˳ Ñ„Ï*[»¾á¼ (œU€ „ P2*@BÈ@¨ ¡d T€ „ P2*@BÈ@¨ ¡d T€Œ&œ9Ú^œU€Œ&|VÜÚõ çm@á¬d T€ „ P2*@BÈ@¨ ¡d T€ „ P2*@BÈ@¨ ¡d4á,xÈÑðrà¬d¨¡¤á¬d T€ „ P2*@BÈ@¨¯P¨P©TöööŽ</^œ={ö¸qãøÕRSSƒƒƒÅêÓò©S§²ú999ô½qZ?cII‰NÔjµ­­m÷îÝ8ÀÊsrr„ ûª°ß[{{{FcccÓ¾}û-[¶Ôý–€f{eB²³³u Ož|˜þ™­³%f¤åÏŸ?_µj•“““Þúüõ6¥¼_®ÕjLLLJJJ„Õ$¼Bgz¸¹¹ÅÇÇÓ?+++“““G-=×!CfÍšõøñcãjffRUUeÜìÆQ©TáááZ­ÖènÀ+ëU*•ê­·ÞÚ¾};ý3!!!$$D­VKϵtéR33³>úȈ%¾xñ"77÷³Ï>›7ož³‡ã¸û÷ïüñÇ~~~nnn/m¹ÐL4ôiÍË£³âS¦L¡å·oßV©TW¯^å8nРA{öì‘®OÉÎÎ>zô¨J¥ÊÌÌ4è3räȧOŸê­¯sŠïôéÓ ù½eüüüJKKë`SÀ+æÕ:«àÿ"³3 ww÷ÐÐÐíÛ·?xðàìÙ³C‡•®O………Íœ9sÆŒ]GÊÎÎ~öìÙÕ«W !Ççþø)çx¿éZ­V¬Ïþþþ ù½¥åIII—/_.--UÞ[êÕ b¦L™²sçÎ]»vEGG[ZZ*œkåÊ•ÕÕÕŸþ¹AËjÑ¢E×®]ãââRSS !NNN=bŠ‹‹[µjeP›J :4<<|Μ9Æ!TBȨQ£?~üÅ_Lš4Iù\vvv111ÉÉɆ.N«Õ?~¼E‹¶¶¶téK—.½ÿ>!¤¼¼|Íš5ƒ6´M%Ö¯_Ÿ™™Éîá(ôj… þ›7n¤å666£G¶µµ¥oTÈÖg"##'NœhPÔjµµµõ¬Y³6mÚdooOY½zµ··wÏž=5O›6m¶nÝZ‡kÇxzz~úé§óæÍãŸÄÈBj#ñjU€*@BÈ@¨ ¡dü?Äùß"3¾±IEND®B`‚oprofile-0.9.9/doc/opannotate.1.in0000664000076400007640000001031512175510134013706 00000000000000.TH OPANNOTATE 1 "@DATE@" "oprofile @VERSION@" .UC 4 .SH NAME opannotate \- produce source or assembly annotated with profile data .SH SYNOPSIS .br .B opannotate [ .I options ] [profile specification] .SH DESCRIPTION .B opannotate outputs annotated source and/or assembly from profile data of an OProfile session. See oprofile(1) for how to write profile specifications. .SH OPTIONS .TP .BI "--assembly / -a" Output annotated assembly. The binary file to be annotated does not need full debugging information to use this option, but symbol information .I is required. Without symbol information, .B opannotate will silently refuse to annotate the binary. If this option is combined with --source, then mixed source / assembly annotations are output. .br .TP .BI "--demangle / -D none|smart|normal" none: no demangling. normal: use default demangler (default) smart: use pattern-matching to make C++ symbol demangling more readable. .br .TP .BI "--exclude-dependent / -x" Do not include application-specific images for libraries, kernel modules and the kernel. This option only makes sense if the profile session used --separate. .br .TP .BI "--exclude-file [files]" Exclude all files in the given comma-separated list of glob patterns. .br .TP .BI "--exclude-symbols / -e [symbols]" Exclude all the symbols in the given comma-separated list. .br .TP .BI "--help / -? / --usage" Show help message. .br .TP .BI "--image-path / -p [paths]" Comma-separated list of additional paths to search for binaries. This is needed to find modules in kernels 2.6 and upwards. .br .TP .BI "--root / -R [path]" A path to a filesystem to search for additional binaries. .br .TP .BI "--include-file [files]" Only include files in the given comma-separated list of glob patterns. .br .TP .BI "--merge / -m [lib,cpu,tid,tgid,unitmask,all]" Merge any profiles separated in a --separate session. .br .TP .BI "--include-symbols / -i [symbols]" Only include symbols in the given comma-separated list. .br .TP .BI "--objdump-params [params]" Pass the given parameters as extra values when calling objdump. If more than one option is to be passed to objdump, the parameters must be enclosed in a quoted string. An example of where this option is useful is when your toolchain does not automatically recognize instructions that are specific to your processor. For example, on IBM POWER7/RHEL 6, objdump must be told that a binary file may have POWER7-specific instructions. The opannotate option to show the POWER7-specific instructions is: --objdump-params=-Mpower7 The opannotate option to show the POWER7-specific instructions, the source code (--source) and the line numbers (-l) would be: --objdump-params="-Mpower7 -l --source" .br .TP .BI "--output-dir / -o [dir]" Output directory. This makes opannotate output one annotated file for each source file. This option can't be used in conjunction with --assembly. .br .TP .BI "--search-dirs / -d [paths]" Comma-separated list of paths to search for source files. You may need to use this option when the debug information for an image contains relative paths. .br .TP .BI "--base-dirs / -b [paths]" Comma-separated list of paths to strip from debug source files, prior to looking for them in --search-dirs. .br .TP .BI "--session-dir="dir_path Use sample database from the specified directory .I dir_path instead of the default locations. If .I --session-dir is not specified, then .B opannotate will search for samples in .I /oprofile_data first. If that directory does not exist, the standard session-dir of /var/lib/oprofile is used. .br .TP .BI "--source / -s" Output annotated source. This requires debugging information to be available for the binaries. .br .TP .BI "--threshold / -t [percentage]" Only output data for symbols that have more than the given percentage of total samples. .br .TP .BI "--verbose / -V [options]" Give verbose debugging output. .br .TP .BI "--version / -v" Show version. .SH ENVIRONMENT No special environment variables are recognised by opannotate. .SH FILES .I /oprofile_data/samples .RS 7 Or .RE .I /var/lib/oprofile/samples/ .LP .RS 7 The location of the generated sample files. .RE .SH VERSION .TP This man page is current for @PACKAGE@-@VERSION@. .SH SEE ALSO .BR @OP_DOCDIR@, .BR oprofile(1) oprofile-0.9.9/doc/opreport.xsd0000664000076400007640000002503212175510134013443 00000000000000 oprofile-0.9.9/ltmain.sh0000755000076400007640000073306012175510226012136 00000000000000# Generated from ltmain.m4sh. # ltmain.sh (GNU libtool) 2.2.6b # Written by Gordon Matzigkeit , 1996 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, # or obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Usage: $progname [OPTION]... [MODE-ARG]... # # Provide generalized library-building support services. # # --config show all configuration variables # --debug enable verbose shell tracing # -n, --dry-run display commands without modifying any files # --features display basic configuration information and exit # --mode=MODE use operation mode MODE # --preserve-dup-deps don't remove duplicate dependency libraries # --quiet, --silent don't print informational messages # --tag=TAG use configuration variables from tag TAG # -v, --verbose print informational messages (default) # --version print version information # -h, --help print short or long help message # # MODE must be one of the following: # # clean remove files from the build directory # compile compile a source file into a libtool object # execute automatically set library path, then run a program # finish complete the installation of libtool libraries # install install libraries or executables # link create a library or an executable # uninstall remove libraries from an installed directory # # MODE-ARGS vary depending on the MODE. # Try `$progname --help --mode=MODE' for a more detailed description of MODE. # # When reporting a bug, please describe a test case to reproduce it and # include the following information: # # host-triplet: $host # shell: $SHELL # compiler: $LTCC # compiler flags: $LTCFLAGS # linker: $LD (gnu? $with_gnu_ld) # $progname: (GNU libtool) 2.2.6b # automake: $automake_version # autoconf: $autoconf_version # # Report bugs to . PROGRAM=ltmain.sh PACKAGE=libtool VERSION=2.2.6b TIMESTAMP="" package_revision=1.3017 # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # NLS nuisances: We save the old values to restore during execute mode. # Only set LANG and LC_ALL to C if already set. # These must not be set unconditionally because not all systems understand # e.g. LANG=C (notably SCO). lt_user_locale= lt_safe_locale= for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${$lt_var+set}\" = set; then save_$lt_var=\$$lt_var $lt_var=C export $lt_var lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\" lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" fi" done $lt_unset CDPATH : ${CP="cp -f"} : ${ECHO="echo"} : ${EGREP="/bin/grep -E"} : ${FGREP="/bin/grep -F"} : ${GREP="/bin/grep"} : ${LN_S="ln -s"} : ${MAKE="make"} : ${MKDIR="mkdir"} : ${MV="mv -f"} : ${RM="rm -f"} : ${SED="/bin/sed"} : ${SHELL="${CONFIG_SHELL-/bin/sh}"} : ${Xsed="$SED -e 1s/^X//"} # Global variables: EXIT_SUCCESS=0 EXIT_FAILURE=1 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. exit_status=$EXIT_SUCCESS # Make sure IFS has a sensible default lt_nl=' ' IFS=" $lt_nl" dirname="s,/[^/]*$,," basename="s,^.*/,," # func_dirname_and_basename file append nondir_replacement # perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # Implementation must be kept synchronized with func_dirname # and func_basename. For efficiency, we do not delegate to # those functions but instead duplicate the functionality here. func_dirname_and_basename () { # Extract subdirectory from the argument. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` } # Generated shell functions inserted here. # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath="$0" # The name of this program: # In the unlikely event $progname began with a '-', it would play havoc with # func_echo (imagine progname=-n), so we prepend ./ in that case: func_dirname_and_basename "$progpath" progname=$func_basename_result case $progname in -*) progname=./$progname ;; esac # Make sure we have an absolute path for reexecution: case $progpath in [\\/]*|[A-Za-z]:\\*) ;; *[\\/]*) progdir=$func_dirname_result progdir=`cd "$progdir" && pwd` progpath="$progdir/$progname" ;; *) save_IFS="$IFS" IFS=: for progdir in $PATH; do IFS="$save_IFS" test -x "$progdir/$progname" && break done IFS="$save_IFS" test -n "$progdir" || progdir=`pwd` progpath="$progdir/$progname" ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed="${SED}"' -e 1s/^X//' sed_quote_subst='s/\([`"$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Re-`\' parameter expansions in output of double_quote_subst that were # `\'-ed in input to the same. If an odd number of `\' preceded a '$' # in input to double_quote_subst, that '$' was protected from expansion. # Since each input `\' is now two `\'s, look for any number of runs of # four `\'s followed by two `\'s and then a '$'. `\' that '$'. bs='\\' bs2='\\\\' bs4='\\\\\\\\' dollar='\$' sed_double_backslash="\ s/$bs4/&\\ /g s/^$bs2$dollar/$bs&/ s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g s/\n//g" # Standard options: opt_dry_run=false opt_help=false opt_quiet=false opt_verbose=false opt_warning=: # func_echo arg... # Echo program name prefixed message, along with the current mode # name if it has been set yet. func_echo () { $ECHO "$progname${mode+: }$mode: $*" } # func_verbose arg... # Echo program name prefixed message in verbose mode only. func_verbose () { $opt_verbose && func_echo ${1+"$@"} # A bug in bash halts the script if the last line of a function # fails when set -e is in force, so we need another command to # work around that: : } # func_error arg... # Echo program name prefixed message to standard error. func_error () { $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2 } # func_warning arg... # Echo program name prefixed warning message to standard error. func_warning () { $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2 # bash bug again: : } # func_fatal_error arg... # Echo program name prefixed message to standard error, and exit. func_fatal_error () { func_error ${1+"$@"} exit $EXIT_FAILURE } # func_fatal_help arg... # Echo program name prefixed message to standard error, followed by # a help hint, and exit. func_fatal_help () { func_error ${1+"$@"} func_fatal_error "$help" } help="Try \`$progname --help' for more information." ## default # func_grep expression filename # Check whether EXPRESSION matches any line of FILENAME, without output. func_grep () { $GREP "$1" "$2" >/dev/null 2>&1 } # func_mkdir_p directory-path # Make sure the entire path to DIRECTORY-PATH is available. func_mkdir_p () { my_directory_path="$1" my_dir_list= if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then # Protect directory names starting with `-' case $my_directory_path in -*) my_directory_path="./$my_directory_path" ;; esac # While some portion of DIR does not yet exist... while test ! -d "$my_directory_path"; do # ...make a list in topmost first order. Use a colon delimited # list incase some portion of path contains whitespace. my_dir_list="$my_directory_path:$my_dir_list" # If the last portion added has no slash in it, the list is done case $my_directory_path in */*) ;; *) break ;; esac # ...otherwise throw away the child directory and loop my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"` done my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'` save_mkdir_p_IFS="$IFS"; IFS=':' for my_dir in $my_dir_list; do IFS="$save_mkdir_p_IFS" # mkdir can fail with a `File exist' error if two processes # try to create one of the directories concurrently. Don't # stop in that case! $MKDIR "$my_dir" 2>/dev/null || : done IFS="$save_mkdir_p_IFS" # Bail out if we (or some other process) failed to create a directory. test -d "$my_directory_path" || \ func_fatal_error "Failed to create \`$1'" fi } # func_mktempdir [string] # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, STRING is the basename for that directory. func_mktempdir () { my_template="${TMPDIR-/tmp}/${1-$progname}" if test "$opt_dry_run" = ":"; then # Return a directory name, but don't create it in dry-run mode my_tmpdir="${my_template}-$$" else # If mktemp works, use that first and foremost my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` if test ! -d "$my_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race my_tmpdir="${my_template}-${RANDOM-0}$$" save_mktempdir_umask=`umask` umask 0077 $MKDIR "$my_tmpdir" umask $save_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$my_tmpdir" || \ func_fatal_error "cannot create temporary directory \`$my_tmpdir'" fi $ECHO "X$my_tmpdir" | $Xsed } # func_quote_for_eval arg # Aesthetically quote ARG to be evaled later. # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT # is double-quoted, suitable for a subsequent eval, whereas # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters # which are still active within double quotes backslashified. func_quote_for_eval () { case $1 in *[\\\`\"\$]*) func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;; *) func_quote_for_eval_unquoted_result="$1" ;; esac case $func_quote_for_eval_unquoted_result in # Double-quote args containing shell metacharacters to delay # word splitting, command substitution and and variable # expansion for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\"" ;; *) func_quote_for_eval_result="$func_quote_for_eval_unquoted_result" esac } # func_quote_for_expand arg # Aesthetically quote ARG to be evaled later; same as above, # but do not quote variable references. func_quote_for_expand () { case $1 in *[\\\`\"]*) my_arg=`$ECHO "X$1" | $Xsed \ -e "$double_quote_subst" -e "$sed_double_backslash"` ;; *) my_arg="$1" ;; esac case $my_arg in # Double-quote args containing shell metacharacters to delay # word splitting and command substitution for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") my_arg="\"$my_arg\"" ;; esac func_quote_for_expand_result="$my_arg" } # func_show_eval cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. func_show_eval () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$my_cmd" my_status=$? if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_show_eval_locale cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. Use the saved locale for evaluation. func_show_eval_locale () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$lt_user_locale $my_cmd" my_status=$? eval "$lt_safe_locale" if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_version # Echo version message to standard output and exit. func_version () { $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / { s/^# // s/^# *$// s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ p }' < "$progpath" exit $? } # func_usage # Echo short help message to standard output and exit. func_usage () { $SED -n '/^# Usage:/,/# -h/ { s/^# // s/^# *$// s/\$progname/'$progname'/ p }' < "$progpath" $ECHO $ECHO "run \`$progname --help | more' for full usage" exit $? } # func_help # Echo long help message to standard output and exit. func_help () { $SED -n '/^# Usage:/,/# Report bugs to/ { s/^# // s/^# *$// s*\$progname*'$progname'* s*\$host*'"$host"'* s*\$SHELL*'"$SHELL"'* s*\$LTCC*'"$LTCC"'* s*\$LTCFLAGS*'"$LTCFLAGS"'* s*\$LD*'"$LD"'* s/\$with_gnu_ld/'"$with_gnu_ld"'/ s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/ s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/ p }' < "$progpath" exit $? } # func_missing_arg argname # Echo program name prefixed message to standard error and set global # exit_cmd. func_missing_arg () { func_error "missing argument for $1" exit_cmd=exit } exit_cmd=: # Check that we have a working $ECHO. if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then # Yippee, $ECHO works! : else # Restart under the correct shell, and then maybe $ECHO will work. exec $SHELL "$progpath" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat </dev/null 2>&1; then taglist="$taglist $tagname" # Evaluate the configuration. Be careful to quote the path # and the sed script, to avoid splitting on whitespace, but # also don't use non-portable quotes within backquotes within # quotes we have to do it in 2 steps: extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` eval "$extractedcf" else func_error "ignoring unknown tag $tagname" fi ;; esac } # Parse options once, thoroughly. This comes as soon as possible in # the script to make things like `libtool --version' happen quickly. { # Shorthand for --mode=foo, only valid as the first argument case $1 in clean|clea|cle|cl) shift; set dummy --mode clean ${1+"$@"}; shift ;; compile|compil|compi|comp|com|co|c) shift; set dummy --mode compile ${1+"$@"}; shift ;; execute|execut|execu|exec|exe|ex|e) shift; set dummy --mode execute ${1+"$@"}; shift ;; finish|finis|fini|fin|fi|f) shift; set dummy --mode finish ${1+"$@"}; shift ;; install|instal|insta|inst|ins|in|i) shift; set dummy --mode install ${1+"$@"}; shift ;; link|lin|li|l) shift; set dummy --mode link ${1+"$@"}; shift ;; uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) shift; set dummy --mode uninstall ${1+"$@"}; shift ;; esac # Parse non-mode specific arguments: while test "$#" -gt 0; do opt="$1" shift case $opt in --config) func_config ;; --debug) preserve_args="$preserve_args $opt" func_echo "enabling shell trace mode" opt_debug='set -x' $opt_debug ;; -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break execute_dlfiles="$execute_dlfiles $1" shift ;; --dry-run | -n) opt_dry_run=: ;; --features) func_features ;; --finish) mode="finish" ;; --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break case $1 in # Valid mode arguments: clean) ;; compile) ;; execute) ;; finish) ;; install) ;; link) ;; relink) ;; uninstall) ;; # Catch anything else as an error *) func_error "invalid argument for $opt" exit_cmd=exit break ;; esac mode="$1" shift ;; --preserve-dup-deps) opt_duplicate_deps=: ;; --quiet|--silent) preserve_args="$preserve_args $opt" opt_silent=: ;; --verbose| -v) preserve_args="$preserve_args $opt" opt_silent=false ;; --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break preserve_args="$preserve_args $opt $1" func_enable_tag "$1" # tagname is set here shift ;; # Separate optargs to long options: -dlopen=*|--mode=*|--tag=*) func_opt_split "$opt" set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"} shift ;; -\?|-h) func_usage ;; --help) opt_help=: ;; --version) func_version ;; -*) func_fatal_help "unrecognized option \`$opt'" ;; *) nonopt="$opt" break ;; esac done case $host in *cygwin* | *mingw* | *pw32* | *cegcc*) # don't eliminate duplications in $postdeps and $predeps opt_duplicate_compiler_generated_deps=: ;; *) opt_duplicate_compiler_generated_deps=$opt_duplicate_deps ;; esac # Having warned about all mis-specified options, bail out if # anything was wrong. $exit_cmd $EXIT_FAILURE } # func_check_version_match # Ensure that we are using m4 macros, and libtool script from the same # release of libtool. func_check_version_match () { if test "$package_revision" != "$macro_revision"; then if test "$VERSION" != "$macro_version"; then if test -z "$macro_version"; then cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from an older release. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from $PACKAGE $macro_version. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF fi else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, $progname: but the definition of this LT_INIT comes from revision $macro_revision. $progname: You should recreate aclocal.m4 with macros from revision $package_revision $progname: of $PACKAGE $VERSION and run autoconf again. _LT_EOF fi exit $EXIT_MISMATCH fi } ## ----------- ## ## Main. ## ## ----------- ## $opt_help || { # Sanity checks first: func_check_version_match if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then func_fatal_configuration "not configured to build any kind of library" fi test -z "$mode" && func_fatal_error "error: you must specify a MODE." # Darwin sucks eval std_shrext=\"$shrext_cmds\" # Only execute mode is allowed to have -dlopen flags. if test -n "$execute_dlfiles" && test "$mode" != execute; then func_error "unrecognized option \`-dlopen'" $ECHO "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help="$help" help="Try \`$progname --help --mode=$mode' for more information." } # func_lalib_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_lalib_p () { test -f "$1" && $SED -e 4q "$1" 2>/dev/null \ | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 } # func_lalib_unsafe_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function implements the same check as func_lalib_p without # resorting to external programs. To this end, it redirects stdin and # closes it afterwards, without saving the original file descriptor. # As a safety measure, use it only where a negative result would be # fatal anyway. Works if `file' does not exist. func_lalib_unsafe_p () { lalib_p=no if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then for lalib_p_l in 1 2 3 4 do read lalib_p_line case "$lalib_p_line" in \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; esac done exec 0<&5 5<&- fi test "$lalib_p" = yes } # func_ltwrapper_script_p file # True iff FILE is a libtool wrapper script # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_script_p () { func_lalib_p "$1" } # func_ltwrapper_executable_p file # True iff FILE is a libtool wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_executable_p () { func_ltwrapper_exec_suffix= case $1 in *.exe) ;; *) func_ltwrapper_exec_suffix=.exe ;; esac $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 } # func_ltwrapper_scriptname file # Assumes file is an ltwrapper_executable # uses $file to determine the appropriate filename for a # temporary ltwrapper_script. func_ltwrapper_scriptname () { func_ltwrapper_scriptname_result="" if func_ltwrapper_executable_p "$1"; then func_dirname_and_basename "$1" "" "." func_stripname '' '.exe' "$func_basename_result" func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" fi } # func_ltwrapper_p file # True iff FILE is a libtool wrapper script or wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_p () { func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" } # func_execute_cmds commands fail_cmd # Execute tilde-delimited COMMANDS. # If FAIL_CMD is given, eval that upon failure. # FAIL_CMD may read-access the current command in variable CMD! func_execute_cmds () { $opt_debug save_ifs=$IFS; IFS='~' for cmd in $1; do IFS=$save_ifs eval cmd=\"$cmd\" func_show_eval "$cmd" "${2-:}" done IFS=$save_ifs } # func_source file # Source FILE, adding directory component if necessary. # Note that it is not necessary on cygwin/mingw to append a dot to # FILE even if both FILE and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. func_source () { $opt_debug case $1 in */* | *\\*) . "$1" ;; *) . "./$1" ;; esac } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { $opt_debug if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do func_quote_for_eval "$arg" CC_quoted="$CC_quoted $func_quote_for_eval_result" done case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. func_quote_for_eval "$arg" CC_quoted="$CC_quoted $func_quote_for_eval_result" done case "$@ " in " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then func_echo "unable to infer tagged configuration" func_fatal_error "specify a tag with \`--tag'" # else # func_verbose "using $tagname tagged configuration" fi ;; esac fi } # func_write_libtool_object output_name pic_name nonpic_name # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. func_write_libtool_object () { write_libobj=${1} if test "$build_libtool_libs" = yes; then write_lobj=\'${2}\' else write_lobj=none fi if test "$build_old_libs" = yes; then write_oldobj=\'${3}\' else write_oldobj=none fi $opt_dry_run || { cat >${write_libobj}T <?"'"'"' &()|`$[]' \ && func_warning "libobj name \`$libobj' may not contain shell special characters." func_dirname_and_basename "$obj" "/" "" objname="$func_basename_result" xdir="$func_dirname_result" lobj=${xdir}$objdir/$objname test -z "$base_compile" && \ func_fatal_help "you must specify a compilation command" # Delete any leftover library objects. if test "$build_old_libs" = yes; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2* | cegcc*) pic_mode=default ;; esac if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done elif test "$need_locks" = warn; then if test -f "$lockfile"; then $ECHO "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi removelist="$removelist $output_obj" $ECHO "$srcfile" > "$lockfile" fi $opt_dry_run || $RM $removelist removelist="$removelist $lockfile" trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 if test -n "$fix_srcfile_path"; then eval srcfile=\"$fix_srcfile_path\" fi func_quote_for_eval "$srcfile" qsrcfile=$func_quote_for_eval_result # Only build a PIC object if we are building libtool libraries. if test "$build_libtool_libs" = yes; then # Without this assignment, base_compile gets emptied. fbsd_hideous_sh_bug=$base_compile if test "$pic_mode" != no; then command="$base_compile $qsrcfile $pic_flag" else # Don't build PIC code command="$base_compile $qsrcfile" fi func_mkdir_p "$xdir$objdir" if test -z "$output_obj"; then # Place PIC objects in $objdir command="$command -o $lobj" fi func_show_eval_locale "$command" \ 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then func_show_eval '$MV "$output_obj" "$lobj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi # Allow error messages only from the first compilation. if test "$suppress_opt" = yes; then suppress_output=' >/dev/null 2>&1' fi fi # Only build a position-dependent object if we build old libraries. if test "$build_old_libs" = yes; then if test "$pic_mode" != yes; then # Don't build PIC code command="$base_compile $qsrcfile$pie_flag" else command="$base_compile $qsrcfile $pic_flag" fi if test "$compiler_c_o" = yes; then command="$command -o $obj" fi # Suppress compiler output if we already did a PIC compilation. command="$command$suppress_output" func_show_eval_locale "$command" \ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then func_show_eval '$MV "$output_obj" "$obj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi fi $opt_dry_run || { func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" # Unlock the critical section if it was locked if test "$need_locks" != no; then removelist=$lockfile $RM "$lockfile" fi } exit $EXIT_SUCCESS } $opt_help || { test "$mode" = compile && func_mode_compile ${1+"$@"} } func_mode_help () { # We need to display help for each of the modes. case $mode in "") # Generic help is extracted from the usage comments # at the start of this file. func_help ;; clean) $ECHO \ "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $ECHO \ "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -no-suppress do not suppress compiler output for multiple passes -prefer-pic try to building PIC objects only -prefer-non-pic try to building non-PIC objects only -shared do not build a \`.o' file suitable for static linking -static only build a \`.o' file suitable for static linking COMPILE-COMMAND is a command to be used in creating a \`standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix \`.c' with the library object suffix, \`.lo'." ;; execute) $ECHO \ "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to \`-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $ECHO \ "Usage: $progname [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the \`--dry-run' option if you just want to see what would be executed." ;; install) $ECHO \ "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the \`install' or \`cp' program. The following components of INSTALL-COMMAND are treated specially: -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $ECHO \ "Usage: $progname [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE Use a list of object files found in FILE to specify objects -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -shared only do dynamic linking of libtool libraries -shrext SUFFIX override the standard shared library file extension -static do not do any dynamic linking of uninstalled libtool libraries -static-libtool-libs do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] -weak LIBNAME declare that the target provides the LIBNAME interface All other options (arguments beginning with \`-') are ignored. Every other argument is treated as a filename. Files ending in \`.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in \`.la', then a libtool library is created, only library objects (\`.lo' files) may be specified, and \`-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created using \`ar' and \`ranlib', or on Windows using \`lib'. If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $ECHO \ "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) func_fatal_help "invalid operation mode \`$mode'" ;; esac $ECHO $ECHO "Try \`$progname --help' for more information about other modes." exit $? } # Now that we've collected a possible --mode arg, show help if necessary $opt_help && func_mode_help # func_mode_execute arg... func_mode_execute () { $opt_debug # The first argument is the command name. cmd="$nonopt" test -z "$cmd" && \ func_fatal_help "you must specify a COMMAND" # Handle -dlopen flags immediately. for file in $execute_dlfiles; do test -f "$file" \ || func_fatal_help "\`$file' is not a file" dir= case $file in *.la) # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$lib' is not a valid libtool archive" # Read the libtool library. dlname= library_names= func_source "$file" # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && \ func_warning "\`$file' was not linked with \`-export-dynamic'" continue fi func_dirname "$file" "" "." dir="$func_dirname_result" if test -f "$dir/$objdir/$dlname"; then dir="$dir/$objdir" else if test ! -f "$dir/$dlname"; then func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" fi fi ;; *.lo) # Just add the directory containing the .lo file. func_dirname "$file" "" "." dir="$func_dirname_result" ;; *) func_warning "\`-dlopen' is ignored for non-libtool libraries and objects" continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir="$absdir" # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic="$magic" # Check if any of the arguments is a wrapper script. args= for file do case $file in -*) ;; *) # Do a test to see if this is really a libtool program. if func_ltwrapper_script_p "$file"; then func_source "$file" # Transform arg to wrapped name. file="$progdir/$program" elif func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" func_source "$func_ltwrapper_scriptname_result" # Transform arg to wrapped name. file="$progdir/$program" fi ;; esac # Quote arguments (to preserve shell metacharacters). func_quote_for_eval "$file" args="$args $func_quote_for_eval_result" done if test "X$opt_dry_run" = Xfalse; then if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${save_$lt_var+set}\" = set; then $lt_var=\$save_$lt_var; export $lt_var else $lt_unset $lt_var fi" done # Now prepare to actually exec the command. exec_cmd="\$cmd$args" else # Display what would be done. if test -n "$shlibpath_var"; then eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" $ECHO "export $shlibpath_var" fi $ECHO "$cmd$args" exit $EXIT_SUCCESS fi } test "$mode" = execute && func_mode_execute ${1+"$@"} # func_mode_finish arg... func_mode_finish () { $opt_debug libdirs="$nonopt" admincmds= if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for dir do libdirs="$libdirs $dir" done for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. func_execute_cmds "$finish_cmds" 'admincmds="$admincmds '"$cmd"'"' fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $opt_dry_run || eval "$cmds" || admincmds="$admincmds $cmds" fi done fi # Exit here if they wanted silent mode. $opt_silent && exit $EXIT_SUCCESS $ECHO "X----------------------------------------------------------------------" | $Xsed $ECHO "Libraries have been installed in:" for libdir in $libdirs; do $ECHO " $libdir" done $ECHO $ECHO "If you ever happen to want to link against installed libraries" $ECHO "in a given directory, LIBDIR, you must either use libtool, and" $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'" $ECHO "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable" $ECHO " during execution" fi if test -n "$runpath_var"; then $ECHO " - add LIBDIR to the \`$runpath_var' environment variable" $ECHO " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $ECHO " - use the \`$flag' linker flag" fi if test -n "$admincmds"; then $ECHO " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" fi $ECHO $ECHO "See any operating system documentation about shared libraries for" case $host in solaris2.[6789]|solaris2.1[0-9]) $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual" $ECHO "pages." ;; *) $ECHO "more information, such as the ld(1) and ld.so(8) manual pages." ;; esac $ECHO "X----------------------------------------------------------------------" | $Xsed exit $EXIT_SUCCESS } test "$mode" = finish && func_mode_finish ${1+"$@"} # func_mode_install arg... func_mode_install () { $opt_debug # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || # Allow the use of GNU shtool's install command. $ECHO "X$nonopt" | $GREP shtool >/dev/null; then # Aesthetically quote it. func_quote_for_eval "$nonopt" install_prog="$func_quote_for_eval_result " arg=$1 shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. func_quote_for_eval "$arg" install_prog="$install_prog$func_quote_for_eval_result" # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=no stripme= for arg do if test -n "$dest"; then files="$files $dest" dest=$arg continue fi case $arg in -d) isdir=yes ;; -f) case " $install_prog " in *[\\\ /]cp\ *) ;; *) prev=$arg ;; esac ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. func_quote_for_eval "$arg" install_prog="$install_prog $func_quote_for_eval_result" done test -z "$install_prog" && \ func_fatal_help "you must specify an install program" test -n "$prev" && \ func_fatal_help "the \`$prev' option requires an argument" if test -z "$files"; then if test -z "$dest"; then func_fatal_help "no file or destination specified" else func_fatal_help "you must specify a destination" fi fi # Strip any trailing slash from the destination. func_stripname '' '/' "$dest" dest=$func_stripname_result # Check to see that the destination is a directory. test -d "$dest" && isdir=yes if test "$isdir" = yes; then destdir="$dest" destname= else func_dirname_and_basename "$dest" "" "." destdir="$func_dirname_result" destname="$func_basename_result" # Not a directory, so check to see that there is only one file specified. set dummy $files; shift test "$#" -gt 1 && \ func_fatal_help "\`$dest' is not a directory" fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) func_fatal_help "\`$destdir' must be an absolute directory name" ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. staticlibs="$staticlibs $file" ;; *.la) # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$file' is not a valid libtool archive" library_names= old_library= relink_command= func_source "$file" # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) current_libdirs="$current_libdirs $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) future_libdirs="$future_libdirs $libdir" ;; esac fi func_dirname "$file" "/" "" dir="$func_dirname_result" dir="$dir$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. test "$inst_prefix_dir" = "$destdir" && \ func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir" if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"` fi func_warning "relinking \`$file'" func_show_eval "$relink_command" \ 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"' fi # See the names of the shared library. set dummy $library_names; shift if test -n "$1"; then realname="$1" shift srcname="$realname" test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \ 'exit $?' tstripme="$stripme" case $host_os in cygwin* | mingw* | pw32* | cegcc*) case $realname in *.dll.a) tstripme="" ;; esac ;; esac if test -n "$tstripme" && test -n "$striplib"; then func_show_eval "$striplib $destdir/$realname" 'exit $?' fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try `ln -sf' first, because the `ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do test "$linkname" != "$realname" \ && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" done fi # Do each command in the postinstall commands. lib="$destdir/$realname" func_execute_cmds "$postinstall_cmds" 'exit $?' fi # Install the pseudo-library for information purposes. func_basename "$file" name="$func_basename_result" instname="$dir/$name"i func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' # Maybe install the static library, too. test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) func_lo2o "$destfile" staticdest=$func_lo2o_result ;; *.$objext) staticdest="$destfile" destfile= ;; *) func_fatal_help "cannot copy a libtool object to \`$destfile'" ;; esac # Install the libtool object if requested. test -n "$destfile" && \ func_show_eval "$install_prog $file $destfile" 'exit $?' # Install the old object if enabled. if test "$build_old_libs" = yes; then # Deduce the name of the old-style object file. func_lo2o "$file" staticobj=$func_lo2o_result func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext="" case $file in *.exe) if test ! -f "$file"; then func_stripname '' '.exe' "$file" file=$func_stripname_result stripped_ext=".exe" fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin* | *mingw*) if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" wrapper=$func_ltwrapper_scriptname_result else func_stripname '' '.exe' "$file" wrapper=$func_stripname_result fi ;; *) wrapper=$file ;; esac if func_ltwrapper_script_p "$wrapper"; then notinst_deplibs= relink_command= func_source "$wrapper" # Check the variables that should have been set. test -z "$generated_by_libtool_version" && \ func_fatal_error "invalid libtool wrapper script \`$wrapper'" finalize=yes for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then func_source "$lib" fi libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then func_warning "\`$lib' has not been installed in \`$libdir'" finalize=no fi done relink_command= func_source "$wrapper" outputname= if test "$fast_install" = no && test -n "$relink_command"; then $opt_dry_run || { if test "$finalize" = yes; then tmpdir=`func_mktempdir` func_basename "$file$stripped_ext" file="$func_basename_result" outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` $opt_silent || { func_quote_for_expand "$relink_command" eval "func_echo $func_quote_for_expand_result" } if eval "$relink_command"; then : else func_error "error: relink \`$file' with the above command before installing it" $opt_dry_run || ${RM}r "$tmpdir" continue fi file="$outputname" else func_warning "cannot relink \`$file'" fi } else # Install the binary that we compiled earlier. file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) func_stripname '' '.exe' "$destfile" destfile=$func_stripname_result ;; esac ;; esac func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' $opt_dry_run || if test -n "$outputname"; then ${RM}r "$tmpdir" fi ;; esac done for file in $staticlibs; do func_basename "$file" name="$func_basename_result" # Set up the ranlib parameters. oldlib="$destdir/$name" func_show_eval "$install_prog \$file \$oldlib" 'exit $?' if test -n "$stripme" && test -n "$old_striplib"; then func_show_eval "$old_striplib $oldlib" 'exit $?' fi # Do each command in the postinstall commands. func_execute_cmds "$old_postinstall_cmds" 'exit $?' done test -n "$future_libdirs" && \ func_warning "remember to run \`$progname --finish$future_libdirs'" if test -n "$current_libdirs"; then # Maybe just do a dry run. $opt_dry_run && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi } test "$mode" = install && func_mode_install ${1+"$@"} # func_generate_dlsyms outputname originator pic_p # Extract symbols from dlprefiles and create ${outputname}S.o with # a dlpreopen symbol table. func_generate_dlsyms () { $opt_debug my_outputname="$1" my_originator="$2" my_pic_p="${3-no}" my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'` my_dlsyms= if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then if test -n "$NM" && test -n "$global_symbol_pipe"; then my_dlsyms="${my_outputname}S.c" else func_error "not configured to extract global symbols from dlpreopened files" fi fi if test -n "$my_dlsyms"; then case $my_dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist="$output_objdir/${my_outputname}.nm" func_show_eval "$RM $nlist ${nlist}S ${nlist}T" # Parse the name list into a source file. func_verbose "creating $output_objdir/$my_dlsyms" $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */ /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */ #ifdef __cplusplus extern \"C\" { #endif /* External symbol declarations for the compiler. */\ " if test "$dlself" = yes; then func_verbose "generating symbol list for \`$output'" $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` for progfile in $progfiles; do func_verbose "extracting global C symbols from \`$progfile'" $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $opt_dry_run || { eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi if test -n "$export_symbols_regex"; then $opt_dry_run || { eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols="$output_objdir/$outputname.exp" $opt_dry_run || { $RM $export_symbols eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac } else $opt_dry_run || { eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' case $host in *cygwin | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac } fi fi for dlprefile in $dlprefiles; do func_verbose "extracting global C symbols from \`$dlprefile'" func_basename "$dlprefile" name="$func_basename_result" $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'" } done $opt_dry_run || { # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $MV "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if $GREP -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else $GREP -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' else $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms" fi $ECHO >> "$output_objdir/$my_dlsyms" "\ /* The mapping between symbol names and symbols. */ typedef struct { const char *name; void *address; } lt_dlsymlist; " case $host in *cygwin* | *mingw* | *cegcc* ) $ECHO >> "$output_objdir/$my_dlsyms" "\ /* DATA imports from DLLs on WIN32 con't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */" lt_dlsym_const= ;; *osf5*) echo >> "$output_objdir/$my_dlsyms" "\ /* This system does not cope well with relocations in const data */" lt_dlsym_const= ;; *) lt_dlsym_const=const ;; esac $ECHO >> "$output_objdir/$my_dlsyms" "\ extern $lt_dlsym_const lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[]; $lt_dlsym_const lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[] = {\ { \"$my_originator\", (void *) 0 }," case $need_lib_prefix in no) eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; *) eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; esac $ECHO >> "$output_objdir/$my_dlsyms" "\ {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_${my_prefix}_LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " } # !$opt_dry_run pic_flag_for_symtable= case "$compile_command " in *" -static "*) ;; *) case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; *-*-hpux*) pic_flag_for_symtable=" $pic_flag" ;; *) if test "X$my_pic_p" != Xno; then pic_flag_for_symtable=" $pic_flag" fi ;; esac ;; esac symtab_cflags= for arg in $LTCFLAGS; do case $arg in -pie | -fpie | -fPIE) ;; *) symtab_cflags="$symtab_cflags $arg" ;; esac done # Now compile the dynamic symbol file. func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' # Clean up the generated files. func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"' # Transform the symbol file into the correct name. symfileobj="$output_objdir/${my_outputname}S.$objext" case $host in *cygwin* | *mingw* | *cegcc* ) if test -f "$output_objdir/$my_outputname.def"; then compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` else compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` fi ;; *) compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` ;; esac ;; *) func_fatal_error "unknown suffix for \`$my_dlsyms'" ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` fi } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. func_win32_libid () { $opt_debug win32_libid_type="unknown" win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then win32_nmres=`eval $NM -f posix -A $1 | $SED -n -e ' 1,100{ / I /{ s,.*,import, p q } }'` case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $ECHO "$win32_libid_type" } # func_extract_an_archive dir oldlib func_extract_an_archive () { $opt_debug f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?' if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" fi } # func_extract_archives gentop oldlib ... func_extract_archives () { $opt_debug my_gentop="$1"; shift my_oldlibs=${1+"$@"} my_oldobjs="" my_xlib="" my_xabs="" my_xdir="" for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac func_basename "$my_xlib" my_xlib="$func_basename_result" my_xlib_u=$my_xlib while :; do case " $extracted_archives " in *" $my_xlib_u "*) func_arith $extracted_serial + 1 extracted_serial=$func_arith_result my_xlib_u=lt$extracted_serial-$my_xlib ;; *) break ;; esac done extracted_archives="$extracted_archives $my_xlib_u" my_xdir="$my_gentop/$my_xlib_u" func_mkdir_p "$my_xdir" case $host in *-darwin*) func_verbose "Extracting $my_xabs" # Do not bother doing anything if just a dry run $opt_dry_run || { darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` darwin_base_archive=`basename "$darwin_archive"` darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` if test -n "$darwin_arches"; then darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches ; do func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}" $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" func_extract_an_archive "`pwd`" "${darwin_base_archive}" cd "$darwin_curdir" $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" done # $darwin_arches ## Okay now we've a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` $LIPO -create -output "$darwin_file" $darwin_files done # $darwin_filelist $RM -rf unfat-$$ cd "$darwin_orig_dir" else cd $darwin_orig_dir func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches } # !$opt_dry_run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` done func_extract_archives_result="$my_oldobjs" } # func_emit_wrapper_part1 [arg=no] # # Emit the first part of a libtool wrapper script on stdout. # For more information, see the description associated with # func_emit_wrapper(), below. func_emit_wrapper_part1 () { func_emit_wrapper_part1_arg1=no if test -n "$1" ; then func_emit_wrapper_part1_arg1=$1 fi $ECHO "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='${SED} -e 1s/^X//' sed_quote_subst='$sed_quote_subst' # Be Bourne compatible if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variables: generated_by_libtool_version='$macro_version' notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$ECHO are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then ECHO=\"$qecho\" file=\"\$0\" # Make sure echo works. if test \"X\$1\" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then # Yippee, \$ECHO works! : else # Restart under the correct shell, and then maybe \$ECHO will work. exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} fi fi\ " $ECHO "\ # Find the directory that this script lives in. thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` done " } # end: func_emit_wrapper_part1 # func_emit_wrapper_part2 [arg=no] # # Emit the second part of a libtool wrapper script on stdout. # For more information, see the description associated with # func_emit_wrapper(), below. func_emit_wrapper_part2 () { func_emit_wrapper_part2_arg1=no if test -n "$1" ; then func_emit_wrapper_part2_arg1=$1 fi $ECHO "\ # Usually 'no', except on cygwin/mingw when embedded into # the cwrapper. WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then # special case for '.' if test \"\$thisdir\" = \".\"; then thisdir=\`pwd\` fi # remove .libs from thisdir case \"\$thisdir\" in *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;; $objdir ) thisdir=. ;; esac fi # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test "$fast_install" = yes; then $ECHO "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $MKDIR \"\$progdir\" else $RM \"\$progdir/\$file\" fi" $ECHO "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else $ECHO \"\$relink_command_output\" >&2 $RM \"\$progdir/\$file\" exit 1 fi fi $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $RM \"\$progdir/\$program\"; $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } $RM \"\$progdir/\$file\" fi" else $ECHO "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $ECHO "\ if test -f \"\$progdir/\$program\"; then" # Export our shlibpath_var if we have one. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $ECHO "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` export $shlibpath_var " fi # fixup the dll searchpath if we need to. if test -n "$dllsearchpath"; then $ECHO "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi $ECHO "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2* | *-cegcc*) $ECHO "\ exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $ECHO "\ exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $ECHO "\ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 exit 1 fi else # The program doesn't exist. \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 exit 1 fi fi\ " } # end: func_emit_wrapper_part2 # func_emit_wrapper [arg=no] # # Emit a libtool wrapper script on stdout. # Don't directly open a file because we may want to # incorporate the script contents within a cygwin/mingw # wrapper executable. Must ONLY be called from within # func_mode_link because it depends on a number of variables # set therein. # # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR # variable will take. If 'yes', then the emitted script # will assume that the directory in which it is stored is # the $objdir directory. This is a cygwin/mingw-specific # behavior. func_emit_wrapper () { func_emit_wrapper_arg1=no if test -n "$1" ; then func_emit_wrapper_arg1=$1 fi # split this up so that func_emit_cwrapperexe_src # can call each part independently. func_emit_wrapper_part1 "${func_emit_wrapper_arg1}" func_emit_wrapper_part2 "${func_emit_wrapper_arg1}" } # func_to_host_path arg # # Convert paths to host format when used with build tools. # Intended for use with "native" mingw (where libtool itself # is running under the msys shell), or in the following cross- # build environments: # $build $host # mingw (msys) mingw [e.g. native] # cygwin mingw # *nix + wine mingw # where wine is equipped with the `winepath' executable. # In the native mingw case, the (msys) shell automatically # converts paths for any non-msys applications it launches, # but that facility isn't available from inside the cwrapper. # Similar accommodations are necessary for $host mingw and # $build cygwin. Calling this function does no harm for other # $host/$build combinations not listed above. # # ARG is the path (on $build) that should be converted to # the proper representation for $host. The result is stored # in $func_to_host_path_result. func_to_host_path () { func_to_host_path_result="$1" if test -n "$1" ; then case $host in *mingw* ) lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' case $build in *mingw* ) # actually, msys # awkward: cmd appends spaces to result lt_sed_strip_trailing_spaces="s/[ ]*\$//" func_to_host_path_tmp1=`( cmd //c echo "$1" |\ $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ $SED -e "$lt_sed_naive_backslashify"` ;; *cygwin* ) func_to_host_path_tmp1=`cygpath -w "$1"` func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ $SED -e "$lt_sed_naive_backslashify"` ;; * ) # Unfortunately, winepath does not exit with a non-zero # error code, so we are forced to check the contents of # stdout. On the other hand, if the command is not # found, the shell will set an exit code of 127 and print # *an error message* to stdout. So we must check for both # error code of zero AND non-empty stdout, which explains # the odd construction: func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null` if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ $SED -e "$lt_sed_naive_backslashify"` else # Allow warning below. func_to_host_path_result="" fi ;; esac if test -z "$func_to_host_path_result" ; then func_error "Could not determine host path corresponding to" func_error " '$1'" func_error "Continuing, but uninstalled executables may not work." # Fallback: func_to_host_path_result="$1" fi ;; esac fi } # end: func_to_host_path # func_to_host_pathlist arg # # Convert pathlists to host format when used with build tools. # See func_to_host_path(), above. This function supports the # following $build/$host combinations (but does no harm for # combinations not listed here): # $build $host # mingw (msys) mingw [e.g. native] # cygwin mingw # *nix + wine mingw # # Path separators are also converted from $build format to # $host format. If ARG begins or ends with a path separator # character, it is preserved (but converted to $host format) # on output. # # ARG is a pathlist (on $build) that should be converted to # the proper representation on $host. The result is stored # in $func_to_host_pathlist_result. func_to_host_pathlist () { func_to_host_pathlist_result="$1" if test -n "$1" ; then case $host in *mingw* ) lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' # Remove leading and trailing path separator characters from # ARG. msys behavior is inconsistent here, cygpath turns them # into '.;' and ';.', and winepath ignores them completely. func_to_host_pathlist_tmp2="$1" # Once set for this call, this variable should not be # reassigned. It is used in tha fallback case. func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\ $SED -e 's|^:*||' -e 's|:*$||'` case $build in *mingw* ) # Actually, msys. # Awkward: cmd appends spaces to result. lt_sed_strip_trailing_spaces="s/[ ]*\$//" func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\ $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ $SED -e "$lt_sed_naive_backslashify"` ;; *cygwin* ) func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"` func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ $SED -e "$lt_sed_naive_backslashify"` ;; * ) # unfortunately, winepath doesn't convert pathlists func_to_host_pathlist_result="" func_to_host_pathlist_oldIFS=$IFS IFS=: for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do IFS=$func_to_host_pathlist_oldIFS if test -n "$func_to_host_pathlist_f" ; then func_to_host_path "$func_to_host_pathlist_f" if test -n "$func_to_host_path_result" ; then if test -z "$func_to_host_pathlist_result" ; then func_to_host_pathlist_result="$func_to_host_path_result" else func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result" fi fi fi IFS=: done IFS=$func_to_host_pathlist_oldIFS ;; esac if test -z "$func_to_host_pathlist_result" ; then func_error "Could not determine the host path(s) corresponding to" func_error " '$1'" func_error "Continuing, but uninstalled executables may not work." # Fallback. This may break if $1 contains DOS-style drive # specifications. The fix is not to complicate the expression # below, but for the user to provide a working wine installation # with winepath so that path translation in the cross-to-mingw # case works properly. lt_replace_pathsep_nix_to_dos="s|:|;|g" func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\ $SED -e "$lt_replace_pathsep_nix_to_dos"` fi # Now, add the leading and trailing path separators back case "$1" in :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result" ;; esac case "$1" in *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;" ;; esac ;; esac fi } # end: func_to_host_pathlist # func_emit_cwrapperexe_src # emit the source code for a wrapper executable on stdout # Must ONLY be called from within func_mode_link because # it depends on a number of variable set therein. func_emit_cwrapperexe_src () { cat < #include #ifdef _MSC_VER # include # include # include # define setmode _setmode #else # include # include # ifdef __CYGWIN__ # include # define HAVE_SETENV # ifdef __STRICT_ANSI__ char *realpath (const char *, char *); int putenv (char *); int setenv (const char *, const char *, int); # endif # endif #endif #include #include #include #include #include #include #include #include #if defined(PATH_MAX) # define LT_PATHMAX PATH_MAX #elif defined(MAXPATHLEN) # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef S_IXOTH # define S_IXOTH 0 #endif #ifndef S_IXGRP # define S_IXGRP 0 #endif #ifdef _MSC_VER # define S_IXUSR _S_IEXEC # define stat _stat # ifndef _INTPTR_T_DEFINED # define intptr_t int # endif #endif #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ defined (__OS2__) # define HAVE_DOS_BASED_FILE_SYSTEM # define FOPEN_WB "wb" # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #ifdef __CYGWIN__ # define FOPEN_WB "wb" #endif #ifndef FOPEN_WB # define FOPEN_WB "w" #endif #ifndef _O_BINARY # define _O_BINARY 0 #endif #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) #undef LTWRAPPER_DEBUGPRINTF #if defined DEBUGWRAPPER # define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args static void ltwrapper_debugprintf (const char *fmt, ...) { va_list args; va_start (args, fmt); (void) vfprintf (stderr, fmt, args); va_end (args); } #else # define LTWRAPPER_DEBUGPRINTF(args) #endif const char *program_name = NULL; void *xmalloc (size_t num); char *xstrdup (const char *string); const char *base_name (const char *name); char *find_executable (const char *wrapper); char *chase_symlinks (const char *pathspec); int make_executable (const char *path); int check_executable (const char *path); char *strendzap (char *str, const char *pat); void lt_fatal (const char *message, ...); void lt_setenv (const char *name, const char *value); char *lt_extend_str (const char *orig_value, const char *add, int to_end); void lt_opt_process_env_set (const char *arg); void lt_opt_process_env_prepend (const char *arg); void lt_opt_process_env_append (const char *arg); int lt_split_name_value (const char *arg, char** name, char** value); void lt_update_exe_path (const char *name, const char *value); void lt_update_lib_path (const char *name, const char *value); static const char *script_text_part1 = EOF func_emit_wrapper_part1 yes | $SED -e 's/\([\\"]\)/\\\1/g' \ -e 's/^/ "/' -e 's/$/\\n"/' echo ";" cat <"))); for (i = 0; i < newargc; i++) { LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : ""))); } EOF case $host_os in mingw*) cat <<"EOF" /* execv doesn't actually work on mingw as expected on unix */ rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz); if (rval == -1) { /* failed to start process */ LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno)); return 127; } return rval; EOF ;; *) cat <<"EOF" execv (lt_argv_zero, newargz); return rval; /* =127, but avoids unused variable warning */ EOF ;; esac cat <<"EOF" } void * xmalloc (size_t num) { void *p = (void *) malloc (num); if (!p) lt_fatal ("Memory exhausted"); return p; } char * xstrdup (const char *string) { return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL; } const char * base_name (const char *name) { const char *base; #if defined (HAVE_DOS_BASED_FILE_SYSTEM) /* Skip over the disk name in MSDOS pathnames. */ if (isalpha ((unsigned char) name[0]) && name[1] == ':') name += 2; #endif for (base = name; *name; name++) if (IS_DIR_SEPARATOR (*name)) base = name + 1; return base; } int check_executable (const char *path) { struct stat st; LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!")); if ((!path) || (!*path)) return 0; if ((stat (path, &st) >= 0) && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) return 1; else return 0; } int make_executable (const char *path) { int rval = 0; struct stat st; LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!")); if ((!path) || (!*path)) return 0; if (stat (path, &st) >= 0) { rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); } return rval; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise Does not chase symlinks, even on platforms that support them. */ char * find_executable (const char *wrapper) { int has_slash = 0; const char *p; const char *p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; int tmp_len; char *concat_name; LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!")); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } #if defined (HAVE_DOS_BASED_FILE_SYSTEM) } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char *path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char *q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR (*q)) break; p_len = q - p; p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); return NULL; } char * chase_symlinks (const char *pathspec) { #ifndef S_ISLNK return xstrdup (pathspec); #else char buf[LT_PATHMAX]; struct stat s; char *tmp_pathspec = xstrdup (pathspec); char *p; int has_symlinks = 0; while (strlen (tmp_pathspec) && !has_symlinks) { LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n", tmp_pathspec)); if (lstat (tmp_pathspec, &s) == 0) { if (S_ISLNK (s.st_mode) != 0) { has_symlinks = 1; break; } /* search backwards for last DIR_SEPARATOR */ p = tmp_pathspec + strlen (tmp_pathspec) - 1; while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) p--; if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) { /* no more DIR_SEPARATORS left */ break; } *p = '\0'; } else { char *errstr = strerror (errno); lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr); } } XFREE (tmp_pathspec); if (!has_symlinks) { return xstrdup (pathspec); } tmp_pathspec = realpath (pathspec, buf); if (tmp_pathspec == 0) { lt_fatal ("Could not follow symlinks for %s", pathspec); } return xstrdup (tmp_pathspec); #endif } char * strendzap (char *str, const char *pat) { size_t len, patlen; assert (str != NULL); assert (pat != NULL); len = strlen (str); patlen = strlen (pat); if (patlen <= len) { str += len - patlen; if (strcmp (str, pat) == 0) *str = '\0'; } return str; } static void lt_error_core (int exit_status, const char *mode, const char *message, va_list ap) { fprintf (stderr, "%s: %s: ", program_name, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, "FATAL", message, ap); va_end (ap); } void lt_setenv (const char *name, const char *value) { LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n", (name ? name : ""), (value ? value : ""))); { #ifdef HAVE_SETENV /* always make a copy, for consistency with !HAVE_SETENV */ char *str = xstrdup (value); setenv (name, str, 1); #else int len = strlen (name) + 1 + strlen (value) + 1; char *str = XMALLOC (char, len); sprintf (str, "%s=%s", name, value); if (putenv (str) != EXIT_SUCCESS) { XFREE (str); } #endif } } char * lt_extend_str (const char *orig_value, const char *add, int to_end) { char *new_value; if (orig_value && *orig_value) { int orig_value_len = strlen (orig_value); int add_len = strlen (add); new_value = XMALLOC (char, add_len + orig_value_len + 1); if (to_end) { strcpy (new_value, orig_value); strcpy (new_value + orig_value_len, add); } else { strcpy (new_value, add); strcpy (new_value + add_len, orig_value); } } else { new_value = xstrdup (add); } return new_value; } int lt_split_name_value (const char *arg, char** name, char** value) { const char *p; int len; if (!arg || !*arg) return 1; p = strchr (arg, (int)'='); if (!p) return 1; *value = xstrdup (++p); len = strlen (arg) - strlen (*value); *name = XMALLOC (char, len); strncpy (*name, arg, len-1); (*name)[len - 1] = '\0'; return 0; } void lt_opt_process_env_set (const char *arg) { char *name = NULL; char *value = NULL; if (lt_split_name_value (arg, &name, &value) != 0) { XFREE (name); XFREE (value); lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg); } lt_setenv (name, value); XFREE (name); XFREE (value); } void lt_opt_process_env_prepend (const char *arg) { char *name = NULL; char *value = NULL; char *new_value = NULL; if (lt_split_name_value (arg, &name, &value) != 0) { XFREE (name); XFREE (value); lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg); } new_value = lt_extend_str (getenv (name), value, 0); lt_setenv (name, new_value); XFREE (new_value); XFREE (name); XFREE (value); } void lt_opt_process_env_append (const char *arg) { char *name = NULL; char *value = NULL; char *new_value = NULL; if (lt_split_name_value (arg, &name, &value) != 0) { XFREE (name); XFREE (value); lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg); } new_value = lt_extend_str (getenv (name), value, 1); lt_setenv (name, new_value); XFREE (new_value); XFREE (name); XFREE (value); } void lt_update_exe_path (const char *name, const char *value) { LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n", (name ? name : ""), (value ? value : ""))); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); /* some systems can't cope with a ':'-terminated path #' */ int len = strlen (new_value); while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1])) { new_value[len-1] = '\0'; } lt_setenv (name, new_value); XFREE (new_value); } } void lt_update_lib_path (const char *name, const char *value) { LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n", (name ? name : ""), (value ? value : ""))); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); lt_setenv (name, new_value); XFREE (new_value); } } EOF } # end: func_emit_cwrapperexe_src # func_mode_link arg... func_mode_link () { $opt_debug case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) # It is impossible to link a dll without this setting, and # we shouldn't force the makefile maintainer to figure out # which system we are compiling for in order to pass an extra # flag for every libtool invocation. # allow_undefined=no # FIXME: Unfortunately, there are problems with the above when trying # to make a dll which has undefined symbols, in which case not # even a static library is built. For now, we need to specify # -no-undefined on the libtool link line when we can be certain # that all symbols are satisfied, otherwise we get a static library. allow_undefined=yes ;; *) allow_undefined=yes ;; esac libtool_args=$nonopt base_compile="$nonopt $@" compile_command=$nonopt finalize_command=$nonopt compile_rpath= finalize_rpath= compile_shlibpath= finalize_shlibpath= convenience= old_convenience= deplibs= old_deplibs= compiler_flags= linker_flags= dllsearchpath= lib_search_path=`pwd` inst_prefix_dir= new_inherited_linker_flags= avoid_version=no dlfiles= dlprefiles= dlself=no export_dynamic=no export_symbols= export_symbols_regex= generated= libobjs= ltlibs= module=no no_install=no objs= non_pic_objects= precious_files_regex= prefer_static_libs=no preload=no prev= prevarg= release= rpath= xrpath= perm_rpath= temp_rpath= thread_safe=no vinfo= vinfo_number=no weak_libs= single_module="${wl}-single_module" func_infer_tag $base_compile # We need to know -static, to get the right output filenames. for arg do case $arg in -shared) test "$build_libtool_libs" != yes && \ func_fatal_configuration "can not build a shared library" build_old_libs=no break ;; -all-static | -static | -static-libtool-libs) case $arg in -all-static) if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then func_warning "complete static linking is impossible in this configuration" fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; -static) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built ;; -static-libtool-libs) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; esac build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg="$1" shift func_quote_for_eval "$arg" qarg=$func_quote_for_eval_unquoted_result func_append libtool_args " $func_quote_for_eval_result" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) func_append compile_command " @OUTPUT@" func_append finalize_command " @OUTPUT@" ;; esac case $prev in dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. func_append compile_command " @SYMFILE@" func_append finalize_command " @SYMFILE@" preload=yes fi case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test "$dlself" = no; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test "$prev" = dlprefiles; then dlself=yes elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test "$prev" = dlfiles; then dlfiles="$dlfiles $arg" else dlprefiles="$dlprefiles $arg" fi prev= continue ;; esac ;; expsyms) export_symbols="$arg" test -f "$arg" \ || func_fatal_error "symbol file \`$arg' does not exist" prev= continue ;; expsyms_regex) export_symbols_regex="$arg" prev= continue ;; framework) case $host in *-*-darwin*) case "$deplibs " in *" $qarg.ltframework "*) ;; *) deplibs="$deplibs $qarg.ltframework" # this is fixed later ;; esac ;; esac prev= continue ;; inst_prefix) inst_prefix_dir="$arg" prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat "$save_arg"` do # moreargs="$moreargs $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi done else func_fatal_error "link input file \`$arg' does not exist" fi arg=$save_arg prev= continue ;; precious_regex) precious_files_regex="$arg" prev= continue ;; release) release="-$arg" prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; *) rpath="$rpath $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) xrpath="$xrpath $arg" ;; esac fi prev= continue ;; shrext) shrext_cmds="$arg" prev= continue ;; weak) weak_libs="$weak_libs $arg" prev= continue ;; xcclinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xcompiler) compiler_flags="$compiler_flags $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xlinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $wl$qarg" prev= func_append compile_command " $wl$qarg" func_append finalize_command " $wl$qarg" continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg="$arg" case $arg in -all-static) if test -n "$link_static_flag"; then # See comment for -static flag below, for more details. func_append compile_command " $link_static_flag" func_append finalize_command " $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. func_fatal_error "\`-allow-undefined' must not be used because it is the default" ;; -avoid-version) avoid_version=yes continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then func_fatal_error "more than one -exported-symbols argument is not allowed" fi if test "X$arg" = "X-export-symbols"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework) prev=framework continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) func_append compile_command " $arg" func_append finalize_command " $arg" ;; esac continue ;; -L*) func_stripname '-L' '' "$arg" dir=$func_stripname_result if test -z "$dir"; then if test "$#" -gt 0; then func_fatal_error "require no space between \`-L' and \`$1'" else func_fatal_error "need path for \`-L' option" fi fi # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` test -z "$absdir" && \ func_fatal_error "cannot determine absolute directory name of \`$dir'" dir="$absdir" ;; esac case "$deplibs " in *" -L$dir "*) ;; *) deplibs="$deplibs -L$dir" lib_search_path="$lib_search_path $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; ::) dllsearchpath=$dir;; *) dllsearchpath="$dllsearchpath:$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac continue ;; -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework deplibs="$deplibs System.ltframework" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test "X$arg" = "X-lc" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test "X$arg" = "X-lc" && continue ;; esac elif test "X$arg" = "X-lc_r"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi deplibs="$deplibs $arg" continue ;; -module) module=yes continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. # Darwin uses the -arch flag to determine output architecture. -model|-arch|-isysroot) compiler_flags="$compiler_flags $arg" func_append compile_command " $arg" func_append finalize_command " $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) compiler_flags="$compiler_flags $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case "$new_inherited_linker_flags " in *" $arg "*) ;; * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;; esac continue ;; -multi_module) single_module="${wl}-multi_module" continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) # The PATH hackery in wrapper scripts is required on Windows # and Darwin in order for the loader to find any dlls it needs. func_warning "\`-no-install' is ignored for $host" func_warning "assuming \`-no-fast-install' instead" fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) func_stripname '-R' '' "$arg" dir=$func_stripname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac continue ;; -shared) # The effects of -shared are defined in a previous loop. continue ;; -shrext) prev=shrext continue ;; -static | -static-libtool-libs) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -weak) prev=weak continue ;; -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" arg="$arg $wl$func_quote_for_eval_result" compiler_flags="$compiler_flags $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Wl,*) func_stripname '-Wl,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" arg="$arg $wl$func_quote_for_eval_result" compiler_flags="$compiler_flags $wl$func_quote_for_eval_result" linker_flags="$linker_flags $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # -msg_* for osf cc -msg_*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; # -64, -mips[0-9] enable 64-bit mode on the SGI compiler # -r[0-9][0-9]* specifies the processor on the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler # +DA*, +DD* enable 64-bit mode on the HP compiler # -q* pass through compiler args for the IBM compiler # -m*, -t[45]*, -txscale* pass through architecture-specific # compiler args for GCC # -F/path gives path to uninstalled frameworks, gcc on darwin # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC # @file GCC response files -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" func_append compile_command " $arg" func_append finalize_command " $arg" compiler_flags="$compiler_flags $arg" continue ;; # Some other compiler flag. -* | +*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; *.$objext) # A standard object. objs="$objs $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi ;; *.$libext) # An archive. deplibs="$deplibs $arg" old_deplibs="$old_deplibs $arg" continue ;; *.la) # A libtool-controlled library. if test "$prev" = dlfiles; then # This library was specified with -dlopen. dlfiles="$dlfiles $arg" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. dlprefiles="$dlprefiles $arg" prev= else deplibs="$deplibs $arg" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then func_append compile_command " $arg" func_append finalize_command " $arg" fi done # argument parsing loop test -n "$prev" && \ func_fatal_help "the \`$prevarg' option requires an argument" if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" func_append compile_command " $arg" func_append finalize_command " $arg" fi oldlibs= # calculate the name of the file, without its directory func_basename "$output" outputname="$func_basename_result" libobjs_save="$libobjs" if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" func_dirname "$output" "/" "" output_objdir="$func_dirname_result$objdir" # Create the object directory. func_mkdir_p "$output_objdir" # Determine the type of output case $output in "") func_fatal_help "you must specify an output file" ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if $opt_duplicate_deps ; then case "$libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi libs="$libs $deplib" done if test "$linkmode" = lib; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if $opt_duplicate_compiler_generated_deps; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; esac pre_post_deps="$pre_post_deps $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries notinst_path= # paths that contain not-installed libtool libraries case $linkmode in lib) passes="conv dlpreopen link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file" ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=no newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do # The preopen pass in lib mode reverses $deplibs; put it back here # so that -L comes before libs that need it for instance... if test "$linkmode,$pass" = "lib,link"; then ## FIXME: Find the place where the list is rebuilt in the wrong ## order, and fix it there properly tmp_deplibs= for deplib in $deplibs; do tmp_deplibs="$deplib $tmp_deplibs" done deplibs="$tmp_deplibs" fi if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan"; then libs="$deplibs" deplibs= fi if test "$linkmode" = prog; then case $pass in dlopen) libs="$dlfiles" ;; dlpreopen) libs="$dlprefiles" ;; link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; esac fi if test "$linkmode,$pass" = "lib,dlpreopen"; then # Collect and forward deplibs of preopened libtool libs for lib in $dlprefiles; do # Ignore non-libtool-libs dependency_libs= case $lib in *.la) func_source "$lib" ;; esac # Collect preopened libtool deplibs, except any this library # has declared as weak libs for deplib in $dependency_libs; do deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"` case " $weak_libs " in *" $deplib_base "*) ;; *) deplibs="$deplibs $deplib" ;; esac done done libs="$dlprefiles" fi if test "$pass" = dlopen; then # Collect dlpreopened libraries save_deplibs="$deplibs" deplibs= fi for deplib in $libs; do lib= found=no case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; esac fi fi continue ;; -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then func_warning "\`-l' is ignored for archives/objects" continue fi func_stripname '-l' '' "$deplib" name=$func_stripname_result if test "$linkmode" = lib; then searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" else searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" fi for searchdir in $searchdirs; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib="$searchdir/lib${name}${search_ext}" if test -f "$lib"; then if test "$search_ext" = ".la"; then found=yes else found=no fi break 2 fi done done if test "$found" != yes; then # deplib doesn't seem to be a libtool library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue else # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $deplib "*) if func_lalib_p "$lib"; then library_names= old_library= func_source "$lib" for l in $old_library $library_names; do ll="$l" done if test "X$ll" = "X$old_library" ; then # only static version available found=no func_dirname "$lib" "" "." ladir="$func_dirname_result" lib=$ladir/$old_library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi fi ;; # -l *.ltframework) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; esac fi fi continue ;; -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" func_stripname '-L' '' "$deplib" newlib_search_path="$newlib_search_path $func_stripname_result" ;; prog) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi if test "$pass" = scan; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi func_stripname '-L' '' "$deplib" newlib_search_path="$newlib_search_path $func_stripname_result" ;; *) func_warning "\`-L' is ignored for archives/objects" ;; esac # linkmode continue ;; # -L -R*) if test "$pass" = link; then func_stripname '-R' '' "$deplib" dir=$func_stripname_result # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) lib="$deplib" ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) # Linking convenience modules into shared libraries is allowed, # but linking other static libraries is non-portable. case " $dlpreconveniencelibs " in *" $deplib "*) ;; *) valid_a_lib=no case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=yes fi ;; pass_all) valid_a_lib=yes ;; esac if test "$valid_a_lib" != yes; then $ECHO $ECHO "*** Warning: Trying to link with static lib archive $deplib." $ECHO "*** I have the capability to make that library automatically link in when" $ECHO "*** you link to this library. But I can only do this if you have a" $ECHO "*** shared version of the library, which you do not appear to have" $ECHO "*** because the file extensions .$libext of this argument makes me believe" $ECHO "*** that it is just a static archive that I should not use here." else $ECHO $ECHO "*** Warning: Linking the shared library $output against the" $ECHO "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" fi ;; esac continue ;; prog) if test "$pass" != link; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test "$pass" = conv; then deplibs="$deplib $deplibs" elif test "$linkmode" = prog; then if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlopen support or we're linking statically, # we need to preload. newdlprefiles="$newdlprefiles $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else newdlfiles="$newdlfiles $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=yes continue ;; esac # case $deplib if test "$found" = yes || test -f "$lib"; then : else func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'" fi # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$lib" \ || func_fatal_error "\`$lib' is not a valid libtool archive" func_dirname "$lib" "" "." ladir="$func_dirname_result" dlname= dlopen= dlpreopen= libdir= library_names= old_library= inherited_linker_flags= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file func_source "$lib" # Convert "-framework foo" to "foo.ltframework" if test -n "$inherited_linker_flags"; then tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'` for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do case " $new_inherited_linker_flags " in *" $tmp_inherited_linker_flag "*) ;; *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";; esac done fi dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan" || { test "$linkmode" != prog && test "$linkmode" != lib; }; then test -n "$dlopen" && dlfiles="$dlfiles $dlopen" test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" fi if test "$pass" = conv; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # It is a libtool convenience library, so add in its objects. convenience="$convenience $ladir/$objdir/$old_library" old_convenience="$old_convenience $ladir/$objdir/$old_library" elif test "$linkmode" != prog && test "$linkmode" != lib; then func_fatal_error "\`$lib' is not a convenience library" fi tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if $opt_duplicate_deps ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done continue fi # $pass = conv # Get the name of the library we link against. linklib= for l in $old_library $library_names; do linklib="$l" done if test -z "$linklib"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # This library was specified with -dlopen. if test "$pass" = dlopen; then if test -z "$libdir"; then func_fatal_error "cannot -dlopen a convenience library: \`$lib'" fi if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. dlprefiles="$dlprefiles $lib $dependency_libs" else newdlfiles="$newdlfiles $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then func_warning "cannot determine absolute directory name of \`$ladir'" func_warning "passing it literally to the linker, although it might fail" abs_ladir="$ladir" fi ;; esac func_basename "$lib" laname="$func_basename_result" # Find the relevant object directory and library name. if test "X$installed" = Xyes; then if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then func_warning "library \`$lib' was moved." dir="$ladir" absdir="$abs_ladir" libdir="$abs_ladir" else dir="$libdir" absdir="$libdir" fi test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir="$ladir" absdir="$abs_ladir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" fi fi # $installed = yes func_stripname 'lib' '.la' "$laname" name=$func_stripname_result # This library was specified with -dlpreopen. if test "$pass" = dlpreopen; then if test -z "$libdir" && test "$linkmode" = prog; then func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" fi # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then newdlprefiles="$newdlprefiles $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then newdlprefiles="$newdlprefiles $dir/$dlname" else newdlprefiles="$newdlprefiles $dir/$linklib" fi fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test "$linkmode" = lib; then deplibs="$dir/$old_library $deplibs" elif test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test "$linkmode" = prog && test "$pass" != link; then newlib_search_path="$newlib_search_path $ladir" deplibs="$lib $deplibs" linkalldeplibs=no if test "$link_all_deplibs" != no || test -z "$library_names" || test "$build_libtool_libs" = no; then linkalldeplibs=yes fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) func_stripname '-L' '' "$deplib" newlib_search_path="$newlib_search_path $func_stripname_result" ;; esac # Need to link against all dependency_libs? if test "$linkalldeplibs" = yes; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if $opt_duplicate_deps ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done # for deplib continue fi # $linkmode = prog... if test "$linkmode,$pass" = "prog,link"; then if test -n "$library_names" && { { test "$prefer_static_libs" = no || test "$prefer_static_libs,$installed" = "built,yes"; } || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then # Make sure the rpath contains only unique directories. case "$temp_rpath:" in *"$absdir:"*) ;; *) temp_rpath="$temp_rpath$absdir:" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi # $linkmode,$pass = prog,link... if test "$alldeplibs" = yes && { test "$deplibs_check_method" = pass_all || { test "$build_libtool_libs" = yes && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test "$use_static_libs" = built && test "$installed" = yes; then use_static_libs=no fi if test -n "$library_names" && { test "$use_static_libs" = no || test -z "$old_library"; }; then case $host in *cygwin* | *mingw* | *cegcc*) # No point in relinking DLLs because paths are not encoded notinst_deplibs="$notinst_deplibs $lib" need_relink=no ;; *) if test "$installed" = no; then notinst_deplibs="$notinst_deplibs $lib" need_relink=yes fi ;; esac # This is a shared library # Warn about portability, can't link against -module's on some # systems (darwin). Don't bleat about dlopened modules though! dlopenmodule="" for dlpremoduletest in $dlprefiles; do if test "X$dlpremoduletest" = "X$lib"; then dlopenmodule="$dlpremoduletest" break fi done if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then $ECHO if test "$linkmode" = prog; then $ECHO "*** Warning: Linking the executable $output against the loadable module" else $ECHO "*** Warning: Linking the shared library $output against the loadable module" fi $ECHO "*** $linklib is not portable!" fi if test "$linkmode" = lib && test "$hardcode_into_libs" = yes; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names shift realname="$1" shift libname=`eval "\\$ECHO \"$libname_spec\""` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname="$dlname" elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw* | *cegcc*) func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; esac eval soname=\"$soname_spec\" else soname="$realname" fi # Make a new name for the extract_expsyms_cmds to use soroot="$soname" func_basename "$soroot" soname="$func_basename_result" func_stripname 'lib' '.dll' "$soname" newlib=libimp-$func_stripname_result.a # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else func_verbose "extracting exported symbol list from \`$soname'" func_execute_cmds "$extract_expsyms_cmds" 'exit $?' fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else func_verbose "generating import library for \`$soname'" func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test "$linkmode" = prog || test "$mode" != relink; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test "$hardcode_direct" = no; then add="$dir/$linklib" case $host in *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; *-*-sysv4*uw2*) add_dir="-L$dir" ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir="-L$dir" ;; *-*-darwin* ) # if the lib is a (non-dlopened) module then we can not # link against it, someone is ignoring the earlier warnings if /usr/bin/file -L $add 2> /dev/null | $GREP ": [^:]* bundle" >/dev/null ; then if test "X$dlopenmodule" != "X$lib"; then $ECHO "*** Warning: lib $linklib is a module, not a shared library" if test -z "$old_library" ; then $ECHO $ECHO "*** And there doesn't seem to be a static archive available" $ECHO "*** The link will probably fail, sorry" else add="$dir/$old_library" fi elif test -n "$old_library"; then add="$dir/$old_library" fi fi esac elif test "$hardcode_minus_L" = no; then case $host in *-*-sunos*) add_shlibpath="$dir" ;; esac add_dir="-L$dir" add="-l$name" elif test "$hardcode_shlibpath_var" = no; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; relink) if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$dir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; *) lib_linked=no ;; esac if test "$lib_linked" != yes; then func_fatal_configuration "unsupported hardcode properties" fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; esac fi if test "$linkmode" = prog; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test "$hardcode_direct" != yes && test "$hardcode_minus_L" != yes && test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac fi fi fi if test "$linkmode" = prog || test "$mode" = relink; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$libdir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$libdir" add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac add="-l$name" elif test "$hardcode_automatic" = yes; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then add="$inst_prefix_dir$libdir/$linklib" else add="$libdir/$linklib" fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir="-L$libdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" fi if test "$linkmode" = prog; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test "$linkmode" = prog; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test "$hardcode_direct" != unsupported; then test -n "$old_library" && linklib="$old_library" compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test "$build_libtool_libs" = yes; then # Not a shared library if test "$deplibs_check_method" != pass_all; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. $ECHO $ECHO "*** Warning: This system can not link to static lib archive $lib." $ECHO "*** I have the capability to make that library automatically link in when" $ECHO "*** you link to this library. But I can only do this if you have a" $ECHO "*** shared version of the library, which you do not appear to have." if test "$module" = yes; then $ECHO "*** But as you try to build a module library, libtool will still create " $ECHO "*** a static module, that should work as long as the dlopening application" $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then $ECHO $ECHO "*** However, this would only work if libtool was able to extract symbol" $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" $ECHO "*** not find such a program. So, this module is probably useless." $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test "$linkmode" = lib; then if test -n "$dependency_libs" && { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes || test "$link_static" = yes; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) func_stripname '-R' '' "$libdir" temp_xrpath=$func_stripname_result case " $xrpath " in *" $temp_xrpath "*) ;; *) xrpath="$xrpath $temp_xrpath";; esac;; *) temp_deplibs="$temp_deplibs $libdir";; esac done dependency_libs="$temp_deplibs" fi newlib_search_path="$newlib_search_path $absdir" # Link against this library test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" if $opt_duplicate_deps ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do case $deplib in -L*) path="$deplib" ;; *.la) func_dirname "$deplib" "" "." dir="$func_dirname_result" # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then func_warning "cannot determine absolute directory name of \`$dir'" absdir="$dir" fi ;; esac if $GREP "^installed=no" $deplib > /dev/null; then case $host in *-*-darwin*) depdepl= eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names" ; then for tmp in $deplibrary_names ; do depdepl=$tmp done if test -f "$absdir/$objdir/$depdepl" ; then depdepl="$absdir/$objdir/$depdepl" darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` if test -z "$darwin_install_name"; then darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` fi compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}" path= fi fi ;; *) path="-L$absdir/$objdir" ;; esac else eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" test "$absdir" != "$libdir" && \ func_warning "\`$deplib' seems to be moved" path="-L$absdir" fi ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs if test "$pass" = link; then if test "$linkmode" = "prog"; then compile_deplibs="$new_inherited_linker_flags $compile_deplibs" finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" else compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` fi fi dependency_libs="$newdependency_libs" if test "$pass" = dlpreopen; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test "$pass" != dlopen; then if test "$pass" != conv; then # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) lib_search_path="$lib_search_path $dir" ;; esac done newlib_search_path= fi if test "$linkmode,$pass" != "prog,link"; then vars="deplibs" else vars="compile_deplibs finalize_deplibs" fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) tmp_libs="$tmp_libs $deplib" ;; esac ;; *) tmp_libs="$tmp_libs $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs ; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i="" ;; esac if test -n "$i" ; then tmp_libs="$tmp_libs $i" fi done dependency_libs=$tmp_libs done # for pass if test "$linkmode" = prog; then dlfiles="$newdlfiles" fi if test "$linkmode" = prog || test "$linkmode" = lib; then dlprefiles="$newdlprefiles" fi case $linkmode in oldlib) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for archives" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for archives" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for archives" test -n "$xrpath" && \ func_warning "\`-R' is ignored for archives" test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for archives" test -n "$release" && \ func_warning "\`-release' is ignored for archives" test -n "$export_symbols$export_symbols_regex" && \ func_warning "\`-export-symbols' is ignored for archives" # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" objs="$objs$old_deplibs" ;; lib) # Make sure we only generate libraries of the form `libNAME.la'. case $outputname in lib*) func_stripname 'lib' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) test "$module" = no && \ func_fatal_help "libtool library \`$output' must begin with \`lib'" if test "$need_lib_prefix" != no; then # Add the "lib" prefix for modules if required func_stripname '' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else func_stripname '' '.la' "$outputname" libname=$func_stripname_result fi ;; esac if test -n "$objs"; then if test "$deplibs_check_method" != pass_all; then func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" else $ECHO $ECHO "*** Warning: Linking the shared library $output against the non-libtool" $ECHO "*** objects $objs is not portable!" libobjs="$libobjs $objs" fi fi test "$dlself" != no && \ func_warning "\`-dlopen self' is ignored for libtool libraries" set dummy $rpath shift test "$#" -gt 1 && \ func_warning "ignoring multiple \`-rpath's for a libtool library" install_libdir="$1" oldlibs= if test -z "$rpath"; then if test "$build_libtool_libs" = yes; then # Building a libtool convenience library. # Some compilers have problems with a `.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for convenience libraries" test -n "$release" && \ func_warning "\`-release' is ignored for convenience libraries" else # Parse the version information argument. save_ifs="$IFS"; IFS=':' set dummy $vinfo 0 0 0 shift IFS="$save_ifs" test -n "$7" && \ func_fatal_help "too many parameters to \`-version-info'" # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major="$1" number_minor="$2" number_revision="$3" # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # which has an extra 1 added just for fun # case $version_type in darwin|linux|osf|windows|none) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_revision" ;; freebsd-aout|freebsd-elf|sunos) current="$number_major" revision="$number_minor" age="0" ;; irix|nonstopux) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_minor" lt_irix_increment=no ;; esac ;; no) current="$1" revision="$2" age="$3" ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "CURRENT \`$current' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "REVISION \`$revision' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "AGE \`$age' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac if test "$age" -gt "$current"; then func_error "AGE \`$age' is greater than the current interface number \`$current'" func_fatal_error "\`$vinfo' is not valid version information" fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... func_arith $current + 1 minor_current=$func_arith_result xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; freebsd-aout) major=".$current" versuffix=".$current.$revision"; ;; freebsd-elf) major=".$current" versuffix=".$current" ;; irix | nonstopux) if test "X$lt_irix_increment" = "Xno"; then func_arith $current - $age else func_arith $current - $age + 1 fi major=$func_arith_result case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring="$verstring_prefix$major.$revision" # Add in all the interfaces that we are compatible with. loop=$revision while test "$loop" -ne 0; do func_arith $revision - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring_prefix$major.$iface:$verstring" done # Before this point, $major must not contain `.'. major=.$major versuffix="$major.$revision" ;; linux) func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" ;; osf) func_arith $current - $age major=.$func_arith_result versuffix=".$current.$age.$revision" verstring="$current.$age.$revision" # Add in all the interfaces that we are compatible with. loop=$age while test "$loop" -ne 0; do func_arith $current - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring:${iface}.0" done # Make executables depend on our current version. verstring="$verstring:${current}.0" ;; qnx) major=".$current" versuffix=".$current" ;; sunos) major=".$current" versuffix=".$current.$revision" ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 filesystems. func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; *) func_fatal_configuration "unknown library version type \`$version_type'" ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring="0.0" ;; esac if test "$need_version" = no; then versuffix= else versuffix=".0.0" fi fi # Remove version info from name if versioning should be avoided if test "$avoid_version" = yes && test "$need_version" = no; then major= versuffix= verstring="" fi # Check to see if the archive will have undefined symbols. if test "$allow_undefined" = yes; then if test "$allow_undefined_flag" = unsupported; then func_warning "undefined symbols not allowed in $host shared libraries" build_libtool_libs=no build_old_libs=yes fi else # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi fi func_generate_dlsyms "$libname" "$libname" "yes" libobjs="$libobjs $symfileobj" test "X$libobjs" = "X " && libobjs= if test "$mode" != relink; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$ECHO "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext | *.gcno) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) if test "X$precious_files_regex" != "X"; then if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi removelist="$removelist $p" ;; *) ;; esac done test -n "$removelist" && \ func_show_eval "${RM}r \$removelist" fi # Now set the variables for building old libraries. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then oldlibs="$oldlibs $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"` # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"` # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"` #done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do temp_xrpath="$temp_xrpath -R$libdir" case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles="$dlfiles" dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) dlfiles="$dlfiles $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles="$dlprefiles" dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) dlprefiles="$dlprefiles $lib" ;; esac done if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework deplibs="$deplibs System.ltframework" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test "$build_libtool_need_lc" = "yes"; then deplibs="$deplibs -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release="" versuffix="" major="" newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $opt_dry_run || $RM conftest.c cat > conftest.c </dev/null` for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null | $GREP " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib="$potent_lib" while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | $SED -e 10q | $EGREP "$file_magic_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $ECHO $ECHO "*** Warning: linker path does not have real file for library $a_deplib." $ECHO "*** I have the capability to make that library automatically link in when" $ECHO "*** you link to this library. But I can only do this if you have a" $ECHO "*** shared version of the library, which you do not appear to have" $ECHO "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for file magic test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a file magic. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" ;; esac done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` for a_deplib in $deplibs; do case $a_deplib in -l*) func_stripname -l '' "$a_deplib" name=$func_stripname_result if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) newdeplibs="$newdeplibs $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval "\\$ECHO \"$libname_spec\""` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib="$potent_lib" # see symlink-check above in file_magic test if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \ $EGREP "$match_pattern_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $ECHO $ECHO "*** Warning: linker path does not have real file for library $a_deplib." $ECHO "*** I have the capability to make that library automatically link in when" $ECHO "*** you link to this library. But I can only do this if you have a" $ECHO "*** shared version of the library, which you do not appear to have" $ECHO "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a regex pattern. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" ;; esac done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \ -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then for i in $predeps $postdeps ; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"` done fi if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' | $GREP . >/dev/null; then $ECHO if test "X$deplibs_check_method" = "Xnone"; then $ECHO "*** Warning: inter-library dependencies are not supported in this platform." else $ECHO "*** Warning: inter-library dependencies are not known to be supported." fi $ECHO "*** All declared inter-library dependencies are being dropped." droppeddeps=yes fi ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library with the System framework newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'` ;; esac if test "$droppeddeps" = yes; then if test "$module" = yes; then $ECHO $ECHO "*** Warning: libtool could not satisfy all declared inter-library" $ECHO "*** dependencies of module $libname. Therefore, libtool will create" $ECHO "*** a static module, that should work as long as the dlopening" $ECHO "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then $ECHO $ECHO "*** However, this would only work if libtool was able to extract symbol" $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" $ECHO "*** not find such a program. So, this module is probably useless." $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else $ECHO "*** The inter-library dependencies that have been dropped here will be" $ECHO "*** automatically added whenever a program is linked with this library" $ECHO "*** or is declared to -dlopen it." if test "$allow_undefined" = no; then $ECHO $ECHO "*** Since this library must not contain undefined symbols," $ECHO "*** because either the platform does not support them or" $ECHO "*** it was explicitly requested with -no-undefined," $ECHO "*** libtool will only create a static version of it." if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" case $host in *-*-darwin*) newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done deplibs="$new_libs" # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" test "$mode" != relink && rpath="$compile_rpath$rpath" for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" dep_rpath="$dep_rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" if test -n "$hardcode_libdir_flag_spec_ld"; then eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" else eval dep_rpath=\"$hardcode_libdir_flag_spec\" fi fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath="$finalize_shlibpath" test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names shift realname="$1" shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname="$realname" fi if test -z "$dlname"; then dlname=$soname fi lib="$output_objdir/$realname" linknames= for link do linknames="$linknames $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` test "X$libobjs" = "X " && libobjs= delfiles= if test -n "$export_symbols" && test -n "$include_expsyms"; then $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" export_symbols="$output_objdir/$libname.uexp" delfiles="$delfiles $export_symbols" fi orig_export_symbols= case $host_os in cygwin* | mingw* | cegcc*) if test -n "$export_symbols" && test -z "$export_symbols_regex"; then # exporting using user supplied symfile if test "x`$SED 1q $export_symbols`" != xEXPORTS; then # and it's NOT already a .def file. Must figure out # which of the given symbols are data symbols and tag # them as such. So, trigger use of export_symbols_cmds. # export_symbols gets reassigned inside the "prepare # the list of exported symbols" if statement, so the # include_expsyms logic still works. orig_export_symbols="$export_symbols" export_symbols= always_export_symbols=yes fi fi ;; esac # Prepare the list of exported symbols if test -z "$export_symbols"; then if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" func_len " $cmd" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then func_show_eval "$cmd" 'exit $?' skipped_export=false else # The command line is too long to execute in one step. func_verbose "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS="$save_ifs" if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' fi if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) tmp_deplibs="$tmp_deplibs $test_deplib" ;; esac done deplibs="$tmp_deplibs" if test -n "$convenience"; then if test -n "$whole_archive_flag_spec" && test "$compiler_needs_object" = yes && test -z "$libobjs"; then # extract the archives, so we have objects to list. # TODO: could optimize this to just extract one archive. whole_archive_flag_spec= fi if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= else gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $convenience libobjs="$libobjs $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi fi if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" linker_flags="$linker_flags $flag" fi # Make a backup of the uninstalled library when relinking if test "$mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test "X$skipped_export" != "X:" && func_len " $test_cmds" && len=$func_len_result && test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise # or, if using GNU ld and skipped_export is not :, use a linker # script. # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output output_la=`$ECHO "X$output" | $Xsed -e "$basename"` # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= last_robj= k=1 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then output=${output_objdir}/${output_la}.lnkscript func_verbose "creating GNU ld script: $output" $ECHO 'INPUT (' > $output for obj in $save_libobjs do $ECHO "$obj" >> $output done $ECHO ')' >> $output delfiles="$delfiles $output" elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then output=${output_objdir}/${output_la}.lnk func_verbose "creating linker input file list: $output" : > $output set x $save_libobjs shift firstobj= if test "$compiler_needs_object" = yes; then firstobj="$1 " shift fi for obj do $ECHO "$obj" >> $output done delfiles="$delfiles $output" output=$firstobj\"$file_list_spec$output\" else if test -n "$save_libobjs"; then func_verbose "creating reloadable object files..." output=$output_objdir/$output_la-${k}.$objext eval test_cmds=\"$reload_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 # Loop over the list of objects to be linked. for obj in $save_libobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result if test "X$objlist" = X || test "$len" -lt "$max_cmd_len"; then func_append objlist " $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test "$k" -eq 1 ; then # The first file doesn't have a previous command to add. eval concat_cmds=\"$reload_cmds $objlist $last_robj\" else # All subsequent reloadable object files will link in # the last one created. eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\" fi last_robj=$output_objdir/$output_la-${k}.$objext func_arith $k + 1 k=$func_arith_result output=$output_objdir/$output_la-${k}.$objext objlist=$obj func_len " $last_robj" func_arith $len0 + $func_len_result len=$func_arith_result fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" if test -n "$last_robj"; then eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" fi delfiles="$delfiles $output" else output= fi if ${skipped_export-false}; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols libobjs=$output # Append the command to create the export file. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi fi test -n "$save_libobjs" && func_verbose "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs="$IFS"; IFS='~' for cmd in $concat_cmds; do IFS="$save_ifs" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" if test -n "$export_symbols_regex" && ${skipped_export-false}; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi if ${skipped_export-false}; then if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' fi if test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi fi libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi fi if test -n "$delfiles"; then # Append the command to remove temporary files to $cmds. eval cmds=\"\$cmds~\$RM $delfiles\" fi # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $dlprefiles libobjs="$libobjs $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" # Restore the uninstalled library and exit if test "$mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then func_show_eval '${RM}r "$gentop"' fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' fi done # If -module or -export-dynamic was specified, set the dlname. if test "$module" = yes || test "$export_dynamic" = yes; then # On all known operating systems, these are identical. dlname="$soname" fi fi ;; obj) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for objects" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for objects" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for objects" test -n "$xrpath" && \ func_warning "\`-R' is ignored for objects" test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for objects" test -n "$release" && \ func_warning "\`-release' is ignored for objects" case $output in *.lo) test -n "$objs$old_deplibs" && \ func_fatal_error "cannot build library object \`$output' from non-libtool objects" libobj=$output func_lo2o "$libobj" obj=$func_lo2o_result ;; *) libobj= obj="$output" ;; esac # Delete the old objects. $opt_dry_run || $RM $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # reload_cmds runs $LD directly, so let us get rid of # -Wl from whole_archive_flag_spec and hope we can get by with # turning comma into space.. wl= if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'` else gentop="$output_objdir/${obj}x" generated="$generated $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # Create the old-style object. reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" func_execute_cmds "$reload_cmds" 'exit $?' # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS fi if test "$build_libtool_libs" != yes; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS fi if test -n "$pic_flag" || test "$pic_mode" != default; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output="$libobj" func_execute_cmds "$reload_cmds" 'exit $?' fi if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) func_stripname '' '.exe' "$output" output=$func_stripname_result.exe;; esac test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for programs" test -n "$release" && \ func_warning "\`-release' is ignored for programs" test "$preload" = yes \ && test "$dlopen_support" = unknown \ && test "$dlopen_self" = unknown \ && test "$dlopen_self_static" = unknown && \ func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support." case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` ;; esac case $host in *-*-darwin*) # Don't allow lazy linking, it breaks C++ global constructors # But is supposedly fixed on 10.4 or later (yay!). if test "$tagname" = CXX ; then case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 10.[0123]) compile_command="$compile_command ${wl}-bind_at_load" finalize_command="$finalize_command ${wl}-bind_at_load" ;; esac fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done compile_deplibs="$new_libs" compile_command="$compile_command $compile_deplibs" finalize_command="$finalize_command $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; ::) dllsearchpath=$libdir;; *) dllsearchpath="$dllsearchpath:$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath="$rpath" rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath="$rpath" if test -n "$libobjs" && test "$build_old_libs" = yes; then # Transform all the library objects into standard objects. compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` fi func_generate_dlsyms "$outputname" "@PROGRAM@" "no" # template prelinking step if test -n "$prelink_cmds"; then func_execute_cmds "$prelink_cmds" 'exit $?' fi wrappers_required=yes case $host in *cygwin* | *mingw* ) if test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; *cegcc) # Disable wrappers for cegcc, we are cross compiling anyway. wrappers_required=no ;; *) if test "$need_relink" = no || test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; esac if test "$wrappers_required" = no; then # Replace the output file specification. compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. exit_status=0 func_show_eval "$link_command" 'exit_status=$?' # Delete the generated files. if test -f "$output_objdir/${outputname}S.${objext}"; then func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' fi exit $exit_status fi if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do rpath="$rpath$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test "$no_install" = yes; then # We don't need to create a wrapper script. link_command="$compile_var$compile_command$compile_rpath" # Replace the output file specification. link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $opt_dry_run || $RM $output # Link the executable and exit func_show_eval "$link_command" 'exit $?' exit $EXIT_SUCCESS fi if test "$hardcode_action" = relink; then # Fast installation is not supported link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" func_warning "this platform does not like uninstalled shared libraries" func_warning "\`$output' will be relinked during installation" else if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` else # fast_install is set to needless relink_command= fi else link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" fi fi # Replace the output file specification. link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname func_show_eval "$link_command" 'exit $?' # Now create the wrapper script. func_verbose "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` fi # Quote $ECHO for shipping. if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then case $progpath in [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; esac qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"` else qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"` fi # Only actually do things if not in dry run mode. $opt_dry_run || { # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) func_stripname '' '.exe' "$output" output=$func_stripname_result ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe func_stripname '' '.exe' "$outputname" outputname=$func_stripname_result ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) func_dirname_and_basename "$output" "" "." output_name=$func_basename_result output_path=$func_dirname_result cwrappersource="$output_path/$objdir/lt-$output_name.c" cwrapper="$output_path/$output_name.exe" $RM $cwrappersource $cwrapper trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 func_emit_cwrapperexe_src > $cwrappersource # The wrapper executable is built using the $host compiler, # because it contains $host paths and files. If cross- # compiling, it, like the target executable, must be # executed on the $host or under an emulation environment. $opt_dry_run || { $LTCC $LTCFLAGS -o $cwrapper $cwrappersource $STRIP $cwrapper } # Now, create the wrapper script for func_source use: func_ltwrapper_scriptname $cwrapper $RM $func_ltwrapper_scriptname_result trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 $opt_dry_run || { # note: this script will not be executed, so do not chmod. if test "x$build" = "x$host" ; then $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result else func_emit_wrapper no > $func_ltwrapper_scriptname_result fi } ;; * ) $RM $output trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 func_emit_wrapper no > $output chmod +x $output ;; esac } exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do if test "$build_libtool_libs" = convenience; then oldobjs="$libobjs_save $symfileobj" addlibs="$convenience" build_libtool_libs=no else if test "$build_libtool_libs" = module; then oldobjs="$libobjs_save" build_libtool_libs=no else oldobjs="$old_deplibs $non_pic_objects" if test "$preload" = yes && test -f "$symfileobj"; then oldobjs="$oldobjs $symfileobj" fi fi addlibs="$old_convenience" fi if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $addlibs oldobjs="$oldobjs $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then cmds=$old_archive_from_new_cmds else # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $dlprefiles oldobjs="$oldobjs $func_extract_archives_result" fi # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do func_basename "$obj" $ECHO "$func_basename_result" done | sort | sort -uc >/dev/null 2>&1); then : else $ECHO "copying selected object files to avoid basename conflicts..." gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_mkdir_p "$gentop" save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do func_basename "$obj" objbase="$func_basename_result" case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase func_arith $counter + 1 counter=$func_arith_result case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" oldobjs="$oldobjs $gentop/$newobj" ;; *) oldobjs="$oldobjs $obj" ;; esac done fi eval cmds=\"$old_archive_cmds\" func_len " $cmds" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts func_verbose "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs oldobjs= # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done eval test_cmds=\"$old_archive_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 for obj in $save_oldobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result func_append objlist " $obj" if test "$len" -lt "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj" ; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" objlist= len=$len0 fi done RANLIB=$save_RANLIB oldobjs=$objlist if test "X$oldobjs" = "X" ; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi func_execute_cmds "$cmds" 'exit $?' done test -n "$generated" && \ func_show_eval "${RM}r$generated" # Now create the libtool archive. case $output in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.$libext" func_verbose "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` if test "$hardcode_automatic" = yes ; then relink_command= fi # Only create the output if not a dry run. $opt_dry_run || { for installed in no yes; do if test "$installed" = yes; then if test -z "$install_libdir"; then break fi output="$output_objdir/$outputname"i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) func_basename "$deplib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" newdependency_libs="$newdependency_libs $libdir/$name" ;; *) newdependency_libs="$newdependency_libs $deplib" ;; esac done dependency_libs="$newdependency_libs" newdlfiles= for lib in $dlfiles; do case $lib in *.la) func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" newdlfiles="$newdlfiles $libdir/$name" ;; *) newdlfiles="$newdlfiles $lib" ;; esac done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in *.la) # Only pass preopened files to the pseudo-archive (for # eventual linking with the app. that links it) if we # didn't already link the preopened objects directly into # the library: func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" newdlprefiles="$newdlprefiles $libdir/$name" ;; esac done dlprefiles="$newdlprefiles" else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlfiles="$newdlfiles $abs" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlprefiles="$newdlprefiles $abs" done dlprefiles="$newdlprefiles" fi $RM $output # place dlname in correct position for cygwin tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; esac $ECHO > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Linker flags that can not go in dependency_libs. inherited_linker_flags='$new_inherited_linker_flags' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Names of additional weak libraries provided by this library weak_library_names='$weak_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test "$installed" = no && test "$need_relink" = yes; then $ECHO >> $output "\ relink_command=\"$relink_command\"" fi done } # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' ;; esac exit $EXIT_SUCCESS } { test "$mode" = link || test "$mode" = relink; } && func_mode_link ${1+"$@"} # func_mode_uninstall arg... func_mode_uninstall () { $opt_debug RM="$nonopt" files= rmforce= exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" for arg do case $arg in -f) RM="$RM $arg"; rmforce=yes ;; -*) RM="$RM $arg" ;; *) files="$files $arg" ;; esac done test -z "$RM" && \ func_fatal_help "you must specify an RM program" rmdirs= origobjdir="$objdir" for file in $files; do func_dirname "$file" "" "." dir="$func_dirname_result" if test "X$dir" = X.; then objdir="$origobjdir" else objdir="$dir/$origobjdir" fi func_basename "$file" name="$func_basename_result" test "$mode" = uninstall && objdir="$dir" # Remember objdir for removal later, being careful to avoid duplicates if test "$mode" = clean; then case " $rmdirs " in *" $objdir "*) ;; *) rmdirs="$rmdirs $objdir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if { test -L "$file"; } >/dev/null 2>&1 || { test -h "$file"; } >/dev/null 2>&1 || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif test "$rmforce" = yes; then continue fi rmfiles="$file" case $name in *.la) # Possibly a libtool archive, so verify it. if func_lalib_p "$file"; then func_source $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do rmfiles="$rmfiles $objdir/$n" done test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" case "$mode" in clean) case " $library_names " in # " " in the beginning catches empty $dlname *" $dlname "*) ;; *) rmfiles="$rmfiles $objdir/$dlname" ;; esac test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if func_lalib_p "$file"; then # Read the .lo file func_source $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" && test "$pic_object" != none; then rmfiles="$rmfiles $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" && test "$non_pic_object" != none; then rmfiles="$rmfiles $dir/$non_pic_object" fi fi ;; *) if test "$mode" = clean ; then noexename=$name case $file in *.exe) func_stripname '' '.exe' "$file" file=$func_stripname_result func_stripname '' '.exe' "$name" noexename=$func_stripname_result # $file with .exe has already been added to rmfiles, # add $file without .exe rmfiles="$rmfiles $file" ;; esac # Do a test to see if this is a libtool program. if func_ltwrapper_p "$file"; then if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" relink_command= func_source $func_ltwrapper_scriptname_result rmfiles="$rmfiles $func_ltwrapper_scriptname_result" else relink_command= func_source $dir/$noexename fi # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then rmfiles="$rmfiles $objdir/lt-$name" fi if test "X$noexename" != "X$name" ; then rmfiles="$rmfiles $objdir/lt-${noexename}.c" fi fi fi ;; esac func_show_eval "$RM $rmfiles" 'exit_status=1' done objdir="$origobjdir" # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then func_show_eval "rmdir $dir >/dev/null 2>&1" fi done exit $exit_status } { test "$mode" = uninstall || test "$mode" = clean; } && func_mode_uninstall ${1+"$@"} test -z "$mode" && { help="$generic_help" func_fatal_help "you must specify a MODE" } test -z "$exec_cmd" && \ func_fatal_help "invalid operation mode \`$mode'" if test -n "$exec_cmd"; then eval exec "$exec_cmd" exit $EXIT_FAILURE fi exit $exit_status # The TAGs below are defined such that we never get into a situation # in which we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared build_libtool_libs=no build_old_libs=yes # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: # vi:sw=2 oprofile-0.9.9/libregex/0000775000076400007640000000000012175511556012174 500000000000000oprofile-0.9.9/libregex/demangle_java_symbol.cpp0000664000076400007640000001035112175510134016751 00000000000000/** * @file demangle_java_symbol.cpp * Demangle a java symbol * * @remark Copyright 2007 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie */ #include "demangle_java_symbol.h" #include using namespace std; namespace { /** * The grammar we implement: * * field_type: * base_type | object_type | array_type * base_type: * B | C | D | F | I | J | S | Z * object_type: * L; * array_type: * [field_type * method_descriptor: * ( field_type* ) return_descriptor * return_descriptor: * field_type | V * method_signature: * object_type method_name method_descriptor * */ bool array_type(string & result, string::const_iterator & begin, string::const_iterator end); bool object_type(string & result, string::const_iterator & begin, string::const_iterator end); bool base_type(string & result, string::const_iterator & begin, string::const_iterator end) { bool ret = true; if (begin == end) return false; switch (*begin) { case 'B': result += "byte"; break; case 'C': result += "char"; break; case 'D': result += "double"; break; case 'F': result += "float"; break; case 'I': result += "int"; break; case 'J': result += "long"; break; case 'S': result += "short"; break; case 'Z': result += "boolean"; break; default: ret = false; break; } if (ret) ++begin; return ret; } bool field_type(string & result, string::const_iterator & begin, string::const_iterator end) { if (base_type(result, begin, end)) return true; if (object_type(result, begin, end)) return true; if (array_type(result, begin, end)) return true; return false; } bool array_type(string & result, string::const_iterator & begin, string::const_iterator end) { if (begin == end || *begin != '[') return false; ++begin; if (field_type(result, begin, end)) { result += "[]"; return true; } return false; } bool list_of_field_type(string & result, string::const_iterator & begin, string::const_iterator end) { bool first = false; while (begin != end) { if (first) result += ", "; if (!field_type(result, begin, end)) return false; first = true; } return true; } bool return_descriptor(string & result, string::const_iterator & begin, string::const_iterator end) { if (begin == end) return false; if (*begin == 'V') { ++begin; result = "void " + result; return true; } string temp; if (!field_type(temp, begin, end)) return false; result = temp + " " + result; return true; } bool method_descriptor(string & result, string::const_iterator & begin, string::const_iterator end) { if (begin == end || *begin != '(') return false; ++begin; string::const_iterator pos = find(begin, end, ')'); if (pos == end) return false; result += "("; if (!list_of_field_type(result, begin, pos)) return false; if (begin == end || *begin != ')') return false; ++begin; if (!return_descriptor(result, begin, end)) return false; result += ')'; return true; } bool methode_name(string & result, string::const_iterator & begin, string::const_iterator end) { if (begin == end) return false; string::const_iterator pos = find(begin, end, '('); if (pos == end) return false; result += '.' + string(begin, pos); begin = pos; return true; } bool object_type(string & result, string::const_iterator & begin, string::const_iterator end) { if (begin == end || *begin != 'L') return false; string::const_iterator pos = find(begin, end, ';'); if (pos == end) return false; string temp = string(begin + 1, pos); replace(temp.begin(), temp.end(), '/', '.'); result += temp; begin = pos + 1; return true; } string demangle_symbol(string::const_iterator begin, string::const_iterator end) { string result; if (!object_type(result, begin, end)) return string(); if (!methode_name(result, begin, end)) return string(); if (!method_descriptor(result, begin, end)) return string(); if (begin != end) { if (*begin == '~') { // special case for disambiguated symbol. result += string(begin, end); } else { return string(); } } return result; } } // anonymous namespace string const demangle_java_symbol(string const & name) { return demangle_symbol(name.begin(), name.end()); } oprofile-0.9.9/libregex/Makefile.in0000664000076400007640000005677612175510234014176 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libregex DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(srcdir)/stl.pat.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = stl.pat CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) ARFLAGS = cru libop_regex_a_AR = $(AR) $(ARFLAGS) libop_regex_a_LIBADD = am_libop_regex_a_OBJECTS = op_regex.$(OBJEXT) \ demangle_symbol.$(OBJEXT) demangle_java_symbol.$(OBJEXT) libop_regex_a_OBJECTS = $(am_libop_regex_a_OBJECTS) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libop_regex_a_SOURCES) DIST_SOURCES = $(libop_regex_a_SOURCES) RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__installdirs = "$(DESTDIR)$(datadir)" DATA = $(nodist_data_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = $(prefix)/share/oprofile datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ SUBDIRS = . tests AM_CPPFLAGS = -I ${top_srcdir}/libutil++ @OP_CPPFLAGS@ AM_CXXFLAGS = @OP_CXXFLAGS@ noinst_LIBRARIES = libop_regex.a libop_regex_a_SOURCES = \ op_regex.cpp \ op_regex.h \ demangle_symbol.h \ demangle_symbol.cpp \ demangle_java_symbol.h \ demangle_java_symbol.cpp nodist_data_DATA = stl.pat all: all-recursive .SUFFIXES: .SUFFIXES: .cpp .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libregex/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign libregex/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): stl.pat: $(top_builddir)/config.status $(srcdir)/stl.pat.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) libop_regex.a: $(libop_regex_a_OBJECTS) $(libop_regex_a_DEPENDENCIES) -rm -f libop_regex.a $(libop_regex_a_AR) libop_regex.a $(libop_regex_a_OBJECTS) $(libop_regex_a_LIBADD) $(RANLIB) libop_regex.a mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/demangle_java_symbol.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/demangle_symbol.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/op_regex.Po@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-nodist_dataDATA: $(nodist_data_DATA) @$(NORMAL_INSTALL) test -z "$(datadir)" || $(MKDIR_P) "$(DESTDIR)$(datadir)" @list='$(nodist_data_DATA)'; test -n "$(datadir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(datadir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(datadir)" || exit $$?; \ done uninstall-nodist_dataDATA: @$(NORMAL_UNINSTALL) @list='$(nodist_data_DATA)'; test -n "$(datadir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ test -n "$$files" || exit 0; \ echo " ( cd '$(DESTDIR)$(datadir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(datadir)" && rm -f $$files # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(LIBRARIES) $(DATA) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(datadir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \ mostlyclean-am distclean: distclean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-nodist_dataDATA install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-nodist_dataDATA .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic clean-libtool \ clean-noinstLIBRARIES ctags ctags-recursive distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-nodist_dataDATA install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-recursive uninstall uninstall-am \ uninstall-nodist_dataDATA # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/libregex/stl.pat.in0000664000076400007640000002330512175510134014023 00000000000000# format : # $name = "regular_definition" # "pattern" = "substitued_pattern" # pattern can contain reference to regular definition with ${name} # this occurence are substitued in pattern by their definition # regular_definition containing other regular_definition refer always to a # previously defined regular definition so they can look like recursive but are # not. op_regex.cpp do sucessive apply of pattern whilst change occur (with a # hard limit on number of subsitutions) so you can apply successive change to # translate first to an intermediate simplified form then continue substitution # in another pattern (see iosfwd section). The number of grouping regexp is # limited, see static const size_t max_match; in op_regex.h. Note than mangled # name produce can be illegal as I choose to output like vector> rather # than vector > # man regex is a friend, is it your ? $integer = "\<[0-9]+" $identifier = "\<[_a-zA-Z][_a-zA-Z0-9]*" $typename = "${identifier}(::${identifier})*" $typename = "${typename}(<${typename}(, ${typename})*>)*" # adding more substitution allow more nested templated type but we run out of # \digit which is a wall. Indeed if you add more () grouping you need to # rename all relevant \digit in pattern which use this regular definition # $typename = "${typename}(<${typename}(, ${typename})*>)*" # finally add standard C type not recognized by above patterns, the way to add # pointer is ugly but we can't add any grouping to not overrun 9 max group # in left pattern rules side.. $typename = "(${typename}[ ]*\**|unsigned short[ ]**\**|unsigned int[ ]*\**|unsigned long[ ]*\**|unsigned char[ ]*\**|signed char[ ]*\**|long long[ ]*\**|unsigned long long[ ]*\**|long double[ ]*\**)" $ptrdiff_t_type = "(int|long)" # FIXME: really discussable but simplify output and the next pattern. "\" = ">" # for these two we can't match begin of word. "\{anonymous\}::" = "" "\(anonymous namespace\)::" = "" # specific to gcc 2.95 "\, __default_alloc_template>" = "string" # two pass, first shrink allocator<> then less<> allowing map with user defined # comparator "\<(multi)?map<${typename}, ${typename}, ${typename}, allocator<\8>>" = "\1map<\2, \8, \e>" "\<(multi)?map<${typename}, ${typename}, less<\2>>" = "\1map<\2, \8>" "\" = "bitset<\1>" "\<([io]stream_iterator)" = "\1" # common to all supported gcc version. "\, 0>" = "deque<\1>" "\<(stack|queue)<${typename}, deque<\2>>" = "\1<\2>" "\<(vector|list|deque)<${typename}, allocator<\2>>" = "\1<\2>" # strictly speaking 3rd parameters is less "\, less<\1>>" = "priority_queue<\1>" # two pass, first shrink allocator<> then less<> allowing map with user defined # comparator "\<(multi)?set<${typename}, ${typename}, allocator<\2>>" = "\1set<\2, \8>" "\<(multi)?set<${typename}, less<\2>>" = "\1set<\2>" # get ride of _Rb_tree iterator typedef, these are also mapped by map/set but # we can't distinguish a set>::iterator and a # map::iterator as they decay to an identical typedef so we don't try # to be clever here. "\<_Rb_tree_iterator<${typename}, \1 const[ ]*&, \1 const[ ]*\*>" = "_Rb_tree<\1>::const_iterator" "\<_Rb_tree_iterator<${typename}, \1[ ]*&, \1[ ]*\*>" = "_Rb_tree<\1>::iterator" # important special case for map/multimap iterator "\<_Rb_tree_iterator<(pair<${typename} const, ${typename}>), \1 const[ ]*&, \1 const[ ]*\*>" = "_Rb_tree<\1>::const_iterator" "\<_Rb_tree_iterator<(pair<${typename} const, ${typename}>), \1[ ]*&, \1[ ]*\*>" = "_Rb_tree<\1>::iterator" # 2.95/3.2 set/multiset implementation "\<_Rb_tree<${typename}, \1, _Identity<\1>, ${typename}, allocator<\1>>" = "_Rb_tree<\1, \1, _Identity<\1>, \7>" "_Rb_tree<${typename}, \1, _Identity<\1>, less<\1>>" = "_Rb_tree<\1, \1, _Identity<\1>>" # 2.95 map/multimap implementation "\<_Rb_tree<${typename}, pair<\1 const, (${typename}( const)?)>, _Select1st>, less<\1>, allocator<\7>>" = "_Rb_tree<\1, pair<\1 const, \7>, _Select1st>, less<\1>>" # 3.2 map/multimap implementation "\<_Rb_tree<${typename}, pair<\1 const, ${typename}>, _Select1st>, less<\1>, allocator>>" = "_Rb_tree<\1, pair<\1 const, \7>, _Select1st>, less<\1>>" # now we can shrink default comparator. "\<_Rb_tree<${typename}, pair<\1 const, (${typename}( const)?)>, _Select1st>, less<\1>>" = "_Rb_tree<\1, pair<\1 const, \7>, _Select1st>>" # get rid of _Select1st and _Identity # FIXME: the presence od _Identity<> and _Select1st<> allowed to quickly # differentiate a set or a map, the rule now to differentiate them is: # second parameter to _Rb_tree* is a pair<> ==> map else set<>. Either we need # to document this or remove _Identity and _Select1st pattern "\<_Identity<${typename}>" = "\1" "\<_Select1st>" = "\1 const" "\<_List_base<${typename}, allocator<\1>>" = "_List_base<\1>" # 2.95 templatized operator<< and >> exist only for std::string "\, __default_alloc_template>\(ostream &, string const &\)" = "ostream & operator<<(ostream &, string const &)" "\>|getline), __default_alloc_template>\(istream &, string &\)" = "istream & \1(istream &, string &)" # 3.0 templatized operator<< and >> exist only for std::string "\, allocator>\(ostream&, string const&\)" = "ostream & operator<<(ostream &, string const &)" "\>|getline) , allocator>\(istream&, string&\)" = "istream & \1(istream &, string &)" # 2.95/3.2 algorithm "\<(${typename}( const)?) \* find<\1 \*, ${typename}>\(\1 \*, \1 \*, \9 const &, ${typename}\)" = "\1 * find(\1 *, \1 *, \9 const &, \f)" "\<(${typename}( const)?) \* find_if<\1 \*, ${typename}>\(\1 \*, \1 \*, \9, random_access_iterator_tag)" = "\1 * find_if(\1 *, \1 *, \9, random_access_iterator_tag)" # gcc 3.2, not tested on 3.0, 3.1 but probably work. # FIXME: there is a potential problem here with map # the pair become pair<\2, \8> not pair<\2 const, \8>, who use the above, # is it legal ? # two pass, first shrink allocator<> then less<> allowing map with user defined # comparator "\<(multi)?map<${typename}, ${typename}, ${typename}, allocator>>" = "\1map<\2, \8, \e>" # this one exist already for 2.95 the first transformation giving a common # form for 2.95/3.2 # "\<(multi)?map<${typename}, ${typename}, less<\2>>" = "\1map<\2, \8>" "\" = "bitset<\2>" # iterator "\" = "iterator<\1_iterator_tag, \2>" "\<([io]stream_iterator)<${typename}, char, char_traits, ${ptrdiff_t_type}>" = "\1<\2>" # __gnu_cxx::__normal_iterator are used in two context: basic_string<> and # vector we decay them to string::iterator, vector::iterator "\<__gnu_cxx::__normal_iterator" = "string::const_iterator" "\<__gnu_cxx::__normal_iterator" = "string::iterator" "\<__gnu_cxx::__normal_iterator" = "wstring::const_iterator" "\<__gnu_cxx::__normal_iterator" = "wstring::iterator" "\<__gnu_cxx::__normal_iterator<${typename} const\*, vector<\1>>" = "vector<\1>::const_iterator" "\<__gnu_cxx::__normal_iterator<${typename}\*, vector<\1>>" = "vector<\1>::iterator" # 2.95 use only _List_iterator, 3.2 use also _List_iterator_base but since # list::iterator is a typedef to _List_iterator we don't need to deal with # _List_iterator_base "\<_List_iterator<${typename}, \1[ ]*&, \1[ ]*\*>" = "list<\1>::iterator" "\<_List_iterator<${typename}, \1 const[ ]*&, \1 const[ ]*\*>" = "list<\1>::const_iterator" # iosfwd, std::string and std::wstring # first translate from "basic_xxx>" to "basic_xxx" "\<([io]streambuf_iterator|basic_(ios|streambuf|([io]|io)stream|filebuf|[io]?fstream))<${typename}, char_traits<\4>>" = "\1<\4>" # as above translate from "basic_xxx, ...>" to "basic_xxx" "\, allocator<\3>>" = "basic_\1<\3>" # now we can translate the two above for char, wchar_t to standardese typedef $iosfwd_name = "\" = "\1" "\<${iosfwd_name}" = "w\1" # streampos and wstreampos decay to the same type, they are undistingushable # in mangled name so substitute for the most probable, not a big deal "\" = "streampos" # locale # strictly speaking this accept num_put<..., istream_iterator<...> > or # num_get<..., ostream_iterator<...> > but this can't compile so no big deal "\<(money|time|num)_(put|get)<${typename}, (i|o)streambuf_iterator<\3>>" = "\1_\2<\3>" "\" = "moneypunct\1<\2>" # 3.2 algorithm "\<(vector<${typename}>::(const_)?iterator) find<\1, ${typename}>\(\1, \1, \9 const&, ${typename}\)" = "\1 find(\1, \1, \9 const&, \f)" "\<((string|wstring)::(const_)?iterator) find<\1, ${typename}>\(\1, \1, \4 const&, ${typename}\)" = "\1 find(\1, \1, \4 const&, \a)" "\<(vector<${typename}>::(const_)?iterator) find_if<\1, ${typename}>\(\1, \1, \9, random_access_iterator_tag\)" = "\1 find_if(\1, \1, \9, random_access_iterator_tag)" "\<((string|wstring)::(const_)?iterator) find_if<\1, ${typename}>\(\1, \1, \4, random_access_iterator_tag\)" = "\1 find_if(\1, \1, \4, random_access_iterator_tag)" oprofile-0.9.9/libregex/demangle_java_symbol.h0000664000076400007640000000061012175510134016413 00000000000000/** * @file demangle_java_symbol.h * Demangle a java symbol * * @remark Copyright 2007 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie */ #ifndef DEMANGLE_JAVA_SYMBOL_H #define DEMANGLE_JAVA_SYMBOL_H #include /// Return an empty string on error std::string const demangle_java_symbol(std::string const & name); #endif // DEMANGLE_JAVA_SYMBOL_H oprofile-0.9.9/libregex/tests/0000775000076400007640000000000012175511556013336 500000000000000oprofile-0.9.9/libregex/tests/Makefile.in0000664000076400007640000004577512175510234015335 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ check_PROGRAMS = regex_test$(EXEEXT) java_test$(EXEEXT) TESTS = $(check_PROGRAMS) subdir = libregex/tests DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(srcdir)/mangled-name.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = mangled-name CONFIG_CLEAN_VPATH_FILES = am_java_test_OBJECTS = java_test.$(OBJEXT) java_test_OBJECTS = $(am_java_test_OBJECTS) java_test_DEPENDENCIES = ../libop_regex.a ../../libutil++/libutil++.a am_regex_test_OBJECTS = regex_test.$(OBJEXT) regex_test_OBJECTS = $(am_regex_test_OBJECTS) regex_test_DEPENDENCIES = ../libop_regex.a ../../libutil++/libutil++.a DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(java_test_SOURCES) $(regex_test_SOURCES) DIST_SOURCES = $(java_test_SOURCES) $(regex_test_SOURCES) ETAGS = etags CTAGS = ctags am__tty_colors = \ red=; grn=; lgn=; blu=; std= DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ AM_CPPFLAGS = \ -I ${top_srcdir}/libutil++ \ -I ${top_srcdir}/libregex AM_CXXFLAGS = @OP_CXXFLAGS@ regex_test_SOURCES = regex_test.cpp regex_test_LDADD = \ ../libop_regex.a \ ../../libutil++/libutil++.a java_test_SOURCES = java_test.cpp java_test_LDADD = \ ../libop_regex.a \ ../../libutil++/libutil++.a EXTRA_DIST = mangled-name.in all: all-am .SUFFIXES: .SUFFIXES: .cpp .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libregex/tests/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign libregex/tests/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mangled-name: $(top_builddir)/config.status $(srcdir)/mangled-name.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ clean-checkPROGRAMS: @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list java_test$(EXEEXT): $(java_test_OBJECTS) $(java_test_DEPENDENCIES) @rm -f java_test$(EXEEXT) $(CXXLINK) $(java_test_OBJECTS) $(java_test_LDADD) $(LIBS) regex_test$(EXEEXT): $(regex_test_OBJECTS) $(regex_test_DEPENDENCIES) @rm -f regex_test$(EXEEXT) $(CXXLINK) $(regex_test_OBJECTS) $(regex_test_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/java_test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/regex_test.Po@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags check-TESTS: $(TESTS) @failed=0; all=0; xfail=0; xpass=0; skip=0; \ srcdir=$(srcdir); export srcdir; \ list=' $(TESTS) '; \ $(am__tty_colors); \ if test -n "$$list"; then \ for tst in $$list; do \ if test -f ./$$tst; then dir=./; \ elif test -f $$tst; then dir=; \ else dir="$(srcdir)/"; fi; \ if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$tst[\ \ ]*) \ xpass=`expr $$xpass + 1`; \ failed=`expr $$failed + 1`; \ col=$$red; res=XPASS; \ ;; \ *) \ col=$$grn; res=PASS; \ ;; \ esac; \ elif test $$? -ne 77; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$tst[\ \ ]*) \ xfail=`expr $$xfail + 1`; \ col=$$lgn; res=XFAIL; \ ;; \ *) \ failed=`expr $$failed + 1`; \ col=$$red; res=FAIL; \ ;; \ esac; \ else \ skip=`expr $$skip + 1`; \ col=$$blu; res=SKIP; \ fi; \ echo "$${col}$$res$${std}: $$tst"; \ done; \ if test "$$all" -eq 1; then \ tests="test"; \ All=""; \ else \ tests="tests"; \ All="All "; \ fi; \ if test "$$failed" -eq 0; then \ if test "$$xfail" -eq 0; then \ banner="$$All$$all $$tests passed"; \ else \ if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \ banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \ fi; \ else \ if test "$$xpass" -eq 0; then \ banner="$$failed of $$all $$tests failed"; \ else \ if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \ banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \ fi; \ fi; \ dashes="$$banner"; \ skipped=""; \ if test "$$skip" -ne 0; then \ if test "$$skip" -eq 1; then \ skipped="($$skip test was not run)"; \ else \ skipped="($$skip tests were not run)"; \ fi; \ test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$skipped"; \ fi; \ report=""; \ if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ report="Please report to $(PACKAGE_BUGREPORT)"; \ test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$report"; \ fi; \ dashes=`echo "$$dashes" | sed s/./=/g`; \ if test "$$failed" -eq 0; then \ echo "$$grn$$dashes"; \ else \ echo "$$red$$dashes"; \ fi; \ echo "$$banner"; \ test -z "$$skipped" || echo "$$skipped"; \ test -z "$$report" || echo "$$report"; \ echo "$$dashes$$std"; \ test "$$failed" -eq 0; \ else :; fi distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) $(MAKE) $(AM_MAKEFLAGS) check-TESTS check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-checkPROGRAMS clean-generic clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: check-am install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \ clean-checkPROGRAMS clean-generic clean-libtool ctags \ distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/libregex/tests/mangled-name.in0000664000076400007640000003673312175510134016136 00000000000000# test for stl beautifier, do op_regex_test < mangled-name.txt # line go by couple mangled name then expected name after run, line # starting by # and blank line are ignored. The test must output nothing if # successfull # before removing tests think it take time to write them. This is intended # to be a coverage test of all pattern in stl.pat. # g++ 2.95 stl mangled name basic_string, __default_alloc_template > string prefix_basic_string, __default_alloc_template > prefix_basic_string, __default_alloc_template> vector, __default_alloc_template >, allocator, __default_alloc_template > > > vector map, allocator > map map, __default_alloc_template >, image_name, less, __default_alloc_template > >, allocator > map multimap, allocator > multimap prefix_multimap, allocator > prefix_multimap, allocator> map > map bitset<33, unsigned long> bitset<33> istream_iterator istream_iterator ostream_iterator ostream_iterator # shared between all supported gcc version deque, 0> deque std::deque, 0> deque prefix_deque, 0> prefix_deque, 0> list > list list > list _List_iterator list::const_iterator _List_iterator list::iterator prefix_list > prefix_list> std::list > list queue, 0> > queue prefix_queue, 0> > prefix_queue> std::queue, 0> > queue # get ride of _Rb_tree typedef, these are also mapped by map/set but we can't # distinguish a set>::iterator and a map::iterator # as they decay to an identical typedef so we don't try to be clever here. _Rb_tree_iterator _Rb_tree::const_iterator _Rb_tree_iterator _Rb_tree::iterator # this run through special case pattern _Rb_tree_iterator, pair const &, pair const *> _Rb_tree>::const_iterator _Rb_tree_iterator, pair &, pair *> _Rb_tree>::iterator _Rb_tree, less, allocator > _Rb_tree _Rb_tree, _Select1st>, less, allocator> _Rb_tree, string const> _Select1st > int const _Select1st > int const _Select1st> string const _Identity int # this test fail since pair<> is not recognized as a type # _Select1st const, sample_entry>> # pair const # 2.95 map/multimap _Rb_tree, _Select1st >, less, allocator > _Rb_tree, int const> # 3.2 map/multimap _Rb_tree, _Select1st >, less, allocator > > _Rb_tree, int const> _List_base> _List_base # strictly speaking 3rd parameters is less priority_queue >, less > priority_queue prefix_priority_queue >, less > prefix_priority_queue, less> std::priority_queue >, std::less > priority_queue vector > vector vector > vector vector > vector stack, 0> > stack prefix_stack, 0> > prefix_stack> std::stack, 0> > stack # test complex typename, we don't support more than one level of nesting vector >, allocator > > > vector> std::vector >, std::allocator > > > vector> set, allocator > set set, __default_alloc_template >, less, __default_alloc_template > >, allocator, __default_alloc_template > > > set set > set prefix_set, allocator > prefix_set, allocator> prefix_set, allocator > prefix_set, allocator> multiset, allocator > multiset # test than pointer and reference to pointer are handled vector > vector vector > vector # algorithm, will work for 3.2 too. int * find(int *, int *, int const &, random_access_iterator_tag) int * find(int *, int *, int const &, random_access_iterator_tag) char const * find_if(char const *, char const *, compare, random_access_iterator_tag) char const * find_if(char const *, char const *, compare, random_access_iterator_tag) # gcc 3.2 std::basic_string, std::allocator > string std::basic_string, std::allocator > wstring # __normal_iterator are treated a part __gnu_cxx::__normal_iterator string::const_iterator __gnu_cxx::__normal_iterator string::iterator __gnu_cxx::__normal_iterator wstring::iterator __gnu_cxx::__normal_iterator wstring::const_iterator std::reverse_iterator<__gnu_cxx::__normal_iterator> reverse_iterator __gnu_cxx::__normal_iterator> vector::const_iterator __gnu_cxx::__normal_iterator> vector::iterator std::reverse_iterator<__gnu_cxx::__normal_iterator> reverse_iterator::const_iterator std::map, std::allocator > > map std::multimap, std::allocator > > multimap std::map > > map # parameter is size_t on x86 it's an unsigned bitset<(@SIZE_T_TYPE@)33> bitset<33> # 3, 4, 5th params are ptrdiff_t it's an int on x86 std::iterator iterator std::iterator iterator std::iterator iterator std::iterator iterator std::iterator iterator # 4th parms is ptrdiff_t std::istream_iterator, @PTRDIFF_T_TYPE@> istream_iterator std::ostream_iterator, @PTRDIFF_T_TYPE@> ostream_iterator # simple enough, it's just std::basic_ios > basic_ios std::basic_streambuf > basic_streambuf std::basic_istream > basic_istream std::basic_ostream > basic_ostream std::basic_iostream > basic_iostream std::basic_filebuf > basic_filebuf std::basic_ifstream > basic_ifstream std::basic_ofstream > basic_ofstream std::basic_fstream > basic_fstream std::istreambuf_iterator > istreambuf_iterator std::ostreambuf_iterator > ostreambuf_iterator std::basic_stringbuf, std::allocator > basic_stringbuf std::basic_istringstream, std::allocator > basic_istringstream std::basic_ostringstream, std::allocator > basic_ostringstream std::basic_stringstream, std::allocator > basic_stringstream # all the above intantiated with char and wchar_t fallback to standardised # typedef except istreambuf_iterator and ostreambuf_iterator std::basic_ios > ios std::basic_ios > wios std::basic_streambuf > streambuf std::basic_streambuf > wstreambuf std::basic_istream > istream std::basic_istream > wistream std::basic_ostream > ostream std::basic_ostream > wostream std::basic_iostream > iostream std::basic_iostream > wiostream std::basic_filebuf > filebuf std::basic_filebuf > wfilebuf std::basic_ifstream > ifstream std::basic_ifstream > wifstream std::basic_ofstream > ofstream std::basic_ofstream > wofstream std::basic_fstream > fstream std::basic_fstream > wfstream std::basic_stringbuf, std::allocator > stringbuf std::basic_stringbuf, std::allocator > wstringbuf std::basic_istringstream, std::allocator > istringstream std::basic_istringstream, std::allocator > wistringstream std::basic_ostringstream, std::allocator > ostringstream std::basic_ostringstream, std::allocator > wostringstream std::basic_stringstream, std::allocator > stringstream std::basic_stringstream, std::allocator > wstringstream # these two are also in iosfw, namely # typedef fpos::state_type> streampos; # typedef fpos::state_type> wstreampos; # but twice decay to fpos<__mbstate>, we choosed to translate to streampos std::fpos<__mbstate_t> streampos # locale std::num_put > num_put std::num_put > num_put std::num_get > num_get std::num_get > num_get std::time_put > time_put std::time_put > time_put std::time_get > time_get std::time_get > time_get std::money_put > money_put std::money_put > money_put std::money_get > money_get std::money_get > money_get std::moneypunct moneypunct std::moneypunct moneypunct std::moneypunct_byname moneypunct_byname std::moneypunct_byname moneypunct_byname # algorithm vector::iterator find::iterator, string>(vector::iterator, vector::iterator, string const&, random_access_iterator_tag) vector::iterator find(vector::iterator, vector::iterator, string const&, random_access_iterator_tag) string::iterator find(string::iterator, string::iterator, int const&, random_access_iterator_tag) string::iterator find(string::iterator, string::iterator, int const&, random_access_iterator_tag) vector::iterator find::iterator, int>(vector::iterator, vector::iterator, int const&, random_access_iterator_tag) vector::iterator find(vector::iterator, vector::iterator, int const&, random_access_iterator_tag) char const * find(char const *, char const *, int const &, random_access_iterator_tag) char const * find(char const *, char const *, int const &, random_access_iterator_tag) string::const_iterator find(string::const_iterator, string::const_iterator, int const&, random_access_iterator_tag) string::const_iterator find(string::const_iterator, string::const_iterator, int const&, random_access_iterator_tag) string::const_iterator find_if(string::const_iterator, string::const_iterator, compare, random_access_iterator_tag) string::const_iterator find_if(string::const_iterator, string::const_iterator, compare, random_access_iterator_tag) vector::iterator find_if::iterator, compare>(vector::iterator, vector::iterator, compare, random_access_iterator_tag) vector::iterator find_if(vector::iterator, vector::iterator, compare, random_access_iterator_tag) ostream & operator<<, __default_alloc_template>(ostream &, string const &) ostream & operator<<(ostream &, string const &) istream & operator>>, __default_alloc_template>(istream &, string &) istream & operator>>(istream &, string &) istream & getline, __default_alloc_template>(istream &, string &) istream & getline(istream &, string &) ostream& operator<< , allocator>(ostream&, string const&) ostream & operator<<(ostream &, string const &) istream& operator>> , allocator>(istream&, string&) istream & operator>>(istream &, string &) std::basic_ostream >::operator<<(long) ostream::operator<<(long) oprofile-0.9.9/libregex/tests/regex_test.cpp0000664000076400007640000000334012175510134016122 00000000000000/** * @file regex_test.cpp * * A simple test for libregex. Run it through: * $ regex_test * or * $ regex_test filename(s) * when no argument is provided "mangled-name" is used, * see it for the input file format * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie */ #include "string_manip.h" #include "op_regex.h" #include #include #include using namespace std; static int nr_error = 0; static void do_test(istream& fin) { regular_expression_replace rep; setup_regex(rep, "../stl.pat"); string test, expect, last; bool first = true; while (getline(fin, last)) { last = trim(last); if (last.length() == 0 || last[0] == '#') continue; if (first) { test = last; first = false; } else { expect = last; first = true; string str(test); rep.execute(str); if (str != expect) { cerr << "mistmatch: test, expect, returned\n" << '"' << test << '"' << endl << '"' << expect << '"' << endl << '"' << str << '"' << endl; ++nr_error; } } } if (!first) cerr << "input file ill formed\n"; } int main(int argc, char * argv[]) { try { if (argc > 1) { for (int i = 1; i < argc; ++i) { ifstream fin(argv[i]); do_test(fin); } } else { ifstream fin("mangled-name"); if (!fin) { cerr << "Unable to open input test " << "\"mangled_name\"\n" << endl; exit(EXIT_FAILURE); } do_test(fin); } } catch (bad_regex const & e) { cerr << "bad_regex " << e.what() << endl; return EXIT_FAILURE; } catch (exception const & e) { cerr << "exception: " << e.what() << endl; return EXIT_FAILURE; } return nr_error ? EXIT_FAILURE : EXIT_SUCCESS; } oprofile-0.9.9/libregex/tests/Makefile.am0000664000076400007640000000063112175510134015301 00000000000000AM_CPPFLAGS = \ -I ${top_srcdir}/libutil++ \ -I ${top_srcdir}/libregex AM_CXXFLAGS = @OP_CXXFLAGS@ check_PROGRAMS = regex_test java_test regex_test_SOURCES = regex_test.cpp regex_test_LDADD = \ ../libop_regex.a \ ../../libutil++/libutil++.a java_test_SOURCES = java_test.cpp java_test_LDADD = \ ../libop_regex.a \ ../../libutil++/libutil++.a EXTRA_DIST = mangled-name.in TESTS = ${check_PROGRAMS} oprofile-0.9.9/libregex/tests/java_test.cpp0000664000076400007640000000327712175510134015742 00000000000000/** * @file java_test.cpp * * A simple test for java demangling. Run it through: * $ java_test * * @remark Copyright 2007 OProfile authors * @remark Read the file COPYING * * @author Philippe Elie */ #include "demangle_java_symbol.h" #include "op_regex.h" #include #include #include using namespace std; namespace { void check_result(string const & input, string const & output, string const & result) { if (result != output) { cerr << "for:\n\"" << input << "\"\n" << "expect:\n\"" << output << "\"\n" << "found:\n\"" << result << "\"\n"; exit(EXIT_FAILURE); } } struct input_output { char const * mangled; char const * expect; }; input_output mangle_tests[] = { { "Ltest$test_1;f2(I)V", "void test$test_1.f2(int)" }, { "Ltest;f4()V", "void test.f4()" }, { "Ltest;f2(II)V", "void test.f2(int, int)" }, { "Ltest$HelloThread;run()V~1", "void test$HelloThread.run()~1" }, { "Lsun/security/provider/SHA;implCompress([BI)V", "void sun.security.provider.SHA.implCompress(byte[], int)" }, { "Ljava/lang/String;equals(Ljava/lang/Object;)Z", "boolean java.lang.String.equals(java.lang.Object)" }, { "Lorg/eclipse/swt/graphics/ImageData;blit(I[BIIIIIIIIIII[BIII[BIIIIIIIIIIZZ)V", "void org.eclipse.swt.graphics.ImageData.blit(int, byte[], int, int, int, int, int, int, int, int, int, int, int, byte[], int, int, int, byte[], int, int, int, int, int, int, int, int, int, int, boolean, boolean)" }, { 0, 0 } }; } // anonymous namespace int main(void) { input_output const * cur; for (cur = mangle_tests; cur->mangled; ++cur) { string result = demangle_java_symbol(cur->mangled); check_result(cur->mangled, cur->expect, result); } return 0; } oprofile-0.9.9/libregex/op_regex.cpp0000664000076400007640000001641612175510134014427 00000000000000/** * @file op_regex.cpp * This file contains implementation for a lightweight wrapper around * libc regex, providing regular expression match and replace facility. * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * @remark Idea comes from TextFilt project * * @author Philippe Elie */ #include #include #include #include "string_manip.h" #include "op_regex.h" using namespace std; namespace { string op_regerror(int err, regex_t const & regexp) { size_t needed_size = regerror(err, ®exp, 0, 0); char * buffer = new char[needed_size]; regerror(err, ®exp, buffer, needed_size); string retval = buffer; delete [] buffer; return retval; } void op_regcomp(regex_t & regexp, string const & pattern) { int err = regcomp(®exp, pattern.c_str(), REG_EXTENDED); if (err) { throw bad_regex("regcomp error: " + op_regerror(err, regexp) + " for pattern : " + pattern); } } bool op_regexec(regex_t const & regex, string const & str, regmatch_t * match, size_t nmatch) { return regexec(®ex, str.c_str(), nmatch, match, 0) != REG_NOMATCH; } void op_regfree(regex_t & regexp) { regfree(®exp); } // return the index number associated with a char seen in a "\x". // Allowed range are for x is [0-9a-z] return size_t(-1) if x is not in // these ranges. size_t subexpr_index(char ch) { if (isdigit(ch)) return ch - '0'; if (ch >= 'a' && ch <= 'z') return ch - 'a' + 10; return size_t(-1); } } // anonymous namespace bad_regex::bad_regex(string const & pattern) : op_exception(pattern) { } regular_expression_replace::regular_expression_replace(size_t limit_, size_t limit_defs) : limit(limit_), limit_defs_expansion(limit_defs) { } regular_expression_replace::~regular_expression_replace() { for (size_t i = 0 ; i < regex_replace.size() ; ++i) op_regfree(regex_replace[i].regexp); } void regular_expression_replace::add_definition(string const & name, string const & definition) { defs[name] = expand_string(definition); } void regular_expression_replace::add_pattern(string const & pattern, string const & replace) { string expanded_pattern = expand_string(pattern); regex_t regexp; op_regcomp(regexp, expanded_pattern); replace_t regex = { regexp, replace }; regex_replace.push_back(regex); } string regular_expression_replace::expand_string(string const & input) { string last, expanded(input); size_t i = 0; for (i = 0 ; i < limit_defs_expansion ; ++i) { last = expanded; expanded = substitute_definition(last); if (expanded == last) break; } if (i == limit_defs_expansion) throw bad_regex("too many substitution for: + input"); return last; } string regular_expression_replace::substitute_definition(string const & pattern) { string result; bool previous_is_escape = false; for (size_t i = 0 ; i < pattern.length() ; ++i) { if (pattern[i] == '$' && !previous_is_escape) { size_t pos = pattern.find('{', i); if (pos != i + 1) { throw bad_regex("invalid $ in pattern: " + pattern); } size_t end = pattern.find('}', i); if (end == string::npos) { throw bad_regex("no matching '}' in pattern: " + pattern); } string def_name = pattern.substr(pos+1, (end-pos) - 1); if (defs.find(def_name) == defs.end()) { throw bad_regex("definition not found and used in pattern: (" + def_name + ") " + pattern); } result += defs[def_name]; i = end; } else { if (pattern[i] == '\\' && !previous_is_escape) previous_is_escape = true; else previous_is_escape = false; result += pattern[i]; } } return result; } // FIXME limit output string size ? (cause we can have exponential growing // of output string through a rule "a" = "aa") bool regular_expression_replace::execute(string & str) const { bool changed = true; for (size_t nr_iter = 0; changed && nr_iter < limit ; ++nr_iter) { changed = false; for (size_t i = 0 ; i < regex_replace.size() ; ++i) { if (do_execute(str, regex_replace[i])) changed = true; } } // this don't return if the input string has been changed but if // we reach the limit number of iteration. return changed == false; } bool regular_expression_replace::do_execute(string & str, replace_t const & regexp) const { bool changed = false; regmatch_t match[max_match]; for (size_t iter = 0; op_regexec(regexp.regexp, str, match, max_match) && iter < limit; iter++) { changed = true; do_replace(str, regexp.replace, match); } return changed; } regmatch_t const & regular_expression_replace::get_match(regmatch_t const * match, char idx) const { size_t sub_expr = subexpr_index(idx); if (sub_expr == size_t(-1)) throw bad_regex("expect group index: " + idx); if (sub_expr >= max_match) throw bad_regex("illegal group index :" + idx); return match[sub_expr]; } void regular_expression_replace::do_replace (string & str, string const & replace, regmatch_t const * match) const { string inserted; for (size_t i = 0 ; i < replace.length() ; ++i) { if (replace[i] == '\\') { if (i == replace.length() - 1) { throw bad_regex("illegal \\ trailer: " + replace); } ++i; if (replace[i] == '\\') { inserted += '\\'; } else { regmatch_t const & matched = get_match(match, replace[i]); if (matched.rm_so == -1 && matched.rm_eo == -1) { // empty match: nothing todo } else if (matched.rm_so == -1 || matched.rm_eo == -1) { throw bad_regex("illegal match: " + replace); } else { inserted += str.substr(matched.rm_so, matched.rm_eo - matched.rm_so); } } } else { inserted += replace[i]; } } size_t first = match[0].rm_so; size_t count = match[0].rm_eo - match[0].rm_so; str.replace(first, count, inserted); } void setup_regex(regular_expression_replace & regex, string const & filename) { ifstream in(filename.c_str()); if (!in) { throw op_runtime_error("Can't open file " + filename + " for reading", errno); } regular_expression_replace var_name_rule; var_name_rule.add_pattern("^\\$([_a-zA-Z][_a-zA-Z0-9]*)[ ]*=.*", "\\1"); regular_expression_replace var_value_rule; var_value_rule.add_pattern(".*=[ ]*\"(.*)\"", "\\1"); regular_expression_replace left_rule; left_rule.add_pattern("[ ]*\"(.*)\"[ ]*=.*", "\\1"); regular_expression_replace right_rule; right_rule.add_pattern(".*=[ ]*\"(.*)\"", "\\1"); string line; while (getline(in, line)) { line = trim(line); if (line.empty() || line[0] == '#') continue; string temp = line; var_name_rule.execute(temp); if (temp == line) { string left = line; left_rule.execute(left); if (left == line) { throw bad_regex("invalid input file: \"" + line + '"'); } string right = line; right_rule.execute(right); if (right == line) { throw bad_regex("invalid input file: \"" + line + '"'); } regex.add_pattern(left, right); } else { // temp != line ==> var_name_rule succeed to substitute // into temp the var_name present in line string var_name = temp; string var_value = line; var_value_rule.execute(var_value); if (var_value == line) { throw bad_regex("invalid input file: \"" + line + '"'); } regex.add_definition(var_name, var_value); } } } oprofile-0.9.9/libregex/demangle_symbol.h0000664000076400007640000000152212175510134015415 00000000000000/** * @file demangle_symbol.h * Demangle a C++ symbol * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon */ #ifndef DEMANGLE_SYMBOL_H #define DEMANGLE_SYMBOL_H #include /// demangle type: specify what demangling we use enum demangle_type { /// no demangling. dmt_none, /// use cplus_demangle() dmt_normal, /// normal plus a pass through the regular expression to simplify /// the mangled name dmt_smart }; /** * demangle_symbol - demangle a symbol * @param name the mangled symbol name * @return the demangled name * * Demangle the symbol name, if the global * variable demangle is true. * * The demangled name lists the parameters and type * qualifiers such as "const". */ std::string const demangle_symbol(std::string const & name); #endif // DEMANGLE_SYMBOL_H oprofile-0.9.9/libregex/op_regex.h0000664000076400007640000000773412175510134014077 00000000000000/** * @file op_regex.h * This file contains various definitions and interface for a * lightweight wrapper around libc regex, providing match * and replace facility. * * @remark Copyright 2003 OProfile authors * @remark Read the file COPYING * @remark Idea comes from TextFilt project * * @author Philippe Elie */ #ifndef OP_REGEX_H #define OP_REGEX_H // required by posix before including regex.h #include #include #include #include #include #include "op_exception.h" /** * ill formed regular expression or expression throw such exception */ struct bad_regex : op_exception { bad_regex(std::string const & pattern); }; /** * lightweight encapsulation of regex lib search and replace * * See stl.pat for further details and examples of used syntax. */ class regular_expression_replace { public: /** * @param limit limit on number of search and replace done * @param limit_defs_expansion limit on number of expansion done * during replacement of regular definition name by their expansion * * build an object holding regular defintion and regular expression * & replace, preparing it for substitution ala sed */ regular_expression_replace(size_t limit = 100, size_t limit_defs_expansion = 100); ~regular_expression_replace(); /** * @param name a regular definition name * @param replace the string to subsitute in other regular definition * or regular exepression when this regular defintion name is * encoutered. */ void add_definition(std::string const & name, std::string const & replace); /** * @param pattern a regular expression pattern, POSIX extended notation * @param replace the replace string to use when this regular * expression is matched * * You can imbed regular definition in pattern but not in replace. */ void add_pattern(std::string const & pattern, std::string const & replace); /** * @param str the input/output string where we search pattern and * replace them. * * Execute loop at max limit time on the set of regular expression * * Return true if too many match occur and replacing has been stopped * due to reach limit_defs_expansion. You can test if some pattern has * been matched by saving the input string and comparing it to the new * value. There is no way to detect s/a/a because the output string * will be identical to the input string. */ bool execute(std::string & str) const; private: struct replace_t { // when this regexp is matched regex_t regexp; // replace the matched part with this string std::string replace; }; // helper to execute bool do_execute(std::string & str, replace_t const & regexp) const; void do_replace(std::string & str, std::string const & replace, regmatch_t const * match) const; // helper to add_definition() and add_pattern() std::string expand_string(std::string const & input); // helper to add_pattern std::string substitute_definition(std::string const & pattern); // return the match of throw if idx is invalid regmatch_t const & get_match(regmatch_t const * match, char idx) const; // don't increase too, it have direct impact on performance. This limit // the number of grouping expression allowed in a regular expression // Note than you can use grouping match operator > 9 only in the // replace rule not in match regular expression since POSIX don't allow // more than \9 in matching sequence. static const size_t max_match = 16; size_t limit; size_t limit_defs_expansion; std::vector regex_replace; /// dictionary of regular definition typedef std::map defs_dict; defs_dict defs; }; /** * @param regex the regular_expression_replace to fill * @param filename the filename from where the deifnition and pattern are read * * add to regex pattern and regular definition read from the given file */ void setup_regex(regular_expression_replace& regex, std::string const & filename); #endif /* !OP_REGEX_H */ oprofile-0.9.9/libregex/Makefile.am0000664000076400007640000000054012175510134014136 00000000000000SUBDIRS = . tests AM_CPPFLAGS = -I ${top_srcdir}/libutil++ @OP_CPPFLAGS@ AM_CXXFLAGS = @OP_CXXFLAGS@ noinst_LIBRARIES = libop_regex.a libop_regex_a_SOURCES = \ op_regex.cpp \ op_regex.h \ demangle_symbol.h \ demangle_symbol.cpp \ demangle_java_symbol.h \ demangle_java_symbol.cpp datadir = $(prefix)/share/oprofile nodist_data_DATA = stl.pat oprofile-0.9.9/libregex/demangle_symbol.cpp0000664000076400007640000000315612175510134015755 00000000000000/** * @file demangle_symbol.cpp * Demangle a C++ symbol * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon */ #include #include "config.h" #include "demangle_symbol.h" #include "demangle_java_symbol.h" #include "op_regex.h" // from libiberty /*@{\name demangle option parameter */ #ifndef DMGL_PARAMS # define DMGL_PARAMS (1 << 0) /**< Include function args */ #endif #ifndef DMGL_ANSI # define DMGL_ANSI (1 << 1) /**< Include const, volatile, etc */ #endif /*@}*/ extern "C" char * cplus_demangle(char const * mangled, int options); using namespace std; namespace options { extern demangle_type demangle; } string const demangle_symbol(string const & name) { if (options::demangle == dmt_none) return name; // Do not try to strip leading underscore, as this leads to many // C++ demangling failures. However we strip off a leading '.' // as generated on PPC64 string const & tmp = (name[0] == '.' ? name.substr(1) : name); char * unmangled = cplus_demangle(tmp.c_str(), DMGL_PARAMS | DMGL_ANSI); if (!unmangled) { string result = demangle_java_symbol(name); if (!result.empty()) return result; return name; } string result(unmangled); free(unmangled); if (options::demangle == dmt_smart) { static bool init = false; static regular_expression_replace regex; if (init == false) { setup_regex(regex, OP_DATADIR "/stl.pat"); init = true; } // we don't protect against exception here, pattern must be // right and user can easily work-around by using -d regex.execute(result); } return result; } oprofile-0.9.9/utils/0000775000076400007640000000000012175511556011533 500000000000000oprofile-0.9.9/utils/op_perf_events_checker.c0000664000076400007640000000354012175510134016312 00000000000000/* * @file op-perf-events-checker.c * * Utility program for determining the existence and functionality * of the Linux kernel's Performance Events Subsystem. * * @remark Copyright 2011 OProfile authors * @remark Read the file COPYING * * Created on: Dec 7, 2011 * @author Maynard Johnson * (C) Copyright IBM Corp. 2011 * */ #include #include #include #include #include #include #include "config.h" #if HAVE_PERF_EVENTS #include struct perf_event_attr attr; pid_t pid ; #endif static void usage(void) { fprintf(stderr, "usage: op-check-perfevents [OPTION]\n"); fprintf(stderr, "\t-h, --help\t\tPrint this help message\n"); fprintf(stderr, "\t-v, --verbose\t\tPrint errno value of perf_event_open syscall\n"); } int main(int argc, char **argv) { int _verbose = 0; if (argc > 1) { if ((!strcmp(argv[1], "-h")) || (!strcmp(argv[1], "--help"))) { usage(); return 0; } else if ((!strcmp(argv[1], "-v")) || (!strcmp(argv[1], "--verbose"))) { _verbose = 1; } else { usage(); return -1; } } #if HAVE_PERF_EVENTS /* Even if the perf_event_open syscall is implemented, the architecture may still * not provide a full implementation of the perf_events subsystem, in which case, * the syscall below will fail with ENOSYS (38). If the perf_events subsystem is * implemented for the architecture, but the processor type on which this * program is running is not supported by perf_events, the syscall returns * ENOENT (2). */ memset(&attr, 0, sizeof(attr)); attr.size = sizeof(attr); attr.sample_type = PERF_SAMPLE_IP; pid = getpid(); syscall(__NR_perf_event_open, &attr, pid, 0, -1, 0); if (_verbose) fprintf(stderr, "perf_event_open syscall returned %s\n", strerror(errno)); return errno; #else return -1; #endif } oprofile-0.9.9/utils/Makefile.in0000664000076400007640000005522012175510235013515 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ bin_PROGRAMS = ophelp$(EXEEXT) op-check-perfevents$(EXEEXT) subdir = utils DIST_COMMON = $(dist_bin_SCRIPTS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am_op_check_perfevents_OBJECTS = \ op_check_perfevents-op_perf_events_checker.$(OBJEXT) op_check_perfevents_OBJECTS = $(am_op_check_perfevents_OBJECTS) op_check_perfevents_LDADD = $(LDADD) am_ophelp_OBJECTS = ophelp.$(OBJEXT) ophelp_OBJECTS = $(am_ophelp_OBJECTS) ophelp_DEPENDENCIES = ../libop/libop.a ../libutil/libutil.a am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' SCRIPTS = $(dist_bin_SCRIPTS) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(op_check_perfevents_SOURCES) $(ophelp_SOURCES) DIST_SOURCES = $(op_check_perfevents_SOURCES) $(ophelp_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @POPT_LIBS@ @LIBERTY_LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ AM_CPPFLAGS = -I ${top_srcdir}/libop \ -I ${top_srcdir}/libutil \ @OP_CPPFLAGS@ AM_CFLAGS = @OP_CFLAGS@ AM_LDFLAGS = @OP_LDFLAGS@ dist_bin_SCRIPTS = opcontrol op_check_perfevents_SOURCES = op_perf_events_checker.c op_check_perfevents_CPPFLAGS = ${AM_CFLAGS} @PERF_EVENT_FLAGS@ ophelp_SOURCES = ophelp.c ophelp_LDADD = ../libop/libop.a ../libutil/libutil.a all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign utils/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign utils/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p || test -f $$p1; \ then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list op-check-perfevents$(EXEEXT): $(op_check_perfevents_OBJECTS) $(op_check_perfevents_DEPENDENCIES) @rm -f op-check-perfevents$(EXEEXT) $(LINK) $(op_check_perfevents_OBJECTS) $(op_check_perfevents_LDADD) $(LIBS) ophelp$(EXEEXT): $(ophelp_OBJECTS) $(ophelp_DEPENDENCIES) @rm -f ophelp$(EXEEXT) $(LINK) $(ophelp_OBJECTS) $(ophelp_LDADD) $(LIBS) install-dist_binSCRIPTS: $(dist_bin_SCRIPTS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(dist_bin_SCRIPTS)'; test -n "$(bindir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-dist_binSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(dist_bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/op_check_perfevents-op_perf_events_checker.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ophelp.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< op_check_perfevents-op_perf_events_checker.o: op_perf_events_checker.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(op_check_perfevents_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT op_check_perfevents-op_perf_events_checker.o -MD -MP -MF $(DEPDIR)/op_check_perfevents-op_perf_events_checker.Tpo -c -o op_check_perfevents-op_perf_events_checker.o `test -f 'op_perf_events_checker.c' || echo '$(srcdir)/'`op_perf_events_checker.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/op_check_perfevents-op_perf_events_checker.Tpo $(DEPDIR)/op_check_perfevents-op_perf_events_checker.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='op_perf_events_checker.c' object='op_check_perfevents-op_perf_events_checker.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(op_check_perfevents_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o op_check_perfevents-op_perf_events_checker.o `test -f 'op_perf_events_checker.c' || echo '$(srcdir)/'`op_perf_events_checker.c op_check_perfevents-op_perf_events_checker.obj: op_perf_events_checker.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(op_check_perfevents_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT op_check_perfevents-op_perf_events_checker.obj -MD -MP -MF $(DEPDIR)/op_check_perfevents-op_perf_events_checker.Tpo -c -o op_check_perfevents-op_perf_events_checker.obj `if test -f 'op_perf_events_checker.c'; then $(CYGPATH_W) 'op_perf_events_checker.c'; else $(CYGPATH_W) '$(srcdir)/op_perf_events_checker.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/op_check_perfevents-op_perf_events_checker.Tpo $(DEPDIR)/op_check_perfevents-op_perf_events_checker.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='op_perf_events_checker.c' object='op_check_perfevents-op_perf_events_checker.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(op_check_perfevents_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o op_check_perfevents-op_perf_events_checker.obj `if test -f 'op_perf_events_checker.c'; then $(CYGPATH_W) 'op_perf_events_checker.c'; else $(CYGPATH_W) '$(srcdir)/op_perf_events_checker.c'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) $(SCRIPTS) installdirs: for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-dist_binSCRIPTS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-dist_binSCRIPTS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic clean-libtool ctags distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-binPROGRAMS install-data install-data-am \ install-dist_binSCRIPTS install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-binPROGRAMS \ uninstall-dist_binSCRIPTS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/utils/ophelp.c0000664000076400007640000005120612175510134013101 00000000000000/** * @file ophelp.c * Print out PMC event information * * @remark Copyright 2002 OProfile authors * @remark Read the file COPYING * * @author John Levon * @author Philippe Elie */ #define _GNU_SOURCE #include #include #include #include #include "op_version.h" #include "op_events.h" #include "op_popt.h" #include "op_cpufreq.h" #include "op_hw_config.h" #include "op_string.h" #include "op_alloc_counter.h" #include "op_parse_event.h" #include "op_libiberty.h" #include "op_xml_events.h" static char const ** chosen_events; static int num_chosen_events; struct parsed_event * parsed_events; static op_cpu cpu_type = CPU_NO_GOOD; static char * cpu_string; static int callgraph_depth; static int want_xml; static int ignore_count; static poptContext optcon; /// return the Hamming weight (number of set bits) static size_t hweight(size_t mask) { size_t count = 0; while (mask) { mask &= mask - 1; count++; } return count; } static void do_arch_specific_event_help(struct op_event * event) { switch (cpu_type) { case CPU_PPC64_CELL: printf("Group %u :", event->val / 100); break; default: break; } } #define LINE_LEN 99 static void word_wrap(int indent, int *column, char *msg) { while (*msg) { int wlen = strcspn(msg, " "); if (*column + wlen > LINE_LEN) { printf("\n%*s", indent, ""); *column = indent; } printf("%.*s", wlen, msg); *column += wlen + 1; msg += wlen; wlen = strspn(msg, " "); msg += wlen; if (wlen != 0) putchar(' '); } } /** * help_for_event - output event name and description * @param i event number * * output an help string for the event @i */ static void help_for_event(struct op_event * event) { int column; uint i, j; uint mask; size_t nr_counters; char buf[32]; do_arch_specific_event_help(event); nr_counters = op_get_nr_counters(cpu_type); /* Sanity check */ if (!event) return; printf("%s", event->name); if(event->counter_mask != 0) { printf(": (counter: "); mask = event->counter_mask; if (hweight(mask) == nr_counters) { printf("all"); } else { for (i = 0; i < CHAR_BIT * sizeof(event->counter_mask); ++i) { if (mask & (1 << i)) { printf("%d", i); mask &= ~(1 << i); if (mask) printf(", "); } } } } else if (event->ext != NULL) { /* Handling extended feature interface */ printf(": (ext: %s", event->ext); } else { /* Handling arch_perfmon case */ printf(": (counter: all"); } printf(")\n\t"); column = 8; word_wrap(8, &column, event->desc); snprintf(buf, sizeof buf, " (min count: %d)", event->min_count); word_wrap(8, &column, buf); putchar('\n'); if (strcmp(event->unit->name, "zero")) { if (event->unit->default_mask_name) { printf("\tUnit masks (default %s)\n", event->unit->default_mask_name); } else { printf("\tUnit masks (default 0x%x)\n", event->unit->default_mask); } printf("\t----------\n"); for (j = 0; j < event->unit->num; j++) { printf("\t0x%.2x: ", event->unit->um[j].value); column = 14; /* Named mask */ if (event->unit->um[j].name) { word_wrap(14, &column, "(name="); word_wrap(14, &column, event->unit->um[j].name); word_wrap(14, &column, ") "); } word_wrap(14, &column, event->unit->um[j].desc); putchar('\n'); } } } static void check_event(struct parsed_event * pev, struct op_event const * event) { int ret; int min_count; int const callgraph_min_count_scale = 15; if (!event) { event = find_event_by_name(pev->name, 0, 0); if (event) fprintf(stderr, "Invalid unit mask %x for event %s\n", pev->unit_mask, pev->name); else fprintf(stderr, "No event named %s is available.\n", pev->name); exit(EXIT_FAILURE); } op_resolve_unit_mask(pev, NULL); // If a named UM is passed, op_resolve_unit_mask will resolve that into a // valid unit mask, so we don't need to call op_check_events. if (pev->unit_mask_name) ret = 0; else ret = op_check_events(0, event->val, pev->unit_mask, cpu_type); if (ret & OP_INVALID_UM) { fprintf(stderr, "Invalid unit mask 0x%x for event %s\n", pev->unit_mask, pev->name); exit(EXIT_FAILURE); } min_count = event->min_count; if (callgraph_depth) min_count *= callgraph_min_count_scale; if (!ignore_count && pev->count < min_count) { fprintf(stderr, "Count %d for event %s is below the " "minimum %d\n", pev->count, pev->name, min_count); exit(EXIT_FAILURE); } } static void resolve_events(void) { size_t count, count_events; size_t i, j; size_t * counter_map; size_t nr_counters = op_get_nr_counters(cpu_type); struct op_event const * selected_events[num_chosen_events]; count = parse_events(parsed_events, num_chosen_events, chosen_events, ignore_count ? 0 : 1); for (i = 0; i < count; ++i) { op_resolve_unit_mask(&parsed_events[i], NULL); for (j = i + 1; j < count; ++j) { struct parsed_event * pev1 = &parsed_events[i]; struct parsed_event * pev2 = &parsed_events[j]; if (!strcmp(pev1->name, pev2->name) && pev1->count == pev2->count && pev1->unit_mask == pev2->unit_mask && pev1->kernel == pev2->kernel && pev1->user == pev2->user) { fprintf(stderr, "All events must be distinct.\n"); exit(EXIT_FAILURE); } } } for (i = 0, count_events = 0; i < count; ++i) { struct parsed_event * pev = &parsed_events[i]; /* For 0 unit mask always do wild card match */ selected_events[i] = find_event_by_name(pev->name, pev->unit_mask, pev->unit_mask ? pev->unit_mask_valid : 0); check_event(pev, selected_events[i]); if (selected_events[i]->ext == NULL) { count_events++; } } if (count_events > nr_counters) { fprintf(stderr, "Not enough hardware counters. " "Need %lu counters but only has %lu.\n", (unsigned long) count_events, (unsigned long) nr_counters); exit(EXIT_FAILURE); } counter_map = map_event_to_counter(selected_events, count, cpu_type); if (!counter_map) { fprintf(stderr, "Couldn't allocate hardware counters for the selected events.\n"); exit(EXIT_FAILURE); } for (i = 0; i < count; ++i) if(counter_map[i] == (size_t)-1) if (selected_events[i]->ext != NULL) printf("%s ", (char*) selected_events[i]->ext); else printf("N/A "); else if (strcmp(selected_events[i]->name, TIMER_EVENT_NAME) == 0) printf("timer "); else printf("%d ", (unsigned int) counter_map[i]); printf("\n"); free(counter_map); } static void show_unit_mask(void) { size_t count; count = parse_events(parsed_events, num_chosen_events, chosen_events, ignore_count ? 0 : 1); if (count > 1) { fprintf(stderr, "More than one event specified.\n"); exit(EXIT_FAILURE); } op_resolve_unit_mask(parsed_events, NULL); if (parsed_events[0].unit_mask_name) printf("%s\n", parsed_events[0].unit_mask_name); else printf("%d\n", parsed_events[0].unit_mask); } static void show_extra_mask(void) { size_t count; unsigned extra = 0; count = parse_events(parsed_events, num_chosen_events, chosen_events, ignore_count ? 0 : 1); if (count > 1) { fprintf(stderr, "More than one event specified.\n"); exit(EXIT_FAILURE); } op_resolve_unit_mask(parsed_events, &extra); printf ("%d\n", extra); } static void show_default_event(void) { struct op_default_event_descr descr; op_default_event(cpu_type, &descr); if (descr.name[0] == '\0') return; printf("%s:%lu:%lu:1:1\n", descr.name, descr.count, descr.um); } static int show_vers; static int get_cpu_type; static int check_events; static int unit_mask; static int get_default_event; static int extra_mask; static struct poptOption options[] = { { "cpu-type", 'c', POPT_ARG_STRING, &cpu_string, 0, "use the given CPU type", "cpu type", }, { "check-events", 'e', POPT_ARG_NONE, &check_events, 0, "check the given event descriptions for validity", NULL, }, { "ignore-count", 'i', POPT_ARG_NONE, &ignore_count, 0, "do not validate count value (used by ocount)", NULL}, { "unit-mask", 'u', POPT_ARG_NONE, &unit_mask, 0, "default unit mask for the given event", NULL, }, { "get-cpu-type", 'r', POPT_ARG_NONE, &get_cpu_type, 0, "show the auto-detected CPU type", NULL, }, { "get-default-event", 'd', POPT_ARG_NONE, &get_default_event, 0, "get the default event", NULL, }, { "callgraph", '\0', POPT_ARG_INT, &callgraph_depth, 0, "use this callgraph depth", "callgraph depth", }, { "version", 'v', POPT_ARG_NONE, &show_vers, 0, "show version", NULL, }, { "xml", 'X', POPT_ARG_NONE, &want_xml, 0, "list events as XML", NULL, }, { "extra-mask", 'E', POPT_ARG_NONE, &extra_mask, 0, "print extra mask for event", NULL, }, POPT_AUTOHELP { NULL, 0, 0, NULL, 0, NULL, NULL, }, }; /** * get_options - process command line * @param argc program arg count * @param argv program arg array * * Process the arguments, fatally complaining on error. */ static void get_options(int argc, char const * argv[]) { optcon = op_poptGetContext(NULL, argc, argv, options, 0); if (show_vers) show_version(argv[0]); /* non-option, must be a valid event name or event specs */ chosen_events = poptGetArgs(optcon); if(chosen_events) { num_chosen_events = 0; while (chosen_events[num_chosen_events] != NULL) num_chosen_events++; } /* don't free the context now, we need chosen_events */ } /** make valgrind happy */ static void cleanup(void) { int i; if (parsed_events) { for (i = 0; i < num_chosen_events; ++i) { if (parsed_events[i].name) free(parsed_events[i].name); } } op_free_events(); if (optcon) poptFreeContext(optcon); if (parsed_events) free(parsed_events); } #define MAX_LINE 256 int main(int argc, char const * argv[]) { struct list_head * events; struct list_head * pos; char const * pretty; char title[10 * MAX_LINE]; char const * event_doc = ""; atexit(cleanup); get_options(argc, argv); /* usefull for testing purpose to allow to force the cpu type * with --cpu-type */ if (cpu_string) { cpu_type = op_get_cpu_number(cpu_string); } else { cpu_type = op_get_cpu_type(); } if (cpu_type == CPU_NO_GOOD) { fprintf(stderr, "cpu_type '%s' is not valid\n", cpu_string ? cpu_string : "unset"); fprintf(stderr, "you should upgrade oprofile or force the " "use of timer mode\n"); exit(EXIT_FAILURE); } parsed_events = (struct parsed_event *)xcalloc(num_chosen_events, sizeof(struct parsed_event)); pretty = op_get_cpu_type_str(cpu_type); if (get_cpu_type) { printf("%s\n", pretty); exit(EXIT_SUCCESS); } if (get_default_event) { show_default_event(); exit(EXIT_SUCCESS); } if (cpu_type == CPU_TIMER_INT) { if (!check_events) printf("Using timer interrupt.\n"); exit(EXIT_SUCCESS); } events = op_events(cpu_type); if (!chosen_events && (unit_mask || check_events || extra_mask)) { fprintf(stderr, "No events given.\n"); exit(EXIT_FAILURE); } if (unit_mask) { show_unit_mask(); exit(EXIT_SUCCESS); } if (extra_mask) { show_extra_mask(); exit(EXIT_SUCCESS); } if (check_events) { resolve_events(); exit(EXIT_SUCCESS); } /* without --check-events, the only argument must be an event name */ if (chosen_events && chosen_events[0]) { if (chosen_events[1]) { fprintf(stderr, "Too many arguments.\n"); exit(EXIT_FAILURE); } list_for_each(pos, events) { struct op_event * event = list_entry(pos, struct op_event, event_next); if (strcmp(event->name, chosen_events[0]) == 0) { char const * map = find_mapping_for_event(event->val, cpu_type); if (map) { printf("%d %s\n", event->val, map); } else { printf("%d\n", event->val); } exit(EXIT_SUCCESS); } } fprintf(stderr, "No such event \"%s\"\n", chosen_events[0]); exit(EXIT_FAILURE); } /* default: list all events */ switch (cpu_type) { case CPU_HAMMER: event_doc = "See BIOS and Kernel Developer's Guide for AMD Athlon and AMD Opteron Processors\n" "(26094.pdf), Section 10.2\n\n"; break; case CPU_FAMILY10: event_doc = "See BIOS and Kernel Developer's Guide for AMD Family 10h Processors\n" "(31116.pdf), Section 3.14\n\n"; break; case CPU_FAMILY11H: event_doc = "See BIOS and Kernel Developer's Guide for AMD Family 11h Processors\n" "(41256.pdf), Section 3.14\n\n"; break; case CPU_FAMILY12H: event_doc = "See BIOS and Kernel Developer's Guide for AMD Family 12h Processors\n"; break; case CPU_FAMILY14H: event_doc = "See BIOS and Kernel Developer's Guide for AMD Family 14h Processors\n"; break; case CPU_FAMILY15H: event_doc = "See BIOS and Kernel Developer's Guide for AMD Family 15h Processors\n"; break; case CPU_AMD64_GENERIC: event_doc = "See BIOS and Kernel Developer's Guide for AMD Processors\n"; break; case CPU_ATHLON: event_doc = "See AMD Athlon Processor x86 Code Optimization Guide\n" "(22007.pdf), Appendix D\n\n"; break; case CPU_PPRO: case CPU_PII: case CPU_PIII: case CPU_P6_MOBILE: case CPU_P4: case CPU_P4_HT2: case CPU_CORE: case CPU_CORE_2: case CPU_CORE_I7: case CPU_NEHALEM: case CPU_HASWELL: case CPU_WESTMERE: case CPU_SANDYBRIDGE: case CPU_IVYBRIDGE: case CPU_ATOM: event_doc = "See Intel Architecture Developer's Manual Volume 3B, Appendix A and\n" "Intel Architecture Optimization Reference Manual (730795-001)\n\n"; break; case CPU_ARCH_PERFMON: event_doc = "See Intel 64 and IA-32 Architectures Software Developer's Manual\n" "Volume 3B (Document 253669) Chapter 18 for architectural perfmon events\n" "This is a limited set of fallback events because oprofile doesn't know your CPU\n"; break; case CPU_IA64: case CPU_IA64_1: case CPU_IA64_2: event_doc = "See Intel Itanium Processor Reference Manual\n" "for Software Development (Document 245320-003),\n" "Intel Itanium Processor Reference Manual\n" "for Software Optimization (Document 245473-003),\n" "Intel Itanium 2 Processor Reference Manual\n" "for Software Development and Optimization (Document 251110-001)\n\n"; break; case CPU_AXP_EV4: case CPU_AXP_EV5: case CPU_AXP_PCA56: case CPU_AXP_EV6: case CPU_AXP_EV67: event_doc = "See Alpha Architecture Reference Manual\n" "http://download.majix.org/dec/alpha_arch_ref.pdf\n"; break; case CPU_ARM_XSCALE1: case CPU_ARM_XSCALE2: event_doc = "See Intel XScale Core Developer's Manual\n" "Chapter 8 Performance Monitoring\n"; break; case CPU_ARM_MPCORE: event_doc = "See ARM11 MPCore Processor Technical Reference Manual r1p0\n" "Page 3-70, performance counters\n"; break; case CPU_ARM_V6: event_doc = "See ARM11 Technical Reference Manual\n"; break; case CPU_ARM_V7: event_doc = "See Cortex-A8 Technical Reference Manual\n" "Cortex A8 DDI (ARM DDI 0344B, revision r1p1)\n"; break; case CPU_ARM_SCORPION: event_doc = "See ARM Architecture Reference Manual ARMv7-A and ARMv7-R Edition\n" "Scorpion Processor Family Programmer's Reference Manual (PRM)\n"; break; case CPU_ARM_SCORPIONMP: event_doc = "See ARM Architecture Reference Manual ARMv7-A and ARMv7-R Edition\n" "Scorpion Processor Family Programmer's Reference Manual (PRM)\n"; break; case CPU_ARM_V7_CA9: event_doc = "See Cortex-A9 Technical Reference Manual\n" "Cortex A9 DDI (ARM DDI 0388E, revision r2p0)\n"; break; case CPU_ARM_V7_CA5: event_doc = "See Cortex-A5 Technical Reference Manual\n" "Cortex A5 DDI (ARM DDI 0433B, revision r0p1)\n"; break; case CPU_ARM_V7_CA7: event_doc = "See Cortex-A7 MPCore Technical Reference Manual\n" "Cortex A7 DDI (ARM DDI 0464D, revision r0p3)\n"; break; case CPU_ARM_V7_CA15: event_doc = "See Cortex-A15 MPCore Technical Reference Manual\n" "Cortex A15 DDI (ARM DDI 0438F, revision r3p1)\n"; break; case CPU_PPC64_PA6T: event_doc = "See PA6T Power Implementation Features Book IV\n" "Chapter 7 Performance Counters\n"; break; case CPU_PPC64_POWER4: case CPU_PPC64_POWER5: case CPU_PPC64_POWER6: case CPU_PPC64_POWER5p: case CPU_PPC64_POWER5pp: case CPU_PPC64_970: case CPU_PPC64_970MP: case CPU_PPC64_POWER7: case CPU_PPC64_IBM_COMPAT_V1: event_doc = "When using operf, events may be specified without a '_GRP' suffix.\n" "If _GRP (i.e., group number) is not specified, one will be automatically\n" "selected for use by the profiler. OProfile post-processing tools will\n" "always show real event names that include the group number suffix.\n\n" "Documentation for IBM POWER7 can be obtained at:\n" "http://www.power.org/events/Power7/\n" "No public performance monitoring doc available for older processors.\n"; break; case CPU_PPC64_ARCH_V1: case CPU_PPC64_POWER8: event_doc = "This processor type is fully supported with operf; opcontrol timer mode may be available.\n" "See Power ISA 2.07 at https://www.power.org/\n\n"; break; case CPU_PPC64_CELL: event_doc = "Obtain Cell Broadband Engine documentation at:\n" "http://www-306.ibm.com/chips/techlib/techlib.nsf/products/Cell_Broadband_Engine\n"; break; case CPU_MIPS_20K: event_doc = "See Programming the MIPS64 20Kc Processor Core User's " "manual available from www.mips.com\n"; break; case CPU_MIPS_24K: event_doc = "See Programming the MIPS32 24K Core " "available from www.mips.com\n"; break; case CPU_MIPS_25K: event_doc = "See Programming the MIPS64 25Kf Processor Core User's " "manual available from www.mips.com\n"; break; case CPU_MIPS_34K: event_doc = "See Programming the MIPS32 34K Core Family " "available from www.mips.com\n"; break; case CPU_MIPS_74K: event_doc = "See Programming the MIPS32 74K Core Family " "available from www.mips.com\n"; break; case CPU_MIPS_1004K: event_doc = "See Programming the MIPS32 1004K Core Family " "available from www.mips.com\n"; break; case CPU_MIPS_5K: event_doc = "See Programming the MIPS64 5K Processor Core Family " "Software User's manual available from www.mips.com\n"; break; case CPU_MIPS_R10000: case CPU_MIPS_R12000: event_doc = "See NEC R10000 / R12000 User's Manual\n" "http://www.necelam.com/docs/files/U10278EJ3V0UM00.pdf\n"; break; case CPU_MIPS_RM7000: event_doc = "See RM7000 Family User Manual " "available from www.pmc-sierra.com\n"; break; case CPU_MIPS_RM9000: event_doc = "See RM9000x2 Family User Manual " "available from www.pmc-sierra.com\n"; break; case CPU_MIPS_SB1: case CPU_MIPS_VR5432: event_doc = "See NEC VR5443 User's Manual, Volume 1\n" "http://www.necelam.com/docs/files/1375_V1.pdf\n"; break; case CPU_MIPS_VR5500: event_doc = "See NEC R10000 / R12000 User's Manual\n" "http://www.necel.com/nesdis/image/U16677EJ3V0UM00.pdf\n"; break; case CPU_MIPS_LOONGSON2: event_doc = "See loongson2 RISC Microprocessor Family Reference Manual\n"; break; case CPU_PPC_E500: case CPU_PPC_E500_2: event_doc = "See PowerPC e500 Core Complex Reference Manual\n" "Chapter 7: Performance Monitor\n" "Downloadable from http://www.freescale.com\n"; break; case CPU_PPC_E300: event_doc = "See PowerPC e300 Core Reference Manual\n" "Downloadable from http://www.freescale.com\n"; break; case CPU_PPC_7450: event_doc = "See MPC7450 RISC Microprocessor Family Reference " "Manual\n" "Chapter 11: Performance Monitor\n" "Downloadable from http://www.freescale.com\n"; break; case CPU_AVR32: event_doc = "See AVR32 Architecture Manual\n" "Chapter 6: Performance Counters\n" "http://www.atmel.com/dyn/resources/prod_documents/doc32000.pdf\n"; break; case CPU_TILE_TILE64: case CPU_TILE_TILEPRO: case CPU_TILE_TILEGX: event_doc = "See Tilera development doc: Multicore Development " "Environment Optimization Guide.\n" "Contact Tilera Corporation or visit " "http://www.tilera.com for more information.\n"; break; case CPU_S390_Z10: case CPU_S390_Z196: case CPU_S390_ZEC12: event_doc = "IBM System z CPU Measurement Facility\n" "http://www-01.ibm.com/support/docview.wss" "?uid=isg26fcd1cc32246f4c8852574ce0044734a\n"; break; case CPU_RTC: break; // don't use default, if someone add a cpu he wants a compiler warning // if he forgets to handle it here. case CPU_TIMER_INT: case CPU_NO_GOOD: case MAX_CPU_TYPE: printf("%d is not a valid processor type.\n", cpu_type); exit(EXIT_FAILURE); } sprintf(title, "oprofile: available events for CPU type \"%s\"\n\n", pretty); if (want_xml) open_xml_events(title, event_doc, cpu_type); else { printf("%s%s", title, event_doc); printf("For architectures using unit masks, you may be able to specify\n" "unit masks by name. See 'opcontrol' or 'operf' man page for more details.\n\n"); } list_for_each(pos, events) { struct op_event * event = list_entry(pos, struct op_event, event_next); if (want_xml) xml_help_for_event(event); else help_for_event(event); } if (want_xml) close_xml_events(); return EXIT_SUCCESS; } oprofile-0.9.9/utils/Makefile.am0000664000076400007640000000066312175510134013503 00000000000000AM_CPPFLAGS=-I ${top_srcdir}/libop \ -I ${top_srcdir}/libutil \ @OP_CPPFLAGS@ AM_CFLAGS = @OP_CFLAGS@ AM_LDFLAGS = @OP_LDFLAGS@ LIBS=@POPT_LIBS@ @LIBERTY_LIBS@ bin_PROGRAMS = ophelp op-check-perfevents dist_bin_SCRIPTS = opcontrol op_check_perfevents_SOURCES = op_perf_events_checker.c op_check_perfevents_CPPFLAGS = ${AM_CFLAGS} @PERF_EVENT_FLAGS@ ophelp_SOURCES = ophelp.c ophelp_LDADD = ../libop/libop.a ../libutil/libutil.a oprofile-0.9.9/utils/opcontrol0000664000076400007640000014766412175510134013426 00000000000000#!/bin/sh # # opcontrol is a script to control OProfile # opcontrol --help and opcontrol --list-events have info # # Copyright 2002 # Read the file COPYING # # Authors: John Levon, Philippe Elie, Will Cohen, Jens Wilke, Daniel Hansel # # Copyright IBM Corporation 2007 # # NOTE: This script should be as shell independent as possible SYSCTL=do_sysctl # A replacement function for the sysctl (procps package) utility which is # missing on some distribution (e.g. slack 7.0). # Handles only the -w option of sysctl. do_sysctl() { if test "$1" != "-w"; then echo "$0 unknown sysctl option" >&2 exit 1 fi shift arg=`echo $1 | awk -F= '{print $1}'` val=`echo $1 | awk -F= '{print $2}'` dev_name=`echo $arg | tr . /` if test ! -f /proc/sys/$dev_name; then echo "/proc/sys/$dev_name does not exist or is not a regular file" >&2 exit 1 fi echo $val > /proc/sys/$dev_name } # Helper function to check if oprofile daemon is active. # Takes one argument: the "lock file" for the oprofile daemon. # The lock file may exist even if the daemon was killed or died in # some way. So we do a kill SIG_DFL to test whether the daemon is # truly alive. If the lock file is stale (daemon dead), the kill will # not return '0'. is_oprofiled_active() { [ -f "$1" ] && kill -0 `cat "$1"` 2>/dev/null } # check value is set error_if_empty() { if test -z "$2"; then echo "No value given for option $1" >&2 do_help exit 1 fi } # guess_number_base() checks if string is a valid octal(8), hexidecimal(16), # or decimal number(10). The value is returned in $?. Returns 0, if string # isn't a octal, hexidecimal, or decimal number. guess_number_base() { case "$1" in 0[Xx]*[!0-9a-fA-F]*) return 0 ;; # Bad hex string 0[Xx][0-9a-fA-F]*) return 16 ;; # Hex *[!0-9]*) return 0 ;; # Some non-digit char [1-9]*) return 10 ;; # Base 10 0*[89]*) return 0 ;; # Bad octal string 0*) return 8 ;; # Octal esac return 0 } # check value is a valid number error_if_not_number() { error_if_empty "$1" "$2" guess_number_base "$2" if test "$?" -eq 0 ; then echo "Argument for $1, $2, is not a valid number." >&2 exit 1 fi } # check value is a base filename error_if_not_valid_savename() { error_if_empty "$1" "$2" bname=`basename "$2"` if test "$2" != "$bname"; then echo "Argument for $1, $2, cannot change directory." >&2 exit 1 fi case "$2" in # The following catches anything that is not # 0-9, a-z, A-Z, an '-', ':', ',', '.', or '/' *[!-[:alnum:]_:,./]*) echo "Argument for $1, $2, not allow to have special characters" >&2 exit 1;; esac } error_if_invalid_arg() { error_if_empty "$1" "$2" case "$2" in # The following catches anything that is not # 0-9, a-z, A-Z, an '-', ':', ',', '.', or '/' *[!-[:alnum:]_:,./]*) echo "Argument for $1, $2, is not valid argument." >&2 exit 1;; esac } # rm_device arguments $1=file_name rm_device() { if test -c "$1"; then vecho "Removing $1" rm "$1" fi } # create_device arguments $1=file_name $2=MAJOR_NR $3=MINOR_NR create_device() { vecho "Doing mknod $1" mknod "$1" c $2 $3 if test "$?" != "0"; then echo "Couldn't mknod $1" >&2 exit 1 fi chmod 700 "$1" } move_and_remove() { if test -e $1; then mv $1 $SAMPLES_DIR/.tmp_reset.$$ rm -rf $SAMPLES_DIR/.tmp_reset.$$ fi } # verbose echo vecho() { if test -n "$VERBOSE"; then echo $@ fi } is_tool_available() { if which $1 > /dev/null 2>&1; then if test -x `which $1`; then return 1 fi fi return 0 } # print help message do_help() { cat >&2 < List of domains in profiling session (for Xen) (list contains domain ids separated by commas) System z specific options --s390hwsampbufsize=num Number of 2MB areas used per CPU for storing sample data. EOF } # load the module and mount oprofilefs load_module_26() { grep oprofilefs /proc/filesystems >/dev/null if test "$?" -ne 0; then modprobe oprofile if test "$?" != "0"; then # couldn't load the module return fi grep oprofile /proc/modules >/dev/null if test "$?" != "0"; then # didn't find module return fi grep oprofilefs /proc/filesystems >/dev/null if test "$?" -ne 0; then # filesystem still not around return fi fi mkdir /dev/oprofile >/dev/null 2>&1 grep oprofilefs /proc/mounts >/dev/null if test "$?" -ne 0; then mount -t oprofilefs nodev /dev/oprofile >/dev/null fi KERNEL_SUPPORT=yes OPROFILE_AVAILABLE=yes } load_module() { OPROFILE_AVAILABLE=no load_module_26 if test "$OPROFILE_AVAILABLE" != "yes"; then echo "Kernel doesn't support oprofile" >&2 exit 1 fi } # setup variables related to path or daemon. Set vars according to following # relationship: command-line-option > config-file-settings > defaults. # Note that upon entry SESSION_DIR may be set by command-line option. do_init_daemon_vars() { # load settings from config file, keeping command-line value # of SESSION_DIR if necessary. if test -n "$SESSION_DIR"; then SAVED=$SESSION_DIR fi do_load_setup if test -n "$SAVED"; then SESSION_DIR=$SAVED fi # daemon parameters (as in op_config.h). Note that we preserve # any previous value of SESSION_DIR if test -z "$SESSION_DIR"; then SESSION_DIR="/var/lib/oprofile" fi LOCK_FILE="$SESSION_DIR/lock" SAMPLES_DIR="$SESSION_DIR/samples" LOG_FILE="$SAMPLES_DIR/oprofiled.log" CURRENT_SAMPLES_DIR="$SAMPLES_DIR/current" } # pick the appropriate device mount based on kernel decide_oprofile_device_mount() { if test "$KERNEL_SUPPORT" = "yes"; then MOUNT="/dev/oprofile" else MOUNT="/proc/sys/dev/oprofile" fi } # pick the appropriate locations device for oprofile based on kernel decide_oprofile_device() { if test "$KERNEL_SUPPORT" = "yes"; then DEVICE_FILE="$MOUNT/buffer" else DEVICE_FILE="$SESSION_DIR/opdev" NOTE_DEVICE_FILE="$SESSION_DIR/opnotedev" HASH_MAP_DEVICE_FILE="$SESSION_DIR/ophashmapdev" fi } # initialise parameters do_init() { # for these three buffer size == 0 means use the default value # hard-coded in op_user.h BUF_SIZE=0 BUF_WATERSHED=0 CPU_BUF_SIZE=0 NOTE_SIZE=0 VMLINUX= XENIMAGE="none" VERBOSE="" SEPARATE_LIB=0 SEPARATE_KERNEL=0 SEPARATE_THREAD=0 SEPARATE_CPU=0 CALLGRAPH=0 IBS_FETCH_EVENTS="" IBS_FETCH_COUNT=0 IBS_FETCH_UNITMASK=0 IBS_OP_EVENTS="" IBS_OP_COUNT=0 IBS_OP_UNITMASK=0 # System z specific values S390_HW_SAMPLER=0 S390_HW_SAMPLER_BUFSIZE=0 OPROFILED="$OPDIR/oprofiled" # location for daemon setup information SETUP_DIR="/root/.oprofile" SETUP_FILE="$SETUP_DIR/daemonrc" SEC_SETUP_FILE="$SETUP_DIR/daemonrc_new" # initialize daemon vars decide_oprofile_device_mount CPUTYPE=`cat $MOUNT/cpu_type` OP_COUNTERS=`ls $MOUNT/ | grep "^[0-9]\+\$" | tr "\n" " "` OP_COUNTERS="$OP_COUNTERS `ls $MOUNT/ | grep "^timer\+\$"`" NR_CHOSEN=0 do_init_daemon_vars decide_oprofile_device DEFAULT_EVENT=`$OPHELP --get-default-event` IS_TIMER=0 IS_PERFMON=0 if test "$CPUTYPE" = "timer"; then IS_TIMER=1 else case "$CPUTYPE" in s390/*) S390_HW_SAMPLER=1 ;; ia64/*) IS_PERFMON=$KERNEL_SUPPORT ;; ppc64/power8) echo "*** IBM POWER 8 processor is not supported with opcontrol. Please use operf instead. ***" do_deinit exit 1 ;; esac fi # Ignore configured events when running in timer mode. if test "$IS_TIMER" = 1; then NR_CHOSEN=0 fi } create_dir() { if test ! -d "$1"; then mkdir -p "$1" if test "$?" != "0"; then echo "Couldn't mkdir -p $1" >&2 exit 1 fi chmod 755 "$1" fi } get_event() { GOTEVENT=`eval "echo \\$CHOSEN_EVENTS_$1"` } set_event() { eval "CHOSEN_EVENTS_$1=$2" } # save all the setup related information do_save_setup() { create_dir "$SETUP_DIR" SAVE_SETUP_FILE="$SETUP_FILE" # If the daemon is currently running, we want changes to the daemon config # stored in the secondary cache file so that 'opcontrol --status' will # show actual config data for the running daemon. The next time the # daemon is restarted, we'll reload the config data from this secondary # cache file. if is_oprofiled_active "$LOCK_FILE"; then SETUP_FILE="$SEC_SETUP_FILE" echo "The profiling daemon is currently active, so changes to the configuration" echo "will be used the next time you restart oprofile after a --shutdown or --deinit." fi touch $SETUP_FILE chmod 644 $SETUP_FILE >$SETUP_FILE echo "SESSION_DIR=$SESSION_DIR" >>$SETUP_FILE if test "$NR_CHOSEN" != "0"; then for f in `seq 0 $((NR_CHOSEN - 1))`; do get_event $f echo "CHOSEN_EVENTS_${f}=$GOTEVENT" >>$SETUP_FILE done fi echo "NR_CHOSEN=$NR_CHOSEN" >>$SETUP_FILE echo "SEPARATE_LIB=$SEPARATE_LIB" >> $SETUP_FILE echo "SEPARATE_KERNEL=$SEPARATE_KERNEL" >> $SETUP_FILE echo "SEPARATE_THREAD=$SEPARATE_THREAD" >> $SETUP_FILE echo "SEPARATE_CPU=$SEPARATE_CPU" >> $SETUP_FILE echo "VMLINUX=$VMLINUX" >> $SETUP_FILE echo "IMAGE_FILTER=$IMAGE_FILTER" >> $SETUP_FILE # write the actual information to file if test "$BUF_SIZE" != "0"; then echo "BUF_SIZE=$BUF_SIZE" >> $SETUP_FILE fi if test "$BUF_WATERSHED" != "0"; then echo "BUF_WATERSHED=$BUF_WATERSHED" >> $SETUP_FILE fi if test "$KERNEL_SUPPORT" = "yes"; then echo "CPU_BUF_SIZE=$CPU_BUF_SIZE" >> $SETUP_FILE fi if test "$KERNEL_SUPPORT" != "yes"; then echo "NOTE_SIZE=$NOTE_SIZE" >> $SETUP_FILE fi echo "CALLGRAPH=$CALLGRAPH" >> $SETUP_FILE if test "$KERNEL_RANGE"; then echo "KERNEL_RANGE=$KERNEL_RANGE" >> $SETUP_FILE fi echo "XENIMAGE=$XENIMAGE" >> $SETUP_FILE if test "$XEN_RANGE"; then echo "XEN_RANGE=$XEN_RANGE" >> $SETUP_FILE fi if test "$S390_HW_SAMPLER" = "1" -a "$S390_HW_SAMPLER_BUFSIZE" != "0"; then echo "S390_HW_SAMPLER_BUFSIZE=$S390_HW_SAMPLER_BUFSIZE" >> $SETUP_FILE fi SETUP_FILE="$SAVE_SETUP_FILE" } # reload all the setup-related information do_load_setup() { # If a secondary setup file exists and the daemon is not running, # then we'll move the data from the secondary file to the actual # setup file to prepare for daemon startup. if test -z "$SESSION_DIR"; then __TMP_SESSION_DIR="/var/lib/oprofile" else __TMP_SESSION_DIR="$SESSION_DIR" fi if test -f "$SEC_SETUP_FILE"; then is_oprofiled_active "$__TMP_SESSION_DIR/lock" \ || mv "$SEC_SETUP_FILE" "$SETUP_FILE" fi if test ! -f "$SETUP_FILE"; then return; fi while IFS== read -r arg val; do case "$arg" in # The following catches anything that is not # 0-9, a-z, A-Z, or an '_' *[![:alnum:]_]*) echo "Invalid variable \"$arg\" in $SETUP_FILE." exit 1;; esac case "$val" in # The following catches anything that is not # 0-9, a-z, A-Z, an '-', ':', ',', '.', or '/' *[!-[:alnum:]_:,./]*) echo "Invalid value \"$val\" for $arg in $SETUP_FILE." exit 1;; esac eval "${arg}=${val}" done < $SETUP_FILE } check_valid_args() { if test -z "$VMLINUX"; then echo "No vmlinux file specified. You must specify the correct vmlinux file, e.g." >&2 echo "opcontrol --vmlinux=/path/to/vmlinux" >&2 echo "If you do not have a vmlinux file, use " >&2 echo "opcontrol --no-vmlinux" >&2 echo "Enter opcontrol --help for full options" >&2 exit 1 fi if test -f "$VMLINUX"; then return fi if test "$VMLINUX" = "none"; then return fi echo "The specified vmlinux file \"$VMLINUX\" doesn't exist." >&2 exit 1 # similar check for Xen image if test -f "$XENIMAGE"; then return fi if test "$XENIMAGE" = "none"; then return fi echo "The specified XenImage file \"$XENIMAGE\" does not exist." >&2 exit 1 } # get start and end points of a file image (linux kernel or xen) # get_image_range parameter: $1=type_of_image (linux or xen) get_image_range() { if test "$1" = "xen"; then if test ! -z "$XEN_RANGE"; then return; fi FILE_IMAGE="$XENIMAGE" else if test ! -z "$KERNEL_RANGE"; then return; fi FILE_IMAGE="$VMLINUX" fi if test "$FILE_IMAGE" = "none"; then return; fi if is_tool_available objdump; then echo "objdump is not installed on this system, use opcontrol --kernel-range=start,end or opcontrol --xen-range= or install objdump" exit 1 fi # start at the start of .text, and end at _etext range_info=`objdump -h $FILE_IMAGE 2>/dev/null | grep " .text "` tmp1=`echo $range_info | awk '{print $4}'` tmp2=`objdump -t $FILE_IMAGE 2>/dev/null | grep "_etext$" | awk '{ print $1 }'` if test -z "$tmp1" -o -z "$tmp2"; then echo "The specified file $FILE_IMAGE does not seem to be valid" >&2 echo "Make sure you are using the non-compressed image file (e.g. vmlinux not vmlinuz)" >&2 vecho "found start as \"$tmp1\", end as \"$tmp2\"" >&2 exit 1 fi if test "$1" = "xen"; then XEN_RANGE="`echo $tmp1`,`echo $tmp2`" vecho "XEN_RANGE $XEN_RANGE" else KERNEL_RANGE="`echo $tmp1`,`echo $tmp2`" vecho "KERNEL_RANGE $KERNEL_RANGE" fi } # validate --separate= parameters. This function is called with IFS=, # so on each argument is splitted validate_separate_args() { error_if_empty $1 $2 # we need at least one argument local i=1 SEPARATE_LIB=0 SEPARATE_KERNEL=0 SEPARATE_THREAD=0 SEPARATE_CPU=0 while [ "$i" -lt "$#" ]; do shift case "$1" in lib|library) SEPARATE_LIB=1 ;; kernel) # first implied by second SEPARATE_LIB=1 SEPARATE_KERNEL=1 ;; thread) SEPARATE_THREAD=1 ;; cpu) SEPARATE_CPU=1 ;; all) SEPARATE_LIB=1 SEPARATE_KERNEL=1 SEPARATE_THREAD=1 SEPARATE_CPU=1 ;; none) SEPARATE_LIB=0 SEPARATE_KERNEL=0 SEPARATE_THREAD=0 SEPARATE_CPU=0 ;; *) echo "invalid --separate= argument: $1" exit 1 esac done } # check the counters make sense, and resolve the hardware allocation verify_counters() { if test "$IS_TIMER" = 1; then if test "$NR_CHOSEN" != 0; then echo "You cannot specify any performance counter events" >&2 echo "because OProfile is in timer mode." >&2 exit 1 fi return fi OPHELP_ARGS= if test "$NR_CHOSEN" != 0; then for f in `seq 0 $((NR_CHOSEN - 1))`; do get_event $f if test "$GOTEVENT" != ""; then verify_ibs $GOTEVENT OPHELP_ARGS="$OPHELP_ARGS $GOTEVENT" fi done if test ! -z "$OPHELP_ARGS" ; then HW_CTRS=`$OPHELP --check-events $OPHELP_ARGS --callgraph=$CALLGRAPH` if test "$?" != 0; then exit 1 fi fi fi } # setup any needed default value in chosen events normalise_events() { if test "$NR_CHOSEN" -le 0 || test "$IS_TIMER" = 1; then return fi for f in `seq 0 $((NR_CHOSEN - 1))`; do get_event $f if test "$GOTEVENT" != ""; then EVENT=`echo $GOTEVENT | awk -F: '{print $1}'` EVENT_VAL=`$OPHELP $EVENT` if test "$?" != 0; then exit 1 fi COUNT=`echo $GOTEVENT | awk -F: '{print $2}'` UNIT_MASK=`echo $GOTEVENT | awk -F: '{print $3}'` KERNEL=`echo $GOTEVENT | awk -F: '{print $4}'` USER=`echo $GOTEVENT | awk -F: '{print $5}'` TMPEVENT="$EVENT:$COUNT:$UNIT_MASK" UNIT_MASK=`$OPHELP --unit-mask $TMPEVENT` UNIT_MASK_NAMED="$UNIT_MASK" if test "$?" != 0; then exit 1 fi if test -z "$KERNEL"; then KERNEL=1 fi if test -z "$USER"; then USER=1 fi set_event $f "$EVENT:$COUNT:$UNIT_MASK:$KERNEL:$USER" fi done } # get and check specified options do_options() { EXCLUSIVE_ARGC=0 SETUP=no NEED_SETUP=no SEEN_EVENT=0 # note: default settings have already been loaded while [ "$#" -ne 0 ] do arg=`printf %s $1 | awk -F= '{print $1}'` val=`printf %s $1 | awk -F= '{print $2}'` shift if test -z "$val"; then local possibleval=$1 printf %s $1 "$possibleval" | grep ^- >/dev/null 2>&1 if test "$?" != "0"; then val=$possibleval if [ "$#" -ge 1 ]; then shift fi fi fi case "$arg" in --init) # this is already done in load_module # because need to know the processor type # and number of registers INIT=yes; EXCLUSIVE_ARGC=`expr $EXCLUSIVE_ARGC + 1` EXCLUSIVE_ARGV="$arg" ;; --setup) SETUP=yes ;; --start-daemon) if test "$KERNEL_SUPPORT" != "yes"; then echo "$arg unsupported. use \"--start\"" >&2 exit 1 fi START_DAEMON=yes EXCLUSIVE_ARGC=`expr $EXCLUSIVE_ARGC + 1` EXCLUSIVE_ARGV="$arg" ;; -s|--start) START=yes EXCLUSIVE_ARGC=`expr $EXCLUSIVE_ARGC + 1` EXCLUSIVE_ARGV="$arg" ;; -d|--dump) DUMP=yes ONLY_DUMP=yes EXCLUSIVE_ARGC=`expr $EXCLUSIVE_ARGC + 1` EXCLUSIVE_ARGV="$arg" ;; -t|--stop) if test "$KERNEL_SUPPORT" != "yes"; then echo "$arg unsupported. use \"--shutdown\"" >&2 exit 1 fi DUMP=yes STOP=yes EXCLUSIVE_ARGC=`expr $EXCLUSIVE_ARGC + 1` EXCLUSIVE_ARGV="$arg" ;; -h|--shutdown) DUMP=yes STOP=yes KILL_DAEMON=yes EXCLUSIVE_ARGC=`expr $EXCLUSIVE_ARGC + 1` EXCLUSIVE_ARGV="$arg" ;; --status) STATUS=yes ;; --reset) DUMP=yes RESET=yes EXCLUSIVE_ARGC=`expr $EXCLUSIVE_ARGC + 1` EXCLUSIVE_ARGV="$arg" ;; --save) error_if_not_valid_savename "$arg" "$val" DUMP=yes SAVE_SESSION=yes SAVE_NAME=$val EXCLUSIVE_ARGC=`expr $EXCLUSIVE_ARGC + 1` EXCLUSIVE_ARGV="$arg" ;; --deinit) DUMP=yes test ! -f "$LOCK_FILE" || { STOP=yes KILL_DAEMON=yes } DEINIT=yes EXCLUSIVE_ARGC=`expr $EXCLUSIVE_ARGC + 1` EXCLUSIVE_ARGV="$arg" ;; # --setup options --session-dir) # already processed ;; --buffer-size) error_if_not_number "$arg" "$val" BUF_SIZE=$val DO_SETUP=yes ;; --buffer-watershed) if test "$KERNEL_SUPPORT" != "yes"; then echo "$arg unsupported for this kernel version" exit 1 fi error_if_not_number "$arg" "$val" BUF_WATERSHED=$val DO_SETUP=yes ;; --cpu-buffer-size) if test "$KERNEL_SUPPORT" != "yes"; then echo "$arg unsupported for this kernel version" exit 1 fi error_if_not_number "$arg" "$val" CPU_BUF_SIZE=$val DO_SETUP=yes ;; -e|--event) error_if_invalid_arg "$arg" "$val" # reset any read-in defaults from daemonrc if test "$SEEN_EVENT" = "0"; then NR_CHOSEN=0 SEEN_EVENT=1 fi if test "$val" = "default"; then val=$DEFAULT_EVENT fi set_event $NR_CHOSEN "$val" NR_CHOSEN=`expr $NR_CHOSEN + 1` DO_SETUP=yes ;; -p|--separate) OLD_IFS=$IFS IFS=, validate_separate_args $arg $val IFS=$OLD_IFS DO_SETUP=yes ;; -c|--callgraph) if test ! -f $MOUNT/backtrace_depth; then echo "Call-graph profiling unsupported on this kernel/hardware" >&2 exit 1 fi error_if_not_number "$arg" "$val" CALLGRAPH=$val DO_SETUP=yes ;; --vmlinux) error_if_invalid_arg "$arg" "$val" VMLINUX=$val DO_SETUP=yes ;; --no-vmlinux) VMLINUX=none DO_SETUP=yes ;; --kernel-range) error_if_invalid_arg "$arg" "$val" KERNEL_RANGE=$val DO_SETUP=yes ;; --xen) error_if_invalid_arg "$arg" "$val" XENIMAGE=$val DO_SETUP=yes ;; --active-domains) error_if_invalid_arg $arg $val ACTIVE_DOMAINS=$val DO_SETUP=yes ;; -i|--image) error_if_invalid_arg "$arg" "$val" if test "$val" = "all"; then IMAGE_FILTER= else IMAGE_FILTER=$val fi DO_SETUP=yes ;; -V|--verbose) if test -z "$val"; then VERBOSE="all" else error_if_invalid_arg "$arg" "$val" VERBOSE=$val fi ;; -l|--list-events) EXCLUSIVE_ARGC=`expr $EXCLUSIVE_ARGC + 1` EXCLUSIVE_ARGV="$arg" exec $OPHELP ;; --s390hwsampbufsize) error_if_not_number "$arg" "$val" S390_HW_SAMPLER_BUFSIZE=$val DO_SETUP=yes ;; *) echo "Unknown option \"$arg\". See opcontrol --help" >&2 exit 1 ;; esac done normalise_events verify_counters # error checking to make sure options make sense if test "$EXCLUSIVE_ARGC" -gt 1; then echo "Option \"$EXCLUSIVE_ARGV\" not valid with other options." >&2 exit 1 fi if test "$SETUP" = "yes" -a "$DO_SETUP" != "yes"; then echo "No options specified for --setup." >&2 exit 1 fi if test -n "$VERBOSE"; then if test "$START" != "yes" -a "$START_DAEMON" != "yes"; then echo "Option --verbose may only be used with --start or --start-daemon" >&2 exit 1 fi fi if test "$DO_SETUP" = "yes"; then SETUP="$DO_SETUP" fi if test "$EXCLUSIVE_ARGC" -eq 1 -a "$SETUP" = "yes"; then if test "$EXCLUSIVE_ARGV" != "--start-daemon" -a "$EXCLUSIVE_ARGV" != "--start"; then echo "Option \"--setup\" not valid with \"$EXCLUSIVE_ARGV\"." >&2 exit 1 fi fi vecho "Parameters used:" vecho "SESSION_DIR $SESSION_DIR" vecho "LOCK_FILE $LOCK_FILE" vecho "SAMPLES_DIR $SAMPLES_DIR" vecho "CURRENT_SAMPLES_DIR $CURRENT_SAMPLES_DIR" vecho "CPUTYPE $CPUTYPE" if test "$BUF_SIZE" != "0"; then vecho "BUF_SIZE $BUF_SIZE" else vecho "BUF_SIZE default value" fi if test "$BUF_WATERSHED" != "0"; then vecho "BUF_WATERSHED $BUF_WATERSHED" else vecho "BUF_WATERSHED default value" fi if test "$KERNEL_SUPPORT" = "yes"; then if test "$CPU_BUF_SIZE" != "0"; then vecho "CPU_BUF_SIZE $CPU_BUF_SIZE" else vecho "CPU_BUF_SIZE default value" fi fi vecho "SEPARATE_LIB $SEPARATE_LIB" vecho "SEPARATE_KERNEL $SEPARATE_KERNEL" vecho "SEPARATE_THREAD $SEPARATE_THREAD" vecho "SEPARATE_CPU $SEPARATE_CPU" vecho "CALLGRAPH $CALLGRAPH" vecho "VMLINUX $VMLINUX" vecho "KERNEL_RANGE $KERNEL_RANGE" vecho "XENIMAGE $XENIMAGE" vecho "XEN_RANGE $XEN_RANGE" } # stop any existing daemon do_stop() { if test ! -f "$LOCK_FILE"; then echo "Daemon not running" >&2 return fi kill -0 `cat $LOCK_FILE` 2>/dev/null if test "$?" -ne 0; then echo "Detected stale lock file. Removing." >&2 rm -f "$LOCK_FILE" return fi if test $KERNEL_SUPPORT = "yes" \ && test 0 != $(cat /dev/oprofile/enable); then echo "Stopping profiling." echo 0 >/dev/oprofile/enable fi kill -USR2 `cat $LOCK_FILE` 2>/dev/null } # kill the daemon process(es) do_kill_daemon() { if test ! -f "$LOCK_FILE"; then # no error message, do_kill_daemon imply stop and stop already # output "Daemon not running" return fi kill -0 `cat $LOCK_FILE` 2>/dev/null if test "$?" -ne 0; then echo "Detected stale lock file. Removing." >&2 rm -f "$LOCK_FILE" return fi echo "Killing daemon." if test $KERNEL_SUPPORT = "yes"; then kill -TERM `cat $LOCK_FILE` else echo 1 >/proc/sys/dev/oprofile/dump_stop fi COUNT=0 while test -n "`pidof oprofiled`" do sleep 1 # because oprofiled only sets a variable inside the # signal handler itself, it's possible to miss a # signal just before it goes to sleep waiting for # data from the kernel that never arrives. So we # remind it it needs to die - this works because # the signal will bring oprofiled out of the kernel # back into userspace if test $KERNEL_SUPPORT = "yes"; then pid=`cat $LOCK_FILE 2>/dev/null` kill -TERM "$pid" 2>/dev/null fi COUNT=`expr $COUNT + 1` # IBS can generate a large number of samples/events. # Therefore, extend the delay before killing if test "$IBS_FETCH_COUNT" != "0" \ -o "$IBS_OP_COUNT" != "0" ; then DELAY_KILL=60 else DELAY_KILL=15 fi if test "$COUNT" -eq "$DELAY_KILL"; then echo "Daemon stuck shutting down; killing !" kill -9 `cat $LOCK_FILE` fi done sleep 1 # already removed unless we forced the kill rm -f "$SESSION_DIR/lock" } # remove any old files from a previous run prep_jitdump() { local dumpdir=/tmp/.oprofile/jitdump # VMs may already be running when profiling is started, so # remove only dump files that are not in use for I in $dumpdir/*; do test -f $I || continue; local pid=`basename $I .dump`; if test -d /proc/$pid; then local files=`find /proc/$pid/fd -lname $I`; test -n "$files" && continue; fi rm -f $I; done } # setup and start module do_setup() { create_dir "$SESSION_DIR" create_dir "$CURRENT_SAMPLES_DIR" prep_jitdump; } # set a sysctl/oprofilefs parameter set_param() { if test "$KERNEL_SUPPORT" = "yes"; then echo $2 >$MOUNT/$1 else $SYSCTL -w dev.oprofile.$1=$2 fi } # set a sysctl/oprofilefs counter parameter set_ctr_param() { # no such thing for perfmon if test "$IS_PERFMON" = "yes"; then return fi if test "$KERNEL_SUPPORT" = "yes"; then if test "$1" = "timer" -a "$2" != "enabled"; then # For now everything other than 'enabled' is # unsupported for the `timer' counter. return fi if test -e $MOUNT/$1; then echo $3 >$MOUNT/$1/$2 2>/dev/null if test $? -ne 0; then echo "Value $3 is not accepted by $MOUNT/$1/$2" exit 1 fi else echo -n "Error: counter $1 not available" if test -e /proc/sys/kernel/nmi_watchdog; then echo " nmi_watchdog using this resource ? Try:" echo "opcontrol --deinit" echo "echo 0 > /proc/sys/kernel/nmi_watchdog" fi exit 1 fi else $SYSCTL -w dev.oprofile.$1.$2=$3 fi } # returns 1 if $CPUTYPE is a PPC64 variant is_non_cell_ppc64_variant() { case "$1" in ppc64/*cell*) return 0 ;; ppc64/*) return 1 ;; *) return 0 ;; esac } # The arch_event_validate procedure gives the # opportunity to validate events and enforce any # arch-specific restritions, etc. arch_event_validate() { is_non_cell_ppc64_variant $CPUTYPE if test $? -ne 0 ; then # For PPC64 architectures, the values required to program # MMCRs for the given event are returned along with the event. # Here we use those values to ensure that all chosen events # are from the same group. MMCR0=`echo $EVENT_STR | awk '{print $2}'` MMCR1=`echo $EVENT_STR | awk '{print $3}'` MMCRA=`echo $EVENT_STR | awk '{print $4}'` MMCR0_VAL=`echo $MMCR0 | awk -F: '{print $2}'` MMCR1_VAL=`echo $MMCR1 | awk -F: '{print $2}'` MMCRA_VAL=`echo $MMCRA | awk -F: '{print $2}'` ## mmcr0, mmcr1, mmcra are for all ppc64 counters # Save first event mmcr settings to compare with additional # events. All events must have the same mmcrx values i.e. be in # the same group. Only one event is assigned per counter, # hence there will not be a conflict on the counters if [ "$MMCR0_CK_VAL" = "" ] ; then MMCR0_CK_VAL=$MMCR0_VAL MMCR1_CK_VAL=$MMCR1_VAL MMCRA_CK_VAL=$MMCRA_VAL else # make sure all events are from the same group if test $MMCR0_CK_VAL != $MMCR0_VAL \ -o $MMCR1_CK_VAL != $MMCR1_VAL \ -o $MMCRA_CK_VAL != $MMCRA_VAL ; then echo "ERROR: The specified events are not from the same group." echo " Use 'opcontrol --list-events' to see event groupings." exit 1 fi fi # Check if all user/kernel flags per-counter are matching. if [ "$USER_CK" = "" ] ; then USER_CK=$USER KERNEL_CK=$KERNEL else if test $USER_CK != $USER \ -o $KERNEL_CK != $KERNEL ; then echo "ERROR: All kernel/user event flags must match." exit 1 fi fi fi if [ "$CPUTYPE" = "ppc64/cell-be" ]; then event_num=`echo $EVENT_STR | awk '{print $1}'` # PPU event and cycle events can be measured at # the same time. SPU event can not be measured # at the same time as any other event. Similarly for # SPU Cycles # We use EVNT_MSK to track what events have already # been seen. Valid values are: # NULL string - no events seen yet # 1 - PPU CYCLES or PPU Event seen # 2 - SPU CYCLES seen # 3 - SPU EVENT seen # check if event is PPU_CYCLES if [ "$event_num" = "1" ]; then if [ "$EVNT_MSK" = "1" ] || [ "$EVNT_MSK" = "" ]; then EVNT_MSK=1 else echo "PPU CYCLES not compatible with previously specified event" exit 1 fi # check if event is SPU_CYCLES elif [ "$event_num" = "2" ]; then if [ "$EVNT_MSK" = "" ]; then EVNT_MSK=2 else echo "SPU CYCLES not compatible with any other event" exit 1 fi # check if event is SPU Event profiling elif [ "$event_num" -ge "4100" ] && [ "$event_num" -le "4163" ] ; then if [ "$EVNT_MSK" = "" ]; then EVNT_MSK=3 else echo "SPU event profiling not compatible with any other event" exit 1 fi # Check to see that the kernel supports SPU event # profiling. Note, if the file exits it should have # the LSB bit set to 1 indicating SPU event profiling # support. For now, it is sufficient to test that the # file exists. if test ! -f /dev/oprofile/cell_support; then echo "Kernel does not support SPU event profiling" exit 1 fi # check if event is PPU Event profiling (all other # events are PPU events) else if [ "$EVNT_MSK" = "1" ] || [ "$EVNT_MSK" = "" ]; then EVNT_MSK=1 else echo "PPU profiling not compatible with previously specified event" exit 1 fi fi fi if test "$S390_HW_SAMPLER" = "1" -a "$EVENT" = "HWSAMPLING"; then if test "$CALLGRAPH" != "0"; then echo "Callgraph sample collection is not supported with " >&2 echo "System z hardware sampling. Please use --callgraph=0 " >&2 echo "or enable timer based sampling." >&2 exit 1 fi echo "$COUNT" > $MOUNT/0/count NEW_COUNT=`cat $MOUNT/0/count` if test "$NEW_COUNT" -lt "$COUNT"; then echo "Warning: Hardware sampling intervals higher than $NEW_COUNT are not supported." >&2 echo "Value is set to $NEW_COUNT." >&2 COUNT=$NEW_COUNT fi if test "$NEW_COUNT" -gt "$COUNT"; then echo "Warning: Hardware sampling intervals lower than $NEW_COUNT are not supported." >&2 echo "Value is set to $NEW_COUNT." >&2 COUNT=$NEW_COUNT fi fi len=`echo -n $event_num | wc -c` num_chars_in_grpid=`expr $len - 2` GRP_NUM_VAL=`echo | awk '{print substr("'"${event_num}"'",1,"'"${num_chars_in_grpid}"'")}'` if [ "$GRP_NUM_CK_VAL" = "" ] ; then GRP_NUM_CK_VAL=$GRP_NUM_VAL else if test $GRP_NUM_CK_VAL != $GRP_NUM_VAL ; then echo "ERROR: The specified events are not from the same group." >&2 echo " Use 'opcontrol --list-events' to see event groupings." >&2 exit 1 fi fi } do_param_setup() { # different names if test $BUF_SIZE != 0; then if test "$KERNEL_SUPPORT" = "yes"; then echo $BUF_SIZE >$MOUNT/buffer_size else $SYSCTL -w dev.oprofile.bufsize=$BUF_SIZE fi fi if test $BUF_WATERSHED != 0; then if test "$KERNEL_SUPPORT" = "yes"; then echo $BUF_WATERSHED >$MOUNT/buffer_watershed else echo "buffer-watershed not supported - ignored" >&2 fi fi if test $CPU_BUF_SIZE != 0; then if test "$KERNEL_SUPPORT" = "yes"; then echo $CPU_BUF_SIZE >$MOUNT/cpu_buffer_size else echo "cpu-buffer-size not supported - ignored" >&2 fi fi if test -n "$ACTIVE_DOMAINS"; then if test "$KERNEL_SUPPORT" = "yes"; then echo $ACTIVE_DOMAINS >$MOUNT/active_domains else echo "active-domains not supported - ignored" >&2 fi fi if test $NOTE_SIZE != 0; then set_param notesize $NOTE_SIZE fi if test "$KERNEL_SUPPORT" = "yes" -a -f $MOUNT/backtrace_depth; then set_param backtrace_depth $CALLGRAPH elif test "$CALLGRAPH" != "0"; then echo "Call-graph profiling not supported - ignored" >&2 fi if test "$IS_TIMER" = 1; then return fi if test "$S390_HW_SAMPLER" = "1" -a "$S390_HW_SAMPLER_BUFSIZE" != "0"; then echo $S390_HW_SAMPLER_BUFSIZE >$MOUNT/0/hw_sdbt_blocks fi # use the default setup if none set if test "$NR_CHOSEN" = 0; then set_event 0 $DEFAULT_EVENT NR_CHOSEN=1 HW_CTRS=`$OPHELP --check-events $DEFAULT_EVENT --callgraph=$CALLGRAPH` echo "Using default event: $DEFAULT_EVENT" fi # Necessary in this case : # opcontrol ctr0-on ctr1-on then opcontrol ctr0-on for f in $OP_COUNTERS ; do set_ctr_param $f enabled 0 set_ctr_param $f event 0 set_ctr_param $f count 0 if test -f $MOUNT/$f/extra ; then set_ctr_param $f extra 0 fi done # Check if driver has IBS support if test -d $MOUNT/ibs_fetch; then # Reset driver's IBS fetch setting set_param ibs_fetch/enable 0 fi if test -d $MOUNT/ibs_op ; then # Reset driver's IBS op setting set_param ibs_op/enable 0 fi verify_counters OPROFILED_EVENTS= for f in `seq 0 $((NR_CHOSEN - 1))`; do get_event $f if test "$GOTEVENT" != ""; then EVENT=`echo $GOTEVENT | awk -F: '{print $1}'` EVENT_STR=`$OPHELP $EVENT` EVENT_VAL=`echo $EVENT_STR | awk '{print $1}'` COUNT=`echo $GOTEVENT | awk -F: '{print $2}'` UNIT_MASK=`echo $GOTEVENT | awk -F: '{print $3}'` KERNEL=`echo $GOTEVENT | awk -F: '{print $4}'` USER=`echo $GOTEVENT | awk -F: '{print $5}'` CTR=`echo $HW_CTRS | awk "{print \\$$((f + 1))}"` arch_event_validate if test "$EVENT" = "SPU_CYCLES"; then if test "$SEPARATE_KERNEL" = "1"; then SEPARATE_KERNEL=0 echo "Ignoring --separate=kernel option with SPU_CYCLES" fi if test "$SEPARATE_LIB" = "0"; then SEPARATE_LIB=1 echo "Forcing required option --separate=lib with SPU_CYCLES" fi # It is possible for a single application to be # running on all SPUs simultaneously. Without # SEPARATE_CPU, the resulting sample data would # consist of a single sample file. If all SPUs # were truly running the same code, the merging # of sample data would be fine. However, an # application file may have multiple SPU images # embedded within it, resulting in different # code running on different SPUs. Therefore, # we force SEPARATE_CPU in order to properly # handle this case. if test "$SEPARATE_CPU" = "0"; then SEPARATE_CPU=1 echo "Forcing required option --separate=cpu with SPU_CYCLES" fi fi if [ "$CTR" = "ibs_fetch" -o "$CTR" = "ibs_op" ] ; then # Handle IBS events setup do_param_setup_ibs continue fi if test "$EVENT" = "RTC_INTERRUPTS"; then set_param rtc_value $COUNT $SYSCTL -w dev.oprofile.rtc_value=$COUNT else set_ctr_param $CTR enabled 1 set_ctr_param $CTR event $EVENT_VAL loop_count=1 for i in ${EVENT_STR}; do #Skip first argument of EVENT_STR (event val) since we've already #processed that value. if test "$loop_count" -gt 1; then KEY=`echo $i | awk -F: '{print $1}'` VAL=`echo $i | awk -F: '{print $2}'` set_ctr_param "" $KEY $VAL fi loop_count=$((loop_count+1)) done set_ctr_param $CTR count $COUNT set_ctr_param $CTR kernel $KERNEL set_ctr_param $CTR user $USER set_ctr_param $CTR unit_mask $UNIT_MASK EXTRA=`$OPHELP --extra-mask $EVENT:$COUNT:$UNIT_MASK_NAMED` if test "$EXTRA" -ne 0 ; then # A value >= 0x40000 returned by 'ophelp --extra-mask' (EXTRA_MIN_VAL) is interpreted # as a valid extra value; otherwise we interpret as a simple unit mask value # for a named unit mask with EXTRA_NONE. EXTRA_MIN_VAL=262144 if test "$EXTRA" -ge $EXTRA_MIN_VAL ; then if ! test -f $MOUNT/$CTR/extra ; then echo >&2 "Warning: $GOTEVENT has extra mask, but kernel does not support extra field" echo >&2 "Please update your kernel or use a different event. Will miscount." else set_ctr_param $CTR extra $EXTRA fi else UNIT_MASK=$EXTRA set_ctr_param $CTR unit_mask $UNIT_MASK fi fi fi OPROFILED_EVENTS=${OPROFILED_EVENTS}$EVENT:$EVENT_VAL: OPROFILED_EVENTS=${OPROFILED_EVENTS}$CTR:$COUNT:$UNIT_MASK: OPROFILED_EVENTS=${OPROFILED_EVENTS}$KERNEL:$USER, fi done # For PPC64 architectures we need to set the enable_kernel and # enable_user flags for enabling/disabling user/kernel domain # profiling. All per-counter user/kernel flags must match. # This condition is checked previously by arch_event_validate. # This statement uses the last event's user/kernel flags to set # /dev/oprofile/enable_kernel and /dev/oprofile/enable_user. is_non_cell_ppc64_variant $CPUTYPE if test $? -ne 0 ; then set_param "enable_kernel" $KERNEL set_param "enable_user" $USER fi } do_start_daemon() { $OPDIR/op-check-perfevents if [ "$?" = "0" ]; then echo "ATTENTION: Use of opcontrol is discouraged. Please see the man page for operf." fi if test -f "$LOCK_FILE"; then kill -0 `cat $LOCK_FILE` 2>/dev/null if test "$?" -eq 0; then return; else echo "Detected stale lock file. Removing." >&2 rm -f "$LOCK_FILE" fi fi do_setup check_valid_args get_image_range "linux" get_image_range "xen" do_param_setup OPD_ARGS=" \ --session-dir=$SESSION_DIR \ --separate-lib=$SEPARATE_LIB \ --separate-kernel=$SEPARATE_KERNEL \ --separate-thread=$SEPARATE_THREAD \ --separate-cpu=$SEPARATE_CPU" if test "$IS_TIMER" = 1; then OPD_ARGS="$OPD_ARGS --events=" else if ! test -z "$OPROFILED_EVENTS"; then OPD_ARGS="$OPD_ARGS --events=$OPROFILED_EVENTS" fi fi if test "$VMLINUX" = "none"; then OPD_ARGS="$OPD_ARGS --no-vmlinux" else OPD_ARGS="$OPD_ARGS --vmlinux=$VMLINUX --kernel-range=$KERNEL_RANGE" fi if ! test "$XENIMAGE" = "none"; then OPD_ARGS="$OPD_ARGS --xen-image=$XENIMAGE --xen-range=$XEN_RANGE" fi if ! test -z "$IMAGE_FILTER"; then OPD_ARGS="$OPD_ARGS --image=$IMAGE_FILTER" fi if test -n "$VERBOSE"; then OPD_ARGS="$OPD_ARGS --verbose=$VERBOSE" fi help_start_daemon_with_ibs vecho "executing oprofiled $OPD_ARGS" $OPROFILED $OPD_ARGS COUNT=0 while ! test -f "$SESSION_DIR/lock" do sleep 1 COUNT=`expr $COUNT + 1` if test "$COUNT" -eq 10; then echo "Couldn't start oprofiled." >&2 echo "Check the log file \"$LOG_FILE\" and kernel syslog" >&2 exit 1 fi done echo "Daemon started." } do_start() { prep_jitdump; if test "$KERNEL_SUPPORT" = "yes"; then echo 1 >$MOUNT/enable fi kill -USR1 `cat $LOCK_FILE` 2>/dev/null echo "Profiler running." } # print status do_status() { OPROFILED_PID=`cat $SESSION_DIR/lock 2>/dev/null` if test -n "$OPROFILED_PID" -a -d "/proc/$OPROFILED_PID"; then if test "$KERNEL_SUPPORT" = yes \ && test 0 != $(cat /dev/oprofile/enable); then echo "Daemon running: pid $OPROFILED_PID" else echo "Daemon paused: pid $OPROFILED_PID" fi else echo "Daemon not running" fi echo "Session-dir: $SESSION_DIR" if test "$NR_CHOSEN" != "0"; then for f in `seq 0 $((NR_CHOSEN - 1))`; do get_event $f echo "Event $f: $GOTEVENT" done fi SEPARATE="" if test "$SEPARATE_LIB" = "1"; then SEPARATE="library"; fi if test "$SEPARATE_KERNEL" = "1"; then SEPARATE="$SEPARATE kernel"; fi if test "$SEPARATE_THREAD" = "1"; then SEPARATE="$SEPARATE thread"; fi if test "$SEPARATE_CPU" = "1"; then SEPARATE="$SEPARATE cpu"; fi if test -z "$SEPARATE"; then SEPARATE=none fi echo "Separate options: $SEPARATE" echo "vmlinux file: $VMLINUX" if test -z "$IMAGE_FILTER"; then echo "Image filter: none" else echo "Image filter: $IMAGE_FILTER" fi echo "Call-graph depth: $CALLGRAPH" if test "$BUF_SIZE" != "0"; then echo "Buffer size: $BUF_SIZE" fi if test "$KERNEL_SUPPORT" != "yes"; then if test "$NOTE_SIZE" != "0"; then echo "Note buffer size: $NOTE_SIZE" fi else if test "$BUF_WATERSHED" != "0"; then echo "CPU buffer watershed: $BUF_WATERSHED" fi if test "$CPU_BUF_SIZE" != "0"; then echo "CPU buffer size: $CPU_BUF_SIZE" fi fi if test "$S390_HW_SAMPLER" = "1"; then echo -n "System z hardware sampling buffer size (in 2MB areas): " if test "$S390_HW_SAMPLER_BUFSIZE" = "0"; then cat $MOUNT/0/hw_sdbt_blocks else echo "$S390_HW_SAMPLER_BUFSIZE" fi fi exit 0 } # do_dump_data # returns 0 if successful # returns 1 if the daemon is unable to dump data # exit 1 if we need to be root to dump do_dump_data() { # make sure that the daemon is not dead and gone if test -e "$SESSION_DIR/lock"; then OPROFILED_PID=`cat $SESSION_DIR/lock` if test ! -d "/proc/$OPROFILED_PID"; then echo "dump fail: daemon died during last run ?" >&2 return 1; fi else return 1; fi if test "$KERNEL_SUPPORT" = "yes"; then if ! test -w $MOUNT/dump; then if test `id -u` != "0"; then echo "You must be root to dump with this kernel version" exit 1 fi fi # trigger oprofiled to execute opjitconv if test -p "$SESSION_DIR/opd_pipe"; then echo do_jitconv >> $SESSION_DIR/opd_pipe fi rm -f "$SESSION_DIR/complete_dump" echo 1 > $MOUNT/dump # loop until the complete_dump file is created to # signal that the dump has been completed while [ \( ! -e "$SESSION_DIR/complete_dump" \) ] do if test ! -d "/proc/$OPROFILED_PID"; then echo "dump fail: either daemon died during last run or dies during dump" >&2 return 1 fi sleep 1; done else echo 1 > $MOUNT/dump # HACK ! sleep 2 fi cp -r /dev/oprofile/stats "$SAMPLES_DIR/current" return 0; } # do_dump # returns 0 if successful # exits if unsuccessful do_dump() { do_dump_data if test $? -ne 0 -a "$ONLY_DUMP" = "yes"; then echo "Unable to complete dump of oprofile data: is the oprofile daemon running?" >& 2 exit 1; fi return 0; } # tell daemon to re-open the sample files hup_daemon() { if test -f "$LOCK_FILE"; then echo -n "Signalling daemon... " kill -HUP `cat $LOCK_FILE` echo "done" fi } # move all the sample files to a sample directory do_save_session() { SAVE_DIR="${SAMPLES_DIR}/${SAVE_NAME}" if test -e "$SAVE_DIR"; then echo "session $SAVE_DIR already exists" >&2 exit 1 fi if ! test -e $CURRENT_SAMPLES_DIR; then echo "$CURRENT_SAMPLES_DIR doesn't exist: nothing to save" >&2 exit 0 fi # FIXME: I don't think it's worth checking for empty current directory mv $CURRENT_SAMPLES_DIR $SAVE_DIR if test "$?" != "0"; then echo "Couldn't move $CURRENT_SAMPLES_DIR to $SAVE_DIR" >&2 exit 1 fi hup_daemon } # remove all the sample files do_reset() { if test -z "$SAMPLES_DIR"; then echo "opcontrol:do_reset() SAMPLES_DIR is empty!" exit 1; fi # daemon use {kern} and {root} subdir, it's not a typo to not use ${} move_and_remove $SAMPLES_DIR/current/{kern} move_and_remove $SAMPLES_DIR/current/{root} move_and_remove $SAMPLES_DIR/current/stats # clear temp directory for jitted code prep_jitdump; hup_daemon } do_deinit() { # unmount /dev/oprofile if it is mounted OPROF_FS=`grep /dev/oprofile /proc/mounts` if test -n "$OPROF_FS"; then umount /dev/oprofile fi # unload the oprofile module if it is around OPROF_MOD=`lsmod | grep oprofile` if test -n "$OPROF_MOD"; then echo "Unloading oprofile module" >& 2 rmmod oprofile fi } # The function that calls the appropriate operations do_operations() { # INIT always done by load_module to get access to cputype # thus INIT is a noop if test "$STATUS" = "yes"; then do_status fi if test "$SETUP" = "yes"; then check_valid_args do_save_setup fi if test "$START_DAEMON" = "yes"; then do_start_daemon fi if test "$START" = "yes"; then do_start_daemon do_start fi if test "$DUMP" = "yes"; then do_dump fi if test "$SAVE_SESSION" = "yes"; then do_save_session fi if test "$STOP" = "yes"; then do_stop fi if test "$KILL_DAEMON" = "yes"; then do_kill_daemon fi if test "$RESET" = "yes"; then do_reset fi if test "$DEINIT" = "yes"; then do_deinit fi } # early check for --version, --help and --session-dir check_options_early() { OPHELP="$OPDIR/ophelp" for i in $@; do # added to handle arg=val parameters arg=`printf %s $i | awk -F= '{print $1}'` val=`printf %s $i | awk -F= '{print $2}'` case "$arg" in -\?|--help) do_help exit 0 ;; -v|--version) echo -n "`basename $0`: " $OPHELP --version | cut -d' ' -f2- exit 0 ;; --session-dir) error_if_invalid_arg "$arg" "$val" SESSION_DIR="$val" DO_SETUP=yes # do not exit early ;; esac done } # determine which module is loaded check_version() { OPROFILE_AVAILABLE=no grep oprofilefs /proc/mounts >/dev/null if test "$?" -eq 0; then # need to have oprofilefs mounted for this to work on 2.6 KERNEL_SUPPORT=yes OPROFILE_AVAILABLE=yes return fi # need to have /proc/oprof available for this to work on 2.4 grep oprof /proc/devices >/dev/null if test "$?" -eq 0; then KERNEL_SUPPORT=no OPROFILE_AVAILABLE=yes return fi } # error out if the module is not loaded check_oprofile_available() { if test "$OPROFILE_AVAILABLE" != "yes"; then echo "Kernel support not available, missing opcontrol --init as root ?" exit 1 fi } try_reset_sample_file() { # special case to avoid loading the module, it works only if the # daemon is not running because --reset imply --dump. Rather to check # if the daemon is running we check if the module is loaded because # we are only trying to avoid its load, if the check fails we fallback # to the normal dump / reset sequence. if test -z "$2" -a "$1" = "--reset"; then check_version if test "$OPROFILE_AVAILABLE" != "yes"; then do_init_daemon_vars do_reset exit 0 fi fi } # # Begin IBS Specific Functions # verify_ibs() { IBS_EVENT=`echo $1| awk -F: '{print $1}'` IBS_COUNT=`echo $1 | awk -F: '{print $2}'` IBS_MASK=`echo $1 | awk -F: '{print $3}'` IBS_TYPE=`$OPHELP --check-events $1` if test "$?" != "0" ; then exit 1 fi if [ "$IBS_TYPE" = "ibs_fetch " ] ; then # Check IBS_COUNT consistency if test "$IBS_FETCH_COUNT" = "0" ; then IBS_FETCH_COUNT=$IBS_COUNT IBS_FETCH_MASK=$IBS_MASK elif test "$IBS_FETCH_COUNT" != "$IBS_COUNT" ; then echo "ERROR: All IBS Fetch must have the same count." exit 1 fi # Check IBS_MASK consistency if test "$IBS_FETCH_MASK" != "$IBS_MASK" ; then echo "ERROR: All IBS Fetch must have the same unitmask." exit 1 fi # Check IBS_FETCH_COUNT within range if test "$IBS_FETCH_COUNT" -gt 1048575 ; then echo "ERROR: IBS Fetch count is too large." echo " The maximum IBS-fetch count is 1048575." exit 1 fi elif [ "$IBS_TYPE" = "ibs_op " ] ; then # Check IBS_COUNT consistency if test "$IBS_OP_COUNT" = "0" ; then IBS_OP_COUNT=$IBS_COUNT IBS_OP_MASK=$IBS_MASK elif test "$IBS_OP_COUNT" != "$IBS_COUNT" ; then echo "All IBS Op must have the same count." exit 1 fi # Check IBS_MASK consistency if test "$IBS_OP_MASK" != "$IBS_MASK" ; then echo "All IBS Op must have the same unitmask." exit 1 fi # Check IBS_OP_COUNT within range case "$CPUTYPE" in x86-64/family10) if test "$IBS_OP_COUNT" -gt 1048575 ; then echo "ERROR: IBS Op count is too large." echo " The maximum IBS-fetch count is 1048575." exit 1 fi ;; x86-64/family12h|\ x86-64/family14h|\ x86-64/family15h) if test "$IBS_OP_COUNT" -gt 134217727 ; then echo "ERROR: IBS Op count is too large." echo " The maximum IBS-Op count is 134217727." exit 1 fi ;; *) esac fi return } do_param_setup_ibs() { if test "$KERNEL_SUPPORT" != "yes" ; then echo "ERROR: No kernel support for IBS profiling." exit 1 fi # Check if driver has IBS support if test ! -d $MOUNT/ibs_fetch -o ! -d $MOUNT/ibs_op ; then echo "ERROR: No kernel support for IBS profiling." exit 1 fi if test `echo $EVENT | \ awk '{ print substr($0, 1, 10)}'` = "IBS_FETCH_" ; then if test "$COUNT" != "0"; then if [ "$IBS_FETCH_EVENTS" = "" ] ; then IBS_FETCH_EVENTS="$EVENT" else IBS_FETCH_EVENTS="$IBS_FETCH_EVENTS,$EVENT" fi IBS_FETCH_COUNT=$COUNT set_param ibs_fetch/max_count $COUNT set_param ibs_fetch/rand_enable 1 set_param ibs_fetch/enable 1 else set_param ibs_fetch/enable 0 fi elif test `echo $EVENT | \ awk '{ print substr($0, 1, 7)}'` = "IBS_OP_" ; then if test "$COUNT" != "0"; then if [ "$IBS_OP_EVENTS" = "" ] ; then IBS_OP_EVENTS="$EVENT" else IBS_OP_EVENTS="$IBS_OP_EVENTS,$EVENT" fi IBS_OP_COUNT=$COUNT IBS_OP_UNITMASK=$UNIT_MASK set_param ibs_op/max_count $COUNT set_param ibs_op/enable 1 # NOTE: We default to use dispatched_op if available. # Some of the older family10 system does not have # dispatched_ops feature. # Dispatched op is enabled by bit 0 of the unitmask IBS_OP_DISPATCHED_OP=$(( IBS_OP_UNITMASK & 0x1 )) if test -f $MOUNT/ibs_op/dispatched_ops ; then set_param ibs_op/dispatched_ops $IBS_OP_DISPATCHED_OP else if test $IBS_OP_DISPATCHED_OP -eq 1 ; then echo "ERROR: IBS Op dispatched ops is not supported." exit 1 fi fi # NOTE: BTA is enabled by bit 2 of the unitmask IBS_OP_BTA=$(( IBS_OP_UNITMASK & 0x4 )) if test -f $MOUNT/ibs_op/branch_target; then if [ "$IBS_OP_BTA" = "4" ] ; then set_param ibs_op/branch_target 1 else set_param ibs_op/branch_target 0 fi # TODO: Check if write successful else if test $IBS_OP_BTA -eq 1 ; then echo "ERROR: IBS Op Branch Target Address is not supported." exit 1 fi fi else set_param ibs_op/enable 0 fi fi } help_start_daemon_with_ibs() { if test "$IBS_FETCH_COUNT" != "0" -o "$IBS_OP_COUNT" != "0" ; then OPD_ARGS="${OPD_ARGS} --ext-feature=ibs:" if test "$IBS_FETCH_COUNT" != "0"; then OPD_ARGS="${OPD_ARGS}fetch:$IBS_FETCH_EVENTS:$IBS_FETCH_COUNT:$IBS_FETCH_UNITMASK|" fi if test "$IBS_OP_COUNT" != "0"; then OPD_ARGS="${OPD_ARGS}op:$IBS_OP_EVENTS:$IBS_OP_COUNT:$IBS_OP_UNITMASK" fi fi } # # End IBS Specific Functions # # main # determine the location of opcontrol and related programs if test -z "$OPDIR"; then BINDIR="/usr/bin" OPCONTROL=`$BINDIR/which $0` OPDIR=`$BINDIR/dirname $OPCONTROL` fi PATH=$OPDIR:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin check_options_early $@ if test -z "$1"; then do_help exit 0 fi if test `id -u` = "0"; then try_reset_sample_file $@ load_module fi check_version # Except --reset, even the few operations allowed as non root needs the # kernel support, if we don't error out now the error message will be obscure check_oprofile_available do_init if test `id -u` != "0"; then if test -z "$2"; then case "$1" in --dump|-d) ONLY_DUMP=yes do_dump exit 0; ;; --list-events|-l) exec $OPHELP exit 0; ;; *) echo "Normal users are limited to either '--dump' or '--list-events'." >&2 exit 1 ;; esac else echo "Normal users are limited to either '--dump' or '--list-events'." >&2 exit 1 fi fi do_options $@ do_operations oprofile-0.9.9/include/0000775000076400007640000000000012175511553012013 500000000000000oprofile-0.9.9/include/sstream0000664000076400007640000001637312175510134013340 00000000000000/* This is part of libio/iostream, providing -*- C++ -*- input/output. Copyright (C) 2000 Free Software Foundation This file is part of the GNU IO Library. This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this library; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. As a special exception, if you link this library with files compiled with a GNU compiler to produce an executable, this does not cause the resulting executable to be covered by the GNU General Public License. This exception does not however invalidate any other reasons why the executable file might be covered by the GNU General Public License. */ /* Written by Magnus Fromreide (magfr@lysator.liu.se). */ /* seekoff and ideas for overflow is largely borrowed from libstdc++-v3 */ #ifndef __SSTREAM__ #define __SSTREAM__ #include #include #include namespace std { class stringbuf : public streambuf { public: typedef char char_type; typedef int int_type; typedef streampos pos_type; typedef streamoff off_type; explicit stringbuf(int which=ios::in|ios::out) : streambuf(), mode(static_cast(which)), stream(NULL), stream_len(0) { stringbuf_init(); } explicit stringbuf(const string &str, int which=ios::in|ios::out) : streambuf(), mode(static_cast(which)), stream(NULL), stream_len(0) { if (mode & (ios::in|ios::out)) { stream_len = str.size(); stream = new char_type[stream_len]; str.copy(stream, stream_len); } stringbuf_init(); } virtual ~stringbuf() { delete[] stream; } string str() const { if (pbase() != 0) return string(stream, pptr()-pbase()); else return string(); } void str(const string& str) { delete[] stream; stream_len = str.size(); stream = new char_type[stream_len]; str.copy(stream, stream_len); stringbuf_init(); } protected: // The buffer is already in gptr, so if it ends then it is out of data. virtual int underflow() { return EOF; } virtual int overflow(int c = EOF) { int res; if (mode & ios::out) { if (c != EOF) { streamsize old_stream_len = stream_len; stream_len += 1; char_type* new_stream = new char_type[stream_len]; memcpy(new_stream, stream, old_stream_len); delete[] stream; stream = new_stream; stringbuf_sync(gptr()-eback(), pptr()-pbase()); sputc(c); res = c; } else res = EOF; } else res = 0; return res; } virtual streambuf* setbuf(char_type* s, streamsize n) { if (n != 0) { delete[] stream; stream = new char_type[n]; memcpy(stream, s, n); stream_len = n; stringbuf_sync(0, 0); } return this; } virtual pos_type seekoff(off_type off, ios::seek_dir way, int which = ios::in | ios::out) { pos_type ret = pos_type(off_type(-1)); bool testin = which & ios::in && mode & ios::in; bool testout = which & ios::out && mode & ios::out; bool testboth = testin && testout && way != ios::cur; if (stream_len && ((testin != testout) || testboth)) { char_type* beg = stream; char_type* curi = NULL; char_type* curo = NULL; char_type* endi = NULL; char_type* endo = NULL; if (testin) { curi = gptr(); endi = egptr(); } if (testout) { curo = pptr(); endo = epptr(); } off_type newoffi = 0; off_type newoffo = 0; if (way == ios::beg) { newoffi = beg - curi; newoffo = beg - curo; } else if (way == ios::end) { newoffi = endi - curi; newoffo = endo - curo; } if (testin && newoffi + off + curi - beg >= 0 && endi - beg >= newoffi + off + curi - beg) { gbump(newoffi + off); ret = pos_type(newoffi + off + curi); } if (testout && newoffo + off + curo - beg >= 0 && endo - beg >= newoffo + off + curo - beg) { pbump(newoffo + off); ret = pos_type(newoffo + off + curo); } } return ret; } virtual pos_type seekpos(pos_type sp, int which = ios::in | ios::out) { pos_type ret = seekoff(sp, ios::beg, which); return ret; } private: void stringbuf_sync(streamsize i, streamsize o) { if (mode & ios::in) setg(stream, stream + i, stream + stream_len); if (mode & ios::out) { setp(stream, stream + stream_len); pbump(o); } } void stringbuf_init() { if (mode & ios::ate) stringbuf_sync(0, stream_len); else stringbuf_sync(0, 0); } private: ios::open_mode mode; char_type* stream; streamsize stream_len; }; class istringstream : public istream { public: typedef char char_type; typedef int int_type; typedef streampos pos_type; typedef streamoff off_type; explicit istringstream(int which=ios::in) : istream(&sb), sb(which | ios::in) { } explicit istringstream(const string& str, int which=ios::in) : istream(&sb), sb(str, which | ios::in) { } stringbuf* rdbuf() const { return const_cast(&sb); } string str() const { return rdbuf()->str(); } void str(const string& s) { rdbuf()->str(s); } private: stringbuf sb; }; class ostringstream : public ostream { public: typedef char char_type; typedef int int_type; typedef streampos pos_type; typedef streamoff off_type; explicit ostringstream(int which=ios::out) : ostream(&sb), sb(which | ios::out) { } explicit ostringstream(const string& str, int which=ios::out) : ostream(&sb), sb(str, which | ios::out) { } stringbuf* rdbuf() const { return const_cast(&sb); } string str() const { return rdbuf()->str(); } void str(const string& s) { rdbuf()->str(s); } private: stringbuf sb; }; class stringstream : public iostream { public: typedef char char_type; typedef int int_type; typedef streampos pos_type; typedef streamoff off_type; explicit stringstream(int which=ios::out|ios::in) : iostream(&sb), sb(which) { } explicit stringstream(const string& str, int which=ios::out|ios::in) : iostream(&sb), sb(str, which) { } stringbuf* rdbuf() const { return const_cast(&sb); } string str() const { return rdbuf()->str(); } void str(const string& s) { rdbuf()->str(s); } private: stringbuf sb; }; }; #endif /* not __STRSTREAM__ */ oprofile-0.9.9/missing0000755000076400007640000002623312175510233011705 00000000000000#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2009-04-28.21; # UTC # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, # 2008, 2009 Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' sed_minuso='s/.* -o \([^ ]*\).*/\1/p' # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi msg="missing on your system" case $1 in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 # Exit code 63 means version mismatch. This often happens # when the user try to use an ancient version of a tool on # a file that requires a minimum version. In this case we # we should proceed has if the program had been absent, or # if --run hadn't been passed. if test $? = 63; then run=: msg="probably too old" fi ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' autom4te touch the output file, or create a stub one automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch] Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and \`g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; esac # normalize program name to check for. program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` # Now exit if we have it, but it failed. Also exit now if we # don't have it and --version was passed (most likely to detect # the program). This is about non-GNU programs, so use $1 not # $program. case $1 in lex*|yacc*) # Not GNU programs, they don't have --version. ;; tar*) if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then exit 1 fi ;; *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then # Could not run --version or --help. This is probably someone # running `$TOOL --version' or `$TOOL --help' to check whether # $TOOL exists and not knowing $TOOL uses missing. exit 1 fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case $program in aclocal*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case $f in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te*) echo 1>&2 "\ WARNING: \`$1' is needed, but is $msg. You might have modified some files without having the proper tools for further handling them. You can get \`$1' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison*|yacc*) echo 1>&2 "\ WARNING: \`$1' $msg. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if test $# -ne 1; then eval LASTARG="\${$#}" case $LASTARG in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.h fi ;; esac fi if test ! -f y.tab.h; then echo >y.tab.h fi if test ! -f y.tab.c; then echo 'main() { return 0; }' >y.tab.c fi ;; lex*|flex*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if test $# -ne 1; then eval LASTARG="\${$#}" case $LASTARG in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if test ! -f lex.yy.c; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit $? fi ;; makeinfo*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." # The file to touch is that specified with -o ... file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -z "$file"; then # ... or it is the one specified with @setfilename ... infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n ' /^@setfilename/{ s/.* \([^ ]*\) *$/\1/ p q }' $infile` # ... or it is derived from the source name (dir/f.texi becomes f.info) test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info fi # If the file does not exist, the user really needs makeinfo; # let's fail without touching anything. test -f $file || exit 1 touch $file ;; tar*) shift # We have already tried tar in the generic part. # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then gnutar "$@" && exit 0 fi if (gtar --version > /dev/null 2>&1); then gtar "$@" && exit 0 fi firstarg="$1" if shift; then case $firstarg in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" "$@" && exit 0 ;; esac case $firstarg in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" "$@" && exit 0 ;; esac fi echo 1>&2 "\ WARNING: I can't seem to be able to run \`tar' with the given arguments. You may want to install GNU tar or Free paxutils, or check the command line arguments." exit 1 ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and is $msg. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: oprofile-0.9.9/agents/0000775000076400007640000000000012175511560011647 500000000000000oprofile-0.9.9/agents/jvmti/0000775000076400007640000000000012175511560013000 500000000000000oprofile-0.9.9/agents/jvmti/Makefile.in0000664000076400007640000004626512175510233014776 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = agents/jvmti DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__installdirs = "$(DESTDIR)$(pkglibdir)" LTLIBRARIES = $(pkglib_LTLIBRARIES) libjvmti_oprofile_la_DEPENDENCIES = ../../libopagent/libopagent.la am_libjvmti_oprofile_la_OBJECTS = \ libjvmti_oprofile_la-libjvmti_oprofile.lo libjvmti_oprofile_la_OBJECTS = $(am_libjvmti_oprofile_la_OBJECTS) libjvmti_oprofile_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(libjvmti_oprofile_la_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libjvmti_oprofile_la_SOURCES) DIST_SOURCES = $(libjvmti_oprofile_la_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ AM_CFLAGS = @OP_CFLAGS@ pkglib_LTLIBRARIES = libjvmti_oprofile.la libjvmti_oprofile_la_CFLAGS = $(AM_CFLAGS) -fPIC libjvmti_oprofile_la_LIBADD = ../../libopagent/libopagent.la libjvmti_oprofile_la_SOURCES = libjvmti_oprofile.c AM_CPPFLAGS = \ -I ${top_srcdir}/libopagent \ -I @JAVA_HOMEDIR@/include \ -I @JAVA_HOMEDIR@/include/linux all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign agents/jvmti/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign agents/jvmti/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(pkglibdir)" || $(MKDIR_P) "$(DESTDIR)$(pkglibdir)" @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkglibdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkglibdir)"; \ } uninstall-pkglibLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkglibdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkglibdir)/$$f"; \ done clean-pkglibLTLIBRARIES: -test -z "$(pkglib_LTLIBRARIES)" || rm -f $(pkglib_LTLIBRARIES) @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libjvmti_oprofile.la: $(libjvmti_oprofile_la_OBJECTS) $(libjvmti_oprofile_la_DEPENDENCIES) $(libjvmti_oprofile_la_LINK) -rpath $(pkglibdir) $(libjvmti_oprofile_la_OBJECTS) $(libjvmti_oprofile_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libjvmti_oprofile_la-libjvmti_oprofile.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< libjvmti_oprofile_la-libjvmti_oprofile.lo: libjvmti_oprofile.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libjvmti_oprofile_la_CFLAGS) $(CFLAGS) -MT libjvmti_oprofile_la-libjvmti_oprofile.lo -MD -MP -MF $(DEPDIR)/libjvmti_oprofile_la-libjvmti_oprofile.Tpo -c -o libjvmti_oprofile_la-libjvmti_oprofile.lo `test -f 'libjvmti_oprofile.c' || echo '$(srcdir)/'`libjvmti_oprofile.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libjvmti_oprofile_la-libjvmti_oprofile.Tpo $(DEPDIR)/libjvmti_oprofile_la-libjvmti_oprofile.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libjvmti_oprofile.c' object='libjvmti_oprofile_la-libjvmti_oprofile.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libjvmti_oprofile_la_CFLAGS) $(CFLAGS) -c -o libjvmti_oprofile_la-libjvmti_oprofile.lo `test -f 'libjvmti_oprofile.c' || echo '$(srcdir)/'`libjvmti_oprofile.c mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: for dir in "$(DESTDIR)$(pkglibdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-pkglibLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-pkglibLTLIBRARIES install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-pkglibLTLIBRARIES .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-pkglibLTLIBRARIES ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-pkglibLTLIBRARIES \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-pkglibLTLIBRARIES # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/agents/jvmti/Makefile.am0000664000076400007640000000054712175510134014756 00000000000000AM_CFLAGS = @OP_CFLAGS@ pkglib_LTLIBRARIES = libjvmti_oprofile.la libjvmti_oprofile_la_CFLAGS = $(AM_CFLAGS) -fPIC libjvmti_oprofile_la_LIBADD = ../../libopagent/libopagent.la libjvmti_oprofile_la_SOURCES = libjvmti_oprofile.c AM_CPPFLAGS = \ -I ${top_srcdir}/libopagent \ -I @JAVA_HOMEDIR@/include \ -I @JAVA_HOMEDIR@/include/linux oprofile-0.9.9/agents/jvmti/libjvmti_oprofile.c0000664000076400007640000002262312175510134016604 00000000000000/** * @file jvmti_oprofile.c * JVMTI agent implementation to report jitted JVM code to Oprofile * * @remark Copyright 2007 OProfile authors * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * @author Jens Wilke * @Modifications Daniel Hansel * * Copyright IBM Corporation 2007 * */ #include #include #include #include #include #include #include "opagent.h" static int debug = 0; static int can_get_line_numbers = 0; static op_agent_t agent_hdl; /** * Handle an error or a warning, return 0 if the checked error is * JVMTI_ERROR_NONE, i.e. success */ static int handle_error(jvmtiError err, char const * msg, int severe) { if (err != JVMTI_ERROR_NONE) { fprintf(stderr, "%s: %s, err code %i\n", severe ? "Error" : "Warning", msg, err); } return err != JVMTI_ERROR_NONE; } /** * returned array is map_length length, params map and map_length != 0 * format of lineno information is JVMTI_JLOCATION_JVMBCI, map is an array * of { address, code byte index }, table_ptr an array of { byte code index, * lineno } */ static struct debug_line_info * create_debug_line_info(jint map_length, jvmtiAddrLocationMap const * map, jint entry_count, jvmtiLineNumberEntry* table_ptr, char const * source_filename) { struct debug_line_info * debug_line; int i, j; if (debug) { fprintf(stderr, "Source %s\n", source_filename); for (i = 0; i < map_length; ++i) { fprintf(stderr, "%p %lld\t", map[i].start_address, (long long)map[i].location); } fprintf(stderr, "\n"); for (i = 0; i < entry_count; ++i) { fprintf(stderr, "%lld %d\t", (long long)table_ptr[i].start_location, table_ptr[i].line_number); } fprintf(stderr, "\n"); } debug_line = calloc(map_length, sizeof(struct debug_line_info)); if (!debug_line) return 0; for (i = 0; i < map_length; ++i) { /* FIXME: likely to need a lower_bound on the array, but * documentation is a bit obscure about the contents of these * arrray **/ for (j = 0; j < entry_count - 1; ++j) { if (table_ptr[j].start_location > map[i].location) break; } debug_line[i].vma = (unsigned long)map[i].start_address; debug_line[i].lineno = table_ptr[j].line_number; debug_line[i].filename = source_filename; } if (debug) { for (i = 0; i < map_length; ++i) { fprintf(stderr, "%lx %d\t", debug_line[i].vma, debug_line[i].lineno); } fprintf(stderr, "\n"); } return debug_line; } static void JNICALL cb_compiled_method_load(jvmtiEnv * jvmti, jmethodID method, jint code_size, void const * code_addr, jint map_length, jvmtiAddrLocationMap const * map, void const * compile_info) { jclass declaring_class; char * class_signature = NULL; char * method_name = NULL; char * method_signature = NULL; jvmtiLineNumberEntry* table_ptr = NULL; char * source_filename = NULL; struct debug_line_info * debug_line = NULL; jvmtiError err; /* shut up compiler warning */ compile_info = compile_info; err = (*jvmti)->GetMethodDeclaringClass(jvmti, method, &declaring_class); if (handle_error(err, "GetMethodDeclaringClass()", 1)) goto cleanup2; if (can_get_line_numbers && map_length && map) { jint entry_count; err = (*jvmti)->GetLineNumberTable(jvmti, method, &entry_count, &table_ptr); if (err == JVMTI_ERROR_NONE) { err = (*jvmti)->GetSourceFileName(jvmti, declaring_class, &source_filename); if (err == JVMTI_ERROR_NONE) { debug_line = create_debug_line_info(map_length, map, entry_count, table_ptr, source_filename); } else if (err != JVMTI_ERROR_ABSENT_INFORMATION) { (void)handle_error(err, "GetSourceFileName()", 1); } } else if (err != JVMTI_ERROR_NATIVE_METHOD && err != JVMTI_ERROR_ABSENT_INFORMATION) { (void)handle_error(err, "GetLineNumberTable()", 1); } } err = (*jvmti)->GetClassSignature(jvmti, declaring_class, &class_signature, NULL); if (handle_error(err, "GetClassSignature()", 1)) goto cleanup1; err = (*jvmti)->GetMethodName(jvmti, method, &method_name, &method_signature, NULL); if (handle_error(err, "GetMethodName()", 1)) goto cleanup; if (debug) { fprintf(stderr, "load: declaring_class=%p, class=%s, " "method=%s, signature=%s, addr=%p, size=%i \n", declaring_class, class_signature, method_name, method_signature, code_addr, code_size); } { int cnt = strlen(method_name) + strlen(class_signature) + strlen(method_signature) + 2; char buf[cnt]; strncpy(buf, class_signature, cnt - 1); strncat(buf, method_name, cnt - strlen(buf) - 1); strncat(buf, method_signature, cnt - strlen(buf) - 1); if (op_write_native_code(agent_hdl, buf, (uint64_t)(uintptr_t) code_addr, code_addr, code_size)) { perror("Error: op_write_native_code()"); goto cleanup; } } if (debug_line) if (op_write_debug_line_info(agent_hdl, code_addr, map_length, debug_line)) perror("Error: op_write_debug_line_info()"); cleanup: (*jvmti)->Deallocate(jvmti, (unsigned char *)method_name); (*jvmti)->Deallocate(jvmti, (unsigned char *)method_signature); cleanup1: (*jvmti)->Deallocate(jvmti, (unsigned char *)class_signature); (*jvmti)->Deallocate(jvmti, (unsigned char *)table_ptr); (*jvmti)->Deallocate(jvmti, (unsigned char *)source_filename); cleanup2: free(debug_line); } static void JNICALL cb_compiled_method_unload(jvmtiEnv * jvmti_env, jmethodID method, void const * code_addr) { /* shut up compiler warning */ jvmti_env = jvmti_env; method = method; if (debug) fprintf(stderr, "unload: addr=%p\n", code_addr); if (op_unload_native_code(agent_hdl, (uint64_t)(uintptr_t) code_addr)) perror("Error: op_unload_native_code()"); } static void JNICALL cb_dynamic_code_generated(jvmtiEnv * jvmti_env, char const * name, void const * code_addr, jint code_size) { /* shut up compiler warning */ jvmti_env = jvmti_env; if (debug) { fprintf(stderr, "dyncode: name=%s, addr=%p, size=%i \n", name, code_addr, code_size); } if (op_write_native_code(agent_hdl, name, (uint64_t)(uintptr_t) code_addr, code_addr, code_size)) perror("Error: op_write_native_code()"); } JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM * jvm, char * options, void * reserved) { jint rc; jvmtiEnv * jvmti = NULL; jvmtiEventCallbacks callbacks; jvmtiCapabilities caps; jvmtiJlocationFormat format; jvmtiError error; /* shut up compiler warning */ reserved = reserved; if (options && !strcmp("version", options)) { fprintf(stderr, "jvmti_oprofile: current libopagent version %i.%i.\n", op_major_version(), op_minor_version()); return -1; } if (options && !strcmp("debug", options)) debug = 1; if (debug) fprintf(stderr, "jvmti_oprofile: agent activated\n"); agent_hdl = op_open_agent(); if (!agent_hdl) { perror("Error: op_open_agent()"); return -1; } rc = (*jvm)->GetEnv(jvm, (void *)&jvmti, JVMTI_VERSION_1); if (rc != JNI_OK) { fprintf(stderr, "Error: GetEnv(), rc=%i\n", rc); return -1; } memset(&caps, '\0', sizeof(caps)); caps.can_generate_compiled_method_load_events = 1; error = (*jvmti)->AddCapabilities(jvmti, &caps); if (handle_error(error, "AddCapabilities()", 1)) return -1; /* FIXME: settable through command line, default on/off? */ error = (*jvmti)->GetJLocationFormat(jvmti, &format); if (!handle_error(error, "GetJLocationFormat", 1) && format == JVMTI_JLOCATION_JVMBCI) { memset(&caps, '\0', sizeof(caps)); caps.can_get_line_numbers = 1; caps.can_get_source_file_name = 1; error = (*jvmti)->AddCapabilities(jvmti, &caps); if (!handle_error(error, "AddCapabilities()", 1)) can_get_line_numbers = 1; } memset(&callbacks, 0, sizeof(callbacks)); callbacks.CompiledMethodLoad = cb_compiled_method_load; callbacks.CompiledMethodUnload = cb_compiled_method_unload; callbacks.DynamicCodeGenerated = cb_dynamic_code_generated; error = (*jvmti)->SetEventCallbacks(jvmti, &callbacks, sizeof(callbacks)); if (handle_error(error, "SetEventCallbacks()", 1)) return -1; error = (*jvmti)->SetEventNotificationMode(jvmti, JVMTI_ENABLE, JVMTI_EVENT_COMPILED_METHOD_LOAD, NULL); if (handle_error(error, "SetEventNotificationMode() " "JVMTI_EVENT_COMPILED_METHOD_LOAD", 1)) return -1; error = (*jvmti)->SetEventNotificationMode(jvmti, JVMTI_ENABLE, JVMTI_EVENT_COMPILED_METHOD_UNLOAD, NULL); if (handle_error(error, "SetEventNotificationMode() " "JVMTI_EVENT_COMPILED_METHOD_UNLOAD", 1)) return -1; error = (*jvmti)->SetEventNotificationMode(jvmti, JVMTI_ENABLE, JVMTI_EVENT_DYNAMIC_CODE_GENERATED, NULL); if (handle_error(error, "SetEventNotificationMode() " "JVMTI_EVENT_DYNAMIC_CODE_GENERATED", 1)) return -1; return 0; } JNIEXPORT void JNICALL Agent_OnUnload(JavaVM * jvm) { /* shut up compiler warning */ jvm = jvm; if (op_close_agent(agent_hdl)) perror("Error: op_close_agent()"); } oprofile-0.9.9/agents/Makefile.in0000664000076400007640000004611312175510233013635 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @BUILD_JVMTI_AGENT_TRUE@am__append_1 = jvmti @BUILD_JVMPI_AGENT_TRUE@am__append_2 = jvmpi @CHECK_ACCOUNT_TRUE@am__append_3 = __install-exec-hook subdir = agents DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = jvmti jvmpi DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ SUBDIRS = $(am__append_1) $(am__append_2) INSTALL_EXEC_HOOK = $(am__append_3) all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign agents/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign agents/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) install-exec-hook install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-exec-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic clean-libtool \ ctags ctags-recursive distclean distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-exec-hook install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-recursive uninstall uninstall-am __install-exec-hook: @getent passwd oprofile >/dev/null || ( \ echo "****************************************************************" ; \ echo "* WARNING:" ; \ echo "* Create the 'oprofile' user account to enable profiling of JITed code." ; \ echo "****************************************************************") ; @getent group oprofile >/dev/null || ( \ echo "****************************************************************" ; \ echo "* WARNING:" ; \ echo "* Create the 'oprofile' group to enable profiling of JITed code." ; \ echo "****************************************************************") ; @test -z `id -gn oprofile 2>/dev/null` || \ test `id -gn oprofile 2>/dev/null` = "oprofile" || ( \ echo "****************************************************************" ; \ echo "* WARNING:" ; \ echo "* The special user 'oprofile' must have the default group set to 'oprofile'." ; \ echo "****************************************************************") ; install-exec-hook: $(INSTALL_EXEC_HOOK) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/agents/jvmpi/0000775000076400007640000000000012175511560012774 500000000000000oprofile-0.9.9/agents/jvmpi/Makefile.in0000664000076400007640000004634212175510233014766 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = agents/jvmpi DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/binutils.m4 \ $(top_srcdir)/m4/builtinexpect.m4 \ $(top_srcdir)/m4/cellspubfdsupport.m4 \ $(top_srcdir)/m4/compileroption.m4 \ $(top_srcdir)/m4/copyifchange.m4 $(top_srcdir)/m4/docbook.m4 \ $(top_srcdir)/m4/extradirs.m4 \ $(top_srcdir)/m4/kernelversion.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ $(top_srcdir)/m4/mallocattribute.m4 \ $(top_srcdir)/m4/poptconst.m4 \ $(top_srcdir)/m4/precompiledheader.m4 $(top_srcdir)/m4/qt.m4 \ $(top_srcdir)/m4/sstream.m4 $(top_srcdir)/m4/typedef.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__installdirs = "$(DESTDIR)$(pkglibdir)" LTLIBRARIES = $(pkglib_LTLIBRARIES) libjvmpi_oprofile_la_DEPENDENCIES = ../../libopagent/libopagent.la am_libjvmpi_oprofile_la_OBJECTS = \ libjvmpi_oprofile_la-jvmpi_oprofile.lo libjvmpi_oprofile_la_OBJECTS = $(am_libjvmpi_oprofile_la_OBJECTS) libjvmpi_oprofile_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ $(libjvmpi_oprofile_la_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libjvmpi_oprofile_la_SOURCES) DIST_SOURCES = $(libjvmpi_oprofile_la_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BFD_LIBS = @BFD_LIBS@ CAT_ENTRY_END = @CAT_ENTRY_END@ CAT_ENTRY_START = @CAT_ENTRY_START@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATE = @DATE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DOCBOOK_ROOT = @DOCBOOK_ROOT@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXTRA_CFLAGS_MODULE = @EXTRA_CFLAGS_MODULE@ FGREP = @FGREP@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ JAVA_HOMEDIR = @JAVA_HOMEDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBERTY_LIBS = @LIBERTY_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OP_CFLAGS = @OP_CFLAGS@ OP_CPPFLAGS = @OP_CPPFLAGS@ OP_CXXFLAGS = @OP_CXXFLAGS@ OP_DOCDIR = @OP_DOCDIR@ OP_LDFLAGS = @OP_LDFLAGS@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERF_EVENT_FLAGS = @PERF_EVENT_FLAGS@ PFM_LIB = @PFM_LIB@ PKG_CONFIG = @PKG_CONFIG@ POPT_LIBS = @POPT_LIBS@ PTRDIFF_T_TYPE = @PTRDIFF_T_TYPE@ QT_CFLAGS = @QT_CFLAGS@ QT_INCLUDES = @QT_INCLUDES@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_VERSION = @QT_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIZE_T_TYPE = @SIZE_T_TYPE@ STRIP = @STRIP@ UIC = @UIC@ UIChelp = @UIChelp@ VERSION = @VERSION@ XMKMF = @XMKMF@ XML_CATALOG = @XML_CATALOG@ XSLTPROC = @XSLTPROC@ XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ topdir = @topdir@ pkglib_LTLIBRARIES = libjvmpi_oprofile.la libjvmpi_oprofile_la_CXXFLAGS = -W -Wall -fPIC libjvmpi_oprofile_la_SOURCES = jvmpi_oprofile.cpp libjvmpi_oprofile_la_LIBADD = ../../libopagent/libopagent.la AM_CPPFLAGS = \ -I ${top_srcdir}/libopagent \ -I @JAVA_HOMEDIR@/include \ -I @JAVA_HOMEDIR@/include/linux all: all-am .SUFFIXES: .SUFFIXES: .cpp .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign agents/jvmpi/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign agents/jvmpi/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(pkglibdir)" || $(MKDIR_P) "$(DESTDIR)$(pkglibdir)" @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkglibdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkglibdir)"; \ } uninstall-pkglibLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkglibdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkglibdir)/$$f"; \ done clean-pkglibLTLIBRARIES: -test -z "$(pkglib_LTLIBRARIES)" || rm -f $(pkglib_LTLIBRARIES) @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libjvmpi_oprofile.la: $(libjvmpi_oprofile_la_OBJECTS) $(libjvmpi_oprofile_la_DEPENDENCIES) $(libjvmpi_oprofile_la_LINK) -rpath $(pkglibdir) $(libjvmpi_oprofile_la_OBJECTS) $(libjvmpi_oprofile_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libjvmpi_oprofile_la-jvmpi_oprofile.Plo@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< libjvmpi_oprofile_la-jvmpi_oprofile.lo: jvmpi_oprofile.cpp @am__fastdepCXX_TRUE@ $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libjvmpi_oprofile_la_CXXFLAGS) $(CXXFLAGS) -MT libjvmpi_oprofile_la-jvmpi_oprofile.lo -MD -MP -MF $(DEPDIR)/libjvmpi_oprofile_la-jvmpi_oprofile.Tpo -c -o libjvmpi_oprofile_la-jvmpi_oprofile.lo `test -f 'jvmpi_oprofile.cpp' || echo '$(srcdir)/'`jvmpi_oprofile.cpp @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/libjvmpi_oprofile_la-jvmpi_oprofile.Tpo $(DEPDIR)/libjvmpi_oprofile_la-jvmpi_oprofile.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='jvmpi_oprofile.cpp' object='libjvmpi_oprofile_la-jvmpi_oprofile.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libjvmpi_oprofile_la_CXXFLAGS) $(CXXFLAGS) -c -o libjvmpi_oprofile_la-jvmpi_oprofile.lo `test -f 'jvmpi_oprofile.cpp' || echo '$(srcdir)/'`jvmpi_oprofile.cpp mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: for dir in "$(DESTDIR)$(pkglibdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-pkglibLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-pkglibLTLIBRARIES install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-pkglibLTLIBRARIES .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-pkglibLTLIBRARIES ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-pkglibLTLIBRARIES \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-pkglibLTLIBRARIES # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: oprofile-0.9.9/agents/jvmpi/jvmpi_oprofile.cpp0000664000076400007640000001514712175510134016450 00000000000000/** * @file jvmpi_oprofile.cpp * JVMPI agent implementation to report jitted JVM code to OProfile * * @remark Copyright 2007 OProfile authors * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * @author Maynard Johnson * * Copyright IBM Corporation 2007 * */ #include #include #include #include #include #include extern "C" { #include #include #include } using namespace std; static bool debug = false; static op_agent_t agent_hdl; class class_details { public: string name; map method_names; map method_signatures; }; static pthread_mutex_t class_map_mutex = PTHREAD_MUTEX_INITIALIZER; static map loaded_classes; void class_load(JVMPI_Event * event) { class_details cls; cls.name = event->u.class_load.class_name; JVMPI_Method * passed_methods = event->u.class_load.methods; for (int i = 0; i < event->u.class_load.num_methods; i++, passed_methods++) { cls.method_names[passed_methods->method_id] = passed_methods->method_name; cls.method_signatures[passed_methods->method_id] = passed_methods->method_signature; } pthread_mutex_lock(&class_map_mutex); loaded_classes[event->u.class_load.class_id] = cls; pthread_mutex_unlock(&class_map_mutex); } void class_unload(JVMPI_Event * event) { pthread_mutex_lock(&class_map_mutex); loaded_classes.erase(event->u.class_load.class_id); pthread_mutex_unlock(&class_map_mutex); } JVMPI_Interface * jvmpi; void compiled_method_load(JVMPI_Event * event) { jmethodID method = event->u.compiled_method_load.method_id; void * code_addr = event->u.compiled_method_load.code_addr; jint code_size = event->u.compiled_method_load.code_size; jvmpi->DisableGC(); /* Get the class of the method */ jobjectID classID = jvmpi->GetMethodClass(method); jvmpi->EnableGC(); pthread_mutex_lock(&class_map_mutex); map::iterator iter = loaded_classes.find(classID); if (iter == loaded_classes.end()) { throw runtime_error("Error: Cannot find class for compiled" " method\n"); } class_details cls_info = ((class_details)iter->second); map::iterator method_it = cls_info.method_names.find(method); if (method_it == cls_info.method_names.end()) { throw runtime_error("Error: Cannot find method name for " "compiled method\n"); } char const * method_name = method_it->second.c_str(); method_it = cls_info.method_signatures.find(method); if (method_it == cls_info.method_signatures.end()) { throw runtime_error("Error: Cannot find method signature " "for compiled method\n"); } char const * method_signature = method_it->second.c_str(); string const class_signature = "L" + cls_info.name + ";"; pthread_mutex_unlock(&class_map_mutex); if (debug) { cerr << "load: class=" << class_signature << ", method =" << method_name << ", method signature = " << method_signature << ", addr=" << code_addr << ", size=" << code_size << endl; } // produce a symbol name out of class name and method name int cnt = strlen(method_name) + strlen(class_signature.c_str()) + strlen(method_signature) + 2; char buf[cnt]; strncpy(buf, class_signature.c_str(), cnt - 1); strncat(buf, method_name, cnt - strlen(buf) - 1); strncat(buf, method_signature, cnt - strlen(buf) - 1); if (op_write_native_code(agent_hdl, buf, (uint64_t) code_addr, code_addr, code_size)) perror("Error: op_write_native_code()"); } void compiled_method_unload(JVMPI_Event * event) { void * code_addr = event->u.compiled_method_load.code_addr; if (debug) { cerr << "unload: addr=" << (unsigned long long) (uintptr_t) code_addr << endl; } if (op_unload_native_code(agent_hdl, (uint64_t)code_addr)) perror("Error: op_unload_native_code()"); } void jvm_shutdown(JVMPI_Event * event) { /* Checking event here is not really necessary; added only to silence * the 'unused parameter' compiler warning. */ if (event) if (op_close_agent(agent_hdl)) perror("Error: op_close_agent()"); } void jvm_notify_event(JVMPI_Event * event) { switch (event->event_type) { case JVMPI_EVENT_COMPILED_METHOD_LOAD: compiled_method_load(event); break; case JVMPI_EVENT_COMPILED_METHOD_UNLOAD: compiled_method_unload(event); break; case JVMPI_EVENT_JVM_SHUT_DOWN: jvm_shutdown(event); break; case JVMPI_EVENT_CLASS_LOAD: class_load(event); break; case JVMPI_EVENT_CLASS_UNLOAD: class_unload(event); break; default: break; } } extern "C" { JNIEXPORT jint JNICALL JVM_OnLoad(JavaVM * jvm, char * options, void * reserved) { int err; if (options && strstr(options, "version")) { cerr << "jvmpi_oprofile: current libopagent version " << op_major_version() << "." << op_minor_version() << endl; throw runtime_error("Exiting"); } if (options && strstr(options, "debug=yes")) { debug = true; /* Add something braindead to silence the 'unused parameter' * compiler warning. */ if (reserved) debug = true; } if (debug) cerr << "jvmpi_oprofile: agent activated" << endl; agent_hdl = op_open_agent(); if (!agent_hdl) { perror("Error: op_open_agent()"); throw runtime_error("Exiting"); } /* The union below is used to avoid the 'dereferencing type-punned * pointer will break strict-aliasing rules' compiler warning on the * GetEnv call. */ union { JVMPI_Interface * jvmpi_ifc; void * jvmpi_ifc_ptr; } jvmpi_GetEnv_arg; err = jvm->GetEnv(&jvmpi_GetEnv_arg.jvmpi_ifc_ptr, JVMPI_VERSION_1); if (err < 0) { cerr << "GetEnv failed with rc=" << err << endl; throw runtime_error("Exiting"); } jvmpi = jvmpi_GetEnv_arg.jvmpi_ifc; jvmpi->EnableEvent(JVMPI_EVENT_COMPILED_METHOD_LOAD, NULL); jvmpi->EnableEvent(JVMPI_EVENT_COMPILED_METHOD_UNLOAD, NULL); jvmpi->EnableEvent(JVMPI_EVENT_JVM_SHUT_DOWN, NULL); jvmpi->EnableEvent(JVMPI_EVENT_CLASS_LOAD, NULL); jvmpi->NotifyEvent = jvm_notify_event; return JNI_OK; } } oprofile-0.9.9/agents/jvmpi/Makefile.am0000664000076400007640000000051312175510134014743 00000000000000pkglib_LTLIBRARIES = libjvmpi_oprofile.la libjvmpi_oprofile_la_CXXFLAGS = -W -Wall -fPIC libjvmpi_oprofile_la_SOURCES = jvmpi_oprofile.cpp libjvmpi_oprofile_la_LIBADD = ../../libopagent/libopagent.la AM_CPPFLAGS = \ -I ${top_srcdir}/libopagent \ -I @JAVA_HOMEDIR@/include \ -I @JAVA_HOMEDIR@/include/linux oprofile-0.9.9/agents/Makefile.am0000664000076400007640000000233512175510134013622 00000000000000 SUBDIRS = if BUILD_JVMTI_AGENT SUBDIRS += jvmti endif if BUILD_JVMPI_AGENT SUBDIRS += jvmpi endif INSTALL_EXEC_HOOK = if CHECK_ACCOUNT INSTALL_EXEC_HOOK += __install-exec-hook endif __install-exec-hook: @getent passwd oprofile >/dev/null || ( \ echo "****************************************************************" ; \ echo "* WARNING:" ; \ echo "* Create the 'oprofile' user account to enable profiling of JITed code." ; \ echo "****************************************************************") ; @getent group oprofile >/dev/null || ( \ echo "****************************************************************" ; \ echo "* WARNING:" ; \ echo "* Create the 'oprofile' group to enable profiling of JITed code." ; \ echo "****************************************************************") ; @test -z `id -gn oprofile 2>/dev/null` || \ test `id -gn oprofile 2>/dev/null` = "oprofile" || ( \ echo "****************************************************************" ; \ echo "* WARNING:" ; \ echo "* The special user 'oprofile' must have the default group set to 'oprofile'." ; \ echo "****************************************************************") ; install-exec-hook: $(INSTALL_EXEC_HOOK) oprofile-0.9.9/TODO0000664000076400007640000003602412175510134010777 00000000000000This is an (incomplete) list of some of the stuff we want to look at doing. If you're interested in hacking on any of these, please contact the list first for some pointers and/or read HACKING and doc/CodingStyle. 1.0 release ----------- (this is a minimal selection of stuff I think we need) o default to a vmlinux location: need agreement from kernel developers o default to --separate=library (with anon, =none, makes not much sense) o prettify image name for .jo files and allow lib-image: to specify it o gisle's fixes o opreport tgid: doesn't work even if .jo files with that pid o Fix: warning: [vdso] (tgid:9236 range:0x7fff98ffd000-0x7fff98fff000) could not be found. warning: /no-vmlinux could not be found. warning: /usr/lib64/libpanel-applet-2.so.0.2.27.#prelink#.sXCUK1 (deleted) could not be found. o amd64 32 bit build needs a sys32_lookup_dcookie() translator in the kernel o decide on -m tgid semantics for anon regions o if ev67 is not fixed, back it out o lapic : module should says "didn't find apic" if needed, FAQ and doc should speak a bit about lapic kernel option on x86 and recent kernel o see the big comment in db_insert.c, it's possible to allow unlimited amount of samples with a very minor change in libdb. o if oprofile doesn't recognize the processor selected by the kernel opcontrol could setup the module in timer mode (remove/reload prolly), and warn the user it must upgrade oprofile to get all the feature from its hardware. Later ----- o remove 2.95/2.2 support so we can use boost multi index container in symbol/sample container o consider if we can improve anon mapping growing support [moz@lambent pp]$ ./opreport -lf lib-image:/lib/tls/libc-2.3.2.so /bin/bash | grep vfprintf 14 0.1301 6 0.0102 /lib/tls/libc-2.3.2.so vfprintf [moz@lambent pp]$ ./opreport -lf lib-image:/lib/tls/libc-2.3.2.so /usr/bin/vim | grep vfprintf 176 2.0927 349 1.2552 /lib/tls/libc-2.3.2.so vfprintf [moz@lambent pp]$ ./opreport -lf lib-image:/lib/tls/libc-2.3.2.so { image:/bin/bash } { image:/usr/bin/vim } | grep vfprintf 176 10.9657 +++ 349 7.8888 +++ vfprintf 14 --- --- 6 --- --- vfprintf it seems them as two separate symbols but can we remove the app_name from rough_less and still be able to walk the two lists? even if we could, it would still go wrong when we're profiling multiple apps o Java stuff?? o with opreport -c I can get "warning: /no-vmlinux could not be found.". Should be smarter ? o opreport -c gives weird output for an image with no symbols: samples % symbol name 15965 100.000 (no symbols) 253 100.000 (no symbols) 15965 98.4400 (no symbols) 253 1.5600 (no symbols) [self] o consider tagging opreport -c entries with a number like gprof o --details for opreport -c, or diff?? o should [self] entries be ommitted if 0 ?? o stress test opreport -c: compile a Big Application w/o frame pointer and look how driver and opreport -c react. o oparchive could fix up {kern} paths with -p (what about diff between archive and current though?) o can say more in opcontrol --status o consider a sort option for diff % o opannotate is silent about symbols missing debug info o oprofiled.log now contains various statistics about lost sample etc. from the driver. Post profile tools must parse that and warn eventually, warning must include a proposed work around. User need this: if nothing seems wrong people are unlikely to get a look in oprofiled.log (I ran oprofile on 2.6.1 2 weeks before noticing at 30000 I lost a lot of samples, the profile seemed ok du to the randomization of lost samples). As developper we need that too, actually we have no clear idea of the behavior on different arch, NUMA etc. Not perfect because if the profiler is running the oprofiled.log will show those warning only after the first alarm signal, I think we must dump the statistics information after each opcontrol --dump to avoid that. o odb_insert() can fail on ftruncate or mremap() in db_manage.c but we don't try to recover gracefully. o output column shortname headers for opreport -l o is relative_to_absolute_path guaranteeing a trailing '/' documented ? o move oprofiled.log to OP_SAMPLE_DIR/current ? o pp tools must handle samples count overflow (marked as (unsigned)-1) o the way we show kernel modules in 2.5 is not very obvious - "/oprofile" o oparchive will be more usefull with a --root= options to allow profiling on a small box, nfs mount / to another box and transfer sample file and binary on a bigger box for analysis. There is also a problem in oparchive you can use session: to get the right path to samples files but oprofiled.log and abi files path are hardcoded to /var/lib/oprofile. o callgraph patch: better way to skip ignored backtrace ? o lib-image: and image: behavior depend on --separate=, if --separate=library opreport "lib-image:*libc*" --merge=lib works but not opreport "image:*libc*" --merge=lib whilst the behavior is reversed if --separate==none. Must we take care ? o dependencies between profile_container.h symbol_container.h and sample_container.h become more and more ugly, I needed to include them in a specific order in some source (still true??) o add event aliases for common things like icache misses, we must start to think about metrics including simple like event alias mapped to two or more events and intepreted specially by user space tools like using the ratio of samples; more tricky will be to select an event used as call count (no cg on it) and used to emulate the call count field in gprof. I think this is a after 1.0 thing but event aliases must be specified in a way allowing such extension o do we need an opreport like opreport -c (showing caller/callee at binary boundary not symbols) ? o we should notice an opcontrol config change (--separate etc.) and auto-restart the daemon if necessary (Run) o we can add lots more unit tests yet o Itanium event constraints are not implemented o GUI still has a physical-counter interface, should have a general one like opcontrol --event o I think we should have the ability to have *fixed* width headers, e.g. : vma samples cum. samples % cum. % symbol name image name app name 0804c350 64582 64582 35.0757 35.0757 odb_insert /usr/loc...in/oprofiled /usr/local/oprofile-pp/bin/oprofiled Note the ellipsis o should we make the sighup handler re-read counter config and re-start profiling too ? o improve --smart-demangle o allow user to add it's own pattern in user.pat, document it. o hard code ${typename} regular definition to remove all current limitations (difficult, perhaps after 1.0 ?). o oprof_start dialog size is too small initially o i18n. We need a good formatter, and also remember format_percent() o opannotate --source --output-dir=~moz/op/ /usr/bin/oprofiled will fail because the ~ is not expanded (no space around it) (popt bug I say) o cpu names instead of numbers in 2.4 module/ ? o remove 1 and 2 magic numbers for oprof_ready o adapt Anton's patch for handling non-symbolled libraries ? (nowaday C++ anon namespace symbol are static, 3.4 iirc, so with recent distro we are more likely to get problems with a "fallback to dynamic symbols" approch) o use standard C integer type int32_t int16_t etc. o event multiplexing for real o randomizing of reset value o XML output o profile the NMI handler code o opannotate : I added this to the doc about difference between nr samples credited to a source function and total number of samples for this function: "The missing samples are not lost, they will be credited to another source location where the inlined function is defined. The inlined function will be credited from multiple call site and merged in one place in the annotated source file so there is no way to see from what call site are coming the samples for an inlined function." I think we can work around this: output multiple instances of inlined function like : inline foo() { foo: total 1500 30.00 ... ... annotated source from all call site inline foo() { foo (call site bar()): total 500 10.00 .. annotated source from call site bar() etc. what about template..., can we do/must we do something like that template eat_cpu() and do a similar things, merging and annotating all instantation then annotating for each distinct instantation, this will break our "keep the source line number in annotated source file identical to the original source" o events/mips/34k/events, some events does not make sense, they get identical event number, um and counter nr so they overlap, currently commented o can we find a more efficient implementation for sparse_array ? o libpp/profile.cpp:is_spu_sample_file() can be simplified by using read_header() o while fixing #1819350 I needed to make extra_images per profile session rather than a global var so I think we need to revisit find_image_path(), extra_found_images, --image-path (-p). Actually we can't do something ala: opreport { archive:tmp1 search_path=/lib/modules/2.6.20 } { archive:tmp2 search_path=/.../2.6.20.9 } because search_path is specified through -p which is not a part of the profile spec. Fixing #1819350 covered all case except this one but w/o any user visible change. Another way will be to save the -p option used with oparchive in a file at the toplevel of the archive, use it with all tools when an archive: is specified on the command line and deprecate the use of -p in such case. o consider to make extra_images a ref counted object, it's copied by value a few time but can contain a lot of string. There is also some ugly public member extra_images to fix. o daemon bss size can be improved, grep for MAX_PATH to see where dynamic allocation can be used, try $ nm oprofiled --size-sort too. Documentation ------------- o the docs should mention the default event for each arch somewhere o more discussion of problematic code needs to go in the "interpreting" section. o document gcc 2.95 and linenr info problems especially for inline functions o finish the internals manual JIT support ----------- o We need a more dynamic structure to handle entries_address_ascending and entries_symbols_ascending, actually many scaling problem occur because they are array, this was perfect to get a first implementation focusing on handling overlap and all but the need to qsort/copy arrays at each iteration is a performance killer. Some sort of AVL tree will do the job. o Related to the previous, it's possible to do all processing in opjitconv.c in a single left to right walk of the jitentry list. o see the FIXME at parse_dump.c:parse_code_unload() o Increment JITHEADER_VERSION in jitdump.h to be sure that the new code only accepts dump file created by the new code. o opjitconv.c:replacement_name() should be enough clever to avoid name collision so we can remove the recursive call to disambiguate_symbol_names(), need a hash table or some sort of associative array to check quickly if a name exists, we will need some sort of avl tree so it's probably better to do not implement a hash table only for this purpose. o op_write_native_code() must accept one more parameter, the real code size which can be zero or equal to code_size, this will allow to create elf file w/o any code contents, only a symbol table and .text sections w/o contents (yes ELF format allow that). For dynamic binary translation it'll avoid to dump tons of code for little use, opannotate --assembly will not work on such elf file but it can be a real win. It'll need to add to jitrecord0 a real_size field, and some trickery when building the elf file, taking care about the case we mix zero code size with non zero code size. Perhaps we can use it too for java, filtering native method etc. Actually we allow a simplified form of this feature by allowing to disable/enable code dumping but at the whole dump level not on a symbol basis, quite possible sufficient. [mpj: We're backing away from the idea of dumping JIT records without code. Since BFD asymbol type does not include symbol size, the op_bfd technique for determining symbol size relies on knowing the true file size; and if code is not included in the .jo file, we don't have true size.] o The pipe used for triggering JIT dump conversion should be used for normal dumping too. o See FIXME in agents/jvmti/libjvmti_oprofile.c: If enablement to get line number info would be configurable through command line, what should be the default on/off? o See FIXME in opjitconv/debug_line.c o The way to use the pipe should be made more secure to avoid denial of service attacks. We have to think about it. o Callgraph does not work properly for the .jo files the JIT support creates. See section Chapter 4, sect 2.3.2 "Callgraph and JIT support". Try to figure out a way to correlate an anonymous sample callgraph entry with the .jo file that may exist for the anonymous code. o see mail from Gisle Dankel: "JIT_SUPPORT: Adding support for file-backed non-ELF JIT code" -> should be changed (if useful) before next release o See FIXME in op_header.cpp: The check for header.mtime of JIT sample files is not correct because currently this mtime value is set to zero due to missing cookie setting for JIT sample files. Some additional check/setting to header.mtime should be made for JIT sample files. o Mono JIT support: 2007-11-08: with callgraph massi got oparchive error: parse_filename() invalid filename: /var/lib/oprofile/samples/current/{root}/var/lib/oprofile/samples/current/{root}/home/massi/mono/amd64/bin/mono/{dep}/{anon:anon}/32432.0x40a26000.0x40a36000/CPU_CLK_UNHALTED.100000.0.all.all.all/{dep}/{root}/var/lib/oprofile/samples/current/{root}/home/massi/mono/amd64/bin/mono/{dep}/{anon:anon}/32432.0x40a26000.0x40a36000/CPU_CLK_UNHALTED.100000.0.all.all.all/{cg}/{root}/usr/oprofile/bin/oprofiled/CPU_CLK_ Massi added Mono JIT support, code on the stack is never unloaded and there is no byte code, code is always compiled to native machine code, this mean than for mono at least we can do callgraph if we can fix this samples filename problem. General checks to make ---------------------- o rgrep FIXME o valgrind (--show-reachable=yes --leak-check=yes) o audit to track unnecessary include <> o gcc 3.0/3.x compile o Qt2/3 check, no Qt check o verify builds (modversions, kernel versions, athlon etc.). I have the necessary stuff to check kernel versions/configurations on PIII core (Phil) o use nm and a little script to track unused function o test it to hell and back o compile all C++ programs with STL_port and test them (gcc 3.4 contain a debug mode too but std::string iterator are not checked) o There is probably place of post profile tools where looking at errno will give better error messages.