usermode/library/mtm/src/mode/pwb-common/tmlog_base.c File Reference

Implements the base log for persistent writeback transactions. More...

#include <stdio.h>
#include <assert.h>
#include <mnemosyne.h>
#include <pcm.h>
#include <cuckoo_hash/PointerHashInline.h>
#include <debug.h>
#include "tmlog_base.h"

Go to the source code of this file.

Defines

#define _DEBUG_PRINT_TMLOG(tmlog)

Functions

m_result_t m_tmlog_base_alloc (m_log_dsc_t *log_dsc)
m_result_t m_tmlog_base_init (pcm_storeset_t *set, m_log_t *log, m_log_dsc_t *log_dsc)
m_result_t m_tmlog_base_truncation_init (pcm_storeset_t *set, m_log_dsc_t *log_dsc)
m_result_t m_tmlog_base_truncation_prepare_next (pcm_storeset_t *set, m_log_dsc_t *log_dsc)
m_result_t m_tmlog_base_truncation_do (pcm_storeset_t *set, m_log_dsc_t *log_dsc)
m_result_t m_tmlog_base_recovery_init (pcm_storeset_t *set, m_log_dsc_t *log_dsc)
m_result_t m_tmlog_base_recovery_prepare_next (pcm_storeset_t *set, m_log_dsc_t *log_dsc)
m_result_t m_tmlog_base_recovery_do (pcm_storeset_t *set, m_log_dsc_t *log_dsc)
m_result_t m_tmlog_base_report_stats (m_log_dsc_t *log_dsc)

Variables

m_log_ops_t tmlog_base_ops


Detailed Description

Implements the base log for persistent writeback transactions.

Author:
Haris Volos <hvolos@cs.wisc.edu>

Definition in file tmlog_base.c.


Define Documentation

#define _DEBUG_PRINT_TMLOG ( tmlog   ) 

Value:

printf("stable_tail: %lu\n", tmlog->phlog_base.nvmd->tail);   \
  printf("stable_head: %lu\n", tmlog->phlog_base.nvmd->head);   \
  printf("tail       : %lu\n", tmlog->phlog_base.tail);         \
  printf("head       : %lu\n", tmlog->phlog_base.head);         \
  printf("read_index : %lu\n", tmlog->phlog_base.read_index);

Definition at line 65 of file tmlog_base.c.

Referenced by m_tmlog_base_recovery_do(), m_tmlog_base_truncation_do(), m_tmlog_tornbit_recovery_do(), and m_tmlog_tornbit_truncation_do().


Variable Documentation

m_log_ops_t tmlog_base_ops

Initial value:

Definition at line 49 of file tmlog_base.c.


Generated on Sat Apr 23 11:43:36 2011 for Mnemosyne by  doxygen 1.4.7