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