Limited filenames size for ATT plugin

(cherry picked from commit e31b7466c3bf9d8e69311752a617097f81d51355)
Change-Id: I2efd25e23a7c836df7526f743d68288b696d23b1


[ROCm/rocprofiler commit: 140dc5bb1a]
Este cometimento está contido em:
Giovanni LB criou e Ammar ELWazir cometeu 2023-05-30 21:41:54 -05:00
1 ascendente dcd5f1a397
cometimento 3cfbfe2264
2 ficheiros modificados
+7

Não existem ficheiros que correspondam à sua pesquisa

+6
Ver ficheiro
@@ -45,6 +45,8 @@
#include "rocprofiler_plugin.h"
#include "../utils.h"
#define ATT_FILENAME_MAXBYTES 96
namespace {
class att_plugin_t {
@@ -79,6 +81,10 @@ class att_plugin_t {
std::string name_demangled = rocmtools::truncate_name(rocmtools::cxx_demangle(kernel_name_c));
if (name_demangled.size() > ATT_FILENAME_MAXBYTES) { // Limit filename size
name_demangled = name_demangled.substr(0, ATT_FILENAME_MAXBYTES);
}
// Get the number of shader engine traces
int se_num = att_tracer_record->shader_engine_data_count;
std::string outpath;