Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
debug.c File Reference
#include "ubi.h"
#include <linux/debugfs.h>
#include <linux/uaccess.h>
#include <linux/module.h>

Go to the source code of this file.

Functions

void ubi_dump_flash (struct ubi_device *ubi, int pnum, int offset, int len)
 
void ubi_dump_ec_hdr (const struct ubi_ec_hdr *ec_hdr)
 
void ubi_dump_vid_hdr (const struct ubi_vid_hdr *vid_hdr)
 
void ubi_dump_vol_info (const struct ubi_volume *vol)
 
void ubi_dump_vtbl_record (const struct ubi_vtbl_record *r, int idx)
 
void ubi_dump_av (const struct ubi_ainf_volume *av)
 
void ubi_dump_aeb (const struct ubi_ainf_peb *aeb, int type)
 
void ubi_dump_mkvol_req (const struct ubi_mkvol_req *req)
 
int ubi_debugging_init_dev (struct ubi_device *ubi)
 
void ubi_debugging_exit_dev (struct ubi_device *ubi)
 
int ubi_debugfs_init (void)
 
void ubi_debugfs_exit (void)
 
int ubi_debugfs_init_dev (struct ubi_device *ubi)
 
void ubi_debugfs_exit_dev (struct ubi_device *ubi)
 

Function Documentation

void ubi_debugfs_exit ( void  )

ubi_debugfs_exit - remove UBI debugfs directory.

Definition at line 278 of file debug.c.

void ubi_debugfs_exit_dev ( struct ubi_device ubi)

dbg_debug_exit_dev - free all debugfs files corresponding to device : UBI device description object

Definition at line 471 of file debug.c.

int ubi_debugfs_init ( void  )

ubi_debugfs_init - create UBI debugfs directory.

Create UBI debugfs directory. Returns zero in case of success and a negative error code in case of failure.

Definition at line 258 of file debug.c.

int ubi_debugfs_init_dev ( struct ubi_device ubi)

ubi_debugfs_init_dev - initialize debugfs for an UBI device. : UBI device description object

This function creates all debugfs files for UBI device . Returns zero in case of success and a negative error code in case of failure.

Definition at line 395 of file debug.c.

void ubi_debugging_exit_dev ( struct ubi_device ubi)

ubi_debugging_exit_dev - free debugging data for an UBI device. : UBI device description object

Definition at line 241 of file debug.c.

int ubi_debugging_init_dev ( struct ubi_device ubi)

ubi_debugging_init_dev - initialize debugging for an UBI device. : UBI device description object

This function initializes debugging-related data for UBI device . Returns zero in case of success and a negative error code in case of failure.

Definition at line 228 of file debug.c.

void ubi_dump_aeb ( const struct ubi_ainf_peb aeb,
int  type 
)

ubi_dump_aeb - dump a &struct ubi_ainf_peb object. : the object to dump : object type: 0 - not corrupted, 1 - corrupted

Definition at line 188 of file debug.c.

void ubi_dump_av ( const struct ubi_ainf_volume av)

ubi_dump_av - dump a &struct ubi_ainf_volume object. : the object to dump

Definition at line 170 of file debug.c.

void ubi_dump_ec_hdr ( const struct ubi_ec_hdr ec_hdr)

ubi_dump_ec_hdr - dump an erase counter header. : the erase counter header to dump

Definition at line 63 of file debug.c.

void ubi_dump_flash ( struct ubi_device ubi,
int  pnum,
int  offset,
int  len 
)

ubi_dump_flash - dump a region of flash. : UBI device description object : the physical eraseblock number to dump : the starting offset within the physical eraseblock to dump : the length of the region to dump

Definition at line 34 of file debug.c.

void ubi_dump_mkvol_req ( const struct ubi_mkvol_req req)

ubi_dump_mkvol_req - dump a &struct ubi_mkvol_req object. : the object to dump

Definition at line 204 of file debug.c.

void ubi_dump_vid_hdr ( const struct ubi_vid_hdr vid_hdr)

ubi_dump_vid_hdr - dump a volume identifier header. : the volume identifier header to dump

Definition at line 82 of file debug.c.

void ubi_dump_vol_info ( const struct ubi_volume vol)

ubi_dump_vol_info - dump volume information. : UBI volume description object

Definition at line 107 of file debug.c.

void ubi_dump_vtbl_record ( const struct ubi_vtbl_record r,
int  idx 
)

ubi_dump_vtbl_record - dump a &struct ubi_vtbl_record object. : the object to dump : volume table index

Definition at line 138 of file debug.c.