Giter Club home page Giter Club logo

Comments (16)

jhshi avatar jhshi commented on July 30, 2024

We should do this, but do separate it with tracing related changes, so they can be merged individually.

from cm-shamu.manifest.

jhshi avatar jhshi commented on July 30, 2024

Actually can you remind me of what tracing related changes do? We might just incorporate them in the main release as well.

from cm-shamu.manifest.

gurupras avatar gurupras commented on July 30, 2024

In the conductor, the tracing changes only add new classes to the conductor that check for certain tags in the manifest.xml file. By default, they do not enable any tracing.
When the manifest contains the specific tag - <EventTracingService>, the conductor's tracing task kicks in and enables the specified events.

This functionality depends on changes in the platform. The repos that will (probably) be modified are:

platform/build
device/moto/shamu
platform/external/sepolicy
platform/frameworks/base
platform/frameworks/native
kernel/moto/shamu
platform/system/core

@shaseley can probably give you a better idea of what these changes will involve.

from cm-shamu.manifest.

jhshi avatar jhshi commented on July 30, 2024

I'm ok with adding EventTraceTask to the mainstream of conductor. I just checked, the last_kmsg branch is actually not up-to-date with master. Can you update it with the tip of master (2.0.2)? After that, we can merge the changes of both EventTraceTask and /proc/kmsg changes to master.

from cm-shamu.manifest.

jhshi avatar jhshi commented on July 30, 2024

The bottom line is, we want to separate logging infrastructure with actual logging. As long as that's the case, I'm ok to also merge the changes you listed in the repo to phonelab develop branch. Just make sure you test them thoroughly before push.

from cm-shamu.manifest.

gurupras avatar gurupras commented on July 30, 2024

Will do. I will update this thread once that's done.

from cm-shamu.manifest.

gurupras avatar gurupras commented on July 30, 2024

I've tested and pushed all changes required for this to work.

On the Nexus 6, /proc/last_kmsg has been removed and replaced with /sys/fs/pstore/*. The conductor now has logic to log all files under this directory.

Unfortunately, this required giving system_apps permissions to read /sys/fs/pstore. The relevant changes have been made to external/sepolicy.

Branches:

conductor: last_kmsg_only
external/sepolicy: phonelab/cm-13.0/last_kmsg

Let me know if you want me to build a release apk of the conductor and push it to vendor/phonelab.

from cm-shamu.manifest.

jhshi avatar jhshi commented on July 30, 2024

Pull back the changes to external/sepolicy and do it in /device/moto/shamu/sepolicy/system_app.se

from cm-shamu.manifest.

gurupras avatar gurupras commented on July 30, 2024

Done.

external/sepolicy still contains the branch phonelab/cm-13.0/last_kmsg, but the change has been reverted on this branch

from cm-shamu.manifest.

jhshi avatar jhshi commented on July 30, 2024

If you think the changes are stable, please merge them to phonelab/../develop branch. I'll pull and merge the branch in conductor. What's the branch name? And what changes in the manifest need to be updated?

from cm-shamu.manifest.

jhshi avatar jhshi commented on July 30, 2024

last_kmsg_only, I see. never mind this.

from cm-shamu.manifest.

jhshi avatar jhshi commented on July 30, 2024

I merged last_kmsg_only in conductor, and updated the conductor apk (2.0.3) in /vendor/phonelab. Changes pushed. Can you also update the develop branch of /device/moto/shamu?

from cm-shamu.manifest.

jhshi avatar jhshi commented on July 30, 2024

deleted last_kmsg_only branch in conductor.

from cm-shamu.manifest.

gurupras avatar gurupras commented on July 30, 2024

Finished merging branch phonelab/cm-13.0/last_kmsg into phonelab/cm-13.0/develop in device/moto/shamu and pushed.

from cm-shamu.manifest.

jhshi avatar jhshi commented on July 30, 2024

OK, building. Will push the OTA soon.

from cm-shamu.manifest.

jhshi avatar jhshi commented on July 30, 2024

Fixed in 4.1.4

from cm-shamu.manifest.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.