tools/ttrace.git
11 months agoatrace: Fix a svace issue 94/313994/1 accepted/tizen_unified_dev accepted/tizen/unified/20240704.173826 accepted/tizen/unified/dev/20240708.001750 accepted/tizen/unified/toolchain/20240812.131449 accepted/tizen/unified/x/20240705.012351 accepted/tizen/unified/x/asan/20240813.225725
Sung-hun Kim [Thu, 4 Jul 2024 01:04:59 +0000 (10:04 +0900)]
atrace: Fix a svace issue

The new operator in C++ does not return nullptr when it is failed.
Instead, it throws a bad_alloc exception to notify the failure.
With an optional `std::nothrow` keyword, the new operator returns
nullptr instead of exception throwing when it is failed.

This patch fixes a svace issue 209972.

Change-Id: I6a6f900f06bf7911fc9aa53366d5da6375680915
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
13 months agoRemove conditional statements for Mobile/Wearable profiles 02/309802/1 accepted/tizen/unified/20240423.164610 accepted/tizen/unified/dev/20240620.011410 accepted/tizen/unified/x/20240425.051100 accepted/tizen/unified/x/asan/20240625.091800
Sung-hun Kim [Wed, 17 Apr 2024 02:59:37 +0000 (11:59 +0900)]
Remove conditional statements for Mobile/Wearable profiles

Remove conditional statements in trace.h header file and
use the Mobile version for since_tizen.

Change-Id: I679e75bb3be8c45abe3298f9126a45ada1f18091
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
14 months agopackaging: Add a config file entry for trace_pipe to allow accesses from user shell 74/309074/1 accepted/tizen/unified/20240409.135539 accepted/tizen/unified/20240409.155848 accepted/tizen/unified/x/20240411.011756
Sung-hun Kim [Thu, 4 Apr 2024 08:24:32 +0000 (17:24 +0900)]
packaging: Add a config file entry for trace_pipe to allow accesses from user shell

Change-Id: I2af979fa8980c6f2cbfa3c0cea4737c22ef8ad7d
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
15 months agoFix lcov option for lcov 2.0 63/307063/1 accepted/tizen/unified/20240306.094035 accepted/tizen/unified/toolchain/20240311.070135 accepted/tizen/unified/x/20240307.010657
JinWang An [Mon, 4 Mar 2024 09:27:09 +0000 (18:27 +0900)]
Fix lcov option for lcov 2.0

Change-Id: Ida203348cafa4ab0cbecb28dd25595e7fa19746d
Signed-off-by: JinWang An <jinwang.an@samsung.com>
15 months agoatrace-helper: Fix a coverity issue 90/306390/3 accepted/tizen/unified/20240306.011943
Sung-hun Kim [Wed, 21 Feb 2024 04:49:27 +0000 (13:49 +0900)]
atrace-helper: Fix a coverity issue

Due to the return value of read syscall, tot_read can be overflowed or
it can make an underflow case on the argument of read syscall.
Also, if an argument length contains zero, it can make an underflow on
`length - 1`.

This patch handles such cases by checking values properly.

Change-Id: I81bb2678d0a8cc38a000c16cc183589e0fcefb15
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
16 months agoFix std=c++14 for gtest 1.14.0 version upgrade 77/305077/1
JinWang An [Fri, 26 Jan 2024 07:07:09 +0000 (16:07 +0900)]
Fix std=c++14 for gtest 1.14.0 version upgrade

Change-Id: I5d2a712428e97a9550cf88b166dd9b71a1ed510a
Signed-off-by: JinWang An <jinwang.an@samsung.com>
21 months agoExclude atrace from lcov coverage 93/298093/1 accepted/tizen_8.0_unified tizen_8.0 accepted/tizen/8.0/unified/20231005.100206 accepted/tizen/unified/20230905.085513 tizen_8.0_m2_release
Sung-hun Kim [Thu, 31 Aug 2023 08:22:43 +0000 (17:22 +0900)]
Exclude atrace from lcov coverage

Change-Id: Ia1227ae78e42a33b6c035bee3e12785f6f13cb4e
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
2 years agoIncrease the buffer size of PID 62/289062/2 accepted/tizen/unified/20230309.161422
Sung-hun Kim [Tue, 28 Feb 2023 05:16:22 +0000 (14:16 +0900)]
Increase the buffer size of PID

If the length of a PID number crosses 5, printed PID spoils the format
of the trace. In this case, systrace viewer cannot parse this trace.

To prevent this situation, this patch increases the buffer size of
PID from 5 to 8. It will be safe as long as PID is less or equal than
99,999,999.

Change-Id: Ia374a8b9846402f2578dd5bbefc1eabd75cd319b
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
2 years agoFix build errors for TTRACE_DEBUG 61/289061/2
Sung-hun Kim [Mon, 27 Feb 2023 10:25:23 +0000 (19:25 +0900)]
Fix build errors for TTRACE_DEBUG

Due to the formatting error, ttrace package cannot be built
if TTRACE_DEBUG is defined. This patch fixes this errors by
applying proper formats.

Change-Id: If949de75f3c3cf436a76749770f381651b40a9a9
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
2 years agoatrace: Enable a 'record-tgid' option for printing TGID of the task 58/288958/1
Sung-hun Kim [Mon, 27 Feb 2023 03:02:21 +0000 (12:02 +0900)]
atrace: Enable a 'record-tgid' option for printing TGID of the task

After Linux kernel version 4.13, an option should be set to print
TGID of tasks. This patch enables this option.

Change-Id: I22aaa91f0c3d8c43e83dee039733318b744f9a81
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
2 years agoatrace: Change sendfile to read/write calls 73/288873/1
Sung-hun Kim [Fri, 24 Feb 2023 02:40:57 +0000 (11:40 +0900)]
atrace: Change sendfile to read/write calls

Because of the recent update of the Linux kernel, sendfile call on
the trace file is no longer supported. Ref a below link:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=36e2c7421f02a22f71c9283e55fdb672a9eb58e7

Moreover, sendfile call shows poor performance for some cases
which is reported by the patch on android atrace:

https://android.googlesource.com/platform/frameworks/native/+/d3d36e71f274a1f6df1eb77db5a6abfb12035c75

So, we changed sendfile call to commonly used read/write calls.

Change-Id: If027ddc81781a6ec66bb85cbf826eb638a66cdc0
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
2 years agoFix SVACE issues 69/287069/1 accepted/tizen/unified/20230126.170100
Sung-hun Kim [Thu, 19 Jan 2023 08:17:22 +0000 (17:17 +0900)]
Fix SVACE issues

The function strerror() is a vulnerable function because it is thread-unsafe.
Instead of this function, ttrace will use strerror_r() which guarantees thread-safety.

Change-Id: I904887011c404468a5660792efcf08c4a632366f
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
2 years agoAdd -fPIC to libttrace 42/284142/1 accepted/tizen/unified/20221111.105333
Sung-hun Kim [Thu, 10 Nov 2022 09:37:24 +0000 (18:37 +0900)]
Add -fPIC to libttrace

For some build environment (especially for the 64-bit emulator),
building ttrace is failed due to the linking failure like below.

 [   67s] /usr/lib64/gcc/x86_64-tizen-linux-gnu/9.2.0/../../../../x86_64-tizen-linux-gnu/bin/ld: /tmp/libttrace.so.1.1.0.VwGElR.ltrans0.ltrans.o: relocation R_X86_64_PC32 against symbol `cur_enabled_tag' can not be used when making a shared object; recompile with -fPIC
 [   67s] /usr/lib64/gcc/x86_64-tizen-linux-gnu/9.2.0/../../../../x86_64-tizen-linux-gnu/bin/ld: final link failed: bad value
 [   67s] collect2: error: ld returned 1 exit status

Adding -fPIC can resolve this issue.

Change-Id: I01197fc6704e5e1accdb70648ea147274ced4d58
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
2 years agoChange a GCC flag from -fpic to fPIC 38/284038/1 accepted/tizen/unified/20221109.171127
Sung-hun Kim [Wed, 9 Nov 2022 03:04:12 +0000 (12:04 +0900)]
Change a GCC flag from -fpic to fPIC

Change-Id: Ibd656e33d3493c22b28d685f596623e6b9777464
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
3 years agoFix here document in the spec file 56/275856/1 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/hotfix/20221116.112242 accepted/tizen/unified/20220608.140042 submit/tizen/20220603.054759 tizen_7.0_m2_release
Sung-hun Kim [Fri, 3 Jun 2022 05:30:00 +0000 (14:30 +0900)]
Fix here document in the spec file

Add escape character for preserving missed argument expression.

Change-Id: I9d31dec2d3b2c800e5c45f2f31272eb883f9a3b6
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
3 years agoModify the spec file to deal with coverage measurement automation 88/275788/1
Sung-hun Kim [Tue, 31 May 2022 08:00:37 +0000 (17:00 +0900)]
Modify the spec file to deal with coverage measurement automation

 - Create run-unittest.sh to automate coverage measurement.
 - Keep directory hierarchy of .gcno files.

Change-Id: I417887688e792a816b4ee8f8eff6ace141d2f816
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
3 years agoImprove code coverage 47/266547/3
Seungha Son [Mon, 15 Nov 2021 07:50:40 +0000 (16:50 +0900)]
Improve code coverage

 In the QEMU environment, it was difficult to measure coverage
 for file-related functions during gtest operation, so bypass
 was performed. File-related functions were wrapped and processed
 as if they were normally processed in a QEMU environment to improve
 coverage.

 Note: description about comment for LCOV in below
 C++ code, an individual line can be excluded by adding LCOV_EXCL_LINE
 somewhere on that line, or a block can be excluded by surrounding it
 with lines containing LCOV_EXCL_START and LCOV_EXCL_STOP.

Change-Id: Iea4413fd5cc128ed1f417efcc26ad1e797321981
Signed-off-by: Seungha Son <seungha.son@samsung.com>
4 years agoRefactor cmake build structure 98/252398/2 submit/tizen/20210128.033347
Seungha Son [Wed, 27 Jan 2021 11:57:05 +0000 (20:57 +0900)]
Refactor cmake build structure

 This patch is for refactor cmake build structure.
 To facilitate analysis and modification by separating it
 'src','atrace','atrace-helper', and 'test', respectively.

Change-Id: I2f2349fd0e055e4f7a719da733c185896aaf7464
Signed-off-by: Seungha Son <seungha.son@samsung.com>
4 years agoRemove unnecessary return statement 47/250947/2
Seungha Son [Wed, 6 Jan 2021 04:50:24 +0000 (13:50 +0900)]
Remove unnecessary return statement

Change-Id: I01aa139933210053b877fa0359e1eef295d10656
Signed-off-by: Seungha Son <seungha.son@samsung.com>
4 years agoRemove static library 94/250594/1 accepted/tizen_6.5_unified tizen_6.5 accepted/tizen/6.5/unified/20211028.225718 accepted/tizen/unified/20210105.125854 submit/tizen/20210104.014652 submit/tizen_6.5/20211028.164101 tizen_6.5.m2_release
Seungha Son [Wed, 30 Dec 2020 04:35:03 +0000 (13:35 +0900)]
Remove static library

Change-Id: Ifb43d363f8d44f775f875e52063b4bf2041d08b9
Signed-off-by: Seungha Son <linuxias@gmail.com>
4 years agoChange src, include reference command 12/250312/1
Seungha Son [Wed, 23 Dec 2020 09:18:39 +0000 (18:18 +0900)]
Change src, include reference command

Change-Id: I31e13550281bf52aaa9542a5045df09e443c7e0b
Signed-off-by: Seungha Son <linuxias@gmail.com>
4 years agoMerge "Add Requires=local-fs.target and After=local-fs.target to ttrace-marker.servic... accepted/tizen/unified/20201110.125036 submit/tizen/20201109.044826
Seungha Son [Mon, 9 Nov 2020 04:46:00 +0000 (04:46 +0000)]
Merge "Add Requires=local-fs.target and After=local-fs.target to ttrace-marker.service" into tizen

4 years agoAdjust coverage measure 17/245617/2
Seungha Son [Tue, 13 Oct 2020 08:01:29 +0000 (17:01 +0900)]
Adjust coverage measure

 When building with the "gcov on" option,
 It can check the coverage result in the build log.

Change-Id: Id9a05454342a720aedb58052b7035264d957e778
Signed-off-by: Seungha Son <seungha.son@samsung.com>
4 years agoAdd Requires=local-fs.target and After=local-fs.target to ttrace-marker.service 20/245420/1
INSUN PYO [Thu, 8 Oct 2020 09:33:04 +0000 (18:33 +0900)]
Add Requires=local-fs.target and After=local-fs.target to ttrace-marker.service

Those dependencies prevent ttrace-marker.service from running in emergency mode,
because local-fs.target always fails in emergency mode.

Change-Id: I770d2a9b477831bc9c571c925c0ceb89b16829e4

4 years agoAdjust gtest skeleton 01/245201/2
Seungha Son [Mon, 5 Oct 2020 09:30:34 +0000 (18:30 +0900)]
Adjust gtest skeleton

Change-Id: I6fdc2ce6ac49700395d0758ab2b93c76e11069c6
Signed-off-by: Seungha Son <seungha.son@samsung.com>
4 years agoRelease version 1.1.0 65/244765/1 submit/tizen/20200924.052347 submit/tizen/20201006.050417
Seungha Son [Thu, 24 Sep 2020 05:13:35 +0000 (14:13 +0900)]
Release version 1.1.0

 - Add RemainAfterExit=yes to ttrace-marker.service
 - Fix API reference header issues
 - Add atrace-helper module
 - Refactor resource managements

Change-Id: Ic847f35c3200fbece2feb8fefa64acb726a5abf3
Signed-off-by: Seungha Son <seungha.son@samsung.com>
4 years agoSplit atrace, atrace-helper CMakeLists.txt 93/244593/5
Seungha Son [Tue, 22 Sep 2020 06:55:37 +0000 (15:55 +0900)]
Split atrace, atrace-helper CMakeLists.txt

Change-Id: Iaebd60a6feb8687f608cf1781974e9dacb2fe2e3
Signed-off-by: Seungha Son <seungha.son@samsung.com>
4 years agoArrange version management 52/244452/2
Seungha Son [Fri, 18 Sep 2020 10:56:54 +0000 (19:56 +0900)]
Arrange version management

Change-Id: I42931c88e1d7a7a33db9a59062e6278c73a871c8
Signed-off-by: Seungha Son <seungha.son@samsung.com>
4 years agoAdd RemainAfterExit=yes to ttrace-marker.service 20/243920/1 accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.102620 accepted/tizen/6.0/unified/hotfix/20201103.045007 accepted/tizen/unified/20200916.121736 submit/tizen/20200915.051524 submit/tizen_6.0/20201029.205506 submit/tizen_6.0_hotfix/20201102.192906 submit/tizen_6.0_hotfix/20201103.115106 tizen_6.0.m2_release
INSUN PYO [Fri, 11 Sep 2020 07:34:21 +0000 (16:34 +0900)]
Add RemainAfterExit=yes to ttrace-marker.service

Once started, this service never runs twice.

Change-Id: Ic21b1f36467ce27cfd15ed0cede47b520735a522

4 years agoFix API reference header issues 75/243675/1 accepted/tizen/unified/20200910.123954 submit/tizen/20200909.054524
Seungha Son [Wed, 9 Sep 2020 05:30:18 +0000 (14:30 +0900)]
Fix API reference header issues

 - Create a link in documentation
 - Add '.' at the end of @brief
 - Add 'void' keyword inside parentheses

Change-Id: Ib92a3a3305a792d6c40ab127815766d838579b46
Signed-off-by: Seungha Son <seungha.son@samsung.com>
4 years agoRemove unnecessary white space 88/242188/1
Seungha Son [Tue, 25 Aug 2020 01:06:44 +0000 (10:06 +0900)]
Remove unnecessary white space

Change-Id: I2fa33741c06a286968dc4c38d0e1a69202e93279
Signed-off-by: Seungha Son <seungha.son@samsung.com>
4 years agoChange method to link library 28/238928/1
Seungha Son [Mon, 20 Jul 2020 09:53:42 +0000 (18:53 +0900)]
Change method to link library

Change-Id: Ib02e1fc6381dfe6f7a00561307d30119b78e4eca
Signed-off-by: Seungha Son <seungha.son@samsung.com>
4 years agosvace security issue fix 01/236801/6 accepted/tizen/unified/20200623.123920 submit/tizen/20200623.023228
sattdeepan.d [Wed, 17 Jun 2020 12:09:01 +0000 (17:39 +0530)]
svace security issue fix

Change-Id: I85b4c82a96e42d3a08acd1ec3f2f25742205aa4e
Signed-off-by: Seungha Son <seungha.son@samsung.com>
5 years agoFix SVACE issue 70/233670/1 accepted/tizen/unified/20200528.133036 submit/tizen/20200519.012936
sattdeepan.d [Fri, 15 May 2020 05:58:03 +0000 (11:28 +0530)]
Fix SVACE issue

 Fix an incorrect declaration to free the array unique_ptr.

Change-Id: I863708576482584156cd37f8e21aa824bdc7abb7

5 years agoFix svace issue 61/232061/1 accepted/tizen/unified/20200429.032857 submit/tizen/20200428.053539
Seungha Son [Tue, 28 Apr 2020 04:29:50 +0000 (13:29 +0900)]
Fix svace issue

Change-Id: I84e8343338f07a8e2a9e817e1ccca221c98aeff6
Signed-off-by: Seungha Son <seungha.son@samsung.com>
5 years agoAdd LICENSE for atrace_helper 62/231462/1 accepted/tizen/unified/20200423.054609 submit/tizen/20200422.054054
Seungha Son [Wed, 22 Apr 2020 05:27:38 +0000 (14:27 +0900)]
Add LICENSE for atrace_helper

Change-Id: Ice751dae71952b2fa2452cb301a91eb4b28fa5e2
Signed-off-by: Seungha Son <seungha.son@samsung.com>
5 years agoFix build warning 90/230390/2
Seungha Son [Thu, 9 Apr 2020 23:54:15 +0000 (08:54 +0900)]
Fix build warning

 warning:
  format '%llx' expects argument of type 'long long unsigned int*',
  but argument has type 'uint64_t*' {aka 'long unsigned int*'}

Change-Id: I7e54040d62d10ebcf2084410bfbbd84310664e07
Signed-off-by: Seungha Son <seungha.son@samsung.com>
5 years agoAdd atrace-helper module 96/229396/4
Seungha Son [Wed, 1 Apr 2020 01:35:13 +0000 (10:35 +0900)]
Add atrace-helper module

 atrace_helper is an optional binary which can be pushed
 onto the device running systrace in order to enrich
 the traces with further details (memory, I/O, etc).

 - Memory snapshots of runnig processes(PSS/RSS)
 - Periodic snapshotting of processes and thread names.
 - File paths for filesystem events (only inode numbers).

Base repo :
 https://chromium.googlesource.com/catapult/+/refs/heads/master/systrace/atrace_helper/
Changed contents :
 Remove specific logic related android

Change-Id: I84b6dff914d4d5f151003e002dd0ff08ab0ae81c
Signed-off-by: Seungha Son <seungha.son@samsung.com>
5 years agoRefactor resource managements 65/229965/2
Seungha Son [Tue, 7 Apr 2020 01:38:42 +0000 (10:38 +0900)]
Refactor resource managements

 Buffers, managed by malloc() and free(), are replaced with
 std::unique_ptr type, so it will automatically deleted when going
 out of scope.

Change-Id: I117bea7d0a980c94c0481f3e470da2a626ca4595
Signed-off-by: Seungha Son <seungha.son@samsung.com>
5 years agoChange error check order 83/229783/3
Seungha Son [Fri, 3 Apr 2020 08:35:27 +0000 (17:35 +0900)]
Change error check order

Change-Id: I0bc2f11b1dff501b8dcfc84bbbad166a8a5d1b64
Signed-off-by: Seungha Son <seungha.son@samsung.com>
5 years agoImprove logic for setting trace clock 49/229649/3
Seungha Son [Thu, 2 Apr 2020 11:40:22 +0000 (20:40 +0900)]
Improve logic for setting trace clock

 Set the clock to the best available option while tracing. Use 'boot' if it's
 available; otherwise, use 'mono'. If neither are available use 'global'.
 Any write to the trace_clock sysfs file will reset the buffer, so only
 update it if the requested value is not the current value.

 Reference : https://www.kernel.org/doc/Documentation/trace/ftrace.txt

 trace_clock:
        Whenever an event is recorded into the ring buffer, a
"timestamp" is added. This stamp comes from a specified
clock. By default, ftrace uses the "local" clock. This
clock is very fast and strictly per cpu, but on some
systems it may not be monotonic with respect to other
CPUs. In other words, the local clocks may not be in sync
with local clocks on other CPUs.

Usual clocks for tracing:

  # cat trace_clock
  [local] global counter x86-tsc

  The clock with the square brackets around it is the one
  in effect.

  local: Default clock, but may not be in sync across CPUs

  global: This clock is in sync with all CPUs but may
     be a bit slower than the local clock.

          mono: This uses the fast monotonic clock (CLOCK_MONOTONIC)
which is monotonic and is subject to NTP rate adjustments.

  boot: This is the boot clock (CLOCK_BOOTTIME) and is based on the
fast monotonic clock, but also accounts for time spent in
suspend. Since the clock access is designed for use in
tracing in the suspend path, some side effects are possible
if clock is accessed after the suspend time is accounted before
the fast mono clock is updated. In this case, the clock update
appears to happen slightly sooner than it normally would have.
Also on 32-bit systems, it's possible that the 64-bit boot offset
sees a partial update. These effects are rare and post
processing should be able to handle them. See comments in the
ktime_get_boot_fast_ns() function for more information.

Change-Id: Iba2d4fcd4f6272fd8faa2e7d462c5b275547c73f
Signed-off-by: Seungha Son <seungha.son@samsung.com>
5 years agoChange 0 or NULL to nullptr 01/229601/1
Seungha Son [Thu, 2 Apr 2020 06:17:28 +0000 (15:17 +0900)]
Change 0 or NULL to nullptr

 nullptr is a keyword that can be used at all places
 where NULL is expected. Like NULL, nullptr is implicitly
 convertible and comparable to any pointer type.
 Unlike NULL, it is not implicitly convertible or
 comparable to integral types.

Change-Id: Ie1ea211adaff6f818d1f86b0e0a8d9736320b0bf
Signed-off-by: Seungha Son <seungha.son@samsung.com>
5 years agoAdd additional system events 20/228620/3
Seungha Son [Tue, 24 Mar 2020 07:08:08 +0000 (16:08 +0900)]
Add additional system events

 Add events based on kernel version 4.19.81.

Change-Id: I4b96d790b518dff794c5b2b06d6556e882d8b0c6
Signed-off-by: Seungha Son <seungha.son@samsung.com>
5 years agoMerge "make a gcov package for measuring coverage easier" into tizen
Changjoon Baek [Mon, 1 Jul 2019 04:54:33 +0000 (04:54 +0000)]
Merge "make a gcov package for measuring coverage easier" into tizen

5 years agomake a gcov package for measuring coverage easier 69/208869/1 accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191031.034044 accepted/tizen/5.5/unified/mobile/hotfix/20201027.061108 accepted/tizen/5.5/unified/wearable/hotfix/20201027.091920 accepted/tizen/unified/20190702.114958 submit/tizen/20190701.045532 submit/tizen_5.5/20191031.000009 submit/tizen_5.5/20191031.000011 submit/tizen_5.5/20191031.000013 submit/tizen_5.5_mobile_hotfix/20201026.1851010 submit/tizen_5.5_mobile_hotfix/20201027.114301 submit/tizen_5.5_wearable_hotfix/20201026.1843010 submit/tizen_5.5_wearable_hotfix/20201027.114701 tizen_5.5.m2_release
joon.c.baek [Fri, 28 Jun 2019 02:30:40 +0000 (11:30 +0900)]
make a gcov package for measuring coverage easier

Change-Id: I8bc65b1d0767ad5cc940d6ebdb31cd622fca4c6f
Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
5 years agomake a gcov package for measuring coverage easier
joon.c.baek [Fri, 28 Jun 2019 02:30:40 +0000 (11:30 +0900)]
make a gcov package for measuring coverage easier

Change-Id: I8bc65b1d0767ad5cc940d6ebdb31cd622fca4c6f
Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
6 years agoAdd condition and change options for tracefs 95/185495/1 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181106.202433 accepted/tizen/unified/20180801.080110 submit/tizen/20180731.065338 submit/tizen_5.0/20181101.000009 submit/tizen_5.0/20181106.000001
joon.c.baek [Tue, 10 Jul 2018 06:52:57 +0000 (15:52 +0900)]
Add condition and change options for tracefs

To mount tracefs needs to check existed path,
And add mount options in details.

Change-Id: I9393c5629b8bf423d48ecec51fd4d99418d421cc
Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
6 years agoRevert "Remove sys-kernel-debug-tracing.mount" 94/185494/1
joon.c.baek [Mon, 9 Jul 2018 12:23:11 +0000 (21:23 +0900)]
Revert "Remove sys-kernel-debug-tracing.mount"

'sys-kernel-debug-tracing.mount' was removed for
resolving 'systemctl --state failed' issue.
However, Add 'Options=remount,rw' to this file,
it can be solution also.

This reverts commit 0a2883bf7940b3ee138551434117d3ea63cbfb2a.

Change-Id: I5d7f4f5236f7212f06f41bd7ddf815c3f548c85a

6 years agoResolve the service failed of ttrace-marker.service 93/185493/1
joon.c.baek [Mon, 9 Jul 2018 01:06:36 +0000 (10:06 +0900)]
Resolve the service failed of ttrace-marker.service

When ttrace-marker.service is executed twice,
Second execution makes service failed because of
already generated tag file what generated correctly.

So, In this case(founding existed tag file)
initEnabledTagFile() will return true.

Change-Id: Ie4dbee288b1b8daa1231513a8be62bc6884e438b
Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
6 years agoRemove sys-kernel-debug-tracing.mount 92/185492/1
joon.c.baek [Thu, 28 Jun 2018 10:14:55 +0000 (19:14 +0900)]
Remove sys-kernel-debug-tracing.mount

Change-Id: I8f549274fcc65c8a4fb8c5f1c289874c281ed964
Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
7 years agoChange permission of /tmp/ttrace_tag and service 14/161714/1 accepted/tizen/unified/20171130.063204 submit/tizen/20171127.060630 submit/tizen/20171128.025544
joon.c.baek [Mon, 27 Nov 2017 04:46:49 +0000 (13:46 +0900)]
Change permission of /tmp/ttrace_tag and service

- Change permisstion of /tmp/ttrace_tag
  root -> system_fw
- Assign User/Group to ttrace-marker.service
  root -> system_fw

Change-Id: Ic48b0cfd347f56da2a052511e9e37edac539d033
Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
7 years agoAdd sys-kernel-debug-tracing.mount file 75/161275/1 accepted/tizen/unified/20171124.064548 submit/tizen/20171123.075325
joon.c.baek [Wed, 22 Nov 2017 09:56:57 +0000 (18:56 +0900)]
Add sys-kernel-debug-tracing.mount file

- Add sys-kernel-debug-tracing.mount to replace
  sys-kernel.tracing.service.
- This file can mount tracefs without
  /bin/touch executable.

Change-Id: I035fc08243c95b09c39a70c46acecc758d7c7d1b
Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
7 years agoReomve capabilities in sys-kernel-tracing.service 00/153600/1 accepted/tizen/unified/20171010.162459 submit/tizen/20171010.025828
joon.c.baek [Fri, 29 Sep 2017 01:45:07 +0000 (10:45 +0900)]
Reomve capabilities in sys-kernel-tracing.service

Assigning capabilities to sys-kernel-tracing.service causes
fail in Odroid U3+, Raspberry Pi3 at Tizen:Unified(5.0).
To resolve this issue, remove capabilities on tizen branch.

Change-Id: I437d1f005703c0ab6bc6e01aeaf5315138b47cbb
Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
7 years agoAssign capabilities 'cap_dac_override' to service 70/150870/1 accepted/tizen/unified/20170926.061839 submit/tizen/20170925.022002
joon.c.baek [Tue, 19 Sep 2017 03:09:44 +0000 (12:09 +0900)]
Assign capabilities 'cap_dac_override' to service

'cap_dac_override' capabilities used inteaded of
root permission of sys-kernel-tracing.service.

Change-Id: I71870eab4c2a32ac3a904f9713f0cb73a2295126
Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
7 years agoAlign indentation and remove build warning 12/150112/5 submit/tizen/20170915.063230
joon.c.baek [Thu, 14 Sep 2017 07:51:37 +0000 (16:51 +0900)]
Align indentation and remove build warning

Used invalid type in printf(), change to correct type.
Many code lines did keep a indentation,
aligned indent for all of source codes.

Change-Id: I7cc0438d061c734b5356accd9ff9ff0801f64ff6

7 years agoResolve vulnerability about untrusted string 11/150111/5
joon.c.baek [Thu, 14 Sep 2017 07:45:41 +0000 (16:45 +0900)]
Resolve vulnerability about untrusted string

The sceanario of bootup-trace has vulnerability about
untrusted string loaded and execution.
This patch changes how to execution and remove system() calling.
And change open permission 0666 to 0600.

Change-Id: Ibfc19a9c8c7ef43af084e8d6b7496bf59c12dfe5
Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
7 years agoSet Smack label to ttrace-marker.service 90/149990/1
joon.c.baek [Thu, 14 Sep 2017 02:22:36 +0000 (11:22 +0900)]
Set Smack label to ttrace-marker.service

Add SmackProcessLabel=System at ttrace-marker.service.
Without this label,
ttrace-marker.service will be worked as System::Privileged,
This service is enough with System label.

Change-Id: I8d588822713a7c7a376f4cbc24e870f3c33bfdbd
Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
7 years agoRemove build warnings with GCC 6.2 27/141527/1 accepted/tizen/4.0/unified/20170816.015423 accepted/tizen/4.0/unified/20170828.223019 accepted/tizen/unified/20170803.010335 submit/tizen/20170801.044617 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0/20170828.100009 submit/tizen_4.0_unified/20170814.115522
Gihun Chang [Tue, 1 Aug 2017 02:46:09 +0000 (11:46 +0900)]
Remove build warnings with GCC 6.2

*For implicit declaration of function [-Wimplicit-function-declaration]
 . Add #include <stdio.h> prior to use of the function vsnprintf.

*For Unused bariable [-Wunused-variable]
 . Remove it. Really Unused.
 . bufSize, buf, ret

*For Ignoring return value of func() [-Wunused-result]
 . Remove the use of function by https://review.tizen.org/gerrit/#/c/124677/

Change-Id: I7e376cfc30078832141128d10b2e44cd598b9b56

7 years agoRevert "Remove build warnings with gcc 6.2" 26/141526/1
Gihun Chang [Tue, 1 Aug 2017 02:34:51 +0000 (11:34 +0900)]
Revert "Remove build warnings with gcc 6.2"

This reverts commit f4dc8f8166d34463ac1cbe4750fcadf5f364fc83.

Change-Id: Ic13032fd562ef5b124e223bada29bd57f89f6b8b

7 years agoMerge "Remove meaningless codes" into tizen
Gihun Chang [Mon, 31 Jul 2017 23:36:54 +0000 (23:36 +0000)]
Merge "Remove meaningless codes" into tizen

8 years agoMerge "Remove build warnings with gcc 6.2" into tizen accepted/tizen/unified/20170605.151226 submit/tizen/20170605.012851
Gihun Chang [Mon, 5 Jun 2017 01:28:15 +0000 (01:28 +0000)]
Merge "Remove build warnings with gcc 6.2" into tizen

8 years agoAdd traceFS mount service and adjust service order 71/132271/3 accepted/tizen/unified/20170602.155201 submit/tizen/20170602.072408
Changjoon Baek [Thu, 1 Jun 2017 12:37:23 +0000 (21:37 +0900)]
Add traceFS mount service and adjust service order

4.x kernel splited traceFS and debugFS.
/sys/kernel/debug/tracing and /tmp should be mounted before
ttrace-marker.service started.

- Add sys-kernel-tracing.service to mount tracefs to /sys/kernel/debug/tracing
- Adjust ttrace-marker.service order to be after the sys-kernel-tracing.service

Change-Id: I48f08bb8d4a31fa24b8508307812241a6fcb73b6
Signed-off-by: Changjoon Baek <joon.c.baek@samsung.com>
8 years agoRemove build warnings with gcc 6.2 46/131646/1
Gihun Chang [Tue, 30 May 2017 08:35:23 +0000 (17:35 +0900)]
Remove build warnings with gcc 6.2

* warning: implicit declaration of function 'vsnprintf'
  [-Wimplicit-function-declaration]
* warning: ignoring return value of 'int system(const char*)',
   declared with attribute warn_unused_result [-Wunused-result]

Change-Id: Ie400cc8fea6b99d08ab935198b60ec1767ac75c6

8 years agoApply %license macro 56/130056/1 accepted/tizen/unified/20170531.082331 submit/tizen/20170522.043327
Changjoon Baek [Fri, 19 May 2017 03:39:36 +0000 (12:39 +0900)]
Apply %license macro

Remove manual copy for license file in spec

Change-Id: Ie3288252dcf5f667d1bc3524439685d29fc18bfb
Signed-off-by: Changjoon Baek <joon.c.baek@samsung.com>
8 years agoRemove meaningless codes 77/124677/2
Changjoon Baek [Wed, 12 Apr 2017 05:50:10 +0000 (14:50 +0900)]
Remove meaningless codes

tracing_init_dentry() auto-mount tracefs in kernel 4.10.x.
This initializing is triggered fs_initcall.
So, Removed code in this commit is meaningless.

Change-Id: I9ae499131d6f7a8d2dd6e6c2c2d09e33585e3bf6
Signed-off-by: Changjoon Baek <joon.c.baek@samsung.com>
8 years agoApply Tizen 3.0 Smack policy to ttrace pkg 00/117700/2
Changjoon Baek [Tue, 7 Mar 2017 06:45:15 +0000 (15:45 +0900)]
Apply Tizen 3.0 Smack policy to ttrace pkg

Change smack labeling to using systemd tmpfiles
instead of set_smacklabel() initializing

Change-Id: I0e44ea62200929804c745175f73cd469b9b4623e
Signed-off-by: Changjoon Baek <joon.c.baek@samsung.com>
8 years agoMerge "Prepare for Tizen 4.0 Build" into tizen accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170203.161629 accepted/tizen/ivi/20170203.023425 accepted/tizen/mobile/20170203.023402 accepted/tizen/tv/20170203.023407 accepted/tizen/unified/20170309.040840 accepted/tizen/wearable/20170203.023411 submit/tizen/20170202.230138 submit/tizen_unified/20170308.100420 tizen_4.0.m1_release
Gihun Chang [Thu, 2 Feb 2017 23:00:06 +0000 (15:00 -0800)]
Merge "Prepare for Tizen 4.0 Build" into tizen

8 years agoReplace usage of deprecated libsmack function 32/90532/2
Rafal Krypa [Fri, 30 Sep 2016 10:27:33 +0000 (12:27 +0200)]
Replace usage of deprecated libsmack function

The libsmack function smack_setlabel is deprecated and will be removed.
Using the alternative instead.

Change-Id: Ia02383700175ba1e4eb91c85e4aa17c4033290f6
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
8 years agoPrepare for Tizen 4.0 Build 41/110141/1
MyungJoo Ham [Fri, 13 Jan 2017 05:30:35 +0000 (14:30 +0900)]
Prepare for Tizen 4.0 Build

I've assumed that Tizen 4.0 code is going to be more similar with 3.0
than 2.0.

Please do not rely on string == compare for version check.

Change-Id: I7465a0b1cd26de939f60190cf8e2227aa1e9e763
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
8 years agoUpdate support version of werable profile (3.0 -> 2.3.2) 72/109972/1
Gihun Chang [Thu, 12 Jan 2017 10:04:01 +0000 (19:04 +0900)]
Update support version of werable profile (3.0 -> 2.3.2)

Change-Id: Icac243d8093e0460d74267d2a59e0e82c897163a

8 years agoMerge branch 'tizen_3.0' into 'tizen'
Gihun Chang [Fri, 23 Dec 2016 02:37:31 +0000 (11:37 +0900)]
Merge branch 'tizen_3.0' into 'tizen'

8 years agoUpdate T-Trace version to 1.0.3 res/for/tizen_3.0
Gihun Chang [Thu, 22 Dec 2016 02:05:43 +0000 (11:05 +0900)]
Update T-Trace version to 1.0.3

Change-Id: Ibdc1cef11acc258bfed7e61303b648ace77bfd1f

8 years agoFormatting help message 94/106494/2
Gihun Chang [Thu, 22 Dec 2016 02:04:20 +0000 (11:04 +0900)]
Formatting help message

Change-Id: I4a0f580006ae18cc55901f912fc11ad999f5f3be

8 years agoRemove dependancy with libstdc++ 08/105908/1
Changjoon Baek [Mon, 19 Dec 2016 09:56:38 +0000 (18:56 +0900)]
Remove dependancy with libstdc++

The dependancy with libstdc++ existed meaningless.
Remove depandancy using "-fno-exceptions" option.

Change-Id: I405922988bccebf5760be58586f98f5a392b319e
Signed-off-by: Changjoon Baek <joon.c.baek@samsung.com>
8 years agoFix side effect on previous commit 25/105325/1 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170105.025841 accepted/tizen/3.0.m2/tv/20170105.030010 accepted/tizen/3.0.m2/wearable/20170105.030235 accepted/tizen/3.0/common/20161219.113529 accepted/tizen/3.0/ivi/20161219.012527 accepted/tizen/3.0/mobile/20161219.012514 accepted/tizen/3.0/tv/20161219.012517 accepted/tizen/3.0/wearable/20161219.012523 submit/tizen_3.0.m2/20170104.093756 submit/tizen_3.0/20161216.083703
Gihun Chang [Fri, 16 Dec 2016 08:18:26 +0000 (17:18 +0900)]
Fix side effect on previous commit

Change-Id: Ice3dd142bb38b15fa331157d2b6b0ef9dd106b8e

8 years agoFix message overflow 14/105014/2 submit/tizen_3.0/20161216.045231
Gihun Chang [Thu, 15 Dec 2016 04:56:51 +0000 (13:56 +0900)]
Fix message overflow

Change-Id: Iaa3a46b5d6550e02d3d5ea66d0213e44a2048779

8 years agoUse absolute path for execlp() accepted/tizen/3.0/common/20161206.125359 accepted/tizen/3.0/ivi/20161205.070028 accepted/tizen/3.0/mobile/20161205.070009 accepted/tizen/3.0/tv/20161205.070016 accepted/tizen/3.0/wearable/20161205.070021 submit/tizen_3.0/20161205.051821
Changjoon Baek [Mon, 5 Dec 2016 04:14:10 +0000 (13:14 +0900)]
Use absolute path for execlp()

Attacker can exploit by modified 'PATH' environment.
Excuting system command have to use absolute path.

Change-Id: Ided661e83c072684524c5ab8b73fc89db9842e13
Signed-off-by: Changjoon Baek <joon.c.baek@samsung.com>
8 years agoUse absolute path for execlp() 00/102100/1
Changjoon Baek [Mon, 5 Dec 2016 04:14:10 +0000 (13:14 +0900)]
Use absolute path for execlp()

Attacker can exploit by modified 'PATH' environment.
Excuting system command have to use absolute path.

Change-Id: Ided661e83c072684524c5ab8b73fc89db9842e13
Signed-off-by: Changjoon Baek <joon.c.baek@samsung.com>
8 years agoMerge branch 'tizen' into tizen_3.0 accepted/tizen/3.0/common/20161124.181706 accepted/tizen/3.0/ivi/20161124.025631 accepted/tizen/3.0/mobile/20161124.025539 accepted/tizen/3.0/tv/20161124.025555 accepted/tizen/3.0/wearable/20161124.025613 submit/tizen_3.0/20161123.094907
Gihun Chang [Wed, 23 Nov 2016 09:41:18 +0000 (18:41 +0900)]
Merge branch 'tizen' into tizen_3.0

8 years agoSync the package version with csapi. 73/99473/1 accepted/tizen/common/20161124.170018 accepted/tizen/ivi/20161123.233155 accepted/tizen/mobile/20161123.233057 accepted/tizen/tv/20161123.233116 accepted/tizen/wearable/20161123.233135 submit/tizen/20161123.094102
Gihun Chang [Tue, 22 Nov 2016 05:57:36 +0000 (14:57 +0900)]
Sync the package version with csapi.

Change-Id: I179c4e25b033533004765661986b37078bd91c6f
Signed-off-by: Gihun Chang <gihun.chang@samsung.com>
8 years agoSkip the initialization of kernel event when atrace run with --append option. 72/99472/1
Gihun Chang [Tue, 22 Nov 2016 05:50:20 +0000 (14:50 +0900)]
Skip the  initialization of kernel event when atrace run with --append option.

Change-Id: I49fcc426b831cb28b951d0133d2bd61f6c478a8f
Signed-off-by: Gihun Chang <gihun.chang@samsung.com>
8 years agoAdd destructor to libttrace 35/98135/3
Changjoon Baek [Wed, 16 Nov 2016 08:03:32 +0000 (17:03 +0900)]
Add destructor to libttrace

T-trace doesn't considering the case of dlclose().
If some package that use traceBegin, traceEnd call
dlopen(), dlclose() repeatly,
happen fd leakage at ttrace_tmp, trace_marker.
So, Add destructor function libttrace_fini()
that close all of opened file descriptor.

Change-Id: I6431b404827d160adb8176eefd7bd7f4fce620ef
Signed-off-by: Changjoon Baek <joon.c.baek@samsung.com>
8 years agoRemove codes related with Android 51/85451/2
Changjoon Baek [Tue, 23 Aug 2016 09:37:05 +0000 (18:37 +0900)]
Remove codes related with Android

T-trace forked from Android project.
Codes that related with the Android platform
remained at atrace.cpp.

Remove unused code at the Tizen platform
to enhance readability, maintainance.

Change-Id: Ifc926115dd5a64e1be47f7d23d457f35dd849f62
Signed-off-by: Changjoon Baek <joon.c.baek@samsung.com>
8 years agoMerge branch 'tizen' into tizen_3.0 accepted/tizen/3.0/common/20161114.082701 accepted/tizen/3.0/ivi/20161103.044534 accepted/tizen/3.0/mobile/20161103.044434 accepted/tizen/3.0/tv/20161103.044456 accepted/tizen/3.0/wearable/20161103.044514 submit/tizen_3.0/20161102.235426 submit/tizen_3.0_common/20161110.084657
Gihun Chang [Wed, 2 Nov 2016 23:52:28 +0000 (08:52 +0900)]
Merge branch 'tizen' into tizen_3.0

8 years agoRemove usages of extension functions 86/93186/2 accepted/tizen/common/20161026.134617 accepted/tizen/ivi/20161028.151500 accepted/tizen/mobile/20161028.151452 accepted/tizen/tv/20161028.151455 accepted/tizen/wearable/20161028.151457 submit/tizen/20161026.074554 submit/tizen_3.0_common/20161104.104000
Changjoon Baek [Fri, 21 Oct 2016 01:43:20 +0000 (10:43 +0900)]
Remove usages of extension functions

Remove usages of extension functions
to prevent accessing to uninitialized fd(trace_marker).

T-trace check whether initialing by isTagEnabled(),
However, g_extension_state can permit accessing to
uninitialized fd at all of write().
And, extension feature was not used anymore.

Additionally,
Use TTRACE_LOG() instead of fprintf(),
remove useless spaces for clean codes.

Change-Id: Iacf9f899378b4d9fb29f639f475e6624cee08d66
Signed-off-by: Changjoon Baek <joon.c.baek@samsung.com>
8 years agoMerge "Add defence codes to prevent unexpected behavior" into tizen accepted/tizen/3.0/ivi/20161028.151232 accepted/tizen/3.0/mobile/20161028.143207 accepted/tizen/3.0/tv/20161028.143439 accepted/tizen/3.0/wearable/20161028.150809 accepted/tizen/common/20161013.160625 accepted/tizen/ivi/20161014.022408 accepted/tizen/mobile/20161014.022535 accepted/tizen/tv/20161014.022325 accepted/tizen/wearable/20161014.022418 submit/tizen/20161013.085632 submit/tizen/20161023.232219 submit/tizen/20161026.042356 submit/tizen_3.0/20161028.062323 submit/tizen_3.0/20161028.092423
Gihun Chang [Thu, 13 Oct 2016 08:54:19 +0000 (01:54 -0700)]
Merge "Add defence codes to prevent unexpected behavior" into tizen

8 years agoAdd defence codes to prevent unexpected behavior 22/91822/3
Changjoon Baek [Tue, 11 Oct 2016 12:59:57 +0000 (21:59 +0900)]
Add defence codes to prevent unexpected behavior

Check parameters of write system call
(buf, len, fd)
If find out currupted parameters,
return immediately.

Change-Id: I035223f3f2d2a07c877872e7a24db158d77a35b3
Signed-off-by: Changjoon Baek <joon.c.baek@samsung.com>
8 years agoApplied APACHE2.0 boilerplate notice to .c files 39/85439/2
Changjoon Baek [Thu, 25 Aug 2016 06:18:48 +0000 (15:18 +0900)]
Applied APACHE2.0 boilerplate notice to .c files

Applied APACHE2.0 boilerplate notice to trace.c, ttrace.c,
These files had owned older SLP boilerplate.
It should be replaced.

Change-Id: Ib064f2552c510d6a3352a631efe3bff395c4d05d
Signed-off-by: Changjoon Baek <joon.c.baek@samsung.com>
8 years agoMerge "Add comment in spec file to avoid misunderstandings" into tizen accepted/tizen/3.0/ivi/20161011.065143 accepted/tizen/3.0/mobile/20161015.034346 accepted/tizen/3.0/tv/20161016.010023 accepted/tizen/3.0/wearable/20161015.084438 accepted/tizen/common/20160831.161839 accepted/tizen/ivi/20160831.124953 accepted/tizen/mobile/20160831.124921 accepted/tizen/tv/20160831.124926 accepted/tizen/wearable/20160831.124939 submit/tizen/20160831.045905 submit/tizen_3.0_ivi/20161010.000007 submit/tizen_3.0_mobile/20161015.000007 submit/tizen_3.0_tv/20161015.000006 submit/tizen_3.0_wearable/20161015.000006
Gihun Chang [Wed, 31 Aug 2016 01:42:25 +0000 (18:42 -0700)]
Merge "Add comment in spec file to avoid misunderstandings" into tizen

8 years agoMerge "Rename 'TTRACE_TAG_DEBUG' to 'TTRACE_TAG_PERFTEST'" into tizen submit/tizen/20160831.011831
Jonghwa Lee [Mon, 29 Aug 2016 08:20:03 +0000 (01:20 -0700)]
Merge "Rename 'TTRACE_TAG_DEBUG' to 'TTRACE_TAG_PERFTEST'" into tizen

8 years agoAdd comment in spec file to avoid misunderstandings 29/85829/1
MyungJoo Ham [Mon, 29 Aug 2016 08:09:25 +0000 (17:09 +0900)]
Add comment in spec file to avoid misunderstandings

The build macro "tizen_profile_name" is not used in Tizen.org OBS
(build.tizen.org), but it can be used by vendors to enable
optional features.

This patch clarifies that such a macro is not for Tizen.org OBS.

Change-Id: I43bc94b0d29c429d6021efff27a667a4b3c5644f
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
8 years agoRename 'TTRACE_TAG_DEBUG' to 'TTRACE_TAG_PERFTEST' 21/85421/1
Jonghwa Lee [Thu, 25 Aug 2016 05:26:45 +0000 (14:26 +0900)]
Rename 'TTRACE_TAG_DEBUG' to 'TTRACE_TAG_PERFTEST'

Change-Id: Ic0053ad161feed30fe29c99884489192f8b3b7ab
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
8 years agoAdd '-e' option to exclude specific tags. 19/85019/2 accepted/tizen/common/20160824.154823 accepted/tizen/ivi/20160825.000825 accepted/tizen/mobile/20160825.000740 accepted/tizen/tv/20160825.000755 accepted/tizen/wearable/20160825.000811 submit/tizen/20160824.060303
Changjoon Baek [Tue, 23 Aug 2016 09:15:19 +0000 (18:15 +0900)]
Add '-e' option to exclude specific tags.

Add '-e' option to exclude specific tags,
for example, If you don't want to see 'wm' tag,
    $ atrace -e wm
    Also, 'am', 'gfx' tags
    $ atrace -e wm -e am -e gfx

Change-Id: I94f0af6a52876a870a65301ae0a70a95ad751c10
Signed-off-by: Changjoon Baek <joon.c.baek@samsung.com>
8 years agoAdd extra tag TTRACE_TAG_DEBUG for TV profile. 72/84372/1 accepted/tizen/common/20160819.131040 submit/tizen/20160819.010811
Jonghwa Lee [Thu, 18 Aug 2016 08:04:37 +0000 (17:04 +0900)]
Add extra tag TTRACE_TAG_DEBUG for TV profile.

For some specific demands, it adds extra tag 'DEBUG' for TV profile.
The tag will be used for logging miscellaneous stuff.

This tag is only avaliable on TV profile.

Change-Id: I81575e9bd0ebaaeb073bc1c6b48774f656a4a27a
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
8 years agoRevert "Assign UID/GID"
joon.c.baek [Mon, 8 Aug 2016 05:45:48 +0000 (14:45 +0900)]
Revert "Assign UID/GID"

This reverts commit 711777b1a5237d47e7fb94d9884ff93d71815872.

8 years agoAssign UID/GID
joon.c.baek [Mon, 8 Aug 2016 05:36:49 +0000 (14:36 +0900)]
Assign UID/GID

Change-Id: I785b755390f625e302117deab71c97bfa4f493a5
Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
8 years agoSet SmackProcessLabel as System. 13/80913/1 accepted/tizen/common/20160721.175521 accepted/tizen/ivi/20160721.090701 accepted/tizen/mobile/20160721.090327 accepted/tizen/tv/20160721.091251 accepted/tizen/wearable/20160721.090838 submit/tizen/20160721.003054
jin-gyu.kim [Thu, 21 Jul 2016 01:43:48 +0000 (10:43 +0900)]
Set SmackProcessLabel as System.

Change-Id: I0bd03aaadafd505808b4c21247c277cc283cdd63

8 years agochange the logic of start/stop to prevent T-trace from writing to the locked buffer 41/78441/3 master accepted/tizen/common/20160707.171122 accepted/tizen/ivi/20160706.082804 accepted/tizen/mobile/20160706.082718 accepted/tizen/tv/20160706.082707 accepted/tizen/wearable/20160706.082716 submit/tizen/20160706.042922
Eunji, Lee [Tue, 5 Jul 2016 12:16:06 +0000 (21:16 +0900)]
change the logic of start/stop to prevent T-trace from writing to the locked buffer
print out error msg only if ttrace is running on debug mode

Change-Id: Ic1ee96dbb3a619cdf92187f2f5490b50b3781464

8 years ago- add protection codes for preventing atrace from double initailization 31/78131/4 accepted/tizen/common/20160706.141733 accepted/tizen/ivi/20160705.101738 accepted/tizen/mobile/20160705.101854 accepted/tizen/tv/20160705.101809 accepted/tizen/wearable/20160705.101831 submit/tizen/20160705.082028
Eunji, Lee [Mon, 4 Jul 2016 10:06:12 +0000 (19:06 +0900)]
- add protection codes for preventing atrace from double initailization
- add protection codes for avoding tracing msg size overflow

Change-Id: I5415c94b5ed77c1fa805ff73d6d12fc10194085c
Signed-off-by: Eunji, Lee <eunjieji.lee@samsung.com>
8 years agoadd PATH environment to atrace-bootup.sh 91/77091/1 accepted/tizen/common/20160703.125943 accepted/tizen/ivi/20160629.021441 accepted/tizen/mobile/20160629.021518 accepted/tizen/tv/20160629.021323 accepted/tizen/wearable/20160629.021514 submit/tizen/20160628.124122 submit/tizen_common/20160701.180000
Eunji, Lee [Tue, 28 Jun 2016 12:37:00 +0000 (21:37 +0900)]
add PATH environment to atrace-bootup.sh

Change-Id: I4ebcc3f05948405ce2078d77bbf2ca481e0f6a43
Signed-off-by: Eunji, Lee <eunjieji.lee@samsung.com>