Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api/docs/tutorial.dox
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* **********************************************************
* Copyright (c) 2012-2015 Google, Inc. All rights reserved.
* Copyright (c) 2012-2025 Google, Inc. All rights reserved.
* Copyright (c) 2008-2009 VMware, Inc. All rights reserved.
* **********************************************************/

Expand Down Expand Up @@ -1191,7 +1191,7 @@ annotation. The first step is to copy the DynamoRIO souce file

\code
#ifndef _DYNAMORIO_ANNOTATIONS_H_
#define _DYNAMORIO_ANNOTATIONS_H_ 1
#define _DYNAMORIO_ANNOTATIONS_H_

#include "dr_annotations_asm.h"

Expand Down
2 changes: 1 addition & 1 deletion clients/drcachesim/analysis_tool.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
*/

#ifndef _ANALYSIS_TOOL_H_
#define _ANALYSIS_TOOL_H_ 1
#define _ANALYSIS_TOOL_H_

/**
* @file drmemtrace/analysis_tool.h
Expand Down
2 changes: 1 addition & 1 deletion clients/drcachesim/analyzer.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
*/

#ifndef _ANALYZER_H_
#define _ANALYZER_H_ 1
#define _ANALYZER_H_

/**
* @file drmemtrace/analyzer.h
Expand Down
2 changes: 1 addition & 1 deletion clients/drcachesim/analyzer_multi.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
*/

#ifndef _ANALYZER_MULTI_H_
#define _ANALYZER_MULTI_H_ 1
#define _ANALYZER_MULTI_H_

#include "analyzer.h"
#include "archive_ostream.h"
Expand Down
4 changes: 2 additions & 2 deletions clients/drcachesim/common/archive_istream.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* **********************************************************
* Copyright (c) 2023 Google, Inc. All rights reserved.
* Copyright (c) 2023-2025 Google, Inc. All rights reserved.
* **********************************************************/

/*
Expand Down Expand Up @@ -36,7 +36,7 @@
*/

#ifndef _ARCHIVE_ISTREAM_H_
#define _ARCHIVE_ISTREAM_H_ 1
#define _ARCHIVE_ISTREAM_H_

#include <fstream>

Expand Down
4 changes: 2 additions & 2 deletions clients/drcachesim/common/archive_ostream.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* **********************************************************
* Copyright (c) 2022-2023 Google, Inc. All rights reserved.
* Copyright (c) 2022-2025 Google, Inc. All rights reserved.
* **********************************************************/

/*
Expand Down Expand Up @@ -36,7 +36,7 @@
*/

#ifndef _ARCHIVE_OSTREAM_H_
#define _ARCHIVE_OSTREAM_H_ 1
#define _ARCHIVE_OSTREAM_H_

#include <fstream>

Expand Down
4 changes: 2 additions & 2 deletions clients/drcachesim/common/crc32c.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* **********************************************************
* Copyright (c) 2019-2023 Google, Inc. All rights reserved.
* Copyright (c) 2019-2025 Google, Inc. All rights reserved.
* **********************************************************/

/*
Expand Down Expand Up @@ -31,7 +31,7 @@
*/

#ifndef _CRC32_H_
#define _CRC32_H_ 1
#define _CRC32_H_

#include <cstdint>

Expand Down
4 changes: 2 additions & 2 deletions clients/drcachesim/common/directory_iterator.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* **********************************************************
* Copyright (c) 2017-2023 Google, Inc. All rights reserved.
* Copyright (c) 2017-2025 Google, Inc. All rights reserved.
* **********************************************************/

/*
Expand Down Expand Up @@ -34,7 +34,7 @@
*/

#ifndef _DIRECTORY_ITERATOR_H_
#define _DIRECTORY_ITERATOR_H_ 1
#define _DIRECTORY_ITERATOR_H_

#include <assert.h>

Expand Down
4 changes: 2 additions & 2 deletions clients/drcachesim/common/gzip_istream.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* **********************************************************
* Copyright (c) 2018-2023 Google, Inc. All rights reserved.
* Copyright (c) 2018-2025 Google, Inc. All rights reserved.
* **********************************************************/

/*
Expand Down Expand Up @@ -36,7 +36,7 @@
*/

#ifndef _GZIP_ISTREAM_H_
#define _GZIP_ISTREAM_H_ 1
#define _GZIP_ISTREAM_H_

#ifndef HAS_ZLIB
# error HAS_ZLIB is required
Expand Down
4 changes: 2 additions & 2 deletions clients/drcachesim/common/gzip_ostream.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* **********************************************************
* Copyright (c) 2018-2023 Google, Inc. All rights reserved.
* Copyright (c) 2018-2025 Google, Inc. All rights reserved.
* **********************************************************/

/*
Expand Down Expand Up @@ -36,7 +36,7 @@
*/

#ifndef _GZIP_OSTREAM_H_
#define _GZIP_OSTREAM_H_ 1
#define _GZIP_OSTREAM_H_

#ifndef HAS_ZLIB
# error HAS_ZLIB is required
Expand Down
4 changes: 2 additions & 2 deletions clients/drcachesim/common/lz4_istream.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* **********************************************************
* Copyright (c) 2020-2023 Google, Inc. All rights reserved.
* Copyright (c) 2020-2025 Google, Inc. All rights reserved.
* **********************************************************/

/*
Expand Down Expand Up @@ -36,7 +36,7 @@
*/

#ifndef _LZ4_ISTREAM_H_
#define _LZ4_ISTREAM_H_ 1
#define _LZ4_ISTREAM_H_

#ifndef HAS_LZ4
# error HAS_LZ4 is required
Expand Down
4 changes: 2 additions & 2 deletions clients/drcachesim/common/lz4_ostream.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* **********************************************************
* Copyright (c) 2023 Google, Inc. All rights reserved.
* Copyright (c) 2023-2025 Google, Inc. All rights reserved.
* **********************************************************/

/*
Expand Down Expand Up @@ -35,7 +35,7 @@
*/

#ifndef _LZ4_OSTREAM_H_
#define _LZ4_OSTREAM_H_ 1
#define _LZ4_OSTREAM_H_

#ifndef HAS_LZ4
# error HAS_LZ4 is required
Expand Down
2 changes: 1 addition & 1 deletion clients/drcachesim/common/memref.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
/* This is the data format that the simulator and analysis tools take as input. */

#ifndef _MEMREF_H_
#define _MEMREF_H_ 1
#define _MEMREF_H_

#include <stdint.h>
#include <stddef.h> // for size_t
Expand Down
2 changes: 1 addition & 1 deletion clients/drcachesim/common/memtrace_stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
*/

#ifndef _MEMTRACE_STREAM_H_
#define _MEMTRACE_STREAM_H_ 1
#define _MEMTRACE_STREAM_H_

#include <cstdint>
#include <string>
Expand Down
4 changes: 2 additions & 2 deletions clients/drcachesim/common/mutex_dbg_owned.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* **********************************************************
* Copyright (c) 2024 Google, Inc. All rights reserved.
* Copyright (c) 2024-2025 Google, Inc. All rights reserved.
* **********************************************************/

/*
Expand Down Expand Up @@ -33,7 +33,7 @@
/* mutex_dbg_owned.h: std::mutex plus an assertable owner and stats in debug builds. */

#ifndef _MUTEX_DBG_OWNED_H_
#define _MUTEX_DBG_OWNED_H_ 1
#define _MUTEX_DBG_OWNED_H_

#include <mutex>
#include <thread>
Expand Down
4 changes: 2 additions & 2 deletions clients/drcachesim/common/named_pipe.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* **********************************************************
* Copyright (c) 2015-2023 Google, Inc. All rights reserved.
* Copyright (c) 2015-2025 Google, Inc. All rights reserved.
* **********************************************************/

/*
Expand Down Expand Up @@ -35,7 +35,7 @@
*/

#ifndef _NAMED_PIPE_H_
#define _NAMED_PIPE_H_ 1
#define _NAMED_PIPE_H_

#include <string>
#ifdef WINDOWS
Expand Down
2 changes: 1 addition & 1 deletion clients/drcachesim/common/options.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
/* shared options for the frontend, the client, and the documentation */

#ifndef _OPTIONS_H_
#define _OPTIONS_H_ 1
#define _OPTIONS_H_

// Tool names (for -tool option).
#define CPU_CACHE_LEGACY "cache"
Expand Down
4 changes: 2 additions & 2 deletions clients/drcachesim/common/schedule_file.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* **********************************************************
* Copyright (c) 2024 Google, Inc. All rights reserved.
* Copyright (c) 2024-2025 Google, Inc. All rights reserved.
* **********************************************************/

/*
Expand Down Expand Up @@ -35,7 +35,7 @@
*/

#ifndef _SCHEDULE_FILE_H_
#define _SCHEDULE_FILE_H_ 1
#define _SCHEDULE_FILE_H_

#include <cstdint>
#include <fstream>
Expand Down
4 changes: 2 additions & 2 deletions clients/drcachesim/common/snappy_consts.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* **********************************************************
* Copyright (c) 2019-2023 Google, Inc. All rights reserved.
* Copyright (c) 2019-2025 Google, Inc. All rights reserved.
* **********************************************************/

/*
Expand Down Expand Up @@ -37,7 +37,7 @@
*/

#ifndef _SNAPPY_CONSTS_H_
#define _SNAPPY_CONSTS_H_ 1
#define _SNAPPY_CONSTS_H_

#include <cstddef>
#include "crc32c.h"
Expand Down
4 changes: 2 additions & 2 deletions clients/drcachesim/common/snappy_istream.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* **********************************************************
* Copyright (c) 2022 Google, Inc. All rights reserved.
* Copyright (c) 2022-2025 Google, Inc. All rights reserved.
* **********************************************************/

/*
Expand Down Expand Up @@ -36,7 +36,7 @@
*/

#ifndef _SNAPPY_ISTREAM_H_
#define _SNAPPY_ISTREAM_H_ 1
#define _SNAPPY_ISTREAM_H_

#ifndef HAS_SNAPPY
# error HAS_SNAPPY is required
Expand Down
2 changes: 1 addition & 1 deletion clients/drcachesim/common/trace_entry.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
*/

#ifndef _TRACE_ENTRY_H_
#define _TRACE_ENTRY_H_ 1
#define _TRACE_ENTRY_H_

#include <memory>
#include <stddef.h>
Expand Down
4 changes: 2 additions & 2 deletions clients/drcachesim/common/utils.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* **********************************************************
* Copyright (c) 2015-2024 Google, Inc. All rights reserved.
* Copyright (c) 2015-2025 Google, Inc. All rights reserved.
* **********************************************************/

/*
Expand Down Expand Up @@ -33,7 +33,7 @@
/* utils.h: utilities for cache simulator */

#ifndef _UTILS_H_
#define _UTILS_H_ 1
#define _UTILS_H_

#include <stdint.h>
#include <stdio.h>
Expand Down
4 changes: 2 additions & 2 deletions clients/drcachesim/common/zipfile_istream.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* **********************************************************
* Copyright (c) 2018-2023 Google, Inc. All rights reserved.
* Copyright (c) 2018-2025 Google, Inc. All rights reserved.
* **********************************************************/

/*
Expand Down Expand Up @@ -36,7 +36,7 @@
*/

#ifndef _ZIPFILE_ISTREAM_H_
#define _ZIPFILE_ISTREAM_H_ 1
#define _ZIPFILE_ISTREAM_H_

#ifndef HAS_ZIP
# error HAS_ZIP is required
Expand Down
4 changes: 2 additions & 2 deletions clients/drcachesim/common/zipfile_ostream.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* **********************************************************
* Copyright (c) 2022-2024 Google, Inc. All rights reserved.
* Copyright (c) 2022-2025 Google, Inc. All rights reserved.
* **********************************************************/

/*
Expand Down Expand Up @@ -36,7 +36,7 @@
// https://github.com/madler/zlib/blob/master/contrib/minizip/zip.h

#ifndef _ZIPFILE_OSTREAM_H_
#define _ZIPFILE_OSTREAM_H_ 1
#define _ZIPFILE_OSTREAM_H_

#include <iostream>
#include <fstream>
Expand Down
4 changes: 2 additions & 2 deletions clients/drcachesim/common/zlib_istream.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* **********************************************************
* Copyright (c) 2020-2023 Google, Inc. All rights reserved.
* Copyright (c) 2020-2025 Google, Inc. All rights reserved.
* **********************************************************/

/*
Expand Down Expand Up @@ -36,7 +36,7 @@
*/

#ifndef _ZLIB_ISTREAM_H_
#define _ZLIB_ISTREAM_H_ 1
#define _ZLIB_ISTREAM_H_

#ifndef HAS_ZLIB
# error HAS_ZLIB is required
Expand Down
4 changes: 2 additions & 2 deletions clients/drcachesim/drpt2trace/drir.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* **********************************************************
* Copyright (c) 2023 Google, Inc. All rights reserved.
* Copyright (c) 2023-2025 Google, Inc. All rights reserved.
* **********************************************************/

/*
Expand Down Expand Up @@ -33,7 +33,7 @@
/* drir: the type wraps instrlist_t. */

#ifndef _DRIR_H_
#define _DRIR_H_ 1
#define _DRIR_H_

#ifndef DR_FAST_IR
# define DR_FAST_IR 1
Expand Down
4 changes: 2 additions & 2 deletions clients/drcachesim/drpt2trace/elf_loader.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* **********************************************************
* Copyright (c) 2023 Google, Inc. All rights reserved.
* Copyright (c) 2023-2025 Google, Inc. All rights reserved.
* **********************************************************/

/*
Expand Down Expand Up @@ -37,7 +37,7 @@
*/

#ifndef _ELF_LOADER_H_
#define _ELF_LOADER_H_ 1
#define _ELF_LOADER_H_

#include <stdint.h>
#include <sys/stat.h>
Expand Down
4 changes: 2 additions & 2 deletions clients/drcachesim/drpt2trace/ir2trace.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* **********************************************************
* Copyright (c) 2023 Google, Inc. All rights reserved.
* Copyright (c) 2023-2025 Google, Inc. All rights reserved.
* **********************************************************/

/*
Expand Down Expand Up @@ -33,7 +33,7 @@
/* ir2trace: convert DynamoRIO's IR format to trace entries. */

#ifndef _IR2TRACE_H_
#define _IR2TRACE_H_ 1
#define _IR2TRACE_H_

/**
* @file ir2trace.h
Expand Down
Loading
Loading