Frama-C-discuss mailing list archives

This page gathers the archives of the old Frama-C-discuss archives, that was hosted by Inria's gforge before its demise at the end of 2020. To search for mails newer than September 2020, please visit the page of the new mailing list on Renater.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Frama-c-discuss] ANALIZE BIG PROJECTS


  • Subject: [Frama-c-discuss] ANALIZE BIG PROJECTS
  • From: pavlinux at ya.ru (Pavel Vasilyev)
  • Date: Fri Jun 6 02:49:24 2008

How i must analyze, for example, ? SAMBA plugin, with many cross 
headers, sources.


For example, my Makefile
# ------------------------------------
SMBDIR=/usr/src/samba/source
SAMBA_INCLUDES="includes pop vfs"

SRC=$(wildcard *.c)
OBJS=$(subst .c,.o,$(SRC))
BIN=test.so

CFLAGS=-g -O2 -I. $(foreach inc,$(SAMBA_INCLUDES),-I$(SMB_DIR)/$(inc))

%.o: %.c
        @echo "CC   $<" ; $(CC) -c -o $@ $<



/* --------- source.c --------------------------- */

#ifndef __KERNEL__
#define __KERNEL__
#include <linux/compiler.h>
#endif

#include "local.h"
#include "includes.h"

static int skel_connect(vfs_handle_struct *handle,  const char *service, 
const char *user) {
      return SMB_VFS_NEXT_CONNECT(handle, service, user);
}
static vfs_op_tuple skel_op_tuples[] = {
       {  SMB_VFS_OP(skel_connect),  SMB_VFS_OP_CONNECT, 
SMB_VFS_LAYER_TRANSPARENT },
       {  NULL, SMB_VFS_OP_NOOP,  SMB_VFS_LAYER_NOOP}
};

NTSTATUS init_module(void) {
        return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, 
"skel_transparent", skel_op_tuples);
}

/*-------------------- EOF ---------------------- */


HELP ME CHECK;