mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
Formatting fixes in header files
This commit is contained in:
@ -1,3 +1,7 @@
|
||||
Sat Aug 26 19:05:51 2006 Søren Sandmann <sandmann@redhat.com>
|
||||
|
||||
* Formatting fixes in header files.
|
||||
|
||||
2006-08-26 Soren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* elfparser.c: Update to new API
|
||||
|
||||
16
binfile.h
16
binfile.h
@ -32,14 +32,12 @@ typedef struct BinSymbol BinSymbol;
|
||||
|
||||
/* Binary File */
|
||||
|
||||
BinFile * bin_file_new (const char *filename);
|
||||
void bin_file_free (BinFile *bin_file);
|
||||
const BinSymbol *bin_file_lookup_symbol (BinFile *bin_file,
|
||||
gulong address);
|
||||
ino_t bin_file_get_inode (BinFile *bin_file);
|
||||
|
||||
|
||||
const char * bin_symbol_get_name (BinFile *bin_file,
|
||||
const BinSymbol *symbol);
|
||||
BinFile * bin_file_new (const char *filename);
|
||||
void bin_file_free (BinFile *bin_file);
|
||||
const BinSymbol *bin_file_lookup_symbol (BinFile *bin_file,
|
||||
gulong address);
|
||||
ino_t bin_file_get_inode (BinFile *bin_file);
|
||||
const char * bin_symbol_get_name (BinFile *bin_file,
|
||||
const BinSymbol *symbol);
|
||||
|
||||
#endif
|
||||
|
||||
68
binparser.h
68
binparser.h
@ -6,43 +6,45 @@ typedef struct BinParser BinParser;
|
||||
typedef struct BinRecord BinRecord;
|
||||
|
||||
/* BinParser */
|
||||
BinParser *bin_parser_new (const guchar *data,
|
||||
gsize length);
|
||||
const guchar *bin_parser_get_data (BinParser *parser);
|
||||
gsize bin_parser_get_length (BinParser *parser);
|
||||
gsize bin_parser_get_offset (BinParser *parser);
|
||||
void bin_parser_align (BinParser *parser,
|
||||
gsize byte_width);
|
||||
void bin_parser_goto (BinParser *parser,
|
||||
gsize offset);
|
||||
const char *bin_parser_get_string (BinParser *parser);
|
||||
guint32 bin_parser_get_uint32 (BinParser *parser);
|
||||
BinParser * bin_parser_new (const guchar *data,
|
||||
gsize length);
|
||||
const guchar *bin_parser_get_data (BinParser *parser);
|
||||
gsize bin_parser_get_length (BinParser *parser);
|
||||
gsize bin_parser_get_offset (BinParser *parser);
|
||||
void bin_parser_align (BinParser *parser,
|
||||
gsize byte_width);
|
||||
void bin_parser_goto (BinParser *parser,
|
||||
gsize offset);
|
||||
const char * bin_parser_get_string (BinParser *parser);
|
||||
guint32 bin_parser_get_uint32 (BinParser *parser);
|
||||
|
||||
/* Record */
|
||||
BinRecord *bin_parser_get_record (BinParser *parser,
|
||||
BinFormat *format,
|
||||
gsize offset);
|
||||
void bin_record_free (BinRecord *record);
|
||||
guint64 bin_record_get_uint (BinRecord *record,
|
||||
const char *name);
|
||||
void bin_record_index (BinRecord *record,
|
||||
int index);
|
||||
gsize bin_record_get_offset (BinRecord *record);
|
||||
const gchar *bin_record_get_string_indirect (BinRecord *record,
|
||||
BinRecord * bin_parser_get_record (BinParser *parser,
|
||||
BinFormat *format,
|
||||
gsize offset);
|
||||
void bin_record_free (BinRecord *record);
|
||||
guint64 bin_record_get_uint (BinRecord *record,
|
||||
const char *name);
|
||||
void bin_record_index (BinRecord *record,
|
||||
int index);
|
||||
gsize bin_record_get_offset (BinRecord *record);
|
||||
const gchar *bin_record_get_string_indirect (BinRecord *record,
|
||||
const char *name,
|
||||
gsize str_table);
|
||||
BinParser *bin_record_get_parser (BinRecord *record);
|
||||
gsize str_table);
|
||||
BinParser * bin_record_get_parser (BinRecord *record);
|
||||
|
||||
|
||||
/* BinFormat */
|
||||
BinFormat *bin_format_new (gboolean big_endian,
|
||||
const char *name, BinField *field,
|
||||
...);
|
||||
gsize bin_format_get_size (BinFormat *format);
|
||||
BinFormat *bin_format_new (gboolean big_endian,
|
||||
const char *name,
|
||||
BinField *field,
|
||||
...);
|
||||
gsize bin_format_get_size (BinFormat *format);
|
||||
|
||||
/* BinField */
|
||||
BinField *bin_field_new_uint8 (void);
|
||||
BinField *bin_field_new_uint16 (void);
|
||||
BinField *bin_field_new_uint32 (void);
|
||||
BinField *bin_field_new_uint64 (void);
|
||||
BinField *bin_field_new_fixed_array (int n_elements,
|
||||
int element_size);
|
||||
BinField *bin_field_new_uint8 (void);
|
||||
BinField *bin_field_new_uint16 (void);
|
||||
BinField *bin_field_new_uint32 (void);
|
||||
BinField *bin_field_new_uint64 (void);
|
||||
BinField *bin_field_new_fixed_array (int n_elements,
|
||||
int element_size);
|
||||
|
||||
17
collector.h
17
collector.h
@ -33,12 +33,11 @@ typedef enum
|
||||
} CollectorError;
|
||||
|
||||
/* callback is called whenever a new sample arrives */
|
||||
Collector *collector_new (CollectorFunc callback,
|
||||
gpointer data);
|
||||
gboolean collector_start (Collector *collector,
|
||||
GError **err);
|
||||
void collector_stop (Collector *collector);
|
||||
void collector_reset (Collector *collector);
|
||||
int collector_get_n_samples (Collector *collector);
|
||||
|
||||
Profile * collector_create_profile (Collector *collector);
|
||||
Collector *collector_new (CollectorFunc callback,
|
||||
gpointer data);
|
||||
gboolean collector_start (Collector *collector,
|
||||
GError **err);
|
||||
void collector_stop (Collector *collector);
|
||||
void collector_reset (Collector *collector);
|
||||
int collector_get_n_samples (Collector *collector);
|
||||
Profile * collector_create_profile (Collector *collector);
|
||||
|
||||
10
elfparser.h
10
elfparser.h
@ -3,10 +3,12 @@
|
||||
typedef struct ElfSym ElfSym;
|
||||
typedef struct ElfParser ElfParser;
|
||||
|
||||
ElfParser *elf_parser_new (const char *filename,
|
||||
GError **err);
|
||||
void elf_parser_free (ElfParser *parser);
|
||||
const char *elf_parser_get_debug_link (ElfParser *parser, guint32 *crc32);
|
||||
ElfParser * elf_parser_new (const char *filename,
|
||||
GError **err);
|
||||
void elf_parser_free (ElfParser *parser);
|
||||
const char *elf_parser_get_debug_link (ElfParser *parser,
|
||||
guint32 *crc32);
|
||||
|
||||
|
||||
/* Lookup a symbol in the file.
|
||||
*
|
||||
|
||||
43
stackstash.h
43
stackstash.h
@ -48,26 +48,27 @@ typedef void (* StackNodeFunc) (StackNode *node,
|
||||
gpointer data);
|
||||
|
||||
/* Stach */
|
||||
StackStash *stack_stash_new (GDestroyNotify destroy);
|
||||
StackStash *stack_stash_new_from_root (StackNode *root,
|
||||
GDestroyNotify destroy);
|
||||
void stack_stash_add_trace (StackStash *stash,
|
||||
gulong *addrs,
|
||||
gint n_addrs,
|
||||
int size);
|
||||
void stack_stash_foreach (StackStash *stash,
|
||||
StackFunction stack_func,
|
||||
gpointer data);
|
||||
void stack_node_foreach_trace (StackNode *node,
|
||||
StackFunction stack_func,
|
||||
gpointer data);
|
||||
StackNode *stack_stash_find_node (StackStash *stash,
|
||||
gpointer address);
|
||||
void stack_stash_foreach_by_address (StackStash *stash,
|
||||
StackNodeFunc func,
|
||||
gpointer data);
|
||||
StackNode *stack_stash_get_root (StackStash *stash);
|
||||
StackStash *stack_stash_ref (StackStash *stash);
|
||||
void stack_stash_unref (StackStash *stash);
|
||||
StackStash *stack_stash_new (GDestroyNotify destroy);
|
||||
StackStash *stack_stash_new_from_root (StackNode *root,
|
||||
GDestroyNotify destroy);
|
||||
void stack_stash_add_trace (StackStash *stash,
|
||||
gulong *addrs,
|
||||
gint n_addrs,
|
||||
int size);
|
||||
void stack_stash_foreach (StackStash *stash,
|
||||
StackFunction stack_func,
|
||||
gpointer data);
|
||||
void stack_node_foreach_trace (StackNode *node,
|
||||
StackFunction stack_func,
|
||||
gpointer data);
|
||||
StackNode *stack_stash_find_node (StackStash *stash,
|
||||
gpointer address);
|
||||
void stack_stash_foreach_by_address (StackStash *stash,
|
||||
StackNodeFunc func,
|
||||
gpointer data);
|
||||
StackNode *stack_stash_get_root (StackStash *stash);
|
||||
StackStash *stack_stash_ref (StackStash *stash);
|
||||
void stack_stash_unref (StackStash *stash);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user