/* * * Copyright (C) 2016 AVM GmbH * * 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 */ #ifndef __avm_enh_h__ #define __avm_enh_h__ #define __get_last_unaligned_info /** * \\brief: * Liefere Unaligned-Daten * user: 0 Kernel 1 Userland * ret: Zeiger auf last_comm des Userprozesses * * -> wird fuer system-load in avm_power benoetigt */ const char *get_last_unaligned_info(unsigned long *ai_count, unsigned long *last_pc, int user); void print_code_range(struct seq_file *seq, const char *prefix, unsigned long addr, unsigned int thumb); /** */ void ai_add_to_scorelist(unsigned long pc, int user); /** * ret: summe der unaligneds */ unsigned long ai_show_scorelist(struct seq_file *seq, int user); char *arch_print_memory_classifier(char *txt, unsigned int txtlen, unsigned long addr, int include_addr_prefix); #define print_memory_classifier arch_print_memory_classifier void arch_show_register_memoryclassifier(const struct pt_regs *pregs); #define show_register_memoryclassifier arch_show_register_memoryclassifier void arch_show_stacktrace_memoryclassifier(const struct pt_regs *pregs); #define show_stacktrace_memoryclassifier arch_show_stacktrace_memoryclassifier /** * vmalloc.c */ unsigned long get_vmap_area(unsigned long addr, unsigned long *caller, unsigned long *size, unsigned long *vmflags); /** * slab.c */ unsigned long get_kmemalloc_area(unsigned long addr, unsigned long *caller, const char **cache_name, unsigned long *size, int *freed); #endif/*--- #ifndef __avm_enh_h__ ---*/