#include "op_version.h"
#include "config.h"
+__attribute__((__section__(".tizen.build-id")))
+static const char BUILD_DATE[] = __DATE__;
+__attribute__((__section__(".tizen.build-id")))
+static const char BUILD_TIME[] = __TIME__;
+
void show_version(char const * app_name)
{
/* Do not change the version format: it is documented in html doc */
- printf("%s: " PACKAGE " " VERSION " compiled on "
- __DATE__ " " __TIME__ "\n", app_name);
+ printf("%s: " PACKAGE " " VERSION " compiled on %s %s\n",
+ app_name, BUILD_DATE, BUILD_TIME);
exit(EXIT_SUCCESS);
}
std::vector<operf_event_t> events;
op_cpu cpu_type;
+__attribute__((__section__(".tizen.build-id")))
+static const char BUILD_DATE[] = __DATE__;
+__attribute__((__section__(".tizen.build-id")))
+static const char BUILD_TIME[] = __TIME__;
+
#define OCOUNT_MSECS_PER_SEC 1000
// Current implementation supports a display interval of 100 ms
#define OCOUNT_DSP_INTVL_MSECS 100
__print_usage_and_exit(NULL);
break;
case 'v':
- cout << argv[0] << ": " << PACKAGE << " " << VERSION << " compiled on " << __DATE__
- << " " << __TIME__ << endl;
+ cout << argv[0] << ": " << PACKAGE << " " << VERSION << " compiled on " << BUILD_DATE
+ << " " << BUILD_TIME << endl;
exit(EXIT_SUCCESS);
break;
default:
*/
bool track_new_forks;
+__attribute__((__section__(".tizen.build-id")))
+static const char BUILD_DATE[] = __DATE__;
+__attribute__((__section__(".tizen.build-id")))
+static const char BUILD_TIME[] = __TIME__;
#define DEFAULT_OPERF_OUTFILE "operf.data"
#define KERN_ADDR_SPACE_START_SYMBOL "_text"
__print_usage_and_exit(NULL);
break;
case 'v':
- cout << argv[0] << ": " << PACKAGE << " " << VERSION << " compiled on " << __DATE__
- << " " << __TIME__ << endl;
+ cout << argv[0] << ": " << PACKAGE << " " << VERSION << " compiled on " << BUILD_DATE
+ << " " << BUILD_TIME << endl;
exit(EXIT_SUCCESS);
break;
default: