#include <linux/slab.h>
#include <linux/list.h>
#include <linux/hash.h>
+#include <dbi_kprobes_deps.h>
static int calculation_hash_bits(int cnt)
{
if (obj) {
int i, table_size;
+ INIT_LIST_HEAD(&obj->list);
+ obj->procs = NULL;
obj->name = name;
obj->dentry = dentry;
obj->loaded = 0;
static void sspt_add_page(struct sspt_file *file, struct sspt_page *page)
{
+ page->file = file;
hlist_add_head(&page->hlist, &file->page_probes_table[hash_ptr((void *)page->offset,
file->page_probes_hash_bits)]);
}
struct hlist_head *head = NULL;
int i, table_size;
INIT_LIST_HEAD(&file_out->list);
+ file_out->procs = NULL;
file_out->dentry = file->dentry;
file_out->name = file->name;
file_out->loaded = 0;