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

Implements the tornbit 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_tornbit.h"

Go to the source code of this file.

Defines

#define FLUSH_CACHELINE_ONCE
#define _DEBUG_PRINT_TMLOG(tmlog)

Functions

void PointerHash_removeKey_noshrink (PointerHash *self, void *k)
m_result_t m_tmlog_tornbit_alloc (m_log_dsc_t *log_dsc)
m_result_t m_tmlog_tornbit_init (pcm_storeset_t *set, m_log_t *log, m_log_dsc_t *log_dsc)
m_result_t m_tmlog_tornbit_truncation_init (pcm_storeset_t *set, m_log_dsc_t *log_dsc)
m_result_t m_tmlog_tornbit_truncation_prepare_next (pcm_storeset_t *set, m_log_dsc_t *log_dsc)
m_result_t m_tmlog_tornbit_truncation_do (pcm_storeset_t *set, m_log_dsc_t *log_dsc)
m_result_t m_tmlog_tornbit_recovery_init (pcm_storeset_t *set, m_log_dsc_t *log_dsc)
m_result_t m_tmlog_tornbit_recovery_prepare_next (pcm_storeset_t *set, m_log_dsc_t *log_dsc)
m_result_t m_tmlog_tornbit_recovery_do (pcm_storeset_t *set, m_log_dsc_t *log_dsc)
m_result_t m_tmlog_tornbit_report_stats (m_log_dsc_t *log_dsc)

Variables

m_log_ops_t tmlog_tornbit_ops


Detailed Description

Implements the tornbit log for persistent writeback transactions.

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

Definition in file tmlog_tornbit.c.


Define Documentation

#define _DEBUG_PRINT_TMLOG ( tmlog   ) 

Value:

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

Definition at line 68 of file tmlog_tornbit.c.


Variable Documentation

m_log_ops_t tmlog_tornbit_ops

Initial value:

Definition at line 49 of file tmlog_tornbit.c.


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