Skip to content

Commit c80b057

Browse files
Changes for 11364 release for Chrome
1 parent d2c8f54 commit c80b057

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+269
-165
lines changed

Common/Ver.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020

2121
#define VER_MAJOR 1
2222
#define VER_MINOR 0
23-
#define VER_HOTFIX 11363
24-
#define VER_BUILD 34997
23+
#define VER_HOTFIX 11364
24+
#define VER_BUILD 43042

Common/ipf_sdk_version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include <stdlib.h>
2525

2626
// Current IPF SDK Version: Major.Minor.Revision where same Major.Minor compatible with other Revisions, but not newer Major.Minor
27-
#define IPF_SDK_VERSION "1.0.11363"
27+
#define IPF_SDK_VERSION "1.0.11364"
2828

2929
typedef u64 ipfsdk_version_t; // IPF SDK Encoded Version Number
3030

DPTF/Linux/CMakeLists.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
project(DPTF)
2-
2+
cmake_minimum_required(VERSION 3.9)
33
cmake_minimum_required(VERSION 2.8.6)
44

55
message ("CXX Flags (initial) : " ${CMAKE_CXX_FLAGS})
66
message ("C Flags (initial) : " ${CMAKE_C_FLAGS})
77

88
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
9-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++14 -Wall -Werror -Wno-unused-value -Wno-unused-variable -Wno-unqualified-std-cast-call -Wno-missing-braces -fPIC -Wformat -Wformat-security -O2 -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fno-delete-null-pointer-checks -fwrapv -DDPTF_REMOVE_UNIT_TESTS -fvisibility=hidden")
10-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -Wno-unused-value -Wno-unused-variable -Wno-missing-braces -fPIC -Wformat -Wformat-security -O2 -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fno-delete-null-pointer-checks -fwrapv -DDPTF_REMOVE_UNIT_TESTS -fvisibility=hidden")
9+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++17 -Wall -Werror -Wno-unused-value -Wno-unused-variable -Wno-unqualified-std-cast-call -Wno-missing-braces -fPIC -Wformat -Wformat-security -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fno-delete-null-pointer-checks -fwrapv -DDPTF_REMOVE_UNIT_TESTS -fvisibility=hidden -Wl,--no-undefined ")
10+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -Wno-unused-value -Wno-unused-variable -Wno-missing-braces -fPIC -Wformat -Wformat-security -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fno-delete-null-pointer-checks -fwrapv -DDPTF_REMOVE_UNIT_TESTS -fvisibility=hidden")
1111

1212
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.9.0")
1313
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector")
@@ -41,6 +41,12 @@ if (CHROMIUM_BUILD MATCHES YES)
4141
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/x64)
4242
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/x64)
4343
endif()
44+
# Add below WA for Chrome builds with latest CROS SDK
45+
set(CMAKE_THREAD_LIBS_INIT "-lpthread")
46+
set(CMAKE_HAVE_THREADS_LIBRARY 1)
47+
set(CMAKE_USE_WIN32_THREADS_INIT 0)
48+
set(CMAKE_USE_PTHREADS_INIT 1)
49+
set(THREADS_PREFER_PTHREAD_FLAG ON)
4450

4551
else()
4652
message("Building for Linux...")

DPTF/Sources/DptfVer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
#define VER_MAJOR 9
2222
#define VER_MINOR 0
23-
#define VER_HOTFIX 11363
24-
#define VER_BUILD 34997
23+
#define VER_HOTFIX 11364
24+
#define VER_BUILD 43042
2525

2626
#define ARG_TOSTR(arg) #arg
2727
#define VER_TOSTR(arg) ARG_TOSTR(arg)

DPTF/Sources/Manager/DataManager.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ void DataManager::setTableObject(
129129
if (tableData.notEmpty())
130130
{
131131
m_dptfManager->getEsifServices()->writeConfigurationBinary(
132-
tableData.get(), tableData.size(), tableData.size(), nameSpace, elementPath);
132+
tableData.get(), tableData.size(), tableData.size(), nameSpace, elementPath, ESIF_SERVICE_CONFIG_PERSIST);
133133
}
134134
else
135135
{
@@ -274,7 +274,7 @@ void DataManager::setTableObjectBasedOnAlternativeDataSourceAndKey(
274274
if (tableData.notEmpty())
275275
{
276276
m_dptfManager->getEsifServices()->writeConfigurationBinary(
277-
tableData.get(), tableData.size(), tableData.size(), nameSpace, elementPath);
277+
tableData.get(), tableData.size(), tableData.size(), nameSpace, elementPath, ESIF_SERVICE_CONFIG_PERSIST);
278278
}
279279
else
280280
{
@@ -301,7 +301,7 @@ void DataManager::setTableObjectForNoPersist(DptfBuffer tableData, TableObjectTy
301301
auto dvType = DataVaultType::Override;
302302

303303
m_dptfManager->getEsifServices()->writeConfigurationBinary(
304-
tableData.get(), tableData.size(), tableData.size(), DataVaultType::ToString(dvType), elementPath);
304+
tableData.get(), tableData.size(), tableData.size(), DataVaultType::ToString(dvType), elementPath, 0);
305305
sendTableChangedEvent(tableType, Constants::EmptyString, Constants::Esif::NoParticipant);
306306
}
307307

@@ -357,7 +357,7 @@ void DataManager::writeEmptyTable(string nameSpace, string elementPath)
357357
u8 dummyBuffer = 0;
358358

359359
m_dptfManager->getEsifServices()->writeConfigurationBinary(
360-
&dummyBuffer, sizeof(dummyBuffer), 0, nameSpace, elementPath);
360+
&dummyBuffer, sizeof(dummyBuffer), 0, nameSpace, elementPath, ESIF_SERVICE_CONFIG_PERSIST);
361361
}
362362

363363
void DataManager::sendTableChangedEvent(TableObjectType::Type tableObjectType, string uuid, UIntN participantIndex)

DPTF/Sources/Manager/Domain.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,14 @@ Domain::Domain(DptfManagerInterface* dptfManager)
7474

7575
Domain::~Domain(void)
7676
{
77-
destroyDomain();
77+
try
78+
{
79+
destroyDomain();
80+
}
81+
catch(...)
82+
{
83+
84+
}
7885
}
7986

8087
void Domain::createDomain(

DPTF/Sources/Manager/EsifServices.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,15 @@ UInt32 EsifServices::readConfigurationUInt32(const string& nameSpace, const stri
106106
return esifResult;
107107
}
108108

109-
void EsifServices::writeConfigurationUInt32(const string& elementPath, UInt32 elementValue)
109+
void EsifServices::writeConfigurationUInt32(const string& elementPath, UInt32 elementValue, UInt32 flags)
110110
{
111111
eEsifError rc = m_appServices->setConfigurationValue(
112112
m_esifHandle,
113113
(const esif_handle_t)(UInt64)m_dptfManager,
114114
EsifDataString("dptf"),
115115
EsifDataString(elementPath),
116116
EsifDataUInt32(elementValue),
117-
ESIF_SERVICE_CONFIG_PERSIST);
117+
flags);
118118

119119
if (rc != ESIF_OK)
120120
{
@@ -189,15 +189,16 @@ void EsifServices::writeConfigurationBinary(
189189
UInt32 bufferLength,
190190
UInt32 dataLength,
191191
const string& nameSpace,
192-
const string& key)
192+
const string& key,
193+
UInt32 flags)
193194
{
194195
eEsifError rc = m_appServices->setConfigurationValue(
195196
m_esifHandle,
196197
(const esif_handle_t)(UInt64)m_dptfManager,
197198
EsifDataString(nameSpace),
198199
EsifDataString(key),
199200
EsifDataContainer(ESIF_DATA_BINARY, bufferPtr, bufferLength, dataLength),
200-
ESIF_SERVICE_CONFIG_PERSIST);
201+
flags);
201202

202203
if (rc != ESIF_OK)
203204
{

DPTF/Sources/Manager/EsifServices.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,16 @@ class dptf_export EsifServices : public EsifServicesInterface
3636

3737
virtual UInt32 readConfigurationUInt32(const std::string& elementPath) override;
3838
virtual UInt32 readConfigurationUInt32(const std::string& nameSpace, const std::string& elementPath) override;
39-
virtual void writeConfigurationUInt32(const std::string& elementPath, UInt32 elementValue) override;
39+
virtual void writeConfigurationUInt32(const std::string& elementPath, UInt32 elementValue, UInt32 flags) override;
4040
virtual std::string readConfigurationString(const std::string& nameSpace, const std::string& elementPath) override;
4141
virtual DptfBuffer readConfigurationBinary(const std::string& nameSpace, const std::string& elementPath) override;
4242
virtual void writeConfigurationBinary(
4343
void* bufferPtr,
4444
UInt32 bufferLength,
4545
UInt32 dataLength,
4646
const std::string& nameSpace,
47-
const std::string& elementPath) override;
47+
const std::string& elementPath,
48+
UInt32 flags) override;
4849
virtual void deleteConfigurationBinary(
4950
const std::string& nameSpace,
5051
const std::string& elementPath) override;

DPTF/Sources/Manager/EsifServicesInterface.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,16 @@ class dptf_export EsifServicesInterface
4747

4848
virtual UInt32 readConfigurationUInt32(const std::string& elementPath) = 0;
4949
virtual UInt32 readConfigurationUInt32(const std::string& nameSpace, const std::string& elementPath) = 0;
50-
virtual void writeConfigurationUInt32(const std::string& elementPath, UInt32 elementValue) = 0;
50+
virtual void writeConfigurationUInt32(const std::string& elementPath, UInt32 elementValue, UInt32 flags) = 0;
5151
virtual std::string readConfigurationString(const std::string& nameSpace, const std::string& elementPath) = 0;
5252
virtual DptfBuffer readConfigurationBinary(const std::string& nameSpace, const std::string& elementPath) = 0;
5353
virtual void writeConfigurationBinary(
5454
void* bufferPtr,
5555
UInt32 bufferLength,
5656
UInt32 dataLength,
5757
const std::string& nameSpace,
58-
const std::string& elementPath) = 0;
58+
const std::string& elementPath,
59+
UInt32 flags) = 0;
5960
virtual void deleteConfigurationBinary(const std::string& nameSpace, const std::string& elementPath) = 0;
6061

6162
// Primitives

DPTF/Sources/Manager/Participant.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,14 @@ Participant::Participant(DptfManagerInterface* dptfManager)
4141

4242
Participant::~Participant(void)
4343
{
44-
destroyParticipant();
44+
try
45+
{
46+
destroyParticipant();
47+
}
48+
catch(...)
49+
{
50+
51+
}
4552
}
4653

4754
void Participant::createParticipant(

0 commit comments

Comments
 (0)