Posts

Introduction to Coccinelle - Sanjana Sanikommu

SmPL Rule and An example: PREQUISITES: configure git, setup linux drivers on local machines Set up email client using mutt or git to submit patches to liunx.org Install Coccinelle packages    Follow the link for installation and configuring :  Click Here PROCEDURE TO WRITE COCCINELLE SCRIPTS: Before creating cociinelle scripts we first understand what is coccinelle and its use. What is Coccinelle ? When C Programs are written we often find errors, warnings, dead code, unnecessary functions, uninitialised variables, Memory leaks (malloc, kmalloc) and detection of problematic programming patterns. It becomes difficult to fix each and every bug repeatedly in C files. So coccinelle enables us to automate the process of bug fixing using SmPL(Semantic Patch Language) for specifying desired matches and modify the code according to the kernel standards. Coccinelle is a tool to automatically analyze and rewrite C code.( SMPL ) We have some rules before w
Recent posts